"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_default_kevlar_base=R||[]};
(0,_._F_toggles_initialize)([0x4000000, 0x0, ]);
/*

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var yG,RTU,QLz,vW,Jz,jLG,Mv4,ev,OP,JzL,Vv8,i8v,n8,hT4,b8T,rE,NEE,fc8,O8T,H8E,rzP,PO8,dUE,ESG,$UT,XWG,Rb,DUz,MG,pWT,Vc,tvz,iT,F5,acL,SPT,dg,Ui,L4W,Rcz,yLc,qG,v8W,QbP,jbS,JLP,u58,mV,iYW,hcT,Tgz,jK,o8O,xGG,BgE,fwG,ecG,Q8,FVv,uJ,wKG,NgP,PTO,dG8,UGL,bJ,E8T,$Gc,qiO,XKS,ALL,DG4,cLU,aw4,LVU,zcT,CTP,QP4,MKG,jPL,ra,JIT,h7S,bZP,wHL,xVz,TaO,BaU,oMU,Um,mGW,kM,Em,qV,foz,Xp,OZG,e7T,loG,tI,ZZE,HZU,Gav,PJT,rIc,WgS,dV4,UVL,AI,EMT,qmG,sm,mV4,tKT,RK,SmT,sPS,AIT,z7v,CJz,RFT,JqW,vEU,iKv,I2W,hFG,FKL,wgT,BCc,ZKW,WKP,EEW,
Dyz,Bg,tyS,a2S,YoL,nK,GB,Wg,Uo,Aq,pK,tq,uoW,j1z,MLT,i$4,hUU,Q6,b$L,MP,Ja,V6,iB,w$T,NYS,TYz,oLL,xPS,ftW,eUv,ltT,O$U,H$U,Fo,bB,nLz,G9P,rav,W_L,PB4,dPO,UPW,k9z,eL,lB,Zt,H$,G9,$PE,rY,X$S,tLO,W$,ca8,at8,Sr4,Ur,YrE,L_U,s1E,kL,CB4,$L,uVE,vhT,qP,jrS,QrU,MQP,JSE,VQW,iLO,p$,KvO,IiT,ta,hSc,bL4,c$,a1,SL,YL,FvO,NcT,wsz,L$,ohT,x1v,Bcc,z9,C$,Rr,yW,uv,vs,fiO,eSG,OL8,ZLE,HLP,nhv,GRL,rSU,PvT,WvE,d1S,U1U,kR4,jQ,EhT,$1L,iv,q6O,Ir,bv,XsU,D18,psE,tQz,aiT,S6v,Y6S,ghW,CvO,Rpv,yD8,uvT,v7v,Q_c,VZz,TR,iFv,KaS,I0v,hp4,bFG,FaT,
NsT,Gl8,rDW,Px4,UeG,klT,O6,E7L,XYU,DeT,pYW,tZT,cDP,a0P,SXP,YXT,LaO,zpz,g7O,mev,CxT,RCv,y2T,ulL,vaS,QnU,jnE,MfU,J2P,IKS,iyU,FuT,hCO,byW,Thz,oa8,x8G,wTO,fKU,Nhc,lKE,pL,OyW,tS,ar,Zy4,naG,GFL,WuW,D8S,U8W,d8z,Ea8,qpL,kFP,YpP,c2v,Luc,snL,zCP,gaS,C$P,y7z,R2P,unv,vBS,QMv,jMU,J7U,iGG,KqE,I6W,bGL,h24,ZGW,CL,HG8,G7v,r7U,Prz,WqO,dsG,k7E,EBL,$sL,Me,JD,qBz,tSS,KF,I_,YBU,sMS,MX4,ws,KiG,IIT,w54,bJG,FiG,eZ,NRc,TR8,$Cz,qLP,X5U,mCU,ATW,DCU,p5P,cTS,aIW,YLG,SLG,zXU,WY,k7,Cav,Ru8,yv4,uMW,v2L,Qzc,M_P,V_S,JvW,SZ,LF,sX,Rn,
l1S,O9G,yU,H9L,Z94,E2v,$tT,qWv,mtO,t_U,a1v,SWU,YWL,Lev,zuO,CQL,RHz,jf,u4T,jNG,Mx4,JcT,VxT,KWv,QNL,ycS,iiO,J2,hH4,NIG,FWW,Ky,oTG,BIG,fzL,eHU,lzT,Fl,OiO,HiP,ZiO,nTP,rcS,TF,$cO,X34,AcW,p3T,fy,ccW,Op,HT,ZK,LWS,txG,sNW,rh,RL8,dh,Up,vkP,MmL,Vm8,iNO,KQS,ka,I7S,Ep,hLW,FQT,wAU,Nnz,TnU,xSv,q8,BnS,f7O,DK,cT,ONv,ZNv,HNW,Sf,rW4,PNv,dS8,Cy,mSU,AWU,$SL,pA8,tmT,cWG,QV,Ms,J7,LQS,sxE,ir,zLW,gkT,CNO,R6O,ucL,vIT,QRT,jRW,ylz,MCT,br,VCS,KbP,Fn,ivc,IxS,JlL,h6O,Ns,FbT,w8L,NGP,TGU,x4G,oIO,BGT,lxG,fxU,ZvU,WbT,U4O,kMT,$4U,
m4W,X8S,qf4,AlW,p8P,clG,tCU,SfG,LbP,sRv,z6P,gIS,QkT,vFT,jkU,MiU,Pu,Wu,J_S,ioT,IqG,Fm4,NrU,woE,CG,TrP,Kmc,OoL,ZoU,Ho4,MC,nF4,r_G,dQW,EFT,kPE,mQ4,A_E,DQT,poU,c_W,skP,aqS,Y94,LmT,z5S,gFc,RBT,Chc,u9v,yNv,oh,vsG,j3E,M6v,KcU,H5,nJ,InL,hB4,Gu,NNP,dR,UL,kz,BNT,EL,ln8,Xq,Ozz,ZzU,Hzz,nsT,DI,GIL,rNO,PE8,dq8,kI8,qqW,mqS,gR,ANL,DqL,pdP,t6L,cNT,anU,SqT,YqG,yO,zB8,gs4,CET,RzP,yUT,ubz,vvz,QHU,jHz,MqT,JUT,VqT,icE,VO,fjU,ezP,iQ,K9,Iz,ljU,OcT,ZcE,Hc8,nvS,G2c,rUO,k2P,EvL,$Bz,qZ8,XVc,w3,Tg,oz,x2,lQ,OW,Z1,AUS,n9,pVT,Gg,
tq8,cUT,r3,ajT,SZP,YZc,vJL,jXL,K8P,F8v,buG,QX4,wNS,oJv,dzz,OuE,q7T,HuT,$zS,XNz,EW,Awv,qt,pN8,t04,aVT,S7G,Y7U,sXP,Av,gJc,C8T,R4U,ydT,ugT,viE,QcT,z38,JdT,VbU,ikW,p9,wyU,NZz,FNO,oiO,xk8,frL,e4P,BZU,rdE,WNv,UkE,EiW,u_,DkW,Adv,S4L,LNL,scG,z4P,gi8,CXU,RvW,IN,ihL,IlG,J6E,MpL,Kxv,ujO,bhc,OhE,NWU,TWS,o6P,k3E,$Rz,URW,p_E,dRG,y6W,DRW,w_T,llE,E6z,hvE,QCU,v64,jCU,VpL,WxU,Gp,v9S,j8S,MoT,JFW,Vo4,TmE,lOT,OAG,Ac,HA8,rF8,UpW,dpG,E9T,$pO,Xm8,AFW,mpG,DpT,gI,pmU,toW,aOc,cFW,Ci,g9z,z8S,s8E,udW,CDE,vYG,yGL,Qyv,yn,jyT,iX4,
JGO,V84,IT8,FhU,jm,T$T,w2S,oYT,etS,lTG,HXS,Gx8,iN,KN,d5P,U5W,Ix,hW,kxU,bN,Fm,EYc,wn,$5E,TS,qzU,X2E,xk,m5G,AGU,D5v,p2G,t8U,aTS,cGT,YzU,ztO,syE,gYW,CGT,SzT,Ro4,vlE,u1E,Lh8,Q2z,j2W,Ol,MVU,VVU,Jec,iRW,KrT,hoT,IAU,bRP,GS,wZL,NXU,FrT,olP,xr8,BX8,ORv,nlc,drT,$rT,rn,mrG,Ae8,PA,DrW,kk,El,YJT,dn,Xm,Lrc,s2P,glU,C1W,yRc,vUc,QEP,jE8,MdG,iU8,F9v,hDc,Vd8,wQE,NVc,pN,bUv,TVU,ax,oUG,xOz,BVv,fFU,ZUE,eDT,OUU,rRz,PoU,EU4,k$T,XQO,cRT,aFT,Yk4,sEW,zDW,Coz,RhT,ykE,v$U,Qfc,jfP,Vz4,hhT,bpT,ipE,w7E,Tx8,NxO,FnW,o$v,Bxv,fMc,ehU,
lMv,OpU,jC,M4,ip,IR,n$T,GqT,WnP,kqT,hl,bp,E$T,Fc,X74,mWG,AkT,N4,aMv,sfS,g$4,CjS,REz,y8P,uC4,jeO,oR,MwU,iTO,xI,KFE,bTP,FFU,wcL,hE4,fdT,OTT,eEU,ZTv,G0G,PVP,dgP,$gL,EjW,A8v,Of,DgL,pcE,Zx,twT,H8,c84,adc,S8U,LFU,Y8S,sec,zET,gjc,CVW,MYT,VYO,KRL,iI8,vDc,ytU,hRG,FRU,xEP,BqE,lQU,rtv,WRO,P8,dES,kQP,EDG,qRE,DEO,ctW,YRP,LRS,sqv,zRS,uQU,gDO,MFO,JxT,VF4,KBT,Uf,IRc,bVU,FBv,wtT,N1T,T1W,ocv,xnG,fRS,esG,q4,lRL,OVO,HVO,mb,ZVz,GnP,dn4,pv,UnU,knE,EcT,Xtv,mnU,$nT,DnT,aR4,SvW,Yv8,Lv,LBv,CmU,RqS,Rk,vuT,yAc,uLS,jUv,JAP,VHO,
ijL,bjE,N5L,wb4,FjG,T5G,xdU,B54,ZjU,faz,Hjz,GXv,nuc,kXW,qbL,mdP,Dd4,aaO,CkO,yjG,u8T,Mtc,VtU,kF,t_,FfL,oR8,T9P,B9T,fyv,lyS,e$O,O28,Z2P,co,IVP,wOW,xvv,N9L,Dq,GhU,rjG,P3c,Wf4,dvU,UvS,kh4,ER4,vd,$vc,Qw,qD4,XOT,mvG,AjT,JN,Dvz,cjO,SD4,YDW,y4S,vWc,QGW,jGW,J4E,VES,o3,KEU,IET,hlz,bt4,FEW,wev,Tuc,xwS,fE4,elG,GCS,Htv,r4S,dw8,UwT,Zn,kCO,EWW,$wG,mwE,Dwv,A4O,tEO,aEP,rN,Ycc,LEE,Sc8,sGz,zlE,CuP,ysO,RxG,ueL,gW8,v0c,QmT,jmU,M24,JsG,V2O,ixE,KIc,IXc,FIc,bx4,wr4,TQT,NQz,Pd,o0z,fXS,ZxG,xiT,GDT,rsP,Pt4,WIT,Asv,DiO,t2U,
csE,cd,LIL,CtG,uwT,a3,M5U,jiv,Jn4,Lz,V5U,ilz,K$G,hJ8,blW,F$O,w14,TvO,oXU,GL8,OlT,HlL,PLE,rnP,W$G,dLz,kLL,$LL,X1U,AnG,n1W,PWc,dJv,UJU,kiP,E1G,$Jz,XR4,mJT,pR8,tuc,cXL,aL4,Sjv,YjW,LsU,sJU,CWz,vC4,i7,Kc,IH,hU,QSO,ww,McL,w4E,fYU,xAz,qIP,X4W,mA4,Vcc,F5z,IYz,DAc,p4z,tcz,TTE,aYO,YIc,sSP,CqU,RYP,G2,WV,dw,JOP,MhL,IN4,hYW,fNS,lNO,Z_L,H_v,rOU,W2P,PlT,kdv,$$S,thT,D$E,XC4,pCT,m$4,cOP,L2T,Yv,Qs4,ypT,M1T,Jpv,iW4,KG8,sZ,IHz,FGO,NoL,Toz,xHT,oOO,Cc,ZW4,j0,nOT,GZO,Jw,rp8,PHG,WGz,dHG,UHT,kZG,EOU,$H8,q$S,XET,mHc,ApG,DH8,
pEL,t1v,Va,cp8,aHv,S$U,Y$L,LGc,ssL,z_8,gOL,CHU,RwU,yrU,uxL,Ku,Qpv,MaP,VaO,I8G,F6U,wxW,NbT,oQS,BbU,f8L,ew8,xJ,nQP,ZwT,GtU,rrW,P28,UoU,ktv,EQT,quG,U7,moL,r2,DoS,pxU,kJ,taL,crU,a8S,SuO,$J,zwT,C2c,QOO,vZT,M78,JZE,tw,V74,iEL,IPS,bEc,FXS,NJz,TJT,hWT,xMv,BJ8,ZEc,rZU,Pz4,cN,WXU,dM8,qKP,UMP,EZG,$MT,t74,mMz,cZ4,SKL,LXE,sOT,zWc,gZE,CzW,RPz,uXT,vq8,Qd4,jdO,MAT,VA4,K7U,bs8,T_L,B_L,ePU,ZsE,g2,HsU,nqT,G44,rKE,PZU,d6E,U6L,k4S,EqU,$6U,qUO,XvT,m6P,AKE,D6O,pvU,cKT,tAL,YUG,sdz,yj,zPv,RQv,CZU,vnT,QAv,jA4,MlU,iCE,hQO,
IeP,Vlv,wM4,F3T,Byz,Nyc,Vj,onE,nnc,le4,OCT,ZCP,HCS,Gbz,PIL,rMc,iX,Kk,qNW,d7O,$7U,EnS,U74,kb8,AMO,pMO,cMc,tlc,L3O,YNW,gnW,CIW,yuz,uFS,Ra4,v5U,jYc,QYT,JuO,KtO,oc,IZT,haP,ww4,BMW,H5O,By,GUc,dhW,$hU,E5v,UhG,kUz,Zr,Au4,qHc,Xwv,DhO,tOW,pwL,SHU,YHU,sYv,zaz,g5U,Cev,R1W,ufT,vPG,Xg,j$O,Ad,MWP,KSc,IuL,cy,h1O,FSS,luc,s4,oPG,e1L,xf4,Blc,nPv,Gsv,HrG,rfO,P64,ksU,WSL,EPL,$fz,gZ,XqS,mf4,Af4,qVW,yX,Df4,Ck,auv,C6v,RdT,ymU,u_8,veU,Q7S,VMO,MME,JmO,j7G,KCc,b48,Nd4,TdG,x0L,ed4,Bd8,fhW,lhE,Z4O,H48,ne4,Gjc,rmT,PfS,d0T,i0,
kjT,q5c,$0T,m0T,XpU,Am8,D0E,pp4,Kh,cmT,u$E,Riv,j6O,M$W,hiE,bdG,FYL,wIc,NPS,TPv,BP4,fBv,ei8,lBE,HdO,nfO,G_E,roE,PFU,WYU,d3G,U38,k_z,EfP,qdL,XIW,m3P,D3c,t$T,YdP,SdE,aB4,coW,gfW,s6S,Rnz,ukU,vdT,Q04,G3,j0O,M44,J5T,Ib8,V4U,hnv,ieU,beE,dW,FPW,wLv,NUv,KPP,TUv,enz,OeU,GYc,Ey,r5O,WPL,PRT,dYT,UYU,kYG,Edz,$YG,XL4,mYP,A5O,DYE,c5W,t4T,s0E,pLG,qR,zn8,ab4,LPW,RA4,uOS,J9T,jIG,M3O,QI4,vHT,V3G,i3W,Y6,hAU,FO8,wa4,N4U,T4S,oHW,ls8,B4v,xaz,fsP,k8U,da8,eAW,WOT,DaE,paT,t3L,c9T,asW,Sec,Yez,LOv,gH8,R98,uEP,Qvz,jvT,MDG,Kpz,
iq8,IGP,bqv,wm,NST,TSP,ogS,xmS,Tw,o8,e98,Zq4,WpO,EgT,$mc,qGv,XXU,mmv,AVT,pXE,cVE,tDT,aGc,YGS,LpG,svS,z9U,ggc,Cg8,lD,RkW,JiW,VJU,Q5E,vwT,MJU,j5U,NFv,bHz,Hm,TFE,owG,xFO,BF8,fgW,ek8,OHP,HHT,GmG,PyL,dFG,$FS,qFU,X9v,DFO,AiE,mFE,p9O,tJ4,agS,SFc,YFv,LlS,dm,zkv,gwv,CyW,ygP,Rjv,uA8,QFP,JgP,VIG,imE,KUL,Ifv,FUG,wzE,hj8,bmU,ejP,lfS,ZmU,Hm4,ntS,GGO,rgv,PKS,UlL,kGU,$lG,XzU,qEO,mlU,pA,AgL,Dlv,pzU,tI8,YEG,SEP,zjc,gtG,yYc,v3z,QtT,jtU,MkT,JYT,VkP,i1z,KDc,ICU,hVL,FDT,b1T,wjT,NOS,TOP,o3T,xxG,BOE,fCP,lCv,O1z,eVv,sC,H1L,
n3S,G14,rYE,WDL,UxG,k1z,E38,$xU,q1v,XjO,AYO,Dx4,tkc,aCG,Y1v,g3v,stO,LDW,zVU,CSG,RZU,yJ4,QWT,jW4,MTO,JJc,ibv,K0E,IpL,bbW,hZE,F0T,wk8,ND4,TDc,xjG,BDG,fpz,eZ8,lpS,Obc,ZbU,Hb4,Gfv,rJT,PwO,W0c,UjP,kfP,Erz,XkT,mj8,$jW,qnz,pkU,tTP,cJW,YnT,L0z,Iy,RIT,y0U,vN8,MnU,jgU,J0L,VnU,hG,Fd,KLW,I9S,Tx,oy,whv,hIO,bnS,oNU,x9G,B6U,f9z,ZnU,nNS,Gy8,r0S,P4T,WLE,U94,kyv,ENO,$9G,qQG,Xh4,m9O,fX,A0G,D9P,lG,ph8,tnE,c0T,a9E,SQT,YQG,H2,nX,LLS,sgP,Gx,zIU,gNE,C4P,RKP,uIU,vGv,j4W,KzL,iD4,VGU,I_P,hKE,oGP,wlT,NL8,FzE,TLP,P2,f_O,eKT,
l_W,ODO,ZDT,nG4,r1E,duO,$uU,kcU,W2,UuU,DuU,tG8,c1L,a_G,SgS,YgG,s48,zKT,gGE,CMO,ybP,u3O,v4O,jjO,MPP,VPv,iSz,FoO,NAS,wfS,o44,l$v,OSP,ZST,HSL,rbU,dDT,q5,UDS,kkP,E4T,$Dc,Xf4,mDU,Ab4,DDW,tPv,a$U,SSU,YST,Xd,Lo4,sj4,CCT,Rrz,mh,AG,vpG,yCU,MR8,QoT,JCU,iOc,c2,KAU,ISS,FAP,Nk4,ay,opv,xKc,BkP,fSc,erc,lSz,OO8,npS,WAT,dKT,EpT,UKO,kVU,$KS,ACv,qav,mKT,DKG,pPG,tRT,SaT,Yav,LAW,zrU,gpP,QTU,vyT,KyE,b7U,yz,FyU,nBL,wBO,NzE,oyU,fUT,em4,r$O,Pic,WyG,d2U,U2U,kOU,$2z,qtT,m2U,D2W,XBP,A$U,teW,pBO,YtE,aUT,Lyz,sTT,zmE,gyc,CiT,yBG,
R0U,jDS,V9z,M9T,iP4,K1v,IJv,i1,h0W,bP4,I2,wFW,F1P,Ni4,TiS,xN8,BiE,e0L,lJS,OPS,ZPG,HPT,rBE,dNU,EbS,kAE,$NG,q_S,ABT,z0U,cBU,CPP,Ryz,uuT,vVS,JET,VsL,KZP,ImU,hyz,FZc,wDU,N74,T7T,oVS,xXL,B7T,eyG,Z0P,H0z,nVE,Gvv,rE4,PUz,WZT,kvT,UXW,XDU,mXT,AEU,DXS,pDG,cEE,tsT,S2T,gVU,QlP,u78,jl8,MNU,JHE,iaE,UJ,IkS,qr,ba4,w68,NeS,fkP,lkS,nAO,rHz,P5O,db4,Ub4,koE,$bW,X6T,mbT,DbG,cHG,tNG,p6T,pR,SAc,akE,YAc,LJT,slS,zGW,gAU,C5E,RfL,uPE,voG,QVU,jVc,MUU,JPT,VU4,ig8,KwP,hfL,bgU,fvz,efz,lvP,ZgT,HgW,noE,PYv,sJ,$IT,qw8,XJz,mIT,APS,
zK,gX,Y7,CR,yR,LwW,goU,RbO,CYz,vQ,yhz,uKz,vKT;_.RL=function(R,y){if(Error.captureStackTrace)Error.captureStackTrace(this,_.RL);else{var u=Error().stack;u&&(this.stack=u)}R&&(this.message=String(R));y!==void 0&&(this.cause=y)};
yG=function(){throw Error("E");};
RTU=function(R,y){y=String.fromCharCode.apply(null,y);return R==null?y:R+y};
QLz=function(R){var y=!1;y=y===void 0?!1:y;if(yzT){if(y&&(uUU?!R.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(R)))throw Error("F");R=(vS8||(vS8=new TextEncoder)).encode(R)}else{for(var u=0,v=new Uint8Array(3*R.length),Q=0;Q<R.length;Q++){var M=R.charCodeAt(Q);if(M<128)v[u++]=M;else{if(M<2048)v[u++]=M>>6|192;else{if(M>=55296&&M<=57343){if(M<=56319&&Q<R.length){var K=R.charCodeAt(++Q);if(K>=56320&&K<=57343){M=(M-55296)*1024+K-56320+65536;v[u++]=M>>18|
240;v[u++]=M>>12&63|128;v[u++]=M>>6&63|128;v[u++]=M&63|128;continue}else Q--}if(y)throw Error("F");M=65533}v[u++]=M>>12|224;v[u++]=M>>6&63|128}v[u++]=M&63|128}}R=u===v.length?v:v.subarray(0,u)}return R};
vW=function(R){_.uO.setTimeout(function(){throw R;},0)};
_.jv=function(R,y){return R.lastIndexOf(y,0)==0};
Jz=function(R,y){var u=R.length-y.length;return u>=0&&R.indexOf(y,u)==u};
_.iO=function(R){return/^[\s\xa0]*$/.test(R)};
_.K8=function(R,y){return R.indexOf(y)!=-1};
_.IL=function(R,y){return _.K8(R.toLowerCase(),y.toLowerCase())};
_.wE=function(R,y){var u=0;R=FU(String(R)).split(".");y=FU(String(y)).split(".");for(var v=Math.max(R.length,y.length),Q=0;u==0&&Q<v;Q++){var M=R[Q]||"",K=y[Q]||"";do{M=/(\d*)(\D*)(.*)/.exec(M)||["","","",""];K=/(\d*)(\D*)(.*)/.exec(K)||["","","",""];if(M[0].length==0&&K[0].length==0)break;u=jLG(M[1].length==0?0:parseInt(M[1],10),K[1].length==0?0:parseInt(K[1],10))||jLG(M[2].length==0,K[2].length==0)||jLG(M[2],K[2]);M=M[3];K=K[3]}while(u==0)}return u};
jLG=function(R,y){return R<y?-1:R>y?1:0};
_.NU=function(){var R=_.uO.navigator;return R&&(R=R.userAgent)?R:""};
Mv4=function(R){if(!oL||!f8)return!1;for(var y=0;y<f8.brands.length;y++){var u=f8.brands[y].brand;if(u&&_.K8(u,R))return!0}return!1};
ev=function(R){return _.K8(_.NU(),R)};
OP=function(){return oL?!!f8&&f8.brands.length>0:!1};
JzL=function(){return OP()?!1:ev("Opera")};
Vv8=function(){return OP()?!1:ev("Trident")||ev("MSIE")};
i8v=function(){return OP()?Mv4("Microsoft Edge"):ev("Edg/")};
n8=function(){return ev("Firefox")||ev("FxiOS")};
_.K4z=function(){return ev("Safari")&&!(_.GT()||(OP()?0:ev("Coast"))||JzL()||(OP()?0:ev("Edge"))||i8v()||(OP()?Mv4("Opera"):ev("OPR"))||n8()||ev("Silk")||ev("Android"))};
_.GT=function(){return OP()?Mv4("Chromium"):(ev("Chrome")||ev("CriOS"))&&!(OP()?0:ev("Edge"))||ev("Silk")};
_.Icz=function(){return ev("Android")&&!(_.GT()||n8()||JzL()||ev("Silk"))};
hT4=function(R){var y={};R.forEach(function(u){y[u[0]]=u[1]});
return function(u){return y[u.find(function(v){return v in y})]||""}};
b8T=function(R){var y=_.NU();if(R==="Internet Explorer"){if(Vv8())if((R=/rv: *([\d\.]*)/.exec(y))&&R[1])y=R[1];else{R="";var u=/MSIE +([\d\.]+)/.exec(y);if(u&&u[1])if(y=/Trident\/(\d.\d)/.exec(y),u[1]=="7.0")if(y&&y[1])switch(y[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=u[1];y=R}else y="";return y}var v=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");u=[];for(var Q;Q=v.exec(y);)u.push([Q[1],Q[2],Q[3]||void 0]);
y=hT4(u);switch(R){case "Opera":if(JzL())return y(["Version","Opera"]);if(OP()?Mv4("Opera"):ev("OPR"))return y(["OPR"]);break;case "Microsoft Edge":if(OP()?0:ev("Edge"))return y(["Edge"]);if(i8v())return y(["Edg"]);break;case "Chromium":if(_.GT())return y(["Chrome","CriOS","HeadlessChrome"])}return R==="Firefox"&&n8()||R==="Safari"&&_.K4z()||R==="Android Browser"&&_.Icz()||R==="Silk"&&ev("Silk")?(y=u[2])&&y[1]||"":""};
_.F4T=function(R){if(OP()&&R!=="Silk"){var y=f8.brands.find(function(u){return u.brand===R});
if(!y||!y.version)return NaN;y=y.version.split(".")}else{y=b8T(R);if(y==="")return NaN;y=y.split(".")}return y.length===0?NaN:Number(y[0])};
rE=function(){return oL?!!f8&&!!f8.platform:!1};
_.wWG=function(){return rE()?f8.platform==="Android":ev("Android")};
NEE=function(){return ev("iPhone")&&!ev("iPod")&&!ev("iPad")};
_.PW=function(){return NEE()||ev("iPad")||ev("iPod")};
_.TES=function(){return rE()?f8.platform==="macOS":ev("Macintosh")};
_.oSU=function(){return rE()?f8.platform==="Windows":ev("Windows")};
_.xUG=function(){return rE()?f8.platform==="Chrome OS":ev("CrOS")};
_.WW=function(R){return R[R.length-1]};
_.UP=function(R,y,u){y=_.BET(R,y,u);return y<0?null:typeof R==="string"?R.charAt(y):R[y]};
_.BET=function(R,y,u){for(var v=R.length,Q=typeof R==="string"?R.split(""):R,M=0;M<v;M++)if(M in Q&&y.call(u,Q[M],M,R))return M;return-1};
fc8=function(R){for(var y=_.kS,u=typeof R==="string"?R.split(""):R,v=R.length-1;v>=0;v--)if(v in u&&y.call(void 0,u[v],v,R))return v;return-1};
_.XU=function(R,y){return _.EP(R,y)>=0};
_.eTU=function(R,y){_.XU(R,y)||R.push(y)};
_.m4=function(R,y){y=_.EP(R,y);var u;(u=y>=0)&&_.lcE(R,y);return u};
_.lcE=function(R,y){Array.prototype.splice.call(R,y,1)};
_.Az=function(R){var y=R.length;if(y>0){for(var u=Array(y),v=0;v<y;v++)u[v]=R[v];return u}return[]};
_.tz=function(R,y){for(var u=1;u<arguments.length;u++){var v=arguments[u];if(_.p8(v)){var Q=R.length||0,M=v.length||0;R.length=Q+M;for(var K=0;K<M;K++)R[Q+K]=v[K]}else R.push(v)}};
_.Z8c=function(R,y,u,v){Array.prototype.splice.apply(R,O8T(arguments,1))};
O8T=function(R,y,u){return arguments.length<=2?Array.prototype.slice.call(R,y):Array.prototype.slice.call(R,y,u)};
H8E=function(R,y){y=y||R;for(var u=0,v=0,Q={};v<R.length;){var M=R[v++],K=_.Sv(M)?"o"+_.YS(M):(typeof M).charAt(0)+M;Object.prototype.hasOwnProperty.call(Q,K)||(Q[K]=!0,y[u++]=M)}y.length=u};
_.GT4=function(R,y,u){u=u||_.nSE;for(var v=0,Q=R.length,M;v<Q;){var K=v+(Q-v>>>1);var h=u(y,R[K]);h>0?v=K+1:(Q=K,M=!h)}return M?v:-v-1};
_.L8=function(R,y,u){if(!_.p8(R)||!_.p8(y)||R.length!=y.length)return!1;var v=R.length;u=u||rzP;for(var Q=0;Q<v;Q++)if(!u(R[Q],y[Q]))return!1;return!0};
_.nSE=function(R,y){return R>y?1:R<y?-1:0};
rzP=function(R,y){return R===y};
PO8=function(R,y,u){y=Array.prototype.splice.call(R,y,1);Array.prototype.splice.call(R,u,0,y[0])};
dUE=function(R){return W4v[R]||""};
ESG=function(R){if(!UUT)return _.zT(R);R=kTT.test(R)?R.replace(kTT,dUE):R;R=atob(R);for(var y=new Uint8Array(R.length),u=0;u<R.length;u++)y[u]=R.charCodeAt(u);return y};
$UT=function(R,y){R.__closure__error__context__984382||(R.__closure__error__context__984382={});R.__closure__error__context__984382.severity=y};
_.C8=function(R){R=Error(R);$UT(R,"warning");return R};
XWG=function(R,y){if(R!=null){var u;var v=(u=qPU)!=null?u:qPU={};u=v[R]||0;u>=y||(v[R]=u+1,R=Error(),$UT(R,"incident"),vW(R))}};
Rb=function(R,y,u){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(u===void 0?0:u)&&Symbol.for&&R?Symbol.for(R):R!=null?Symbol(R):Symbol():y};
DUz=function(R,y){uT||_.jg in R||mUP(R,Az4);R[_.jg]|=y};
MG=function(R,y){uT||_.jg in R||mUP(R,Az4);R[_.jg]=y};
pWT=function(R){if(4&R)return 512&R?512:1024&R?1024:0};
Vc=function(R){DUz(R,34);return R};
tvz=function(R){DUz(R,32);return R};
iT=function(){return typeof BigInt==="function"};
F5=function(R,y){return y===void 0?R.copyOnWrite!==Ib&&!!(2&(R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.jg]|0)):!!(2&y)&&R.copyOnWrite!==Ib};
_.G5=function(R,y){if(R!=null)if(typeof R==="string")R=R?new fY(R,Zw):_.nY();else if(R.constructor!==fY)if(czO&&R!=null&&R instanceof Uint8Array)R=R.length?new fY(new Uint8Array(R),Zw):_.nY();else{if(!y)throw Error();R=void 0}return R};
acL=function(R,y){if(typeof y!=="number"||y<0||y>=R.length)throw Error();};
SPT=function(R,y,u){var v=y&128?0:-1,Q=R.length,M;if(M=!!Q)M=R[Q-1],M=M!=null&&typeof M==="object"&&M.constructor===Object;var K=Q+(M?-1:0);for(y=y&128?1:0;y<K;y++)u(y-v,R[y]);if(M){R=R[Q-1];for(var h in R)!isNaN(h)&&u(+h,R[h])}};
dg=function(R){return R&128?PK:void 0};
Ui=function(R){R.isGuard_doNotManuallySetPrettyPlease=!0;return R};
L4W=function(){var R=YPT;return Ui(function(y){for(var u in R)if(y===R[u]&&!/^[0-9]+$/.test(u))return!0;return!1})};
_.k8=function(R){var y=R;if(sLT(y)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(y))throw Error(String(y));}else if(zTG(y)&&!Number.isSafeInteger(y))throw Error(String(y));return gSP?BigInt(R):R=COG(R)?R?"1":"0":sLT(R)?R.trim()||"0":String(R)};
Rcz=function(R,y){if(R.length>y.length)return!1;if(R.length<y.length||R===y)return!0;for(var u=0;u<R.length;u++){var v=R[u],Q=y[u];if(v>Q)return!1;if(v<Q)return!0}};
yLc=function(R){var y=R>>>0;Ei=y;$8=(R-y)/4294967296>>>0};
qG=function(R){if(R<0){yLc(-R);var y=_.V(u58(Ei,$8));R=y.next().value;y=y.next().value;Ei=R>>>0;$8=y>>>0}else yLc(R)};
v8W=function(R,y){var u=y*4294967296+(R>>>0);return Number.isSafeInteger(u)?u:_.X5(R,y)};
QbP=function(R,y){var u=y&2147483648;u&&(R=~R+1>>>0,y=~y>>>0,R==0&&(y=y+1>>>0));R=v8W(R,y);return typeof R==="number"?u?-R:R:u?"-"+R:R};
_.X5=function(R,y){y>>>=0;R>>>=0;if(y<=2097151)var u=""+(4294967296*y+R);else iT()?u=""+(BigInt(y)<<BigInt(32)|BigInt(R)):(u=(R>>>24|y<<8)&16777215,y=y>>16&65535,R=(R&16777215)+u*6777216+y*6710656,u+=y*8147497,y*=2,R>=1E7&&(u+=R/1E7>>>0,R%=1E7),u>=1E7&&(y+=u/1E7>>>0,u%=1E7),u=y+jbS(u)+jbS(R));return u};
jbS=function(R){R=String(R);return"0000000".slice(R.length)+R};
_.MgT=function(R,y){y&2147483648?iT()?R=""+(BigInt(y|0)<<BigInt(32)|BigInt(R>>>0)):(y=_.V(u58(R,y)),R=y.next().value,y=y.next().value,R="-"+_.X5(R,y)):R=_.X5(R,y);return R};
JLP=function(R){if(R.length<16)qG(Number(R));else if(iT())R=BigInt(R),Ei=Number(R&BigInt(4294967295))>>>0,$8=Number(R>>BigInt(32)&BigInt(4294967295));else{var y=+(R[0]==="-");$8=Ei=0;for(var u=R.length,v=y,Q=(u-y)%6+y;Q<=u;v=Q,Q+=6)v=Number(R.slice(v,Q)),$8*=1E6,Ei=Ei*1E6+v,Ei>=4294967296&&($8+=Math.trunc(Ei/4294967296),$8>>>=0,Ei>>>=0);y&&(y=_.V(u58(Ei,$8)),R=y.next().value,y=y.next().value,Ei=R,$8=y)}};
u58=function(R,y){y=~y;R?R=~R+1:y+=1;return[R,y]};
mV=function(R){return Array.prototype.slice.call(R)};
_.AL=function(R,y){throw Error(y===void 0?"unexpected value "+R+"!":y);};
_.Dw=function(R){if(R!=null&&typeof R!=="number")throw Error("L`"+typeof R+"`"+R);return R};
_.VgU=function(R){if(R==null||typeof R==="number")return R;if(R==="NaN"||R==="Infinity"||R==="-Infinity")return Number(R)};
iYW=function(R){if(R!=null&&typeof R!=="boolean")throw Error("M`"+_.tL(R)+"`"+R);return R};
_.KVG=function(R){if(R==null||typeof R==="boolean")return R;if(typeof R==="number")return!!R};
_.ab=function(R){switch(typeof R){case "bigint":return!0;case "number":return cK(R);case "string":return IwO.test(R);default:return!1}};
_.LY=function(R){if(!cK(R))throw _.C8("enum");return R|0};
_.gg=function(R){return R==null?R:cK(R)?R|0:void 0};
hcT=function(R){if(typeof R!=="number")throw _.C8("int32");if(!cK(R))throw _.C8("int32");return R|0};
_.CY=function(R){return R==null?R:hcT(R)};
_.y8=function(R){if(R==null)return R;if(typeof R==="string"&&R)R=+R;else if(typeof R!=="number")return;return cK(R)?R|0:void 0};
_.bYE=function(R){if(R==null)return R;if(typeof R==="string"&&R)R=+R;else if(typeof R!=="number")return;return cK(R)?R>>>0:void 0};
Tgz=function(R){var y=0;y=y===void 0?0:y;if(!_.ab(R))throw _.C8("int64");var u=typeof R;switch(y){case 512:switch(u){case "string":return uJ(R);case "bigint":return String(vH(64,R));default:return FVv(R)}case 1024:switch(u){case "string":return wKG(R);case "bigint":return _.k8(vH(64,R));default:return NgP(R)}case 0:switch(u){case "string":return uJ(R);case "bigint":return _.k8(vH(64,R));default:return Q8(R)}default:return _.AL(y,"Unknown format requested type for int64")}};
jK=function(R){return R==null?R:Tgz(R)};
o8O=function(R){if(R[0]==="-")return!1;var y=R.length;return y<20?!0:y===20&&Number(R.substring(0,6))<184467};
xGG=function(R){var y=R.length;return R[0]==="-"?y<20?!0:y===20&&Number(R.substring(0,7))>-922337:y<19?!0:y===19&&Number(R.substring(0,6))<922337};
BgE=function(R){if(R<0){qG(R);var y=_.X5(Ei,$8);R=Number(y);return MV(R)?R:y}y=String(R);if(o8O(y))return y;qG(R);return v8W(Ei,$8)};
fwG=function(R){if(xGG(R))return R;JLP(R);return _.MgT(Ei,$8)};
ecG=function(R){if(o8O(R))return R;JLP(R);return _.X5(Ei,$8)};
Q8=function(R){R=JI(R);MV(R)||(qG(R),R=QbP(Ei,$8));return R};
_.lwW=function(R){R=JI(R);return R>=0&&MV(R)?R:BgE(R)};
FVv=function(R){R=JI(R);if(MV(R))R=String(R);else{var y=String(R);xGG(y)?R=y:(qG(R),R=_.MgT(Ei,$8))}return R};
_.OYG=function(R){R=JI(R);if(R>=0&&MV(R))R=String(R);else{var y=String(R);o8O(y)?R=y:(qG(R),R=_.X5(Ei,$8))}return R};
uJ=function(R){var y=JI(Number(R));if(MV(y))return String(y);y=R.indexOf(".");y!==-1&&(R=R.substring(0,y));return fwG(R)};
wKG=function(R){var y=JI(Number(R));if(MV(y))return _.k8(y);y=R.indexOf(".");y!==-1&&(R=R.substring(0,y));return iT()?_.k8(vH(64,BigInt(R))):_.k8(fwG(R))};
NgP=function(R){return MV(R)?_.k8(Q8(R)):_.k8(FVv(R))};
_.ZYL=function(R){return MV(R)?_.k8(_.lwW(R)):_.k8(_.OYG(R))};
_.HYO=function(R){var y=JI(Number(R));if(MV(y)&&y>=0)return String(y);y=R.indexOf(".");y!==-1&&(R=R.substring(0,y));return ecG(R)};
_.n8S=function(R){var y=JI(Number(R));if(MV(y)&&y>=0)return _.k8(y);y=R.indexOf(".");y!==-1&&(R=R.substring(0,y));return iT()?_.k8((0,_.V8)(64,BigInt(R))):_.k8(ecG(R))};
_.rLP=function(R){if(R==null)return R;if(typeof R==="bigint")return G5U(R)?R=Number(R):(R=vH(64,R),R=G5U(R)?Number(R):String(R)),R;if(_.ab(R))return typeof R==="number"?Q8(R):uJ(R)};
PTO=function(R,y){y=y===void 0?!1:y;var u=typeof R;if(R==null)return R;if(u==="bigint")return String(vH(64,R));if(_.ab(R))return u==="string"?uJ(R):y?FVv(R):Q8(R)};
_.WVE=function(R){var y=typeof R;if(R==null)return R;if(y==="bigint")return _.k8(vH(64,R));if(_.ab(R))return y==="string"?wKG(R):NgP(R)};
dG8=function(R){if(R==null)return R;var y=typeof R;if(y==="bigint")return String(vH(64,R));if(_.ab(R)){if(y==="string")return uJ(R);if(y==="number")return Q8(R)}};
UGL=function(R){if(R==null)return R;var y=typeof R;if(y==="bigint")return String((0,_.V8)(64,R));if(_.ab(R)){if(y==="string")return _.HYO(R);if(y==="number")return _.lwW(R)}};
_.hI=function(R){if(typeof R!=="string")throw Error();return R};
bJ=function(R){if(R!=null&&typeof R!=="string")throw Error();return R};
_.wa=function(R){return R==null||typeof R==="string"?R:void 0};
E8T=function(R,y,u,v){if(R!=null&&R[NV]===xM)return R;if(!Array.isArray(R))return u?v&2?((R=y[k5W])||(R=new y,Vc(R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),R=y[k5W]=R),y=R):y=new y:y=void 0,y;u=R[_.jg]|0;v=u|v&32|v&2;v!==u&&MG(R,v);return new y(R)};
$Gc=function(R,y,u){R=y?hcT(R):_.y8(R);return R==null?u?0:void 0:R|0};
qiO=function(R){return R};
XKS=function(R){return R};
ALL=function(R,y,u,v,Q,M){R=E8T(R,v,u,M);Q&&(R=mGW(R));return R};
DG4=function(R){return[R,this.get(R)]};
cLU=function(){return pKE||(pKE=new BH(Vc([]),void 0,void 0,void 0,tgU))};
aw4=function(R){var y=Om(Zo);return y?R[y]:void 0};
LVU=function(R,y){var u=u===void 0?!1:u;if(Om(SiU)&&Om(Zo)&&void 0===SiU){var v=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q=v[Zo];if(!Q)return;if(Q=Q.reviveUnknownFields)try{Q(v,y,YiG);return}catch(M){vW(M)}}u&&(R=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(u=Om(Zo))&&u in R&&(R=R[u])&&delete R[y])};
zcT=function(R,y){var u=Om(Zo),v;uT&&u&&((v=R[u])==null?void 0:v[y])!=null&&XWG(sbE,3)};
CTP=function(R,y){y<100||XWG(g8v,1)};
QP4=function(R,y,u,v){var Q=v!==void 0;v=!!v;var M=Om(Zo),K;!Q&&uT&&M&&(K=R[M])&&R7v(K,CTP);M=[];var h=R.length;K=4294967295;var b=!1,N=!!(y&64),T=N?y&128?0:-1:void 0;if(!(y&1)){var x=h&&R[h-1];x!=null&&typeof x==="object"&&x.constructor===Object?(h--,K=h):x=void 0;if(N&&!(y&128)&&!Q){b=!0;var B;K=((B=yIE)!=null?B:qiO)(K-T,T,R,x,void 0)+T}}y=void 0;for(B=0;B<h;B++){var l=R[B];if(l!=null&&(l=u(l,v))!=null)if(N&&B>=K){var Z=B-T,P=void 0;((P=y)!=null?P:y={})[Z]=l}else M[B]=l}if(x)for(var k in x)h=x[k],
h!=null&&(h=u(h,v))!=null&&(B=+k,l=void 0,N&&!Number.isNaN(B)&&(l=B+T)<K?M[l]=h:(B=void 0,((B=y)!=null?B:y={})[k]=h));y&&(b?M.push(y):M[K]=y);Q&&Om(Zo)&&(R=aw4(R))&&R instanceof upS&&(M[Zo]=vM4(R));return M};
MKG=function(R){R[0]=jPL(R[0]);R[1]=jPL(R[1]);return R};
jPL=function(R){switch(typeof R){case "number":return Number.isFinite(R)?R:""+R;case "bigint":return G5U(R)?Number(R):""+R;case "boolean":return R?1:0;case "object":if(Array.isArray(R)){var y=R[_.jg]|0;return R.length===0&&y&1?void 0:QP4(R,y,jPL)}if(R!=null&&R[NV]===xM)return JIT(R);if(R instanceof fY){y=R.JSC$8786_value_;if(y==null)R="";else if(typeof y==="string")R=y;else{if(UUT){for(var u="",v=0,Q=y.length-10240;v<Q;)u+=String.fromCharCode.apply(null,y.subarray(v,v+=10240));u+=String.fromCharCode.apply(null,
v?y.subarray(v):y);y=btoa(u)}else y=_.nZ(y);R=R.JSC$8786_value_=y}return R}if(R instanceof BH)return R=R.size!==0?Array.from(Ga.prototype.entries.call(R),MKG):void 0,R;return}return R};
ra=function(R,y){if(y){yIE=y==null||y===qiO||y[VKE]!==iZO?qiO:y;try{return JIT(R)}finally{yIE=void 0}}return JIT(R)};
JIT=function(R){R=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return QP4(R,R[_.jg]|0,jPL)};
h7S=function(R){switch(typeof R){case "boolean":return KgO||(KgO=[0,void 0,!0]);case "number":return R>0?void 0:R===0?IoT||(IoT=[0,void 0]):[-R,void 0];case "string":return[0,R];case "object":return R}};
bZP=function(R,y,u){return R=_.PH(R,y[0],y[1],u?1:2)};
_.PH=function(R,y,u,v){v=v===void 0?0:v;if(R==null){var Q=32;u?(R=[u],Q|=128):R=[];y&&(Q=Q&-8380417|(y&1023)<<13)}else{if(!Array.isArray(R))throw Error("O");Q=R[_.jg]|0;if(FgT&&1&Q)throw Error("P");2048&Q&&!(2&Q)&&wHL();if(Q&256)throw Error("Q");if(Q&64)return v!==0||Q&2048||MG(R,Q|2048),R;if(u&&(Q|=128,u!==R[0]))throw Error("R");a:{u=R;Q|=64;var M=u.length;if(M){var K=M-1,h=u[K];if(h!=null&&typeof h==="object"&&h.constructor===Object){y=Q&128?0:-1;K-=y;if(K>=1024)throw Error("T");for(var b in h)M=
+b,M<K&&(u[M+y]=h[b],delete h[b]);Q=Q&-8380417|(K&1023)<<13;break a}}if(y){b=Math.max(y,M-(Q&128?0:-1));if(b>1024)throw Error("U");Q=Q&-8380417|(b&1023)<<13}}}Q|=64;v===0&&(Q|=2048);MG(R,Q);return R};
wHL=function(){if(FgT)throw Error("S");XWG(NaT,5)};
xVz=function(R,y){if(typeof R!=="object")return R;if(Array.isArray(R)){var u=R[_.jg]|0;return R.length===0&&u&1?void 0:TaO(R,u,y)}if(R!=null&&R[NV]===xM)return oMU(R);if(R instanceof BH){y=R.arrayState;if(y&2)return R;if(!R.size)return;u=Vc(Array.from(Ga.prototype.entries.call(R)));if(R.valueCtor)for(R=0;R<u.length;R++){var v=u[R],Q=v[1];Q==null||typeof Q!=="object"?Q=void 0:Q!=null&&Q[NV]===xM?Q=oMU(Q):Array.isArray(Q)?Q=TaO(Q,Q[_.jg]|0,!!(y&32)):Q=void 0;v[1]=Q}return u}if(R instanceof fY)return R};
TaO=function(R,y,u){if(y&2)return R;!u||4096&y||16&y?R=Um(R,y,!1,u&&!(y&16)):(DUz(R,34),y&4&&Object.freeze(R));return R};
BaU=function(R,y,u){R=new R.constructor(y);u&&(R.copyOnWrite=Ib);R.noLegacyNull=Ib;return R};
oMU=function(R){var y=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u=y[_.jg]|0;return F5(R,u)?R:foz(R,y,u)?BaU(R,y):Um(y,u)};
Um=function(R,y,u,v){v!=null||(v=!!(34&y));R=QP4(R,y,xVz,v);v=32;u&&(v|=2);y=y&8380609|v;MG(R,y);return R};
mGW=function(R){var y=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u=y[_.jg]|0;return F5(R,u)?foz(R,y,u)?BaU(R,y,!0):new R.constructor(Um(y,u,!1)):R};
kM=function(R){if(R.copyOnWrite!==Ib)return!1;var y=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;y=Um(y,y[_.jg]|0);DUz(y,2048);R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=y;R.copyOnWrite=void 0;R.noLegacyNull=void 0;return!0};
Em=function(R){if(!kM(R)&&F5(R,R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.jg]|0))throw Error();};
qV=function(R,y){y===void 0&&(y=R[_.jg]|0);y&32&&!(y&4096)&&MG(R,y|4096)};
foz=function(R,y,u){return u&2?!0:u&32&&!(u&4096)?(MG(y,u|2),R.copyOnWrite=Ib,!0):!1};
Xp=function(R,y,u,v,Q){var M=u+(Q?0:-1),K=R.length-1;if(K>=1+(Q?0:-1)&&M>=K){var h=R[K];if(h!=null&&typeof h==="object"&&h.constructor===Object)return h[u]=v,y}if(M<=K)return R[M]=v,y;if(v!==void 0){var b;K=((b=y)!=null?b:y=R[_.jg]|0)>>13&1023||536870912;u>=K?v!=null&&(M={},R[K+(Q?0:-1)]=(M[u]=v,M)):R[M]=v}return y};
_.Do=function(R,y,u,v,Q){var M=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K=M[_.jg]|0;v=F5(R,K)?1:v;Q=!!Q||v===3;v===2&&kM(R)&&(M=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K=M[_.jg]|0);R=e7T(M,y);var h=R===mg?7:R[_.jg]|0,b=loG(h,K);var N=4&b?!1:!0;if(N){4&b&&(R=mV(R),h=0,b=AI(b,K),K=Xp(M,K,y,R));for(var T=0,x=0;T<R.length;T++){var B=u(R[T]);B!=null&&(R[x++]=B)}x<T&&(R.length=x);u=(b|4)&-513;b=u&=-1025;b&=-4097}b!==h&&(MG(R,b),2&b&&Object.freeze(R));return R=OZG(R,b,M,
K,y,v,N,Q)};
OZG=function(R,y,u,v,Q,M,K,h){var b=y;M===1||(M!==4?0:2&y||!(16&y)&&32&v)?tI(y)||(y|=!R.length||K&&!(4096&y)||32&v&&!(4096&y||16&y)?2:256,y!==b&&MG(R,y),Object.freeze(R)):(M===2&&tI(y)&&(R=mV(R),b=0,y=AI(y,v),v=Xp(u,v,Q,R)),tI(y)||(h||(y|=16),y!==b&&MG(R,y)));2&y||!(4096&y||16&y)||qV(u,v);return R};
e7T=function(R,y,u){R=cH(R,y,u);return Array.isArray(R)?R:mg};
loG=function(R,y){2&y&&(R|=2);return R|1};
tI=function(R){return!!(2&R)&&!!(4&R)||!!(256&R)};
ZZE=function(R){return _.G5(R,!0)};
HZU=function(R,y){var u=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,v=u[_.jg]|0;a:{var Q=v;v=F5(R,v);!v&&kM(R)&&(u=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q=u[_.jg]|0);var M=cH(u,y);R=!1;if(M==null){if(v){y=cLU();break a}M=[]}else if(M.constructor===BH)if(M.arrayState&2&&!v)M=Array.from(Ga.prototype.entries.call(M));else{y=M;break a}else Array.isArray(M)?R=!!((M[_.jg]|0)&2):M=[];if(v){if(!M.length){y=cLU();break a}R||(R=!0,Vc(M))}else if(R){R=!1;v=M;v=mV(v);for(M=0;M<
v.length;M++){var K=v[M]=mV(v[M]);Array.isArray(K[1])&&(K[1]=Vc(K[1]))}M=v}!R&&Q&32&&tvz(M);v=new BH(M,void 0,$Gc,$Gc);Q=Xp(u,Q,y,v);R||qV(u,Q);y=v}return y};
_.aP=function(R,y,u,v){Em(R);var Q=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=Q[_.jg]|0;if(u==null)return Xp(Q,M,y),R;var K=u===mg?7:u[_.jg]|0,h=K,b=tI(K),N=b||Object.isFrozen(u);b||(K=0);N||(u=mV(u),h=0,K=AI(K,M),N=!1);K|=5;var T;b=(T=pWT(K))!=null?T:0;for(T=0;T<u.length;T++){var x=u[T],B=v(x,b);Object.is(x,B)||(N&&(u=mV(u),h=0,K=AI(K,M),N=!1),u[T]=B)}K!==h&&(N&&(u=mV(u),K=AI(K,M)),MG(u,K));Xp(Q,M,y,u);return R};
_.SK=function(R,y,u,v,Q){Em(R);var M=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Xp(M,M[_.jg]|0,y,(v==="0"?Number(u)===0:u===v)?void 0:u,Q);return R};
_.nMP=function(R,y,u){if(y&2)throw Error();var v=dg(y),Q=e7T(R,u,v),M=Q===mg?7:Q[_.jg]|0,K=loG(M,y);if(2&K||tI(K)||16&K)Q=mV(Q),M=0,K=AI(K,y),Xp(R,y,u,Q,v);K&=-13;K!==M&&MG(Q,K);return Q};
Gav=function(R){if(uT){var y;return(y=R[YM])!=null?y:R[YM]=new Map}if(YM in R)return R[YM];y=new Map;Object.defineProperty(R,YM,{value:y});return y};
PJT=function(R,y,u,v,Q){var M=Gav(R),K=rIc(M,R,y,u,Q);K!==v&&(K&&(y=Xp(R,y,K,void 0,Q)),M.set(u,v));return y};
rIc=function(R,y,u,v,Q){var M=R.get(v);if(M!=null)return M;for(var K=M=0;K<v.length;K++){var h=v[K];cH(y,h,Q)!=null&&(M!==0&&(u=Xp(y,u,M,void 0,Q)),M=h)}R.set(v,M);return M};
WgS=function(R,y,u,v,Q){var M=!1;v=cH(R,v,Q,function(K){var h=E8T(K,u,!1,y);M=h!==K&&h!=null;return h});
if(v!=null)return M&&!F5(v)&&qV(R,y),v};
dV4=function(R,y,u,v,Q,M,K,h){var b=F5(R,u);M=b?1:M;K=!!K||M===3;b=h&&!b;(M===2||b)&&kM(R)&&(y=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u=y[_.jg]|0);R=e7T(y,Q);var N=R===mg?7:R[_.jg]|0,T=loG(N,u);if(h=!(4&T)){var x=R,B=u,l=!!(2&T);l&&(B|=2);for(var Z=!l,P=!0,k=0,E=0;k<x.length;k++){var D=E8T(x[k],v,!1,B);if(D instanceof v){if(!l){var z=F5(D);Z&&(Z=!z);P&&(P=z)}x[E++]=D}}E<k&&(x.length=E);T|=4;T=P?T&-4097:T|4096;T=Z?T|8:T&-9}T!==N&&(MG(R,T),2&T&&Object.freeze(R));if(b&&!(8&T||!R.length&&
(M===1||(M!==4?0:2&T||!(16&T)&&32&u)))){tI(T)&&(R=mV(R),T=AI(T,u),u=Xp(y,u,Q,R));v=R;b=T;for(N=0;N<v.length;N++)x=v[N],T=mGW(x),x!==T&&(v[N]=T);b|=8;T=b=v.length?b|4096:b&-4097;MG(R,T)}return R=OZG(R,T,y,u,Q,M,h,K)};
UVL=function(R){R==null&&(R=void 0);return R};
AI=function(R,y){return R=(2&y?R|2:R&-3)&-273};
_.kaz=function(R,y,u,v,Q){Em(R);y=_.Do(R,y,Q,2,!0);var M;Q=(M=pWT(y===mg?7:y[_.jg]|0))!=null?M:0;y.push(u(v,Q));return R};
EMT=function(R,y,u,v,Q,M,K){Em(R);var h=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;R=dV4(R,h,h[_.jg]|0,u,y,2,!0);if(M&&K)Q!=null||(Q=R.length-1),acL(R,Q),R.splice(Q,M),R.length||(R[_.jg]&=-4097);else{if(M){if(typeof Q!=="number"||Q<0||Q>R.length)throw Error();}else v=v!=null?v:new u;Q!=void 0?R.splice(Q,M,v):R.push(v);Q=u=R===mg?7:R[_.jg]|0;(v=F5(v))?(u&=-9,R.length===1&&(u&=-4097)):u|=4096;u!==Q&&MG(R,u);v||qV(h)}};
qmG=function(R,y){if(typeof R==="string")return new LZ(ESG(R),y);if(Array.isArray(R))return new LZ(new Uint8Array(R),y);if(R.constructor===Uint8Array)return new LZ(R,!1);if(R.constructor===ArrayBuffer)return R=new Uint8Array(R),new LZ(R,!1);if(R.constructor===fY)return y=$VT(R)||new Uint8Array(0),new LZ(y,!0,R);if(R instanceof Uint8Array)return R=R.constructor===Uint8Array?R:new Uint8Array(R.buffer,R.byteOffset,R.byteLength),new LZ(R,!1);throw Error();};
sm=function(){var R=function(){throw Error();};
Object.setPrototypeOf(R,R.prototype);return R};
mV4=function(R,y){var u=u===void 0?XHP:u;return new CZ(R,y,u)};
tKT=function(R,y,u,v,Q){y=AIT(y,v);y!=null&&(u=_.DVU(R,u),Q(y,R),_.pHE(R,u))};
RK=function(R,y,u,v){var Q=v[R];if(Q)return Q;Q={};Q.binaryFields=v;Q.messageMetadata=h7S(v[0]);var M=v[1],K=1;M&&M.constructor===Object&&(Q.extensions=M,M=v[++K],typeof M==="function"&&(Q.isMessageSet=!0,cIG!=null||(cIG=M),aov!=null||(aov=v[K+1]),M=v[K+=2]));for(var h={};M&&SmT(M);){for(var b=0;b<M.length;b++)h[M[b]]=M;M=v[++K]}for(b=1;M!==void 0;){typeof M==="number"&&(b+=M,M=v[++K]);var N=void 0;if(M instanceof CZ)var T=M;else T=YmL,K--;M=void 0;if((M=T)==null?0:M.$$isMsg){M=v[++K];N=v;var x=K;
typeof M==="function"&&(M=M(),N[x]=M);N=M}M=v[++K];x=b+1;typeof M==="number"&&M<0&&(x-=M,M=v[++K]);for(;b<x;b++){var B=h[b];N?u(Q,b,T,N,B):y(Q,b,T,B)}}return v[R]=Q};
SmT=function(R){return Array.isArray(R)&&!!R.length&&typeof R[0]==="number"&&R[0]>0};
sPS=function(R){return Array.isArray(R)?R[0]instanceof CZ?R:[LgP,R]:[R,void 0]};
AIT=function(R,y){if(R instanceof _.y4)return R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(R))return bZP(R,y,!1)};
z7v=function(R,y,u,v){var Q=u.$$binaryReaderFn;R[y]=v?function(M,K,h){return Q(M,K,h,v)}:Q};
CJz=function(R,y,u,v,Q){var M=u.$$binaryReaderFn,K,h;R[y]=function(b,N,T){return M(b,N,T,h||(h=RK(gMO,z7v,CJz,v).messageMetadata),K||(K=RFT(v)),Q)}};
RFT=function(R){var y=R[yqc];if(y!=null)return y;var u=RK(gMO,z7v,CJz,R);y=u.isMessageSet?function(v,Q){return cIG(v,Q,u)}:function(v,Q){for(;urG(Q)&&Q.nextWireType_!=4;){var M=Q.nextField_,K=u[M];
if(K==null){var h=u.extensions;h&&(h=h[M])&&(h=vEU(h),h!=null&&(K=u[M]=h))}if(K==null||!K(Q,v,M)){h=Q;K=h.fieldCursor_;QKO(h);if(h.discardUnknownFields)var b=void 0;else{var N=h.decoder_.cursor_-K;h.decoder_.cursor_=K;b=jKc(h.decoder_,N)}N=h=K=void 0;var T=v;b&&((K=(h=(N=T[Zo])!=null?N:T[Zo]=new upS)[M])!=null?K:h[M]=[]).push(b)}}if(v=aw4(v))v.reviveUnknownFields=u.binaryFields[MyO];return!0};
R[yqc]=y;R[MyO]=JqW.bind(R);return y};
JqW=function(R,y,u,v){var Q=this[gMO],M=this[yqc],K=bZP(void 0,Q.messageMetadata,!1),h=aw4(R);if(h){var b=!1,N=Q.extensions;if(N){Q=function(Z,P,k){if(k.length!==0)if(N[P])for(Z=_.V(k),P=Z.next();!P.done;P=Z.next()){P=Vyv(P.value);try{b=!0,M(K,P)}finally{P.free()}}else v==null||v(R,P,k)};
if(y==null)R7v(h,Q);else if(h!=null){var T=h[y];T&&Q(h,y,T)}if(b){var x=R[_.jg]|0;if(x&2&&x&2048&&(u==null||!u.reviveIntoImmutable))throw Error();var B=dg(x),l=function(Z,P){if(cH(R,Z,B)!=null)switch(u==null?void 0:u.resolutionBehavior){case 1:return;default:throw Error();}P!=null&&(x=Xp(R,x,Z,P,B));delete h[Z]};
y==null?SPT(K,K[_.jg]|0,function(Z,P){l(Z,P)}):l(y,cH(K,y,B))}}}};
vEU=function(R){R=sPS(R);var y=R[0].$$binaryReaderFn;if(R=R[1]){var u=RFT(R),v=RK(gMO,z7v,CJz,R).messageMetadata;return function(Q,M,K){return y(Q,M,K,v,u)}}return y};
iKv=function(R,y,u){R[y]=u.$$binaryWriterFn};
I2W=function(R,y,u,v){var Q,M,K=u.$$binaryWriterFn;R[y]=function(h,b,N){return K(h,b,N,M||(M=RK(KK8,iKv,I2W,v).messageMetadata),Q||(Q=hFG(v)))}};
hFG=function(R){var y=R[bKW];if(!y){var u=RK(KK8,iKv,I2W,R);y=function(v,Q){return FKL(v,Q,u)};
R[bKW]=y}return y};
FKL=function(R,y,u){SPT(R,R[_.jg]|0,function(v,Q){if(Q!=null){var M=wgT(u,v);M?M(y,Q,v):v<500||XWG(NC8,3)}});
(R=aw4(R))&&R7v(R,function(v,Q,M){ub(y,y.encoder_.end());for(v=0;v<M.length;v++)ub(y,$VT(M[v])||new Uint8Array(0))})};
wgT=function(R,y){var u=R[y];if(u)return u;if(u=R.extensions)if(u=u[y]){u=sPS(u);var v=u[0].$$binaryWriterFn;if(u=u[1]){var Q=hFG(u),M=RK(KK8,iKv,I2W,u).messageMetadata;u=R.isMessageSet?aov(M,Q):function(K,h,b){return v(K,h,b,M,Q)}}else u=v;
return R[y]=u}};
_.TCE=function(R,y,u){if(Array.isArray(y)){var v=y[_.jg]|0;if(v&4)return y;for(var Q=0,M=0;Q<y.length;Q++){var K=R(y[Q]);K!=null&&(y[M++]=K)}M<Q&&(y.length=M);u&&(MG(y,(v|5)&-1537),v&2&&Object.freeze(y));return y}};
_.Q4=function(R,y,u){return new CZ(R,y,u)};
_.oEz=function(R,y,u){return new CZ(R,y,u)};
_.jy=function(R,y,u){Xp(R,R[_.jg]|0,y,u,dg(R[_.jg]|0))};
BCc=function(R,y,u){y=_.VgU(y);y!=null&&(_.Jq(R,u,1),R=R.encoder_,u=xyL||(xyL=new DataView(new ArrayBuffer(8))),u.setFloat64(0,+y,!0),Ei=u.getUint32(0,!0),$8=u.getUint32(4,!0),_.V4(R,Ei),_.V4(R,$8))};
_.ib=function(R,y,u){y=dG8(y);if(y!=null){switch(typeof y){case "string":f2G(y)}if(y!=null)switch(_.Jq(R,u,0),typeof y){case "number":R=R.encoder_;qG(y);eFv(R,Ei,$8);break;case "bigint":u=BigInt.asUintN(64,y);u=new l2G(Number(u&BigInt(4294967295)),Number(u>>BigInt(32)));eFv(R.encoder_,u.JSC$8830_lo,u.JSC$8830_hi);break;default:u=f2G(y),eFv(R.encoder_,u.JSC$8830_lo,u.JSC$8830_hi)}}};
ZKW=function(R,y,u){y=_.y8(y);y!=null&&y!=null&&(_.Jq(R,u,0),_.OK8(R.encoder_,y))};
_.nEP=function(R,y,u){HKz(R,u,UGL(y))};
_.GBT=function(R,y,u){y=_.KVG(y);y!=null&&(_.Jq(R,u,0),R.encoder_.JSC$8832_buffer_.push(y?1:0))};
_.Pbv=function(R,y,u){y=_.wa(y);y!=null&&rqW(R,u,QLz(y))};
WKP=function(R,y,u,v,Q){y=AIT(y,v);y!=null&&(u=_.DVU(R,u),Q(y,R),_.pHE(R,u))};
_.dyU=function(R,y,u){y=y==null||typeof y=="string"||y instanceof fY?y:void 0;y!=null&&rqW(R,u,qmG(y,!0).buffer)};
_.UyT=function(R,y,u){y=_.y8(y);y!=null&&(y=parseInt(y,10),_.Jq(R,u,0),_.OK8(R.encoder_,y))};
_.KK=function(R,y){return function(u,v){var Q={treatNewDataAsImmutable:!0};v&&Object.assign(Q,v);u=Vyv(u,void 0,void 0,Q);try{var M=new R,K=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;RFT(y)(K,u);var h=M}finally{u.free()}return h}};
_.IK=function(R){return function(y){return kBU(y,R)}};
EEW=function(R){return function(){return kBU(this,R)}};
_.$y4=function(R){return Ui(function(y){return y instanceof R&&!F5(y)})};
_.hq=function(R){return function(y){return qoS(R,y)}};
Dyz=function(R,y){return XgU({child:R,origin:y||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:myT,getPayloadCase:function(u){return u.getPayloadCase()},
createInitMessage:function(u){var v=new bb,Q=new Aqc;u=_.wC(Q,1,u);return _.Ny(v,5,oK,u)}})};
Bg=function(R){return{valueOf:R}.valueOf()};
tyS=function(){var R=null;if(!pgL)return R;try{var y=function(u){return u};
R=pgL.createPolicy("goog#html",{createHTML:y,createScript:y,createScriptURL:y})}catch(u){}return R};
a2S=function(){cqO===void 0&&(cqO=tyS());return cqO};
_.lb=function(R){var y=a2S();R=y?y.createScriptURL(R):R;return new ey(R)};
_.Oo=function(R){if(R instanceof ey)return R.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.Z2=function(R){return Object.isFrozen(R)&&Object.isFrozen(R.raw)};
YoL=function(R){return R.toString().indexOf("`")===-1};
nK=function(R){return new _.Hg(LKv,R)};
GB=function(R){return R instanceof _.Hg};
_.Pg=function(R){if(GB(R))return R.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
Wg=function(R){return new sKz(function(y){return y.substr(0,R.length+1).toLowerCase()===R+":"})};
Uo=function(R,y){y=y===void 0?zFz:y;if(GB(R))return R;for(var u=0;u<y.length;++u){var v=y[u];if(v instanceof sKz&&v.isValid(R))return nK(R)}};
_.Eo=function(R,y){y=y===void 0?zFz:y;return Uo(R,y)||kE};
_.$E=function(R){var y=window;if(typeof MediaSource!=="undefined"&&R instanceof MediaSource||typeof y.ManagedMediaSource!=="undefined"&&R instanceof y.ManagedMediaSource)return nK(URL.createObjectURL(R));y=R.type;y.toLowerCase()==="application/octet-stream"?y=!0:(y=y.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),y=(y==null?void 0:y.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(y[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(y[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(y[1])||/^font\/[\w-]+$/i.test(y[1])));if(!y)throw Error("Z");return nK(URL.createObjectURL(R))};
_.gEP=function(R){for(var y=_.qy.apply(1,arguments),u=[R[0]],v=0;v<y.length;v++)u.push(String(y[v])),u.push(R[v+1]);return nK(u.join(""))};
_.RUz=function(R){if(!Cb8){a:{var y=document.createElement("a");try{y.href=R}catch(u){R=void 0;break a}R=y.protocol;R=R===":"||R===""?"https:":R}return R}try{y=new URL(R)}catch(u){return"https:"}return y.protocol};
_.mK=function(R){R instanceof _.Hg?R=_.Pg(R):R=yaG.test(R)?R:void 0;return R};
Aq=function(R,y){y=_.mK(y);y!==void 0&&(R.href=y)};
pK=function(R){var y=a2S();R=y?y.createHTML(R):R;return new D2(R)};
tq=function(R){if(R instanceof D2)return R.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.cg=function(R,y){R.src=_.Oo(y).toString()};
uoW=function(R,y){R.setAttribute("sandbox","");for(var u=0;u<y.length;u++)R.sandbox.supports&&!R.sandbox.supports(y[u])||R.sandbox.add(y[u])};
_.Q1P=function(R,y,u){R.removeAttribute("srcdoc");switch(y){case 0:if(u instanceof ey)throw new vL4("TrustedResourceUrl",0);uoW(R,[]);y=_.mK(u);y!==void 0&&(R.src=y);break;case 1:if(!(u instanceof ey))throw new vL4(typeof u,1);uoW(R,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.cg(R,u);break;case 2:if(u instanceof ey)throw new vL4("TrustedResourceUrl",2);uoW(R,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
y=_.mK(u);y!==void 0&&(R.src=y);break;default:_.AL(y)}};
_.aK=function(R,y,u,v){y=_.mK(y);return y!==void 0?R.open(y,u,v):null};
_.Sy=function(R){R=R===void 0?document:R;var y,u;R=(u=(y=R).querySelector)==null?void 0:u.call(y,"script[nonce]");return R==null?"":R.nonce||R.getAttribute("nonce")||""};
_.LK=function(R){var y=a2S();R=y?y.createScript(R):R;return new _.YE(R)};
j1z=function(R){if(R instanceof _.YE)return R.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
MLT=function(R){var y=_.Sy(R.ownerDocument);y&&R.setAttribute("nonce",y)};
_.zB=function(R,y){R.textContent=j1z(y);MLT(R)};
_.gC=function(R,y){R.src=_.Oo(y);MLT(R)};
_.CK=function(R,y){if(R.nodeType===1&&/^(script|style)$/i.test(R.tagName))throw Error("Z");R.innerHTML=tq(y)};
_.R1=function(R,y,u,v){if(R.length===0)throw Error("Z");R=R.map(function(M){if(M instanceof Jaz)M=M.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return M});
var Q=u.toLowerCase();if(R.every(function(M){return Q.indexOf(M)!==0}))throw Error("aa`"+u);
y.setAttribute(u,v)};
_.y6=function(R,y,u){if(y instanceof ey)R.href=_.Oo(y).toString(),R.rel=u;else{if(VLT.indexOf(u)===-1)throw Error("ba`"+u);y=_.mK(y);y!==void 0&&(R.href=y,R.rel=u)}};
i$4=function(R){return"function"==typeof _.uB&&R instanceof _.uB};
_.K_S=function(R){if(i$4(R))return R.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.ItU=function(R,y){y=_.mK(y);y!==void 0&&(R.href=y)};
hUU=function(R,y){R&&(y=R.indexOf(y),0<=y&&R.splice(y,1))};
Q6=function(R){return typeof R==="function"};
b$L=function(R){return R instanceof jL||R&&"closed"in R&&Q6(R.remove)&&Q6(R.add)&&Q6(R.unsubscribe)};
MP=function(){};
Ja=function(R){F_v(function(){throw R;})};
V6=function(R){return R};
iB=function(){return w$T(_.qy.apply(0,arguments))};
w$T=function(R){return R.length===0?V6:R.length===1?R[0]:function(y){return R.reduce(function(u,v){return v(u)},y)}};
NYS=function(R){var y;return(y=R!=null?R:void 0)!=null?y:Promise};
TYz=function(R,y){return new K$(function(u){var v=0;return y.schedule(function(){v===R.length?u.complete():(u.next(R[v++]),u.closed||this.schedule())})})};
oLL=function(R,y){if(!R)throw Error("ca");return new K$(function(u){var v=new jL;v.add(y.schedule(function(){var Q=R[Symbol.asyncIterator]();v.add(y.schedule(function(){var M=this;Q.next().then(function(K){K.done?u.complete():(u.next(K.value),M.schedule())})}))}));
return v})};
xPS=function(R,y,u){y=y.schedule(function(){try{u.call(this)}catch(v){R.error(v)}},0);
R.add(y)};
ftW=function(R,y){return new K$(function(u){var v;u.add(y.schedule(function(){v=R[BYU]();xPS(u,y,function(){var Q=v.next(),M=Q.value;Q.done?u.complete():(u.next(M),this.schedule())})}));
return function(){var Q;return Q6((Q=v)==null?void 0:Q.return)&&v.return()}})};
eUv=function(R,y){return new K$(function(u){var v=new jL;v.add(y.schedule(function(){var Q=R[I1]();v.add(Q.subscribe({next:function(M){v.add(y.schedule(function(){return u.next(M)}))},
error:function(M){v.add(y.schedule(function(){return u.error(M)}))},
complete:function(){v.add(y.schedule(function(){return u.complete()}))}}))}));
return v})};
ltT=function(R,y){return new K$(function(u){return y.schedule(function(){return R.then(function(v){u.add(y.schedule(function(){u.next(v);u.add(y.schedule(function(){return u.complete()}))}))},function(v){u.add(y.schedule(function(){return u.error(v)}))})})})};
O$U=function(R){return new TypeError("da`"+(R!==null&&typeof R==="object"?"an invalid object":"'"+R+"'"))};
H$U=function(R,y){if(R!=null){if(Q6(R[I1]))return eUv(R,y);if(Z$z(R))return TYz(R,y);if(Q6(R==null?void 0:R.then))return ltT(R,y);if(Symbol.asyncIterator&&Q6(R==null?void 0:R[Symbol.asyncIterator]))return oLL(R,y);if(Q6(R==null?void 0:R[BYU]))return ftW(R,y)}throw O$U(R);};
Fo=function(R,y){return y?H$U(R,y):bB(R)};
bB=function(R){if(R instanceof K$)return R;if(R!=null){if(Q6(R[I1]))return nLz(R);if(Z$z(R))return G9P(R);if(Q6(R==null?void 0:R.then))return rav(R);if(Symbol.asyncIterator&&Q6(R==null?void 0:R[Symbol.asyncIterator]))return PB4(R);if(Q6(R==null?void 0:R[BYU]))return W_L(R)}throw O$U(R);};
nLz=function(R){return new K$(function(y){var u=R[I1]();if(Q6(u.subscribe))return u.subscribe(y);throw new TypeError("ea");})};
G9P=function(R){return new K$(function(y){for(var u=0;u<R.length&&!y.closed;u++)y.next(R[u]);y.complete()})};
rav=function(R){return new K$(function(y){R.then(function(u){y.closed||(y.next(u),y.complete())},function(u){return y.error(u)}).then(null,Ja)})};
W_L=function(R){return new K$(function(y){for(var u=R[BYU]();!y.closed;){var v=u.next(),Q=v.value;v.done?y.complete():y.next(Q)}return function(){return Q6(u==null?void 0:u.return)&&u.return()}})};
PB4=function(R){return new K$(function(y){dPO(R,y).catch(function(u){return y.error(u)})})};
dPO=function(R,y){var u,v,Q,M,K,h;return _.I(function(b){switch(b.nextAddress){case 1:_.wY(b,2,3),M=_.NP(R);case 5:return b.yield(M.next(),8);case 8:v=b.yieldResult;if(v.done){b.jumpTo(3);break}K=v.value;y.next(K);b.jumpTo(5);break;case 3:_.T9(b);_.o1(b,9);if(!v||v.done||!(Q=M.return)){b.jumpTo(9);break}return b.yield(Q.call(M),9);case 9:_.T9(b,0,0,1);if(u)throw u.error;_.xL(b,10,1);break;case 10:_.xL(b,4);break;case 2:h=_.B$(b);u={error:h};b.jumpTo(3);break;case 4:y.complete(),_.f$(b)}})};
UPW=function(R,y){return y?TYz(R,y):G9P(R)};
k9z=function(R){return Q6(R[R.length-1])?R.pop():void 0};
eL=function(R){var y=R[R.length-1];return y&&Q6(y.schedule)?R.pop():void 0};
lB=function(){var R=_.qy.apply(0,arguments),y=eL(R);return y?TYz(R,y):UPW(R)};
Zt=function(R){var y=Q6(R)?R:function(){return R};
return new K$(function(u){return u.error(y())})};
H$=function(R){return function(y){if(Q6(y==null?void 0:y.lift))return y.lift(function(u){try{return R(u,this)}catch(v){this.error(v)}});
throw new TypeError("fa");}};
G9=function(){return H$(function(R,y){var u=null;R._refCount++;var v=new n$(y,void 0,void 0,void 0,function(){if(!R||R._refCount<=0||0<--R._refCount)u=null;else{var Q=R._connection,M=u;u=null;!Q||M&&Q!==M||Q.unsubscribe();y.unsubscribe()}});
R.subscribe(v);v.closed||(u=R.connect())})};
$PE=function(){var R=ELU;var y=y===void 0?0:y;return H$(function(u,v){v.add(R.schedule(function(){return u.subscribe(v)},y))})};
rY=function(R){return H$(function(y,u){var v=0;y.subscribe(new n$(u,function(Q){u.next(R.call(void 0,Q,v++))}))})};
X$S=function(R){return rY(function(y){return qrP(y)?R.apply(null,_.P$(y)):R(y)})};
tLO=function(R){if(R.length===1){var y=R[0];if(mPS(y))return{args:y,keys:null};if(y&&typeof y==="object"&&AaS(y)===DPc)return R=p$v(y),{args:R.map(function(u){return y[u]}),
keys:R}}return{args:R,keys:null}};
W$=function(){var R=_.qy.apply(0,arguments),y=eL(R),u=k9z(R);R=tLO(R);var v=R.args,Q=R.keys;if(v.length===0)return Fo([],y);y=new K$(ca8(v,y,Q?function(M){for(var K={},h=0;h<M.length;h++)K[Q[h]]=M[h];return K}:V6));
return u?y.pipe(X$S(u)):y};
ca8=function(R,y,u){u=u===void 0?V6:u;return function(v){at8(y,function(){for(var Q=R.length,M=Array(Q),K=Q,h=R.map(function(){return!1}),b=!0,N={i$jscomp$216:0};N.i$jscomp$216<Q;N={i$jscomp$216:N.i$jscomp$216},N.i$jscomp$216++)at8(y,function(T){return function(){Fo(R[T.i$jscomp$216],y).subscribe(new dY(v,function(x){M[T.i$jscomp$216]=x;
b&&(h[T.i$jscomp$216]=!0,b=!h.every(V6));b||v.next(u(M.slice()))},function(){return--K===0}))}}(N),v)},v)}};
at8=function(R,y,u){R?u.add(R.schedule(y)):y()};
Sr4=function(R,y,u,v){var Q=[],M=0,K=0,h=!1,b=function(N){M++;bB(u(N,K++)).subscribe(new n$(y,function(T){y.next(T)},void 0,function(){M--;
for(var T={};Q.length&&M<v;T={bufferedValue:void 0})T.bufferedValue=Q.shift(),b(T.bufferedValue);!h||Q.length||M||y.complete()}))};
R.subscribe(new n$(y,function(N){return M<v?b(N):Q.push(N)},void 0,function(){h=!0;
!h||Q.length||M||y.complete()}));
return function(){Q=null}};
Ur=function(R,y){var u=u===void 0?Infinity:u;if(Q6(y))return Ur(function(v,Q){return rY(function(M,K){return y(v,M,Q,K)})(bB(R(v,Q)))},u);
typeof y==="number"&&(u=y);return H$(function(v,Q){return Sr4(v,Q,R,u)})};
YrE=function(R){R=R===void 0?Infinity:R;return Ur(V6,R)};
L_U=function(){var R=_.qy.apply(0,arguments);return YrE(1)(UPW(R,eL(R)))};
s1E=function(R){return new K$(function(y){bB(R()).subscribe(y)})};
kL=function(R,y,u){if(Q6(u)){var v=u;u=void 0}if(v)return kL(R,y,u).pipe(X$S(v));v=_.V(Q6(R.addEventListener)&&Q6(R.removeEventListener)?zUU.map(function(K){return function(h){return R[K](y,h,u)}}):Q6(R.addListener)&&Q6(R.removeListener)?gLW.map(CB4(R,y)):Q6(R.on)&&Q6(R.off)?RSL.map(CB4(R,y)):[]);
var Q=v.next().value,M=v.next().value;return!Q&&Z$z(R)?Ur(function(K){return kL(K,y,u)})(UPW(R)):new K$(function(K){if(!Q)throw new TypeError("ga");
var h=function(){var b=_.qy.apply(0,arguments);return K.next(1<b.length?b:b[0])};
Q(h);return function(){return M(h)}})};
CB4=function(R,y){return function(u){return function(v){return R[u](y,v)}}};
$L=function(){var R=_.qy.apply(0,arguments),y=eL(R);var u=typeof R[R.length-1]==="number"?R.pop():Infinity;return R.length?R.length===1?bB(R[0]):YrE(u)(UPW(R,y)):Er};
uVE=function(R){return R.length===1&&ySU(R[0])?R[0]:R};
vhT=function(){var R=uVE(_.qy.apply(0,arguments));return H$(function(y,u){var v=[y].concat(_.P$(R)),Q=function(){if(!u.closed)if(v.length>0){try{var M=bB(v.shift())}catch(h){Q();return}var K=new n$(u,void 0,MP,MP);u.add(M.subscribe(K));K.add(Q)}else u.complete()};
Q()})};
qP=function(R){return H$(function(y,u){var v=0;y.subscribe(new n$(u,function(Q){return R.call(void 0,Q,v++)&&u.next(Q)}))})};
jrS=function(){var R=_.qy.apply(0,arguments);R=uVE(R);return R.length===1?bB(R[0]):new K$(QrU(R))};
QrU=function(R){return function(y){for(var u=[],v={i$jscomp$219:0};u&&!y.closed&&v.i$jscomp$219<R.length;v={i$jscomp$219:v.i$jscomp$219},v.i$jscomp$219++)u.push(bB(R[v.i$jscomp$219]).subscribe(new n$(y,function(Q){return function(M){if(u){for(var K=0;K<u.length;K++)K!==Q.i$jscomp$219&&u[K].unsubscribe();u=null}y.next(M)}}(v))))}};
MQP=function(){var R=_.qy.apply(0,arguments),y=k9z(R),u=uVE(R);return u.length?new K$(function(v){var Q=u.map(function(){return[]}),M=u.map(function(){return!1});
v.add(function(){Q=M=null});
for(var K={sourceIndex$jscomp$1:0};!v.closed&&K.sourceIndex$jscomp$1<u.length;K={sourceIndex$jscomp$1:K.sourceIndex$jscomp$1},K.sourceIndex$jscomp$1++)bB(u[K.sourceIndex$jscomp$1]).subscribe(new n$(v,function(h){return function(b){Q[h.sourceIndex$jscomp$1].push(b);Q.every(function(N){return N.length})&&(b=Q.map(function(N){return N.shift()}),v.next(y?y.apply(null,_.P$(b)):b),Q.some(function(N,T){return!N.length&&M[T]})&&v.complete())}}(K),void 0,function(h){return function(){M[h.sourceIndex$jscomp$1]=
!0;
!Q[h.sourceIndex$jscomp$1].length&&v.complete()}}(K)));
return function(){Q=M=null}}):Er};
JSE=function(R){var y,u,v;return!!R&&typeof R.active==="boolean"&&typeof((y=R.clock)==null?void 0:y.now)==="function"&&((u=R.clock)==null?void 0:u.timeline)!==void 0&&!((v=R.lastMeasurement)==null||!v.timestamp)&&typeof R.equivalentTo==="function"&&typeof R.extrapolateToNow==="function"&&typeof R.extrapolateToTime==="function"&&typeof R.map==="function"&&typeof R.joinWith==="function"};
VQW=function(R){function y(u){return typeof u==="boolean"||typeof u==="string"||typeof u==="number"||u===void 0||u===null}
return y(R)?!0:Array.isArray(R)?R.every(y):typeof R==="object"?Object.keys(R).every(function(u){return typeof u==="string"})&&Object.values(R).every(function(u){return Array.isArray(u)?u.every(y):y(u)}):!1};
iLO=function(R){if(VQW(R))return R;if(JSE(R))return{lastMeasurement:{value:iLO(R.lastMeasurement.value),timestamp:Xo(R.lastMeasurement.timestamp,new Dt(0,R.lastMeasurement.timestamp.timeline))},active:R.active};try{return JSON.parse(JSON.stringify(R))}catch(y){}return String(R)};
p$=function(R,y){return function(u){return new K$(function(v){return u.subscribe(function(Q){R.timeExecution(y,function(){v.next(Q)})()},function(Q){R.timeExecution(y,function(){v.error(Q)})()},function(){R.timeExecution(y,function(){v.complete()})()})})}};
KvO=function(R,y){var u=!1;return new K$(function(v){var Q=R.setTimeout(function(){u=!0;v.next(!0);v.complete()},y);
return function(){u||R.clearTimeout(Q)}})};
IiT=function(R){R=R.global;if(R.fetchLater)return R.fetchLater.bind(R)};
ta=function(R){return H$(function(y,u){var v=null,Q=!1,M;v=y.subscribe(new n$(u,void 0,function(K){M=bB(R(K,ta(R)(y)));v?(v.unsubscribe(),v=null,M.subscribe(u)):Q=!0}));
Q&&(v.unsubscribe(),v=null,M.subscribe(u))})};
hSc=function(R,y,u){return function(v,Q){var M=u,K=y,h=0;v.subscribe(new n$(Q,function(b){var N=h++;K=M?R(K,b,N):(M=!0,b);Q.next(K)},void 0,void 0))}};
bL4=function(R){R=R===void 0?null:R;return H$(function(y,u){var v=!1;y.subscribe(new n$(u,function(Q){v=!0;u.next(Q)},void 0,function(){v||u.next(R);
u.complete()}))})};
c$=function(){return H$(function(R,y){R.subscribe(new n$(y,MP))})};
a1=function(R){return H$(function(y,u){y.subscribe(new n$(u,function(){return u.next(R)}))})};
SL=function(R){return R<=0?function(){return Er}:H$(function(y,u){var v=0;
y.subscribe(new n$(u,function(Q){++v<=R&&(u.next(Q),R<=v&&u.complete())}))})};
YL=function(R){var y=y===void 0?V6:y;var u;R=(u=R)!=null?u:FvO;return H$(function(v,Q){var M,K=!0;v.subscribe(new n$(Q,function(h){var b=y(h);if(K||!R(M,b))K=!1,M=b,Q.next(h)}))})};
FvO=function(R,y){return R===y};
NcT=function(R){R=R===void 0?wsz:R;return H$(function(y,u){var v=!1;y.subscribe(new n$(u,function(Q){v=!0;u.next(Q)},void 0,function(){return v?u.complete():u.error(R())}))})};
wsz=function(){return new Tcz};
L$=function(){var R=_.qy.apply(0,arguments);return function(y){return L_U(y,lB.apply(null,_.P$(R)))}};
ohT=function(R){return H$(function(y,u){var v=0;y.subscribe(new n$(u,function(Q){R.call(void 0,Q,v++,y)||(u.next(!1),u.complete())},void 0,function(){u.next(!0);
u.complete()}))})};
x1v=function(){return H$(function(R,y){var u=[];R.subscribe(new n$(y,function(v){u.push(v);1<u.length&&u.shift()},void 0,function(){for(var v=_.V(u),Q=v.next();!Q.done;Q=v.next())y.next(Q.value);
y.complete()},function(){u=null}))})};
Bcc=function(R,y){var u=arguments.length>=2;return function(v){return v.pipe(R?qP(function(Q,M){return R(Q,M,v)}):V6,x1v(),u?bL4(y):NcT(function(){return new Tcz}))}};
z9=function(R){var y=Q6(R)?R:function(){return R};
return Q6()?H$(function(u,v){var Q=y();(void 0)(Q).subscribe(v).add(u.subscribe(Q))}):function(u){var v=new sr(u,y);
Q6(u==null?void 0:u.lift)&&(v.lift=u.lift);v.source=u;v.subjectFactory=y;return v}};
C$=function(R){var y=new gY(R,void 0,void 0);return function(u){return z9(function(){return y})(u)}};
Rr=function(R,y){return H$(hSc(R,y,arguments.length>=2))};
yW=function(){var R=_.qy.apply(0,arguments),y=eL(R);return H$(function(u,v){(y?L_U(R,u,y):L_U(R,u)).subscribe(v)})};
uv=function(R){return H$(function(y,u){var v=null,Q=0,M=!1;y.subscribe(new n$(u,function(K){var h;(h=v)==null||h.unsubscribe();h=Q++;bB(R(K,h)).subscribe(v=new n$(u,function(b){return u.next(b)},void 0,function(){v=null;
M&&!v&&u.complete()}))},void 0,function(){(M=!0,!v)&&u.complete()}))})};
vs=function(R,y){y=y===void 0?!1:y;return H$(function(u,v){var Q=0;u.subscribe(new n$(v,function(M){var K=R(M,Q++);(K||y)&&v.next(M);!K&&v.complete()}))})};
fiO=function(R,y,u){var v=Q6(R)||y||u?{next:R,error:y,complete:u}:R;return v?H$(function(Q,M){Q.subscribe(new n$(M,function(K){var h;(h=v.next)==null||h.call(v,K);M.next(K)},function(K){var h;
(h=v.error)==null||h.call(v,K);M.error(K)},function(){var K;
(K=v.complete)==null||K.call(v);M.complete()}))}):V6};
eSG=function(){var R=_.qy.apply(0,arguments),y=k9z(R);return H$(function(u,v){for(var Q=R.length,M=Array(Q),K=R.map(function(){return!1}),h=!1,b={i$jscomp$229:0};b.i$jscomp$229<Q;b={i$jscomp$229:b.i$jscomp$229},b.i$jscomp$229++)bB(R[b.i$jscomp$229]).subscribe(new n$(v,function(N){return function(T){M[N.i$jscomp$229]=T;
h||K[N.i$jscomp$229]||(K[N.i$jscomp$229]=!0,(h=K.every(V6))&&(K=null))}}(b),void 0,MP));
u.subscribe(new n$(v,function(N){h&&(N=[N].concat(_.P$(M)),v.next(y?y.apply(null,_.P$(N)):N))}))})};
OL8=function(R){try{return!!R&&R.location.href!=null&&liW(R,"foo")}catch(y){return!1}};
ZLE=function(R){var y=[],u=0,v;for(v in R)y[u++]=v;return y};
HLP=function(R,y){for(var u in R)if(R[u]==y)return!0;return!1};
nhv=function(R,y,u){for(var v in R)if(y.call(u,R[v],v,R))return v};
GRL=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 y=Array.isArray(R)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(R)||R instanceof DataView?{}:new R.constructor(R.length),u;for(u in R)y[u]=GRL(R[u]);return y};
rSU=function(R){var y=arguments.length;if(y==1&&Array.isArray(arguments[0]))return rSU.apply(null,arguments[0]);if(y%2)throw Error("ka");for(var u={},v=0;v<y;v+=2)u[arguments[v]]=arguments[v+1];return u};
PvT=function(R){var y=arguments.length;if(y==1&&Array.isArray(arguments[0]))return PvT.apply(null,arguments[0]);for(var u={},v=0;v<y;v++)u[arguments[v]]=!0;return u};
_.QW=function(R){return new Jaz(R[0].toLowerCase())};
WvE=function(R){try{return new URL(R,window.document.baseURI)}catch(y){return new URL("about:invalid")}};
d1S=function(R,y){var u=y.createRange();u.selectNode(y.body);R=pK(R);return u.createContextualFragment(tq(R))};
U1U=function(R){R=R.nodeName;return typeof R==="string"?R:"FORM"};
kR4=function(R){R=R.nodeType;return R===1||typeof R!=="number"};
jQ=function(R,y,u){R.setAttribute(y,u)};
EhT=function(R){return R.parts.map(function(y){var u=y.descriptor;return""+y.url+(u?" "+u:"")}).join(" , ")};
_.M1=function(R){var y=_.qy.apply(1,arguments);if(y.length===0)return _.lb(R[0]);for(var u=R[0],v=0;v<y.length;v++)u+=encodeURIComponent(y[v])+R[v+1];return _.lb(u)};
_.VW=function(R,y){R=_.Oo(R).toString();var u=R.split(/[?#]/),v=/[?]/.test(R)?"?"+u[1]:"";return $1L(u[0],v,/[#]/.test(R)?"#"+(v?u[2]:u[1]):"",y)};
$1L=function(R,y,u,v){function Q(K,h){K!=null&&(Array.isArray(K)?K.forEach(function(b){return Q(b,h)}):(y+=M+encodeURIComponent(h)+"="+encodeURIComponent(K),M="&"))}
var M=y.length?"&":"?";v.constructor===Object&&(v=Object.entries(v));Array.isArray(v)?v.forEach(function(K){return Q(K[1],K[0])}):v.forEach(Q);
return _.lb(R+y+u)};
iv=function(R,y,u,v){this.top=R;this.right=y;this.bottom=u;this.left=v};
q6O=function(R){R=R.global;if(R.PendingGetBeacon)return R.PendingGetBeacon};
Ir=function(R){return function(y){return y.pipe(XsU(R,z9(new KL)))}};
bv=function(R){return function(y){return y.pipe(XsU(R,C$(1)))}};
XsU=function(R,y){function u(v){return new K$(function(Q){return v.subscribe(function(M){wc(R,function(){return void Q.next(M)},3)},function(M){wc(R,function(){return void Q.error(M)},3)},function(){wc(R,function(){return void Q.complete()},3)})})}
return iB(u,$PE(),y,G9(),u)};
D18=function(R){var y=m1v(R);return y===null?new N1(null):y.pipe(rY(function(u){u=u.serialize();if(ASO)u=_.uO.btoa(u);else{for(var v=[],Q=0,M=0;M<u.length;M++){var K=u.charCodeAt(M);K>255&&(v[Q++]=K&255,K>>=8);v[Q++]=K}u=_.nZ(v)}return u}),SL(1),bv(R.queue))};
psE=function(R){var y=y===void 0?{}:y;if(typeof Event==="function")return new Event(R,y);if(typeof document!=="undefined"){var u=document.createEvent("CustomEvent");u.initCustomEvent(R,y.bubbles||!1,y.cancelable||!1,y.detail);return u}throw Error();};
tQz=function(R){return typeof R==="string"?document.getElementById(R):R};
aiT=function(R){var y=!1;y=y===void 0?!1:y;if(R.tagName==="IMG"){if(R.complete&&(!R.naturalWidth||!R.naturalHeight))return!0;var u;if(y&&((u=R.style)==null?void 0:u.display)==="none")return!0}var v,Q;return cSS.test((v=R.getAttribute("width"))!=null?v:"")&&cSS.test((Q=R.getAttribute("height"))!=null?Q:"")};
S6v=function(R,y){if(R.tagName==="IMG")return R.naturalWidth&&R.naturalHeight?!0:!1;try{if(R.readyState)var u=R.readyState;else{var v,Q;u=(v=R.contentWindow)==null?void 0:(Q=v.document)==null?void 0:Q.readyState}return u==="complete"}catch(M){return y===void 0?!1:y}};
Y6S=function(R){R||(R=function(y,u,v){y.addEventListener(u,v)});
return R};
ghW=function(R,y){var u=LvT();u=u===void 0?new srS:u;if(R=tQz(R)){var v=Y6S(v);for(var Q=!1,M=function(k){Q||(Q=!0,y(k))},K,h=2,b=0;b<zSS.length;++b)if(zSS[b]===R.tagName){h=3;
K=[R];break}K||(K=R.querySelectorAll(zSS.join(",")));var N=0,T=0,x=!0,B=R=!1;b={};for(var l=0;l<K.length;b={isImg:void 0},l++){var Z=K[l];if(!aiT(Z))if(b.isImg=Z.tagName==="IMG",S6v(Z,u.crossDomainLoadedDefault))R=!0,b.isImg&&(x=!0);else{N++;var P=function(k){return function(E){N--;!N&&x&&M(h);k.isImg&&(E=E&&E.type==="error",T--,E||(x=!0),!T&&B&&x&&M(h))}}(b);
v(Z,"load",P);b.isImg&&(T++,v(Z,"error",P))}}T===0&&(x=!0);K=null;K=_.uO.document.readyState==="complete";if(N===0&&!R&&K)h=5;else if(N||!R){v(_.uO,"load",function(){!u.pendingImagesBlockLoad||!T&&x?M(4):B=!0});
return}M(h)}};
CvO=function(R,y,u){if(R)for(var v=0;R!=null&&v<500&&!u(R);++v)R=y(R)};
Rpv=function(R,y){CvO(R,function(u){try{return u===u.parent?null:u.parent}catch(v){}return null},y)};
yD8=function(R,y){if(R.tagName=="IFRAME")y(R);else{R=R.querySelectorAll("IFRAME");for(var u=0;u<R.length&&!y(R[u]);++u);}};
uvT=function(R){return(R=R.ownerDocument)&&(R.parentWindow||R.defaultView)||null};
v7v=function(R,y,u){try{var v=JSON.parse(u.data)}catch(K){}if(typeof v==="object"&&v&&v.type==="creativeLoad"){var Q=uvT(R);if(u.source&&Q){var M;Rpv(u.source,function(K){try{if(K.parent===Q)return M=K,!0}catch(h){}});
M&&yD8(R,function(K){if(K.contentWindow===M)return y(v),!0})}}};
Q_c=function(R){return typeof R==="string"?document.getElementById(R):R};
VZz=function(){var R={};return R[0]=_.M1(j_v,"current"),R[1]=_.M1(MZc),R[2]=_.M1(JDv),R};
TR=function(R,y){return R.left===y.left&&R.top===y.top&&R.width===y.width&&R.height===y.height};
iFv=function(R,y){return{left:Math.max(R.left,y.left),top:Math.max(R.top,y.top),width:Math.max(0,Math.min(R.left+R.width,y.left+y.width)-Math.max(R.left,y.left)),height:Math.max(0,Math.min(R.top+R.height,y.top+y.height)-Math.max(R.top,y.top))}};
KaS=function(R,y){return{left:Math.round(R.left+y.x),top:Math.round(R.top+y.y),width:R.width,height:R.height}};
I0v=function(R,y,u){if(R&&y!==null&&y!=y.top){if(!y.top)return new _.or(-12245933,-12245933);y=y.top}try{return(u===void 0?0:u)?(new _.or(y.innerWidth,y.innerHeight)).round():_.xh(y).round()}catch(v){return new _.or(-12245933,-12245933)}};
hp4=function(R,y,u){try{if(R){if(!y.top)return new iv(-12245933,-12245933,-12245933,-12245933);y=y.top}var v=I0v(R,y,u),Q=v.height,M=v.width;if(M===-12245933)return new iv(M,M,M,M);var K=Bs(fL(y.document)),h=K.x,b=K.y;return new iv(b,h+M,b+Q,h)}catch(N){return new iv(-12245933,-12245933,-12245933,-12245933)}};
bFG=function(R){var y;return(y=R.google_tag_data)!=null?y:R.google_tag_data={}};
FaT=function(R){var y,u;return typeof((y=R.navigator)==null?void 0:(u=y.userAgentData)==null?void 0:u.getHighEntropyValues)==="function"};
NsT=function(R){if(!FaT(R))return null;var y=bFG(R);if(y.uach_promise)return y.uach_promise;R=R.navigator.userAgentData.getHighEntropyValues(wYW).then(function(u){y.uach!=null||(y.uach=u);return u});
return y.uach_promise=R};
Gl8=function(R){var y;return Ts8(o7U(xeE(Bs8(f0T(epW(l0U(OFL(ZF8(new HFW,R.architecture||""),R.bitness||""),R.mobile||!1),R.model||""),R.platform||""),R.platformVersion||""),R.uaFullVersion||""),((y=R.fullVersionList)==null?void 0:y.map(function(u){var v=new n74;v=_.eQ(v,1,u.brand);return _.eQ(v,2,u.version)}))||[]),R.wow64||!1)};
rDW=function(R){var y,u;return(u=(y=NsT(R))==null?void 0:y.then(function(v){return Gl8(v)}))!=null?u:null};
Px4=function(R,y){return new K$(function(u){var v=!1,Q=Array(y.length);Q.fill(void 0);var M=new Set,K=new Set,h=function(x,B){R.running?(Q[B]=x,M.add(B),v||(v=!0,wc(R,function(){v=!1;u.next(_.Az(Q))},1))):u.error(new lv(B))},b=function(x,B){K.add(B);
M.add(B);wc(R,function(){u.error(x)},1)},N=function(x){K.add(x);
wc(R,function(){K.size===y.length&&u.complete()},1)},T=y.map(function(x,B){return x.subscribe(function(l){return void h(l,B)},function(l){return void b(l,B)},function(){return void N(B)})});
return function(){T.forEach(function(x){return void x.unsubscribe()})}})};
UeG=function(R,y,u){function v(){if(y.debugChannel){var k=y.debugChannel,E=k.next;var D={creativeId:y.debugNames.getName(u),requiredSignals:Q,signals:Object.assign({},M),hasPrematurelyCompleted:K,errorMessage:h,erroredSignalKey:b};D={specMajor:2,specMinor:0,specPatch:0,timestamp:Xo(y.timeProvider.now(),new Dt(0,y.timeProvider.timeline)),instanceId:y.debugNames.getName(y.symbol),creativeState:D};E.call(k,D)}}
for(var Q=Object.keys(R),M={},K=!1,h=null,b=null,N={},T=new Set,x=[],B=[],l=_.V(Q),Z=l.next(),P={};!Z.done;P={key$jscomp$396:void 0},Z=l.next())P.key$jscomp$396=Z.value,Z=R[P.key$jscomp$396],Z instanceof N1?(N[P.key$jscomp$396]=Z.value,T.add(P.key$jscomp$396),y.debugChannel&&(M[String(P.key$jscomp$396)]=iLO(Z.value))):(Z=Z.pipe(YL(function(k,E){return JSE(k)||JSE(E)?!1:k===E}),rY(function(k){return function(E){y.debugChannel&&(M[String(k.key$jscomp$396)]=iLO(E),v());
var D={};return D[k.key$jscomp$396]=E,D}}(P)),ta(function(k){return function(E){if(E instanceof lv)throw new WaP(String(k.key$jscomp$396));
throw E;}}(P)),fiO(function(k){return function(){T.add(k.key$jscomp$396)}}(P),function(k){return function(E){b=String(k.key$jscomp$396);
h=String(E);v()}}(P),function(k){return function(){T.has(k.key$jscomp$396)||(K=!0,v())}}(P))),B.push(P.key$jscomp$396),x.push(Z));
(R=Object.keys(M).length>0)&&v();l=Px4(y.queue,x).pipe(ta(function(k){if(k instanceof lv)throw new deO(String(B[k.inputObservableIndex]));throw k;}),rY(function(k){return Object.freeze(Object.assign.apply(Object,[{},
N].concat(_.P$(k))))}));
return(x=x.length>0)&&R?$L(lB(Object.freeze(N)),l):x?l:lB(Object.freeze(N))};
klT=function(R,y,u,v,Q){return R.performanceMonitor.timeExecution.bind(R.performanceMonitor)(733,function(){var M={};try{return y.pipe(ta(function(K){v(Object.assign({},M,{error:K}));return Er}),Ur(function(K){try{var h=u(R,K)}catch(N){return v(Object.assign({},M,{error:N instanceof Error?N:String(N)})),Er}var b={};
return UeG(h,R,K.symbol).pipe(fiO(function(N){b=N}),C$(1),G9()).pipe(Q,ta(function(N){v(Object.assign({},b,{error:N}));
return Er}),L$(void 0),rY(function(){return!0}))})).pipe(Rr(function(K){return K+1},0),ta(function(K){v(Object.assign({},M,{error:K}));
return Er}))}catch(K){return v(Object.assign({},M,{error:K})),Er}})()};
O6=function(R){var y=new Map;if(typeof R!=="object"||R===null)return y;Object.values(R).forEach(function(u){u&&typeof u.extrapolateToNow==="function"&&(y.has(u.clock.timeline)||y.set(u.clock.timeline,u.clock.now()))});
return y};
E7L=function(R,y){return typeof R==="string"?encodeURIComponent(R):typeof R==="number"?String(R):Array.isArray(R)?R.map(function(u){return E7L(u,y)}).join(","):R instanceof Dt?R.toString():R&&typeof R.extrapolateToNow==="function"?E7L(R.extrapolateUsingTimestampMap(y).value,y):R===!0?"1":R===!1?"0":R===void 0||R===null?null:R instanceof $ev?qX4(R):[R.top,
R.left,R.top+R.height,R.left+R.width].join()};
XYU=function(R,y){R=Object.entries(R).map(function(u){var v=_.V(u);u=v.next().value;v=v.next().value;v=E7L(v,y);return v===null?"":u+"="+v}).filter(function(u){return u!==""});
return R.length?R.join("&"):""};
DeT=function(R,y){var u=mev,v=ADL;y=y===void 0?.01:y;return function(Q){y>0&&Math.random()<=y&&(R.global.HTMLFencedFrameElement&&R.global.fence&&typeof R.global.fence.reportEvent==="function"&&R.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),Q=Object.assign({},Q,{errorMessage:Q.error instanceof Error&&Q.error.message?Q.error.message:String(Q.error),errorStack:Q.error instanceof Error&&Q.error.stack?String(Q.error.stack):null,errorName:Q.error instanceof
Error&&Q.error.name?String(Q.error.name):null,errorContext:String(R.performanceMonitor.timedFunctionContext),errorEscapedQueryId:Q.escapedQueryId}),u(Object.assign({},Q,{payloadMapper:function(){return function(M){try{return v(Object.assign({},M))}catch(K){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),O6(Q)).forEach(function(M){R.beaconFactory.makeBeacon(M).sendNow()}))}};
pYW=function(){var R=_.qy.apply(0,arguments);return function(y){var u=y.pipe(C$(1),G9());y=R.map(function(v){return u.pipe(v,L$(!0))});
return W$(y).pipe(SL(1),c$())}};
tZT=function(){var R=_.qy.apply(0,arguments);return function(y){var u=y.pipe(C$(1),G9());y=R.map(function(v){return u.pipe(v,L$(!0))});
return $L.apply(null,_.P$(y)).pipe(SL(1),c$())}};
cDP=function(R,y){return function(u){var v=u.pipe(C$(1),G9());u=v.pipe(R,L$(!0));v=v.pipe(iB(y,C$(),G9()),L$(!0));u=W$([u,v]);return jrS(u,v).pipe(SL(1),c$())}};
a0P=function(R,y,u){u(!0)};
SXP=function(R,y){return iB(uv(function(u){var v=R(u),Q=y(u),M={};return v&&Q&&M?new K$(function(K){Q(v,M,function(h){K.next(Object.assign({},u,{canEmit:h}));K.complete()});
return function(){}}):nL}),qP(function(u){return u.canEmit}))};
YXT=function(R){var y={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(u){return u.pipe(uv(function(v){return new K$(function(Q){function M(){h.disconnect();b.unsubscribe()}
var K=R.MutationObserver;if(K&&v.ref!==void 0){var h=new K(function(N){Q.next(N)});
h.observe(v.ref,y);var b=v.JSC$9327_released.subscribe(M);return M}})}))}};
LaO=function(R){if(R.measurementDeferralState===3)return null;if(R.timeOnScreenReason!==void 0){var y=R.creativeFound===!1?"n":null;if(y!==null)return y}return R.geometricMeasurementErrors instanceof GR?"msf":R.contextValidationErrors instanceof rc?"c":R.contextVisibilityKnown===!1?"pv":R.geometricMeasurementErrors||R.contextValidationErrors?"x":null};
zpz=function(R,y){return R.replace(s_S,function(u,v){try{var Q=_.Ps.get(y,v);if(Q==null||Q.toString()==null)return u;Q=Q.toString();if(Q==""||!_.iO(Q==null?"":String(Q)))return encodeURIComponent(Q).replace(/%2C/g,",")}catch(M){}return u})};
g7O=function(R,y){var u=Object.assign({},R),v=R.userAgentClientHints;u=(delete u.userAgentClientHints,u);u=R.payloadMapper(u);var Q=XYU(u,y);return _.Ws(R.urlPrefixes,function(M){var K="";typeof v==="string"&&(K="&"+XYU({uach:v},y));var h={};return zpz(M,(h.VIEWABILITY=Q,h))+K})};
mev=function(R,y){var u=R.payloadMapper(R),v=XYU(u,y);return v?_.Ws(R.urlPrefixes,function(Q){Q=Q.indexOf("?")>=0?Q:Q+"?";Q="?&".indexOf(Q.slice(-1))>=0?Q:Q+"&";return Q+v}):R.urlPrefixes};
CxT=function(){return iB(qP(function(R){return R!==void 0}),rY(function(R){return R}))};
RCv=function(R){return iB(rY(function(){return!0}),yW(!1),bv(R))};
y2T=function(R){return R.length<=0?Er:W$(R.map(function(y){var u=0;return y.pipe(rY(function(v){return{index:u++,value:v}}))})).pipe(qP(function(y){return y.every(function(u){return u.index===y[0].index})}),rY(function(y){return y.map(function(u){return u.value})}))};
ulL=function(R,y){R.currentState&&(R.previousState=R.currentState);R.currentState=y;R.previousState&&R.previousState.value?(y=Math.max(0,Xo(y.timestamp,R.previousState.timestamp)),R.totalTime+=y,R.consecutiveTime+=y):R.consecutiveTime=0;return R};
vaS=function(){return iB(Rr(ulL,{totalTime:0,consecutiveTime:0}),rY(function(R){return R.totalTime}))};
QnU=function(){return iB(Rr(ulL,{totalTime:0,consecutiveTime:0}),rY(function(R){return R.consecutiveTime}))};
jnE=function(R,y){return function(u){return y2T(y.map(function(v){return u.pipe(R(v))}))}};
MfU=function(){var R;return iB(fiO(function(y){return void(R=y.timestamp)}),QnU(),rY(function(y){return{timestamp:R,
value:Math.round(y)}}))};
J2P=function(R,y){return TR(R.topWindowViewportExternalGeometry,y.topWindowViewportExternalGeometry)&&TR(R.elementGeometry,y.elementGeometry)&&TR(R.exposedViewportLocalGeometry,y.exposedViewportLocalGeometry)&&TR(R.intersectionGeometry,y.intersectionGeometry)&&R.elementGeometrySourceName===y.elementGeometrySourceName&&R.measurementRequests===y.measurementRequests&&R.viewportGeometrySourceName===y.viewportGeometrySourceName&&R.viewportLocalAppOffset.x===y.viewportLocalAppOffset.x&&R.viewportLocalAppOffset.y===
y.viewportLocalAppOffset.y};
IKS=function(R,y){return function(u){return function(v){var Q=v.pipe(z9(new KL),G9());v=u.element.pipe(YL());Q=Q.pipe(rY(function(M){return M.value}));
return W$([v,Q,y]).pipe(rY(function(M){var K=_.V(M);M=K.next().value;var h=K.next().value;K=K.next().value;if(M.ref===void 0)var b={top:0,left:0,width:0,height:0};else{b=M.ref.getBoundingClientRect();var N=M.ref,T=R.global,x=new _.dc(0,0),B=U6(_.kh(N));if(liW(B,"parent")){do{if(B==T)var l=_.E6(N);else l=Vfz(N),l=new _.dc(l.left,l.top);x.x+=l.x;x.y+=l.y}while(B&&B!=T&&B!=B.parent&&(N=B.frameElement)&&(B=B.parent))}b={top:x.y,left:x.x,width:b.width,height:b.height}}b=KaS(b,h.viewportLocalAppOffset);
T=iFv(b,h.exposedViewportLocalGeometry);x=R.timeProvider.now();B=Object;N=B.assign;if(K!==2||R.inCrossDomainIframe||T.width<=0||T.height<=0)var Z=!1;else try{var P=R.document.elementFromPoint(T.left+T.width/2,T.top+T.height/2);Z=P?!iyU(P,M):!1}catch(k){Z=!1}return{timestamp:x,value:N.call(B,{},h,{elementGeometrySourceName:"geo",intersectionGeometry:Z?KuG.intersectionGeometry:T,elementGeometry:b})}}),Ir(R.queue))}}};
iyU=function(R,y,u){u=u===void 0?0:u;return R.ref===void 0||y.ref===void 0?!1:R.ref===y.ref||_.$h(y.ref,function(v){return v===R.ref})?!0:y.ref.ownerDocument&&y.ref.ownerDocument.defaultView&&y.ref.ownerDocument.defaultView===y.ref.ownerDocument.defaultView.top?!1:u<10&&y.ref.ownerDocument&&y.ref.ownerDocument.defaultView&&y.ref.ownerDocument.defaultView.frameElement?iyU(R,new q1(y.ref.ownerDocument.defaultView.frameElement),u+1):!0};
FuT=function(R){return function(y){return y.pipe(R.ResizeObserver?hCO(R):byW(R),C$(1),G9())}};
hCO=function(R){return function(y){return y.pipe(uv(function(u){var v=R.ResizeObserver;if(!v||u.ref===void 0)return lB(KuG.elementGeometry);var Q=(new K$(function(M){function K(){u.ref!==void 0&&h.unobserve(u.ref);h.disconnect();b.unsubscribe()}
if(u.ref===void 0)return M.complete(),function(){};
var h=new v(function(N){N.forEach(function(T){M.next(T)})});
h.observe(u.ref);var b=u.JSC$9327_released.subscribe(K);return K})).pipe(p$(R.performanceMonitor,736),rY(function(M){return M.contentRect}));
return $L(lB(u.ref.getBoundingClientRect()),Q)}),YL(TR))}};
byW=function(R){return function(y){var u=y.pipe(YXT(R)),v=R.onResize;u=$L(y.pipe(rY(function(){return psE("resize")})),u,v);
return W$(y,u).pipe(p$(R.performanceMonitor,737),rY(function(Q){Q=_.V(Q).next().value;return Q.ref===void 0?void 0:Q.ref.getBoundingClientRect()}),CxT(),YL(TR))}};
Thz=function(R,y){var u=wTO(R,y).pipe(C$(1),G9());return function(v){return function(Q){Q=Q.pipe(uv(function(M){return M.element}),YL());
return W$([u,Q]).pipe(uv(function(M){var K=_.V(M);M=K.next().value;K=K.next().value;return Nhc(R,M.intersectionObserver,FuT(R),M.observations,v,M.flushRecords,K)}),Ir(R.queue))}}};
oa8=function(R){return rY(function(y){return y.value.viewportGeometrySourceName!=="nio"?y:Object.assign({},y,{value:Object.assign({},y.value,{exposedViewportLocalGeometry:XV(R,!0),topWindowViewportExternalGeometry:XV(R,!0)})})})};
x8G=function(R,y){return lB(y).pipe(R,rY(function(){return y}))};
wTO=function(R,y){return R.timeProvider.timeline!==BhU?Zt(new GR(2)):R.MutationObserver?typeof IntersectionObserver==="undefined"?Zt(new GR(0)):(new K$(function(u){var v=new KL,Q=new mv(v.next.bind(v),{threshold:[].concat(_.P$(y))});u.next({observations:v.pipe(p$(R.performanceMonitor,735)),intersectionObserver:Q,flushRecords:function(M){M=Q.takeRecords(M);M.length>0&&v.next(M)}})})).pipe(SL(1),C$(1),G9()):Zt(new GR(1))};
fKU=function(R){return H$U(R.sort(function(y,u){return y.time-u.time}),ELU)};
Nhc=function(R,y,u,v,Q,M,K){return new K$(function(h){function b(){Z||(Z=!0,K.ref!==void 0&&y.unobserve(Q,K.ref),T.unsubscribe(),l.unsubscribe(),B.unsubscribe(),P.unsubscribe())}
if(K.ref!==void 0){eCv(y,Q);y.observe(Q,K.ref);var N=new AS({timestamp:R.timeProvider.now(),value:Object.assign({},KuG,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),T=v.pipe(Ur(function(k){return fKU(k)}),qP(function(k){return k.target===K.ref}),rY(function(k){return{timestamp:new Dt(k.time,BhU),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:k.rootBounds||Di,topWindowViewportExternalGeometry:k.rootBounds||XV(R,!0),measurementRequests:x,elementGeometrySourceName:"nio",intersectionGeometry:k.intersectionRect,elementGeometry:k.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:k.isIntersecting,isV2Visible:k.isVisible}}}),z9(N),G9()).subscribe(h),x=new KL,B=x.subscribe(function(){M(Q);
h.next({timestamp:R.timeProvider.now(),value:N.value.value});K.ref!==void 0&&(y.unobserve(Q,K.ref),y.observe(Q,K.ref))}),l=x8G(u,K).subscribe(function(){x.next()}),Z=!1,P=K.JSC$9327_released.subscribe(function(){return b()});
return b}})};
lKE=function(R,y){var u=R.getOnBackgrounded().pipe(rY(function(){return"b"}));
return jrS(y,u).pipe(SL(1),bv(R.queue))};
pL=function(R){return function(y){var u;return y.pipe(fiO(function(v){return void(u=v.timestamp)}),rY(function(v){return v.value}),R,rY(function(v){return{timestamp:u,
value:v}}))}};
OyW=function(R){return R.intersectionGeometry.width*R.intersectionGeometry.height/(R.elementGeometry.width*R.elementGeometry.height)};
tS=function(R,y,u){u=u===void 0?function(v,Q){return v===Q}:u;
return R.timestamp.equals(y.timestamp)&&u(R.value,y.value)};
ar=function(R,y){return y.pipe(rY(function(u){return new cs(R.timeProvider,{timestamp:R.timeProvider.now(),value:u})}))};
Zy4=function(R){return function(y){return y.pipe(eSG(R),rY(function(u){var v=_.V(u);u=v.next().value;v=v.next().value;var Q=u.value;return{timestamp:u.timestamp,value:Q>=1?!0:Q<=0?!1:Q>=v}}))}};
naG=function(){return iB(qP(function(R,y){return y>0}),Hyv,yW(-1),YL())};
GFL=function(R,y,u){return R?W$([y,u]).pipe(qP(function(v){var Q=_.V(v);v=Q.next().value;Q=Q.next().value;return v.timestamp.equals(Q.timestamp)}),rY(function(v){var Q=_.V(v);
v=Q.next().value;Q=Q.next().value;return v.value>Q.value?v:Q})):y};
WuW=function(R){return function(y){var u=y.pipe(r2O),v=y.pipe(P$L);return R instanceof K$?R.pipe(uv(function(Q){return GFL(Q,u,v)})):GFL(R.value,u,v)}};
D8S=function(R,y,u,v){var Q=v.geometryIsOccluded,M=v.exposureThreshold,K=v.wasLargeAdAtRender,h=v.allowLargeAdThreshold,b=v.largeAdExposureThreshold,N=v.mayUseViewportShareExposure,T=v.hasMeasurementStarted;v=v.useIntersectionObserverV2;y=d8z(R,u,y);u=U8W(R,u);v=kFP(y,v);var x=Ea8(R,Q,N,y),B=x.pipe(rY(function(a){return a.value}),YL(),bv(R),Rr(function(a,L){return Math.max(a,L)},0)),l=x.pipe(rY(function(a){return a.value}),naG(),bv(R)),Z=y.pipe($8O,rY(function(a){return a.value}),SL(2),YL(),bv(R));
K=qpL(R,y,K,h);var P=K.pipe(yW(!1),YL(),rY(function(a){return a?b:M}));
h=x.pipe(Zy4(P),YL(),bv(R));var k=W$([h,y]).pipe(qP(function(a){var L=_.V(a);a=L.next().value;L=L.next().value;return a.timestamp.equals(L.timestamp)}),rY(function(a){var L=_.V(a);
a=L.next().value;L=L.next().value;return{visible:a.value,geometry:L.value.elementGeometry}}),Rr(function(a,L){return!L.visible&&a.visible?a:L},{visible:!1,
geometry:Di}),rY(function(a){return a.geometry}),yW(Di),bv(R),YL(TR));
N=N instanceof K$?N.pipe(YL(),a1()):nL;P=W$([N,P]).pipe(a1());var E=y.pipe(qP(function(a){return a.value.viewportGeometrySourceName!=="ns"&&a.value.elementGeometrySourceName!=="ns"}),Rr(function(a){return a+1},0),yW(0),bv(R)),D=u.pipe(a1(!0),yW(!1),bv(R));
D=W$([T,D]).pipe(rY(function(a){var L=_.V(a);a=L.next().value;L=L.next().value;return a&&!L}),bv(R));
var z=y.pipe(XTS,YL()),c=z.pipe(rY(function(a){return a.value}),Rr(function(a,L){return Math.max(a,L)},0),YL(),bv(R));
R=z.pipe(rY(function(a){return a.value}),naG(),bv(R));
return{shouldResetExposureSignals:N,shouldResetViewabilitySignals:P,geometrySignals:{readyGeometryWithDefault:y,measurementStrategy:y.pipe(m88),creativePosition:k.pipe(YL(TR)),visible:h.pipe(YL(tS)),timestampedExposure:x.pipe(YL(tS)),maximumExposure:B,minimumExposure:l,browserSize:y.pipe(A2E,YL(_.L8)),timestampedScreenShare:z,maxScreenShare:c,minScreenShare:R,geometricMeasurementErrors:u,measurementRequests:y.pipe(rY(function(a){return a.value.measurementRequests})),
isLargeAd:K,geometryIsOccluded:Q,hasMeasurementStarted:T,geometryMeasurable:D,validMeasurementCount:E,loadTimeExposure:Z,v2VisibilityBitVector:v}}};
U8W=function(R,y){return y.pipe(qP(function(){return!1}),rY(function(u){return u}),ta(function(u){return LL(new N1(u),R)}))};
d8z=function(R,y,u){return y.pipe(vhT(nL),bv(R)).pipe(YL(function(v,Q){return tS(v,Q,J2P)}),yW({timestamp:u.now(),
value:KuG}),bv(R))};
Ea8=function(R,y,u,v){u=v.pipe(WuW(u),pL(rY(function(Q){return Math.round(Q*100)/100})),bv(R));
return y instanceof N1?u:W$([u,y]).pipe(rY(function(Q){var M=_.V(Q);Q=M.next().value;M=M.next().value;return{timestamp:M.timestamp.maximum(Q.timestamp),value:M.value?0:Q.value}}),YL(tS),bv(R))};
qpL=function(R,y,u,v){y=[y.pipe(rY(function(Q){return Q.value.elementGeometry.width*Q.value.elementGeometry.height>=242500}))];
u instanceof K$&&y.push(u.pipe(rY(function(Q){return!!Q})));
u=W$(y);return v?u.pipe(rY(function(Q){return Q.some(function(M){return M})}),yW(!1),YL(),bv(R)):LL(new N1(!1),R)};
kFP=function(R,y){R=W$([R,y]).pipe(rY(function(Q){var M=_.V(Q);Q=M.next().value;if(M.next().value&&Q.value.isIntersecting)return Q.value.isV2Visible}),YL());
var u=R.pipe(rY(function(Q){return Q===void 0?!0:Q}),Rr(function(Q,M){return Q||!M},!1)),v=R.pipe(Rr(function(Q,M){return M===void 0?Q:M?!1:Q!=null?Q:!0},void 0),rY(function(Q){return!!Q}));
return W$([y,MQP(R,u,v)]).pipe(rY(function(Q){var M=_.V(Q);Q=M.next().value;var K=_.V(M.next().value);M=K.next().value;var h=K.next().value;K=K.next().value;var b=0;if(!Q)return 0;if(M===void 0)return 16;M&&(b|=1);M||(b|=2);h&&(b|=4);K&&(b|=8);return b}))};
YpP=function(R,y,u,v,Q){var M=pTU.timeThresholdMs;var K=K===void 0?new tfU(y,v):K;return(new K$(function(h){var b=u.pipe(yW(void 0),uv(function(){return c2v(Q)})).pipe(rY(function(N){var T=N.value;
N=N.timestamp;var x=T.visible;T=T.consecutiveViewTime;var B=T>=M;B||!x?aKv(K):(N=Math.max(0,Xo(y.now(),N)),SpG(K,Math.max(0,M-T-N)));return B}),Rr(function(N,T){return T||N},!1),YL()).subscribe(h);
return function(){K.dispose();b.unsubscribe()}})).pipe(vs(function(h){return!h},!0),bv(R))};
c2v=function(R){return y2T([R,R.pipe(MfU())]).pipe(rY(function(y){var u=_.V(y);y=u.next().value;u=u.next().value;return{timestamp:y.timestamp,value:{visible:y.value,consecutiveViewTime:u.value}}}),YL(function(y,u){return tS(y,u,function(v,Q){return v.consecutiveViewTime===Q.consecutiveViewTime&&v.visible===Q.visible})}))};
Luc=function(){return iB(QnU(),Rr(function(R,y){return Math.max(R,y)},0),rY(function(R){return Math.round(R)}))};
snL=function(R){return iB(Zy4(lB(R)),Luc())};
zCP=function(R,y){return y instanceof K$?y.pipe(uv(function(u){return(u=u?15:null)?Zt(new GR(u)):R})):(y=y.value?15:null)?Zt(new GR(y)):R};
gaS=function(R){var y=new GR(13);if(R.length<1)return{chain:Er,capturedErrors:Er};var u=new KL,v=R[0];return{chain:R.slice(1).reduce(function(Q,M){return Q.pipe(ta(function(K){u.next(K);return M}))},v).pipe(ta(function(Q){u.next(Q);
return Zt(y)}),z9(new KL),G9()),
capturedErrors:u}};
C$P=function(R,y){var u=R.pipe(z9(new KL),G9());return uv(function(v){return u.pipe(y(v))})};
y7z=function(R,y){if(R.inCrossDomainIframe)return Zt(new GR(6));var u=new KL;return $L(lB({}),y,u).pipe(rY(function(){return{timestamp:R.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:R2P(R),topWindowViewportExternalGeometry:XV(R,!0),measurementRequests:u,viewportLocalAppOffset:{x:0,y:0}}}}),Ir(R.queue))};
R2P=function(R){var y=XV(R,!1);if(!R.inIframe||!OL8(R.global.parent)||R.global.parent===R.global)return y;var u=new s6(R.global.parent,R.debugChannel);u.beaconFactory=R.beaconFactory;u=R2P(u);R=R.global.frameElement.getBoundingClientRect();return iFv(KaS(iFv(u,R),{x:y.left-R.left,y:y.top-R.top}),y)};
unv=function(R){if(R.prerendering)return 3;var y;return(y={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[R.visibilityState||R.webkitVisibilityState||R.mozVisibilityState||""])!=null?y:0};
vBS=function(R){return R.document.JSC$9338_onVisibilityChange.pipe(rY(function(y){return y==="visible"}),YL(),bv(R.queue))};
QMv=function(R,y,u){var v;return y.pipe(YL(),uv(function(Q){return u.pipe(rY(function(){if(!v){v=!0;try{Q.next()}finally{v=!1}}return!0}))}),yW(!1),bv(R.queue))};
jMU=function(R){return iB(pL(rY(function(y){return y>=1?!0:y<=0?!1:y>=R})),vaS(),rY(function(y){return Math.round(y)}))};
J7U=function(R,y,u,v,Q){var M=MST;if(M.length>1)for(var K=0;K<M.length-1;K++)if(M[K]<M[K+1])throw Error();K=Q.pipe(yW(void 0),uv(function(){return u.pipe(MfU())}),YL(),bv(R));
Q=Q.pipe(yW(void 0),uv(function(){return u.pipe(Luc())}),YL(),bv(R));
return{totalMeasurementTime:v.pipe(yW(void 0),uv(function(){return y.pipe(rY(function(h){return{timestamp:h.timestamp,value:!0}}),vaS())}),YL(),bv(R)),
totalUnviewedTime:v.pipe(yW(void 0),uv(function(){return y.pipe(rY(function(h){return{timestamp:h.timestamp,value:h.value===0}}),vaS())}),YL(),bv(R)),
maxTimeOnScreen:v.pipe(yW(void 0),uv(function(){return y.pipe(jnE(snL,M))}),YL(_.L8),bv(R)),
timeOnScreen:v.pipe(yW(void 0),uv(function(){return y.pipe(jnE(jMU,M),rY(function(h){return h.map(function(b,N){return N>0?b-h[N-1]:b})}))}),YL(_.L8),bv(R)),
maxConsecutiveViewTime:Q,consecutiveViewTime:K.pipe(YL(tS),bv(R))}};
iGG=function(R){var y=!0;y=y===void 0?!1:y;return iB(uv(function(u){return VSU(R.document,u,y)}),bv(R.queue))};
KqE=function(R,y,u){var v=u.pipe(rY(function(Q){return{value:Q,timestamp:R.timeProvider.now()}}),YL(tS));
return y instanceof K$?y.pipe(YL(),uv(function(Q){return Q?LL(new N1({value:!1,timestamp:R.timeProvider.now()}),R.queue):v})):y.value===!1?v:new N1(!1)};
I6W=function(R,y,u,v,Q,M,K){var h=pTU;y=y instanceof K$?y.pipe(yW(!1),YL()):y;var b=!R.isMobile();u=KqE(R,u,v);R=K.measurableCreative.pipe(RCv(R.queue));return Object.assign({},h,{geometryIsOccluded:u,wasLargeAdAtRender:Q,allowLargeAdThreshold:b,mayUseViewportShareExposure:y,hasMeasurementStarted:R,useIntersectionObserverV2:M})};
bGL=function(R,y,u,v,Q,M){var K=1;M=M===void 0?!0:M;K=K===void 0?.01:K;var h=h===void 0?R.timeProvider.intervalObservable(100).pipe(bv(R.queue)):h;return R.performanceMonitor.timeExecution(916,function(){return h24(R,y.pipe(Ir(R.queue)),u.pipe(Ir(R.queue)),v,Q,M,K,h)})()};
h24=function(R,y,u,v,Q,M,K,h){var b=vBS(R).pipe(rY(function(T){return!T})),N=new FqT(R,[new wuO(R,MST),
new NBU(R,h)]);h=pYW(TBO,oBE);return klT(R,y,function(T,x){var B=LL(new N1(x.element),T.queue).pipe(iGG(T),bv(T.queue)),l={loadedElement:B,shouldMeasure:B.pipe(a1(!0)),measurableCreative:B.pipe(rY(function(a){var L=L===void 0?Symbol():L;return Object.freeze({symbol:L,element:LL(new N1(a),T.queue)})})),
creativeSearchResult:LL(new N1("mue"),T.queue)},Z=new N1(!1),P=new N1(!1),k=new N1(17),E=new N1(!1),D=new N1(!1),z=LL(zR,T.queue);Z=N.buildGeometrySource(l,{inApp:Z,useV2:!1,requestSource:LL(k,T.queue)}).geometrySource;l=I6W(T,E,P,b,D,z,l);P=D8S(T.queue,T.timeProvider,Z,l);l=P.geometrySignals;E=P.shouldResetViewabilitySignals;P=J7U(T.queue,l.timestampedExposure,l.visible,P.shouldResetExposureSignals,E);E=YpP(T.queue,T.timeProvider,E,l.measurementRequests,l.visible);D=u.pipe(qP(function(a){return a===
x.element.ref}),rY(function(){return"ur"}));
z=KvO(T.timeProvider,Q).pipe(a1("t"));D=lKE(T,$L(D,z));z=QMv(T,l.measurementRequests,D.pipe(qP(function(a){return a!==null})));
Z=D.pipe(qP(function(a){return a!==null}),rY(function(){return unv(T.global.document)===1}));
var c=xsU(T.document);return Object.assign({},{beaconFactory:new N1(T.beaconFactory),context:new N1(T),inferredPingId:new N1("lidar2"),timeOnScreenPingId:new N1("lidartos"),binaryContext:new N1(17),binaryVersion:new N1(v),requestSource:k,contextValidationErrors:new N1(T.validate()?null:new rc),contextVisibilityKnown:new N1(c),payloadMapper:new N1(ADL),endOfSessionReason:D,timeOnScreenReason:D,requestMeasurementOnEndOfSession:z,hasImpressionFired:BB8,crossDomainIframeState:new N1(T.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:zR,inFetchLaterBeaconExperiment:zR,isTurtlex:zR,turtlexReportEventData:new N1(""),reportFencedFrameEvent:nL,isViewableAttributionEnabled:zR,inViewableAttributionExperiment:new N1(0),fetchBeaconFactory:nL,supportsPendingBeacon:zR,supportsFetchLater:zR,emit:new N1(a0P),beginToRenderEvent:new N1(Symbol()),activeViewUnmeasurableEvent:new N1(Symbol()),activeViewViewableEvent:new N1(Symbol()),creativeFound:BB8,immediateUrlPrefixes:new N1(x.immediateUrls),timeOnScreenUrlPrefixes:new N1(x.timeOnScreenUrls),
cpmavUrls:nL,viewableRelayUrls:nL,measurementDeferralState:new N1(2),urlSerializer:new N1(g7O),viewUrlSerializer:new N1(f6U),isCreativeLoaded:B.pipe(RCv(T.queue)),pageVisible:b.pipe(rY(function(a){return!a})),
eosPageVisible:Z,timestampedExposureHistory:l.timestampedExposure.pipe(Rr(function(a,L){a.push(L);return a},[]))},l,{viewable:ar(T,E),
maxTimeOnScreen:ar(T,P.maxTimeOnScreen),timeOnScreen:ar(T,P.timeOnScreen),maxConsecutiveViewTime:ar(T,P.maxConsecutiveViewTime),consecutiveViewTime:P.consecutiveViewTime.pipe(rY(function(a){return new cs(T.timeProvider,a)})),
totalMeasurementTime:ar(T,P.totalMeasurementTime),totalUnviewedTime:ar(T,P.totalUnviewedTime),userAgentClientHints:D18(T),clientOrderPingCounter:new N1(new $ev)})},DeT(R,K),tZT(M?cDP(h,e2O):cDP(h,l6L),OGO))};
ZGW=function(R){var y=_.qy.apply(1,arguments).filter(Boolean).join("&");if(!y)return R;var u=R.match(/[?&]adurl=/);return u?R.slice(0,u.index+1)+y+"&"+R.slice(u.index+1):R+(R.indexOf("?")<0?"?":"&")+y};
CL=function(R,y){return y?"&"+R+"="+encodeURIComponent(y):""};
HG8=function(){try{var R,y;return!!((R=window)==null?0:(y=R.top)==null?0:y.location.href)&&!1}catch(u){return!0}};
_.R_=function(R){R&&typeof R.dispose=="function"&&R.dispose()};
_.y7=function(R){for(var y=0,u=arguments.length;y<u;++y){var v=arguments[y];_.p8(v)?_.y7.apply(null,v):_.R_(v)}};
G7v=function(){var R=nBL();R=R===void 0?"bevasrsg":R;return new Promise(function(y){var u=window===window.top?window:HG8()?window:window.top,v=u[R],Q;((Q=v)==null?0:Q.bevasrs)?y(new ux(v.bevasrs)):(v||(v={},v=(v.nqfbel=[],v),u[R]=v),v.nqfbel.push(function(M){y(new ux(M))}))})};
r7U=function(R){var y={c:R.j1,e:R.ojS,mc:R.aDx,me:R.r7J};R.e9&&(y.co={c:R.e9.tMd,a:R.e9.k6O,s:R.e9.nvs});return y};
Prz=function(R){var y,u,v={j1:R.c,ojS:R.e,aDx:(y=R.mc)!=null?y:!1,r7J:(u=R.me)!=null?u:!1};R.co&&(v.e9={tMd:R.co.c,k6O:R.co.a,nvs:R.co.s});return v};
WqO=function(R){return function(){var y;return _.I(function(u){if(u.nextAddress==1)return u.yield(R(),2);y=u.yieldResult;return u.return({f:function(){return y.qDi()},
c:function(v){return y.zVO(v)},
m:function(v){return y.q5(Prz(v))},
mws:function(v){return y.nlN(Prz(v))}})})}};
dsG=function(R,y){var u=nBL();u=u===void 0?"bevasrsg":u;y={s:function(M){var K;return R.snapshot(Object.assign({},M.c&&{j1:M.c},M.s&&{qxd:M.s},{n17:(K=M.p)!=null?K:!0}))},
e:function(M){var K;return void((K=R.iKq)==null?void 0:K.call(R,M))},
c:function(M,K){return R.luN(M,K)},
p:R.zRl,l:function(){return R.zYx()},
wpc:y?WqO(y):void 0};var v=window===window.top?window:HG8()?window:window.top,Q=v[u];if(Q){Q.bevasrs=y;if(Q.nqfbel!==void 0)for(u=_.V(Q.nqfbel),v=u.next();!v.done;v=u.next())v=v.value,v(y);Q.nqfbel=void 0}else Q={},Q=(Q.bevasrs=y,Q.nqfbel=void 0,Q),v[u]=Q};
k7E=function(R){var y=y===void 0?50:y;var u=[];_.vY(R,Us4,6,_.Q7()).forEach(function(v){_.jZ(v,2)<=y&&u.push(_.jZ(v,1))});
return u};
EBL=function(R){var y=y===void 0?50:y;var u=[];_.vY(R,Us4,6,_.Q7()).forEach(function(v){_.jZ(v,2)>y&&u.push(_.jZ(v,1))});
return u};
$sL=function(R){R.then(function(){},function(){})};
Me=function(R){return{fieldType:1,fieldName:R}};
JD=function(R){return{fieldType:2,fieldName:R}};
_.V7=function(R){return{fieldType:3,fieldName:R}};
qBz=function(){function R(){Q[0]=1732584193;Q[1]=4023233417;Q[2]=2562383102;Q[3]=271733878;Q[4]=3285377520;T=N=0}
function y(x){for(var B=K,l=0;l<64;l+=4)B[l/4]=x[l]<<24|x[l+1]<<16|x[l+2]<<8|x[l+3];for(l=16;l<80;l++)x=B[l-3]^B[l-8]^B[l-14]^B[l-16],B[l]=(x<<1|x>>>31)&4294967295;x=Q[0];var Z=Q[1],P=Q[2],k=Q[3],E=Q[4];for(l=0;l<80;l++){if(l<40)if(l<20){var D=k^Z&(P^k);var z=1518500249}else D=Z^P^k,z=1859775393;else l<60?(D=Z&P|k&(Z|P),z=2400959708):(D=Z^P^k,z=3395469782);D=((x<<5|x>>>27)&4294967295)+D+E+z+B[l]&4294967295;E=k;k=P;P=(Z<<30|Z>>>2)&4294967295;Z=x;x=D}Q[0]=Q[0]+x&4294967295;Q[1]=Q[1]+Z&4294967295;Q[2]=
Q[2]+P&4294967295;Q[3]=Q[3]+k&4294967295;Q[4]=Q[4]+E&4294967295}
function u(x,B){if(typeof x==="string"){x=unescape(encodeURIComponent(x));for(var l=[],Z=0,P=x.length;Z<P;++Z)l.push(x.charCodeAt(Z));x=l}B||(B=x.length);l=0;if(N==0)for(;l+64<B;)y(x.slice(l,l+64)),l+=64,T+=64;for(;l<B;)if(M[N++]=x[l++],T++,N==64)for(N=0,y(M);l+64<B;)y(x.slice(l,l+64)),l+=64,T+=64}
function v(){var x=[],B=T*8;N<56?u(h,56-N):u(h,64-(N-56));for(var l=63;l>=56;l--)M[l]=B&255,B>>>=8;y(M);for(l=B=0;l<5;l++)for(var Z=24;Z>=0;Z-=8)x[B++]=Q[l]>>Z&255;return x}
for(var Q=[],M=[],K=[],h=[128],b=1;b<64;++b)h[b]=0;var N,T;R();return{reset:R,update:u,digest:v,digestString:function(){for(var x=v(),B="",l=0;l<x.length;l++)B+="0123456789ABCDEF".charAt(Math.floor(x[l]/16))+"0123456789ABCDEF".charAt(x[l]%16);return B}}};
tSS=function(R,y){y=y===void 0?XuG:y;if(!msW){var u;R=(u=R.navigator)==null?void 0:u.userAgentData;if(!R||typeof R.getHighEntropyValues!=="function"||R.brands&&typeof R.brands.map!=="function")return Promise.reject(Error("ua"));A7O((R.brands||[]).map(function(Q){var M=new DsG;M=_.eQ(M,1,Q.brand);return _.eQ(M,2,Q.version)}));
typeof R.mobile==="boolean"&&_.ix(puG,2,R.mobile);msW=R.getHighEntropyValues(y)}var v=new Set(y);return msW.then(function(Q){var M=puG.clone();v.has("platform")&&_.eQ(M,3,Q.platform);v.has("platformVersion")&&_.eQ(M,4,Q.platformVersion);v.has("architecture")&&_.eQ(M,5,Q.architecture);v.has("model")&&_.eQ(M,6,Q.model);v.has("uaFullVersion")&&_.eQ(M,7,Q.uaFullVersion);return M.serialize()}).catch(function(){return puG.serialize()})};
KF=function(R,y,u,v){this.initialValue_=R;this.maxValue_=y;this.currBaseValue_=this.currValue_=R;this.randomFactor_=u||0;this.backoffFactor_=v||2};
I_=function(R){this.src=R;this.listeners={};this.typeCount_=0};
YBU=function(){for(var R;R=c7E.remove();){try{R.fn.call(R.scope)}catch(y){vW(y)}a6P.put(R)}SBS=!1};
_.LqL=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}};
sMS=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""}};
_.z2T=function(){};
MX4=function(R,y,u,v,Q){R=gBE(CrT(RXE(new _.hD(1828,"0"),R),new yTS));y.length&&uq8(R,vzO(new QhP,y));v!==void 0&&(R.destinationUrl=v);Q&&R.disableWithCredentials();var M=new jhT(1828,"","",!1,"",R.build());_.bx(M,R);var K=new Fv({flush:function(h){try{M.flush(h)}catch(b){u(b)}}});
K.addOnDisposeCallback(function(){setTimeout(function(){try{K.snapshotAndFlush()}finally{M.dispose()}})});
K.invocationLimit=1E5;K.flushInterval=3E4;K.JSC$9755_flushTimer.setInterval(3E4);return K};
ws=function(){var R,y,u;return(u=(R=globalThis.performance)==null?void 0:(y=R.now)==null?void 0:y.call(R))!=null?u:Date.now()};
KiG=function(R,y){if(R.disable)return new JTO;var u=y?k7E(y):[],v=R.vx,Q=R.gIs,M=R.drv,K=R.destinationUrl,h=R.mUS;R=R.kwS;y=y==null?void 0:_.Ne(y,VXS,11);var b=b===void 0?50:b;y=(y==null?void 0:_.jZ(y,1))||0;v={vx:v,brH:Q,gM8:M,destinationUrl:K,mUS:h,kwS:R,disableClearcutCredentialBinding:y>0&&b>=y};u=u===void 0?[]:u;return new iJL(v,u)};
IIT=function(R){if(!R)return null;R=_.Tl(R,2);return R===null||R===void 0?null:pK(R)};
_.hXP=function(R){if(!R)return null;R=_.Tl(R,4);return R===null||R===void 0?null:_.lb(R)};
w54=function(R,y){return y?bJG(y):R?FiG(R):Promise.resolve()};
bJG=function(R){return new Promise(function(y,u){var v=_.o_("SCRIPT"),Q=_.hXP(R);_.gC(v,Q);v.onload=function(){_.BY(v);y()};
v.onerror=function(){_.BY(v);u(Error("Fa"))};
(fF("HEAD")[0]||document.documentElement).appendChild(v)})};
FiG=function(R){return new Promise(function(y){var u=_.o_("SCRIPT");if(R){var v=_.Tl(R,6);v=v===null||v===void 0?null:_.LK(v)}else v=null;_.zB(u,v);(fF("HEAD")[0]||document.documentElement).appendChild(u);_.BY(u);y()})};
eZ=function(R,y,u){var v,Q=new Promise(function(M){v=setTimeout(M,y)});
return Promise.race([R.finally(function(){return void clearTimeout(v)}),
Q.then(u)])};
NRc=function(R,y){try{return globalThis.sessionStorage.setItem(R,y),!0}catch(u){return!1}};
TR8=function(R,y,u,v){y=y===void 0?0:y;u=u===void 0?R.length:u;var Q=0;for(v&&(Q=TR8(v));y<u;y++)v=typeof R==="string"?R.charCodeAt(y):R[y],Q=Ezz(31,Q)+v|0;return Q};
$Cz=function(R,y){return[TR8(R,0,R.length>>1,y),TR8(R,R.length>>1)]};
qLP=function(R){var y=_.V($Cz(R,lx));R=y.next().value;y=y.next().value;return R.toString(16)+y.toString(16)};
X5U=function(R,y){var u=$Cz(y);R=new Uint32Array(R.buffer);y=R[0];var v=_.V(u);u=v.next().value;v=v.next().value;for(var Q=1;Q<R.length;Q+=2){for(var M=y,K=Q,h=u,b=v,N=0;N<22;N++)K=K>>>8|K<<24,K+=M|0,K^=h+38293,M=M<<3|M>>>29,M^=K,b=b>>>8|b<<24,b+=h|0,b^=N+38293,h=h<<3|h>>>29,h^=b;M=[M,K];R[Q]^=M[0];Q+1<R.length&&(R[Q+1]^=M[1])}};
mCU=function(R,y,u,v,Q){var M=(4-(lx.length+u.length)%4)%4,K=new Uint8Array(4+M+lx.length+4+u.length),h=new DataView(K.buffer),b=0;h.setUint32(b,Math.random()*4294967295);b=b+4+M;K.set(lx,b);b+=lx.length;h.setUint32(b,Q);K.set(u,b+4);X5U(K,v);return R.insert(y,function(N){return void globalThis.sessionStorage.removeItem(N)})?NRc(y,_.nZ(K))?"s":"t":"i"};
ATW=function(R,y){var u=globalThis.sessionStorage.getItem(R);if(!u)return["m"];try{var v=_.zT(u);X5U(v,y)}catch(Q){return globalThis.sessionStorage.removeItem(R),["c"]}for(y=4;y<7&&v[y]===0;)y++;for(u=0;u<lx.length;u++)if(v[y++]!==lx[u])return globalThis.sessionStorage.removeItem(R),["d"];u=(new DataView(v.buffer)).getUint32(y);return Math.floor(Date.now()/1E3)>=u?(globalThis.sessionStorage.removeItem(R),["e"]):["a",new Uint8Array(v.buffer,y+4)]};
DCU=function(R){return globalThis.TextEncoder?(new TextEncoder).encode(R):_.OX(R)};
p5P=function(R){var y=R,u;return function(){if(y){var v=y;y=void 0;u=v.apply(this,arguments)}return u}};
cTS=function(R){return Ui(function(y){if(y instanceof R)return!0;var u,v,Q=y==null?void 0:(u=y.ownerDocument)==null?void 0:(v=u.defaultView)==null?void 0:v[R.name];return tXv(Q)&&y instanceof Q})};
_.nF=function(R,y,u){_.Z0.call(this);this.JSC$9970_listener_=R;this.JSC$9970_interval_=y||0;this.handler_=u;this.callback_=(0,_.HY)(this.JSC$9972_doAction_,this)};
_.Gl=function(R){R=aIW(R);return _.lb(R)};
aIW=function(R){return R===null?"null":R===void 0?"undefined":R};
YLG=function(R){if(R&&R.focus)if(R!==document.activeElement)R.focus();else return SLG(function(){return _.I(function(y){document.activeElement&&document.activeElement.blur();return y.return(SLG(function(){R.focus()}))})})};
_.Liv=function(R){var y=y===void 0?5:y;setTimeout(function(){var u;return _.I(function(v){v.nextAddress==1&&(u=document.activeElement);if(v.nextAddress!=5)return(document.activeElement===u||document.activeElement===document.body)&&y>=0&&R?v.yield(YLG(R),5):v.jumpTo(0);if(document.activeElement===R)return v.return();R=R.parentElement;--y;return v.jumpTo(2)})},15)};
SLG=function(R){return new Promise(function(y){requestAnimationFrame(function(){y(R())})})};
zXU=function(R){if(_.rs)R(_.rs);else{var y;((y=shW)!=null?y:shW=[]).push(R)}};
WY=function(){!_.rs&&_.PY&&_.gzT(_.PY());return _.rs};
_.gzT=function(R){_.rs=R;var y;(y=shW)==null||y.forEach(zXU);shW=void 0};
_.ds=function(R){_.rs&&_.rs.beforeLoadModuleCode(R)};
_.UX=function(){_.rs&&_.rs.JSC$10959_setLoaded()};
k7=function(R){return G5U(R)?Number(R):String(R)};
Cav=function(R){this.action=R;this.wfv=!1};
Ru8=function(R,y){Cav.call(this,"set-drive-options");this.appId=R;this.appOrigin=y};
yv4=function(R){Cav.call(this,"visibility");this.visible=R};
uMW=function(R,y,u){EX.call(this,R,y,u)};
v2L=function(R){$7.call(this,R)};
Qzc=function(R){R=R&&R.getWindow()||window;return R.gadgets&&R.gadgets.rpc};
M_P=function(R,y){var u=y&&y.getWindow()||window;if(Qzc(y))R();else if(jzW)jzW.push(R);else var v=jzW=[R],Q=u.setInterval(function(){if(Qzc(y)){u.clearInterval(Q);for(var M=0;M<v.length;M++)v[M]();jzW=null}},100)};
V_S=function(R,y){var u=new qe(R);_.bx(y,u);var v={passive:!1};y.listen(u,"mousewheel",function(Q){return void JvW(R,Q)},v).listen(R,"scroll",function(Q){return void JvW(R,Q)},v)};
JvW=function(R,y){var u;a:{for(u=y.target;u;){if(u.nodeType==1){var v=_.Xv(u,"overflowY");if(v=="auto"||v=="scroll")break a}u=u.parentNode}u=null}if(!u||!_.ma(R,u)||u.scrollHeight==u.clientHeight||y.deltaY>0&&Math.abs(u.scrollTop-(u.scrollHeight-u.clientHeight))<=1||y.deltaY<0&&u.scrollTop==0)y.preventDefault(),y.stopPropagation()};
SZ=function(R,y,u,v,Q,M,K,h,b){h=h===void 0?!1:h;b=b===void 0?!1:b;EX.call(this,void 0,void 0,void 0);EX.call(this,M?M+" picker modal-dialog":"picker modal-dialog",!0,u);_.AD(R,"protocol");this.iframeManager_=new i9O;this.targetId_=D0();this.rpcToken_=D0();R=_.pF(R);_.tD(R,"hostId");u=_.tD(R,"parent");this.useGapi_=!b&&!0||(u==null?void 0:u.includes("onepick.corp.google.com"));h&&_.cY(R,"fv2","true");this.setUrl(R.toString());this.preferredDialogWidth_=v;this.preferredDialogHeight_=Q;v!==void 0||
Q!==void 0?v=!0:(v=_.tD(_.pF(R.toString()),"hostId"),KeL||(KeL=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),v=!KeL.has(v));this.autoSizeDialog_=v;this.JSC$10160_gadgetsDomHelper_=K||this.JSC$10111_dom_;y&&(K=this.JSC$10160_gadgetsDomHelper_,y=_.tD(_.pF(this.JSC$10162_url_),"grugl")=="true"?I1z:huP,Qzc(K)||(K=K||fL(document),v=K.createElement("SCRIPT"),_.gC(v,y),v.type="text/javascript",K.JSC$9293_document_.body.appendChild(v)));
R=R.toString();y=null;K=R.indexOf("/picker?");K>-1?y=R.substring(0,K+8-1):Jz(R,"/picker")&&(y=R);y&&this.setRelayUrl(y+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(R=this.buttons_,R.JSC$10145_element_=this.buttonEl_,R.render()):_.CK(this.buttonEl_,b9S),_.a_(this.buttonEl_,!!this.buttons_))};
_.T3U=function(R){var y=y===void 0?FeO:y;var u=_.YS(R),v=function(M){M=_.V(M);M.next();M=Y7(M);return y(u,M)},Q=function(M){var K=_.V(M);
M=K.next().value;K=Y7(K);return R.apply(M,K)};
return function(){var M=_.qy.apply(0,arguments),K=this||_.uO,h=wGc.get(K);h||(h={},wGc.set(K,h));return N3L(h,[this].concat(_.P$(M)),Q,v)}};
LF=function(R){var y={};R=R.replace(/\r/g,"").split("\n");for(var u=0;u<R.length;u++){var v=R[u],Q=v.indexOf(":");Q<0||(y[v.substring(0,Q)]=v.substring(Q+2,v.length))}return y};
sX=function(R,y,u){u=u===void 0?function(){}:u;
return R?y():u()};
_.xtT=function(R){var y;return((y=o2G.documentOverride)!=null?y:R).__wizdispatcher};
_.gs=function(R){var y=zl;zl=R;return y};
_.f14=function(R){return R===B3O||(R==null?void 0:R.name)==="\u0275NotFound"};
_.CF=function(R,y){var u;if((u=R)==null?0:u.isDisposed)throw Error("jb`"+String(R.debugName));for(;R!==void 0;){u=R;if(u.retrieve)return u.retrieve(y,{optional:!0});R=R.parent}return B3O};
Rn=function(R){return{"\u0275prov":{providedIn:"root",token:Symbol(R),factory:void 0,value:void 0}}};
_.euS=function(R){var y=zl;if(!y){switch(R===void 0?3:R){case 0:R=Error("ib");break;case 1:R=Error("kb");break;case 2:R=Error("lb");break;default:R=Error("mb")}throw R;}return y};
l1S=function(R){var y=_.gs(R);R={};return R[Symbol.dispose]=function(){_.gs(y)},R};
O9G=function(R,y){R.disposables||(R.disposables=[]);R.disposables.push(y)};
yU=function(R){var y=zl;y&&!y.isDisposed&&(O9G(y,R),R.parent=y)};
H9L=function(R){if(R.disposables){for(var y=_.V(R.disposables),u=y.next();!u.done;u=y.next())u=u.value,typeof u==="function"?u():Z94(u);R.disposables.length=0}};
Z94=function(R){if(!R.isDisposed){R.isDisposed=!0;var y;(y=R[Symbol.dispose])==null||y.call(R);delete R.parent;H9L(R)}};
E2v=function(R){var y={retrieve:function(u){switch(u.\u0275prov.token){case n2P.\u0275prov.token:var v=R.asyncDeps;break;case _.GgT.\u0275prov.token:v=R.rootElement;break;case rvU.\u0275prov.token:v=R.modelRootElement;break;case PQE.\u0275prov.token:v=R.appContext;break;case Wec.\u0275prov.token:v=R.rendererData;break;case dtc.\u0275prov.token:v=R.injectingConstructor;break;case UtT.\u0275prov.token:v=R.dispatcher}if(v)u=v;else a:{for(v=y.parent;v;){var Q=v;if(Q.retrieve){u=Q.retrieve(u);break a}v=
v.parent}v=u.\u0275prov.token;Q=kgT[v];Q!==void 0?u=Q:(Q=u.\u0275prov.providedIn,u.\u0275prov.factory?(u=u.\u0275prov.factory(),v&&Q==="root"&&(kgT[v]=u)):u=B3O)}return u}};
yU(y);return y};
$tT=function(){var R=_.euS(1),y=_.CF(R,PQE);_.f14(y)&&(R=_.CF(R,UtT),_.f14(R)||R.getOptionalAppContext())};
qWv=function(R){if(typeof document!=="undefined"&&document&&document.getElementById&&(R=document.getElementById(R))){var y=R.tagName.toUpperCase();if(y=="SCRIPT"||y=="LINK")return R}return null};
mtO=function(R,y){if((R=R===void 0?"":R)&&y)throw Error("sb");var u="";var v=_.uO._F_jsUrl;(R=y||qWv(R))&&(u=R.src?R.src:R.getAttribute("href"));if(v&&u){if(v!=u)throw Error("tb`"+v+"`"+u);u=v}else u=v||u;if(!XGv(u))throw Error("ub");return u};
t_U=function(){if(!AvG){AvG=!0;try{var R=mtO(_.uO._F_jsUrl?"":"base-js")}catch(v){return}var y=DtL(pGc(R)),u=Object.keys(y);u.length!==0&&zXU(function(v){for(var Q=_.V(u),M=Q.next();!M.done;M=Q.next()){M=M.value;for(var K=_.V(Object.keys(y[M])),h=K.next();!h.done;h=K.next())v.addExtraEdge(M,h.value)}})}};
a1v=function(){var R=Object.assign({},cvU);Object.getOwnPropertyNames(cvU).forEach(function(y){u$[y]!==void 0&&(R[y]=u$[y])});
return R};
SWU=function(R,y){if(u$.enablePerformanceTiming){var u,v;(v=(u=performance).mark)==null||v.call(u,R+"Start__"+y)}};
YWL=function(R,y){if(u$.enablePerformanceTiming){var u,v;(v=(u=performance).measure)==null||v.call(u,R+"__"+y,R+"Start__"+y)}};
Lev=function(R,y,u){var v;return R&&y?R+"__"+y:(v=R!=null?R:y)!=null?v:u};
zuO=function(R,y){var u=Object.create(sz4);u.debugName=y;!zl||yU(u);y=_.gs(u);try{R(u)}finally{_.gs(y)}return function(){return void Z94(u)}};
CQL=function(R){return vT(R)&&g2G in R};
RHz=function(R,y){return Object.is(R,y)};
jf=function(R){var y=QU;QU=R;return y};
u4T=function(R){if(M8)throw Error("Z");if(QU!==null){var y=QU.producersTail;if(y===void 0||y.producer!==R){var u=void 0,v=QU.recomputing;if(v&&(u=y!==void 0?y.nextProducer:QU.producers,u!==void 0&&u.producer===R)){QU.producersTail=u;u.lastReadVersion=R.version;return}var Q=R.consumersTail,M;if(!(M=Q===void 0||Q.consumer!==QU)){if(v){a:{M=QU;v=M.producersTail;if(v!==void 0){M=M.producers;do{if(M===Q){v=!0;break a}if(M===v)break;M=M.nextProducer}while(M!==void 0)}v=!1}v=!v}M=v}M&&(v=J2(QU),u={producer:R,
consumer:QU,nextProducer:u,prevConsumer:Q,lastReadVersion:R.version,nextConsumer:void 0},QU.producersTail=u,y!==void 0?y.nextProducer=u:QU.producers=u,v&&ycS(R,u))}}};
jNG=function(R){if(!J2(R)||R.dirty)if(R.dirty||R.lastCleanEpoch!==vTW)(R.producerMustRecompute(R)||QNL(R))&&R.producerRecomputeValue(R),R.dirty=!1,R.lastCleanEpoch=vTW};
Mx4=function(R){if(R.consumers!==void 0){var y=M8;M8=!0;try{for(var u=R.consumers;u!==void 0;u=u.nextConsumer){var v=u.consumer;v.dirty||(R=void 0,v.dirty=!0,Mx4(v),(R=v.consumerMarkedDirty)==null||R.call(v,v))}}finally{M8=y}}};
JcT=function(){var R;return((R=QU)==null?void 0:R.consumerAllowSignalWrites)!==!1};
VxT=function(R){R&&(R.producersTail=void 0,R.recomputing=!0);return jf(R)};
KWv=function(R,y){jf(y);if(R){R.recomputing=!1;y=R.producersTail;var u=y!==void 0?y.nextProducer:R.producers;if(u!==void 0){if(J2(R)){do u=iiO(u);while(u!==void 0)}y!==void 0?y.nextProducer=void 0:R.producers=void 0}}};
QNL=function(R){for(R=R.producers;R!==void 0;R=R.nextProducer){var y=R.producer,u=R.lastReadVersion;if(u!==y.version)return!0;jNG(y);if(u!==y.version)return!0}return!1};
ycS=function(R,y){var u=R.consumersTail,v=J2(R);u!==void 0?(y.nextConsumer=u.nextConsumer,u.nextConsumer=y):(y.nextConsumer=void 0,R.consumers=y);y.prevConsumer=u;R.consumersTail=y;if(!v)for(R=R.producers;R!==void 0;R=R.nextProducer)ycS(R.producer,R)};
iiO=function(R){var y=R.producer,u=R.nextProducer,v=R.nextConsumer,Q=R.prevConsumer;R.nextConsumer=void 0;R.prevConsumer=void 0;v!==void 0?v.prevConsumer=Q:y.consumersTail=Q;if(Q!==void 0)Q.nextConsumer=v;else if(y.consumers=v,!J2(y))for(R=y.producers;R!==void 0;)R=iiO(R);return u};
J2=function(R){return R.consumerIsAlwaysLive||R.consumers!==void 0};
hH4=function(R){var y=Object.create(IzT);y.computation=R;R=function(){jNG(y);u4T(y);if(y.value===VU)throw y.error;return y.value};
R[i$]=y;return R};
NIG=function(R,y){var u=Object.create(biv);u.value=R;y!==void 0&&(u.equal=y);R=function(){u4T(u);return u.value};
R[i$]=u;return[R,function(v){return FWW(u,v)},
function(v){JcT()||w3U(u);FWW(u,v(u.value))}]};
FWW=function(R,y){JcT()||w3U(R);if(!R.equal(R.value,y)){R.value=y;R.version++;vTW++;Mx4(R);var u;(u=TIU)==null||u(R)}};
Ky=function(R){var y=jf(null);try{return R()}finally{jf(y)}};
_.In=function(R,y,u){u=u===void 0?"":u;R=NIG(R,y==null?void 0:y.equals);var v=R[0],Q=v[i$];Q.debugName=Lev(y==null?void 0:y.debugName,u,"[signal]");if(!u$.enablePerformanceTiming)return R;var M=R[1],K=R[2];return[v,function(h){oTG(function(){return void M(h)},Q)},
function(h){oTG(function(){return void K(h)},Q)}]};
oTG=function(R,y){SWU("signalSet",y.debugName);try{R()}finally{YWL("signalSet",y.debugName)}};
BIG=function(R,y){var u=_.V(_.In(R,void 0,"cPpJzc"));R=u.next().value;u=u.next().value;R[xcT]=u;R[h2]=y;return R};
fzL=function(R){return!!R&&typeof R==="object"&&Object.getPrototypeOf(R)===Object.prototype};
eHU=function(R){return typeof R==="function"&&xcT in R&&typeof R[xcT]==="function"};
lzT=function(R,y){Object.defineProperty(R,h2,{get:function(){return y}})};
Fl=function(R,y){if(b$(R)){var u=R.map(function(M){return Fl(M,y)});
lzT(u,y);return u}if(fzL(R)){u={};R=_.V(Object.entries(R));for(var v=R.next();!v.done;v=R.next()){var Q=_.V(v.value);v=Q.next().value;Q=Q.next().value;u[v]=Fl(Q,y)}lzT(u,y);return u}return BIG(R,y)};
OiO=function(R){if(b$(R))return R.map(function(Q){return OiO(Q)});
if(fzL(R)){var y={};R=_.V(Object.entries(R));for(var u=R.next();!u.done;u=R.next()){var v=_.V(u.value);u=v.next().value;v=v.next().value;y[u]=OiO(v)}return y}return eHU(R)?R():R};
HiP=function(){var R={height:0,width:0};if(!fzL(R))throw Error("Gb");var y=Symbol("Hb");return[Fl(R,y),function(u,v){if(u[h2]===y)if(typeof v==="function"){var Q=[].concat(_.P$(OiO(u)));v=v(Q)||Q;ZiO(u,[].concat(_.P$(v)))}else ZiO(u,v);else throw Error("Ib");}]};
ZiO=function(R,y){if(eHU(R))R[xcT](y);else if(b$(R)&&b$(y))y=Fl(y,R[h2]),R.length=0,R.push.apply(R,_.P$(y));else if((fzL(R)||b$(R))&&(b$(y)||typeof y==="object"&&y!==null)){y=_.V(Object.entries(y));for(var u=y.next();!u.done;u=y.next()){var v=_.V(u.value);u=v.next().value;v=v.next().value;var Q=R,M=Q[u];Object.hasOwn(R,u)?ZiO(M,v):Q[u]=Fl(v,R[h2])}}else throw Error("Jb");};
nTP=function(R){return Object.create(Object.assign({},wh,R))};
rcS=function(){var R;return(R=GpT)!=null?R:GpT=nTP({consumerAllowSignalWrites:!0})};
_.N8=function(R,y,u){u=u===void 0?"":u;R=hH4(R);var v=R[i$];v.debugName=Lev(y==null?void 0:y.debugName,u,"[computed]");(y==null?void 0:y.equals)!=null&&(v.equal=y.equals);return R};
TF=function(R){var y=jf(P_z);try{R()}finally{jf(y)}};
$cO=function(R){if(!R.isDisposed)switch(R.effectType){case on:WWE.schedule(R);break;case dc8:Ucz.schedule(R);break;case kpU:ETG.schedule(R);break;default:_.AL(R.effectType)}};
X34=function(R){qh4.push(R);return function(){var y=qh4.indexOf(R);y!==-1&&qh4.splice(y,1)}};
AcW=function(){if(xa>0)u$.flushRenderEffectsDuringRender&&WWE.flush();else for(var R=_.V(mcE),y=R.next();!y.done;y=R.next())y.value.flush()};
p3T=function(R){BT=!0;try{for(var y=_.V(R),u=y.next();!u.done;u=y.next()){for(var v=u.value,Q=[v],M=v;M.parent!==void 0;)M=M.parent,Dcc(M)&&R.has(M)&&Q.push(M);for(;Q.length>0;){var K=Q.pop();R.delete(K);K.run()}}}finally{BT=!1}};
fy=function(R){xa--;if(R){R=_.V(mcE);for(var y=R.next();!y.done;y=R.next())y.value.clear()}else xa>0||BT&&!u$.flushRenderEffectsDuringRender||AcW()};
ccW=function(R,y,u){var v=txG(R);ef={name:u?v+" ("+u+")":v,isReactive:R.componentType!==l$,parent:ef};R=y();ef=ef.parent;return R};
Op=function(){var R=ef;return R?R.isReactive:!1};
HT=function(R,y,u){var v=ef;y&&(ef=y);try{return u==null?R():R.call(u)}catch(M){R=M;ZK(R,ef);if(R!==azL){Shv=ef;y=[];for(u=zl;u;){var Q=void 0;y.push((Q=u.debugName)!=null?Q:"[context]");Q=void 0;u=(Q=u.parent)!=null?Q:null}YhU=y.reverse()}azL=R;throw R;}finally{ef=v}};
ZK=function(R,y){try{var u=LWS(y);if(u&&!R.componentStack&&(R.componentStack=u,u$.enableComponentStacksInErrorMessages)){var v=R.message+"\n\nComponent stack: "+u;R.stack&&(R.stack=R.stack.replace(R.message,v));R.message=v}}catch(Q){}};
LWS=function(R){if(vT(R)&&R.name!==void 0&&R.isReactive!==void 0&&R.parent!==void 0||R===null){for(var y=0,u="";y<20&&R;)u+=R.name+" > ",R=R.parent,y++;R=u.slice(0,-3)}else if(u$.enableContextBasedComponentStacks){a:{for(R=R===void 0?zl:R;R;){if(CQL(R))break a;y=void 0;R=(y=R.parent)!=null?y:null}R=null}R=R.getComponentStack().slice(0,20).join(" > ")}else R="";return R};
txG=function(R){return R.debugName||R.name||"[component]"};
sNW=function(R,y,u){y=Object.create(y);R&&(y.effectFn=R);u&&(y.debugName=u);yU(y);y.componentStack=ef;return y};
_.ny=function(R,y){R=sNW(R,zHz,y);$cO(R)};
_.GF=function(R){var y=zl;if(y){var u=ef;O9G(y,function(){var v=jf(rcS());try{HT(function(){return void R()},u)}catch(Q){throw u$.enableContextBasedComponentStacks&&ZK(Q),Q;
}finally{jf(v)}})}};
rh=function(R,y){var u={};(y===void 0||y)&&yU(u);y=_.gs(u);try{R(u)}finally{_.gs(y)}return function(){return void Z94(u)}};
_.PT=function(R){return typeof R==="function"?R():(R==null?0:R[gTL])?R.get():R};
_.WT=function(R,y){R=sNW(R,C_c,y);$cO(R)};
RL8=function(R){if(zl)throw Error("nb");rh(R,!1)};
dh=function(R,y){R=_.gs(R);try{return Ky(y)}finally{_.gs(R)}};
Up=function(R,y){var u=LWS(Shv),v,Q;var M=(Q=(v=YhU)==null?void 0:v.slice())!=null?Q:[];y={componentStack:u,contextTrace:M,errorSeverity:3,featureFlags:a1v(),tagName:y};return[R,y]};
vkP=function(R,y,u){if(Object.hasOwnProperty.call(yWT,R)&&(R=yWT[R],Object.hasOwnProperty.call(R,y)&&(R=R[y],R instanceof Array))){for(var v=null,Q=!1,M=0,K=R.length;M<K;++M){var h=R[M],b=h.contingentAttribute;if(!b)return h.contract;v===null&&(v={});b=Object.hasOwnProperty.call(v,b)?v[b]:v[b]=u(b);if(b===h.requiredValue)return h.contract;b==null&&(Q=!0)}if(Q)return null}y=um8[y];return typeof y==="number"?y:null};
MmL=function(R,y,u){var v=null;(R=QxT[R])&&(v=R[y]);return typeof v!=="number"&&((R=QxT["*"])&&(v=R[y]),typeof v!=="number")?!1:!0===jx4[v][String(u).toLowerCase()]};
Vm8=function(R,y){y=vkP(R.toLowerCase(),y,function(){var v;(v=u$.handleError)==null||v.call.apply(v,[u$].concat(_.P$(Up(Error("Ob"),R.toLowerCase()))))});
if(y===null)return null;var u;return(u=JWU[y])!=null?u:null};
iNO=function(R,y,u){if(u===null||u===void 0)return u;y=y.toLowerCase();R=Vm8(R,y);return R===null?u:R(y,u)};
KQS=function(){};
ka=function(R,y){for(;R.length>y;)R.pop()};
I7S=function(R){R=Array(R);ka(R,0);return R};
Ep=function(R,y,u){if(u==null)R.removeAttribute(y);else{var v;(v=y.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":y.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?R.setAttributeNS(v,y,u):R.setAttribute(y,u)}};
hLW=function(R,y,u){R[y]=u};
FQT=function(R,y,u){R=R.style;if(typeof u==="string")R.cssText=u;else{R.cssText="";for(var v in u)if(bNv.call(u,v)){y=R;var Q=v,M=u[v];Q.indexOf("-")>=0?y.setProperty(Q,M):y[Q]=M}}};
wAU=function(R,y,u){var v=typeof u;v==="object"||v==="function"?R[y]=u:Ep(R,y,u)};
Nnz=function(){var R=new KQS;R[$a.default]=wAU;R.style=FQT;return R};
TnU=function(R,y,u,v){(v[y]||v[$a.default])(R,y,u)};
xSv=function(R,y,u){y=new okS(y,u);return R.__incrementalDOMData=y};
q8=function(R,y){if(R.__incrementalDOMData)return R.__incrementalDOMData;var u=R.nodeType===1?R.localName:R.nodeName,v=R.nodeType===1?R.getAttribute("key"):null;y=xSv(R,u,R.nodeType===1?v||y:null);if(R.nodeType===1&&(R=R.attributes,u=R.length)){v=y._attrsArr||(y._attrsArr=I7S(u*2));for(var Q=0,M=0;Q<u;Q+=1,M+=2){var K=R[Q],h=K.value;v[M]=K.name;v[M+1]=h}}return y};
BnS=function(R,y,u,v,Q){return y==u&&v==Q};
f7O=function(R){for(var y=Xl,u=DK();u!==R;){var v=u.nextSibling;y.removeChild(u);py.deleted.push(u);u=v}};
DK=function(){return t2?t2.nextSibling:Xl.firstChild};
cT=function(){t2=DK()};
ONv=function(R,y,u){cT();var v;a:{if(v=t2){do{var Q=v,M=R,K=y,h=q8(Q,K);if(eLU(Q,M,h.nameOrCtor,K,h.key))break a}while(y&&(v=v.nextSibling))}v=null}v||(R==="#text"?(u=an.createTextNode(""),xSv(u,"#text",null),R=u):(v=an,Q=Xl,typeof R==="function"?v=new R:v=(Q=R==="svg"?"http://www.w3.org/2000/svg":R==="math"?"http://www.w3.org/1998/Math/MathML":Q==null||q8(Q).nameOrCtor==="foreignObject"?null:Q.namespaceURI)?v.createElementNS(Q,R):v.createElement(R),xSv(v,R,y),R=v,u&&R.setAttribute("nonce",u)),py.created.push(R),
v=R);u=v;if(u!==t2){if(l7E.indexOf(u)>=0)for(R=Xl,y=u.nextSibling,v=t2;v!==null&&v!==u;)Q=v.nextSibling,R.insertBefore(v,y),v=Q;else Xl.insertBefore(u,t2);t2=u}};
ZNv=function(R,y,u){ONv(R,y,u);Xl=t2;t2=null;return Xl};
HNW=function(){f7O(null);t2=Xl;Xl=Xl.parentNode};
Sf=function(){t2=Xl.lastChild};
rW4=function(R,y){y=y===void 0?{}:y;var u=y.matches===void 0?BnS:y.matches;return function(v,Q,M){var K=py,h=an,b=l7E,N=Ya,T=Ly,x=t2,B=Xl,l=eLU;an=v.ownerDocument;py=new nkE(v);eLU=u;Ya=[];Ly=[];t2=null;var Z=Xl=v.parentNode,P,k=GSP.call(v);if((P=k.nodeType===11||k.nodeType===9?k.activeElement:null)&&v.contains(P)){for(k=[];P!==Z;)k.push(P),P=P.parentNode||(Z?P.host:null);Z=k}else Z=[];l7E=Z;try{return R(v,Q,M)}finally{v=py,sp&&v.deleted.length>0&&sp(v.deleted),an=h,py=K,eLU=l,Ya=N,Ly=T,t2=x,Xl=B,
l7E=b}}};
PNv=function(R,y,u,v){zF.push(TnU);zF.push(R);zF.push(y);zF.push(u);zF.push(v)};
dS8=function(R,y,u){var v=Ly;y=y._attrsArr||(y._attrsArr=I7S(v.length));for(var Q=!y.length||!1,M=0;M<v.length;M+=2){var K=v[M];if(Q)y[M]=K;else if(y[M]!==K)break;var h=v[M+1];if(Q||y[M+1]!==h)y[M+1]=h,PNv(R,K,h,u)}if(M<v.length||M<y.length){for(M=Q=M;M<y.length;M+=2)gh[y[M]]=y[M+1];for(M=Q;M<v.length;M+=2)Q=v[M],K=v[M+1],gh[Q]!==K&&PNv(R,Q,K,u),y[M]=Q,y[M+1]=K,delete gh[Q];ka(y,v.length);for(var b in gh)PNv(R,b,void 0,u),delete gh[b]}R=WQc;WQc=u=zF.length;for(b=R;b<u;b+=5)(0,zF[b])(zF[b+1],zF[b+
2],zF[b+3],zF[b+4]);WQc=R;ka(zF,R);ka(v,0)};
Cy=function(R){ONv("#text",null);var y=t2;var u=q8(y);if(u.text!==R){u=u.text=R;for(var v=1;v<arguments.length;v+=1)u=(0,arguments[v])(u);y.data!==u&&(y.data=u)}};
mSU=function(R,y,u){if(u===!1&&USU.has(y))Ep(R,y,null);else if(y!=="idomKey"&&y!=="skip"&&y!=="skipchildren"&&y!=="children"&&y!=="el")if(y.startsWith("on")){if(y[2]!==":")throw Error("Nb`"+y);if(u===void 0||u===null){var v;(v=u$.handleError)==null||v.call.apply(v,[u$].concat(_.P$(Up(Error("Sb`"+y),R.tagName))));R[y]=void 0}else{var Q=y.slice(3);v=Op();if(Q==="jsaction"){u=Array.isArray(u)?u:[u];u=_.V(u);for(var M=u.next();!M.done;M=u.next()){M=M.value;if(typeof M!=="object"||M===null||typeof M.selfReg!==
"function")throw Error("Vb`"+y);M.selfReg(0,R,v?_.GF:function(){})}}else{if(typeof u!=="object"||u===null)throw Error("Tb`"+y+"`"+typeof u);
if(typeof u.getFn!=="function")throw Error("Ub`"+y+"`"+Object.keys(u));if(u.selfReg)u.selfReg(0,R,Q,v?_.GF:function(){});
else if(v&&R["on"+Q]===void 0){var K=u.getFn(0);R.addEventListener(Q,K);_.GF(function(){return void R.removeEventListener(Q,K)})}else if(v||!kSG.includes(Q))R["on"+Q]=u.getFn(0)}}}else{if(y.startsWith("data-")&&typeof u==="string")try{u=Ek8(u)}catch(h){u="zSoyz"}typeof u!=="function"||R._disposeEffects!=null?((v=y.startsWith("prop:"))&&(y=y.slice(5)),u$.enableAttributeSanitization&&(v&&$SL(R.tagName)||(u=iNO(R.tagName,y,u))),y==="style"?("function"==typeof _.RM&&u instanceof _.RM&&(u=u.toString()),
qlU(R,y,u)):v?R[y]=u:XAT(R,y,u)):(R._signalProps||(R._signalProps=[]),R._signalValues||(R._signalValues=[]),R._signalProps.push(y))}};
AWU=function(R,y,u){u=(u===void 0?{}:u).isReactive;if(y==null?0:y.el){var v=y.el;if(typeof v==="function")v(R);else{var Q;(Q=v.onRender)==null||Q.call(v,R);R._disposeRef||(R._disposeRef=function(){var M;(M=v.onUnmount)==null||M.call(v);delete R._disposeRef},u&&_.GF(function(){var M;
(M=R._disposeRef)==null||M.call(R)}))}}};
$SL=function(R){return R.length>0&&R.includes("-")&&!DSU.includes(R.toLowerCase())};
pA8=function(R){return vT(R)&&yV in R};
tmT=function(R){return pA8(R)?R[yV].flattened:R};
cWG=function(R,y){var u=_.qy.apply(2,arguments),v;y=(v=y)!=null?v:{};v={};return v.type=R,v.props=y,v.children=u,v[ur]=!0,v};
_.vu=function(R){return R.children};
QV=function(R){var y=a78!==cWG;a78=R?SlT:cWG;return y};
_.jS=function(R){return _.Sv(R)?"nodeType"in R:!1};
Ms=function(){return document.createTextNode("")};
J7=function(R){R=document.createTextNode(String(R));R._isSignalTextNode=!0;return R};
LQS=function(R){return R!=null&&R.contentKind===VV||R instanceof D2||YlP(R)};
sxE=function(R){var y=document.createElement("div");if(YlP(R)&&IIT(R))_.CK(y,IIT(R));else if(R instanceof D2)_.CK(y,R);else if(R!=null&&R.contentKind===VV){if(R.contentKind!==VV)throw Error("Rb");R=pK(R.toString());_.CK(y,R)}R=_.V(y.childNodes);for(var u=R.next();!u.done;u=R.next())u.value._isSafeOrSanitizedHtmlNode=!0;return y};
ir=function(R){R=typeof R;return R==="string"||R==="number"||R==="boolean"};
zLW=function(R){return R instanceof ey||GB(R)||"function"==typeof _.uB&&R instanceof _.uB||"function"==typeof _.RM&&R instanceof _.RM};
gkT=function(R,y){var u=R.parentElement;if(!u)return y;u.replaceChild(y,R);return y};
CNO=function(R,y){var u=R[0].parentElement;if(u)if(R[0].previousSibling||R[R.length-1].nextSibling){u.insertBefore(y,R[0]);for(var v=R.length-1;v>=0;v--)u.removeChild(R[v])}else u.textContent="",u.appendChild(y);return y};
R6O=function(R,y){if(R[0].parentElement)for(var u=R[0].parentElement,v=y.length,Q=R.length,M=v,K=0,h=0,b=R[Q-1].nextSibling,N=null;K<Q||h<M;)if(R[K]===y[h])K++,h++;else{for(;R[Q-1]===y[M-1];)Q--,M--;if(Q===K)for(var T=M<v?h?y[h-1].nextSibling:y[M-h]:b;h<M;){var x=y[h++];u.insertBefore(x,T)}else if(M===h)for(;K<Q;)T=R[K],N&&N.has(T)||u.removeChild(T),K++;else if(R[K]===y[M-1]&&y[h]===R[Q-1])T=R[--Q].nextSibling,u.insertBefore(y[h++],R[K++].nextSibling),u.insertBefore(y[--M],T),R[Q]=y[M];else{if(!N)for(N=
new Map,T=h;T<M;)N.set(y[T],T++);T=N.get(R[K]);if(T==null)u.removeChild(R[K]),K++;else if(h<T&&T<M){x=K;for(var B=1,l=void 0;++x<Q&&x<M&&(l=N.get(R[x]))!=null&&l===T+B;)B++;if(B>T-h)for(x=R[K];h<T;)u.insertBefore(y[h++],x);else u.replaceChild(y[h++],R[K++])}else K++}}return y};
ucL=function(R){if(Array.isArray(R)){if(R.length>1)throw Error("dc`"+R.length+"`"+R.map(ylz).join(", "));R=R[0]}if(R==null)return null;if(!(R instanceof _.YE)){var y,u;if((y=window)==null?0:(u=y.trustedTypes)==null?0:u.isScript(R))throw Error("cc");if(String(R).trim().length===0)return null;throw Error("ec`"+ylz(R));}return R};
vIT=function(R,y){y=ucL(y);y!==null&&_.zB(R,y)};
QRT=function(R){if(Array.isArray(R)){if(R.length>1)throw Error("fc`"+R.length+"`"+R.map(ylz).join(", "));R=R[0]}if(R==null)return null;if(!i$4(R)){if(String(R).trim().length===0)return null;throw Error("gc`"+ylz(R));}return R};
jRW=function(R,y){y=QRT(y);y!==null&&(R.textContent=_.K_S(y))};
ylz=function(R){return"("+typeof R+") "+(R!=null&&typeof R==="object"?R.constructor.name:typeof R)+" "+R};
MCT=function(){};
br=function(R,y){y=y===void 0?{}:y;var u=JlL();u$.legacyTriggerSoyRendererEvents&&$tT();_.WT(function(){KG.setUp();y.isControlFlowComponent&&xa++;var v=u[0],Q=u[yV].flattened,M=QV(!0);try{var K=R(),h=VCS(v,K,u);Array.isArray(h)||(u[yV].flattened=[h]);var b=u[yV].flattened;if(Q&&(!Array.isArray(Q)||Q.length!==0)){var N=Array.isArray(Q)?Q[0]:Q,T=N[IM],x=N._disposeEffects;N._disposeEffects=void 0;N=Array.isArray(b)?b[0]:b;N[IM]=T;N[IM]&&(N[IM].numNodes=N===b?1:b.length);N._disposeEffects=x}u[0]=h;y.isControlFlowComponent&&
fy(!1)}catch(B){throw y.isControlFlowComponent&&fy(!0),B;}finally{QV(M),KG.tearDown()}},y.debugName);
return u};
VCS=function(R,y,u){for(;typeof y==="function";)y=y();if(y!=null&&y[ur]){var v,Q,M;(M=u$.handleError)==null||M.call.apply(M,[u$].concat(_.P$(Up(Error("hc`"+((v=y.type)==null?void 0:v.TAG_NAME)),(Q=y.type)==null?void 0:Q.TAG_NAME))))}if(R==null)return y==null?Ms():ir(y)?J7(y):zLW(y)?J7(y.toString()):_.jS(y)?y:y.length===0?Ms():ivc(y,u);if(_.jS(R)){if(y==null)return gkT(R,Ms());if(ir(y))return KbP(R,y);if(zLW(y))return KbP(R,y.toString());if(_.jS(y))return gkT(R,y);if(y.length===0)return gkT(R,Ms());
y=ivc(y,u);R6O([R],u[yV].flattened);return y}R=Fn(R);if(y==null)return CNO(R,Ms());if(ir(y))return CNO(R,J7(y));if(zLW(y))return CNO(R,J7(y.toString()));if(_.jS(y))return R6O(R,[y])[0];if(y.length===0)return CNO(R,Ms());y=ivc(y,u);R6O(R,u[yV].flattened);return y};
KbP=function(R,y){R.nodeType===Node.TEXT_NODE?R.textContent!==String(y)&&(R.textContent=String(y)):R=gkT(R,J7(y));return R};
Fn=function(R,y,u){return IxS(R,y!=null?y:[],u===void 0?!1:u)};
ivc=function(R,y){var u=Fn(R,void 0,!0);if(u.length===0)return Ms();y[yV].flattened=u;return R};
IxS=function(R,y,u,v,Q){y=y===void 0?[]:y;u=u===void 0?!1:u;Q=Q===void 0?-1:Q;if(R==null)return y;if(R instanceof wB){var M=R.render();return IxS(M,y,u,v,Q)}if(_.jS(y)&&y.nodeType===Node.ELEMENT_NODE)switch(y.tagName){case "SCRIPT":vIT(y,R);return;case "STYLE":jRW(y,R);return}ir(R)&&(R=J7(R),v&&u&&(v[Q]=R));if(LQS(R)){u=sxE(R);u=Array.from(u.childNodes);u=_.V(u);for(M=u.next();!M.done;M=u.next())h6O(y,M.value);return y}zLW(R)&&(R=J7(R.toString()),v&&u&&(v[Q]=R));if(_.jS(R))return h6O(y,R);if(Array.isArray(R)){for(M=
0;M<R.length;M++)IxS(R[M],y,u,R,M);return y}if(typeof R==="function"){M=br(function(){var h=R();return h!=null&&!ir(h)&&LQS(h)?(h=sxE(h),Array.from(h.childNodes)):h},{debugName:"qmF2ne",
debugFn:R})[0];if(Array.isArray(M)){u=_.V(M);for(M=u.next();!M.done;M=u.next())h6O(y,M.value);return y}v&&u&&(v[Q]=M);return h6O(y,M)}if(R!=null&&R[ur]){v=R;Q=QV(!0);var K=a78;try{M=K.apply(null,[v.type,v.props].concat(_.P$(v.children)))}finally{QV(Q)}return IxS(M,y,u)}(K=u$.handleError)==null||K.call.apply(K,[u$].concat(_.P$(Up(Error("ic")))));return y};
JlL=function(R){var y={};y=Object.assign([],(y[yV]={flattened:[]},y));if(!R)return y;y[0]=ivc(R,y);return y};
h6O=function(R,y){Array.isArray(R)?R.push(y):R.appendChild(y);return R};
Ns=function(R){if(!u$.enableLazyTsx)return R;if(Array.isArray(R)){for(var y=0;y<R.length;y++)R[y]=Ns(R[y]);return R}return R instanceof wB?(R=R.render(),Ns(R)):R};
FbT=function(R,y){var u,v,Q=txG(R),M=function(l){v=l;l=QV(!0);var Z=jf(T7);SWU("render",Q);try{u=Ns(R(y))}finally{YWL("render",Q),jf(Z),QV(l)}};
M=u$.enableContextPerComponent?zuO(M,Q):rh(M,u$.alwaysTrackContexts||!!zl);CQL(v);if(!y.renderedFromIdom){var K=_.gs(v);try{return bvG(R,y,u),u}finally{_.gs(K)}}!pA8(u)&&Array.isArray(u)&&(u=JlL(u));var h=tmT(u);K=Array.isArray(h)?h[0]:h;var b=!1;if(K){var N,T=(N=y==null?void 0:y.idomKey)!=null?N:R;N=h!==K;K._disposeEffects=M;var x=K[IM]||{},B=pA8(u)?u:x.sourceDynamicRange;Object.assign(x,{key:T,numNodes:N?h.length:1,context:v,higherOrder:!!K[IM],sourceDynamicRange:B});K[IM]=x}else b=!0;(function(){var l=
_.gs(v);try{bvG(R,y,h)}finally{_.gs(l)}})();
b&&M();return u};
w8L=function(R){var y={},u;for(u in R)y={prev$jscomp$23:void 0,next$jscomp$33:void 0},y.prev$jscomp$23=oM[u],y.next$jscomp$33=R[u],oM[u]=function(v){return function(){var Q=_.qy.apply(0,arguments);v.prev$jscomp$23.apply(null,_.P$(Q));v.next$jscomp$33.apply(null,_.P$(Q))}}(y)};
NGP=function(){if(Op())throw Error("jc");return xB};
TGU=function(R,y){if(!R.__unmounted&&y){R.__unmounted=!0;try{R.didUnmount()}catch(Q){var u,v;(v=u$.handleError)==null||v.call.apply(v,[u$].concat(_.P$(Up(Q,(u=R.JSC$10186___type)==null?void 0:u.TAG_NAME))))}oM.didUnmount(R);R.el=null;y.__instance&&delete y.__instance}};
x4G=function(R,y,u){R._signalProps!=null&&R._disposeEffects==null&&((u===void 0?0:u)?R._disposeEffects=rh(function(){return void oIO(R,y)},u$.alwaysTrackContexts||!!zl):oIO(R,y))};
oIO=function(R,y){_.WT(function(){for(var u=R._signalProps,v=R._signalValues,Q=0;Q<u.length;Q++){var M=u[Q],K=y[M]();v[Q]!==K&&(v[Q]=K,mSU(R,M,K))}},"e3YVbb")};
BGT=function(R,y,u){var v,Q=[];R._disposeEffects=rh(function(){_.WT(function(){var M=u();if(M===null||M===void 0)M="";if(ir(M)||M===null)v!=null||(v=document.createTextNode("")),v.parentNode!==R&&(v._isSignalTextNode=!0,R.insertBefore(v,y)),v.textContent=String(M);else if(LQS(M)){for(var K=Q.length>0?Q[Q.length-1].nextSibling:y,h=_.V(Q),b=h.next();!b.done;b=h.next())R.removeChild(b.value);M=sxE(M);Q=Array.from(M.childNodes);M=_.V(Q);for(h=M.next();!h.done;h=M.next())R.insertBefore(h.value,K)}else throw b=
(h=(K=ef)==null?void 0:K.name)!=null?h:"unknown",Error("Zb`"+b+"`"+typeof M);},"VvDgC")},u$.alwaysTrackContexts||!!zl)};
lxG=function(R,y){var u=_.qy.apply(2,arguments);y!=null||(y={});return!u$.enableLazyTsx||ef!=null&&!Op()?fxU(R,y,u):new e6U(R,y,u)};
fxU=function(R,y,u){if(R===_.vu)return u;if(typeof R==="function")return ef&&!Op()&&(y.renderedFromIdom=!0),ccW(R,function(){var M=OvG(R,y,u);if(M)return M;u.length>0&&(y.children=u.length===1?u[0]:u);if(R.componentType===l$){var K;zuO(function(){var h=y;if(R.componentType!==l$)K=!1;else{h||(h={});var b=new Bu(h,R),N=jf(T7);try{var T=b.render(h)}finally{jf(N)}T instanceof HTMLElement?(T.__instance=b,b.el=T,b.JSC$10186___type=R,R.TAG_NAME=T.tagName.toLowerCase(),oM.didPatch(b),K=T):K=T}},R.name);
if(K)return K}return FbT(R,y)},y.debugInstance);
var v=ZvU(R,y),Q;for(Q in y)mSU(v,Q,y[Q]);x4G(v,y);Fn(u,v);AWU(v,y,{isReactive:!0});Hvc(v,y);return v};
ZvU=function(R,y){R=(nIv.has(R.toLowerCase())?0:GM8.has(R.startsWith("svg:")?R.replace("svg:",""):R))?document.createElementNS("http://www.w3.org/2000/svg",R.startsWith("svg:")?R.replace("svg:",""):R):rlS(R,y)||document.createElement(R);R[Ppc]=!0;return R};
WbT=function(R){if(R){var y;(y=R._disposeRef)==null||y.call(R);var u;(u=R._disposeEffects)==null||u.call(R);R.__instance&&R.__instance instanceof fG&&(y=R.__instance,TGU(y,R),y instanceof Bu&&y.disposeEffects());for(y=0;y<R.childNodes.length;y++)WbT(R.childNodes[y])}};
U4O=function(R){d4U.push(R)===1&&requestAnimationFrame(function(){setTimeout(function(){var y=[].concat(_.P$(d4U));d4U=[];y=_.V(y);for(var u=y.next();!u.done;u=y.next()){u=u.value;try{for(var v=0;v<u.length;v++)WbT(u[v])}catch(Q){v=u=void 0,(v=(u=u$).handleError)==null||v.call.apply(v,[u].concat(_.P$(Up(Q))))}}})})};
_.F=function(R,y){return a78.apply(null,[R,y].concat(_.P$(_.qy.apply(2,arguments))))};
kMT=function(R,y){y=y===void 0?new Map:y;R=_.V(R);for(var u=R.next();!u.done;u=R.next())if(u=u.value,!y.has(u)){for(var v=[],Q=u.producers;Q!==void 0;Q=Q.nextProducer)v.push(Q.producer);y.set(u,v);kMT(v,y)}return y};
_.w=function(R){var y=R.cond;if(y===void 0)return R.else&&R.else();var u=_.N8(function(){return!!y()},void 0,"JHVi8"),v=function(){var Q=y();
if(!Q){var M;(M=u$.handleError)==null||M.call.apply(M,[u$].concat(_.P$(Up(EIP.nonNullableCondIsNull()))))}return Q};
return br(function(){var Q=u(),M;rh(function(){var K=jf(T7);try{M=Ns(Q?R.then(v):R.else&&R.else())}finally{jf(K)}},!0);
return M},{debugName:R.debugInstance,
debugFn:R.then,isControlFlowComponent:!0})};
$4U=function(R){return _.w(R)};
_.eS=function(R){return R.keyBy==="INDEX"?qf4(R):X8S(R)};
m4W=function(R){R=_.V(R);for(var y=R.next();!y.done;y=R.next()){var u=void 0;(u=y.value)==null||u()}};
X8S=function(R){var y=R.keyBy===void 0||R.keyBy==="REFERENCE",u=y?function(T){return T}:R.keyBy,v=[],Q=[],M=[],K=[],h=[],b=[],N=!0;
_.GF(function(){m4W(K)});
return br(function(){var T=R.each(),x=T.length;if(x===0){if(v.length===0&&!N)return M;m4W(K);v=T;Q=[];for(T=0;T<v.length;T++)Q.push(u(v[T]));M=[];K=[];h=[];b=[];R.fallback&&(K[0]=AlW(function(){M[0]=Ns(R.fallback())}));
N=!1;return M}for(var B=new D4z,l=v.length-1;l>=0;l--)B.push(Q[l],l);l=Array(x);for(var Z=Array(x),P=Array(x),k=Array(x),E=Array(y?0:x),D={i$jscomp$445:0};D.i$jscomp$445<x;D={i$jscomp$445:D.i$jscomp$445,item$jscomp$103:void 0,key$jscomp$550:void 0},D.i$jscomp$445++){D.item$jscomp$103=T[D.i$jscomp$445];D.key$jscomp$550=u(D.item$jscomp$103);var z=B.pop(D.key$jscomp$550);z!=null?(P[D.i$jscomp$445]=M[z],Z[D.i$jscomp$445]=Q[z],l[D.i$jscomp$445]=K[z],k[D.i$jscomp$445]=h[z],y||(E[D.i$jscomp$445]=b[z]),TF(function(c){return function(){k[c.i$jscomp$445](c.i$jscomp$445);
if(!y)E[c.i$jscomp$445](c.item$jscomp$103)}}(D)),delete K[z]):l[D.i$jscomp$445]=AlW(function(c){return function(){var a=_.V(_.In(c.i$jscomp$445,void 0,"Fqk1zd")),L=a.next().value;
a=a.next().value;k[c.i$jscomp$445]=a;Z[c.i$jscomp$445]=c.key$jscomp$550;if(y)P[c.i$jscomp$445]=Ns(R.children(c.item$jscomp$103,L));else{var QG=_.V(_.In(c.item$jscomp$103,void 0,"GBj5de"));a=QG.next().value;QG=QG.next().value;E[c.i$jscomp$445]=QG;P[c.i$jscomp$445]=Ns(R.children(a,L))}}}(D))}m4W(K);
v=T;Q=Z;M=P;K=l;h=k;b=E;N=!1;return P},{debugName:R.debugInstance,
debugFn:R.each,isControlFlowComponent:!0})};
qf4=function(R){var y=[],u=[],v=[],Q=[],M=!1;_.GF(function(){for(var K=_.V(Q),h=K.next();!h.done;h=K.next())h=h.value,h()});
return br(function(){var K=R.each();M&&K.length>0&&(Q.pop()(),y.pop(),M=!1);for(var h=Array(K.length),b={i$jscomp$446:0};b.i$jscomp$446<K.length;b={i$jscomp$446:b.i$jscomp$446},b.i$jscomp$446++)if(b.i$jscomp$446<y.length)y[b.i$jscomp$446]!==K[b.i$jscomp$446]&&(TF(function(T){return function(){return void u[T.i$jscomp$446](K[T.i$jscomp$446])}}(b)),y[b.i$jscomp$446]=K[b.i$jscomp$446]),h[b.i$jscomp$446]=v[b.i$jscomp$446];
else{var N=AlW(function(T){return function(){y[T.i$jscomp$446]=K[T.i$jscomp$446];var x=_.V(_.In(K[T.i$jscomp$446],void 0,"JMMLmd")),B=x.next().value;x=x.next().value;u[T.i$jscomp$446]=x;h[T.i$jscomp$446]=Ns(R.children(B,T.i$jscomp$446))}}(b));
Q[b.i$jscomp$446]=N}for(;y.length>K.length;)y.pop(),Q.pop()(),u.pop();K.length===0&&!M&&R.fallback&&(b=AlW(function(){h[0]=Ns(R.fallback())}),Q[0]=b,M=!0);
return v=h},{debugName:R.debugInstance,
isControlFlowComponent:!0})};
AlW=function(R){var y=zl;return rh(function(u){var v=jf(T7);try{u.parent=y,R(u)}finally{jf(v)}},!1)};
_.lr=function(R){return R};
_.OB=function(R){return{isDefault:!0,children:R.children}};
_.Z6=function(R){var y=p8P(R),u=_.N8(function(){return tCU(y)},void 0,"F1PF4");
return br(function(){var v=u(),Q;rh(function(){var M=jf(T7);try{Q=Ns(v())}finally{jf(M)}});
return Q},{debugName:R.debugInstance,
isControlFlowComponent:!0})};
p8P=function(R){R=R.children;return Array.isArray(R)?R:[R]};
clG=function(R){var y=R.props;R=R.getChildren()[0];return y.when?{when:y.when,children:R}:{isDefault:!0,children:R}};
tCU=function(R){var y=function(){return null};
R=_.V(R);for(var u=R.next();!u.done;u=R.next())if(u=u.value,u!=null&&u[ur]&&(u=u.type===_.OB?{isDefault:!0,children:u.children[0]}:{when:u.props.when,children:u.children[0]}),u instanceof wB&&(u=clG(u)),u.isDefault)y=u.children;else if(u.when())return u.children;return y};
SfG=function(R){var y=null,u,v={get value(){var M,K;(K=(M=Q).validateGetValue)==null||K.call(M);return Q.__value},set value(M){var K,h;(h=(K=Q).validateSetValue)==null||h.call(K,M);Q.__value=M;Q.__hasBeenSet=!0}},Q=(v.__value=null,v.__hasBeenSet=!1,v.__hasErrored=!1,v.onRender=function(M){if(u&&M!==u){u._disposeRef=void 0;var K;(K=y)==null||K()}u=M;y=R(M)||null},v.onUnmount=function(){var M;
(M=y)==null||M();y=Q.value=null},v[_.axG]=!0,v);
return Q};
LbP=function(R){var y=NGP();if(y==null)throw _.Yfz.PRIMITIVE_INVALID_HOOK_CALL();var u=y.hookCounter++;y.hooks||(y.hooks=[]);var v=y.hooks;v[u]||(v[u]={key:R,host:y});if(R!==v[u].key){if(y.JSC$10186___type){var Q;R=(Q=y.JSC$10186___type)==null?void 0:Q.name}else R=y instanceof Bu?txG(y.functionComponent):"<"+y.el.tagName.toLowerCase()+">";throw _.Yfz.OUT_OF_ORDER_HOOK_CALL(R);}return v[u]};
sRv=function(R,y){return!R||R.length!==(y==null?void 0:y.length)||R.some(function(u,v){return u!==y[v]})};
z6P=function(R,y){var u=LbP("onChange"),v=NGP();sRv(u.deps,y)&&(u.deps=y,u.pendingEffect=R,v.__syncEffects||(v.__syncEffects=[]),v.__syncEffects.push(u))};
_.Hu=function(R,y){var u=u===void 0?{}:u;u=u.appContext;var v=!!u$.legacyTriggerSoyRendererEvents;KG.setUp();try{var Q=gIS(R,y,u);v&&(y=u,y==null&&(y=_.xtT(document).getAppContext()),y.get(CpT).JSC$28848_getEventTarget().dispatchEvent(new R5G(y_E,R,VV)));KG.log(R);return Q}finally{KG.tearDown()}};
gIS=function(R,y,u){var v=HT(function(){var Q=jf(T7);try{return rh(function(){var M=_.xtT(_.kh(R)),K;var h=E2v({rootElement:{value:R},appContext:u||(M==null?void 0:(K=M.getOptionalAppContext)==null?void 0:K.call(M)),dispatcher:M});M=_.gs(h);h=QV(!0);xa++;try{Fn(y(),R),fy(!1)}catch(b){throw fy(!0),b;}finally{QV(h),_.gs(M)}},!1)}catch(M){throw u$.enableContextBasedComponentStacks&&ZK(M),M;
}finally{jf(Q)}});
R[uhU]=!0;return function(){R.textContent="";v();R[uhU]=!1}};
_.nG=function(R){if(Dcc(QU)){var y;(y=u$.handleError)==null||y.call.apply(y,[u$].concat(_.P$(Up(Error("Yb")))))}var u=zl,v=ef;Promise.resolve().then(function(){if(u&&!u.isDisposed){var Q=_.gs(u);try{HT(function(){return void R()},v)}catch(M){throw u$.enableContextBasedComponentStacks&&ZK(M),M;
}finally{_.gs(Q)}}})};
_.G7=function(R,y){z6P(function(){return Ky(R)},y)};
_.rB=function(R){Op()?_.nG(function(){Ky(R)}):z6P(function(){return Ky(R)},[])};
QkT=function(R){var y=[].concat(_.P$(R));R.length=0;R=_.V(y);for(y=R.next();!y.done;y=R.next()){y=y.value;vFT(y);var u=y.pendingEffect;y.pendingEffect=null;if(u=u==null?void 0:u())y.pendingCleanup=u}};
vFT=function(R){var y=R.pendingCleanup;R.pendingCleanup=null;y==null||y()};
jkU=function(R,y){if(Op())return R();var u=LbP("useMemoInternal");sRv(u.deps,y)&&(u.deps=y,u.value=R());return u.value};
MiU=function(R,y){return jkU(R,y)};
Pu=function(R){return jkU(R,[])};
Wu=function(R){return Pu(function(){return{value:R}})};
_.dB=function(R,y){if(!R)return null;R=Object.keys(R);R=_.V(R);for(var u=R.next();!u.done;u=R.next()){u=u.value;var v=u.toLowerCase();if(v.indexOf(y,v.length-y.length)>-1)return u}return null};
_.kB=function(){var R=arguments,y=_.UB;R.length>1?y[R[0]]=R[1]:R.length===1&&Object.assign(y,R[0])};
_.EB=function(R,y){return R in _.UB?_.UB[R]:y};
_.$B=function(R,y){return!!_.EB(R,y)};
J_S=function(R){var y=_.UB.EXPERIMENT_FLAGS;return y?y[R]:void 0};
ioT=function(R){ViT.forEach(function(y){return y(R)})};
_.A7=function(R){return R&&window.yterr?function(){try{return R.apply(this,arguments)}catch(y){_.mq(y)}}:R};
_.mq=function(R){var y=_.D6("yt.logging.errors.log");y?y(R,"ERROR",void 0,void 0,void 0,void 0,void 0):(y=_.EB("ERRORS",[]),y.push([R,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.kB("ERRORS",y));ioT(R)};
_.pG=function(R,y,u,v,Q){var M=_.D6("yt.logging.errors.log");M?M(R,"WARNING",y,u,v,void 0,Q):(M=_.EB("ERRORS",[]),M.push([R,"WARNING",y,u,v,void 0,Q]),_.kB("ERRORS",M))};
IqG=function(R,y){y=R.split(y);for(var u={},v=0,Q=y.length;v<Q;v++){var M=y[v].split("=");if(M.length===1&&M[0]||M.length===2)try{var K=Kmc(M[0]||""),h=Kmc(M[1]||"");if(K in u){var b=u[K];Array.isArray(b)?_.tz(b,h):u[K]=[b,h]}else u[K]=h}catch(B){var N=B,T=M[0],x=String(IqG);N.args=[{key:T,value:M[1],query:R,method:h5G===x?"unchanged":x}];boU.hasOwnProperty(T)||_.pG(N)}}return u};
Fm4=function(R){var y=[];_.Ps.forEach(R,function(u,v){var Q=_.t7(v);u=Array.isArray(u)?u:[u];_.cu(u,function(M){M==""?y.push(Q):y.push(Q+"="+_.t7(M))})});
return y.join("&")};
_.aM=function(R){R.charAt(0)==="?"&&(R=R.substring(1));return IqG(R,"&")};
_.SS=function(R){return R.indexOf("?")!==-1?(R=(R||"").split("#")[0],R=R.split("?",2),_.aM(R.length>1?R[1]:R[0])):{}};
_.YB=function(R,y){return woE(R,y||{},!0)};
NrU=function(R,y){return woE(R,y||{},!1)};
woE=function(R,y,u){var v=R.split("#",2);R=v[0];v=v.length>1?"#"+v[1]:"";var Q=R.split("?",2);R=Q[0];Q=_.aM(Q[1]||"");for(var M in y)if(u||!_.Ps.containsKey(Q,M))Q[M]=y[M];return _.LG(R,Q)+v};
CG=function(R){if(!y)var y=window.location.href;var u=_.sB(R)[1]||null,v=_.z7(R);return u&&v?gB(R,y):v?_.z7(y)===v&&(Number(_.sB(y)[4]||null)||null)===(Number(_.sB(R)[4]||null)||null):!0};
_.oFW=function(R){R=TrP(R);return R===null?!1:R[0]==="com"&&R[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
TrP=function(R){R=_.z7(R);return R!==null?R.split(".").reverse():null};
Kmc=function(R){return R&&R.match(xQP)?R:Rh(R)};
_.yN=function(R){return new BrU(R)};
_.ua=function(){fqP||(fqP=new e5L);return fqP};
OoL=function(R){var y=_.jX,u,v;_.I(function(Q){u=_.ua();return(v=u.resolve(_.yN(y)))?(R(v),Q.return(Promise.resolve(v))):Q.return(u.resolve(new lq8(y)).then(function(M){R(M);return M}))})};
_.f=function(R){R=MC(R);return typeof R==="string"&&R==="false"?!1:!!R};
_.JT=function(R,y){R=MC(R);return R===void 0&&y!==void 0?y:Number(R||0)};
ZoU=function(R){R=MC(R);return Array.isArray(R)?_.Ws(R,function(y){return Number(y||0)}):[Number(R||0)]};
_.VN=function(R){R=MC(R);return R!==void 0?String(R):""};
_.ia=function(R){R=MC(R);return Array.isArray(R)?_.Ws(R,function(y){return String(y||"")}):[String(R||"")]};
Ho4=function(){return _.EB("EXPERIMENTS_TOKEN","")};
MC=function(R){return _.EB("EXPERIMENT_FLAGS",{})[R]};
nF4=function(){for(var R=[],y=_.EB("EXPERIMENTS_FORCED_FLAGS",{}),u=_.V(Object.keys(y)),v=u.next();!v.done;v=u.next())v=v.value,R.push({key:v,value:String(y[v])});u=_.EB("EXPERIMENT_FLAGS",{});v=_.V(Object.keys(u));for(var Q=v.next();!Q.done;Q=v.next())Q=Q.value,Q.startsWith("force_")&&y[Q]===void 0&&R.push({key:Q,value:String(u[Q])});return R};
r_G=function(){if(!GPT)return null;var R=GPT();return"open"in R?R:null};
_.PhG=function(R){switch(_.KJ(R)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.KJ=function(R){return R&&"status"in R?R.status:-1};
_.Ih=function(R,y){typeof R==="function"&&(R=_.A7(R));return window.setTimeout(R,y)};
_.hT=function(R,y){typeof R==="function"&&(R=_.A7(R));return window.setInterval(R,y)};
_.ba=function(R){window.clearTimeout(R)};
dQW=function(R){R=_.SS(R);for(var y=_.V(Wm4),u=y.next();!u.done;u=y.next())if(R[u.value]!==void 0)return!0;return!1};
EFT=function(R,y,u,v,Q,M,K,h,b){u=u===void 0?"GET":u;v=v===void 0?"":v;h=h===void 0?!1:h;var N=r_G();if(!N)return null;var T=function(){(N&&"readyState"in N?N.readyState:0)===4&&y&&_.A7(y)(N)};
"onloadend"in N?N.addEventListener("loadend",T,!1):N.onreadystatechange=T;_.f("debug_forward_web_query_parameters")&&(R=UQU(R,window.location.search));N.open(u,R,!0);M&&(N.responseType=M);K&&(N.withCredentials=!0);u=u==="POST"&&(window.FormData===void 0||!(v instanceof FormData));if(Q=kPE(R,Q))for(var x in Q)N.setRequestHeader(x,Q[x]),"content-type"===x.toLowerCase()&&(u=!1);u&&N.setRequestHeader("Content-Type","application/x-www-form-urlencoded");b&&"onprogress"in N&&(N.onprogress=function(){b(N.responseText)});
if(h&&"setAttributionReporting"in XMLHttpRequest.prototype){R={eventSourceEligible:!0,triggerEligible:!1};try{N.setAttributionReporting(R)}catch(B){_.pG(B)}}N.send(v);return N};
kPE=function(R,y){y=y===void 0?{}:y;var u=CG(R),v=_.EB("INNERTUBE_CLIENT_NAME"),Q=_.f("web_ajax_ignore_global_headers_if_set"),M;for(M in $QO){var K=_.EB($QO[M]),h=M==="X-Goog-AuthUser"||M==="X-Goog-PageId";M!=="X-Goog-Visitor-Id"||K||(K=_.EB("VISITOR_DATA"));var b;if(!(b=!K)){if(!(b=u||(_.z7(R)?!1:!0))){b=R;var N;if(N=_.f("add_auth_headers_to_remarketing_google_dot_com_ping")&&M==="Authorization"&&(v==="TVHTML5"||v==="TVHTML5_UNPLUGGED"||v==="TVHTML5_SIMPLY"))N=TrP(b),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&&(b=_.Fq(b)||"",b=b.split("/"),b="/"+(b.length>1?b[1]:""),N=b==="/pagead");b=N?!0:!1}b=!b}b||Q&&y[M]!==void 0||v==="TVHTML5_UNPLUGGED"&&h||(y[M]=K)}"X-Goog-EOM-Visitor-Id"in y&&"X-Goog-Visitor-Id"in y&&delete y["X-Goog-Visitor-Id"];if(u||!_.z7(R))y["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(u||!_.z7(R)){try{var T=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(x){}T&&(y["X-YouTube-Time-Zone"]=
T)}document.location.hostname.endsWith("youtubeeducation.com")||!u&&_.z7(R)||(y["X-YouTube-Ad-Signals"]=Fm4(q9c()));return y};
_.XoT=function(R,y){var u=_.z7(R);_.f("debug_handle_relative_url_for_query_forward_killswitch")||!u&&CG(R)&&(u=document.location.hostname);var v=_.Fq(R);v=(u=u&&(u.endsWith("youtube.com")||u.endsWith("youtube-nocookie.com")))&&v&&v.startsWith("/api/");if(!u||v)return R;var Q=_.aM(y),M={};_.cu(Wm4,function(K){Q[K]&&(M[K]=Q[K])});
return NrU(R,M)};
mQ4=function(R,y){y.method="POST";y.postParams||(y.postParams={});return _.wR(R,y)};
A_E=function(R,y){var u=_.EB("XSRF_FIELD_NAME"),v;y.headers&&(v=y.headers["Content-Type"]);return!y.excludeXsrf&&(!_.z7(R)||y.withCredentials||_.z7(R)===document.location.hostname)&&y.method==="POST"&&(!v||v==="application/x-www-form-urlencoded")&&!(y.postParams&&y.postParams[u])};
_.wR=function(R,y){var u=y.format||"JSON";R=DQT(R,y);var v=poU(R,y),Q=!1,M=ti4(R,function(b){if(!Q){Q=!0;h&&_.ba(h);var N=_.PhG(b),T=null,x=400<=b.status&&b.status<500,B=500<=b.status&&b.status<600;if(N||x||B)T=c_W(R,u,b,y.convertToSafeHtml);N&&(N=aqS(u,b,T));T=T||{};x=y.context||_.uO;N?y.onSuccess&&y.onSuccess.call(x,b,T):y.onError&&y.onError.call(x,b,T);y.onFinish&&y.onFinish.call(x,b,T)}},y.method,v,y.headers,y.responseType,y.withCredentials,!1,y.onProgress);
v=y.timeout||0;if(y.onTimeout&&v>0){var K=y.onTimeout;var h=_.Ih(function(){Q||(Q=!0,M.abort(),_.ba(h),K.call(y.context||_.uO,M))},v)}return M};
DQT=function(R,y){y.includeDomain&&(R=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+R);var u=_.EB("XSRF_FIELD_NAME");if(y=y.urlParams)y[u]&&delete y[u],R=_.YB(R,y);return R};
poU=function(R,y){var u=_.EB("XSRF_FIELD_NAME"),v=_.EB("XSRF_TOKEN"),Q=y.postBody||"",M=y.postParams;A_E(R,y)&&(M||(M={}),M[u]=v);(_.f("ajax_parse_query_data_only_when_filled")&&M&&Object.keys(M).length>0||M)&&typeof Q==="string"&&(Q=_.aM(Q),_.Ps.extend(Q,M),Q=y.postBodyFormat&&y.postBodyFormat==="JSON"?JSON.stringify(Q):_.NC(Q));M=Q||M&&!_.Ps.isEmpty(M);!S9T&&M&&y.method!=="POST"&&(S9T=!0,_.mq(Error("Gc")));return Q};
c_W=function(R,y,u,v){var Q=null;switch(y){case "JSON":try{var M=u.responseText}catch(K){throw v=Error("Hc"),v.params=R,_.pG(v),K;}R=u.getResponseHeader("Content-Type")||"";M&&R.indexOf("json")>=0&&(M.substring(0,5)===")]}'\n"&&(M=M.substring(5)),Q=JSON.parse(M));break;case "XML":if(R=(R=u.responseXML)?Y94(R):null)Q={},_.cu(R.getElementsByTagName("*"),function(K){Q[K.tagName]=LmT(K)})}v&&skP(Q);
return Q};
skP=function(R){if(_.Sv(R))for(var y in R)y==="html_content"||Jz(y,"_html")?R[y]=pK(R[y]):skP(R[y])};
aqS=function(R,y,u){if(y&&y.status===204)return!0;switch(R){case "JSON":return!!u;case "XML":return Number(u&&u.return_code)===0;case "RAW":return!0;default:return!!u}};
Y94=function(R){return R?(R=("responseXML"in R?R.responseXML:R).getElementsByTagName("root"))&&R.length>0?R[0]:null:null};
LmT=function(R){var y="";_.cu(R.childNodes,function(u){y+=u.nodeValue});
return y};
z5S=function(R){if(R.name==="JavaException")return!0;R=R.stack;return R.includes("chrome://")||R.includes("-extension://")||R.includes("webkit-masked-url://")};
gFc=function(R){if(!R.stack)return!0;var y=!R.stack.includes("\n");return y&&R.stack.includes("ErrorType: ")||y&&R.stack.includes("Anonymous function (Unknown script")||R.stack.toLowerCase()==="not available"||R.fileName==="user-script"||R.fileName.startsWith("user-script:")?!0:!1};
_.Tu=function(R){_.Z0.call(this);this.JSC$10451_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!R};
RBT=function(R,y){var u=R.length,v=0,Q=function(){return R.charCodeAt(v++)};
do{var M=Chc(Q);if(M===Infinity)break;var K=M>>3;switch(M&7){case 0:M=Chc(Q);if(K===y)return M;break;case 1:if(K===y)return;v+=8;break;case 2:M=Chc(Q);if(K===y)return R.substr(v,M);v+=M;break;case 5:if(K===y)return;v+=4;break;default:return}}while(v<u)};
Chc=function(R){var y=R(),u=y&127;if(y<128)return u;y=R();u|=(y&127)<<7;if(y<128)return u;y=R();u|=(y&127)<<14;if(y<128)return u;y=R();return y<128?u|(y&127)<<21:Infinity};
u9v=function(R,y,u,v){if(R)if(Array.isArray(R)){var Q=v;for(v=0;v<R.length&&!(R[v]&&(Q+=yNv(v,R[v],y,u),Q>500));v++);v=Q}else if(typeof R==="object")for(Q in R){if(R[Q]){var M=Q;var K=R[Q],h=y,b=u;M=typeof K!=="string"||M!=="clickTrackingParams"&&M!=="trackingParams"?0:(K=RBT(atob(K.replace(/-/g,"+").replace(/_/g,"/")),2))?yNv(M+".ve",K,h,b):0;v+=M;v+=yNv(Q,R[Q],y,u);if(v>500)break}}else u[y]=oh(R),v+=u[y].length;else u[y]=oh(R),v+=u[y].length;return v};
yNv=function(R,y,u,v){u+="."+R;R=oh(y);v[u]=R;return u.length+R.length};
oh=function(R){try{return(typeof R==="string"?R:String(JSON.stringify(R))).substr(0,500)}catch(y){return"unable to serialize "+typeof R+" ("+y.message+")"}};
vsG=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}};
_.B5=function(R,y,u,v,Q){_.xz.set(R,y,{maxAge:u,path:"/",domain:v===void 0?"youtube.com":v,secure:Q===void 0?!1:Q})};
_.Q3c=function(R,y,u){_.xz.remove(R,y===void 0?"/":y,u===void 0?"youtube.com":u)};
_.fJ=function(){if(_.f("embeds_web_enable_cookie_detection_fix")){if(!_.uO.navigator.cookieEnabled)return!1}else if(!_.xz.isEnabled())return!1;if(!_.xz.isEmpty())return!0;_.f("embeds_web_enable_cookie_detection_fix")?_.xz.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.xz.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.xz.get("TESTCOOKIESENABLED")!=="1")return!1;_.xz.remove("TESTCOOKIESENABLED");return!0};
j3E=function(){var R=_.uO.navigator;return R?R.connection:void 0};
M6v=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(R){}};
_.V6E=function(){var R=j3E();if(R){var y=JNO[R.type||"unknown"]||"CONN_UNKNOWN";R=JNO[R.effectiveType||"unknown"]||"CONN_UNKNOWN";y==="CONN_CELLULAR_UNKNOWN"&&R!=="CONN_UNKNOWN"&&(y=R);if(y!=="CONN_UNKNOWN")return y;if(R!=="CONN_UNKNOWN")return R}};
KcU=function(){var R=j3E();if(R!=null&&R.effectiveType)return iz4.hasOwnProperty(R.effectiveType)?iz4[R.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.la=function(){try{return _.eX(),!0}catch(R){return!1}};
_.eX=function(R){if(_.EB("DATASYNC_ID")!==void 0)return _.EB("DATASYNC_ID");throw new _.OL("Datasync ID not set",R===void 0?"unknown":R);};
_.ZI=function(R){this.mechanism=R};
H5=function(R){this.mechanism=R};
nJ=function(R){this.storage_=R;this.cachedIsStorageAvailable_=null};
InL=function(){var R=null;try{R=_.uO.localStorage||null}catch(y){}nJ.call(this,R)};
hB4=function(){var R=null;try{R=_.uO.sessionStorage||null}catch(y){}nJ.call(this,R)};
Gu=function(R,y){this.mechanism_=R;this.JSC$10553_prefix_=y+"::"};
_.bz8=function(R){var y=new InL;return y.isAvailable()?R?new Gu(y,R):y:null};
_.FcT=function(R){var y=new hB4;return y.isAvailable()?R?new Gu(y,R):y:null};
NNP=function(){var R;return(R=wdc())==null?void 0:R.get("LAST_RESULT_ENTRY_KEY",!0)};
_.W5=function(R){TNL||(_.rR?_.rR.logError(R):(_.P5.push({type:"ERROR",payload:R}),_.P5.length>10&&_.P5.shift()))};
dR=function(R,y){TNL||(_.rR?_.rR.logEvent(R,y):(_.P5.push({type:"EVENT",eventType:R,payload:y}),_.P5.length>10&&_.P5.shift()))};
UL=function(R){if(R.indexOf(":")>=0)throw Error("Oc");};
kz=function(R){return R.substr(0,R.indexOf(":"))||R};
BNT=function(){return(osz||xqz)&&EL("applewebkit")&&!EL("version")&&(!EL("safari")||EL("gsa/"))};
EL=function(R){var y=_.NU();return y?y.toLowerCase().indexOf(R)>=0:!1};
ln8=function(R,y,u,v){y=kz(y);var Q=R instanceof Error?R:Error("Pc`"+R);if(Q instanceof $z)return Q;R={objectStoreNames:u,dbName:y,dbVersion:v};if(Q.name==="QuotaExceededError")return new $z("QUOTA_EXCEEDED",R);if(_.qC&&Q.name==="UnknownError")return new $z("QUOTA_MAYBE_EXCEEDED",R);if(Q instanceof fnG)return new $z("MISSING_INDEX",Object.assign({},R,{objectStore:Q.objectStore,index:Q.index}));if(Q.name==="InvalidStateError"&&eB8.some(function(M){return Q.message.includes(M)}))return new $z("EXECUTE_TRANSACTION_ON_CLOSED_DB",
R);
if(Q.name==="AbortError")return new $z("UNKNOWN_ABORT",R,Q.message);Q.args=[Object.assign({},R,{name:"IdbError",originalName:Q.name})];Q.level="WARNING";return Q};
Xq=function(R,y,u){var v=NNP();return new $z("IDB_NOT_SUPPORTED",{context:{caller:R,publicName:y,version:u,hasSucceededOnce:v==null?void 0:v.hasSucceededOnce}})};
Ozz=function(R){if(!R)throw Error();throw R;};
ZzU=function(R){return R};
Hzz=function(R,y,u){var v=function(){try{R.removeEventListener("success",Q),R.removeEventListener("error",M)}catch(K){}},Q=function(){y(R.result);
v()},M=function(){u(R.error);
v()};
R.addEventListener("success",Q);R.addEventListener("error",M)};
nsT=function(R){return new Promise(function(y,u){Hzz(R,y,u)})};
DI=function(R){return new mi(new AT(function(y,u){Hzz(R,y,u)}))};
GIL=function(R,y){return new mi(new AT(function(u,v){var Q=function(){var M=R?y(R):null;M?M.then(function(K){R=K;Q()},v):u()};
Q()}))};
rNO=function(R,y,u){return new Promise(function(v,Q){var M=y!==void 0?self.indexedDB.open(R,y):self.indexedDB.open(R);var K=u.blocked,h=u.blocking,b=u.terminated,N=u.upgrade,T=u.closed,x,B=function(){x||(x=new pJ(M.result,{closed:T}));return x};
M.addEventListener("upgradeneeded",function(l){try{if(l.newVersion===null)throw Error("Uc");if(M.transaction===null)throw Error("Vc");l.dataLoss&&l.dataLoss!=="none"&&dR("IDB_DATA_CORRUPTED",{reason:l.dataLossMessage||"unknown reason",dbName:kz(R)});var Z=B(),P=new tT(M.transaction);N&&N(Z,function(k){return l.oldVersion<k&&l.newVersion>=k},P);
P.done.catch(function(k){Q(k)})}catch(k){Q(k)}});
M.addEventListener("success",function(){var l=M.result;h&&l.addEventListener("versionchange",function(){h(B())});
l.addEventListener("close",function(){dR("IDB_UNEXPECTEDLY_CLOSED",{dbName:kz(R),dbVersion:l.version});b&&b()});
v(B())});
M.addEventListener("error",function(){Q(M.error)});
K&&M.addEventListener("blocked",function(){K()})})};
PE8=function(R,y,u){u=u===void 0?{}:u;return rNO(R,y,u)};
_.ah=function(R,y){y=y===void 0?{}:y;var u,v,Q,M;return _.I(function(K){if(K.nextAddress==1)return _.wY(K,2),u=self.indexedDB.deleteDatabase(R),v=y,(Q=v.blocked)&&u.addEventListener("blocked",function(){Q()}),K.yield(nsT(u),4);
if(K.nextAddress!=2)return _.c5(K,0);M=_.B$(K);throw ln8(M,R,"",-1);})};
dq8=function(R,y){var u;return _.I(function(v){if(v.nextAddress==1)return v.yield(_.SX(WcE,y),2);u=v.yieldResult;return v.return(_.Yz(u,["databases"],{enableRetries:!0,mode:"readwrite"},function(Q){var M=Q.objectStore("databases");return M.get(R.actualName).then(function(K){if(K?R.actualName!==K.actualName||R.publicName!==K.publicName||R.userIdentifier!==K.userIdentifier:1)return M.put(R).then(function(){})})}))})};
_.LJ=function(R,y){var u;return _.I(function(v){if(v.nextAddress==1)return R?v.yield(_.SX(WcE,y),2):v.return();u=v.yieldResult;return v.return(u.delete("databases",R))})};
_.Uqz=function(R,y){var u,v;return _.I(function(Q){return Q.nextAddress==1?(u=[],Q.yield(_.SX(WcE,y),2)):Q.nextAddress!=3?(v=Q.yieldResult,Q.yield(_.Yz(v,["databases"],{enableRetries:!0,mode:"readonly"},function(M){u.length=0;return sL(M.objectStore("databases"),{},function(K){R(K.getValue())&&u.push(K.getValue());return K.continue()})}),3)):Q.return(u)})};
kI8=function(R,y){return _.Uqz(function(u){return u.publicName===R&&u.userIdentifier!==void 0},y)};
qqW=function(){var R,y,u,v;return _.I(function(Q){switch(Q.nextAddress){case 1:R=NNP();if((y=R)==null?0:y.hasSucceededOnce)return Q.return(!0);var M;if(M=EsW)M=/WebKit\/([0-9]+)/.exec(_.NU()),M=!!(M&&parseInt(M[1],10)>=600);M&&(M=/WebKit\/([0-9]+)/.exec(_.NU()),M=!(M&&parseInt(M[1],10)>=602));if(M||zu)return Q.return(!1);try{if(u=self,!(u.indexedDB&&u.IDBIndex&&u.IDBKeyRange&&u.IDBObjectStore))return Q.return(!1)}catch(K){return Q.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return Q.return(!1);
_.wY(Q,2);v={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return Q.yield(dq8(v,$qv),4);case 4:return Q.yield(_.LJ("yt-idb-test-do-not-use",$qv),5);case 5:return Q.return(!0);case 2:return _.B$(Q),Q.return(!1)}})};
mqS=function(){if(XdS!==void 0)return XdS;TNL=!0;return XdS=qqW().then(function(R){TNL=!1;var y;if((y=wdc())!=null&&y.expiringStorage_){var u;y={hasSucceededOnce:((u=NNP())==null?void 0:u.hasSucceededOnce)||R};var v;(v=wdc())==null||v.set("LAST_RESULT_ENTRY_KEY",y,2592E3,!0)}return R})};
gR=function(){return _.D6("ytglobal.idbToken_")||void 0};
_.Rz=function(){var R=gR();return R?Promise.resolve(R):mqS().then(function(y){(y=y?$qv:void 0)&&_.CJ("ytglobal.idbToken_",y);return y})};
ANL=function(R){if(!_.la())throw R=new $z("AUTH_INVALID",{dbName:R}),_.W5(R),R;var y=_.eX();return{actualName:R+":"+y,publicName:R,userIdentifier:y}};
DqL=function(R,y,u,v){var Q,M,K,h,b,N;return _.I(function(T){switch(T.nextAddress){case 1:return M=(Q=Error().stack)!=null?Q:"",T.yield(_.Rz(),2);case 2:K=T.yieldResult;if(!K)throw h=Xq("openDbImpl",R,y),_.f("ytidb_async_stack_killswitch")||(h.stack=h.stack+"\n"+M.substring(M.indexOf("\n")+1)),_.W5(h),h;UL(R);b=u?{actualName:R,publicName:R,userIdentifier:void 0}:ANL(R);_.wY(T,3);return T.yield(dq8(b,K),5);case 5:return T.yield(PE8(b.actualName,y,v),6);case 6:return T.return(T.yieldResult);case 3:return N=
_.B$(T),_.wY(T,7),T.yield(_.LJ(b.actualName,K),9);case 9:_.c5(T,8);break;case 7:_.B$(T);case 8:throw N;}})};
pdP=function(R,y,u){u=u===void 0?{}:u;return DqL(R,y,!1,u)};
t6L=function(R,y,u){u=u===void 0?{}:u;return DqL(R,y,!0,u)};
cNT=function(R,y){y=y===void 0?{}:y;var u,v;return _.I(function(Q){if(Q.nextAddress==1)return Q.yield(_.Rz(),2);if(Q.nextAddress!=3){u=Q.yieldResult;if(!u)return Q.return();UL(R);v=ANL(R);return Q.yield(_.ah(v.actualName,y),3)}return Q.yield(_.LJ(v.actualName,u),0)})};
anU=function(R,y,u){R=R.map(function(v){return _.I(function(Q){return Q.nextAddress==1?Q.yield(_.ah(v.actualName,y),2):Q.yield(_.LJ(v.actualName,u),0)})});
return Promise.all(R).then(function(){})};
SqT=function(R){var y=y===void 0?{}:y;var u,v;return _.I(function(Q){if(Q.nextAddress==1)return Q.yield(_.Rz(),2);if(Q.nextAddress!=3){u=Q.yieldResult;if(!u)return Q.return();UL(R);return Q.yield(kI8(R,u),3)}v=Q.yieldResult;return Q.yield(anU(v,y,u),0)})};
YqG=function(R,y){y=y===void 0?{}:y;var u;return _.I(function(v){if(v.nextAddress==1)return v.yield(_.Rz(),2);if(v.nextAddress!=3){u=v.yieldResult;if(!u)return v.return();UL(R);return v.yield(_.ah(R,y),3)}return v.yield(_.LJ(R,u),0)})};
yO=function(R,y){return Lc8(R,y)};
zB8=function(R){return _.SX(s38(),R)};
gs4=function(R,y,u,v){var Q,M,K;return _.I(function(h){switch(h.nextAddress){case 1:return Q={config:R,hashData:y,timestamp:v!==void 0?v:(0,_.uQ)()},h.yield(zB8(u),2);case 2:return M=h.yieldResult,h.yield(M.clear("hotConfigStore"),3);case 3:return h.yield(M.put("hotConfigStore",Q),4);case 4:return K=h.yieldResult,h.return(K)}})};
CET=function(R,y,u,v,Q){var M,K,h;return _.I(function(b){switch(b.nextAddress){case 1:return M={config:R,hashData:y,configData:u,timestamp:Q!==void 0?Q:(0,_.uQ)()},b.yield(zB8(v),2);case 2:return K=b.yieldResult,b.yield(K.clear("coldConfigStore"),3);case 3:return b.yield(K.put("coldConfigStore",M),4);case 4:return h=b.yieldResult,b.return(h)}})};
RzP=function(R){var y,u;return _.I(function(v){return v.nextAddress==1?v.yield(zB8(R),2):v.nextAddress!=3?(y=v.yieldResult,u=void 0,v.yield(_.Yz(y,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(Q){return _.vG(Q.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(M){u=M.getValue()})}),3)):v.return(u)})};
yUT=function(R){var y,u;return _.I(function(v){return v.nextAddress==1?v.yield(zB8(R),2):v.nextAddress!=3?(y=v.yieldResult,u=void 0,v.yield(_.Yz(y,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(Q){return _.vG(Q.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(M){u=M.getValue()})}),3)):v.return(u)})};
ubz=function(){return _.I(function(R){return R.yield(SqT("ytGcfConfig"),0)})};
vvz=function(){return"INNERTUBE_API_KEY"in _.UB&&"INNERTUBE_API_VERSION"in _.UB};
_.QO=function(){return{innertubeApiKey:_.EB("INNERTUBE_API_KEY"),innertubeApiVersion:_.EB("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.EB("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.EB("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.EB("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.EB("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.EB("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.EB("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.EB("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.$B("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.$B("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.EB("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.KH4=function(R){var y={client:{hl:R.innertubeContextHostLanguage,gl:R.innertubeContextGeoLocation,clientName:R.innertubeContextClientName,clientVersion:R.innertubeContextClientVersion,configInfo:R.innertubeContextClientConfigInfo}};navigator.userAgent&&(y.client.userAgent=String(navigator.userAgent));var u=_.uO.devicePixelRatio;u&&u!=1&&(y.client.screenDensityFloat=String(u));u=Ho4();u!==""&&(y.client.experimentsToken=u);u=nF4();u.length>0&&(y.request={internalExperimentFlags:u});QHU(R,void 0,y);
jHz(void 0,y);MqT(void 0,y);JUT(R,void 0,y);VqT(void 0,y);_.f("start_client_gcf")&&icE(void 0,y);_.EB("DELEGATED_SESSION_ID")&&!_.f("pageid_as_header_web")&&(y.user={onBehalfOfUser:_.EB("DELEGATED_SESSION_ID")});!_.f("fill_delegate_context_in_gel_killswitch")&&(R=_.EB("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(y.user=Object.assign({},y.user,{serializedDelegationContext:R}));R=_.EB("INNERTUBE_CONTEXT");var v;if(_.f("enable_persistent_device_token")&&(R==null?0:(v=R.client)==null?0:v.rolloutToken)){var Q;
y.client.rolloutToken=R==null?void 0:(Q=R.client)==null?void 0:Q.rolloutToken}v=Object;Q=v.assign;R=y.client;u={};for(var M=_.V(Object.entries(_.aM(_.EB("DEVICE","")))),K=M.next();!K.done;K=M.next()){var h=_.V(K.value);K=h.next().value;h=h.next().value;K==="cbrand"?u.deviceMake=h:K==="cmodel"?u.deviceModel=h:K==="cbr"?u.browserName=h:K==="cbrver"?u.browserVersion=h:K==="cos"?u.osName=h:K==="cosver"?u.osVersion=h:K==="cplatform"&&(u.platform=h)}y.client=Q.call(v,R,u);return y};
QHU=function(R,y,u){R=R.innertubeContextClientName;if(R==="WEB"||R==="MWEB"||R===1||R===2)if(y){u=_.Ne(y,Ijz,96)||new Ijz;var v=hzG();v=Object.keys(bc4).indexOf(v);v=v===-1?null:v;v!==null&&_.j_(u,3,v);_.wC(y,96,u)}else u&&(u.client.mainAppWebInfo=(v=u.client.mainAppWebInfo)!=null?v:{},u.client.mainAppWebInfo.webDisplayMode=hzG())};
jHz=function(R,y){var u=_.D6("yt.embedded_player.embed_url");u&&(R?(y=_.Ne(R,FHP,7)||new FHP,_.eQ(y,4,u),_.wC(R,7,y)):y&&(y.thirdParty={embedUrl:u}))};
MqT=function(R,y){var u;if(_.f("web_log_memory_total_kbytes")&&((u=_.uO.navigator)==null?0:u.deviceMemory)){var v;u=(v=_.uO.navigator)==null?void 0:v.deviceMemory;R?_.Mt(R,95,jK(u*1E6)):y&&(y.client.memoryTotalKbytes=""+u*1E6)}};
JUT=function(R,y,u){if(R.appInstallData)if(y){var v;u=(v=_.Ne(y,Jv,62))!=null?v:new Jv;_.eQ(u,6,R.appInstallData);_.wC(y,62,u)}else u&&(u.client.configInfo=u.client.configInfo||{},u.client.configInfo.appInstallData=R.appInstallData)};
VqT=function(R,y){var u=_.V6E();u&&(R?_.j_(R,61,wVW[u]):y&&(y.client.connectionType=u));_.f("web_log_effective_connection_type")&&(u=KcU())&&(R?_.j_(R,94,NwG[u]):y&&(y.client.effectiveConnectionType=u))};
_.xBU=function(R,y,u){u=u===void 0?{}:u;var v={};_.EB("EOM_VISITOR_DATA")?v={"X-Goog-EOM-Visitor-Id":_.EB("EOM_VISITOR_DATA")}:v={"X-Goog-Visitor-Id":u.visitorData||_.EB("VISITOR_DATA","")};if(y&&y.includes("www.youtube-nocookie.com"))return v;y=u.authorization||_.EB("AUTHORIZATION");y||(R?y="Bearer "+_.D6("gapi.auth.getToken")().access_token:(TwU.instance||(TwU.instance=new TwU),R=ov8(),_.f("pageid_as_header_web")||delete R["X-Goog-PageId"],v=Object.assign({},v,R)));y&&(v.Authorization=y);return v};
icE=function(R,y){var u=BwL();if(u){var v=u.coldConfigData,Q=u.coldHashData;u=u.hotHashData;if(R){var M;y=(M=_.Ne(R,Jv,62))!=null?M:new Jv;v=_.eQ(y,1,v);_.eQ(v,3,Q).setHotHashData(u);_.wC(R,62,y)}else y&&(y.client.configInfo=y.client.configInfo||{},v&&(y.client.configInfo.coldConfigData=v),Q&&(y.client.configInfo.coldHashData=Q),u&&(y.client.configInfo.hotHashData=u))}};
VO=function(R){for(var y=R.length;--y>=0;)R[y]=0};
fjU=function(R,y,u,v,Q){this.static_tree=R;this.extra_bits=y;this.extra_base=u;this.elems=v;this.max_length=Q;this.has_stree=R&&R.length};
ezP=function(R,y){this.dyn_tree=R;this.max_code=0;this.stat_desc=y};
iQ=function(R,y){R.pending_buf[R.pending++]=y&255;R.pending_buf[R.pending++]=y>>>8&255};
K9=function(R,y,u){R.bi_valid>16-u?(R.bi_buf|=y<<R.bi_valid&65535,iQ(R,R.bi_buf),R.bi_buf=y>>16-R.bi_valid,R.bi_valid+=u-16):(R.bi_buf|=y<<R.bi_valid&65535,R.bi_valid+=u)};
Iz=function(R,y,u){K9(R,u[y*2],u[y*2+1])};
ljU=function(R,y){var u=0;do u|=R&1,R>>>=1,u<<=1;while(--y>0);return u>>>1};
OcT=function(R,y,u){var v=Array(16),Q=0,M;for(M=1;M<=15;M++)v[M]=Q=Q+u[M-1]<<1;for(u=0;u<=y;u++)Q=R[u*2+1],Q!==0&&(R[u*2]=ljU(v[Q]++,Q))};
ZcE=function(R){var y;for(y=0;y<286;y++)R.dyn_ltree[y*2]=0;for(y=0;y<30;y++)R.dyn_dtree[y*2]=0;for(y=0;y<19;y++)R.bl_tree[y*2]=0;R.dyn_ltree[512]=1;R.opt_len=R.static_len=0;R.last_lit=R.matches=0};
Hc8=function(R){R.bi_valid>8?iQ(R,R.bi_buf):R.bi_valid>0&&(R.pending_buf[R.pending++]=R.bi_buf);R.bi_buf=0;R.bi_valid=0};
nvS=function(R,y,u){Hc8(R);iQ(R,u);iQ(R,~u);hv.arraySet(R.pending_buf,R.window,y,u,R.pending);R.pending+=u};
G2c=function(R,y,u,v){var Q=y*2,M=u*2;return R[Q]<R[M]||R[Q]===R[M]&&v[y]<=v[u]};
rUO=function(R,y,u){for(var v=R.heap[u],Q=u<<1;Q<=R.heap_len;){Q<R.heap_len&&G2c(y,R.heap[Q+1],R.heap[Q],R.depth)&&Q++;if(G2c(y,v,R.heap[Q],R.depth))break;R.heap[u]=R.heap[Q];u=Q;Q<<=1}R.heap[u]=v};
k2P=function(R,y,u){var v=0;if(R.last_lit!==0){do{var Q=R.pending_buf[R.d_buf+v*2]<<8|R.pending_buf[R.d_buf+v*2+1];var M=R.pending_buf[R.l_buf+v];v++;if(Q===0)Iz(R,M,y);else{var K=bQ[M];Iz(R,K+256+1,y);var h=P7P[K];h!==0&&(M-=WH4[K],K9(R,M,h));Q--;K=Q<256?FM[Q]:FM[256+(Q>>>7)];Iz(R,K,u);h=dBU[K];h!==0&&(Q-=UBT[K],K9(R,Q,h))}}while(v<R.last_lit)}Iz(R,256,y)};
EvL=function(R,y){var u=y.dyn_tree,v=y.stat_desc.static_tree,Q=y.stat_desc.has_stree,M=y.stat_desc.elems,K,h=-1;R.heap_len=0;R.heap_max=573;for(K=0;K<M;K++)u[K*2]!==0?(R.heap[++R.heap_len]=h=K,R.depth[K]=0):u[K*2+1]=0;for(;R.heap_len<2;){var b=R.heap[++R.heap_len]=h<2?++h:0;u[b*2]=1;R.depth[b]=0;R.opt_len--;Q&&(R.static_len-=v[b*2+1])}y.max_code=h;for(K=R.heap_len>>1;K>=1;K--)rUO(R,u,K);b=M;do K=R.heap[1],R.heap[1]=R.heap[R.heap_len--],rUO(R,u,1),v=R.heap[1],R.heap[--R.heap_max]=K,R.heap[--R.heap_max]=
v,u[b*2]=u[K*2]+u[v*2],R.depth[b]=(R.depth[K]>=R.depth[v]?R.depth[K]:R.depth[v])+1,u[K*2+1]=u[v*2+1]=b,R.heap[1]=b++,rUO(R,u,1);while(R.heap_len>=2);R.heap[--R.heap_max]=R.heap[1];K=y.dyn_tree;b=y.max_code;v=y.stat_desc.static_tree;Q=y.stat_desc.has_stree;M=y.stat_desc.extra_bits;var N=y.stat_desc.extra_base,T=y.stat_desc.max_length,x,B=0;for(x=0;x<=15;x++)R.bl_count[x]=0;K[R.heap[R.heap_max]*2+1]=0;for(y=R.heap_max+1;y<573;y++){var l=R.heap[y];x=K[K[l*2+1]*2+1]+1;x>T&&(x=T,B++);K[l*2+1]=x;if(!(l>
b)){R.bl_count[x]++;var Z=0;l>=N&&(Z=M[l-N]);var P=K[l*2];R.opt_len+=P*(x+Z);Q&&(R.static_len+=P*(v[l*2+1]+Z))}}if(B!==0){do{for(x=T-1;R.bl_count[x]===0;)x--;R.bl_count[x]--;R.bl_count[x+1]+=2;R.bl_count[T]--;B-=2}while(B>0);for(x=T;x!==0;x--)for(l=R.bl_count[x];l!==0;)v=R.heap[--y],v>b||(K[v*2+1]!==x&&(R.opt_len+=(x-K[v*2+1])*K[v*2],K[v*2+1]=x),l--)}OcT(u,h,R.bl_count)};
$Bz=function(R,y,u){var v,Q=-1,M=y[1],K=0,h=7,b=4;M===0&&(h=138,b=3);y[(u+1)*2+1]=65535;for(v=0;v<=u;v++){var N=M;M=y[(v+1)*2+1];++K<h&&N===M||(K<b?R.bl_tree[N*2]+=K:N!==0?(N!==Q&&R.bl_tree[N*2]++,R.bl_tree[32]++):K<=10?R.bl_tree[34]++:R.bl_tree[36]++,K=0,Q=N,M===0?(h=138,b=3):N===M?(h=6,b=3):(h=7,b=4))}};
qZ8=function(R,y,u){var v,Q=-1,M=y[1],K=0,h=7,b=4;M===0&&(h=138,b=3);for(v=0;v<=u;v++){var N=M;M=y[(v+1)*2+1];if(!(++K<h&&N===M)){if(K<b){do Iz(R,N,R.bl_tree);while(--K!==0)}else N!==0?(N!==Q&&(Iz(R,N,R.bl_tree),K--),Iz(R,16,R.bl_tree),K9(R,K-3,2)):K<=10?(Iz(R,17,R.bl_tree),K9(R,K-3,3)):(Iz(R,18,R.bl_tree),K9(R,K-11,7));K=0;Q=N;M===0?(h=138,b=3):N===M?(h=6,b=3):(h=7,b=4)}}};
XVc=function(R){var y=4093624447,u;for(u=0;u<=31;u++,y>>>=1)if(y&1&&R.dyn_ltree[u*2]!==0)return 0;if(R.dyn_ltree[18]!==0||R.dyn_ltree[20]!==0||R.dyn_ltree[26]!==0)return 1;for(u=32;u<256;u++)if(R.dyn_ltree[u*2]!==0)return 1;return 0};
w3=function(R,y,u){R.pending_buf[R.d_buf+R.last_lit*2]=y>>>8&255;R.pending_buf[R.d_buf+R.last_lit*2+1]=y&255;R.pending_buf[R.l_buf+R.last_lit]=u&255;R.last_lit++;y===0?R.dyn_ltree[u*2]++:(R.matches++,y--,R.dyn_ltree[(bQ[u]+256+1)*2]++,R.dyn_dtree[(y<256?FM[y]:FM[256+(y>>>7)])*2]++);return R.last_lit===R.lit_bufsize-1};
Tg=function(R,y){R.msg=Nt[y];return y};
oz=function(R){for(var y=R.length;--y>=0;)R[y]=0};
x2=function(R){var y=R.state,u=y.pending;u>R.avail_out&&(u=R.avail_out);u!==0&&(hv.arraySet(R.output,y.pending_buf,y.pending_out,u,R.next_out),R.next_out+=u,y.pending_out+=u,R.total_out+=u,R.avail_out-=u,y.pending-=u,y.pending===0&&(y.pending_out=0))};
lQ=function(R,y){var u=R.block_start>=0?R.block_start:-1,v=R.strstart-R.block_start,Q=0;if(R.level>0){R.strm.data_type===2&&(R.strm.data_type=XVc(R));EvL(R,R.l_desc);EvL(R,R.d_desc);$Bz(R,R.dyn_ltree,R.l_desc.max_code);$Bz(R,R.dyn_dtree,R.d_desc.max_code);EvL(R,R.bl_desc);for(Q=18;Q>=3&&R.bl_tree[mBT[Q]*2+1]===0;Q--);R.opt_len+=3*(Q+1)+5+5+4;var M=R.opt_len+3+7>>>3;var K=R.static_len+3+7>>>3;K<=M&&(M=K)}else M=K=v+5;if(v+4<=M&&u!==-1)K9(R,y?1:0,3),nvS(R,u,v);else if(R.strategy===4||K===M)K9(R,2+(y?
1:0),3),k2P(R,BG,f9);else{K9(R,4+(y?1:0),3);u=R.l_desc.max_code+1;v=R.d_desc.max_code+1;Q+=1;K9(R,u-257,5);K9(R,v-1,5);K9(R,Q-4,4);for(M=0;M<Q;M++)K9(R,R.bl_tree[mBT[M]*2+1],3);qZ8(R,R.dyn_ltree,u-1);qZ8(R,R.dyn_dtree,v-1);k2P(R,R.dyn_ltree,R.dyn_dtree)}ZcE(R);y&&Hc8(R);R.block_start=R.strstart;x2(R.strm)};
OW=function(R,y){R.pending_buf[R.pending++]=y};
Z1=function(R,y){R.pending_buf[R.pending++]=y>>>8&255;R.pending_buf[R.pending++]=y&255};
AUS=function(R,y){var u=R.max_chain_length,v=R.strstart,Q=R.prev_length,M=R.nice_match,K=R.strstart>R.w_size-262?R.strstart-(R.w_size-262):0,h=R.window,b=R.w_mask,N=R.prev,T=R.strstart+258,x=h[v+Q-1],B=h[v+Q];R.prev_length>=R.good_match&&(u>>=2);M>R.lookahead&&(M=R.lookahead);do{var l=y;if(h[l+Q]===B&&h[l+Q-1]===x&&h[l]===h[v]&&h[++l]===h[v+1]){v+=2;for(l++;h[++v]===h[++l]&&h[++v]===h[++l]&&h[++v]===h[++l]&&h[++v]===h[++l]&&h[++v]===h[++l]&&h[++v]===h[++l]&&h[++v]===h[++l]&&h[++v]===h[++l]&&v<T;);
l=258-(T-v);v=T-258;if(l>Q){R.match_start=y;Q=l;if(l>=M)break;x=h[v+Q-1];B=h[v+Q]}}}while((y=N[y&b])>K&&--u!==0);return Q<=R.lookahead?Q:R.lookahead};
n9=function(R){var y=R.w_size,u;do{var v=R.window_size-R.lookahead-R.strstart;if(R.strstart>=y+(y-262)){hv.arraySet(R.window,R.window,y,y,0);R.match_start-=y;R.strstart-=y;R.block_start-=y;var Q=u=R.hash_size;do{var M=R.head[--Q];R.head[Q]=M>=y?M-y:0}while(--u);Q=u=y;do M=R.prev[--Q],R.prev[Q]=M>=y?M-y:0;while(--u);v+=y}if(R.strm.avail_in===0)break;Q=R.strm;u=R.window;M=R.strstart+R.lookahead;var K=Q.avail_in;K>v&&(K=v);K===0?u=0:(Q.avail_in-=K,hv.arraySet(u,Q.input,Q.next_in,K,M),Q.state.wrap===
1?Q.adler=DBU(Q.adler,u,K,M):Q.state.wrap===2&&(Q.adler=HG(Q.adler,u,K,M)),Q.next_in+=K,Q.total_in+=K,u=K);R.lookahead+=u;if(R.lookahead+R.insert>=3)for(v=R.strstart-R.insert,R.ins_h=R.window[v],R.ins_h=(R.ins_h<<R.hash_shift^R.window[v+1])&R.hash_mask;R.insert&&!(R.ins_h=(R.ins_h<<R.hash_shift^R.window[v+3-1])&R.hash_mask,R.prev[v&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=v,v++,R.insert--,R.lookahead+R.insert<3););}while(R.lookahead<262&&R.strm.avail_in!==0)};
pVT=function(R,y){for(var u;;){if(R.lookahead<262){n9(R);if(R.lookahead<262&&y===0)return 1;if(R.lookahead===0)break}u=0;R.lookahead>=3&&(R.ins_h=(R.ins_h<<R.hash_shift^R.window[R.strstart+3-1])&R.hash_mask,u=R.prev[R.strstart&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=R.strstart);u!==0&&R.strstart-u<=R.w_size-262&&(R.match_length=AUS(R,u));if(R.match_length>=3)if(u=w3(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 u=w3(R,0,R.window[R.strstart]),R.lookahead--,R.strstart++;if(u&&(lQ(R,!1),R.strm.avail_out===0))return 1}R.insert=R.strstart<2?R.strstart:2;return y===4?(lQ(R,
!0),R.strm.avail_out===0?3:4):R.last_lit&&(lQ(R,!1),R.strm.avail_out===0)?1:2};
Gg=function(R,y){for(var u,v;;){if(R.lookahead<262){n9(R);if(R.lookahead<262&&y===0)return 1;if(R.lookahead===0)break}u=0;R.lookahead>=3&&(R.ins_h=(R.ins_h<<R.hash_shift^R.window[R.strstart+3-1])&R.hash_mask,u=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;u!==0&&R.prev_length<R.max_lazy_match&&R.strstart-u<=R.w_size-262&&(R.match_length=AUS(R,u),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){v=R.strstart+R.lookahead-3;u=w3(R,R.strstart-1-R.prev_match,R.prev_length-3);R.lookahead-=R.prev_length-1;R.prev_length-=2;do++R.strstart<=v&&(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(u&&(lQ(R,!1),R.strm.avail_out===0))return 1}else if(R.match_available){if((u=
w3(R,0,R.window[R.strstart-1]))&&lQ(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&&(w3(R,0,R.window[R.strstart-1]),R.match_available=0);R.insert=R.strstart<2?R.strstart:2;return y===4?(lQ(R,!0),R.strm.avail_out===0?3:4):R.last_lit&&(lQ(R,!1),R.strm.avail_out===0)?1:2};
tq8=function(R,y){for(var u,v,Q,M=R.window;;){if(R.lookahead<=258){n9(R);if(R.lookahead<=258&&y===0)return 1;if(R.lookahead===0)break}R.match_length=0;if(R.lookahead>=3&&R.strstart>0&&(v=R.strstart-1,u=M[v],u===M[++v]&&u===M[++v]&&u===M[++v])){for(Q=R.strstart+258;u===M[++v]&&u===M[++v]&&u===M[++v]&&u===M[++v]&&u===M[++v]&&u===M[++v]&&u===M[++v]&&u===M[++v]&&v<Q;);R.match_length=258-(Q-v);R.match_length>R.lookahead&&(R.match_length=R.lookahead)}R.match_length>=3?(u=w3(R,1,R.match_length-3),R.lookahead-=
R.match_length,R.strstart+=R.match_length,R.match_length=0):(u=w3(R,0,R.window[R.strstart]),R.lookahead--,R.strstart++);if(u&&(lQ(R,!1),R.strm.avail_out===0))return 1}R.insert=0;return y===4?(lQ(R,!0),R.strm.avail_out===0?3:4):R.last_lit&&(lQ(R,!1),R.strm.avail_out===0)?1:2};
cUT=function(R,y){for(var u;;){if(R.lookahead===0&&(n9(R),R.lookahead===0)){if(y===0)return 1;break}R.match_length=0;u=w3(R,0,R.window[R.strstart]);R.lookahead--;R.strstart++;if(u&&(lQ(R,!1),R.strm.avail_out===0))return 1}R.insert=0;return y===4?(lQ(R,!0),R.strm.avail_out===0?3:4):R.last_lit&&(lQ(R,!1),R.strm.avail_out===0)?1:2};
r3=function(R,y,u,v,Q){this.good_length=R;this.max_lazy=y;this.nice_length=u;this.max_chain=v;this.func=Q};
ajT=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 hv.Buf16(1146);this.dyn_dtree=new hv.Buf16(122);this.bl_tree=new hv.Buf16(78);oz(this.dyn_ltree);oz(this.dyn_dtree);oz(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new hv.Buf16(16);this.heap=new hv.Buf16(573);oz(this.heap);this.heap_max=this.heap_len=0;this.depth=new hv.Buf16(573);oz(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};
SZP=function(R,y){if(!R||!R.state||y>5||y<0)return R?Tg(R,-2):-2;var u=R.state;if(!R.output||!R.input&&R.avail_in!==0||u.status===666&&y!==4)return Tg(R,R.avail_out===0?-5:-2);u.strm=R;var v=u.last_flush;u.last_flush=y;if(u.status===42)if(u.wrap===2)R.adler=0,OW(u,31),OW(u,139),OW(u,8),u.gzhead?(OW(u,(u.gzhead.text?1:0)+(u.gzhead.hcrc?2:0)+(u.gzhead.extra?4:0)+(u.gzhead.name?8:0)+(u.gzhead.comment?16:0)),OW(u,u.gzhead.time&255),OW(u,u.gzhead.time>>8&255),OW(u,u.gzhead.time>>16&255),OW(u,u.gzhead.time>>
24&255),OW(u,u.level===9?2:u.strategy>=2||u.level<2?4:0),OW(u,u.gzhead.os&255),u.gzhead.extra&&u.gzhead.extra.length&&(OW(u,u.gzhead.extra.length&255),OW(u,u.gzhead.extra.length>>8&255)),u.gzhead.hcrc&&(R.adler=HG(R.adler,u.pending_buf,u.pending,0)),u.gzindex=0,u.status=69):(OW(u,0),OW(u,0),OW(u,0),OW(u,0),OW(u,0),OW(u,u.level===9?2:u.strategy>=2||u.level<2?4:0),OW(u,3),u.status=113);else{var Q=8+(u.w_bits-8<<4)<<8;Q|=(u.strategy>=2||u.level<2?0:u.level<6?1:u.level===6?2:3)<<6;u.strstart!==0&&(Q|=
32);u.status=113;Z1(u,Q+(31-Q%31));u.strstart!==0&&(Z1(u,R.adler>>>16),Z1(u,R.adler&65535));R.adler=1}if(u.status===69)if(u.gzhead.extra){for(Q=u.pending;u.gzindex<(u.gzhead.extra.length&65535)&&(u.pending!==u.pending_buf_size||(u.gzhead.hcrc&&u.pending>Q&&(R.adler=HG(R.adler,u.pending_buf,u.pending-Q,Q)),x2(R),Q=u.pending,u.pending!==u.pending_buf_size));)OW(u,u.gzhead.extra[u.gzindex]&255),u.gzindex++;u.gzhead.hcrc&&u.pending>Q&&(R.adler=HG(R.adler,u.pending_buf,u.pending-Q,Q));u.gzindex===u.gzhead.extra.length&&
(u.gzindex=0,u.status=73)}else u.status=73;if(u.status===73)if(u.gzhead.name){Q=u.pending;do{if(u.pending===u.pending_buf_size&&(u.gzhead.hcrc&&u.pending>Q&&(R.adler=HG(R.adler,u.pending_buf,u.pending-Q,Q)),x2(R),Q=u.pending,u.pending===u.pending_buf_size)){var M=1;break}M=u.gzindex<u.gzhead.name.length?u.gzhead.name.charCodeAt(u.gzindex++)&255:0;OW(u,M)}while(M!==0);u.gzhead.hcrc&&u.pending>Q&&(R.adler=HG(R.adler,u.pending_buf,u.pending-Q,Q));M===0&&(u.gzindex=0,u.status=91)}else u.status=91;if(u.status===
91)if(u.gzhead.comment){Q=u.pending;do{if(u.pending===u.pending_buf_size&&(u.gzhead.hcrc&&u.pending>Q&&(R.adler=HG(R.adler,u.pending_buf,u.pending-Q,Q)),x2(R),Q=u.pending,u.pending===u.pending_buf_size)){M=1;break}M=u.gzindex<u.gzhead.comment.length?u.gzhead.comment.charCodeAt(u.gzindex++)&255:0;OW(u,M)}while(M!==0);u.gzhead.hcrc&&u.pending>Q&&(R.adler=HG(R.adler,u.pending_buf,u.pending-Q,Q));M===0&&(u.status=103)}else u.status=103;u.status===103&&(u.gzhead.hcrc?(u.pending+2>u.pending_buf_size&&x2(R),
u.pending+2<=u.pending_buf_size&&(OW(u,R.adler&255),OW(u,R.adler>>8&255),R.adler=0,u.status=113)):u.status=113);if(u.pending!==0){if(x2(R),R.avail_out===0)return u.last_flush=-1,0}else if(R.avail_in===0&&(y<<1)-(y>4?9:0)<=(v<<1)-(v>4?9:0)&&y!==4)return Tg(R,-5);if(u.status===666&&R.avail_in!==0)return Tg(R,-5);if(R.avail_in!==0||u.lookahead!==0||y!==0&&u.status!==666){v=u.strategy===2?cUT(u,y):u.strategy===3?tq8(u,y):PG[u.level].func(u,y);if(v===3||v===4)u.status=666;if(v===1||v===3)return R.avail_out===
0&&(u.last_flush=-1),0;if(v===2&&(y===1?(K9(u,2,3),Iz(u,256,BG),u.bi_valid===16?(iQ(u,u.bi_buf),u.bi_buf=0,u.bi_valid=0):u.bi_valid>=8&&(u.pending_buf[u.pending++]=u.bi_buf&255,u.bi_buf>>=8,u.bi_valid-=8)):y!==5&&(K9(u,0,3),nvS(u,0,0),y===3&&(oz(u.head),u.lookahead===0&&(u.strstart=0,u.block_start=0,u.insert=0))),x2(R),R.avail_out===0))return u.last_flush=-1,0}if(y!==4)return 0;if(u.wrap<=0)return 1;u.wrap===2?(OW(u,R.adler&255),OW(u,R.adler>>8&255),OW(u,R.adler>>16&255),OW(u,R.adler>>24&255),OW(u,
R.total_in&255),OW(u,R.total_in>>8&255),OW(u,R.total_in>>16&255),OW(u,R.total_in>>24&255)):(Z1(u,R.adler>>>16),Z1(u,R.adler&65535));x2(R);u.wrap>0&&(u.wrap=-u.wrap);return u.pending!==0?0:1};
YZc=function(R){if(!(this instanceof YZc))return new YZc(R);R=this.options=hv.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 LHE;this.strm.avail_out=0;var y=this.strm;var u=R.level,v=R.method,Q=R.windowBits,M=R.memLevel,K=R.strategy;if(y){var h=1;u===-1&&(u=6);Q<0?(h=0,Q=-Q):Q>15&&
(h=2,Q-=16);if(M<1||M>9||v!==8||Q<8||Q>15||u<0||u>9||K<0||K>4)y=Tg(y,-2);else{Q===8&&(Q=9);var b=new ajT;y.state=b;b.strm=y;b.wrap=h;b.gzhead=null;b.w_bits=Q;b.w_size=1<<b.w_bits;b.w_mask=b.w_size-1;b.hash_bits=M+7;b.hash_size=1<<b.hash_bits;b.hash_mask=b.hash_size-1;b.hash_shift=~~((b.hash_bits+3-1)/3);b.window=new hv.Buf8(b.w_size*2);b.head=new hv.Buf16(b.hash_size);b.prev=new hv.Buf16(b.w_size);b.lit_bufsize=1<<M+6;b.pending_buf_size=b.lit_bufsize*4;b.pending_buf=new hv.Buf8(b.pending_buf_size);
b.d_buf=b.lit_bufsize;b.l_buf=3*b.lit_bufsize;b.level=u;b.strategy=K;b.method=v;if(y&&y.state){y.total_in=y.total_out=0;y.data_type=2;u=y.state;u.pending=0;u.pending_out=0;u.wrap<0&&(u.wrap=-u.wrap);u.status=u.wrap?42:113;y.adler=u.wrap===2?0:1;u.last_flush=0;if(!sHU){v=Array(16);for(M=K=0;M<28;M++)for(WH4[M]=K,Q=0;Q<1<<P7P[M];Q++)bQ[K++]=M;bQ[K-1]=M;for(M=K=0;M<16;M++)for(UBT[M]=K,Q=0;Q<1<<dBU[M];Q++)FM[K++]=M;for(K>>=7;M<30;M++)for(UBT[M]=K<<7,Q=0;Q<1<<dBU[M]-7;Q++)FM[256+K++]=M;for(Q=0;Q<=15;Q++)v[Q]=
0;for(Q=0;Q<=143;)BG[Q*2+1]=8,Q++,v[8]++;for(;Q<=255;)BG[Q*2+1]=9,Q++,v[9]++;for(;Q<=279;)BG[Q*2+1]=7,Q++,v[7]++;for(;Q<=287;)BG[Q*2+1]=8,Q++,v[8]++;OcT(BG,287,v);for(Q=0;Q<30;Q++)f9[Q*2+1]=5,f9[Q*2]=ljU(Q,5);zzz=new fjU(BG,P7P,257,286,15);gvP=new fjU(f9,dBU,0,30,15);C7T=new fjU([],R3T,0,19,7);sHU=!0}u.l_desc=new ezP(u.dyn_ltree,zzz);u.d_desc=new ezP(u.dyn_dtree,gvP);u.bl_desc=new ezP(u.bl_tree,C7T);u.bi_buf=0;u.bi_valid=0;ZcE(u);u=0}else u=Tg(y,-2);u===0&&(y=y.state,y.window_size=2*y.w_size,oz(y.head),
y.max_lazy_match=PG[y.level].max_lazy,y.good_match=PG[y.level].good_length,y.nice_match=PG[y.level].nice_length,y.max_chain_length=PG[y.level].max_chain,y.strstart=0,y.block_start=0,y.lookahead=0,y.insert=0,y.match_length=y.prev_length=2,y.match_available=0,y.ins_h=0);y=u}}else y=-2;if(y!==0)throw Error(Nt[y]);R.header&&(y=this.strm)&&y.state&&y.state.wrap===2&&(y.state.gzhead=R.header);if(R.dictionary){var N;typeof R.dictionary==="string"?N=yw4(R.dictionary):uNT.call(R.dictionary)==="[object ArrayBuffer]"?
N=new Uint8Array(R.dictionary):N=R.dictionary;R=this.strm;M=N;K=M.length;if(R&&R.state)if(N=R.state,y=N.wrap,y===2||y===1&&N.status!==42||N.lookahead)y=-2;else{y===1&&(R.adler=DBU(R.adler,M,K,0));N.wrap=0;K>=N.w_size&&(y===0&&(oz(N.head),N.strstart=0,N.block_start=0,N.insert=0),u=new hv.Buf8(N.w_size),hv.arraySet(u,M,K-N.w_size,N.w_size,0),M=u,K=N.w_size);u=R.avail_in;v=R.next_in;Q=R.input;R.avail_in=K;R.next_in=0;R.input=M;for(n9(N);N.lookahead>=3;){M=N.strstart;K=N.lookahead-2;do N.ins_h=(N.ins_h<<
N.hash_shift^N.window[M+3-1])&N.hash_mask,N.prev[M&N.w_mask]=N.head[N.ins_h],N.head[N.ins_h]=M,M++;while(--K);N.strstart=M;N.lookahead=2;n9(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=v;R.input=Q;R.avail_in=u;N.wrap=y;y=0}else y=-2;if(y!==0)throw Error(Nt[y]);this._dict_set=!0}};
vJL=function(R,y){y=y||{};y.gzip=!0;y=new YZc(y);y.push(R,!0);if(y.err)throw y.msg||Nt[y.err];return y.result};
jXL=function(R,y){var u=QX4();u&&u.publish.call(u,R.toString(),R,y)};
K8P=function(R,y,u){var v=QX4();if(!v)return 0;var Q=v.subscribe(R.toString(),function(M,K){var h=_.D6("ytPubsub2Pubsub2SkipSubKey");h&&h==Q||(h=function(){if(M0c[Q])try{if(K&&R instanceof JwU&&R!=M)try{var b=R.dataClass,N=K;if(!N.args||!N.version)throw Error("Xc");try{if(!b.version_){var T=new b;b.version_=T.version}var x=b.version_}catch(B){}if(!x||N.version!=x)throw Error("Yc");try{K=Reflect.construct(b,_.Az(N.args))}catch(B){throw B.message="yt.pubsub2.Data.deserialize(): "+B.message,B;}}catch(B){throw B.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+R.toString()+": "+B.message,B;}y.call(u||window,K)}catch(B){_.mq(B)}},V0v[R.toString()]?_.D6("yt.scheduler.instance")?_.WG.addLowPriorityJob(h):_.Ih(h,0):h())});
M0c[Q]=!0;iuT[R.toString()]||(iuT[R.toString()]=[]);iuT[R.toString()].push(Q);return Q};
F8v=function(){var R=IVP,y=K8P(h3G,function(u){R.apply(void 0,arguments);buG(y)});
return y};
buG=function(R){var y=QX4();y&&(typeof R==="number"&&(R=[R]),_.cu(R,function(u){y.unsubscribeByKey(u);delete M0c[u]}))};
QX4=function(){return _.D6("ytPubsub2Pubsub2Instance")};
wNS=function(R,y,u){u=u===void 0?{sampleRate:.1}:u;Math.random()<Math.min(.02,u.sampleRate/100)&&jXL("meta_logging_csi_event",{timerName:R,timelineData:y})};
_.N24=function(R){return R?(R=R.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.LK(R):null:null};
_.d3=function(R){return R?(R=R.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.lb(R):null:null};
oJv=function(){T2E||(T2E=_.d3(_.EB("WORKER_SERIALIZATION_URL")));return T2E||void 0};
_.B2G=function(){var R=oJv();xzE||R===void 0||(xzE=new Worker(_.Oo(R),void 0));return xzE};
_.fVT=function(){return typeof Worker==="function"&&oJv()?!0:!1};
_.Zu8=function(){if(_.fVT()&&!e3E){var R=function(u){u=u.data;if(u.op==="gzippedGelBatch"){var v=lVP.get(u.key);v&&(OuE(u.gzippedBatch,v.latencyPayload,v.url,v.options,v.sendFn),lVP.delete(u.key))}},y=_.B2G();
y&&(y.addEventListener("message",R),y.onerror=function(){lVP.clear()},e3E=!0)}};
dzz=function(R,y,u,v,Q){Q=Q===void 0?!1:Q;var M={startTime:(0,_.uQ)(),ticks:{},infos:{}};if(UW)try{var K=HuT(y);if(K!=null&&(K>nJz||K<GJU))v(R,u);else{if(_.f("gzip_gel_with_worker")&&(_.f("initial_gzip_use_main_thread")&&!rwL||!_.f("initial_gzip_use_main_thread"))){e3E||_.Zu8();var h=_.B2G();if(h&&!Q){lVP.set(P8P,{latencyPayload:M,url:R,options:u,sendFn:v});h.postMessage({op:"gelBatchToGzip",serializedBatch:y,key:P8P});P8P++;return}}var b=vJL(W8E(y));OuE(b,M,R,u,v)}}catch(N){_.pG(N),v(R,u)}else v(R,
u)};
OuE=function(R,y,u,v,Q){rwL=!1;var M=(0,_.uQ)();y.ticks.gelc=M;k2++;_.f("disable_compression_due_to_performance_degredation")&&M-y.startTime>=UzO&&(kJU++,_.f("abandon_compression_after_N_slow_zips")?k2===_.JT("compression_disable_point")&&kJU>EJT&&(UW=!1):UW=!1);$zS(y);v.headers||(v.headers={});v.headers["Content-Encoding"]="gzip";v.postBody=R;v.postParams=void 0;Q(u,v)};
q7T=function(R){var y=y===void 0?!1:y;var u=u===void 0?!1:u;var v=(0,_.uQ)(),Q={startTime:v,ticks:{},infos:{}},M=y?_.D6("yt.logging.gzipForFetch",!1):!0;if(UW&&M){if(!R.body)return R;try{var K=u?R.body:typeof R.body==="string"?R.body:JSON.stringify(R.body);M=K;if(!u&&typeof K==="string"){var h=HuT(K);if(h!=null&&(h>nJz||h<GJU))return R;u=y?{level:1}:void 0;M=vJL(W8E(K),u);var b=(0,_.uQ)();Q.ticks.gelc=b;if(y){k2++;if((_.f("disable_compression_due_to_performance_degredation")||_.f("disable_compression_due_to_performance_degradation_lr"))&&
b-v>=UzO)if(kJU++,_.f("abandon_compression_after_N_slow_zips")||_.f("abandon_compression_after_N_slow_zips_lr")){y=kJU/k2;var N=EJT/_.JT("compression_disable_point");k2>0&&k2%_.JT("compression_disable_point")===0&&y>=N&&(UW=!1)}else UW=!1;$zS(Q)}}R.headers=Object.assign({},{"Content-Encoding":"gzip"},R.headers||{});R.body=M;return R}catch(T){return _.pG(T),R}}else return R};
HuT=function(R){try{return(new Blob(R.split(""))).size}catch(y){return _.pG(y),null}};
$zS=function(R){_.f("gel_compression_csi_killswitch")||!_.f("log_gel_compression_latency")&&!_.f("log_gel_compression_latency_lr")||wNS("gel_compression",R,{sampleRate:.1})};
XNz=function(){this.blockSize=-1};
EW=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()};
Awv=function(R){R=Object.assign({},R);delete R.Authorization;var y=_.mzT();if(y){var u=new EW;u.update(_.EB("INNERTUBE_API_KEY"));u.update(y);R.hash=_.nZ(u.digest(),3)}return R};
qt=function(){Dzc||(Dzc=new _.$2("yt.innertube"));return Dzc};
pN8=function(R,y,u,v){if(v)return null;v=qt().get("nextId",!0)||1;var Q=qt().get("requests",!0)||{};Q[v]={method:R,request:y,authState:Awv(u),requestTime:Math.round((0,_.uQ)())};qt().set("nextId",v+1,86400,!0);qt().set("requests",Q,86400,!0);return v};
t04=function(R){var y=qt().get("requests",!0)||{};delete y[R];qt().set("requests",y,86400,!0)};
aVT=function(R){var y=qt().get("requests",!0);if(y){for(var u in y){var v=y[u];if(!(Math.round((0,_.uQ)())-v.requestTime<6E4)){var Q=v.authState,M=Awv(_.xBU(!1));_.Ps.equals(Q,M)&&(Q=v.request,"requestTimeMs"in Q&&(Q.requestTimeMs=Math.round((0,_.uQ)())),cwW(R,v.method,Q,{}));delete y[u]}}qt().set("requests",y,86400,!0)}};
S7G=function(R){var y;return(R=R==null?void 0:(y=R.error)==null?void 0:y.code)&&R>=400&&R<=599?!1:!0};
Y7U=function(R){var y;R=R==null?void 0:(y=R.error)==null?void 0:y.code;return!(R!==400&&R!==415)};
sXP=function(){if(L8S)return L8S();var R={};L8S=yO("LogsDatabaseV2",{objectStores:(R.LogsRequestsStore={addedAtVersion:2},R),shared:!1,upgrade:function(y,u,v){u(2)&&XM(y,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});u(3);u(5)&&(v=v.objectStore("LogsRequestsStore"),v.JSC$10612_wrapped.indexNames.contains("newRequest")&&v.JSC$10612_wrapped.deleteIndex("newRequest"),me(v,"newRequestV2",["status","interface","timestamp"]));u(7)&&y.JSC$10597_wrapped.objectStoreNames.contains("sapisid")&&y.JSC$10597_wrapped.deleteObjectStore("sapisid");
u(9)&&y.JSC$10597_wrapped.objectStoreNames.contains("SWHealthLog")&&y.JSC$10597_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return L8S()};
Av=function(R){return _.SX(sXP(),R)};
gJc=function(R,y){var u,v,Q,M;return _.I(function(K){if(K.nextAddress==1)return u={startTime:(0,_.uQ)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},K.yield(Av(y),2);if(K.nextAddress!=3)return v=K.yieldResult,Q=Object.assign({},R,{options:JSON.parse(JSON.stringify(R.options)),interface:_.EB("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),K.yield(v.put("LogsRequestsStore",Q),3);M=K.yieldResult;u.ticks.tc=(0,_.uQ)();z38(u);return K.return(M)})};
C8T=function(R,y){var u,v,Q,M,K,h,b,N,T;return _.I(function(x){if(x.nextAddress==1)return u={startTime:(0,_.uQ)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},x.yield(Av(y),2);if(x.nextAddress!=3)return v=x.yieldResult,Q=_.EB("INNERTUBE_CONTEXT_CLIENT_NAME",0),M=[R,Q,0],K=[R,Q,(0,_.uQ)()],h=IDBKeyRange.bound(M,K),b="prev",_.f("use_fifo_for_networkless")&&(b="next"),N=void 0,T=R==="NEW"?"readwrite":"readonly",_.f("use_readonly_for_get_most_recent_by_status_killswitch")&&(T="readwrite"),
x.yield(_.Yz(v,["LogsRequestsStore"],{mode:T,enableRetries:!0},function(B){return _.vG(B.objectStore("LogsRequestsStore").index("newRequestV2"),{query:h,direction:b},function(l){l.getValue()&&(N=l.getValue(),R==="NEW"&&(N.status="QUEUED",l.update(N)))})}),3);
u.ticks.tc=(0,_.uQ)();z38(u);return x.return(N)})};
R4U=function(R,y){var u;return _.I(function(v){if(v.nextAddress==1)return v.yield(Av(y),2);u=v.yieldResult;return v.return(_.Yz(u,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Q){var M=Q.objectStore("LogsRequestsStore");return M.get(R).then(function(K){if(K)return K.status="QUEUED",M.put(K).then(function(){return K})})}))})};
ydT=function(R,y,u,v){u=u===void 0?!0:u;var Q;return _.I(function(M){if(M.nextAddress==1)return M.yield(Av(y),2);Q=M.yieldResult;return M.return(_.Yz(Q,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(K){var h=K.objectStore("LogsRequestsStore");return h.get(R).then(function(b){return b?(b.status="NEW",u&&(b.sendCount+=1),v!==void 0&&(b.options.compress=v),h.put(b).then(function(){return b})):mi.resolve(void 0)})}))})};
ugT=function(R,y){var u;return _.I(function(v){if(v.nextAddress==1)return v.yield(Av(y),2);u=v.yieldResult;return v.return(u.delete("LogsRequestsStore",R))})};
viE=function(R){var y,u;return _.I(function(v){if(v.nextAddress==1)return v.yield(Av(R),2);y=v.yieldResult;u=(0,_.uQ)()-2592E6;return v.yield(_.Yz(y,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Q){return sL(Q.objectStore("LogsRequestsStore"),{},function(M){if(M.getValue().timestamp<=u)return M.delete().then(function(){return M.continue()})})}),0)})};
QcT=function(){_.I(function(R){return R.yield(SqT("LogsDatabaseV2"),0)})};
z38=function(R){_.f("nwl_csi_killswitch")||wNS("networkless_performance",R,{sampleRate:1})};
_.Mbv=function(R){return _.SX(jcz(),R)};
JdT=function(R){var y,u;_.I(function(v){if(v.nextAddress==1)return v.yield(_.Mbv(R),2);y=v.yieldResult;u=(0,_.uQ)()-2592E6;return v.yield(_.Yz(y,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(Q){return sL(Q.objectStore("SWHealthLog"),{},function(M){if(M.getValue().timestamp<=u)return M.delete().then(function(){return M.continue()})})}),0)})};
VbU=function(R){var y;return _.I(function(u){if(u.nextAddress==1)return u.yield(_.Mbv(R),2);y=u.yieldResult;return u.yield(y.clear("SWHealthLog"),0)})};
_.D1=function(R,y,u,v,Q,M,K){Q=Q===void 0?"":Q;M=M===void 0?!1:M;K=K===void 0?!1:K;if(R)if(u&&!EL("cobalt"))_.pG(new _.OL("Legacy referrer-scrubbed ping detected")),R&&ikW(R,void 0,{scrubReferrer:!0});else if(Q)EFT(R,y,"POST",Q,v);else if(_.EB("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||v||K)EFT(R,y,"GET","",v,void 0,M,K);else{b:{try{c:{var h=new KN8({url:R});if(h.urlParamValues_.dsh==="1")var b=null;else{var N=h.urlParamValues_.ae;if(N==="1"){var T=h.urlParamValues_.adurl;if(T)try{b={version:3,directUrl:decodeURIComponent(T),
asyncUrl:ZGW(h.JSC$9443_url_,"act=1","ri=1",IrT(h))};break c}catch(Z){}}b=N==="2"?{version:4,directUrl:ZGW(h.JSC$9443_url_,"dct=1","suid="+h.suid_,""),asyncUrl:ZGW(h.JSC$9443_url_,"act=1","ri=1","suid="+h.suid_)}:null}}if(b){var x=_.Fq(R);var B=!(!x||!x.endsWith("/aclk")||_.AD(R,"ri")!=="1");break b}}catch(Z){}B=!1}if(B){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(R,"")){var l=!0;break b}}catch(Z){}l=!1}l?(y&&y(),u=!0):u=!1}else u=!1;u||ikW(R,y)}};
ikW=function(R,y,u){u=u===void 0?{}:u;var v=new Image,Q=""+h4G++;bkz[Q]=v;v.onload=v.onerror=function(){y&&bkz[Q]&&y();delete bkz[Q]};
u.scrubReferrer&&(v.referrerPolicy="no-referrer");v.src=R};
p9=function(R,y){FNO(R,y==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
wyU=function(R){var y;return((y=document.featurePolicy)==null?0:y.allowedFeatures().includes("attribution-reporting"))?R+"&nis=6":R+"&nis=5"};
NZz=function(R){if(!R)return!1;try{var y;if(((y=_.aM(R))==null?void 0:y.asm)==="4")return!0}catch(u){_.mq(u)}return!1};
FNO=function(R,y){y?(R=wyU(R),_.D1(R,void 0,void 0,void 0,"",!0,!0)):_.D1(R)};
oiO=function(){TZG||(TZG=new _.$2("yt.offline"));return TZG};
xk8=function(R){if(_.f("offline_error_handling")){var y=oiO().get("errors",!0)||{};y[R.message]={name:R.name,stack:R.stack};R.level&&(y[R.message].level=R.level);oiO().set("errors",y,2592E3,!0)}};
frL=function(R,y,u,v){v=v===void 0?!1:v;y=_.f("web_fp_via_jspb")?Object.assign({},y):y;_.f("use_cfr_monitor")&&BZU(R,y);if(_.f("use_request_time_ms_header"))y.headers&&CG(R)&&(y.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.uQ)())));else{var Q;if((Q=y.postParams)==null?0:Q.requestTimeMs)y.postParams.requestTimeMs=Math.round((0,_.uQ)())}u&&Object.keys(y).length===0?_.D1(R):y.compress?y.postBody?(typeof y.postBody!=="string"&&(y.postBody=JSON.stringify(y.postBody)),dzz(R,y.postBody,
y,_.wR,v)):dzz(R,JSON.stringify(y.postParams),y,mQ4,v):_.wR(R,y)};
e4P=function(R,y){_.f("use_event_time_ms_header")&&CG(R)&&(y.headers||(y.headers={}),y.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.uQ)())));return y};
_.Okv=function(){lrS||(lrS=new _.tv({logOfflineErrors:!0,enablePolling:!0}));return lrS};
BZU=function(R,y){var u=y.onError?y.onError:function(){};
y.onError=function(Q,M){cG().requestComplete(R,!1);u(Q,M)};
var v=y.onSuccess?y.onSuccess:function(){};
y.onSuccess=function(Q,M){cG().requestComplete(R,!0);v(Q,M)}};
_.ZkT=function(){return _.z7(document.location.toString())!=="www.youtube-nocookie.com"};
_.GNU=function(){return _.D6("ytNetworklessLoggingInitializationOptions")?_.HkL.isNwlInitialized:_.ni8};
rdE=function(R,y){if(_.f("polymer_on_demand_shady_dom")){var u;var v=(u=R.__shady_native_firstElementChild)!=null?u:R.firstElementChild}else v=R.firstElementChild;for(;v;){if(R=y(v)?v:rdE(v,y))return R;v=v.nextElementSibling}return null};
WNv=function(){var R=document;if("visibilityState"in R)return R.visibilityState;var y=PXP+"VisibilityState";if(y in R)return R[y]};
_.dk8=function(R,y){var u;az(R,function(v){u=y[v];return!!u});
return u};
_.Y2=function(R){var y=UkE(R);y?y.focus(void 0):_.S_(R)};
UkE=function(R){return(R=rdE(R,function(y){return _.L9(y)?kNG(y)&&!!y.offsetParent:!1}))?R:null};
_.S_=function(R,y){R.hasAttribute("tabindex")||R.setAttribute("tabindex","-1");R.focus(y)};
EiW=function(R,y,u,v){v=v===void 0?{}:v;R.addEventListener&&(y!="mouseenter"||"onmouseenter"in document?y!="mouseleave"||"onmouseenter"in document?y=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(y="MozMousePixelScroll"):y="mouseout":y="mouseover");return _.Ps.findKey(g3,function(Q){var M=typeof Q[4]==="boolean"&&Q[4]==!!v,K=_.Sv(Q[4])&&_.Sv(v)&&_.Ps.equals(Q[4],v);return!!Q.length&&Q[0]==R&&Q[1]==y&&Q[2]==u&&(M||K)})};
_.yF=function(R,y,u,v){v=v===void 0?{}:v;if(!R||!R.addEventListener&&!R.attachEvent)return"";var Q=EiW(R,y,u,v);if(Q)return Q;Q=++$kT.count+"";var M=!(y!="mouseenter"&&y!="mouseleave"||!R.addEventListener||"onmouseenter"in document);var K=M?function(h){h=new RN(h);if(!_.$h(h.relatedTarget,function(b){return b==R},!0))return h.currentTarget=R,h.type=y,u.call(R,h)}:function(h){h=new RN(h);
h.currentTarget=R;return u.call(R,h)};
K=_.A7(K);R.addEventListener?(y=="mouseenter"&&M?y="mouseover":y=="mouseleave"&&M?y="mouseout":y=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(y="MozMousePixelScroll"),q4E()||typeof v==="boolean"?R.addEventListener(y,K,v):R.addEventListener(y,K,!!v.capture)):R.attachEvent("on"+y,K);g3[Q]=[R,y,u,K,v];return Q};
_.mkU=function(R,y,u){var v=v===void 0?{}:v;var Q=_.yF(R,y,function(){_.Xyv(Q);u.apply(R,arguments)},v)};
_.Xyv=function(R){R&&(typeof R=="string"&&(R=[R]),_.cu(R,function(y){if(y in g3){var u=g3[y],v=u[0],Q=u[1],M=u[3];u=u[4];v.removeEventListener?q4E()||typeof u==="boolean"?v.removeEventListener(Q,M,u):v.removeEventListener(Q,M,!!u.capture):v.detachEvent&&v.detachEvent("on"+Q,M);delete g3[y]}}))};
u_=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_=_.yF(window,"mousemove",(0,_.HY)(this.onMouseMove_,this));this.timerId_=_.hT((0,_.HY)(this.checkPosition_,this),25)};
DkW=function(){var R={};var y=R.preferMobileEvents===void 0?!1:R.preferMobileEvents;R=R.enableScrollEventListener===void 0?!0:R.enableScrollEventListener;if(_.D6("_lact",window)==null){var u=parseInt(_.EB("LACT"),10);u=isFinite(u)?Date.now()-Math.max(u,0):-1;_.CJ("_lact",u,window);_.CJ("_fact",u,window);u==-1&&_.v3();_.yF(document,"keydown",_.v3);_.yF(document,"keyup",_.v3);_.yF(document,"mousedown",_.v3);_.yF(document,"mouseup",_.v3);y?_.yF(window,"touchmove",function(){Adv("touchmove",200)},{passive:!0}):
(_.yF(window,"resize",function(){Adv("resize",200)}),R&&_.yF(window,"scroll",function(){Adv("scroll",200)}));
new u_(function(){Adv("mouse",100)});
_.yF(document,"touchstart",_.v3,{passive:!0});_.yF(document,"touchend",_.v3,{passive:!0})}};
Adv=function(R,y){py8[R]||(py8[R]=!0,_.WG.addLowPriorityJob(function(){_.v3();py8[R]=!1},y))};
_.v3=function(){_.D6("_lact",window)==null&&DkW();var R=Date.now();_.CJ("_lact",R,window);_.D6("_fact",window)==-1&&_.CJ("_fact",R,window);(R=_.D6("ytglobal.ytUtilActivityCallback_"))&&R()};
_.QF=function(){var R=_.D6("_lact",window);return R==null?-1:Math.max(Date.now()-R,0)};
_.VF=function(R,y,u){var v=_.jx();if(v&&y){var Q=v.subscribe(R,function(){var M=arguments,K=function(){Mc[Q]&&y.apply&&typeof y.apply=="function"&&y.apply(u||window,M)};
try{_.tbW[R]?K():_.Ih(K,0)}catch(h){_.mq(h)}},u);
Mc[Q]=!0;Jc[R]||(Jc[R]=[]);Jc[R].push(Q);return Q}return 0};
_.cdO=function(R){var y=_.jx();y&&(typeof R==="number"?R=[R]:typeof R==="string"&&(R=[parseInt(R,10)]),_.cu(R,function(u){y.unsubscribeByKey(u);delete Mc[u]}))};
_.arO=function(R,y){var u=_.jx();u&&u.publish.apply(u,arguments)};
_.Y4L=function(R){var y=_.jx();if(y)if(y.clear(R),R)S4L(R);else for(var u in Jc)S4L(u)};
_.jx=function(){return _.uO.ytPubsubPubsubInstance};
S4L=function(R){Jc[R]&&(R=Jc[R],_.cu(R,function(y){Mc[y]&&delete Mc[y]}),R.length=0)};
LNL=function(){var R,y;return"h5vcc"in i_&&((R=i_.h5vcc.traceEvent)==null?0:R.traceBegin)&&((y=i_.h5vcc.traceEvent)==null?0:y.traceEnd)?1:"performance"in i_&&i_.performance.mark&&i_.performance.measure?2:0};
scG=function(R){var y=LNL();switch(y){case 1:i_.h5vcc.traceEvent.traceBegin("YTLR",R);break;case 2:i_.performance.mark(R+"-start");break;case 0:break;default:_.AL(y,"unknown trace type")}};
z4P=function(R){var y=LNL();switch(y){case 1:i_.h5vcc.traceEvent.traceEnd("YTLR",R);break;case 2:y=R+"-start";var u=R+"-end";i_.performance.mark(u);i_.performance.measure(R,y,u);break;case 0:break;default:_.AL(y,"unknown trace type")}};
gi8=function(R){var y,u;(u=(y=window).onerror)==null||u.call(y,R.message,"",0,0,R)};
CXU=function(R){if(_.f("web_lifecycle_error_handling_killswitch"))return R();try{return R()}catch(y){gi8(y)}};
RvW=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("/")};
_.e=function(R,y){if(R)return R[y.name]};
IN=function(){var R=_.D6("yt.logging.ims");R||(R=new Ki,_.CJ("yt.logging.ims",R));return R};
ihL=function(R,y){if(R.endpoint==="log_event"){y6W(R);var u=ujO(R),v=v64(R.payload)||"",Q=QCU(v),M=200;if(Q){if(Q.enabled===!1&&!_.f("web_payload_policy_disabled_killswitch"))return;M=jCU(Q.tier);if(M===400){MpL(R,y);return}}hc[u]=!0;u={cttAuthInfo:u,isJspb:!1,tier:M};IN().storePayload(u,R.payload);J6E(y,!1,u,VpL(v))}};
IlG=function(R,y,u){if(y.endpoint==="log_event"){y6W(void 0,y);var v=ujO(y,!0),Q=QCU(R),M=200;if(Q){if(Q.enabled===!1&&!_.f("web_payload_policy_disabled_killswitch"))return;M=jCU(Q.tier);if(M===400){Kxv(R,y,u);return}}hc[v]=!0;v={cttAuthInfo:v,isJspb:!0,tier:M};IN().storePayload(v,ra(y.payload));J6E(u,!0,v,VpL(R))}};
J6E=function(R,y,u,v){y=y===void 0?!1:y;v=v===void 0?!1:v;R&&(b_=new R);R=_.JT("tvhtml5_logging_max_batch_ads_fork")||_.JT("tvhtml5_logging_max_batch")||_.JT("web_logging_max_batch")||100;var Q=(0,_.uQ)(),M=hvE(y,u.tier),K=M.lastDebounceQueueFromLogTimeMs;v&&(M.useVideoStatsEndPoint=!0);v=0;u&&(v=IN().getSequenceCount(u));var h=function(){bhc({writeThenSend:!0},y,u.tier)};
v>=1E3?h():v>=R?Fxc||(Fxc=w_T(function(){h();Fxc=void 0},0)):Q-K>=10&&(NWU(y,u.tier),M.lastDebounceQueueFromLogTimeMs=Q)};
MpL=function(R,y){if(R.endpoint==="log_event"){_.f("more_accurate_gel_parser")&&IN().storePayload({isJspb:!1},R.payload);y6W(R);var u=ujO(R),v=new Map;v.set(u,[R.payload]);var Q=v64(R.payload)||"";y&&(b_=new y);return new _.F4(function(M,K){b_&&b_.isReady()?TWS(v,b_,M,K,{bypassNetworkless:!0},!0,VpL(Q)):M()})}};
Kxv=function(R,y,u){if(y.endpoint==="log_event"){y6W(void 0,y);var v=ujO(y,!0),Q=new Map;Q.set(v,[ra(y.payload)]);u&&(b_=new u);return new _.F4(function(M){b_&&b_.isReady()?o6P(Q,b_,M,{bypassNetworkless:!0},!0,VpL(R)):M()})}};
ujO=function(R,y){var u="";if(R.dangerousLogToVisitorSession)u="visitorOnlyApprovedKey";else if(R.cttAuthInfo){if(y===void 0?0:y){y=R.cttAuthInfo.token;u=R.cttAuthInfo;var v=new xR4;u.videoId?v.setVideoId(u.videoId):u.playlistId&&wI(v,2,BWG,bJ(u.playlistId));flG[y]=v}else y=R.cttAuthInfo,u={},y.videoId?u.videoId=y.videoId:y.playlistId&&(u.playlistId=y.playlistId),ev8[R.cttAuthInfo.token]=u;u=R.cttAuthInfo.token}return u};
bhc=function(R,y,u){R=R===void 0?{}:R;y=y===void 0?!1:y;new _.F4(function(v,Q){var M=hvE(y,u),K=M.useVideoStatsEndPoint;M.useVideoStatsEndPoint=!1;llE(M.queueTimer);llE(M.queueMaxTimer);M.queueMaxTimer=0;b_&&b_.isReady()?u===void 0&&_.f("enable_web_tiered_gel")?OhE(v,Q,R,y,300,K):OhE(v,Q,R,y,u,K):(NWU(y,u),v())})};
OhE=function(R,y,u,v,Q,M){var K=b_;u=u===void 0?{}:u;v=v===void 0?!1:v;Q=Q===void 0?200:Q;M=M===void 0?!1:M;var h=new Map,b=new Map,N={isJspb:v,cttAuthInfo:void 0,tier:Q},T={isJspb:v,cttAuthInfo:void 0};if(v){y=_.V(Object.keys(hc));for(Q=y.next();!Q.done;Q=y.next())Q=Q.value,b=_.f("enable_web_tiered_gel")?IN().smartExtractMatchingEntries({keys:[N,T],sizeLimit:1E3}):IN().extractMatchingEntries({isJspb:!0,cttAuthInfo:Q}),b.length>0&&h.set(Q,b),(_.f("web_fp_via_jspb_and_json")&&u.writeThenSend||!_.f("web_fp_via_jspb_and_json"))&&
delete hc[Q];o6P(h,K,R,u,!1,M)}else{h=_.V(Object.keys(hc));for(N=h.next();!N.done;N=h.next())N=N.value,T=_.f("enable_web_tiered_gel")?IN().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:N,tier:Q},{isJspb:!1,cttAuthInfo:N}],sizeLimit:1E3}):IN().extractMatchingEntries({isJspb:!1,cttAuthInfo:N}),T.length>0&&b.set(N,T),(_.f("web_fp_via_jspb_and_json")&&u.writeThenSend||!_.f("web_fp_via_jspb_and_json"))&&delete hc[N];TWS(b,K,R,y,u,!1,M)}};
NWU=function(R,y){R=R===void 0?!1:R;y=y===void 0?200:y;var u=function(){bhc({writeThenSend:!0},R,y)},v=hvE(R,y),Q=v===Zh8||v===HhP?5E3:n6U;
_.f("web_gel_timeout_cap")&&!v.queueMaxTimer&&(Q=w_T(function(){u()},Q),v.queueMaxTimer=Q);
llE(v.queueTimer);Q=_.EB("LOGGING_BATCH_TIMEOUT",_.JT("web_gel_debounce_ms",1E4));_.f("shorten_initial_gel_batch_timeout")&&G3L&&(Q=r6P);Q=w_T(function(){_.JT("gel_min_batch_size")>0?IN().getSequenceCount({cttAuthInfo:void 0,isJspb:R,tier:y})>=P08&&u():u()},Q);
v.queueTimer=Q};
TWS=function(R,y,u,v,Q,M,K){Q=Q===void 0?{}:Q;var h=Math.round((0,_.uQ)()),b=R.size,N=WxU(K);R=_.V(R);var T=R.next();for(K={};!T.done;K={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},T=R.next()){var x=_.V(T.value);T=x.next().value;x=x.next().value;K.batchRequest=_.Ps.unsafeClone({context:_.KH4(y.config_||_.QO())});if(!_.p8(x)&&!_.f("throw_err_when_logevent_malformed_killswitch")){v();break}K.batchRequest.events=x;
(x=ev8[T])&&dRG(K.batchRequest,T,x);delete ev8[T];K.dangerousLogToVisitorSession=T==="visitorOnlyApprovedKey";URW(K.batchRequest,h,K.dangerousLogToVisitorSession);k3E(Q);K.onSuccess$jscomp$3=function(B){_.f("start_client_gcf")&&_.WG.addLowPriorityJob(function(){return _.I(function(l){return l.yield(E6z(B),0)})});
b--;b||u()};
K.networkFailures=0;K.onError$jscomp$5=function(B){return function(){B.networkFailures++;if(Q.bypassNetworkless&&B.networkFailures===1)try{cwW(y,N,B.batchRequest,$Rz({writeThenSend:!0},B.dangerousLogToVisitorSession,B.onSuccess$jscomp$3,B.onError$jscomp$5,M)),G3L=!1}catch(l){_.mq(l),v()}b--;b||u()}}(K);
try{cwW(y,N,K.batchRequest,$Rz(Q,K.dangerousLogToVisitorSession,K.onSuccess$jscomp$3,K.onError$jscomp$5,M)),G3L=!1}catch(B){_.mq(B),v()}}};
o6P=function(R,y,u,v,Q,M){v=v===void 0?{}:v;var K=Math.round((0,_.uQ)()),h={value:R.size},b=new Map([].concat(_.P$(R)));b=_.V(b);for(var N=b.next();!N.done;N=b.next()){var T=_.V(N.value).next().value,x=R.get(T);N=new qyG;var B=y.config_||_.QO(),l=new Nc,Z=new X_4;_.eQ(Z,1,B.innertubeContextHostLanguage);_.eQ(Z,2,B.innertubeContextGeoLocation);_.j_(Z,16,B.innertubeContextClientNameFieldNumber);_.eQ(Z,17,B.innertubeContextClientVersion);if(B.innertubeContextClientConfigInfo){var P=B.innertubeContextClientConfigInfo,
k=new Jv;P.coldConfigData&&_.eQ(k,1,P.coldConfigData);P.appInstallData&&_.eQ(k,6,P.appInstallData);P.coldHashData&&_.eQ(k,3,P.coldHashData);P.hotHashData&&k.setHotHashData(P.hotHashData);_.wC(Z,62,k)}(P=_.uO.devicePixelRatio)&&P!=1&&_.Mt(Z,65,_.Dw(P));P=Ho4();P!==""&&_.eQ(Z,54,P);P=nF4();if(P.length>0){k=new mRE;for(var E=0;E<P.length;E++){var D=new Tp;D.setKey(P[E].key);wI(D,2,A6G,bJ(P[E].value));oN(k,15,Tp,D)}_.wC(l,5,k)}QHU(B,Z);jHz(l);MqT(Z);JUT(B,Z);VqT(Z);_.f("start_client_gcf")&&icE(Z);_.EB("DELEGATED_SESSION_ID")&&
!_.f("pageid_as_header_web")&&(B=new xT,_.eQ(B,3,_.EB("DELEGATED_SESSION_ID")));!_.f("fill_delegate_context_in_gel_killswitch")&&(P=_.EB("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(k=_.Ne(l,xT,3)||new xT,B=l,P=_.eQ(k,18,P),_.wC(B,3,P));B=Z;P=_.V(Object.entries(_.aM(_.EB("DEVICE",""))));for(k=P.next();!k.done;k=P.next())E=_.V(k.value),k=E.next().value,E=E.next().value,k==="cbrand"?_.eQ(B,12,E):k==="cmodel"?_.eQ(B,13,E):k==="cbr"?_.eQ(B,87,E):k==="cbrver"?_.eQ(B,88,E):k==="cos"?_.eQ(B,18,
E):k==="cosver"?_.eQ(B,19,E):k==="cplatform"&&_.j_(B,42,vsG(E));l.setClient(Z);_.wC(N,1,l);if(Z=flG[T])a:{if(_.Tl(Z,B3(Z,BWG,1)))l=1;else if(Z.getPlaylistId())l=2;else break a;_.wC(N,4,Z);Z=N.getContext()||new Nc;B=_.Ne(Z,xT,3)||new xT;P=new fi;P.setToken(T);_.j_(P,1,l);oN(B,12,fi,P);_.wC(Z,3,B)}delete flG[T];T=T==="visitorOnlyApprovedKey";DRW()||_.ex(N,2,K);!T&&(l=_.EB("EVENT_ID"))&&(Z=p_E(),B=new tpT,_.eQ(B,1,l),_.ex(B,2,Z),_.wC(N,5,B));k3E(v);if(_.f("jspb_serialize_with_worker")&&(l=_.B2G())&&
v.writeThenSend){_.c6W.set(alO,{client:y,resolve:u,networklessOptions:v,isIsolated:Q,useVSSEndpoint:M,dangerousLogToVisitorSession:T,requestsOutstanding:h});l.postMessage({op:"gelBatchToSerialize",batchRequest:ra(N),clientEvents:x,key:alO});alO++;break}if(x){l=[];for(Z=0;Z<x.length;Z++)try{l.push(new l_(x[Z]))}catch(z){_.mq(new _.OL("Transport failed to deserialize "+String(x[Z])))}x=l}else x=[];x=_.V(x);for(l=x.next();!l.done;l=x.next())oN(N,3,l_,l.value);x={startTime:(0,_.uQ)(),ticks:{},infos:{}};
N=N.serialize();x.ticks.geljspc=(0,_.uQ)();_.f("log_jspb_serialize_latency")&&wNS("gel_jspb_serialize",x,{sampleRate:.1});_.SyE(N,y,u,v,Q,M,T,h)}};
_.SyE=function(R,y,u,v,Q,M,K,h){v=v===void 0?{}:v;h=h===void 0?{value:0}:h;M=WxU(M);v=$Rz(v,K,function(b){_.f("start_client_gcf")&&_.WG.addLowPriorityJob(function(){return _.I(function(N){return N.yield(E6z(b),0)})});
h.value--;h.value||u()},function(){h.value--;
h.value||u()},Q);
v.headers["Content-Type"]="application/json+protobuf";v.postBodyFormat="JSPB";v.postBody=R;cwW(y,M,"",v);G3L=!1};
k3E=function(R){_.f("always_send_and_write")&&(R.writeThenSend=!1)};
$Rz=function(R,y,u,v,Q){R={retry:!0,onSuccess:u,onError:v,networklessOptions:R,dangerousLogToVisitorSession:y,bypassMonitoring:!!Q,headers:{},postBodyFormat:"",postBody:"",compress:_.f("compress_gel")||_.f("compress_gel_lr")};DRW()&&(R.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.uQ)())));return R};
URW=function(R,y,u){DRW()||(R.requestTimeMs=String(y));_.f("unsplit_gel_payloads_in_logs")&&(R.unsplitGelPayloadsInLogs=!0);!u&&(y=_.EB("EVENT_ID"))&&(u=p_E(),R.serializedClientEventId={serializedEventId:y,clientCounter:String(u)})};
p_E=function(){var R=_.EB("BATCH_CLIENT_COUNTER")||0;R||(R=Math.floor(Math.random()*65535/2));R++;R>65535&&(R=1);_.kB("BATCH_CLIENT_COUNTER",R);return R};
dRG=function(R,y,u){if(u.videoId)var v="VIDEO";else if(u.playlistId)v="PLAYLIST";else return;R.credentialTransferTokenTargetId=u;R.context=R.context||{};R.context.user=R.context.user||{};R.context.user.credentialTransferTokens=[{token:y,scope:v}]};
y6W=function(R,y){var u=_.VN("il_payload_scraping")==="enable_il_payload_scraping";if(!_.D6("yt.logging.transport.enableScrapingForTest"))if(u)YyU=[],_.CJ("yt.logging.transport.enableScrapingForTest",!0),_.CJ("yt.logging.transport.scrapedPayloadsForTesting",YyU),_.CJ("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.CJ("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.CJ("yt.logging.transport.scrapeClientEvent",!0);else return;u=_.D6("yt.logging.transport.scrapedPayloadsForTesting");var v=_.D6("yt.logging.transport.payloadToScrape");y&&(y=_.D6("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(y.payload)())&&u.push(y);y=_.D6("yt.logging.transport.scrapeClientEvent");if(v&&v.length>=1)for(var Q=0;Q<v.length;Q++)if(R&&R.payload[v[Q]])if(y)u.push(R.payload);else{var M=void 0;u.push(((M=R)==null?void 0:M.payload)[v[Q]])}_.CJ("yt.logging.transport.scrapedPayloadsForTesting",
u)};
DRW=function(){return _.f("use_request_time_ms_header")||_.f("lr_use_request_time_ms_header")};
w_T=function(R,y){return _.f("transport_use_scheduler")===!1?_.Ih(R,y):_.f("logging_avoid_blocking_during_navigation")||_.f("lr_logging_avoid_blocking_during_navigation")?_.Oh(_.WG,function(){if(_.LxU().currentState==="none")R();else{var u={};_.LxU().install((u.none={callback:R},u))}},y):_.Oh(_.WG,R,y)};
llE=function(R){_.f("transport_use_scheduler")?_.WG.cancelJob(R):_.ba(R)};
E6z=function(R){var y,u,v,Q,M,K,h,b,N,T;return _.I(function(x){return x.nextAddress==1?(v=(y=R)==null?void 0:(u=y.responseContext)==null?void 0:u.globalConfigGroup,Q=_.e(v,sCU),K=(M=v)==null?void 0:M.hotHashData,h=_.e(v,zvS),N=(b=v)==null?void 0:b.coldHashData,(T=_.ua().resolve(_.yN(Zz)))?K?Q?x.yield(g6v(T,K,Q),2):x.yield(g6v(T,K),2):x.jumpTo(2):x.return()):N?h?x.yield(C0O(T,N,h),0):x.yield(C0O(T,N),0):x.jumpTo(0)})};
hvE=function(R,y){y=y===void 0?200:y;return R?y===300?Zh8:R8L:y===300?HhP:yFW};
QCU=function(R){if(_.f("enable_web_tiered_gel")){R=us4[R||""];var y,u,v,Q=_.ua().resolve(_.yN(Zz))==null?void 0:(y=H3())==null?void 0:(u=y.loggingHotConfig)==null?void 0:(v=u.eventLoggingConfig)==null?void 0:v.payloadPolicies;if(Q)for(y=0;y<Q.length;y++)if(Q[y].payloadNumber===R)return Q[y]}};
v64=function(R){R=Object.keys(R);R=_.V(R);for(var y=R.next();!y.done;y=R.next())if(y=y.value,us4[y])return y};
jCU=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}};
VpL=function(R){return R==="gelDebuggingEvent"};
WxU=function(R){return(R===void 0?0:R)&&_.f("vss_through_gel_video_stats")?"video_stats":"log_event"};
Gp=function(R,y,u,v){v=v===void 0?{}:v;var Q={},M=Math.round(v.timestamp||(0,_.uQ)());Q.eventTimeMs=M<Number.MAX_SAFE_INTEGER?M:0;Q[R]=y;R=_.QF();Q.context={lastActivityMs:String(v.timestamp||!isFinite(R)?-1:R)};v.sequenceGroup&&!_.f("web_gel_sequence_info_killswitch")&&(R=Q.context,y=v.sequenceGroup,y={index:v9S(y),groupKey:y},R.sequence=y,v.endOfSequence&&delete ni[v.sequenceGroup]);_.f("web_tag_automated_log_events")&&(Q.context.automatedLogEventSource=v.automatedLogEventSource);(v.sendIsolatedPayload?
MpL:ihL)({endpoint:"log_event",payload:Q,cttAuthInfo:v.cttAuthInfo,dangerousLogToVisitorSession:v.dangerousLogToVisitorSession},u)};
v9S=function(R){ni[R]=R in ni?ni[R]+1:0;return ni[R]};
_.P3=function(R,y,u){u=u===void 0?{}:u;var v=rI;_.$B("ytLoggingEventsDefaultDisabled",!1)&&rI===rI&&(v=null);Gp(R,y,v,u)};
_.W3=function(){if(_.f("web_fp_via_jspb")){var R=!0;R=R===void 0?!1:R;var y=Q8O;Q8O=[];if(y){y=_.V(y);for(var u=y.next();!u.done;u=y.next())u=u.value,R?Gp(u.payloadName,u.payload,rI,u.options):_.P3(u.payloadName,u.payload,u.options)}bhc(void 0,!0);if(!_.f("web_fp_via_jspb_and_json"))return}bhc(void 0,!1)};
j8S=function(R,y){var u;if((u=y)==null?0:u.componentStack)return y;if(R=R.componentStack)y||(y={}),y.componentStack=R;return y};
MoT=function(){_.cu(_.EB("ERRORS")||[],function(R){_.dI.apply(null,R)});
_.kB("ERRORS",[])};
_.Uh=function(R){_.dI(R)};
_.kT=function(R){_.dI(R,"WARNING")};
JFW=function(R){R instanceof Error?_.dI(R):(R=_.Sv(R)?JSON.stringify(R):String(R),R=new _.OL(R),R.name="RejectedPromiseError",_.kT(R))};
Vo4=function(R,y,u,v,Q,M){y=y===void 0?"Unknown file":y;u=u===void 0?0:u;var K=!1,h=J_S("log_window_onerror_fraction");if(h&&Math.random()<h)K=!0;else{h=document.getElementsByTagName("script");for(var b=0,N=h.length;b<N;b++)if(h[b].src.indexOf("/debug-")>0){K=!0;break}}K&&(K=!1,Q?K=!0:(typeof R==="string"?h=R:ErrorEvent&&R instanceof ErrorEvent?(K=!0,h=R.message,y=R.filename,u=R.lineno,v=R.colno):(h="Unknown error",y="Unknown file",u=0),Q=new _.OL(h),Q.name="UnhandledWindowError",Q.message=h,Q.fileName=
y,Q.lineNumber=u,isNaN(v)?delete Q.columnNumber:Q.columnNumber=v),_.f("wiz_enable_component_stack_propagation_killswitch")||(M=j8S(Q,M)),M&&_.Eh(Q,M),K?_.dI(Q):_.kT(Q))};
_.dI=function(R,y,u,v,Q,M,K,h){M=M===void 0?{}:M;M.name=u||_.EB("INNERTUBE_CONTEXT_CLIENT_NAME",1);M.version=v||_.EB("INNERTUBE_CONTEXT_CLIENT_VERSION");u=M;y=y===void 0?"ERROR":y;K=K===void 0?!1:K;y=y===void 0?"ERROR":y;K=K===void 0?!1:K;if(R&&(R.hasOwnProperty("level")&&R.level&&(y=R.level),_.f("console_log_js_exceptions")&&(v=[],v.push("Name: "+R.name),v.push("Message: "+R.message),R.hasOwnProperty("params")&&v.push("Error Params: "+JSON.stringify(R.params)),R.hasOwnProperty("args")&&v.push("Error args: "+
JSON.stringify(R.args)),v.push("File name: "+R.fileName),v.push("Stacktrace: "+R.stack),v=v.join("\n"),window.console.log(v,R)),!(iAP>=5))){v=[];Q=_.V(Kkz);for(M=Q.next();!M.done;M=Q.next()){M=M.value;try{M()&&v.push(M())}catch(k){}}v=[].concat(_.P$(IOP),_.P$(v));var b=h8T(R);Q=b.message||"Unknown Error";M=b.name||"UnknownError";var N=b.stack||R.stacktrace||"Not available";if(N.startsWith(M+": "+Q)){var T=N.split("\n");T.shift();N=T.join("\n")}T=b.lineNumber||"Not available";b=b.fileName||"Not available";
var x=0;if(R.hasOwnProperty("args")&&R.args&&R.args.length)for(var B=0;B<R.args.length&&!(x=u9v(R.args[B],"params."+B,u,x),x>=500);B++);else if(R.hasOwnProperty("params")&&R.params){var l=R.params;if(typeof R.params==="object")for(B in l){if(l[B]){var Z="params."+B,P=oh(l[B]);u[Z]=P;x+=Z.length+P.length;if(x>500)break}}else u.params=oh(l)}if(v.length)for(B=0;B<v.length&&!(x=u9v(v[B],"params.context."+B,u,x),x>=500);B++);navigator.vendor&&!u.hasOwnProperty("vendor")&&(u["device.vendor"]=navigator.vendor);
B={message:Q,name:M,lineNumber:T,fileName:b,stack:N,params:u,sampleWeight:1};u=Number(R.columnNumber);isNaN(u)||(B.lineNumber=B.lineNumber+":"+u);if(R.level==="IGNORED")R=0;else a:{R=bAL();u=_.V(R.messageWeights);for(v=u.next();!v.done;v=u.next())if(v=v.value,B.message&&B.message.match(v.messageRegExp)){R=v.weight;break a}R=_.V(R.callbackWeights);for(u=R.next();!u.done;u=R.next())if(u=u.value,u.callback(B)){R=u.weight;break a}R=1}B.sampleWeight=R;R=_.V(FkG);for(u=R.next();!u.done;u=R.next())if(u=
u.value,u.patternsForType[B.name])for(Q=_.V(u.patternsForType[B.name]),v=Q.next();!v.done;v=Q.next())if(M=v.value,v=B.message.match(M.regexp)){B.params["params.error.original"]=v[0];Q=M.groups;M={};for(T=0;T<Q.length;T++)M[Q[T]]=v[T+1],B.params["params.error."+Q[T]]=v[T+1];B.message=u.messageFn(M);break}B.params||(B.params={});R=bAL();B.params["params.errorServiceSignature"]="msg="+R.messageWeights.length+"&cb="+R.callbackWeights.length;B.params["params.serviceWorker"]="false";_.uO.document&&_.uO.document.querySelectorAll&&
(B.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new $T(wmE,"sample")).constructor!==$T&&(B.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(B);if(B.sampleWeight!==0&&!Nm8.has(B.message)){if(K&&_.f("web_enable_error_204"))TmE(y===void 0?"ERROR":y,B);else{y=y===void 0?"ERROR":y;y==="ERROR"?(o9G.publish("handleError",B),_.f("record_app_crashed_web")&&xpP===0&&B.sampleWeight===1&&(xpP++,K={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.f("report_client_error_with_app_crash_ks")||(K.systemHealth={crashData:{clientError:{logMessage:{message:B.message}}}}),_.P3("appCrashed",K)),BmG++):y==="WARNING"&&o9G.publish("handleWarning",B);if(_.f("kevlar_gel_error_routing")){K=y;h=h===void 0?{}:h;b:{R=_.V(fOS);for(u=R.next();!u.done;u=R.next())if(EL(u.value.toLowerCase())){R=!0;break b}R=!1}if(R)h=void 0;else{u={stackTrace:B.stack};B.fileName&&(u.filename=B.fileName);R=B.lineNumber&&B.lineNumber.split?B.lineNumber.split(":"):[];R.length!==
0&&(R.length!==1||isNaN(Number(R[0]))?R.length!==2||isNaN(Number(R[0]))||isNaN(Number(R[1]))||(u.lineNumber=Number(R[0]),u.columnNumber=Number(R[1])):u.lineNumber=Number(R[0]));R={level:"ERROR_LEVEL_UNKNOWN",message:B.message,errorClassName:B.name,sampleWeight:B.sampleWeight};K==="ERROR"?R.level="ERROR_LEVEL_ERROR":K==="WARNING"&&(R.level="ERROR_LEVEL_WARNNING");u={isObfuscated:!0,browserStackInfo:u};h.pageUrl=window.location.href;h.kvPairs=[];_.EB("FEXP_EXPERIMENTS")&&(h.experimentIds=_.EB("FEXP_EXPERIMENTS"));
v=_.EB("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!J_S("web_disable_gel_stp_ecatcher_killswitch")&&v)for(Q=_.V(Object.keys(v)),M=Q.next();!M.done;M=Q.next())M=M.value,h.kvPairs.push({key:M,value:String(v[M])});if(v=B.params)for(Q=_.V(Object.keys(v)),M=Q.next();!M.done;M=Q.next())M=M.value,h.kvPairs.push({key:"client."+M,value:String(v[M])});v=_.EB("SERVER_NAME");Q=_.EB("SERVER_VERSION");v&&Q&&(h.kvPairs.push({key:"server.name",value:v}),h.kvPairs.push({key:"server.version",value:Q}));h={errorMetadata:h,
stackTrace:u,logMessage:R}}h&&(_.P3("clientError",h),(K==="ERROR"||_.f("errors_flush_gel_always_killswitch"))&&_.W3())}_.f("suppress_error_204_logging")||TmE(y,B)}try{Nm8.add(B.message)}catch(k){}iAP++}}};
TmE=function(R,y){var u=y.params||{};R={urlParams:{a:"logerror",t:"jserror",type:y.name,msg:y.message.substr(0,250),line:y.lineNumber,level:R,"client.name":u.name},postParams:{url:_.EB("PAGE_NAME",window.location.href),file:y.fileName},method:"POST"};u.version&&(R["client.version"]=u.version);if(R.postParams){y.stack&&(R.postParams.stack=y.stack);y=_.V(Object.keys(u));for(var v=y.next();!v.done;v=y.next())v=v.value,R.postParams["client."+v]=u[v];if(u=_.EB("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(y=
_.V(Object.keys(u)),v=y.next();!v.done;v=y.next())v=v.value,R.postParams[v]=u[v];(u=_.EB("LAVA_VERSION"))&&(R.postParams["lava.version"]=u);u=_.EB("SERVER_NAME");y=_.EB("SERVER_VERSION");u&&y&&(R.postParams["server.name"]=u,R.postParams["server.version"]=y)}_.wR(_.EB("ECATCHER_REPORT_HOST","")+"/error_204",R)};
_.e8P=function(R,y){y=y===void 0?"ERROR":y;var u=u===void 0?{}:u;var v=_.D6("ytbin.polymer.shared.lib.tampering.info");v&&(v=v())&&(u["params.tamperingInfo"]=v.sort().join(","));_.dI(R,y,void 0,void 0,!0,u)};
_.Eh=function(R){var y=_.qy.apply(1,arguments);R.args||(R.args=[]);Array.isArray(R.args)&&R.args.push.apply(R.args,_.P$(y))};
lOT=function(R){R.level="IGNORED"};
OAG=function(R,y){IOP.push(R);y();IOP.pop()};
Ac=function(R,y){for(var u in y)y.hasOwnProperty(u)&&(R=_.mW(R,u,y[u]));return R};
_.ZAU=function(R,y,u){u=u===void 0?!1:u;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 y=_.JT("polymer_report_client_url_requested_rate"),!u&&Math.random()<y&&_.kT(new _.OL("urlForEndpoint used on client endpoint",R)),null;var v=_.JT("polymer_report_missing_web_navigation_endpoint_rate");if(R.liveChatEndpoint||R.liveChatReplayEndpoint)v=0;if(!R.commandMetadata&&!R.clickTrackingParams&&Math.random()<v){var Q={},M;for(M in R)Q[M]="1";_.kT(new _.OL("Missing navigation data",
Q))}Q="";if(R.commandMetadata&&R.commandMetadata.webCommandMetadata&&R.commandMetadata.webCommandMetadata.url)Q=R.commandMetadata.webCommandMetadata.url;else if(R.searchEndpoint)Math.random()<v&&_.kT(new _.OL("Should not manually handle search",R)),Q="/results?search_query="+encodeURIComponent(R.searchEndpoint.query).replace(/%20/g,"+"),R.searchEndpoint.params&&(Q+="&sp="+R.searchEndpoint.params);else if(R.watchEndpoint)Math.random()<v&&_.kT(new _.OL("Should not manually handle watch",R)),Q="/watch?v="+
R.watchEndpoint.videoId,R.watchEndpoint.playlistId&&(Q+="&list="+R.watchEndpoint.playlistId),R.watchEndpoint.index&&(Q+="&index="+R.watchEndpoint.index),R.watchEndpoint.startTimeSeconds&&(Q+="&t="+R.watchEndpoint.startTimeSeconds);else if(R.browseEndpoint)v=R.browseEndpoint.browseId,(M=R.browseEndpoint.canonicalBaseUrl)?Q=M:v&&(Q=v.substr(0,2),Q=Q==="FE"?v==="FEwhat_to_watch"?"/":v==="FEmy_videos"?"/my_videos":"/feed/"+v.substr(2):Q==="VL"?"/playlist?list="+v.substr(2):"/channel/"+v),Q&&R.browseEndpoint.query&&
(Q=Ac(Q+"/search",{query:R.browseEndpoint.query})),Q&&R.browseEndpoint.params&&(Q=Ac(Q,{params:R.browseEndpoint.params}));else{if(R.urlEndpoint)return R.urlEndpoint.url;R.signInEndpoint?(Q="https://accounts.google.com/ServiceLogin",v={},_.Ps.extend(v,y||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),y=v):R.uploadEndpoint?Q="//www.youtube.com/upload":R.liveChatEndpoint?(Q=R.liveChatEndpoint,v=_.Ps.clone(Q),_.Sv(Q.continuation)&&(M=Object.keys(Q.continuation)[0],
v.continuation=Q.continuation[M].continuation),Q=Ac("/youtubei/v1/live_chat/get_live_chat",v)):R.liveChatReplayEndpoint?(Q=_.Ps.clone(R.liveChatReplayEndpoint),Q.currentPlayerState&&(_.Ps.extend(Q,Q.currentPlayerState),delete Q.currentPlayerState),Q=Ac("/youtubei/v1/live_chat/get_live_chat_replay",Q)):R.liveChatItemContextMenuEndpoint?Q=Ac("/youtubei/v1/live_chat/get_item_context_menu",R.liveChatItemContextMenuEndpoint):R.liveChatPurchaseMessageEndpoint?Q=Ac("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
R.liveChatPurchaseMessageEndpoint):R.openSuperStickerBuyFlowCommand?Q=Ac("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",R.openSuperStickerBuyFlowCommand):R.videoEditEndpoint?Q=Ac("/edit",{video_id:R.videoEditEndpoint.videoId}):R.liveDashboardEndpoint?Q=R.liveDashboardEndpoint.videoId?Ac("/live_dashboard",{v:R.liveDashboardEndpoint.videoId}):"/live_dashboard":R.signalNavigationEndpoint&&R.signalNavigationEndpoint.signal&&R.signalNavigationEndpoint.signal==="WEBCAM"?Q="/webcam":R.getPdgBuyFlowCommand&&
(Q=Ac(R.getPdgBuyFlowCommand.buyflowApiPath,{params:R.getPdgBuyFlowCommand.params}))}return Q||u?Ac(Q,y||{}):(_.kT(new _.OL("Error: Can't construct url for endpoint","keys:"+Object.keys(R).sort().join(","),R)),null)};
HA8=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};
_.Gwv=function(R,y){var u=y+R,v=n9P.get(u);if(v)return v;R=y+"-"+R.replace(/([A-Z])/g,"-$1").toLowerCase();n9P.set(u,R);return R};
rF8=function(R){var y=_.dB(R,"action")||_.dB(R,"command")||_.dB(R,"endpoint");if(!y)return null;y=_.Gwv(y,"yt");_.e(R,_.Dz)&&(y+="-"+_.e(R,_.Dz).signal.toLowerCase().replace(/_/g,"-"));return y};
UpW=function(R){try{var y=Object.keys(R)}catch(Q){return[]}for(var u=0;u<y.length;u++){var v=y[u];if(PDU.test(v)||Wk8.test(v))return dpG(R[v])}return[]};
dpG=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||[]};
E9T=function(R,y){y=y===void 0?!1:y;var u=_.ua().resolve(_.yN(pi));u||(u=new kwP,_.ua().addProvider({provide:pi,useValue:u}));return u&&R&&!_.Ps.isEmpty(R)?u.getUrl(R,y):""};
$pO=function(R,y,u){u=u===void 0?"":u;if(y){R.data=y;var v=E9T(y);v?(Aq(R,v),HA8(y)||!CG(v)?R.rel="nofollow":R.removeAttribute("rel"),_.e(y,_.tc)&&_.e(y,_.tc).target==="TARGET_NEW_WINDOW"?R.target="_blank":u?R.target=u:R.removeAttribute("target")):(R.removeAttribute("href"),R.removeAttribute("rel"),R.removeAttribute("target"))}};
_.Li=function(R,y){var u=zl;if(Op())qCE(R,function(){var M=_.qy.apply(0,arguments);dh(u,function(){y.apply(null,_.P$(M))})});
else{var v=_.c3.getInstance(),Q=Wu(y);z6P(function(){Q.value=y});
_.rB(function(){var M={},K=_.aN(v,(M[R]=function(){var h=_.qy.apply(0,arguments);dh(u,function(){Q.value.apply(Q,_.P$(h))})},M));
return function(){var h={};_.Sx(v,(h[R]="",h),K)}})}};
_.sh=function(R,y){return Xm8(R,!1,y)};
_.zp=function(R,y){return Xm8(R,!0,y)};
Xm8=function(R,y,u){return Op()?mpG(R,y,u):AFW(R,y,u)};
AFW=function(R,y,u){return Pu(function(){return mpG(R,y,u)})};
mpG=function(R,y,u){var v=SfG(function(Q){v.value=Q;var M=function(){var K=jf(null);try{return u==null?void 0:u(Q)}finally{jf(K)}}();
return function(){M==null||M()}});
v.__expectedTagName=R;v.__optional=y;v.isIdom=!Op();return v};
DpT=function(R){var y=zl,u=ef;return{getFn:function(){return function(v){y.isDisposed||HT(function(){return Ky(function(){return R(v)})},u)!==!0&&v.stopPropagation()}}}};
gI=function(R){if(typeof R.children==="function")return R.children(),null;R=_.V(R.children);for(var y=R.next();!y.done;y=R.next())y=y.value,y();return null};
pmU=function(R){var y;return((y=R.prototype)==null?void 0:y.render)===void 0};
toW=function(R){return R.items.map(R.children)};
aOc=function(R,y,u){u=u===void 0?!1:u;HT(function(){return cFW(R,y,u)})};
cFW=function(R,y,u){var v=null;xa++;u=(u===void 0?0:u)?SCv:YCP;try{v=u(R,function(){Ci(y)}),fy(!1)}catch(Q){throw fy(!0),Q;
}return v===null?R:v};
Ci=function(R){if(R!==void 0&&R!==null)if(R instanceof wB)for(var y=Xl;DK()!=null&&Ppc in DK()&&y.contains(DK());)cT();else if(Array.isArray(R))for(y=_.V(R),R=y.next();!R.done;R=y.next())Ci(R.value);else if(R instanceof ey||"function"==typeof _.uB&&R instanceof _.uB||"function"==typeof _.RM&&R instanceof _.RM)Cy(R.toString());else if(_.jS(R)){if(DK()!==R){var u,v;y=(v=(u=ef)==null?void 0:u.name)!=null?v:"unknown";throw Error("bc`"+R.tagName+"`"+y);}cT()}else if(R!=null&&R.contentKind===VV||R instanceof
D2||YlP(R))for(y=sxE(R),y=Array.from(y.childNodes),y=_.V(y),R=y.next();!R.done;R=y.next())Xl.appendChild(R.value),cT();else if(GB(R)&&(R=R.toString()),u=typeof R,u==="boolean"||u==="number"||u==="string")Cy(R);else if(typeof R==="function"){y=Xl;var Q=DK();Q&&(Q._isSignalTextNode||Q._isSafeOrSanitizedHtmlNode)||BGT(y,Q,R);cT()}else if(R.type===toW)Ci(R.type(Object.assign({},R.props,{children:R.children[0]})));else{oM.beforeVisit(R);if(typeof R.type==="string"){a:{R.__open||ZNv(R.type,R.props.idomKey);
Q=Xl;for(y in R.props)if(R.props[y]!==LkL){var M=R.props[y];u=Ly;u.push(y);u.push(M)}y=u$.attributes;y=y===void 0?Rx:y;M=Xl;u=q8(M);dS8(M,u,y);x4G(Q,R.props,!0);if((R.props.skip||R.props.skipchildren)&&Xl.hasChildNodes())Sf();else{if(R.type==="style"&&QRT(R.children)===null){Sf();y=void 0;break a}Ci(R.children)}HNW();R.__open&&(R.__open=!1);AWU(Q,R.props);y=Q}return y}if(R.type===_.vu)Ci(R.children);else if(!s8E(R)){y=R;try{z8S(y)}catch(K){R=K,(M=u$.handleError)==null||M.call.apply(M,[u$].concat(_.P$(Up(R,
(Q=y.type)==null?void 0:Q.TAG_NAME))))}y.__open&&(HNW(),y.__open=!1)}}};
g9z=function(R,y){var u;pmU(R)?u=new Bu(y,R):u=new R(y);u.JSC$10186___type=R;u.__updateContext={nextState:u.state,isForced:!1};return u};
z8S=function(R){var y=R.type,u=y.TAG_NAME;if(y===gI)R.props.children=R.children,y(R.props);else{R.children.length>0&&(R.props.children=R.children);var v;(v=R.props).idomKey||(v.idomKey=y);if(u){var Q=ZNv(u,R.props.idomKey);R.__open=!0;var M=Q.__instance}M||(M=g9z(y,R.props),M.props=null,Q&&(Q.__instance=M,M.el=Q));var K;u=((K=M.__updateContext)!=null?K:{nextState:M.state,isForced:!1}).nextState;M.__updateContext=void 0;y.getDerivedStateFromProps&&(u=y.getDerivedStateFromProps(R.props,u));M.props=
R.props;M.state=u;K=function(){var h=M;oM.beforeRender(h);var b=h.render(h.props);oM.afterRender(h,b);b?(h.props.idomKey&&(b.props.idomKey=h.props.idomKey),h=b):h=void 0;if(b=h)if(b.__open=R.__open,h=Ci(b),R.__open=b.__open,!y.TAG_NAME)if(h)y.TAG_NAME=h.tagName.toLowerCase(),h.__instance=M,M.el=h;else{var N;if((N=M.hooks)==null?0:N.length){var T;(T=u$.handleError)==null||T.call.apply(T,[u$].concat(_.P$(Up(Error("kd")))))}}M.didPatch();oM.didPatch(M)};
(u=M.functionComponent)?ccW(u,K,M.props.debugInstance):K()}};
s8E=function(R){var y=R.type;if(!pmU(y)||y===gI||y.componentType===l$)return!1;R.props.children=R.children.length>1?R.children:R.children[0];var u,v=(u=R.props.idomKey)!=null?u:R.type,Q;if(DK()&&((Q=DK()[IM])==null?void 0:Q.key)===v){var M=DK(),K=M[IM];if(!K)throw Error("ac`"+M.tagName);var h;(h=K.updateSignalsFromIdomProps)==null||h.call(K,R.props);CDE(K);return!0}if(RtU.has(y.name))throw h=y.name,y=(K=(M=ef)==null?void 0:M.name)!=null?K:"unknown",Error("$b`"+h+"`"+y);OvG(R.type,R.props,R.children);
R.props.renderedFromIdom=!0;(h=ccW(R.type,function(){return FbT(R.type,R.props)},R.props.debugInstance))&&yGL(h);
return!0};
udW=function(R){for(var y=0;y<Fn(R).length;y++)cT()};
CDE=function(R){var y=vYG();if(y)udW(y);else for(var u=0;u<R.numNodes;u++)(y=vYG())?udW(y):cT()};
vYG=function(){var R;return(R=DK()[IM])==null?void 0:R.sourceDynamicRange};
yGL=function(R){R=tmT(R);R=Array.isArray(R)?R:[R];R=_.V(R);for(var y=R.next();!y.done;y=R.next())Xl.insertBefore(y.value,DK()),cT()};
Qyv=function(R){var y=NGP(),u=Pu(function(){return{value:typeof R==="function"?R():R}});
return[u.value,function(v){if(xB!==null){var Q;(Q=u$.handleError)==null||Q.call.apply(Q,[u$].concat(_.P$(Up(Error("ld")))))}u.value=typeof v==="function"?v(u.value):v;y.__updateContext={nextState:y.state,isForced:!0};v=_.gs(y.effectContext);Q=QV(!1);try{if(y.el){var M,K={},h=(K.props=y.props,K.type=y.JSC$10186___type,K.children=(M=y.props.children)!=null?M:[],K[ur]=!0,K);try{aOc(y.el,h,!0)}catch(T){var b,N;(N=u$.handleError)==null||N.call.apply(N,[u$].concat(_.P$(Up(T,(b=y.JSC$10186___type)==null?
void 0:b.TAG_NAME))))}}}finally{QV(Q),_.gs(v)}}]};
yn=function(R,y){var u=zl,v=function(Q){dh(u,function(){y(Q)})};
window.addEventListener(R,v,void 0);_.GF(function(){window.removeEventListener(R,v,void 0)})};
_.vA=function(R){var y=zl;return function(u){var v,Q=(v=R.observer)!=null?v:_.ua().resolve(uN);v=jyT(u);var M=[];R.showOption&&M.push(Q.observe(u,function(){dh(y,function(){R.visibilityCallback(!0,u)})},R.showOption));
R.hideOption&&M.push(Q.observe(u,function(){dh(y,function(){R.visibilityCallback(!1,u)})},R.hideOption));
R.prescanOption&&R.prescanCallback&&M.push(Q.observe(u,function(){dh(y,function(){R.prescanCallback()})},R.prescanOption));
var K;v.visibilityMonitorKeys=((K=v.visibilityMonitorKeys)!=null?K:[]).concat(M)}};
jyT=function(R){var y;return(y=R.polymerController)!=null?y:R};
_.Qn=function(R){R.componentType=l$};
iX4=function(R,y){var u=M8P;return _.F(_.vu,null,sX(u$.enableLazyTsx,function(){return _.F(JGO,{id:u,value:R,children:y})},function(){var v=V84(u,R);
yU(v);v=_.gs(v);try{return y()}finally{_.gs(v)}}))};
JGO=function(R){var y=R.children;R=V84(R.id,R.value);yU(R);R=_.gs(R);try{return _.F(_.vu,null,Ns(y()))}finally{_.gs(R)}};
V84=function(R,y){return Object.assign(Object.create(KhS),{id:R,contextValue:y})};
IT8=function(R){var y,u=zl;_.WT(function(){var v=_.gs(u),Q=QV(!y);try{if(y)aOc(y,R.children(),!0);else if(y=Ns(R.children()),!(y instanceof Element))throw Error("md");}finally{QV(Q),_.gs(v)}});
return y};
_.htz=function(R,y){var u;y=rh(function(){var v=QV(!0);try{u=Fn(R())}finally{QV(v)}},y===void 0?!1:y);
return[u,y]};
FhU=function(R){R=R.buf.charCodeAt(R.pos++);return bX8[R]};
jm=function(R){var y=0,u=0;do{var v=FhU(R);y|=(v&31)<<u;u+=5}while(v&32);return y<0?y+4294967296:y};
T$T=function(R,y,u){w2S(R,y);R[y][N$P].unshift(u)};
w2S=function(R,y){if(!R[y]||!R[y][N$P]){var u=R[y],v=u?[u]:[];R[y]=function(){for(var Q=_.V(v),M=Q.next();!M.done;M=Q.next())M.value.apply(this,arguments)};
R[y][N$P]=v}};
oYT=function(R){if(!R)return[];var y=[];R=_.V(R);for(var u=R.next();!u.done;u=R.next())u=u.value,Array.isArray(u)?y.push.apply(y,_.P$(oYT(u))):y.push(u);return y};
_.JW=function(R,y){if(R&&x5E.test(R)||R==="//")return R;if(B$O===void 0){B$O=!1;try{var u=new URL("b","http://a");u.pathname="c%20d";B$O=u.href==="http://a/c%20d"}catch(v){}}y||(y=document.baseURI||window.location.href);if(B$O)try{return(new URL(R,y)).href}catch(v){return R}MS||(MS=document.implementation.createHTMLDocument("temp"),MS.base=MS.createElement("base"),MS.head.appendChild(MS.base),MS.anchor=MS.createElement("a"),MS.body.appendChild(MS.anchor));MS.base.href=y;MS.anchor.href=R;return MS.anchor.href||
R};
etS=function(R,y){return R.replace(fT8,function(u,v,Q,M){return v+"'"+_.JW(Q.replace(/["']/g,""),y)+"'"+M})};
lTG=function(R){return R.substring(0,R.lastIndexOf("/")+1)};
HXS=function(){OXS=!1;for(var R=Vn.length,y=0;y<R;y++){var u=Vn[y];if(u)try{u()}catch(v){setTimeout(function(){throw v;})}}Vn.splice(0,R);
ZXU+=R};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(R){console.log("["+R.is+"]: registered")};
Gx8=function(R){nYL.push(R)};
iN=function(R){return rGS[R]||(rGS[R]=R.indexOf("-")<0?R:R.replace(PGO,function(y){return y[1].toUpperCase()}))};
KN=function(R){return rGS[R]||(rGS[R]=R.replace(WhW,"-$1").toLowerCase())};
d5P=function(R,y){var u=y.parentInfo&&d5P(R,y.parentInfo);if(u)for(R=u.firstChild,u=0;R;R=R.nextSibling){if(y.parentIndex===u++)return R}else return R};
U5W=function(R,y){R=R._methodHost||R;return function(u){if(R[y])R[y](u,u.detail);else console.warn("listener method `"+y+"` not defined")}};
Ix=function(R){return R.indexOf(".")>=0};
hW=function(R){var y=R.indexOf(".");return y===-1?R:R.slice(0,y)};
kxU=function(R,y){return R.indexOf(y+".")===0};
bN=function(R,y){return y.indexOf(R+".")===0};
Fm=function(R,y,u){return y+u.slice(R.length)};
EYc=function(R,y){return R===y||kxU(R,y)||bN(R,y)};
wn=function(R){if(Array.isArray(R)){for(var y=[],u=0;u<R.length;u++)for(var v=R[u].toString().split("."),Q=0;Q<v.length;Q++)y.push(v[Q]);return y.join(".")}return R};
$5E=function(R){return Array.isArray(R)?wn(R).split("."):R.toString().split(".")};
TS=function(R,y,u){y=$5E(y);for(var v=0;v<y.length;v++){if(!R)return;R=R[y[v]]}u&&(u.path=y.join("."));return R};
qzU=function(R,y,u){var v=$5E(y),Q=v[v.length-1];if(v.length>1){for(y=0;y<v.length-1;y++)if(R=R[v[y]],!R)return;R[Q]=u}else R[y]=u;return v.join(".")};
X2E=function(R,y,u){var v=R[y];if(!v)v=R[y]={};else if(!R.hasOwnProperty(y)&&(v=R[y]=Object.create(R[y]),u))for(var Q in v)for(R=v[Q],y=v[Q]=Array(R.length),u=0;u<R.length;u++)y[u]=R[u];return v};
xk=function(R,y,u,v,Q,M){if(y){var K=!1,h=ox++,b;for(b in u){var N=Q?hW(b):b;if(N=y[N])for(var T=0,x=N.length,B=void 0;T<x&&(B=N[T]);T++)B.info&&B.info.lastRun===h||Q&&!m5G(b,B.trigger)||(B.info&&(B.info.lastRun=h),B.fn(R,b,u,v,B.info,Q,M),K=!0)}return K}return!1};
m5G=function(R,y){if(y){var u=y.name;return u==R||!(!y.structured||!kxU(u,R))||!(!y.wildcard||!bN(u,R))}return!0};
AGU=function(R,y,u,v,Q){y=typeof Q.method==="string"?R[Q.method]:Q.method;u=Q.property;y?y.call(R,R.__data[u],v[u]):Q.dynamicFn||console.warn("observer method `"+Q.method+"` not defined")};
D5v=function(R,y,u,v){u={value:u,queueProperty:!0};v&&(u.path=v);(0,_.BA)(R).dispatchEvent(new CustomEvent(y,{detail:u}))};
p2G=function(R,y,u,v,Q,M){M=(v=(M?hW(y):y)!=y?y:null)?TS(R,v):R.__data[y];v&&M===void 0&&(M=u[y]);D5v(R,Q.eventName,M,v)};
t8U=function(R,y,u,v,Q){u=R.__data[y];fN&&(u=fN(u,Q.attrName,"attribute",R));R._propertyToAttribute(y,Q.attrName,u)};
aTS=function(R){var y=R.constructor.__orderedComputedDeps;if(!y){y=new Map;for(var u=R.__computeEffects,v=cGT(R),Q=v.counts,M=v.ready,K=v.total;v=M.shift();)y.set(v,y.size),(v=u[v])&&v.forEach(function(h){h=h.info.methodInfo;--K;--Q[h]===0&&M.push(h)});
K!==0&&console.warn("Computed graph for "+R.localName+" incomplete; circular?");R.constructor.__orderedComputedDeps=y}return y};
cGT=function(R){var y=R.__computeInfo,u={};R=R.__computeEffects;var v=[],Q=0,M;for(M in y){var K=y[M];Q+=u[M]=K.args.filter(function(b){return!b.literal}).length+(K.dynamicFn?1:0)}for(var h in R)y[h]||v.push(h);
return{counts:u,ready:v,total:Q}};
YzU=function(R,y,u,v,Q){y=SzT(R,y,u,v,Q);if(y===em)return!1;Q=Q.methodInfo;if(R.__dataHasAccessor&&R.__dataHasAccessor[Q])return R._setPendingProperty(Q,y,!0);R[Q]=y;return!1};
ztO=function(R,y,u,v,Q,M,K){u.bindings=u.bindings||[];v={kind:v,target:Q,parts:M,literal:K,isCompound:M.length!==1};u.bindings.push(v);v.target&&v.kind!="attribute"&&v.kind!="text"&&!v.isCompound&&v.parts[0].mode==="{"&&(u=v.parts[0],M=u.negate,v.listenerEvent=u.event||KN(Q)+"-changed",v.listenerNegate=M);Q=y.nodeInfoList.length;for(u=0;u<v.parts.length;u++){var h=v.parts[u];h.compoundIndex=u;M=R;K=y;var b=v,N=h,T=Q;if(!N.literal)if(b.kind==="attribute"&&b.target[0]==="-")console.warn("Cannot set attribute "+
b.target+' because "-" is not a valid attribute starting character');else for(h=N.dependencies,b={index:T,binding:b,part:N,evaluator:M},N=0;N<h.length;N++)T=h[N],typeof T=="string"&&(T=Lh8(T),T.wildcard=!0),M._addTemplatePropertyEffect(K,T.rootProperty,{fn:syE,info:b,trigger:T})}};
syE=function(R,y,u,v,Q,M,K){K=K[Q.index];var h=Q.binding,b=Q.part;M&&b.source&&y.length>b.source.length&&h.kind=="property"&&!h.isCompound&&K.__isPropertyEffectsClient&&K.__dataHasAccessor&&K.__dataHasAccessor[h.target]?(u=u[y],y=Fm(b.source,h.target,y),K._setPendingPropertyOrPath(y,u,!1,!0)&&R._enqueueClient(K)):(y=Q.evaluator._evaluateBinding(R,b,y,u,v,M),y!==em&&(h.isCompound&&(u=K.__dataCompoundStorage[h.target],u[b.compoundIndex]=y,y=u.join("")),h.kind==="attribute"||h.target!=="textContent"&&
(h.target!=="value"||K.localName!=="input"&&K.localName!=="textarea")||(y=y==void 0?"":y),b=y,fN&&(b=fN(b,h.target,h.kind,K)),h.kind=="attribute"?R._valueToNodeAttribute(K,b,h.target):(h=h.target,K.__isPropertyEffectsClient&&K.__dataHasAccessor&&K.__dataHasAccessor[h]?K.__readOnly&&K.__readOnly[h]||K._setPendingProperty(h,b)&&R._enqueueClient(K):R._setUnmanagedPropertyToNode(K,h,b))))};
gYW=function(R,y,u){if(u.listenerEvent){var v=u.parts[0];R.addEventListener(u.listenerEvent,function(Q){var M=u.target,K=v.source,h=v.negate,b=Q.detail,N=b&&b.path;N?(K=Fm(M,K,N),Q=b&&b.value):Q=Q.currentTarget[M];y.__readOnly&&y.__readOnly[K]||!y._setPendingPropertyOrPath(K,h?!Q:Q,!0,!!N)||b&&b.queueProperty||y._invalidateProperties()})}};
CGT=function(R,y,u,v,Q,M){M=y.static||M&&(typeof M!=="object"||M[y.methodName]);Q={methodName:y.methodName,args:y.args,methodInfo:Q,dynamicFn:M};for(var K=0,h=void 0;K<y.args.length&&(h=y.args[K]);K++)h.literal||R._addPropertyEffect(h.rootProperty,u,{fn:v,info:Q,trigger:h});M&&R._addPropertyEffect(y.methodName,u,{fn:v,info:Q});return Q};
SzT=function(R,y,u,v,Q){v=R._methodHost||R;var M=v[Q.methodName];if(M)return R=R._marshalArgs(Q.args,y,u),R===em?em:M.apply(v,R);Q.dynamicFn||console.warn("method `"+Q.methodName+"` not defined")};
Ro4=function(R){for(var y="",u=0;u<R.length;u++)y+=R[u].literal||"";return y};
vlE=function(R){if(R=R.match(/([^\s]+?)\(([\s\S]*)\)/)){var y={methodName:R[1],static:!0,args:yez};return R[2].trim()?u1E(R[2].replace(/\\,/g,"&comma;").split(","),y):y}return null};
u1E=function(R,y){y.args=R.map(function(u){u=Lh8(u);u.literal||(y.static=!1);return u},this);
return y};
Lh8=function(R){R=R.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var y={name:R,value:"",literal:!1},u=R[0];u==="-"&&(u=R[1]);u>="0"&&u<="9"&&(u="#");switch(u){case "'":case '"':y.value=R.slice(1,-1);y.literal=!0;break;case "#":y.value=Number(R),y.literal=!0}y.literal||(y.rootProperty=hW(R),y.structured=Ix(R),y.structured&&(y.wildcard=R.slice(-2)==".*",y.wildcard&&(y.name=R.slice(0,-2))));return y};
Q2z=function(R,y,u){R=TS(R,u);R===void 0&&(R=y[u]);return R};
j2W=function(R,y,u,v){v={indexSplices:v};lN&&!R._overrideLegacyUndefined&&(y.splices=v);R.notifyPath(u+".splices",v);R.notifyPath(u+".length",y.length);lN&&!R._overrideLegacyUndefined&&(v.indexSplices=[])};
Ol=function(R,y,u,v,Q,M){j2W(R,y,u,[{index:v,addedCount:Q,removed:M,object:y,type:"splice"}])};
MVU=function(R){R=etS((R.body?R.body:R).textContent,R.baseURI);var y=document.createElement("style");y.textContent=R;return y};
VVU=function(R){R=R.trim().split(/\s+/);for(var y=[],u=0;u<R.length;u++)y.push.apply(y,_.P$(Jec(R[u])));return y};
Jec=function(R){var y=Z7.import(R);if(!y)return console.warn("Could not find style data in module named",R),[];if(y._styles===void 0){R=[];R.push.apply(R,_.P$(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(y)));var u=y.querySelector("template");u&&R.push.apply(R,_.P$(iRW(u,y.assetpath)));y._styles=R}return y._styles};
iRW=function(R,y){if(!R._styles){for(var u=[],v=R.content.querySelectorAll("style"),Q=0;Q<v.length;Q++){var M=v[Q],K=M.getAttribute("include");K&&u.push.apply(u,_.P$(VVU(K).filter(function(h,b,N){return N.indexOf(h)===b})));
y&&(M.textContent=etS(M.textContent,y));u.push(M)}R._styles=u}return R._styles};
KrT=function(R){return(R=Z7.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 y=[];R=R.querySelectorAll("link[rel=import][type~=css]");for(var u=0;u<R.length;u++){var v=R[u];if(v.import){var Q=v.import;if((v=v.hasAttribute("shady-unscoped"))&&!Q._unscopedStyle){var M=MVU(Q);M.setAttribute("shady-unscoped","");Q._unscopedStyle=M}else Q._style||(Q._style=MVU(Q));y.push(v?Q._unscopedStyle:Q._style)}}return y};
hoT=function(R){R=R.trim().split(/\s+/);for(var y="",u=0;u<R.length;u++)y+=IAU(R[u]);return y};
IAU=function(R){var y=Z7.import(R);if(y&&y._cssText===void 0){var u=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(y),v=y.querySelector("template");v&&(u+=bRP(v,y.assetpath));y._cssText=u||null}y||console.warn("Could not find style data in module named",R);return y&&y._cssText||""};
bRP=function(R,y){var u="";R=iRW(R,y);for(y=0;y<R.length;y++){var v=R[y];v.parentNode&&v.parentNode.removeChild(v);u+=v.textContent}return u};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(R){var y="";R=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(R);for(var u=0;u<R.length;u++)y+=R[u].textContent;return y};
GS=function(R,y){return{index:R,removed:[],addedCount:y}};
wZL=function(R,y,u,v){var Q=0,M=0,K=0,h=0,b=Math.min(y-Q,v-M);if(Q==0&&M==0)a:{for(K=0;K<b;K++)if(R[K]!==u[K])break a;K=b}if(y==R.length&&v==u.length){h=R.length;for(var N=u.length,T=0;T<b-K&&FrT(R[--h],u[--N]);)T++;h=T}Q+=K;M+=K;y-=h;v-=h;if(y-Q==0&&v-M==0)return[];if(Q==y){for(y=GS(Q,0);M<v;)y.removed.push(u[M++]);return[y]}if(M==v)return[GS(Q,y-Q)];b=Q;K=M;v=v-K+1;h=y-b+1;y=Array(v);for(N=0;N<v;N++)y[N]=Array(h),y[N][0]=N;for(N=0;N<h;N++)y[0][N]=N;for(N=1;N<v;N++)for(T=1;T<h;T++)if(R[b+T-1]===
u[K+N-1])y[N][T]=y[N-1][T-1];else{var x=y[N-1][T]+1,B=y[N][T-1]+1;y[N][T]=x<B?x:B}b=y.length-1;K=y[0].length-1;v=y[b][K];for(R=[];b>0||K>0;)b==0?(R.push(2),K--):K==0?(R.push(3),b--):(h=y[b-1][K-1],N=y[b-1][K],T=y[b][K-1],x=N<T?N<h?N:h:T<h?T:h,x==h?(h==v?R.push(0):(R.push(1),v=h),b--,K--):x==N?(R.push(3),b--,v=N):(R.push(2),K--,v=T));R.reverse();y=void 0;b=[];for(K=0;K<R.length;K++)switch(R[K]){case 0:y&&(b.push(y),y=void 0);Q++;M++;break;case 1:y||(y=GS(Q,0));y.addedCount++;Q++;y.removed.push(u[M]);
M++;break;case 2:y||(y=GS(Q,0));y.addedCount++;Q++;break;case 3:y||(y=GS(Q,0)),y.removed.push(u[M]),M++}y&&b.push(y);return b};
NXU=function(R,y){return wZL(R,R.length,y,y.length)};
FrT=function(R,y){return R===y};
olP=function(R){if(R instanceof TXT)return R.value;throw Error("Dd`"+R);};
xr8=function(R,y){for(var u in y)u===null?R.style.removeProperty(u):R.style.setProperty(u,y[u])};
BX8=function(R,y){return(R=window.getComputedStyle(R).getPropertyValue(y))?R.trim():""};
ORv=function(R){requestAnimationFrame(function(){fA8?fA8(R):(eoc||(eoc=new Promise(function(y){lA8=y}),document.readyState==="complete"?lA8():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&lA8()})),eoc.then(function(){R&&R()}))})};
nlc=function(R){ZRO=R&&R.shimcssproperties?!1:HRE||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
drT=function(R){if(!(GK8.indexOf(R)>-1)&&R!=="touchend"&&re4&&P1O&&WrU)return{passive:!0}};
$rT=function(R){for(var y=UrP?["click"]:GK8,u=0,v;u<y.length;u++)v=y[u],R?(kKO.length=0,document.addEventListener(v,Elz,!0)):document.removeEventListener(v,Elz,!0)};
rn=function(R){var y=R.type;return GK8.indexOf(y)>-1?y==="mousemove"?(y=R.buttons===void 0?1:R.buttons,R instanceof window.MouseEvent&&!qJS&&(y=XZO[R.which]||0),!!(y&1)):(R.button===void 0?0:R.button)===0:!1};
mrG=function(R){if(R.type==="click"){if(R.detail===0)return!0;var y=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(R);if(!y.nodeType||y.nodeType!==Node.ELEMENT_NODE)return!0;y=y.getBoundingClientRect();var u=R.pageX;R=R.pageY;return!(u>=y.left&&u<=y.right&&R>=y.top&&R<=y.bottom)}return!1};
Ae8=function(R,y,u){R.movefn=y;R.upfn=u;document.addEventListener("mousemove",y);document.addEventListener("mouseup",u)};
PA=function(R){document.removeEventListener("mousemove",R.movefn);document.removeEventListener("mouseup",R.upfn);R.movefn=null;R.upfn=null};
DrW=function(R,y){for(var u=document.elementFromPoint(R,y),v=u;v&&v.shadowRoot&&!window.ShadyDOM;){var Q=v;v=v.shadowRoot.elementFromPoint(R,y);if(Q===v)break;v&&(u=v)}return u};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(R){var y=pZP(R);return y.length>0?y[0]:R.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(R){var y=R.type,u=R.currentTarget.__polymerGestures;if(u&&(u=u[y])){if(!R.__polymerGesturesHandled&&(R.__polymerGesturesHandled={},y.slice(0,5)==="touch")){var v=R.changedTouches[0];y==="touchstart"&&R.touches.length===1&&(tVT=v.identifier);if(tVT!==v.identifier)return;re4||(y==="touchstart"||y==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(R)}v=
R.__polymerGesturesHandled;if(!v.skip){for(var Q=0,M;Q<WA.length;Q++)M=WA[Q],u[M.name]&&!v[M.name]&&M.flow&&M.flow.start.indexOf(R.type)>-1&&M.reset&&M.reset();for(Q=0;Q<WA.length;Q++)M=WA[Q],u[M.name]&&!v[M.name]&&(v[M.name]=!0,M[y](R))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(R){var y=R.changedTouches[0],u=R.type;if(u==="touchstart")ceT=y.clientX,aAP=y.clientY,SJW=!1;else if(u==="touchmove"&&!SJW){SJW=!0;u="auto";for(var v=pZP(R),Q=0,M;Q<v.length;Q++)if(M=v[Q],M.__polymerGesturesTouchAction){u=M.__polymerGesturesTouchAction;break}v=!1;Q=Math.abs(ceT-y.clientX);y=Math.abs(aAP-y.clientY);R.cancelable&&(u==="none"?v=!0:u==="pan-x"?v=y>Q:u==="pan-y"&&(v=Q>y));v?R.preventDefault():
dn("track")}};
kk=function(R,y,u){return Ul[y]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(R,y,u),!0):!1};
El=function(R,y,u){return Ul[y]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(R,y,u),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(R,y,u){var v=Ul[y],Q=v.deps,M=v.name,K=R.__polymerGestures;K||(R.__polymerGestures=K={});for(var h=0,b,N;h<Q.length;h++)b=Q[h],UrP&&GK8.indexOf(b)>-1&&b!=="click"||((N=K[b])||(K[b]=N={_count:0}),N._count===0&&R.addEventListener(b,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,drT(b)),N[M]=(N[M]||0)+1,N._count=(N._count||0)+1);R.addEventListener(y,u);v.touchAction&&_.$k(R,v.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(R,y,u){var v=Ul[y],Q=v.deps;v=v.name;var M=R.__polymerGestures;if(M)for(var K=0,h,b;K<Q.length;K++)h=Q[K],(b=M[h])&&b[v]&&(b[v]=(b[v]||1)-1,b._count=(b._count||1)-1,b._count===0&&R.removeEventListener(h,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,drT(h)));R.removeEventListener(y,u)};
YJT=function(R){WA.push(R);for(var y=0;y<R.emits.length;y++)Ul[R.emits[y]]=R};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(R){for(var y=0,u;y<WA.length;y++){u=WA[y];for(var v=0,Q;v<u.emits.length;v++)if(Q=u.emits[v],Q===R)return u}return null};
_.$k=function(R,y){re4&&R instanceof HTMLElement&&qS.run(function(){R.style.touchAction=y});
R.__polymerGesturesTouchAction=y};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(R,y,u){y=new Event(y,{bubbles:!0,cancelable:!0,composed:!0});y.detail=u;(0,_.BA)(R).dispatchEvent(y);y.defaultPrevented&&(R=u.preventer||u.sourceEvent)&&R.preventDefault&&R.preventDefault()};
dn=function(R){R=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(R);R.info&&(R.info.prevent=!0)};
Xm=function(R,y,u,v){y&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y,R,{x:u.clientX,y:u.clientY,sourceEvent:u,preventer:v,prevent:function(Q){return dn(Q)}})};
Lrc=function(R,y,u){if(R.prevent)return!1;if(R.started)return!0;u=Math.abs(R.y-u);return Math.abs(R.x-y)>=5||u>=5};
s2P=function(R,y,u){if(y){var v=R.moves[R.moves.length-2],Q=R.moves[R.moves.length-1],M=Q.x-R.x,K=Q.y-R.y,h=0;if(v){var b=Q.x-v.x;h=Q.y-v.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y,"track",{state:R.state,x:u.clientX,y:u.clientY,dx:M,dy:K,ddx:b,ddy:h,sourceEvent:u,hover:function(){return DrW(u.clientX,u.clientY)}})}};
glU=function(R,y,u){var v=Math.abs(y.clientX-R.x),Q=Math.abs(y.clientY-R.y),M=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(u||y);!M||zov[M.localName]&&M.hasAttribute("disabled")||!(isNaN(v)||isNaN(Q)||v<=25&&Q<=25||mrG(y))||R.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M,"tap",{x:y.clientX,y:y.clientY,sourceEvent:y,preventer:u})};
C1W=function(R,y,u,v,Q){var M;Q&&(M=typeof u==="object"&&u!==null)&&(v=R.__dataTemp[y]);v=v!==u&&(v===v||u===u);M&&v&&(R.__dataTemp[y]=u);return v};
yRc=function(){if(mQ&&!AW){if(!RDG){RDG=!0;var R=document.createElement("style");R.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(R)}return!0}return!1};
vUc=function(){return uDO};
QEP=function(R,y){uDO=R;Object.setPrototypeOf(R,y.prototype);new y;uDO=null};
jE8=function(R,y){for(var u=0;u<y.length;u++){var v=y[u];if(!!R!=!!v.__hideTemplateChildren__)if(v.nodeType===Node.TEXT_NODE)R?(v.__polymerTextContent__=v.textContent,v.textContent=""):v.textContent=v.__polymerTextContent__;else if(v.localName==="slot")if(R)v.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.BA)((0,_.BA)(v).parentNode).replaceChild(v.__polymerReplaced__,v);else{var Q=v.__polymerReplaced__;Q&&(0,_.BA)((0,_.BA)(Q).parentNode).replaceChild(v,Q)}else v.style&&(R?(v.__polymerDisplay__=
v.style.display,v.style.display="none"):v.style.display=v.__polymerDisplay__);v.__hideTemplateChildren__=R;v._showHideChildren&&v._showHideChildren(R)}};
MdG=function(R){return(R=R.__dataHost)&&R._methodHost||R};
iU8=function(R,y,u){var v=u.mutableData?JRc:D7;pN.mixin&&(v=pN.mixin(v));var Q=function(){return v.apply(this,arguments)||this};
_.O(Q,v);Q.prototype.__templatizeOptions=u;Q.prototype._bindTemplate(R);Vd8(Q,R,y,u);return Q};
F9v=function(R,y,u,v){var Q=u.forwardHostProp;if(Q&&y.hasHostProps){var M=R.localName=="template",K=y.templatizeTemplateClass;if(!K){if(M){var h=u.mutableData?K9E:IFP;K=function(){return h.apply(this,arguments)||this};
_.O(K,h);K=y.templatizeTemplateClass=K}else{var b=R.constructor;K=function(){return b.apply(this,arguments)||this};
_.O(K,b);K=y.templatizeTemplateClass=K}var N=y.hostProps,T;for(T in N)K.prototype._addPropertyEffect("_host_"+T,K.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:hDc(Q)}),K.prototype._createNotifyingProperty("_host_"+T);tW&&v&&bUv(y,u,v)}R.__dataProto&&Object.assign(R.__data,R.__dataProto);if(M)QEP(R,K),R.__dataTemp={},R.__dataPending=null,R.__dataOld=null,R._enableProperties();else{Object.setPrototypeOf(R,K.prototype);y=y.hostProps;for(var x in y)x="_host_"+x,x in R&&(y=R[x],delete R[x],R.__data[x]=
y)}}};
hDc=function(R){return function(y,u,v){R.call(y.__templatizeOwner,u.substring(6),v[u])}};
Vd8=function(R,y,u,v){var Q=u.hostProps||{},M;for(M in v.instanceProps){delete Q[M];var K=v.notifyInstanceProp;K&&R.prototype._addPropertyEffect(M,R.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:wQE(K)})}if(v.forwardHostProp&&y.__dataHost)for(var h in Q)u.hasHostProps||(u.hasHostProps=!0),R.prototype._addPropertyEffect(h,R.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:NVc()})};
wQE=function(R){return function(y,u,v){R.call(y.__templatizeOwner,y,u,v[u])}};
NVc=function(){return function(R,y,u){R.__dataHost._setPendingPropertyOrPath("_host_"+y,u[y],!0,!0)}};
pN=function(R,y,u){if(cA&&!MdG(R))throw Error("Jd");u=u||{};if(R.__templatizeOwner)throw Error("Kd");R.__templatizeOwner=y;var v=(y?y.constructor:D7)._parseTemplate(R),Q=v.templatizeInstanceClass;Q||(Q=iU8(R,v,u),v.templatizeInstanceClass=Q);var M=MdG(R);F9v(R,v,u,M);u=function(){return Q.apply(this,arguments)||this};
_.O(u,Q);u.prototype._methodHost=M;u.prototype.__dataHost=R;u.prototype.__templatizeOwner=y;u.prototype.__hostProps=v.hostProps;return u};
bUv=function(R,y,u){u=u.constructor._properties;R=R.propertyEffects;y=y.instanceProps;for(var v in R)if(!(u[v]||y&&y[v]))for(var Q=R[v],M=0;M<Q.length;M++){var K=Q[M].info.part;if(!K.signature||!K.signature.static){console.warn("Property '"+v+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
TVU=function(R,y){for(var u;y;)if(u=y.__dataHost?y:y.__templatizeInstance)if(u.__dataHost!=R)y=u.__dataHost;else return u;else y=(0,_.BA)(y).parentNode;return null};
ax=function(R){return R.localName==="slot"};
oUG=function(){for(var R=Sm.prototype,y="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),u={},v=0;v<y.length;u={method$jscomp$33:void 0},v++)u.method$jscomp$33=y[v],R[u.method$jscomp$33]=function(Q){return function(){return this.node[Q.method$jscomp$33].apply(this.node,arguments)}}(u)};
xOz=function(R,y){for(var u={},v=0;v<y.length;u={name$jscomp$421:void 0},v++)u.name$jscomp$421=y[v],Object.defineProperty(R,u.name$jscomp$421,{get:function(Q){return function(){return this.node[Q.name$jscomp$421]}}(u),
configurable:!0})};
BVv=function(){for(var R=Sm.prototype,y=["textContent","innerHTML","className"],u={},v=0;v<y.length;u={name$jscomp$422:void 0},v++)u.name$jscomp$422=y[v],Object.defineProperty(R,u.name$jscomp$422,{get:function(Q){return function(){return this.node[Q.name$jscomp$422]}}(u),
set:function(Q){return function(M){this.node[Q.name$jscomp$422]=M}}(u),
configurable:!0})};
fFU=function(){Yk=document.documentElement.getAttribute("dir");Yk=document.documentElement.getAttribute("dir");for(var R=0;R<LN.length;R++){var y=LN[R];y.__autoDirOptOut||y.setAttribute("dir",Yk)}};
ZUE=function(){sl=!0;requestAnimationFrame(function(){sl=!1;eDT(lFG);setTimeout(function(){for(var R=0,y=zS.length;R<y;R++)OUU(zS.shift())})})};
eDT=function(R){for(;R.length;)OUU(R.shift())};
OUU=function(R){var y=R[0],u=R[1];R=R[2];try{u.apply(y,R)}catch(v){setTimeout(function(){throw v;})}};
_.HUz=function(R,y,u){sl||ZUE();lFG.push([R,y,u])};
_.gn=function(R,y,u){sl||ZUE();zS.push([R,y,u])};
rRz=function(R,y){y=y===void 0?!1:y;if(!nUP||!G$G||!nUP.handlesDynamicScoping)return null;var u=G$G.ScopingShim;if(!u)return null;var v=u.scopeForNode(R),Q=(0,_.BA)(R).getRootNode(),M=function(K){if((0,_.BA)(K).getRootNode()===Q){var h=Array.from(nUP.nativeMethods.querySelectorAll.call(K,"*"));h.push(K);for(K=0;K<h.length;K++){var b=h[K];if((0,_.BA)(b).getRootNode()===Q){var N=u.currentScopeForNode(b);N!==v&&(N!==""&&u.unscopeNode(b,N),u.scopeNode(b,v))}}}};
M(R);return y?(y=new MutationObserver(function(K){for(var h=0;h<K.length;h++)for(var b=K[h],N=0;N<b.addedNodes.length;N++){var T=b.addedNodes[N];T.nodeType===Node.ELEMENT_NODE&&M(T)}}),y.observe(R,{childList:!0,
subtree:!0}),y):null};
PoU=function(){document.body.removeAttribute("unresolved")};
EU4=function(R){var y=R=R.replace(W9W,"").replace(dOG,""),u=new UOz;u.start=0;u.end=y.length;for(var v=u,Q=0,M=y.length;Q<M;Q++)if(y[Q]==="{"){v.rules||(v.rules=[]);var K=v,h=K.rules[K.rules.length-1]||null;v=new UOz;v.start=Q+1;v.parent=K;v.previous=h;K.rules.push(v)}else y[Q]==="}"&&(v.end=Q+1,v=v.parent||u);return k$T(u,R)};
k$T=function(R,y){var u=y.substring(R.start,R.end-1);R.parsedCssText=R.cssText=u.trim();R.parent&&(u=y.substring(R.previous?R.previous.end:R.parent.start,R.start-1),u=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(u),u=u.replace($OW," "),u=u.substring(u.lastIndexOf(";")+1),u=R.parsedSelector=R.selector=u.trim(),R.atRule=u.indexOf("@")===0,R.atRule?u.indexOf("@media")===0?R.type=4:u.match(qkE)&&(R.type=7,R.keyframesName=R.selector.split($OW).pop()):u.indexOf("--")===
0?R.type=1E3:R.type=1);if(u=R.rules)for(var v=0,Q=u.length,M=void 0;v<Q&&(M=u[v]);v++)k$T(M,y);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 y=arguments[1],u=6-y.length;u--;)y="0"+y;return"\\"+y})};
XQO=function(R,y,u){u=u===void 0?"":u;var v="";if(R.cssText||R.rules){var Q=R.rules;if(Q&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(Q))for(var M=0,K=Q.length,h=void 0;M<K&&(h=Q[M]);M++)v=XQO(h,y,v);else y?y=R.cssText:(y=R.cssText,y=y.replace(mO8,"").replace(ART,""),y=y.replace(DOU,"").replace(pQG,"")),(v=y.trim())&&(v="  "+v+"\n")}v&&(R.selector&&(u+=R.selector+" {\n"),u+=v,R.selector&&(u+="}\n\n"));return u};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(R){R=R[0];return!!R&&!!R.selector&&R.selector.indexOf("--")===0};
cRT=function(R){if(R=tdG[R])R._applyShimCurrentVersion=R._applyShimCurrentVersion||0,R._applyShimValidatingVersion=R._applyShimValidatingVersion||0,R._applyShimNextVersion=(R._applyShimNextVersion||0)+1};
aFT=function(R){return R._applyShimCurrentVersion===R._applyShimNextVersion};
Yk4=function(R){R._applyShimValidatingVersion=R._applyShimNextVersion;R._validating||(R._validating=!0,Sk8.then(function(){R._applyShimCurrentVersion=R._applyShimNextVersion;R._validating=!1}))};
sEW=function(R){if(!R)return"";typeof R==="string"&&(R=EU4(R));return XQO(R,L9O)};
zDW=function(R){!R.__cssRules&&R.textContent&&(R.__cssRules=EU4(R.textContent));return R.__cssRules||null};
Coz=function(R,y,u,v){if(R){var Q=!1,M=R.type;if(v&&M===4){var K=R.selector.match(gUE);K&&(window.matchMedia(K[1]).matches||(Q=!0))}M===1?y(R):u&&M===7?u(R):M===1E3&&(Q=!0);if((R=R.rules)&&!Q)for(Q=0,M=R.length,K=void 0;Q<M&&(K=R[Q]);Q++)Coz(K,y,u,v)}};
RhT=function(R,y){var u=R.indexOf("var(");if(u===-1)return y(R,"","","");a:{var v=0;var Q=u+3;for(var M=R.length;Q<M;Q++)if(R[Q]==="(")v++;else if(R[Q]===")"&&--v===0)break a;Q=-1}v=R.substring(u+4,Q);u=R.substring(0,u);R=RhT(R.substring(Q+1),y);M=v.indexOf(",");if(M===-1)return y(u,v.trim(),"",R);Q=v.substring(0,M).trim();v=v.substring(M+1).trim();return y(u,Q,v,R)};
ykE=function(R){if(CN!==void 0)return CN;if(R.__cssBuild===void 0){var y=R.getAttribute("css-build");if(y)R.__cssBuild=y;else{a:{y=R.localName==="template"?R.content.firstChild:R.firstChild;if(y instanceof Comment&&(y=y.textContent.trim().split(":"),y[0]==="css-build")){y=y[1];break a}y=""}if(y!==""){var u=R.localName==="template"?R.content.firstChild:R.firstChild;u.parentNode.removeChild(u)}R.__cssBuild=y}}return R.__cssBuild||""};
v$U=function(R,y,u,v){for(var Q=y._noAccessors,M=Object.getOwnPropertyNames(y),K=0;K<M.length;K++){var h=M[K];if(!(h in v))if(Q)R[h]=y[h];else{var b=Object.getOwnPropertyDescriptor(y,h);b&&(b.configurable=!0,Object.defineProperty(R,h,b))}}for(var N in uiG)y[N]&&(u[N]=u[N]||[],u[N].push(y[N]))};
Qfc=function(R,y,u){y=y||[];for(var v=R.length-1;v>=0;v--){var Q=R[v];Q?Array.isArray(Q)?Qfc(Q,y):y.indexOf(Q)<0&&(!u||u.indexOf(Q)<0)&&y.unshift(Q):console.warn("behavior is null, check for missing or 404 import")}return y};
jfP=function(R,y){for(var u in y){var v=R[u],Q=y[u];R[u]=!("value"in Q)&&v&&"value"in v?Object.assign({value:v.value},Q):Q}};
Vz4=function(R,y,u){var v={},Q=function(){return y.apply(this,arguments)||this};
_.O(Q,y);Q._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(K)for(var b=0,N;b<K.length;b++)N=K[b],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 y._finalizeClass.call(this)};
Q.prototype.created=function(){y.prototype.created.call(this);var b=v.created;if(b)for(var N=0;N<b.length;N++)b[N].call(this)};
Q.prototype._registered=function(){var b=Q.prototype;if(!b.hasOwnProperty("__hasRegisterFinished")){b.__hasRegisterFinished=!0;y.prototype._registered.call(this);mQ&&h(b);b=Object.getPrototypeOf(this);var N=v.beforeRegister;if(N)for(var T=0;T<N.length;T++)N[T].call(b);if(N=v.registered)for(T=0;T<N.length;T++)N[T].call(b)}};
Q.prototype._applyListeners=function(){y.prototype._applyListeners.call(this);var b=v.listeners;if(b)for(var N=0;N<b.length;N++){var T=b[N];if(T)for(var x in T)this._addMethodEventListenerToNode(this,x,T[x])}};
Q.prototype._ensureAttributes=function(){var b=v.hostAttributes;if(b)for(var N=b.length-1;N>=0;N--){var T=b[N],x;for(x in T)this._ensureAttribute(x,T[x])}y.prototype._ensureAttributes.call(this)};
Q.prototype.ready=function(){y.prototype.ready.call(this);var b=v.ready;if(b)for(var N=0;N<b.length;N++)b[N].call(this)};
Q.prototype.attached=function(){y.prototype.attached.call(this);var b=v.attached;if(b)for(var N=0;N<b.length;N++)b[N].call(this)};
Q.prototype.detached=function(){y.prototype.detached.call(this);var b=v.detached;if(b)for(var N=0;N<b.length;N++)b[N].call(this)};
Q.prototype.attributeChanged=function(b,N,T){y.prototype.attributeChanged.call(this);var x=v.attributeChanged;if(x)for(var B=0;B<x.length;B++)x[B].call(this,b,N,T)};
_.RR.Object.defineProperties(Q,{properties:{configurable:!0,enumerable:!0,get:function(){var b={};if(K)for(var N=0;N<K.length;N++)jfP(b,K[N].properties);jfP(b,R.properties);return b}},
observers:{configurable:!0,enumerable:!0,get:function(){var b=[];if(K)for(var N=0,T;N<K.length;N++)T=K[N],T.observers&&(b=b.concat(T.observers));R.observers&&(b=b.concat(R.observers));return b}}});
if(u){Array.isArray(u)||(u=[u]);var M=y.prototype.behaviors;var K=Qfc(u,null,M);Q.prototype.behaviors=M?M.concat(u):K}var h=function(b){if(K)for(var N=K,T=0;T<N.length;T++)v$U(b,N[T],v,Mzz);v$U(b,R,v,JkL)};
mQ||h(Q.prototype);Q.generatedFrom=R;return Q};
hhT=function(R){var y=typeof R!=="string"?R:{is:R,notifyObserversOnUndefined:!0};y.fastInit===void 0&&(y.fastInit=!0);return function(u){if(!y.disableInheritanceCheck&&Object.getPrototypeOf(u.prototype).constructor!==_.y9)throw Error("Od");var v=u.prototype;v.is=y.is;T$T(v,"created",function(){this.hostElement=this;this.polymerController=this});
ipE(v,u,y.fastInit);y.notifyObserversOnUndefined&&(v._overrideLegacyUndefined=!0);if(Kn8)for(var Q=_.V(Object.getOwnPropertyNames(v)),M=Q.next();!M.done;M=Q.next()){M=M.value;var K=Object.getOwnPropertyDescriptor(v,M);K.enumerable===!1&&(K.enumerable=!0,Object.defineProperty(v,M,K))}if("template"in u)var h=function(){return u.template};
else y.template!==void 0&&(h=y.template);if(h!==void 0){var b;Object.defineProperty(v,"_template",{get:function(){b===void 0&&(b=h());return b},
set:function(N){b=N},
configurable:!0,enumerable:!0})}Polymer(v);u[IMS]=v}};
bpT=function(R){R=R===void 0?{}:R;R.fastInit===void 0&&(R.fastInit=!0);return function(y){if(!R.disableInheritanceCheck&&Object.getPrototypeOf(y.prototype).constructor!==up)throw Error("Pd");ipE(y.prototype,y,R.fastInit)}};
ipE=function(R,y,u){u=u===void 0?!1:u;FnW(y);u?T$T(R,"created",function(){this.disableEnforceFastDefaultValuesCheck||w7E(y,this)}):T$T(R,"ready",function(){for(var v={},Q=_.V(oYT(this.behaviors)),M=Q.next();!M.done;M=Q.next())M=M.value,M.properties&&Object.assign(v,NxO(this,M.properties));
Object.assign(v,NxO(this,this.properties));w7E(y,this);Q=_.V(Object.keys(v));for(M=Q.next();!M.done;M=Q.next())M=M.value,this[M]=v[M]})};
w7E=function(R,y){if(Kn8){R=new R;for(var u=_.V(Object.getOwnPropertyNames(R)),v=u.next();!v.done;v=u.next())v=v.value,y[v]=R[v];for(u=y;u&&u!==Object.prototype;u=Object.getPrototypeOf(u)){v=_.V(Object.getOwnPropertyNames(u));for(var Q=v.next();!Q.done;Q=v.next())Q=Q.value,R.hasOwnProperty(Q)||Object.defineProperty(R,Q,Tx8(y,Q))}}else R.apply(y)};
Tx8=function(R,y){return{get:function(){var u=R[y];return u instanceof Function?u.bind(R):u},
set:function(u){R[y]=u}}};
NxO=function(R,y){if(!y)return{};for(var u={},v=_.V(Object.keys(y)),Q=v.next();!Q.done;Q=v.next())if(Q=Q.value,!y[Q].readOnly){var M=R[Q];M!==void 0&&(u[Q]=M)}return u};
FnW=function(R){var y=new R;R=R.prototype.properties||{};for(var u=_.V(Object.keys(R)),v=u.next();!v.done;v=u.next())if(v=v.value,y.hasOwnProperty(v)){var Q=R[v];typeof Q==="function"&&(R[v]=Q={type:Q});y[v]!=null&&Q.type===Object&&(Q.type=o$v(y[v].constructor))}};
o$v=function(R){for(var y=_.V(xWU),u=y.next();!u.done;u=y.next())if(u=u.value,R===u)return u;return Object};
Bxv=function(R){return function(y,u){y.behaviors=y.behaviors||[];y.behaviors.push(R||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",y,u).prototype:void 0));Object.defineProperty(y,u,{get:function(){return this},
enumerable:!0,configurable:!0})}};
fMc=function(R){R=R===void 0?{}:R;return function(y,u){y.properties=y.properties||{};R.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?R.type=o$v(Reflect.getMetadata("design:type",y,u)):R.type=String);var v=R,Q=y.properties[u];y.properties[u]=Q?Object.assign({},Q,v):v}};
ehU=function(R){return function(y,u){y.listeners=y.listeners||{};y.listeners[R]=u}};
lMv=function(){var R=_.qy.apply(0,arguments);if(R.length===0)throw Error("Qd");return function(y,u){y.observers=y.observers||[];y.observers.push(u+"("+R.join(",")+")")}};
OpU=function(){var R=_.qy.apply(0,arguments);return function(y,u,v){var Q=Object.getOwnPropertyDescriptor(y,u).get,M="__compute__"+u;Object.defineProperty(y,M,{value:Q,enumerable:!0});y.properties=y.properties||{};Q=y.properties[u];Q||(Q={},y.properties[u]=Q);Q.computed=M+"("+R.join(",")+")";v.get=void 0}};
_.Q9=function(R,y,u){_.Z0.call(this);this.JSC$11230_id_=null;this.usingListeners_=!1;this.JSC$11230_listener_=R;this.handler_=u;this.JSC$11230_win_=y||window;this.callback_=(0,_.HY)(this.JSC$11232_doAction_,this)};
jC=function(R){this.range_=R};
M4=function(R){this.range_=R};
ip=function(R,y,u){_.Z0.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=R;this.scrollTimer_=new _.Jl(50);this.JSC$11309_eventHandler_=new _.V9(this);this.scrollDelta_=new _.dc;this.containerIsActuallyContent_=R.tagName==="BODY"||R.tagName==="HTML";this.containerBounds_=Zp8(R);this.containerIsActuallyContent_&&(R=_.xh(),this.containerBounds_.height=R.height,this.containerBounds_.width=R.width);this.margin_=y||0;if(y){if(y=this.containerBounds_.clone(),R=this.margin_){var v=
Math.min(R,y.height*.25);y.top+=v;y.height-=2*v;R=Math.min(R,y.width*.25);y.left+=R;y.width-=2*R}}else y=this.containerBounds_;this.scrollBounds_=y;u||this.JSC$11309_eventHandler_.listen(_.kh(this.containerNode_),"mousemove",this.JSC$11311_onMouseMove);this.JSC$11309_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11311_onTick_)};
_.Kv=function(R){this.mechanism=R};
IR=function(R,y){this.JSC$11407_key_=R;this.JSC$11407_value_=y};
n$T=function(R){if(R>=55296&&R<=57343||R>1114111)return"\ufffd";R in Hpz&&(R=Hpz[R]);var y="";R>65535&&(R-=65536,y+=String.fromCharCode(R>>>10&1023|55296),R=56320|R&1023);return y+=String.fromCharCode(R)};
GqT=function(R,y){return R<y?1:-1};
WnP=function(){return function(R){return R.charAt(1)==="#"?R.charAt(2)==="X"||R.charAt(2)==="x"?n$T(parseInt(R.substr(3),16)):n$T(parseInt(R.substr(2),10)):Pjv[R.slice(1,-1)]}};
kqT=function(R){return R.slice(1,R.length-1).trim().replace(dWT,function(y){return UWU[y]||" "})};
hl=function(R){return R===32||R===9};
bp=function(R,y){return y<R.length?R.charCodeAt(y):-1};
E$T=function(R){for(;R;){if(R._lastLineBlank)return!0;var y=R.type;if(y==="list"||y==="item")R=R._lastChild;else break}return!1};
Fc=function(R){if($Wc.test(R)){var y=1,u=0,v=0;for(R[u]=="|"&&u++;u<R.length;){switch(R[u]){case "|":v=1;break;case " ":break;case "\t":break;default:v&&(v=0,y++)}u++}return qOU.test(R)?-y:y}return 0};
X74=function(R){return R=="table"||R=="row"||R=="cell"};
mWG=function(){return new wG("document",[[1,1],[0,0]])};
AkT=function(){};
N4=function(){var R={safe:!1};R=R||{};R.softbreak=R.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=R};
aMv=function(R,y){var u="";if(R)if(R=R.toLowerCase(),R===" "||DWT.test(R))u="space";else if(p7S.test(R))u="esc";else if(R.length==1){if(!y||tz8.test(R))u=R}else u=ckG.test(R)?R.replace("arrow",""):R=="multiply"?"*":R;return u};
sfS=function(R,y){var u=R.hasModifiers;if(y.key)u=aMv(y.key,u);else if(y.detail&&y.detail.key)u=aMv(y.detail.key,u);else{u=y.keyIdentifier;var v="";u&&(u in SOS?v=SOS[u]:YOO.test(u)?(u=parseInt(u.replace("U+","0x"),16),v=String.fromCharCode(u).toLowerCase()):v=u.toLowerCase());(u=v)||(u=y.keyCode,v="",Number(u)&&(u>=65&&u<=90?v=String.fromCharCode(32+u):u>=112&&u<=123?v="f"+(u-112+1):u>=48&&u<=57?v=String(u-48):u>=96&&u<=105?v=String(u-96):v=LnU[u]),u=v);u=u||""}return u===R.key&&(!R.hasModifiers||
!!y.shiftKey===!!R.shiftKey&&!!y.ctrlKey===!!R.ctrlKey&&!!y.altKey===!!R.altKey&&!!y.metaKey===!!R.metaKey)};
g$4=function(R){return R.length===1?{combo:R,key:R,event:"keydown"}:R.split("+").reduce(function(y,u){var v=u.split(":");u=v[0];v=v[1];u in zhz?(y[zhz[u]]=!0,y.hasModifiers=!0):(y.key=u,y.event=v||"keydown");return y},{combo:R.split(":").shift()})};
CjS=function(R){return R.trim().split(" ").map(function(y){return g$4(y)})};
REz=function(R,y){if(R&&R.fn){var u=R.fn;R.fn=function(){try{u.apply(this,arguments)}catch(v){if(v instanceof TM)console.warn("Argument '"+v.arg+"'"+(y?" for method '"+y+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw v;}}}return R};
y8P=function(){var R=_.qy.apply(0,arguments);return R.length===0?function(y){return y}:R.length===1?R[0]:R.reduce(function(y,u){return function(){return y(u.apply(null,_.P$(_.qy.apply(0,arguments))))}})};
uC4=function(){var R=_.qy.apply(0,arguments);return function(y){return function(u,v){u=y(u,v);var Q=function(){throw Error("Ae");},M={getState:u.getState,
dispatch:function(K){return Q.apply(null,[K].concat(_.P$(_.qy.apply(1,arguments))))}};
v=R.map(function(K){return K(M)});
Q=y8P.apply(null,_.P$(v))(u.dispatch);return Object.assign({},u,{dispatch:Q})}}};
jeO=function(R){Object.keys(R).forEach(function(y){var u=R[y];if(typeof u(void 0,{type:vjP})==="undefined")throw Error("Be`"+y);if(typeof u(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+QeU()})==="undefined")throw Error("Ce`"+y+"`"+vjP);})};
oR=function(R){for(var y=Object.keys(R),u={},v=0;v<y.length;v++){var Q=y[v];typeof R[Q]==="function"&&(u[Q]=R[Q])}var M=Object.keys(u);try{jeO(u)}catch(h){var K=h}return function(h,b){h=h===void 0?{}:h;if(K)throw K;for(var N=!1,T={},x=0;x<M.length;x++){var B=M[x],l=h[B],Z=(0,u[B])(l,b);if(typeof Z==="undefined")throw h=b&&b.type,Error("De`"+(h?'"'+String(h)+'"':"(unknown type)")+"`"+B);T[B]=Z;N=N||Z!==l}return(N=N||M.length!==Object.keys(h).length)?T:h}};
MwU=function(R,y,u){function v(){if(T)throw Error("Ee");return h}
function Q(l){if(typeof l!=="function")throw Error("Fe`"+typeof l);if(T)throw Error("Ge");var Z=!0;N===b&&(N=b.slice());N.push(l);return function(){if(Z){if(T)throw Error("He");Z=!1;N===b&&(N=b.slice());var P=N.indexOf(l);N.splice(P,1);b=null}}}
function M(l){if(typeof l!=="object"||l===null)var Z=!1;else{for(Z=l;Object.getPrototypeOf(Z)!==null;)Z=Object.getPrototypeOf(Z);Z=Object.getPrototypeOf(l)===Z}if(!Z)throw Error("Ie`"+typeof l);if(typeof l.type==="undefined")throw Error("Je");if(T)throw Error("Ke");try{T=!0,h=K(h,l)}finally{T=!1}Z=b=N;for(var P=0;P<Z.length;P++)(0,Z[P])();return l}
if(typeof y==="function"&&typeof u==="function"||typeof u==="function"&&typeof arguments[3]==="function")throw Error("Le");typeof y==="function"&&typeof u==="undefined"&&(u=y,y=void 0);if(typeof u!=="undefined"){if(typeof u!=="function")throw Error("Me`"+typeof u);return u(MwU)(R,y)}if(typeof R!=="function")throw Error("Ne`"+typeof R);var K=R,h=y,b=[],N=b,T=!1;M({type:vjP});var x={},B=(x.dispatch=M,x.subscribe=Q,x.getState=v,x.replaceReducer=function(l){if(typeof l!=="function")throw Error("Oe`"+
typeof l);K=l;M({type:J8G});return B},x[VwT]=function(){var l={};
return l.subscribe=function(Z){function P(){Z.next&&Z.next(v())}
if(typeof Z!=="object"||Z===null)throw new TypeError("Pe`"+typeof Z);P();return{unsubscribe:Q(P)}},l[VwT]=function(){return this},l},x);
return B};
iTO=function(R){function y(){Q&&(Q=!1,R());M&&v()}
function u(){requestAnimationFrame(y)}
function v(){var h=Date.now();if(Q){if(h-K<2)return;M=!0}else Q=!0,M=!1,setTimeout(u,20);K=h}
var Q=!1,M=!1,K=0;return v};
xI=function(R){return typeof R==="number"?R:parseFloat(R)||0};
KFE=function(R){return _.qy.apply(1,arguments).reduce(function(y,u){return y+xI(R["border-"+u+"-width"])},0)};
_.H=function(R,y){y=tq(pK(y));R.innerHTML=y};
bTP=function(R){var y=IdS;y||(y=hE4(),y=IdS=_.Ps.transpose(y));y=y[R];return typeof y==="string"?y:_.B8(R)};
FFU=function(R){R=String(R).toLowerCase();var y=hE4()[R];return typeof y==="string"?y:_.fv(R)};
wcL=function(R){R=R.toLowerCase();R=hE4()[R];return typeof R==="string"?R:null};
hE4=function(){if(!NKO){for(var R=Object.assign({},TKP),y=_.V(ojP),u=y.next();!u.done;u=y.next())u=u.value,R[u.toLowerCase()]=u;NKO=R}return NKO};
fdT=function(R,y){var u=window.customElements;return u&&u.get(R)||xgW[R]===!0?2:y.name==="HTMLUnknownElement"?1:y.name==="HTMLElement"&&BKL.test(R)?3:0};
OTT=function(R,y){switch(y){case "innerHTML":return eEU(R)===1?2:null;case "textContent":return R=eEU(R),R===1||R===6?1:null;default:var u,v;return(v=(u=ldT[R.localName])==null?void 0:u[y])!=null?v:null}};
eEU=function(R){var y=R.localName,u=fdT(y,R.constructor);switch(u){case 0:case 1:return ZTv(y,R);case 3:case 2:return 1;default:_.AL(u,"got an unknown element classification")}};
ZTv=function(R,y){var u=Object.hasOwnProperty.call(HTW,R)?HTW[R]:null;return u!==null?u:Object.hasOwnProperty.call(njc,R)&&y instanceof SVGElement?njc[R]:null};
G0G=function(R,y){return y};
PVP=function(R){return(R=R.split(r88,2))?{url:R[0],metadata:R[1]}:null};
dgP=function(R){var y=String(R.url).replace(WF4,encodeURIComponent);if(R=R.metadata){WF4.lastIndex=0;if(WF4.test(R))return null;y+=" "+R}return y};
$gL=function(R){function y(N){var T=N.localName;if(!N.getAttribute("is")&&fdT(T,N.constructor)===2){var x;return(x=b)!=null?x:b=document.createElement("polyresinuncustomized")}(N=h[T])||(N=h[T]=document.createElement(T));return N}
var u=R.reportHandler||void 0,v=R.safeTypesBridge||UgS,Q=/^$/;if(R=R.allowedIdentifierPrefixes){R=_.V(R);for(var M=R.next();!M.done;M=R.next())Q=new RegExp(Q.source+"|^"+_.k0G(M.value))}u&&u(!1,"initResin",null);var K=EjW(Q,v,u),h={},b=null;return function(N,T,x){var B=N.nodeType;if(B!==Node.ELEMENT_NODE){if(B===Node.TEXT_NODE){T=N.parentElement;x=!T;if(T&&T.nodeType===Node.ELEMENT_NODE){B=T.localName;var l=fdT(B,T.constructor);switch(l){case 0:case 1:T=ZTv(B,T);x=T===1||T===6;break;case 3:case 2:x=
!0;break;default:_.AL(l,"got an unknown element classification")}}if(x)return function(E){return""+v(E,"STRING",E)}}return function(E){if(!E&&E!==document.all)return E;
u&&u(!0,"Failed to sanitize "+(N.parentElement&&N.parentElement.nodeName)+" #text node to value "+E,N.parentElement);return eC}}var Z=N.localName;
B=y(N);var P=null;switch(x){case "attribute":if(FFU(T)in B)break;return function(E){return E};
case "property":if(T in B){P=OTT(B,T);break}if((l=wcL(T))&&l in B)break;return function(E){return E};
default:_.AL(x,"got an unknown resin type, expected either 'property' or 'attribute'")}var k=x==="attribute"?T.toLowerCase():bTP(T);P||(P=vkP(Z,k,function(E){var D=N.getAttribute(E);return!D||/[\[\{]/.test(E)?null:D}));
return function(E){var D=lp,z=null;if(!E&&E!==document.all)return E;if(P!=null){var c=K[P],a=c.safeType;z=c.safeReplacement;a&&(D=v(E,a,lp));D===lp&&(c.filterString?(D=String(v(E,"STRING",E)),D=c.filterString(Z,k,D)):c.filterRaw&&(D=c.filterRaw(Z,k,E,N)),D===z&&(D=lp))}D===lp&&(D=z||eC,u&&u(!0,"Failed to sanitize attribute of <"+Z+">: <"+Z+" "+k+'="'+E+'">',N));return D}}};
EjW=function(R,y,u){return[,{filterRaw:function(v,Q,M){return M},
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:q8L,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:q8L,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:eC,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:XcT,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(v,Q,M){M=
String(M).toLowerCase();return MmL(v,Q,M)?M:eC},
safeReplacement:eC,safeType:void 0},,{filterRaw:void 0,filterString:function(v,Q,M){return R.test(M)?M:eC},
safeReplacement:eC,safeType:"CONSTANT"},{filterRaw:function(v,Q,M,K){if(typeof M==="string")var h=(h=M.match(mgU))?h.map(PVP).filter(Boolean):[];else if(Array.isArray(M))h=M;else return q8L;var b=h;h=[];var N=[],T={};if(Array.isArray(b))for(var x=0,B=b.length;x<B;++x){var l=b[x],Z=l&&l.url;if(Z){var P=y(Z,"URL",T);if(P){var k=P!==T;(k?h:N).push({url:k?P:Z,metadata:l.metadata})}}}else N.push(b);b=N.length?JSON.stringify(N):null;N=lp;if(h.length){if(!Array.isArray(h))throw Error();N=h.map(dgP).filter(Boolean).join(" , ")||
lp}b&&u&&u(!0,"Failed to sanitize attribute value of <"+v+">: <"+v+" "+Q+'="'+M+'">: '+b,K);return N===lp?q8L:N},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
A8v=function(R){var y=$gL(R);return function(u,v,Q,M){return M||M===document.all?y(u,v,Q)(M):M}};
Of=function(R,y){function u(){function Q(h,b,N){for(b=Reflect.getMetadata("parameters",h)||[];b.length<=N;)b.push(null);b[N]=b[N]||[];b[N].push(K);Reflect.defineMetadata(b,h);return h}
var M=_.qy.apply(0,arguments);if(this instanceof u)return v.apply(this,M),this;var K=new (Function.prototype.bind.apply(u,[null].concat(_.P$(M))));Q.annotation=K;return Q}
var v=DgL(y);u.prototype.toString=function(){return"@"+R};
return u.annotationCls=u};
DgL=function(R){return function(){var y=_.qy.apply(0,arguments),u=this;R.forEach(function(v,Q){Q=y[Q];if(Array.isArray(v))u[v[0]]=Q&&Q!==void 0?Q:v[1];else for(var M in v)u[M]=Q&&Q[M]!==void 0?Q[M]:v[M]})}};
pcE=function(R){return R!==void 0&&R!==null};
Zx=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 y=R.indexOf("\n");return y===-1?R:R.substring(0,y)};
twT=function(R){R.__forward_ref__=twT;R.toString=function(){return Zx(this())};
return R};
H8=function(R){return typeof R==="function"&&R.hasOwnProperty("__forward_ref__")&&R.__forward_ref__===twT?R():R};
c84=function(R){return R?R.map(function(y){return new (Function.prototype.bind.apply(y.type.annotationCls,[null].concat(_.P$(y.args?y.args:[]))))}):[]};
adc=function(R){for(var y=[],u=0;u<R.length;++u){if(y.indexOf(R[u])>-1){y.push(R[u]);break}y.push(R[u])}return y};
S8U=function(R){return R.length>1?" ("+adc(R.slice().reverse()).map(function(y){return Zx(y.token)}).join(" -> ")+")":""};
LFU=function(R,y,u,v){if(v){var Q=Error("We``"+(v instanceof Error?v.message:v));Q.ngOriginalError=v}else Q=Error();Q.addKey=Y8S;Q.keys=[y];Q.injectors=[R];Q.constructResolvingMessage=u;Q.message=Q.constructResolvingMessage();Q.ngOriginalError=v;return Q};
Y8S=function(R,y){this.injectors.push(R);this.keys.push(y);this.message=this.constructResolvingMessage()};
sec=function(R,y){return LFU(R,y,function(){return"No provider for "+Zx(this.keys[0].token)+"!"+S8U(this.keys)})};
zET=function(R,y){return LFU(R,y,function(){return"Cannot instantiate cyclic dependency!"+S8U(this.keys)})};
gjc=function(R,y,u){return LFU(R,u,function(){var v=Zx(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+v+"!"+S8U(this.keys)+"."},y)};
CVW=function(R,y){for(var u=[],v=0,Q=y.length;v<Q;v++){var M=y[v];M&&M.length!=0?u.push(M.map(Zx).join(" ")):u.push("?")}return Error("$e`"+Zx(R)+"`"+u.join(", ")+"`"+Zx(R))};
MYT=function(R){var y=void 0,u=void 0;if(R&&R.useClass!==void 0){y=R.useClass;var v=H8(R.useClass);var Q=RRE.factory(v);v=ytU(v)}else R&&R.useExisting!==void 0?(Q=function(M){return M},v=[uWE(nv.get(H8(R.useExisting)))]):R&&R.useFactory!==void 0?(Q=R.useFactory,v=vDc(R.useFactory,R.deps)):(u=R.useValue,Q=function(){return R.useValue},v=QqT);
return new jqW(Q,v,y,u)};
VYO=function(R){return new JtG(nv.get(H8(R.provide)),[MYT(R)],R.multi)};
KRL=function(R){R=iI8(R,[]).map(VYO);for(var y=new Map,u=0;u<R.length;u++){var v=R[u],Q=y.get(v.key.id);if(Q){if(v.multiProvider!==Q.multiProvider)throw Error("bf`"+Q+"`"+v);if(v.multiProvider)for(var M=0;M<v.resolvedFactories.length;M++)Q.resolvedFactories.push(v.resolvedFactories[M]);else y.set(v.key.id,v)}else Q=void 0,v.multiProvider?Q=new JtG(v.key,v.resolvedFactories.slice(),v.multiProvider):Q=v,y.set(v.key.id,Q)}return Array.from(y.values())};
iI8=function(R,y){R.forEach(function(u){if(u instanceof IQc)y.push({provide:u,useClass:u});else if(u&&typeof u=="object"&&u.provide!==void 0)y.push(u);else if(u instanceof Array)iI8(u,y);else throw Error("Ze`"+u);});
return y};
vDc=function(R,y){if(y){var u=y.map(function(v){return[v]});
return y.map(function(v){return hRG(R,v,u)})}return ytU(R)};
ytU=function(R){var y=RRE.parameters(R);if(!y)return[];if(y.some(function(u){return u==null}))throw CVW(R,y);
return y.map(function(u){return hRG(R,u,y)})};
hRG=function(R,y,u){var v=null,Q=!1;if(!Array.isArray(y))return y instanceof bIv?FRU(y.token,Q,null):FRU(y,Q,null);for(var M=null,K=0;K<y.length;++K){var h=y[K];if(h instanceof IQc)v=h;else if(h instanceof bIv)v=h.token;else if(h instanceof w0T)Q=!0;else if(h instanceof NqL||h instanceof TqW)M=h}v=H8(v);if(v!=null)return FRU(v,Q,M);throw CVW(R,u);};
FRU=function(R,y,u){return new oDT(nv.get(H8(R)),y,u)};
xEP=function(R,y){for(var u=Array(R.providers.length),v=0;v<R.providers.length;++v){var Q=v;if(v<0||v>=R.providers.length)throw Error("af`"+v);u[Q]=y(R.providers[v])}return u};
BqE=function(R){return typeof R==="function"&&RRE.parameters(R).every(function(y){return!!y})};
lQU=function(R){var y=fQU;eRW.get(R)||eRW.set(R,new y);return eRW.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,y){var u,v;if(R.contains(y))return!0;R=_.GM(R).querySelectorAll("content,slot");for(u=0;u<R.length;++u){var Q=_.GM(R[u]).getDistributedNodes();for(v=0;v<Q.length;++v)if(Q[v].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(Q[v],y))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],OIG=R.pageX,ZIW=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,y=rG.length;R<y;R++)document.addEventListener(rG[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,y=rG.length;R<y;R++)document.removeEventListener(rG[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 y=_.GM(R).rootTarget;R.type!=="touchmove"&&HI4!==y&&(HI4=y,nDG=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.GM(R).path));if(!nDG.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(nDG,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 y=[],u=R.indexOf(GQT),v=0;v<=u;v++)if(R[v].nodeType===Node.ELEMENT_NODE){var Q=R[v],M=Q.style;M.overflow!=="scroll"&&M.overflow!=="auto"&&(M=window.getComputedStyle(Q));M.overflow!=="scroll"&&M.overflow!=="auto"||y.push(Q)}return y};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(R,y,u){if(y||u)for(var v=Math.abs(u)>=Math.abs(y),Q=0;Q<R.length;Q++){var M=R[Q];if(v?u<0?M.scrollTop>0:M.scrollTop<M.scrollHeight-M.clientHeight:y<0?M.scrollLeft>0:M.scrollLeft<M.scrollWidth-M.clientWidth)return M}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(R){var y={deltaX:R.deltaX,deltaY:R.deltaY};"deltaX"in R||("wheelDeltaX"in R&&"wheelDeltaY"in R?(y.deltaX=-R.wheelDeltaX,y.deltaY=-R.wheelDeltaY):"wheelDelta"in R?(y.deltaX=0,y.deltaY=-R.wheelDelta):"axis"in R?(y.deltaX=R.axis===1?R.detail:0,y.deltaY=R.axis===2?R.detail:0):R.targetTouches&&(R=R.targetTouches[0],y.deltaX=OIG-R.pageX,y.deltaY=ZIW-R.pageY));return y};
rtv=function(R){this.element=R;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
WRO=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");_.GM(this.waveContainer).appendChild(this.wave);PAT(this)};
P8=function(R,y){for(var u in R)if(u.toLowerCase()===y.toLowerCase())return R[u]};
dES=function(R,y){for(var u in R)if(u.toLowerCase()===y.toLowerCase()){delete R[u];break}};
kQP=function(R){R=_.Ps.clone(R);for(var y=0;y<UEP.length;++y){var u=UEP[y],v=P8(R,u);v&&(R["X-Goog-Upload-Header-"+u]=v,dES(R,u))}return R};
EDG=function(R){R=_.Ps.clone(R);dES(R,"X-Goog-Upload-Status")};
qRE=function(R){return $E8.some(function(y){return y.test(R)})};
DEO=function(R,y){var u;var v=(u=R.formContent)==null?void 0:u.locale;u=v==null?void 0:v.split("-")[0];v=v&&X08.includes(v)?v:u&&X08.includes(u)?u:void 0;v=(v!=null?v:"en").replaceAll("-","_").toLowerCase();var Q;R=((Q=R.initializationData)==null?0:Q.useNightlyRelease)?"nightly":"live";var M;return(y==null?0:(M=y.getEnableAlohaBinarySplit)==null?0:M.call(y))?_.M1(mEP,R):_.M1(AtT,R,v)};
ctW=function(R,y,u,v){if(p0T&&tYz===y)return p0T;tYz=y;var Q=DEO(R,v);return p0T=y.feedbackV2GlobalObject?Promise.resolve(y.feedbackV2GlobalObject):new Promise(function(M,K){var h=_.o_("SCRIPT");_.gC(h,Q);h.onload=function(){y.feedbackV2GlobalObject?M(y.feedbackV2GlobalObject):K(Error("ef"))};
h.onerror=function(){K(Error("ff`"+Q.toString()))};
u.body.appendChild(h)})};
YRP=function(R,y,u,v){if(aQ4&&SR8===y)return aQ4;SR8=y;var Q=DEO(R,v);return aQ4=y.feedbackV2GlobalObject?Promise.resolve(y.feedbackV2GlobalObject):new Promise(function(M,K){var h=_.o_("SCRIPT");_.gC(h,Q);h.onload=function(){y.feedbackV2GlobalObject?M(y.feedbackV2GlobalObject):K(Error("ef"))};
h.onerror=function(){K(Error("ff`"+Q.toString()))};
u.body.appendChild(h)})};
LRS=function(R,y,u,v,Q){Q=Q===void 0?!0:Q;var M,K,h,b,N;return _.I(function(T){switch(T.nextAddress){case 1:return M=Date.now(),T.yield(ctW(R,u,v,y),2);case 2:K=T.yieldResult;if(!(Q||((b=R.initializationData)==null?0:b.useNightlyRelease)||((N=R.initializationData)==null?0:N.isLocalServer))){h=K.initializeFeedbackClient(R,M,y);T.jumpTo(3);break}return T.yield(K.initializeFeedbackClientAsync(R,M,y),4);case 4:h=T.yieldResult;case 3:return h.initiateAloha(),T.return(h)}})};
sqv=function(R,y,u,v){var Q,M,K;return _.I(function(h){if(h.nextAddress==1)return Q=Date.now(),h.yield(YRP(R,u,v.document,y),2);if(h.nextAddress!=3)return M=h.yieldResult,h.yield(M.initializeFeedbackClientAsync(R,Q,y,v),3);K=h.yieldResult;K.initiateAloha();return h.return(K)})};
zRS=function(R,y,u){var v=!0;v=v===void 0?!0:v;var Q,M,K,h,b,N,T,x,B,l;return _.I(function(Z){Q=u||_.uO;if((M=y)==null?0:(h=(K=M).getEnableAlohaBinarySplit)==null?0:h.call(K)){b=Q;if(b.isFormOpened)throw N=Error("gf"),N.name="DuplicateFormError",N;b.isFormOpened=!0;R.callbacks=R.callbacks||{};T=R.callbacks.onClose||function(){};
R.callbacks.onClose=function(P){b.isFormOpened=!1;T(P)};
try{return Z.return(sqv(R,y,b,Q))}catch(P){throw b.isFormOpened=!1,P;}}else{x=Q;if(x.isFormOpened)throw B=Error("gf"),B.name="DuplicateFormError",B;x.isFormOpened=!0;R.callbacks=R.callbacks||{};l=R.callbacks.onClose||function(){};
R.callbacks.onClose=function(P){x.isFormOpened=!1;l(P)};
try{return Z.return(LRS(R,y,x,Q.document,v))}catch(P){throw x.isFormOpened=!1,P;}}_.f$(Z)})};
uQU=function(R,y){return _.I(function(u){return u.return(new Promise(function(v){var Q=gDO(y!=null?y:"")+"/aloha_form_properties?productId="+R;CAT(Q,function(M){M=M.target;var K=null;try{var h=JSON,b=h.stringify;if(M.JSC$9764_xhr_){var N=M.JSC$9764_xhr_.responseText;N.indexOf(")]}'\n")==0&&(N=N.substring(5));var T=(0,_.W8)(N)}else T=void 0;K=qoS(RsO,b.call(h,T))}catch(x){b=new RsO,T=yxU(),T=_.dG(T,13,!1),T=_.dG(T,14,!0),T=_.dG(T,15,!0),T=_.dG(T,20,!1),K=_.wC(b,1,T)}v(K)},"GET","",{},2E3,!0)}))})};
gDO=function(R){return qRE(R)?R:"https://www.google.com/tools/feedback"};
MFO=function(R){R=R.match(new RegExp(vc4,"gi"))||[];R=_.V(R);for(var y=R.next();!y.done;y=R.next()){y=y.value;a:{var u=_.V(QZU);for(var v=u.next();!v.done;v=u.next())if(v.value.test(y)){u=!1;break a}u=!0}if(!u)a:{u=_.V(jZG);for(v=u.next();!v.done;v=u.next())if(v.value.test(y)){u=!0;break a}u=!1}if(u)return!0}return!1};
JxT=function(R,y){var u={},v=Object.keys(R);v=_.V(v);for(var Q=v.next();!Q.done;Q=v.next())Q=Q.value,u[Q]=y(Q,R[Q]);return u};
VF4=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"}};
KBT=function(R){if(window.crypto&&window.crypto.getRandomValues)try{var y=Array(R),u=new Uint8Array(R);window.crypto.getRandomValues(u);for(var v=0;v<y.length;v++)y[v]=u[v];return y}catch(M){}y=Array(R);for(u=0;u<R;u++){v=Date.now();for(var Q=0;Q<v%23;Q++)y[u]=Math.random();y[u]=Math.floor(Math.random()*256)}if(iVS)for(u=1,v=0;v<iVS.length;v++)y[u%R]^=y[(u-1)%R]/4^iVS.charCodeAt(v),u++;return y};
Uf=function(R){R=KBT(R);for(var y=[],u=0;u<R.length;u++)y.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(R[u]&63));return y.join("")};
IRc=function(){var R=_.uO.ytLoggingDocDocumentNonce_;R||(R=Uf(16),_.CJ("ytLoggingDocDocumentNonce_",R));return R};
bVU=function(R){R&&_.P3("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:hsP,clientScreenNonce:R})};
FBv=function(R){return _.EB("client-screen-nonce-store",{})[R===void 0?0:R]};
wtT=function(R,y){y=y===void 0?0:y;var u=_.EB("client-screen-nonce-store");u||(u={},_.kB("client-screen-nonce-store",u));u[y]=R};
N1T=function(R){R=R===void 0?0:R;return R===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+R};
T1W=function(R){return _.EB(N1T(R===void 0?0:R))};
_.Ef=function(R){return(R=T1W(R===void 0?0:R))?new _.kI({veType:R,youtubeData:void 0,jspbYoutubeData:void 0}):null};
ocv=function(){var R=_.EB("csn-to-ctt-auth-info");R||(R={},_.kB("csn-to-ctt-auth-info",R));return R};
xnG=function(){return Object.values(_.EB("client-screen-nonce-store",{})).filter(function(R){return R!==void 0})};
_.$I=function(R){R=FBv(R===void 0?0:R);if(!R&&!_.$B("USE_CSN_FALLBACK",!0))return null;R||(R="UNDEFINED_CSN");return R?R:null};
fRS=function(R){for(var y=_.V(Object.values(B1S)),u=y.next();!u.done;u=y.next())if(_.$I(u.value)===R)return!0;return!1};
esG=function(R,y,u){var v=ocv();(u=_.$I(u))&&delete v[u];y&&(v[R]=y)};
q4=function(R){return ocv()[R]};
_.Xc=function(R,y,u,v){u=u===void 0?0:u;if(R!==FBv(u)||y!==_.EB(N1T(u)))if(esG(R,v,u),wtT(R,u),_.kB(N1T(u),y),y=function(){setTimeout(function(){bVU(R)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(y)}catch(Q){y()}else y()};
lRL=function(R,y){y=y===void 0?"":y;var u=[],v;for(v in R)if(R.hasOwnProperty(v)){var Q=y!==""?y+"."+v:v;typeof R[v]==="object"?u.push.apply(u,_.P$(lRL(R[v],Q))):u.push([Q,R[v]])}u.sort();return u};
_.Al=function(R){var y=_.qy.apply(1,arguments);if(!mb(R)||y.some(function(v){return!mb(v)}))throw Error("hf");
y=_.V(y);for(var u=y.next();!u.done;u=y.next())OVO(R,u.value)};
OVO=function(R,y){for(var u in y)if(mb(y[u])){if(u in R&&!mb(R[u]))throw Error("jf");u in R||(R[u]={});OVO(R[u],y[u])}else if(ZVz(y[u])){if(u in R&&!ZVz(R[u]))throw Error("kf");u in R||(R[u]=[]);HVO(R[u],y[u])}else R[u]=y[u];return R};
HVO=function(R,y){y=_.V(y);for(var u=y.next();!u.done;u=y.next())u=u.value,mb(u)?R.push(OVO({},u)):ZVz(u)?R.push(HVO([],u)):R.push(u);return R};
mb=function(R){return typeof R==="object"&&!Array.isArray(R)};
ZVz=function(R){return typeof R==="object"&&Array.isArray(R)};
GnP=function(R){for(var y=_.V(Object.entries(ncG)),u=y.next();!u.done;u=y.next())if(u=_.V(u.value),u.next(),u=u.next().value,u==="SLI_STATUS_"+R)return u;return"SLI_STATUS_UNKNOWN"};
_.Dx=function(R,y,u,v){return rxS(R,y,function(){return new _.Pmv(R,y,u,v)})};
_.WBG=function(){return _.Dx("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
dn4=function(){return _.Dx("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
pv=function(){return _.Dx("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
UnU=function(){return _.Dx("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
knE=function(){return _.Dx("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
EcT=function(){return _.Dx("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
Xtv=function(R){R&&(R.dataset?R.dataset[$nT()]="true":_.R1([_.QW(qvL)],R,"data-loaded","true".toString()))};
mnU=function(R){return R?R.dataset?R.dataset[$nT()]:R.getAttribute("data-loaded"):null};
$nT=function(){return Axv.loaded||(Axv.loaded="loaded".replace(/\-([a-z])/g,function(R,y){return y.toUpperCase()}))};
_.tl=function(R,y,u){DnT(R,y,u===void 0?null:u)};
_.tFO=function(R,y){R&&y&&(R=""+_.YS(y),(R=ptS[R])&&_.cdO(R))};
DnT=function(R,y,u){u=u===void 0?null:u;var v=_.cxT(typeof R==="string"?R:R.toString()),Q=document.getElementById(v),M=Q&&mnU(Q),K=Q&&!M;M?y&&y():(y&&(M=_.VF(v,y),y=""+_.YS(y),ptS[y]=M),K||(Q=aR4(R,v,function(){mnU(Q)||(Xtv(Q),_.arO(v),_.Ih(function(){_.Y4L(v)},0))},u)))};
aR4=function(R,y,u,v){v=v===void 0?null:v;var Q=_.o_("SCRIPT");Q.id=y;Q.onload=function(){u&&setTimeout(u,0)};
Q.onreadystatechange=function(){switch(Q.readyState){case "loaded":case "complete":Q.onload()}};
v&&Q.setAttribute("nonce",v);_.gC(Q,typeof R==="string"?_.Gl(R):R);R=document.getElementsByTagName("head")[0]||document.body;R.insertBefore(Q,R.firstChild);return Q};
_.cxT=function(R){var y=document.createElement("a");Aq(y,R);return"js-"+c8(y.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
SvW=function(R){var y=_.EB("INNERTUBE_HOST_OVERRIDE");y&&(R=String(y)+String(_.aR(R)));return R};
Yv8=function(R){var y={};_.f("json_condensed_response")&&(y.prettyPrint="false");return R=NrU(R,y)};
_.SC=function(R){return CG(R)?"same-origin":"include"};
_.YI=function(R){return CG(R)?"same-origin":"cors"};
Lv=function(R,y,u){u=u===void 0?{}:u;R={method:y===void 0?"POST":y,mode:_.YI(R),credentials:_.SC(R)};y={};for(var v=_.V(Object.keys(u)),Q=v.next();!Q.done;Q=v.next())Q=Q.value,u[Q]&&(y[Q]=u[Q]);Object.keys(y).length>0&&(R.headers=y);return R};
_.sf=function(R,y){y=y===void 0?{}:y;return"service:"+R+"/"+Object.keys(y).sort().map(function(u){return u+":"+y[u]}).join("/")};
LBv=function(R){var y,u,v,Q;R=(y=_.e(R,_.zM))==null?void 0:(u=y.watchEndpointSupportedOnesieConfig)==null?void 0:(v=u.html5PlaybackOnesieConfig)==null?void 0:(Q=v.commonConfig)==null?void 0:Q.url;if(!R)return[];y=new _.Cv(R);return y.JSC$10001_domain_?["https://"+y.JSC$10001_domain_+"/generate_204"]:[]};
_.gc8=function(){return sZO()||BNT()||zsc&&EL("version/")?!0:_.EB("EOM_VISITOR_DATA")?!1:!0};
CmU=function(R){var y=R.docid||R.video_id||R.videoId||R.id;if(y)return y;y=R.raw_player_response;y||(R=R.player_response)&&(y=JSON.parse(R));return y&&y.videoDetails&&y.videoDetails.videoId||null};
RqS=function(R){return R.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
Rk=function(R){return!isNaN(Number(R))&&!_.iO(R)};
_.uh=function(R,y,u,v){v=v===void 0?!0:v;var Q=_.EB("VALID_SESSION_TEMPDATA_DOMAINS",[]),M=_.z7(window.location.href);M&&Q.push(M);M=_.z7(R);if(_.XU(Q,M)||!M&&_.jv(R,"/"))if(Q=document.createElement("a"),Aq(Q,R),R=Q.href)if(R=_.aR(R),R=_.yL(R))v&&!y.csn&&(y.itct||y.ved)&&(y=Object.assign({csn:_.$I()},y)),u?(u=parseInt(u,10),isFinite(u)&&u>0&&yAc(R,y,u)):yAc(R,y)};
vuT=function(R){var y=_.EB("VALID_SESSION_TEMPDATA_DOMAINS",[]),u=_.z7(window.location.href);u&&y.push(u);u=_.z7(R);if(!(_.XU(y,u)||!u&&_.jv(R,"/")))return null;R=_.aR(R);(R=_.yL(R))?(R=uLS(R),R=(R=_.xz.get(R,void 0)||null)?_.aM(R):{}):R=null;return R};
yAc=function(R,y,u){R=uLS(R);y=y?_.NC(y):"";u=u||5;_.gc8()&&_.B5(R,y,u)};
uLS=function(R){for(var y=_.V(QUW),u=y.next();!u.done;u=y.next())R=_.vo(R,u.value);return"ST-"+c8(R).toString(36)};
jUv=function(R,y){R.commandMetadata&&_.e(R.commandMetadata,_.QL)&&_.e(R.commandMetadata,_.QL).url&&(R=_.SS(_.e(R.commandMetadata,_.QL).url).adurl)&&_.oFW(R)&&_.uh(_.aR(R),{encoded_ad_playback_context:y})};
_.MHW=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()};
_.J_=function(R){var y;_.dk8(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.ji()==R&&(y=document):y=R;if(y&&(R=_.dk8(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],y))){R.call(y)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.ji=function(){var R=R===void 0?!1:R;var y=_.dk8(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(R)for(;y&&y.shadowRoot;)y=y.shadowRoot.fullscreenElement;return y?y:null};
_.VL=function(R,y){y=y===void 0?!0:y;R.addEventListener("wheel",JAP);R.overscrollConfig={cooldown:y}};
_.ih=function(R){R.overscrollConfig=void 0;R.removeEventListener("wheel",JAP)};
JAP=function(R){var y=R.deltaY,u=R.target,v=null;if(window.Polymer&&window.Polymer.Element){if(u=R.path||R.composedPath&&R.composedPath()){u=_.V(u);for(var Q=u.next();!Q.done&&(Q=Q.value,!VHO(Q,y));Q=u.next())if(Q.overscrollConfig){v=Q;break}}}else for(;u&&!VHO(u,y);){if(u.overscrollConfig){v=u;break}u=u.parentElement}v&&(y=v.overscrollConfig,y.cooldown?(v=R.deltaY,u=y.lastDeltaY||0,y.lastDeltaY=v,Q=y.lastStopped||0,u&&Q&&u>0==v>0?Math.abs(u)>=Math.abs(v)?(v=Q+1200,u=!1):(v=Q+600,u=!0):(v=Date.now()+
600,u=!0),v>Date.now()&&(R.preventDefault(),u&&(y.lastStopped=Date.now()))):R.preventDefault())};
VHO=function(R,y){return y<0&&R.scrollTop>0||y>0&&R.scrollTop<R.scrollHeight-R.clientHeight-1?(R=getComputedStyle(R).overflowY,R=="auto"||R=="scroll"):!1};
_.Ko=function(R,y,u,v){v||(v={bubbles:!0,cancelable:!1,composed:!0});u!==null&&u!==void 0&&(v.detail=u);var Q=new CustomEvent(y,v);_.f("untrack_fire_custom_event_killswitch")?R.dispatchEvent(Q):Ky(function(){return void R.dispatchEvent(Q)});
return Q};
ijL=function(R){var y=window,u=function(v){y.removeEventListener("yt-navigate-start",u);return R.call(y,v)};
y.addEventListener("yt-navigate-start",u,void 0)};
_.Ik=function(R,y,u,v){y=new KjU(y,!(v===void 0||!v),u);_.Ko(R,"yt-action",y);return y.returnValue};
_.h_=function(R,y,u){return _.Ik(R,y,u,!0)};
_.bh=function(R,y,u){return _.Ik(R,y,u)[0]};
_.wr=function(R,y,u,v){y&&y.length&&y.forEach(function(Q){var M=rF8(Q);M&&(_.f("handle_service_request_actions")&&Q.commandMetadata&&Q.commandMetadata.webCommandMetadata&&Q.commandMetadata.webCommandMetadata.sendPost?_.Fh(u?u:R,[Q]):_.h_(R,M,[Q,u,v]))})};
_.Fh=function(R,y){var u=[R];y&&u.push.apply(u,y);y=_.Ik(R,"yt-service-request",u);return y.length>0&&(y=y[0],_.Ko(R,"yt-service-request-sent",y),y&&y.ajaxPromise)?(y.ajaxPromise.then(function(v){_.Ko(R,"yt-service-request-completed",v)},function(v){_.Ko(R,"yt-service-request-error",{error:v,
params:u})},R),y.ajaxPromise):_.NQ()};
_.ok=function(R,y){if(_.f("handle_service_request_actions"))_.wr(y,R,y);else{R=_.V(R);for(var u=R.next();!u.done;u=R.next()){u=u.value;var v=void 0;((v=_.e(u,_.TP))==null?0:v.commands)?_.ok(_.e(u,_.TP).commands,y):(v=void 0,((v=_.e(u,_.xF))==null?0:v.actions)?_.ok(_.e(u,_.xF).actions,y):(v=void 0,((v=_.e(u.commandMetadata,_.QL))==null?0:v.sendPost)?_.Fh(y,[u]):_.wr(y,[u],y)))}}};
_.hqU=function(R,y,u){y=y===void 0?{}:y;typeof y==="function"&&(y={callback:y});u||y._c&&y._c.jsl&&y._c.jsl.h||_.Ps.extend(y,{_c:{jsl:{h:_.EB("GAPI_HINT_PARAMS")}}});(y.gapiHintOverride||_.EB("GAPI_HINT_OVERRIDE"))&&(u=_.SS(document.location.href).gapi_jsh)&&_.Ps.extend(y,{_c:{jsl:{h:u}}});IaS(R,y)};
_.fo=function(R,y,u){y=y===void 0?{}:y;R=(R=R in Bo?Bo[R]:u)||"";u={};for(var v in y){u={key$jscomp$818:u.key$jscomp$818};u.key$jscomp$818=v;var Q=function(M){return function(){return String(y[M.key$jscomp$818])}}(u);
R=R.replace(new RegExp("\\$\\{"+u.key$jscomp$818+"\\}","gi"),Q);R=R.replace(new RegExp("\\$"+u.key$jscomp$818,"gi"),Q)}return R};
_.ei=function(R,y){return bjE(R in Bo?Bo[R]:{},y)};
bjE=function(R,y){var u=_.EB("I18N_PLURAL_RULES");u||(u=function(v){return v==1?"one":"other"});
return(R=R["case"+y]||R[u(y)])?R.replace("#",y.toString()):y+""};
N5L=function(R){var y=FjG(R),u=document.getElementById(y),v=u&&mnU(u);v||u&&!v||(u=wb4(R,y,function(){if(!mnU(u)){Xtv(u);_.arO(y);var Q=_.lh(_.Y4L,y);_.Ih(Q,0)}}))};
wb4=function(R,y,u){var v=document.createElement("link");v.id=y;v.onload=function(){u&&setTimeout(u,0)};
R=_.Gl(R);_.y6(v,R,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(v);return v};
FjG=function(R){var y=_.o_("A");Aq(y,nK(R));return"css-"+c8(y.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.ouS=function(R){var y=T5G();R!==y&&(y=_.O9(),!_.f("web_autonav_allow_off_by_default")&&R||_.Zq(0,141,!0),_.Zq(0,140,!R),y.save())};
T5G=function(){var R=_.O9();return _.f("web_autonav_allow_off_by_default")&&!R.getFlag(141)&&_.EB("AUTONAV_OFF_BY_DEFAULT")?!1:!R.getFlag(140)};
xdU=function(R,y){var u,v;R=((u=R.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(v=u.videoAuthorizationToken)==null?void 0:v.credentialTransferTokens)||[];for(u=0;u<R.length;++u)if(R[u].scope===y)return R[u].token||void 0};
B54=function(R){for(var y=0,u=0;u<R.length;u++)y=y*31+R.charCodeAt(u),u<R.length-1&&(y%=0x800000000000);return y%1E5};
_.Ho=function(R){return _.D6("ytcsi."+(R||"")+"data_")||faz(R)};
_.eqc=function(R){R=_.Ho(R);R.metadata||(R.metadata={});return R.metadata};
_.la4=function(R){R=_.Ho(R);R.tick||(R.tick={});return R.tick};
_.no=function(R){R=_.Ho(R);if(R.gel){var y=R.gel;y.gelInfos||(y.gelInfos={});y.gelTicks||(y.gelTicks={})}else R.gel={gelTicks:{},gelInfos:{}};return R.gel};
_.Ojz=function(R){R=_.no(R);R.gelInfos||(R.gelInfos={});return R.gelInfos};
ZjU=function(R){var y=_.Ho(R).nonce;y||(y=Uf(16),_.Ho(R).nonce=y);return y};
faz=function(R){var y={tick:{},info:{}};_.CJ("ytcsi."+(R||"")+"data_",y);return y};
Hjz=function(){var R=_.D6("ytcsi.debug");R||(R=[],_.CJ("ytcsi.debug",R),_.CJ("ytcsi.reference",{}));return R};
_.GP=function(R){R=R||"";var y=nuc();if(y[R])return y[R];var u=Hjz(),v={timerName:R,info:{},tick:{},span:{},jspbInfo:[]};u.push(v);return y[R]=v};
GXv=function(R){R=R||"";var y=nuc();y[R]&&delete y[R];var u=Hjz(),v={timerName:R,info:{},tick:{},span:{},jspbInfo:[]};u.push(v);y[R]=v};
nuc=function(){var R=_.D6("ytcsi.reference");if(R)return R;Hjz();return _.D6("ytcsi.reference")};
_.PkL=function(R){return rAT[R]||"LATENCY_ACTION_UNKNOWN"};
kXW=function(R,y,u){u=u===void 0?{}:u;var v=!1;_.$B("ytLoggingEventsDefaultDisabled",!1)&&(v=!0);v=v?null:rI;u=u===void 0?{}:u;var Q=Math.round(u.timestamp||(0,_.uQ)());_.ex(y,1,Q<Number.MAX_SAFE_INTEGER?Q:0);Q=new WjW;if(u.lact)_.ex(Q,1,isFinite(u.lact)?u.lact:-1);else if(u.timestamp)_.ex(Q,1,-1);else{var M=_.QF();_.ex(Q,1,isFinite(M)?M:-1)}if(u.sequenceGroup&&!_.f("web_gel_sequence_info_killswitch")){M=u.sequenceGroup;var K=v9S(M),h=new dd4;_.ex(h,2,K);_.eQ(h,1,M);_.wC(Q,3,h);u.endOfSequence&&delete UdL[u.sequenceGroup]}_.wC(y,
33,Q);(u.sendIsolatedPayload?Kxv:IlG)(R,{endpoint:"log_event",payload:y,cttAuthInfo:u.cttAuthInfo,dangerousLogToVisitorSession:u.dangerousLogToVisitorSession},v)};
_.Po=function(){return(_.f("csi_use_time_origin")||_.f("csi_use_time_origin_tvhtml5"))&&_.rr.timeOrigin?Math.floor(_.rr.timeOrigin):_.rr.timing.navigationStart};
_.Eu8=function(R,y){_.Wo("_start",R,y)};
_.dr=function(R,y){if(!_.f("web_csi_action_sampling_enabled")||!_.Ho(y).actionDisabled){var u=_.GP(y||"");_.Al(u.info,R);R.loadType&&(u=R.loadType,_.eqc(y).loadType=u);_.Al(_.Ojz(y),R);u=ZjU(y);y=_.Ho(y).cttAuthInfo;$dS().info(R,u,y)}};
qbL=function(){var R,y,u,v;return((v=_.ua().resolve(_.yN(Zz))==null?void 0:(R=H3())==null?void 0:(y=R.loggingHotConfig)==null?void 0:(u=y.csiConfig)==null?void 0:u.debugTicks)!=null?v:[]).map(function(Q){return Object.values(Q)[0]})};
_.Wo=function(R,y,u){if(!_.f("web_csi_action_sampling_enabled")||!_.Ho(u).actionDisabled){var v=ZjU(u),Q;if(Q=_.f("web_csi_debug_sample_enabled")&&v){(_.ua().resolve(_.yN(Zz))==null?0:H3())&&!XbU&&(XbU=!0,_.Wo("gcfl",(0,_.uQ)(),u));var M,K,h;Q=(_.ua().resolve(_.yN(Zz))==null?void 0:(M=H3())==null?void 0:(K=M.loggingHotConfig)==null?void 0:(h=K.csiConfig)==null?void 0:h.debugSampleWeight)||0;if(M=Q!==0)b:{M=qbL();if(M.length>0)for(K=0;K<M.length;K++)if(R===M[K]){M=!0;break b}M=!1}M?(Q=B54(v)%Q!==0,
_.Ho(u).debugTicksExcludedLogged||(M={},M.debugTicksExcluded=Q,_.dr(M,u)),_.Ho(u).debugTicksExcludedLogged=!0):Q=!1}if(!Q){R[0]!=="_"&&mdP(R,u,y);Q=_.GP(u||"");Q.tick[R]=y||(0,_.uQ)();if(Q.callback&&Q.callback[R])for(Q=_.V(Q.callback[R]),M=Q.next();!M.done;M=Q.next())M=M.value,M();Q=_.no(u);Q.gelTicks&&(Q.gelTicks[R]=!0);M=_.la4(u);Q=y||(0,_.uQ)();_.f("log_repeated_ytcsi_ticks")?R in M||(M[R]=Q):M[R]=Q;M=_.Ho(u).cttAuthInfo;R==="_start"?$dS().baseline(v,y,M):$dS().tick(R,v,y,M);_.AA4(u);return Q}}};
mdP=function(R,y,u){if(_.rr.mark)if(R.startsWith("mark_")||(R="mark_"+R),y&&(R+=" ("+y+")"),u===void 0||_.f("web_csi_disable_alt_time_performance_mark"))_.rr.mark(R);else{u=_.f("csi_use_performance_navigation_timing")?u-_.rr.timeOrigin:u-(_.rr.timeOrigin||_.rr.timing.navigationStart);try{_.rr.mark(R,{startTime:u})}catch(v){}}};
Dd4=function(){var R,y=(R=_.rr.getEntriesByType)==null?void 0:R.call(_.rr,"mark");y&&y.forEach(function(u){if(u.name.startsWith("mark_")){var v;(v=_.rr.clearMarks)==null||v.call(_.rr,u.name)}})};
_.pbT=function(){switch(WNv()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.tHU=function(R){var y={},u=function(M,K,h){K=K.match("_rid")?K.split("_rid")[0]:K;typeof h==="number"&&(h=JSON.stringify(h));M.requestIds?M.requestIds.push({endpoint:K,id:h}):M.requestIds=[{endpoint:K,id:h}]};
R=_.V(Object.entries(R));for(var v=R.next();!v.done;v=R.next()){var Q=_.V(v.value);v=Q.next().value;Q=Q.next().value;switch(v){case "GetBrowse_rid":u(y,v,Q);break;case "GetGuide_rid":u(y,v,Q);break;case "GetHome_rid":u(y,v,Q);break;case "GetPlayer_rid":u(y,v,Q);break;case "GetSearch_rid":u(y,v,Q);break;case "GetSettings_rid":u(y,v,Q);break;case "GetTrending_rid":u(y,v,Q);break;case "GetWatchNext_rid":u(y,v,Q);break;case "yt_red":y.isRedSubscriber=!!Q;break;case "yt_ad":y.isMonetized=!!Q}}return y};
aaO=function(R,y,u,v,Q,M){if(!_.f("web_csi_action_sampling_enabled")||!_.Ho(M).actionDisabled){var K=_.no(M);if(K.gelSpans)K.gelSpans[R]=!0;else{var h={};K.gelSpans=(h[R]=!0,h)}cAv++;R={spanName:R,spanLengthUsec:String(Math.round(y*1E3)),spanNonce:cAv};v&&(R.spanInfo=v);Q&&(R.parentSpanNonce=Q);u&&(R.spanStartTimeUsec=String(Math.round(u*1E3)));_.GP(M||"").span[String(R.spanName)]=R;u=_.no(M);u.gelSpans||(u.gelSpans={});_.Al(u.gelSpans,R);u=ZjU(M);M=_.Ho(M).cttAuthInfo;$dS().span(R,u,M);return R.spanNonce}};
_.Sbc=function(R){var y=_.U9("aft",R);if(y)return y;y=_.EB((R||"")+"TIMING_AFT_KEYS",["ol"]);for(var u=y.length,v=0;v<u;v++){var Q=_.U9(y[v],R);if(Q)return Q}return NaN};
_.YbS=function(R,y){_.CJ("ytglobal.timing"+(y||"")+"ready_",R)};
_.U9=function(R,y){if(R=_.la4(y)[R])return typeof R==="number"?R:R[R.length-1]};
_.AA4=function(R){var y=_.U9("_start",R),u=_.Sbc(R),v=!Ljv;y&&u&&v&&(jXL(sU4,new zqP(Math.round(u-y),R)),Ljv=!0)};
CkO=function(R){faz(R);guL();Dd4();R||(_.EB("TIMING_ACTION")&&_.kB("PREVIOUS_ACTION",_.EB("TIMING_ACTION")),_.kB("TIMING_ACTION",""))};
_.R$L=function(R){R=R===void 0?{}:R;_.A7(function(){kF();GXv();CkO();_.YbS(!1);R.cttAuthInfo&&(_.Ho().cttAuthInfo=R.cttAuthInfo);_.kB("TIMING_AFT_KEYS",[]);R.isHot?_.E9({loadType:"hot"}):_.E9({loadType:"warm"});_.kB("TIMING_ACTION","");delete _.EB("TIMING_INFO",{}).yt_lt;_.A7(_.Eu8)(R.startTime,void 0)})()};
_.$F=function(R,y,u,v){y=y===void 0?{}:y;_.A7(function(){var Q=u?u:R;yjG(Q);var M=y.sampleRate;if(!_.f("web_csi_action_sampling_enabled")||M===void 0||M<=1)M=!1;else{var K=ZjU(Q);M=B54(K)%M!==0}M&&(_.Ho(Q).actionDisabled=!0);_.GP(Q||"").info.actionType=R;y.cttAuthInfo&&(_.Ho(Q).cttAuthInfo=y.cttAuthInfo);_.kB(Q+"TIMING_ACTION",R);_.A7(_.Eu8)(y.startTime,Q);M={actionType:v||_.PkL(R)};y.logPreviousAction&&(M.previousAction=_.PkL(_.EB("TIMING_ACTION")));(K=_.$I())&&K!=="UNDEFINED_CSN"&&(M.clientScreenNonce=
K);_.E9(M,Q);_.YbS(!0,Q)})()};
yjG=function(R){_.A7(function(){kF(R);GXv(R);CkO(R)})()};
u8T=function(){_.A7(function(){var R=[],y;for(y in _.D6("ytcsi.".slice(0,-1)))y.endsWith("data_")&&R.push(y.slice(0,-5));R=_.V(R);for(y=R.next();!y.done;y=R.next())yjG(y.value);kF()})()};
_.QQz=function(R){return _.A7(function(){return _.vRP("_start",R)})()};
_.E9=function(R,y,u){_.A7(_.dr)(R,y,u===void 0?!1:u)};
_.qQ=function(R,y,u){return _.A7(_.Wo)(R,y,u)};
_.vRP=function(R,y){return _.A7(function(){var u=_.la4(y);return R in u})()};
Mtc=function(R){if(!_.f("universal_csi_network_ticks"))return"";R=_.Fq(R)||"";for(var y=Object.keys(jQT),u=0;u<y.length;u++){var v=y[u];if(R.includes(v))return v}return""};
VtU=function(R){if(!_.f("universal_csi_network_ticks"))return function(){};
var y=jQT[R];return y?(_.Xh(y),function(){var u=_.f("universal_csi_network_ticks")?(u=JjS[R])?_.Xh(u):!1:!1;return u}):function(){}};
_.Xh=function(R,y,u){return _.A7(function(){if(_.vRP(R,u))return!1;_.qQ(R,y,u);return!0})()};
_.mm=function(R,y,u){_.A7(function(){if(!_.QQz(u)||_.vRP(R,u))return!1;_.qQ(R,y,u);return!0})()};
_.A_=function(R){return _.A7(_.U9)(R,void 0)};
kF=function(R){_.QQz(R)&&_.qQ("aa",void 0,R)};
_.b2z=function(R,y,u,v,Q,M,K,h,b){var N=i2U();h=new _.kI({veType:y,youtubeData:M,jspbYoutubeData:h});M=Dq({},N);Q&&(M.cttAuthInfo=Q);Q={csn:N,pageVe:h.getAsJson()};_.f("expectation_logging")&&b&&b.screenCreatedLoggingExpectations&&(Q.screenCreatedLoggingExpectations=b.screenCreatedLoggingExpectations);u&&u.visualElement?(Q.implicitGesture={parentCsn:u.clientScreenNonce,gesturedVe:u.visualElement.getAsJson()},K&&(Q.implicitGesture.gestureType=K)):u&&_.kT(new _.OL("newScreen() parent element does not have a VE - rootVe",
y));v&&(Q.cloneCsn=v);R?Gp("screenCreated",Q,R,M):_.P3("screenCreated",Q,M);jXL(h3G,new KfT(N));po.clear();IyP.clear();h$4.clear();return N};
t_=function(R,y,u,v,Q,M){M=M===void 0?{}:M;FfL(R,y,u,[v],Q===void 0?!1:Q,M)};
FfL=function(R,y,u,v,Q,M){Q=Q===void 0?!1:Q;M=M===void 0?{}:M;Object.assign(M,Dq({cttAuthInfo:q4(y)||void 0},y));for(var K=_.V(v),h=K.next();!h.done;h=K.next()){h=h.value;var b=h.getAsJson();(_.Ps.isEmpty(b)||!b.trackingParams&&!b.veType)&&_.kT(Error("uf"));if(_.f("no_client_ve_attach_unless_shown")){var N=wOW(h,y);if(b.veType&&!IyP.has(N)&&!h$4.has(N)&&!Q){if(!_.f("il_attach_cache_limit")||po.size<1E3){po.set(N,[R,y,u,h]);return}_.f("il_attach_cache_limit")&&po.size>1E3&&_.kT(new _.OL("IL Attach cache exceeded limit"))}h=
wOW(u,y);po.has(h)?N9L(u,y):h$4.set(h,!0)}}v=v.filter(function(T){T.csn!==y?(T.csn=y,T=!0):T=!1;return T});
u={csn:y,parentVe:u.getAsJson(),childVes:_.Ws(v,function(T){return T.getAsJson()})};
y==="UNDEFINED_CSN"?co("visualElementAttached",M,u):R?Gp("visualElementAttached",u,R,M):_.P3("visualElementAttached",u,M)};
oR8=function(R,y,u,v,Q){T9P(R,y,u,Q)};
T9P=function(R,y,u,v){xvv(u,y);var Q=Dq({cttAuthInfo:q4(y)||void 0},y);u={csn:y,ve:u.getAsJson(),eventType:1};v&&(u.clientData=v);y==="UNDEFINED_CSN"?co("visualElementShown",Q,u):R?Gp("visualElementShown",u,R,Q):_.P3("visualElementShown",u,Q)};
B9T=function(R,y,u,v){xvv(u,y);var Q=Dq({cttAuthInfo:q4(y)||void 0},y);u={csn:y,ve:u.getAsJson(),eventType:4};v&&(u.clientData=v);y==="UNDEFINED_CSN"?co("visualElementShown",Q,u):R?Gp("visualElementShown",u,R,Q):_.P3("visualElementShown",u,Q)};
fyv=function(R,y,u,v,Q){var M=(v=v===void 0?!1:v)?16:8;v=Dq({cttAuthInfo:q4(y)||void 0,endOfSequence:v},y);u={csn:y,ve:u.getAsJson(),eventType:M};Q&&(u.clientData=Q);y==="UNDEFINED_CSN"?co("visualElementHidden",v,u):R?Gp("visualElementHidden",u,R,v):_.P3("visualElementHidden",u,v)};
lyS=function(R,y,u,v,Q){e$O(R,y,u,void 0,v,Q)};
e$O=function(R,y,u,v,Q){xvv(u,y);v=v||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var M=Dq({cttAuthInfo:q4(y)||void 0},y);u={csn:y,ve:u.getAsJson(),gestureType:v};Q&&(u.clientData=Q);y==="UNDEFINED_CSN"?co("visualElementGestured",M,u):R?Gp("visualElementGestured",u,R,M):_.P3("visualElementGestured",u,M)};
O28=function(R,y,u,v){var Q=Dq({cttAuthInfo:q4(y)||void 0},y);u={csn:y,ve:u.getAsJson(),clientData:v};y==="UNDEFINED_CSN"?co("visualElementStateChanged",Q,u):R?Gp("visualElementStateChanged",u,R,Q):_.P3("visualElementStateChanged",u,Q)};
Z2P=function(){var R=KBT(16);for(var y=[],u=0;u<R.length;u++)y.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(R[u]&63));return y.join("")};
co=function(R,y,u){H2E.push({payloadName:R,payload:u,jspbPayload:void 0,options:y});nR8||(nR8=F8v())};
IVP=function(R){if(H2E){for(var y=_.V(H2E),u=y.next();!u.done;u=y.next())u=u.value,u.payload&&(u.payload.csn=R.csn,_.P3(u.payloadName,u.payload,u.options));H2E.length=0}nR8=0};
wOW=function(R,y){return""+R.getAsJson().veType+R.getAsJson().veCounter+y};
xvv=function(R,y){if(_.f("no_client_ve_attach_unless_shown")){var u=wOW(R,y);IyP.set(u,!0);N9L(R,y)}};
N9L=function(R,y){R=wOW(R,y);po.has(R)&&(y=po.get(R)||[],t_(y[0],y[1],y[2],y[3],!0),po.delete(R))};
Dq=function(R,y){_.f("log_sequence_info_on_gel_web")&&(R.sequenceGroup=y);return R};
_.ak=function(R,y,u){_.A7(t_)(void 0,R,y,u)};
_.Si=function(R,y,u){_.A7(FfL)(void 0,R,y,u)};
_.YF=function(R,y){_.A7(oR8)(void 0,R,y,void 0,void 0,void 0)};
_.Lo=function(R,y,u){_.A7(function(){_.cu(y,function(v){B9T(void 0,R,v,u)})})()};
_.s9=function(R,y,u,v){_.A7(function(){_.cu(y,function(Q){fyv(void 0,R,Q,u,v)})})()};
_.zP=function(R,y,u){_.A7(lyS)(void 0,R,y,u,void 0)};
_.Co=function(R,y,u,v){_.A7(e$O)(void 0,R,y,u,v,void 0)};
_.R3=function(R,y,u){_.A7(O28)(void 0,R,y,u,void 0)};
GhU=function(R,y){yw.set(R,y)};
rjG=function(R){return uE?uE.enabledSpans?!!uE.enabledSpans[R]:!0:!1};
P3c=function(R){if(!uE)throw Error("xf");uE.processors.push(R)};
Wf4=function(R,y){if(R){y=y===void 0?1:y;if(R&&(R.endTime=performance.now(),y&&(R.status=y),y=uE)){y=_.V(y.processors);for(var u=y.next();!u.done;u=y.next()){var v=void 0,Q=void 0;(Q=(v=u.value).onSpanEnd)==null||Q.call(v,R)}}if(y=uE){if(R!==y.activeSpan)throw Error("yf");var M;y.activeSpan=(M=y.activeSpan)==null?void 0:M.parent}}};
dvU=function(R,y,u){var v;if((v=uE)&&rjG(R)){var Q=v.nextSpanId++,M=v.activeSpan;R={id:Q,parent:M,name:R,attributes:y,traceId:M?M.traceId:Q,sessionId:v.sessionId,startTime:performance.now(),status:0};if(v.activeSpan){var K;(K=v.activeSpan).children||(K.children=[]);v.activeSpan.children.push(R)}v=_.V(v.processors);for(K=v.next();!K.done;K=v.next())Q=y=void 0,(Q=(y=K.value).onSpanStart)==null||Q.call(y,R);v=R}else v=void 0;R=uE;v=v&&R?R.activeSpan=v:void 0;if(!v)return u();try{var h=u(v);Wf4(v);return h}catch(b){throw Wf4(v,
2),b;}};
UvS=function(R,y){var u=Object.keys(R);R=new _.OL("[Command Handler] "+y,{filteredCommandNames:u,originalCommand:R});_.dI(R)};
kh4=function(R,y){UvS(R,y+" was called but not set")};
ER4=function(R){return function(){return new R}};
vd=function(R){return function(){return _.ua().resolve(R)}};
$vc=function(R,y){var u=_.e(R,_.Dz);if(u&&(u=y[u.signal]))return u();R=_.V(Object.keys(R));for(u=R.next();!u.done;u=R.next())if(u=u.value,y[u]&&(u=y[u]))return u()};
Qw=function(R,y,u,v){return{browseEndpoint:{browseId:R},commandMetadata:{webCommandMetadata:{url:y,rootVe:u,webPageType:v===void 0?"WEB_PAGE_TYPE_BROWSE":v}}}};
qD4=function(R,y,u){var v=y=y===void 0?0:y;u=u===void 0?0:u;var Q=u-v;return _.j6(R,"PPSV",void 0,void 0,(Q>600?0:Q<60||u<=0||v/u>.9)?0:y)};
_.j6=function(R,y,u,v,Q){var M="/watch?v="+R;R={videoId:R};y&&(R.playlistId=y,M+="&list="+y);v&&(M+="&pp="+v);Q&&(R.startTimeSeconds=Q,M+="&t="+Q+"s");y={watchEndpoint:R,commandMetadata:{webCommandMetadata:{url:M,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};u&&(y.clickTrackingParams=u);v&&(_.e(y,_.zM).playerParams=v);return y};
XOT=function(R){return{browseEndpoint:{browseId:"VL"+R},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+R,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
mvG=function(R){if(R){var y;if(R){var u=(y=_.e(R.commandMetadata,_.QL))==null?void 0:y.url;y=!(!u||u==="/service_ajax")}else y=!1;if(y)return R;var v;if(R=(v=_.e(R,_.TP))==null?void 0:v.commands)for(v=_.V(R),R=v.next();!R.done;R=v.next())if(R=mvG(R.value))return R}};
_.Mq=function(R){return{runs:[{text:R}]}};
AjT=function(R,y){return R&&y?{runs:[{text:R,navigationEndpoint:y}]}:void 0};
JN=function(R){return R?_.Mq(R):void 0};
_.Vw=function(R){return R?{simpleText:R}:void 0};
_.iE=function(R){var y=R.type;R=R.payload;y={type:y};R!==void 0&&(y.payload=R);return y};
Dvz=function(R,y,u){for(var v=Object.assign({},R),Q=_.V(Object.keys(y)),M=Q.next();!M.done;M=Q.next()){M=M.value;var K=R[M],h=y[M];if(h===void 0)delete v[M];else if(K===void 0)v[M]=h;else if(Array.isArray(h)&&Array.isArray(K))v[M]=u?[].concat(_.P$(K),_.P$(h)):h;else if(!Array.isArray(h)&&_.Sv(h)&&!Array.isArray(K)&&_.Sv(K))v[M]=Dvz(K,h,u);else if(typeof h===typeof K)v[M]=h;else return y=new _.OL("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:M,originalValue:K,updateValue:h}),
_.dI(y),R}return v};
cjO=function(R){if(!R.length)return"";try{if(pOU)return pOU.decode(R);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(R)}catch(K){}for(var y=0,u=[],v=R.length;y<v;){for(var Q=0;Q<1024&&y<v;){var M=R[y++];if(M<128)ttP[Q++]=M;else{if(M<224)M=(M&31)<<6|R[y++]&63;else if(M<240)M=(M&15)<<12|(R[y++]&63)<<6|R[y++]&63;else{if(Q+1===1024){--y;break}M=(M&7)<<18|(R[y++]&63)<<12|(R[y++]&63)<<6|R[y++]&63;M-=65536;ttP[Q++]=55296|M>>10;M=56320|M&1023}ttP[Q++]=M}}M=String.fromCharCode.apply(String,
ttP);Q<1024&&(M=M.substring(0,Q));u.push(M)}return u.join("")};
SD4=function(R,y){var u;if((u=ayW)==null?0:u.encodeInto)return y=ayW.encodeInto(R,y),y.read<R.length?R.length*4:y.written;for(var v=u=0;v<R.length;v++){var Q=R.charCodeAt(v);Q<128?y[u++]=Q:(Q<2048?y[u++]=Q>>6|192:((Q&64512)===55296&&v+1<R.length&&(R.charCodeAt(v+1)&64512)===56320?(Q=65536+((Q&1023)<<10)+(R.charCodeAt(++v)&1023),y[u++]=Q>>18|240,y[u++]=Q>>12&63|128):y[u++]=Q>>12|224,y[u++]=Q>>6&63|128),y[u++]=Q&63|128)}return u};
YDW=function(R,y,u){if(y&&u&&u.buffer===y.exports.memory.buffer){var v=y.realloc(u.byteOffset,R);if(v)return new Uint8Array(y.exports.memory.buffer,v,R)}R=y?new Uint8Array(y.exports.memory.buffer,y.malloc(R),R):new Uint8Array(R);u&&R.set(u);return R};
_.bE=function(R){R=new LfO(new sQT([_.zT(decodeURIComponent(R))]));if(z$4(R,2)){var y=Kz(R);var u=R.pos;var v=R.arrayView;u=u===void 0?0:u;var Q=y===void 0?-1:y;u=u===void 0?0:u;Q=Q===void 0?-1:Q;if(v.totalLength&&Q){Q<0&&(Q=v.totalLength-u);v.focus(u);if(!(u-v.arrayPos+Q<=v.arrays[v.arrayIdx].length)){var M=v.arrayIdx,K=v.arrayPos;v.focus(u+Q-1);K=new Uint8Array(v.arrayPos+v.arrays[v.arrayIdx].length-K);for(var h=0,b=M;b<=v.arrayIdx;b++)K.set(v.arrays[b],h),h+=v.arrays[b].length;v.arrays.splice(M,
v.arrayIdx-M+1,K);v.arrayIdx=0;v.arrayPos=0;v.focus(u)}M=v.arrays[v.arrayIdx];v=new DataView(M.buffer,M.byteOffset+u-v.arrayPos,Q)}else v=new DataView(new ArrayBuffer(0));v=new Uint8Array(v.buffer,v.byteOffset,v.byteLength);R.pos+=y;y=v}else y=void 0;y=y?cjO(y):void 0;R=z$4(R,4)?Kz(R):void 0;v=gRT[R];if(typeof v==="undefined")throw R=new _.OL("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:R}),_.dI(R),R;return{entityTypeFieldNumber:R,entityType:v,entityId:y}};
_.Nq=function(R,y,u){u=u===void 0?0:u;var v=new C3E;if(ayW)R=ayW.encode(R);else{var Q=new Uint8Array(Math.ceil(R.length*1.2)),M=SD4(R,Q);Q.length<M&&(Q=new Uint8Array(M),M=SD4(R,Q));Q.length>M&&(Q=Q.subarray(0,M));R=Q}R!==void 0&&(F9(v,18),Q=R.length,F9(v,Q),wN(v,Q),v.buf.set(R,v.pos),v.pos+=Q);R=Rlz[y];if(typeof R==="undefined")throw u=new _.OL("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:y}),_.dI(u),u;R!==void 0&&(F9(v,32),F9(v,R));F9(v,40);F9(v,1);y=new Uint8Array(v.buf.buffer,
v.buf.byteOffset,v.pos);return encodeURIComponent(_.nZ(y,u))};
y4S=function(R){R=R.key||R.id;if(!R)throw Error("zf");return R};
vWc=function(R,y){R=R===void 0?{}:R;return uav(R,y)};
QGW=function(R,y,u,v){if(v===void 0)return v=Object.assign({},R[y]||{}),u=(delete v[u],v),v={},Object.assign({},R,(v[y]=u,v));var Q={},M={};return Object.assign({},R,(M[y]=Object.assign({},R[y],(Q[u]=v,Q)),M))};
jGW=function(R,y,u,v,Q){var M=R[y];if(M==null||!M[u])return R;v=Dvz(M[u],v,Q==="REPEATED_FIELDS_MERGE_OPTION_APPEND");Q={};M={};return Object.assign({},R,(M[y]=Object.assign({},R[y],(Q[u]=v,Q)),M))};
_.TI=function(R,y,u){return R[y]?R[y][u]||null:null};
J4E=function(){if(MEP)return MEP();var R={};MEP=yO("PersistentEntityStoreDb",{objectStores:(R.EntityStore={addedAtVersion:1},R.EntityAssociationStore={addedAtVersion:2},R),shared:!1,upgrade:function(y,u){u(1)&&me(XM(y,"EntityStore",{keyPath:"key"}),"entityType","entityType");u(2)&&(y=XM(y,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),me(y,"byParentEntityKey","parentEntityKey"),me(y,"byChildEntityKey","childEntityKey"))},
version:3});return MEP()};
VES=function(R){return _.SX(J4E(),R)};
o3=function(R){return window.Int32Array?new Int32Array(R):Array(R)};
KEU=function(R){return _.SX(itO(),R)};
IET=function(R){return new xs("WRONG_DATA_TYPE",{encoderVersion:R})};
hlz=function(R){return R instanceof Error?new xs("UNKNOWN_ENCODE_ERROR",{originalMessage:R.message}):new xs("UNKNOWN_ENCODE_ERROR")};
bt4=function(R){return R instanceof Error?new xs("UNKNOWN_DECODE_ERROR",{originalMessage:R.message}):new xs("UNKNOWN_DECODE_ERROR")};
FEW=function(R,y){R=R instanceof xs?R:y(R);_.dI(R);throw R;};
wev=function(R){R=(new TextEncoder).encode(R).subarray(0,16);var y=new Uint8Array(16);y.set(R);return y};
Tuc=function(R){var y=NuL[R];if(y)return y;_.kT(new _.OL("Entity model not found.",{entityType:R}))};
_.Bd=function(){oWS||(oWS=xwS());return oWS};
xwS=function(){var R,y,u;return _.I(function(v){if(v.nextAddress==1)return _.wY(v,2),v.yield(_.Rz(),4);if(v.nextAddress!=2){R=v.yieldResult;if(!R||!_.la()||typeof _.uO.BroadcastChannel==="undefined")return v.return();y=new BuG;return v.return(new fz(R,y))}u=_.B$(v);u instanceof Error&&_.dI(u);return v.return()})};
_.e6=function(R,y){var u;return _.I(function(v){if(v.nextAddress==1){u=R.mutations;if(!u||u.length<=0)return v.return();y&&y.dispatch(_.iE({type:"ENTITY_LOADED",payload:u}));return v.yield(fE4(u),2)}u.length=0;_.f$(v)})};
fE4=function(R){var y;return _.I(function(u){return u.nextAddress==1?u.yield(_.Bd(),2):(y=u.yieldResult)?u.yield(_.lE(y,"readwrite",function(v){for(var Q={},M=_.V(R),K=M.next(),h={};!K.done;h={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},K=M.next())h.mutation$jscomp$4=K.value,h.mutation$jscomp$4.entityKey&&elG(h.mutation$jscomp$4)&&(h.mutationEntityType$jscomp$3=(0,_.Ps.getAnyKey)(h.mutation$jscomp$4.payload),K=void 0,h.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(K=function(b){return function(){return _.lET(v,
b.mutation$jscomp$4.payload[b.mutationEntityType$jscomp$3],b.mutationEntityType$jscomp$3)}}(h)),h.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(K=function(b){return function(){return OtU(v,b.mutation$jscomp$4.entityKey)}}(h)),h.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(K=function(b){return function(){return ZtW(v,b.mutation$jscomp$4.entityKey,b.mutation$jscomp$4.payload[b.mutationEntityType$jscomp$3],b.mutationEntityType$jscomp$3)}}(h)),K&&(Q[h.mutation$jscomp$4.entityKey]=
Q[h.mutation$jscomp$4.entityKey]?Q[h.mutation$jscomp$4.entityKey].then(K):K()));
return mi.all(Object.values(Q))}),0):u.return()})};
elG=function(R){var y;R=(y=R.options)==null?void 0:y.persistenceOption;return R==="ENTITY_PERSISTENCE_OPTION_PERSIST"||R==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
GCS=function(R,y){var u,v;_.I(function(Q){if(Q.nextAddress==1)return Q.yield(_.Bd(),2);if(Q.nextAddress!=3)return(u=Q.yieldResult)?Q.yield(_.lE(u,"readonly",function(M){var K={},h=Object.keys(y).map(function(b){var N=y[b]?[].concat(_.P$(y[b])):[];return Htv(M,b,N,K)});
return mi.all(h).then(function(){return K})}),3):Q.return();
v=Q.yieldResult;Object.keys(v).length>0&&R.dispatch(nWS(v));_.f$(Q)})};
Htv=function(R,y,u,v){return Oq(R,y,u).then(function(Q){v[y]=r4S(u,Q)})};
r4S=function(R,y){if(y.length!==R.length)throw Error("Cf");return y.reduce(function(u,v,Q){u[R[Q]]=v;return u},{})};
dw8=function(R){var y=R.filter(function(Q){var M;return(Q==null?void 0:(M=Q.transferEntity)==null?void 0:M.transferState)==="TRANSFER_STATE_COMPLETE"}).length,u=R.filter(function(Q){var M;
return(Q==null?void 0:(M=Q.transferEntity)==null?void 0:M.transferState)==="TRANSFER_STATE_FAILED"}).length,v=R.filter(function(Q){var M;
return(Q==null?void 0:(M=Q.transferEntity)==null?void 0:M.transferState)&&PuL.includes(Q.transferEntity.transferState)});
if(!(y||v!=null&&v.length))return 0;y=_.WEU(v)+y;R=R.length-u;return R===0?0:Math.round(y*100/R)/100};
_.WEU=function(R){var y=[];y=y.concat.apply(y,_.P$(R.filter(function(M){return M.streamEntity}).map(function(M){var K=Object.assign({},M.streamEntity),h,b=(h=M.transferEntity)==null?void 0:h.transferState;
K.streamsProgress=K.streamsProgress||[];K.streamsProgress=K.streamsProgress.map(function(N){var T=Object.assign({},N);T.numBytesDownloaded=b==="TRANSFER_STATE_COMPLETE"?N.numTotalBytes:N.numBytesDownloaded;return T});
return K}).map(function(M){return M.streamsProgress})));
var u=R=0;y=_.V(y);for(var v=y.next();!v.done;v=y.next()){var Q=v.value;v=Number(Q.numBytesDownloaded);Q=Number(Q.numTotalBytes);u+=isNaN(v)?0:v;R+=isNaN(Q)?0:Q}return R===0?0:Math.round(u*100/R)/100};
UwT=function(R){if(!R||!R.expirationTimestamp||!R.action)return!1;var y=(0,_.uQ)()/1E3;return Number(R.expirationTimestamp)>=y};
Zn=function(R){return R&&R.expirationTimestamp&&R.action?UwT(R)&&R.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.Hd=function(R){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(R||"TRANSFER_STATE_UNKNOWN")};
kCO=function(R){var y=new C3E;if(R!==void 0){var u=Math.ceil(Math.log2(R.length*4+2)/7);u=u===void 0?2:u;F9(y,10);y.submessagePosStack.push(y.pos);y.submessagePosStack.push(u);y.pos+=u;wN(y,R.length*1.2);u=SD4(R,y.buf.subarray(y.pos));y.pos+u>y.buf.length&&(wN(y,u),u=SD4(R,y.buf.subarray(y.pos)));y.pos+=u;R=y.submessagePosStack.pop();u=y.submessagePosStack.pop();for(var v=y.pos-u-R;R--;){var Q=R?128:0;y.view.setUint8(u++,v&127|Q);v>>=7}}y=new Uint8Array(y.buf.buffer,y.buf.byteOffset,y.pos);return(new TextDecoder("utf-8")).decode(y)};
_.nz=function(R){var y=0;R=_.V(R);for(var u=R.next(),v={};!u.done;v={transferState$jscomp$3:void 0},u=R.next()){var Q=u.value,M=void 0;u=(M=Q.streamEntity)!=null?M:{};M=void 0;v.transferState$jscomp$3=(M=Q.transferEntity)==null?void 0:M.transferState;M=Q=void 0;((Q=u)==null?0:(M=Q.streamsProgress)==null?0:M.length)&&u.streamsProgress.forEach(function(K){return function(h){h=Number(K.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?h.numTotalBytes:h.numBytesDownloaded);isFinite(h)&&(y+=h)}}(v))}return y};
EWW=function(R){return R.some(function(y){var u;if(!(y==null?0:(u=y.transferEntity)==null?0:u.transferState)){var v;return!(y==null?0:(v=y.policyEntity)==null?0:v.action)||y.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return PuL.includes(y.transferEntity.transferState)})};
$wG=function(R,y){if(!y)return!1;if(_.f("of_pb_en_po_ks"))return!0;var u;R=(u=_.TI(R,"offlineVideoPolicy",_.Nq(y,"offlineVideoPolicy")))!=null?u:void 0;return!!R&&Zn(R)};
_.XeG=function(R){var y=["TRANSFER_STATE_COMPLETE"];y=y===void 0?qcv:y;return R.filter(function(u){var v,Q;return y.includes((Q=(v=u.transferEntity)==null?void 0:v.transferState)!=null?Q:"TRANSFER_STATE_UNKNOWN")})};
mwE=function(R,y){if(y){var u,v=(u=_.TI(R,"playbackData",_.Nq(y,"playbackData")))!=null?u:null,Q;u=(Q=_.TI(R,"transfer",_.Nq(y,"transfer")))!=null?Q:null;var M;Q=(M=_.TI(R,"offlineVideoStreams",_.Nq(y,"offlineVideoStreams")))!=null?M:null;var K;R=(K=_.TI(R,"offlineVideoPolicy",_.Nq(y,"offlineVideoPolicy")))!=null?K:null;if(v||u||Q||R)return{playbackDataEntity:v,transferEntity:u,streamEntity:Q,policyEntity:R}}};
_.GI=function(R){var y=R.playbackData;if(!y)return[];var u=[];y=_.V(Object.keys(y));for(var v=y.next();!v.done;v=y.next()){var Q=v.value;if(!A4O(R,_.bE(Q).entityId)&&(v=mwE(R,_.bE(Q).entityId))){var M=void 0,K=void 0;Q=(K=Number((M=_.TI(R,"playbackData",Q))==null?void 0:M.streamDownloadTimestampSeconds))!=null?K:(0,_.uQ)();u.push({entity:v,streamDownloadTimestamp:Q})}}return u.sort(function(h,b){var N=h.streamDownloadTimestamp,T=b.streamDownloadTimestamp;return T===N?h.entity.streamEntity&&!b.entity.streamEntity?
1:-1:T-N}).map(function(h){return h.entity})};
Dwv=function(R){return _.XeG(_.GI(R))};
_.pev=function(R){return _.GI(R).filter(function(y){var u;if(((u=y.policyEntity)==null?0:u.action)&&y.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var v;if((v=y.transferEntity)==null?0:v.transferState){var Q;return PuL.includes((Q=y.transferEntity)==null?void 0:Q.transferState)}return!0})};
A4O=function(R,y){var u;return((u=_.TI(R,"downloadStatusEntity",_.Nq(y,"downloadStatusEntity")))==null?void 0:u.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
tEO=function(R){var y;if(R==null?0:(y=R.playbackDataEntity)==null?0:y.key)return _.bE(R.playbackDataEntity.key).entityId;var u;if(R==null?0:(u=R.transferEntity)==null?0:u.key)return _.bE(R.transferEntity.key).entityId;var v;if(R==null?0:(v=R.streamEntity)==null?0:v.key)return _.bE(R.streamEntity.key).entityId;var Q;if(R==null?0:(Q=R.policyEntity)==null?0:Q.key)return _.bE(R.policyEntity.key).entityId};
aEP=function(R){var y=new Set,u;R=(u=R.mainDownloadsListEntity)==null?void 0:u[c4v];var v;if(!(R==null?0:(v=R.downloads)==null?0:v.length))return y;var Q;R==null||(Q=R.downloads)==null||Q.forEach(function(M){(M==null?0:M.videoItem)&&y.add(M.videoItem)});
return y};
rN=function(R,y){if(y){var u=_.TI(R,"mainVideoEntity",_.Nq(y,"mainVideoEntity")),v=_.TI(R,"downloadStatusEntity",_.Nq(y,"downloadStatusEntity")),Q=_.TI(R,"ytMainChannelEntity",_.Nq(y,"ytMainChannelEntity")),M={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};R=mwE(R,y);v=(v==null?void 0:v.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.f("woffle_render_failed_download_state_ks")&&(v==null?void 0:v.downloadState)==="DOWNLOAD_STATE_FAILED";!R&&v&&(R=M);if(R&&u&&
Q)return Object.assign({},{videoEntity:u,channelEntity:Q},R)}};
Ycc=function(R,y){return Sc8(R,y)==="TRANSFER_STATE_COMPLETE"&&$wG(R,y)};
LEE=function(R,y){if(!y)return!1;var u;R=(u=_.TI(R,"playbackData",_.Nq(y,"playbackData")))!=null?u:void 0;return!!R&&!!R.playerResponseJson};
Sc8=function(R,y){if(!y)return"TRANSFER_STATE_UNKNOWN";var u=_.TI(R,"transfer",_.Nq(y,"transfer"));if(u){var v;return(v=u.transferState)!=null?v:"TRANSFER_STATE_UNKNOWN"}u=_.TI(R,"offlineOrchestrationActionWrapperEntity",_.Nq(y,"offlineOrchestrationActionWrapperEntity"));R=_.TI(R,"mainVideoEntity",_.Nq(y,"mainVideoEntity"));return u||R?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
sGz=function(R,y){if(!y)return"TRANSFER_STATE_UNKNOWN";if(R=_.TI(R,"transfer",_.Nq(y,"transfer"))){var u;return(u=R.transferState)!=null?u:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
zlE=function(R,y){return y&&(R=_.TI(R,"videoPlaybackPositionEntity",_.Nq(y,"videoPlaybackPositionEntity")),R==null?0:R.lastPlaybackPositionSeconds)?Number(R.lastPlaybackPositionSeconds):0};
CuP=function(R,y){return gW8(R).some(function(u){var v;return(u==null?void 0:(v=u.mainPlaylistEntity)==null?void 0:v.playlistId)===y})};
ysO=function(R,y,u){var v=RxG(R,y);if(!v.length)return[];y=[];v=_.V(v);for(var Q=v.next();!Q.done;Q=v.next()){Q=Q.value;var M=rN(R,Q);u&&Sc8(R,Q)!=="TRANSFER_STATE_COMPLETE"||M&&y.push(M)}return y};
RxG=function(R,y){if(!y)return[];var u=_.Nq(y,"mainPlaylistEntity"),v;y=(v=R.mainPlaylistEntity)==null?void 0:v[u];v=[];if(y==null||!y.videos)return v;y=_.V(y.videos);for(u=y.next();!u.done;u=y.next()){u=u.value;var Q=void 0,M=void 0,K=void 0,h=(Q=R)==null?void 0:(M=Q.mainPlaylistVideoEntity)==null?void 0:(K=M[u])==null?void 0:K.video;h&&(u=_.bE(h).entityId)&&v.push(u)}return v};
ueL=function(R,y){if(y){var u=_.TI(R,"mainPlaylistEntity",_.Nq(y,"mainPlaylistEntity")),v=_.TI(R,"mainPlaylistDownloadStateEntity",_.Nq(y,"mainPlaylistDownloadStateEntity"));R=_.TI(R,"ytMainChannelEntity",_.Nq(y,"ytMainChannelEntity"));if(v&&u)return Object.assign({},{mainPlaylistEntity:u,mainPlaylistDownloadStateEntity:v},!!R&&{channelEntity:R})}};
gW8=function(R){return v0c(R).sort(function(y,u){return u.addedTimestampMillis-y.addedTimestampMillis}).map(function(y){return y.downloadedPlaylistEntities})};
v0c=function(R){var y=R.mainPlaylistDownloadStateEntity,u=[];if(!y)return u;for(var v=_.V(Object.keys(y)),Q=v.next();!Q.done;Q=v.next()){var M=Q.value;Q=ueL(R,_.bE(M).entityId);var K=void 0;M=Number((K=y[M])==null?void 0:K.addedTimestampMillis);K=isNaN(M)?(0,_.uQ)():M;Q!==void 0&&u.push({downloadedPlaylistEntities:Q,addedTimestampMillis:K})}return u};
QmT=function(R){var y,u=(y=R.mainPlaylistVideoEntity)!=null?y:{};return new Set(gW8(R).reduce(function(v,Q){v=v===void 0?[]:v;var M,K;Q==null||(M=Q.mainPlaylistEntity)==null||(K=M.videos)==null||K.forEach(function(h){var b;(h=(b=u[h])==null?void 0:b.video)&&v.push(h)});
return v},[]))};
jmU=function(R){return"downloadedMusicPlaylistEntities"in R};
M24=function(R){return"mainPlaylistEntity"in R&&"mainPlaylistDownloadStateEntity"in R};
JsG=function(R){return"videoEntity"in R&&"channelEntity"in R};
V2O=function(R){var y=R.musicPlaylistDownloadMetadataEntity,u=[];if(!y)return u;for(var v=_.V(Object.keys(y)),Q=v.next();!Q.done;Q=v.next()){Q=Q.value;a:{var M=R,K=_.bE(Q).entityId;if(K){var h=_.TI(M,"musicPlaylist",_.Nq(K,"musicPlaylist"));M=_.TI(M,"musicPlaylistDownloadMetadataEntity",_.Nq(K,"musicPlaylistDownloadMetadataEntity"));if(h&&M){h={musicPlaylistEntity:h,musicPlaylistDownloadStateEntity:M};break a}}h=void 0}M=void 0;Q=Number((M=y[Q])==null?void 0:M.addedTimestampMillis);Q=isNaN(Q)?(0,_.uQ)():
Q;h!==void 0&&u.push({downloadedMusicPlaylistEntities:h,addedTimestampMillis:Q})}return u};
ixE=function(R){var y=new Set;R=_.V(R);for(var u=R.next();!u.done;u=R.next())if(u=u.value,"musicPlaylistEntity"in u&&"musicPlaylistDownloadStateEntity"in u){u=_.V(u.musicPlaylistEntity.tracks);for(var v=u.next();!v.done;v=u.next())y.add(v.value)}return y};
KIc=function(R,y){if(y){var u=_.TI(R,"musicTrack",_.Nq(y,"musicTrack")),v=_.TI(R,"musicArtist",_.Nq(y,"musicArtist"))||{};if((R=mwE(R,y))&&u&&v)return Object.assign({},{musicTrackEntity:u,musicArtistEntity:v},R)}};
IXc=function(R){var y=R.musicTrackDownloadMetadataEntity,u=[];if(!y)return[];y=_.V(Object.keys(y));for(var v=y.next();!v.done;v=y.next()){var Q=v.value;v=KIc(R,_.bE(Q).entityId);var M=void 0;Q=Number((M=_.TI(R,"musicTrackDownloadMetadataEntity",Q))==null?void 0:M.addedTimestampMillis);M=isNaN(Q)?(0,_.uQ)():Q;v!==void 0&&u.push({downloadedMusicEntities:v,addedTimestampMillis:M})}return u};
FIc=function(R,y){if(!y)return[];if(Object.values(hxP).includes(y))return bx4(R,y);y=_.Nq(y,"musicPlaylist");var u;R=(u=R.musicPlaylist)==null?void 0:u[y];u=[];if(R==null||!R.tracks)return u;R=_.V(R.tracks);for(y=R.next();!y.done;y=R.next())(y=_.bE(y.value).entityId)&&u.push(y);return u};
bx4=function(R,y){var u=new Set,v=V2O(R).map(function(M){return M.downloadedMusicPlaylistEntities});
v=ixE(v);v=_.V(v);for(var Q=v.next();!Q.done;Q=v.next())(Q=_.bE(Q.value).entityId)&&u.add(Q);return wr4(R).downloadedMusicEntities.filter(function(M){var K;if((K=M.musicTrackEntity)!=null&&K.videoId){M=M.musicTrackEntity;if(K=y==="PPOM"?!0:!u.has(M.videoId))b:switch(M=M.musicVideoType,y){case "PPSE":K=M==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:K=M!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}M=K}else M=!1;return M}).map(function(M){var K;
return(K=M.musicTrackEntity)==null?void 0:K.videoId})};
wr4=function(R){var y=IXc(R).sort(function(u,v){return v.addedTimestampMillis-u.addedTimestampMillis}).map(function(u){return"downloadedMusicEntities"in u?u.downloadedMusicEntities:jmU(u)?u.downloadedMusicPlaylistEntities:{}});
R=V2O(R).sort(function(u,v){return v.addedTimestampMillis-u.addedTimestampMillis}).map(function(u){return"downloadedMusicEntities"in u?u.downloadedMusicEntities:jmU(u)?u.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:y,downloadedMusicPlaylistEntities:R}};
TQT=function(R,y){y=_.EB("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?FIc(R,y):RxG(R,y);if(!y.length)return"TRANSFER_STATE_UNKNOWN";y=y.map(function(u){return sGz(R,u)});
return NQz(y)};
NQz=function(R){var y=new Set(R);if(y.has("TRANSFER_STATE_FAILED")&&y.size===1)return"TRANSFER_STATE_FAILED";y.delete("TRANSFER_STATE_FAILED");if(y.has("TRANSFER_STATE_UNKNOWN")&&y.size===1)return"TRANSFER_STATE_PRE_TRANSFER";y.delete("TRANSFER_STATE_UNKNOWN");if(y.has("TRANSFER_STATE_PRE_TRANSFER")&&y.size===1||y.size===0)return"TRANSFER_STATE_PRE_TRANSFER";R=y.has("TRANSFER_STATE_TRANSFERRING");y=y.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return R||y?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
Pd=function(R){var y=R.mainVideoDownloadStateEntity,u=[];if(!y)return[];y=_.V(Object.keys(y));for(var v=y.next();!v.done;v=y.next()){var Q=v.value;if(!A4O(R,_.bE(Q).entityId)){v=rN(R,_.bE(Q).entityId);var M=void 0,K=void 0;Q=(K=Number((M=_.TI(R,"mainVideoDownloadStateEntity",Q))==null?void 0:M.addedTimestampMillis))!=null?K:(0,_.uQ)();v!==void 0&&u.push({downloadedVideoEntities:v,addedTimestampMillis:Q})}}return u};
o0z=function(R){return Pd(R).sort(function(y,u){return u.addedTimestampMillis-y.addedTimestampMillis}).map(function(y){return y.downloadedVideoEntities})};
_.BQP=function(R){var y=QmT(R),u=_.Wd(R),v=aEP(R),Q=Pd(R).filter(function(K){var h,b;if((K==null?void 0:(h=K.downloadedVideoEntities)==null?void 0:(b=h.transferEntity)==null?void 0:b.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var N,T;K=K==null?void 0:(N=K.downloadedVideoEntities)==null?void 0:(T=N.videoEntity)==null?void 0:T.key;return _.f("kevlar_use_library_entity")?K&&(v.has(K)||u[K]):K&&!y.has(K)}),M=v0c(R).filter(function(K){return TQT(R,K.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.P$(Q),_.P$(M)).sort(function(K,h){return h.addedTimestampMillis-K.addedTimestampMillis}).map(function(K){return xiT(K)})};
fXS=function(R,y){if(y&&$wG(R,y)){var u,v,Q=(v=(u=_.TI(R,"playbackData",_.Nq(y,"playbackData")))!=null?u:void 0)==null?void 0:v.playerResponseJson;if(Q){try{var M=JSON.parse(Q);var K=_.TI(R,"transfer",_.Nq(y,"transfer")),h=zlE(R,y);h&&(M=Object.assign({},M,{playerConfig:Object.assign({},M.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+h*1E3}}})}));M.cotn=K==null?void 0:K.cotn}catch(b){}return M}}};
_.lXE=function(R){var y,u,v;R=(v=(u=((y=R.downloadsPageViewConfigurationEntity)!=null?y:{})[_.dN])==null?void 0:u.smartDownloadsOptInBannerVisibility)!=null?v:{};var Q;return(Q=_.e(R,exO))!=null?Q:{}};
_.Wd=function(R){var y,u,v;R=(v=(u=((y=R.mainDownloadsListEntity)!=null?y:{})[_.OxT])==null?void 0:u.downloads)!=null?v:[];y={};u=_.V(R);for(v=u.next();!v.done;v=u.next())R=void 0,y[(R=v.value.videoItem)!=null?R:""]=!0;return y};
ZxG=function(R){var y=_.Wd(R);if(Object.keys(y).length===0)return!1;var u=R.mainVideoEntity;if(!u)return!0;u=_.V(Object.keys(u));for(var v=u.next();!v.done;v=u.next()){v=v.value;var Q=_.bE(v).entityId;if(y[v]&&!A4O(R,Q))return!1}return!0};
_.Uq=function(R){var y=_.Wd(R);return Pd(R).sort(function(u,v){return u.addedTimestampMillis-v.addedTimestampMillis}).map(function(u){return u.downloadedVideoEntities}).filter(function(u){var v;
return(u=u==null?void 0:(v=u.videoEntity)==null?void 0:v.key)&&!!y[u]})};
_.n0O=function(R){var y,u,v;R=(v=(u=((y=R.downloadsPageViewConfigurationEntity)!=null?y:{})[_.dN])==null?void 0:u.downloadsUpsellBannerVisibility)!=null?v:{};var Q;return(Q=_.e(R,HxE))!=null?Q:{}};
xiT=function(R){return"downloadedVideoEntities"in R?R.downloadedVideoEntities:"downloadedPlaylistEntities"in R?R.downloadedPlaylistEntities:{}};
GDT=function(R){var y=_.Wd(R),u=QmT(R),v=Pd(R).filter(function(Q){var M,K;return(Q=Q==null?void 0:(M=Q.downloadedVideoEntities)==null?void 0:(K=M.videoEntity)==null?void 0:K.key)&&!y[Q]&&!u.has(Q)});
R=v0c(R);return[].concat(_.P$(v),_.P$(R)).sort(function(Q,M){return M.addedTimestampMillis-Q.addedTimestampMillis}).map(function(Q){return xiT(Q)})};
_.ks=function(R){if(!_.f("kevlar_use_library_entity"))return GDT(R);var y=Pd(R).filter(function(v){var Q,M;if(Q=v=v==null?void 0:(Q=v.downloadedVideoEntities)==null?void 0:(M=Q.videoEntity)==null?void 0:M.key){var K,h,b;Q=((h=(K=R.mainDownloadsListEntity)==null?void 0:K[c4v])==null?0:(b=h.downloads)==null?0:b.length)?aEP(R).has(v):!1}return Q}),u=v0c(R);
return[].concat(_.P$(y),_.P$(u)).sort(function(v,Q){return Q.addedTimestampMillis-v.addedTimestampMillis}).map(function(v){return xiT(v)})};
rsP=function(R){var y=_.Wd(R),u=QmT(R);return o0z(R).filter(function(v){var Q;return(v=v==null?void 0:(Q=v.videoEntity)==null?void 0:Q.key)&&!y[v]&&!u.has(v)})};
Pt4=function(R){if(!_.f("kevlar_use_library_entity"))return rsP(R);var y=_.Wd(R),u=aEP(R);return o0z(R).filter(function(v){var Q;return(v=v==null?void 0:(Q=v.videoEntity)==null?void 0:Q.key)&&!y[v]&&u.has(v)})};
WIT=function(R,y){y=_.Nq(y,"settingEntity");var u,v,Q;return!!((Q=(v=((u=R.settingEntity)!=null?u:{})[y])==null?void 0:v.settingOptionValue)!=null?Q:{}).boolValue};
_.Eq=function(R){var y=_.Uq(R);if(EWW(y))return 0;var u=[];y=_.V(y);for(var v=y.next();!v.done;v=y.next()){v=v.value;var Q=void 0,M=void 0;if((Q=v)==null?0:(M=Q.videoEntity)==null?0:M.key)Q=_.bE(v.videoEntity.key).entityId,v=R,Q=_.Nq(Q,"mainVideoDownloadStateEntity"),v=_.TI(v,"mainVideoDownloadStateEntity",Q),(v=Number(v==null?void 0:v.addedTimestampMillis))&&u.push(v)}return Math.max.apply(Math,_.P$(u))};
_.$s=function(R){return R.ui.richGridMiniMode};
_.qq=function(R){return R.ui.richGridItemsPerRow};
_.div=function(R){return R.ui.richGridSlimItemsPerRow};
_.UiP=function(R){return R.ui.guideIsExpanded};
_.X9=function(R){return R.ui.miniplayerIsActive};
_.kDU=function(R){return R.ui.singleOptionSurveyIsActive};
_.mc=function(R){var y;return((y=R.ui)==null?void 0:y.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.AN=function(R){return _.mc(R)==="WEB_PAGE_TYPE_WATCH"};
_.E0U=function(R){return _.mc(R)==="WEB_PAGE_TYPE_SHORTS"};
_.$iO=function(R){return R.ui.inlinePreviewIsActive};
_.qT4=function(R){return R.ui.inlinePreviewIsEnabled};
_.XrL=function(R){return R.ui.miniplayerPlaybackState};
_.Dn=function(R){return R.ui.isOnline};
_.mic=function(R){return R.ui.frostedGlassMode};
_.pz=function(R,y){return Sc8(R.entities,y)};
_.tN=function(R,y){return TQT(R.entities,y)};
Asv=function(R,y){var u;if(y){var v;R=(v=_.TI(R.entities,"offlineVideoPolicy",_.Nq(y,"offlineVideoPolicy")))==null?void 0:v.action}else R=void 0;return(u=R)!=null?u:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
DiO=function(R,y){var u;y?(R=_.TI(R.entities,"offlineVideoPolicy",_.Nq(y,"offlineVideoPolicy")),R=Number(R==null?void 0:R.expirationTimestamp)):R=void 0;return(u=R)!=null?u:0};
_.prv=function(R){return _.GI(R.entities).length};
t2U=function(R,y){return rN(R.entities,y)};
csE=function(R,y){return ueL(R.entities,y)};
cd=function(R,y){return(R=rN(R.entities,y))?_.WEU([R]):0};
_.aXL=function(R,y){var u=_.EB("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(u){var v=R.entities;var Q=FIc(v,y);if(Q.length){var M=[];Q=_.V(Q);for(var K=Q.next();!K.done;K=Q.next())(K=KIc(v,K.value))&&M.push(K);v=M}else v=[]}else v=ysO(R.entities,y);var h;if(u){var b=R.entities;y?(y=_.Nq(y,"musicPlaylist"),b=(h=b.musicPlaylist)==null?void 0:h[y],h=b!=null&&b.tracks?b.tracks.length:0):h=0}else h=R.entities,y?(y=_.Nq(y,"mainPlaylistEntity"),h=(b=h.mainPlaylistEntity)==null?void 0:b[y],h=h!=null&&h.videos?
h.videos.length:0):h=0;return v.length!==h?0:v?dw8(v):0};
_.STE=function(R){return R.download.isLeaderTab};
_.YTv=function(R,y,u){if(!y&&u){var v=R.entities;if(u){var Q=kCO(u),M,K;y=(K=(M=_.TI(v,"offlineabilityEntity",_.Nq(Q,"offlineabilityEntity")))==null?void 0:M.addToOfflineButtonState)!=null?K:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else y="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else M=R.entities,y?(K=kCO(y),y=(Q=(v=_.TI(M,"offlineabilityEntity",_.Nq(K,"offlineabilityEntity")))==null?void 0:v.addToOfflineButtonState)!=null?Q:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):y="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return y};
LIL=function(R,y){R=R.entities;if(y){y=kCO(y);var u,v;y=(v=(u=_.TI(R,"offlineabilityEntity",_.Nq(y,"offlineabilityEntity")))==null?void 0:u.addToOfflineButtonState)!=null?v:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else y="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return y};
_.smO=function(R){var y=R.entities;R=_.Dn(R);var u=WIT(y,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.f("kevlar_modern_downloads_page")&&u)var v=!1;else{var Q,M;y=(M=(Q=((v=y.downloadsPageViewConfigurationEntity)!=null?v:{})[_.dN])==null?void 0:Q.smartDownloadsOptInBannerVisibility)!=null?M:{};v=R?!!y.visibleWithConnection:!!y.visibleWithoutConnection}return v};
_.zx4=function(R){return WIT(R.entities,"SMART_DOWNLOADS_ENABLED")};
_.g0U=function(R){return ZxG(R.entities)};
CtG=function(R){return _.Uq(R.entities).every(function(y){var u;return(y==null?void 0:(u=y.transferEntity)==null?void 0:u.transferState)&&!PuL.includes(y.transferEntity.transferState)})};
_.RJL=function(R){var y,u,v,Q=(v=(u=((y=R.entities.downloadsPageViewConfigurationEntity)!=null?y:{})[_.dN])==null?void 0:u.downloadsUpsellBannerVisibility)!=null?v:{};return _.Dn(R)?!!Q.visibleWithConnection:!!Q.visibleWithoutConnection};
_.ynE=function(R,y){return A4O(R.entities,y)};
uwT=function(R,y){if(y){var u,v;R=(v=(u=_.TI(R.entities,"downloadStatusEntity",_.Nq(y,"downloadStatusEntity")))==null?void 0:u.downloadState)!=null?v:"DOWNLOAD_STATE_UNKNOWN"}else R="DOWNLOAD_STATE_UNKNOWN";return R};
a3=function(R,y){return zlE(R.entities,y)};
M5U=function(R){R=_.vXG(R);var y=R.hours===void 0?0:R.hours,u=R.minutes===void 0?0:R.minutes,v=R.seconds===void 0?0:R.seconds,Q=y>0;R=[];Q&&(y=_.QiS(y),R.push(y));y=Q;y=y===void 0?!1:y;u=(["af","be","lt"].includes(_.S6)||y)&&u<10?jiv().format(u):(new Intl.NumberFormat("en-u-nu-latn")).format(u);R.push(u);u=jiv().format(v);R.push(u);u=":";"da fi id si sr sr-Latn".split(" ").includes(_.S6)&&(u=".");return R.join(u)};
_.vXG=function(R){var y=R.hours||0,u=R.minutes||0,v=R.seconds||0;y=v+u*60+y*3600+(R.days||0)*86400+(R.weeks||0)*604800+(R.months||0)*2629800+(R.years||0)*31557600;if(y<=0)return{hours:0,minutes:0,seconds:0};R=y;y=Math.floor(R/3600);R%=3600;u=Math.floor(R/60);v=Math.floor(R%60);return{hours:y,minutes:u,seconds:v}};
_.QiS=function(R){R=(new Intl.NumberFormat("en-u-nu-latn")).format(R);var y=["fr"],u="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" ");return"af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(_.S6)?R.replace(",","\u00a0"):y.includes(_.S6)?R.replace(",","\u202f"):u.includes(_.S6)?R.replace(",","."):R};
jiv=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
Jn4=function(R){try{return(new _.Ys(5)).format(R)}catch(y){}};
Lz=function(R){return{thumbnailOverlayDownloadingRenderer:{state:R}}};
V5U=function(R){if(R=Jn4(R))return{thumbnailOverlaySidePanelRenderer:{text:_.Mq(R),icon:{iconType:"PLAYLISTS"}}}};
ilz=function(){var R=_.fo("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.Mq(R),icon:{iconType:"PLAY_ALL"}}}};
K$G=function(R){R=_.sq(R,2);return _.S6!=="ru"&&_.S6!=="es_419"&&_.S6!=="es-419"&&_.S6!=="es"&&_.S6!=="es_US"&&_.S6!=="es-US"&&_.S6!=="fr"&&_.S6!=="pl"&&_.S6!=="it"&&_.S6!=="nl"&&_.S6!=="uk"&&_.S6!=="fr_CA"&&_.S6!=="fr-CA"||R===""?R:R[0].toLocaleUpperCase()+R.substring(1)};
hJ8=function(R){return function(y){var u=R(),v=_.sq(y,u.dateFormat);y=_.sq(y,u.timeFormat);var Q=I5S.DATETIMEFORMATS[u.joinerStyle];Q=Q.replace(/'(?!')/g,"");Q=Q.replace("{0}",y);Q=Q.replace("{1}",v);return u.capitalize(Q)}};
blW=function(R){return R?typeof R.seconds==="string"&&(R.nanos===void 0||typeof R.nanos==="number"):!1};
F$O=function(R){return new Date(Number(R.seconds)*1E3+(R.nanos||0)*1E-6)};
_.sq=function(R,y){if(typeof R.getTime==="function")R={date:R};else if(blW(R))R={date:F$O(R)};else if(typeof blW(R.timestamp)&&typeof R.i18nInternalSecondsEastOfUtc==="number")R={date:F$O(R.timestamp),timeZone:zI(-R.i18nInternalSecondsEastOfUtc/60)};else throw Error("Df`"+JSON.stringify(R));var u=R;R=u.date;u=u.timeZone;y=w14(y).format(R,u);_.S6==="zh-TW"&&(R=u?Number(w14("H").format(R,u)):R.getHours(),y=R<5?y.replace("\u4e0a\u5348","\u51cc\u6668"):R<8?y.replace("\u4e0a\u5348","\u65e9\u4e0a"):R<12?
y.replace("\u4e0a\u5348","\u4e0a\u5348"):R<13?y.replace("\u4e0b\u5348","\u4e2d\u5348"):R<19?y.replace("\u4e0b\u5348","\u4e0b\u5348"):y.replace("\u4e0b\u5348","\u665a\u4e0a"));return y};
w14=function(R){if(Nvc.has(R))return Nvc.get(R);var y=TvO(R);y=oXU(y);xL8!==!0&&(xL8=!0);Bv8=!0;Bv8=!1;y=new gN(y,I5S);Nvc.set(R,y);return y};
TvO=function(R){return(new gN(R,I5S)).patternParts_.map(function(y){return y.type===0?"'"+y.text+"'":y.text}).join("")};
oXU=function(R){return _.S6==="en"||_.S6==="es_US"||_.S6==="es-US"?R:R.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(y,u,v){return"H".repeat(u.length)+v})};
GL8=function(R,y){f5O||(_.Cz=_.eJU,f5O=new l5v);var u=f5O;a:if(R=OlT(R),y=OlT(y||new Date),R>y)u=R.getTime()-y.getTime()>6048E5?_.sq(R,1):Zlz(R);else{for(var v=0;HlL(R,12*(v+1))<y;)++v;if(v>0)u=u.format(-v,0);else{for(v=0;HlL(R,v+1)<y;)++v;if(v>0)u=u.format(-v,2);else{R=y.getTime()-R.getTime();y=_.V(nXL);for(v=y.next();!v.done;v=y.next()){v=v.value;var Q=v.unit,M=Math.floor(R/v.unitDuration);if(M>=(v.threshold===void 0?1:v.threshold)){u=u.format(-M,Q);break a}}u=u.format(-0,7)}}}return u};
OlT=function(R){if(typeof R.getTime==="function")return R;if(blW(R))return F$O(R);throw Error("Ef`"+JSON.stringify(R));};
HlL=function(R,y){for(var u=0,v;;++u)if(v=new Date(R.getFullYear(),R.getMonth()+y,R.getDate()-u,R.getHours(),R.getMinutes(),R.getSeconds()),v.getMonth()===(R.getMonth()+y)%12)return v};
_.ye=function(R){return{runs:[{text:R}]}};
_.u7=function(R){if(R&&R.simpleText)return R.simpleText;var y="";if(R&&R.runs)for(var u=0;u<R.runs.length;u++)R.runs[u].text&&(y+=R.runs[u].text);return y};
PLE=function(R,y,u,v){return R.videoEntity&&!R.policyEntity&&u!=="DOWNLOAD_STATE_FAILED"?[Lz("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:Zn(R.policyEntity)&&y!=="TRANSFER_STATE_FAILED"&&y!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?y==="TRANSFER_STATE_PAUSED_BY_USER"?[Lz("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.Hd(y)?[Lz("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:R.videoEntity.lengthSeconds?rnP(R.videoEntity.lengthSeconds,v):[]:
[Lz("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
rnP=function(R,y){var u=[{thumbnailOverlayTimeStatusRenderer:{text:_.Mq(M5U({seconds:R})),style:"DEFAULT"}}];y&&(R=y<=0||R<=0?0:y>=R?100:Math.ceil(y*100/R),R>0&&u.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:R}}));return u};
W$G=function(R,y,u,v,Q){if(y==="TRANSFER_STATE_UNKNOWN"||!R)return{};if(_.Hd(y)||y==="TRANSFER_STATE_PRE_TRANSFER")var M=[Lz("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var K,h;if(y==="TRANSFER_STATE_COMPLETE"&&((K=R.mainPlaylistEntity)==null?0:(h=K.videos)==null?0:h.length)){if(_.f("web_modern_collections_v2")){var b;var N=(M=R.mainPlaylistEntity)==null?void 0:(b=M.videos)==null?void 0:b.length;M=(M=Jn4(N))?{thumbnailOverlayBottomPanelRenderer:{text:_.Mq(M),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var T;M=V5U((N=R.mainPlaylistEntity)==null?void 0:(T=N.videos)==null?void 0:T.length)}var x;M=[ilz(),Object.assign({},(x=M)!=null?x:{})]}else M=[]}x=M;a:if(y==="TRANSFER_STATE_PRE_TRANSFER")u=JN(_.fo("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(y==="TRANSFER_STATE_TRANSFER_IN_QUEUE")u=JN(_.fo("WAITING_TO_DOWNLOAD"));else if(_.Hd(y))u=Math.floor(u*100).toString(),u=JN(_.fo("DOWNLOADING_PERCENT",{percent:u},"Downloading... "+u+"%"));else{if(v&&(_.f("playlist_is_offline_selector_killswitch")&&
(Q=_.ua().resolve(_.tv).isNetworkAvailable()),Q)){u=AjT(_.fo("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),XOT(v));break a}u=void 0}y=y==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.fo("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},x.length?{thumbnailOverlays:x}:{},u?{viewPlaylistText:u}:{viewPlaylistText:_.ye("")},y.length?{badges:y}:{})};
dLz=function(R,y,u,v,Q,M){if(y==="TRANSFER_STATE_UNKNOWN"||!R)return{};if(v==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var K=PLE(R,y,v);if(R.videoEntity&&!R.policyEntity&&v!=="DOWNLOAD_STATE_FAILED"){var h=_.fo("WAITING_TO_DOWNLOAD");if(h)return{shortViewCountText:_.ye(h),publishedTimeText:void 0,thumbnailOverlays:K}}if(!Zn(R.policyEntity)){M=R.policyEntity&&!UwT(R.policyEntity)?_.fo("DOWNLOAD_EXPIRED",{},"Download expired"):
_.fo("TRANSFER_FAILED",{},"Download failed");var b;if((b=R.policyEntity)==null?0:b.shortMessageForDisabledAction)M=R.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:JN(M),publishedTimeText:void 0,thumbnailOverlays:K}}if(y==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.ye(_.fo("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:K};if(y==="TRANSFER_STATE_FAILED"||y==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.ye(_.fo("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:K};if(y==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(b=_.fo("WAITING_TO_DOWNLOAD"),v==="DOWNLOAD_STATE_PAUSED"&&(b=_.fo("DOWNLOAD_PAUSED",{},"Download paused")),b))return{shortViewCountText:_.ye(b),publishedTimeText:void 0,thumbnailOverlays:K};if(_.Hd(y))return R=Math.floor(u*100).toString(),{shortViewCountText:_.ye(_.fo("DOWNLOADING_PERCENT",{percent:R},"Downloading... "+R+"%")),publishedTimeText:void 0,thumbnailOverlays:K};y=void 0;R.videoEntity.publishedTimestampMillis&&
(y=new Date,Q&&(y=new Date(Q)),y=JN(GL8(new Date(Number(R.videoEntity.publishedTimestampMillis)),y)));Q=[];_.f("kevlar_woffle_badge_killswitch")||(Q=[{metadataBadgeRenderer:{label:_.fo("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var N;R=JN((N=R.videoEntity.localizedStrings)==null?void 0:N.viewCount);return Object.assign({},M?{shortViewCountText:void 0}:{shortViewCountText:R},M?{}:{publishedTimeText:y},{badges:Q,thumbnailOverlays:K})};
kLL=function(R,y){R=R===void 0?ULS:R;switch(y.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:y.payload.playlistId,inviteLinkURL:y.payload.inviteLinkUrl};default:return R}};
$LL=function(R,y){R=R===void 0?EXU:R;switch(y.type){case "SET_CURRENT_FORM_ID":return y=y.payload.formId,R.currentFormId===y?R:{currentFormId:y,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var u=y.payload;y=u.groupId;u=u.command;if(R.currentFormId){var v=Object.assign({},R.commandsMap);v[y]=u;R=Object.assign({},R,{commandsMap:v})}return R;case "RESET_COMMAND_MAP":return Object.assign({},R,{commandsMap:{}});default:return R}};
X1U=function(R,y){R=R===void 0?qxU:R;switch(y.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},R,{guideIsExpanded:y.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},R,{scrollAtTop:y.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},R,{guideIsVisibleButNotPersistent:y.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},R,{miniplayerIsActive:y.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},R,{singleOptionSurveyIsActive:y.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},R,{slimlineSurveyRatingSelectedIndex:y.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},R,{richGridMiniMode:y.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},R,{richGridItemsPerRow:y.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},R,{richGridSlimItemsPerRow:y.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},R,{richGridContainerWidth:y.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},R,{richGridStyle:y.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},R,{currentPageType:y.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},R,{inlinePreviewIsActive:y.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},R,{inlinePreviewIsEnabled:y.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},R,{darkModeIsEnabled:y.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
R,{miniplayerPlaybackState:y.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},R,{tabGesturesIsActive:y.payload});case "SET_ONLINE_STATUS":return Object.assign({},R,{isOnline:y.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},R,{chipBarIsSticky:y.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},R,{frostedGlassMode:y.payload});default:return R}};
AnG=function(R,y){R=R===void 0?mLS:R;switch(y.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},R,{transcription:y.payload});case "SET_OVERLAY_STATE":return Object.assign({},R,{overlay:y.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return R}};
n1W=function(){return oR(Object.assign({},{continuation:DLT,entities:vWc,download:p1U,reportChannelAbuse:t5U,share:cnS,talkToRecs:a5E,ui:X1U,voiceSearch:AnG,watch:SxU,ypc:YxE,shorts:L$S,radioButtonGroup:$LL,collabInviteLink:kLL},siE))};
PWc=function(){return _.f("web_player_entities_middleware")?new vV(n1W(),[GiT,rXL]):new vV(n1W(),[GiT])};
_.Qe=function(){Ws4||(Ws4=PWc());return Ws4};
dJv=function(R,y,u){if(R.length)return{titleText:_.Mq(y!=null?y:_.fo("DOWNLOADS",void 0,"Downloads")),contents:R.map(function(v){var Q=v.videoEntity;v={videoId:Q.videoId,title:JN(Q.title),shortBylineText:JN(v.channelEntity.title),thumbnail:Q.thumbnail};var M=Q.videoId?a3(_.Qe().getState(),Q.videoId):0;Q.videoId&&u?v.navigationEndpoint=_.j6(Q.videoId,u,void 0,void 0,M):Q.videoId&&(v.navigationEndpoint=qD4(Q.videoId,M,Q.lengthSeconds));Q.lengthSeconds&&(v.thumbnailOverlays=rnP(Q.lengthSeconds,M));return{playlistPanelVideoRenderer:v}}),
totalVideos:R.length}};
UJU=function(R){return(R=(0,_.Ps.getValueByKeys)(R,"playlistId"))?{playlistId:R}:null};
kiP=function(){return{}};
E1G=function(R,y){return new _.F4(function(u,v){R.then(function(Q){if(Q){if(Q=y(Q))return u(Q);v()}},v)})};
$Jz=function(R){var y,u,v,Q=(y=R.contents)==null?void 0:(u=y.twoColumnWatchNextResults)==null?void 0:(v=u.autoplay)==null?void 0:v.autoplay,M,K,h;y=(M=R.contents)==null?void 0:(K=M.twoColumnWatchNextResults)==null?void 0:(h=K.playlist)==null?void 0:h.playlist;return Q&&y&&y.playlistId?{rawResponse:R,autoplayRenderer:Q,playlistPanelRenderer:y,playlistId:y.playlistId}:null};
XR4=function(R){var y=y===void 0?"UNKNOWN_INTERFACE":y;if(R.length===1)return R[0];var u=qjU[y];if(u){u=new RegExp(u);for(var v=_.V(R),Q=v.next();!Q.done;Q=v.next())if(Q=Q.value,u.exec(Q))return Q}var M=[];Object.entries(qjU).forEach(function(K){var h=_.V(K);K=h.next().value;h=h.next().value;y!==K&&M.push(h)});
u=new RegExp(M.join("|"));R.sort(function(K,h){return K.length-h.length});
v=_.V(R);for(Q=v.next();!Q.done;Q=v.next())if(Q=Q.value,!u.exec(Q))return Q;return R[0]};
_.jq=function(R){return"/youtubei/v1/"+XR4(R)};
_.MB=function(R){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:R}}}}};
_.JU=function(R){return _.MB(_.ye(R))};
mJT=function(R,y){var u={mode:"NORMAL"};R&&(u.autoplayVideo=R.navigationEndpoint,u.nextButtonVideo=R.navigationEndpoint);y&&(u.previousButtonVideo=y.navigationEndpoint);return u};
pR8=function(R,y,u){if(!u||!u.sets)return{sets:[mJT(R,y)]};var v=u.sets.find(function(K){return K.mode==="NORMAL"}),Q=(0,_.Ps.unsafeClone)(u);
if(!v)return Q.sets.push(mJT(R,y)),Q;if(!R)return u;v=_.Ps.getValueByKeys.apply(null,[v].concat(_.P$(AXO)));var M=_.Ps.getValueByKeys.apply(null,[R].concat(_.P$(DJP)));if(v===M)return u;Q.sets=Q.sets.filter(function(K){return K.mode!=="NORMAL"});
Q.sets.push(mJT(R,y));return Q};
tuc=function(R){return!!R.playlistPanelVideoRenderer&&!R.playlistPanelVideoRenderer.unplayableText};
cXL=function(R){return!!R.playlistPanelVideoRenderer&&!!R.playlistPanelVideoRenderer.title};
aL4=function(R,y){if(y.contents&&!(R>=y.contents.length)&&(R=y.contents.slice(R).find(tuc)))return R.playlistPanelVideoRenderer};
Sjv=function(R,y){if(y.contents)return(y=y.contents.find(function(u){return!!u.playlistPanelVideoRenderer&&u.playlistPanelVideoRenderer.videoId===R}))?y.playlistPanelVideoRenderer:void 0};
YjW=function(R,y){return y.contents?y.contents.findIndex(function(u){return!!u.playlistPanelVideoRenderer&&u.playlistPanelVideoRenderer.videoId===R}):-1};
LsU=function(R,y){return y.contents?y.contents.findIndex(function(u){return!!u.playlistPanelVideoRenderer&&u.playlistPanelVideoRenderer.playlistSetVideoId===R}):-1};
sJU=function(R,y){R.contents&&y!==-1&&R.contents.splice(y,1).length===1&&R.totalVideos!==void 0&&(--R.totalVideos,delete R.videoCountText)};
_.zNT=function(R){var y=[];if(!R||!R.contents)return y;R=_.V(R.contents);for(var u=R.next();!u.done;u=R.next())u=u.value,u.playlistPanelVideoRenderer&&u.playlistPanelVideoRenderer.videoId&&y.push(u.playlistPanelVideoRenderer.videoId);return y};
_.g1c=function(R){if(R&&R.contents)return(R=R.contents.find(function(y){return!!y.playlistPanelVideoRenderer&&!!y.playlistPanelVideoRenderer.selected})||R.contents[R.currentIndex])?R.playlistPanelVideoRenderer:void 0};
CWz=function(R,y,u,v,Q,M,K){Q=Q===void 0?!1:Q;M=M===void 0?!1:M;K=K===void 0?!1:K;if(R.contents&&R.contents.length!==0){v&&(R.contents=R.contents.filter(v));v=R.contents.length;for(var h=0;h<v;h++){var b=R.contents[h].playlistPanelVideoRenderer;b&&(h===y?(M&&delete b.menu,b.indexText=_.ye("\u25b6")):Q||R.isInfinite||b.indexText===void 0?delete b.indexText:b.indexText=_.ye((h+1+u).toString()))}R.currentIndex=y+u;K&&(delete R.videoCountText,R.totalVideos=v)}};
_.Ve=function(R){R=Rgv(R);if(R){var y=R.length;var u=-86%y;u<0&&(u=y+u);R=R.slice(y-u)+R.slice(0,y-u)}else R="";u="";for(y=0;y<R.length&&R[y]!==y3E;y++)u+=R[y];return u};
_.u08=function(R,y){var u=document.body;y=y===void 0?function(h){return h}:y;
var v,Q=null;R=_.V(R);for(v=R.next();!v.done;v=R.next()){var M=v.value;v="div";M[2]&&(v=y(M[2]));v=document.createElement(v);Q||(Q=v);var K=M[0];M=M[1];K&&(v.id=y(K));if(M)for(M=_.V(M),K=M.next();!K.done;K=M.next())v.classList.add(y(K.value));u.appendChild(v);u=v}return[Q,u]};
vC4=function(R,y){for(var u="",v=0;v<y;v++)u+=R.charAt(Math.floor(Math.random()*R.length));return u};
i7=function(R){return vC4("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",R)};
Kc=function(R){return vC4("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",R)};
IH=function(R){return vC4("0123456789",R)};
hU=function(){var R=performance.now(),y=new Date;var u="2."+y.getFullYear()+String(y.getMonth()+1).padStart(2,"0")+String(y.getDate()).padStart(2,"0");for(var v,Q=Math.floor(Math.random()*11)+15,M=[],K=0;K<Q;K++)M.push(Math.floor(Math.random()*26476865)+24547720);v=M.join(",");var h=i7(10),b=i7(100),N=i7(102),T=i7(106),x=i7(108),B=i7(11),l=i7(1140),Z=i7(123),P=i7(14),k=i7(16),E=i7(1900),D=i7(23),z=i7(26),c=i7(34),a=i7(397),L=i7(44),QG=i7(5),hz=i7(72),bO=i7(74),BW=i7(75),Zc=i7(88),xS=i7(91),Dc="rr1---sn-ntqe6n7k rr2---sn-4g5lznez rr1---sn-q4flrnld rr1---sn-q4flrn7r rr2---sn-4g5edn6r rr4---sn-q4flrnee rr3---sn-hgn7rn7k rr5---sn-q4flrn7k rr5---sn-q4flrnle rr5---sn-q4fl6ndz rr4---sn-q4fl6nsl rr5---sn-hgn7rnls rr3---sn-t0a7lnee rr2---sn-q4flrnl7 rr2---sn-5hne6nsz rr5---sn-ntqe6n76 rr1---sn-q4fl6nsk rr2---sn-q4flrn7k rr3---sn-q4flrnsd rr1---sn-5hne6nzk".split(" ");
var $S=Dc[Math.floor(Math.random()*Dc.length)];var hL=(new Date("2010-01-01")).getTime();var WK=(new Date(hL+Math.random()*((new Date).getTime()-hL))).toISOString().split("T")[0];for(var JL,sP=[],wg=0;wg<4;wg++)sP.push(Math.floor(Math.random()*100));JL=sP.join(".");var bT=Number(IH(5)),HK=Number(IH(6)),Ta=Number(IH(7)),Sg=Number(IH(9)),MU=IH(1),vK=IH(10),eg=IH(16),oP=IH(19),BK=IH(2),pY=IH(20),v$=IH(21),RP=IH(3),KY=IH(4),si=IH(5),Fp=IH(6),Oi=IH(7),rg=IH(8),fZ=IH(9);var ha=vC4("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var IP=[Kc(5),Kc(5),Kc(5)].join("%2C"),Zi=[IH(3),IH(5),IH(5)].join("%2C"),gr=Kc(0),Y8=Kc(1),WH=Kc(10),vg=Kc(108),Fr=Kc(11),e_=Kc(12),SQ=Kc(13),NS=Kc(14),sW=Kc(15),m_=Kc(16),gG=Kc(17),HW=Kc(18),qU=Kc(19),cW=Kc(2),ob=Kc(20),iJ=Kc(22),dC=Kc(23),eK=Kc(24),lT=Kc(266),x8=Kc(3),da=Kc(30),rC=Kc(34),T5=Kc(35),Yh=Kc(36),v5=Kc(4),Xr=Kc(40),Hs=Kc(43),zg=Kc(47),RH=Kc(5),aL=Kc(6),KZ=Kc(7),pZ=Kc(75),za=Kc(8),hS=Kc(80),JS=Kc(9),xE="https://www."+Kc(12)+".com",TJ={},YU={},Jr={},So4={},VZ={},Vy={},iC={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:v}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:u},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+Kc(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:u},{key:"client.name",value:"WEB"},{key:"client.fexp",value:v}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:v$+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+Kc(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:Xr,ypcGetOfflineUpsellEndpoint:{params:hS}},trackingParams:T5+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+$S+".googlevideo.com/videoplayback?expire="+vK+"&ei="+D+"&ip="+JL+"&id=o-AF"+Hs+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+Zi+"&mn="+IP+"&ms="+IP+"&mv="+Y8+"&mvi="+MU+"&pl="+BK+"&initcwndbps="+Oi+"&siu="+MU+"&spc="+L+"&vprv="+MU+"&svpuc="+MU+"&mime=video%2Fmp4&ns="+eK+"&cnr="+BK+"&ratebypass=yes&dur="+rg+"&lmt="+eg+"&mt="+vK+"&fvip=3&c=WEB&txp="+Oi+"&n="+k+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
x+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+x,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:HK,width:640,height:360,lastModified:eg,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Oi,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+$S+".googlevideo.com/videoplayback?expire="+vK+"&ei="+D+"&ip="+JL+"&id=o-AF"+Hs+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+Zi+"&mn="+
IP+"&ms="+IP+"&mv="+Y8+"&mvi="+MU+"&pl="+BK+"&initcwndbps="+Oi+"&siu="+MU+"&spc="+L+"&vprv="+MU+"&svpuc="+MU+"&mime=video%2Fmp4&ns="+eK+"&cnr="+BK+"&ratebypass=yes&dur="+rg+"&lmt="+eg+"&mt="+vK+"&fvip=3&c=WEB&txp="+Oi+"&n="+k+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+vg+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+x,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:HK,width:1280,
height:720,lastModified:eg,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Oi,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+$S+".googlevideo.com/videoplayback?expire="+vK+"&ei="+D+"&ip="+JL+"&id=o-AF"+Hs+"&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="+Zi+"&mn="+IP+"&ms="+
IP+"&mv="+Y8+"&mvi="+MU+"&pl="+BK+"&initcwndbps="+Oi+"&siu="+MU+"&spc="+L+"&vprv="+MU+"&svpuc="+MU+"&mime=video%2Fmp4&ns="+eK+"&gir="+x8+"&clen="+fZ+"&dur="+rg+"&lmt="+eg+"&mt="+vK+"&fvip=3&keepalive="+x8+"&c=WEB&txp="+Oi+"&n="+m_+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+x,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:Ta,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:RP,end:KY},lastModified:eg,contentLength:fZ,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Ta,approxDurationMs:Oi},{itag:248,url:"https://"+$S+".googlevideo.com/videoplayback?expire="+vK+"&ei="+D+"&ip="+JL+"&id=o-AF"+Hs+"&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="+Zi+"&mn="+IP+"&ms="+IP+"&mv="+
Y8+"&mvi="+MU+"&pl="+BK+"&initcwndbps="+Oi+"&siu="+MU+"&spc="+L+"&vprv="+MU+"&svpuc="+MU+"&mime=video%2Fwebm&ns="+eK+"&gir="+x8+"&clen="+fZ+"&dur="+rg+"&lmt="+eg+"&mt="+vK+"&fvip=3&keepalive="+x8+"&c=WEB&txp="+Oi+"&n="+m_+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+x,mimeType:'video/webm; codecs="vp9"',bitrate:Ta,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:RP,end:KY},lastModified:eg,contentLength:fZ,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Ta,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Oi},{itag:399,url:"https://"+$S+".googlevideo.com/videoplayback?expire="+vK+"&ei="+D+"&ip="+JL+"&id=o-AF"+Hs+"&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="+
Zi+"&mn="+IP+"&ms="+IP+"&mv="+Y8+"&mvi="+MU+"&pl="+BK+"&initcwndbps="+Oi+"&siu="+MU+"&spc="+L+"&vprv="+MU+"&svpuc="+MU+"&mime=video%2Fmp4&ns="+eK+"&gir="+x8+"&clen="+fZ+"&dur="+rg+"&lmt="+eg+"&mt="+vK+"&fvip=3&keepalive="+x8+"&c=WEB&txp="+Oi+"&n="+m_+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+x,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:Ta,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:RP,end:KY},lastModified:eg,contentLength:fZ,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Ta,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Oi},{itag:136,url:"https://"+$S+".googlevideo.com/videoplayback?expire="+vK+"&ei="+D+"&ip="+JL+"&id=o-AF"+Hs+"&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="+
Zi+"&mn="+IP+"&ms="+IP+"&mv="+Y8+"&mvi="+MU+"&pl="+BK+"&initcwndbps="+Oi+"&siu="+MU+"&spc="+L+"&vprv="+MU+"&svpuc="+MU+"&mime=video%2Fmp4&ns="+eK+"&gir="+x8+"&clen="+fZ+"&dur="+rg+"&lmt="+eg+"&mt="+vK+"&fvip=3&keepalive="+x8+"&c=WEB&txp="+Oi+"&n="+m_+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+x+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+x,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Ta,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:RP,end:KY},lastModified:eg,contentLength:fZ,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:HK,approxDurationMs:Oi},{itag:247,url:"https://"+$S+".googlevideo.com/videoplayback?expire="+vK+"&ei="+D+"&ip="+JL+"&id=o-AF"+Hs+"&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="+Zi+"&mn="+
IP+"&ms="+IP+"&mv="+Y8+"&mvi="+MU+"&pl="+BK+"&initcwndbps="+Oi+"&siu="+MU+"&spc="+L+"&vprv="+MU+"&svpuc="+MU+"&mime=video%2Fwebm&ns="+eK+"&gir="+x8+"&clen="+fZ+"&dur="+rg+"&lmt="+eg+"&mt="+vK+"&fvip=3&keepalive="+x8+"&c=WEB&txp="+Oi+"&n="+m_+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+x+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+x,mimeType:'video/webm; codecs="vp9"',bitrate:Ta,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:RP,end:KY},lastModified:eg,contentLength:fZ,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:HK,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Oi},{itag:398,url:"https://"+$S+".googlevideo.com/videoplayback?expire="+vK+"&ei="+D+"&ip="+JL+"&id=o-AF"+Hs+"&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="+
Zi+"&mn="+IP+"&ms="+IP+"&mv="+Y8+"&mvi="+MU+"&pl="+BK+"&initcwndbps="+Oi+"&siu="+MU+"&spc="+L+"&vprv="+MU+"&svpuc="+MU+"&mime=video%2Fmp4&ns="+eK+"&gir="+x8+"&clen="+fZ+"&dur="+rg+"&lmt="+eg+"&mt="+vK+"&fvip=3&keepalive="+x8+"&c=WEB&txp="+Oi+"&n="+m_+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+x+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+x,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:Ta,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:RP,end:KY},lastModified:eg,contentLength:fZ,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:HK,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Oi},{itag:135,url:"https://"+$S+".googlevideo.com/videoplayback?expire="+vK+"&ei="+D+"&ip="+JL+"&id=o-AF"+Hs+"&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="+
Zi+"&mn="+IP+"&ms="+IP+"&mv="+Y8+"&mvi="+MU+"&pl="+BK+"&initcwndbps="+Oi+"&siu="+MU+"&spc="+L+"&vprv="+MU+"&svpuc="+MU+"&mime=video%2Fmp4&ns="+eK+"&gir="+x8+"&clen="+rg+"&dur="+rg+"&lmt="+eg+"&mt="+vK+"&fvip=3&keepalive="+x8+"&c=WEB&txp="+Oi+"&n="+m_+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+x+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+x,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:HK,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:RP,end:KY},lastModified:eg,contentLength:rg,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:HK,approxDurationMs:Oi},{itag:244,url:"https://"+$S+".googlevideo.com/videoplayback?expire="+vK+"&ei="+D+"&ip="+JL+"&id=o-AF"+Hs+"&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="+Zi+"&mn="+
IP+"&ms="+IP+"&mv="+Y8+"&mvi="+MU+"&pl="+BK+"&initcwndbps="+Oi+"&siu="+MU+"&spc="+L+"&vprv="+MU+"&svpuc="+MU+"&mime=video%2Fwebm&ns="+eK+"&gir="+x8+"&clen="+rg+"&dur="+rg+"&lmt="+eg+"&mt="+vK+"&fvip=3&keepalive="+x8+"&c=WEB&txp="+Oi+"&n="+m_+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+vg+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+x,mimeType:'video/webm; codecs="vp9"',bitrate:HK,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:RP,end:KY},lastModified:eg,contentLength:rg,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:HK,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Oi},{itag:397,url:"https://"+$S+".googlevideo.com/videoplayback?expire="+vK+"&ei="+D+"&ip="+JL+"&id=o-AF"+Hs+"&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="+
Zi+"&mn="+IP+"&ms="+IP+"&mv="+Y8+"&mvi="+MU+"&pl="+BK+"&initcwndbps="+Oi+"&siu="+MU+"&spc="+L+"&vprv="+MU+"&svpuc="+MU+"&mime=video%2Fmp4&ns="+eK+"&gir="+x8+"&clen="+rg+"&dur="+rg+"&lmt="+eg+"&mt="+vK+"&fvip=3&keepalive="+x8+"&c=WEB&txp="+Oi+"&n="+m_+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+x,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:HK,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:RP,end:KY},lastModified:eg,contentLength:rg,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:HK,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Oi},{itag:134,url:"https://"+$S+".googlevideo.com/videoplayback?expire="+vK+"&ei="+D+"&ip="+JL+"&id=o-AF"+Hs+"&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="+
Zi+"&mn="+IP+"&ms="+IP+"&mv="+Y8+"&mvi="+MU+"&pl="+BK+"&initcwndbps="+Oi+"&siu="+MU+"&spc="+L+"&vprv="+MU+"&svpuc="+MU+"&mime=video%2Fmp4&ns="+eK+"&gir="+x8+"&clen="+rg+"&dur="+rg+"&lmt="+eg+"&mt="+vK+"&fvip=3&keepalive="+x8+"&c=WEB&txp="+Oi+"&n="+m_+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+x+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+x,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:HK,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:RP,end:KY},lastModified:eg,contentLength:rg,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:HK,highReplication:!0,approxDurationMs:Oi},{itag:243,url:"https://"+$S+".googlevideo.com/videoplayback?expire="+vK+"&ei="+D+"&ip="+JL+"&id=o-AF"+Hs+"&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="+
Zi+"&mn="+IP+"&ms="+IP+"&mv="+Y8+"&mvi="+MU+"&pl="+BK+"&initcwndbps="+Oi+"&siu="+MU+"&spc="+L+"&vprv="+MU+"&svpuc="+MU+"&mime=video%2Fwebm&ns="+eK+"&gir="+x8+"&clen="+rg+"&dur="+rg+"&lmt="+eg+"&mt="+vK+"&fvip=3&keepalive="+x8+"&c=WEB&txp="+Oi+"&n="+m_+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+x,mimeType:'video/webm; codecs="vp9"',bitrate:HK,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:RP,end:KY},lastModified:eg,contentLength:rg,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:HK,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Oi},{itag:396,url:"https://"+$S+".googlevideo.com/videoplayback?expire="+vK+"&ei="+D+"&ip="+JL+"&id=o-AF"+Hs+"&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="+
Zi+"&mn="+IP+"&ms="+IP+"&mv="+Y8+"&mvi="+MU+"&pl="+BK+"&initcwndbps="+Oi+"&siu="+MU+"&spc="+L+"&vprv="+MU+"&svpuc="+MU+"&mime=video%2Fmp4&ns="+eK+"&gir="+x8+"&clen="+rg+"&dur="+rg+"&lmt="+eg+"&mt="+vK+"&fvip=3&keepalive="+x8+"&c=WEB&txp="+Oi+"&n="+m_+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+x+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+x,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:HK,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:RP,end:KY},lastModified:eg,contentLength:rg,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:HK,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Oi},{itag:133,url:"https://"+$S+".googlevideo.com/videoplayback?expire="+vK+"&ei="+D+"&ip="+JL+"&id=o-AF"+Hs+"&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="+
Zi+"&mn="+IP+"&ms="+IP+"&mv="+Y8+"&mvi="+MU+"&pl="+BK+"&initcwndbps="+Oi+"&siu="+MU+"&spc="+L+"&vprv="+MU+"&svpuc="+MU+"&mime=video%2Fmp4&ns="+eK+"&gir="+x8+"&clen="+rg+"&dur="+rg+"&lmt="+eg+"&mt="+vK+"&fvip=3&keepalive="+x8+"&c=WEB&txp="+Oi+"&n="+m_+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+x+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+x,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:HK,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:RP,end:KY},lastModified:eg,contentLength:rg,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:HK,approxDurationMs:Oi},{itag:242,url:"https://"+$S+".googlevideo.com/videoplayback?expire="+vK+"&ei="+D+"&ip="+JL+"&id=o-AF"+Hs+"&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="+Zi+"&mn="+
IP+"&ms="+IP+"&mv="+Y8+"&mvi="+MU+"&pl="+BK+"&initcwndbps="+Oi+"&siu="+MU+"&spc="+L+"&vprv="+MU+"&svpuc="+MU+"&mime=video%2Fwebm&ns="+eK+"&gir="+x8+"&clen="+rg+"&dur="+rg+"&lmt="+eg+"&mt="+vK+"&fvip=3&keepalive="+x8+"&c=WEB&txp="+Oi+"&n="+m_+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+x+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+x,mimeType:'video/webm; codecs="vp9"',bitrate:HK,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:RP,end:KY},lastModified:eg,contentLength:rg,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:HK,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Oi},{itag:395,url:"https://"+$S+".googlevideo.com/videoplayback?expire="+vK+"&ei="+D+"&ip="+JL+"&id=o-AF"+Hs+"&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="+
Zi+"&mn="+IP+"&ms="+IP+"&mv="+Y8+"&mvi="+MU+"&pl="+BK+"&initcwndbps="+Oi+"&siu="+MU+"&spc="+L+"&vprv="+MU+"&svpuc="+MU+"&mime=video%2Fmp4&ns="+eK+"&gir="+x8+"&clen="+rg+"&dur="+rg+"&lmt="+eg+"&mt="+vK+"&fvip=3&keepalive="+x8+"&c=WEB&txp="+Oi+"&n="+m_+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+x+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+x,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:HK,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:RP,end:KY},lastModified:eg,contentLength:rg,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:HK,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Oi},{itag:160,url:"https://"+$S+".googlevideo.com/videoplayback?expire="+vK+"&ei="+D+"&ip="+JL+"&id=o-AF"+Hs+"&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="+
Zi+"&mn="+IP+"&ms="+IP+"&mv="+Y8+"&mvi="+MU+"&pl="+BK+"&initcwndbps="+Oi+"&siu="+MU+"&spc="+L+"&vprv="+MU+"&svpuc="+MU+"&mime=video%2Fmp4&ns="+eK+"&gir="+x8+"&clen="+rg+"&dur="+rg+"&lmt="+eg+"&mt="+vK+"&fvip=3&keepalive="+x8+"&c=WEB&txp="+Oi+"&n="+m_+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+x,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:HK,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:RP,end:KY},lastModified:eg,contentLength:rg,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:bT,approxDurationMs:Oi},{itag:278,url:"https://"+$S+".googlevideo.com/videoplayback?expire="+vK+"&ei="+D+"&ip="+JL+"&id=o-AF"+Hs+"&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="+Zi+"&mn="+
IP+"&ms="+IP+"&mv="+Y8+"&mvi="+MU+"&pl="+BK+"&initcwndbps="+Oi+"&siu="+MU+"&spc="+L+"&vprv="+MU+"&svpuc="+MU+"&mime=video%2Fwebm&ns="+eK+"&gir="+x8+"&clen="+rg+"&dur="+rg+"&lmt="+eg+"&mt="+vK+"&fvip=3&keepalive="+x8+"&c=WEB&txp="+Oi+"&n="+m_+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+x+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+x,mimeType:'video/webm; codecs="vp9"',bitrate:HK,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:RP,end:KY},lastModified:eg,contentLength:rg,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:bT,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Oi},{itag:394,url:"https://"+$S+".googlevideo.com/videoplayback?expire="+vK+"&ei="+D+"&ip="+JL+"&id=o-AF"+Hs+"&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="+
Zi+"&mn="+IP+"&ms="+IP+"&mv="+Y8+"&mvi="+MU+"&pl="+BK+"&initcwndbps="+Oi+"&siu="+MU+"&spc="+L+"&vprv="+MU+"&svpuc="+MU+"&mime=video%2Fmp4&ns="+eK+"&gir="+x8+"&clen="+rg+"&dur="+rg+"&lmt="+eg+"&mt="+vK+"&fvip=3&keepalive="+x8+"&c=WEB&txp="+Oi+"&n="+m_+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+x,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:bT,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:RP,end:KY},lastModified:eg,contentLength:rg,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:bT,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Oi},{itag:140,url:"https://"+$S+".googlevideo.com/videoplayback?expire="+vK+"&ei="+D+"&ip="+JL+"&id=o-AF"+Hs+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
Zi+"&mn="+IP+"&ms="+IP+"&mv="+Y8+"&mvi="+MU+"&pl="+BK+"&initcwndbps="+Oi+"&siu="+MU+"&spc="+L+"&vprv="+MU+"&svpuc="+MU+"&mime=audio%2Fmp4&ns="+eK+"&gir="+x8+"&clen="+rg+"&dur="+rg+"&lmt="+eg+"&mt="+vK+"&fvip=3&keepalive="+x8+"&c=WEB&txp="+Oi+"&n="+m_+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+x,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:HK,
initRange:{start:"0",end:"631"},indexRange:{start:RP,end:KY},lastModified:eg,contentLength:rg,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:HK,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Oi,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+$S+".googlevideo.com/videoplayback?expire="+vK+"&ei="+D+"&ip="+JL+"&id=o-AF"+Hs+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+Zi+"&mn="+IP+"&ms="+IP+"&mv="+Y8+"&mvi="+MU+"&pl="+
BK+"&initcwndbps="+Oi+"&siu="+MU+"&spc="+L+"&vprv="+MU+"&svpuc="+MU+"&mime=audio%2Fwebm&ns="+eK+"&gir="+x8+"&clen="+Oi+"&dur="+rg+"&lmt="+eg+"&mt="+vK+"&fvip=3&keepalive="+x8+"&c=WEB&txp="+Oi+"&n="+m_+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+x,mimeType:'audio/webm; codecs="opus"',bitrate:bT,initRange:{start:"0",end:"265"},indexRange:{start:RP,
end:KY},lastModified:eg,contentLength:Oi,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:bT,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Oi,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+$S+".googlevideo.com/videoplayback?expire="+vK+"&ei="+D+"&ip="+JL+"&id=o-AF"+Hs+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+Zi+"&mn="+IP+"&ms="+IP+"&mv="+Y8+"&mvi="+MU+"&pl="+BK+"&initcwndbps="+Oi+"&siu="+MU+"&spc="+L+"&vprv="+MU+"&svpuc="+MU+"&mime=audio%2Fwebm&ns="+
eK+"&gir="+x8+"&clen="+Oi+"&dur="+rg+"&lmt="+eg+"&mt="+vK+"&fvip=3&keepalive="+x8+"&c=WEB&txp="+Oi+"&n="+m_+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+x,mimeType:'audio/webm; codecs="opus"',bitrate:bT,initRange:{start:"0",end:"265"},indexRange:{start:RP,end:KY},lastModified:eg,contentLength:Oi,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:bT,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Oi,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+$S+".googlevideo.com/videoplayback?expire="+vK+"&ei="+D+"&ip="+JL+"&id=o-AF"+Hs+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+Zi+"&mn="+IP+"&ms="+IP+"&mv="+Y8+"&mvi="+MU+"&pl="+BK+"&initcwndbps="+Oi+"&siu="+MU+"&spc="+L+"&vprv="+MU+"&svpuc="+MU+"&mime=audio%2Fwebm&ns="+eK+"&gir="+x8+"&clen="+rg+"&dur="+rg+"&lmt="+eg+"&mt="+vK+"&fvip=3&keepalive="+x8+"&c=WEB&txp="+
Oi+"&n="+m_+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+x,mimeType:'audio/webm; codecs="opus"',bitrate:HK,initRange:{start:"0",end:"265"},indexRange:{start:RP,end:KY},lastModified:eg,contentLength:rg,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:HK,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Oi,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="+fZ+"&docid="+B+"&ei="+D+"&feature="+h+"&fexp="+gr+"&ns="+cW+"&plid="+k+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Y8+"&el="+WH+"&len="+KY+"&of="+iJ+
"&uga="+BK+"&vm="+lT},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+fZ+"&docid="+B+"&ei="+D+"&feature="+h+"&fexp="+gr+"&ns="+cW+"&plid="+k+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Y8+"&el="+WH+"&len="+KY+"&of="+iJ+"&uga="+BK+"&vm="+lT},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+fZ+"&docid="+B+"&ei="+D+"&feature="+h+"&fexp="+gr+"&ns="+cW+"&plid="+k+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
Y8+"&el="+WH+"&len="+KY+"&of="+iJ+"&uga="+BK+"&vm="+lT},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+D+"&m="+Zc+"&oid="+iJ+"&plid="+k+"&pltype="+KZ+"&ptchn="+iJ+"&ptk="+P+"&video_id="+B},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+fZ+"&docid="+B+"&ei="+D+"&event="+NS+"&feature="+h+"&fexp="+gr+"&ns="+cW+"&plid="+k+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Y8},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+B+"&ei="+D+"&feature="+
h+"&len="+KY+"&ns="+cW+"&plid="+k+"&ver="+MU,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+B+"&caps="+x8+"&opi="+fZ+"&xoaf="+MU+"&hl="+cW+"&ip="+JL+"&ipbits="+MU+"&expire="+vK+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+JL+"&key="+x8+"&lang="+QG,name:{simpleText:sW},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+B+"&caps="+x8+"&opi="+fZ+"&xoaf="+MU+"&hl="+cW+"&ip="+JL+"&ipbits="+MU+"&expire="+vK+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+JL+"&key="+x8+"&kind="+x8+"&lang="+cW,name:{simpleText:qU},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:Fr,title:aL,lengthSeconds:"1155",keywords:[za,v5,m_,gG],
channelId:eK,isOwnerViewing:!1,shortDescription:aL,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+B+"/hqdefault.jpg?sqp=-oaymwE"+Yh+"G&rs="+rC,width:168,height:94},{url:"https://i.ytimg.com/vi/"+B+"/hqdefault.jpg?sqp=-oaymwE"+Yh+"G&rs="+rC,width:196,height:110},{url:"https://i.ytimg.com/vi/"+B+"/hqdefault.jpg?sqp=-oaymwE"+Yh+"G&rs="+c,width:246,height:138},{url:"https://i.ytimg.com/vi/"+B+"/hqdefault.jpg?sqp=-oaymwE"+Yh+"G&rs="+c,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
B+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:Oi,author:SQ,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:Oi,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+iJ+"/featured_channel.jpg?v="+za,width:40,height:40}]},trackingParams:T5+"=",navigationEndpoint:{clickTrackingParams:Xr,commandMetadata:{webCommandMetadata:{url:"/channel/"+eK,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:eK}},channelName:SQ,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:v5}]},subscribed:!1,enabled:!0,type:"FREE",channelId:eK,showPreferences:!1,subscribedButtonText:{runs:[{text:SQ}]},unsubscribedButtonText:{runs:[{text:RH}]},trackingParams:T5+"=",unsubscribeButtonText:{runs:[{text:WH}]},serviceEndpoints:[{clickTrackingParams:Xr,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[eK],params:za}},{clickTrackingParams:Xr,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Xr,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:T5+"=",dialogMessages:[{runs:[{text:aL},{text:KZ},{text:ob}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:HW}]},serviceEndpoint:{clickTrackingParams:Xr,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[eK],params:za}},accessibility:{label:e_},trackingParams:T5+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:qU}]},accessibility:{label:JS},trackingParams:T5+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:Fr}},unsubscribeAccessibility:{accessibilityData:{label:RH}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:rg},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:Xr,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:Xr,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[eK],params:za}},unsubscribeCommand:{clickTrackingParams:Xr,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[eK],params:za}},addToWatchLaterCommand:{clickTrackingParams:Xr,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:Fr,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:Xr,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:Fr}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+B+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+Yh+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
B+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+Fr,width:1280,height:720},title:{simpleText:ob},description:{simpleText:sW},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+m_,externalChannelId:eK,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:Oi,category:"Travel & Events",publishDate:WK,ownerChannelName:SQ,uploadDate:WK}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:HW},trackingParams:T5+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:Xr,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:T5+"="}}],headerText:{simpleText:m_},icon:{infoCardIconRenderer:{trackingParams:T5+"="}},closeButton:{infoCardIconRenderer:{trackingParams:T5+"="}},trackingParams:T5+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:T5+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+Fr+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:ha,interpreterSafeUrl:(TJ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+da+".js",TJ),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:ob},{text:SQ,bold:!0}]},endpoint:{clickTrackingParams:Xr,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:T5+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:za}]},actionButton:{buttonRenderer:{text:{runs:[{text:SQ}]},navigationEndpoint:{clickTrackingParams:Xr,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+B,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
B,target:"TARGET_NEW_WINDOW"}},trackingParams:T5+"="}},trackingParams:T5+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+hz+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+hz+"=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:Oi,endMs:Oi,title:{accessibility:{accessibilityData:{label:aL}},simpleText:gG},metadata:{simpleText:SQ},callToAction:{simpleText:HW},dismiss:{simpleText:HW},endpoint:{clickTrackingParams:Xr,commandMetadata:{webCommandMetadata:{url:"/channel/"+eK,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:eK}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:aL}]},subscribed:!1,enabled:!0,type:"FREE",channelId:eK,showPreferences:!1,
subscribedButtonText:{runs:[{text:Fr}]},unsubscribedButtonText:{runs:[{text:RH}]},trackingParams:T5+"=",unsubscribeButtonText:{runs:[{text:RH}]},serviceEndpoints:[{clickTrackingParams:Xr,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[eK],params:za}},{clickTrackingParams:Xr,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Xr,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:T5+
"=",dialogMessages:[{runs:[{text:SQ},{text:aL},{text:za}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:e_}]},serviceEndpoint:{clickTrackingParams:Xr,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[eK],params:za}},accessibility:{label:ob},trackingParams:T5+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:qU}]},
accessibility:{label:WH},trackingParams:T5+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:qU}},unsubscribeAccessibility:{accessibilityData:{label:aL}}}},trackingParams:T5+"=",isSubscribe:!0,id:pY}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+B+"/hqdefault.jpg?sqp=-oaymwE"+Yh+"G&rs="+c,width:168,height:94},{url:"https://i.ytimg.com/vi/"+B+"/hqdefault.jpg?sqp=-oaymwE"+Yh+"G&rs="+rC,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+B+"/hqdefault.jpg?sqp=-oaymwE"+Yh+"G&rs="+c,width:246,height:138},{url:"https://i.ytimg.com/vi/"+B+"/hqdefault.jpg?sqp=-oaymwE"+Yh+"G&rs="+c,width:336,height:188},{url:"https://i.ytimg.com/vi/"+B+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:Oi,endMs:Oi,title:{accessibility:{accessibilityData:{label:qU}},simpleText:NS},metadata:{simpleText:ob},endpoint:{clickTrackingParams:Xr,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
Fr,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:Fr,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+$S+".googlevideo.com/videoplayback?source=youtube&oeis="+MU+"&c=WEB&oad="+KY+"&ovd="+KY+"&oaad="+si+"&oavd="+si+"&ocs="+RP+"&oewis="+MU+"&oputc="+MU+"&ofpcc="+MU+"&siu="+MU+"&msp="+MU+"&odepv="+MU+
"&id=o-AF"+Hs+"&ip="+JL+"&initcwndbps="+Oi+"&mt="+vK+"&oweuc="+gr}}}}},trackingParams:T5+"=",id:pY,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:HW}},simpleText:JS},style:"DEFAULT"}}]}}],startMs:Oi,trackingParams:T5+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:MU,offsetEndMilliseconds:si},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+fZ+";dc_trk_cid="+fZ+";dc_dbm_token="+x+";ord="+vK+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+MU+";dc_rui="+MU+";dc_exteid="+pY+";dc_av="+RP+";dc_sk="+MU+";dc_ctype="+BK+";dc_ref=http://www.youtube.com/video/"+Fr+";dc_pubid="+MU+";dc_btype=23?gclid="+xS+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
l+"____________"+Z+"AxAA&sigh="+Fr+"&cid="+z+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+MU+"&ns="+MU+"&event="+MU+"&device="+MU+"&content_v="+B+"&el="+WH+"&ei="+D+"&devicever="+u+"&bti="+Oi+"&format="+Fp+"&break_type="+MU+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+MU+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+JL+"&slot_pos="+MU+"&slot_len="+MU+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+Zi+"&ad_len="+si+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
Fr+"&aqi="+D+"&ad_rmp="+MU+"&sli="+MU}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+B+"&cid="+z+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+B+"&cid="+z+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MU+";dc_exteid="+pY+";met="+MU+";ecn"+MU+"="+MU+
";etm1="+MU+";eid1="+BK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+B+"&cid="+z+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MU+";dc_exteid="+pY+";met="+MU+";ecn"+MU+"="+MU+";etm1="+MU+";eid1="+Fp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
l+"____________"+Z+"AxAA&sigh="+B+"&cid="+z+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MU+";dc_exteid="+pY+";met="+MU+";ecn"+MU+"="+MU+";etm1="+MU+";eid1="+BK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+B+"&cid="+z+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+B+"&cid="+z+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MU+";dc_exteid="+pY+";met="+MU+";ecn"+MU+"="+MU+";etm1="+MU+";eid1="+BK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+B+"&cid="+z+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MU+";dc_exteid="+pY+";met="+MU+";ecn"+MU+"="+MU+";etm1="+MU+";eid1="+Oi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+B+"&cid="+z+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
l+"____________"+Z+"AxAA&sigh="+B+"&cid="+z+"&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"+l+"____________"+Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&ctype="+RP+"&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"+
l+"____________"+Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_engaged_view&ctype="+RP+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MU+";dc_exteid="+pY+";met="+MU+";ecn"+MU+"="+MU+";etm1="+MU+";eid1="+Fp+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
fZ+";dc_trk_cid="+fZ+";dc_dbm_token="+x+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+MU+";ord="+fZ+";dc_rui="+MU+";dc_exteid="+oP+";dc_av="+MU+";dc_sk="+MU+";dc_ctype="+BK+";dc_pubid="+MU+";dc_btype=3?gclid="+xS+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+B+"&cid="+z+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MU+";dc_exteid="+pY+";met="+MU+";ecn"+MU+"="+MU+";etm1="+MU+";eid1="+BK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+N+"&sig="+dC+"&ad_cpn=[AD_CPN]&id="+aL+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+aL+"&dc_pubid="+MU+"&dc_exteid="+pY+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+B+"&cid="+z+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+N+"&sig="+dC+"&ad_cpn=[AD_CPN]&id="+aL+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+MU},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+aL+"&avm="+MU+"&dc_pubid="+MU+"&dc_exteid="+
pY+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+B+"&cid="+z+"&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="+MU+";dc_exteid="+pY+";met="+MU+";ecn"+MU+"="+MU+";etm1="+MU+";eid1="+BK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
N+"&sig="+dC+"&ad_cpn=[AD_CPN]&id="+aL+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+MU},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+aL+"&dc_pubid="+MU+"&dc_exteid="+pY+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MU+";dc_exteid="+pY+";met="+MU+";ecn"+MU+"="+MU+";etm1="+MU+";eid1="+BK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
MU+";dc_exteid="+pY+";met="+MU+";ecn"+MU+"="+MU+";etm1="+MU+";eid1="+Fp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MU+";dc_exteid="+pY+";met="+MU+";ecn"+MU+"="+MU+";etm1="+MU+";eid1="+BK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MU+";dc_exteid="+pY+";met="+MU+";ecn"+MU+"="+MU+";etm1="+MU+";eid1="+Fp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+B+"&cid="+z+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MU+";dc_exteid="+pY+";met="+MU+";ecn"+MU+"="+MU+";etm1="+MU+";eid1="+BK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Xr,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+RP+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+
RP+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+B+"/mqdefault.jpg",width:320,height:180}]},trackingParams:T5+"="},trackingParams:T5+
"=",templatedCountdown:{templatedAdText:{text:aL,isTemplated:!0,trackingParams:T5+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:WH,isTemplated:!1,trackingParams:T5+"="},trackingParams:T5+"="}},trackingParams:T5+"=",skipOffsetMilliseconds:5E3}},trackingParams:T5+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:RH},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Xr,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
l+"____________"+Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+RP+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+RP+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:T5+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:m_,isTemplated:!1,trackingParams:T5+"="},trackingParams:T5+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:JS,isTemplated:!0,trackingParams:T5+"="}},trackingParams:T5+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Xr,openPopupAction:{popup:{aboutThisAdRenderer:{url:(YU.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+E+"&hl="+cW+"&origin=www.youtube.com&ata_theme="+v5,YU),trackingParams:T5+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:T5+"="}},hoverText:{runs:[{text:sW}]},trackingParams:T5+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+zg+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:T5+"="},headline:{text:HW,isTemplated:!1,trackingParams:T5+"="},description:{text:HW,
trackingParams:T5+"="},actionButton:{buttonRenderer:{text:{simpleText:KZ},navigationEndpoint:{clickTrackingParams:Xr,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+fZ+";dc_trk_cid="+fZ+";dc_dbm_token="+x+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+MU+";ord="+fZ+";dc_rui="+MU+";dc_exteid="+pY+";dc_av="+MU+";dc_sk="+MU+";dc_ctype="+BK+";dc_pubid="+MU+";dc_btype=3?gclid="+xS+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
l+"____________"+Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+RP+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+RP+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:T5+"="}},startMs:MU,trackingParams:T5+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:WH},elementId:m_}},elementId:Fr,trackingParams:T5+"=",legacyInfoCardVastExtension:m_,sodarExtensionData:{siub:JS,bgub:JS,scs:WH,bgp:ob},externalVideoId:Fr,adLayoutLoggingData:{serializedAdServingDataEntry:gG},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+zg+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:T5+"="},
headline:{text:WH,isTemplated:!1,trackingParams:T5+"="},description:{text:SQ,isTemplated:!1,trackingParams:T5+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:WH},navigationEndpoint:{clickTrackingParams:Xr,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+fZ+";dc_trk_cid="+fZ+";dc_dbm_token="+x+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+MU+";ord="+fZ+";dc_rui="+MU+";dc_exteid="+
pY+";dc_av="+MU+";dc_sk="+MU+";dc_ctype="+BK+";dc_pubid="+MU+";dc_btype=3?gclid="+xS+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+RP+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+Z+"AxAA&ase=2&num="+
MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+RP+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:T5+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:T5+"="}},navigationEndpoint:{clickTrackingParams:Xr,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+fZ+";dc_trk_cid="+
fZ+";dc_dbm_token="+x+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+MU+";ord="+fZ+";dc_rui="+MU+";dc_exteid="+pY+";dc_av="+MU+";dc_sk="+MU+";dc_ctype="+BK+";dc_pubid="+MU+";dc_btype=3?gclid="+xS+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+B+"&cid="+z+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+
Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+RP+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+RP+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:T5+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:T5+"="},abandonCommands:{commands:[{clickTrackingParams:Xr,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+B+"&cid="+z+"&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="+MU+";dc_exteid="+pY+";met="+MU+";ecn"+
MU+"="+MU+";etm1="+MU+";eid1="+BK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Xr,commandExecutorCommand:{commands:[{clickTrackingParams:Xr,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+B+"&cid="+z+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:sW,isTemplated:!1,trackingParams:T5+
"="},trackingParams:T5+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:ob},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+B+"&cid="+z+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MU+";dc_exteid="+pY+";met="+MU+";ecn"+MU+"="+MU+";etm1="+MU+";eid1="+Oi+";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="+fZ+";dc_trk_cid="+fZ+";ord="+vK+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+MU+";dc_rui="+MU+";dc_exteid="+pY+";dc_av="+RP+";dc_sk="+MU+";dc_ctype="+BK+";dc_ref=http://www.youtube.com/video/"+Fr+";dc_pubid="+MU+";dc_btype=23?gclid="+xS+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+l+"____________"+Z+"AxAA&sigh="+Fr+"&cid="+z+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+MU+"&ns="+MU+"&event="+MU+"&device="+MU+"&content_v="+B+"&el="+WH+"&ei="+D+"&devicever="+u+"&bti="+Oi+"&format="+Fp+"&break_type="+MU+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+MU+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+JL+"&slot_pos="+MU+"&slot_len="+MU+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
Zi+"&ad_len="+si+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+Fr+"&aqi="+D+"&ad_rmp="+MU+"&sli="+MU}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+Fr+"&cid="+z+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+Fr+"&cid="+z+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
MU+";dc_exteid="+pY+";met="+MU+";ecn"+MU+"="+MU+";etm1="+MU+";eid1="+BK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+Fr+"&cid="+z+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MU+";dc_exteid="+pY+";met="+MU+";ecn"+MU+"="+MU+";etm1="+MU+";eid1="+Fp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+Fr+"&cid="+z+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MU+";dc_exteid="+pY+";met="+MU+";ecn"+MU+"="+MU+";etm1="+MU+";eid1="+BK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+Fr+"&cid="+
z+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+Fr+"&cid="+z+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MU+";dc_exteid="+pY+";met="+MU+";ecn"+MU+"="+MU+";etm1="+MU+";eid1="+BK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
l+"____________"+Z+"AxAA&sigh="+Fr+"&cid="+z+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MU+";dc_exteid="+pY+";met="+MU+";ecn"+MU+"="+MU+";etm1="+MU+";eid1="+Oi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+Fr+"&cid="+z+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+Fr+"&cid="+z+"&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"+l+"____________"+Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&ctype="+RP+"&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"+l+"____________"+Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_engaged_view&ctype="+RP+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MU+";dc_exteid="+pY+";met="+MU+";ecn"+MU+"="+MU+";etm1="+MU+";eid1="+Fp+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+Fr+"&cid="+z+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MU+";dc_exteid="+pY+";met="+MU+";ecn"+MU+"="+MU+";etm1="+MU+";eid1="+BK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+N+"&sig="+dC+"&ad_cpn=[AD_CPN]&id="+
aL+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+aL+"&dc_pubid="+MU+"&dc_exteid="+pY+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+Fr+"&cid="+z+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+N+
"&sig="+dC+"&ad_cpn=[AD_CPN]&id="+aL+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+MU},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+aL+"&avm="+MU+"&dc_pubid="+MU+"&dc_exteid="+pY+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+Fr+"&cid="+z+"&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="+MU+";dc_exteid="+pY+";met="+MU+";ecn"+MU+"="+MU+";etm1="+MU+";eid1="+BK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+N+"&sig="+dC+"&ad_cpn=[AD_CPN]&id="+aL+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+MU},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+aL+"&dc_pubid="+MU+"&dc_exteid="+pY+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MU+";dc_exteid="+pY+";met="+MU+";ecn"+MU+"="+MU+";etm1="+MU+";eid1="+BK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MU+";dc_exteid="+pY+";met="+MU+";ecn"+MU+"="+MU+";etm1="+MU+";eid1="+Fp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
MU+";dc_exteid="+pY+";met="+MU+";ecn"+MU+"="+MU+";etm1="+MU+";eid1="+BK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MU+";dc_exteid="+pY+";met="+MU+";ecn"+MU+"="+MU+";etm1="+MU+";eid1="+Fp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+Fr+"&cid="+z+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MU+";dc_exteid="+pY+";met="+MU+";ecn"+MU+"="+MU+";etm1="+MU+";eid1="+BK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Xr,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+
RP+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+RP+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",
playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+B+"/mqdefault.jpg",width:320,height:180}]},trackingParams:T5+"="},trackingParams:T5+"=",templatedCountdown:{templatedAdText:{text:aL,isTemplated:!0,trackingParams:T5+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:za,isTemplated:!1,trackingParams:T5+"="},trackingParams:T5+"="}},
trackingParams:T5+"=",skipOffsetMilliseconds:5E3}},trackingParams:T5+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:JS},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Xr,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+RP+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+RP+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:T5+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:gG,isTemplated:!1,trackingParams:T5+"="},trackingParams:T5+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:KZ,
isTemplated:!0,trackingParams:T5+"="}},trackingParams:T5+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Xr,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Jr.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+E+"&hl="+cW+"&origin=www.youtube.com&ata_theme="+v5,Jr),trackingParams:T5+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:T5+"="}},hoverText:{runs:[{text:JS}]},trackingParams:T5+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+bO+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:T5+"="},headline:{text:m_,isTemplated:!1,trackingParams:T5+"="},description:{text:RH,trackingParams:T5+"="},actionButton:{buttonRenderer:{text:{simpleText:aL},navigationEndpoint:{clickTrackingParams:Xr,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
l+"____________"+Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+RP+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+RP+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:T5+"="}},startMs:MU,trackingParams:T5+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:gG},elementId:RH}},elementId:JS,trackingParams:T5+"=",legacyInfoCardVastExtension:Fr,sodarExtensionData:{siub:e_,bgub:KZ,scs:qU,bgp:SQ},externalVideoId:Fr,adLayoutLoggingData:{serializedAdServingDataEntry:KZ},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+bO+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:T5+"="},headline:{text:v5,
isTemplated:!1,trackingParams:T5+"="},description:{text:KZ,isTemplated:!1,trackingParams:T5+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:NS},navigationEndpoint:{clickTrackingParams:Xr,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+RP+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+RP+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:T5+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:T5+"="}},navigationEndpoint:{clickTrackingParams:Xr,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
l+"____________"+Z+"AxAA&sigh="+Fr+"&cid="+z+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+RP+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+Z+"AxAA&ase=2&num="+
MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+RP+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:T5+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:T5+"="},abandonCommands:{commands:[{clickTrackingParams:Xr,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+Fr+"&cid="+z+"&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="+MU+";dc_exteid="+pY+";met="+MU+";ecn"+MU+"="+MU+";etm1="+MU+";eid1="+BK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Xr,commandExecutorCommand:{commands:[{clickTrackingParams:Xr,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+Fr+"&cid="+z+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:v5,isTemplated:!1,trackingParams:T5+"="},trackingParams:T5+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:e_},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+Fr+"&cid="+z+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MU+";dc_exteid="+pY+";met="+MU+";ecn"+MU+"="+MU+";etm1="+MU+";eid1="+
Oi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:WH}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:v5}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:si,offsetEndMilliseconds:Fp},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+D+"&m_pos="+BK+"&token=ALHj"+a+"&index="+MU+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+u+"&m_pos_ms="+si}},adSlotLoggingData:{serializedSlotAdServingDataEntry:m_}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:Fp,offsetEndMilliseconds:Fp},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+D+"&m_pos="+RP+"&token=ALHj"+a+"&index="+MU+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
u+"&m_pos_ms="+Fp}},adSlotLoggingData:{serializedSlotAdServingDataEntry:HW}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Fp,offsetEndMilliseconds:Fp},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+D+"&m_pos="+RP+"&token=ALHj"+a+"&index="+MU+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
u+"&m_pos_ms="+Fp}},adSlotLoggingData:{serializedSlotAdServingDataEntry:za}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Fp,offsetEndMilliseconds:Fp},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+D+"&m_pos="+RP+"&token=ALHj"+a+"&index="+MU+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
u+"&m_pos_ms="+Fp}},adSlotLoggingData:{serializedSlotAdServingDataEntry:RH}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Fp,offsetEndMilliseconds:BK},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+D+"&m_pos="+RP+"&token=ALHj"+a+"&index="+MU+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
u+"&m_pos_ms="+Fp}},adSlotLoggingData:{serializedSlotAdServingDataEntry:RH}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:BK,offsetEndMilliseconds:BK},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+D+"&m_pos="+BK+"&token=ALHj"+a+"&index="+MU+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
u+"&m_pos_ms="+BK}},adSlotLoggingData:{serializedSlotAdServingDataEntry:za}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:za,isTemplated:!1,trackingParams:T5+"="},description:{text:WH,isTemplated:!1,trackingParams:T5+"="},actionButton:{buttonRenderer:{text:{simpleText:gG},navigationEndpoint:{clickTrackingParams:Xr,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
fZ+";dc_trk_cid="+fZ+";dc_dbm_token="+x+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+MU+";ord="+fZ+";dc_rui="+MU+";dc_exteid="+pY+";dc_av="+MU+";dc_sk="+MU+";dc_ctype="+BK+";dc_pubid="+MU+";dc_btype=3?gclid="+xS+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+RP+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+RP+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:T5+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+zg+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:T5+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+BW+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:T5+"="},navigationEndpoint:{clickTrackingParams:Xr,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+fZ+";dc_trk_cid="+fZ+";dc_dbm_token="+x+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+MU+";ord="+fZ+
";dc_rui="+MU+";dc_exteid="+pY+";dc_av="+MU+";dc_sk="+MU+";dc_ctype="+BK+";dc_pubid="+MU+";dc_btype=3?gclid="+xS+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+RP+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
l+"____________"+Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+RP+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:T5+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Xr,openPopupAction:{popup:{aboutThisAdRenderer:{url:(So4.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+E+"&hl="+cW+"&origin=www.youtube.com&ata_theme="+v5,So4),trackingParams:T5+"="}},popupType:"DIALOG"}},trackingParams:T5+"="}},hoverText:{runs:[{text:qU}]},trackingParams:T5+"="}},adVideoId:Fr,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+B+"&cid="+z+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:ob},associatedCompositePlayerBytesLayoutId:m_}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:qU}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:ob,isTemplated:!1,trackingParams:T5+"="},description:{text:gG,isTemplated:!1,trackingParams:T5+"="},actionButton:{buttonRenderer:{text:{simpleText:Fr},navigationEndpoint:{clickTrackingParams:Xr,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+
Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+RP+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+RP+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:T5+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+bO+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:T5+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+pZ+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:T5+"="},navigationEndpoint:{clickTrackingParams:Xr,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+Z+"AxAA&ase=2&num="+
MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+RP+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+RP+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:T5+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Xr,openPopupAction:{popup:{aboutThisAdRenderer:{url:(VZ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+E+"&hl="+cW+"&origin=www.youtube.com&ata_theme="+v5,VZ),trackingParams:T5+"="}},popupType:"DIALOG"}},trackingParams:T5+"="}},
hoverText:{runs:[{text:RH}]},trackingParams:T5+"="}},adVideoId:Fr,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+Fr+"&cid="+z+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:m_},associatedCompositePlayerBytesLayoutId:m_}},adSlotLoggingData:{serializedSlotAdServingDataEntry:qU}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:NS,
isTemplated:!1,trackingParams:T5+"="},description:{text:KZ,isTemplated:!1,trackingParams:T5+"="},actionButton:{buttonRenderer:{text:{simpleText:za},navigationEndpoint:{clickTrackingParams:Xr,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+fZ+";dc_trk_cid="+fZ+";dc_dbm_token="+x+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+MU+";ord="+fZ+";dc_rui="+MU+";dc_exteid="+pY+";dc_av="+MU+";dc_sk="+MU+";dc_ctype="+
BK+";dc_pubid="+MU+";dc_btype=3?gclid="+xS+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+RP+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+
c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+RP+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:T5+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+zg+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:T5+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+BW+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:T5+
"="},navigationEndpoint:{clickTrackingParams:Xr,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+fZ+";dc_trk_cid="+fZ+";dc_dbm_token="+x+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+MU+";ord="+fZ+";dc_rui="+MU+";dc_exteid="+pY+";dc_av="+MU+";dc_sk="+MU+";dc_ctype="+BK+";dc_pubid="+MU+";dc_btype=3?gclid="+xS+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
l+"____________"+Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+RP+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+Z+"AxAA&ase=2&num="+MU+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+xE+"&label=video_click_to_advertiser_site&ctype="+RP+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:T5+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Xr,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Vy.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+E+"&hl="+cW+"&origin=www.youtube.com&ata_theme="+v5,Vy),trackingParams:T5+"="}},popupType:"DIALOG"}},trackingParams:T5+
"="}},hoverText:{runs:[{text:ob}]},trackingParams:T5+"="}},adVideoId:Fr,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+Z+"AxAA&sigh="+B+"&cid="+z+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:aL},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:m_}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Fr}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:da,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:da,command:{innertubeCommand:{clickTrackingParams:Xr,ypcGetOfflineUpsellEndpoint:{params:hS}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:T5+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:vK,nanos:Sg}}}},rkG=JSON.stringify(iC),KS=performance.now()-R;return{objectRepresentation:iC,jsonRepresentation:rkG,generationTime:KS}};
QSO=function(R,y){if(R===y)return!0;if(!R||!y||typeof R!==typeof y)return!1;if(R instanceof Array&&y instanceof Array){if(R.length!==y.length)return!1;for(var u=0;u<R.length;u++)if(!QSO(R[u],y[u]))return!1;return!0}if(typeof R==="object"&&typeof y==="object"&&R&&y){for(u in R)if(!(u in y&&QSO(R[u],y[u])))return!1;for(var v in y)if(!(v in R))return!1;return!0}return!1};
_.Fb=function(){if(!b7){b7=new Fv(new jSW);var R=_.JT("client_streamz_web_flush_count",-1);R!==-1&&(b7.invocationLimit=R)}return b7};
ww=function(R,y,u,v){if(R===y)return!0;if(Array.isArray(R)&&Array.isArray(y)){if(R.length!==y.length)return!1;for(var Q=0;Q<R.length;Q++)if(!ww(R[Q],y[Q],u,v))return!1;return!0}if(R instanceof Set||y instanceof Set){if(R instanceof Set&&y instanceof Set){if(R.size!==y.size)return!1;v=_.V(R.values());for(Q=v.next();!Q.done;Q=v.next())if(!y.has(Q.value))return!1;return!0}return!1}if(R instanceof Function){if(v)return!0;R.name===""&&_.dI(Error("If"),"ERROR");return!1}if(R instanceof Date&&y instanceof
Date)return R.getTime()===y.getTime();if(R instanceof Object&&y instanceof Object){if(McL(R)&&McL(y))try{return R.equals(y)}catch(K){_.dI(Error("Jf`"+K),"ERROR")}Q=Object.getOwnPropertyNames(R).filter(function(K){return u?R[K]!==void 0:!0});
var M=Object.getOwnPropertyNames(y).filter(function(K){return u?y[K]!==void 0:!0});
if(Q.length!==M.length)return!1;Q=_.V(Q);for(M=Q.next();!M.done;M=Q.next())if(M=M.value,!ww(R[M],y[M],u,v))return!1;return!0}return!1};
McL=function(R){R=Object.getPrototypeOf(R).equals;return R instanceof Function&&R.length===1};
_.i6U=function(){return _.I(function(R){if(R.nextAddress==1)return J3z!==2?R.jumpTo(2):R.yield(Vcc(),3);R.nextAddress!=2&&(J3z=R.yieldResult);return R.return(J3z)})};
_.hg4=function(){return _.I(function(R){if(R.nextAddress==1)return _.f("ab_pl_man")?K5v!==2?R.jumpTo(2):R.yield(IYz(),3):R.return(1);R.nextAddress!=2&&(K5v=R.yieldResult);return R.return(K5v)})};
w4E=function(){return _.I(function(R){if(R.nextAddress==1)return _.f("ab_fk_sk_cl")?b6W!==2?R.jumpTo(2):R.yield(F5z(),3):R.return(1);R.nextAddress!=2&&(b6W=R.yieldResult);return R.return(b6W)})};
_.oCS=function(){return _.I(function(R){if(R.nextAddress==1)return _.f("ab_det_apb_b")?NT8!==2?R.jumpTo(2):R.yield(TTE(),3):R.return(1);R.nextAddress!=2&&(NT8=R.yieldResult);return R.return(NT8)})};
fYU=function(){var R;return _.I(function(y){if(y.nextAddress==1)return y.yield(Promise.all([_.i6U(),_.oCS(),_.hg4(),w4E()]),2);if(y.nextAddress!=3)return xAz()?y.return(!0):y.yield(_.BT8(),3);R=y.yieldResult;return y.return(R===0)})};
xAz=function(){var R=!1,y=function(u,v){egc.increment(v,u);u===0&&(R=!0)};
y(_.lYU(),"j.s_");y(J3z,"f.i_");y(NT8,"a.b_");y(K5v,"p.m_");y(b6W,"i.f_");O6O===2&&(O6O=_.Z6G(H68));y(O6O,"e.h_");_.f("ks_det_gpbl")||y(_.nCP(),"p.i_");_.f("ks_get_o_pp")||y(_.GWT(),"g.o_");_.f("ab_deg_unex_thr")||y(_.r3W(),"a.o_");y(PqU,"s.t_");_.f("ab_det_sc_inj_enf")&&y(_.W5c(),"s.i_");y(dAU,"d.p_");y(_.UAU(_.NB),"o.p_");y(_.kWc()===0?0:_.ECO(),"o.a_");return _.f("debug_sk_em_precheck")?!0:R};
qIP=function(){var R=[].concat(_.P$($A8));try{var y=hU();R.push({jsonRepresentation:y.jsonRepresentation,objectRepresentation:y.objectRepresentation})}catch(u){R=[].concat(_.P$($A8))}return R};
X4W=function(){var R=["adPlacements","adSlots"];try{return R.filter(function(){return!0}).length!==R.length?0:1}catch(y){return 0}};
_.GWT=function(){if(X4W()===0)return 0;var R=hU(),y=R.objectRepresentation,u=(0,_.Ps.unsafeClone)(y),v=[];if(y&&typeof y==="object")for(var Q in y)v.push(Q);else return 4;R=R.objectRepresentation.adPlacements;if(!(R&&R.length>0))return 4;try{if(!QSO(v,Object.getOwnPropertyNames(y)))return 0}catch(M){return 0}return QSO(u,y)?1:0};
_.UAU=function(R){if(!R||!R.length||typeof R==="string")return 0;for(var y=Object.getOwnPropertyNames(Object.prototype),u=0;u<R.length;u++)for(var v=_.Ve(R[u]),Q=_.V(y),M=Q.next();!M.done;M=Q.next())if(v===M.value)return 0;return 1};
mA4=function(R){var y=_.Ve(R[1]);if(R[0]===null)return y;R=R[0];for(var u={},v=0;v<R.length;v++){var Q=_.Ve(R[v]);if(v===0)u[Q]=y;else{var M={};M[Q]=u;u=M}}return u};
_.kWc=function(){for(var R=_.T2,y=0;y<R.length;y++){var u=mA4(R[y]),v=[];v.push(u);if(v.length===0)return 0}return 1};
_.ECO=function(){for(var R=_.T2,y={},u=0;u<R.length;y={cdw:void 0},u++){var v=[mA4(R[u])];y.cdw=[];v.forEach(function(Q){return function(M){Q.cdw[Q.cdw.length]=M}}(y));
if(y.cdw.length===0)return 0}return 1};
_.lYU=function(){for(var R=_.V(qIP()),y=R.next();!y.done;y=R.next()){var u=y.value;y=u.jsonRepresentation;u=u.objectRepresentation;try{var v=JSON.parse(y);if(!ww(v,u,!1,!1))return 0}catch(Q){return 0}}return 1};
_.W5c=function(){try{var R=_.ia("ab_det_sc_inj_val");R.length===1&&R[0]===""&&(R=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var y=document.querySelectorAll("script"),u=_.V(y),v=u.next();!v.done;v=u.next())for(var Q=v.value,M=_.V(R),K=M.next();!K.done;K=M.next()){var h=K.value;y=void 0;if((y=Q.textContent)==null?0:y.includes(h))return 0}}catch(b){return 4}return 1};
_.BT8=function(){var R,y,u,v,Q,M,K;return _.I(function(h){switch(h.nextAddress){case 1:_.wY(h,2),R=_.V($A8),y=R.next();case 4:if(y.done)return h.return(1);v=u=y.value;Q=v.jsonRepresentation;M=v.objectRepresentation;return h.yield((new Response(Q,{status:200})).json(),7);case 7:K=h.yieldResult;if(!ww(K,M,!1,!1))return h.return(0);y=R.next();h.jumpTo(4);break;case 2:return _.B$(h),h.return(4)}})};
_.r3W=function(){try{btoa("abc")}catch(R){return 0}return 1};
Vcc=function(){var R,y,u,v,Q,M,K,h,b,N,T;return _.I(function(x){switch(x.nextAddress){case 1:_.wY(x,2),R=_.V(qIP()),y=R.next();case 4:if(y.done)return x.return(1);v=u=y.value;Q=v.jsonRepresentation;M=v.objectRepresentation;K=btoa(Q);h="data:application/json;base64,"+K;b=new Request(h);Object.defineProperty(b,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(b,"method",{get:function(){return"POST"}});
Object.defineProperty(b,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(b,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(b,"body",{get:function(){return new ReadableStream}});
return x.yield(fetch(b),7);case 7:return N=x.yieldResult,x.yield(N.json(),8);case 8:T=x.yieldResult;if(!ww(T,M,!1,!1))return x.return(0);y=R.next();x.jumpTo(4);break;case 2:return _.B$(x),x.return(4)}})};
_.Z6G=function(R){if(!R||!R.length||typeof R==="string")return 0;for(var y=function(Q){return _.Ve(Q)},u=2,v=0;v<R.length&&(u=_.A3G(_.u08(R[v],y)),u!==0);v++);
return u};
_.A3G=function(R){var y=_.V(R);R=y.next().value;y=y.next().value;try{var u=document.createElement("div");document.body.appendChild(u);var v=getComputedStyle(u).display;document.body.removeChild(u);if(v==="none")return 4;var Q=getComputedStyle(y).display==="none"?0:1;document.body.removeChild(R);return Q}catch(M){return 4}};
F5z=function(){var R,y,u;return _.I(function(v){R=new _.xv;y=document.createElement("button");y.classList.add("ytp-ad-skip-button");y.style.opacity="0";y.style.height="0px";y.style.width="0px";y.style.padding="0px";y.style.border="none";u=function(){y.parentElement&&y.parentElement.removeChild(y)};
y.onclick=function(){R.resolve(0);u()};
document.body.appendChild(y);setTimeout(function(){u();R.resolve(1)},50);
return v.return(R.promise)})};
IYz=function(){var R,y,u,v,Q,M,K;return _.I(function(h){R=new _.xv;y=document.createElement("ytd-player");try{document.body.prepend(y)}catch(b){return h.return(4)}u=function(){y.parentElement&&y.parentElement.removeChild(y)};
y.getElementsByTagName("div").length>0?v=y.getElementsByTagName("div")[0]:(v=document.createElement("div"),y.appendChild(v));Q=document.createElement("div");v.appendChild(Q);M=document.createElement("video");K=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"});M.src=_.Pg(_.$E(K));M.ontimeupdate=function(){u();R.resolve(0)};
Q.appendChild(M);M.classList.add("html5-main-video");setTimeout(function(){Q.classList.add("ad-interrupting")},200);
setTimeout(function(){u();R.resolve(1)},5E3);
return h.return(R.promise)})};
DAc=function(R,y){var u,v;return _.I(function(Q){switch(Q.nextAddress){case 1:u=[],v=0;case 2:if(!(v<3)){Q.jumpTo(4);break}return Q.yield(fetch(R,{cache:"no-store",method:y}).then(function(M){u.push(M.status)}).catch(function(){u.push(-1)}),3);
case 3:v++;Q.jumpTo(2);break;case 4:return Q.return(u)}})};
p4z=function(R){return R.domainLookupStart===0&&R.domainLookupEnd===0&&R.connectStart===0&&R.connectEnd===0};
tcz=function(R,y,u){u=u===void 0?"GET":u;var v,Q,M,K,h,b,N,T,x,B;return _.I(function(l){if(l.nextAddress==1)return l.yield(Promise.all([DAc(R,u),DAc(y,u)]),2);v=l.yieldResult;Q=_.V(v);M=Q.next().value;K=Q.next().value;h=M;b=K;if(Math.min.apply(Math,_.P$(b))!==Math.max.apply(Math,_.P$(b))||Math.min.apply(Math,_.P$(h))!==Math.max.apply(Math,_.P$(h)))return l.return(2);if(Math.min.apply(Math,_.P$(b))===Math.min.apply(Math,_.P$(h)))return l.return(1);T=(N=performance.getEntriesByName(R))==null?void 0:
N[0];B=(x=performance.getEntriesByName(y))==null?void 0:x[0];return T&&B?p4z(B)?l.return(1):p4z(T)?l.return(0):l.return(1):l.return(2)})};
TTE=function(){var R;return _.I(function(y){var u=[];var v;var Q,M,K;(Q=v=(Q=hU().objectRepresentation.streamingData)==null?void 0:(M=Q.formats)==null?void 0:(K=M[0])==null?void 0:K.url)&&Q&&!v.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(Q=Q.replace("initcwndbps","ctier=L&initcwndbps"),Q=Q.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),v={testUrl:Q,baseUrl:v,method:"GET"}):v=void 0;v&&u.push(v);_.f("ab_net_tp_e")&&u.push({testUrl:_.uO.location.origin+"/ad_companion",baseUrl:_.uO.location.origin+
"/generate_204",method:"OPTIONS"});if(_.f("ad_net_pb_ab")){var h;b:{v=/api\/stats\/ads/;var b,N,T,x;Q=(h=hU().objectRepresentation.adPlacements)==null?void 0:(b=h[0])==null?void 0:(N=b.adPlacementRenderer)==null?void 0:(T=N.renderer)==null?void 0:(x=T.linearAdSequenceRenderer)==null?void 0:x.linearAds;if(Q!=null&&Q.length&&(h=_.e(Q[0],c3U))&&(h=h.pings,h!=null&&h.impressionPings))for(b=[].concat(_.P$(h.impressionPings)),h.progressPings&&(b=[].concat(_.P$(b),_.P$(h.progressPings))),h=_.V(b),b=h.next();!b.done;b=
h.next())if(b=b.value,b.baseUrl&&v.test(b.baseUrl)){h=b.baseUrl.replace("https://www.youtube.com","");break b}h=void 0}h&&u.push({testUrl:_.uO.location.origin+h,baseUrl:_.uO.location.origin+"/feed/download",method:"GET"})}if(_.f("ad_net_pb_pbp")){var B;b:{h=/api\/stats\/qoe/;if(b=hU().objectRepresentation.playbackTracking){N=[];N.push(b==null?void 0:(B=b.videostatsPlaybackUrl)==null?void 0:B.baseUrl);var l;N.push(b==null?void 0:(l=b.videostatsDelayplayUrl)==null?void 0:l.baseUrl);var Z;N.push(b==
null?void 0:(Z=b.videostatsWatchtimeUrl)==null?void 0:Z.baseUrl);var P;N.push(b==null?void 0:(P=b.ptrackingUrl)==null?void 0:P.baseUrl);var k;N.push(b==null?void 0:(k=b.qoeUrl)==null?void 0:k.baseUrl);var E;N.push(b==null?void 0:(E=b.atrUrl)==null?void 0:E.baseUrl);B=_.V(N);for(l=B.next();!l.done;l=B.next())if((l=l.value)&&h.test(l)){B=l.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}B=void 0}B&&u.push({testUrl:_.uO.location.origin+B,baseUrl:_.uO.location.origin+
"/feed/download",method:"GET"})}u=u.length!==0?u[Math.floor(Math.random()*u.length)]:void 0;return(R=u)?y.return(tcz(R.testUrl,R.baseUrl,R.method)):y.return(4)})};
_.nCP=function(){if(_.uO.rh2===void 0||_.uO.rh2===null||typeof _.uO.rh2!=="function")return 2;try{return _.uO.rh2()===!0?0:1}catch(R){return 0}};
aYO=function(R){switch(R){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.AL(R,"unknown result type")}};
_.SIW=function(R,y){var u=Number(_.EB("CATSTAT",0));if(y.b8x===void 0)return u;y=y.b8x;R=aYO(R);return u&~(3<<y)|R<<y};
YIc=function(R){var y,u;if((R=(y=R.auxiliaryUi)==null?void 0:(u=y.messageRenderers)==null?void 0:u.bkaEnforcementMessageViewModel)&&R.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return R};
sSP=function(){for(var R=_.V(Object.values(_.L54)),y=R.next();!y.done;y=R.next())y=y.value,y.isAsync&&y.b8x&&_.kB("CATSTAT",_.SIW(2,y))};
_.l7=function(R,y){R=_.BV("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",R);(y===void 0?0:y)?_.zgS(R,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.fc(_.eq(),R,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
CqU=function(){if(!gCz){if(Polymer.Base){var R=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{R.apply(this,arguments)}catch(x){_.mq(x)}};
var y=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{y.apply(this,arguments)}catch(x){_.mq(x)}};
var u=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{u.apply(this,arguments)}catch(x){_.mq(x)}};
var v=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{v.apply(this,arguments)}catch(x){_.mq(x)}};
var Q=Polymer.Base._listen,M=new WeakMap;Polymer.Base._listen=function(x,B,l){var Z=function(){try{l.apply(this,arguments)}catch(P){_.mq(P)}};
M.set(l,Z);Q.call(this,x,B,Z)};
var K=Polymer.Base._unlisten;Polymer.Base._unlisten=function(x,B,l){K.call(this,x,B,M.get(l))}}if(Polymer.Async){var h=Polymer.Async,b=h._atEndOfMicrotask;
h._atEndOfMicrotask=function(){try{b.apply(h,arguments)}catch(x){_.mq(x)}}}if(Polymer.RenderStatus){var N=Polymer.RenderStatus,T=N.afterNextRender;
N.afterNextRender=function(x,B,l){T.call(N,x,function(){try{B.apply(this,arguments)}catch(Z){_.mq(Z)}},l)}}gCz=!0}};
_.OZ=function(R){var y=R?_.Fq(R):"";if(y){if(y.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(y.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(y.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(y.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(y.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.f("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(y.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";y=y.toLowerCase();if(y==="/")return"home";if(y==="/channel_memberships")return"channel-memberships-shopfront";if(y.indexOf("/feed/trending")===0)return"trending";if(y.indexOf("/feed/explore")===0)return"explore";if(y.indexOf("/live")===0)return"live";if(y.indexOf("/results")===0)return"search";if(y.indexOf("/sports")===0)return"sports";if(y.indexOf("/fashion")===0||y.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(y))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(y))return _.f("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(y.indexOf("/channel/")===0||y.indexOf("/user/")===0||y.indexOf("/gaming")===0||y.indexOf("/post/")===0)return"channel";if(RYP(R))return"show";if(y==="/playlist"||y.indexOf("/playlist/")===0||y==="/view_play_list"||y.indexOf("/view_play_list/")===0||y.indexOf("/show/")===0)return"playlist";if(y==="/feed/history"||y.indexOf("/feed/history/")===0)return"history";if(y===
"/new")return"labs";if(y==="/feed/subscriptions")return"subscriptions";if(y.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(y==="/history_controls")return"standalone";if(y.indexOf("/account")===0||y==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(y.indexOf("/paid_memberships")===0||y.indexOf("/refund")===0||y.indexOf("/purchases")===0||y.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(y.indexOf("/product")===0)return"yts-products";if(y.indexOf("/premium")===
0||y.indexOf("/musicpremium")===0)return y.indexOf("/premium/offers")===0||y.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(y==="/cart/checkout"||y==="/cart")return"ypc-checkout";if(y.indexOf("/feed/downloads")===0||y.indexOf("/redeem")===0||y.indexOf("/reporthistory")===0)return"browse";if(y.indexOf("/hashtag")===0)return"hashtag-landing-page";if(y.indexOf("/handle")===0)return"handle";if(y.indexOf("/source")===0)return"audio-pivot";if(y.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";
if(y.indexOf("/playables")===0)return"playables";if(y.indexOf("/create/live/join")===0)return"open-in-app";if(y.indexOf("/shorts")===0)return"shorts";if(y.indexOf("/feed/channels")===0)return"subscriptions-channels";(y=R?_.Fq(R):"")&&y.indexOf("/watch")===0&&_.f("web_watch_enable_learning_journey")?(R=_.SS(R),R=!!R.list&&R.list.indexOf("LJPP")===0):R=!1;if(R)return"learning_journey_watch"}};
_.Zj=function(R){var y,u;(R=(u=_.e(R==null?void 0:R.commandMetadata,_.QL))==null?void 0:u.url)&&(y=_.OZ(R));return y};
RYP=function(R){var y=R?_.Fq(R):"";if(!y)return!1;y=y.toLowerCase();return y.indexOf("/show/")===0||y.indexOf("/playlist")===0&&(R=_.SS(R),R.list&&R.list.indexOf("EL")===0)?!0:!1};
G2=function(R){var y="unknown",u;var v=((u=_.e(R==null?void 0:R.commandMetadata,_.QL))==null?void 0:u.webPageType)||"";v?(u=v.toLowerCase(),u.startsWith("web_page_type_")&&(u=u.slice(14))):u=v;u&&yOW[u.toUpperCase()]?y=yOW[u.toUpperCase()]:_.e(R,_.HV)||_.e(R,uJE)?y="browse":_.e(R,_.nc)?y="search":_.e(R,_.zM)&&(y="watch");y==="watch"&&_.Zj(R||null)==="learning_journey_watch"&&(y="learning_journey_watch");y==="unknown"&&_.kT(Error("Lf`"+JSON.stringify({clickTrackingParams:R==null?void 0:R.clickTrackingParams,
commandMetadata:R==null?void 0:R.commandMetadata,allEndpointKeys:Object.keys(R||[])})));return y};
_.rw=function(R){if(!_.vxO||R)_.vxO=_.xh();return _.vxO};
_.QaO=function(R){return!!_.e(R,_.zM)||!!_.e(R,_.PV)&&_.f("kevlar_enable_shorts_prefetch")};
_.jac=function(R,y){R=_.e(R,_.zM)||_.e(R,_.PV);return"v"+R.videoId+(R.playlistId?"-pl"+R.playlistId:"")+(y?"-an1":"")+(R.params?"-pr"+R.params:"")};
WV=function(R){return function(){return new R}};
dw=function(R){var y=_.ua();return function(){return y.resolve(R)}};
JOP=function(R){var y=_.JT("web_pbj_log_warning_rate",0);y=y>0&&Math.random()<y;if(!_.e(R,_.PV))return y&&_.kT(Error("Of")),!1;var u;return _.f("shorts_controller_retrieve_seedless_sequence_v2")&&((u=_.e(R,_.PV))==null?void 0:u.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:MhL(R)?!0:(y&&_.kT(Error("Pf")),!1)};
MhL=function(R){var y=(_.e(R,_.zM)||_.e(R,_.PV)).videoId;if(!y||!Vhv.test(y))return!1;var u;return(R=(u=_.e(R.commandMetadata,_.QL))==null?void 0:u.url)&&(R.includes(y)||R.startsWith("/clip"))?!0:!1};
_.K2v=function(){var R=_.O9();return R.getFlag(192)?R.getFlag(190):!(_.f("web_watch_cinematics_disabled_by_default")||_.f("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&i_T())};
_.UZ=function(R,y,u){var v={};v.currentUrl=y;v.vis=R.vis!==void 0?R.vis:0;v.splay=!1;y=_.O9();v.autoCaptionsDefaultOn=y.getFlag(66);y.getFlag(141)?y.getFlag(140)?v.autonavState="STATE_OFF":v.autonavState="STATE_ON":v.autonavState="STATE_NONE";v.html5Preference="HTML5_PREF_WANTS";isNaN(_.EB("STS"))||(v.signatureTimestamp=_.EB("STS"));R.autonav&&(v.autoplay=!0,v.autonav=!0);R.mutedAutoplay&&(v.autoplay=!0,v.mutedAutoplay=!0);R.inlinePlayback&&(v.autoplay=!0,v.autonav=!1,v.isInlineUnmutedPlayback=!!R.inlineUnmuted);
v.referer=u;v.lactMilliseconds=R.lact!==void 0?R.lact.toString():"-1";_.f("enable_unknown_lact_fix_on_html5")&&v.lactMilliseconds==="-1"&&_.kT(new _.OL("Unknown LACT is set in playbackContext.",{"lact in tempData":R.lact||"undefined",autonav:R.autonav||"undefined"}));R={};y.getFlag(194)&&(R.hasShownAmbientMode=!0);y.getFlag(192)&&(R.hasToggledOffAmbientMode=!0);_.K2v()&&(R.watchAmbientModeEnabled=!0);v.watchAmbientModeContext=R;return v};
IN4=function(R){var y={},u=R.pbis||0;u&&(y.playbackBeginsInSeconds=u);R.prefetch_reason&&R.prefetch_reason==="hc_pbis"&&(y.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return y};
_.EZ=function(R){R=R===void 0?!1:R;var y=_.O9(),u="USER_INTERFACE_THEME_LIGHT";y.getFlag(165)?u="USER_INTERFACE_THEME_DARK":y.getFlag(174)?u="USER_INTERFACE_THEME_LIGHT":_.kv()&&(u="USER_INTERFACE_THEME_DARK");return R?u:hYW()||u};
_.b_L=function(){return!_.f("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.kv=function(){return _.b_L()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.$v=function(){var R=_.O9();return _.b_L()&&!R.getFlag(165)&&!R.getFlag(174)};
hYW=function(){var R=R===void 0?window.location.href:R;if(_.f("kevlar_disable_theme_param"))return null;var y=_.Fq(R);if(_.F2W(y))return"USER_INTERFACE_THEME_DARK";try{var u=_.SS(R).theme;return wCz.get(u)||null}catch(v){}return null};
_.F2W=function(R){return _.f("enable_dark_theme_only_on_shorts")?!(R==null||!R.startsWith("/shorts/")):!1};
_.oxU=function(R,y,u,v,Q){y=y===void 0?!1:y;u=u===void 0?!1:u;var M=_.EB("INNERTUBE_CONTEXT");if(!M)return _.dI(Error("Sf")),{};M=(0,_.Ps.unsafeClone)(M);_.f("web_no_tracking_params_in_shell_killswitch")||delete M.clickTracking;M.client||(M.client={});var K=M.client;K.clientName==="MWEB"&&K.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(K.clientFormFactor=_.EB("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");K.screenWidthPoints=window.innerWidth;K.screenHeightPoints=window.innerHeight;K.screenPixelDensity=
Math.round(window.devicePixelRatio||1);K.screenDensityFloat=window.devicePixelRatio||1;K.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());K.userInterfaceTheme=_.EZ();if(!y){var h=_.V6E();h&&(K.connectionType=h);_.f("web_log_effective_connection_type")&&(h=KcU())&&(M.client.effectiveConnectionType=h)}var b;if(_.f("web_log_memory_total_kbytes")&&((b=_.uO.navigator)==null?0:b.deviceMemory)){var N;b=(N=_.uO.navigator)==null?void 0:N.deviceMemory;M.client.memoryTotalKbytes=""+b*1E6}y&&v&&!_.f("web_it_context_set_original_url_ks")&&
(K.originalUrl=N04(_.uO.location.href,v).toString());_.f("web_gcf_hashes_innertube")&&(h=BwL())&&(N=h.coldConfigData,b=h.coldHashData,h=h.hotHashData,M.client.configInfo=M.client.configInfo||{},N&&(M.client.configInfo.coldConfigData=N),b&&(M.client.configInfo.coldHashData=b),h&&(M.client.configInfo.hotHashData=h));N=_.SS(_.uO.location.href);!_.f("web_populate_internal_geo_killswitch")&&N.internalcountrycode&&(K.internalGeo=N.internalcountrycode);!_.f("web_populate_client_screen_killswitch")&&Q&&(K.clientScreen=
Q);K.clientName==="MWEB"||K.clientName==="WEB"?(K.mainAppWebInfo||(K.mainAppWebInfo={}),K.mainAppWebInfo.graftUrl=v||_.uO.location.href,_.f("kevlar_woffle")&&_.qB.instance&&(v=_.qB.instance,K.mainAppWebInfo.pwaInstallabilityStatus=!v.appInstalledEventFired&&v.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),K.mainAppWebInfo.webDisplayMode=hzG(),K.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):K.clientName==="TVHTML5"&&
(!_.f("web_lr_app_quality_killswitch")&&(v=_.EB("LIVING_ROOM_APP_QUALITY"))&&(K.tvAppInfo=Object.assign(K.tvAppInfo||{},{appQuality:v})),v=_.EB("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(K.tvAppInfo=Object.assign(K.tvAppInfo||{},{certificationScope:v}));!_.f("web_populate_time_zone_itc_killswitch")&&(v=M6v())&&(K.timeZone=v);(v=Ho4())?K.experimentsToken=v:delete K.experimentsToken;K=nF4();v=_.T0v();v=(0,_.Ps.getValues)(v.tokenJars);M.request=Object.assign({},M.request,{internalExperimentFlags:K,consistencyTokenJars:v});
!_.f("web_prequest_context_killswitch")&&(K=_.EB("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(M.request.externalPrequestContext=K);v=_.O9();K=v.getFlag(58);v=v.get("gsml","");M.user=Object.assign({},M.user);K&&(M.user.enableSafetyMode=K);v&&(M.user.lockedSafetyMode=!0);_.f("warm_op_csn_cleanup")?u&&(y=_.$I())&&(M.clientScreenNonce=y):!y&&(y=_.$I())&&(M.clientScreenNonce=y);R&&(M.clickTracking={clickTrackingParams:R});if(R=_.D6("yt.mdx.remote.remoteClient_"))M.remoteClient=R;_.Xb.getInstance().setLocationOnInnerTubeContext(M);
try{var T=q9c(),x=T.bid;delete T.bid;M.adSignalsInfo={params:[],bid:x};for(var B=_.V(Object.entries(T)),l=B.next();!l.done;l=B.next()){var Z=_.V(l.value),P=Z.next().value,k=Z.next().value;T=P;x=k;R=void 0;(R=M.adSignalsInfo.params)==null||R.push({key:T,value:""+x})}var E,D;if(((E=M.client)==null?void 0:E.clientName)==="TVHTML5"||((D=M.client)==null?void 0:D.clientName)==="TVHTML5_UNPLUGGED"){var z=_.EB("INNERTUBE_CONTEXT");z.adSignalsInfo&&(M.adSignalsInfo.advertisingId=z.adSignalsInfo.advertisingId,
M.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",M.adSignalsInfo.limitAdTracking=z.adSignalsInfo.limitAdTracking)}}catch(c){_.dI(c)}return M};
_.x$W=function(R){var y=new mH(_.EB("ONE_PICK_URL",""));y.urlParamMap_.set("hostId",R);(R=_.EB("GAPI_LOCALE"))&&y.urlParamMap_.set("hl",R);(R=_.EB("SESSION_INDEX"))&&y.urlParamMap_.set("authuser",R);(R=_.EB("DELEGATED_SESSION_ID"))&&y.urlParamMap_.set("groupId",R);return y};
fNS=function(){var R=_.ua(),y=R.resolve(_.AU);R=R.resolve(_.Dj);return new B0G(y,R)};
lNO=function(R){if(window.IntersectionObserver)return new eYU(R,400);throw new TypeError("Zf");};
Z_L=function(){var R=Hammer.TouchAction,y=R.prototype.preventDefaults;R.prototype.preventDefaults=function(u){var v=this.actions.indexOf("pan-down")>-1;if(!v)return y.call(this,u);if(!O_E){var Q=u.srcEvent;u=u.direction;var M;if((M=this.manager)==null?0:M.session.prevented)Q.preventDefault();else if(v&&u&Hammer.DIRECTION_DOWN)return this.preventSrc(Q)}}};
H_v=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};
_.GdW=function(){return nxU?Promise.resolve(nxU):new Promise(function(R,y){var u=self.indexedDB.open("swpushnotificationsdb");u.onerror=y;u.onsuccess=function(){var v=u.result;if(v.objectStoreNames.contains("swpushnotificationsstore"))nxU=v,R(nxU);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.GdW()};
u.onupgradeneeded=rOU})};
rOU=function(R){R=R.target.result;R.objectStoreNames.contains("swpushnotificationsstore")&&R.deleteObjectStore("swpushnotificationsstore");R.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
W2P=function(R){var y=PlT(),u;return _.I(function(v){switch(v.nextAddress){case 1:return _.wY(v,2),v.yield(R.match(y,{cacheName:"yt-appshell-assets"}),4);case 4:u=v.yieldResult;_.c5(v,3);break;case 2:_.B$(v);case 3:return v.return(u)}})};
PlT=function(){var R=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?d$4.registration.scope:U$v;R.endsWith("/")&&(R=R.slice(0,-1));return R+"/app_shell_home"};
kdv=function(R){R.map(function(y){return y.source}).join("|")};
_.Exz=function(R){return _.I(function(y){return y.return(W2P(R))})};
$$S=function(){var R=window.caches,y;return _.I(function(u){if(u.nextAddress==1)return u.yield(_.Exz(R),2);y=u.yieldResult;return u.return(!!y)})};
thT=function(){_.I(function(R){if(R.nextAddress==1){if(qMT)return R.jumpTo(0);qMT=!0;if(_.f("enable_system_health_primes_monitoring"))return _.hT(XC4,3E4),m$4(),R.return();if(!(Math.random()<_.JT("web_system_health_fraction")))return R.jumpTo(0);AOT={heightPixels:screen.height,widthPixels:screen.width};pc&&!isNaN(pc.jsHeapSizeLimit)&&(AOT.memoryTotalKbytes=String(Math.round(pc.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(AOT.devicePixelRatio=window.devicePixelRatio);return R.yield(D$E(),4)}_.hT(XC4,
3E4);return R.yield(pCT(),0)})};
D$E=function(){return _.I(function(R){if(R.nextAddress==1)return tU.intersectionObserverPresent="IntersectionObserver"in window,tU.serviceWorkerPresent="serviceWorker"in navigator,tU.webSharePresent="share"in navigator,tU.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,tU.cacheStoragePresent="caches"in window,tU.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,tU.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
tU.webkitTemporaryStoragePresent="webkitTemporaryStorage"in cV&&cV.webkitTemporaryStorage&&"queryUsageAndQuota"in cV.webkitTemporaryStorage,tU.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",R.yield(mqS(),2);tU.indexedDbPresent=R.yieldResult;tU.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;tU.broadcastChannelPresent="BroadcastChannel"in window;tU.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(tU.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,tU.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.f$(R)})};
XC4=function(){var R=9E4+Math.random()*2E3;_.QF()>R||(_.f("enable_system_health_primes_monitoring")?m$4():pCT())};
pCT=function(){var R;return _.I(function(y){if(y.nextAddress==1)return y.yield(cOP(),2);R=y.yieldResult;_.P3("systemHealthCaptured",R);_.f$(y)})};
m$4=function(){var R={metric:{}},y=aNW();y.networkEvents.length&&(R.metric.networkEvents=SM4(y));_.P3("systemHealthCaptured",R)};
cOP=function(){var R,y,u,v,Q,M,K,h,b,N;return _.I(function(T){switch(T.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)};y=window.screen;_.f("enable_is_extended_monitoring")&&y&&"isExtended"in y&&(R.isExtended=!!y.isExtended);u={metric:{staticContext:AOT,dynamicContext:R,webMetric:YMO,webApiSupport:tU}};
if(v=_.$I())u.csn=v;pc&&(u.metric.webMetric.currentHeapKbytes=Math.round(pc.usedJSHeapSize/1E3));window.matchMedia&&(u.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,u.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,u.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in cV&&typeof cV.getBattery==="function")){T.jumpTo(2);break}return T.yield(cV.getBattery(),3);case 3:if(Q=
T.yieldResult)u.metric.dynamicContext.chargingStatus=Q.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(u.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(tU.storageEstimatePresent)return T.yield(navigator.storage.estimate(),8);if(!tU.webkitTemporaryStoragePresent){T.jumpTo(5);break}return T.yield(L2T(),7);case 7:M=T.yieldResult;T.jumpTo(5);break;case 8:M=T.yieldResult;case 5:return u.metric.dynamicContext.deviceStorageQuotaMbytes=((K=M)==null?0:K.quota)?String(Math.round(M.quota/
1048576/10)*10):"-1",u.metric.dynamicContext.deviceStorageUsageMbytes=((h=M)==null?0:h.usage)?String(Math.round(M.usage/1048576/10)*10):"-1",b=u.metric.dynamicContext,T.yield($$S(),9);case 9:return b.hasAppShell=T.yieldResult,N=aNW(),N.networkEvents.length&&(u.metric.networkEvents=SM4(N)),T.return(u)}})};
L2T=function(){return new Promise(function(R){var y;tU.webkitTemporaryStoragePresent&&(y=cV.webkitTemporaryStorage)!=null&&y.queryUsageAndQuota?cV.webkitTemporaryStorage.queryUsageAndQuota(function(u,v){R({usage:u,quota:v})}):R(void 0)})};
_.aH=function(R){R&=16777215;R=[(R&16711680)>>16,(R&65280)>>8,R&255];return saz(R[0],R[1],R[2])};
_.Sq=function(R){R=[(R&16711680)>>>16,(R&65280)>>>8,R&255,(R&4278190080)>>>24];var y=_.zYz(R,function(u){return u==(u&255)});
R[3]=(R[3]/255).toFixed(3);if(!y)throw Error("$f`"+R.join(","));return"rgba("+R.join(",")+")"};
_.gx8=function(R){return[(R&16711680)>>>16,(R&65280)>>>8,R&255]};
_.Clc=function(R){R=R.map(function(y){y/=255;return y<=.03928?y/12.92:Math.pow((y+.05)/1.05,2.4)});
return R[0]*.2126+R[1]*.7152+R[2]*.0722};
Yv=function(R,y){R=_.gx8(R);return"rgba("+R[0]+", "+R[1]+", "+R[2]+", "+y+")"};
_.R_T=function(){try{return!!self.localStorage}catch(R){return!1}};
Qs4=function(){if(ypT())_.kT(Error("ag"));else{var R=document.createElement("iframe");R.style.display="none";var y=y===void 0?window.location.href:y;var u=_.d3(_.EB("PERSIST_IDENTITY_IFRAME_URL"));y=u?u:(new URL(y)).host.indexOf("studio")===0?_.M1(uS8,"persist_identity"):_.M1(vOS,"persist_identity");_.Q1P(R,1,y);R.id="persist_identity";var v;(v=document.body)==null||v.appendChild(R)}};
ypT=function(){var R=jsW;R||(R=document.querySelector("#persist_identity"));return R};
M1T=function(){var R=!1;try{R=!!window.sessionStorage.getItem("session_logininfo")}catch(y){R=!0}return(_.EB("INNERTUBE_CLIENT_NAME")==="WEB"||_.EB("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&R};
Jpv=function(R,y){if(!M1T())return!1;y||(y=_.EB("LOGIN_INFO"));return y?(R.session_logininfo=y,!0):!1};
iW4=function(R,y){R=R===void 0?!1:R;if((y===void 0||!y)&&V1v!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.$B("LOG_STICKINESS",!1)){y=_.$I();var u=_.Ef(),v={identityStickinessData:{initialState:V1v}};y&&u&&_.R3(y,u,v)}if(y=ypT())if(u=y.src?(new URL(y.src)).origin:"*",R){var Q;(Q=y.contentWindow)==null||Q.postMessage({action:"clear"},u)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(R=window.sessionStorage.getItem("session_logininfo"))){var M;(M=y.contentWindow)==null||M.postMessage({loginInfo:R},u)}};
_.Lc=function(R){R=R===void 0?!0:R;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.kB("LOGIN_INFO",""),R&&window.sessionStorage.setItem("from_switch_account","1"),iW4(!0,R)}catch(y){}};
KG8=function(R){R&&(R.startsWith("https://accounts.google.com/AddSession")?_.Lc():R.startsWith("https://accounts.google.com/ServiceLogin")?_.Lc():R.startsWith("https://myaccount.google.com")&&_.pF(R).getPath().endsWith("/youtubeoptions")&&_.Lc())};
sZ=function(R,y){KG8(R);if(_.$B("LOGGED_IN",!0)&&M1T()){var u=vuT(R);u==null&&(u={});Jpv(u,y)&&_.uh(R,u)}};
IHz=function(){function R(y){for(y=y.target;y&&y.nodeName!=="A";)if(y=y.parentNode,!(y&&y instanceof HTMLElement))return;if(y&&!y.hasAttribute("download")&&y.getAttribute("rel")!=="external"&&y.href)return y.href}
document.addEventListener("mousedown",function(y){y.button!==0&&(y=R(y))&&sZ(y)});
document.addEventListener("click",function(y){(y=R(y))&&sZ(y)})};
FGO=function(){var R=new h_O;try{if(_.$B("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(h){R.increment(5,!1);return}if(_.EB("LOGIN_INFO")){var y=bWW?bWW:window.location;_.EB("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&Qs4();var u=vuT(y.href);u==null&&(u={});var v=u.session_logininfo,Q=Number(window.sessionStorage.getItem("stickiness_reload")),M=v===_.EB("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
Q>=2||M)Q>=2?R.increment(2,M):M?R.increment(7,M):window.sessionStorage.getItem("session_logininfo")||(R.increment(3,M),V1v="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.EB("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.EB("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))R.increment(4,M),window.sessionStorage.removeItem("stickiness_reload");
else if(Q<2){window.sessionStorage.setItem("stickiness_reload",String(Q+1));var K=y.href;K=_.vo(K,"sttick");sZ(K,window.sessionStorage.getItem("session_logininfo"));K=_.YB(K,{sttick:Q});R.increment(Q,M);_.ItU(y,K)}}else R.increment(6,!1)}else _.Lc(!1)}catch(h){}};
_.z2=function(R,y,u,v,Q){y=y===void 0?{}:y;u=u===void 0?"":u;v=v===void 0?window:v;R=_.LG(R,y);sZ(R);u=_.Eo(R+u,Q);_.ItU(v.location,u)};
_.wET=function(R,y,u,v,Q){Q=Q===void 0?!1:Q;u&&_.uh(R,u);u=_.Eo(R);var M=_.Pg(u);R!=M&&_.pG(Error("bg`"+R));R=M;y=y||c8(R).toString(36);try{if(Q)return Q=R,Q=wyU(Q),sZ(Q),_.aK(window,Q,y,"attributionsrc")}catch(K){_.mq(K)}sZ(R);return _.aK(window,u,y,v)};
NoL=function(R){if(R.urlEndpoint){if(R=_.SS(R.urlEndpoint.url),R.adurl)return Rh(R.adurl)}else if(R.watchEndpoint)return"//www.youtube.com/watch?v="+R.watchEndpoint.videoId;return null};
Toz=function(R){if(!R||!R.reportingPings)return null;var y={};R.reportingPings.forEach(function(u){u.pingType in y?y[u.pingType].push(u.url):y[u.pingType]=[u.url]});
return{adpings:Fm4(y)}};
_.gw=function(){return{isShellLoad:_.$B("IS_SHELL_LOAD",!1)}};
xHT=function(){navigator.serviceWorker.getRegistrations().then(function(R){R.forEach(oOO)})};
oOO=function(R){R&&_.Bo8(fHT,R.scope)};
_.Bo8=function(R,y){y={scope:y||_.VN("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.Oo(R),y)};
Cc=function(R,y,u,v){if(y&&y.serializedYpcCujLoggingParams){if(u){var Q={};Q.transactionErrorType=u;v&&(Q.errorMessage=v);y.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:Q}}}u={};u.ypcCujContext=y;R=_.BV("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",R,u);_.fc(_.eq(),R,"FLOW_TYPE_YPC_ACQUISITION")}};
_.e_P=function(R,y,u,v){var Q={};Q.serializedTransactionFlowLoggingParams=y;u&&(Q.errorType=u);v&&(Q.errorMessage=v);_.P3(R,Q);_.W3()};
_.lHU=function(R){R&&_.e_P("transactionFlowStarted",R)};
_.OW8=function(R){R&&_.e_P("transactionFlowCancelled",R)};
_.RX=function(R,y,u){y&&_.e_P("transactionFlowFailed",y,R,u)};
ZW4=function(R){var y=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");y&&(y.inert=R)};
_.ya=function(){this.megabloxUrl_=null};
_.u8=function(R){try{var y=HW8==null?void 0:HW8.composedPath(R)}catch(u){y=R.composedPath?R.composedPath():[]}return y&&y.length>0?y:R.composedPath?R.composedPath():[]};
_.vN=function(R){return _.u8(R)[0]};
_.Qa=function(R){if(!(R instanceof Element))return null;R=R.classList?Array.from(R.classList):void 0;if(!R)return null;var y=R.indexOf("style-scope");return y>-1&&y+1<R.length?R[y+1]:null};
j0=function(R){if(!(R instanceof HTMLElement))return null;var y=R&&(R.$$||R.polymerController)?R.tagName.toLowerCase():null;return y?y:_.Qa(R)};
nOT=function(R,y){return R.replace(/[^a-z]*[^\s]+/g,function(u){return u+".style-scope."+y})};
GZO=function(R,y){return y?R.split(",").map(function(u){return nOT(u.trim(),y)}).join(", "):R};
_.Mz=function(R){var y,u,v,Q;return(Q=(v=(u=(y=R.root)!=null?y:R.shadowRoot)!=null?u:R.__shady_native_shadowRoot)!=null?v:R.__shady_shadowRoot)!=null?Q:R};
Jw=function(R){return R instanceof ShadowRoot?ShadowRoot:R instanceof DocumentFragment?DocumentFragment:R instanceof Document?Document:HTMLElement};
rp8=function(R){var y,u,v;return(v=(u=(y=R.parentElement)!=null?y:R.__shady_native_parentElement)!=null?u:R.__shady_parentElement)!=null?v:null};
PHG=function(R){var y,u,v;return(v=(u=(y=R.parentNode)!=null?y:R.__shady_native_parentNode)!=null?u:R.__shady_parentNode)!=null?v:null};
WGz=function(R){var y,u,v;return(v=(u=(y=R.__shady_parentNode)!=null?y:R.__shady_native_parentNode)!=null?u:R.parentNode)!=null?v:null};
dHG=function(R){var y,u;return(u=(y=PHG(R))!=null?y:R.host)!=null?u:null};
UHT=function(R){var y,u,v;return(v=(u=(y=R.nextSibling)!=null?y:R.__shady_native_nextSibling)!=null?u:R.__shady_nextSibling)!=null?v:null};
kZG=function(R){var y,u,v;return(v=(u=(y=R.previousSibling)!=null?y:R.__shady_native_previousSibling)!=null?u:R.__shady_previousSibling)!=null?v:null};
EOU=function(R){var y,u,v;return(v=(u=(y=R.nextElementSibling)!=null?y:R.__shady_native_nextElementSibling)!=null?u:R.__shady_nextElementSibling)!=null?v:null};
$H8=function(R){var y,u,v;return(v=(u=(y=R.previousElementSibling)!=null?y:R.__shady_native_previousElementSibling)!=null?u:R.__shady_previousElementSibling)!=null?v:null};
q$S=function(R){var y,u,v;return new Set([].concat(_.P$((y=R.children)!=null?y:[]),_.P$((u=R.__shady_native_children)!=null?u:[]),_.P$((v=R.__shady_children)!=null?v:[])))};
XET=function(R){var y,u,v;return new Set([].concat(_.P$((y=R.childNodes)!=null?y:[]),_.P$((u=R.__shady_native_childNodes)!=null?u:[]),_.P$((v=R.__shady_childNodes)!=null?v:[])))};
mHc=function(R){if(!R)return null;var y=_.Qa(R);if(!y){var u;return(u=Node.prototype.getRootNode)==null?void 0:u.call(R)}y=y.toUpperCase();for(R=rp8(R);R&&R.tagName!==y;)R=rp8(R);return R?_.Mz(R):null};
ApG=function(R){for(;R&&!(R instanceof HTMLElement);)R=dHG(R);return R};
DH8=function(R){var y=ApG(R);return R===y?_.Qa(R):y?j0(y):null};
pEL=function(R){return(R=ApG(R))?j0(R):null};
t1v=function(R){if(R instanceof Comment)return!1;if(R instanceof Text){var y,u;if(((u=(y=R.textContent)==null?void 0:y.trim())!=null?u:"")==="")return!1}return!0};
Va=function(R,y,u){var v=y(R);for(u=u===void 0?pEL(R):u;v&&(DH8(v)!==u||!t1v(v));)R=v,v=y(R);return v};
cp8=function(R,y,u){if(!y)return null;R=pEL(R);return DH8(y)===R&&t1v(y)?y:Va(y,u,R)};
aHv=function(R){return Va(R,WGz,_.Qa(R))};
S$U=function(R){return Va(R,EOU)};
Y$L=function(R){return Va(R,UHT)};
LGc=function(R){return Va(R,$H8)};
ssL=function(R){return Va(R,kZG)};
z_8=function(R){return cp8(R,R.firstChild||R.__shady_native_firstChild||R.__shady_firstChild||null,UHT)};
gOL=function(R){var y,u,v;var Q=(v=(u=(y=R.firstElementChild)!=null?y:R.__shady_native_firstElementChild)!=null?u:R.__shady_firstElementChild)!=null?v:null;return cp8(R,Q,EOU)};
CHU=function(R){var y,u,v;var Q=(v=(u=(y=R.lastChild)!=null?y:R.__shady_native_lastChild)!=null?u:R.__shady_lastChild)!=null?v:null;return cp8(R,Q,kZG)};
RwU=function(R){var y,u,v;var Q=(v=(u=(y=R.lastElementChild)!=null?y:R.__shady_native_lastElementChild)!=null?u:R.__shady_lastElementChild)!=null?v:null;return cp8(R,Q,$H8)};
yrU=function(R){var y=pEL(R);return Array.from(XET(R)).filter(function(u){return DH8(u)===y})};
uxL=function(R){var y=j0(R);return Array.from(q$S(R)).filter(function(u){return _.Qa(u)===y})};
_.i8=function(R,y,u){if(R instanceof HTMLElement&&_.Qa(R)===u){var v=Array.from(R.classList).indexOf("style-scope");if(v===-1)R.classList.add("style-scope"),R.classList.add(y);else if(!(v+1>=R.classList.length)){v=R.classList[v+1];var Q,M;R==null||(Q=R.classList)==null||(M=Q.replace)==null||M.call(Q,v,y)}}if(R instanceof HTMLElement||R instanceof DocumentFragment)for(Q=_.V(q$S(R)),M=Q.next();!M.done;M=Q.next())_.i8(M.value,y,u);return R};
Ku=function(R,y){if(R instanceof HTMLElement&&_.Qa(R)===y){var u=Array.from(R.classList).indexOf("style-scope");u===-1||u+1>=R.classList.length||R.classList.remove("style-scope",R.classList[u+1])}if(R instanceof HTMLElement||R instanceof DocumentFragment){u=_.V(R.children);for(var v=u.next();!v.done;v=u.next())Ku(v.value,y)}return R};
_.vQL=function(R,y){return Jw(R).prototype.appendChild.call(R,y)};
Qpv=function(R,y){if(R===y)return!0;R=XET(R);return Array.from(R).some(function(u){return Qpv(u,y)})};
_.hw=function(R,y){if(R instanceof IX)return R;(y==null?0:y.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(R,"ownerDocument")&&Object.defineProperty(R,"ownerDocument",{get:function(){return window.document}});
return new IX(R)};
MaP=function(){var R=IX.prototype,y=[].concat(_.P$(jpz?[]:["getRootNode"]),["setAttribute","removeAttribute"]);y=_.V(y);for(var u=y.next(),v={};!u.done;v={method$jscomp$51:void 0},u=y.next())v.method$jscomp$51=u.value,R[v.method$jscomp$51]=function(Q){return function(){return this.host[Q.method$jscomp$51].apply(this.host,arguments)}}(v)};
VaO=function(){var R=IX.prototype,y=[].concat(_.P$(jpz?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.P$(JrP?[]:["querySelector","querySelectorAll"]));y=_.V(y);for(var u=y.next(),v={};!u.done;v={method$jscomp$52:void 0},u=y.next())v.method$jscomp$52=u.value,R[v.method$jscomp$52]=function(Q){return function(){return this.root[Q.method$jscomp$52].apply(this.root,arguments)}}(v)};
I8G=function(){var R=IX.prototype,y=[].concat(_.P$(iw4?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.P$(K6U?[]:["parentNode"]));y=_.V(y);for(var u=y.next(),v={};!u.done;v={prop$jscomp$62:void 0},u=y.next())v.prop$jscomp$62=u.value,Object.defineProperty(R,v.prop$jscomp$62,{get:function(Q){return function(){return this.host[Q.prop$jscomp$62]}}(v),
configurable:!0})};
F6U=function(){var R=IX.prototype,y=["activeElement"].concat(_.P$(iw4?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.P$(hwP?[]:["children"]),_.P$(bwL?[]:["lastChild"]));y=_.V(y);for(var u=y.next(),v={};!u.done;v={prop$jscomp$63:void 0},u=y.next())v.prop$jscomp$63=u.value,Object.defineProperty(R,v.prop$jscomp$63,{get:function(Q){return function(){return this.root[Q.prop$jscomp$63]}}(v),
configurable:!0})};
wxW=function(){for(var R=IX.prototype,y=_.V(["innerHTML","textContent"]),u=y.next(),v={};!u.done;v={prop$jscomp$64:void 0},u=y.next())v.prop$jscomp$64=u.value,Object.defineProperty(R,v.prop$jscomp$64,{get:function(Q){return function(){return this.root[Q.prop$jscomp$64]}}(v),
set:function(Q){return function(M){this.root[Q.prop$jscomp$64]=M}}(v),
configurable:!0})};
NbT=function(R){var y=IX.prototype;R=_.V(Object.entries(R));for(var u=R.next(),v={};!u.done;v={fn$jscomp$388:void 0},u=R.next()){var Q=_.V(u.value);u=Q.next().value;Q=Q.next().value;v.fn$jscomp$388=Q;y[u]=function(M){return function(){return M.fn$jscomp$388.apply(null,[this.host.node||this.host].concat(_.P$(arguments)))}}(v)}};
oQS=function(){for(var R=IX.prototype,y=_.V(Object.entries(TbU)),u=y.next(),v={};!u.done;v={fn$jscomp$389:void 0},u=y.next()){var Q=_.V(u.value);u=Q.next().value;Q=Q.next().value;v.fn$jscomp$389=Q;Object.defineProperty(R,u,{get:function(M){return function(){return M.fn$jscomp$389.apply(null,[this.host.node||this.host].concat(_.P$(arguments)))}}(v),
configurable:!0})}};
_.b8=function(R){return R instanceof xo4||R instanceof Document?R:new xo4(R)};
BbU=function(){for(var R=xo4.prototype,y=_.V("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),u=y.next(),v={};!u.done;v={method$jscomp$53:void 0},u=y.next())v.method$jscomp$53=u.value,R[v.method$jscomp$53]=function(Q){return function(){return HTMLElement.prototype[Q.method$jscomp$53].call.apply(HTMLElement.prototype[Q.method$jscomp$53],[this.node].concat(_.P$(arguments)))}}(v)};
f8L=function(){for(var R=xo4.prototype,y=_.V("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),u=y.next(),v={};!u.done;v={prop$jscomp$65:void 0},u=y.next())v.prop$jscomp$65=u.value,Object.defineProperty(R,v.prop$jscomp$65,{get:function(Q){return function(){var M;return(M=this.node["__shady_native_"+Q.prop$jscomp$65])!=null?M:this.node[Q.prop$jscomp$65]}}(v),
configurable:!0})};
_.FN=function(R,y,u){u===void 0&&(u=!R.classList.contains(y));u?R.classList.add(y):R.classList.remove(y)};
_.w2=function(R,y,u){u===void 0&&(u=!R.hasAttribute(y));if(y==="class")throw Error("fg");u?_.b8(R).setAttribute(y,""):_.b8(R).removeAttribute(y)};
ew8=function(R){return(R.localName!=="slot"?[]:(0,_.Nz)(R).assignedNodes({flatten:!0})).filter(function(y){return y.nodeType===Node.ELEMENT_NODE})};
_.l88=function(R){return(R=_.hw(R).querySelector("slot"))&&R.localName==="slot"?ew8(R):[]};
_.oX=function(R,y){window.ShadyCSS&&window.ShadyCSS.styleSubtree(R,y)};
xJ=function(R,y){var u=y.bind(R);return function(v){u(v,v.detail)}};
_.BN=function(R,y){var u=OwE.get(R);u||(u=new WeakMap,OwE.set(R,u));if(u.has(y))return u.get(y);if(_.f("web_fi_listen_disable_bound_fn_helper")){var v=y.bind(R);R=function(Q){v(Q,Q==null?void 0:Q.detail)}}else R=xJ(R,y);
u.set(y,R);return R};
nQP=function(R,y){ZwT(R);R.created[HwT].push(y)};
ZwT=function(R){if(!R.created||!R.created[HwT]){var y=R.created,u=y?[y]:[];R.created=function(){for(var v=_.V(u),Q=v.next();!Q.done;Q=v.next())Q.value.apply(this)};
R.created[HwT]=u}};
GtU=function(R){return function(){var y=_.qy.apply(0,arguments);return function(u,v,Q){R.apply(null,_.P$(y))(u,v,Q)}}};
rrW=function(){return function(){var R=_.qy.apply(0,arguments);return function(y,u,v){Bxv.apply(null,_.P$(R))(y,u,v)}}};
_.n=function(R){return rrW()(R)};
_.G=function(){return GtU(OpU).apply(null,_.P$(_.qy.apply(0,arguments)))};
_.fu=function(R){return _.f("pbcm_fi_listen_decorators")?P28(R):GtU(ehU)(R)};
P28=function(R){return function(y,u){nQP(y,function(){var v=this[u],Q=_.f("web_fi_listen_disable_bound_fn_helper")?function(M){v(M,M.detail)}.bind(this):xJ(this,v);
W68.has(R)?kk(this.hostElement,R,Q):this.hostElement.addEventListener(R,Q)})}};
_.e0=function(){return GtU(lMv).apply(null,_.P$(_.qy.apply(0,arguments)))};
_.r=function(R){R=R===void 0?{}:R;return GtU(fMc)(R)};
_.l8=function(R){if(R.hostElement&&R!==R.hostElement){var y=_.GM(R.hostElement);y=R.renderIdom?y:y.shadowRoot}y||(R=R.root,y=R instanceof Node?_.GM(R):null);return y};
_.O7=function(R){return doT?UoU(R):function(y,u){Object.defineProperty(y,u,{get:function(){var v;return(v=_.l8(this))==null?void 0:v.querySelector(R)},
enumerable:!0,configurable:!0})}};
UoU=function(R){return function(y,u){Object.defineProperty(y,u,{get:function(){var v,Q=(v=_.hw(this.hostElement))==null?void 0:v.querySelector(R);if(Q)return Q;var M;return(M=_.l8(this))==null?void 0:M.querySelector(R)},
enumerable:!0,configurable:!0})}};
_.ZV=function(R){return doT?ktv(R):function(y,u){Object.defineProperty(y,u,{get:function(){var v;return(v=_.l8(this))==null?void 0:v.querySelectorAll(R)},
enumerable:!0,configurable:!0})}};
ktv=function(R){return function(y,u){Object.defineProperty(y,u,{get:function(){var v,Q=(v=_.hw(this.hostElement))==null?void 0:v.querySelectorAll(R);if(Q==null?0:Q.length)return Q;var M;return(M=_.l8(this))==null?void 0:M.querySelectorAll(R)},
enumerable:!0,configurable:!0})}};
EQT=function(R){return function(y){if(![_.y9,_.W].includes(Object.getPrototypeOf(y.prototype).constructor))throw Error("gg");hhT(Object.assign({},typeof R!=="string"?R:{is:R,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(y)}};
_.nu=function(){var R=R===void 0?{}:R;return function(y){if(![up,_.HN].includes(Object.getPrototypeOf(y.prototype).constructor))throw Error("hg");bpT(Object.assign({},R,{disableInheritanceCheck:!0}))(y)}};
quG=function(R,y){$o8[R]!=null||($o8[R]=new Set);$o8[R].add(y)};
_.GJ=function(){var R=_.e0.apply(null,_.P$(_.qy.apply(0,arguments)));return function(y,u){quG(y.is,u);R(y,u)}};
U7=function(R,y,u){if(r2(R)&&!Xx8.has(y)){y=y.replace(/^JSC\$[\d]+_/,"");y=y.replace(/\.\d+(\.|$)/g,function(M,K){return".#"+K});
PN[R]!=null||(PN[R]={});var v,Q;(v=PN[R])[Q=y]!=null||(v[Q]=new Set);PN[R][y].has(u)||(PN[R][y].add(u),_.P3("polymerPropertyAccessEvent",{componentName:R,propertyName:y,accessType:u}))}};
moL=function(){return _.f("polymer_property_access_logging_debug")||_.f("polymer_enable_property_access_logging")};
r2=function(R){if(_.f("polymer_property_access_logging_debug"))return!0;if(!_.f("polymer_enable_property_access_logging"))return!1;ArT||(ArT=Date.now());return(c8(R)+ArT)%100<_.JT("polymer_property_access_logging_percent")};
DoS=function(R,y){return r2(y)&&R.hostElement.loggingStatus?new Proxy(R,{get:function(u,v,Q){if(u.hostElement.loggingStatus.bypassProxyController)return u[v];u.hostElement.loggingStatus.isExternalGet=!0;var M=u[v];u.hostElement.loggingStatus.isExternalGet=!1;if(M instanceof Function)return function(){var K=_.qy.apply(0,arguments);try{return u.hostElement.loggingStatus.currentExternalCall=v,U7(y,v,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),M.apply(this===Q?u:this,K)}finally{u.hostElement.loggingStatus.currentExternalCall=
void 0}};
U7(y,v,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return M},
set:function(u,v,Q){if(u.hostElement.loggingStatus.bypassProxyController)return u[v]=Q,!0;u.hostElement.loggingStatus.isRendererStamper?U7(y,v,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):u.hostElement.loggingStatus.isDeclarativeExternal||U7(y,v,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{u.hostElement.loggingStatus.currentExternalSet=v,u[v]=Q}finally{u.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):R};
pxU=function(R,y){R&&R.loggingStatus&&!R.loggingStatus.isDeclarativeExternal&&!R.loggingStatus.isExternalGet&&R.loggingStatus.currentExternalSet!==y&&U7(R.tagName.toLowerCase(),y,"PROPERTY_ACCESS_GET_INTERNAL")};
kJ=function(R,y,u){R&&(u||R.loggingStatus&&!R.loggingStatus.isInitializing&&!R.loggingStatus.isDefiningPropertyAccessor&&R.loggingStatus.currentExternalSet!==y)&&U7(R.tagName.toLowerCase(),y,"PROPERTY_ACCESS_SET_INTERNAL")};
taL=function(){return{_definePropertyAccessor:function(R,y){var u=this,v=u.hostElement.loggingStatus;v&&(v.isDefiningPropertyAccessor=!0);var Q=u[R];Q!==void 0&&(u.__data?u._setPendingProperty(R,Q):(u.__dataProto!=null||(u.__dataProto={}),u.__dataProto[R]=Q));v&&(v.isDefiningPropertyAccessor=!1);Object.defineProperty(this,R,{get:function(){pxU(u.hostElement,R);return this.__data[R]},
set:function(M){y||this._setPendingProperty(R,M,!0)&&this._invalidateProperties()}})},
created:function(){var R=this._setPendingProperty.bind(this);this._setPendingProperty=function(y,u,v){kJ(this.hostElement,y);return R.apply(this,[y,u,v])}}}};
crU=function(R){moL()&&_.n(E7.prototype)(R.prototype,"__templateBindingLoggingBehavior")};
a8S=function(R,y){if(y.resolvedFactories.length!==R.resolvedFactories.length)return!0;y=_.V(y.resolvedFactories.entries());for(var u=y.next();!u.done;u=y.next()){var v=_.V(u.value);u=v.next().value;v=v.next().value;if(v.providerClass){if(v.providerClass!==R.resolvedFactories[u].providerClass)return!0}else if(v.providerValue){if(v.providerValue!==R.resolvedFactories[u].providerValue)return!0}else if(v.factory!==R.resolvedFactories[u].factory)return!0}return!1};
SuO=function(R,y){R=_.V(R);for(var u=R.next();!u.done;u=R.next())if(u=u.value,u.constructor===Array)SuO(u,y);else{var v=y;v.has(u)||(u.inject&&v.add(u),u.behaviors&&SuO(u.behaviors,v))}};
$J=function(R,y){var u=R[y];R[y]=function(){var v=_.qy.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(u)return u.apply(this,v)}};
zwT=function(){_.qz.Class=function(u,v){u=YuU(u,v);$J(u.prototype,"created");return u};
$J(XN.prototype,"_initializeProperties");$J(_.m8.prototype,"_initializeProperties");if(L6T)$J(spv,"created");else{var R=function(){$J(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))R();else{var y=customElements.define;customElements.define=function(u,v,Q){y.call(customElements,u,v,Q);u==="tp-yt-iron-list"&&(R(),customElements.define=y)}}}};
C2c=function(R,y){R.prototype.behaviors=R.prototype.behaviors||[];R.prototype.behaviors.unshift(gQP.InjectBehavior);R.prototype.provide=y};
_.pu=function(R){return function(y){if(!R.disableElementRegistration){R.noInjection||C2c(y,R.providers);var u=y.prototype;u.__templateHelpers||Bxv(Aw.prototype)(u,"__templateHelpers");u=R.is;RWE||(RWE=Date.now());(c8(u)+RWE)%100<_.JT("polymer_log_prop_change_observer_percent")&&Bxv(DV.prototype)(y.prototype,"__propertyObserverObserver");y.prototype.behaviors=y.prototype.behaviors||[];y.prototype.behaviors.unshift(_.yZU.YtHostElementBehavior);crU(y);EQT({is:R.is,notifyObserversOnUndefined:R.notifyObserversOnUndefined!==
!1,fastInit:R.fastInit,template:R.template,disableEnforceFastDefaultValuesCheck:!0})(y)}}};
_.q=function(R){return _.pu({is:R.is,template:R.template,disableElementRegistration:R.disableElementRegistration,cssBuildOptOut:R.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
QOO=function(R,y){if(uBz){R=new R;for(var u=_.V(Object.getOwnPropertyNames(R)),v=u.next();!v.done;v=u.next())v=v.value,y[v]=R[v];for(u=y;u&&u!==Object.prototype;u=Object.getPrototypeOf(u)){v=_.V(Object.getOwnPropertyNames(u));for(var Q=v.next();!Q.done;Q=v.next())Q=Q.value,R.hasOwnProperty(Q)||Object.defineProperty(R,Q,vZT(y,Q))}}else R.apply(y)};
vZT=function(R,y){return{get:function(){var u=R[y];return u instanceof Function?u.bind(R):u},
set:function(u){R[y]=u}}};
M78=function(R,y){for(var u=R._noAccessors,v=_.V(Object.getOwnPropertyNames(R)),Q=v.next();!Q.done;Q=v.next())if(Q=Q.value,!jOz.has(Q))if(u)y[Q]=R[Q];else{var M=Object.getOwnPropertyDescriptor(R,Q);M&&(M.configurable=!0,Object.defineProperty(y,Q,M))}};
JZE=function(R,y,u){return function(v){if(u){var Q=u();v.model=Q}if(R[y])R[y](v,v.detail)}};
tw=function(R){var y=[];if(typeof R==="string")R.length>0&&y.push.apply(y,_.P$(R.split(".")));else{R=_.V(R);for(var u=R.next();!u.done;u=R.next())u=u.value,typeof u==="string"?y.push.apply(y,_.P$(u.split("."))):y.push(u)}return y};
V74=function(R,y){if(y[y.length-1]!=="*"&&y[y.length-1]!=="splices"){for(var u=0;u<y.length;u++){if(!R)return;R=R[y[u]]}return R}};
iEL=function(R,y){if(R.length>y.length)return!1;for(var u=0;u<R.length;u++)if(R[u]!==y[u])return!1;return!0};
IPS=function(R,y,u){if(y.type==="compute"){var v=y.getter.bind(u);var Q=y.args}else v=function(){return u[y.method.methodName].apply(u,_.P$(_.qy.apply(0,arguments)))},Q=y.method.args;
KXW(R,y.propertyKey,v,Q,y.value)};
bEc=function(R,y){if(y.readOnly){var u=Object.getOwnPropertyDescriptor(R.model,y.propertyKey);Object.defineProperty(R.model,y.propertyKey,{get:u.get,set:function(){}});
R.model[hWT(y.propertyKey)]=u.set}};
FXS=function(R,y,u){if(u){var v=y.propertyKey,Q=y.selector;y=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.P$(y.selectorArgs.map(function(M){return{type:"path",path:M}})));
KXW(R,v,function(M){var K=_.qy.apply(1,arguments);return Q.apply(null,[u.getState()].concat(_.P$(K)))},y)}};
NJz=function(R,y,u){var v=_.B8(y.propertyKey)+"-changed";wSv(R,function(Q){var M={value:Q.value,queueProperty:!0};Q.path.split(".").length>1&&(M.path=Q.path);u.dispatchEvent(new CustomEvent(v,{detail:M}))},[{type:"wildcard",
path:y.propertyKey}])};
TJT=function(R,y,u){wSv(R,function(){u[y.method.methodName].apply(u,_.P$(_.qy.apply(0,arguments)))},y.method.args)};
hWT=function(R){return"_set"+(R.charAt(0).toUpperCase()+R.slice(1))};
xMv=function(){return _.f("enable_track_defined_via_mutable_signal")||oZU};
BJ8=function(){var R,y=rh(function(u){R=u},!1);
return[R,y]};
ZEc=function(R){R=R.trim().replace(fPT,",").replace(eWP,"$1");var y=R[0];y==="-"&&(y=R[1]);if(y>="0"&&y<="9")return{type:"literal",value:Number(R)};if(y==="'"||y==='"')return{type:"literal",value:R.slice(1,-1)};if(y=R.match(lPL)){y=y[1];var u=OEE[y];if(u)return{type:u,path:R.slice(0,-(y.length+1))}}return{type:"path",path:R}};
rZU=function(R){var y=R.match(HEG);if(y)return R={methodName:y[1],args:nZU},y[2].trim()&&(y=y[2].replace(GH8,"&comma;").split(","),R.args=y.map(ZEc)),R};
Pz4=function(R,y,u,v){v=v===void 0?!1:v;y=_.B8(y);var Q=fN;Q&&(u=Q(u,y,"attribute",R));cN(R,u,y,v)};
cN=function(R,y,u,v){y=WXU(y,v===void 0?!1:v);y===void 0?R.removeAttribute(u):R.setAttribute(u,y)};
WXU=function(R,y){switch(typeof R){case "object":case "function":if(R instanceof Date)return R.toString();if(R){if((y===void 0?0:y)&&!_.f("polymer_reflect_objects_as_boolean_killswitch"))return R?"":void 0;y=window.trustedTypes?window.trustedTypes.isHTML(R)||window.trustedTypes.isScript(R)||window.trustedTypes.isScriptURL(R):void 0;if(y)return R;try{return JSON.stringify(R)}catch(u){_.kT(Error("Dg`"+R))}}break;case "boolean":return R?"":void 0;default:return R!==null&&R!==void 0?R.toString():void 0}};
dM8=function(R){if(R===void 0)throw Error("Eg");return R};
qKP=function(R,y,u,v){var Q=UMP(v);if(Q.length){v=u;var M="property";kHE.test(u)?M="attribute":u[u.length-1]==="$"&&(u=u.slice(0,-1),M="attribute");var K=EZG(Q);K&&M==="attribute"&&(u==="class"&&R.hasAttribute("class")&&(K+=" "+R.getAttribute(u)),cN(R,K,u));M==="attribute"&&v==="disable-upgrade$"&&R.setAttribute("disable-upgrade","");R.localName==="input"&&v==="value"&&R.setAttribute("value","");R.removeAttribute(v);M==="property"&&(u=_.fv(u));y=dM8(y);$MT(y,M,u,Q);return!0}return u.slice(0,3)===
"on-"?(R.removeAttribute(u),(M=y).events!=null||(M.events=[]),y.events.push({name:u.slice(3),value:v}),!0):u==="id"?(y.id=v,!0):!1};
UMP=function(R){for(var y=[],u=0,v;(v=XSU.exec(R))!==null;){v.index>u&&y.push({type:"literal",value:R.slice(u,v.index)});var Q=v[1][0];u=!!v[2];v=v[3].trim();if(Q==="{")throw Error("Fg");(Q=rZU(v))?y.push({type:"method",negate:u,signature:Q}):y.push({type:"path",negate:u,path:v});u=XSU.lastIndex}u&&u<R.length&&(R=R.substring(u))&&y.push({type:"literal",value:R});return y};
EZG=function(R){for(var y="",u=0;u<R.length;u++){var v=R[u];v.type==="literal"&&(y+=v.value)}return y};
$MT=function(R,y,u,v){R.bindings!=null||(R.bindings=[]);R.bindings.push({kind:y,target:u,parts:v})};
t74=function(R,y,u){var v=!1;if(R.localName==="template"){v=u;var Q=y.stripWhitespace;Q=mMz(R,Q===void 0?!1:Q);var M=R.content.ownerDocument.createDocumentFragment();Q.content=M;M.appendChild(R.content);v&&(v.templateInfo=Q);v=!0}else R.localName==="slot"&&(y.hasInsertionPoint=!0);if(R.firstChild&&(Q=u,R.localName!=="script"&&R.localName!=="style")){M=0;for(var K=R.firstChild;K;){var h=K;if(h.localName==="template"){var b=h.getAttribute("is");if((K=b==="dom-if")||b==="dom-repeat"){h.removeAttribute("is");
b=h.ownerDocument.createElement("ps-"+b);h.parentNode.replaceChild(b,h);b.appendChild(h);var N=Array.from(h.attributes);N=_.V(N);for(var T=N.next();!T.done;T=N.next())T=T.value,K?AZW.has(T.name)&&cN(b,T.value,T.name):DME.has(T.name)?cN(b,T.value,T.name):pS4.has(T.name),h.removeAttribute(T.name);K=b}else K=h}if(K.nodeType===Node.TEXT_NODE){h=void 0;b=R;for(N=K;((h=N.nextSibling)==null?void 0:h.nodeType)===Node.TEXT_NODE;)T=void 0,(T=N).textContent!=null||(T.textContent=""),N.nextSibling.textContent&&
(N.textContent+=N.nextSibling.textContent),b.removeChild(N.nextSibling);if(y.stripWhitespace&&K.textContent&&!K.textContent.trim()){R.removeChild(K);K=K.nextSibling;continue}}t74(K,y,{parentIndex:M,parentInfo:Q});K.parentNode&&M++;K=K.nextSibling}}var x;if((x=R.hasAttributes)==null?0:x.call(R)){x=u=dM8(u);Q=!1;M=Array.from(R.attributes);M=_.V(M);for(h=M.next();!h.done;h=M.next())h=h.value,Q=qKP(R,x,h.name,h.value)||Q;v=Q||v}R.nodeType===Node.TEXT_NODE&&(x=UMP(R.textContent),x.length&&(R.textContent=
EZG(x)||" ",u=dM8(u),$MT(u,"text","textContent",x),v=!0));u&&v&&(u.infoIndex=y.nodeInfoList.push(u)-1)};
mMz=function(R,y){y={nodeInfoList:[],stripWhitespace:(y===void 0?!1:y)||R.hasAttribute("strip-whitespace")};t74(R.content,y);return y};
cZ4=function(R){Object.assign(R,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
SKL=function(R,y,u){y.signalCache!=null||(y.signalCache={});var v=y.signalCache[u];if(!v){var Q=u.split(".");v=!aPz(R,Q[0]);if(Q.length>1&&v){var M=R.getPathMutationSignal(Q);v=function(){var K=dh(R.owner,function(){return R.getWithPath([Q[0]])}),h,b=(h=M())==null?void 0:h.value;
return{rootWasDefined:K!==void 0,value:b}}}else v=function(){var K=R.getWithPath(Q);
return{rootWasDefined:K!==void 0,value:K}};
y.signalCache[u]=v}return v()};
LXE=function(R,y,u,v,Q){y=y.parts.map(function(K,h){if(K.type==="literal"){u.partWasDefined!=null||(u.partWasDefined=[]);var b;(b=u.partWasDefined)[h]||(b[h]=K.value!==void 0);return K.value}var N;if(K.type==="method"){var T,x=(T=(N=u.partWasDefined)==null?void 0:N[h])!=null?T:!1;x||(x=K.signature.args.every(function(Z){return Z.type==="literal"}));
var B=!1,l=!0;N=K.signature.args.map(function(Z){if(Z.type==="literal")return Z.value;if(Z.type!=="path")throw Error("Gg`"+Z.type);var P=SKL(R,u,Z.path);Z=P.value;P=P.rootWasDefined;B||(B=P);l&&(l=P);return Z});
x||(x=Q===1?l:B);u.partWasDefined!=null||(u.partWasDefined={});u.partWasDefined[h]=x;if(!x)return;N=(h=SKL(R,u,K.signature.methodName).value)&&typeof h==="function"?h.apply(v,N):void 0}else T=SKL(R,u,K.path),N=T.value,u.partWasDefined!=null||(u.partWasDefined={}),(x=u.partWasDefined)[h]||(x[h]=N!==void 0||T.rootWasDefined);K.negate&&(N=!N);return N});
if(y.length===1){var M;return((M=u.partWasDefined)==null?0:M[0])?y[0]:YKG}return y.join("")};
sOT=function(R){return typeof R==="object"&&!!R&&"notifyPath"in R&&"canNotifyPath"in R};
zWc=function(R){return typeof R==="object"&&!!R&&"notifyPath"in R};
gZE=function(R){return"polymerController"in R};
CzW=function(R,y){y=""+tw(y)[0];if(sOT(R))return R.canNotifyPath(y);if(gZE(R)&&sOT(R.polymerController))return R.polymerController.canNotifyPath(y);if(zWc(R)){var u;return!((u=R.properties)==null||!u[y])}if(gZE(R)&&zWc(R.polymerController)){var v;return!((v=R.polymerController.properties)==null||!v[y])}return!1};
RPz=function(R,y,u){sOT(R)||zWc(R)?R.notifyPath(y,u):gZE(R)&&(sOT(R.polymerController)||zWc(R.polymerController))&&R.polymerController.notifyPath(y,u)};
uXT=function(R,y,u){if(u!==YKG){R.kind==="attribute"||R.target!=="textContent"&&(R.target!=="value"||y.localName!=="input"&&y.localName!=="textarea")||(u=u===void 0?"":u);var v,Q=(v=yKL.Polymer)==null?void 0:v.sanitizeDOMValue;Q&&(u=Q(u,R.target,R.kind,y));if(R.kind==="attribute"){R=R.target;if(R==="class"||R==="name"||R==="slot")y=(0,_.Nz)(y);cN(y,u,R)}else if(R=R.target,u!==y[R]||typeof u==="object")y.loggingStatus&&(y.loggingStatus.isDeclarativeExternal=!0,U7(y.localName,R,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
y[R]=u,y.loggingStatus&&(y.loggingStatus.isDeclarativeExternal=!1)}};
vq8=function(R,y,u,v){var Q=y.parts[0];if(y.parts.length!==1||Q.type!=="path"||!CzW(u,y.target))return!1;var M=_.V(Q.path.split(".")),K=M.next().value,h=Y7(M);if(aPz(R,K))return!1;v.signalCache!=null||(v.signalCache={});M=v.signalCache[Q.path];var b;M=(b=M)==null?void 0:b().value;if((M==null?void 0:M.path)!==void 0){v=tw(M.path);var N=tw(Q.path);v=[y.target].concat(_.P$(v.slice(N.length-1)));RPz(u,v,Q.negate?!M.value:M.value);return!0}var T=aX(R,K);var x=T.getChangeRecordSignal(h),B=!1;M=function(){if(!B){var Z=
dh(R.owner,function(){return T.getWithPath([])});
B||(B=Z!==void 0)}return{value:x(),rootWasDefined:B}};
v.signalCache[Q.path]=M;v.partWasDefined!=null||(v.partWasDefined={});M=M();(N=v.partWasDefined)[0]||(N[0]=M.rootWasDefined);var l=dh(R.owner,function(){return T.getWithPath(h)});
v.partWasDefined[0]&&dh(R.owner,function(){return void uXT(y,u,Q.negate?!l:l)});
return!0};
Qd4=function(R,y,u,v,Q,M){if(!vq8(R,y,u,v)){var K=LXE(R,y,v,Q,M);dh(R.owner,function(){return void uXT(y,u,K)})}};
jdO=function(R,y,u,v,Q,M){u=_.V(u);for(var K=u.next(),h={};!K.done;h={infoIndex:void 0},K=u.next()){K=K.value;var b=K.bindings;h.infoIndex=K.infoIndex;K=K.parentInfo;if(b){b=_.V(b);for(var N=b.next(),T={};!N.done;T={b$jscomp$253:void 0,bindingCtx$jscomp$4:void 0},N=b.next()){T.b$jscomp$253=N.value;if(h.infoIndex===void 0)throw Error("Hg");T.bindingCtx$jscomp$4={};R.effect(function(x,B){return function(){Q&&!Q()||Qd4(R,x.b$jscomp$253,y[B.infoIndex],x.bindingCtx$jscomp$4,v,M)}}(T,h))}}K&&jdO(R,y,[K],
v,Q,M)}};
MAT=function(R,y){R=(y.parentInfo?MAT(R,y.parentInfo):R).firstChild;for(var u=0;R;R=R.nextSibling)if(y.parentIndex===u++)return R;throw Error("Ig");};
VA4=function(R,y,u,v){R=document.importNode(R.content,!0);R.__noInsertionPoint=!(v==null?0:v.hasInsertionPoint);for(var Q=Array(y.length),M={},K=0;K<y.length;K++){var h=y[K],b=MAT(R,h);Q[K]=b;h.id&&(M[h.id]=b);if(h.templateInfo){var N=b.parentElement;N&&(N.templateInfo=h.templateInfo,N.parentSignalProxy=u,N.eventListenerHost=v.eventListenerHost,N.stampingEnabled=v.enabledSignal)}N=void 0;if((N=h.events)==null?0:N.length)for(N=0;N<h.events.length;N++){var T=h.events[N];JKG(v.eventListenerHost,b,T.name,
T.value,v.getModel)}}jdO(u,Q,y,v.thisCtx,v.enabledSignal,v.methodInvocationRequirement);return{root:R,nodes:Q,nodesById:M}};
K7U=function(R,y){R=R();var u;(u=isW.ShadyCSS)==null||u.prepareTemplate(R,y);y=mMz(R);return{template:R,nodeInfoList:y.nodeInfoList,hasInsertionPoint:y.hasInsertionPoint}};
bs8=function(){IWc=!1;for(var R=S0.length,y=0;y<R;y++){var u=S0[y];if(u)try{u()}catch(v){Promise.resolve().then(function(){throw v;})}}S0.splice(0,R);
hPG+=R};
T_L=function(R){IWc||(IWc=!0,F7U.textContent=(wvU++).toString());S0.push(R);return N_U++};
_.s7=function(R,y,u){YJ++;R=y?new oqc(YJ,R,y,u):new x6P(YJ,R);Lu.set(YJ,R);return YJ};
B_L=function(R){(R=Lu.get(R))&&R.cancel()};
ePU=function(R,y){R=fWT.get(R);return R?(y=R.get(y))?y:null:null};
_.zJ=function(R,y,u,v){var Q=ePU(R,y);if(!Q){Q=new lW8;var M=fWT.get(R);M||(M=new Map,fWT.set(R,M));M.set(y,Q)}R=u.bind(R);Q.run(R,v,void 0)};
_.Osz=function(R,y){var u;(u=ePU(R,y))==null||u.cancel()};
ZsE=function(R){var y;(y=ePU(R,"doRender"))==null||y.flush()};
g2=function(R){var y;return(y=R.hostElement)!=null?y:R};
HsU=function(R){var y=R.indexOf(".");return y===-1?R:R.slice(0,y)};
nqT=function(R,y,u,v,Q,M){M=(Q=(v=M?HsU(y):y)?y:null)?R.get(Q):R.__data[y];Q&&M===void 0&&(M=u[y]);_.Ko(R.hostElement,RqS(v)+"-changed",{value:M,queueProperty:!0,path:Q!=null?Q:void 0},{bubbles:!1,composed:!1})};
G44=function(R,y){R.__isReflecting=!0;Pz4(R.hostElement,y,R.__data[y]);R.__isReflecting=!1};
rKE=function(R){if(R._onIronRequestResizeNotifications){var y=R._onIronRequestResizeNotifications.bind(R);R._onIronRequestResizeNotifications=function(u){_.vN(u)!==R.hostElement&&y(u)}}R._ariaActiveAttributeChanged&&(R._ariaActiveAttributeChanged=R._ariaActiveAttributeChanged.bind(R.hostElement));
R._activeChanged&&(R._activeChanged=function(u){R.toggles?cN(R.hostElement,u?"true":"false",R.ariaActiveAttribute):R.hostElement.removeAttribute(R.ariaActiveAttribute);R._changedButtonState()});
R._asyncClick&&(R._asyncClick=function(){_.s7(function(){R.hostElement.click()},1)});
!R.keyEventTarget||R.keyEventTarget instanceof EventTarget||(R.keyEventTarget=g2(R.keyEventTarget));R._disabledChanged&&(R._disabledChanged=R._disabledChanged.bind(R.hostElement));R._observeItems&&(R._observeItems=function(u){var v=g2(u);return _.GM(v).observeNodes(function(Q){R._updateItems();R._updateSelected();_.Ko(v,"iron-items-changed",Q,{bubbles:!1,cancelable:!1})})});
R._updateItems&&R._updateItems===_.Cu._updateItems&&(R._updateItems=function(){var u=_.GM(R.hostElement).queryDistributedElements(R.selectable||"*");u=Array.prototype.filter.call(u,R._bindFilterItem);R._setItems(u)});
R._computeKeyboardClass&&(R._computeKeyboardClass=function(u){_.FN(R.hostElement,"keyboard-focus",u)});
R.ensureRipple&&(R.ensureRipple=function(u){if(R.hasRipple&&!R.hasRipple()){if(!R._createRipple)return;R._ripple=R._createRipple();R._ripple.noink=R.noink;var v=R._rippleContainer||R.hostElement;v&&_.hw(v).appendChild(R._ripple)}var Q;if(u&&((Q=R._ripple)==null?0:Q.uiDownAction)){v=_.hw(R._rippleContainer||R.hostElement);var M;Q=(M=u.composedPath())==null?void 0:M[0];v.contains(Q)&&R._ripple.uiDownAction(u)}});
R._updateMultiselectable&&(R._updateMultiselectable=function(u){u?R.hostElement.setAttribute("aria-multiselectable","true"):R.hostElement.removeAttribute("aria-multiselectable")})};
PZU=function(R,y,u){u=_.V(u);for(var v=u.next();!v.done;v=u.next())QOO(v.value.constructor,R);QOO(y.constructor,R)};
d6E=function(R,y){R=_.V(R);for(var u=R.next();!u.done;u=R.next())if(u=u.value,u.type==="signal"){var v=u.propertyKey;if(y.hasOwnProperty(v)&&y[v]!=null&&u.attributeType===Object){a:{v=y[v].constructor;for(var Q=_.V(W7v),M=Q.next();!M.done;M=Q.next())if(M=M.value,v===M){v=M;break a}v=Object}u.attributeType=v}}};
U6L=function(){};
k4S=function(R){var y;return(y=R.hostElement)!=null?y:R};
EqU=function(){throw Error("Mg");};
$6U=function(R,y){R.constructor.prototype.useSignals=!0;var u=new R.constructor;PZU(u,R,y.behaviors);d6E(y.reactiveSchemas,u);u={};for(var v=_.V(y.reactiveSchemas),Q=v.next();!Q.done;Q=v.next())Q=Q.value,Q.type==="signal"&&(u[Q.propertyKey]=Q.attributeType);var M={copyPropertiesToProto:EqU,didRegister:!1,typesForSignals:u},K=["disable-upgrade"].concat(_.P$(y.observedAttributes)),h=function(b){Rc.call(this,R,y,M,b)};
_.O(h,Rc);_.RR.Object.defineProperties(h,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return K}}});
M.copyPropertiesToProto=function(){for(var b=0;b<y.behaviors.length;b++)M78(y.behaviors[b],h.prototype);M78(R,h.prototype)};
y.legacyOptimizations||M.copyPropertiesToProto();h.prototype.is=R.is;return h};
qUO=function(R,y){if(Object.getPrototypeOf(y.prototype).constructor!==_.W)throw Error("Ng");y.prototype.is=R.is;return $6U(y.prototype,R)};
XvT=function(R){return R.type==="compute"||R.type==="computeWithMethod"};
m6P=function(R){for(var y=R.reactiveSchemas.filter(XvT),u=new Map,v=new Map,Q=new Map,M=_.V(y),K=M.next();!K.done;K=M.next())K=K.value,u.set(K.propertyKey,K),v.set(K.propertyKey,[]),Q.set(K.propertyKey,0);M=0;y=_.V(y);for(K=y.next();!K.done;K=y.next()){K=K.value;for(var h=_.V(K.type==="computeWithMethod"?K.method.args:K.args),b=h.next();!b.done;b=h.next())b=b.value,b.type!=="literal"&&(b=b.path.split(".")[0],v.has(b)&&(v.get(b).push(K.propertyKey),Q.set(K.propertyKey,Q.get(K.propertyKey)+1),M++))}K=
[].concat(_.P$(v.keys())).filter(function(N){return Q.get(N)===0});
for(y=[];K.length;)for(h=K.shift(),y.push(u.get(h)),h=_.V(v.get(h)),b=h.next();!b.done;b=h.next())b=b.value,Q.set(b,Q.get(b)-1),M--,Q.get(b)===0&&K.push(b);u=R.reactiveSchemas.filter(function(N){return!XvT(N)});
R.reactiveSchemas=[].concat(_.P$(u),_.P$(y))};
AKE=function(R,y){if(y.properties)for(var u=_.V(Object.entries(y.properties)),v=u.next();!v.done;v=u.next()){var Q=_.V(v.value);v=Q.next().value;Q=Q.next().value;R.properties[v]=typeof Q==="function"?{type:Q}:Q}y.observers&&R.observers.push.apply(R.observers,_.P$(y.observers));y.disabledPolySiReactions&&R.disabledPolySiReactions.push.apply(R.disabledPolySiReactions,_.P$(y.disabledPolySiReactions))};
D6O=function(R,y){for(var u=y.length-1;u>=0;u--){var v=y[u];Array.isArray(v)?D6O(R,v):R.indexOf(v)<0&&R.unshift(v)}};
pvU=function(R,y){R.reactiveSchemas=R.reactiveSchemas.filter(function(u){return u.type==="observe"&&y.includes(u.method.methodName)||XvT(u)&&y.includes(u.propertyKey)?!1:!0})};
cKT=function(R,y){var u=y.prototype,v,Q,M={is:R.is,reactiveSchemas:[],observedAttributes:[],behaviors:[gQP.InjectBehavior,Aw.prototype],disableElementRegistration:R.disableElementRegistration,provide:(v=R.providers)!=null?v:[],reactivityMode:R.reactivityMode,signalProperties:(Q=u.signalProperties)!=null?Q:[]};"template"in y?M.templateGetter=function(){return y.template}:R.getTemplate&&(M.templateGetter=R.getTemplate);
u.behaviors&&D6O(M.behaviors,u.behaviors);tAL(M,y);return M};
tAL=function(R,y){for(var u=y.prototype,v={properties:{},observers:[],disabledPolySiReactions:[]},Q=_.V(R.behaviors),M=Q.next();!M.done;M=Q.next())AKE(v,M.value);AKE(v,u);if(R.signalProperties)for(u=_.V(R.signalProperties),Q=u.next();!Q.done;Q=u.next())delete v.properties[Q.value];u=_.V(Object.entries(v.properties));for(Q=u.next();!Q.done;Q=u.next()){M=_.V(Q.value);Q=M.next().value;M=M.next().value;var K=void 0;if((K=R.signalProperties)==null||!K.includes(Q)){K=void 0;var h=R,b=M.type;if(!b)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{b=Reflect.getMetadata("design:type",y,Q);for(var N=_.V(aWE),T=N.next();!T.done;T=N.next())if(T=T.value,b===T){b=T;break a}b=Object}else b=String;M.computed||M.selector||(h.reactiveSchemas.push({type:"signal",propertyKey:Q,value:M.value,attributeType:b,readOnly:M.readOnly}),h.observedAttributes.push(_.B8(Q)));M.reflectToAttribute&&h.reactiveSchemas.push({type:"reflect",propertyKey:Q});if(M.computed){b=rZU(M.computed);if(!b)throw Error("Og");h.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:Q,method:b,value:M.value})}M.observer&&h.reactiveSchemas.push({type:"observe",method:{methodName:M.observer,args:[{type:"path",path:Q}]}});M.notify&&h.reactiveSchemas.push({type:"notify",propertyKey:Q});M.selector&&h.reactiveSchemas.push({type:"redux",propertyKey:Q,selector:M.selector,selectorArgs:(K=M.selectorArgs)!=null?K:[]})}}SUL&&m6P(R);y=_.V(v.observers);for(Q=y.next();!Q.done;Q=y.next())u=R,Q=Q.value,(M=rZU(Q))?u.reactiveSchemas.push({type:"observe",method:M}):console.log('Warning: unable to parse observe declaration: "'+
Q+'"');pvU(R,v.disabledPolySiReactions)};
YUG=function(R,y){for(var u=0;u<y.length;u++){var v=y[u],Q=void 0;(Q=v).showHideApi!=null||(Q.showHideApi={});Q=void 0;!!R!==!((Q=v.showHideApi)==null||!Q.hideTemplateChildren)&&(v.nodeType===Node.TEXT_NODE?R?(v.showHideApi.polymerTextContent=v.textContent,v.textContent=""):(Q=void 0,v.textContent=(Q=v.showHideApi.polymerTextContent)!=null?Q:null):v instanceof Element&&v.localName==="slot"?R?(v.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.Nz)((0,_.Nz)(v).parentNode).replaceChild(v.showHideApi.polymerReplaced,
v)):(Q=v.showHideApi.polymerReplaced)&&(0,_.Nz)((0,_.Nz)(Q).parentNode).replaceChild(v,Q):v instanceof HTMLElement&&v.style&&(R?(v.showHideApi.polymerDisplay=v.style.display,v.style.display="none"):v.style.display=v.showHideApi.polymerDisplay));v.showHideApi.hideTemplateChildren=R;v.showHideChildren&&v.showHideChildren(R)}};
sdz=function(){if(!L7z){var R=document.createElement("style");R.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(R);L7z=!0}};
yj=function(){return _.f("disable_hidden_dom_if_using_stamper")};
zPv=function(R,y){var u=_.uX().getState();return y?R.apply(null,[u].concat(_.P$(y))):R(u)};
RQv=function(){if(gqW)return gqW;var R=_.V(_.In(0,void 0,"Nl6eIe")),y=R.next().value;R.next();var u=R.next().value;_.uX().subscribe(function(){CZU(u)});
return gqW=y};
CZU=function(R){_.f("delay_redux_signal_update_killswitch")?R(function(y){return y+1}):yM4||(yM4=!0,Promise.resolve().then(function(){R(function(y){return y+1});
yM4=!1}))};
_.uX=function(){return u64.getAppStore()};
vnT=function(R,y){return u64.getSelectFn()(R,y)};
_.vy=function(R){u64.getDispatchFn()(R)};
QAv=function(R,y){var u={},v;for(v in R)u[v]=y(R[v],v);return u};
_.Qj=function(R,y){return function(){var u;return(u=_.PT(R))!=null?u:y}};
_.jb=function(R,y){var u=Object.assign({},R),v;for(v in y)y.hasOwnProperty(v)&&(u[v]=_.Qj(R[v],y[v]));return u};
jA4=function(R,y,u){R instanceof Element&&(u.debugName||(u.debugName="<"+R.tagName.toLowerCase()+(R.tagName.includes("-")?">":"."+R.className+">")),_.f("ytwiz_enable_debug_component_props")&&(R.debugProps||(R.debugProps=QAv(y,function(v){return function(){return v()}}))))};
MlU=function(R){var y;if(!(y=Mk.traceAllComponents)){var u;y=(u=uE)==null?void 0:u.activeSpan;y=(y==null?void 0:y.name)!=="ytComponent"}return y?dvU("ytComponent",{},R):R()};
_.Jd=function(R,y){var u=function(v){return MlU(function(Q){var M=JMS={};var K;if(((K=u)==null?0:K.idomCompat)&&v.renderedFromIdom){var h;K=typeof u.idomCompat==="object"?(h=u)==null?void 0:h.idomCompat.callbacks:{};K=_.V(Vlv(v,K,u.debugName));h=K.next().value;K.next();K=K.next().value;var b=iCE(R,h);M.privateValue=b;JMS=void 0;jA4(b,h,u);M={debugName:u.debugName};Q&&M&&Object.assign(Q.attributes,M);Q=tmT(b);Q=Array.isArray(Q)?Q[0]:Q;Q[IM]||(Q[IM]={});Q[IM].updateSignalsFromIdomProps=K;K3v(h,b);return b}K=
QAv(v,IeP);h=iCE(R,K);M.privateValue=h;JMS=void 0;jA4(h,K,u);M={debugName:u.debugName};Q&&M&&Object.assign(Q.attributes,M);K3v(K,h);return h})};
u.debugName=y===void 0?"":y;return u};
iCE=function(R,y){R=R(y);return Ns(R)};
hQO=function(R,y){R[y]||(R=new _.OL("IDOM interop setter undefined. Key:",y),_.dI(R))};
IeP=function(R,y){return y==="children"||y==="ref"||typeof R==="function"||R===void 0?R:function(){return _.PT(R)}};
Vlv=function(R,y,u){var v={},Q={},M={},K={},h;for(h in R){K={key$jscomp$923:K.key$jscomp$923};K.key$jscomp$923=h;var b=R[K.key$jscomp$923];if(K.key$jscomp$923==="children"||K.key$jscomp$923==="ref")v[K.key$jscomp$923]=b;else if(typeof b==="function")K.key$jscomp$923 in y||b.length>0?(M[K.key$jscomp$923]=b,v[K.key$jscomp$923]=function(T){return function(){return M[T.key$jscomp$923].apply(M,_.P$(_.qy.apply(0,arguments)))}}(K)):v[K.key$jscomp$923]=b;
else if(!(R[K.key$jscomp$923]===void 0&&K.key$jscomp$923 in y)){var N=_.V(_.In(R[K.key$jscomp$923],{debugName:K.key$jscomp$923+":cwis:"+u},"rvrjQe"));b=N.next().value;N=N.next().value;v[K.key$jscomp$923]=b;Q[K.key$jscomp$923]=N}}return[v,Q,function(T){var x={},B;for(B in T)x={key$jscomp$924:x.key$jscomp$924,val$jscomp$121:void 0},x.key$jscomp$924=B,x.val$jscomp$121=T[x.key$jscomp$924],x.key$jscomp$924!=="children"&&x.key$jscomp$924!=="ref"&&(typeof x.val$jscomp$121==="function"?x.key$jscomp$924 in
y?M[x.key$jscomp$924]=x.val$jscomp$121:x.val$jscomp$121.length>0&&(M[x.key$jscomp$924]=x.val$jscomp$121,_.kT(new _.OL("Callback detected that was not set in the idomCompat callbacks map. Key:",x.key$jscomp$924))):x.key$jscomp$924 in y&&x.val$jscomp$121===void 0||(hQO(Q,x.key$jscomp$924),TF(function(l){return function(){Q[l.key$jscomp$924](l.val$jscomp$121)}}(x))))}]};
wM4=function(R,y,u){var v=Vz4(R.prototype,bCU,R.prototype.behaviors);v.prototype.is=y;v.prototype.localName=y;u&&F3T(v,u);return function(Q){Q&&(v.prototype.hostElement=Q);var M=new v;M.root=M;M.hostElement=Q;return M}};
F3T=function(R,y){var u;Object.defineProperty(R.prototype,"_template",{get:function(){u===void 0&&(u=y());return u},
set:function(v){u=v},
configurable:!0,enumerable:!0})};
Byz=function(R,y,u,v){function Q(){if(!l){for(var Z=new Set,P=_.V(T),k=P.next();!k.done;k=P.next()){k=k.value;for(var E=_.V(Object.getOwnPropertyNames(k)),D=E.next();!D.done;D=E.next()){D=D.value;var z=void 0,c=(z=Object.getOwnPropertyDescriptor(k,D))==null?void 0:z.value;c&&c instanceof Function&&!Vj(D)&&(!h[D]||_.f("polymer_forward_method_killswitch"))&&Z.add(D)}}P=_.V(Object.entries(Object.getOwnPropertyDescriptors(R.prototype)));for(k=P.next();!k.done;k=P.next())E=_.V(k.value),k=E.next().value,
E=E.next().value,E.value instanceof Function&&!Vj(k)&&Z.add(k);l=Z}return l}
Nyc(R,y,v==null?void 0:v.providers);ipE(R.prototype,R,!0);var M=wM4(R,y,u),K,h=(K=R.prototype.properties)!=null?K:{},b,N,T=(N=(b=R.prototype.behaviors)==null?void 0:b.flat(Infinity))!=null?N:[];u=_.V(T);for(K=u.next();!K.done;K=u.next())h=Object.assign({},K.value.properties,h);var x=[].concat(_.P$(TyP),_.P$(Object.keys(h).map(function(Z){return _.B8(Z)}))),B=!1,l;
return{ctor:function(Z,P){var k=M(Z),E,D;Z=[].concat(_.P$((E=v==null?void 0:v.allowedProps)!=null?E:[]),_.P$((D=v==null?void 0:v.allowedPropsFromBehaviors)!=null?D:[]));k.allowedProps=Z.length>0?Z:void 0;E={};D=_.V(x);for(Z=D.next();!Z.done;Z=D.next())Z=Z.value,E[Z]=_.fv(Z);k.__dataAttributes=E;var z=k.ready.bind(k);k.ready=function(){P.beforeReady();z();if(r2(y)&&!B){var c=k.__templateInfo;if(c==null?0:c.hostProps){c=_.V(Object.keys(c.hostProps));for(var a=c.next();!a.done;a=c.next())U7(y,a.value,
"PROPERTY_ACCESS_GET_INTERNAL")}B=!0}};
k._overrideLegacyUndefined=!0;return k},
props:h,observedAttributes:x,getInitialMethods:Q,getPropsToForwardBeforeRegister:function(){for(var Z=[],P=new Set,k=_.V(Object.keys(h)),E=k.next();!E.done;E=k.next())E=E.value,Z.push([E,h[E].readOnly]),P.add(E);k=Q();E=_.V(Object.keys(Object.getOwnPropertyDescriptors(R.prototype)));for(var D=E.next();!D.done;D=E.next())D=D.value,!onE(D)||k.has(D)||P.has(D)||(Z.push([D,!1]),P.add(D));P=_.V(x78);for(k=P.next();!k.done;k=P.next())Z.push([k.value,!0]);return Z},
getPropsToForwardBeforeReady:function(Z){for(var P=[],k=_.V(Object.entries(Z)),E=k.next();!E.done;E=k.next()){var D=_.V(E.value);E=D.next().value;D=D.next().value;if(onE(E)&&!(D instanceof Function)&&(P.push([E,!1]),r2(y))){var z=D=void 0;(z=(D=Z)._createPropertyAccessor)==null||z.call(D,E)}}return P},
shouldForwardProp:onE,shouldLog:r2}};
Nyc=function(R,y,u){C2c(R,u);R.prototype.behaviors.unshift(feT);if(moL()){if(r2(y)){var v;(v=R.prototype).behaviors!=null||(v.behaviors=[]);R.prototype.behaviors.unshift(taL())}crU(R)}_.n(Aw.prototype)(R.prototype,"__templateHelpers")};
Vj=function(R){return eQG.has(R)||R.startsWith("__compute__")};
onE=function(R){return!Vj(R)&&!R.startsWith("_")&&!R.endsWith("_")};
nnc=function(R,y){function u(){var B=b();B=_.V(B);for(var l=B.next();!l.done;l=B.next()){var Z=_.V(l.value);l=Z.next().value;Z=Z.next().value;le4(x.prototype,l,Z)}v=!0}
var v=!1,Q=R.ctor,M=R.getInitialMethods,K=R.observedAttributes,h=R.getPropsToForwardBeforeReady,b=R.getPropsToForwardBeforeRegister,N=R.shouldForwardProp,T=R.shouldLog,x=function(){var B=HTMLElement.call(this)||this;B.didForwardDynamicProps=!1;B.loggingStatus={};v||u();B.inst=Q(B,{beforeReady:function(){B.didForwardDynamicProps||(B.forwardDynamicProps(),B.didForwardDynamicProps=!0)}});
B.controllerProxy=DoS(B.inst,y);B.forwardMethods();return B};
_.O(x,HTMLElement);x.prototype.forwardMethods=function(){for(var B=this,l=_.V(this.inst.getExtraMethodsToForward()),Z=l.next(),P={};!Z.done;P={method$jscomp$63:void 0},Z=l.next()){var k=_.V(Z.value);Z=k.next().value;k=k.next().value;P.method$jscomp$63=k;this[Z]=function(E){return function(){return E.method$jscomp$63.call.apply(E.method$jscomp$63,[B.inst].concat(_.P$(_.qy.apply(0,arguments))))}}(P)}l=_.V(M());
for(P=l.next();!P.done;P=l.next())P=P.value,N(P)&&OCT(this,P),T(y)&&!Vj(P)&&ZCP(this.inst,P)};
x.prototype.forwardDynamicProps=function(){var B=h(this.inst);B=_.V(B);for(var l=B.next();!l.done;l=B.next()){var Z=_.V(l.value);l=Z.next().value;Z=Z.next().value;le4(this,l,Z);T(y)&&!Vj(l)&&HCS(this.inst,l)}};
x.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
x.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
x.prototype.attributeChangedCallback=function(B,l,Z){this.inst.attributeChangedCallbackWrapper(B,l,Z)};
_.RR.Object.defineProperties(x.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return y}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.RR.Object.defineProperties(x,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return K}}});
customElements.define(y,x)};
le4=function(R,y,u){R.hasOwnProperty(y)||Object.defineProperty(R,y,{get:function(){var v,Q=((v=R.is)!=null?v:R.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||U7(Q,y,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,v=this.polymerController[y],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,v},
set:function(v){if(!u){var Q,M=((Q=R.is)!=null?Q:R.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||U7(M,y,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=y,this.loggingStatus.bypassProxyController=!0,this.polymerController[y]!==v&&(Q={},this.polymerController.setProperties((Q[y]=v,Q)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
OCT=function(R,y,u){var v=R.polymerController;R[y]=function(){var Q=_.qy.apply(0,arguments);R.loggingStatus.currentExternalCall=y;R.loggingStatus.bypassProxyController=!0;var M,K=((M=R.is)!=null?M:R.tagName).toLowerCase();U7(K,y,"PROPERTY_ACCESS_CALL_EXTERNAL");var h;M=(h=u!=null?u:v[y])==null?void 0:h.call.apply(h,[v].concat(_.P$(Q)));R.loggingStatus.currentExternalCall=void 0;R.loggingStatus.bypassProxyController=!1;return M}};
ZCP=function(R,y){var u=R.hostElement,v=R[y];R[y]=function(){var Q=_.qy.apply(0,arguments);if(u.loggingStatus.currentExternalCall!==y){var M,K=((M=u.is)!=null?M:u.tagName).toLowerCase();U7(K,y,"PROPERTY_ACCESS_CALL_INTERNAL")}return v==null?void 0:v.apply(R,Q)}};
HCS=function(R,y){var u=Object.getOwnPropertyDescriptor(R,y);u&&!u.get&&Object.defineProperty(R,y,{get:function(){pxU(R.hostElement,y);return u.value},
set:function(v){kJ(R.hostElement,y);u.value=v}})};
Gbz=function(R){return _.f("poly_si_dom_repeat_detached_fix_killswitch")||R.tagName!=="PS-DOM-REPEAT"?R.tagName==="DOM-REPEAT":!0};
PIL=function(R,y){var u=rMc(R);R instanceof Element&&u.unshift(R);R=_.V(u.filter(Gbz));for(var v=R.next();!v.done;v=R.next()){var Q=void 0;v=_.V((Q=v.value.__instances)!=null?Q:[]);for(Q=v.next();!Q.done;Q=v.next())if(Q=Q.value,Q.root){Q=Array.from(Q.root.children);Q=_.V(Q);for(var M=Q.next();!M.done;M=Q.next())u.push.apply(u,_.P$(PIL(M.value,y)))}}return u.filter(function(K){return K.usePatchedLifecycles&&K.lifecycleIsConnected===y})};
rMc=function(R){var y=null;R instanceof Element?y=Element.prototype.querySelectorAll:R instanceof DocumentFragment&&(y=DocumentFragment.prototype.querySelectorAll);return y?Array.from(y.call(R,"*")):[]};
iX=function(R){Ky(function(){for(var y=_.V(PIL(R,!1)),u=y.next();!u.done;u=y.next()){u=u.value;u.lifecycleIsConnected=!0;try{var v=void 0,Q=void 0,M=void 0,K=void 0;(v=(K=u.polymerController)!=null?K:u)==null||(M=(Q=v).connectedCallback)==null||M.call(Q)}catch(h){_.dI(h)}}})};
Kk=function(R){Ky(function(){for(var y=_.V(PIL(R,!0)),u=y.next();!u.done;u=y.next()){u=u.value;u.lifecycleIsConnected=!1;try{var v=void 0,Q=void 0,M=void 0,K=void 0;(v=(K=u.polymerController)!=null?K:u)==null||(M=(Q=v).disconnectedCallback)==null||M.call(Q)}catch(h){_.dI(h)}}})};
qNW=function(){if(!W3W){W3W=!0;var R=[Node];Ic&&R.push(Ic.Wrapper);var y=Node.prototype.insertBefore,u=Node.prototype.removeChild;R=_.V(R);for(var v=R.next(),Q={};!v.done;Q={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},v=R.next())v=v.value,Q.nativeInsertBefore=v.prototype.insertBefore,v.prototype.insertBefore=function(K){return function(h,b){if(h instanceof DocumentFragment){var N=Array.from(h.children);h=K.nativeInsertBefore.call(this,h,b);
if(this.isConnected&&K.nativeInsertBefore===y)for(b=_.V(N),N=b.next();!N.done;N=b.next())iX(N.value);return h}N=h instanceof Element&&h.isConnected;b=K.nativeInsertBefore.call(this,h,b);N&&Kk(h);this.isConnected&&iX(h);return b}}(Q),Q.nativeAppendChild=v.prototype.appendChild,v.prototype.appendChild=function(K){return function(h){if(h instanceof DocumentFragment){var b=Array.from(h.children);
h=K.nativeAppendChild.call(this,h);if(this.isConnected){b=_.V(b);for(var N=b.next();!N.done;N=b.next())iX(N.value)}return h}b=h instanceof Element&&h.isConnected;N=K.nativeAppendChild.call(this,h);b&&Kk(h);this.isConnected&&iX(h);return N}}(Q),Q.nativeRemoveChild=v.prototype.removeChild,v.prototype.removeChild=function(K){return function(h){var b=h instanceof Element&&h.isConnected,N=K.nativeRemoveChild.call(this,h);
b&&u===K.nativeRemoveChild&&Kk(h);return N}}(Q),Q.nativeReplaceChild=v.prototype.replaceChild,v.prototype.replaceChild=function(K){return function(h,b){if(h instanceof DocumentFragment){var N=Array.from(h.children);
h=K.nativeReplaceChild.call(this,h,b);if(this.isConnected)for(Kk(b),b=_.V(N),N=b.next();!N.done;N=b.next())iX(N.value);return h}N=h instanceof Element&&h.isConnected;var T=this.isConnected,x=K.nativeReplaceChild.call(this,h,b);T&&Kk(b);N&&Kk(h);T&&iX(h);return x}}(Q);
R=[Element];Ic&&R.push(Ic.Wrapper);R=_.V(R);v=R.next();for(Q={};!v.done;Q={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},v=R.next())v=v.value,v.prototype.before=d7O(v.prototype.before),v.prototype.after=d7O(v.prototype.after),Q.nativeReplaceWith=v.prototype.replaceWith,v.prototype.replaceWith=function(K){return function(){var h=_.qy.apply(0,arguments),b=_.V(U74(h)),N=b.next().value,
T=b.next().value;b=this.isConnected;K.nativeReplaceWith.apply(this,h);h=_.V(T);for(T=h.next();!T.done;T=h.next())Kk(T.value);if(b)for(Kk(this),N=_.V(N),b=N.next();!b.done;b=N.next())b=b.value,b instanceof Element&&iX(b)}}(Q),Q.nativeRemove=v.prototype.remove,v.prototype.remove=function(K){return function(){var h=this.isConnected;
K.nativeRemove.call(this);h&&Kk(this)}}(Q),Q.nativeInsertAdjacentElement=v.prototype.insertAdjacentElement,v.prototype.insertAdjacentElement=function(K){return function(h,b){var N=b.isConnected;
h=K.nativeInsertAdjacentElement.call(this,h,b);N&&Kk(b);h.isConnected&&iX(h);return h}}(Q),Q.nativeSetAttribute=v.prototype.setAttribute,v.prototype.setAttribute=function(K){return function(h,b){var N=kb8(this);
if(!N.usePatchedLifecycles)return K.nativeSetAttribute.call(this,h,b);var T=this.getAttribute(h);K.nativeSetAttribute.call(this,h,b);b=this.getAttribute(h);EnS(N,h,T,b)}}(Q),Q.nativeRemoveAttribute=v.prototype.removeAttribute,v.prototype.removeAttribute=function(K){return function(h){var b=kb8(this);
if(!b.usePatchedLifecycles)return K.nativeRemoveAttribute.call(this,h);var N=this.getAttribute(h);K.nativeRemoveAttribute.call(this,h);N!==null&&EnS(b,h,N,null)}}(Q),Q.nativeToggleAttribute=v.prototype.toggleAttribute,v.prototype.toggleAttribute=function(K){return function(h,b){var N=kb8(this);
if(!this.usePatchedLifecycles)return K.nativeToggleAttribute.call(this,h,b);var T=this.getAttribute(h),x=T!==null;b=K.nativeToggleAttribute.call(this,h,b);b!==x&&EnS(N,h,T,b?"":null);return b}}(Q);
R=[Document,DocumentFragment,Element,ShadowRoot];Ic&&R.push(Ic.Wrapper);R=_.V(R);for(Q=R.next();!Q.done;Q=R.next())Q=Q.value,Q.prototype.prepend=d7O(Q.prototype.prepend),Q.prototype.append=d7O(Q.prototype.append);(Ic==null?void 0:Ic.noPatch)===!0&&$7U();document.readyState==="complete"?iX(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&iX(document.body)});
var M=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");M&&M.get&&M.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:M.enumerable,configurable:!0,get:M.get,set:function(K){K||Kk(this);M.set.call(this,K);return K}})}};
d7O=function(R){return function(){var y=_.qy.apply(0,arguments),u=_.V(U74(y)),v=u.next().value;u=u.next().value;R.apply(this,y);y=_.V(u);for(u=y.next();!u.done;u=y.next())Kk(u.value);if(this.isConnected)for(v=_.V(v),y=v.next();!y.done;y=v.next())y=y.value,y instanceof Element&&iX(y)}};
$7U=function(){for(var R=_.V(XMz),y=R.next();!y.done;y=R.next()){y=y.value.prototype;for(var u=_.V(m7L),v=u.next();!v.done;v=u.next()){v=v.value;var Q=Object.getOwnPropertyDescriptor(y,v);Q&&Object.defineProperty(y,"__shady_native_"+v,Q)}}};
EnS=function(R,y,u,v){var Q,M;if((Q=R.polymerController)==null?0:(M=Q.observedAttributes)==null?0:M.includes(y))if(R=R.polymerController,R.attributeChangedCallbackWrapper)R.attributeChangedCallbackWrapper.call(R,y,u,v);else{var K;(K=R.attributeChangedCallback)==null||K.call(R,y,u,v)}};
U74=function(R){var y=[],u=[];R=_.V(R);for(var v=R.next();!v.done;v=R.next())v=v.value,v instanceof Element&&v.isConnected&&u.push(v),v instanceof DocumentFragment?y.push.apply(y,_.P$(Array.from(v.children))):y.push(v);return[y,u]};
kb8=function(R){return!(R instanceof Element)&&R.node instanceof Element?R.node:R};
AMO=function(R,y){var u=y?["children"].concat(_.P$(y)):["children"];y=[];u=_.V(u);for(var v=u.next();!v.done;v=u.next()){var Q=v.value;if(R.hasOwnProperty(Q)){v=R[Q];v=typeof v==="function"?v():v;v=Array.isArray(v)?v:[v];v=Ns(v).flat();if(Q!=="children"){Q=RqS(Q);for(var M=_.V(v),K=M.next();!K.done;K=M.next())K=K.value,K instanceof Element&&K.setAttribute("slot",Q)}y.push(v)}}y.length===0?R=[]:(R=Ns(_.F("div",null,y)),R=Array.from(R.childNodes));return R};
pMO=function(R,y,u){var v={};_.WT(function(){var Q={},M;for(M in y)if(y.hasOwnProperty(M)){var K=void 0,h=void 0;if(!(((K=u.slotProps)==null?0:K.includes(M))||M==="children"||((h=u.callbackProps)==null?0:h.includes(M))||M==="ref")&&(K=_.PT(y[M]),v[M]!==K)){v[M]=K;h=void 0;var b=(h=R.hostElement)!=null?h:R;D7U.has(M)&&(b[M]=K);Q[M]=K}}TF(function(){if(R.setProperties)R.setProperties(Q);else for(var N=_.V(Object.entries(Q)),T=N.next();!T.done;T=N.next()){var x=_.V(T.value);T=x.next().value;x=x.next().value;
R[T]=x}})})};
cMc=function(R,y,u,v){var Q=AMO(u,v.slotProps),M=(0,_.Nz)(R);Q=_.V(Q);for(var K=Q.next();!K.done;K=Q.next())M.appendChild(K.value);pMO(y,u,v);v=_.V(v.callbackProps||[]);Q=v.next();for(M={};!Q.done;M={kebabEventName:void 0,eventListener:void 0},Q=v.next())K=Q=Q.value,String(Q).substring(0,2)==="on"&&u[K]?(M.kebabEventName=RqS(String(Q).substring(2)),M.eventListener=u[K],R.addEventListener(M.kebabEventName,M.eventListener),_.GF(function(T){return function(){R.removeEventListener(T.kebabEventName,T.eventListener)}}(M))):
y[K]=u[K];
if(u.ref){u=_.V(tlc(u.ref));var h=u.next().value,b=u.next().value,N=y.attached.bind(y);y.attached=function(){h(R);N()};
_.GF(function(){b()})}};
tlc=function(R){if(typeof R==="function"){var y;return[function(u){y=R(u)},
function(){var u;(u=y)==null||u()}]}if(!R.onRender||!R.onUnmount)throw Error("Sg");
return[R.onRender,R.onUnmount]};
L3O=function(R,y,u,v,Q){v=v===void 0?{}:v;var M=aeU,K=!1;M?(K=!0,aeU=void 0):(SNO=y,M=document.createElement(y),SNO=void 0);var h=M;h.usePatchedLifecycles=!0;h.lifecycleIsConnected=!1;M.loggingStatus={};var b=YNW(R,y,M,v,Q);_.GF(function(){h.lifecycleIsConnected&&(h.lifecycleIsConnected=!1,b.disconnectedCallback())});
K||(_.f("sink_wrapper_disable_runtime_shadycss")&&(M.__noInsertionPoint=!0),cMc(M,b,u,v));return M};
YNW=function(R,y,u,v,Q){Q=Q===void 0?Byz:Q;sAc[y]!=null||(sAc[y]=Q(R,y,v==null?void 0:v.getTemplate,v));var M=sAc[y],K=M.ctor;Q=M.getInitialMethods;var h=M.getPropsToForwardBeforeReady;R=M.getPropsToForwardBeforeRegister;v=M.shouldForwardProp;var b=M.observedAttributes,N=M.shouldLog,T=K(u,{beforeReady:function(){var x=T;x._takeAttributes?x._takeAttributes():x.setPropertiesFromInitialAttributeValues&&x.setPropertiesFromInitialAttributeValues();x=_.V(h(u.polymerController));for(var B=x.next();!B.done;B=
x.next()){var l=_.V(B.value);B=l.next().value;l=l.next().value;le4(u,B,l);N(y)&&!Vj(B)&&HCS(u.polymerController,B)}u.polymerController=DoS(T,y)}});
u.polymerController=T;u.polymerController.observedAttributes=b;M=_.V(T.getExtraMethodsToForward());for(K=M.next();!K.done;K=M.next())b=_.V(K.value),K=b.next().value,b=b.next().value,OCT(u,K,b);Q=_.V(Q());for(M=Q.next();!M.done;M=Q.next())M=M.value,v(M)&&OCT(u,M),N(y)&&!Vj(M)&&ZCP(T,M);R=_.V(R());for(v=R.next();!v.done;v=R.next())Q=_.V(v.value),v=Q.next().value,Q=Q.next().value,le4(u,v,Q);return T};
gnW=function(R,y){return hd===y?(R.isInert=!0,hd="",!0):zQ4===y?(R.isInert=!0,zQ4="",!0):!1};
CIW=function(R){var y=bX;bX=R;return y};
yuz=function(R){if(Fg.has(R))zQ4=R;else if(wZ.has(R)&&bX&&Ra4(bX)===R){var y;(y=bX)._numRenders!=null||(y._numRenders=0);bX._numRenders++;if(bX._numRenders>1)throw Error("Tg");return bX}};
uFS=function(R){Fg.has(Ra4(R))?zQ4=Ra4(R):wZ.has(Ra4(R))&&bX!==R&&(R._isInert=!0)};
Ra4=function(R){var y;return(y=R==null?void 0:R.tagName.toLowerCase())!=null?y:""};
v5U=function(R,y){if(R.componentType===l$)throw Error("Ug");wZ.add(y);var u=function(){var v=HTMLElement.call(this)||this;v.is=y;if(SNO===y)return v.isInert=!0,v;v.createElement();return v};
_.O(u,HTMLElement);u.prototype.createElement=function(){if(!this.isInert){aeU=this;var v=_.V(_.htz(function(){return _.F(R,null)})).next().value;
aeU=void 0;cZ4(this);return v}};
customElements.define(y,u)};
jYc=function(R,y,u,v,Q){R.prototype.is=y;(v==null?0:v.useSink)?QYT(R,y,u,v,Q):(u=Byz(R,y,u,v),nnc(u,y));return R};
QYT=function(R,y,u,v,Q){qNW();var M=_.Jd(function(K){return L3O(R,y,K,Object.assign({},v,{getTemplate:u}),Q)},"a");
M.debugName=y+" (CoW wrapped)";v5U(M,y);return M};
JuO=function(R){return!MOU.has(R)};
KtO=function(R,y,u,v){function Q(){if(!x){for(var B=new Set(VOE),l=_.V(M.behaviors),Z=l.next();!Z.done;Z=l.next()){Z=Z.value;for(var P=_.V(Object.getOwnPropertyNames(Z)),k=P.next();!k.done;k=P.next()){k=k.value;var E=void 0,D=(E=Object.getOwnPropertyDescriptor(Z,k))==null?void 0:E.value;D&&D instanceof Function&&(!N[k]||_.f("polymer_forward_method_killswitch"))&&B.add(k)}}l=_.V(Object.entries(Object.getOwnPropertyDescriptors(R.prototype)));for(Z=l.next();!Z.done;Z=l.next())P=_.V(Z.value),Z=P.next().value,
P=P.next().value,P.value instanceof Function&&B.add(Z);x=B}return x}
var M=cKT({is:y,disableElementRegistration:!1,getTemplate:u,providers:v==null?void 0:v.providers,reactivityMode:v==null?void 0:v.reactivityMode},R);if((v==null?0:v.allowedProps)||(v==null?0:v.allowedPropsFromBehaviors)){var K,h;M.allowedProps=[].concat(_.P$((K=v.allowedProps)!=null?K:[]),_.P$((h=v.allowedPropsFromBehaviors)!=null?h:[]))}var b=qUO(M,R);y=b.observedAttributes;var N={};u=_.V(M.reactiveSchemas);for(v=u.next();!v.done;v=u.next())if(v=v.value,v.type==="signal")N[v.propertyKey]={readOnly:v.readOnly},
v.readOnly&&(N[hWT(v.propertyKey)]={readOnly:!0});else if(v.type==="compute"||v.type==="computeWithMethod"||v.type==="redux")N[v.propertyKey]={readOnly:!0};var T=M.reactiveSchemas.length,x;return{ctor:function(B,l){B=new b(B);B.beforeReady=l.beforeReady;return B},
props:N,observedAttributes:y,getInitialMethods:Q,getPropsToForwardBeforeRegister:function(){for(var B=[],l=new Set,Z=_.V(i5U),P=Z.next();!P.done;P=Z.next())P=P.value,B.push([P,P!=="observers"&&P!=="properties"]),l.add(P);Z=_.V(Object.keys(N));for(P=Z.next();!P.done;P=Z.next())P=P.value,B.push([P,N[P].readOnly]),l.add(P);Z=Q();P=_.V(Object.keys(Object.getOwnPropertyDescriptors(R.prototype)));for(var k=P.next();!k.done;k=P.next())k=k.value,!JuO(k)||Z.has(k)||l.has(k)||(B.push([k,!1]),l.add(k));B.push(["allowedProps",
!0]);return B},
getPropsToForwardBeforeReady:function(B){var l=[];B=_.V(Object.keys(B));for(var Z=B.next();!Z.done;Z=B.next()){Z=Z.value;var P=Q();JuO(Z)&&!P.has(Z)&&l.push([Z,!1])}B=_.V(M.reactiveSchemas.slice(T));for(Z=B.next();!Z.done;Z=B.next())Z=Z.value,Z.type!=="compute"&&Z.type!=="computeWithMethod"&&Z.type!=="redux"&&Z.type!=="signal"||l.push([Z.propertyKey,Z.type==="signal"?Z.readOnly:!0]);return l},
shouldForwardProp:JuO,shouldLog:r2}};
_.m=function(R,y,u,v){var Q,M,K=(M=(Q=v)==null?void 0:Q.mode)!=null?M:0;v!=null||(v={});var h;(h=v).reactivityMode!=null||(h.reactivityMode=0);K===1&&_.ia("creator_poly_si_disable_list").includes(y)&&(K=2);return K===1?jYc(R,y,u,Object.assign({},v,{useSink:!0}),KtO):jYc(R,y,u,Object.assign({},v,{useSink:K===2}))};
_.Nk=function(){return function(R,y,u,v){var Q,M,K=(M=(Q=v)==null?void 0:Q.mode)!=null?M:2;v!=null||(v={});var h;(h=v).reactivityMode!=null||(h.reactivityMode=0);if(K===0)throw Error("Vg`"+K);return QYT(R,y,u,v,K===1?KtO:void 0)}};
_.TN=function(R){return _.f("creator_poly_si_killswitch")?!1:_.f("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||_.f(R+"_holdback_enabled")&&_.f("kevlar_polysi_holdback")?!1:_.f(R)};
oc=function(R){return R?R.icon?R.icon.iconType.toLowerCase():R.customThumbnail?"member":"":""};
IZT=function(R){if(!R)return"";R=_.V(R);for(var y=R.next();!y.done;y=R.next())if((y=y.value)&&y.liveChatAuthorBadgeRenderer&&(y=oc(y.liveChatAuthorBadgeRenderer))&&y!=="verified")return y;return""};
haP=function(R,y){if(!R)return null;var u;return((u=R.find(function(v){return v&&v.liveChatAuthorBadgeRenderer?oc(v.liveChatAuthorBadgeRenderer)===y:!1}))==null?void 0:u.liveChatAuthorBadgeRenderer)||null};
_.o5P=function(R){var y=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;R=b58(R);y=b58(y);var u=FtU(R.hex);y=FtU(y.hex);var v=y[0]/255;var Q=y[1]/255,M=y[2]/255,K=Math.max(v,Q,M),h=Math.min(v,Q,M),b=0,N=0,T=.5*(K+h);K!=h&&(K==v?b=60*(Q-M)/(K-h):K==Q?b=60*(M-v)/(K-h)+120:K==M&&(b=60*(v-Q)/(K-h)+240),N=0<T&&T<=.5?(K-h)/(2*T):(K-h)/(2-2*T));v=[Math.round(b+360)%360,N,T];u=ww4(u,y);for(R=NMv(R.hex);u<4.5;){R=v[2]>=.5?R.darker((4.5-u)/2):R.brighter((4.5-u)/2);u=R.toString();
Q=TML(u);if(!Q.length)throw Error("Sd`"+u);u=Q;u=ww4(u,y)}return R.hex()};
ww4=function(R,y){R=_.Clc(R);y=_.Clc(y);return(Math.max(R,y)+.05)/(Math.min(R,y)+.05)};
_.xi=function(R){return"#"+("000000"+(R&16777215).toString(16)).slice(-6)};
_.xhT=function(R){for(var y=0,u=0;u<R.length;u++)y=R.charCodeAt(u)+((y<<5)-y);R="#";for(u=0;u<3;u++)R+=("00"+(y>>u*8&255).toString(16)).slice(-2);return R};
BMW=function(R){R=(R||"").split(":");R.length===1&&R.unshift("yt-icons");R[1]=R[1].toLowerCase();return R};
H5O=function(R,y){var u=(y=y===void 0?!1:y)?fZT:eav,v=y?lZz:O58;R.getIconNames().forEach(function(Q){Q=y?Q:Q.substring(Q.indexOf(":")+1);R.name==="yt-icons"?Z5L.add(Q):Q.includes("-filled")?u.add(Q):v.add(Q)})};
By=function(R,y,u,v){u=u===void 0?!1:u;v=v===void 0?!1:v;var Q,M,K;return _.I(function(h){if(h.nextAddress==1)return h.yield(n5G,2);if(v)return h.return(Z5L.has(R));Q=u?fZT:eav;M=u?lZz:O58;return y?(K=R.includes("-filled")?R:R.concat("-filled"),h.return(Q.has(K))):h.return(M.has(R))})};
_.PeT=function(R){if(GUc(R))return R;var y=R=R.toLowerCase();(R=ruU.get(R))&&(y=R);return y};
_.fk=function(R){if(GUc(R))return R.toString();var y=WtE.get(R);if(y)return y;y=R.toLowerCase();var u="yt-icons",v=y.replace(/_/g,"-");switch(R){case "MY_CHANNEL":y="account_circle";break;case "ADD_TO_LIBRARY":y="add";break;case "ALERT_WARN_RED":y="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":y="person_music";break;case "BLOCK_USER":y="block";break;case "CAPTIONS":y="closed_caption";break;case "CLOSED_CAPTION":u="av";y="closed-caption";break;case "COLLECTION":u="maps";y="layers";break;case "CONTACT":u=
"icons";y="business";break;case "CREATOR_STUDIO_ERROR_ON_LOAD":case "CREATOR_STUDIO_ERROR_ON_LOAD_V2":case "CREATOR_STUDIO_NO_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS_V2":case "CREATOR_STUDIO_NO_SEARCH_MATCH":case "CREATOR_STUDIO_NO_SEARCH_MATCH_V2":u="ytcp-icons";y=v.split("creator-studio-")[1];break;case "DISMISSAL":y="close";break;case "DO_NOT_DISTURB":y="block";break;case "DOGFOOD":u="icons";y="pets";break;case "DRAFT":y="paper_corner_folded";break;
case "EMPTY_LIKE":y="like_outline";break;case "EXIT_APP":y="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":y=v;break;case "GAMES":u="ytg";y="my-games";break;case "GO_TO_PAGE":y="arrow-forward";break;case "GROUP":u="social";break;case "HIDE":y="not_interested";break;case "INPUT_COMPONENT":u="icons";y="settings-input-component";break;case "KIDS_BLOCK":y="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":u="ytg";y="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":u=
"ytg";y="membership-post-purchase";break;case "MULTIVIEW":y="screen_multi_view";break;case "MY_LOCATION":u="maps";y=v;break;case "NOTIFICATIONS_INBOX":y="NOTIFICATIONS";break;case "NEXT":y="chevron_right";break;case "OFFLINE":y="power-settings-new";break;case "PAUSE":u="miniplayer";break;case "PAYMENT":u="icons";break;case "PHONE_DOWNLOAD":y="phone_download";break;case "PREMIUM_STANDALONE":u="yt-logos";y="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":u="yt-logos";y="premium_standalone_cairo";
break;case "QUESTION_ANSWER":y="question_answer";break;case "REDEEM":u="icons";y="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":y="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":y="library_add";break;case "SCHOOL":u="yt-sys-icons";y="creator_academy";break;case "SETTINGS_LIGHT":y="settings_applications";break;case "SETTINGS_MATERIAL":y="settings";break;case "SEARCH_HISTORY":y="watch_history";break;case "SHOPPING_BAG":y="bag";break;case "SOCIAL":case "PEOPLE":u=
"yt-icons";y="people";break;case "STAFF_PICK":u="ytg";y="spotlight";break;case "START_DVR":y="add";break;case "STOP_DVR":u="av";y="stop";break;case "TAB_LIKED":y="like";break;case "TAB_INBOX":y="mail";break;case "TERMS_OF_SERVICE":u="icons";y="description";break;case "TRENDING":y="fire";break;case "UNBLOCK_USER":y="remove";break;case "UNPLUGGED_DARK_THEME":u="image";y="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":y="live";break;case "UNPLUGGED_SPORTS":u="ytu";y="visibility-off";break;
case "VIDEOS":u="av";y="play-circle-filled";break;case "YOUTUBE":u="yt-logos";y="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":u="yt-logos-ext";y="yt-logo-red-updated";break;case "YOUTUBE_LOGO":u="yt-logos-ext";y="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":u="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":u="shorts";y=v;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":u="yt-sys-icons";y="youtube_improve_tv";break;case "OUTLINE_BAG":u=
"yt-sys-icons";y="bag";break;case "QUEUE_PLAY_LAST":u="yt-sys-icons";y="list_queue_last";break;case "SLASH_CIRCLE_LEFT":y="slash_circle_left";break;case "SPEED_1_POINT_2X":y="1_point_2x";break;case "SPEED_1_POINT_5X":y="1_point_5x";break;case "SPEED_1_POINT_8X":y="1_point_8x";break;case "SPEED_POINT_2X":y="point_2x";break;case "SPEED_POINT_5X":y="point_5x";break;case "SPEED_POINT_8X":y="point_8x";break;case "SPEED_1X":y="1x";break;case "SPEED_2X":y="2x";break;case "TAB_BOOKMARK":y="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":u="yt-sys-icons";y="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":u="yt-sys-icons";y="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":u="yt-sys-icons",y="tic_tac_toe"}y=u+":"+y;WtE.set(R,y);return y};
GUc=function(R){var y;_.f("kevlar_use_wil_icons")?y=!!_.ua().resolve(_.eb).resolveIcon({iconName:R.toString()}):y=!1;return y};
_.O4=function(R,y,u,v){u=u===void 0?{}:u;v=v===void 0?!1:v;u===null&&(u={});var Q=_.ia("kevlar_command_handler_command_banlist");Q=_.V(Q);for(var M=Q.next();!M.done;M=Q.next())if(M=R?R.hasOwnProperty(M.value):void 0,M)return!1;Q=_.e(R.commandMetadata,_.QL);return v&&Q!=null&&Q.url?!1:!y.disableCommandHandlerOverride&&_.lX.instance?(v=_.lX.instance,u.form||(u.form={element:y}),u.form.element||(u.form.element=y),!u.clickedVisualElement&&y.visualElement&&(u.clickedVisualElement=y.visualElement),v.resolveCommand(R,
u),!0):!1};
dhW=function(R,y){R=Zr(R);for(var u=_.V(R.visibilityMonitorKeys||[]),v=u.next();!v.done;v=u.next())y.unobserveByKey(v.value);R.visibilityMonitorKeys=void 0};
$hU=function(R,y){if(_.$I()){if(_.f("kevlar_vimio_use_shared_monitor"))UhG(R,y.data);else if(!UhG(R,y.data))return;var u=y.data,v=kUz(u);if(_.f("enable_client_ve_spec_logging"))dhW(R,y.observer);else{var Q=Zr(R);Q.trackedParams&&Q.trackedParams!==v&&dhW(R,y.observer)}Q=Zr(R);!u||Q.data&&Q.data===u||(Q.data=u);E5v(R,y);Q.trackedParams=v}};
E5v=function(R,y){var u=y.observer;if(!u&&_.f("web_skip_missing_vimio_observer")){var v,Q;_.kT(new _.OL("VisibilityObserver is not defined.",R.tagName,R.trackedParams,(v=y.data)==null?void 0:v.trackingParams,(Q=y.data)==null?void 0:Q.loggingDirectives))}else{var M=y.layer,K=y.visibilityCallback||function(){},h=y.prescanCallback,b=Zr(R);
v=[];y.showOption&&v.push(u.observe(R,function(){y.skipLogging&&y.skipLogging()||_.Hy().reportShown(b,void 0,M);K(!0)},y.showOption));
y.hideOption&&v.push(u.observe(R,function(){_.Hy().reportHidden(b,void 0,M);K(!1)},y.hideOption));
y.prescanOption&&h&&v.push(u.observe(R,function(){h()},y.prescanOption));
b.visibilityMonitorKeys=v}};
UhG=function(R,y){R=Zr(R);if(R.visualElement&&!y)return!0;if(!y)return!1;var u=!1;if(_.f("enable_client_ve_spec_logging")){var v,Q;u=!!((v=y.loggingDirectives)==null?0:(Q=v.clientVeSpec)==null?0:Q.uiType)}v=kUz(y);if(!v&&!u)return!1;_.f("mweb_component_visibility_logging")&&(R.veContainer||(R.veContainer={}),R.veContainer.trackingParams=v);if(R.trackedParams&&R.trackedParams===v)return!1;var M;if(_.f("enable_client_ve_spec_logging")&&((M=R.visualElement)==null?0:M.isClientVe())){var K;M=(K=R.visualElement)==
null?void 0:K.getAsJspb();var h,b,N,T;if(_.jZ(M,2)===((h=y.loggingDirectives)==null?void 0:(b=h.clientVeSpec)==null?void 0:b.uiType)&&_.jZ(M,3,-1)===((N=y.loggingDirectives)==null?void 0:(T=N.clientVeSpec)==null?void 0:T.elementIndex))return!1}if(_.f("enable_client_ve_spec_logging")){var x,B;!R.visualElement&&((x=y.loggingDirectives)==null?0:(B=x.clientVeSpec)==null?0:B.uiType)&&(h=y.loggingDirectives.clientVeSpec,y=h.uiType,K=h.elementIndex,h=h.clientYoutubeData,R.visualElement=_.nk(_.GN(),{veType:y,
elementIndex:K,clientYouTubeData:h}))}return!0};
kUz=function(R){if(R==null?0:R.rendererContext){var y=_.e(R.rendererContext,_.rZ);if(y==null?0:y.loggingDirectives)return y.loggingDirectives.trackingParams}return(R==null?0:R.loggingDirectives)?R.loggingDirectives.trackingParams:R==null?void 0:R.trackingParams};
Zr=function(R){var y;return(y=R.polymerController)!=null?y:R};
Au4=function(R){_.Hy();if(_.A7(Py().JSC$12482_elementShouldLogGesture).bind(Py())(R,4)){qHc(R);var y=Xwv(R);mhP.set(R,y)}};
qHc=function(R){mhP.has(R)&&(mhP.get(R).cancel("untrack hover element"),mhP.delete(R))};
Xwv=function(R){var y,u=[],v=!1,Q=new _.F4(function(M,K){Wy(R,"mouseenter",_.A7(function(){var h,b,N;return _.I(function(T){if(T.nextAddress==1)return y=(0,_.uQ)(),h=DhO(R),u.push(h),b=pwL(R,function(){v=!0;K(Error("Wg"))}),T.yield(h,2);
if(T.nextAddress!=3)return b&&dZ(b),N=tOW(R),u.push(N),T.yield(N,3);M();_.f$(T)})}))});
Q.then(function(){var M=(0,_.uQ)()-y;M=Math.round(M);if(!(500>M||6E5<=M)){var K=R.getScreenLayer?R.getScreenLayer():void 0;K=_.$I(K)||"";var h=cuO(_.Hy(),R);_.Co(K,R.visualElement?R.visualElement:_.U4(h),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:M}})}Au4(R)},function(){ki&&(ki(),ki=null);
v&&(qHc(R),Au4(R))});
return Q};
DhO=function(R){var y;return(new _.F4(function(u,v){ki=function(){v(Error("Xg"))};
y=_.WG.debounce(_.A7(function(){dZ(Q);u()}),1,100);
var Q=_.E4(R,"mousemove",y)})).thenCatch(function(){var u=_.WG.cancelDebouncedJobMap.get(y);
u&&_.WG.cancelJob(u)})};
tOW=function(R){var y;return(new _.F4(function(u,v){ki=function(){v(Error("Yg"))};
y=Wy(R,"mouseleave",_.A7(function(){u()}))})).thenCatch(function(){dZ(y)})};
pwL=function(R,y){return Wy(R,"mouseleave",_.A7(y))};
SHU=function(R){aZO&&_.$i.cancel(aZO);aZO=_.$i.run(function(){_.Ko(R,"yt-visibility-refresh");aZO=0})};
YHU=function(R){R=Number(R);return"rgba("+[R>>16&255,R>>8&255,R&255,(R>>24&255)/255].join()+")"};
sYv=function(R){if(!R)return!1;if(_.e(R,_.LtP))return!0;var y;if(R=(y=_.e(R,_.TP))==null?void 0:y.commands)for(y=_.V(R),R=y.next();!R.done;R=y.next())if(_.e(R.value,_.LtP))return!0;return!1};
zaz=function(R){var y=!0;y=y===void 0?!0:y;if(!R.useSignals&&!R.experimentalPropertiesChanged||_.f("experimental_templating_behavior_nopatch_killswitch")){var u=R._propertiesChanged;R._propertiesChanged=function(v,Q,M){y?R.debounceRender():R.doRender();u&&u.call(R,v,Q,M)}}};
g5U=function(R,y){if(R.useSignals||R.experimentalPropertiesChanged)if(_.f("experimental_templating_behavior_nopatch_killswitch"))R.experimentalPropertiesChanged=function(){};
else return;var u=new Set,v=[R].concat(_.P$(R.behaviors));v=_.V(v);for(var Q=v.next();!Q.done;Q=v.next()){Q=Q.value;for(var M in Q.properties)u.has(M)||(R._addPropertyEffect(M,"function",y),u.add(M))}};
Cev=function(){var R=Polymer.Element,y=R._prepareTemplate;R._prepareTemplate=function(){y.call(this);var u=this.prototype;if(u.experimentalTemplatingInUse&&u.experimentalTemplatingInUse()&&u.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.dI(Error("Zg"));else{u=this.template.content.childNodes;for(var v=u.length-1;v>=0;v--){var Q=u[v];Q.nodeName!=="STYLE"&&Q.nodeName!=="LINK"&&Q.nodeName!=="SCRIPT"&&Q.nodeName!=="#comment"&&Q.remove()}}}};
R1W=function(R){var y=!0;y=y===void 0?!0:y;Cev();var u=R.ready;R.ready=function(){this._template=null;u.call(this)};
g5U(R,y?R.debounceRender:R.doRender)};
ufT=function(R,y,u){if(u===null||u===void 0)return u;var v=vkP(R.tagName.toLowerCase(),y,function(){throw Error("Ob");});
if(v===null)return u;v=yf8[v];var Q;if((Q=v.isUnwrappable)==null?0:Q.call(v,u)){if(v.unwrap)return v.unwrap(u);throw Error("bh");}return v.filterString?v.filterString(R.tagName,y,String(u)):u};
vPG=function(R,y,u){var v=y[y.length-1]!=="$",Q=ufT(R,y,u);if(v)if(typeof Q==="function"&&y.startsWith("reactiveon")&&y===y.toLowerCase()){var M=zl;hLW(R,y.slice(8),function(K){dh(M,function(){Q(K)})})}else R[y]=Q;
else u=Q==null?null:String(Q),Ep(R,y.slice(0,-1),u)};
Xg=function(R){Q$S.length===0&&requestAnimationFrame(function(){setTimeout(function(){var y=Q$S.slice();Q$S.length=0;y=_.V(y);for(var u=y.next();!u.done;u=y.next()){u=u.value;try{u()}catch(v){_.qk(v)}}})});
Q$S.push(R)};
j$O=function(R){if(R){var y=R.component;if(y){var u;y==null||(u=y.events)==null||u.publish("DISCONNECTED");var v;y==null||(v=y.onDisconnected)==null||v.call(y)}var Q,M;(Q=R.__spec)==null||(M=Q.didUnmount)==null||M.call(Q);for(y=0;y<R.childNodes.length;y++)j$O(R.childNodes[y])}};
Ad=function(R,y,u){var v=y&&y.key,Q=Ya;Q[0]=R;Q[1]=v;Q[2]=void 0;for(var M in y)y.hasOwnProperty(M)&&(R=y[M],v=Ly,v.push(M),v.push(R));y=Ya;a:{if(M=Ya[2])for(R=0;R<M.length;R+=2)if(M[R]==="nonce"){M=M[R+1];break a}M=""}M=ZNv(y[0],y[1],M);R=q8(M);v=y[2];if(!R.staticsApplied&&(R.staticsApplied=!0,v&&v.length))if((Q=R._attrsArr)&&Q.length){for(Q=0;Q<v.length;Q+=2)mN[v[Q]]=Q+1;Q=R._attrsArr||(R._attrsArr=I7S(0));for(var K=0,h=0;h<Q.length;h+=2){var b=Q[h],N=Q[h+1],T=mN[b];T?v[T]===N&&delete mN[b]:(Q[K]=
b,Q[K+1]=N,K+=2)}ka(Q,K);for(var x in mN)TnU(M,x,v[mN[x]],Rx),delete mN[x]}else for(x=0;x<v.length;x+=2)TnU(M,v[x],v[x+1],Rx);dS8(M,R,Rx);ka(y,0);u&&u(Xl);HNW()};
MWP=function(R){var y=R.toString().toLowerCase();return function(u,v){Ad(y,u,v)}};
_.Dr=function(R,y,u){u===void 0?delete R[y.name]:R[y.name]=u};
_.pk=function(R){var y={androidIncludeFontPadding:!1},u=0,v=[],Q=[],M=[];if(R.simpleText)return y.content=R.simpleText,y;if(R.runs===void 0)return y.content="",y;R=_.V(R.runs);for(var K=R.next();!K.done;K=R.next()){K=K.value;var h=K.text,b=void 0,N=(b=h)==null?void 0:b.length;if(h&&N){v.push(h);if(K.bold||K.italics||K.strikethrough||K.underline||K.textColor!=null&&K.textColor!==0||K.deemphasize){h=Q;b=h.push;var T={startIndex:u,length:N};K.bold&&(T.weightLabel="FONT_WEIGHT_MEDIUM");K.italics&&(T.italic=
!0);K.strikethrough&&(T.strikethrough="LINE_STYLE_SINGLE");K.underline&&(T.underline="LINE_STYLE_SINGLE");K.textColor!=null&&K.textColor!==0?document.documentElement.hasAttribute("dark")?T.fontColor=K.darkModeTextColor||K.textColor:T.fontColor=K.textColor:K.deemphasize&&(document.documentElement.hasAttribute("dark")?T.fontColor=parseInt("ff"+JfT("#aaa").substring(1),16):T.fontColor=parseInt("ff"+JfT("#606060").substring(1),16));b.call(h,T)}K.navigationEndpoint&&(h=M,b=h.push,T={startIndex:u,length:N,
onTap:{innertubeCommand:K.navigationEndpoint}},K.loggingDirectives&&_.Dr(T,VWO,K.loggingDirectives),b.call(h,T));u+=N}}y.content=v.join("");y.styleRuns=Q.length?Q:void 0;y.commandRuns=M.length?M:void 0;return y};
KSc=function(R){if(R==null||!R.runs)return!0;R=_.V(R.runs);for(var y=R.next();!y.done;y=R.next())if(y=y.value,y.bracket||y.errorUnderline||y.deemphasize||_.e(y,td)||_.e(y,irv))return!1;return!0};
IuL=function(R,y){return function(u){var v=y.unit;if(v!==u)throw Error("eh`"+R+"`"+v+"`"+u);return y}};
cy=function(R){if(!((R==null?0:R.value)&&(R==null?0:R.unit)))return"";switch(R.unit){case "DIMENSION_UNIT_FRACTION":var y="%";break;default:y="px"}R=R.value;y==="%"&&(R*=100);return""+R+y};
h1O=function(R){try{return R()}catch(y){_.kT(y)}};
_.Sb=function(R){var y=_.e(R,_.ac);if(y)return y;if((y=_.e(R,brT))&&y.commands)return FSS(y.commands);if((y=_.e(R,wqO))&&y.commands)return FSS(y.commands);if((R=_.e(R,NlU))&&R.identifier&&R.command&&(Tlz||(Tlz=[]),!Tlz.includes(R.identifier)))return Tlz.push(R.identifier),_.e(R.command,_.ac)};
FSS=function(R){if(R.length!==0){var y=[];R=_.V(R);for(var u=R.next();!u.done;u=R.next())(u=_.Sb(u.value))&&y.push(u);return{commandExecutorCommand:{commands:y}}}};
_.Lk=function(R){var y=R.defaultTarget,u=R.elementConfig,v=R.elementsCommand,Q=R.skipOnClick,M=R.forceNewState,K=R.additionalCommandArgs,h=R.innertubeCommand||_.Sb(v);if(h){R={};var b=oPG(h);v=b.navigatingCommand;b=b.href;v&&b?(R.href$=b,xf4(R,v,b,y),_.f("web_atagconfig_pointerdown")&&Blc(R,v),M&&(R["force-new-state$"]=!0)):(R.role$="button",R.href$="javascript:void(0);");_.e(h,fuS)&&(R["aria-haspopup$"]=!0);Q||(R.onclick=function(N){var T={};if(e1L(N)){if(K==null?0:K.clickedVisualElement)T={clickedVisualElement:K.clickedVisualElement};
T=Object.assign({},{form:{element:N.target,event:N,createScreenConfig:T}},K);N.preventDefault();_.Yi(h,T)}});
return Object.assign({},u,R)}};
luc=function(R){if(R.length){if(R.length===1)return R[0];var y={};_.Dr(y,_.TP,{commands:R});return y}};
s4=function(R){return R&&R.href$!=="javascript:void(0);"};
oPG=function(R){var y,u=((y=_.e(R,_.TP))==null?void 0:y.commands)||[R];R=_.V(u);for(y=R.next();!y.done;y=R.next()){y=y.value;var v=void 0,Q=void 0;u=(Q=_.e((v=y)==null?void 0:v.commandMetadata,_.QL))==null?void 0:Q.url;_.f("web_remove_web_navigation_endpoint_data")||(v=void 0,u=u||((v=_.e(y,OrO))==null?void 0:v.url));if(u&&u!=="/service_ajax"){if(v=Uo(u,Zr4))return R=_.Pg(v),{navigatingCommand:y,href:R};_.kT(new _.OL("AttributedString URL could not be sanitized",u))}}return{}};
e1L=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)};
xf4=function(R,y,u,v){u=!CG(u);var Q,M,K;if((Q=_.e(y,_.HV))!=null&&Q.nofollow||(M=_.e(y,_.zM))!=null&&M.nofollow||(K=_.e(y,_.tc))!=null&&K.nofollow||u)R.rel$="nofollow";var h;y=((h=_.e(y,_.tc))==null?void 0:h.target)==="TARGET_NEW_WINDOW"?"_blank":v===void 0?"":v;R.target$=y};
Blc=function(R,y){y.clickTrackingParams&&(R.params={itct:y.clickTrackingParams});R.onpointerdown=function(u){HrG(u)};
R._data=y};
nPv=function(R){(R.loggingUrls||[]).forEach(function(y){p9(y.baseUrl,y.attributionSrcMode)})};
Gsv=function(R){R.currentTarget._data&&nPv(R.currentTarget._data)};
HrG=function(R){var y=R.currentTarget;R=h1O(function(){return y.href});
var u=y.params;R&&_.uh(R,u||{},8,!0)};
rfO=function(R,y){if(y=_.e(y,_.tc))(y==null?void 0:y.target)==="TARGET_NEW_WINDOW"&&(R.target="_blank"),y.nofollow&&(R.rel="nofollow")};
P64=function(R){R=_.e(R==null?void 0:R.commandMetadata,_.QL);return(R==null?0:R.url)?R.url:null};
_.zN=function(R,y){(R=_.Sb(R))&&_.Yi(R,y)};
_.Yi=function(R,y){OoL(function(u){y?u.resolveCommand(R,y):u.resolveCommand(R)})};
ksU=function(R,y){var u=["yt-core-attributed-string__link"];y!=null&&y.noLinkColor||((y==null?0:y.isOverlay)?u.push("yt-core-attributed-string__link--overlay-call-to-action-color"):u.push("yt-core-attributed-string__link--call-to-action-color"),(y==null?0:y.linkInheritColor)&&u.push("yt-core-attributed-string--link-inherit-color"));u={className:u.join(" "),tabindex$:"0"};var v=R.onTap||R.onLongPress;if(!v)return u;var Q=WSL(R);Q&&(u["aria-label$"]=Q);y=_.Lk({elementsCommand:v,elementConfig:u,skipOnClick:!(y==
null||!y.skipOnClick),forceNewState:!0});R.onLongPress&&(v=new dfS(function(){var M=_.Sb(R.onLongPress);M&&_.ua().resolve(_.jX).resolveCommand(M)}),y&&UfW(v,y));
return y||u};
WSL=function(R){var y,u;return(y=R.onTapOptions)==null?void 0:(u=y.accessibilityInfo)==null?void 0:u.accessibilityLabel};
EPL=function(R){var y=R;R<=16777215&&(y+=parseInt("ff000000",16));return _.Sq(y)};
$fz=function(R){var y=R.isDarkTheme;var u=R.extension;R=R.runColor;var v=void 0;if(u=u==null?void 0:u.colorMap){y=y?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";u=_.V(u);for(var Q=u.next();!Q.done;Q=u.next())if(Q=Q.value,y===Q.key){v=Q.value;break}}v==null&&R&&(v=R);if(v)return EPL(v)};
gZ=function(R){var y=R.config;var u=R.image;var v=R.imageConfig;var Q=R.imageWrapperConfig;var M=R.run;var K=R.tag;var h=R.textLength;var b=R.startIndex===void 0?0:R.startIndex;R=R.length;b===void 0&&(b=0);M={run:M,startIndex:b,endIndex:R!==void 0?b+R:h,tag:K};u&&(M.image=u);v&&(M.imageConfig=v);Q&&(M.imageWrapperConfig=Q);y&&(M.config=y);return M};
XqS=function(R,y){var u=[];u.push("yt-core-attributed-string");(y==null?0:y.className)&&u.push(y==null?void 0:y.className);(y==null?0:y.ellipsisTruncate)?u.push("yt-core-attributed-string--ellipsis-truncate"):(y==null?0:y.noWrap)?u.push("yt-core-attributed-string--white-space-no-wrap"):(y==null?0:y.noPreWrap)||u.push("yt-core-attributed-string--white-space-pre-wrap");(y==null?0:y.linkInheritColor)&&u.push("yt-core-attributed-string--link-inherit-color");R.alignment&&u.push(qVW(R.alignment));R.lineBreakMode&&
u.push("yt-core-attributed-string--word-wrapping");return u.join(" ")};
mf4=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}};
Af4=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"}};
qVW=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"}};
yX=function(R,y,u){var v=y;R.content&&u&&(u=R.content.indexOf("\n"),u!==-1&&(v=Math.min(y,u)));if(!R.content||R.content.length<=v)y=R;else if(R.attachmentRuns||R.commandRuns||R.decorationRuns||R.styleRuns||R.paragraphStyleRuns){y=Ck(R.content,v);u=v;var Q=R.attachmentRuns;if(Q){var M=[];Q=_.V(Q);for(var K=Q.next();!K.done;K=Q.next())K=Object.assign({},K.value),K.startIndex===void 0||K.startIndex>=u||(K.length||(K.length=0),K.length+K.startIndex>u&&(K.length=u-K.startIndex),M.push(K));u=M}else u=void 0;
M=Df4(v,R.commandRuns);Q=v;var h=R.decorationRuns;if(h){K=[];h=_.V(h);for(var b=h.next();!b.done;b=h.next()){b=b.value;var N=_.e(b.textDecorator,RC);if(N&&N.startIndex!==void 0&&!(N.startIndex>=Q)){b=Object.assign({},b,{textDecorator:{highlightTextDecorator:Object.assign({},N)}});N=_.e(b.textDecorator,RC);if(!N.length||N.length+N.startIndex>Q)N.length=Q-N.startIndex;K.push(b)}}Q=K}else Q=void 0;K=Df4(v,R.styleRuns);if(h=R.paragraphStyleRuns)for(R=[],h=_.V(h),b=h.next();!b.done;b=h.next()){var T=b.value;
b=Object.assign({},T);if(!(b.startIndex===void 0||b.startIndex>=v)){if(!b.length||b.length+b.startIndex>v)b.length=v-b.startIndex;N=[];var x=void 0,B=void 0;if((x=T)==null?0:(B=x.listGroup)==null?0:B.listItems)for(T=_.V(T.listGroup.listItems),x=T.next();!x.done;x=T.next())if(x=Object.assign({},x.value),!(x.startIndex===void 0||x.startIndex>=v)){if(!x.length||x.length+x.startIndex>v)x.length=v-x.startIndex;N.push(x)}N.length>0&&(b.listGroup||(b.listGroup={}),b.listGroup=Object.assign({},b.listGroup,
{listItems:N}));R.push(b)}}else R=void 0;y={content:y,attachmentRuns:u,commandRuns:M,decorationRuns:Q,styleRuns:K,paragraphStyleRuns:R}}else y=Object.assign({},R,{content:Ck(R.content,v)});return y};
Df4=function(R,y){if(y){var u=[];y=_.V(y);for(var v=y.next();!v.done;v=y.next())if(v=Object.assign({},v.value),!(v.startIndex===void 0||v.startIndex>=R)){if(!v.length||v.length+v.startIndex>R)v.length=R-v.startIndex;u.push(v)}return u}};
Ck=function(R,y){var u=y,v;if(v=u>0)v=R.charCodeAt(u-1),v=v>=55296&&v<=56319;v&&(u=R.charCodeAt(u),v=u>=56320&&u<=57343);v&&--y;return R.substring(0,y)};
auv=function(R,y,u){u=u===void 0?pq8:u;if(R){var v=_.ua().resolve(uN);v||_.f("mweb_no_observer_killswitch")?$hU(R,{data:y,observer:v,visibilityCallback:u,hideOption:tWP,showOption:cfL,layer:R.layer}):_.kT(new _.OL("Warning: monitorVisibility called with null observer",R.tagName,y==null?void 0:y.loggingDirectives,y==null?void 0:y.trackingParams))}else _.kT(new _.OL("Warning: monitorVisibility called with null element",y==null?void 0:y.loggingDirectives,y==null?void 0:y.trackingParams,y==null?void 0:
y.rendererContext))};
C6v=function(R,y){var u=[],v=R.content.length,Q,M=(Q=_.ua().resolve(_.yN(_.u0)))==null?void 0:Q();if(R.paragraphStyleRuns){Q=_.V(R.paragraphStyleRuns);for(var K=Q.next();!K.done;K=Q.next()){var h=u.push,b=h.apply;var N=void 0;K=K.value;if((N=K.listGroup)!=null&&N.listItems){N=[];b:switch(K.listGroup.listType){case "LIST_TYPE_BULLET":var T="ul";break b;default:T="span"}N.push(gZ({run:K,textLength:v,tag:T,config:{className:"yt-core-attributed-string__list-group"},startIndex:K.startIndex,length:K.length}));
T=_.V(K.listGroup.listItems);for(var x=T.next();!x.done;x=T.next()){x=x.value;b:switch(K.listGroup.listType){case "LIST_TYPE_BULLET":var B="li";break b;default:B="span"}N.push(gZ({run:K,textLength:v,tag:B,startIndex:x.startIndex,length:x.length}))}K=N}else K=[];b.call(h,u,_.P$(K))}}if(R.styleRuns&&(y==null||!y.noStyleRuns))for(Q=_.V(R.styleRuns),h=Q.next();!h.done;h=Q.next()){h=h.value;b=$fz({extension:_.e(h.styleRunExtensions,SVc),isDarkTheme:M===void 0?!1:M,runColor:h.fontColor});N=[];b&&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",Af4(h.underline)):h.underline?N.push("yt-core-attributed-string--underlined",Af4(h.underline)):h.strikethrough&&N.push("yt-core-attributed-string--strikethrough",Af4(h.strikethrough));if(h.baselineOffset){a:switch(h.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":K="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":K=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:K="yt-core-attributed-string--baseline-offset-unknown"}N.push(K)}K=N.join(" ");N=h;T={};if(N.weight||N.weightLabel)T.fontWeight=mf4(N).toString();b&&(T.color=b);u.push(gZ({run:h,textLength:v,tag:"span",config:{className:K,style:T},startIndex:h.startIndex,length:h.length}))}if(R.decorationRuns)for(Q=_.V(R.decorationRuns),h=Q.next();!h.done;h=Q.next())h=h.value,b={},h.textDecorator&&(T=h.textDecorator,K=M===void 0?!1:M,x=[],N=
_.e(T,RC),T=_.e(T,YV4),N?(T=x,x=T.concat,B=[],(K=$fz({extension:_.e(N.highlightTextDecoratorExtensions,LSc),isDarkTheme:K,runColor:N.backgroundColor}))&&B.push("background-color: "+K+";"),N.backgroundCornerRadius!==void 0&&B.push("border-radius: "+N.backgroundCornerRadius+"px;"),N.leftPadding!==void 0&&B.push("padding-left: "+N.leftPadding+"px;"),N.rightPadding!==void 0&&B.push("padding-right: "+N.rightPadding+"px;"),N.topPadding!==void 0&&B.push("padding-top: "+N.topPadding+"px;"),N.bottomPadding!==
void 0&&B.push("padding-bottom: "+N.bottomPadding+"px;"),x=x.call(T,B)):T&&(N=x,x=N.concat,K=K?"#2ba640":"#107516",K=T.color?EPL(T.color):K,K=["padding: 2px;","border-top: solid "+K+" 2px;","border-bottom: solid "+K+" 2px;","background: linear-gradient(135deg, "+K+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+K+" 3px, rgba(0, 0, 0, 0) 3px);"],x=x.call(N,K)),K=x.join(" "),b.style$=K,K=h.textDecorator,N=[],T=_.e(K,YV4),_.e(K,RC)?N.push("yt-core-attributed-string--highlight-text-decorator"):
T&&N.push("yt-core-attributed-string--bracket-text-decorator"),K=N.join(" "),b.className=K,b.dir="auto"),K=_.e(h.textDecorator,RC),N=_.e(h.textDecorator,YV4),T=_.e(h.textDecorator,RC),x=_.e(h.textDecorator,YV4),u.push(gZ({run:h,textLength:v,tag:"span",config:b,startIndex:(K==null?void 0:K.startIndex)||(N==null?void 0:N.startIndex)||0,length:(T==null?void 0:T.length)||(x==null?void 0:x.length)||0}));if(R.commandRuns&&(y==null||!y.noEndpoints))for(M=_.V(R.commandRuns),Q=M.next();!Q.done;Q=M.next())Q=
Q.value,h=ksU(Q,y),u.push(gZ({run:Q,textLength:v,tag:"a",config:h,startIndex:Q.startIndex,length:Q.length}));if(R.attachmentRuns)for(R=_.V(R.attachmentRuns),M=R.next();!M.done;M=R.next()){M=M.value;b=h=void 0;Q={className:"yt-core-attributed-string--inline-block-mod"};if((b=M.element)==null?0:b.properties){b=(h=M.element)==null?void 0:h.properties;h=[];b=_.e(b,s$S);if(b==null?0:b.margin)b=b.margin,b.left&&h.push("margin-left: "+cy(b.left)+";"),b.right&&h.push("margin-right: "+cy(b.right)+";"),b.top&&
h.push("margin-top: "+cy(b.top)+";"),b.bottom&&h.push("margin-bottom: "+cy(b.bottom)+";");h=h.length!==0?h.join(" "):void 0;Q.style$=h}K=void 0;h={alt:"",preserveHeight:!0,preserveWidth:!0};b=["yt-core-attributed-string__image-element"];if(M.alignment){a:switch(M.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"}b.push(N)}if((K=M.element)==null?0:K.properties)K=[],N=_.e(M.element.properties,s$S),(N==null?0:N.height)&&K.push("height: "+cy(N.height)+";"),(N==null?0:N.width)&&K.push("width: "+cy(N.width)+";"),K=K.length!==0?K.join(" "):void 0,h.style$=K,N=void 0,K=((N=_.e(M.element.properties,z18))==null?void 0:N.label)||"",h.alt=K;h.className=b.join(" ");b=void 0;T=N=void 0;K=((T=M.element)==null?0:T.type)?(N=_.e(M.element.type,gPO))==null?
void 0:N.image:void 0;u.push(gZ({run:M,textLength:v,tag:"img",image:K,imageConfig:h,imageWrapperConfig:Q,startIndex:M.startIndex,length:(b=M.length)!=null?b:0}))}if(y==null?0:y.headerRuns)for(y=_.V(y.headerRuns),R=y.next();!R.done;R=y.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":M=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":M="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":M="yt-core-attributed-string--heading-3";break a}M=void 0}u.push(gZ({run:R,textLength:v,tag:"span",config:M?{className:M}:void 0,startIndex:R.startIndex,length:R.length}))}return u};
_.v_=function(R){return(R==null?void 0:R.content)!==void 0};
RdT=function(R){return _.v_(R)?R:_.pk(R)};
ymU=function(R){return R.image!==void 0&&R.imageConfig!==void 0};
u_8=function(R,y){if(y==null?0:y.userInput)for(R=_.V(R),y=R.next();!y.done;y=R.next())if(y=y.value,y.tag!=="a"&&y.tag!=="li"){var u=void 0;(u=y).config||(u.config={});y.config.dir=y.tag==="ul"?_.ua().resolve(_.QX):"auto"}};
veU=function(R){return function(y){var u=R.run;(u.onTap!==void 0||u.onLongPress!==void 0)&&_.e(u,VWO)&&auv(y,{loggingDirectives:_.e(u,VWO)})}};
Q7S=function(R){return function(y){for(var u in R)(Rx[u]||Rx[$a["default"]])(y,u,R[u])}};
VMO=function(R,y){j7G(y);var u={data:null,start:0,end:R.length,parts:[]};y=_.V(y);for(var v=y.next();!v.done;v=y.next())v=v.value,MME(u,v.startIndex,v.endIndex,v);JmO(R,u);return u};
MME=function(R,y,u,v){for(var Q=_.V(R.parts),M=Q.next();!M.done;M=Q.next()){M=M.value;if(typeof M==="string")throw Error("gh");if(M.start<=y&&u<=M.end){MME(M,y,u,v);return}}R.parts.push({data:v,parts:[],start:y,end:u})};
JmO=function(R,y){for(var u=y.parts.length;u>=0;u--){var v=y.parts[u],Q=y.parts[u-1],M=u===y.parts.length?y.end:v.start;Q=u===0?y.start:Q.end;M!==Q&&y.parts.splice(u,0,R.slice(Q,M));v&&JmO(R,v)}};
j7G=function(R){R.sort(function(y,u){if(y.startIndex<u.startIndex)return-1;if(u.startIndex<y.startIndex)return 1;y=y.endIndex-y.startIndex;u=u.endIndex-u.startIndex;return y>u?-1:u>y?1:0})};
_.i4v=function(R){var y=R.thumbnails;if(y){R={sources:[]};y=_.V(y);for(var u=y.next();!u.done;u=y.next()){u=u.value;var v={};v.url=u.url;v.width=u.width;v.height=u.height;R.sources.push(v)}return R}};
KCc=function(R,y,u,v){if(!y)return R.length>=1?R[R.length-1]:null;if(v)for(var Q=_.V(R),M=Q.next();!M.done;M=Q.next()){M=M.value;var K=void 0,h=(K=M.url)==null?void 0:K.indexOf(v);if(h!==void 0&&h>=0)return M}v=_.V(R);for(Q=v.next();!Q.done;Q=v.next())if(Q=Q.value,Q.width&&Q.height&&(u&&Q.width>=y||!u&&Q.height>=y))return Q;for(y=R.length-1;y>=0;y--)if(u&&R[y].width||!u&&R[y].height)return R[y];return R[0]};
_.Ih4=function(R){var y;return(R=(y=R.sources)==null?void 0:y[0])?R.width/R.height:0};
_.hdc=function(R){if(R.sources){R=_.V(R.sources);for(var y=R.next();!y.done;y=R.next()){y=y.value;var u=void 0;if((u=y.clientResource)==null?0:u.imageName)return y}}};
b48=function(R){var y;if((y=R.clientResource)!=null&&y.imageColor)return _.Sq(R.clientResource.imageColor)};
_.wpc=function(R,y,u,v,Q,M,K){if(!y||y.length===0||y[0].clientResource)return null;if(u&&y[0].url)return y[0].url;v===void 0&&(v=!0);if(v){var h;R=FCU*(Q||(R==null?void 0:(h=R.getBoundingClientRect())==null?void 0:h.width)||0)}else{var b;R=FCU*(M||(R==null?void 0:(b=R.getBoundingClientRect())==null?void 0:b.height)||0)}y=KCc(y,R,v,K);return(y==null?0:y.url)?y.url:(y==null?0:y.imageData)?y.imageData:null};
Nd4=function(R,y,u){u=u?[u]:[];R.opacity&&u.push("opacity: "+R.opacity+";");y&&R.placeholderColor?(R=_.Sq(R.placeholderColor),u.push("background-color: "+R+";")):u.push("background-color: transparent;");return u.join(" ")};
TdG=function(R,y,u,v,Q){var M=["yt-core-image"];y&&M.push(y);u||M.push("yt-core-image--fill-parent-height");v||M.push("yt-core-image--fill-parent-width");switch(R.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":M.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":M.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":M.push("yt-core-image--content-mode-center");break;default:M.push("yt-core-image--content-mode-scale-to-fill")}R.flipForRtlLayout&&
M.push("yt-core-image--flip-rtl");switch(Q){case "TOP_START":var K;M.push(((K=document.body)==null?void 0:K.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return M.join(" ")};
x0L=function(R){var y;if(R==null?0:(y=R.clientResource)==null?0:y.imageName){var u;R=(u=R.clientResource)==null?void 0:u.imageName;a:{switch(R){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":u="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":u="yt-logos-ext:yt-logo-updated";break a}u=void 0}return u||oe8.get(R)||R}};
ed4=function(R){return _.f("mweb_wiz_skip_render")?Bd8(R):fhW(R)};
Bd8=function(R){return function(y){var u=ZNv("wink-root");Sf();HNW();aOc(u,_.F(R,y))}};
fhW=function(R){var y=y===void 0?!1:y;return function(u){if(!y||!_.f("mweb_skip_keto_to_c3_if_no_data")||u.data!==void 0){var v=QV(!1);try{var Q=u.children;_.f("mweb_render_outside_patch_killswitch")||Xl?Q?Ci(_.F(R,u,Q)):Ci(_.F(R,u)):_.kT(new _.OL("ketoToC3 called outside of a patch",{tagName:R.TAG_NAME}))}finally{QV(v)}}}};
lhE=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
Z4O=function(R,y){R.onViewportEntered=y;O4L.observe(R)};
H48=function(){var R={rootMargin:"10%",threshold:.01};_.f("mweb_enable_set_io_root_to_null_safari")?R.root=null:_.f("mweb_enable_set_io_root_to_body_safari")&&(R.root=document.body);return new IntersectionObserver(function(y,u){y.filter(function(v){return v.intersectionRect.height>0}).forEach(function(v){v=v.target;
if(!_.f("mweb_enable_only_update_image_when_connected")||v.isConnected!==!1){var Q;(Q=v.onViewportEntered)==null||Q.call(v);u.unobserve(v)}})},R)};
ne4=function(R,y,u,v,Q){function M(){if(v){var h=v.loadedClass,b=v.notifyOnUnloaded;h&&_.jp(R,h);b&&R.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function K(){var h=u(y,R);h&&R.getAttribute("src")!==h&&(_.f("mweb_enable_only_update_image_when_connected")&&R.isConnected===!1||h===R.src||(R.src=h),M())}
Q=Q===void 0?!0:Q;R.removeAttribute("src");M();y&&(Q?Z4O(R,K):K())};
Gjc=function(R,y,u){if(!y)return!1;y=u(y,R);u=R.getAttribute("src");return y&&y===u&&R.complete};
rmT=function(R,y){for(var u in y)u==="className"?R.className=y[u]:(Rx[u]||Rx[$a.default])(R,u,y[u])};
PfS=function(R,y,u,v){ed4(_.MR)({contentMode:y.contentMode,loadedClass:y.loadedClass,isPreloaded:y.isPreloaded,notifyOnLoaded:y.notifyOnLoaded,notifyOnUnloaded:y.notifyOnUnloaded,preferredThumbnail:y.preferredThumbnail,preserveHeight:y.preserveHeight,preserveWidth:y.preserveWidth,objectPosition:y.objectPosition,targetWidth:y.targetWidth,targetHeight:y.targetHeight,shouldShowPlaceholder:y.shouldShowPlaceholder,useWidth:y.useWidth,isToggled:y.isToggled,alt:y.alt,className:y.className,onerror:y.onerror,
onload:y.onload,style$:y.style$,color:y.color,width:y.width,height:y.height,"aria-hidden$":y["aria-hidden$"],draggable:y.draggable,"data-disabled$":y["data-disabled$"],data:R,callback:u,renderLazy:v===void 0?!0:v,hideOn404:!1})};
d0T=function(R,y,u){u=u===void 0?!1:u;var v=R.sources!==void 0?R:_.i4v(R);if(v){var Q=y.onload;y.onload=function(b){var N=b.target;u&&N.naturalWidth===120||_.J6(N,"yt-core-image--loaded");y.notifyOnLoaded&&N.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));Q==null||Q(b)};
y.targetWidth&&y.preserveWidth&&(y.width=y.targetWidth);y.targetHeight&&y.preserveHeight&&(y.height=y.targetHeight);var M=_.hdc(v),K=M&&x0L(M);if(K)return(R=b48(M))&&(y.color=R),{type:"icon",iconName:K,config:Object.assign({},y,y.alt?{}:{"aria-hidden$":"true"},{"aria-label$":y.alt,role:"img"})};if(R.sources===void 0){y.alt=R.accessibility&&R.accessibility.accessibilityData&&R.accessibility.accessibilityData.label||y.alt;y.style$=Nd4(R,y.shouldShowPlaceholder,y.style$);var h;y.isPreloaded=!((h=_.e(R,
WCc))==null||!h.isPreloaded)}y.contentMode&&!v.contentMode&&(v.contentMode=y.contentMode);y.className=TdG(v,y.className,y.preserveHeight,y.preserveWidth,y.objectPosition);y.loadedClass="yt-core-image--loaded";return{type:"image",image:v,config:y}}};
_.VX=function(){var R=_.qy.apply(0,arguments);return _.zp(U0W,function(y){var u=R.map(function(v){return v==null?void 0:v(y)});
return function(){return void u.forEach(function(v){return void(v==null?void 0:v())})}})};
i0=function(R,y){var u=y==null?void 0:y.initial;return _.N8(function(){_.PT(!0);return u=R(u)},{equals:y==null?void 0:y.isEqual},"rSlKsc")};
kjT=function(R,y){if(R===y)return!0;if(R===void 0||y===void 0)return!1;var u,v,Q,M,K,h,b,N;return R.content===y.content&&((u=R.styleRuns)==null?void 0:u.length)===((v=y.styleRuns)==null?void 0:v.length)&&((Q=R.commandRuns)==null?void 0:Q.length)===((M=y.commandRuns)==null?void 0:M.length)&&((K=R.attachmentRuns)==null?void 0:K.length)===((h=y.attachmentRuns)==null?void 0:h.length)&&((b=R.decorationRuns)==null?void 0:b.length)===((N=y.decorationRuns)==null?void 0:N.length)};
q5c=function(R,y){if(R){var u=RdT(R);if(u!=null&&u.content)if(_.f("attr_string_reactive"))ed4(Eez)({text:R,config:y});else{var v=!(y==null||!y.ariaLabel)||!(u.commandRuns&&u.commandRuns.length!==0||u.paragraphStyleRuns&&u.paragraphStyleRuns.length!==0);R=v?y==null?void 0:y.ariaLabel:null;v=v?"text":null;Ad("span",{className:XqS(u,y),dir$:(y==null?0:y.userInput)?"auto":void 0,"aria-label$":R,role$:v},function(){if(u.styleRuns||u.commandRuns||u.attachmentRuns||u.decorationRuns){var Q=C6v(u,y);u_8(Q,
y);Q=VMO(u.content,Q);Q=_.V(Q.parts);for(var M=Q.next();!M.done;M=Q.next())$0T(M.value)}else Cy(u.content)})}}};
$0T=function(R){typeof R==="string"?Cy(R):ymU(R.data)?Ad("span",R.data.imageWrapperConfig,function(){PfS(R.data.image,R.data.imageConfig)}):Ad(R.data.tag,R.data.config,function(y){veU(R.data)(y);
y=_.V(R.parts);for(var u=y.next();!u.done;u=y.next())$0T(u.value)})};
m0T=function(R){return R.parts.map(XpU)};
XpU=function(R){if(typeof R==="string")return R;R=ymU(R.data)?_.F("span",{el:_.VX(Q7S(R.data.imageWrapperConfig))},_.F(_.MR,Object.assign({},{data:R.data.image},R.data.imageConfig))):_.F(R.data.tag,{el:_.VX(veU(R.data),Q7S(R.data.config))},R.parts.map(XpU));return Ns(R)};
Am8=function(R,y){return R===y?!0:R===void 0||y===void 0?!1:R.noStyleRuns===y.noStyleRuns&&R.noLinkColor===y.noLinkColor&&R.noEndpoints===y.noEndpoints&&R.headerRuns===y.headerRuns&&R.isOverlay===y.isOverlay&&R.linkInheritColor===y.linkInheritColor&&R.userInput===y.userInput};
D0E=function(R){return function(){var y,u,v,Q,M,K,h,b,N,T,x,B,l,Z;return{ariaLabel:(y=R.ariaLabel)==null?void 0:y.call(R),className:(u=R.className)==null?void 0:u.call(R),ellipsisTruncate:(v=R.ellipsisTruncate)==null?void 0:v.call(R),isOverlay:(Q=R.isOverlay)==null?void 0:Q.call(R),linkInheritColor:(M=R.linkInheritColor)==null?void 0:M.call(R),noEndpoints:(K=R.noEndpoints)==null?void 0:K.call(R),noStyleRuns:(h=R.noStyleRuns)==null?void 0:h.call(R),noLinkColor:(b=R.noLinkColor)==null?void 0:b.call(R),
noPreWrap:(N=R.noPreWrap)==null?void 0:N.call(R),noWrap:(T=R.noWrap)==null?void 0:T.call(R),skipOnClick:(x=R.skipOnClick)==null?void 0:x.call(R),stopPropagation:(B=R.stopPropagation)==null?void 0:B.call(R),userInput:(l=R.userInput)==null?void 0:l.call(R),headerRuns:(Z=R.headerRuns)==null?void 0:Z.call(R)}}};
pp4=function(R){return R.value===""||R.value==="true"?!0:R.value==="false"?!1:isNaN(Number(R.value))?R.value:Number(R.value)};
Kh=function(R,y){R=new tMU(R,y);_.dI(R);throw R;};
cmT=function(R,y,u){var v=CIW(R);R._numRenders=0;try{var Q=_.htz(function(){return _.F(y,Object.assign({},u))})}catch(K){var M=function(h){h.args||(h.args=[]);
h.args.push("Error in web component wrapper");h.args.push(R.tagName.toLowerCase());return h};
_.Uh(K instanceof Error?M(K):new tMU("Wiz rendering error",R.tagName.toLowerCase()));throw K;}finally{CIW(v)}return Q};
_.h6=function(R,y,u){function v(T){var x={};T=_.V(T);for(var B=T.next();!B.done;B=T.next()){B=B.value;var l=void 0,Z=void 0,P=void 0,k=_.fv((P=(Z=(l=B).getAttribute)==null?void 0:Z.call(l,"slot"))!=null?P:"children");if(l=x[k])l.push(B);else if(k in M||k==="children")x[k]=[B]}T=_.V(Object.keys(x));k=T.next();for(B={};!k.done;B={content$jscomp$56:void 0},k=T.next())k=k.value,k!=="children"&&(B.content$jscomp$56=x[k],x[k]=function(E){return function(){return E.content$jscomp$56}}(B));
return x}
u=u===void 0?{}:u;R.componentType!==l$||Kh("Components must be marked reactive to be used from web component wrapper.",y);Fg.has(y)&&Kh("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",y);var Q,M=(Q=u.props)!=null?Q:{};wZ.add(y);var K=ahS();Q=function(){var T=K.apply(this,arguments)||this;T.rawProps={};T.queuingRender=!1;T.dispose=function(){};
T.isWebComponentWrapper=!0;T.isReparenting=!1;T.hasRendered=!1;return T};
_.O(Q,K);Q.prototype.render=function(){this.hasRendered=!0;for(var T=_.V([].concat(_.P$(this.attributes))),x=T.next();!x.done;x=T.next())x=x.value,x.name!=="slot"&&x.name!=="hidden"&&this.removeAttribute(x.name);T=Object.assign({},this.componentProps,this.slotProps);x=_.V(cmT(this,R,T));T=x.next().value;x=x.next().value;!(T[0]instanceof Element)||T.length>1?Kh("Wrapped Wiz components must return a single root element.",y):(T=T[0].tagName.toLowerCase(),T!==y&&Kh("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(T+" !== '"+y),y),this.dispose=x)};
Q.prototype.setUpProps=function(){for(var T=this.rawProps,x=this.attributes,B=_.V(Object.keys(M)),l=B.next();!l.done;l=B.next()){l=l.value;var Z=void 0;((Z=this)==null?0:Z[l])&&this[l]!==S5S&&T[l]===void 0&&(T[l]=this[l],(Z=Object.getOwnPropertyDescriptor(this.constructor.prototype,l))&&Object.defineProperty(this,l,Z))}B=_.V(x);for(l=B.next();!l.done;l=B.next()){Z=l.value;l=_.fv(Z.name);var P=l==="class"&&!x.getNamedItem("class-name");if(l in M||P)Z=pp4(Z),l!=="class"||T.className?T[l]=Z:T.className=
Z}x={};for(var k in M)M[k]!==_.IC&&M[k]!==Y5W&&(T[k]instanceof Function&&Kh("Function props must be configured as STATIC, not SIGNAL.",y),l=_.V(_.In(T[k],void 0,"Ri8MSe")),B=l.next().value,l=l.next().value,x[k]=l,T[k]=B);T=_.V([T,x]);this.componentProps=T.next().value;this.setters=T.next().value;this.slotProps=v(this.childNodes)};
Q.prototype.connectedCallback=function(){hd===y&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in M&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
Q.prototype.disconnectedCallback=function(){if(!this._isInert){var T;a:{if(_.LCP)for(T=this;T;){if(_.s7E.has(T)){T=!0;break a}T=T.parentElement}T=!1}if(T)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){T=_.V([].concat(_.P$(this.attributes)));for(var x=T.next();!x.done;x=T.next()){x=x.value;var B=void 0;x.name==="slot"||x.name==="hidden"&&((B=u.unsafeExternallySettableAttributes)==null?0:B.has("hidden"))||this.removeAttribute(x.name)}}this.innerText="";cZ4(this)}}};
Q.prototype._setPendingPropertyOrPath=function(){};
Q.prototype.notifyPath=function(){};
_.RR.Object.defineProperties(Q.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var h=_.V(Object.keys(M)),b=h.next(),N={};!b.done;N={prop$jscomp$104:void 0},b=h.next())N.prop$jscomp$104=b.value,b=void 0,((b=u.legacyPolymer)==null?0:b.forwardHostProps)&&D7U.has(N.prop$jscomp$104)||Object.defineProperty(Q.prototype,N.prop$jscomp$104,{set:function(T){return function(x){var B=this;this._isInert||(this.setters?TF(function(){var l,Z;return void((Z=(l=B.setters)[T.prop$jscomp$104])==null?void 0:Z.call(l,x))}):(this.rawProps[T.prop$jscomp$104]=x,this.queuingRender&&T.prop$jscomp$104===
"data"&&x!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(N),
get:zdv.has(N.prop$jscomp$104)?void 0:function(){return S5S}});
customElements.define(y,Q)};
_.geU=function(R,y){return(R=_.b0(R,y))?_.Pg(_.Eo(R)):null};
_.Fj=function(R){if(R=_.b0(R,Number.MAX_VALUE,void 0,"width"))return _.Eo(R)};
_.b0=function(R,y,u,v){v=v===void 0?"width":v;if(!R||!R.length)return null;if(_.f("kevlar_tuner_should_always_use_device_pixel_ratio")){var Q=window.devicePixelRatio;_.f("kevlar_tuner_should_clamp_device_pixel_ratio")?Q=Math.min(Q,_.JT("kevlar_tuner_clamp_device_pixel_ratio")):_.f("kevlar_tuner_should_use_thumbnail_factor")&&(Q=_.JT("kevlar_tuner_thumbnail_factor"));Cfc=Q}else Cfc||(Cfc=window.devicePixelRatio);Q=Cfc;_.f("kevlar_tuner_should_always_use_device_pixel_ratio")?y*=Q:Q>1&&(y*=Q);if(_.f("kevlar_tuner_min_thumbnail_quality"))return R[0].url||
null;Q=R.length;if(_.f("kevlar_tuner_max_thumbnail_quality"))return R[Q-1].url||null;if(u)for(var M=0;M<Q;M++)if(R[M].url.indexOf(u)>=0)return R[M].url||null;for(u=0;u<Q;u++)if(R[u][v]>=y)return R[u].url||null;for(y=Q-1;y>0;y--)if(R[y][v])return R[y].url||null;return R[0].url||null};
u$E=function(){wW.size?setTimeout(function(){NR(Riv)},0):yo8=0};
Riv=function(){var R=(0,_.uQ)(),y=null,u=!1;wW.forEach(function(Q){Q.loaded=!0;Q.loadTime=R;Q.pendingPaint=!1;var M=vf8.get(Q);M&&M.resolve(R);y=Q;u||!Q.ftlEligible&&Q.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(u=!0)});
var v;((v=y)==null?0:v.markDirty)&&y.markDirty();wW.clear();yo8=0;u&&Q64(R)};
j6O=function(R){wW.add(R);R.pendingPaint=!0;yo8||(yo8=_.T3(_.WG,u$E))};
M$W=function(R){R.loaded=!1;R.loadTime=Infinity;var y=vf8.get(R);y&&(y.reject(Error("mh")),vf8.delete(R));R.pendingPaint&&(wW.delete(R),R.pendingPaint=!1)};
_.Joc=function(R){var y=R.indexOf(":");return y===-1?{originalName:R}:{originalName:R.substring(0,y),datasyncId:R.substring(y+1)}};
_.id8=function(){return _.I(function(R){if(V$G!==void 0)return R.return(V$G);V$G=new Promise(function(y){var u;return _.I(function(v){switch(v.nextAddress){case 1:return _.wY(v,2),v.yield(_.oC.open("test-only"),4);case 4:return v.yield(_.oC.delete("test-only"),5);case 5:_.c5(v,3);break;case 2:if(u=_.B$(v),u instanceof Error&&u.name==="SecurityError")return y(!1),v.return();case 3:y("caches"in window),_.f$(v)}})});
return R.return(V$G)})};
hiE=function(){return _.I(function(R){if(R.nextAddress==1)return R.yield(_.id8(),2);if(!R.yieldResult)return R.return(void 0);KYO||(KYO=new IBU);return R.return(KYO)})};
bdG=function(R){var y,u,v,Q;return _.I(function(M){switch(M.nextAddress){case 1:return M.yield(hiE(),2);case 2:y=M.yieldResult;if(!y)throw Error("oh");return M.yield(y.open("yt-player-local-img"),3);case 3:return u=M.yieldResult,M.yield(u.match(R),4);case 4:v=M.yieldResult;if(!v)throw Error("ph");return M.yield(v.blob(),5);case 5:return Q=M.yieldResult,M.return(Q)}})};
FYL=function(R,y){for(var u in R)if(R.hasOwnProperty(u)&&y[u])return u;return null};
wIc=function(R){return"stamp"+R.replace("-","_")+"_"};
NPS=function(R){var y=R.match(/\[\[([\w\.]+)\]\]/);if(y&&y.length>1)return y[1];_.dI(Error("rh`"+R));return null};
TPv=function(R){return R===void 0?_.$B("REUSE_COMPONENTS",!1):R||!1};
BP4=function(R,y,u){u&&(y.is?(of4.has(y)&&(R=of4.get(y),u=R.listener,delete y[R.property],u.type==="element"&&y.removeEventListener(u.eventName,u.handler),of4.delete(y)),x3T(y)):y.__proto__==HTMLElement.prototype&&(y=new _.OL("Rendererstamper removed a non custom element","Stamper: "+R+" element: "+(y&&y.nodeName)),_.kT(y)))};
fBv=function(R,y,u,v){var Q=y.node?y.node:y;_.hw(u).parentNode===Q&&(y.removeChild(u),BP4(R,u,v));if(R=x6.get(u))x6.delete(u),_.WG.cancelJob(R);u.hidden=!1};
ei8=function(R,y,u,v){if(y&&y.children&&(u=y.children[u]))if(_.$B("DEFERRED_DETACH"))for(;u&&!x6.has(u);){var Q=R,M=y,K=u,h=v;K.hidden=!0;Q=_.Oh(_.WG,fBv.bind(null,Q,M,K,h),0);x6.set(K,Q);u=u.nextElementSibling}else for(;(K=y.lastElementChild)&&(y.removeChild(K),BP4(R,K,v),K!=u););};
lBE=function(R){var y=_.sh("__slot-el");_.rB(function(){for(var u=_.V(R.slotContent),v=u.next();!v.done;v=u.next())y.value.appendChild(v.value)});
return _.F("__slot-el",{el:y,skip:!0})};
_.B_=function(R,y,u){u=u===void 0?Odc:u;Fg.add(y);var v;(v=u).propNames!=null||(v.propNames=[]);var Q=new Set(u.propNames),M=ahS();v=function(){var N=M.call(this)||this;N.props={};N.isUpdating=!1;N.hasAttached=!1;N.isInert=!1;N.updateQueued=!1;N.initialClasses=[];gnW(N,y);return N};
_.O(v,M);v.prototype.forwardKebabCaseProp=function(N,T){N=_.fv(N);if(Q.has(N)||N==="children")this.props[N]=T};
v.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var N=_.V(this.initialClasses),T=N.next();!T.done;T=N.next())(T=T.value)&&this.classList.add(T);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
v.prototype.handleSlottedContent=function(){for(var N=new Map,T=_.V(this.children),x=T.next();!x.done;x=T.next()){x=x.value;var B=void 0,l=(B=x.getAttribute("slot"))!=null?B:"children";(B=N.get(l))?B.push(x):N.set(l,[x]);if(!x.getAttribute("key")){var Z=void 0,P=void 0;x.setAttribute("key",l+"_"+((P=(Z=B)==null?void 0:Z.length)!=null?P:0))}}N=_.V(N);for(T=N.next();!T.done;T=N.next())x=_.V(T.value),T=x.next().value,x=x.next().value,this.forwardKebabCaseProp(T,_.F(lBE,{slotContent:x}))};
v.prototype.connectedCallback=function(){var N=this;if(!gnW(this,y)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var T=_.V(this.attributes),x=T.next();!x.done;x=T.next())x=x.value,this.forwardKebabCaseProp(x.name,pp4(x));this.handleSlottedContent();u.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){N.afterFirstPatch()});
this.hasAttached=!0}};
v.prototype.attributeChangedCallback=function(N,T,x){this.isInert||this.isUpdating||this.isConnected||N!=="class"||this.initialClasses.push.apply(this.initialClasses,_.P$(x.split(" ")))};
v.prototype.disconnectedCallback=function(){WbT(this)};
v.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var N,T;aOc(this,_.F(R,Object.assign({},this.props,{idomKey:(T=(N=this.__incrementalDOMData)==null?void 0:N.key)!=null?T:y})),!0)}catch(B){var x=B instanceof Error?B:new _.OL("Wiz rendering error");x.args||(x.args=[]);x.args.push("Error in deprecated web component wrapper");x.args.push(y.toLowerCase());_.dI(x);throw B;}finally{this.updateQueued=this.isUpdating=!1}}};
v.prototype.enqueueUpdate=function(){var N=this;return _.I(function(T){if(u.synchronous)return N.update(),T.return();if(N.updateQueued)return T.return();N.updateQueued=!0;return T.return(Promise.resolve().then(function(){N.update()}))})};
v.prototype.notifyPath=function(){u.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.RR.Object.defineProperties(v,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var K=_.V(u.propNames),h=K.next(),b={};!h.done;b={prop$jscomp$106:void 0},h=K.next())b.prop$jscomp$106=h.value,Object.defineProperty(v.prototype,b.prop$jscomp$106,{set:function(N){return function(T){this.isInert||T===this.props[N.prop$jscomp$106]||(this.props[N.prop$jscomp$106]=T,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(b)});
customElements.define(y,v)};
_.ZdE=function(R,y){return _.TI(R.entities,"markersEngagementPanelSyncEntity",y)};
HdO=function(R,y){return _.TI(R.entities,"fantasyWinProbabilityEntity",y)};
nfO=function(R,y){return _.TI(R.entities,"fantasyTeamEntity",y)};
G_E=function(R,y){return _.TI(R.entities,"fantasyPlayerEntity",y)};
roE=function(R,y){return _.TI(R.entities,"booleanEntity",y)};
PFU=function(R,y){return _.TI(R.entities,"qrCodeEntity",y)};
WYU=function(R){return _.TI(R.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
d3G=function(){if(fh)return fh;if(window.lottie)return fh=Promise.resolve(window.lottie);var R=_.d3(_.EB("LOTTIE_URL"));return R?fh=new Promise(function(y,u){var v=document.createElement("script");v.addEventListener("load",function(){y(lottie)});
v.addEventListener("error",function(Q){var M="Lottie library failed to load.";Q?Q.message&&(M+=" Original description: "+Q.message,_.Eh(Q,M)):Q=Error(M);_.kT(Q);u(Q)});
v.setAttribute("async","");_.gC(v,R);document.head.appendChild(v)}):Promise.reject(Error("sh"))};
U38=function(){return fh?fh:d3G()};
k_z=function(R){if(R)switch(R){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.f("kevlar_use_wil_icons"))return R=(R=WYU(_.Qe().getState()))&&R.animationLightUrl&&R.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:R.animationLightUrl,pathDarkTheme:R.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,R?R:ep.get("LIKE")}};
EfP=function(R){var y=k_z(R);if(y)return y;switch(R){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return ep.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return ep.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return ep.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return ep.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return ep.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return ep.get("NOTIFICATION_BELL")}};
qdL=function(R,y){if(!R||$3O)y=!1;else{if(R.closest){var u=!!k_z(y);u=_.EB("ID_TOKEN")&&u?!!R.closest("segmented-like-dislike-button-view-model"):!1}else u=!1;if(!u)if(R.closest)if(u=!_.EB("ID_TOKEN"),R=R.closest("ytd-subscription-notification-toggle-button-renderer-next"),u||!R)u=!1;else{var v;u=((v=R.data)==null?void 0:v.targetId)==="notification-bell"&&y!=="EXPAND_MORE"}else u=!1;y=u}return y};
XIW=function(R){var y,u;return _.I(function(v){switch(v.nextAddress){case 1:return _.wY(v,2),v.yield(fetch(R),4);case 4:return y=v.yieldResult,v.yield(y.json(),5);case 5:return v.return(v.yieldResult);case 2:u=_.B$(v),_.kT(u),_.f$(v)}})};
m3P=function(R,y){var u,v,Q;return _.I(function(M){if(M.nextAddress==1)return(u=y?R.pathDarkTheme:R.path)?M.yield(Promise.all([XIW(u),d3G()]),2):M.return();v=M.yieldResult;Q=v[0];l0.set(u,Q);_.f$(M)})};
_.Oy=function(){for(var R=_.qy.apply(0,arguments),y=!0,u=_.V(R),v=u.next();!v.done;v=u.next())if(typeof v.value!=="string"){y=!1;break}return y?R.join(" ").trim()||void 0:function(){for(var Q="",M=_.V(R),K=M.next();!K.done;K=M.next())if(K=K.value,typeof K==="function"&&(K=K()),K)if(typeof K==="string")Q+=" "+K;else for(var h in K)if(K.hasOwnProperty(h)){var b=K[h];typeof b==="function"&&(b=b());b&&(Q+=" "+h)}Q=Q.trim()||void 0;return _.PT(Q)}};
D3c=function(R,y,u,v){function Q(K,h){if(y.value===h&&R!=null&&R.value){for(;R.value.firstChild;)R.value.removeChild(R.value.firstChild);R.value.classList.add("yt-spec-icon-shape");K(R.value,v)}}
u=_.Ao8(_.ua().resolve(_.eb),u);if(typeof u==="function")y.value=null,Q(u,null);else{var M=new _.F4(u.then,u);y.value=M;M.then(function(K){Q(K,M)})}};
t$T=function(R,y){var u=document.createElement("div"),v=_.Hu(u,function(){return _.F(_.w,{cond:R,then:function(Q){return _.F(pIS,{data:Q,options:y})}})});
return[u,v]};
_.Zl=function(){for(var R=[],y=_.V(_.qy.apply(0,arguments)),u=y.next();!u.done;u=y.next())if(u=u.value)if(typeof u==="string")R.push(u);else{u=_.V(Object.entries(u));for(var v=u.next();!v.done;v=u.next()){var Q=_.V(v.value);v=Q.next().value;(Q=Q.next().value)&&R.push(v)}}return R.join(" ")};
YdP=function(R){var y=_.sh("animated-rolling-character"),u=Wu(),v=Rk(R.character)||Rk(R.previousCharacter);z6P(function(){if(R.marginMultiplier){var Q;(Q=u.value)==null||Q.cancel();v?(Q=R.previousCharacter?Number(R.previousCharacter)+10:R.rollUp?0:30,R.shouldAnimate||(Q-=coW(R,Q))):(Q=R.rollUp?0:2,R.shouldAnimate||(Q-=R.rollUp?-1:1));y.value.style.marginTop="-"+Q*R.marginMultiplier+"px";R.shouldAnimate?u.value=aB4(y.value,R,Q,v):y.value.style.display=R.character?"":"none"}});
return _.F("animated-rolling-character",{el:y,class:"animated-rolling-character-wiz"},sX(v,function(){for(var Q=[],M=1;M<30;M++)Q.push(_.F("div",null,M%10));return _.F(_.vu,null,_.F("div",null,"\u00a0"),Q,_.F("div",null,"\u00a0"))},function(){return SdE(R.character)}))};
SdE=function(R){return _.F(_.vu,null,_.F("div",null,"\u00a0"),_.F(_.vu,null,sX(!R||_.iO(R),function(){return _.F("div",null,"\u00a0")},function(){return _.F("div",null,R)})),_.F("div",null,"\u00a0"))};
aB4=function(R,y,u,v){u=new Animation(new KeyframeEffect(R,[{transform:"translateY(0px)"},{transform:"translateY("+(v?coW(y,u):y.rollUp?-1:1)*y.marginMultiplier+"px)"}],LYS),document.timeline);y.character?(R.style.display="",u.onfinish=null):u.onfinish=function(){R.style.display="none"};
u.play();return u};
coW=function(R,y){var u=Number(R.character)+10;if(R.previousCharacter)if(R.character){var v=Number(R.character),Q=Number(R.previousCharacter);R=R.rollUp?Q<v?u:u+10:Q<v?u-10:u}else R=R.rollUp?30:0;else R=R.character==="0"?u:R.rollUp?u-10:u+10;return y-R};
_.H_=function(R,y){return function(u){var v={},Q;for(Q in u){var M=void 0,K=void 0;((M=y)==null?0:(K=M.callbacks)==null?0:K[Q])||(v[Q]=u[Q])}return _.F(IT8,null,function(){for(var h in v)u[h]=_.PT(v[h]);u.disableReactiveLogging=!0;return _.F(R,Object.assign({},u))})}};
gfW=function(R,y,u,v,Q,M,K){u=new Animation(new KeyframeEffect(R,[{transform:"translateY(0px)"},{transform:"translateY("+(M?s6S(y,u,v,Q):v?-1:1)*K+"px)"}],ziL),document.timeline);y?(R.style.display="",u.onfinish=null):u.onfinish=function(){R.style.display="none"};
u.play();return u};
s6S=function(R,y,u,v){var Q=Number(R)+10;y?R?(R=Number(R),y=Number(y),u=u?y<R?Q:Q+10:y<R?Q-10:Q):u=u?30:0:u=R==="0"?Q:u?Q-10:Q+10;return v-u};
Rnz=function(R){var y=Wu(),u=Wu();_.G7(function(){y.value=R.numberText;u.value=R.numberValue},[R.numberText]);
var v=R.fontSizeMultiplier?R.heightPx*R.fontSizeMultiplier:R.heightPx,Q=MiU(function(){if(R.numberText){var K=R.numberText;var h=R.forceRollUp||!u.value||!R.numberValue||u.value<R.numberValue;var b=!!R.shouldAnimate,N=y.value,T=[],x=0,B=0,l=(N?N.replace(/\D/g,"").length:0)-(K?K.replace(/\D/g,"").length:0);N=N?N.split(/(\d)/).filter(Boolean):[];for(K=K.split(/(\d)/).filter(Boolean);l<0;){var Z=K[B];T.push({character:Z,rollUp:h,marginMultiplier:v,shouldAnimate:b});B++;Rk(Z)&&l++}for(;x<l;)Z=N[x],T.push({previousCharacter:Z,
rollUp:h,marginMultiplier:v,shouldAnimate:b}),x++,Rk(Z)||l++;for(;B<K.length;)l=K[B],Z=N[x],Rk(l)===Rk(Z)?(B++,x++):Rk(l)?(x++,l=void 0):Rk(Z)&&(B++,Z=void 0),T.push({character:l,previousCharacter:Z,rollUp:h,marginMultiplier:v,shouldAnimate:b});h=T}else h=[];return h},[R.numberText]),M=R.numberText?["height: "+v+"px;",
"line-height: "+R.heightPx+"px;"].join(" "):"";return _.F("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:M,dir:"ltr","aria-hidden":"true"},Q.map(function(K){return _.F(CFW,Object.assign({},K))}))};
ukU=function(R){var y;return(y=y58[R])!=null?y:"EVENT_SPAN_TYPE_UNKNOWN"};
vdT=function(R){var y=R.nodeName;if(R.id)return y+="#"+R.id;if(R.classList)for(var u=_.V(R.classList),v=u.next();!v.done;v=u.next())y+="."+v.value;R.parentElement&&(y=vdT(R.parentElement)+" > "+y);return y};
Q04=function(R){return function(y){var u=ukU(y.type);return u==="EVENT_SPAN_TYPE_UNKNOWN"?R(y):dvU("event",{type:u,nodepath:y.target instanceof Element?vdT(y.target):void 0},function(){return R(y)})}};
_.nh=function(R){R&&rjG("event")&&(R=Q04(R));return DpT(function(y){var u,v=(u=R)==null?void 0:u(y);return typeof v==="boolean"?v:!0})};
G3=function(R){return function(){return R()?R():void 0}};
j0O=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})};
M44=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})};
_.rW=function(R){var y=i0(function(u){u=u?Ky(u[0]):void 0;return _.In(R(u),void 0,"AwTxXe")},{isEqual:function(u,v){return Ky(u[0])===Ky(v[0])}});
return[function(){return y()[0]()},
function(u){return void y()[1](u)}]};
_.P_=function(R){return function(){var y="",u;for(u in R){for(var v=R[u];typeof v==="function";)v=v();v!==void 0&&v!==null&&(y+="; "+u+": "+v)}return y.length>0?_.PT(y.slice(2)):_.PT()}};
J5T=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"}};
Ib8=function(R,y,u,v,Q,M){var K=V4U(R),h=K.disabled,b=K.iconPosition,N=K.style,T=K.focused,x=function(){return!!Z()&&b()==="icon-only"},B=function(){return!!Z()&&b()==="icon-only-40"},l=function(){return!!Z()&&b()==="icon-with-label"},Z=function(){return!!y||!(v==null||!v())};
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(T()||(M==null?void 0:M()))&&!h()},
hasIconLeading:function(){return!!Z()&&b()==="leading"},
hasIconTrailing:function(){return!!Z()&&b()==="trailing"},
hasIconLeadingTrailing:function(){return!!Z()&&!!(u||Q!=null&&Q())&&b()==="leading-trailing"},
hasIconOnly:x,hasIconOnly40:B,hasIconWithLabel:l,iconButton:function(){return x()||B()||l()},
visiblyDisabled:function(){return(h()?"disabled":R().state)==="disabled"||h()},
overrideSmallSizeIcon:function(){return!R().ignoreIconSizeOverride&&ieU(R(),Z())},
iconToRender:y?y:function(){return _.F(_.W_,{icon:v,size:function(){return dW(R(),!0,R().ignoreIconSizeOverride)},
active:function(){return R().toggled},
iconFilter:function(){return KPP(R())}})},
secondaryIconToRender:u?u:function(){return _.F(_.W_,{icon:Q,size:function(){return dW(R(),!0,R().ignoreIconSizeOverride)},
active:function(){return R().toggled},
iconFilter:function(){return KPP(R())}})}}};
V4U=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(y){var u,v;return(v=(u=R()).onTap)==null?void 0:v.call(u,y)},
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(y){var u,v;return(v=(u=R()).onToggle)==null?void 0:v.call(u,y)},
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}}};
hnv=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};
ieU=function(R,y){y=(R.iconPosition==="icon-only"||R.iconPosition==="icon-only-40"||R.iconPosition==="icon-with-label")&&y;return!R.segmentedPosition&&y&&R.size==="S"};
beE=function(){return!_.f("web_disable_backdrop_filter")};
dW=function(R,y,u){switch(R.size){case "XS":return 16;case "S":return!u&&ieU(R,y)?24:16;default:return 24}};
FPW=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"}};
wLv=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"}};
NUv=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"}};
KPP=function(R){if(R.style==="overlay-dark"&&R.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
TUv=function(R){if(!R)return{};var y=R.color,u=R.backgroundColor;R=R.borderColor;var v="";y&&(v+="color: "+y+";");u&&(v+="background-color: "+u+";");R&&(v+="border-color: "+R+";");return{style:v}};
enz=function(R,y,u){var v=R.buttonText,Q=R.formattedButtonText,M=R.formattedButtonTextLegacy,K=R.animatedTextProps,h=R.style,b=R.size,N=R.focused,T=R.disabled,x=R.onTap,B=R.alignByText,l=R.aTagConfig,Z=R.customColors,P=R.segmentedPosition,k=R.toggled,E=R.toggleable,D=R.accessibilityLabel,z=R.onToggle,c=R.iconPosition,a=R.oneOffCustomTextWrap,L=R.disableTextEllipsis,QG=R.disableBackdropFilter,hz=R.tooltipText,bO=R.ariaHidden,BW=R.tabIndex,Zc=R.ignoreIconSizeOverride,xS=R.state,Dc=R.type;h==="call-to-action-inverse"&&
(Dc="text");h==="overlay-dark"&&Dc!=="filled"&&Dc!=="tonal"&&(Dc="tonal");var $S=!!y&&c==="leading",hL=!!y&&c==="trailing",WK=!!y&&!!u&&c==="leading-trailing",JL=!!y&&c==="icon-only",sP=!!y&&c==="icon-only-40",wg=!!y&&c==="icon-with-label",bT=JL||sP||wg;T&&(xS="disabled");var HK=xS==="disabled"||T;Zc=!Zc&&ieU(R,!!y);xS={};var Ta=(xS["yt-spec-button-shape-next"]=!0,xS[FPW(Dc)]=!0,xS[wLv(h)]=!HK,xS["yt-spec-button-shape-next--disabled"]=!!HK,xS[NUv(b)]=!0,xS["yt-spec-button-shape-next--focused"]=!!N&&
!T,xS["yt-spec-button-shape-next--icon-trailing"]=hL,xS["yt-spec-button-shape-next--icon-leading"]=$S,xS["yt-spec-button-shape-next--icon-leading-trailing"]=WK,xS["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=WK&&!(v||Q),xS["yt-spec-button-shape-next--icon-button"]=JL||wg,xS["yt-spec-button-shape-next--icon-only-default"]=sP,xS["yt-spec-button-shape-next--align-by-text"]=!!B,xS["yt-spec-button-shape-next--segmented-start"]=P==="start",xS["yt-spec-button-shape-next--segmented-end"]=P===
"end",xS["yt-spec-button-shape-next--override-small-size-icon"]=Zc,xS["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!a,xS["yt-spec-button-shape-next--disable-text-ellipsis"]=!!L,xS["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!QG&&beE(),xS),Sg=function(){if(K)ed4(_.odW)(K);else if(M)M(c==="icon-with-label"||a?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(Q){var pY=c==="icon-with-label"||a;q5c(Object.assign({},
Q,pY?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),{noLinkColor:!0,noWrap:!pY})}else v&&Cy(v)},MU=function(pY){x==null||x(pY);
E&&(z==null||z(pY))},vK=l?xYT:BUE,eg=l?"aria-current$":"aria-pressed$",oP=function(){y&&($S||WK||bT)&&function(){Uy({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){y()})}();
(v||Q||M||K)&&!bT&&function(){Uy({className:"yt-spec-button-shape-next__button-text-content"},function(){Sg()})}();
hL&&function(){Uy({className:"yt-spec-button-shape-next__icon"},function(){y()})}();
WK&&function(){Uy({className:"yt-spec-button-shape-next__secondary-icon"},function(){u()})}();
T||ed4(_.k6)({model:{color:hnv(R)}})},BK=function(){var pY={};
vK(Object.assign({},(pY.className=_.Zl(Ta),pY.onclick=l?void 0:MU,pY.disabled=T,pY["aria-disabled$"]=HK,pY.style=T&&l?"pointer-events:none":void 0,pY[eg]=E?!!k:void 0,pY["aria-label$"]=D,pY.title$=hz!=null?hz:"",pY["aria-hidden$"]=bO,pY.tabindex$=BW,pY),l,TUv(Z)),function(){oP()})};
wg?(b={},h=(b["yt-spec-button-shape-with-label"]=!0,b["yt-spec-button-shape-with-label--is-overlay"]=h==="overlay"||h==="overlay-dark",b),fbP({className:_.Zl(h)},function(){BK();Uy({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},Sg)})):BK()};
OeU=function(R,y){if(!zl){var u;RL8(function(){return u=iX4(R,y)});
return u}R.parent=_.lb4();return iX4(R,y)};
_.lb4=function(){var R=_.CF(zl||void 0,M8P);return _.f14(R)?void 0:R};
GYc=function(R){var y=y===void 0?{}:y;R=_.V(_.rW(R));var u=R.next().value;return[function(v){var Q=_.N8(function(){var h,b,N,T,x={text:(h=u())!=null?h:"",location:(b=y.location)!=null?b:"bottom",offset:(N=y.offset)!=null?N:16,delay:(T=y.delay)!=null?T:500};return Object.assign({},x,{location:x.location})},void 0,"MgTrkc");
_.ny(function(){var h=Q();Ky(function(){_.WG.addJob(function(){ZeP.notify(v,h)},4)})},"Z01NSc");
var M=function(){Hev(v,Q())},K=function(){ndT()};
v.addEventListener("mouseenter",M);v.addEventListener("focus",M);v.addEventListener("mouseleave",K);v.addEventListener("blur",K);v.addEventListener("tap",K);_.GF(function(){v.removeEventListener("mouseenter",M);v.removeEventListener("mouseleave",K);v.removeEventListener("focus",M);v.removeEventListener("blur",K);v.removeEventListener("tap",K);ndT()})},
R.next().value]};
Ey=function(R,y){_.Yi(R,Object.assign({},y,{forceClickLogging:!0}))};
r5O=function(R,y,u,v){Ey(R,Object.assign({},{form:{element:y,event:u}},v))};
WPL=function(R,y,u,v,Q){var M=void 0;return function(K){var h=_.Sb(u?R==null?void 0:R.onDisabledTap:R==null?void 0:R.onTap);if(h){var b;M=(b=M)!=null?b:y==null?void 0:y.value;if(h)if(_.f("web_button_vm_click_client_ve_killswitch"))r5O(h,M,K);else{b=PRT(R,h);if(Q){r5O(h,Q,K,{clickedVisualElement:b,form:{element:Q}});return}r5O(h,M,K,{clickedVisualElement:b})}}v&&v(K)}};
PRT=function(R,y){y=y==null?void 0:y.clickTrackingParams;var u,v;if((R=R==null?void 0:(u=R.loggingDirectives)==null?void 0:(v=u.clientVeSpec)==null?void 0:v.uiType)&&!y)return _.$6(R)};
dYT=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"}};
UYU=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"}};
kYG=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"}};
Edz=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"}};
$YG=function(R,y){return _.TI(R.entities,"engagementToolbarStateEntityPayload",y)};
XL4=function(R){(R=_.U4(R))&&_.q0T(R)};
_.q0T=function(R){var y=_.$I();y&&_.YF(y,R)};
mYP=function(R,y,u){_.Ik(R,"yt-open-popup-action",[y,u||R])};
A5O=function(R,y){var u=_.dB(R,"endpoint"),v=_.dB(R,"action");return(u=v?v:u)&&y&&(u=y.navigationEndpointPopupMap[u])&&(R=_.D6(u,R),(u=_.dB(R,"renderer"))&&y.supportedPopups.hasOwnProperty(u))?{openPopupAction:{popupType:y.popupTypeMap[u],popup:R}}:null};
DYE=function(R,y,u,v){if(v){var Q;u=u==null?void 0:(Q=u.data)==null?void 0:Q.contents;(Q=u instanceof Array&&u.length?u[0]:u)&&(u=_.dB(Q,"renderer"))&&v.supportedPopups.hasOwnProperty(u)&&(y.stopPropagation(),mYP(R,{openPopupAction:{popupType:v.popupTypeMap[u],popup:Q}}))}};
c5W=function(R,y,u,v){v=v===void 0?!1:v;var Q=pLG(y);if(Q){Q.href&&sZ(Q.href);var M=y.button;M=M!==void 0?M===0&&!qR(y):!qR(y);Q.data&&M&&t4T(R,Q,y,u,v)}};
t4T=function(R,y,u,v,Q){Q=Q===void 0?!1:Q;var M=_.JT("pbj_navigate_limit",-1)===0;ab4(y);_.ua().resolve(_.yN(pi));var K=y.data;if(Object.keys(K).length!==0)if(!_.f("unplugged_web_disable_actions_for_cec_endpoint")&&_.e(K,_.TP))_.f("endpoint_behavior_command_executor_fix_killswitch")||(u.preventDefault(),u.stopPropagation()),_.wr(R,[K],R);else if(v=A5O(K,v))K.loggingUrls&&K.loggingUrls.forEach(function(b){b.baseUrl&&_.D1(b.baseUrl)}),u.preventDefault(),u.stopPropagation(),mYP(R,v,y);
else{var h=S0P(0,y.data,u);if(R=y.getForm)R=R(),h.tempData=h.tempData||{},h.tempData=Object.assign({},h.tempData,R);R=_.u8(u);if(v=R.find(function(b){return!!b.visualElement}))h.createScreenConfig=h.createScreenConfig||{},h.createScreenConfig.clickedVisualElement=v.visualElement;
if(!M)if(u.preventDefault(),u.stopPropagation(),_.e(K,_.Y0v)&&!Q&&_.lX.instance)_.lX.instance.resolveCommand(K,h);else if(_.f("kevlar_command_handler_formatted_string")&&!Q&&_.lX.instance&&LPW(K))Q=R.find(function(b){return!!b.is})||u.target,u={form:Object.assign({},h,{event:u,
element:Q,originatingNode:y})},_.lX.instance.resolveCommand(K,u);else{K=_.u8(u);u=[];for(Q=0;Q<K.length;Q++)(M=K[Q].is)&&u.push(M);OAG({parents:u.join(","),text:y.innerText},function(){_.Ko(y,"yt-navigate",h)})}}};
s0E=function(R){if(R=pLG(R))ab4(R),KG8(R.href)};
pLG=function(R){R=_.u8(R);for(var y,u=0;u<R.length;u++)if(y=R[u],y.tagName==="A"&&y.classList.contains("yt-simple-endpoint")){if(!y.data)break;return y}return null};
qR=function(R){return R.shiftKey||R.altKey||R.metaKey||R.ctrlKey};
zn8=function(R,y){var u={itct:y.clickTrackingParams};_.f("kevlar_client_side_screens")&&(!_.e(y,_.PV)||_.f("kevlar_exclude_endpoint_killswitch"))&&(u.endpoint=JSON.stringify(y));_.f("enable_unknown_lact_fix_on_html5")&&_.ua().resolve(_.yN(_.Xj))&&(u.lact=_.QF());Jpv(u);_.uh(R,u)};
ab4=function(R){R.href&&Object.keys(R.data).length!==0&&zn8(R.href,R.data)};
LPW=function(R){for(var y=_.V(gd8),u=y.next();!u.done;u=y.next())if(R[u.value])return!1;return!0};
_.mx=function(R,y){if(y){var u={};CRz.forEach(function(v){v=RA4(y,v,"--yt-lightsource-");Object.assign(u,v)});
y98.forEach(function(v){v=RA4(y,v,"--yt-basic-");Object.assign(u,v)});
_.oX(R,u)}};
RA4=function(R,y,u){var v={};v[u+_.B8(y)]=R&&R[y]?_.Sq(R[y]):"";return v};
_.Dl=function(R,y,u){A6[R]||(A6[R]={});A6[R][y]=u};
_.ph=function(R){A6[R]||(A6[R]={});return A6[R]};
uOS=function(R){if(!R)return{};var y=R.foregroundTitleColor,u=R.backgroundColor;R=R.borderColor;var v="text";R?v="outline":u&&(v="filled");return{type:v,customColors:{color:y?_.Sq(y):void 0,backgroundColor:u?_.Sq(u):void 0,borderColor:R?_.Sq(R):void 0}}};
J9T=function(R){var y=R.renderer;var u=R.element;var v=R.commandController;var Q=R.onTapCallback;var M=R.skipCommandHandling;var K=R.overrides;var h=R.forceIcon;var b=R.forceModernIconButton;var N=R.forceDisabled;var T=R.isSubscribe===void 0?!1:R.isSubscribe;var x=R.isPressed===void 0?!1:R.isPressed;var B=R.useButtonSize===void 0?!1:R.useButtonSize;R=vHT(y);T&&(R.style="mono",R.type="filled");h=!y.icon||!h&&y.text?y.icon?y.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:b?"icon-only":"icon-only-40";h==="icon-only-40"&&(R.type="text");var l;b=Object;T=b.assign;B=QI4(y,B);x=!!y.isSelected||!_.f("web_propagate_is_pressed_killswitch")&&!!x;var Z=y.isSelected!==void 0;N=N===void 0?y.isDisabled:N;var P=y.text?_.pk(y.text):void 0;var k,E,D,z=((k=y.accessibilityData)==null?void 0:(E=k.accessibilityData)==null?void 0:E.label)||((D=y.accessibility)==null?void 0:D.label);k=z?z:_.u7(y.text);u=jIG(y,u,v,Q,M);v=M3O(y);v!=null&&v.length?(v=_.Lk({innertubeCommand:luc(v),
forceNewState:!0}),v=s4(v)?v:void 0):v=void 0;return T.call(b,{},R,B,{iconPosition:h},K,{focused:!1,toggled:x,toggleable:Z,disabled:N,formattedButtonText:P,accessibilityLabel:k,onTap:u,aTagConfig:v},uOS((l=y.colorData)==null?void 0:l.basicColorPaletteData),{oneOffCustomTextWrap:y.oneOffCustomTextWrap})};
jIG=function(R,y,u,v,Q){return function(M){var K=M3O(R);v(K,M);if(!Q){K=_.V(K);for(var h=K.next();!h.done;h=K.next())Ey(h.value,{form:{element:y,event:M},commandController:u})}}};
M3O=function(R){var y=[];R.command&&y.push(R.command);R.serviceEndpoint&&y.push(R.serviceEndpoint);R.navigationEndpoint&&y.push(R.navigationEndpoint);return y};
QI4=function(R,y){if(y)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"}}};
vHT=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"}}};
V3G=function(R,y){return typeof R!=="object"||R===null?!1:Object.keys(y).every(function(u){return u in R})};
i3W=function(R,y,u){return JxT(u,function(v,Q){return function(M){var K=_.qy.apply(1,arguments);return V3G(M,R)?Q.apply(null,[M[y]].concat(_.P$(K))):Q.apply(null,[M].concat(_.P$(K)))}})};
_.t6=function(R){return R!=null&&R.watch?R.watch.isTheaterMode:!1};
_.c_=function(R){return R!=null&&R.watch?R.watch.isWatchFullscreen:!1};
_.aC=function(R){R=_.KOW(R);return _.f("web_watch_enable_single_column_grid_view")?R:!1};
_.KOW=function(R){return R.watch.isWatchNarrowWidth};
_.IsE=function(R){return R.watch.openEngagementPanels};
_.Sp=function(R){return _.N8(function(){RQv()();return vnT(R)},{debugName:"d8B62c"},"wfRQAb")};
Y6=function(R,y){return _.TI(R.entities,"likeStatusEntity",y)};
hAU=function(R,y){return _.TI(R.entities,"likeCountEntity",y)};
_.b3T=function(R,y){return _.TI(R.entities,"stringEntity",y)};
FO8=function(R,y){if(!R)return!1;var u,v=(u=_.e(R,_.xF))==null?void 0:u.signal;if(v&&y.signalEndpointMap)return!!y.signalEndpointMap[v];var Q;if((u=(Q=_.e(R,_.Lh))==null?void 0:Q.request)&&y.continuationEndpointMap)return!!y.continuationEndpointMap[u];for(var M in R)if(y.commandEndpointMap[M])return!0;return!1};
wa4=function(R,y){if(y.streamingEndpointMap)for(var u in R)if(y.streamingEndpointMap[u]&&(R=y.streamingEndpointMap[u]))return R()};
N4U=function(R,y){var u,v=(u=_.e(R,_.xF))==null?void 0:u.signal;if(v&&y.signalEndpointMap&&(u=y.signalEndpointMap[v]))return u();var Q;if((u=(Q=_.e(R,_.Lh))==null?void 0:Q.request)&&y.continuationEndpointMap&&(Q=y.continuationEndpointMap[u]))return Q();for(var M in R)if(y.commandEndpointMap[M]&&(R=y.commandEndpointMap[M]))return R()};
T4S=function(R){var y={"Content-Type":"application/json"};_.EB("EOM_VISITOR_DATA")?y["X-Goog-EOM-Visitor-Id"]=_.EB("EOM_VISITOR_DATA"):_.EB("VISITOR_DATA")&&(y["X-Goog-Visitor-Id"]=_.EB("VISITOR_DATA"));y["X-Youtube-Bootstrap-Logged-In"]=_.EB("LOGGED_IN",!1);_.EB("DEBUG_SETTINGS_METADATA")&&(y["X-Debug-Settings-Metadata"]=_.EB("DEBUG_SETTINGS_METADATA"));R!=="cors"&&((R=_.EB("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(y["X-Youtube-Client-Name"]=R),(R=_.EB("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(y["X-Youtube-Client-Version"]=
R),(R=_.EB("CHROME_CONNECTED_HEADER"))&&(y["X-Youtube-Chrome-Connected"]=R),(R=_.EB("DOMAIN_ADMIN_STATE"))&&(y["X-Youtube-Domain-Admin-State"]=R),_.$B("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(R=_.EB("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(y["X-YouTube-Lava-Device-Context"]=R));return y};
oHW=function(R,y){y.watchNextResponse||y.reelItemWatchResponse?y.watchNextResponse?R.content=y.watchNextResponse:R.content=y.reelItemWatchResponse:y.playerResponse?R.player=y.playerResponse:y.reelWatchSequenceResponse&&(R.reelSequence=y.reelWatchSequenceResponse)};
_.sy=function(R){if(!R)return null;for(var y=[],u=0;u<R.textSegments.length;u++){var v=R.textSegments[u];v.text?y.push(v):v.emojiId&&y.push({emoji_id:v.emojiId})}return{text_segments:y}};
ls8=function(R,y,u,v,Q,M,K){M=M===void 0?[]:M;var h=new _.z3;h.endpoint=u;if(!u)return _.Uh(new _.OL("handle undefined endpoint",y.tagName)),h;var b=UpW(u);b.length&&(_.wr(R,b,y,v),h.actions=b);u.loggingUrls&&u.loggingUrls.forEach(function(T){T.baseUrl&&p9(T.baseUrl,T.attributionSrcMode)});
b=!_.f("web_skip_impression_click_killswitch")&&v&&v.impression;if(u.clickTrackingParams&&!xaz(u)&&!B4v(y)&&!b&&(b=_.GN(),!_.gW(b,y))){var N=y.getScreenLayer&&y.getScreenLayer();N?b.clickCommand(u,null,N):b.clickCommand(u,null)}b=!1;for(N=0;N<M.length;N++)if((0,M[N])(y,u,v)){b=!0;break}!b&&fsP(u)&&(h.ajaxPromise=eAW(R,y,u,v,Q,K));return h};
B4v=function(R){var y;return(R=(y=R.data)==null?void 0:y.navigationEndpoint)&&!!R.clickTrackingParams};
xaz=function(R){var y=_.e(R,_.xF);if(y&&(y=y.signal)&&O3T.indexOf(y)>=0)return!0;for(var u in R)if(Z3z.indexOf(u)>=0)return!0;return!1};
fsP=function(R){var y;if(((y=_.e(R,_.xF))==null?void 0:y.signal)==="CLIENT_SIGNAL")return!1;for(var u in R)if(H3L.indexOf(u)>=0)return!1;R=Object.keys(R);return R.length===1&&R[0]==="loggingUrls"?!1:!0};
k8U=function(R,y,u,v,Q,M,K){var h=_.Ch.instance;if(h&&_.R8(h,v))var b=_.yB(h,v,Q).then(function(T){return(T==null?0:T.data)?T:{data:T}});
else b=R.requestDataForServiceEndpoint(v,Q),_.e(v,nHO)||_.e(v,G8U)||_.e(v,_.r94)||_.e(v,PdW)||_.kT(new _.OL("No RequestBuilder for endpoint",v));var N=_.uD();N.promise.thenCatch(function(){var T=_.dB(v,"action")||_.dB(v,"command")||_.dB(v,"endpoint");T&&(T=v[T],T.hasOwnProperty("onFailureAction")?_.wr(y,[T.onFailureAction],u):T.hasOwnProperty("onFailureCommand")&&_.wr(y,T.onFailureCommand,u));b.cancel("Resolver promise rejected")});
b.then(function(T){if(T){var x=T.error;if(x){if(M&&M.onServerError)M.onServerError(v,T);N.reject(new _.OL("Response error",v,x))}else if(T=T.data)if(x=T.error){if(M&&M.onServerError)M.onServerError(v,T);N.reject(new _.OL("Returned error",v,x))}else{WOT(y,u,T,v);da8(T);if(x=dpG(T))for(var B=_.V(x),l=B.next();!l.done;l=B.next()){l=l.value;var Z=_.ua().resolve(_.yN(UaU))||QB;if(!_.Ch.instance||!Z.some(function(k){return!!_.e(v,k)})||_.f("kevlar_response_processor_allowlist_killswitch")){var P=Z=void 0;
((P=_.e((Z=l)==null?void 0:Z.commandMetadata,_.QL))==null?0:P.sendPost)?_.Fh(y,[l]):_.wr(y,[l],u)}}(B=_.e(T==null?void 0:T.frameworkUpdates,jo))&&K&&K(B);if(M&&M.onSuccess)M.onSuccess(v,T);N.resolve(new _.Mp(T,x))}}else N.reject(new _.OL("Invalid service endpoint provided",v))},function(T){N.reject(T)});
return N.promise};
da8=function(R){var y;(R=(y=_.e(R==null?void 0:R.onResponseReceivedCommand,_.EHU))==null?void 0:y.continuationItems)&&(R==null?void 0:R.length)===1&&_.e(R[0],$aE)&&_.qQ("so_r",void 0,"search_overview_answer")};
eAW=function(R,y,u,v,Q,M){var K;return(K=y.getNetworkManager&&y.getNetworkManager()?y.getNetworkManager():_.ua().resolve(_.yN(_.AU)))?k8U(K,R,y,u,v,Q,M):_.qk("No network manager.")};
WOT=function(R,y,u,v){if(u=u.trackingParams||u.loggingDirectives&&u.loggingDirectives.trackingParams){var Q;(_.e(v,qeU)||_.e(v,Xa4)||_.e(v,mav))&&v.clickTrackingParams?Q=_.U4(v.clickTrackingParams):_.f("web_graft_to_parent_command")&&v.clickTrackingParams&&(Q=_.U4(v.clickTrackingParams));var M;v=(M=y.getScreenLayer)==null?void 0:M.call(y);y=_.GN().graftServerVe(u,Q,v);_.h_(R,"yt-store-grafted-ve-action",[y])}};
_.A94=function(R){var y=new Image;return new _.F4(function(u,v){y.addEventListener("load",function(){u()});
y.addEventListener("error",function(){v()});
y.src=R})};
DaE=function(R){return!!R};
paT=function(R){return!!R};
t3L=function(R,y,u){var v=R.rowIndex;v!==void 0&&_.h_(R.hostElement,"yt-section-reactive-dismissal",[v,y,u])};
_.JF=function(R,y,u){R=_.V(R);for(var v=R.next();!v.done;v=R.next()){v=v.value;if(v===y)break;for(var Q=_.V(u),M=Q.next();!M.done;M=Q.next())if(M=M.value,v.tagName===M||!_.f("web_event_button_role_check_killswitch")&&v.role==="button"&&M==="BUTTON")return!0}return!1};
_.VB=function(R,y,u){R=_.V(R);for(var v=R.next();!v.done;v=R.next()){v=v.value;if(v===y)break;for(var Q=_.V(u),M=Q.next();!M.done;M=Q.next())if(v.id===M.value)return!0}return!1};
c9T=function(R){switch(R){case 0:return 16/9;case 1:return 2/3;case 2:return.75;case 3:return 1;case 4:return.5625;default:return 0}};
asW=function(R,y){if(!R&&!y)return"medium";R=Math.max(R||0,y||0);return R>=256?"large":R>=96?"medium":"small"};
Sec=function(R){switch(R){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.I8=function(){var R=_.ua().resolve(_.yN(_.iD));return R?(R=R.getCurrentPage())?_.KA(R):null:null};
_.hF=function(){var R=_.I8();if(!R){var y=_.ua().resolve(_.yN(_.iD)),u=y?typeof y:"no page manager";y=y?y.getCurrentPage():null;u=new _.OL("Player is missing when requested.",u,y?y.tagName:"no page");_.dI(u)}return R};
_.KA=function(R){return R&&R.getPlayer?R.getPlayer():null};
Yez=function(R,y){R={args:{raw_player_response:R}};y&&(R.args=Object.assign({},R.args,y));return R};
LOv=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)}};
_.sIT=function(R,y){var u={url:"/watch?v="+R.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};R.playlistId&&(u.url+="&list="+R.playlistId);R.playerParams&&(u.url+="&pp="+R.playerParams);R={watchEndpoint:R,commandMetadata:{webCommandMetadata:u}};y&&(R.clickTrackingParams=y);return R};
gH8=function(){return zAS||!!_.D6("yt.player.Application")};
R98=function(){return CdG||!!document.querySelector("link#player-css")};
uEP=function(){function R(){zAS=!0;yV8.resolve()}
var y,u;return _.I(function(v){yV8||(yV8=new _.xv,gH8()?R():(y=document.createElement("script"),y.addEventListener("load",R),u=_.Gl(_.EB("PLAYER_JS_URL")),_.gC(y,u),document.head.appendChild(y)));return v.return(yV8.promise)})};
Qvz=function(){function R(){CdG=!0;vgP.resolve()}
if(!vgP)if(vgP=new _.xv,R98())R();else{var y=document.createElement("link");y.id="player-css";y.addEventListener("load",R);var u=_.Gl(_.EB("PLAYER_CSS_URL"));_.y6(y,u,"stylesheet");document.head.appendChild(y)}return vgP.promise};
jvT=function(){return gH8()&&R98()?Promise.resolve([]):Promise.all([uEP(),Qvz()])};
MDG=function(R,y,u){var v={args:{}};R&&(v.args.raw_player_response=R);y&&(v.args.raw_watch_next_response=y);u&&(v.args=Object.assign({},v.args,u));return v};
Kpz=function(R,y,u){var v=!1;v=v===void 0?!0:v;R=typeof R==="string"?_.bD(document,R):R;var Q=JVP+"_"+_.YS(R),M=VDT[Q];if(M&&v)return iq8(y,u)?M.api.loadVideoByPlayerVars(y.args||null):M.loadNewVideoConfig(y),M.api;M=new Fs(R,Q,y,u,void 0);VDT[Q]=M;M.addOnDisposeCallback(function(){delete VDT[M.getId()]});
return M.api};
iq8=function(R,y){return y&&y.serializedExperimentFlags?y.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):R&&R.args&&R.args.fflags?R.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
IGP=function(){var R=new _.xv;R.resolved=!1;var y=R.resolve;R.resolve=function(u){R.resolved=!0;y(u)};
return R};
bqv=function(R){var y={};h9S().install((y.document_disposed={callback:R},y))};
wm=function(R,y){if(!R&&Math.random()<=_.JT("kevlar_unified_player_logging_threshold")){R=Error("uh`"+(y?y:"Unspecified error"));if(_.f("kevlar_unified_player_throw_errors"))throw R;_.kT(R)}};
_.FpU=function(){var R=_.D6("ytDebugData.callbacks");R||(R={},_.CJ("ytDebugData.callbacks",R));return R};
NST=function(R,y){var u=_.FpU();if(_.f("web_dd_iu")||wXT.includes(R))u[R]=y};
TSP=function(){return _.I(function(R){return R.return({isLeader:_.STE(_.Qe().getState()),c:_.EB("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.EB("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
ogS=function(){var R;_.I(function(y){if(y.nextAddress==1)return NST("APP_STATE",TSP),y.yield(_.ua().resolve(_.Np),2);R=y.yieldResult;NST("PI",function(){return _.I(function(u){return u.return(R.getVideoStats())})});
_.f$(y)})};
xmS=function(R){var y=_.yL(_.aR(_.uO.location.href));R=_.yL(_.aR(R));return _.f("kevlar_clear_non_displayable_url_params")?y==Tw(R):Tw(y)==Tw(R)};
Tw=function(R){var y=_.BSc(R);R=R.slice(0);var u=["frags"];_.f("kevlar_hide_pp_url_param")&&u.push("pp");_.f("kevlar_hide_time_continue_url_param")&&u.push("time_continue");u=_.V(u);for(var v=u.next();!v.done;v=u.next())v=v.value,R=_.vo(_.yL(R),v);return _.yL(R)+(y?"#"+y:"")};
o8=function(R,y){y=Number(y)*1E3;var u=Math.round((0,_.uQ)()),v=u.toString();R={innertubeResponse:R,serverDateTimestampMs:v,lastModifiedTimestampMs:v,expireTimestampMs:(u+y).toString()};if(y=_.EB("INNERTUBE_CONTEXT_CLIENT_NAME"))R.clientName=y;return R};
e98=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++fG4};
_.lGP=function(){var R=_.Ef(),y=_.$I();y&&R&&_.s9(y,[R],!0)};
Zq4=function(R){return R&&OqO.some(function(y){return R.includes(y)})};
WpO=function(R){var y=_.e(R,_.tc);if(!y)return!1;var u=y.url,v=y.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!u)return _.dI(Error("zh")),!1;if(y.target==="TARGET_NEW_WINDOW"){var Q={};_.f("resolve_url_parent_tracking_params")&&(!_.z7(u)||gB(window.location.href,u))&&(Q={endpoint:R,itct:R.clickTrackingParams});Jpv(Q);R=null;try{if(v)return R=_.wET(u,"_blank",Q,void 0,v),HqU(_.ua().resolve(ngU),R,u),!0}catch(B){_.dI(B)}_.uh(u,Q);y={target:"_blank",noopener:_.f("set_window_noopener_ks")&&
!y.allowOpener};R=window;v=GB(u)?u:_.Eo(typeof u.href!="undefined"?u.href:String(u));Q=self.crossOriginIsolated!==void 0;var M="strict-origin-when-cross-origin";window.Request&&(M=(new Request("/")).referrerPolicy);var K=y.noreferrer;if(Q&&K&&M==="unsafe-url")throw Error("qe");M=K&&!Q;K=y.target||u.target;var h=[],b=[],N=!1;for(x in y){var T=y[x];switch(x){case "width":case "height":case "top":case "left":h.push(x+"="+T);break;case "target":break;case "noopener":case "noreferrer":T?b.push(x):(N=!0,
b.push(x+"=false"));break;case "attributionsrc":h.push(x+(T?"="+T:""));break;default:h.push(x+"="+(T?1:0))}}var x=K!==void 0&&!["_blank","_self","_top","_parent",""].includes(K);x=n8()&&x;GES&&Q&&h.length===0&&b.length>0&&!x&&!N?(b.length===2&&(b=["noreferrer"]),_.aK(R,v,K,b[0]),R=rVP()):(x=h.join(","),_.PW()&&R.navigator&&R.navigator.standalone&&K&&K!="_self"?(x=_.o_("A"),Aq(x,v),x.target=K,M&&(x.rel="noreferrer"),((y=y.attributionsrc)||y==="")&&x.setAttribute("attributionsrc",y),y=document.createEvent("MouseEvent"),
y.initMouseEvent("click",!0,!0,R,1),x.dispatchEvent(y),R=rVP()):M?(R=_.aK(R,"",K,x),y=_.Pg(v),R&&(R.opener=null,y===""&&(y="javascript:''"),y='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+x9(y)+'">',y=pK(y),(v=R.document)&&v.write&&(v.write(tq(y)),v.close()))):((R=_.aK(R,v,K,x))&&y.noopener&&(R.opener=null),R&&y.noreferrer&&(R.opener=null)));HqU(_.ua().resolve(ngU),R,u);return!0}y=_.Fq(u);y=Zq4(y)||u==="https://studio.youtube.com/";v=!(!_.z7(u)||gB(window.location.href,
u));x=u.indexOf("disable_polymer=1")>=0;if(v||x||y)sZ(u),kF(),_.z2(u,void 0,void 0,window.top,PgO);else return _.kT(new _.OL("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",R)),!1;return!0};
_.kEz=function(R,y){y=y===void 0?0:y;if(!(_.e(R,dmU)||_.e(R,UmO)||_.e(R,_.tc)&&_.e(R,_.tc).url))return!1;var u,v=(u=_.e(R,_.tc))==null?void 0:u.url;u=v?{externalLinkData:{url:v}}:null;return _.GN().clickCommand(R,u,y)};
EgT=function(R,y){return _.TI(R.entities,"subscriptionStateEntity",y)};
$mc=function(R,y){return _.TI(R.entities,"subscriptionNotificationStateEntity",y)};
qGv=function(R,y){return _.TI(R.entities,"upcomingEventReminderStateEntity",y)};
XXU=function(R,y){return _.TI(R.entities,"engagementToolbarSurfaceEntityPayload",y)};
mmv=function(R,y){return _.TI(R.entities,"triStateButtonStateEntityPayload",y)};
AVT=function(R,y){return _.TI(R.entities,"commerceCartCheckoutButtonEntity",y)};
_.DmL=function(R,y){return _.TI(R.entities,"playlistLoopStateEntity",y)};
pXE=function(R,y){return _.TI(R.entities,"commandEntity",y)};
cVE=function(R,y,u,v,Q){Q=Q===void 0?{}:Q;return function(M){var K,h;var b=((K=R.loggingDirectives)==null?0:(h=K.clientVeSpec)==null?0:h.uiType)?_.$6(R.loggingDirectives.clientVeSpec.uiType):void 0;Q.clickedVisualElement||(Q.clickedVisualElement=b);b=tDT(R,y);u(b,M);b=_.V(b);for(K=b.next();!K.done;K=b.next()){K=K.value;h=v;var N=M,T=Q;T.form?T.form.event=N:T.form={element:h,event:N};Ey(K,T)}}};
tDT=function(R,y){var u=[];y?(R.toggledCommand&&u.push(R.toggledCommand),R.toggledServiceEndpoint&&u.push(R.toggledServiceEndpoint)):(R.defaultCommand&&u.push(R.defaultCommand),R.defaultServiceEndpoint&&u.push(R.defaultServiceEndpoint),R.defaultNavigationEndpoint&&u.push(R.defaultNavigationEndpoint));return u};
aGc=function(R,y){var u=R.toggledStyle||R.style,v;switch((v=y?u:R.style)==null?void 0:v.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"}}};
_.Bm=function(){return _.I(function(R){return R.nextAddress==1?R.yield(_.ua().resolve(_.Np),2):R.return(_.ua().resolve(SGc)())})};
_.fA=function(){return _.ua().resolve(SGc)()};
_.eo=function(){return Pu(function(){return{lottieEl:void 0}})};
YGS=function(R,y){return R.startsWith(y.uniqueId)};
LpG=function(R){var y,u;_.I(function(v){if(v.nextAddress==1)return v.yield(_.Bm(),2);y=v.yieldResult;if((u=y)==null||!u.addEventListener)return lD(),v.return();y.addEventListener("onCueRangeEnter",R);_.f$(v)})};
svS=function(R){var y,u;_.I(function(v){if(v.nextAddress==1)return v.yield(_.Bm(),2);y=v.yieldResult;if((u=y)==null||!u.removeEventListener)return lD(),v.return();y.removeEventListener("onCueRangeEnter",R);_.f$(v)})};
z9U=function(R){var y,u,v,Q,M;_.I(function(K){if(K.nextAddress==1)return K.yield(_.Bm(),2);y=K.yieldResult;if((u=y)==null||!u.addCueRange)return lD(),K.return();v=_.V(R.timings);for(Q=v.next();!Q.done;Q=v.next())M=Q.value,y.addCueRange(R.uniqueId+"-"+M,M/1E3,(M+100)/1E3);_.f$(K)})};
ggc=function(R){var y,u,v,Q,M;_.I(function(K){if(K.nextAddress==1)return K.yield(_.Bm(),2);y=K.yieldResult;if((u=y)==null||!u.removeCueRange)return lD(),K.return();v=_.V(R.timings);for(Q=v.next();!Q.done;Q=v.next())M=Q.value,y.removeCueRange(R.uniqueId+"-"+M);_.f$(K)})};
Cg8=function(){var R,y,u;return _.I(function(v){if(v.nextAddress==1)return v.yield(_.Bm(),2);R=v.yieldResult;if((y=R)==null||!y.getPlayerState)return lD(),v.return();u=R.getPlayerState();return v.return(u===2)})};
lD=function(){_.kT(new _.OL("Smartimation player does not exist or is corrupted"))};
RkW=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(y){return _.kT(new _.OL("Smartimation CSS.supports threw an error")),!1}};
JiW=function(R,y,u,v,Q){var M=R.playlistId?yi8:uyU;y=y();u=u();Q=!!R.videoId&&Q()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.Hd(y))return vwT({data:R,actionType:M,disabled:Q},u);if(R.videoId&&v())return Q5E({data:R,actionType:M,disabled:Q});switch(y){case "TRANSFER_STATE_UNKNOWN":return Q5E({data:R,actionType:M,disabled:Q});case "TRANSFER_STATE_FAILED":return R.videoId?j5U({data:R,actionType:M,disabled:Q}):MJU({data:R,actionType:M,disabled:Q});case "TRANSFER_STATE_COMPLETE":return MJU({data:R,
actionType:M,disabled:Q});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return vwT({data:R,actionType:M,disabled:Q},u);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return R.videoId?j5U({data:R,actionType:M,disabled:Q}):Q5E({data:R,actionType:M,disabled:Q});default:return Q5E({data:R,actionType:M,disabled:Q})}};
VJU=function(R,y){var u=R.onTapCommand,v=_.Sb(u);if(R.videoId&&_.e(v,_.OC))return _.e(v,_.OC).action=y,u;R.playlistId&&_.e(v,_.ZO)&&(_.e(v,_.ZO).action=y);return u};
Q5E=function(R){var y=R.data;var u=R.actionType;R=R.disabled;return{text:iHz,iconType:"OFFLINE_DOWNLOAD",onTap:VJU(y,u.ACTION_ADD),disabled:R}};
vwT=function(R,y){var u=R.data;var v=R.actionType;R=R.disabled;var Q="OFFLINE_DOWNLOAD";y>=0&&y<=.1?Q="OFFLINE_DOWNLOADING_ZERO":y>.1&&y<=.3?Q="OFFLINE_DOWNLOADING_TWENTY":y>.3&&y<=.5?Q="OFFLINE_DOWNLOADING_FORTY":y>.5&&y<=.7?Q="OFFLINE_DOWNLOADING_SIXTY":y>.7&&y<1?Q="OFFLINE_DOWNLOADING_EIGHTY":y===1&&(Q="OFFLINE_PIN");return{text:Klz,iconType:Q,onTap:VJU(u,v.ACTION_REMOVE_WITH_PROMPT),disabled:R}};
MJU=function(R){var y=R.data;var u=R.actionType;R=R.disabled;return{text:Igc,iconType:"OFFLINE_PIN",onTap:VJU(y,u.ACTION_REMOVE_WITH_PROMPT),disabled:R}};
j5U=function(R){var y=R.data;var u=R.actionType;R=R.disabled;return{text:hkS,iconType:"OFFLINE_DOWNLOAD",onTap:VJU(y,u.ACTION_RETRY),disabled:R}};
NFv=function(R){var y=bHz;FlO.push(R);w9G||(y(function(){for(var u=_.V(FlO),v=u.next();!v.done;v=u.next())v=v.value,v();FlO.length=0;w9G=!1}),w9G=!0)};
bHz=function(R){Promise.resolve().then(R)};
Hm=function(R){R=_.V(Qyv(R));var y=R.next().value,u=R.next().value,v=!1;_.rB(function(){return function(){v=!0}});
return[y,function(Q){NFv(function(){v&&!_.f("cow_prevent_state_setter_after_cleanup_killswitch")||u(Q)})}]};
_.nA=function(R,y){var u=RQv();return _.N8(function(){u();return vnT(R,[_.PT(y)||""])},{debugName:"LUZslf"},"qYSKAc")};
TFE=function(R){var y=_.nA(_.pz,function(){return R().videoId}),u=_.nA(_.tN,function(){return R().playlistId});
return function(){return R().videoId?y:R().playlistId?u:_.V(_.In("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
owG=function(R){var y=_.nA(cd,function(){return R().videoId}),u=_.nA(_.aXL,function(){return R().playlistId});
return function(){return R().videoId?y:R().playlistId?u:_.V(_.In(0,void 0,"K4tgOc")).next().value}};
xFO=function(R){var y=_.nA(_.ynE,function(){return R().videoId});
return function(){return R().videoId?y:_.V(_.In(!1,void 0,"Oaxwcf")).next().value}};
BF8=function(R){var y=_.nA(LIL,function(){return R().videoId});
return function(){return R().videoId?y:_.V(_.In("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
fgW=function(){return{}};
ek8=function(){var R,y;return(y=(R=_.ua().resolve(_.yN(_.u0)))==null?void 0:R())!=null?y:!1};
OHP=function(R,y){R=R===void 0?lgT:R;switch(y.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},R,{isOpen:y.payload});default:return R}};
HHT=function(R,y){R=R===void 0?ZHT:R;switch(y.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},R,{isAllowed:y.payload});default:return R}};
GmG=function(R,y){R=R===void 0?nwE:R;switch(y.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},R,{errorMessage:y.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},R,{title:y.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},R,{privacy:y.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},R,{isDisabled:y.payload});default:return R}};
PyL=function(R,y){R=R===void 0?riT:R;switch(y.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},R,{isOpen:y.payload});default:return R}};
dFG=function(R,y){R=R===void 0?Wl8:R;switch(y.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},R,{isFullscreen:y.payload});case "SET_NAVIGATION_BUTTON":var u=y.payload.targetId,v=Object.assign({},R.navigationButtons);v[u]=y.payload.button;return Object.assign({},R,{navigationButtons:v});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},R,{topPanelId:y.payload});case "SET_SECONDARY_HEADER":return u=y.payload.panelId,v=Object.assign({},R.secondaryHeader),v[u]=y.payload.secondaryHeader,
Object.assign({},R,{secondaryHeader:v});default:return R}};
$FS=function(){return oR(Object.assign({},{entities:vWc,voiceSearch:AnG,engagementPanel:dFG,bottomSheet:OHP,cinematicSetting:HHT,shorts:L$S,drawerLayout:PyL,createPlaylist:GmG,locationCollection:UFU,reportChannel:kmG,reportForm:EwT},siE))};
qFU=function(R,y){_.WG.addLowPriorityJob(function(){var u,v,Q;return _.I(function(M){switch(M.nextAddress){case 1:return _.wY(M,2),M.yield(d3G(),4);case 4:return M.yield(fetch(R),5);case 5:return u=M.yieldResult,M.yield(u.json(),6);case 6:v=M.yieldResult;l0.set(R,v);requestAnimationFrame(function(){y(v)});
_.c5(M,0);break;case 2:Q=_.B$(M),_.kT(Q),_.f$(M)}})})};
X9v=function(R){var y={animationConfig:{},listeners:{}},u=function(){R(!0)};
y.listeners.data_failed=u;y.listeners.error=u;y.listeners.data_ready=function(){R(!1)};
return y};
DFO=function(R){var y=R.model;var u=R.subscribed;var v=R.isOverlay;var Q=R.element;var M=R.commandController;var K=R.notificationState;if(u){var h,b;var N=(y==null?void 0:(h=y.buttonStyle)==null?void 0:h.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:y==null?void 0:(b=y.unsubscribeButtonContent)==null?void 0:b.buttonText}else{var T;N=y==null?void 0:(T=y.subscribeButtonContent)==null?void 0:T.buttonText}a:{var x;switch(y==null?void 0:(x=y.buttonStyle)==
null?void 0:x.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":h="S";break a;default:h="M"}}a:if(v)v="overlay";else switch(y.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":v="overlay";break a;default:v="mono"}a:if(u)var B="tonal";else switch((B=y.buttonStyle)==
null?void 0:B.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":B="tonal";break a;default:B="filled"}return{style:v,type:B,state:y.disableSubscribeButton?"disabled":"active",size:h,focused:R.focused,toggled:u,accessibilityLabel:mFE(y,u,K),buttonText:N,iconPosition:y.disableNotificationBell?"none":"leading-trailing",onTap:AiE(y,u,Q,M),disableTextEllipsis:!!R.disableTextEllipsis}};
AiE=function(R,y,u,v){return function(Q){if(y){var M;var K=R.disableNotificationBell?_.Sb(R==null?void 0:(M=R.unsubscribeButtonContent)==null?void 0:M.onTapCommand):_.Sb(R==null?void 0:R.onShowSubscriptionOptions)}else{var h;K=_.Sb(R==null?void 0:(h=R.subscribeButtonContent)==null?void 0:h.onTapCommand)}K&&Ey(K,{form:{element:u==null?void 0:u.value},commandController:v});Q.stopPropagation()}};
mFE=function(R,y,u){if(y){if(R==null?0:R.disableNotificationBell){var v;return R==null?void 0:(v=R.unsubscribeButtonContent)==null?void 0:v.accessibilityText}switch(u){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var Q;return R==null?void 0:(Q=R.bellAccessibilityData)==null?void 0:Q.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var M;return R==null?void 0:(M=R.bellAccessibilityData)==null?void 0:M.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var K;return R==null?void 0:(K=
R.bellAccessibilityData)==null?void 0:K.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var h;return R==null?void 0:(h=R.bellAccessibilityData)==null?void 0:h.disabledLabel;default:var b;return R==null?void 0:(b=R.unsubscribeButtonContent)==null?void 0:b.accessibilityText}}else{var N;return R==null?void 0:(N=R.subscribeButtonContent)==null?void 0:N.accessibilityText}};
p9O=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}};
tJ4=function(R,y,u){u.subscribed!==y&&((u=u.key)&&_.vy(_.Gw("subscriptionStateEntity",u,{key:u,subscribed:y})),R.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:y})),y||_.Ik(R,"yt-unsubscribe-action"))};
agS=function(R){R=_.e(_.Sb(R),_.rm);var y,u,v,Q;return(Q=_.e(R==null?void 0:(y=R.panelLoadingStrategy)==null?void 0:(u=y.inlineContent)==null?void 0:(v=u.sheetViewModel)==null?void 0:v.content,civ))==null?void 0:Q.listItems};
SFc=function(R,y){if(R.onShowSubscriptionOptions&&y&&(R=agS(R.onShowSubscriptionOptions),R!=null&&R.length)){var u=p9O(y);R.forEach(function(v){v=_.e(v,_.Pm);var Q,M,K,h,b=v==null?void 0:(Q=v.leadingImage)==null?void 0:(M=Q.sources)==null?void 0:(K=M[0])==null?void 0:(h=K.clientResource)==null?void 0:h.imageName;v&&b&&(v.isSelected=b===u)})}};
YFv=function(R,y,u,v){y&&u?R.style.width=u+"px":!y&&v&&(R.style.width=v+"px")};
LlS=function(R,y,u){var v;(v=R.lottieEl)==null||v.goToAndPlay(0);var Q;(Q=y.lottieEl)==null||Q.goToAndPlay(0);_.Wm(_.WG,function(){var M;(M=u.lottieEl)==null||M.goToAndPlay(0)},300)};
dm=function(){return _.ua().resolve(_.yN(s5v))||{}};
zkv=function(R){return typeof R==="function"};
_.UC=function(R){Object.keys(R);var y=function(u,v){var Q=y.mapping||R;if(!u)return _.F(_.vu,null);if(Array.isArray(u)&&(u=gwv(Q,y,u),Array.isArray(u))){if(!u.length)return _.F(_.vu,null);if(u.length>1){for(var M=!1,K=!1,h=[],b={},N=0;N<u.length;b={data$jscomp$1902:void 0},N++)if(b.data$jscomp$1902=u[N],b.data$jscomp$1902){var T=CyW(b.data$jscomp$1902,Q),x=T.mappingEntry;T=T.rendererName;x&&T&&(x&&(!zkv(x)&&Rjv(x)&&(K=!0),!zkv(x)&&x.asyncId||(M=!0)),h.push(ygP(b.data$jscomp$1902,x,T,y,v)))}return K&&
!M?_.F(_.vu,null,uA8()):_.F(_.vu,null,h)}u=u[0]}if(!u)return _.F(_.vu,null);u=gwv(Q,y,[u])[0];if(!u)return _.F(_.vu,null);M=CyW(u,Q);Q=M.mappingEntry;M=M.rendererName;return Q&&M?_.F(_.vu,null,ygP(u,Q,M,y,v)):_.F(_.vu,null)};
y.mapping=R;return y};
_.vtL=function(R){var y=void 0,u;for(u in R)if(R.hasOwnProperty(u)){y=u;break}return y};
gwv=function(R,y,u){var v,Q=(v=dm().preProcessOptions)==null?void 0:v.idomOptions;if(!Q)return u;dm();return Q.preProcessPropsIdom(R,u,y.triggerRerender)};
CyW=function(R,y){return(R=_.vtL(R))?{mappingEntry:y[R],rendererName:R}:{mappingEntry:void 0,rendererName:void 0}};
ygP=function(R,y,u,v,Q){if(!y)return _.F(_.vu,null);var M={};Q&&Q[u]&&(M=Object.assign({},Q[u]));R[u]!==void 0&&(M.data=R[u]);if(zkv(y))return y.debugName||(y.debugName=u),_.F(y,M);y.asyncId&&(v.pendingIdsMap=v.pendingIdsMap||{},v.pendingIdsMap[u]=y.asyncId);return y.templateFn?y.templateFn(M):Rjv(y)?uA8():_.F(_.vu,null)};
Rjv=function(R){var y;return(y=R.showPlaceholder)!=null?y:dm().defaultShowPlaceholder};
uA8=function(){var R=dm().placeholder;return R()};
QFP=function(R){R=_.e(R,_.k9);return(R==null?void 0:R.iconName)&&!(R==null?0:R.title)};
JgP=function(R,y,u){var v;return _.F(_.vu,null,R==null?void 0:(v=R.actions)==null?void 0:v.map(function(Q){return _.F("div",{class:function(){var M={"yt-flexible-actions-view-model-wiz__action":!0};M["yt-flexible-actions-view-model-wiz__action--row-action"]=y;M["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(QFP(Q))var K=!0;else if(K=_.e(Q,_.EC),(K==null?0:K.isToggled)&&QFP(K==null?void 0:K.toggledButtonViewModel)||(K==null||!K.isToggled)&&QFP(K==null?void 0:K.defaultButtonViewModel))K=
!0;else{var h;K=((h=_.e(Q,jFT))==null?0:h.playlistId)?!0:!1}M=(M["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=K,M["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=u,M);return _.Zl(M)}},MIO([Q],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!y}}))}))};
VIG=function(R){var y=R.layout===1,u,v=((u=R.data)==null?void 0:u.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";u={};v=(u["yt-flexible-actions-view-model-wiz"]=!0,u["yt-flexible-actions-view-model-wiz--inline"]=!y,u["yt-flexible-actions-view-model-wiz--scrollable"]=v,u);var Q,M;return _.F("yt-flexible-actions-view-model",{class:_.Zl(R.className,v)},(Q=R.data)==null?void 0:(M=Q.actionsRows)==null?void 0:M.map(function(K){if(y){var h;return _.F("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
JgP(K,y,!((h=R.data)==null||!h.respectActionIntrinsicWidth)))}return JgP(K,y,!1)}))};
imE=function(R,y){y=y===void 0?{shouldPersist:!0}:y;return{useUpdatableData:function(u,v){var Q=[],M=_.V(_.rW(function(){var N=u();if(v!=null&&v.length&&Q){var T=Q.length>0;for(var x=!1,B=0;B<v.length;B++){var l=v[B]();T&&l!==Q[B]&&(x=!0);Q[B]=l}T=x}else T=!1;if(T)_.$9.remove(b());else if(T=_.$9.get(b()))return T;return N})),K=M.next().value,h=M.next().value,b=_.N8(function(){return R(u())},void 0,"VFraLb");
_.ny(function(){if(b()!=null){qp.set(b(),[K,h,!1]);var N=b();_.GF(function(){qp.delete(N)})}},"Fdafud");
return[K,function(N){h(N);y.shouldPersist&&_.$9.set(b(),N)}]},
getData:function(u){var v;return(v=qp.get(R(u)))==null?void 0:v[0]()},
updateData:function(u,v){u=R(u);var Q=qp.get(u);if(!Q)return!1;var M=_.V(Q);Q=M.next().value;M=M.next().value;v=v(Q());M(v);y.shouldPersist&&_.$9.set(u,v);return!0},
useUpdatableDataIdom:function(u,v){var Q=R(u),M=_.$9.get(Q),K=_.V(Hm(M!=null?M:u)),h=K.next().value,b=K.next().value,N=Wu(M!=null?M:u);_.G7(function(){if(Q!=null)return qp.set(Q,[function(){return N.value},
function(T){b(T);N.value=T},
qp.has(Q)]),_.WG.addJob(function(){_.Xs(_.WG,function(){var T=qp.get(Q);T&&(T[2]=!1)},0)},8),function(){var T;
((T=qp.get(Q))==null?0:T[2])||qp.delete(Q)}},[Q]);
_.G7(function(){h!==u&&(b(u),N.value=u)},v?[].concat(_.P$(v),[Q]):[Q]);
return[h,b]}}};
KUL=function(R){var y=_.V(_.In(!0,void 0,"bKtO6d")),u=y.next().value;y.next();return function(){var v=Ns(R.children());return _.F(_.w,{cond:u,then:function(){return v},
else:R.fallback})}()};
_.mk=function(R){var y=Ifv(R),u=y.data,v=y.mapping,Q=y.wrapper;y=y.pendingFallback;var M=function(){return hj8(_.PT(u))},K=function(){var h=M(),b=[];
h=_.V(h);for(var N=h.next();!N.done;N=h.next()){var T=void 0;N=N.value;var x=void 0;for(T in N)if(!(!N).hasOwnProperty(T)){x=T;break}(T=x)&&b.push(T)}return b};
return R.data?_.F(KUL,{fallback:y},function(){return _.F(_.eS,{each:K},function(h,b){var N=Q?function(x){return Q(function(){return v[h](x,b)},T,b)}:function(x){return v[h](x,b)};
N.debugName||(N.debugName=String(h));if(!v[String(h)])return document.createComment("");N.componentType!==l$&&bmU(String(h));var T=FUG(M,h,b);return _.F(N,{data:T})})}):_.F(_.vu,null)};
Ifv=function(R){var y=R.targetId||wzE(R.children);if(!R.data||!y||_.f("mweb_new_replaceables_killswitch"))return Object.assign({},R,{mapping:R.children,wrapper:void 0});var u="stamper-"+N8W++,v=function(){var h;return(h=typeof R.targetId==="function"?R.targetId(u):R.targetId)!=null?h:u};
y=_.V(T8U(function(){var h=hj8(R.data());h.targetId=v;return h})).next().value;
var Q=Object.assign({},dm().replaceableMapping,R.children);if(R.replacementWrapper){var M=Q.notificationTextRenderer,K=Q.notificationMultiActionRenderer;M&&(Q.notificationTextRenderer=function(h,b){return R.replacementWrapper(M({data:h.data},b))});
K&&(Q.notificationMultiActionRenderer=function(h,b){return R.replacementWrapper(K({data:h.data},b))})}return Object.assign({},R,{data:y,
mapping:Q,wrapper:function(h,b,N){return OeU({targetId:v,stamperIndex:N},h)}})};
FUG=function(R,y,u){var v;return _.N8(function(){var Q=R()[u()];if(Q)v=Q[y];else return _.kT(new _.OL("Stamper failed to find "+String(y)+" at index "+u()+" of data array of length "+(R().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),v;return Q[y]},void 0,"wgRPHd")};
wzE=function(R){R=_.V(Object.keys(R));for(var y=R.next();!y.done;y=R.next())if(y=y.value,ot8.includes(y)||xlT.includes(y)||B8U.includes(y))return!0;return!1};
hj8=function(R){return R?Array.isArray(R)?R:[R]:[]};
bmU=function(R){if(_.f("web_enable_renderer_logger")){var y;(y=_.ua().resolve(_.yN(ffv)))!=null&&y.loggingEnabled&&!y.ids.has(R)&&y.ids.add(R)}};
ejP=function(R){return!(R==null||!R.iconName||(R==null?0:R.title))};
lfS=function(R,y,u,v){u&&_.WG.cancelJob(u);u=_.WG.addLowPriorityJob(function(){v(void 0)},5E3);
v(u);y&&R!==(y.likeStatus==="LIKE")&&y.key&&_.vy(_.Gw("likeStatusEntity",y.key,{key:y.key,likeStatus:R?"LIKE":"INDIFFERENT",hadUserInteraction:R}))};
_.OmS=function(R,y){return _.TI(R.entities,"accountLinkStatusEntity",y)};
ZmU=function(R,y){return _.TI(R.entities,"hatsSurveyEntity",y)};
Hm4=function(R,y){return _.TI(R.entities,"hatsSurveyStateEntity",y)};
ntS=function(R,y){return _.TI(R.entities,"quantityIncrementerEntity",y)};
GGO=function(R){switch(R){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;default:return 0}};
rgv=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}};
PKS=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--promoted-inverted";case 5:return"badge-shape-wiz--timely";case 6:return"badge-shape-wiz--premium";case 7:return"badge-shape-wiz--sale";case 8:return"badge-shape-wiz--membership";case 9:return"badge-shape-wiz--commerce";case 11:return"badge-shape-wiz--live";case 12:return"badge-shape-wiz--status-new";case 13:return"badge-shape-wiz--status-complete";
case 14:return"badge-shape-wiz--status-warning";case 15:return"badge-shape-wiz--status-error";case 16:return"badge-shape-wiz--status-default";case 17:return"badge-shape-wiz--thumbnail-default";case 18:return"badge-shape-wiz--thumbnail-live";case 19:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.dlW=function(R){var y=_.JT("web_generic_client_event_wait_period ",0);y||(y=3E5);var u=WUW.get(R);!_.f("enable_web_client_experiment_event_timeout_killswitch")&&u&&(0,_.uQ)()-u<y||(WUW.set(R,(0,_.uQ)()),_.P3("genericClientExperimentEvent",{eventType:R}))};
UlL=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""}};
kGU=function(R){if(!R)return"";var y,u=(y=_.ua().resolve(_.yN(_.u0)))==null?void 0:y(),v;if(!u&&((v=R.vibrantColorPalette)==null?0:v.iconInactiveColor))return Yv(R.vibrantColorPalette.iconInactiveColor,"1");var Q;return u&&((Q=R.darkColorPalette)==null?0:Q.iconInactiveColor)?Yv(R.darkColorPalette.iconInactiveColor,"1"):R.color?Yv(R.color,"1"):R.sampledThumbnailColor?(R=R.sampledThumbnailColor,"rgba("+R.red+","+R.green+","+R.blue+");"):""};
_.DO=function(R,y){if(!R.includes("DATE_PLACEHOLDER"))return R;var u=new Date(0);u.setUTCSeconds(y);return R.replace("DATE_PLACEHOLDER",EtG(u))};
$lG=function(R,y,u){return function(v){var Q=R.command;Q&&(Ey(Q,{form:{element:u}}),y([Q],v))}};
XzU=function(R,y,u,v,Q){return function(M){var K=qEO(R,y);K&&Ey(K,{form:{element:u},commandController:v});Q&&M.stopPropagation()}};
qEO=function(R,y){if(R.signInEndpoint&&!_.f("web_subscribe_sign_in_endpoint_killswitch"))return R.signInEndpoint;if(y){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]}};
mlU=function(R,y){var u,v,Q,M;y=y&&((u=R.unsubscribeAccessibility)==null?void 0:(v=u.accessibilityData)==null?void 0:v.label)||((Q=R.subscribeAccessibility)==null?void 0:(M=Q.accessibilityData)==null?void 0:M.label);return R.longSubscriberCountText?[y,_.u7(R.longSubscriberCountText)].filter(function(K){return K}).join(" "):y};
pA=function(R,y){return y||(R==null?0:R.isChannelDelegate)?"disabled":"active"};
AgL=function(R,y){var u;switch((u=R.style)==null?void 0:u.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:pA(R)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:pA(R)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:pA(R,!0)};case "OVERLAY":return y?{style:"overlay",type:"tonal",state:pA(R)}:{style:"overlay",type:"filled",state:pA(R)};default:return y?{style:"mono",type:"tonal",state:pA(R)}:{style:"mono",type:"filled",state:pA(R)}}};
Dlv=function(R){switch(R){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
pzU=function(R){switch(R){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
tI8=function(R,y){var u=R.map(function(v){return v.toString()});
return _.nh(function(v){if(u.includes(v.key)){y&&v.preventDefault();var Q;(Q=v.currentTarget)==null||Q.click()}})};
_.cgU=function(){return tI8(["Enter"])};
_.af8=function(){return tI8(["Enter"," "],!0)};
_.tF=function(R){if(R.composedPath)return R.composedPath();if(!R.__composedPath){for(var y=[],u=R.target;u;)y.push(u),u=u.parentNode;y.push(window);R.__composedPath=y}return R.__composedPath};
_.cm=function(R,y,u){R=_.V(R);for(var v=R.next();!v.done;v=R.next()){v=v.value;if(v===y)break;for(var Q=_.V(u),M=Q.next();!M.done;M=Q.next())if(M=M.value,v.tagName===M||v.role==="button"&&M==="BUTTON")return!0}return!1};
YEG=function(R,y){var u,v=(u=y.observer)!=null?u:_.ua().resolve(uN);if(R){u=SEP(R);var Q=[];y.showOption&&Q.push(v.observe(R,function(){y.visibilityCallback(!0,R)},y.showOption));
y.hideOption&&Q.push(v.observe(R,function(){y.visibilityCallback(!1,R)},y.hideOption));
y.prescanOption&&y.prescanCallback&&Q.push(v.observe(R,function(){y.prescanCallback()},y.prescanOption));
var M;u.visibilityMonitorKeys=((M=u.visibilityMonitorKeys)!=null?M:[]).concat(Q)}};
SEP=function(R){var y;return(y=R.polymerController)!=null?y:R};
_.So=function(R){return!!_.a8(R)};
_.Y9=function(R,y,u,v,Q){return function(M){var K=_.lb4();_.ny(function(){if(M){_.LUE(M,R(),Q);var h=_.sFT(M,R(),y,u,v,K);_.GF(h)}},"nr377e")}};
_.LUE=function(R,y,u){var v=zjc(y),Q=gtG(y);y=v&&CKv;var M=Q&&RV4;(v||Q)&&YEG(R,{visibilityCallback:function(K){var h=_.ua().resolve(_.jX);K&&v?h.resolveCommand(v,{form:{element:u?R:void 0},disableClickTracking:!0}):!K&&Q&&h.resolveCommand(Q,{form:{element:u?R:void 0},disableClickTracking:!0})},
showOption:y,hideOption:M})};
_.sFT=function(R,y,u,v,Q,M){var K=new Map;if(y=_.a8(y)){var h;R=(v==null?void 0:(h=v.onTap)==null?void 0:h.value)||R;u=yYc(y,R,u==null?void 0:u.onTap,Q,M);R.addEventListener("click",u);K.set("click",u)}return function(){for(var b=_.V(K),N=b.next();!N.done;N=b.next()){var T=_.V(N.value);N=T.next().value;T=T.next().value;R.removeEventListener(N,T)}}};
_.a8=function(R){var y;return(R=(y=_.e(R,uZT))==null?void 0:y.onTap)&&_.Sb(R)};
zjc=function(R){var y;return(R=(y=_.e(R,uZT))==null?void 0:y.onVisible)&&_.Sb(R)};
gtG=function(R){var y;return(R=(y=_.e(R,uZT))==null?void 0:y.onHidden)&&_.Sb(R)};
yYc=function(R,y,u,v,Q){var M=function(h){_.ua().resolve(_.jX).resolveCommand(R,h)},K=function(h){v&&_.cm(_.tF(h),y,v)||M(h.target?{form:{element:h.target,
sourceData:R,mutationContext:Q}}:void 0)};
u&&(K=function(h){u(h,M)});
return K};
v3z=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}};
QtT=function(R){var y=R.numAvatarsInCluster;switch(R.clusterSize){case "small":return y===2?22:18;case "40":return y===2?24:22;default:return y===2?24:20}};
jtU=function(R,y){return function(u){var v=Object.keys(y);_.ny(function(){if(R!=null&&R()){for(var Q=_.V(v),M=Q.next();!M.done;M=Q.next())M=M.value,u.addEventListener(M,y[M]);_.GF(function(){for(var K=_.V(v),h=K.next();!h.done;h=K.next())h=h.value,u.removeEventListener(h,y[h])})}},"bXZGfe")}};
MkT=function(R){switch(QtT(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""}};
JYT=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""}};
VkP=function(R){switch(QtT(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""}};
i1z=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""}};
KDc=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}};
ICU=function(R){return R==="medium"||R==="48"||R==="large"||R==="extra-large"||R==="extra-extra-large"||R==="giant"};
hVL=function(R){return!!((R==null?0:R.includes(3))||(R==null?0:R.includes(5)))};
FDT=function(R){return{size:b1T(R.data.avatarImageSize),onTap:R.onTap,decorations:R.decorations||[],badgeText:R.badgeText,accessibilityText:R.accessibilityText,avatarButtonCustomClassName:R.avatarButtonCustomClassName,clusterLayoutConfig:R.clusterLayoutConfig}};
b1T=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"}};
wjT=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_40":return 40;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
NOS=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""}};
TOP=function(R){var y=R.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",u,v=R.avatars&&R.avatars.length>0?(u=_.e(R.avatars[0],_.LA))==null?void 0:u.avatarImageSize:"AVATAR_SIZE_UNKNOWN";u=wjT(v)||0;if(y){var Q,M=(Q=R.avatarClusterSize)!=null?Q:"AVATAR_SIZE_M";y=wjT(M);var K,h,b=Math.min((h=(K=R.avatars)==null?void 0:K.length)!=null?h:0,4),N;return{avatars:((N=R.avatars)==null?void 0:N.slice(0,4))||[],avatarSizeInPx:u,avatarStackStyle:{width:y+"px",height:y+"px",position:"relative"},avatarStyle:function(x){var B=
QtT({clusterSize:b1T(M),numAvatarsInCluster:b,avatarIndex:x});var l=wjT(M);b===3&&x===2?(l=(l-B)/2,l=(_.EB("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*l):l=void 0;return{position:"absolute",top:b===2&&x===1||b===3&&x===2||b===4&&x>=2?"0":void 0,bottom:b===2&&x===0||b>2&&x<2?"0":void 0,left:b===2&&x===1||b>2&&(x===1||x===3)?"0":void 0,right:b<=3&&x===0||b===4&&(x===0||x===2)?"0":void 0,transform:l?"translateX("+l+"px)":void 0,width:B+"px",height:B+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(x){return{clusterSize:b1T(R.avatarClusterSize),numAvatarsInCluster:b,avatarIndex:x}},
avatarButtonCustomClassName:void 0}}var T;return{avatars:((T=R.avatars)==null?void 0:T.slice())||[],avatarSizeInPx:u,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:NOS(v),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
o3T=function(R,y,u){return function(){Ey(R,{form:{element:y},commandController:u})}};
xxG=function(R){switch(R){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
BOE=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"}};
fCP=function(R){var y=R.data;R=R.hidden===void 0?!1:R.hidden;var u={};R={class:_.Zl("yt-page-indicator-view-model",(u["yt-page-indicator-view-model__indicator--hidden"]=!y.indicatorCount,u)),hidden:R};if(y.indicatorCount){u=[];for(var v=0;v<y.indicatorCount;v++){var Q={};Q=_.Zl("yt-page-indicator-view-model__indicator",(Q["yt-page-indicator-view-model__indicator--selected"]=y.selectedIndex===v,Q));u.push(_.F("div",{class:Q}))}y=_.F(_.vu,null,u)}else y=_.F(_.vu,null);return _.F("yt-page-indicator-view-model",
R,y)};
lCv=function(R){R&&(eVv(R)?delete R.inlinePlayerData:"inlinePlaybackEndpoint"in R&&delete R.inlinePlaybackEndpoint)};
O1z=function(R){if("accessibilityText"in R)return R.accessibilityText||"";if("title"in R){var y,u,v;return((y=R.title)==null?void 0:(u=y.accessibility)==null?void 0:(v=u.accessibilityData)==null?void 0:v.label)||""}if("accessibility"in R){var Q,M;return((Q=R.accessibility)==null?void 0:(M=Q.accessibilityData)==null?void 0:M.label)||""}return""};
eVv=function(R){return"inlinePlayerData"in R};
sC=function(R){return new Z1G(R)};
H1L=function(R){var y=R.data;R=_.nh(function(){var Q=_.e(y.onTap,_.ac);Q&&_.ua().resolve(_.jX).resolveCommand(Q);return!1});
var u={sources:[{url:y.thumbnailUrl,width:120,height:90}]},v=y.rating&&y.ratingA11yLabel&&y.reviewsCount&&y.reviewsCountA11yLabel;return _.F("place-data-view-model",null,y.placeName&&y.placeCategory?_.F("div",{class:"yt-spec-place-data-view-model-shape","on:click":R},_.F(_.MR,{data:u,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.F(_.zw,{className:"yt-spec-place-data-view-model-shape__place-link",command:y.onTap},_.F("h3",{class:"yt-spec-place-data-view-model-shape__name",
title:y.placeName},y.placeName)),_.F("div",{class:"yt-spec-place-data-view-model-shape__metadata"},v?_.F("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.F("span",{class:"score",title:y.ratingA11yLabel},y.rating),_.F("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.F(_.W_,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.F("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",
title:y.reviewsCountA11yLabel},y.reviewsCount)):_.F("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.F("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.F("span",{class:"category",title:y.placeCategory},y.placeCategory)))):null)};
n3S=function(R){return function(y){R&&(R.thumbnailElRef=y.thumbnailElRef,R.thumbnail=y.thumbnail,R.thumbnailOverlays=y.thumbnailOverlays,R.thumbnailSize=y.thumbnailSize)}};
G14=function(R){var y;return(y=R.sharedUi)==null?void 0:y.animatedThumbnailEnabled};
rYE=function(R){var y;return(y=R.sharedUi)==null?void 0:y.inlinePreviewEnabled};
_.PSS=function(R){var y;return(y=R.sharedUi)==null?void 0:y.currentPageSubType};
WDL=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"}};
UxG=function(R){var y=_.V(_.In(!1,void 0,"RIOonf")),u=y.next().value,v=y.next().value;_.rB(function(){var Q=R==null?void 0:R();if(Q){var M=_.ua().resolve(_.yN(dxU));if(M){var K={triggeringElement:Q,onDwellTriggeredFn:function(){v(!0)},
onDwellEndFn:function(){v(!1)}};
M.registerElement(K);_.GF(function(){_.gm(M,K)})}}});
return u};
k1z=function(R,y,u){u?u(y):_.zN(y,R.target?{form:{element:R.target}}:void 0)};
_.CA=function(R,y,u){return function(v){_.ny(function(){var Q=new Map,M,K=(M=R())==null?void 0:M.onTap;K&&(M=function(h){a:{var b=h.composedPath();b=_.V(b);for(var N=b.next();!N.done;N=b.next()){N=N.value;if(N===v)break;if(N.className.indexOf("HostIsClickableAdComponent")>=0||N.tagName==="A".toString()||N.tagName==="BUTTON".toString()){b=!0;break a}}b=!1}b||k1z(h,K,y)},(u==null?0:u())||_.f("enable_web_home_top_landscape_image_layout_level_click")?(v.addEventListener("tap",M),Q.set("tap",M)):(v.addEventListener("click",
M),Q.set("click",M)));
_.GF(function(){for(var h=_.V(Q),b=h.next();!b.done;b=h.next()){var N=_.V(b.value);b=N.next().value;N=N.next().value;v.removeEventListener(b,N)}})},"NMyqj")}};
E38=function(R,y){var u,v=(u=R.interaction)==null?void 0:u.onTap;if(R=_.Lk({elementsCommand:v,forceNewState:!0,skipOnClick:!0}))return R.onclick=function(Q){e1L(Q)&&(Q.preventDefault(),v&&k1z(Q,v,y))},s4(R)?R:void 0};
$xU=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"}};
q1v=function(R){switch(R){case "AD_BUTTON_STYLE_OVERLAY":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":case "AD_BUTTON_STYLE_MONO_FILLED":case "AD_BUTTON_STYLE_MONO_TONAL":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
XjO=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"}};
_.mxG=function(R){return _.f("rich_grid_enable_dynamic_offset")&&R?Math.max(Math.round((R-_.JT("rich_grid_dynamic_offset_anchor_width",1300))/100*_.JT("rich_grid_dynamic_offset_offset_per_100",10)),_.JT("rich_grid_dynamic_offset_lower_bound",-60)):0};
AYO=function(R,y){switch(y){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}};
Dx4=function(R){var y=R.originalContainerWidth;var u=R.sizing;var v=R.standardUnit;if(R.isCompactList&&y<528)return 1;switch(u){case "STANDARD":return v;case "COMPACT":return v+1;case "EXTRA_COMPACT":return _.f("web_responsive_extra_compact_2x")?v*2:_.f("web_responsive_current")?v===1?2:v%2===0?v/2*3:v+2:v<4?v*2:Math.ceil(v*3/2);case "MINI":return v>1?v*2:3;default:return v}};
tkc=function(R){var y=R.containerWidth;var u=R.peek;var v=R.gutter;var Q=R.numItems;R=R.ignoreMaxWidthLimit;y=u?Math.max((y-u-v*Q)/Q,0):Math.max((y-v*(Q-1))/Q,0);return R?y:Math.min(y,pjW)};
_.Ry=function(R){var y=R.containerWidth;var u=R.hasPeek;var v=R.sizing;var Q=R.marginSettings;var M=R.isCompactList;var K=R.enableFullBleedForSingleCol;var h=R.standardUnitMinWidth;v=v||"STANDARD";u=!!u;R=y>=528?16:8;var b=u?y>=528?48:24:0;Q=AYO(y,Q);var N=Math.max(y-Q*2,0);h=_.f("kevlar_disable_min_width_override")?void 0:h;h=Math.min(Math.max(Math.floor((N-b+R)/((h!=null?h:cYU)+_.mxG(y)+R)),1),6);var T=(K=!!K&&h===1)||h===1&&v!=="STANDARD";u=u||T?N:Math.min(N,(pjW+R)*h-R);v=Dx4({originalContainerWidth:y,
sizing:v,standardUnit:h,isCompactList:M});return{itemWidth:tkc({containerWidth:u,peek:b,gutter:R,numItems:v,ignoreMaxWidthLimit:T}),gutter:R,maxContainerWidth:u,numItems:v,margin:K?0:Q,contentMargin:AYO(y,1),typographyBump:tkc({containerWidth:u,peek:b,gutter:R,numItems:h,ignoreMaxWidthLimit:T})>400&&!(M&&y<528),standardUnit:h}};
aCG=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"}};
_.S1T=function(R){if(R){var y;if((y=R.responsiveContainerConfiguration)==null?0:y.responsiveSize)return aCG(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"}}};
Y1v=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}};
g3v=function(R,y,u,v,Q,M,K,h){a:if(R===4&&v==="LOCKUP_CONTENT_TYPE_SOURCE")var b=1;else switch(R){case 3:b=1;break a;default:b=0}a:switch(R){case 4:M=!!(M&&M<100);break a;default:M=!1}a:switch(R){case 3:case 4:var N=v==="LOCKUP_CONTENT_TYPE_CHANNEL"||v==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:N=!1}a:switch(R){case 5:var T=!0;break a;case 4:T=!1;break a;default:T=!1}return{isOverlay:T,isCard:LDW(v,K),sizing:y!=null?y:"STANDARD",typographyBump:u!=null?u:!1,isTiny:M,isCentered:N,isCollection:stO(v),
arrangement:b,addMarginForFullbleed:R===1&&v!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:R===1&&v==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:zVU(v,Q,h),disableRounding:R===5||LDW(v,K)||R===1&&v==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:stO(v)?2:0,useLegacyTypography:!(h==null||!h.useLegacyTypography),useRichGridLegacyTypography:!(h==null||!h.useRichGridLegacyTypography)&&!_.f("web_enable_typography_bump"),compactMetadata:b===0&&v==="LOCKUP_CONTENT_TYPE_VIDEO"}};
stO=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}};
LDW=function(R,y){if(y&&R==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(R){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
zVU=function(R,y,u){if(y&&(u==null||!u.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}};
CSG=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"}};
RZU=function(R){switch(R){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;default:return 0}};
yJ4=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}};
_.yM=function(R){if(R){var y;return((y=_.ua().resolve(_.yN(_.u0)))==null?0:y())?R.darkThemeImage:R.image}};
QWT=function(R,y,u,v,Q,M){if(Q&&M&&y==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:Q,height:M};if(!u)return{};Q=u.size;u=u.allowFullWidth;if(y==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&u)return{fullWidth:!0};if(Q===void 0)return{};switch(R){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:Q,height:Q};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:Q,height:1/uzO*Q};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:Q*
vr4,height:Q};default:return(v==null?0:v.height)&&(v==null?0:v.width)?v.width/v.height>1?{maxWidth:Q*vr4}:{maxWidth:Q}:{maxWidth:Q}}};
jW4=function(R){var y;return R&&((y=_.yM(R.themedImage))!=null?y:R.image)};
MTO=function(R){var y;return R==null?void 0:(y=R.sources)==null?void 0:y[0]};
JJc=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"}};
_.VTL=function(R){if(R)return"content-id-"+R};
ibv=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"}}};
K0E=function(R){var y=_.PSS(_.uX().getState())||"";return R?R+y:""};
IpL=function(R){switch(R){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
bbW=function(R){var y=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],u=_.V(_.In(void 0,void 0,"JrqNsb")),v=u.next().value,Q=u.next().value,M=_.V(_.In(void 0,void 0,"rWytse"));u=M.next().value;var K=M.next().value;M=_.V(_.In(void 0,void 0,"DHRqxe"));var h=M.next().value,b=M.next().value;return{touchFeedbackEvents:{pointerUpEvent:v,pointerDownEvent:u,pointerLeaveEvent:h},touchFeedbackOnPointerUp:_.nh(function(N){hZE(_.tF(N),y)||(Q(N),K(void 0),b(void 0))}),
touchFeedbackOnPointerDown:_.nh(function(N){R==null||R(N);hZE(_.tF(N),y)||(K(N),Q(void 0),b(void 0))}),
touchFeedbackOnPointerLeave:_.nh(function(N){hZE(_.tF(N),y)||(b(N),K(void 0),Q(void 0))})}};
hZE=function(R,y){y=y===void 0?[]:y;y=[].concat(_.P$(y),["BUTTON".toString()]);R=_.V(R);for(var u=R.next();!u.done;u=R.next()){u=u.value;for(var v=_.V(y),Q=v.next();!Q.done;Q=v.next())if(u.tagName===Q.value)return!0}return!1};
F0T=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"}};
wk8=function(R){return R.scrollHeight-R.offsetHeight>1};
ND4=function(R,y){var u;return yX(R,((u=R.content)==null?void 0:u.length)||0,!y)};
TDc=function(R,y){y=ND4(R,y);var u,v;return(((u=R.content)==null?void 0:u.length)||0)>(((v=y.content)==null?void 0:v.length)||0)};
xjG=function(R,y,u,v,Q,M){if(!y||uG){var K;return yX(R,((K=R.content)==null?void 0:K.length)||0,!0)}y=v.value;if(!u.value||!y||!R.content)return R;u=0;v=R.content.length;K=0;orE||(orE=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var h=orE;for(Q=Q*M*h;u<=v;)M=Math.floor(u+(v-u)/2),h=yX(R,M)||R,y.firstChild&&(y.firstChild.textContent=h.content),y.scrollHeight>Q?v=M-1:(K=M,u=M+1);return yX(R,K)};
BDG=function(R,y){var u,v;return(((u=R.content)==null?void 0:u.length)||0)>(((v=y.content)==null?void 0:v.length)||0)};
fpz=function(R){var y=R.isTruncated;var u=R.isAbsoluteButton;var v=R.lineHeight;var Q=R.contentRef.value,M=R.placeholderTruncationTextRef.value,K=R.truncationTextRef.value;R=R.appDirection==="rtl";if(Q&&M){var h=M.offsetLeft;R&&(h=Q.offsetWidth-M.offsetWidth-M.offsetLeft);if(y){y=M.offsetWidth;M=Q.offsetWidth;var b=u?M-y-70:h-70;v="linear-gradient(\n      to top, transparent 0%,\n      transparent "+v+"rem,\n      #000 "+v+"rem,\n      #000 100%), linear-gradient(\n      to "+((R?"left":"right")+
",\n      #000 0px,\n      #000 "+b+"px,\n      transparent "+(u?M-y:b+70)+"px)");Q.style.setProperty("-webkit-mask-image",v);Q.style.setProperty("mask-image",v)}else Q.style.setProperty("-webkit-mask-image",""),Q.style.setProperty("mask-image","");u?R?(K.style.setProperty("left","0"),K.style.setProperty("right","unset")):(K.style.setProperty("left",""),K.style.setProperty("right","0")):R?(K.style.setProperty("left","unset"),K.style.setProperty("right",h+"px")):(K.style.setProperty("left",h+"px"),
K.style.setProperty("right","unset"))}};
eZ8=function(R,y,u,v,Q){var M=_.sh("truncated-text-content"),K=_.sh("truncated-text-content"),h=_.sh("button"),b=_.sh("button"),N=_.sh("button"),T=_.ua().resolve(_.QX),x=_.V(Hm(ND4(R,Q))),B=x.next().value,l=x.next().value;x=_.V(Hm(_.f("enable_truncated_text_max_lines")?BDG(R,B):TDc(R,Q)));var Z=x.next().value,P=x.next().value,k=Wu(null);_.G7(function(){function E(){if(M.value&&h.value&&N.value)if(_.f("enable_truncated_text_max_lines")){var c=xjG(R,Q,M,K,y,u);l(c);v||requestAnimationFrame(function(){if(M.value&&
h.value&&N.value){var a=wk8(M.value)||BDG(R,c);P(a);fpz({isTruncated:a,isAbsoluteButton:wk8(M.value),lineHeight:u,contentRef:M,placeholderTruncationTextRef:h,truncationTextRef:N,appDirection:T})}})}else l(ND4(R,Q)),requestAnimationFrame(function(){if(M.value&&h.value&&N.value)if(wk8(M.value))P(!0),v||fpz({isTruncated:!0,
isAbsoluteButton:!0,lineHeight:u,contentRef:M,placeholderTruncationTextRef:h,truncationTextRef:N,appDirection:T});else{var a=TDc(R,Q);P(a);v||fpz({isTruncated:a,isAbsoluteButton:!1,lineHeight:u,contentRef:M,placeholderTruncationTextRef:h,truncationTextRef:N,appDirection:T})}})}
var D,z;(D=k.value)==null||(z=D.stop)==null||z.call(D);D=new _.v2(E,17);E();k.value=D},[R.content,
y,u,T,v,Q]);_.rB(function(){var E=function(){orE=void 0;var z,c;(z=k.value)==null||(c=z.fire)==null||c.call(z)};
if(window.ResizeObserver){var D=new ResizeObserver(E);D.observe(M.value);return function(){var z,c;(z=k.value)==null||(c=z.stop)==null||c.call(z);D.disconnect()}}window.addEventListener("resize",E);
return function(){var z,c;(z=k.value)==null||(c=z.stop)==null||c.call(z);window.removeEventListener("resize",E)}});
return{isTruncated:Z,displayText:B,contentRef:M,hiddenRef:K,placeholderTruncationTextRef:h,hiddenTruncationTextRef:b,truncationTextRef:N}};
lpS=function(R){var y=R.text;var u=R.alwaysShowTruncationText;var v=R.truncationText;var Q=R.onTextClick;var M=R.maxLines===void 0?2:R.maxLines;var K=R.disableTextMask===void 0?!1:R.disableTextMask;var h=R.textStyle===void 0?"default":R.textStyle;var b=R.accessibilityLabel===void 0?"":R.accessibilityLabel;var N=R.textSize===void 0?"small":R.textSize;var T=R.alwaysTruncateAtMaxLines===void 0?!1:R.alwaysTruncateAtMaxLines;var x=R.expandOnClick===void 0?!1:R.expandOnClick;R=_.V(Hm(!1));var B=R.next().value,
l=R.next().value;R=_.nh(function(){x&&l(!B);Q==null||Q()});
a:switch(N){case "medium":var Z=2;break a;case "large":Z=2.2;break a;default:Z=1.8}var P=eZ8(y,B?Infinity:M,Z,K,T),k=P.isTruncated;y=P.displayText;T=P.contentRef;var E=P.hiddenRef,D=P.placeholderTruncationTextRef,z=P.hiddenTruncationTextRef;P=P.truncationTextRef;var c={};u=_.Zl((c["truncated-text-wiz__absolute-button"]=!K,c["truncated-text-wiz__bottom-button"]=K,c["truncated-text-wiz--hidden"]=!(!B&&(u||k)),c));K={};h=_.Zl((K["truncated-text-wiz"]=!0,K["truncated-text-wiz--overlay"]=h==="overlay",
K["truncated-text-wiz--medium-text"]=N==="medium",K["truncated-text-wiz--large-text"]=N==="large",K["truncated-text-wiz--primary-text"]=h==="primary-text",K));N={};N=_.Zl((N["truncated-text-wiz__truncated-text-content"]=!0,N["truncated-text-wiz__truncated-text-content--hidden-text-content"]=!0,N));return _.F("truncated-text",{class:h,"on:click":R,style:"line-height: "+Z+"rem;"},_.F("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",el:T,style:B?"":"max-height: "+M*Z+"rem;"},
_.F(_.QM,{text:y}),_.F("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:D,style:"line-height: "+Z+"rem;"},_.F(_.QM,{text:v}))),_.F("truncated-text-content",{class:N,el:E,style:B?"":"max-height: "+M*Z+"rem;","aria-hidden":"true"},_.F(_.QM,{text:y}),_.F("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:z,style:"line-height: "+Z+"rem;"},_.F(_.QM,{text:v}))),_.F("button",{"aria-label":b,class:u,el:P,style:"line-height: "+Z+"rem;"},
_.F(_.QM,{text:v})))};
Obc=function(R){return R.scrollHeight-R.offsetHeight>1};
ZbU=function(R,y){var u;return yX(R,((u=R.content)==null?void 0:u.length)||0,!y)};
Hb4=function(R,y){y=ZbU(R,y);var u,v;return(((u=R.content)==null?void 0:u.length)||0)>(((v=y.content)==null?void 0:v.length)||0)};
Gfv=function(R,y,u,v,Q,M){if(!y||uG){var K;return yX(R,((K=R.content)==null?void 0:K.length)||0,!0)}y=v.value;if(!u.value||!y||!R.content)return R;u=0;v=R.content.length;K=0;nrL||(nrL=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var h=nrL;for(Q=Q*M*h;u<=v;)M=Math.floor(u+(v-u)/2),h=yX(R,M)||R,y.firstChild&&(y.firstChild.textContent=h.content),y.scrollHeight>Q?v=M-1:(K=M,u=M+1);return yX(R,K)};
rJT=function(R,y){var u,v;return(((u=R.content)==null?void 0:u.length)||0)>(((v=y.content)==null?void 0:v.length)||0)};
PwO=function(R){var y=R.isTruncated;var u=R.isAbsoluteButton;var v=R.lineHeight;var Q=R.contentRef.value,M=R.placeholderTruncationTextRef.value,K=R.truncationTextRef.value;R=R.appDirection==="rtl";if(Q&&M){var h=M.offsetLeft;R&&(h=Q.offsetWidth-M.offsetWidth-M.offsetLeft);if(y){y=M.offsetWidth;M=Q.offsetWidth;var b=u?M-y-70:h-70;v="linear-gradient(\n      to top, transparent 0%,\n      transparent "+v+"rem,\n      #000 "+v+"rem,\n      #000 100%), linear-gradient(\n      to "+((R?"left":"right")+
",\n      #000 0px,\n      #000 "+b+"px,\n      transparent "+(u?M-y:b+70)+"px)");Q.style.setProperty("-webkit-mask-image",v);Q.style.setProperty("mask-image",v)}else Q.style.setProperty("-webkit-mask-image",""),Q.style.setProperty("mask-image","");u?R?(K.style.setProperty("left","0"),K.style.setProperty("right","unset")):(K.style.setProperty("left",""),K.style.setProperty("right","0")):R?(K.style.setProperty("left","unset"),K.style.setProperty("right",h+"px")):(K.style.setProperty("left",h+"px"),
K.style.setProperty("right","unset"))}};
W0c=function(R,y,u,v,Q){var M=_.sh("truncated-text-content"),K=_.sh("truncated-text-content"),h=_.sh("button"),b=_.sh("button"),N=_.sh("button"),T=_.ua().resolve(_.QX),x=_.V(_.rW(function(){return ZbU(R(),Q())})),B=x.next().value,l=x.next().value;
x=_.V(_.rW(function(){return _.f("enable_truncated_text_max_lines")?rJT(R(),B()):Hb4(R(),Q())}));
var Z=x.next().value,P=x.next().value,k=null;_.ny(function(){function E(){if(M.value&&h.value&&N.value)if(_.f("enable_truncated_text_max_lines")){var c=Gfv(R(),Q(),M,K,y(),u());l(c);v()||requestAnimationFrame(function(){if(M.value&&h.value&&N.value){var a=Obc(M.value)||rJT(R(),c);P(a);PwO({isTruncated:a,isAbsoluteButton:Obc(M.value),lineHeight:u(),contentRef:M,placeholderTruncationTextRef:h,truncationTextRef:N,appDirection:T})}})}else l(ZbU(R(),Q())),requestAnimationFrame(function(){if(M.value&&h.value&&
N.value){var a=R();
y();var L=u(),QG=v(),hz=Q();Obc(M.value)?(P(!0),QG||PwO({isTruncated:!0,isAbsoluteButton:!0,lineHeight:L,contentRef:M,placeholderTruncationTextRef:h,truncationTextRef:N,appDirection:T})):(a=Hb4(a,hz),P(a),QG||PwO({isTruncated:a,isAbsoluteButton:!1,lineHeight:L,contentRef:M,placeholderTruncationTextRef:h,truncationTextRef:N,appDirection:T}))}})}
var D,z;(D=k)==null||(z=D.stop)==null||z.call(D);D=new _.v2(E,17);E();k=D},"EujZId");
_.rB(function(){l(ZbU(R(),Q()));P(_.f("enable_truncated_text_max_lines")?rJT(R(),B()):Hb4(R(),Q()));var E=function(){nrL=void 0;var z,c;(z=k)==null||(c=z.fire)==null||c.call(z)};
if(window.ResizeObserver){var D=new ResizeObserver(E);D.observe(M.value);_.GF(function(){var z,c;(z=k)==null||(c=z.stop)==null||c.call(z);D.disconnect()})}else window.addEventListener("resize",E),_.GF(function(){var z,c;
(z=k)==null||(c=z.stop)==null||c.call(z);window.removeEventListener("resize",E)})});
return{isTruncated:Z,displayText:B,contentRef:M,hiddenRef:K,placeholderTruncationTextRef:h,hiddenTruncationTextRef:b,truncationTextRef:N}};
_.djE=function(R,y,u,v,Q,M){var K=function(N){N.preventDefault()},h=function(){var N=R.value;
if(N)return(N._data=y)?(N.addEventListener("touchstart",HrG,{passive:!0}),N.addEventListener("click",Gsv),y.clickTrackingParams&&(N.params={itct:y.clickTrackingParams}),rfO(N,y),Aq(N,P64(y)||"")):N.addEventListener("click",K),function(){y?(N.removeEventListener("touchstart",HrG,{passive:!0}),N.removeEventListener("click",Gsv)):N.removeEventListener("click",K)}},b=function(){var N=R.value;
if(N){var T=_.Lk({innertubeCommand:y,elementsCommand:u,forceNewState:v,stopPropagation:M});if(T)return N._data=T._data,T["aria-haspopup$"]&&N.setAttribute("aria-haspopup",T["aria-haspopup$"].toString()),T["force-new-state$"]&&N.setAttribute("force-new-state",T["force-new-state$"].toString()),T.href$&&Aq(N,T.href$),T.rel$&&(N.rel=T.rel$),T.role$&&N.setAttribute("role",T.role$),T.target$&&(N.target=T.target$),N.params=T.params,T.onclick&&N.addEventListener("click",T.onclick),T.onpointerdown&&N.addEventListener("onpointerdown",
T.onpointerdown),function(){T.onclick&&N.removeEventListener("click",T.onclick);T.onpointerdown&&N.removeEventListener("onpointerdown",T.onpointerdown)}}};
_.G7(Q?b:h,[y,u])};
UjP=function(R){var y=R.children;var u=R.className;var v=R.dir;var Q=R.style;var M=R.role;var K=R.ariaSelected;var h=R.ariaLabel;var b=R.ariaHidden;var N=R.ariaLabelledby;var T=R.ariaDescribedby;var x=R.command;var B=R.elementsCommand;var l=R.forceNewState;var Z=R.isPlaceholder;var P=R.tabIdentifier;var k=R.target;var E=R.tabIndex;var D=R.useATagConfig;var z=R.stopPropagation;R=_.sh("a");_.djE(R,x,B,l,D,z);return _.F("a",{el:R,"on:click":_.nh(function(){return z===!1}),
class:u,style:Q,dir:v,role:M?M:x?void 0:"group","aria-hidden":b?!0:void 0,"aria-label":h,"aria-labelledby":N,"aria-describedby":T,"aria-selected":K,tabindex:E!==void 0?E:void 0,target:k,"tab-identifier":P,"force-new-state":l?!0:void 0,"is-placeholder":Z?!0:void 0},y)};
kfP=function(R){return{content:R!=null?R:""}};
Erz=function(R){return _.Sb(R.onTap)||_.a8(R.rendererContext)};
XkT=function(R){var y=R.data;R={class:R.className};a:switch(y.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var u="yt-video-attribute-view-model--vertical";break a;default:u="yt-video-attribute-view-model--horizontal"}a:switch(y.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var v="yt-video-attribute-view-model--image-small";break a;default:v="yt-video-attribute-view-model--image-large"}a:switch(y.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var Q="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":Q="yt-video-attribute-view-model--image-avatar";break a;default:Q=""}a:switch(y.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var M="yt-video-attribute-view-model--metadata-header";break a;default:M=""}a:switch(y.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var K="yt-video-attribute-view-model--container-card";break a;default:K=""}u=["yt-video-attribute-view-model",u,v,Q,M,K,Erz(y)?"yt-video-attribute-view-model--clickable":
""].join(" ");if(y.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var h="";else v=y.lightColorPalette,Q=y.darkColorPalette,M=((h=_.ua().resolve(_.yN(_.u0)))==null?0:h())&&Q?Q:v,h=(h=M==null?void 0:M.section2Color)?_.Sq(h):"";return _.F("yt-video-attribute-view-model",R,_.F("div",{class:u,style:_.P_({"background-color":h})},Erz(y)||!_.f("web_video_attribute_view_model_a11y_fix")?_.F(UjP,{className:"yt-video-attribute-view-model__content-container",useATagConfig:!0,stopPropagation:!1,command:Erz(y),
role:"group",ariaLabel:y.title,forceNewState:!0},y.heroText||y.image?_.F($jW,{data:y}):null,_.F(qnz,{data:y,sizeSmall:y.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"})):_.F("div",{class:"yt-video-attribute-view-model__content-container"},y.heroText||y.image?_.F($jW,{data:y}):null,_.F(qnz,{data:y,sizeSmall:y.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
mj8=function(R){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:R.overflowMenuA11yLabel,onTap:function(y){y.preventDefault();y.stopPropagation();if(R.overflowMenuOnTap){var u=_.Lk({elementsCommand:R.overflowMenuOnTap,forceNewState:!0});if(u==null?0:u.onclick)u.onclick(y)}}}};
$jW=function(R){R=R.data;var y,u=((y=_.ua().resolve(_.yN(_.u0)))==null?0:y())&&R.darkThemeImage?R.darkThemeImage:R.image;y=mj8(R);return _.F("div",{class:"yt-video-attribute-view-model__hero-section"},u?_.F(_.MR,{data:u,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):R.heroText?_.F("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.F("span",{class:"yt-video-attribute-view-model__hero-text"},R.heroText)):null,R.overflowMenuOnTap?
_.F("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.F(_.j8,{data:y,iconName:"MORE_VERT"})):null)};
qnz=function(R){var y=R.data;R=R.sizeSmall;var u=y.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",v=Erz(y);v=_.Lk({innertubeCommand:v});v=s4(v);var Q={};R={class:_.Zl("yt-video-attribute-view-model__metadata",(Q["yt-video-attribute-view-model--small-font"]=R,Q)),role:v?"link":"group"};v=_.F("h1",{class:"yt-video-attribute-view-model__title"},y.title);u=y.subtitle?_.F("h4",{class:"yt-video-attribute-view-model__subtitle"},u?_.F(AJz,{text:kfP(y.subtitle),truncationText:kfP(y.subtitleTruncationText),
maxLines:2}):_.F("span",null,y.subtitle)):null;if(y.secondarySubtitle){Q=y.secondarySubtitle;if(Q!=null&&Q.attachmentRuns){for(var M=[],K=_.V(Q.attachmentRuns),h=K.next();!h.done;h=K.next())h=h.value,h.element&&M.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}}}})}));Q=Object.assign({},Q,{attachmentRuns:M})}Q=_.F("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},
_.F(_.QM,{text:Q}))}else Q=null;return _.F("div",R,v,u,Q,y.buttonViewModel?DjS(y.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
pkU=function(R){return{content:R!=null?R:""}};
tTP=function(R){return _.Sb(R.onTap)||_.a8(R.rendererContext)};
cJW=function(R){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:R.overflowMenuA11yLabel,onTap:function(y){y.preventDefault();y.stopPropagation();if(R.overflowMenuOnTap){var u=_.Lk({elementsCommand:R.overflowMenuOnTap,forceNewState:!0});if(u==null?0:u.onclick)u.onclick(y)}}}};
_.M5=function(R,y,u,v,Q){v=v===void 0?{}:v;if(!Q||Math.random()<5E-4){y=y||null;u=u||null;R=R instanceof Error?R:new _.OL(R);if(R.args)for(var M=_.V(R.args),K=M.next();!K.done;K=M.next())K=K.value,K instanceof Object&&(v=Object.assign({},K,v));v.category="H5 Ads Control Flow";y&&(v.slot=y?"slot:  "+y.slotType:"");u&&(v.layout=u?"layout:  "+u.layoutType:"",v.layoutId=u.layoutId);Q&&(v.known_error_aggressively_sampled=!0);R.args=[v];_.kT(R)}};
_.apO=function(R,y){_.Ik(R,"yt-open-popup-action",[_.MB(y),R])};
_.JG=function(R,y){_.apO(R,_.ye(y))};
YnT=function(R){if(!R)return"";if(SnG[R])return SnG[R];VM||(VM=_.o_("A"));VM.href!==R&&Aq(VM,R);var y=VM.pathname;SnG[R]=y.startsWith("/")?y:"/"+y;return SnG[R]};
L0z=function(){var R=YnT(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 y;return(iG==null?void 0:(y=iG.response)==null?void 0:y.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"};
_.Cwv=function(){var R=iG==null?void 0:iG.response,y=R==null?void 0:R.endpoint;if(!y)return(R==null?void 0:R.page)==="watch"?"watch":L0z();var u;R=(u=_.e(y==null?void 0:y.commandMetadata,_.QL))==null?void 0:u.webPageType;u=!1;if(R&&!sWT.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 v;return((v=_.e(y==null?void 0:y.commandMetadata,_.QL))==null?0:v.url)&&YnT(_.e(y.commandMetadata,_.QL).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var Q;return(y=(Q=_.e(y,_.HV))==null?void 0:Q.browseId)?zZG[y]||"browse":"browse";default:u=!0}if(_.e(y,_.KX)||_.e(y,grL))return"sponsorship";Q=YnT(window.location.href);if(Q.startsWith("/experiments"))return"experiments";if(Q.startsWith("/create_channel"))return"create_channel";
if(_.e(y,_.tc)&&Q.startsWith("/shorts"))return"shorts";if(_.e(y,_.tc)&&Q.startsWith("/watch"))return"watch";u&&(y=new _.OL("Unsupported mWeb page type",{pathname:Q,webPageType:R}),_.dI(y));return"browse"};
Iy=function(R,y,u,v){return R&&y?R!==u||y!==v?(_.M5(Error("Hh"),void 0,void 0,{"stored-slot":R,"stored-layout":y,"latest-slot":u,"latest-layout":v}),!1):!0:!1};
RIT=function(R,y,u){return R({targetId:y},function(v){return u.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},v,{header:u.continuationItems?u.continuationItems[0]:void 0}):Object.assign({},v,{contents:u.continuationItems?u.continuationItems:[]})})};
y0U=function(R,y,u,v){if(y=y.trackingParams){var Q,M=(Q=u.getScreenLayer)==null?void 0:Q.call(u);u=_.$I(M);Q=_.Ef(M);if(u&&Q){var K=_.U4(y);_.f("combine_ve_grafts")?R.graftServerVe(y,Q,M):_.ak(u,Q,K);v==null||v(K)}}};
vN8=function(R){var y;return((y=uTz.get(R))==null?void 0:y.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
MnU=function(R,y){var u={type:y.slotType,controlFlowManagerLayer:QgU.get(y.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};y.slotEntryTrigger&&(u.entryTriggerType=y.slotEntryTrigger.triggerType);y.slotPhysicalPosition!==1&&(u.slotPhysicalPosition=y.slotPhysicalPosition);if(R){u.debugData={slotId:y.slotId};if(R=y.slotEntryTrigger)u.debugData.slotEntryTriggerData=jgU(R);R=y.slotFulfillmentTriggers;u.debugData.fulfillmentTriggerData=[];R=_.V(R);for(var v=R.next();!v.done;v=R.next())u.debugData.fulfillmentTriggerData.push(jgU(v.value));
y=y.slotExpirationTriggers;u.debugData.expirationTriggerData=[];y=_.V(y);for(R=y.next();!R.done;R=y.next())u.debugData.expirationTriggerData.push(jgU(R.value))}return u};
jgU=function(R,y){var u={type:R.triggerType};y!=null&&(u.category=y);R.triggeringSlotId!=null&&(u.triggerSourceData||(u.triggerSourceData={}),u.triggerSourceData.associatedSlotId=R.triggeringSlotId);R.triggeringLayoutId!=null&&(u.triggerSourceData||(u.triggerSourceData={}),u.triggerSourceData.associatedLayoutId=R.triggeringLayoutId);return u};
J0L=function(R,y,u,v){y={opportunityType:y};R&&(v||u)&&(v=_.Ws(v||[],function(Q){return MnU(R,Q)}),y.debugData=Object.assign({},u&&u.length>0?{associatedSlotId:u}:{},v.length>0?{slots:v}:{}));
return y};
VnU=function(R){return hG(R.opportunityAdapterMap).concat(hG(R.triggerAdapterMap)).concat(hG(R.fulfillmentAdapterFactoryMap)).concat(hG(R.slotAdapterFactoryMap)).concat(hG(R.layoutRenderingAdapterFactoryMap))};
hG=function(R){var y=[];R=_.V(R.values());for(var u=R.next();!u.done;u=R.next())u=u.value,u.isAdsControlFlowEventListener&&y.push(u);return y};
Fd=function(R){var y=R.slotId,u=R.slotType,v=R.slotPhysicalPosition;return y===void 0?new bG("Cannot construct a slot due to the missing id.",{adSlotMetadata:R}):u===void 0?new bG("Cannot construct a slot due to the missing type.",{adSlotMetadata:R}):v===void 0?new bG("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:R}):{slotId:y,slotType:u,slotPhysicalPosition:v,managerLayer:"external",adSlotLoggingData:R.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new inP}};
KLW=function(R){var y=R.layoutId,u=R.layoutType;return y===void 0?new w$("Cannot construct a layout due to the missing id.",{adLayoutMetadata:R}):u===void 0?new w$("Cannot construct a layout due to the missing type.",{adLayoutMetadata:R}):{layoutId:y,layoutType:u,managerLayer:"external",adLayoutLoggingData:R.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new inP,interactionLoggingAdsClientData:{}}};
I9S=function(R){if(R.querySelector("img")){var y=R.querySelector("img");y.addEventListener("error",function(){bdG(y.src).then(function(u){(u=_.$E(u).toString())?y.src=u:y.removeAttribute("src")}).catch(function(){y.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
Tx=function(R,y){if(y&&(hIO(y.viewableCommand)||hIO(y.endOfSessionCommand))){var u=bnS(y==null?void 0:y.viewableCommand);y=bnS(y==null?void 0:y.endOfSessionCommand);if(!N5){var v=_.JT("custom_active_view_tos_timeout_ms");N5=v>0&&v!==36E5?new FLv(whv(),v):new FLv(whv())}N6P(N5,R);T6c(N5,R,u,y)}};
oy=function(R){N5&&N6P(N5,R)};
whv=function(){var R=_.EB("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(R==null?void 0:R.length)===2?R[1]:null};
hIO=function(R){R=_.Sb(R);return!(R==null||!R.loggingUrls)&&R.loggingUrls.length>0};
bnS=function(R){if(!R)return[];var y=[],u,v;((v=(u=_.Sb(R))==null?void 0:u.loggingUrls)!=null?v:[]).forEach(function(Q){Q.baseUrl&&y.push(Q.baseUrl)});
return y};
oNU=function(R){if(_.f("stop_av_measurement_on_detach"))return function(){oy(R)}};
x9G=function(R){return function(){_.f("stop_av_measurement_on_detach")&&oy(R)}};
B6U=function(R){if(_.f("stop_av_measurement_on_detach"))return function(){oy(R)}};
f9z=function(R){return R.shorts.isDesktopSmallWidth};
_.eI8=function(R){return R.shorts.isShortsActive};
_.l9U=function(R){return R.shorts.isWatchWhileMode};
_.xY=function(R){return R.shorts.isFullscreen};
_.B2=function(R){return R.shorts.isShortsPipActive};
ZnU=function(R){var y,u;if(R=(y=_.e(R.reelsAdCardButtoned,On8))==null?void 0:(u=y.animatedRenderingConfig)==null?void 0:u.easeOutSeconds)return R+"s"};
nNS=function(R,y,u){return _.I(function(v){return v.return(new Promise(function(Q){var M=new Image;M.onload=function(){Q(new HnE(R,y,u,M.naturalWidth,M.naturalHeight))};
M.src=u.toString()}))})};
Gy8=function(R,y){return Math.round(R/1E-5)===Math.round(y/1E-5)};
r0S=function(R,y){return Math.round(R/1E-5)===Math.round(y/1E-5)};
P4T=function(R,y){return R.year===y.year&&R.month===y.month&&R.day===y.day};
WLE=function(R,y){return R.year!==y.year?R.year<y.year:R.month!==y.month?R.month<y.month:R.day<y.day};
U94=function(R){return R.day===d98(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}};
kyv=function(){var R=new Date,y={year:R.getFullYear(),month:R.getMonth(),day:R.getDate()};return{start:y,end:{year:R.getFullYear()+2,month:R.getMonth(),day:R.getDate()},selectedDate:U94(y)}};
ENO=function(R){return(new gN(2)).format(new Date(R.year,R.month,R.day))};
$9G=function(R){return{year:R.getFullYear(),month:R.getMonth(),day:R.getDate()}};
qQG=function(R,y){R=(R+(Number(y.utcOffsetSec)+(new Date(R*1E3)).getTimezoneOffset()*60))*1E3;y=$9G(new Date(R));return{date:y,secondsSinceMidnight:Math.floor((R-(new Date(y.year,y.month,y.day)).getTime())/1E3)}};
Xh4=function(R,y){y=y.months.findIndex(function(u){return u.year===R.year&&u.month===R.month});
return y>=0?y:void 0};
m9O=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(y){return!1}return m9O(R.parentNode)};
fX=function(R){return R?!(R.tagName!=="A"||!R.href||!R.classList.contains("yt-simple-endpoint")):!1};
A0G=function(R){return R?R.tagName==="IMG"&&R.classList.contains("emoji"):!1};
D9P=function(R,y,u){if(!R)return null;var v=fX(R);if(v&&u)return y=R.pathname.substring(R.pathname.indexOf("/channel/")+9),document.createTextNode("@"+y);if(v&&!u)return document.createTextNode("");if(A0G(R))return u=R.alt,R=R.dataset.emojiId,!R&&y&&(y=_.e8(y,u))&&y.isCustomEmoji&&(R=y.emojiId),R?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+R+">"):document.createTextNode(u);v=R.cloneNode(!1);for(var Q=0;Q<R.childNodes.length;++Q){var M=D9P(R.childNodes[Q],y,u);M&&v.appendChild(M)}return v};
lG=function(R){return R?fX(R)?R:lG(R.lastChild):null};
ph8=function(R){return R?fX(R)?R:ph8(R.firstChild):null};
tnE=function(R){if(!R)return null;for(var y=R.previousSibling;y;)if(y.nodeType===Node.ELEMENT_NODE&&y.nodeName==="BR")y=y.previousSibling;else if(y.nodeType===Node.TEXT_NODE&&/\s+/.test(y.textContent))y=y.previousSibling;else break;(y=lG(y))?R=y:R=(R=R.parentNode)?lG(R.previousElementSibling):null;return R};
c0T=function(R){if(!R)return null;for(var y=R.nextSibling;y;)if(y.nodeType===Node.ELEMENT_NODE&&y.nodeName==="BR")y=y.nextSibling;else if(y.nodeType===Node.TEXT_NODE&&/\s+/.test(y.textContent))y=y.nextSibling;else break;return(y=ph8(y))?y:c0T(R.parentNode)};
a9E=function(R){var y=_.Oz(),u=y.JSC$11263_getStartNode();if(!m9O(u.parentNode))return null;y=y.JSC$11263_getStartOffset();if(u.nodeType===Node.TEXT_NODE){var v=_.$h(u,fX);if(v){if(R&&y===0||!R&&y===u.length)return v}else{if(R&&y===u.length)return!u||u.nodeName==="BR"||u.nextElementSibling&&_.ZT(u.nextElementSibling,"display")==="block"?null:ph8(u.nextElementSibling);if(!R&&y===0)return u?lG(u.previousElementSibling):null}}if(u.nodeType===Node.ELEMENT_NODE)if(R){if(0<=y&&y<u.childNodes.length)return ph8(u.childNodes[y])}else if(0<
y&&y<=u.childNodes.length)return lG(u.childNodes[y-1]);return null};
SQT=function(R,y,u){if(!R)return null;if(R.nodeType===Node.TEXT_NODE)if(u){var v=tnE(R);if(v&&!/^\s+\S/.test(R.wholeText.substr(0,y)))return v}else if((v=c0T(R))&&!/\S\s+/.test(R.wholeText.substr(y,R.wholeText.length)))return v;return R.nodeType===Node.ELEMENT_NODE?u?tnE(R.childNodes[y]):c0T(R.childNodes[y]):SQT(R.parentNode,y,u)};
YQG=function(R){if(R.hasChildNodes())switch(R.tagName){case "DIV":case "A":case "SPAN":var y="";for(R=R.firstChild;R;R=R.nextSibling)y+=YQG(R);return y;default:return""}else switch(R.nodeType){case 3:return R.textContent;default:return""}};
H2=function(R,y){return R.year===y.year&&R.month===y.month&&R.day===y.day};
nX=function(R,y){return R.year!==y.year?R.year<y.year:R.month!==y.month?R.month<y.month:R.day<y.day};
LLS=function(R){return{year:R.getFullYear(),month:R.getMonth(),day:R.getDate()}};
sgP=function(R){var y=K$G;y=y===void 0?K$G:y;y(new Date(R.year,R.month,R.day))};
Gx=function(R){return LLS(new Date(Number(R.seconds)*1E3))};
zIU=function(R){return R.year!==void 0&&R.month!==void 0&&R.day!==void 0};
gNE=function(R){return R.start!==void 0&&R.end!==void 0};
C4P=function(R){return gNE(R)?R.start:R};
RKP=function(R){return gNE(R)?R.end:void 0};
uIU=function(R,y){for(var u=[],v=new Date(R.start.year,R.start.month);v.getFullYear()<R.end.year||v.getFullYear()===R.end.year&&v.getMonth()<=R.end.month;){var Q=u,M=Q.push,K=v.getFullYear(),h=v.getMonth(),b=R,N=y,T=void 0,x=[],B=Object.freeze({extraCssClass:"invisible"}),l=new Date(K,h),Z=LLS(l);l=l.getDay();for(var P=LLS(new Date);Z.month===h;){l!==y1U&&T||(T=Array.from({length:7}).fill(B),x.push(T));var k={date:{year:K,month:h,day:Z.day},extraCssClass:"",debugClass:""};k.extraCssClass=N(k.date,
Z,P,b).trim();T[(l-y1U+7)%7]=k;Z=Z.day===d98(Z.year,Z.month)?Z.month===11?{year:Z.year+1,month:0,day:1}:{year:Z.year,month:Z.month+1,day:1}:{year:Z.year,month:Z.month,day:Z.day+1};l=(l+1)%7}M.call(Q,{weeks:x,monthLabel:r$.SHORTMONTHS[h]+" "+K,year:K,month:h,monthLabelExtraCssClass:x[0][2]===B?"shift-down-label":""});v.setMonth(v.getMonth()+1)}return u};
vGv=function(R,y){y=y.months.findIndex(function(u){return u.year===R.year&&u.month===R.month});
return y>=0?y:void 0};
j4W=function(R,y){a:{var u=u===void 0?[2,3]:u;u=_.V(u);for(var v=u.next();!v.done;v=u.next()){var Q=new Date;if((new Q4E(v.value)).parse(y,Q,{validate:!0})){Q.setHours(0,0,0,0);y=Q;break a}}y=null}if(!y)return{isValid:!1,value:void 0};y=LLS(y);u=R.end;return nX(y,R.start)||nX(u,y)?{isValid:!1,value:void 0}:{isValid:!0,value:y}};
KzL=function(R){var y=MG4;y=y===void 0?J1W:y;var u=R.columnsToShow||[],v=VGU(R.columnDimensions,R.columnsToShow,R.leftFloatingColumns,y);return u.map(function(Q,M){var K=R.columns[Q];if(K===void 0)throw Error("Nh");var h=v?v[M]:"";var b=R.getCustomTooltip?R.getCustomTooltip(Q,K.headerTooltipParagraphs):K.headerTooltipParagraphs;var N=iD4(R,Q);return{type:Q,index:M,style:h,classes:N,headerName:K.headerName||"",headerIcon:K.headerIcon,headerTooltipParagraphs:b||[],headerTooltipHelpContext:K.headerTooltipHelpContext,
sortOrders:K.sortOrders||[],selectionState:K.isSelectionCheckbox?R.selectionState:void 0}})};
iD4=function(R,y){var u=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],v=R.columns[y];if(v===void 0)return"";var Q=u.includes("DEFAULTS")&&v.cssClass?[v.cssClass]:[];if(u.includes("SORTING")){v.sortOrders&&v.sortOrders.length&&Q.push("sortable");if(R.sorting&&R.sorting.columnType===y)a:switch(R.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var M="column-sorted";break a;default:M=""}else M="";M&&Q.push(M)}u.includes("FLOATING")&&(y=R.columnsToShow.indexOf(y),R.leftFloatingColumns&&y<R.leftFloatingColumns&&
Q.push("floating-column"),R.leftFloatingColumns&&y===R.leftFloatingColumns-1&&Q.push("last-floating-column"));u.includes("RIGHT_ALIGN")&&v.rightAlignHeader&&Q.push("right-align");return Q.filter(function(K){return K}).join(" ")};
VGU=function(R,y,u,v){u=u===void 0?0:u;v=v===void 0?J1W:v;if(R){var Q=[],M=0;I_P(R,y,v).forEach(function(K,h){var b="min-width:"+K.minWidth+"px;padding-left:"+K.paddingLeft+"px;padding-right:"+K.paddingRight+"px;flex:"+K.flexGrow+" 0 "+K.minWidth+"px;";K.maxWidth!==Infinity&&(b=[b,"max-width:"+K.maxWidth+"px;"].join(""));M>0&&h<u&&(b=[b,"left:"+M+"px;"].join(""));Q.push(b);M+=K.minWidth+K.paddingLeft+K.paddingRight});
return Q}};
I_P=function(R,y,u){u=u===void 0?J1W:u;return y.map(function(v,Q){v=R&&R[v]||{};var M=Q===0?u.paddingLeftFirstColumn:u.padding;v.paddingLeft!==void 0&&(M=v.paddingLeft);Q=Q===y.length-1?u.paddingRightLastColumn:u.padding;v.paddingRight!==void 0&&(Q=v.paddingRight);return{paddingLeft:M,paddingRight:Q,minWidth:v.minWidth!==void 0?v.minWidth:u.minWidth,maxWidth:v.maxWidth!==void 0?v.maxWidth:u.maxWidth,flexGrow:v.flexGrow!==void 0?v.flexGrow:u.flexGrow}})};
hKE=function(R){var y=R.reduce(function(v,Q){var M=Q.columnId,K={};Q.headerText&&(K.headerName=_.u7(Q.headerText));Q.rightAlignHeader&&(K.rightAlignHeader=Q.rightAlignHeader);var h;if((h=Q.headerIcon)==null?0:h.iconType)K.headerIcon=_.fk(Q.headerIcon.iconType);v[M]=K;return v},{}),u=R.filter(function(v){return!v.hideColumn}).map(function(v){return v.columnId});
R=R.filter(function(v){return!!v.dimensions}).reduce(function(v,Q){v[Q.columnId]=Q.dimensions;
return v},{});
return{columns:y,columnsToShow:u,columnDimensions:R}};
_.bDL=function(R){return R?R.simpleText?R.simpleText:R.runs?R.runs.map(function(y){return y.text}).join(""):"":""};
oGP=function(R){var y=R.data;var u=R.onTap;var v=R.isSelected;var Q=R.onFocusIn;if(!y)return{};R=FzE(y);v===void 0&&(v=y==null?void 0:y.isSelected);var M;return{text:wlT(y,R),startIcon:(M=y.icon)==null?void 0:M.iconType,state:v?0:2,type:0,onTap:NL8(y,u),accessibilityLabel:TLP(y,R),onFocusIn:function(){return Q==null?void 0:Q()}}};
wlT=function(R,y){if(!y)return R.text?_.bDL(R.text):void 0};
NL8=function(R,y){return function(u){y==null||y(u,R)}};
FzE=function(R){R=R.style&&R.style.styleType;return!uG&&R==="STYLE_EXPLORE_LAUNCHER_CHIP"};
TLP=function(R,y){if(y){var u,v,Q;return(Q=(u=R.accessibilityData)==null?void 0:(v=u.accessibilityData)==null?void 0:v.label)!=null?Q:wlT(R,!1)}};
P2=function(R){return{signalAction:{signal:R}}};
f_O=function(){return _.EB("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?xuU:_.BLW};
eKT=function(R,y){R=R===void 0?"SOFT_RELOAD_PAGE":R;y=y===void 0?49504:y;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.Mq(_.fo("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:y}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:R}}]}}}};
l_W=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Mq(_.fo("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:f_O()}};
ODO=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Mq(_.fo("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:f_O()}};
ZDT=function(R,y){var u=_.Mq(_.fo("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),v=_.Mq(_.fo("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),Q={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Mq(_.fo("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};Q.serviceEndpoint=R?R:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[P2("SOFT_RELOAD_PAGE")]}};return{title:u,bodyText:v,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:Q},
style:{value:y!=null?y:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
nG4=function(R){R=R===void 0?{}:R;return{title:_.Mq(R.localizedZeroStateTitleText===void 0?"":R.localizedZeroStateTitleText),bodyText:_.Mq(R.localizedZeroStateMessage===void 0?"":R.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Mq(R.localizedZeroStateButtonText===void 0?"":R.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[HDU]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
r1E=function(R){R=R===void 0?{}:R;return{title:_.Mq(R.localizedOptInBannerTitleText===void 0?"":R.localizedOptInBannerTitleText),titleLength:19,subtitle:_.Mq(R.localizedOptInMessage===void 0?"":R.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Mq(_.fo("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:_.Mq(_.fo("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:[GcL]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
duO=function(R,y){var u=y=y===void 0?{}:y;y=u.offlineTitleText===void 0?"":u.offlineTitleText;var v=u.offlineDescriptionText===void 0?"":u.offlineDescriptionText,Q=u.formattedSupplementalText,M=u.actionButtonText===void 0?"":u.actionButtonText,K=u.titleText===void 0?"":u.titleText;u=u.descriptionText===void 0?"":u.descriptionText;var h={style:"STYLE_PRIMARY",size:"SIZE_DEFAULT",text:_.Mq(M),isDisabled:!1,navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://www.youtube.com/premium",
webPageType:"WEB_PAGE_TYPE_PROMO"}},urlEndpoint:{url:"https://www.youtube.com/premium"}},loggingDirectives:{clientVeSpec:{uiType:266213}}};R||(K=y,u=v,h={style:"STYLE_MONO_TONAL",size:"SIZE_DEFAULT",text:_.Mq(M),isDisabled:!0,loggingDirectives:{clientVeSpec:{uiType:266213}}});return{title:_.Mq(K),titleLength:K.length,overrideTitleMaxFontSize:30,subtitle:_.Mq(u),supplementalText:Q,primaryButton:{buttonRenderer:h},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},
tileImage:{thumbnails:[PMG]},darkTileImage:{thumbnails:[WzT]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.EGL=function(R,y,u,v,Q,M,K,h,b,N,T){Q=Q===void 0?!1:Q;M=M===void 0?!1:M;K=K===void 0?0:K;h=h===void 0?-Infinity:h;b=b===void 0?!1:b;N=N===void 0?!1:N;T=T===void 0?!1:T;var x=[],B=_.Mq(_.fo("SMART_DOWNLOADS",void 0,"Smart downloads")),l=_.Mq(UuU(K,h,R.length));h=K=void 0;N?K={statementBannerRenderer:duO(T,v)}:Q?R.length>0?h=kcU(R,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.f("kevlar_manual_downloads_above"),B,l):b?h={alertBannerViewModel:{heading:{content:u.localizedOptInBannerTitleText===
void 0?"":u.localizedOptInBannerTitleText},body:{content:u.localizedPromptMessage===void 0?"":u.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.fo("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.fo("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:_.OxT}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:M&&(h={backgroundPromoRenderer:{bodyText:_.Mq(_.fo("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"}}}):
M&&(h={alertBannerViewModel:{heading:{content:u.localizedOptInBannerTitleText===void 0?"":u.localizedOptInBannerTitleText},body:{content:u.localizedOptInMessage===void 0?"":u.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.fo("TURN_ON",void 0,"Turn on"),accessibilityText:_.fo("TURN_ON",void 0,"Turn on"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:127983}},onTap:{innertubeCommand:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!0}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:127982}}}}}});u=_.Mq(_.fo("YOUR_DOWNLOADS",void 0,"Your downloads"));v=void 0;y.length>0?(v=void 0,_.f("kevlar_display_downloads_numbers")&&(v=_.Mq(_.ei("VIDEO_COUNT",y.length))),v=kcU(y,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,u,v)):Q||R.length||
N||(v={backgroundPromoRenderer:{bodyText:_.Mq(_.fo("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}}}});K?x.push({richSectionRenderer:{content:K}}):h&&!_.f("kevlar_manual_downloads_above")&&x.push({richSectionRenderer:{content:h,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
v&&x.push({richSectionRenderer:{content:v,loggingDirectives:{clientVeSpec:{uiType:51721}}}});h&&_.f("kevlar_manual_downloads_above")&&x.push({richSectionRenderer:{content:h,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(y.length>0||Q&&R.length>0&&!N)&&x.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Mq(_.fo("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:x}};
_.qgP=function(R){return $uU(R,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.XlP=function(R){return $uU(R,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
$uU=function(R,y){var u=[];R=kcU(R,y,!0);u.push({richSectionRenderer:{content:R}});return{contents:u}};
kcU=function(R,y,u,v,Q){u=u===void 0?!1:u;var M="RESPONSIVE_SIZE_STANDARD";_.f("kevlar_modern_downloads_compact")?M="RESPONSIVE_SIZE_COMPACT":_.f("kevlar_modern_downloads_extra_compact")&&(M="RESPONSIVE_SIZE_EXTRA_COMPACT");R={isExpanded:u,contents:W2(R),entitySelectorType:y,responsiveContainerConfiguration:{responsiveSize:M}};v&&(R.title=v);Q&&(R.subtitle=Q);u||(_.f("kevlar_smart_downloads_show_more_button")?(R.showMoreButton={buttonRenderer:{accessibility:{label:_.fo("SHOW_MORE",void 0,"Show more")},
icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.Mq(_.fo("SHOW_MORE",void 0,"Show more"))}},R.showLessButton={buttonRenderer:{accessibility:{label:_.fo("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.Mq(_.fo("SHOW_LESS",void 0,"Show less"))}}):(R.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.fo("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:_.fo("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:_.fo("VIEW_ALL",void 0,"View all"),accessibilityText:_.fo("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:Qw("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:R}};
W2=function(R){var y=[];R=_.V(R);for(var u=R.next();!u.done;u=R.next())if(u=u.value,JsG(u)){var v=y,Q=v.push;var M=void 0;if(u==null?0:(M=u.videoEntity)==null?0:M.videoId){M=a3(_.Qe().getState(),u.videoEntity.videoId);var K=_.Qe().getState();var h=_.Nq(u.videoEntity.videoId,"mainVideoEntity");K=!!_.Wd(K.entities)[h];K={videoId:u.videoEntity.videoId,title:JN(u.videoEntity.title),shortBylineText:JN(u.channelEntity.title),thumbnail:u.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:K&&_.f("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:qD4(u.videoEntity.videoId,M,u.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.fo("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};u.videoEntity.lengthSeconds&&(K.thumbnailOverlays=rnP(u.videoEntity.lengthSeconds,M));K.isWatched=M>0;_.f("kevlar_modern_downloads_page")&&(K.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:u.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.fo("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},K.badges=void 0);u=K}else u={};Q.call(v,{richItemRenderer:{content:{videoRenderer:u},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(M24(u)){v=y;Q=v.push;var b=h=M=void 0,N=void 0,T=void 0,x=void 0,B=void 0,l=void 0,Z=void 0,P=void 0,k=void 0,E=void 0;K=u.mainPlaylistEntity.playlistId;var D=u==null?void 0:(E=u.mainPlaylistEntity)==null?void 0:(k=E.thumbnailStyleData)==null?void 0:(P=k[0])==null?void 0:(Z=P.value)==null?void 0:(l=Z.collageThumbnail)==
null?void 0:l.coverThumbnail;if(K&&D){l=XOT(K);!_.f("enable_offline_playlist_page")&&(u==null?0:(B=u.mainPlaylistEntity)==null?0:B.videos)&&(B=u==null?void 0:(x=u.mainPlaylistEntity)==null?void 0:(T=x.videos)==null?void 0:T[0],T=_.bE(B).entityId,T=JSON.parse(T).videoId,T!==void 0&&(x=a3(_.Qe().getState(),T),l=_.j6(T,K,void 0,void 0,x)));T=[];if(u==null?0:(N=u.mainPlaylistEntity)==null?0:(b=N.videos)==null?0:b.length)T=[ilz(),Object.assign({},(h=V5U(u==null?void 0:u.mainPlaylistEntity.videos.length))!=
null?h:{})];u={playlistId:K,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:D}},navigationEndpoint:l,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:T,title:JN(u.mainPlaylistEntity.title),shortBylineText:JN(u==null?void 0:(M=u.channelEntity)==null?void 0:M.title),badges:[{metadataBadgeRenderer:{label:_.fo("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.f("kevlar_modern_downloads_page")&&(u.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:muL,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:K,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.fo("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},u.badges=void 0)}else u=void 0;Q.call(v,{richItemRenderer:{content:{playlistRenderer:u},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return y};
UuU=function(R,y,u){R=R?A1c(R):"";y!==void 0&&isFinite(y)?y===0?y=_.fo("UPDATING",void 0,"Updating..."):(y=GL8(new Date(y),new Date),y=_.fo("UPDATED_TIME",{relative_time:y},"Updated "+y)):y="";var v="";R&&y&&(v=" \u2022 ");if(u&&_.f("kevlar_display_downloads_numbers")){u=_.ei("VIDEO_COUNT",u);if(R||y)v=" \u2022 ";return u+v+R+v+y}return R+v+y};
DuU=function(R){return gW8(R.entities).length};
_.plU=function(R,y){var u=aCG(R.responsiveSize),v;R=!((v=R.responsiveMap)==null||!v.some(function(Q){return Q.containerSize==="CONTAINER_SIZE_NARROW"&&Q.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:y,sizing:u,enableFullBleedForSingleCol:!1,isCompactList:u==="COMPACT"&&R}};
tG8=function(R,y){return _.TI(R.entities,"votingEntity",y)};
c1L=function(R){if(R){var y;return((y=_.ua().resolve(_.yN(_.u0)))==null?0:y())?R.darkTheme:R.lightTheme}};
a_G=function(R,y){if(R.simpleText)return Object.assign({},R,{simpleText:Ck(R.simpleText,y)});if(!R.runs)return R;for(var u=Object.assign({},R,{runs:[]}),v=0,Q=_.V(R.runs),M=Q.next();!M.done;M=Q.next())if(M=M.value,M.text)if(v+M.text.length<=y)u.runs.push(M),v+=M.text.length;else return u.runs.push(Object.assign({},M,{text:Ck(M.text,y-v)})),u;return R};
SgS=function(R,y){return _.TI(R.entities,"chipBarStateEntity",y)};
YgG=function(R,y){return _.TI(R.entities,"chipEntity",y)};
s48=function(R,y,u,v){return function(){var Q=LzU.has(R.displayType)&&R.selected,M=Q&&R.deselectCommand?R.deselectCommand:R.tapCommand;!M||Q&&v||_.zN(M,{form:{element:y==null?void 0:y.value}});u==null||u()}};
zKT=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""}};
gGE=function(R,y){return{triggeringElement:R,onDwellTriggeredFn:function(){var u={triggeringElement:R,loadVideoPreviewEventData:y},v=document.querySelector(".video-preview");v&&v.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:u}))},
onDwellEndFn:function(){var u=document.querySelector(".video-preview");u&&u.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
CMO=function(R,y){var u=_.ua().resolve(_.yN(dxU)),v=function(){var Q=y();return u&&Q?gGE(R.value,Q):null};
_.ny(function(){var Q=v();u&&Q&&Promise.resolve().then(function(){u.registerElement(Q)});
_.GF(function(){u&&Q&&Promise.resolve().then(function(){_.gm(u,Q)})})},"csPUge")};
ybP=function(R){var y=R.dataset.resizeObserverId;if(y)return y;y=""+ROc++;return R.dataset.resizeObserverId=y};
u3O=function(R,y){var u=ybP(R);d$.has(u)||d$.set(u,new Set);d$.get(u).add(y);Uz.has(u)&&y(Object.assign({},{target:R},Uz.get(u)))};
v4O=function(R){R=_.V(R);for(var y=R.next();!y.done;y=R.next()){y=y.value;var u=ybP(y.target),v=Object.assign({},{target:y.target},Uz.get(u));if(v!=null&&v.contentRect?v.contentRect.width!==y.contentRect.width||v.contentRect.height!==y.contentRect.height:1)for(Uz.set(u,{borderBoxSize:y.borderBoxSize,contentBoxSize:y.contentBoxSize,contentRect:y.contentRect,devicePixelContentBoxSize:y.devicePixelContentBoxSize}),u=_.V(d$.get(u)||[]),v=u.next();!v.done;v=u.next())v=v.value,v(y)}};
jjO=function(){return kY?kY:kY=new QjW(v4O)};
MPP=function(R,y){var u=ybP(R);d$.has(u)&&(d$.get(u).delete(y),d$.get(u).size===0&&(d$.delete(u),Uz.delete(u),kY.unobserve(R),delete R.dataset.resizeObserverId));d$.size===0&&kY&&(kY.disconnect(),kY=void 0)};
VPv=function(R,y){var u=_.ua().resolve(uN);return JbO.map(function(v){return u.observe(R,y,v)})};
iSz=function(R){var y=_.ua().resolve(uN);R.forEach(function(u){y.unobserveByKey(u)})};
_.hO8=function(R,y){var u=Object.assign({},Kov,y);y=_.V(HiP());var v=y.next().value,Q=y.next().value,M=function(K){var h=K.contentRect.height;if((K=K.contentRect.width)||h||u.canHaveZeroSize)v.width()===K&&v.height()===h||Q(v,{height:h,width:K})};
_.rB(function(){var K=R instanceof HTMLElement?R:R.value,h=I$P(M,u.throttleMs),b=[];u.useVisibilityObserver&&(b=VPv(K,function(N,T){requestAnimationFrame(function(){T==="visible"?(u3O(K,h),jjO().observe(K)):MPP(K,h)})}));
b.length||(u3O(K,h),jjO().observe(K));_.GF(function(){b.length&&(iSz(b),b.length=0);MPP(K,h)})});
return v};
FoO=function(R){var y=R.data;var u=R.callback;var v=R.enableSingleChipSelection;var Q=R.disableChipsScrollAnimation;var M=_.zp("div"),K=Wu(!1),h=Wu(0);R={};R=_.V(Hm(y.autoselectedChipIndex!=null?(R[y.autoselectedChipIndex]=!0,R):{}));var b=R.next().value,N=R.next().value,T=function(){var hz=M.value;return hz==null||hz.scrollLeft-1<=0},x=function(){var hz=M.value;
return hz==null?!1:hz.scrollLeft+1>=(hz==null?NaN:hz.scrollWidth)-(hz==null?NaN:hz.clientWidth)};
R=_.V(Hm(T()));var B=R.next().value,l=R.next().value;R=_.V(Hm(x()));var Z=R.next().value,P=R.next().value;R=y.isHorizontallyScrollable;var k=function(hz){M.value!=null&&(_.EB("HTML_DIR")==="rtl"&&(hz=-hz),M.value.scrollBy({left:hz,behavior:Q?"instant":"smooth"}))},E=function(){k(-320)},D=function(){k(320)},z=_.nh(function(hz){K.value=!0;
h.value=hz.clientX}),c=_.nh(function(hz){if(K.value){hz=hz.clientX;
var bO=hz-h.value;h.value=hz;var BW;(BW=M.value)==null||BW.scrollBy({left:-bO})}}),a=_.nh(function(){var hz=T(),bO=x();
hz!==B&&l(hz);bO!==Z&&P(bO)});
yn("pointerup",function(){K.value&&(K.value=!1)});
var L={},QG={};return _.F("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},sX(y.title,function(){return _.F("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.F("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},y.title),bS4(y.overflowButton))}),_.F("div",{class:"ytChipsShelfViewModelChipsShelfContent"},sX(y.previousButton!=null,function(){var hz={};
return _.F("div",{class:_.Zl("ytChipsShelfViewModelLeftArrowContainer",(hz.ytChipsShelfViewModelLeftArrowContainerIsHidden=B,hz))},bS4(y.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:E}}))}),_.F("div",{el:M,
"on:pointerdown":z,"on:pointermove":c,"on:scroll":a,class:_.Zl("ytChipsShelfViewModelChipsScrollContainer",(L.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!R,L))},_.F("div",{class:_.Zl("ytChipsShelfViewModelChipsContainer",(QG.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!R,QG.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!R&&!1,QG)),role:"tablist"},(y.contents||[]).map(function(hz,bO){return _.F("div",{class:"ytChipsShelfViewModelChipWrapper"},
bS4(hz,{chipViewModel:{callback:function(BW,Zc){if(v){var xS={};N((xS[bO]=Zc,xS))}else xS={},N(Object.assign({},b,(xS[bO]=Zc,xS)));u==null||u(BW,Zc,bO)},
disableDeselection:v,selected:!!b[bO]}}))}))),sX(y.nextButton!=null,function(){var hz={};
return _.F("div",{class:_.Zl("ytChipsShelfViewModelRightArrowContainer",(hz.ytChipsShelfViewModelRightArrowContainerIsHidden=Z,hz))},bS4(y.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:D}}))})))};
NAS=function(R,y,u,v,Q){R=y?R.switchOffCommand:R.switchOnCommand;if(v&&Q)wfS(R,u,Q);else{var M,K;(M=_.Lk({elementsCommand:R}))==null||(K=M.onclick)==null||K.call(M,u)}};
wfS=function(R,y,u){R=_.Lk({elementsCommand:R,additionalCommandArgs:{commandController:{onSuccess:function(){u(!1)},
onServerError:function(){u(!1)}}}});
if(R==null?0:R.onclick)R.onclick(y),u(!0)};
o44=function(R){if(R)return _.e(R,TAc)};
l$v=function(R,y,u){if(y)return[xDW];switch(R){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[Ez];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return u?[Ez]:[BAv,Ez];case "TRANSFER_STATE_PAUSED_BY_USER":return[f$E,Ez];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[eOE,Ez];default:return[xDW]}};
OSP=function(R,y,u,v){return l$v(R,y,v).map(function(Q){var M=Q.text,K=Q.iconType,h=Q.videoAction;Q=Q.playlistAction;M=M?{content:M}:void 0;K=K&&{sources:[{clientResource:{imageName:K}}]};var b=(0,_.Ps.unsafeClone)(u);if(b){var N=_.e(b,_.OC),T=_.e(b,_.ZO);N&&h?N.action=h:T&&Q&&(T.action=Q)}return{title:M,leadingImage:K,rendererContext:b&&{commandContext:{onTap:{innertubeCommand:b}}}}})};
ZST=function(R){R=_.a8(R.rendererContext);var y;return(y=_.e(R,_.ZO))==null?void 0:y.playlistId};
HSL=function(R){var y;return(y=R.listItems)==null?void 0:y.some(function(u){var v;return _.So((v=_.e(u,_.Pm))==null?void 0:v.rendererContext)})};
rbU=function(R){var y;return(y=R.listItems)==null?void 0:y.some(function(u){var v,Q,M=(Q=(v=_.e(u,n48))==null?void 0:v.defaultListItem)!=null?Q:u;u=_.e(M,_.Pm);return!!_.e(u==null?void 0:u.leadingAccessory,GkU)})};
dDT=function(R){var y=R.element;var u=R.veType;var v=R.storedVisualElement===void 0?null:R.storedVisualElement;var Q=R.elementIndex===void 0?0:R.elementIndex;R=R.clientYouTubeData;var M=_.$I();M!==PCS&&(WoU.clear(),PCS=M);if(y.visualElement&&WoU.has(y.visualElement))return null;if(v&&WoU.has(v))return y.visualElement=v,null;u=_.nk(_.GN(),{veType:u,elementIndex:Q,clientYouTubeData:R});if(!u)return null;y.visualElement=u;WoU.add(u);return u};
_.$Y=function(R,y,u,v){u=u===void 0?null:u;v=v===void 0?pq8:v;var Q=Q===void 0?null:Q;Xg(function(){if(y){u instanceof Function&&(u=u());var M=dDT({element:y,veType:R,storedVisualElement:u,clientYouTubeData:void 0});M&&(auv(y,Q),v(M))}})};
q5=function(R,y){if(R){switch(y){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 _.aH(R)}};
UDS=function(R){return R?_.Sq(R):""};
kkP=function(R){return(R==null?void 0:R.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
E4T=function(R,y){var u;return"linear-gradient(to bottom, "+((u=y==null?void 0:y.map(function(v){var Q=R?v.darkThemeColor:v.lightThemeColor;return Q?_.Sq(Q)+" "+((v==null?void 0:v.startLocation)||0)*100+"%":"transparent"}))==null?void 0:u.join(", "))+")"};
$Dc=function(R,y,u,v,Q){if(!((v==null?0:v.height)&&(v==null?0:v.width)))return{size:0};var M=v.width;v=v.height;if(Q)return y==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||y==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&M>v?{size:312/vr4}:y==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(u!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||R!==1&&R!==2||y!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&y!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&y!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(y==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||y==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||v===M)switch(R){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(y==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||v>M)switch(R){case 1:case 3:return{size:240*uzO};default:return{size:360*uzO}}switch(R){case 1:case 2:return{size:1/vr4*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.qSP=function(R){if(!("matchMedia"in window))return _.pG(Error("Oh")),function(){return!1};
var y=window.matchMedia(R);R=_.V(_.In(y.matches,void 0,"jLJc8e"));var u=R.next().value,v=R.next().value,Q=function(M){v(M.matches)};
y.addEventListener?(y.addEventListener("change",Q),_.GF(function(){y.removeEventListener("change",Q)})):y.addListener&&(y.addListener(Q),_.GF(function(){y.removeListener(Q)}));
return u};
Xf4=function(R){return R==="IMAGE_BANNER_STYLE_INSET"||R==="IMAGE_BANNER_STYLE_UNKNOWN"};
mDU=function(){if(!("matchMedia"in window))return _.pG(Error("Oh")),function(){return 0};
var R=Pu(function(){return window.matchMedia("(max-width: 527.9px)")}),y=Pu(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),u=Pu(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),v=Pu(function(){return window.matchMedia("(min-width: 1024px)")}),Q=_.V(_.In(R.matches,void 0,"og9kEc")),M=Q.next().value,K=Q.next().value;
Q=_.V(_.In(y.matches,void 0,"ybDWCb"));var h=Q.next().value,b=Q.next().value;Q=_.V(_.In(u.matches,void 0,"o0Gfh"));var N=Q.next().value,T=Q.next().value;Q=_.V(_.In(v.matches,void 0,"yqUUgd"));var x=Q.next().value,B=Q.next().value,l=Pu(function(){return function(E){K(E.matches)}}),Z=Pu(function(){return function(E){b(E.matches)}}),P=Pu(function(){return function(E){T(E.matches)}}),k=Pu(function(){return function(E){B(E.matches)}});
_.rB(function(){R.addEventListener?(R.addEventListener("change",l),y.addEventListener("change",Z),u.addEventListener("change",P),v.addEventListener("change",k)):R.addListener&&(R.addListener(l),y.addListener(Z),u.addListener(P),v.addListener(k));_.GF(function(){R.removeEventListener?(R.removeEventListener("change",l),y.removeEventListener("change",Z),u.removeEventListener("change",P),v.removeEventListener("change",k)):R.removeListener&&(R.removeListener(l),y.removeListener(Z),u.removeListener(P),
v.removeListener(k))})});
return function(){return M()?1:h()?2:N()?3:x()?4:0}};
Ab4=function(R){var y=0;R=_.V([R.title,R.metadata,R.actions,R.description,R.attribution]);for(var u=R.next();!u.done;u=R.next())u.value&&y++;return y};
DDW=function(R){return R===1||R===2?1:0};
tPv=function(R){var y,u=((y=_.ua().resolve(_.yN(_.u0)))==null?0:y())&&R.data.darkThemeImage?R.data.darkThemeImage:R.data.image;y=_.F("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.F("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},u?_.F(_.MR,{data:u,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),pfL(R.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));u=_.F(_.QM,{text:R.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var v=R.data;if(v.bodyText){var Q=[];v=_.V(v.bodyText);for(var M=v.next();!M.done;M=v.next())Q.push(_.F(_.QM,{text:M.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else Q=_.F(_.vu,null);return _.F("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},y,u,Q,pfL(R.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.F(_.QM,{text:R.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.F(_.QM,{text:R.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
a$U=function(R){R=(new cbW).parse(R);return(new N4).render(R).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(y){var u=y.split(":").map(Number),v=0,Q=0;if(u.length===3)u=_.V(u),v=u.next().value,Q=u.next().value,u=u.next().value;else if(u.length===2)u=_.V(u),Q=u.next().value,u=u.next().value;else if(u.length===1)u=_.V(u).next().value;else throw Error("Ph");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(v*3600+Q*60+u)+'" role="button">'+y+"</span>"})};
SSU=function(R){R=_.V(R.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var y=R.next(),u={};!y.done;u={clickHandler$jscomp$4:void 0},y=R.next()){y=y.value;u.clickHandler$jscomp$4=function(Q){Q=Number(Q.target.getAttribute("data-time"));if(isNaN(Q))throw Error("Qh");var M;(M=_.fA())==null||M.seekTo(Q,!0)};
var v=function(Q){return function(M){M.key!=="Enter"&&M.key!=="Space"||(0,Q.clickHandler$jscomp$4)(M)}}(u);
y.setAttribute("tabindex","0");y.removeEventListener("click",u.clickHandler$jscomp$4);y.removeEventListener("keydown",v);y.addEventListener("click",u.clickHandler$jscomp$4);y.addEventListener("keydown",v)}};
YST=function(){return _.F("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.F(Xd,{percentWidth:100}),_.F(Xd,{animationDelay:200}),_.F(Xd,{animationDelay:400}),_.F(Xd,{animationDelay:600}),_.F(Xd,{animationDelay:800,percentWidth:60}),_.F("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.F(Xd,{percentWidth:100}),_.F(Xd,{animationDelay:200}),_.F(Xd,{animationDelay:400}),_.F(Xd,{animationDelay:600,percentWidth:50}))};
Xd=function(R){return _.F("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(R.percentWidth===void 0?100:R.percentWidth)+"%"},_.F("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(R.animationDelay===void 0?0:R.animationDelay)+"ms"}))};
Lo4=function(){var R=_.V(_.In(function(){return""},void 0,"v2wS5e")),y=R.next().value;
return[function(){return y()()},
R.next().value]};
sj4=function(R,y){R=R?A1c(R):"";y!==void 0&&isFinite(y)?y===0?y=_.fo("UPDATING",void 0,"Updating..."):(y=GL8(new Date(y),new Date),y=_.fo("UPDATED_TIME",{relative_time:y},"Updated "+y)):y="";var u="";R&&y&&(u=" \u2022 ");return _.Mq(R+u+y)};
CCT=function(R,y,u,v,Q,M){y=y===void 0?0:y;var K=zOP[y],h=K.title,b=K.iconType,N=K.topButtonRenderer,T=K.sectionClientVE;K=K.videoClientVE;var x;if(y!==1||R.length){u=[];R=_.V(R);for(v=R.next();!v.done;v=R.next()){var B=v.value;if(JsG(B))u.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:B.videoEntity.videoId,title:JN(B.videoEntity.title),shortBylineText:JN(B.channelEntity.title),thumbnail:B.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:B.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.fo("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:K}}}}}});else if(M24(B)){v=u;var l=v.push;var Z=void 0,P=void 0,k=void 0,E=void 0,D=void 0,z=void 0,c=void 0,a=void 0,L=B.mainPlaylistEntity.playlistId,QG=B==null?void 0:(a=B.mainPlaylistEntity)==null?void 0:(c=a.thumbnailStyleData)==null?void 0:(z=c[0])==null?void 0:(D=z.value)==null?void 0:(E=D.collageThumbnail)==null?void 0:E.coverThumbnail;E=XOT(L);if(!_.f("enable_offline_playlist_page")&&
(B==null?0:(k=B.mainPlaylistEntity)==null?0:k.videos)){b:{k=B==null?void 0:(P=B.mainPlaylistEntity)==null?void 0:P.videos;P=_.Qe().getState().entities;if(k!=null&&k.length&&P)for(k=_.V(k),D=k.next();!D.done;D=k.next())if(D=_.bE(D.value).entityId,(D=JSON.parse(D).videoId)&&sGz(P,D)==="TRANSFER_STATE_COMPLETE"){P=D;break b}P=""}P!==void 0&&(E=a3(_.Qe().getState(),P),E=_.j6(P,L,void 0,void 0,E))}P=AjT(_.fo("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),XOT(L));B=L&&QG&&P?{playlistId:L,navigationEndpoint:E,
viewPlaylistText:P,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:QG}},title:JN(B.mainPlaylistEntity.title),shortBylineText:JN(B==null?void 0:(Z=B.channelEntity)==null?void 0:Z.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:g4G,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:L,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.fo("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:K}}}:
void 0;l.call(v,{gridPlaylistRenderer:B})}}K={gridRenderer:{items:u}};y===1&&(x=sj4(Q,M))}else if(v){var hz=_.Mq((l=u==null?void 0:u.localizedPromptMessage)!=null?l:"");K={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Mq(_.fo("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.OxT}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Mq(_.fo("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};x=sj4(Q,M)}else hz=_.Mq(_.fo("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
K={};return{contents:[{shelfRenderer:{title:h,titleAnnotation:x,icon:{iconType:b},subtitle:hz,content:K,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:N}]}}}}],loggingDirectives:{clientVeSpec:{uiType:T}}}};
Rrz=function(R,y,u,v,Q,M,K,h,b,N,T){u=u===void 0?{}:u;v=v===void 0?{}:v;Q=Q===void 0?!1:Q;M=M===void 0?!1:M;K=K===void 0?!1:K;h=h===void 0?!1:h;b=b===void 0?!1:b;N=N===void 0?0:N;T=T===void 0?-Infinity:T;if(!(y.length||R.length||Q||h))return M?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:nG4(u)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.Mq(_.fo("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 x=[];R.length&&x.push(CCT(R,0));h?x.push({contents:[{statementBannerRenderer:duO(b,v)}]}):Q?x.push(CCT(y,1,u,K,N,T)):M&&x.push({contents:[{statementBannerRenderer:r1E(u)}]});(Q&&y.length||R.length)&&x.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Mq(_.fo("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 x.map(function(B){return{itemSectionRenderer:B}})};
mh=function(R,y){if(typeof R!=="object")return null;R=_.V(Object.entries(R));for(var u=R.next();!u.done;u=R.next()){var v=_.V(u.value);u=v.next().value;v=v.next().value;if(u===y)return u;if(v=mh(v,y))return u+"."+v}return null};
AG=function(R){var y=R.content;return(R=R.styleRuns)&&y?{runs:R.map(function(u){var v={text:y.slice(u.startIndex,u.startIndex+u.length)};u.fontColor&&(v.textColor=u.fontColor);return v})}:{simpleText:y}};
vpG=function(R,y,u,v){var Q=yCU;v&&(R.quantity=v);if(!R.quantity||!R.maxQuantity)return{};v=R.minusButton;var M=R.plusButton,K,h,b,N;return{value:R.quantity,maxValue:R.maxQuantity,onChangeCallback:function(T){Q(R,T)},
minusLabel:(K=_.e(v,uGT))==null?void 0:K.label,minimumReachedLabel:(h=_.e(v,uGT))==null?void 0:h.limitReachedLabel,plusLabel:(b=_.e(M,uGT))==null?void 0:b.label,maximumReachedLabel:(N=_.e(M,uGT))==null?void 0:N.limitReachedLabel,disabled:y,onRemoveCommand:u}};
yCU=function(R,y){var u=R.quantityIncrementerEntityKey;if(u){var v={};v.quantity=y;_.vy(_.DT("quantityIncrementerEntity",u,v));R.onChangeCommand&&_.zN(R.onChangeCommand)}};
MR8=function(R,y){(R=QoT(R))&&(y?joz.push({command:R,sourceData:{},commandContext:void 0}):_.ua().resolve(_.jX).resolveCommand(R))};
QoT=function(R){return _.e(R,_.ac)};
JCU=function(){var R=window.performance.timeOrigin+window.performance.now(),y=(new _.pX).setSeconds(R/1E9);return _.SK(y,2,_.CY(R%1E9),0)};
iOc=function(R,y){var u;R=(u=_.e(_.e(R,_.ac),VRG))==null?void 0:u.methodName;var v,Q;(u=window.youtubewebview||((v=window.webkit)==null?void 0:(Q=v.messageHandlers)==null?void 0:Q.youtubewebview))&&R&&(v=new tG,R=_.eQ(v,1,R),R=_.nZ(R.JSC$12307_serializeBinary()),y=_.nZ(y),u.postMessage(R+","+y))};
c2=function(R,y){var u=_.e(_.e(R,_.ac),VRG);u&&(y&&(u.serializedAdditionalMetadata=_.nZ(y)),MR8(R,!0))};
KAU=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"}};
ISS=function(){return!!_.EB("ID_TOKEN")};
FAP=function(R){return R instanceof Error&&R.cause instanceof hrS&&R.cause.rpcErrorCode!==void 0?!bOL.includes(R.cause.rpcErrorCode):!0};
Nk4=function(){return _.LG(wPc,{authuser:""+(_.EB("SESSION_INDEX")||0)})};
ay=function(R,y,u,v){u=u===void 0?"MINI_APP_SDK_API_UNSPECIFIED":u;v=v===void 0?"":v;var Q=new _.OL;u={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:v,sdkApi:u};R instanceof Error&&(Q.message=R.message,Q.name=R.name,R.cause instanceof hrS&&R.cause.rpcErrorCode!==void 0&&(u.rpcErrorCode=R.cause.rpcErrorCode));var M;(M=y.onError)==null||M.call(y,{loggingError:Q,metadata:u})};
opv=function(R,y,u,v){switch(R){case "MINI_APP_SOURCE_GAMESNACKS":return new S8(y,u,v);default:return new TkP(y,u,v)}};
xKc=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"}};
BkP=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"}};
fSc=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"}};
erc=function(){return Math.floor(Math.random()*4)+1};
lSz=function(R,y,u,v){R=_.V(Object.entries(R));for(var Q=R.next(),M={};!Q.done;M={message$jscomp$990:void 0},Q=R.next()){var K=_.V(Q.value);Q=K.next().value;K=K.next().value;M.message$jscomp$990=K;y.push(setTimeout(function(h){return function(){v(!1);u(h.message$jscomp$990.text)}}(M),M.message$jscomp$990.delayMs));
Number(Q)>0&&y.push(setTimeout(function(){v(!0)},M.message$jscomp$990.delayMs-400))}};
OO8=function(R,y){var u=u===void 0?pq8:u;_.f("mweb_fix_monitor_visibility_after_render")?R&&Xg(function(){auv(R,y,u)}):Xg(function(){auv(R,y,u)})};
npS=function(R){var y=R.data;var u=R.uniqueId;R=R.overrides;var v,Q=((v=y.timedAnimationData)==null?void 0:v.animationTiming)||[];return _.F("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.F(ZOc,{settings:{uniqueId:u,timings:Q,experimentEnabled:Q.length>0,enabled:Q.length>0}},HOE(y.buttonRenderer,{buttonRenderer:{buttonOverrides:R}})))};
WAT=function(R){GVU||(GVU=rC4(new _.Ys(1,void 0,void 0,P9v),0));var y=GVU.format(Math.floor(R));y=_.S6==="be"||_.S6==="bg"||_.S6==="es"||_.S6==="et"||_.S6==="hu"||_.S6==="ka"||_.S6==="lv"||_.S6==="pl"||_.S6==="pt-PT"||_.S6==="sq"?y.replace(new RegExp("^(\\d)"+P9v.GROUP_SEP.replace(".","\\.")+"(\\d+("+P9v.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):y;return R>=1E3&&R<=9999&&y[1]==="."&&(_.S6==="sl"||_.S6==="it")?y.replace(".",""):y};
dKT=function(R,y){Ad("ytd-button-renderer",{data:R,className:y?y.className:"",overrides:y==null?void 0:y.buttonOverrides},Sf)};
EpT=function(R,y,u,v){if(R)return v=v||R.likeStatus,y?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:v==="LIKE",isDisabled:!R.likesAllowed,defaultIcon:{iconType:u},defaultText:v==="LIKE"?R.likeCountWithUnlikeText:R.likeCountText,toggledText:v==="LIKE"?R.likeCountText:R.likeCountWithLikeText,defaultNavigationEndpoint:UKO(R,"LIKE"),defaultServiceEndpoint:kVU(R,"LIKE"),toggledServiceEndpoint:kVU(R,"INDIFFERENT"),defaultTooltip:_.u7(R.likeCountTooltipText),toggledTooltip:_.u7(R.likeCountTooltipText),
targetId:R.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:v==="DISLIKE",isDisabled:!R.likesAllowed,defaultIcon:{iconType:u},defaultText:v==="DISLIKE"?R.dislikeCountWithUndislikeText:R.dislikeCountText,toggledText:v==="DISLIKE"?R.dislikeCountText:R.dislikeCountWithDislikeText,defaultNavigationEndpoint:UKO(R,"DISLIKE"),defaultServiceEndpoint:kVU(R,"DISLIKE"),toggledServiceEndpoint:kVU(R,"INDIFFERENT"),defaultTooltip:_.u7(R.dislikeCountTooltipText),
toggledTooltip:_.u7(R.dislikeCountTooltipText)}};
UKO=function(R,y){if(y==="LIKE")return R.likeCommand;if(y==="DISLIKE")return R.dislikeNavigationEndpoint};
kVU=function(R,y){var u;return(u=R.serviceEndpoints)==null?void 0:u.find(function(v){var Q;return((Q=_.e(v,_.YY))==null?void 0:Q.status)===y})};
_.XPz=function(R,y,u){return window.spf&&!_.f("web_disable_spfjs_client")?$KS(R,y,u):qav(R,y)};
$KS=function(R,y,u){var v=null,Q=(new _.F4(function(M,K){var h={};if(y){h.method=y.method;var b=y.postParams||{};A_E(R,y)&&(b[_.EB("XSRF_FIELD_NAME")]=_.EB("XSRF_TOKEN"));h.postData=_.NC(b);y.type&&(h.type=y.type);b=y.headers}h.headers=kPE(R,b);_.f("debug_forward_web_query_parameters")&&(R=_.XoT(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)});K(N.err)};
h.onPartDone=function(N){u&&u.call(null,N.part)};
h.onDone=function(N){var T=mKT(N.response,"xsrf_token");gB(window.location.href,R)&&T&&_.kB("XSRF_TOKEN",T);if(T=mKT(N.response,"service_worker_killswitch"))_.kB("SERVICE_WORKER_KILLSWITCH",T),xHT();M(N.response)};
v=spf.request(R,h)})).then(ACv);
Q.thenCatch(function(M){var K=M instanceof _.LX,h=M&&M.hasOwnProperty("params")&&M.params.response?M.params.response:"";M instanceof Error&&(h?K?lOT(M):h===')]}\'\n{"reload":"now"}'?lOT(M):(DKG(M,R,h),pPG(M,h)?_.kT(M):_.dI(M)):lOT(M));v&&v.abort()});
return Q};
ACv=function(R){if(R.type==="multipart"){var y=R.timing;R=R.parts.reduce(function(u,v){Object.assign(u,v);return u},{});
R.timing=R.timing||{};Object.assign(R.timing,y);R.type="reduced"}return R};
qav=function(R,y){y=y===void 0?{}:y;var u=null,v=new _.F4(function(Q,M){y.onFinish=function(K){if(K.readyState===XMLHttpRequest.DONE)if(K.status===200){if(K.responseType!=="json"){var h=K.response;h.substring(0,5)===")]}'\n"&&(h=h.substring(5));try{var b=JSON.parse(h)}catch(N){b=N}}else b=K.response;b instanceof Error?M(b):(h=mKT(b,"xsrf_token"),gB(window.location.href,R)&&h&&_.kB("XSRF_TOKEN",h),K=K.responseURL,window.performance&&window.performance.getEntriesByName?(h=window.performance.getEntriesByName(K).pop())?
K={responseStart:(0,_.uQ)()-(h.responseEnd-h.responseStart)}:(Math.random()<.01&&(h=Error("bi"),h.params=K,_.kT(h)),K={responseStart:-1}):K={responseStart:0},b.timing=b.timing||{},Object.assign(b.timing,K),Q(b))}else M(Error("ai`"+K.status))};
(u=_.wR(R,y))||M(Error("ai`"+u.status))});
v.thenCatch(function(Q){Q instanceof Error&&(DKG(Q,R),pPG(Q)&&(Q.level="WARNING"))});
_.f("cancel_pending_navs")&&v.thenCatch(function(){u.abort()});
return v};
mKT=function(R,y){var u=R[y],v=R.parts;R.type==="multipart"&&v&&(u=(R=v.find(function(Q){return y in Q}))&&R[y]);
return u};
DKG=function(R,y,u){var v=R.message||"";y={original:v,url:y};if(u)if(v=v.match(/position:?\s*(\d+)/)){v=v&&Number(v[1])?Number(v[1]):0;var Q=Math.max(v-25,0);y.position=v;y.response=u.substring(Q,v+25)}else y.response=u.substring(0,50);_.Eh(R,y);try{R.message="JSON parse error"}catch(M){}};
pPG=function(R,y){R=R.message||"";R=!!(R.indexOf("<")>=0||R.indexOf("end of ")>=0||R.indexOf("Unterminated string")>=0||R.indexOf("Unexpected EOF"));if(!R&&y)for(var u=y.length,v=!1,Q=0;Q<u;Q++)if(v&&y[Q]==="\\")Q++;else if(y[Q]==='"')v=!v;else if(y[Q]==="<"&&!v){R=!0;break}return R};
tRT=function(){return document.documentElement.hasAttribute("dark")};
_.cC4=function(R,y){if(R!=="GFEEDBACK"&&R!=="GUIDED_HELP")_.mq(Error("ci`"+R));else{var u=_.ua().resolve(_.yN(_.iD));if(u&&(u=u.getCurrentPage())&&u.getServiceTrackingParams&&(u=u.getServiceTrackingParams()))for(var v=0,Q;Q=u[v++];)if(Q.service===R){if(R=Q.params)for(u=0;v=R[u++];)y[v.key]=v.value;break}}};
_.aST=function(R){var y=_.I8();y&&(y=y.getPlayer())&&(y.pauseVideo(),R.playback_id=y.getVideoData().cpn,R.eid=y.getVideoData().eventId,Object.assign(R,y.getFeedbackProductData()))};
SaT=function(){var R={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.EB("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(R.enableAnonymousFeedback=!0);_.EB("SESSION_INDEX")&&(R.authuser=String(_.EB("SESSION_INDEX")));_.f("enable_pageid_for_feedback")&&_.EB("DELEGATED_SESSION_ID")&&(R.pageId=String(_.EB("DELEGATED_SESSION_ID")));return R};
_.sz=function(R){_.f("enable_ypc_spinners")&&_.Ik(R,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},R])};
_.zx=function(R){_.f("enable_ypc_spinners")&&_.Ik(R,"yt-close-popup-action",["yt-loading-renderer"])};
Yav=function(R){return new Promise(function(y,u){_.Yi({verifyCommand:{recaptchaToken:R.recaptchaResponse}},{commandController:{onSuccess:function(v,Q){Q||u("ChallengeService did not return a response.");var M;y({challengeCompleted:(M=Q.verified)!=null?M:!1})},
onServerError:function(v,Q){u(Q)}}})})};
LAW=function(R,y,u,v){y({recaptchaResponse:v}).then(function(Q){Q.challengeCompleted?_.fJ()?(u(3),_.ua().resolve(_.jX).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:R}})):u(2):u(4)},function(){u(4)})};
zrU=function(R,y,u){_.tl(_.M1(soT,_.EB("HL")),function(){var v;(v=window.grecaptcha)==null||v.ready(function(){var Q=window.grecaptcha;Q?(u(Q.render(R,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:LAW.bind(null,R,Yav,y)})),y(1)):y(4)})})};
gpP=function(R,y){return function(){switch(y()){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}}()};
_.g$=function(){if(!C9O){var R=document.querySelector("#player.skeleton");R&&(_.BY(R),C9O=!0)}};
_.y$G=function(){return RmG=xAz()};
QTU=function(){return _.I(function(R){return utS!==void 0?R.return():R.yield(vyT(),0)})};
vyT=function(){return _.I(function(R){if(R.nextAddress==1)return R.yield(fYU(),2);RmG=R.yieldResult;utS=_.WG.addLowPriorityJob(vyT,5E3);_.f$(R)})};
KyE=function(R){var y=y===void 0?jT4:y;var u,v,Q=(u=R.responseContext)==null?void 0:(v=u.mainAppWebResponseContext)==null?void 0:v.trackingParam;if(!Q){y.increment("MISSING");var M,K,h,b,N,T;_.kT(new _.OL("282054944_a",{vOm:!!((M=R.responseContext)==null?0:(K=M.mainAppWebResponseContext)==null?0:K.loggedOut),tsR:((h=R.responseContext)==null?void 0:h.mainAppWebResponseContext)===void 0,hPk:R.responseContext===void 0,cp:(b=R.playabilityStatus)==null?void 0:b.contextParams,yPk:(((N=R.streamingData)==
null?void 0:N.formats)||[]).length>0,p3R:(((T=R.streamingData)==null?void 0:T.adaptiveFormats)||[]).length>0,os:!!R.offlineState,cotn:R.cotn}));return 2}u="";try{u=Mev(Q)}catch(l){return y.increment("C_ERROR"),_.dI(l),2}try{var x=_.J$v(u);var B=VeP(x)}catch(l){return y.increment("P_ERROR"),_.dI(l),2}B=_.vY(B,i7L,1,_.Q7());Q=[];B=_.V(B);for(x=B.next();!x.done;x=B.next())v=x.value,x=v.getPath(),u=(0,_.Ps.getValueByKeys)(R,x.split(".")),u=String(u===void 0||u===null?"":u),v=v.getValue()||"",M=/[+\-\/_]/g,
u.replace(M,"")!==v.replace(M,"")&&(y.increment("MISMATCH"),_.f("ab_mis_log_err")&&(u=new _.OL("282054944_p",{lXL:x,g:String(u),e:String(v)}),_.dI(u)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(x)||(x.match(/enforcementMessageViewModel/i)?Q.push(3):Q.push(2)));if(Q.length>0)return Math.max.apply(Math,_.P$(Q));y.increment("SUCCESS");return 1};
b7U=function(R){var y=new CX;if(R.interpreterJavascript){var u=_.N24(R.interpreterJavascript);u=j1z(u).toString();var v=new IUP;_.eQ(v,6,u);_.wC(y,1,v,PK)}else R.interpreterUrl&&(u=_.d3(R.interpreterUrl),u=_.Oo(u).toString(),v=new _.hm4,_.eQ(v,4,u),_.wC(y,2,v,PK));R.interpreterHash&&_.R2(y,3,R.interpreterHash,PK);R.program&&_.R2(y,4,R.program,PK);R.globalName&&_.R2(y,5,R.globalName,PK);R.clientExperimentsStateBlob&&_.R2(y,7,R.clientExperimentsStateBlob,PK);return y};
yz=function(R){var y={};R=_.V(R.split("&"));for(var u=R.next();!u.done;u=R.next())u=u.value.split("="),u.length===2&&(y[u[0]]=u[1]);return y};
FyU=function(R){return Number(R.t)||7200};
nBL=function(){if(_.f("bg_st_hr"))return"havuokmhhs-0";var R,y=((R=performance)==null?void 0:R.timeOrigin)||0;return"havuokmhhs-"+Math.floor(y)};
wBO=function(){return new Promise(function(R){var y=window;y.ntpevasrs!==void 0?R(new u1(y.ntpevasrs)):(y.ntpqfbel===void 0&&(y.ntpqfbel=[]),y.ntpqfbel.push(function(u){R(new u1(u))}))})};
NzE=function(R){var y=R.zxb.bind(R);_.CJ("yt.aba.att",y);R=R.sHR.bind(R);_.CJ("yt.aba.att2",R)};
oyU=function(R){switch(_.Fq(R.input)){case _.jq(TzE):var y={};return y.encryptedVideoId=R.innerTubeRequest.externalVideoId,y}return{}};
fUT=function(R){switch(_.Fq(R.input)){case _.jq(TzE):if(_.f("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.jq(x2P):if(_.f("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.jq(vZ):if(_.f("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&R.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.jq(Bzz):var y,u;if(_.f("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((u=_.e((y=R.config)==null?void 0:y.command,qeU))==null?0:u.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.lUE=function(R){var y;if(R.playlistVideoRenderer&&((y=R.playlistVideoRenderer)==null?0:y.engagementBar))return em4(R.playlistVideoRenderer.engagementBar);if(_.e(R,Qz)){var u;if(R=(u=_.e(R,Qz))==null?void 0:u.engagementBar)return em4(R)}return""};
em4=function(R){if(!R)return"";R=_.e(R,_.O7c);if(R==null||!R.actions)return"";R=_.V(R.actions);for(R=R.next();!R.done;R=R.next()){R=_.e(R.value,_.Z7v);var y=void 0;if((y=R)==null||!y.itemId)break;return R.itemId}return""};
_.H7G=function(R){var y;if(R.playlistVideoRenderer&&((y=R.playlistVideoRenderer)==null?0:y.videoId))return R.playlistVideoRenderer.videoId;if(_.e(R,Qz)){var u,v;if(R=(u=_.e(R,Qz))==null?void 0:(v=u.playlistItemData)==null?void 0:v.videoId)return R}return""};
_.nyP=function(R){var y;if(R.playlistVideoRenderer&&((y=R.playlistVideoRenderer)==null?0:y.voteCount))return R.playlistVideoRenderer.voteCount;if(_.e(R,Qz)){var u,v;if(R=(u=_.e(R,Qz))==null?void 0:(v=u.playlistItemData)==null?void 0:v.voteCount)return R}return 0};
_.jV=function(R,y){return _.TI(R.entities,"flowStateEntity",y)};
r$O=function(R,y,u,v){var Q=void 0;R=_.V(R[y.iconName]||[]);for(var M=R.next();!M.done;M=R.next()){M=M.value;var K=y.iconSize;var h=y.iconStyle;K=!K||K===M[2];var b=GOT[M[0]];v&&v!==M[1]||!K||h&&h!==b?h=!1:Q?(h=GOT[M[0]],h=!!y.iconStyle||h==="youtube_outline",K=Q.version<=M[1],h=(!!y.iconSize||M[2]===24)&&h&&K):h=!0;h&&(Q={name:y.iconName,style:GOT[M[0]],size:M[2],version:M[1],allowMirroring:!!M[3],url:u(y.iconName,M)})}return Q};
Pic=function(R,y,u,v){return R+(""+GOT[u[0]]+((v===void 0?0:v)?"_experimental":"")+"/"+y+"/v"+u[1]+"/")+(u[2]+"px.svg")};
WyG=function(R){return _.EB("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"?"bookmark":R};
d2U=function(R,y){return Pic("https://fonts.gstatic.com/s/i/",R,y)};
U2U=function(R,y){return Pic("https://fonts.gstatic.com/s/i/",R,y,!0)};
kOU=function(R,y){return Pic("https://www.gstatic.com/youtube/img/icons/web/",R,y)};
$2z=function(R){var y=R.enabled;var u=R.itemPlaybackModel;var v=R.thumbnailElRef;var Q=R.containerElRef;var M=R.options;var K;_.ny(function(){var h=Q==null?void 0:Q.value;var b,N=(b=v())==null?void 0:b.value;b=u();var T=M();if(y&&b&&h&&N&&(T==null?0:T.thumbnail)){var x={data:b,hostElement:h},B,l,Z=_.f("web_explore_hub_on_hover")||_.f("web_client_explore_hub_on_hover")?[].concat(_.P$((B=T.thumbnailOverlays)!=null?B:[]),_.P$((l=b.overlays)!=null?l:[])):T.thumbnailOverlays||[],P,k;h={mediaRenderer:x,
lockupElement:h,thumbnailElement:N,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.Sb((P=b.inlinePlayerData)==null?void 0:P.onVisible),navigationEndpoint:_.Sb((k=b.inlinePlayerData)==null?void 0:k.onSelect),thumbnail:T.thumbnail,thumbnailOverlays:Z,accessibilityText:T.accessibilityText||""},thumbnailSize:T.thumbnailSize,enableRounding:T.enableRounding}}}else h=void 0;if(P=h){var E;(E=K)==null||Mr(E);K=sC(P);var D,z;((D=u())==null?0:(z=D.inlinePlayerData)==null?0:z.forceImpAutoplay)&&
EyS(K)}},"B33dEc");
_.GF(function(){var h;(h=K)==null||Mr(h)})};
qtT=function(R){R=atob(R);for(var y=[],u=0;u<R.length;u++)y.push(R.charCodeAt(u));return new Blob([new Uint8Array(y)],{type:"image/png"})};
m2U=function(R,y,u,v){v=v===void 0?"INSERTION_POSITION_UNSPECIFIED":v;return R({targetId:y},function(Q){var M,K=(M=Q.contents)!=null?M:[];M=u!=null?u:[];var h=XBP(K);switch(v){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},Q,{contents:[].concat(_.P$(K.slice(0,h)),_.P$(M),_.P$(K.slice(h+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},Q,{contents:[].concat(_.P$(M),_.P$(K))});case "INSERTION_POSITION_LAST":return Object.assign({},Q,{contents:[].concat(_.P$(K),_.P$(M))});
default:return Q}})};
D2W=function(R,y,u,v,Q){Q=Q===void 0?"RELATIVE_INSERTION_POSITION_AFTER":Q;return R({targetId:y},function(M){var K,h=(K=M.contents)!=null?K:[];K=A$U(h,u);if(K<0)return M;K=Q==="RELATIVE_INSERTION_POSITION_BEFORE"?K:K+1;return Object.assign({},M,{contents:[].concat(_.P$(h.slice(0,K)),_.P$(v),_.P$(h.slice(K)))})})};
XBP=function(R){var y=R.findIndex(function(u){return _.e(u,_.Je)});
return y>=0?y:R.length};
A$U=function(R,y){return R.findIndex(function(u){a:{u=_.V(Object.values(u));for(var v=u.next();!v.done;v=u.next())if((v=v.value)&&v.targetId){u=v.targetId;break a}u=""}return u===y})};
teW=function(R,y,u){return R({targetId:y},function(v){var Q,M=(Q=v.contents)!=null?Q:[];return Object.assign({},v,{contents:pBO(M,u)})})};
pBO=function(R,y){return R.filter(function(u){var v=y.includes;a:{u=_.V(Object.values(u));for(var Q=u.next();!Q.done;Q=u.next())if((Q=Q.value)&&Q.targetId){u=Q.targetId;break a}u=""}return!v.call(y,u||"")})};
_.c$8=function(R,y){return{engagementPanelSectionListRenderer:{panelIdentifier:R,identifier:y,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
_.StT=function(R){var y,u=(y=R.getOption("captions","tracklist",{includeAsr:!0}))!=null?y:[];return u=aUT(u,R)};
YtE=function(R){return R.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
aUT=function(R,y){y=YtE(y);if(y==null||!y.length)return R;var u=y.filter(function(K){return K});
y=R.filter(function(K){return K.languageCode.startsWith("en")});
u=_.V(u);for(var v=u.next();!v.done;v=u.next())if(v=v.value,y.length){var Q=y[0],M=Object.assign({},Q);Q.languageCode!==v.languageCode&&(M.displayName=Q.languageName+" >> "+v.languageName,M.translationLanguage=v,R.push(M))}return R};
Lyz=function(R,y,u){R=_.StT(R);if(R.length)return u?R.find(function(v){if(typeof(v==null?void 0:v.translationLanguage)==="object"){var Q;return((Q=v.translationLanguage)==null?void 0:Q.languageCode)===y}return!1}):R==null?void 0:R.find(function(v){return v.languageCode===y})};
sTT=function(R){return R.getOption("captions","tracklist",{includeAsr:!0})};
zmE=function(R){return R.getOption("captions","tracklist",{includeAsr:!0})};
gyc=function(R){var y=zmE(R);if(y==null?0:y.length)return y;R.loadModule("captions");return zmE(R)};
CiT=function(R){var y=R.getOption("captions","track");if(y)return y;R.loadModule("captions");return R.getOption("captions","track")};
yBG=function(R){var y=gyc(R);if(y!=null&&y.length){var u=CiT(R),v;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.fo("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(u==null?0:u.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.P$(y.map(function(Q){return{listItemViewModel:{title:{content:Q.displayName},
isSelected:Q.displayName===(u==null?void 0:u.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:Q.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.fo("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!u.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!u.translationLanguage&&{selectionText:{content:(u==null?void 0:(v=u.translationLanguage)==null?void 0:v.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[R0U(R)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
R0U=function(R){var y=YtE(R);if(y==null||!y.length)throw Error("Ai");var u=CiT(R);R=y.filter(function(v){return!v.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.P$(R.map(function(v){var Q;return{listItemViewModel:{title:{content:v.languageName},isSelected:v.languageName===(u==null?void 0:(Q=u.translationLanguage)==null?void 0:Q.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:v.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
jDS=function(R){return new Promise(function(y,u){if(R===void 0)_.dI(Error("Ei"),"ERROR"),u(Error("Ei"));else{u=new _.uYO;var v=_.vbz();u=u.init();var Q=_.QD4(_.EB("YPC_MB_URL"),!0);Promise.all([u,Q]).then(function(){var M=payments.business.integration.ClientTokenFactory.createClientToken(R,v);y(M)})}})};
V9z=function(R,y,u,v,Q,M,K){var h=_.uD();u=u.replace(/-/g,"+").replace(/_/g,"/");var b=_.O9().get("hl"),N=_.Vz(_.ya),T=y==null?void 0:y.element;T&&_.sz(T);M9T(y,!0);_.JB8(N,u,h.resolve,function(){T&&_.zx(T)},function(x){T&&_.zx(T);
h.reject(x)},b,v?function(x){v&&_.yB(R,v,{backend_analytics:x})}:void 0,h.resolve,Q,M,K);
return h.promise};
M9T=function(R,y){!(R=R==null?void 0:R.element)||R.tagName!=="YT-BUTTON-RENDERER"&&R.tagName!=="YTD-BUTTON-RENDERER"||(R.disabled=y)};
iP4=function(){var R=_.fo("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.Mq(R),actionButton:{buttonRenderer:ODO()}}},popupType:"TOAST"}};
K1v=function(){var R=_.fo("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.Mq(R),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
IJv=function(R){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:R}]}}};
i1=function(R,y,u,v){var Q;return _.I(function(M){if(M.nextAddress==1)return _.wY(M,2),M.yield(R,4);if(M.nextAddress!=2)return(Q=_.GI(y.getState().entities).length>0)?M.return({title:_.Mq(_.fo("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.Mq(_.fo("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:l_W()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
M.return(ZDT(u,v));_.B$(M);return M.return(ZDT(u,v))})};
h0W=function(R,y){return y?y==="PPSV"||CuP(R,y):!1};
bP4=function(R){R.responseContext||(R.responseContext={});R.responseContext.maxAgeSeconds=0;return R};
I2=function(R){var y;return _.I(function(u){return u.nextAddress==1?u.yield(F1P(R,"service:topbar:fallback"),2):(y=u.yieldResult)&&_.KR(y)?u.return(bP4(_.KR(y))):u.return()})};
wFW=function(R){var y;return _.I(function(u){return u.nextAddress==1?u.yield(F1P(R,"service:downloads_settings:fallback"),2):(y=u.yieldResult)&&_.KR(y)?u.return(y):u.return()})};
F1P=function(R,y){var u;return _.I(function(v){if(v.nextAddress==1)return R?v.yield(R.get(y),2):v.return();u=v.yieldResult;return!u||!_.KR(u)||!isNaN(Number(u.data.expireTimestampMs))&&u.isExpired()?v.return():v.return(u)})};
Ni4=function(R){var y=_.ua().resolve(he).getState().entities;return R.playlistId?h0W(y,R.playlistId):!1};
TiS=function(R,y){var u;if(y==null?0:(u=y.requestTemplate)==null?0:u.panelId)R.panelId=y.requestTemplate.panelId;var v;if(y==null?0:(v=y.requestTemplate)==null?0:v.params)R.params=y.requestTemplate.params};
xN8=function(){if(obO)return obO();var R=!_.f("idb_response_store_auth_killswitch"),y={};obO=yO("yt-it-response-store",{objectStores:(y.ResponseStore={addedAtVersion:1},y),shared:!R,upgrade:function(u,v){v(1)&&(u=XM(u,"ResponseStore",{keyPath:["key","clientName"]}),me(u,"byExpiration","expireTimestampMs"),me(u,"byInterface","clientName"))},
version:1});return obO()};
BiE=function(R){return _.SX(xN8(),R)};
e0L=function(R,y){var u;return _.I(function(v){return v.nextAddress==1?v.yield(_.Rz(),2):(u=v.yieldResult)?v.return(new fJv(R,y,u)):v.return()})};
lJS=function(R){var y=Object.keys(R)[0];if(y)return R.screenExit&&(y=y+";"+R.screenExit.screen),y};
OPS=function(R){var y=new Map;R=_.V(R);for(var u=R.next();!u.done;u=R.next())u=u.value,u!=null&&(y.has(u.taskType)||y.set(u.taskType,[]),y.get(u.taskType).push(u));return y};
ZPG=function(R){return!isNaN(R)&&R>0};
HPT=function(R){R=[].concat(_.P$(R)).sort(function(u,v){return u-v});
var y=Math.floor(R.length/2);return R.length%2?R[y]:(R[y-1]+R[y])/2};
rBE=function(R,y){R=R===void 0?Vo4:R;y=y===void 0?{}:y;_.CJ("yt.logging.errors.log",_.dI);MoT();nbO(bAL(),y);window.onerror=R;GA4=JFW;window.addEventListener("unhandledrejection",function(u){if(u.reason instanceof Error){var v=u.reason;_.Eh(v,{source:"unhandledrejection"});v.name==="AbortError"&&(v.level="WARNING")}JFW(u.reason);u.preventDefault()})};
_.PPc=function(R){return R.a11y.ephemeralAction||null};
_.W1z=function(R){var y,u,v,Q,M,K,h,b,N,T,x,B,l,Z,P,k,E,D,z,c,a,L,QG,hz,bO,BW,Zc,xS,Dc,$S,hL,WK,JL,sP,wg,bT,HK,Ta,Sg,MU;return _.I(function(vK){if(vK.nextAddress==1)return vK.yield(_.lE(R,{mode:"readonly",enableRetries:!0},function(eg){return Oq(eg,"playbackData").then(function(oP){var BK=oP.map(function(KY){return KY.transfer}).filter(function(KY){return!!KY}),pY=oP.map(function(KY){return KY.offlineVideoPolicy}).filter(function(KY){return!!KY}),v$=oP.filter(function(KY){return!!KY.key}).map(function(KY){return _.Nq(_.bE(KY.key).entityId,
"downloadStatusEntity")});
BK=Oq(eg,"transfer",BK);pY=Oq(eg,"offlineVideoPolicy",pY);v$=Oq(eg,"downloadStatusEntity",v$);var RP=BK.then(function(KY){KY=KY.reduce(function(si,Fp){(Fp==null?0:Fp.offlineVideoStreams)&&si.push.apply(si,_.P$(Fp.offlineVideoStreams));return si},[]).filter(function(si){return!!si});
return Oq(eg,"offlineVideoStreams",KY)});
return mi.all([BK,pY,RP,v$]).then(function(KY){var si=_.V(KY);KY=si.next().value;var Fp=si.next().value;var Oi=si.next().value;si=si.next().value;return[oP,KY,Fp,Oi,si]})})}),2);
if(vK.nextAddress!=3)return y=vK.yieldResult,vK.yield(_.lE(R,{mode:"readonly",enableRetries:!0},function(eg){return Oq(eg,"mainDownloadsListEntity").then(function(oP){var BK,pY;return(pY=(BK=oP[0])==null?void 0:BK.downloads)!=null?pY:[]})}),3);
u=vK.yieldResult;v=_.V(y);Q=v.next().value;M=v.next().value;K=v.next().value;h=v.next().value;b=v.next().value;N=Q;T=M;x=K;B=h;l=b;Z={};P={};k={};E={};D={};z=[];c=_.V(T);for(a=c.next();!a.done;a=c.next())(L=a.value)&&(Z[L.key]=L);QG=_.V(x);for(hz=QG.next();!hz.done;hz=QG.next())(bO=hz.value)&&(P[bO.key]=bO);BW=_.V(l);for(Zc=BW.next();!Zc.done;Zc=BW.next())(xS=Zc.value)&&(k[xS.key]=xS);Dc=_.V(B);for($S=Dc.next();!$S.done;$S=Dc.next())(hL=$S.value)&&(E[hL.key]=hL);WK=_.V(u);for(JL=WK.next();!JL.done;JL=
WK.next())sP=JL.value,wg=void 0,D[(wg=sP.videoItem)!=null?wg:""]=!0,sP.videoItem&&(HK=bT=void 0,Ta=(HK=(bT=_.bE(sP.videoItem))==null?void 0:bT.entityId)!=null?HK:"",z.push({externalVideoId:Ta}));Sg=N.filter(function(eg){if(!eg||!eg.key||!eg.offlineVideoPolicy)return!1;eg=_.bE(eg.key).entityId;eg=_.Nq(eg,"downloadStatusEntity");var oP;return!(eg&&((oP=k[eg])==null?void 0:oP.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
MU=Sg.map(function(eg){var oP=Z[eg.transfer],BK=[];if(oP==null?0:oP.offlineVideoStreams)for(var pY=_.V(oP.offlineVideoStreams),v$=pY.next();!v$.done;v$=pY.next())(v$=E[v$.value])&&BK.push(v$);pY=P[eg.offlineVideoPolicy];v$=D;var RP=eg==null?void 0:eg.playerResponseTimestamp,KY=_.bE(pY.key).entityId;eg=_.Nq(KY,"mainVideoEntity");if(pY.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var si="OFFLINE_VIDEO_STATE_DISABLED";pY.expirationTimestamp&&Number(pY.expirationTimestamp)<Date.now()/1E3&&(si="OFFLINE_VIDEO_STATE_EXPIRED")}else if(pY.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")si="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(oP==null?void 0:oP.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":si="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":si="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":si="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":si="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":si="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":si="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:si="OFFLINE_VIDEO_STATE_UNKNOWN"}if(si==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(oP==null?void 0:oP.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":si="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":si="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":si=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}KY={id:KY,videoState:si};if(oP==null?0:oP.cotn)KY.cotn=oP.cotn;if(oP==null?0:oP.maximumDownloadQuality)KY.selectedVideoQuality=oP==null?void 0:oP.maximumDownloadQuality;if(oP==null?0:oP.lastProgressTimeMs)KY.lastProgressTimeMs=oP.lastProgressTimeMs;RP&&(KY.playerResponseSavedTimeMs=String(Number(RP)*1E3));oP=String;RP=0;BK=_.V(BK);for(si=BK.next();!si.done;si=BK.next())if(si=si.value,si.streamsProgress){si=_.V(si.streamsProgress);for(var Fp=si.next();!Fp.done;Fp=
si.next()){var Oi=void 0;RP+=Number((Oi=Fp.value.numBytesDownloaded)!=null?Oi:0)}}KY.downloadedBytes=oP(RP);KY.selectedOfflineMode=v$[eg]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";pY.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(KY.offlinePlaybackDisabledReason=pY.offlinePlaybackDisabledReason);return KY});
return vK.return({offlineVideos:MU,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:z}}})})};
dNU=function(){var R;return _.I(function(y){return y.nextAddress==1?y.yield(_.Bd(),2):(R=y.yieldResult)?y.return(_.W1z(R)):y.return({state:"PES Unavailable"})})};
EbS=function(){var R,y,u,v;return _.I(function(Q){if(Q.nextAddress==1)return Q.yield(_.Bd(),2);if(Q.nextAddress!=3)return(R=Q.yieldResult)?Q.yield(UNU(R),3):Q.return({state:"PES Unavailable"});y=Q.yieldResult;u={};v=y.reduce(function(M,K){M[K.key]=K;return M},u);
return Q.return(kAE(v))})};
kAE=function(R){for(var y={},u=[],v=_.V(Object.keys(R)),Q=v.next();!Q.done;Q=v.next()){var M=Q.value;Q=R[M];var K=void 0;if(((K=Q)==null?void 0:K.entityType)==="mainVideoEntity"){delete R[M];var h=Q.data;Q={};if(h){var b=void 0;K=(b=h.videoId)!=null?b:"vid-"+M;M=R;Q.video=h;delete Q.video.formattedDescription;delete Q.video.thumbnail;h.owner&&(b=M[h.owner],b==null?0:b.data)&&(delete M[b.key],Q.video.owner=b.data,delete Q.video.owner.avatar);if(h=h.downloadState)if(b=M[h],b==null?0:b.data)if(delete M[h],
h=b.data.playbackData)if(b=M[h],b!=null&&b.data){delete M[h];h=b.data;delete h.playerResponseJson;Q.playbackData=h;if(h.transfer&&(b=M[h.transfer],b==null?0:b.data)){delete M[b.key];var N=b.data;Q.transfer=N;b=[];N=_.V(N.offlineVideoStreams||[]);for(var T=N.next();!T.done;T=N.next())if(T=M[T.value])delete M[T.key],b.push(T.data);b&&(Q.streams=b)}(h=h.offlineVideoPolicy)&&(h=M[h])&&h.data&&(delete M[h.key],Q.offlineVideoPolicy=h.data)}y[K]=Q}}else Q&&Q.entityType==="offlineOrchestrationActionWrapperEntity"&&
Q.data&&(delete R[Q.key],K=Q.data,M=void 0,u.push({id:K.rootActionId,type:((M=K.actionProto)==null?void 0:M.actionType)||"",entity:Q}))}y.wrapperEntities=u;Object.keys(R).length>0&&(y.unknownKeys=R);return y};
$NG=function(){var R,y,u,v,Q,M,K,h,b;return _.I(function(N){if(N.nextAddress==1)return R=!!(new _.$2("")).expiringStorage_,v=!!((y=_.uO.crypto)==null?0:(u=y.subtle)==null?0:u.importKey),Q=!!_.uO.BroadcastChannel,M=!!_.uO.navigator.locks,N.yield(mqS(),2);K=N.yieldResult;h=R&&v&&Q&&M&&K;b={isSupported:h};if(h)return N.return(b);b.missingBrowserFeatures=[];K||b.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");R||b.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
v||b.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");Q||b.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");M||b.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return N.return(b)})};
q_S=function(){var R;return!((R=b1?b1:null)==null||!R.window)};
_.mNE=function(R){if(_.GT()&&_.F4T("Chromium")>=120){var y=_.XF8().mediaSession;try{y.setActionHandler("enterpictureinpicture",function(){R()})}catch(u){}}};
ABT=function(R){for(var y=[],u=_.V(document.styleSheets),v=u.next(),Q={};!v.done;Q={node$jscomp$727:void 0},v=u.next())Q.node$jscomp$727=v.value.ownerNode,Q.node$jscomp$727&&(Q.node$jscomp$727 instanceof HTMLStyleElement||Q.node$jscomp$727 instanceof HTMLLinkElement)&&y.push(new Promise(function(M){return function(K){var h=M.node$jscomp$727.cloneNode(!0);h.onload=function(){K()};
h.onerror=function(){_.kT(Error("gj"));K()};
R.document.head.appendChild(h)}}(Q)));
return Promise.all(y)};
z0U=function(R){var y=[_.QW(DNc),_.QW(pFz),_.QW(t9U)];cBU(window.document.documentElement,R.document.documentElement,[_.QW(aJP),_.QW(S_W),_.QW(Y_E),_.QW(L1T),_.QW(sDz)]);cBU(window.document.body,R.document.body,y)};
cBU=function(R,y,u){R=_.V(R.attributes);for(var v=R.next();!v.done;v=R.next())if(v=v.value)try{_.R1(u,y,v.name,v.value)}catch(Q){}};
CPP=function(R,y){R=new _.F1(R.document.documentElement);R.start(gbv,y);return R};
Ryz=function(R){var y=R.document.documentElement;y.addEventListener("click",function(u){c5W(y,u)});
y.addEventListener("touchstart",function(u){s0E(u)});
y.addEventListener("mousedown",function(u){s0E(u)})};
uuT=function(R,y,u,v){v=v===void 0?!1:v;y=new yES(y||R,u||R);return{x:R.x+((v===void 0?0:v)?y.lengthX*-1:y.lengthX)*.2,y:R.y+((v===void 0?0:v)?y.lengthY*-1:y.lengthY)*.2}};
vVS=function(R){if(!R)return!1;var y=R.status==="OK"||R.status==="LIVE_STREAM_OFFLINE",u,v,Q,M=(Q=(u=R.errorScreen)==null?void 0:u.playerLegacyDesktopYpcTrailerRenderer)!=null?Q:(v=R.errorScreen)==null?void 0:v.ypcTrailerRenderer;return!!y||!!M};
_.Q9T=function(R,y){if(!R)return!1;var u,v=(u=R.errorScreen)==null?void 0:u.playerLegacyDesktopYpcOfferRenderer,Q;y=!!(y==null?0:(Q=y.playerOverlayRenderer)==null?0:Q.gatedActionsOverlayRenderer);return!!vVS(R)||!!v||!!y};
JET=function(R){return j9L(R,0,"gclid",R.search(MsL))>=0||j9L(R,0,"gad_source",R.search(MsL))>=0};
VsL=function(R){var y=[],u=0;return{clear:function(){u=y.length=0},
push:function(v){y[u]=v;u=(u+1)%R},
iterate:function(){return function Q(){var M,K,h,b;return _.wX(Q,function(N){switch(N.nextAddress){case 1:_.o1(N,2),M=y.length,K=0;case 4:if(!(K<M)){N.jumpTo(2);break}h=u+K;b=_.Nr;return N.yield(y[h%M],7);case 7:b(N.yieldResult);K++;N.jumpTo(4);break;case 2:_.T9(N),_.xL(N,0)}})}()}}};
KZP=function(){var R=i0T,y=Mk.bufferSize;R||(R=[]);R=R.map(ukU);var u=new Set(R),v=VsL(y);return{flush:function(){var Q=Array.from(v.iterate());v.clear();Q=Q.map(function(M){return{name:M.name,timestamp:M.startTime,attributes:M.attributes}});
return JSON.stringify(Q)},
onSpanStart:function(Q){Q.name==="event"&&u.has(Q.attributes.type)||v.push(Q)}}};
ImU=function(){var R=KZP(),y=R.flush;P3c({onSpanStart:R.onSpanStart});o9G.subscribe("handleError",function(u){try{u.params.breadcrumbs=y()}catch(v){_.dI(v,"WARNING")}})};
hyz=function(R,y,u){var v=R.endTime;if(v==null)throw Error("ij");var Q=R.name,M={};v-=R.startTime;var K=R.startTime;M={webTracing:(M[Q]=R.attributes,M)};u=_.A7(aaO)(Q,v,K,M,u,y);if(R.children)for(R=_.V(R.children),Q=R.next();!Q.done;Q=R.next())hyz(Q.value,y,u)};
FZc=function(){for(var R={},y=_.V(Mk.enabledSpansArray),u=y.next();!u.done;u=y.next())R[u.value]=!0;if(Mk.exportToCsi||Mk.exportBreadcrumbs)uE={sessionId:IRc()||"",nextSpanId:0,activeSpan:void 0,processors:[],enabledSpans:R};Mk.exportBreadcrumbs&&ImU();Mk.exportToCsi&&P3c(b0O)};
wDU=function(R){return new Promise(function(y){window.setTimeout(y,R)})};
N74=function(R){var y={bicf:function(M){R.s2O=M},
blc:function(){return R.getLatestChallengeResponse()},
bcr:function(M){R.aa8.push(M)}},u=window;
u.ntpevasrs=y;if(u.ntpqfbel!==void 0)for(var v=_.V(u.ntpqfbel),Q=v.next();!Q.done;Q=v.next())Q=Q.value,Q(y);u.ntpqfbel=void 0};
T7T=function(R){return _.I(function(y){if(y.nextAddress==1)return _.wY(y,2),y.yield(R.qDi(),4);if(y.nextAddress!=2)return _.c5(y,0);_.B$(y);_.f$(y)})};
oVS=function(R){var y,u;(y=R.ytcsi)==null||(u=y.tick)==null||u.call(y,"pot_ist")};
xXL=function(R){if(R instanceof Error){var y=_.D6("yt.logging.errors.log");y&&y(R,"WARNING")}};
B7T=function(R){try{var y=JSON.parse(R);if(y.bgChallenge)return y}catch(u){}};
eyG=function(){var R=window,y={networkStatusManagerPromise:_.ua().resolve(new lq8(_.tv)),initialChallengeSli:_.f("wpo_att_sli")?new _.Pmv("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};R=R===void 0?window:R;var u=R.ytAtR,v;y==null||(v=y.initialChallengeSli)==null||_.TK(v);if(u){if(u=B7T(u)){var Q;y==null||(Q=y.initialChallengeSli)==null||_.o2(Q,"SUCCESS");fmO(u,y)}R.ytAtR=void 0}else R.ytAtRC=function(M){if(M=B7T(M)){var K;y==null||(K=y.initialChallengeSli)==null||
_.o2(K,"SUCCESS");fmO(M,y);R.ytAtRC=void 0}}};
Z0P=function(){if(lmv)return lmv;try{var R=_.o_("IFRAME");_.cg(R,_.M1(O0z));R.sandbox.add("allow-same-origin");R.style.display="none";document.body.appendChild(R);return lmv=R}catch(y){R=new _.OL("Failed to create sandbox iframe"),_.dI(R)}};
H0z=function(R){var y,u;return(u=R==null?void 0:(y=R.contentWindow)==null?void 0:y.fetch)!=null?u:window.fetch};
nVE=function(R){var y,u;return(u=R==null?void 0:(y=R.contentWindow)==null?void 0:y.JSON.parse)!=null?u:JSON.parse};
Gvv=function(R){var y,u;return(u=R==null?void 0:(y=R.contentWindow)==null?void 0:y.Request)!=null?u:window.Request};
rE4=function(R){var y,u;return(u=R==null?void 0:(y=R.contentWindow)==null?void 0:y.TextDecoder)!=null?u:window.TextDecoder};
PUz=function(){return function(R,y){_.EB("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[R]=y}};
WZT=function(){return function(R,y){var u={};u[R]=y;R=_.A7(_.tHU)(u);Object.keys(R).length>0&&_.E9(R)}};
kvT=function(){if(WNv()==="hidden")var R="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else WNv()==="visible"&&(R="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",dXT=null);R&&UXW(R)};
UXW=function(R){if(R==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||R==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(EVT===R)return;EVT=R}var y=9E4+Math.random()*2E3;if(R!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.QF()>y)&&WNv()==="visible"){y=-1;dXT&&(y=Math.round((0,_.uQ)()-dXT));var u=String;var v=_.D6("_fact",window);v=v==null||v==-1?-1:Math.max(Date.now()-v,0);_.P3("foregroundHeartbeat",{firstActivityMs:u(v),clientDocumentNonce:hsP,index:String($Xc),lastEventDeltaMs:String(y),trigger:R});
_.CJ("_fact",-1,window);$Xc++;dXT=(0,_.uQ)()}};
_.q2L=function(){try{return!!self.sessionStorage}catch(R){return!1}};
XDU=function(){var R=navigator;return new Promise(function(y,u){var v;(v=R.webkitTemporaryStorage)!=null&&v.queryUsageAndQuota?R.webkitTemporaryStorage.queryUsageAndQuota(function(Q,M){y({usage:Q,quota:M})},function(Q){u(Q)}):u(Error("qj"))})};
mXT=function(R,y){var u={errorSeverity:y.errorSeverity.toString(),wizFeatureFlags:Object.entries(y.featureFlags).join("\n")};j8S(y,u);y=y.errorSeverity;y===3?_.dI(R,"ERROR",void 0,void 0,void 0,u):y===2&&_.dI(R,"WARNING",void 0,void 0,void 0,u);_.f("cow_if_errors_in_popup")&&y===3&&R.message.indexOf("<If>")!==-1&&window.alert(R.message)};
AEU=function(R,y){var u=yw.get(R)||{layerNode:y};u.layerNode=y;GhU(R,u);R.getScreenLayer=function(){return xl(u.layerNode)}};
DXS=function(R){var y;R=R.parentNode;for(var u;R&&((y=yw.get(R))==null||!y.isRenderer)&&!((u=R.polymerController)!=null?u:R).isRenderer_;)R=R.parentNode||R.host;if(y=R)return yw.get(y)};
pDG=function(R){if(R){yw.delete(R);var y=_.ua().resolve(uN);dhW(R,y)}};
cEE=function(R,y,u){if(u===void 0?0:u){if(u=R.getAttribute("client-ve-type"),y.data&&!y.disableReactiveLogging||u)_.WT(function(){tsT(R,_.PT(y.data))}),_.GF(function(){return void pDG(R)})}else typeof y.data!=="function"&&tsT(R,y.data)};
tsT=function(R,y){amE++;S2T(R,y)&&_.WG.addJob(function(){_.Xs(_.WG,function(){if(S2T(R,y)&&R.ownerDocument.documentElement===document.documentElement&&R){var u;if(R.getAttribute("layer")){var v=u=Number(R.getAttribute("layer")),Q=yw.get(R);Q?Q.layerNode.layer=v:AEU(R,new Y24(v));(v=DXS(R))&&(Q=yw.get(R))!=null&&(Q.layerNode.parent=v.layerNode)}else if(u=yw.get(R))u=xl(u.layerNode);else{u=xl;v=new Y24;if(Q=DXS(R))v.parent=Q.layerNode;AEU(R,v);u=u(v)}u!=null||(u=0);v=R.getAttribute("client-ve-type");
Q=Number(v);var M=!1;v=!1;var K=yw.get(R),h;if((h=K)&&!(h=K[LZT]!==y)&&(h=Q)){var b;h=((b=yw.get(R))==null?void 0:b.clientVeType)===void 0}h&&(K[LZT]=y,M=v=K.isRenderer=!0);yw.has(R)&&(yw.get(R).clientVeType=Q);R.visualElement&&(v=!0);if(_.f("wiz_next_ld_fix_client_ve_spec")){var N;b=((N=_.e(y==null?void 0:y.rendererContext,_.rZ))==null?void 0:N.loggingDirectives)||(y==null?void 0:y.loggingDirectives)}else b=y==null?void 0:y.loggingDirectives;b&&b.clientVeSpec&&(N=s9L(_.Hy(),R),N=_.zyc(_.GN(),b,N||
void 0,u))&&(R.visualElement=N);!R.visualElement&&Q&&M&&(R.veType=Q,N=void 0,_.f("wiz_next_client_ve_parent_fix")&&(N=s9L(_.Hy(),R)),N=_.nk(_.GN(),R,N,u),R.visualElement=N);v&&(N=_.ua().resolve(uN),$hU(R,{data:y,observer:N,layer:u,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
S2T=function(R,y){return(y==null?0:y.trackingParams)||(y==null?0:y.loggingDirectives)||_.e(y==null?void 0:y.rendererContext,_.rZ)||R.getAttribute("client-ve-type")?!0:!1};
gVU=function(R,y,u){R.componentType!==l$&&u instanceof HTMLElement&&y&&!_.f("cow_logging_in_component_wrapper")&&cEE(u,y,!0)};
QlP=function(){if(!CUS){CUS=!0;var R=Object.assign({},{enableLazyTsx:_.f("mweb_enable_wiz_lazy_tsx")||_.f("kevlar_enable_wiz_lazy_tsx")||_.f("creator_enable_wiz_lazy_tsx")||RGv,flushRenderEffectsDuringRender:!0},{handleError:mXT,enableComponentStacksInErrorMessages:!1});Object.assign(u$,R);OvG=yHE;u78();rlS=yuz;Hvc=uFS;_.f("ytwiz_enable_debug_component_props")&&(R=document.body.firstElementChild,window.ng||R.__ngContext__||(R.__ngContext__={},R.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=
vAG))}};
u78=function(){_.f("cow_logging_in_component_wrapper")?(K3v=function(R,y){y instanceof HTMLElement&&cEE(y,R,!0)},bvG=function(){}):(K3v=function(){},bvG=gVU)};
jl8=function(R,y,u){y=y===void 0?{}:y;var v,Q=(v=_.e(R.commandMetadata,_.QL))==null?void 0:v.url;v=y.form||{};!u||v.element||v.skipDefaultElement||(y.form=y.form||{},y.form.element=u);if(Q&&Q!=="/service_ajax")return{type:0,command:R,form:y.form};if(_.f("kevlar_service_command_check")){if(_.R8(_.ua().resolve(_.Dj),R))return Object.assign({},{type:1,command:R},y)}else{var M;if((M=_.e(R.commandMetadata,_.QL))==null?0:M.apiUrl)return Object.assign({},{type:1,command:R},y)}return{type:2,command:R,form:y.form}};
MNU=function(R){if(R.form){var y=R.form,u=Object.assign({},y);y=y.element;u=(delete u.element,u);if(y)return[_.Fh(y,[R.command,u,R.commandController])]}return[]};
JHE=function(R){if(R.form){var y=R.form,u=Object.assign({},y);y=y.element;u=(delete u.element,u);y&&_.wr(y,[R.command],y,u)}};
iaE=function(R,y,u){var v=new VNW(R,y),Q=new BZ(R,y,u);R={"/youtubei/v1/browse":new fR(R,y,u),"/youtubei/v1/player":v,"/youtubei/v1/navigation/resolve_url":new eV,"/youtubei/v1/next":Q,"/youtubei/v1/guide":new l1(u),"/youtubei/v1/search":new nR(R,y,u),"/youtubei/v1/reel/reel_item_watch":new GK(R,y,u),"/youtubei/v1/get_watch":new rX(v,Q)};R["/youtubei/v1/account/account_menu"]=new PZ;R["/youtubei/v1/notification/get_notification_menu"]=new WZ;return R};
UJ=function(){var R=_.ua().resolve(dX);return Promise.resolve(KJO(R,_.uO.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
IkS=function(R){return R&&(R=_.kl(_.BSc(R)))?(new URLSearchParams(R)).get("service"):null};
qr=function(R,y){_.T3(_.EJ(),function(){_.qQ("adl")});
_.ua().resolve(hGP)(y);R=R.root;R.loadData&&R.loadData(y);(y==null?0:y.response)?_.o2(UnU(),"SUCCESS"):_.kT(new _.OL("Lifecycle: No response in data",_.$B("IS_SHELL_LOAD"),y?y.page:"NO_PAGE",y?y.endpoint:"NO_ENDPOINT"));R.polymerController.$["page-manager"].lazyPrepareCriticalPages((y==null?void 0:y.page)||"",y.endpoint);var u,v;((v=_.e(y==null?void 0:(u=y.endpoint)==null?void 0:u.commandMetadata,_.QL))==null?0:v.webPageType)&&_.Qe().dispatch(_.$l(_.e(y.endpoint.commandMetadata,_.QL).webPageType))};
ba4=function(){var R,y;return _.I(function(u){switch(u.nextAddress){case 1:R=window;if(!R.getDataPromise){u.jumpTo(2);break}_.wY(u,3);return u.yield(R.getDataPromise(),5);case 5:return u.return(u.yieldResult);case 3:return _.B$(u),u.yield(UJ(),6);case 6:return u.return(u.yieldResult);case 2:if(R.getInitialData)return y=R.getInitialData(),R.getInitialData=void 0,u.return(y);throw Error("sj`"+_.uO.location.href);}})};
w68=function(){_.kB("CSI_SERVICE_NAME","youtube");_.E9({loadType:"cold"});_.f("kevlar_log_lcp")&&FJP(function(R){_.qQ("lcp",R.value)})};
NeS=function(){var R=_.AD(document.location.href,"enable");R&&R.indexOf("scraper")>-1&&_.kB("ADD_SCRAPER_ATTRIBUTES",!0)};
fkP=function(R){var y=R.root;R=[TeT,oA8,_.X1];_.f("web_feedback_endpoint_autolog_allowlist_killswitch")&&R.push(_.mr,xbG);Be4(function(u,v){return jl8(u,v,y)},function(u){if(!u.command)return[];
var v;((v=u.form)==null?0:v.element)?u.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},u.form,{endpoint:u.command})})):y.handleNavigate(u);return[]},R);
_.ua().addProvider({provide:_.jX,useValue:_.lX.instance})};
lkS=function(){var R={},y={},u;for(u in eGO){var v=_.V(_.In(eGO[u],void 0,"NBH2te"));R[u]=v.next().value;y[u]=v.next().value}return[R,function(Q){for(var M in Q){var K=void 0;(K=y[M])==null||K(Q[M])}}]};
_.HaO=function(R,y){var u=!1;u=u===void 0?!1:u;var v=_.Ps.getValueByKeys(R,"contents","twoColumnWatchNextResults","results","results","contents"),Q=_.Ps.getValueByKeys(R,"contents","twoColumnWatchNextResults","playlist","playlist")||null;u&&(Q=null);var M=u=null;if(Q)u=_.Ps.getValueByKeys(Q,"titleText"),M=_.Ps.unsafeClone(_.Ps.getValueByKeys(Q,"longBylineText")),v="",M&&(v=_.u7(M)),M=_.ye(v);else if(v){v=_.V(v);for(var K=v.next();!K.done;K=v.next())K=K.value,K.videoPrimaryInfoRenderer&&(u=_.Ps.getValueByKeys.apply(_.Ps,
[K].concat(_.P$(Oa8)))),K.videoSecondaryInfoRenderer&&(M=_.Ps.getValueByKeys.apply(_.Ps,[K].concat(_.P$(ZaE))))}else _.pG(Error("xj"));var h;R.currentVideoEndpoint?h=R.currentVideoEndpoint:_.pG(Error("yj"));var b;y&&(b=_.Ps.getValueByKeys(y,"playabilityStatus","miniplayer","miniplayerRenderer"));R={miniplayerTitle:u,miniplayerSubtitle:M,watchEndpoint:h,playlistData:Q};b&&(R.miniplayerRenderer=b);return R};
nAO=function(R){if(R)return _.pk(R)};
_.GoT=function(){return{isFullscreen:function(){throw Error("zj");},
toggleFullscreen:function(){throw Error("Aj");},
exitFullscreen:function(){throw Error("Bj");},
isAutonavEnabled:function(){throw Error("Cj");},
setAutonavEnabled:function(){throw Error("Dj");},
isAutoplaySetExplicitly:function(){throw Error("Ej");}}};
rHz=function(R){return R.videoDuration?R.numTaps>1&&R.tapDirection!==0?_.Ae(R.draggedTime/R.videoDuration,0,1):_.Ae((R.playedTime||0)/R.videoDuration,0,1):0};
P5O=function(R){return R.videoDuration?R.isDragging||R.numTaps>1&&R.tapDirection!==0?_.Ae(R.draggedTime/R.videoDuration,0,1):_.Ae((R.playedTime||0)/R.videoDuration,0,1):0};
db4=function(R){var y,u,v;return _.e(R==null?void 0:(y=R.markersMap)==null?void 0:(u=y.find(function(Q){return Q.key==="HEATSEEKER"}))==null?void 0:(v=u.value)==null?void 0:v.heatmap,WJ4)};
Ub4=function(R){var y,u;return(u=(y=db4(R))==null?void 0:y.heatMarkersDecorations)!=null?u:[]};
koE=function(R){if(_.f("mweb_supported_chapters_killswitch"))return!0;var y;return!!(R==null?0:(y=R.markersMap)==null?0:y.find(function(u){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(u.key)}))};
_.EAL=function(R){var y=Object,u=y.assign,v;R={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(v=R==null?void 0:R.getPlayerState())!=null?v:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return u.call(y,{},{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})};
$bW=function(R){return function(y){var u=R(),v,Q=(v=u.playerApi)==null?void 0:v.getPlayerState();y&&y!==u.playerState&&(y===1||y===2)&&u.setState({playerState:Q})}};
X6T=function(R){return function(y){var u=R(),v=u.playerApi;v&&(y==null?void 0:y.type)==="newdata"&&(qA8&&(clearTimeout(qA8),qA8=void 0),_.f("web_shorts_use_progress_state_for_gapless")?(y=v==null?void 0:v.getProgressState(y==null?void 0:y.playertype),y=y.seekableEnd-y.seekableStart):y=v==null?void 0:v.getDuration(y==null?void 0:y.playertype),u.setState({playedTime:0,videoDuration:y}))}};
mbT=function(R){return function(y){var u=R(),v=u.playerApi;if(v){var Q=v.getPresentingPlayerType();_.f("web_shorts_use_progress_state_for_gapless")?(v=v.getProgressState(Q),v=v.seekableEnd-v.seekableStart):v=v.getDuration(Q);u.setState({playedTime:y,videoDuration:v})}}};
DbG=function(R){_.$Y(112394,R,function(){return AH4},function(y){AH4=y})};
cHG=function(R,y){if(!R)return[];var u,v,Q;R=((u=R.markersMap)==null?void 0:(v=u.find(function(M){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(M.key)}))==null?void 0:(Q=v.value)==null?void 0:Q.chapters)||[];
!p6T(R)||(y==null?0:y.ignoreStub)||(R=[tNG()].concat(_.P$(R)));return R};
tNG=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
p6T=function(R){if(R.length===0)return!1;var y;return((y=_.e(R[0],DA))==null?void 0:y.timeRangeStartMillis)!==0};
pR=function(R){return R?R.timeRangeStartMillis||0:0};
SAc=function(R,y){if(R.isDragging&&y)return R=akE(R,y),R===-1?tNG():cHG(y)[R]};
akE=function(R,y){return R.isDragging&&y?cHG(y,{ignoreStub:!0}).findIndex(function(u,v,Q){u=YAc(R);return LJT(u,Q,v).scrubberHovering}):-1};
YAc=function(R){return Object.assign({},R,{videoDuration:R.videoDuration*1E3,playedTime:R.playedTime*1E3,draggedTime:R.draggedTime*1E3})};
LJT=function(R,y,u){var v=pR(_.e(y[u],DA));y=pR(_.e(y[u+1],DA))||R.videoDuration;u=R.isDragging;var Q;if(Q=R.isDragging)Q=R.draggedTime,Q=Q!==null&&Q>=v&&Q<y;var M=R.playedTime;return M!==null&&M>=v&&M<y?{videoPosition:"active",isScrubbing:u,scrubberHovering:Q}:R.playedTime<v?{videoPosition:"pending",isScrubbing:u,scrubberHovering:Q}:{videoPosition:"seen",isScrubbing:u,scrubberHovering:Q}};
slS=function(R,y){return R.videoPosition==="seen"||(y===void 0?0:y)>0};
zGW=function(R,y,u){y=R/y.storyboardInterval;var v=cHG(u);if(!v.length)return-y*72;u=0;v=_.V(v);for(var Q=v.next();!Q.done;Q=v.next())if(pR(_.e(Q.value,DA))/1E3<R)u++;else break;return-(y*72)-u*56};
gAU=function(R){return R?R.width/R.columns:0};
C5E=function(R){return R.isHovering?R.hoveredTime:R.draggedTime};
RfL=function(R,y){R=R.draggedTime*1E3;return R>=y.visibleTimeRangeStartMillis&&R<=y.visibleTimeRangeEndMillis};
_.yPG=function(R){if(R===void 0||Number.isNaN(R))return"--:--";var y=Math.abs(Math.floor(R)),u=Math.floor(y/86400),v=Math.floor(y%86400/3600),Q=Math.floor(y%3600/60);y=Math.floor(y%60);var M="";u>0&&(M+=u+":",v<10&&(M+="0"));if(u>0||v>0)M+=v+":",Q<10&&(M+="0");M+=Q+":";y<10&&(M+="0");M+=y;return R>=0?M:"-"+M};
uPE=function(R,y){return function(){var u=C5E(R());var v=y();var Q=R().playerApi;if(Q&&Q.getNumberOfStoryboardLevels()!==0){var M=Q.getStoryboardFrameIndex(u,1);M!==-1?v=Q.getStoryboardFrame(M,1):(u=Q.getStoryboardFrameIndex(u,0),Q=Q.getStoryboardFrame(u,0),v&&Q&&(Q.height*=3,Q.width*=3),v=Q)}else v=null;if(!v)return null;y()&&(v.width=90*v.columns,v.height=160*v.rows);return v}};
_.te=function(R){if(!R||R.getVideoData)return R};
voG=function(){var R;return{playerApi:(R=_.fA())!=null?R:void 0}};
QVU=function(R){var y;_.I(function(u){if(u.nextAddress==1)return u.yield(_.Bm(),2);if(y=u.yieldResult)y.unMute(!0),y.setVolume(R,!0);_.f$(u)})};
jVc=function(R,y){R&&(R.value=""+y,R.style.setProperty("--gradient-percent",y+"%"))};
MUU=function(R){var y;return(y=R==null?void 0:R.value)!=null?y:0};
JPT=function(){var R;_.I(function(y){if(y.nextAddress==1)return y.yield(_.Bm(),2);R=y.yieldResult;if(!R)return y.return();R.isMuted()?R.unMute(!0):R.mute(!0);_.f$(y)})};
VU4=function(R){var y=_.ua().resolve(_.cZ).getPlayerElement();y&&R&&(R===1?y.pause():y.play())};
ig8=function(R){_.h_(R,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
KwP=function(R){_.h_(R,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
hfL=function(R){return _.Hu(R.document.body,function(){return _.F(IvU,null)})};
bgU=function(){var R=window.performance.getEntriesByType("navigation");return R?R.map(function(y){return y.type}).includes("reload"):!1};
fvz=function(){a2(a2(a2(a2(a2(a2(a2(_.ua().resolve(_.SV),_.Fwv),_.wJO),_.NpG),_.TpT),_.ooO),_.xIW),_.Bp8)};
efz=function(R,y){y=y===void 0?!1:y;var u,v,Q,M;return _.I(function(K){if(K.nextAddress==1)return y||!_.f("kevlar_shorts_seedless_retry_initial_load")||(u=window,v=!(!u.getDataPromise&&!u.getInitialData),v)?K.yield(ba4(),2):(setTimeout(efz.bind(window,R,!0),1E3),K.return());if(K.nextAddress!=3)return Q=K.yieldResult,K.yield(lvP(Q),3);M=K.yieldResult;qr(R,M);_.f$(K)})};
lvP=function(R){var y;if((y=R.response)==null||!y.replacementEndpoint)return _.NQ(R);y=_.ua().resolve(dX);R=R.response;_.e(R.replacementEndpoint,_.PV)&&R.sequenceContinuation&&(_.e(R.replacementEndpoint,_.PV).sequenceParams=R.sequenceContinuation);return Yl(y,R.replacementEndpoint,{},_.uO.location.href,"shorts",function(){},function(){return!1})};
ZgT=function(R){var y=_.ua().resolve(OgS);R.playerResponse&&y.handleResponse(R.playerResponse);R.response&&y.handleResponse(R.response)};
HgW=function(R){var y=_.Qe(),u,v=_.e((u=R.response)==null?void 0:u.frameworkUpdates,jo),Q;u=_.e((Q=R.playerResponse)==null?void 0:Q.frameworkUpdates,jo);var M;R=_.e((M=R.reelWatchSequenceResponse)==null?void 0:M.frameworkUpdates,jo);v&&_.e6(v,y);u&&_.e6(u,y);R&&_.e6(R,y)};
noE=function(R){var y;_.f("enable_redirect_linking_for_desktop_web_client")&&((y=window.location.hash)==null?0:y.includes("redirect_state"))&&R.url&&(R.url=R.url.toString()+window.location.hash)};
PYv=function(R){var y=_.ua(),u=y.resolve(dX);y=y.resolve(_.Grc);R.endpoint&&(u=rPU(u,R.endpoint),u.content&&R.response&&_.LR(y,R.response,u.content),u.player&&R.playerResponse&&_.LR(y,R.playerResponse,u.player),u.reelSequence&&R.reelWatchSequenceResponse&&_.LR(y,R.reelWatchSequenceResponse,u.reelSequence))};
sJ=function(R,y){_.f("web_service_params_response_processor")&&ZgT(y);HgW(y);var u;(y==null?0:y.url)&&((u=window.location.hash)==null?0:u.includes("redirect_state"))&&(noE(y),(u=IkS(y.url))&&_.Ik(R.root,"yt-initialize-third-party",[u,y]));PYv(y);u=_.ua();var v=u.resolve(Wwc);y.playerResponse&&u.resolve(dIO).handleResponse(y.playerResponse);if(y.playerResponse){u=void 0;if(_.f("ab_v_vid_sig")&&y.endpoint){var Q,M=(Q=_.e(y.endpoint,_.zM))!=null?Q:_.e(y.endpoint,_.PV);M&&(u=M.videoId)}UIW(v,y.playerResponse,
u)}y.playerResponse&&YIc(y.playerResponse)&&_.f("web_enable_ab_rsp_cl")?QTU().then(function(){krW(v,y.playerResponse);qr(R,y)}):qr(R,y)};
$IT=function(R){if(R=R.root.data){var y=_.ua().resolve(EoU);R.endpoint&&(R.response&&y.handleResponse(R.response,void 0,document.querySelector("ytd-app")),R.playerResponse&&y.handleResponse(R.playerResponse),R.reelWatchSequenceResponse&&y.handleResponse(R.reelWatchSequenceResponse))}};
qw8=function(R){var y,u,v,Q,M,K;return _.I(function(h){switch(h.nextAddress){case 1:y=window;if(!y.getDataPromise){h.jumpTo(2);break}_.wY(h,3);return h.yield(y.getDataPromise(),5);case 5:u=h.yieldResult;sJ(R,u);_.c5(h,4);break;case 3:return _.B$(h),h.yield(UJ(),6);case 6:v=h.yieldResult,qr(R,v);case 4:return h.return();case 2:if(!_.f("sw_nav_preload_pbj")){h.jumpTo(7);break}y.fetchInitialData=function(){var b;return _.I(function(N){if(N.nextAddress==1)return N.yield(UJ(),2);b=N.yieldResult;qr(R,b);
_.f$(N)})};
if(y.getInitialData){y.loadInitialData=function(b){sJ(R,b)};
Q=y.getInitialData();y.getInitialData=void 0;sJ(R,Q);h.jumpTo(8);break}y.fetchInitialData=void 0;return h.yield(UJ(),9);case 9:M=h.yieldResult,qr(R,M);case 8:return h.return();case 7:y.getInitialData?(K=y.getInitialData(),y.getInitialData=void 0,sJ(R,K)):y.loadInitialData=function(b){sJ(R,b)},_.f$(h)}})};
XJz=function(R){var y=0;return function(){return y<R.length?{done:!1,value:R[y++]}:{done:!0}}};
mIT=typeof Object.defineProperties=="function"?Object.defineProperty:function(R,y,u){if(R==Array.prototype||R==Object.prototype)return R;R[y]=u.value;return R};
APS=function(R){R=["object"==typeof globalThis&&globalThis,R,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var y=0;y<R.length;++y){var u=R[y];if(u&&u.Math==Math)return u}throw Error("a");};
_.RR=APS(this);zK=function(R,y){if(y)a:{var u=_.RR;R=R.split(".");for(var v=0;v<R.length-1;v++){var Q=R[v];if(!(Q in u))break a;u=u[Q]}R=R[R.length-1];v=u[R];y=y(v);y!=v&&y!=null&&mIT(u,R,{configurable:!0,writable:!0,value:y})}};
zK("Symbol",function(R){if(R)return R;var y=function(M,K){this.$jscomp$symbol$id_=M;mIT(this,"description",{configurable:!0,writable:!0,value:K})};
y.prototype.toString=function(){return this.$jscomp$symbol$id_};
var u="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",v=0,Q=function(M){if(this instanceof Q)throw new TypeError("b");return new y(u+(M||"")+"_"+v++,M)};
return Q});
zK("Symbol.iterator",function(R){if(R)return R;R=Symbol("c");for(var y="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),u=0;u<y.length;u++){var v=_.RR[y[u]];typeof v==="function"&&typeof v.prototype[R]!="function"&&mIT(v.prototype,R,{configurable:!0,writable:!0,value:function(){return DIc(XJz(this))}})}return R});
zK("Symbol.asyncIterator",function(R){return R?R:Symbol("d")});
var DIc=function(R){R={next:R};R[Symbol.iterator]=function(){return this};
return R},pJT=typeof Object.create=="function"?Object.create:function(R){var y=function(){};
y.prototype=R;return new y},tUU=function(){function R(){function u(){}
new u;Reflect.construct(u,[],function(){});
return new u instanceof u}
if(typeof Reflect!="undefined"&&Reflect.construct){if(R())return Reflect.construct;var y=Reflect.construct;return function(u,v,Q){u=y(u,v);Q&&Reflect.setPrototypeOf(u,Q.prototype);return u}}return function(u,v,Q){Q===void 0&&(Q=u);
Q=pJT(Q.prototype||Object.prototype);return Function.prototype.apply.call(u,Q,v)||Q}}(),cPT;
if(typeof Object.setPrototypeOf=="function")cPT=Object.setPrototypeOf;else{var avW;a:{var SwU={a:!0},YwU={};try{YwU.__proto__=SwU;avW=YwU.a;break a}catch(R){}avW=!1}cPT=avW?function(R,y){R.__proto__=y;if(R.__proto__!==y)throw new TypeError("e`"+R);return R}:null}gX=cPT;
_.O=function(R,y){R.prototype=pJT(y.prototype);R.prototype.constructor=R;if(gX)gX(R,y);else for(var u in y)if(u!="prototype")if(Object.defineProperties){var v=Object.getOwnPropertyDescriptor(y,u);v&&Object.defineProperty(R,u,v)}else R[u]=y[u];R.superClass_=y.prototype};
_.V=function(R){var y=typeof Symbol!="undefined"&&Symbol.iterator&&R[Symbol.iterator];if(y)return y.call(R);if(typeof R.length=="number")return{next:XJz(R)};throw Error("f`"+String(R));};
Y7=function(R){for(var y,u=[];!(y=R.next()).done;)u.push(y.value);return u};
_.P$=function(R){return R instanceof Array?R:Y7(_.V(R))};
_.RE=function(R){return CR(R,R)};
CR=function(R,y){R.raw=y;Object.freeze&&(Object.freeze(R),Object.freeze(y));return R};
yR=function(R,y){return Object.prototype.hasOwnProperty.call(R,y)};
LwW=typeof Object.assign=="function"?Object.assign:function(R,y){for(var u=1;u<arguments.length;u++){var v=arguments[u];if(v)for(var Q in v)yR(v,Q)&&(R[Q]=v[Q])}return R};
zK("Object.assign",function(R){return R||LwW});
var uo=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},sVW=function(R){if(R.isRunning_)throw new TypeError("h");
R.isRunning_=!0};
uo.prototype.JSC$8695_next_=function(R){this.yieldResult=R};
var zfz=function(R,y){R.abruptCompletion_={exception:y,isException:!0};R.nextAddress=R.catchAddress_||R.finallyAddress_};
uo.prototype.return=function(R){this.abruptCompletion_={return:R};this.nextAddress=this.finallyAddress_};
uo.prototype.yield=function(R,y){this.nextAddress=y;return{value:R}};
uo.prototype.jumpTo=function(R){this.nextAddress=R};
_.f$=function(R){R.nextAddress=0};
_.wY=function(R,y,u){R.catchAddress_=y;u!=void 0&&(R.finallyAddress_=u)};
_.o1=function(R,y){R.catchAddress_=0;R.finallyAddress_=y||0};
_.c5=function(R,y,u){R.nextAddress=y;R.catchAddress_=u||0};
_.B$=function(R,y){R.catchAddress_=y||0;y=R.abruptCompletion_.exception;R.abruptCompletion_=null;return y};
_.T9=function(R,y,u,v){v?R.finallyContexts_[v]=R.abruptCompletion_:R.finallyContexts_=[R.abruptCompletion_];R.catchAddress_=y||0;R.finallyAddress_=u||0};
_.xL=function(R,y,u){u=R.finallyContexts_.splice(u||0)[0];(u=R.abruptCompletion_=R.abruptCompletion_||u)?u.isException?R.nextAddress=R.catchAddress_||R.finallyAddress_:u.jumpTo!=void 0&&R.finallyAddress_<u.jumpTo?(R.nextAddress=u.jumpTo,R.abruptCompletion_=null):R.nextAddress=R.finallyAddress_:R.nextAddress=y};
goU=function(R){this.JSC$8700_context_=new uo;this.program_=R};
RbO=function(R,y){sVW(R.JSC$8700_context_);var u=R.JSC$8700_context_.yieldAllIterator_;if(u)return CYz(R,"return"in u?u["return"]:function(v){return{value:v,done:!0}},y,R.JSC$8700_context_.return);
R.JSC$8700_context_.return(y);return vQ(R)};
CYz=function(R,y,u,v){try{var Q=y.call(R.JSC$8700_context_.yieldAllIterator_,u);if(!(Q instanceof Object))throw new TypeError("g`"+Q);if(!Q.done)return R.JSC$8700_context_.isRunning_=!1,Q;var M=Q.value}catch(K){return R.JSC$8700_context_.yieldAllIterator_=null,zfz(R.JSC$8700_context_,K),vQ(R)}R.JSC$8700_context_.yieldAllIterator_=null;v.call(R.JSC$8700_context_,M);return vQ(R)};
vQ=function(R){for(;R.JSC$8700_context_.nextAddress;)try{var y=R.program_(R.JSC$8700_context_);if(y)return R.JSC$8700_context_.isRunning_=!1,{value:y.value,done:!1}}catch(u){R.JSC$8700_context_.yieldResult=void 0,zfz(R.JSC$8700_context_,u)}R.JSC$8700_context_.isRunning_=!1;if(R.JSC$8700_context_.abruptCompletion_){y=R.JSC$8700_context_.abruptCompletion_;R.JSC$8700_context_.abruptCompletion_=null;if(y.isException)throw y.exception;return{value:y.return,done:!0}}return{value:void 0,done:!0}};
yhz=function(R){this.next=function(y){sVW(R.JSC$8700_context_);R.JSC$8700_context_.yieldAllIterator_?y=CYz(R,R.JSC$8700_context_.yieldAllIterator_.next,y,R.JSC$8700_context_.JSC$8695_next_):(R.JSC$8700_context_.JSC$8695_next_(y),y=vQ(R));return y};
this.throw=function(y){sVW(R.JSC$8700_context_);R.JSC$8700_context_.yieldAllIterator_?y=CYz(R,R.JSC$8700_context_.yieldAllIterator_["throw"],y,R.JSC$8700_context_.JSC$8695_next_):(zfz(R.JSC$8700_context_,y),y=vQ(R));return y};
this.return=function(y){return RbO(R,y)};
this[Symbol.iterator]=function(){return this}};
_.wX=function(R,y){y=new yhz(new goU(y));gX&&R.prototype&&gX(y,R.prototype);return y};
uKz=function(R){function y(v){return R.next(v)}
function u(v){return R.throw(v)}
return new Promise(function(v,Q){function M(K){K.done?v(K.value):Promise.resolve(K.value).then(y,u).then(M,Q)}
M(R.next())})};
_.I=function(R){return uKz(new yhz(new goU(R)))};
_.NP=function(R){var y=R[Symbol.asyncIterator];return y!==void 0?y.call(R):new vKT(_.V(R))};
vKT=function(R){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return R};
this.next=function(y){return Promise.resolve(R.next(y))};
this["throw"]=function(y){return new Promise(function(u,v){var Q=R["throw"];Q!==void 0?u(Q.call(R,y)):(u=R["return"],u!==void 0&&u.call(R),v(new TypeError("i")))})};
R["return"]!==void 0&&(this["return"]=function(y){return Promise.resolve(R["return"](y))})};
_.qy=function(){for(var R=Number(this),y=[],u=R;u<arguments.length;u++)y[u-R]=arguments[u];return y};
_.Nr=function(R){return R};
zK("globalThis",function(R){return R||_.RR});
zK("Reflect",function(R){return R?R:{}});
zK("Reflect.construct",function(){return tUU});
zK("Reflect.setPrototypeOf",function(R){return R?R:gX?function(y,u){try{return gX(y,u),!0}catch(v){return!1}}:null});
zK("Promise",function(R){function y(){this.batch_=null}
function u(K){return K instanceof Q?K:new Q(function(h){h(K)})}
if(R&&(typeof _.RR.PromiseRejectionEvent!=="undefined"||!_.RR.Promise||_.RR.Promise.toString().indexOf("[native code]")===-1))return R;y.prototype.asyncExecute=function(K){if(this.batch_==null){this.batch_=[];var h=this;this.asyncExecuteFunction(function(){h.executeBatch_()})}this.batch_.push(K)};
var v=_.RR.setTimeout;y.prototype.asyncExecuteFunction=function(K){v(K,0)};
y.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var K=this.batch_;this.batch_=[];for(var h=0;h<K.length;++h){var b=K[h];K[h]=null;try{b()}catch(N){this.asyncThrow_(N)}}}this.batch_=null};
y.prototype.asyncThrow_=function(K){this.asyncExecuteFunction(function(){throw K;})};
var Q=function(K){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var h=this.createResolveAndReject_();try{K(h.resolve,h.reject)}catch(b){h.reject(b)}};
Q.prototype.createResolveAndReject_=function(){function K(N){return function(T){b||(b=!0,N.call(h,T))}}
var h=this,b=!1;return{resolve:K(this.resolveTo_),reject:K(this.JSC$8728_reject_)}};
Q.prototype.resolveTo_=function(K){if(K===this)this.JSC$8728_reject_(new TypeError("m"));else if(K instanceof Q)this.settleSameAsPromise_(K);else{a:switch(typeof K){case "object":var h=K!=null;break a;case "function":h=!0;break a;default:h=!1}h?this.resolveToNonPromiseObj_(K):this.fulfill_(K)}};
Q.prototype.resolveToNonPromiseObj_=function(K){var h=void 0;try{h=K.then}catch(b){this.JSC$8728_reject_(b);return}typeof h=="function"?this.settleSameAsThenable_(h,K):this.fulfill_(K)};
Q.prototype.JSC$8728_reject_=function(K){this.settle_(2,K)};
Q.prototype.fulfill_=function(K){this.settle_(1,K)};
Q.prototype.settle_=function(K,h){if(this.state_!=0)throw Error("n`"+K+"`"+h+"`"+this.state_);this.state_=K;this.result_=h;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
Q.prototype.scheduleUnhandledRejectionCheck_=function(){var K=this;v(function(){if(K.notifyUnhandledRejection_()){var h=_.RR.console;typeof h!=="undefined"&&h.error(K.result_)}},1)};
Q.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var K=_.RR.CustomEvent,h=_.RR.Event,b=_.RR.dispatchEvent;if(typeof b==="undefined")return!0;typeof K==="function"?K=new K("unhandledrejection",{cancelable:!0}):typeof h==="function"?K=new h("unhandledrejection",{cancelable:!0}):(K=_.RR.document.createEvent("CustomEvent"),K.initCustomEvent("unhandledrejection",!1,!0,K));K.promise=this;K.reason=this.result_;return b(K)};
Q.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var K=0;K<this.onSettledCallbacks_.length;++K)M.asyncExecute(this.onSettledCallbacks_[K]);this.onSettledCallbacks_=null}};
var M=new y;Q.prototype.settleSameAsPromise_=function(K){var h=this.createResolveAndReject_();K.callWhenSettled_(h.resolve,h.reject)};
Q.prototype.settleSameAsThenable_=function(K,h){var b=this.createResolveAndReject_();try{K.call(h,b.resolve,b.reject)}catch(N){b.reject(N)}};
Q.prototype.then=function(K,h){function b(B,l){return typeof B=="function"?function(Z){try{N(B(Z))}catch(P){T(P)}}:l}
var N,T,x=new Q(function(B,l){N=B;T=l});
this.callWhenSettled_(b(K,N),b(h,T));return x};
Q.prototype.catch=function(K){return this.then(void 0,K)};
Q.prototype.callWhenSettled_=function(K,h){function b(){switch(N.state_){case 1:K(N.result_);break;case 2:h(N.result_);break;default:throw Error("o`"+N.state_);}}
var N=this;this.onSettledCallbacks_==null?M.asyncExecute(b):this.onSettledCallbacks_.push(b);this.isRejectionHandled_=!0};
Q.resolve=u;Q.reject=function(K){return new Q(function(h,b){b(K)})};
Q.race=function(K){return new Q(function(h,b){for(var N=_.V(K),T=N.next();!T.done;T=N.next())u(T.value).callWhenSettled_(h,b)})};
Q.all=function(K){var h=_.V(K),b=h.next();return b.done?u([]):new Q(function(N,T){function x(Z){return function(P){B[Z]=P;l--;l==0&&N(B)}}
var B=[],l=0;do B.push(void 0),l++,u(b.value).callWhenSettled_(x(B.length-1),T),b=h.next();while(!b.done)})};
return Q});
var QR=function(R,y,u){if(R==null)throw new TypeError("p`"+u);if(y instanceof RegExp)throw new TypeError("q`"+u);return R+""};
zK("String.prototype.startsWith",function(R){return R?R:function(y,u){var v=QR(this,y,"startsWith"),Q=v.length,M=y.length;u=Math.max(0,Math.min(u|0,v.length));for(var K=0;K<M&&u<Q;)if(v[u++]!=y[K++])return!1;return K>=M}});
zK("Object.setPrototypeOf",function(R){return R||gX});
zK("Symbol.dispose",function(R){return R?R:Symbol("r")});
zK("SuppressedError",function(R){function y(u,v,Q){if(!(this instanceof y))return new y(u,v,Q);Q=Error(Q);"stack"in Q&&(this.stack=Q.stack);this.message=Q.message;this.error=u;this.suppressed=v}
if(R)return R;_.O(y,Error);y.prototype.name="SuppressedError";return y});
var QuG=function(R,y,u){R instanceof String&&(R=String(R));for(var v=R.length,Q=0;Q<v;Q++){var M=R[Q];if(y.call(u,M,Q,R))return{i:Q,v:M}}return{i:-1,v:void 0}};
zK("Array.prototype.find",function(R){return R?R:function(y,u){return QuG(this,y,u).v}});
zK("WeakMap",function(R){function y(){}
function u(b){var N=typeof b;return N==="object"&&b!==null||N==="function"}
function v(b){if(!yR(b,M)){var N=new y;mIT(b,M,{value:N})}}
function Q(b){var N=Object[b];N&&(Object[b]=function(T){if(T instanceof y)return T;Object.isExtensible(T)&&v(T);return N(T)})}
if(function(){if(!R||!Object.seal)return!1;try{var b=Object.seal({}),N=Object.seal({}),T=new R([[b,2],[N,3]]);if(T.get(b)!=2||T.get(N)!=3)return!1;T.delete(b);T.set(N,4);return!T.has(b)&&T.get(N)==4}catch(x){return!1}}())return R;
var M="$jscomp_hidden_"+Math.random();Q("freeze");Q("preventExtensions");Q("seal");var K=0,h=function(b){this.JSC$8735_id_=(K+=Math.random()+1).toString();if(b){b=_.V(b);for(var N;!(N=b.next()).done;)N=N.value,this.set(N[0],N[1])}};
h.prototype.set=function(b,N){if(!u(b))throw Error("s");v(b);if(!yR(b,M))throw Error("t`"+b);b[M][this.JSC$8735_id_]=N;return this};
h.prototype.get=function(b){return u(b)&&yR(b,M)?b[M][this.JSC$8735_id_]:void 0};
h.prototype.has=function(b){return u(b)&&yR(b,M)&&yR(b[M],this.JSC$8735_id_)};
h.prototype.delete=function(b){return u(b)&&yR(b,M)&&yR(b[M],this.JSC$8735_id_)?delete b[M][this.JSC$8735_id_]:!1};
return h});
zK("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}),b=new R(_.V([[h,"s"]]));if(b.get(h)!="s"||b.size!=1||b.get({x:4})||b.set({x:4},"t")!=b||b.size!=2)return!1;var N=b.entries(),T=N.next();if(T.done||T.value[0]!=h||T.value[1]!="s")return!1;T=N.next();return T.done||T.value[0].x!=4||T.value[1]!="t"||!N.next().done?!1:!0}catch(x){return!1}}())return R;
var y=new WeakMap,u=function(h){this[0]={};this[1]=M();this.size=0;if(h){h=_.V(h);for(var b;!(b=h.next()).done;)b=b.value,this.set(b[0],b[1])}};
u.prototype.set=function(h,b){h=h===0?0:h;var N=v(this,h);N.list||(N.list=this[0][N.id]=[]);N.entry?N.entry.value=b:(N.entry={next:this[1],previous:this[1].previous,head:this[1],key:h,value:b},N.list.push(N.entry),this[1].previous.next=N.entry,this[1].previous=N.entry,this.size++);return this};
u.prototype.delete=function(h){h=v(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};
u.prototype.clear=function(){this[0]={};this[1]=this[1].previous=M();this.size=0};
u.prototype.has=function(h){return!!v(this,h).entry};
u.prototype.get=function(h){return(h=v(this,h).entry)&&h.value};
u.prototype.entries=function(){return Q(this,function(h){return[h.key,h.value]})};
u.prototype.keys=function(){return Q(this,function(h){return h.key})};
u.prototype.values=function(){return Q(this,function(h){return h.value})};
u.prototype.forEach=function(h,b){for(var N=this.entries(),T;!(T=N.next()).done;)T=T.value,h.call(b,T[1],T[0],this)};
u.prototype[Symbol.iterator]=u.prototype.entries;var v=function(h,b){var N=b&&typeof b;N=="object"||N=="function"?y.has(b)?N=y.get(b):(N=""+ ++K,y.set(b,N)):N="p_"+b;var T=h[0][N];if(T&&yR(h[0],N))for(h=0;h<T.length;h++){var x=T[h];if(b!==b&&x.key!==x.key||b===x.key)return{id:N,list:T,index:h,entry:x}}return{id:N,list:T,index:-1,entry:void 0}},Q=function(h,b){var N=h[1];
return DIc(function(){if(N){for(;N.head!=h[1];)N=N.previous;for(;N.next!=N.head;)return N=N.next,{done:!1,value:b(N)};N=null}return{done:!0,value:void 0}})},M=function(){var h={};
return h.previous=h.next=h.head=h},K=0;
return u});
zK("Set",function(R){if(function(){if(!R||typeof R!="function"||!R.prototype.entries||typeof Object.seal!="function")return!1;try{var u=Object.seal({x:4}),v=new R(_.V([u]));if(!v.has(u)||v.size!=1||v.add(u)!=v||v.size!=1||v.add({x:4})!=v||v.size!=2)return!1;var Q=v.entries(),M=Q.next();if(M.done||M.value[0]!=u||M.value[1]!=u)return!1;M=Q.next();return M.done||M.value[0]==u||M.value[0].x!=4||M.value[1]!=M.value[0]?!1:Q.next().done}catch(K){return!1}}())return R;
var y=function(u){this.JSC$8749_map_=new Map;if(u){u=_.V(u);for(var v;!(v=u.next()).done;)this.add(v.value)}this.size=this.JSC$8749_map_.size};
y.prototype.add=function(u){u=u===0?0:u;this.JSC$8749_map_.set(u,u);this.size=this.JSC$8749_map_.size;return this};
y.prototype.delete=function(u){u=this.JSC$8749_map_.delete(u);this.size=this.JSC$8749_map_.size;return u};
y.prototype.clear=function(){this.JSC$8749_map_.clear();this.size=0};
y.prototype.has=function(u){return this.JSC$8749_map_.has(u)};
y.prototype.entries=function(){return this.JSC$8749_map_.entries()};
y.prototype.values=function(){return this.JSC$8749_map_.values()};
y.prototype.keys=y.prototype.values;y.prototype[Symbol.iterator]=y.prototype.values;y.prototype.forEach=function(u,v){var Q=this;this.JSC$8749_map_.forEach(function(M){return u.call(v,M,M,Q)})};
return y});
zK("Math.log2",function(R){return R?R:function(y){return Math.log(y)/Math.LN2}});
zK("Object.values",function(R){return R?R:function(y){var u=[],v;for(v in y)yR(y,v)&&u.push(y[v]);return u}});
zK("Object.is",function(R){return R?R:function(y,u){return y===u?y!==0||1/y===1/u:y!==y&&u!==u}});
zK("Array.prototype.includes",function(R){return R?R:function(y,u){var v=this;v instanceof String&&(v=String(v));var Q=v.length;u=u||0;for(u<0&&(u=Math.max(u+Q,0));u<Q;u++){var M=v[u];if(M===y||Object.is(M,y))return!0}return!1}});
zK("String.prototype.includes",function(R){return R?R:function(y,u){return QR(this,y,"includes").indexOf(y,u||0)!==-1}});
zK("Array.from",function(R){return R?R:function(y,u,v){u=u!=null?u:function(h){return h};
var Q=[],M=typeof Symbol!="undefined"&&Symbol.iterator&&y[Symbol.iterator];if(typeof M=="function"){y=M.call(y);for(var K=0;!(M=y.next()).done;)Q.push(u.call(v,M.value,K++))}else for(M=y.length,K=0;K<M;K++)Q.push(u.call(v,y[K],K));return Q}});
zK("Object.entries",function(R){return R?R:function(y){var u=[],v;for(v in y)yR(y,v)&&u.push([v,y[v]]);return u}});
zK("Number.isFinite",function(R){return R?R:function(y){return typeof y!=="number"?!1:!isNaN(y)&&y!==Infinity&&y!==-Infinity}});
zK("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
zK("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
zK("Number.isInteger",function(R){return R?R:function(y){return Number.isFinite(y)?y===Math.floor(y):!1}});
zK("Number.isSafeInteger",function(R){return R?R:function(y){return Number.isInteger(y)&&Math.abs(y)<=Number.MAX_SAFE_INTEGER}});
zK("String.prototype.endsWith",function(R){return R?R:function(y,u){var v=QR(this,y,"endsWith");u===void 0&&(u=v.length);u=Math.max(0,Math.min(u|0,v.length));for(var Q=y.length;Q>0&&u>0;)if(v[--u]!=y[--Q])return!1;return Q<=0}});
var ju4=function(R,y){R instanceof String&&(R+="");var u=0,v=!1,Q={next:function(){if(!v&&u<R.length){var M=u++;return{value:y(M,R[M]),done:!1}}v=!0;return{done:!0,value:void 0}}};
Q[Symbol.iterator]=function(){return Q};
return Q};
zK("Array.prototype.entries",function(R){return R?R:function(){return ju4(this,function(y,u){return[y,u]})}});
zK("Math.trunc",function(R){return R?R:function(y){y=Number(y);if(isNaN(y)||y===Infinity||y===-Infinity||y===0)return y;var u=Math.floor(Math.abs(y));return y<0?-u:u}});
zK("Number.isNaN",function(R){return R?R:function(y){return typeof y==="number"&&isNaN(y)}});
zK("Array.prototype.keys",function(R){return R?R:function(){return ju4(this,function(y){return y})}});
zK("Array.prototype.values",function(R){return R?R:function(){return ju4(this,function(y,u){return u})}});
zK("Array.prototype.fill",function(R){return R?R:function(y,u,v){var Q=this.length||0;u<0&&(u=Math.max(0,Q+u));if(v==null||v>Q)v=Q;v=Number(v);v<0&&(v=Math.max(0,Q+v));for(u=Number(u||0);u<v;u++)this[u]=y;return this}});
var jd=function(R){return R?R:Array.prototype.fill};
zK("Int8Array.prototype.fill",jd);zK("Uint8Array.prototype.fill",jd);zK("Uint8ClampedArray.prototype.fill",jd);zK("Int16Array.prototype.fill",jd);zK("Uint16Array.prototype.fill",jd);zK("Int32Array.prototype.fill",jd);zK("Uint32Array.prototype.fill",jd);zK("Float32Array.prototype.fill",jd);zK("Float64Array.prototype.fill",jd);
zK("Object.fromEntries",function(R){return R?R:function(y){var u={};if(!(Symbol.iterator in y))throw new TypeError("u`"+y);y=y[Symbol.iterator].call(y);for(var v=y.next();!v.done;v=y.next()){v=v.value;if(Object(v)!==v)throw new TypeError("v");u[v[0]]=v[1]}return u}});
zK("String.prototype.replaceAll",function(R){return R?R:function(y,u){if(y instanceof RegExp&&!y.global)throw new TypeError("w");return y instanceof RegExp?this.replace(y,u):this.replace(new RegExp(String(y).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),u)}});
zK("Object.getOwnPropertySymbols",function(R){return R?R:function(){return[]}});
zK("String.prototype.repeat",function(R){return R?R:function(y){var u=QR(this,null,"repeat");if(y<0||y>1342177279)throw new RangeError("x");y|=0;for(var v="";y;)if(y&1&&(v+=u),y>>>=1)u+=u;return v}});
zK("Array.prototype.findIndex",function(R){return R?R:function(y,u){return QuG(this,y,u).i}});
zK("Array.prototype.flatMap",function(R){return R?R:function(y,u){var v=[];Array.prototype.forEach.call(this,function(Q,M){Q=y.call(u,Q,M,this);Array.isArray(Q)?v.push.apply(v,Q):v.push(Q)});
return v}});
zK("String.prototype.codePointAt",function(R){return R?R:function(y){var u=QR(this,null,"codePointAt"),v=u.length;y=Number(y)||0;if(y>=0&&y<v){y|=0;var Q=u.charCodeAt(y);if(Q<55296||Q>56319||y+1===v)return Q;y=u.charCodeAt(y+1);return y<56320||y>57343?Q:(Q-55296)*1024+y+9216}}});
zK("String.fromCodePoint",function(R){return R?R:function(y){for(var u="",v=0;v<arguments.length;v++){var Q=Number(arguments[v]);if(Q<0||Q>1114111||Q!==Math.floor(Q))throw new RangeError("y`"+Q);Q<=65535?u+=String.fromCharCode(Q):(Q-=65536,u+=String.fromCharCode(Q>>>10&1023|55296),u+=String.fromCharCode(Q&1023|56320))}return u}});
zK("String.prototype.trimLeft",function(R){function y(){return this.replace(/^[\s\xa0]+/,"")}
return R||y});
zK("String.prototype.trimStart",function(R){return R||String.prototype.trimLeft});
zK("String.prototype.padStart",function(R){return R?R:function(y,u){var v=QR(this,null,"padStart");y-=v.length;u=u!==void 0?String(u):" ";return(y>0&&u?u.repeat(Math.ceil(y/u.length)).substring(0,y):"")+v}});
zK("Promise.prototype.finally",function(R){return R?R:function(y){return this.then(function(u){return Promise.resolve(y()).then(function(){return u})},function(u){return Promise.resolve(y()).then(function(){throw u;
})})}});
zK("Math.imul",function(R){return R?R:function(y,u){y=Number(y);u=Number(u);var v=y&65535,Q=u&65535;return v*Q+((y>>>16&65535)*Q+v*(u>>>16&65535)<<16>>>0)|0}});
zK("Object.hasOwn",function(R){return R?R:function(y,u){return Object.prototype.hasOwnProperty.call(y,u)}});
zK("Math.sign",function(R){return R?R:function(y){y=Number(y);return y===0||isNaN(y)?y:y>0?1:-1}});
zK("Array.prototype.flat",function(R){return R?R:function(y){y=y===void 0?1:y;var u=[];Array.prototype.forEach.call(this,function(v){Array.isArray(v)&&y>0?(v=Array.prototype.flat.call(v,y-1),u.push.apply(u,v)):u.push(v)});
return u}});
zK("String.raw",function(R){return R?R:function(y,u){if(y==null)throw new TypeError("z");for(var v=y.raw,Q=v.length,M="",K=0;K<Q;++K)M+=v[K],K+1<Q&&K+1<arguments.length&&(M+=String(arguments[K+1]));return M}});
zK("Reflect.ownKeys",function(R){return R?R:function(y){var u=[],v=Object.getOwnPropertyNames(y);y=Object.getOwnPropertySymbols(y);for(var Q=0;Q<v.length;Q++)(v[Q].substring(0,14)=="jscomp_symbol_"?y:u).push(v[Q]);return u.concat(y)}});
zK("Object.getOwnPropertyDescriptors",function(R){return R?R:function(y){for(var u={},v=Reflect.ownKeys(y),Q=0;Q<v.length;Q++)u[v[Q]]=Object.getOwnPropertyDescriptor(y,v[Q]);return u}});
zK("WeakSet",function(R){if(function(){if(!R||!Object.seal)return!1;try{var u=Object.seal({}),v=Object.seal({}),Q=new R([u]);if(!Q.has(u)||Q.has(v))return!1;Q.delete(u);Q.add(v);return!Q.has(u)&&Q.has(v)}catch(M){return!1}}())return R;
var y=function(u){this.JSC$8756_map_=new WeakMap;if(u){u=_.V(u);for(var v;!(v=u.next()).done;)this.add(v.value)}};
y.prototype.add=function(u){this.JSC$8756_map_.set(u,!0);return this};
y.prototype.has=function(u){return this.JSC$8756_map_.has(u)};
y.prototype.delete=function(u){return this.JSC$8756_map_.delete(u)};
return y});
zK("Promise.allSettled",function(R){function y(v){return{status:"fulfilled",value:v}}
function u(v){return{status:"rejected",reason:v}}
return R?R:function(v){var Q=this;v=Array.from(v,function(M){return Q.resolve(M).then(y,u)});
return Q.all(v)}});
zK("Number.parseInt",function(R){return R||parseInt});
_._DumpException=window._DumpException||function(R){throw R;};
window._DumpException=_._DumpException;var MjW,MO,JR,VR,JhE,Vj8,ifL,KdS,Om,I3E;MjW=MjW||{};_.uO=this||self;_.CJ=function(R,y,u){R=R.split(".");u=u||_.uO;for(var v;R.length&&(v=R.shift());)R.length||y===void 0?u[v]&&u[v]!==Object.prototype[v]?u=u[v]:u=u[v]={}:u[v]=y};
MO=function(R,y){var u=_.D6("WIZ_global_data.oxN3nb");R=u&&u[R];return R!=null?R:y};
JR=_.uO._F_toggles_default_kevlar_base||[];VR=function(){};
VR.get=function(){return null};
_.D6=function(R,y){R=R.split(".");y=y||_.uO;for(var u=0;u<R.length;u++)if(y=y[R[u]],y==null)return null;return y};
_.io=function(R){R.instance_=void 0;R.getInstance=function(){return R.instance_?R.instance_:R.instance_=new R}};
_.tL=function(R){var y=typeof R;return y!="object"?y:R?Array.isArray(R)?"array":y:"null"};
_.p8=function(R){var y=_.tL(R);return y=="array"||y=="object"&&typeof R.length=="number"};
_.Sv=function(R){var y=typeof R;return y=="object"&&R!=null||y=="function"};
_.YS=function(R){return Object.prototype.hasOwnProperty.call(R,JhE)&&R[JhE]||(R[JhE]=++Vj8)};
JhE="closure_uid_"+(Math.random()*1E9>>>0);Vj8=0;ifL=function(R,y,u){return R.call.apply(R.bind,arguments)};
KdS=function(R,y,u){if(!R)throw Error();if(arguments.length>2){var v=Array.prototype.slice.call(arguments,2);return function(){var Q=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(Q,v);return R.apply(y,Q)}}return function(){return R.apply(y,arguments)}};
_.HY=function(R,y,u){_.HY=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?ifL:KdS;return _.HY.apply(null,arguments)};
_.lh=function(R,y){var u=Array.prototype.slice.call(arguments,1);return function(){var v=u.slice();v.push.apply(v,arguments);return R.apply(this,v)}};
_.KU=function(){return Date.now()};
Om=function(R){return R};
_.IE=function(R,y){function u(){}
u.prototype=y.prototype;R.superClass_=y.prototype;R.prototype=new u;R.prototype.constructor=R;R.base=function(v,Q,M){for(var K=Array(arguments.length-2),h=2;h<arguments.length;h++)K[h-2]=arguments[h];return y.prototype[Q].apply(v,K)}};
I3E=function(R){return R};var hbG,bfO;_.A=function(R,y,u,v){var Q=arguments.length,M=Q<3?y:v===null?v=Object.getOwnPropertyDescriptor(y,u):v,K;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")M=Reflect.decorate(R,y,u,v);else for(var h=R.length-1;h>=0;h--)if(K=R[h])M=(Q<3?K(M):Q>3?K(y,u,M):K(y,u))||M;Q>3&&M&&Object.defineProperty(y,u,M)};
_.p=function(R,y){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(R,y)};
hbG=function(R,y){if(y!==null&&y!==void 0){if(typeof y!=="object"&&typeof y!=="function")throw new TypeError("A");if(u===void 0){if(!Symbol.dispose)throw new TypeError("C");var u=y[Symbol.dispose]}if(typeof u!=="function")throw new TypeError("D");R.stack.push({value:y,dispose:u,async:!1})}return y};
bfO=function(R){function y(M){R.error=R.hasError?new SuppressedError(M,R.error,"An error was suppressed during disposal."):M;R.hasError=!0}
function u(){for(;v=R.stack.pop();)try{if(!v.async&&Q===1)return Q=0,R.stack.push(v),Promise.resolve().then(u);if(v.dispose){var M=v.dispose.call(v.value);if(v.async)return Q|=2,Promise.resolve(M).then(u,function(K){y(K);return u()})}else Q|=1}catch(K){y(K)}if(Q===1)return R.hasError?Promise.reject(R.error):Promise.resolve();
if(R.hasError)throw R.error;}
var v,Q=0;u()};_.IE(_.RL,Error);_.RL.prototype.name="CustomError";var FdW;var wnS=void 0,Nfz,TfL=typeof TextDecoder!=="undefined",vS8,uUU=typeof String.prototype.isWellFormed==="function",yzT=typeof TextEncoder!=="undefined";var oKU;_.OX=function(R){for(var y=[],u=0,v=0;v<R.length;v++){var Q=R.charCodeAt(v);Q<128?y[u++]=Q:(Q<2048?y[u++]=Q>>6|192:((Q&64512)==55296&&v+1<R.length&&(R.charCodeAt(v+1)&64512)==56320?(Q=65536+((Q&1023)<<10)+(R.charCodeAt(++v)&1023),y[u++]=Q>>18|240,y[u++]=Q>>12&63|128):y[u++]=Q>>12|224,y[u++]=Q>>6&63|128),y[u++]=Q&63|128)}return y};
oKU=function(R){for(var y=[],u=0,v=0;u<R.length;){var Q=R[u++];if(Q<128)y[v++]=String.fromCharCode(Q);else if(Q>191&&Q<224){var M=R[u++];y[v++]=String.fromCharCode((Q&31)<<6|M&63)}else if(Q>239&&Q<365){M=R[u++];var K=R[u++],h=R[u++];Q=((Q&7)<<18|(M&63)<<12|(K&63)<<6|h&63)-65536;y[v++]=String.fromCharCode(55296+(Q>>10));y[v++]=String.fromCharCode(56320+(Q&1023))}else M=R[u++],K=R[u++],y[v++]=String.fromCharCode((Q&15)<<12|(M&63)<<6|K&63)}return y.join("")};var FU=String.prototype.trim?function(R){return R.trim()}:function(R){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(R)[1]},xTE=/&/g,BfS=/</g,f3P=/>/g,ebE=/"/g,l3S=/'/g,Of8=/\x00/g,ZfP=/[\x00&<>"']/;var hR=!!(JR[0]>>15&1),HfO=!!(JR[0]&1024),nKU=!!(JR[0]>>16&1),GeS=!!(JR[0]&8),rhT=!!(JR[0]&2),PsT=!!(JR[0]&4),Wdz=!!(JR[0]&16),dTO=!!(JR[0]&128);var UTP=MO(1,!0),oL=hR?nKU:MO(610401301,!1),keO=hR?GeS:MO(772657768,!1),EKL=hR?rhT:MO(513659523,!1),$TT=hR?HfO||!PsT:MO(568333945,UTP),GES=hR?Wdz:MO(1331761403,!1),FgT=hR?HfO||!dTO:MO(748402147,UTP);var f8,qY4=_.uO.navigator;f8=qY4?qY4.userAgentData||null:null;var az;_.EP=function(R,y){return Array.prototype.indexOf.call(R,y,void 0)};
_.cu=function(R,y,u){Array.prototype.forEach.call(R,y,u)};
_.bo=function(R,y,u){return Array.prototype.filter.call(R,y,u)};
_.Ws=function(R,y,u){return Array.prototype.map.call(R,y,u)};
az=function(R,y,u){return Array.prototype.some.call(R,y,u)};
_.zYz=function(R,y,u){return Array.prototype.every.call(R,y,u)};var FD=function(R){FD[" "](R);return R};
FD[" "]=function(){};
var liW=function(R,y){try{return FD(R[y]),!0}catch(u){}return!1},N3L=function(R,y,u,v){v=v?v(y):y;
return Object.prototype.hasOwnProperty.call(R,v)?R[v]:R[v]=u(y)};var XnL,zu,mTL,AhG,pnO,tjv,zsc,chz,a3P,SYP,uG,LdO,suL,ReU,yQc,uRE;_.XF8=function(){return _.uO.navigator||null};
XnL=JzL();_.wV=Vv8();zu=ev("Edge");mTL=zu||_.wV;_.NO=ev("Gecko")&&!(_.IL(_.NU(),"WebKit")&&!ev("Edge"))&&!(ev("Trident")||ev("MSIE"))&&!ev("Edge");_.T$=_.IL(_.NU(),"WebKit")&&!ev("Edge");AhG=_.T$&&ev("Mobile");_.DTS=_.TES();pnO=_.oSU();tjv=(rE()?f8.platform==="Linux":ev("Linux"))||_.xUG();zsc=_.wWG();chz=NEE();a3P=ev("iPad");SYP=ev("iPod");_.YYE=_.PW();uG=_.IL(_.NU(),"KaiOS");LdO=function(){var R=_.uO.document;return R?R.documentMode:void 0};
a:{var zbE="",gK8=function(){var R=_.NU();if(_.NO)return/rv:([^\);]+)(\)|;)/.exec(R);if(zu)return/Edge\/([\d\.]+)/.exec(R);if(_.wV)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(R);if(_.T$)return/WebKit\/(\S+)/.exec(R);if(XnL)return/(?:Version)[ \/]?(\S+)/.exec(R)}();
gK8&&(zbE=gK8?gK8[1]:"");if(_.wV){var CsL=LdO();if(CsL!=null&&CsL>parseFloat(zbE)){suL=String(CsL);break a}}suL=zbE}ReU=suL;yQc={};_.oE=function(R){return N3L(yQc,R,function(){return _.wE(ReU,R)>=0})};
if(_.uO.document&&_.wV){var v_c=LdO();uRE=v_c?v_c:parseInt(ReU,10)||void 0}else uRE=void 0;_.QBE=uRE;var osz,xqz,jBz;_.xU=n8();osz=NEE()||ev("iPod");xqz=ev("iPad");jBz=_.Icz();_.BQ=_.GT();_.qC=_.K4z()&&!_.PW();var MBP,fU,ASO,Rgv,VBG,JQc;MBP={};fU=null;ASO=_.NO||_.T$||typeof _.uO.btoa=="function";_.nZ=function(R,y){y===void 0&&(y=0);JQc();y=MBP[y];for(var u=Array(Math.floor(R.length/3)),v=y[64]||"",Q=0,M=0;Q<R.length-2;Q+=3){var K=R[Q],h=R[Q+1],b=R[Q+2],N=y[K>>2];K=y[(K&3)<<4|h>>4];h=y[(h&15)<<2|b>>6];b=y[b&63];u[M++]=N+K+h+b}N=0;b=v;switch(R.length-Q){case 2:N=R[Q+1],b=y[(N&15)<<2]||v;case 1:R=R[Q],u[M]=y[R>>2]+y[(R&3)<<4|N>>4]+b+v}return u.join("")};
Rgv=function(R){var y="";VBG(R,function(u){y+=String.fromCharCode(u)});
return y};
_.J$v=function(R){var y=[];VBG(R,function(u){y.push(u)});
return y};
_.zT=function(R){var y=R.length,u=y*3/4;u%3?u=Math.floor(u):_.K8("=.",R[y-1])&&(u=_.K8("=.",R[y-2])?u-2:u-1);var v=new Uint8Array(u),Q=0;VBG(R,function(M){v[Q++]=M});
return Q!==u?v.subarray(0,Q):v};
VBG=function(R,y){function u(b){for(;v<R.length;){var N=R.charAt(v++),T=fU[N];if(T!=null)return T;if(!_.iO(N))throw Error("H`"+N);}return b}
JQc();for(var v=0;;){var Q=u(-1),M=u(0),K=u(64),h=u(64);if(h===64&&Q===-1)break;y(Q<<2|M>>4);K!=64&&(y(M<<4&240|K>>2),h!=64&&y(K<<6&192|h))}};
JQc=function(){if(!fU){fU={};for(var R="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),y=["+/=","+/","-_=","-_.","-_"],u=0;u<5;u++){var v=R.concat(y[u].split(""));MBP[u]=v;for(var Q=0;Q<v.length;Q++){var M=v[Q];fU[M]===void 0&&(fU[M]=Q)}}}};var czO=typeof Uint8Array!=="undefined",UUT=!_.wV&&typeof btoa==="function",kTT=/[-_.]/g,W4v={"-":"+",_:"/",".":"="},Zw={};var fY,KTU;fY=function(R,y){if(y!==Zw)throw Error("J");this.JSC$8786_value_=R;if(R!=null&&R.length===0)throw Error("I");};
_.nY=function(){return iB4||(iB4=new fY(null,Zw))};
KTU=function(R){return new Uint8Array($VT(R)||0)};
fY.prototype.isEmpty=function(){return this.JSC$8786_value_==null};
fY.prototype.sizeBytes=function(){var R=$VT(this);return R?R.length:0};
var $VT=function(R){if(Zw!==Zw)throw Error("J");var y=R.JSC$8786_value_;y==null||czO&&y!=null&&y instanceof Uint8Array||(typeof y==="string"?y=ESG(y):(_.tL(y),y=null));return y==null?y:R.JSC$8786_value_=y},iB4;var qPU=void 0;var uT=typeof Symbol==="function"&&typeof Symbol()==="symbol",I44=Rb("jas",void 0,!0),k5W=Rb(void 0,"0di"),YM=Rb(void 0,"1oa"),Zo=Rb(void 0,Symbol()),sbE=Rb(void 0,"0ub"),g8v=Rb(void 0,"0ubs"),NC8=Rb(void 0,"0ubsb"),NaT=Rb(void 0,"0actk"),NV=Rb("m_m","messagePrototypeMarker",!0),VKE=Rb(void 0,"vps"),SiU=Rb();var Az4,mUP,mg,heL;Az4={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};mUP=Object.defineProperties;_.jg=uT?I44:"internalArrayState";heL=[];MG(heL,7);mg=Object.freeze(heL);var xM={},Ib={},bBO=function(R,y,u){this.iterable=R;this.mapper=y;this.thisArg=u};
bBO.prototype.next=function(){var R=this.iterable.next();R.done||(R.value=this.mapper.call(this.thisArg,R.value));return R};
bBO.prototype[Symbol.iterator]=function(){return this};
var FT8=Object.freeze({}),PK={};_.wiS=Ui(function(R){return R!==null&&R!==void 0});var zTG=Ui(function(R){return typeof R==="number"}),sLT=Ui(function(R){return typeof R==="string"}),COG=Ui(function(R){return typeof R==="boolean"}),NHL=Ui(function(R){return R!=null&&typeof R==="object"&&typeof R.then==="function"}),tXv=Ui(function(R){return typeof R==="function"}),vT=Ui(function(R){return!!R&&(typeof R==="object"||typeof R==="function")});var gSP=typeof _.uO.BigInt==="function"&&typeof _.uO.BigInt(0)==="bigint";var G5U=Ui(function(R){return gSP?R>=THc&&R<=o_U:R[0]==="-"?Rcz(R,xZG):Rcz(R,BHU)}),xZG=Number.MIN_SAFE_INTEGER.toString(),THc=gSP?BigInt(Number.MIN_SAFE_INTEGER):void 0,BHU=Number.MAX_SAFE_INTEGER.toString(),o_U=gSP?BigInt(Number.MAX_SAFE_INTEGER):void 0;var f4S=typeof Uint8Array.prototype.slice==="function",Ei=0,$8=0,xyL;var vH,MV,cK,JI,IwO;vH=typeof BigInt==="function"?BigInt.asIntN:void 0;_.V8=typeof BigInt==="function"?BigInt.asUintN:void 0;MV=Number.isSafeInteger;cK=Number.isFinite;JI=Math.trunc;IwO=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var iZO={};var tgU={},eeL=function(){try{var R=function(){return tUU(Map,[],this.constructor)};
_.O(R,Map);FD(new R);return!1}catch(y){return!0}}(),ed=function(){this.JSC$8806_map_=new Map};
_.J=ed.prototype;_.J.get=function(R){return this.JSC$8806_map_.get(R)};
_.J.set=function(R,y){this.JSC$8806_map_.set(R,y);this.size=this.JSC$8806_map_.size;return this};
_.J.delete=function(R){R=this.JSC$8806_map_.delete(R);this.size=this.JSC$8806_map_.size;return R};
_.J.clear=function(){this.JSC$8806_map_.clear();this.size=this.JSC$8806_map_.size};
_.J.has=function(R){return this.JSC$8806_map_.has(R)};
_.J.entries=function(){return this.JSC$8806_map_.entries()};
_.J.keys=function(){return this.JSC$8806_map_.keys()};
_.J.values=function(){return this.JSC$8806_map_.values()};
_.J.forEach=function(R,y){return this.JSC$8806_map_.forEach(R,y)};
ed.prototype[Symbol.iterator]=function(){return this.entries()};
var Ga=function(){if(eeL)return Object.setPrototypeOf(ed.prototype,Map.prototype),Object.defineProperties(ed.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),ed;var R=function(){return tUU(Map,[],this.constructor)};
_.O(R,Map);return R}(),BH=function(R,y,u,v){u=u===void 0?XKS:u;
v=v===void 0?XKS:v;var Q=Ga.call(this)||this;Q.arrayState=R[_.jg]|0;Q.valueCtor=y;Q.keyToApi=u;Q.valueToApi=Q.valueCtor?ALL:v;for(var M=0;M<R.length;M++){var K=R[M],h=u(K[0],!1,!0),b=K[1];y?b===void 0&&(b=null):b=v(K[1],!1,!0,void 0,void 0,Q.arrayState);Ga.prototype.set.call(Q,h,b)}return Q};
_.O(BH,Ga);var l4G=function(R){if(R.arrayState&2)throw Error("N");};
_.J=BH.prototype;_.J.clear=function(){l4G(this);Ga.prototype.clear.call(this)};
_.J.delete=function(R){l4G(this);return Ga.prototype.delete.call(this,this.keyToApi(R,!0,!1))};
_.J.entries=function(){if(this.valueCtor){var R=Ga.prototype.keys.call(this);R=new bBO(R,DG4,this)}else R=Ga.prototype.entries.call(this);return R};
_.J.values=function(){if(this.valueCtor){var R=Ga.prototype.keys.call(this);R=new bBO(R,BH.prototype.get,this)}else R=Ga.prototype.values.call(this);return R};
_.J.forEach=function(R,y){this.valueCtor?Ga.prototype.forEach.call(this,function(u,v,Q){R.call(y,Q.get(v),v,Q)}):Ga.prototype.forEach.call(this,R,y)};
_.J.set=function(R,y){l4G(this);R=this.keyToApi(R,!0,!1);return R==null?this:y==null?(Ga.prototype.delete.call(this,R),this):Ga.prototype.set.call(this,R,this.valueToApi(y,!0,!0,this.valueCtor,!1,this.arrayState))};
_.J.has=function(R){return Ga.prototype.has.call(this,this.keyToApi(R,!1,!1))};
_.J.get=function(R){R=this.keyToApi(R,!1,!1);var y=Ga.prototype.get.call(this,R);if(y!==void 0){var u=this.valueCtor;return u?(u=this.valueToApi(y,!1,!0,u,this.callToMutableOnAccess,this.arrayState),u!==y&&Ga.prototype.set.call(this,R,u),u):y}};
BH.prototype[Symbol.iterator]=function(){return this.entries()};
BH.prototype.toJSON=void 0;var pKE;var upS=function(){},R7v=function(R,y){for(var u in R)!isNaN(u)&&y(R,+u,R[u])},vM4=function(R){var y=new upS;
R7v(R,function(u,v,Q){y[v]=mV(Q)});
y.reviveUnknownFields=R.reviveUnknownFields;return y},YiG={reviveIntoImmutable:!0};var yIE;var KgO,IoT;var OBT,cH,wI,B3,ZBG,PQ,oN,HBP,n_G,kU,GzU,Ek,XD,m9;OBT=_.k8(0);_.lo={};_.Ok=function(R,y,u,v,Q){y=cH(R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y,u,Q);if(y!==null||v&&R.noLegacyNull!==Ib)return y};
cH=function(R,y,u,v){if(y===-1)return null;var Q=y+(u?0:-1),M=R.length-1;if(!(M<1+(u?0:-1))){if(Q>=M){var K=R[M];if(K!=null&&typeof K==="object"&&K.constructor===Object){u=K[y];var h=!0}else if(Q===M)u=K;else return}else u=R[Q];if(v&&u!=null){v=v(u);if(v==null)return v;if(!Object.is(v,u))return h?K[y]=v:R[Q]=v,v}return u}};
_.Mt=function(R,y,u,v){Em(R);var Q=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Xp(Q,Q[_.jg]|0,y,u,v);return R};
_.ZF=function(R,y,u){R=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return WgS(R,R[_.jg]|0,y,u)!==void 0};
_.HQ=function(R,y,u,v){var Q=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return WgS(Q,Q[_.jg]|0,y,B3(R,v,u))!==void 0};
_.Q7=function(R){return R===FT8?2:4};
_.nU=function(R,y){R=_.Ok(R,y,void 0,void 0,ZZE);return R==null?_.nY():R};
wI=function(R,y,u,v){Em(R);var Q=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=Q[_.jg]|0;if(v==null){var K=Gav(Q);if(rIc(K,Q,M,u)===y)K.set(u,0);else return R}else M=PJT(Q,M,u,y);Xp(Q,M,y,v);return R};
_.G$=function(R,y,u,v){var Q=R[_.jg]|0,M=dg(Q);Q=PJT(R,Q,u,y,M);Xp(R,Q,y,v,M)};
B3=function(R,y,u){return _.rV(R,y)===u?u:-1};
_.rV=function(R,y){R=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return rIc(Gav(R),R,void 0,y,void 0)};
ZBG=function(R,y,u){var v=R[_.jg]|0,Q=dg(v),M=cH(R,u,Q);if(M!=null&&M[NV]===xM){if(!F5(M))return kM(M),M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var K=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(M)&&(K=M);if(K){var h=K[_.jg]|0;h&2&&(K=Um(K,h))}K=bZP(K,y,!0);K!==M&&Xp(R,v,u,K,Q);return K};
_.Ne=function(R,y,u,v){var Q=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=Q[_.jg]|0;y=WgS(Q,M,y,u,v);if(y==null)return y;M=Q[_.jg]|0;if(!F5(R,M)){var K=mGW(y);K!==y&&(kM(R)&&(Q=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=Q[_.jg]|0),y=K,M=Xp(Q,M,u,y,v),qV(Q,M))}return y};
_.vY=function(R,y,u,v){var Q=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return dV4(R,Q,Q[_.jg]|0,y,u,v,!1,!0)};
_.wC=function(R,y,u,v){u=UVL(u);_.Mt(R,y,u,v);u&&!F5(u)&&qV(R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return R};
_.Ny=function(R,y,u,v){v=UVL(v);wI(R,y,u,v);v&&!F5(v)&&qV(R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return R};
PQ=function(R,y,u){Em(R);var v=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q=v[_.jg]|0;if(u==null)return Xp(v,Q,y),R;for(var M=u===mg?7:u[_.jg]|0,K=M,h=tI(M),b=h||Object.isFrozen(u),N=!0,T=!0,x=0;x<u.length;x++){var B=u[x];h||(B=F5(B),N&&(N=!B),T&&(T=B))}h||(M=N?13:5,M=T?M&-4097:M|4096);b&&M===K||(u=mV(u),K=0,M=AI(M,Q));M!==K&&MG(u,M);Q=Xp(v,Q,y,u);2&M||!(4096&M||16&M)||qV(v,Q);return R};
oN=function(R,y,u,v){EMT(R,y,u,v);return R};
HBP=function(R,y,u){EMT(R,y,WQ,void 0,u,1,!0);return R};
_.dV=function(R,y,u){R=_.Ok(R,y,void 0,u);y=typeof R;R=R==null?R:y==="bigint"?_.k8((0,_.V8)(64,R)):_.ab(R)?y==="string"?_.n8S(R):_.ZYL(R):void 0;return R};
_.Uk=function(R,y){var u=u===void 0?!1:u;var v;return(v=_.KVG(_.Ok(R,y)))!=null?v:u};
_.jZ=function(R,y,u){u=u===void 0?0:u;var v;return(v=_.y8(_.Ok(R,y)))!=null?v:u};
n_G=function(R,y){var u=u===void 0?0:u;R=_.bYE(_.Ok(R,y));return R!=null?R:u};
kU=function(R,y,u){u=u===void 0?OBT:u;var v;return(v=_.WVE(_.Ok(R,y)))!=null?v:u};
GzU=function(R){var y=y===void 0?OBT:y;var u;return(u=_.dV(R,23))!=null?u:y};
Ek=function(R,y){var u=u===void 0?0:u;var v;return(v=_.Ok(R,y,void 0,void 0,_.VgU))!=null?v:u};
_.$U=function(R,y,u,v){u=u===void 0?"":u;var Q;return(Q=_.wa(_.Ok(R,y,v)))!=null?Q:u};
_.qO=function(R,y){var u=u===void 0?0:u;var v;return(v=_.gg(_.Ok(R,y)))!=null?v:u};
XD=function(R,y){var u=u===void 0?"0":u;R=PTO(_.Ok(R,y),!0);return R!=null?R:u};
m9=function(R,y,u){return _.$U(R,B3(R,u,y))};
_.AR=function(R,y,u,v){return _.Ne(R,y,B3(R,v,u),void 0)};
_.Tl=function(R,y){return _.wa(_.Ok(R,y,void 0,_.lo))};
_.ix=function(R,y,u){return _.Mt(R,y,iYW(u))};
_.dG=function(R,y,u){return _.SK(R,y,iYW(u),!1)};
_.DF=function(R,y,u){return _.Mt(R,y,_.CY(u))};
_.ex=function(R,y,u){return _.Mt(R,y,jK(u))};
_.eQ=function(R,y,u){return _.Mt(R,y,bJ(u))};
_.R2=function(R,y,u,v){return _.SK(R,y,bJ(u),"",v)};
_.j_=function(R,y,u){return _.Mt(R,y,u==null?u:_.LY(u))};
_.pU=function(R,y,u){return _.SK(R,y,u==null?u:_.LY(u),0)};var LZ=function(R,y,u){this.buffer=R;if(u&&!y)throw Error();this.JSC$8818_isImmutable=y};var rQv=function(R,y,u,v){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8821_start_=0;this.init(R,y,u,v)},tR,WTU,dZc,kzz,jKc,PcE;
_.J=rQv.prototype;_.J.init=function(R,y,u,v){var Q=v===void 0?{}:v;v=Q.aliasBytesFields===void 0?!1:Q.aliasBytesFields;Q=Q.treatNewDataAsImmutable===void 0?!1:Q.treatNewDataAsImmutable;this.aliasBytesFields=v;this.treatNewDataAsImmutable=Q;R&&(R=qmG(R,this.treatNewDataAsImmutable),this.bytes_=R.buffer,this.bytesAreImmutable_=R.JSC$8818_isImmutable,this.JSC$8821_start_=y||0,this.end_=u!==void 0?this.JSC$8821_start_+u:this.bytes_.length,this.cursor_=this.JSC$8821_start_)};
_.J.free=function(){this.clear();PcE.length<100&&PcE.push(this)};
_.J.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8821_start_=0;this.aliasBytesFields=!1};
_.J.reset=function(){this.cursor_=this.JSC$8821_start_};
_.J.atEnd=function(){return this.cursor_==this.end_};
_.cQ=function(R,y){var u=0,v=0,Q=0,M=R.bytes_,K=R.cursor_;do{var h=M[K++];u|=(h&127)<<Q;Q+=7}while(Q<32&&h&128);if(Q>32)for(v|=(h&127)>>4,Q=3;Q<32&&h&128;Q+=7)h=M[K++],v|=(h&127)<<Q;tR(R,K);if(!(h&128))return y(u>>>0,v>>>0);throw Error();};
tR=function(R,y){R.cursor_=y;if(y>R.end_)throw Error();};
_.aE=function(R){var y=R.bytes_,u=R.cursor_,v=y[u++],Q=v&127;if(v&128&&(v=y[u++],Q|=(v&127)<<7,v&128&&(v=y[u++],Q|=(v&127)<<14,v&128&&(v=y[u++],Q|=(v&127)<<21,v&128&&(v=y[u++],Q|=v<<28,v&128&&y[u++]&128&&y[u++]&128&&y[u++]&128&&y[u++]&128&&y[u++]&128)))))throw Error();tR(R,u);return Q};
_.Sd=function(R){var y=R.bytes_,u=R.cursor_,v=y[u],Q=y[u+1],M=y[u+2];y=y[u+3];tR(R,R.cursor_+4);return(v<<0|Q<<8|M<<16|y<<24)>>>0};
WTU=function(R){var y=_.Sd(R);R=_.Sd(R);return v8W(y,R)};
dZc=function(R){var y=_.Sd(R),u=_.Sd(R);R=(u>>31)*2+1;var v=u>>>20&2047;y=4294967296*(u&1048575)+y;return v==2047?y?NaN:R*Infinity:v==0?R*4.9E-324*y:R*Math.pow(2,v-1075)*(y+4503599627370496)};
_.UZL=function(R){for(var y=0,u=R.cursor_,v=u+10,Q=R.bytes_;u<v;){var M=Q[u++];y|=M;if((M&128)===0)return tR(R,u),!!(y&127)}throw Error();};
kzz=function(R,y){if(y<0)throw Error();var u=R.cursor_;y=u+y;if(y>R.end_)throw Error();R.cursor_=y;return u};
jKc=function(R,y){if(y==0)return _.nY();var u=kzz(R,y);R.aliasBytesFields&&R.bytesAreImmutable_?u=R.bytes_.subarray(u,u+y):(R=R.bytes_,y=u+y,u=u===y?new Uint8Array(0):f4S?R.slice(u,y):new Uint8Array(R.subarray(u,y)));return u.length==0?_.nY():new fY(u,Zw)};
PcE=[];var $ZT=function(R,y,u,v){if(PcE.length){var Q=PcE.pop();Q.init(R,y,u,v);R=Q}else R=new rQv(R,y,u,v);this.decoder_=R;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;E_v(this,v)},E_v=function(R,y){y=y===void 0?{}:y;
R.discardUnknownFields=y.discardUnknownFields===void 0?!1:y.discardUnknownFields},Vyv=function(R,y,u,v){if(qsv.length){var Q=qsv.pop();
E_v(Q,v);Q.decoder_.init(R,y,u,v);return Q}return new $ZT(R,y,u,v)},urG,QKO,Xiz,qsv;
$ZT.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;qsv.length<100&&qsv.push(this)};
$ZT.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
urG=function(R){if(R.decoder_.atEnd())return!1;R.fieldCursor_=R.decoder_.cursor_;var y=_.aE(R.decoder_)>>>0,u=y>>>3;y&=7;if(!(y>=0&&y<=5))throw Error();if(u<1)throw Error();R.nextField_=u;R.nextWireType_=y;return!0};
QKO=function(R){switch(R.nextWireType_){case 0:R.nextWireType_!=0?QKO(R):_.UZL(R.decoder_);break;case 1:R=R.decoder_;tR(R,R.cursor_+8);break;case 2:if(R.nextWireType_!=2)QKO(R);else{var y=_.aE(R.decoder_)>>>0;R=R.decoder_;tR(R,R.cursor_+y)}break;case 5:R=R.decoder_;tR(R,R.cursor_+4);break;case 3:y=R.nextField_;do{if(!urG(R))throw Error();if(R.nextWireType_==4){if(R.nextField_!=y)throw Error();break}QKO(R)}while(1);break;default:throw Error();}};
Xiz=function(R,y,u){var v=R.decoder_.end_,Q=_.aE(R.decoder_)>>>0;Q=R.decoder_.cursor_+Q;var M=Q-v;M<=0&&(R.decoder_.end_=Q,u(y,R,void 0,void 0,void 0),M=Q-R.decoder_.cursor_);if(M)throw Error();R.decoder_.cursor_=Q;R.decoder_.end_=v};
_.mZT=function(R){var y=_.aE(R.decoder_)>>>0;R=R.decoder_;var u=kzz(R,y);R=R.bytes_;if(TfL){var v=R,Q;(Q=Nfz)||(Q=Nfz=new TextDecoder("utf-8",{fatal:!0}));y=u+y;v=u===0&&y===v.length?v:v.subarray(u,y);try{var M=Q.decode(v)}catch(N){if(wnS===void 0){try{Q.decode(new Uint8Array([128]))}catch(T){}try{Q.decode(new Uint8Array([97])),wnS=!0}catch(T){wnS=!1}}!wnS&&(Nfz=void 0);throw N;}}else{M=u;y=M+y;u=[];for(var K=null,h,b;M<y;)h=R[M++],h<128?u.push(h):h<224?M>=y?yG():(b=R[M++],h<194||(b&192)!==128?(M--,
yG()):u.push((h&31)<<6|b&63)):h<240?M>=y-1?yG():(b=R[M++],(b&192)!==128||h===224&&b<160||h===237&&b>=160||((Q=R[M++])&192)!==128?(M--,yG()):u.push((h&15)<<12|(b&63)<<6|Q&63)):h<=244?M>=y-2?yG():(b=R[M++],(b&192)!==128||(h<<28)+(b-144)>>30!==0||((Q=R[M++])&192)!==128||((v=R[M++])&192)!==128?(M--,yG()):(h=(h&7)<<18|(b&63)<<12|(Q&63)<<6|v&63,h-=65536,u.push((h>>10&1023)+55296,(h&1023)+56320))):yG(),u.length>=8192&&(K=RTU(K,u),u.length=0);M=RTU(K,u)}return M};
_.AQz=function(R){var y=_.aE(R.decoder_)>>>0;return jKc(R.decoder_,y)};
_.DZL=function(R,y,u){var v=_.aE(R.decoder_)>>>0;for(v=R.decoder_.cursor_+v;R.decoder_.cursor_<v;)u.push(y(R.decoder_))};
qsv=[];var piW=function(R,y){this.JSC$8828_lo=R>>>0;this.JSC$8828_hi=y>>>0},cQU=function(R){if(!R)return tBE||(tBE=new piW(0,0));
if(!/^\d+$/.test(R))return null;JLP(R);return new piW(Ei,$8)},tBE,l2G=function(R,y){this.JSC$8830_lo=R>>>0;
this.JSC$8830_hi=y>>>0},f2G=function(R){if(!R)return a4G||(a4G=new l2G(0,0));
if(!/^-?\d+$/.test(R))return null;JLP(R);return new l2G(Ei,$8)},a4G;var LU=function(){this.JSC$8832_buffer_=[]},eFv,SsW;
LU.prototype.length=function(){return this.JSC$8832_buffer_.length};
LU.prototype.end=function(){var R=this.JSC$8832_buffer_;this.JSC$8832_buffer_=[];return R};
eFv=function(R,y,u){for(;u>0||y>127;)R.JSC$8832_buffer_.push(y&127|128),y=(y>>>7|u<<25)>>>0,u>>>=7;R.JSC$8832_buffer_.push(y)};
SsW=function(R,y){for(;y>127;)R.JSC$8832_buffer_.push(y&127|128),y>>>=7;R.JSC$8832_buffer_.push(y)};
_.OK8=function(R,y){if(y>=0)SsW(R,y);else{for(var u=0;u<9;u++)R.JSC$8832_buffer_.push(y&127|128),y>>=7;R.JSC$8832_buffer_.push(1)}};
LU.prototype.writeUint8=function(R){this.JSC$8832_buffer_.push(R>>>0&255)};
_.V4=function(R,y){R.JSC$8832_buffer_.push(y>>>0&255);R.JSC$8832_buffer_.push(y>>>8&255);R.JSC$8832_buffer_.push(y>>>16&255);R.JSC$8832_buffer_.push(y>>>24&255)};
LU.prototype.writeInt8=function(R){this.JSC$8832_buffer_.push(R>>>0&255)};var YsT,ub,HKz,rqW;YsT=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new LU};
ub=function(R,y){y.length!==0&&(R.blocks_.push(y),R.totalLength_+=y.length)};
_.DVU=function(R,y){_.Jq(R,y,2);y=R.encoder_.end();ub(R,y);y.push(R.totalLength_);return y};
_.pHE=function(R,y){var u=y.pop();for(u=R.totalLength_+R.encoder_.length()-u;u>127;)y.push(u&127|128),u>>>=7,R.totalLength_++;y.push(u);R.totalLength_++};
_.Jq=function(R,y,u){SsW(R.encoder_,y*8+u)};
HKz=function(R,y,u){if(u!=null){switch(typeof u){case "string":cQU(u)}_.Jq(R,y,1);switch(typeof u){case "number":R=R.encoder_;yLc(u);_.V4(R,Ei);_.V4(R,$8);break;case "bigint":u=BigInt.asUintN(64,u);u=new piW(Number(u&BigInt(4294967295)),Number(u>>BigInt(32)));R=R.encoder_;y=u.JSC$8828_hi;_.V4(R,u.JSC$8828_lo);_.V4(R,y);break;default:u=cQU(u),R=R.encoder_,y=u.JSC$8828_hi,_.V4(R,u.JSC$8828_lo),_.V4(R,y)}}};
rqW=function(R,y,u){_.Jq(R,y,2);SsW(R.encoder_,u.length);ub(R,R.encoder_.end());ub(R,u)};var XHP,zeO,g_U,yyO,uHT;XHP=sm();_.LTT=sm();_.sBO=sm();zeO=sm();g_U=sm();_.CcU=sm();_.sk=sm();_.RMT=sm();yyO=sm();uHT=sm();_.vmz=sm();_.QwU=sm();_.y4=function(R,y,u){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R,y,u)};
_.y4.prototype.toJSON=function(){return ra(this)};
_.y4.prototype.serialize=function(R){return JSON.stringify(ra(this,R))};
var qoS=function(R,y){if(y==null||y=="")return new R;y=JSON.parse(y);if(!Array.isArray(y))throw Error("V");return new R(tvz(y))};
_.y4.prototype.getExtension=function(R){zcT(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,R.fieldIndex);LVU(this,R.fieldIndex);return R.ctor?R.isRepeated?R.getExtensionFn(this,R.ctor,R.fieldIndex,_.Q7(),R.JSC$8843_hasMessageId):R.getExtensionFn(this,R.ctor,R.fieldIndex,R.JSC$8843_hasMessageId):R.isRepeated?R.getExtensionFn(this,R.fieldIndex,_.Q7(),R.JSC$8843_hasMessageId):R.getExtensionFn(this,R.fieldIndex,R.defaultValue,R.JSC$8843_hasMessageId)};
_.y4.prototype.clone=function(){var R=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=R[_.jg]|0;return foz(this,R,y)?BaU(this,R,!0):new this.constructor(Um(R,y,!1))};
_.y4.prototype[NV]=xM;_.y4.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var CZ=function(R,y,u){this.$$binaryReaderFn=R;this.$$binaryWriterFn=y;R=Om(XHP);this.$$isMsg=!!R&&u===R||!1},YmL=mV4(function(R,y,u,v,Q){if(R.nextWireType_!==2)return!1;
Xiz(R,ZBG(y,v,u),Q);return!0},tKT),LgP=mV4(function(R,y,u,v,Q){if(R.nextWireType_!==2)return!1;
Xiz(R,ZBG(y,v,u),Q);return!0},tKT),KK8=Symbol(),gMO=Symbol(),yqc=Symbol(),bKW=Symbol(),MyO=Symbol(),cIG,aov;var kBU,jwG,MrU,JyU,Vr4,iMO,KMP,IDU,hMU,bME,FMP,NtT,Ttz,x_L,BtU;kBU=function(R,y){var u=new YsT;FKL(R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u,RK(KK8,iKv,I2W,y));ub(u,u.encoder_.end());R=new Uint8Array(u.totalLength_);y=u.blocks_;for(var v=y.length,Q=0,M=0;M<v;M++){var K=y[M];R.set(K,Q);Q+=K.length}u.blocks_=[R];return R};
jwG=_.Q4(function(R,y,u){if(R.nextWireType_!==1)return!1;_.jy(y,u,dZc(R.decoder_));return!0},BCc,uHT);
MrU=_.Q4(function(R,y,u,v){if(R.nextWireType_!==1)return!1;_.G$(y,u,v,dZc(R.decoder_));return!0},BCc,uHT);
JyU=_.Q4(function(R,y,u,v){if(R.nextWireType_!==5)return!1;var Q=_.Sd(R.decoder_);R=(Q>>31)*2+1;var M=Q>>>23&255;Q&=8388607;_.G$(y,u,v,M==255?Q?NaN:R*Infinity:M==0?R*1.401298464324817E-45*Q:R*Math.pow(2,M-150)*(Q+8388608));return!0},function(R,y,u){y=_.VgU(y);
y!=null&&(_.Jq(R,u,5),R=R.encoder_,u=xyL||(xyL=new DataView(new ArrayBuffer(8))),u.setFloat32(0,+y,!0),$8=0,Ei=u.getUint32(0,!0),_.V4(R,Ei))},yyO);
_.z$=_.Q4(function(R,y,u){if(R.nextWireType_!==0)return!1;_.jy(y,u,_.cQ(R.decoder_,QbP));return!0},_.ib,_.sk);
Vr4=_.Q4(function(R,y,u){if(R.nextWireType_!==0)return!1;R=_.cQ(R.decoder_,QbP);_.jy(y,u,R===0?void 0:R);return!0},_.ib,_.sk);
iMO=_.Q4(function(R,y,u,v){if(R.nextWireType_!==0)return!1;_.G$(y,u,v,_.cQ(R.decoder_,QbP));return!0},_.ib,_.sk);
_.gV=_.Q4(function(R,y,u){if(R.nextWireType_!==0)return!1;_.jy(y,u,_.aE(R.decoder_));return!0},ZKW,zeO);
KMP=_.Q4(function(R,y,u){if(R.nextWireType_!==0)return!1;R=_.aE(R.decoder_);_.jy(y,u,R===0?void 0:R);return!0},ZKW,zeO);
IDU=_.Q4(function(R,y,u,v){if(R.nextWireType_!==0)return!1;_.G$(y,u,v,_.aE(R.decoder_));return!0},ZKW,zeO);
hMU=_.Q4(function(R,y,u){if(R.nextWireType_!==1)return!1;_.jy(y,u,WTU(R.decoder_));return!0},_.nEP,_.RMT);
bME=_.oEz(function(R,y,u){if(R.nextWireType_!==1&&R.nextWireType_!==2)return!1;y=_.nMP(y,y[_.jg]|0,u);R.nextWireType_==2?_.DZL(R,WTU,y):y.push(WTU(R.decoder_));return!0},function(R,y,u){y=_.TCE(UGL,y,!1);
if(y!=null)for(var v=0;v<y.length;v++)HKz(R,u,y[v])},_.RMT);
_.CU=_.Q4(function(R,y,u){if(R.nextWireType_!==0)return!1;_.jy(y,u,_.UZL(R.decoder_));return!0},_.GBT,_.LTT);
FMP=_.Q4(function(R,y,u,v){if(R.nextWireType_!==0)return!1;_.G$(y,u,v,_.UZL(R.decoder_));return!0},_.GBT,_.LTT);
_.Rf=_.Q4(function(R,y,u){if(R.nextWireType_!==2)return!1;_.jy(y,u,_.mZT(R));return!0},_.Pbv,_.sBO);
_.wUT=_.Q4(function(R,y,u,v){if(R.nextWireType_!==2)return!1;_.G$(y,u,v,_.mZT(R));return!0},_.Pbv,_.sBO);
NtT=_.oEz(function(R,y,u){if(R.nextWireType_!==2)return!1;R=_.mZT(R);_.nMP(y,y[_.jg]|0,u).push(R);return!0},function(R,y,u){y=_.TCE(_.wa,y,!0);
if(y!=null)for(var v=0;v<y.length;v++){var Q=R,M=u,K=y[v];K!=null&&rqW(Q,M,QLz(K))}},_.sBO);
Ttz=void 0;Ttz=Ttz===void 0?XHP:Ttz;_.y_=new CZ(function(R,y,u,v,Q){if(R.nextWireType_!==2)return!1;v=bZP(void 0,v,!0);_.nMP(y,y[_.jg]|0,u).push(v);Xiz(R,v,Q);return!0},function(R,y,u,v,Q){if(Array.isArray(y))for(var M=0;M<y.length;M++)WKP(R,y[M],u,v,Q)},Ttz);
_.uj=mV4(function(R,y,u,v,Q,M){if(R.nextWireType_!==2)return!1;var K=y[_.jg]|0;PJT(y,K,M,u,dg(K));y=ZBG(y,v,u);Xiz(R,y,Q);return!0},WKP);
_.omT=_.Q4(function(R,y,u){if(R.nextWireType_!==2)return!1;_.jy(y,u,_.AQz(R));return!0},_.dyU,_.vmz);
x_L=_.Q4(function(R,y,u,v){if(R.nextWireType_!==2)return!1;_.G$(y,u,v,_.AQz(R));return!0},_.dyU,_.vmz);
BtU=_.Q4(function(R,y,u,v){if(R.nextWireType_!==0)return!1;_.G$(y,u,v,_.aE(R.decoder_)>>>0);return!0},function(R,y,u){y=_.bYE(y);
y!=null&&y!=null&&(_.Jq(R,u,0),SsW(R.encoder_,y))},g_U);
_.v7=_.Q4(function(R,y,u){if(R.nextWireType_!==0)return!1;_.jy(y,u,_.aE(R.decoder_));return!0},_.UyT,_.QwU);var lDO=function(){var R=fDP,y=eME;this.fieldIndex=175237375;this.ctor=y;this.isRepeated=0;this.getExtensionFn=_.Ne;this.defaultValue=void 0;this.JSC$8843_hasMessageId=R.messageId!=null?PK:void 0};
lDO.prototype.register=function(){FD(this)};var OMG=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(OMG,_.y4);var ZMG=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(ZMG,_.y4);var Aqc=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(Aqc,_.y4);var HM8=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(HM8,_.y4);var nmU=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(nmU,_.y4);var G6S=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(G6S,_.y4);var ryL=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(ryL,_.y4);ryL.prototype.getData=function(){return _.nU(this,2)};var Pnc=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(Pnc,_.y4);var WMW=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(WMW,_.y4);WMW.prototype.getStyle=function(){return _.Ne(this,OMG,1)};var bb=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(bb,_.y4);bb.prototype.getPayloadCase=function(){return _.rV(this,oK)};
bb.prototype.getStyle=function(){return _.AR(this,WMW,6,oK)};
var d_T=function(){var R=new bb,y=new nmU;return _.Ny(R,7,oK,y)},U_O=function(){var R=new bb,y=new G6S;
return _.Ny(R,8,oK,y)},oK=[1,
2,3,4,5,6,7,8];var k6P=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(k6P,_.y4);var EmO=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(EmO,_.y4);var $_T=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O($_T,_.y4);var q3W=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(q3W,_.y4);var XU4=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(XU4,_.y4);var m_z=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(m_z,_.y4);var AyW=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(AyW,_.y4);var D_P=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(D_P,_.y4);D_P.prototype.getData=function(){return _.nU(this,2)};var pUG=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(pUG,_.y4);var myT=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(myT,_.y4);myT.prototype.getPayloadCase=function(){return _.rV(this,Q_)};
var Q_=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var jz=function(R,y){R=Error.call(this,R);this.message=R.message;"stack"in R&&(this.stack=R.stack);this.code=y===void 0?2:y};
_.O(jz,Error);var trL=Promise;var cyW=function(R){this.channelPromise=R};
cyW.prototype.send=function(R,y,u){this.channelPromise.then(function(v){v.send(R,y,u)})};var aDv=function(R,y){this.data=R;this.channel=y};
aDv.prototype.reply=function(R,y,u){this.channel.send(R,y,u)};var S3c=function(R){this.JSC$8909_port_=R};
S3c.prototype.send=function(R,y,u){u=u===void 0?[]:u;var v=new MessageChannel;Y3L(v.port1,y);this.JSC$8909_port_.postMessage(R,[v.port2].concat(u))};
var LMP=function(R,y){Y3L(R,y);return new S3c(R)},Y3L=function(R,y){y&&(R.onmessage=function(u){y(new aDv(u.data,LMP(u.ports[0])))})};var swU=function(R){this.verifier_=R};
swU.prototype.verify=function(R){return this.verifier_(R)};
var zMS=function(R){var y=Object.create(null);(typeof R==="string"?[R]:R).forEach(function(u){if(u==="null")throw Error("X");y[u]=!0});
return function(u){return y[u]===!0}};_.gmS=function(){if(!_.uO.addEventListener||!Object.defineProperty)return!1;var R=!1,y=Object.defineProperty({},"passive",{get:function(){R=!0}});
try{var u=function(){};
_.uO.addEventListener("test",u,y);_.uO.removeEventListener("test",u,y)}catch(v){}return R}();var CnU;_.MW=function(R){var y=R.destination;var u=R.iframe;var v=R.origin;var Q=R.channelName===void 0?"ZNWN1d":R.channelName;var M=R.onMessage===void 0?void 0:R.onMessage;R=R.onEstablished===void 0?void 0:R.onEstablished;return CnU({destination:y,getSource:function(){return u.contentWindow},
originVerifier:v instanceof swU?v:typeof v==="function"?new swU(v):new swU(zMS(v)),channelName:Q,onMessage:M,onEstablished:R})};
CnU=function(R){var y=R.destination;var u=R.getSource;var v=R.originVerifier;var Q=R.token===void 0?void 0:R.token;var M=R.channelName;var K=R.onMessage===void 0?void 0:R.onMessage;var h=R.onEstablished===void 0?void 0:R.onEstablished;return new cyW(new trL(function(b,N){var T=function(x){x.source&&x.source===u()&&v.verify(x.origin)&&(x.data.n||x.data)===M&&(y.removeEventListener("message",T,!1),Q&&x.data.t!==Q?N(Error("Y`"+M+"`"+Q+"`"+x.data.t)):(b(LMP(x.ports[0],K)),h&&h(x)))};
y.addEventListener("message",T,!1)}))};var RT5=function(R){try{R()}catch(y){vW(y)}};var uUG=function(R){var y=this;var u=R.getMessageType;var v=R.onUnregisteredMessage===void 0?function(){}:R.onUnregisteredMessage;
var Q=R.onBeforeRegisteredMessage===void 0?function(){}:R.onBeforeRegisteredMessage;
R=R.onAfterRegisteredMessage===void 0?function(){}:R.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=u;this.onUnregisteredMessage_=v;this.onBeforeRegisteredMessage_=Q;this.onAfterRegisteredMessage_=R;this.onMessage=function(M){return yz5(y,M)}};
uUG.prototype.register=function(R,y){this.registry_.set(R,y);return this};
var yz5=function(R,y){var u=R.getMessageType_(y.data),v=R.registry_.get(u);v?(RT5(function(){return R.onBeforeRegisteredMessage_(y,u)}),RT5(function(){return v(y)}),RT5(function(){return R.onAfterRegisteredMessage_(y,u)})):RT5(function(){return R.onUnregisteredMessage_(y,u)})};var vSY=function(R){this.JSC$8926_channel_=R},jLc,MvV;
vSY.prototype.send=function(R,y,u){this.JSC$8926_channel_.send(ra(R),y,u)};
_.QLL=function(R,y){return function(u){var v=new R(u.data);return y(new aDv(v,u.channel))}};
jLc=function(R){return function(y){return R(new aDv(y.data,new vSY(y.channel)))}};
MvV=function(R,y){return jLc(_.QLL(R,y))};var Jzb=function(R,y,u,v){this.registry=R;this.delegate=y;this.receiveMessageConstructor=u;this.createInitMessage=v;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},XgU=function(R){var y=new uUG({getMessageType:R.getPayloadCase});
return new Jzb(y,new vSY(_.MW({iframe:R.child,destination:window,origin:R.origin,channelName:R.channelName,onMessage:MvV(R.receiveMessageConstructor,y.onMessage)})),R.receiveMessageConstructor,R.createInitMessage)},VvY=function(R,y){R.createInitMessage=y};
Jzb.prototype.send=function(R){if(!this.initialised)throw new jz("Attempted to send a message before initialisation.");this.delegate.send(R)};
var i8g=function(R,y){return _.I(function(u){if(!R.initialised)throw new jz("Attempted to send a message before initialisation.");return u.return(new Promise(function(v){R.delegate.send(y,MvV(R.receiveMessageConstructor,v))}))})};
Jzb.prototype.init=function(){var R=this;return _.I(function(y){if(R.initialised)throw new jz("Attempted to initialise twice. The SDK can only be initialised once.");if(R.createInitMessage!==void 0){var u=R.delegate,v=u.send,Q=R.createInitMessage;var M=new ZMG;var K=[].concat(_.P$(R.features));M=_.aP(M,1,K,_.LY);v.call(u,Q.call(R,M))}R.initialised=!0;_.f$(y)})};
var Jk=function(R,y){if(R.initialised)throw new jz('Attempted to set up API "'+y+'" after initialisation. All APIs must be set up before initialising the SDK.');R.features.add(y);return R.registry};
_.RR.Object.defineProperties(Jzb.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var K4L=function(R){this.channel=R;this.registered=!1};
K4L.prototype.update=function(R){if(this.channel.isInitialised){if(!this.registered)throw new jz("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var y=new bb;var u=new HM8;u=_.ix(u,1,R);y=_.Ny(y,2,oK,u);this.channel.send(y)}else this.register();this.JSC$8940_audioEnabled=R};
K4L.prototype.register=function(){Jk(this.channel,1);this.registered=!0};
K4L.prototype.isAudioEnabled=function(){return this.JSC$8940_audioEnabled};var IcL=function(R){this.channel=R};
_.J=IcL.prototype;_.J.onFirstFrameReady=function(R){Jk(this.channel,2).register(11,function(y){y=_.AR(y.data,k6P,11,Q_);if(!y)throw new jz("Unexpectedly nonexistent GameFirstFrameReadyEvent");R(_.$U(y,1))})};
_.J.onReady=function(R){Jk(this.channel,2).register(4,function(y){y=_.AR(y.data,$_T,4,Q_);if(!y)throw new jz("Unexpectedly nonexistent GameReadyEvent");R(_.$U(y,1))})};
_.J.onLevelComplete=function(R){Jk(this.channel,2).register(5,function(y){y=_.AR(y.data,q3W,5,Q_);if(!y)throw new jz("Unexpectedly nonexistent LevelCompleteEvent");R(_.$U(y,1),_.jZ(y,2))})};
_.J.onGameOver=function(R){Jk(this.channel,2).register(6,function(y){y=_.AR(y.data,EmO,6,Q_);if(!y)throw new jz("Unexpectedly nonexistent GameOverEvent");R(_.$U(y,1))})};
_.J.pause=function(){var R=this;if(!this.channel.isInitialised)return Jk(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new jz("Using unregistered Game Feature: pause.");var y=d_T();return new Promise(function(u){return _.I(function(v){if(v.nextAddress==1)return v.yield(i8g(R.channel,y),2);u();_.f$(v)})})};
_.J.resume=function(){var R=this;if(!this.channel.isInitialised)return Jk(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new jz("Using unregistered Game Feature: resume.");var y=U_O();return new Promise(function(u){return _.I(function(v){if(v.nextAddress==1)return v.yield(i8g(R.channel,y),2);u();_.f$(v)})})};var hTV=function(R){this.channel=R};
hTV.prototype.onReady=function(R){Jk(this.channel,5).register(8,function(y){if(!_.AR(y.data,XU4,8,Q_))throw new jz("Unexpectedly nonexistent PageReadyEvent");R()})};var b85=function(R){this.channel=R};
b85.prototype.onChange=function(R){Jk(this.channel,3).register(7,function(y){y=_.AR(y.data,m_z,7,Q_);if(!y)throw new jz("Unexpectedly nonexistent ScoreEvent");R(_.$U(y,1),_.jZ(y,2))})};var F45={load:function(){throw new jz("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new jz("Storage used, but storage.onSave() listener not set!");}},wWc=function(R){this.channel=R;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},NEg=function(R){Jk(R.channel,4).register(2,F45.load).register(3,F45.save);
R.initialSetupDone=!0};
wWc.prototype.onLoad=function(R){this.initialSetupDone||NEg(this);this.loadRegistered||(this.loadRegistered=!0,Jk(this.channel,4).register(2,function(y){var u,v,Q;return _.I(function(M){if(M.nextAddress==1){u=_.AR(y.data,AyW,2,Q_);if(!u)throw new jz("Unexpectedly nonexistent StorageLoad");v=_.$U(u,1);return M.yield(R(v),2)}Q=M.yieldResult;var K=y.reply,h=new bb;var b=new ryL;b=_.eQ(b,1,v);b=_.Mt(b,2,_.G5(Q,!1));h=_.Ny(h,3,oK,b);K.call(y,h);_.f$(M)})}))};
wWc.prototype.onSave=function(R){this.initialSetupDone||NEg(this);this.saveRegistered||(this.saveRegistered=!0,Jk(this.channel,4).register(3,function(y){var u,v,Q;return _.I(function(M){if(M.nextAddress==1){u=_.AR(y.data,D_P,3,Q_);if(!u)throw new jz("Unexpectedly nonexistent StorageSave");v=_.$U(u,1);Q=KTU(u.getData());return M.yield(R(v,Q),2)}var K=y.reply,h=new bb;var b=new Pnc;b=_.eQ(b,1,v);h=_.Ny(h,4,oK,b);K.call(y,h);_.f$(M)})}))};var TE8=function(R){this.channel=R};
TE8.prototype.update=function(R){if(!this.channel.features.has(6))throw new jz("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var y=new bb,u=new WMW;R=_.wC(u,1,R);y=_.Ny(y,6,oK,R);this.channel.send(y)};
TE8.prototype.register=function(){Jk(this.channel,6)};var oS5=function(R){this.channel=R;this.userActivityLoggingIntervalMs=0};
oS5.prototype.onUserActivity=function(R,y){this.userActivityLoggingIntervalMs=y;Jk(this.channel,7).register(9,function(u){if(!_.AR(u.data,pUG,9,Q_))throw new jz("Unexpectedly nonexistent ClickEvent");R()})};var xUc=function(R){var y=this;this.channel=R;this.init=this.channel.init.bind(this.channel);this.page=new hTV(this.channel);this.game=new IcL(this.channel);this.audio=new K4L(this.channel);this.score=new b85(this.channel);this.storage=new wWc(this.channel);this.style=new TE8(this.channel);this.userActivity=new oS5(this.channel);VvY(this.channel,function(u){var v=new Aqc;u=_.wC(v,1,u);u=_.DF(u,3,y.userActivity.userActivityLoggingIntervalMs);v=y.audio.isAudioEnabled();v!==void 0&&_.ix(u,2,v);v=new bb;
return _.Ny(v,5,oK,u)})};var BE5=function(){this.timedFunctionContext=0};
BE5.prototype.timeExecution=function(R,y){var u=this;return function(){var v=_.qy.apply(0,arguments);u.timedFunctionContext=R;return y.apply(null,_.P$(v))}};var fcY=function(){var R={};this.priorityTasks=(R[3]=[],R[2]=[],R[1]=[],R);this.isFlushing=!1},wc=function(R,y,u){var v=eT5(R,u);
R.priorityTasks[u].push(y);v&&R.priorityTasks[u].length===1&&R.flush()},eT5=function(R,y){return Object.keys(R.priorityTasks).map(function(u){return Number(u)}).filter(function(u){return!isNaN(u)&&u>y}).every(function(u){return R.priorityTasks[u].length===0})};
fcY.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(R){return R.length>0});)lcg(this,3),lcg(this,2),lcg(this,1)}catch(R){throw Object.values(this.priorityTasks).forEach(function(y){return void y.splice(0,y.length)}),R;
}finally{this.isFlushing=!1}}};
var lcg=function(R,y){for(;eT5(R,y)&&R.priorityTasks[y].length>0;)R.priorityTasks[y][0](),R.priorityTasks[y].shift()};
_.RR.Object.defineProperties(fcY.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(R){return R.length>0})}}});var LKv={};var O8c=globalThis.trustedTypes,pgL=O8c,cqO;var ey=function(R){this.privateDoNotAccessOrElseWrappedResourceUrl=R};
ey.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var Z8w,H8g,nSg,GTV,rzi,POY,W4g,dUg;Z8w=_.RE([""]);H8g=CR(["\x00"],["\\0"]);nSg=CR(["\n"],["\\n"]);GTV=CR(["\x00"],["\\u0000"]);rzi=_.RE([""]);POY=CR(["\x00"],["\\0"]);W4g=CR(["\n"],["\\n"]);dUg=CR(["\x00"],["\\u0000"]);_.UU5=YoL(function(R){return R(Z8w)})||YoL(function(R){return R(H8g)})||YoL(function(R){return R(nSg)})||YoL(function(R){return R(GTV)});
_.kT5=_.Z2(rzi)&&_.Z2(POY)&&_.Z2(W4g)&&_.Z2(dUg);var kE;_.Hg=function(R,y){this.privateDoNotAccessOrElseWrappedUrl=y};
_.Hg.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.ESc=nK("about:blank");kE=nK("about:invalid#zClosurez");var sKz=function(R){this.isValid=R},$Uc=new sKz(function(R){return/^[^:]*([/?#]|$)/.test(R)}),qPG=Wg("data"),XWc=Wg("http"),mUi=Wg("https"),AzV=Wg("ftp"),DUL=Wg("mailto"),pWc=Wg("intent"),tvL=Wg("vnd.youtube"),zFz=[qPG,
XWc,mUi,DUL,AzV,$Uc],Cb8=Bg(function(){return typeof URL==="function"}),czT=["data:",
"http:","https:","mailto:","ftp:"],yaG=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var D2=function(R){this.privateDoNotAccessOrElseWrappedHtml=R};
D2.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var b9S=Bg(function(){return new D2(O8c?O8c.emptyHTML:"")});var acb={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"},vL4=function(R,y){var u=Error.call(this,R+" cannot be used with intent "+acb[y]);this.message=u.message;"stack"in u&&(this.stack=u.stack);this.type=R;this.intent=y;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.O(vL4,Error);_.YE=function(R){this.privateDoNotAccessOrElseWrappedScript=R};
_.YE.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var Jaz=function(R){this.privateDoNotAccessOrElseWrappedAttributePrefix=R};
Jaz.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var VLT="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var h8T=function(R){var y=_.D6("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:y,stack:"Not available"};var u=!1;try{var v=R.lineNumber||R.line||"Not available"}catch(K){v="Not available",u=!0}try{var Q=R.fileName||R.filename||R.sourceURL||_.uO.$googDebugFname||y}catch(K){Q="Not available",u=!0}y=SPc(R);if(!(!u&&R.lineNumber&&R.fileName&&R.stack&&R.message&&R.name)){u=R.message;
if(u==null){if(R.constructor&&R.constructor instanceof Function){if(R.constructor.name)u=R.constructor.name;else if(u=R.constructor,V_[u])u=V_[u];else{u=String(u);if(!V_[u]){var M=/function\s+([^\(]+)/m.exec(u);V_[u]=M?M[1]:"[Anonymous]"}u=V_[u]}u='Unknown Error of type "'+u+'"'}else u="Unknown Error of unknown type";typeof R.toString==="function"&&Object.prototype.toString!==R.toString&&(u+=": "+R.toString())}return{message:u,name:R.name||"UnknownError",lineNumber:v,fileName:Q,stack:y||"Not available"}}return{message:R.message,
name:R.name,lineNumber:R.lineNumber,fileName:R.fileName,stack:y}},SPc=function(R,y){y||(y={});
y[YPc(R)]=!0;var u=R.stack||"",v=R.cause;v&&!y[YPc(v)]&&(u+="\nCaused by: ",v.stack&&v.stack.indexOf(v.toString())==0||(u+=typeof v==="string"?v:v.message+"\n"),u+=SPc(v,y));R=R.errors;if(Array.isArray(R)){v=1;var Q;for(Q=0;Q<R.length&&!(v>4);Q++)y[YPc(R[Q])]||(u+="\nInner error "+v++ +": ",R[Q].stack&&R[Q].stack.indexOf(R[Q].toString())==0||(u+=typeof R[Q]==="string"?R[Q]:R[Q].message+"\n"),u+=SPc(R[Q],y));Q<R.length&&(u+="\n... "+(R.length-Q)+" more inner errors")}return u},YPc=function(R){var y=
"";
typeof R.toString==="function"&&(y=""+R);return y+R.stack},V_={};var L4K,Rh,x9,zTc,gSi,sL5,D0,c8,RcL;L4K=function(R,y){for(var u=R.split("%s"),v="",Q=Array.prototype.slice.call(arguments,1);Q.length&&u.length>1;)v+=u.shift()+Q.shift();return v+u.join("%s")};
_.t7=function(R){return encodeURIComponent(String(R))};
Rh=function(R){return decodeURIComponent(R.replace(/\+/g," "))};
x9=function(R){ZfP.test(R)&&(R.indexOf("&")!=-1&&(R=R.replace(xTE,"&amp;")),R.indexOf("<")!=-1&&(R=R.replace(BfS,"&lt;")),R.indexOf(">")!=-1&&(R=R.replace(f3P,"&gt;")),R.indexOf('"')!=-1&&(R=R.replace(ebE,"&quot;")),R.indexOf("'")!=-1&&(R=R.replace(l3S,"&#39;")),R.indexOf("\x00")!=-1&&(R=R.replace(Of8,"&#0;")));return R};
zTc=function(R){var y={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var u=_.uO.document.createElement("div");return R.replace(sL5,function(v,Q){var M=y[v];if(M)return M;Q.charAt(0)=="#"&&(Q=Number("0"+Q.slice(1)),isNaN(Q)||(M=String.fromCharCode(Q)));M||(_.CK(u,pK(v+" ")),M=u.firstChild.nodeValue.slice(0,-1));return y[v]=M})};
gSi=function(R){return R.replace(/&([^;]+);/g,function(y,u){switch(u){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return u.charAt(0)!="#"||(u=Number("0"+u.slice(1)),isNaN(u))?y:String.fromCharCode(u)}})};
sL5=/&([^;\s<&]+);?/g;_.k0G=function(R){return String(R).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.COc=String.prototype.repeat?function(R,y){return R.repeat(y)}:function(R,y){return Array(y+1).join(R)};
_.ij=function(R,y){if(!Number.isFinite(R))return String(R);R=String(R);var u=R.indexOf(".");u===-1&&(u=R.length);var v=R[0]==="-"?"-":"";v&&(R=R.substring(1));return v+(0,_.COc)("0",Math.max(0,y-u))+R};
D0=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.KU()).toString(36)};
c8=function(R){for(var y=0,u=0;u<R.length;++u)y=31*y+R.charCodeAt(u)>>>0;return y};
_.fv=function(R){return String(R).replace(/\-([a-z])/g,function(y,u){return u.toUpperCase()})};
_.B8=function(R){return String(R).replace(/([A-Z])/g,"-$1").toLowerCase()};
RcL=function(R){return R.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(y,u,v){return u+v.toUpperCase()})};var yLw=function(){this.names=new Map};
yLw.prototype.getName=function(R){var y=this.names.get(R);if(y)return y;var u;y=(u=R.description)!=null?u:D0();this.names.set(R,y);return y};var u5Y=function(R){var y=Error.call(this,R?R.length+" errors occurred during unsubscription:\n"+R.map(function(u,v){return v+1+") "+u.toString()}).join("\n  "):"");
this.message=y.message;"stack"in y&&(this.stack=y.stack);this.errors=R;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.O(u5Y,Error);var jL=function(R){this.initialTeardown=R;this.closed=!1;this._teardowns=this._parentage=null};
_.J=jL.prototype;
_.J.unsubscribe=function(){if(!this.closed){this.closed=!0;var R=this._parentage;if(Array.isArray(R))for(var y=_.V(R),u=y.next();!u.done;u=y.next())u.value.remove(this);else R==null||R.remove(this);y=this.initialTeardown;if(Q6(y))try{y()}catch(M){var v=M instanceof u5Y?M.errors:[M]}var Q=this._teardowns;if(Q)for(this._teardowns=null,y=_.V(Q),u=y.next();!u.done;u=y.next()){u=u.value;try{Q6(u)?u():u.unsubscribe()}catch(M){u=void 0,v=(u=v)!=null?u:[],M instanceof u5Y?v=[].concat(_.P$(v),_.P$(M.errors)):
v.push(M)}}if(v)throw new u5Y(v);}};
_.J.add=function(R){if(R&&R!==this)if(this.closed)Q6(R)?R():R.unsubscribe();else{if(R instanceof jL){if(R.closed||R._hasParent(this))return;R._addParent(this)}var y;(this._teardowns=(y=this._teardowns)!=null?y:[]).push(R)}};
_.J._hasParent=function(R){var y=this._parentage;return y===R||Array.isArray(y)&&y.includes(R)};
_.J._addParent=function(R){var y=this._parentage;this._parentage=Array.isArray(y)?(y.push(R),y):y?[y,R]:R};
_.J._removeParent=function(R){var y=this._parentage;y===R?this._parentage=null:Array.isArray(y)&&hUU(y,R)};
_.J.remove=function(R){var y=this._teardowns;y&&hUU(y,R);R instanceof jL&&R._removeParent(this)};
var v8K=new jL;v8K.closed=!0;jL.JSC$9036_EMPTY=v8K;var F_v=function(){setTimeout.apply(null,_.P$(_.qy.apply(0,arguments)))};var Kp=function(R){jL.call(this);this.JSC$9041_isStopped=!1;this.destination=R instanceof Kp?R:new If(!R||Q6(R)?{next:R!=null?R:void 0}:R);b$L(R)&&R.add(this)};
_.O(Kp,jL);Kp.JSC$9036_EMPTY=jL.JSC$9036_EMPTY;Kp.create=function(R,y,u){return new hk(R,y,u)};
_.J=Kp.prototype;_.J.next=function(R){this.JSC$9041_isStopped||this._next(R)};
_.J.error=function(R){this.JSC$9041_isStopped||(this.JSC$9041_isStopped=!0,this._error(R))};
_.J.complete=function(){this.JSC$9041_isStopped||(this.JSC$9041_isStopped=!0,this._complete())};
_.J.unsubscribe=function(){this.closed||(this.JSC$9041_isStopped=!0,jL.prototype.unsubscribe.call(this))};
_.J._next=function(R){this.destination.next(R)};
_.J._error=function(R){this.destination.error(R);this.unsubscribe()};
_.J._complete=function(){this.destination.complete();this.unsubscribe()};
var If=function(R){this.partialObserver=R};
If.prototype.next=function(R){var y=this.partialObserver;if(y.next)try{y.next(R)}catch(u){Ja(u)}};
If.prototype.error=function(R){var y=this.partialObserver;if(y.error)try{y.error(R)}catch(u){Ja(u)}else Ja(R)};
If.prototype.complete=function(){var R=this.partialObserver;if(R.complete)try{R.complete()}catch(y){Ja(y)}};
var hk=function(R,y,u){Kp.call(this);var v;Q6(R)||!R?v={next:R!=null?R:void 0,error:y!=null?y:void 0,complete:u!=null?u:void 0}:v=R;this.destination=new If(v)};
_.O(hk,Kp);hk.JSC$9036_EMPTY=Kp.JSC$9036_EMPTY;hk.create=Kp.create;var I1=typeof Symbol==="function"&&Symbol.observable||"@@observable";var K$=function(R){R&&(this._subscribe=R)};
_.J=K$.prototype;_.J.lift=function(R){var y=new K$;y.source=this;y.operator=R;return y};
_.J.subscribe=function(R,y,u){R=R&&R instanceof Kp||R&&Q6(R.next)&&Q6(R.error)&&Q6(R.complete)&&b$L(R)?R:new hk(R,y,u);y=this.operator;u=this.source;R.add(y?y.call(R,u):u?this._subscribe(R):this._trySubscribe(R));return R};
_.J._trySubscribe=function(R){try{return this._subscribe(R)}catch(y){R.error(y)}};
_.J.forEach=function(R,y){var u=this;y=NYS(y);return new y(function(v,Q){var M=u.subscribe(function(K){try{R(K)}catch(h){Q(h),M==null||M.unsubscribe()}},Q,v)})};
_.J._subscribe=function(R){var y;return(y=this.source)==null?void 0:y.subscribe(R)};
K$.prototype[I1]=function(){return this};
K$.prototype.pipe=function(){var R=_.qy.apply(0,arguments);return R.length?w$T(R)(this):this};
K$.create=function(R){return new K$(R)};var Qbi=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"};
_.O(Qbi,Error);var KL=function(){this.observers=[];this.hasError=this.JSC$9057_isStopped=this.closed=!1;this.thrownError=null};
_.O(KL,K$);_.J=KL.prototype;_.J.lift=function(R){var y=new Fi(this,this);y.operator=R;return y};
_.J._throwIfClosed=function(){if(this.closed)throw new Qbi;};
_.J.next=function(R){this._throwIfClosed();if(!this.JSC$9057_isStopped){var y=this.observers.slice();y=_.V(y);for(var u=y.next();!u.done;u=y.next())u.value.next(R)}};
_.J.error=function(R){this._throwIfClosed();if(!this.JSC$9057_isStopped){this.hasError=this.JSC$9057_isStopped=!0;this.thrownError=R;for(var y=this.observers;y.length;)y.shift().error(R)}};
_.J.complete=function(){this._throwIfClosed();if(!this.JSC$9057_isStopped){this.JSC$9057_isStopped=!0;for(var R=this.observers;R.length;)R.shift().complete()}};
_.J.unsubscribe=function(){this.JSC$9057_isStopped=this.closed=!0;this.observers=null};
_.J._trySubscribe=function(R){this._throwIfClosed();return K$.prototype._trySubscribe.call(this,R)};
_.J._subscribe=function(R){this._throwIfClosed();this._checkFinalizedStatuses(R);return this._innerSubscribe(R)};
_.J._innerSubscribe=function(R){var y=this,u=this.JSC$9057_isStopped,v=this.observers;return this.hasError||u?jL.JSC$9036_EMPTY:(v.push(R),new jL(function(){return hUU(y.observers,R)}))};
_.J._checkFinalizedStatuses=function(R){var y=this.thrownError,u=this.JSC$9057_isStopped;this.hasError?R.error(y):u&&R.complete()};
KL.create=function(R,y){return new Fi(R,y)};
var Fi=function(R,y){KL.call(this);this.destination=R;this.source=y};
_.O(Fi,KL);Fi.create=KL.create;Fi.prototype.next=function(R){var y,u;(y=this.destination)==null||(u=y.next)==null||u.call(y,R)};
Fi.prototype.error=function(R){var y,u;(y=this.destination)==null||(u=y.error)==null||u.call(y,R)};
Fi.prototype.complete=function(){var R,y;(R=this.destination)==null||(y=R.complete)==null||y.call(R)};
Fi.prototype._subscribe=function(R){var y,u;return(u=(y=this.source)==null?void 0:y.subscribe(R))!=null?u:jL.JSC$9036_EMPTY};var AS=function(R){KL.call(this);this._value=R};
_.O(AS,KL);AS.create=KL.create;AS.prototype._subscribe=function(R){var y=KL.prototype._subscribe.call(this,R);!y.closed&&R.next(this._value);return y};
AS.prototype.getValue=function(){var R=this.thrownError,y=this._value;if(this.hasError)throw R;this._throwIfClosed();return y};
AS.prototype.next=function(R){KL.prototype.next.call(this,this._value=R)};
_.RR.Object.defineProperties(AS.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var Er=new K$(function(R){return R.complete()});var BYU=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var Z$z=function(R){return R&&typeof R.length==="number"&&typeof R!=="function"};var jb8={now:function(){return(jb8.delegate||Date).now()},
delegate:void 0};var gY=function(R,y,u){R=R===void 0?Infinity:R;y=y===void 0?Infinity:y;u=u===void 0?jb8:u;KL.call(this);this.bufferSize=R;this.windowTime=y;this.timestampProvider=u;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=y===Infinity;this.bufferSize=Math.max(1,R);this.windowTime=Math.max(1,y)};
_.O(gY,KL);gY.create=KL.create;gY.prototype.next=function(R){var y=this.buffer,u=this.infiniteTimeWindow,v=this.timestampProvider,Q=this.windowTime;this.JSC$9057_isStopped||(y.push(R),!u&&y.push(v.now()+Q));Mgc(this);KL.prototype.next.call(this,R)};
gY.prototype._subscribe=function(R){this._throwIfClosed();Mgc(this);for(var y=this._innerSubscribe(R),u=this.infiniteTimeWindow,v=this.buffer.slice(),Q=0;Q<v.length&&!R.closed;Q+=u?1:2)R.next(v[Q]);this._checkFinalizedStatuses(R);return y};
var Mgc=function(R){var y=R.bufferSize,u=R.timestampProvider,v=R.buffer;R=R.infiniteTimeWindow;var Q=(R?1:2)*y;y<Infinity&&Q<v.length&&v.splice(0,v.length-Q);if(!R){y=u.now();u=0;for(R=1;R<v.length&&v[R]<=y;R+=2)u=R;u&&v.splice(0,u+1)}};var VgG=function(R,y){y=y===void 0?JLi:y;this.schedulerActionCtor=R;this.now=y};
VgG.prototype.schedule=function(R,y,u){y=y===void 0?0:y;return(new this.schedulerActionCtor(this,R)).schedule(u,y)};
var JLi=jb8.now;var Tcz=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"};
_.O(Tcz,Error);var n$=function(R,y,u,v,Q){Kp.call(this,R);this.onUnsubscribe=Q;y&&(this._next=function(M){try{y(M)}catch(K){this.destination.error(K)}});
u&&(this._error=function(M){try{u(M)}catch(K){this.destination.error(K)}this.unsubscribe()});
v&&(this._complete=function(){try{v()}catch(M){this.destination.error(M)}this.unsubscribe()})};
_.O(n$,Kp);n$.JSC$9036_EMPTY=Kp.JSC$9036_EMPTY;n$.create=Kp.create;n$.prototype.unsubscribe=function(){var R;this.closed||(R=this.onUnsubscribe)!=null&&R.call(this);Kp.prototype.unsubscribe.call(this)};var sr=function(R,y){this.source=R;this.subjectFactory=y;this._subject=null;this._refCount=0;this._connection=null};
_.O(sr,K$);sr.create=K$.create;sr.prototype._subscribe=function(R){return iYK(this).subscribe(R)};
var iYK=function(R){var y=R._subject;if(!y||y.JSC$9057_isStopped)R._subject=R.subjectFactory();return R._subject};
sr.prototype._teardown=function(){this._refCount=0;var R=this._connection;this._subject=this._connection=null;R==null||R.unsubscribe()};
sr.prototype.connect=function(){var R=this,y=this._connection;if(!y){y=this._connection=new jL;var u=iYK(this);y.add(this.source.subscribe(new n$(u,void 0,function(v){R._teardown();u.error(v)},function(){R._teardown();
u.complete()},function(){return R._teardown()})));
y.closed&&(this._connection=null,y=jL.JSC$9036_EMPTY)}return y};var qrP=Array.isArray;var mPS=Array.isArray,KVc=Object,AaS=KVc.getPrototypeOf,DPc=KVc.prototype,p$v=KVc.keys;var dY=function(R,y,u){Kp.call(this,R);this._next=y;this.shouldComplete=u};
_.O(dY,Kp);dY.JSC$9036_EMPTY=Kp.JSC$9036_EMPTY;dY.create=Kp.create;dY.prototype._complete=function(){this.shouldComplete()?Kp.prototype._complete.call(this):this.unsubscribe()};var gLW=["addListener","removeListener"],zUU=["addEventListener","removeEventListener"],RSL=["on","off"];var wx=function(){jL.call(this)};
_.O(wx,jL);wx.JSC$9036_EMPTY=jL.JSC$9036_EMPTY;wx.prototype.schedule=function(){return this};var IwT=function(R,y){return setInterval.apply(null,[R,y].concat(_.P$(_.qy.apply(2,arguments))))};var NW=function(R,y){jL.call(this);this.scheduler=R;this.work=y;this.pending=!1};
_.O(NW,wx);NW.JSC$9036_EMPTY=wx.JSC$9036_EMPTY;NW.prototype.schedule=function(R,y){y=y===void 0?0:y;if(this.closed)return this;this.state=R;R=this.id;var u=this.scheduler;R!=null&&(this.id=hc5(this,R,y));this.pending=!0;this.delay=y;this.id=this.id||this.requestAsyncId(u,this.id,y);return this};
NW.prototype.requestAsyncId=function(R,y,u){u=u===void 0?0:u;return IwT(R.flush.bind(R,this),u)};
var hc5=function(R,y,u){u=u===void 0?0:u;if(u!=null&&R.delay===u&&R.pending===!1)return y;clearInterval(y)};
NW.prototype.execute=function(R,y){if(this.closed)return Error("ha");this.pending=!1;if(R=this._execute(R,y))return R;this.pending===!1&&this.id!=null&&(this.id=hc5(this,this.id,null))};
NW.prototype._execute=function(R){var y=!1;try{this.work(R)}catch(v){y=!0;var u=!!v&&v||Error(v)}if(y)return this.unsubscribe(),u};
NW.prototype.unsubscribe=function(){if(!this.closed){var R=this.id,y=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;hUU(y,this);R!=null&&(this.id=hc5(this,R,null));this.delay=null;wx.prototype.unsubscribe.call(this)}};var bYg=function(R,y){y=y===void 0?JLi:y;VgG.call(this,R,y);this.actions=[];this.active=!1;this.scheduled=void 0};
_.O(bYg,VgG);bYg.prototype.flush=function(R){var y=this.actions;if(this.active)y.push(R);else{var u;this.active=!0;do if(u=R.execute(R.state,R.delay))break;while(R=y.shift());this.active=!1;if(u){for(;R=y.shift();)R.unsubscribe();throw u;}}};var nL=new K$(MP);var ySU=Array.isArray;var Tq=function(R,y){NW.call(this,R,y);this.scheduler=R;this.work=y};
_.O(Tq,NW);Tq.JSC$9036_EMPTY=NW.JSC$9036_EMPTY;Tq.prototype.schedule=function(R,y){y=y===void 0?0:y;if(y>0)return NW.prototype.schedule.call(this,R,y);this.delay=y;this.state=R;this.scheduler.flush(this);return this};
Tq.prototype.execute=function(R,y){return y>0||this.closed?NW.prototype.execute.call(this,R,y):this._execute(R,y)};
Tq.prototype.requestAsyncId=function(R,y,u){u=u===void 0?0:u;return u!=null&&u>0||u==null&&this.delay>0?NW.prototype.requestAsyncId.call(this,R,y,u):R.flush(this)};var FVg=function(){bYg.apply(this,arguments)};
_.O(FVg,bYg);var ELU=new FVg(Tq);var wKc=function(){this.performanceMonitor=new BE5;this.queue=new fcY;this.internalSymbol=Symbol();this.debugNames=new yLw};
wKc.prototype.getOnBackgrounded=function(){return nL};
_.RR.Object.defineProperties(wKc.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var of=function(R,y){y=Error.call(this,y?R+": "+y:String(R));this.message=y.message;"stack"in y&&(this.stack=y.stack);this.code=R;this.__proto__=of.prototype;this.name=String(R)};
_.O(of,Error);var GR=function(R){of.call(this,1E3,'sfr:"'+R+'"');this.measurementStrategyFailureReason=R;this.__proto__=GR.prototype};
_.O(GR,of);var rc=function(){of.call(this,1003);this.__proto__=rc.prototype};
_.O(rc,of);var x$=function(){of.call(this,1009);this.__proto__=x$.prototype};
_.O(x$,of);var Ngi=function(){of.call(this,1011);this.__proto__=Ngi.prototype};
_.O(Ngi,of);var TgL=function(){of.call(this,1007);this.__proto__=rc.prototype};
_.O(TgL,of);var lv=function(R){of.call(this,1004,String(R));this.inputObservableIndex=R;this.__proto__=lv.prototype};
_.O(lv,of);var WaP=function(R){of.call(this,1010,R);this.__proto__=deO.prototype};
_.O(WaP,of);var deO=function(R){of.call(this,1005,R);this.__proto__=deO.prototype};
_.O(deO,of);var o8T=function(R){var y=_.qy.apply(1,arguments),u=this;this.orderedFactories=[];this.orderedFactories.push(R);y.forEach(function(v){u.orderedFactories.push(v)})};
o8T.prototype.isSupported=function(R){return this.orderedFactories.some(function(y){return y.isSupported(R)})};
o8T.prototype.makeBeacon=function(R,y){for(var u=0;u<this.orderedFactories.length;u++)if(this.orderedFactories[u].isSupported(y))return this.orderedFactories[u].makeBeacon(R,y);throw new x$;};var BhU=Symbol("ia"),xGc=Symbol("ja"),Dt=function(R,y){this.value=R;this.timeline=y},Xo=function(R,y){if(y.timeline!==R.timeline)throw new TgL;
return R.value-y.value};
_.J=Dt.prototype;_.J.equals=function(R){return Xo(this,R)===0};
_.J.maximum=function(R){if(R.timeline!==this.timeline)throw new TgL;return this.value>=R.value?this:R};
_.J.round=function(){return new Dt(Math.round(this.value),this.timeline)};
_.J.add=function(R){return new Dt(this.value+R,this.timeline)};
_.J.toString=function(){return String(this.value)};var B7=function(R,y){this.context=R;this.JSC$9163_pinger=y};
B7.prototype.isSupported=function(R){return this.JSC$9163_pinger.isSupported(R)};
B7.prototype.makeBeacon=function(R,y){if(!this.isSupported(y))throw new x$;return new fp(this.context,this.JSC$9163_pinger,y!=null?y:void 0,R)};
var fp=function(R,y,u,v){var Q=this;this.JSC$9169_pinger=y;this.properties=u;this.url=v;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var M;this.method=(M=u==null?void 0:u.beaconMethod)!=null?M:"GET";this.backgroundedSubscription=R.getOnBackgrounded().subscribe(function(){Q.sendNow()})};
fp.prototype.deactivate=function(){this.internalIsPending=!1};
fp.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9169_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var R,y;this.JSC$9169_pinger.pingWithHeadersAndBody((R=this.properties)!=null?R:{},this.customHeaders,(y=this.body)!=null?y:"",this.url)}else this.JSC$9169_pinger.ping(this.url);this.internalIsPending=!1}catch(u){}else this.internalIsPending=!1};
fp.prototype.setHeader=function(R,y){this.customHeaders.set(R,y)};
_.RR.Object.defineProperties(fp.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var fwc=function(){for(var R=_.V(_.qy.apply(0,arguments)),y=R.next();!y.done;y=R.next())if(y=y.value,y.available()){this.timeProvider=y;return}this.timeProvider=new Bgg};
_.J=fwc.prototype;_.J.available=function(){return this.timeProvider.available()};
_.J.now=function(){return this.timeProvider.now()};
_.J.setTimeout=function(R,y){return this.timeProvider.setTimeout(R,y)};
_.J.clearTimeout=function(R){this.timeProvider.clearTimeout(R)};
_.J.interval=function(R,y){var u=this.intervalObservable(R).subscribe(y);return function(){return void u.unsubscribe()}};
_.J.intervalObservable=function(R){return this.timeProvider.intervalObservable(R)};
_.RR.Object.defineProperties(fwc.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var Bgg=function(){this.timeline=Symbol()};
_.J=Bgg.prototype;_.J.available=function(){return!1};
_.J.now=function(){return new Dt(0,this.timeline)};
_.J.setTimeout=function(){return 0};
_.J.clearTimeout=function(){};
_.J.interval=function(){return function(){}};
_.J.intervalObservable=function(){return nL};var ez=function(R,y){this.intrinsicFunctionNamespace=R;this.performanceMonitor=y};
_.J=ez.prototype;_.J.setTimeout=function(R,y){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,R),y)};
_.J.clearTimeout=function(R){this.intrinsicFunctionNamespace.clearTimeout(R)};
_.J.interval=function(R,y){var u=this.intervalObservable(R).subscribe(y);return function(){return void u.unsubscribe()}};
_.J.intervalObservable=function(R){var y=this;return new K$(function(u){var v=0,Q=y.intrinsicFunctionNamespace.setInterval(function(){u.next(v++)},R);
return function(){y.intrinsicFunctionNamespace.clearInterval(Q)}})};
_.J.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var ecc=function(R,y){ez.call(this,R,y);this.timeline=xGc};
_.O(ecc,ez);ecc.prototype.now=function(){return new Dt(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
ecc.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&ez.prototype.available.call(this)};var lwK=function(R,y){ez.call(this,R,y);this.timeline=BhU};
_.O(lwK,ez);lwK.prototype.now=function(){return new Dt(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
lwK.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&ez.prototype.available.call(this)};var ZYb=function(R){this.context=R;if(OYc===void 0)a:{var y,u,v=(y=R.global)==null?void 0:(u=y.document)==null?void 0:u.createElement("meta");if(v)try{v.httpEquiv="origin-trial";v.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";R.global.document.head.append(v);OYc=v;break a}catch(Q){}OYc=void 0}},
OYc;
ZYb.prototype.isSupported=function(R){return IiT(this.context)!==void 0&&!(R==null||!R.endOfSession)&&!lj(this.context)&&!(R==null?0:R.attributionEnabled)&&!(R==null?0:R.customHeaders)&&!(R==null?0:R.customBody)};
ZYb.prototype.makeBeacon=function(R,y){if(!this.isSupported(y))throw new x$;return new OO(this.context,R,y)};
var OO=function(R,y,u){this.context=R;this.properties=u;this.JSC$9196_urlWithoutToken=y;var v;this.beaconMethod=(v=u==null?void 0:u.beaconMethod)!=null?v:"GET";R=IiT(this.context);if(R===void 0)throw Error();this.fetchLater=R;HYT(this,n88(this))},HYT=function(R,y){R.beaconResult&&R.beaconResult.activated||(R.beaconAbort=new AbortController,R.beaconResult=R.fetchLater(y,{method:R.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:R.beaconAbort.signal,activateAfter:96E4}))},n88=function(R){R=R.JSC$9196_urlWithoutToken;
return(R.slice(-1)[0]==="&"?R:R+"&")+"flapi=1"};
OO.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
OO.prototype.sendNow=function(){};
OO.prototype.setHeader=function(){};
_.RR.Object.defineProperties(OO.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9196_urlWithoutToken},
set:function(R){this.JSC$9196_urlWithoutToken=R;R=n88(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);HYT(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 G55=function(R){this.context=R};
G55.prototype.isSupported=function(){return!lj(this.context)&&!!this.context.global.fetch};
G55.prototype.ping=function(){var R=this;return $L.apply(null,_.P$(_.qy.apply(0,arguments).map(function(y){return Fo(R.context.global.fetch(y,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(rY(function(u){return u.status===200}))}))).pipe(ohT(function(y){return y}),Bcc())};
G55.prototype.pingWithHeadersAndBody=function(R,y,u){for(var v=_.qy.apply(3,arguments),Q=this,M=new Headers,K=_.V(y.entries()),h=K.next();!h.done;h=K.next()){var b=_.V(h.value);h=b.next().value;b=b.next().value;M.set(h,b)}var N,T=(N=R.keepAlive)!=null?N:!1;$L.apply(null,_.P$(v.map(function(x){return Fo(Q.context.global.fetch(x,Object.assign({},{method:String(R.beaconMethod),cache:"no-cache"},T?{keepalive:!0}:{},{mode:"no-cors",headers:M,body:u}))).pipe(rY(function(B){return B.status===200}))}))).pipe(ohT(function(x){return x}),
Bcc())};var rLi,I$P;_.ZM=function(){};
_.kS=function(R){return R};
rLi=function(R){var y=y||0;return function(){return R.apply(this,Array.prototype.slice.call(arguments,0,y))}};
_.H7=function(R){var y=!1,u;return function(){y||(u=R(),y=!0);return u}};
_.np=function(R,y){var u=0;return function(v){_.uO.clearTimeout(u);var Q=arguments;u=_.uO.setTimeout(function(){R.apply(void 0,Q)},y)}};
I$P=function(R,y){var u=0,v=!1,Q=[],M=function(){u=0;v&&(v=!1,K())},K=function(){u=_.uO.setTimeout(M,y);
var h=Q;Q=[];R.apply(void 0,h)};
return function(h){Q=arguments;u?v=!0:K()}};var WVg=function(){return oL&&f8?f8.mobile:!PTT()&&(ev("iPod")||ev("iPhone")||ev("Android")||ev("IEMobile"))},PTT=function(){return oL&&f8?!f8.mobile&&(ev("iPad")||ev("Android")||ev("Silk")):ev("iPad")||ev("Android")&&!ev("Mobile")||ev("Silk")};var dGY;_.Ps={};dGY="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.Ps.add=function(R,y,u){if(R!==null&&y in R)throw Error("la`"+y);R[y]=u};
_.Ps.clear=function(R){for(var y in R)delete R[y]};
_.Ps.clone=function(R){var y={},u;for(u in R)y[u]=R[u];return y};
_.Ps.contains=function(R,y){return HLP(R,y)};
_.Ps.containsKey=function(R,y){return R!==null&&y in R};
_.Ps.containsValue=HLP;_.Ps.create=rSU;_.Ps.createImmutableView=function(R){var y=R;Object.isFrozen&&!Object.isFrozen(R)&&(y=Object.create(R),Object.freeze(y));return y};
_.Ps.createSet=PvT;_.Ps.equals=function(R,y){for(var u in R)if(!(u in y)||R[u]!==y[u])return!1;for(var v in y)if(!(v in R))return!1;return!0};
_.Ps.every=function(R,y,u){for(var v in R)if(!y.call(u,R[v],v,R))return!1;return!0};
_.Ps.extend=function(R,y){for(var u,v,Q=1;Q<arguments.length;Q++){v=arguments[Q];for(u in v)R[u]=v[u];for(var M=0;M<dGY.length;M++)u=dGY[M],Object.prototype.hasOwnProperty.call(v,u)&&(R[u]=v[u])}};
_.Ps.filter=function(R,y,u){var v={},Q;for(Q in R)y.call(u,R[Q],Q,R)&&(v[Q]=R[Q]);return v};
_.Ps.findKey=nhv;_.Ps.findValue=function(R,y,u){return(y=nhv(R,y,u))&&R[y]};
_.Ps.forEach=function(R,y,u){for(var v in R)y.call(u,R[v],v,R)};
_.Ps.get=function(R,y,u){return R!==null&&y in R?R[y]:u};
_.Ps.getAllPropertyNames=function(R,y,u){if(!R)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return ZLE(R);for(var v={};R&&(R!==Object.prototype||y)&&(R!==Function.prototype||u);){for(var Q=Object.getOwnPropertyNames(R),M=0;M<Q.length;M++)v[Q[M]]=!0;R=Object.getPrototypeOf(R)}return ZLE(v)};
_.Ps.getAnyKey=function(R){for(var y in R)return y};
_.Ps.getAnyValue=function(R){for(var y in R)return R[y]};
_.Ps.getCount=function(R){var y=0,u;for(u in R)y++;return y};
_.Ps.getKeys=ZLE;_.Ps.getSuperClass=function(R){return(R=Object.getPrototypeOf(R.prototype))&&R.constructor};
_.Ps.getValueByKeys=function(R,y){var u=_.p8(y),v=u?y:arguments;for(u=u?0:1;u<v.length;u++){if(R==null)return;R=R[v[u]]}return R};
_.Ps.getValues=function(R){var y=[],u=0,v;for(v in R)y[u++]=R[v];return y};
_.Ps.isEmpty=function(R){for(var y in R)return!1;return!0};
_.Ps.isImmutableView=function(R){return!!Object.isFrozen&&Object.isFrozen(R)};
_.Ps.map=function(R,y,u){var v={},Q;for(Q in R)v[Q]=y.call(u,R[Q],Q,R);return v};
_.Ps.remove=function(R,y){var u;(u=y in R)&&delete R[y];return u};
_.Ps.set=function(R,y,u){R[y]=u};
_.Ps.setIfUndefined=function(R,y,u){return y in R?R[y]:R[y]=u};
_.Ps.setWithReturnValueIfNotSet=function(R,y,u){if(y in R)return R[y];u=u();return R[y]=u};
_.Ps.some=function(R,y,u){for(var v in R)if(y.call(u,R[v],v,R))return!0;return!1};
_.Ps.transpose=function(R){var y={},u;for(u in R)y[R[u]]=u;return y};
_.Ps.unsafeClone=GRL;var Gq=function(R,y,u,v,Q){this.allowedElements=R;this.elementPolicies=y;this.allowedGlobalAttributes=u;this.globalAttributePolicies=v;this.globallyAllowedAttributePrefixes=Q},UGb=function(R,y,u){u=R.elementPolicies.get(u);
return(u==null?0:u.has(y))?u.get(y):R.allowedGlobalAttributes.has(y)?{policyAction:1}:(u=R.globalAttributePolicies.get(y))?u:R.globallyAllowedAttributePrefixes&&[].concat(_.P$(R.globallyAllowedAttributePrefixes)).some(function(v){return y.indexOf(v)===0})?{policyAction:1}:{policyAction:0}};var k5K="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(" "),
E85=[["A",new Map([["href",{policyAction:7}]])],["AREA",new Map([["href",{policyAction:7}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],$Gw="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist coords crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden inert ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type usemap valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
qiT=[["dir",{policyAction:3,conditions:Bg(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:Bg(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:Bg(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:Bg(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],XK8=new Gq(new Set(k5K),new Map(E85),new Set($Gw),new Map(qiT)),mGK=new Gq(new Set(k5K.concat(["BUTTON",
"INPUT"])),new Map(E85),new Set(Bg(function(){return $Gw.concat(["class","id","name"])})),new Map(Bg(function(){return qiT.concat([["style",
{policyAction:1}]])})));var ALb,DGV,tg5;ALb=function(R,y,u,v,Q){this.JSC$9256_sanitizerTable=R;this.styleElementSanitizer=y;this.styleAttributeSanitizer=u;this.JSC$9256_resourceUrlPolicy=v;this.JSC$9256_navigationUrlPolicy=Q;this.changes=[]};
_.pKg=function(R,y){var u=document.implementation.createHTMLDocument("");R=DGV(R,y,u);u=u.body;u.appendChild(R);u=(new XMLSerializer).serializeToString(u);u=u.slice(u.indexOf(">")+1,u.lastIndexOf("</"));return pK(u)};
DGV=function(R,y,u){y=d1S(y,u);y=document.createTreeWalker(y,5,function(h){if(h.nodeType===3)h=1;else if(kR4(h))if(h=U1U(h),h===null)h=2;else{var b=R.JSC$9256_sanitizerTable;h=h!=="FORM"&&(b.allowedElements.has(h)||b.elementPolicies.has(h))?1:2}else h=2;return h});
for(var v=y.nextNode(),Q=u.createDocumentFragment(),M=Q;v!==null;){var K=void 0;if(v.nodeType===3)R.styleElementSanitizer&&M.nodeName==="STYLE"?(v=R.styleElementSanitizer(v.data),K=R.createTextNode(v)):K=R.createTextNode(v.data);else if(kR4(v))K=tg5(R,v,u);else throw Error("Z");M.appendChild(K);if(v=y.firstChild())M=K;else for(;!(v=y.nextSibling())&&(v=y.parentNode());)M=M.parentNode}return Q};
ALb.prototype.createTextNode=function(R){return document.createTextNode(R)};
tg5=function(R,y,u){var v,Q=U1U(y);u=u.createElement(Q);y=y.attributes;for(var M=_.V(y),K=M.next();!K.done;K=M.next()){var h=K.value;K=h.name;h=h.value;var b=UGb(R.JSC$9256_sanitizerTable,K,Q);a:{if(v=b.conditions){v=_.V(v);for(var N=v.next();!N.done;N=v.next()){var T=_.V(N.value);N=T.next().value;T=T.next().value;var x=void 0;if((N=(x=y.getNamedItem(N))==null?void 0:x.value)&&!T.has(N)){v=!1;break a}}}v=!0}if(v)switch(b.policyAction){case 1:jQ(u,K,h);break;case 2:throw Error();case 3:jQ(u,K,h.toLowerCase());
break;case 4:R.styleAttributeSanitizer?(h=R.styleAttributeSanitizer(h),jQ(u,K,h)):jQ(u,K,h);break;case 5:R.JSC$9256_resourceUrlPolicy?(b={type:2,attributeName:K,elementName:Q},h=WvE(h),(h=R.JSC$9256_resourceUrlPolicy(h,b))&&jQ(u,K,h.toString())):jQ(u,K,h);break;case 6:if(R.JSC$9256_resourceUrlPolicy){b={type:2,attributeName:K,elementName:Q};v=[];h=_.V(h.split(","));for(N=h.next();!N.done;N=h.next())T=_.V(N.value.trim().split(/\s+/,2)),N=T.next().value,T=T.next().value,v.push({url:N,descriptor:T});
h={parts:[]};v=_.V(v);for(N=v.next();!N.done;N=v.next())N=N.value,T=WvE(N.url),(T=R.JSC$9256_resourceUrlPolicy(T,b))&&h.parts.push({url:T.toString(),descriptor:N.descriptor});jQ(u,K,EhT(h))}else jQ(u,K,h);break;case 7:b=h;if(R.JSC$9256_navigationUrlPolicy){b={type:2,attributeName:K,elementName:Q};h=WvE(h);h=R.JSC$9256_navigationUrlPolicy(h,b);if(h===null)break;b=h.toString()}h=b;b=_.RUz(h);b=b!==void 0&&czT.indexOf(b.toLowerCase())!==-1?h:"about:invalid#zClosurez";jQ(u,K,b)}}return u};
_.cLG=Bg(function(){return new ALb(XK8)});
_.awV=Bg(function(){return new ALb(mGK)});var Si5=function(){this.calledBuild=!1;this.JSC$9268_sanitizerTable=XK8},Yic=function(){Si5.apply(this,arguments)};
_.O(Yic,Si5);Yic.prototype.build=function(){if(this.calledBuild)throw Error("na");this.calledBuild=!0;return new ALb(this.JSC$9268_sanitizerTable,void 0,void 0,this.JSC$9268_resourceUrlPolicy,this.JSC$9268_navigationUrlPolicy)};var LV5=/[^#]*/;var zcc=function(R){var y=sbg;if(y)for(var u in y)Object.prototype.hasOwnProperty.call(y,u)&&R(y[u],u,y)},g8g=function(){var R=[];
zcc(function(y){R.push(y)});
return R},sbg={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"},CTi=_.H7(function(){return g8g()}),yIg=function(){var R=R7g("IFRAME"),
y={};
_.cu(CTi(),function(u){R.sandbox&&R.sandbox.supports&&R.sandbox.supports(u)&&(y[u]=!0)});
return y},R7g=function(R,y){y=y===void 0?document:y;
return y.createElement(String(R).toLowerCase())};var rx;_.Ae=function(R,y,u){return Math.min(Math.max(R,y),u)};
rx=function(R,y,u){return R+u*(y-R)};_.dc=function(R,y){this.x=R!==void 0?R:0;this.y=y!==void 0?y:0};
_.J=_.dc.prototype;_.J.clone=function(){return new _.dc(this.x,this.y)};
_.J.equals=function(R){return R instanceof _.dc&&(this==R?!0:this&&R?this.x==R.x&&this.y==R.y:!1)};
_.J.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.J.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.J.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.J.translate=function(R,y){R instanceof _.dc?(this.x+=R.x,this.y+=R.y):(this.x+=Number(R),typeof y==="number"&&(this.y+=y));return this};
_.J.scale=function(R,y){this.x*=R;this.y*=typeof y==="number"?y:R;return this};_.or=function(R,y){this.width=R;this.height=y};
_.J=_.or.prototype;_.J.clone=function(){return new _.or(this.width,this.height)};
_.J.area=function(){return this.width*this.height};
_.J.aspectRatio=function(){return this.width/this.height};
_.J.isEmpty=function(){return!this.area()};
_.J.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.J.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.J.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.J.scale=function(R,y){this.width*=R;this.height*=typeof y==="number"?y:R;return this};var $T=function(R,y){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=R===wmE&&y||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=up8};
$T.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var vMV=function(R){return R instanceof $T&&R.constructor===$T&&R.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===up8?R.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},up8={},wmE={};
new $T(wmE,"");var fL,fF,W7,QPV,JI5,MKc,U6,iZT,Io5,KgT,EO,h78,xVL,oM5,TaT,BaG,foL,e75,loc,kNG,OZc,HZ5,nMi,ZZg,P7;fL=function(R){return R?new P7(_.kh(R)):FdW||(FdW=new P7)};
_.bD=function(R,y){return typeof y==="string"?R.getElementById(y):y};
fF=function(R,y){return(y||document).getElementsByTagName(String(R))};
_.jPb=function(R){return QPV("yt-formatted-string","paper-input-input",R)};
W7=function(R,y,u,v){R=v||R;return(y=y&&y!="*"?String(y).toUpperCase():"")||u?R.querySelectorAll(y+(u?"."+u:"")):R.getElementsByTagName("*")};
QPV=function(R,y,u){var v=document,Q=R&&R!="*"?String(R).toUpperCase():"";return Q||y?(u||v).querySelector(Q+(y?"."+y:"")):W7(v,R,y,u)[0]||null};
JI5=function(R,y){_.Ps.forEach(y,function(u,v){v=="style"?R.style.cssText=u:v=="class"?R.className=u:v=="for"?R.htmlFor=u:MKc.hasOwnProperty(v)?R.setAttribute(MKc[v],u):_.jv(v,"aria-")||_.jv(v,"data-")?R.setAttribute(v,u):R[v]=u})};
MKc={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"};_.xh=function(R){R=(R||window).document;R=R.compatMode=="CSS1Compat"?R.documentElement:R.body;return new _.or(R.clientWidth,R.clientHeight)};
_.VKg=function(R){var y=_.dx(R);R=R.defaultView;return new _.dc(R.pageXOffset||y.scrollLeft,R.pageYOffset||y.scrollTop)};
_.dx=function(R){return R.scrollingElement?R.scrollingElement:_.T$||R.compatMode!="CSS1Compat"?R.body||R.documentElement:R.documentElement};
U6=function(R){return R?R.defaultView:window};
_.UO=function(R,y,u){return iZT(document,arguments)};
iZT=function(R,y){var u=y[1],v=KgT(R,String(y[0]));u&&(typeof u==="string"?v.className=u:Array.isArray(u)?v.className=u.join(" "):JI5(v,u));y.length>2&&Io5(R,v,y,2);return v};
Io5=function(R,y,u,v){function Q(h){h&&y.appendChild(typeof h==="string"?R.createTextNode(h):h)}
for(;v<u.length;v++){var M=u[v];if(!_.p8(M)||_.Sv(M)&&M.nodeType>0)Q(M);else{a:{if(M&&typeof M.length=="number"){if(_.Sv(M)){var K=typeof M.item=="function"||typeof M.item=="string";break a}if(typeof M==="function"){K=typeof M.item=="function";break a}}K=!1}_.cu(K?_.Az(M):M,Q)}}};
_.o_=function(R){return KgT(document,R)};
KgT=function(R,y){y=String(y);R.contentType==="application/xhtml+xml"&&(y=y.toLowerCase());return R.createElement(y)};
_.k$=function(){return document.createTextNode("\n")};
EO=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};
h78=function(R,y){Io5(_.kh(R),R,arguments,1)};
_.$$=function(R){for(var y;y=R.firstChild;)R.removeChild(y)};
_.qW=function(R,y){y.parentNode&&y.parentNode.insertBefore(R,y)};
_.Xi=function(R,y){y.parentNode&&y.parentNode.insertBefore(R,y.nextSibling)};
_.BY=function(R){return R&&R.parentNode?R.parentNode.removeChild(R):null};
_.bZi=function(R,y){var u=y.parentNode;u&&u.replaceChild(R,y)};
_.Fg5=function(R){var y,u=R.parentNode;if(u&&u.nodeType!=11)if(R.removeNode)R.removeNode(!1);else{for(;y=R.firstChild;)u.insertBefore(y,R);_.BY(R)}};
_.mn=function(R){return R.children!=void 0?R.children:Array.prototype.filter.call(R.childNodes,function(y){return y.nodeType==1})};
_.Na5=function(R){return R.nextElementSibling!==void 0?R.nextElementSibling:_.wHb(R.nextSibling,!0)};
_.wHb=function(R,y){for(;R&&R.nodeType!=1;)R=y?R.nextSibling:R.previousSibling;return R};
_.L9=function(R){return _.Sv(R)&&R.nodeType==1};
_.ma=function(R,y){if(!R||!y)return!1;if(R.contains&&y.nodeType==1)return R==y||R.contains(y);if(typeof R.compareDocumentPosition!="undefined")return R==y||!!(R.compareDocumentPosition(y)&16);for(;y&&R!=y;)y=y.parentNode;return y==R};
xVL=function(R,y){if(R==y)return 0;if(R.compareDocumentPosition)return R.compareDocumentPosition(y)&2?1:-1;if("sourceIndex"in R||R.parentNode&&"sourceIndex"in R.parentNode){var u=R.nodeType==1,v=y.nodeType==1;if(u&&v)return R.sourceIndex-y.sourceIndex;var Q=R.parentNode,M=y.parentNode;return Q==M?TaT(R,y):!u&&_.ma(Q,y)?-1*oM5(R,y):!v&&_.ma(M,R)?oM5(y,R):(u?R.sourceIndex:Q.sourceIndex)-(v?y.sourceIndex:M.sourceIndex)}v=_.kh(R);u=v.createRange();u.selectNode(R);u.collapse(!0);R=v.createRange();R.selectNode(y);
R.collapse(!0);return u.compareBoundaryPoints(_.uO.Range.START_TO_END,R)};
oM5=function(R,y){var u=R.parentNode;if(u==y)return-1;for(;y.parentNode!=u;)y=y.parentNode;return TaT(y,R)};
TaT=function(R,y){for(;y=y.previousSibling;)if(y==R)return-1;return 1};
BaG=function(R){var y,u=arguments.length;if(!u)return null;if(u==1)return arguments[0];var v=[],Q=Infinity;for(y=0;y<u;y++){for(var M=[],K=arguments[y];K;)M.unshift(K),K=K.parentNode;v.push(M);Q=Math.min(Q,M.length)}M=null;for(y=0;y<Q;y++){K=v[0][y];for(var h=1;h<u;h++)if(K!=v[h][y])return M;M=K}return M};
_.kh=function(R){return R.nodeType==9?R:R.ownerDocument||R.document};
foL=function(R){return R.contentDocument||R.contentWindow.document};
_.Ak=function(R,y){if("textContent"in R)R.textContent=y;else if(R.nodeType==3)R.data=String(y);else if(R.firstChild&&R.firstChild.nodeType==3){for(;R.lastChild!=R.firstChild;)R.removeChild(R.lastChild);R.firstChild.data=String(y)}else _.$$(R),R.appendChild(_.kh(R).createTextNode(String(y)))};
e75={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};loc={IMG:" ",BR:"\n"};kNG=function(R){var y;R.tagName=="A"&&R.hasAttribute("href")||R.tagName=="INPUT"||R.tagName=="TEXTAREA"||R.tagName=="SELECT"||R.tagName=="BUTTON"?y=!R.disabled&&(!R.hasAttribute("tabindex")||OZc(R)):y=R.hasAttribute("tabindex")&&OZc(R);return y};
OZc=function(R){R=R.tabIndex;return typeof R==="number"&&R>=0&&R<32768};
HZ5=function(R){var y=[];ZZg(R,y,!0);R=y.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};
nMi=function(R){var y=[];ZZg(R,y,!1);return y.join("")};
ZZg=function(R,y,u){if(!(R.nodeName in e75))if(R.nodeType==3)u?y.push(String(R.nodeValue).replace(/(\r\n|\r|\n)/g,"")):y.push(R.nodeValue);else if(R.nodeName in loc)y.push(loc[R.nodeName]);else for(R=R.firstChild;R;)ZZg(R,y,u),R=R.nextSibling};
_.Gag=function(R,y,u){if(!y&&!u)return null;var v=y?String(y).toUpperCase():null;return _.$h(R,function(Q){return(!v||Q.nodeName==v)&&(!u||typeof Q.className==="string"&&_.XU(Q.className.split(/\s+/),u))},!0)};
_.$h=function(R,y,u){R&&!u&&(R=R.parentNode);for(u=0;R;){if(y(R))return R;R=R.parentNode;u++}return null};
P7=function(R){this.JSC$9293_document_=R||_.uO.document||document};
_.J=P7.prototype;_.J.getElement=function(R){return _.bD(this.JSC$9293_document_,R)};
_.J.$=P7.prototype.getElement;_.J.getElementsByTagName=function(R,y){return(y||this.JSC$9293_document_).getElementsByTagName(String(R))};
_.J.getElementsByTagNameAndClass=function(R,y,u){return W7(this.JSC$9293_document_,R,y,u)};
_.J.$$=P7.prototype.getElementsByTagNameAndClass;_.J.setProperties=JI5;_.J.JSC$9295_createDom=function(R,y,u){return iZT(this.JSC$9293_document_,arguments)};
_.J.createElement=function(R){return KgT(this.JSC$9293_document_,R)};
_.J.createTextNode=function(R){return this.JSC$9293_document_.createTextNode(String(R))};
_.J.getWindow=function(){return this.JSC$9293_document_.defaultView};
var Bs=function(R){return _.VKg(R.JSC$9293_document_)};
_.J=P7.prototype;_.J.appendChild=function(R,y){R.appendChild(y)};
_.J.append=h78;_.J.canHaveChildren=EO;_.J.removeNode=_.BY;_.J.getChildren=_.mn;_.J.contains=_.ma;_.J=iv.prototype;_.J.getWidth=function(){return this.right-this.left};
_.J.getHeight=function(){return this.bottom-this.top};
_.J.clone=function(){return new iv(this.top,this.right,this.bottom,this.left)};
_.J.contains=function(R){return this&&R?R instanceof iv?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};
_.J.expand=function(R,y,u,v){_.Sv(R)?(this.top-=R.top,this.right+=R.right,this.bottom+=R.bottom,this.left-=R.left):(this.top-=R,this.right+=Number(y),this.bottom+=Number(u),this.left-=Number(v));return this};
_.J.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};
_.J.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};
_.J.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};
_.J.translate=function(R,y){R instanceof _.dc?(this.left+=R.x,this.right+=R.x,this.top+=R.y,this.bottom+=R.y):(this.left+=R,this.right+=R,typeof y==="number"&&(this.top+=y,this.bottom+=y));return this};
_.J.scale=function(R,y){y=typeof y==="number"?y:R;this.left*=R;this.right*=R;this.top*=y;this.bottom*=y;return this};var DM=function(R,y,u,v){this.left=R;this.top=y;this.width=u;this.height=v};
_.J=DM.prototype;_.J.clone=function(){return new DM(this.left,this.top,this.width,this.height)};
_.J.boundingRect=function(R){var y=Math.max(this.left+this.width,R.left+R.width),u=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=y-this.left;this.height=u-this.top};
_.J.contains=function(R){return R instanceof _.dc?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};
_.J.distance=function(R){var y=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(y*y+R*R)};
_.J.getSize=function(){return new _.or(this.width,this.height)};
_.J.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};
_.J.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};
_.J.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};
_.J.translate=function(R,y){R instanceof _.dc?(this.left+=R.x,this.top+=R.y):(this.left+=R,typeof y==="number"&&(this.top+=y));return this};
_.J.scale=function(R,y){y=typeof y==="number"?y:R;this.left*=R;this.width*=R;this.top*=y;this.height*=y;return this};var PJc,c7,Vfz,tk,kaL,UVb,EMc,Zp8,$Vc,XHi;_.pp=function(R,y,u){if(typeof y==="string")(y=_.rIw(R,y))&&(R.style[y]=u);else for(var v in y){u=R;var Q=y[v],M=_.rIw(u,v);M&&(u.style[M]=Q)}};
PJc={};_.rIw=function(R,y){var u=PJc[y];if(!u){var v=_.fv(y);u=v;R.style[v]===void 0&&(v=(_.T$?"Webkit":_.NO?"Moz":null)+RcL(v),R.style[v]!==void 0&&(u=v));PJc[y]=u}return u};
_.ZT=function(R,y){var u=_.kh(R);return u.defaultView&&u.defaultView.getComputedStyle&&(R=u.defaultView.getComputedStyle(R,null))?R[y]||R.getPropertyValue(y)||"":""};
_.Xv=function(R,y){return _.ZT(R,y)||(R.currentStyle?R.currentStyle[y]:null)||R.style&&R.style[y]};
_.Wg8=function(R){return _.Xv(R,"position")};
c7=function(R,y,u){if(y instanceof _.dc){var v=y.x;y=y.y}else v=y,y=u;R.style.left=tk(v,!1);R.style.top=tk(y,!1)};
Vfz=function(R){try{return R.getBoundingClientRect()}catch(y){return{left:0,top:0,right:0,bottom:0}}};
_.E6=function(R){var y=_.kh(R),u=new _.dc(0,0);if(R==(y?_.kh(y):document).documentElement)return u;R=Vfz(R);y=Bs(fL(y));u.x=R.left+y.x;u.y=R.top+y.y;return u};
_.dVV=function(R,y,u){if(y instanceof _.or)u=y.height,y=y.width;else if(u==void 0)throw Error("oa");R.style.width=tk(y,!0);R.style.height=tk(u,!0)};
tk=function(R,y){typeof R=="number"&&(R=(y?Math.round(R):R)+"px");return R};
kaL=function(R){return UVb(R)};
UVb=function(R){var y=EMc;if(_.Xv(R,"display")!="none")return y(R);var u=R.style,v=u.display,Q=u.visibility,M=u.position;u.visibility="hidden";u.position="absolute";u.display="inline";R=y(R);u.display=v;u.position=M;u.visibility=Q;return R};
EMc=function(R){var y=R.offsetWidth,u=R.offsetHeight,v=_.T$&&!y&&!u;return(y===void 0||v)&&R.getBoundingClientRect?(R=Vfz(R),new _.or(R.right-R.left,R.bottom-R.top)):new _.or(y,u)};
Zp8=function(R){var y=_.E6(R);R=UVb(R);return new DM(y.x,y.y,R.width,R.height)};
$Vc=function(R,y){R=R.style;"opacity"in R?R.opacity=y:"MozOpacity"in R?R.MozOpacity=y:"filter"in R&&(R.filter=y===""?"":"alpha(opacity="+Number(y)*100+")")};
_.a_=function(R,y){R.style.display=y?"":"none"};
_.qmc=function(R){return"rtl"==_.Xv(R,"direction")};
XHi=function(R){var y=_.ZT(R,"marginLeft"),u=_.ZT(R,"marginRight"),v=_.ZT(R,"marginTop");R=_.ZT(R,"marginBottom");return new iv(parseFloat(v),parseFloat(u),parseFloat(R),parseFloat(y))};
_.mVV=function(R){var y=_.ZT(R,"borderLeftWidth"),u=_.ZT(R,"borderRightWidth"),v=_.ZT(R,"borderTopWidth");R=_.ZT(R,"borderBottomWidth");return new iv(parseFloat(v),parseFloat(u),parseFloat(R),parseFloat(y))};var af=function(R){this.context=R};
af.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:!lj(this.context)};
af.prototype.ping=function(){var R=this;return lB(_.qy.apply(0,arguments).map(function(y){try{var u=R.context.global,v=!1;v=v===void 0?!1:v;u.google_image_requests||(u.google_image_requests=[]);var Q=R7g("IMG",u.document);v&&(Q.attributionSrc="");Q.src=y;u.google_image_requests.push(Q);return!0}catch(M){return!1}}).every(function(y){return y}))};
af.prototype.pingWithHeadersAndBody=function(R,y,u){this.ping.apply(this,_.P$(_.qy.apply(3,arguments)))};var AIc=function(R){this.context=R};
AIc.prototype.isSupported=function(R){return DVG&&!lj(this.context)&&q6O(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)};
AIc.prototype.makeBeacon=function(R,y){if(!this.isSupported(y))throw new x$;return new Sz(this.context,R)};
var DVG=!1,Sz=function(R,y){this.context=R;this.JSC$9314_urlWithoutToken=y;R=q6O(this.context);if(R===void 0)throw Error();this.wrappedBeacon=new R(pHg(this),{})},pHg=function(R){R=R.JSC$9314_urlWithoutToken;
return(R.slice(-1)[0]==="&"?R:R+"&")+"pbapi=1"};
Sz.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
Sz.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
Sz.prototype.setHeader=function(){};
_.RR.Object.defineProperties(Sz.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9314_urlWithoutToken},
set:function(R){this.JSC$9314_urlWithoutToken=R;this.wrappedBeacon.setURL(pHg(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(R){if(R!=="GET")throw new x$;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var tKc=function(R){this.context=R};
tKc.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 y;return!lj(this.context)&&((y=this.context.global.navigator)==null?void 0:y.sendBeacon)!==void 0};
tKc.prototype.ping=function(){var R=this;return lB(_.qy.apply(0,arguments).map(function(y){var u;return(u=R.context.global.navigator)==null?void 0:u.sendBeacon(y)}).every(function(y){return y}))};
tKc.prototype.pingWithHeadersAndBody=function(R,y,u){this.ping.apply(this,_.P$(_.qy.apply(3,arguments)))};var N1=function(R){this.value=R},LL=function(R,y){return lB(R.value).pipe(bv(y))},zR=new N1(!1),BB8=new N1(!0);var q1=function(R){this.value=R;this.releasedSubject=new KL};
q1.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.RR.Object.defineProperties(q1.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9327_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var zSS=["FRAME","IMG","IFRAME"],cSS=/^[01](px)?$/,srS=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},LvT=function(){var R=new srS;
R.crossDomainLoadedDefault=!0;R.pendingImagesBlockLoad=!0;return R};var cIc=function(R,y){var u=Q_c(R);if(u)if(u.onCreativeLoad)u.onCreativeLoad(y);else{var v=y?[y]:[],Q=function(M){for(var K=0;K<v.length;++K)try{v[K](1,M)}catch(h){}v={push:function(h){h(1,M)}}};
u.onCreativeLoad=function(M){v.push(M)};
u.setAttribute("data-creative-load-listener","");u.addEventListener("creativeLoad",function(M){Q(M.detail)});
_.uO.addEventListener("message",function(M){v7v(u,Q,M)})}};var Y$=function(R,y){var u=this;this.global=R;this.parentContext=y;this.JSC$9338_onVisibilityChange=this.document?$L(lB(!0),kL(this.document,"visibilitychange")).pipe(p$(this.parentContext.performanceMonitor,748),rY(function(){return u.getVisibilityState()}),YL()):lB("visible");
this.document?kL(this.document,"DOMContentLoaded").pipe(p$(this.parentContext.performanceMonitor,739),SL(1)):lB(psE("DOMContentLoaded"))},xsU=function(R){return R.document!==null&&R.document.visibilityState!==void 0};
Y$.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
Y$.prototype.querySelector=function(R){return this.document?this.document.querySelector(R):null};
Y$.prototype.querySelectorAll=function(R){return this.document?_.Az(this.document.querySelectorAll(R)):[]};
Y$.prototype.elementFromPoint=function(R,y){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;R=this.document.elementFromPoint(R,y);return R===null?null:new q1(R)};
var VSU=function(R,y,u){u=u===void 0?!1:u;if(y.ref===void 0||!R.document)return lB(y).pipe(p$(R.parentContext.performanceMonitor,749));var v=new gY(1),Q=function(){v.next(y)};
u||cIc(y.ref,Q);ghW(y.ref,Q);return v.pipe(p$(R.parentContext.performanceMonitor,749),SL(1))};
_.RR.Object.defineProperties(Y$.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return liW(this.global,"document")?this.global.document||null:null}}});var j_v=_.RE(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),MZc=_.RE(["./reach_worklet.js"]),JDv=_.RE(["./reach_worklet.js"]),aog=_.RE(["./reach_worklet.html"]),Smc=_.RE(["./reach_worklet.js"]),Ymb=_.RE(["./reach_worklet.js"]);_.M1(aog);_.M1(Smc);_.M1(Ymb);var Di={left:0,top:0,width:0,height:0};var Lgi,sP8,z7g,gMT,gB,RFc,yqw,urc,j9L,MsL,jKw,MyT;Lgi=function(R,y,u,v,Q,M,K){var h="";R&&(h+=R+":");u&&(h+="//",y&&(h+=y+"@"),h+=u,v&&(h+=":"+v));Q&&(h+=Q);M&&(h+="?"+M);K&&(h+="#"+K);return h};
sP8=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.sB=function(R){return R.match(sP8)};
_.kl=function(R,y){return R?y?decodeURI(R):decodeURIComponent(R):R};
z7g=function(R){R=_.sB(R)[1]||null;!R&&_.uO.self&&_.uO.self.location&&(R=_.uO.self.location.protocol.slice(0,-1));return R?R.toLowerCase():""};
_.z7=function(R){return _.kl(_.sB(R)[3]||null,!0)};
_.Fq=function(R){return _.kl(_.sB(R)[5]||null,!0)};
_.BSc=function(R){var y=R.indexOf("#");return y<0?null:R.slice(y+1)};
gMT=function(R){R=_.sB(R);return Lgi(R[1],R[2],R[3],R[4])};
_.CJL=function(R){R=_.sB(R);return Lgi(R[1],null,R[3],R[4])};
_.aR=function(R){R=_.sB(R);return Lgi(null,null,null,null,R[5],R[6],R[7])};
_.yL=function(R){var y=R.indexOf("#");return y<0?R:R.slice(0,y)};
gB=function(R,y){R=_.sB(R);y=_.sB(y);return R[3]==y[3]&&R[1]==y[1]&&R[4]==y[4]};
RFc=function(R,y){if(R){R=R.split("&");for(var u=0;u<R.length;u++){var v=R[u].indexOf("="),Q=null;if(v>=0){var M=R[u].substring(0,v);Q=R[u].substring(v+1)}else M=R[u];y(M,Q?Rh(Q):"")}}};
yqw=function(R){var y=R.indexOf("#");y<0&&(y=R.length);var u=R.indexOf("?");if(u<0||u>y){u=y;var v=""}else v=R.substring(u+1,y);return[R.slice(0,u),v,R.slice(y)]};
urc=function(R,y){return y?R?R+"&"+y:y:R};
_.vE5=function(R,y){if(!y)return R;R=yqw(R);R[1]=urc(R[1],y);return R[0]+(R[1]?"?"+R[1]:"")+R[2]};
_.QKT=function(R,y,u){if(Array.isArray(y))for(var v=0;v<y.length;v++)_.QKT(R,String(y[v]),u);else y!=null&&u.push(R+(y===""?"":"="+_.t7(y)))};
_.NC=function(R){var y=[],u;for(u in R)_.QKT(u,R[u],y);return y.join("&")};
_.LG=function(R,y){y=_.NC(y);return _.vE5(R,y)};
_.Lp=function(R,y,u){u=u!=null?"="+_.t7(u):"";return _.vE5(R,y+u)};
j9L=function(R,y,u,v){for(var Q=u.length;(y=R.indexOf(u,y))>=0&&y<v;){var M=R.charCodeAt(y-1);if(M==38||M==63)if(M=R.charCodeAt(y+Q),!M||M==61||M==38||M==35)return y;y+=Q+1}return-1};
MsL=/#|$/;_.AD=function(R,y){var u=R.search(MsL),v=j9L(R,0,y,u);if(v<0)return null;var Q=R.indexOf("&",v);if(Q<0||Q>u)Q=u;v+=y.length+1;return Rh(R.slice(v,Q!==-1?Q:0))};
jKw=/[?&]($|#)/;_.vo=function(R,y){for(var u=R.search(MsL),v=0,Q,M=[];(Q=j9L(R,v,y,u))>=0;)M.push(R.substring(v,Q)),v=Math.min(R.indexOf("&",Q)+1||u,u);M.push(R.slice(v));return M.join("").replace(jKw,"$1")};
_.mW=function(R,y,u){return _.Lp(_.vo(R,y),y,u)};
MyT=function(R){var y=yqw(window.location.href),u=y[1],v=[];u&&u.split("&").forEach(function(Q){var M=Q.indexOf("=");M=M>=0?Q.slice(0,M):Q;R.hasOwnProperty(M)||v.push(Q)});
y[1]=urc(v.join("&"),_.NC(R));return y[0]+(y[1]?"?"+y[1]:"")+y[2]};var n74=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(n74,_.y4);n74.prototype.getVersion=function(){return _.$U(this,2)};var HFW=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(HFW,_.y4);var Bs8=function(R,y){return _.eQ(R,2,y)},ZF8=function(R,y){return _.eQ(R,3,y)};
HFW.prototype.getModel=function(){return _.$U(this,4)};
var epW=function(R,y){return _.eQ(R,4,y)},xeE=function(R,y){return _.eQ(R,5,y)},OFL=function(R,y){return _.eQ(R,9,y)},o7U=function(R,y){return PQ(R,10,y)},Ts8=function(R,y){return _.ix(R,11,y)},f0T=function(R,y){return _.eQ(R,1,y)},l0U=function(R,y){return _.ix(R,7,y)};var wYW="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var s6=function(R,y,u,v){R=R===void 0?window:R;y=y===void 0?null:y;u=u===void 0?new BE5:u;v=v===void 0?VZz():v;wKc.call(this);var Q=this;this.global=R;this.debugChannel=y;this.performanceMonitor=u;this.onPageHide=s1E(function(){return kL(Q.global,"pagehide")}).pipe(p$(this.performanceMonitor,941));
this.onLoad=s1E(function(){return kL(Q.global,"load")}).pipe(p$(this.performanceMonitor,738),SL(1));
this.onResize=s1E(function(){return kL(Q.global,"resize")}).pipe(p$(this.performanceMonitor,741));
this.onMessage=s1E(function(){return kL(Q.global,"message")}).pipe(p$(this.performanceMonitor,740));
this.document=new Y$(this.global,this);this.timeProvider=new fwc(new lwK(this.intrinsicFunctionNamespace,this.performanceMonitor),new ecc(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new o8T(new ZYb(this),new AIc(this),new B7(this,new G55(this)),new B7(this,new tKc(this)),new B7(this,new af(this)))};
_.O(s6,wKc);var lj=function(R){var y=R.global;return!!R.global.HTMLFencedFrameElement&&!!y.fence&&typeof y.fence.reportEvent==="function"};
_.J=s6.prototype;_.J.reportFencedFrameEvent=function(R){lj(this)&&this.global.fence.reportEvent(R)};
_.J.getOnBackgrounded=function(){return this.onPageHide.pipe(p$(this.performanceMonitor,942),bv(this.queue),rY(function(){}))};
_.J.postMessage=function(R,y,u){u=u===void 0?[]:u;this.global.postMessage(R,y,u)};
_.J.getWidth=function(){return OL8(this.global)?this.global.width:0};
_.J.getHeight=function(){return OL8(this.global)?this.global.height:0};
_.J.isMobile=function(){return PTT()||WVg()};
var XV=function(R,y){try{var u=hp4(y,R.global,R.isMobile());return{left:u.left,top:u.top,width:u.getWidth(),height:u.getHeight()}}catch(v){return Di}};
s6.prototype.validate=function(){var R=this.beaconFactory.isSupported()||lj(this);return this.global&&this.timeProvider.available()&&R};
var m1v=function(R){return(R=rDW(R.global))?Fo(R):null};
_.RR.Object.defineProperties(s6.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!OL8(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}}});_.JqK=!_.wV&&!_.K4z();var f6U=function(R){return R};var l6L=function(R){return R.pipe(qP(function(y){var u=y.endOfSessionReason;var v;return((v=y.viewable)==null?void 0:v.extrapolateToNow().value)||u!=void 0}),SL(1),c$())};var $ev=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},qX4=function(R){var y=R.sequenceNumber.toString(10).padStart(2,"0");
y=""+R.startTime+y;R.sequenceNumber<99&&R.sequenceNumber++;return y};var oBE=iB(vs(function(R){return R.endOfSessionReason===void 0}),rY(function(R){return Object.assign({},R,{timestamps:O6(R)})}),qP(function(R){var y=R.viewable;
R=R.timestamps;var u;return(u=y==null?void 0:y.extrapolateUsingTimestampMap(R).value)!=null?u:!1}),rY(function(R){var y=R.beaconFactory;
var u=R.timestampedExposureHistory;var v=R.timeOnScreen;var Q=R.binaryContext;R=R.timestamps;if(y===void 0||u===void 0||v===void 0||Q===void 0)return!1;if(v.extrapolateUsingTimestampMap(R).value.every(function(M){return M>=0}))return!0;
u=u.map(function(M){return M.timestamp+":"+M.value}).join(",");
v=XYU({bin:Q,tos:v},R);y.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+v+("&eh="+u)).sendNow();return!0}),vs(function(R){return!R}),c$());var ADL=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 e2O=function(R){var y=[];return R.pipe(rY(function(u){var v=u.beaconFactory,Q=u.fetchBeaconFactory,M=u.timeOnScreen,K=u.timeOnScreenUrlPrefixes,h=u.payloadMapper,b=u.timeOnScreenPingId,N=u.timeOnScreenReason,T=u.urlSerializer,x=u.viewable,B=u.hasImpressionFired,l=u.inStatefulBeaconExperiment,Z=u.supportsPendingBeacon,P=u.supportsFetchLater,k=u.turtlexReportEventData;if(!u.geometryMeasurable||!B||u.maxTimeOnScreen===void 0||M===void 0||K===void 0||h===void 0||b===void 0||T===void 0||v===void 0)return!1;
if(u.isTurtlex){if(N===void 0)return!1;K=u.reportFencedFrameEvent;if(!K)return!1;K({eventType:"active-view-time-on-screen",eventData:k!=null?k:"",destination:["buyer"]});return!0}if(!(l||P||N))return!1;k=O6(u);var E;x=(E=x==null?void 0:x.extrapolateUsingTimestampMap(k).value)!=null?E:!1;E=T(Object.assign({},u,{pingId:b,viewState:x?4:3,reasonCode:N!=null?N:"u",payloadMapper:h,urlPrefixes:K}),k);if(l){for(;y.length>K.length;)u=void 0,(u=y.shift())==null||u.deactivate();E.forEach(function(z,c){c>=y.length?
y.push(v.makeBeacon(z)):y[c].url=z});
return Z&&Q&&N!==void 0?(E.forEach(function(z){Q.makeBeacon(z).sendNow()}),!0):N!==void 0}if(Z&&Q&&N!==void 0)return E.forEach(function(z){Q.makeBeacon(z).sendNow()}),!0;
if(P&&Q){for(;y.length>K.length;)Z=void 0,(Z=y.shift())==null||Z.deactivate();var D=T(Object.assign({},u,{pingId:b,viewState:x?4:3,reasonCode:N!=null?N:"u",payloadMapper:h,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),k)[0];E.forEach(function(z,c){c>=y.length?y.push(v.makeBeacon(D,{endOfSession:!0})):y[c].url=D});
return N!==void 0?(E.forEach(function(z){Q.makeBeacon(z).sendNow()}),!0):N!==void 0}return N!==void 0?(E.forEach(function(z){v.makeBeacon(z).sendNow()}),!0):!1}),vs(function(u){return!u}),c$())};var OGO=iB(qP(function(R){return R.immediateUrlPrefixes!==void 0&&R.payloadMapper!==void 0&&R.urlSerializer!==void 0&&R.inferredPingId!==void 0&&R.beaconFactory!==void 0}),qP(function(R){return LaO(R)!==null}),SXP(function(R){return R.activeViewUnmeasurableEvent},function(R){return R.emit}),rY(function(R){if(R.isTurtlex){var y=R.reportFencedFrameEvent;
if(y){var u;y({eventType:"active-view-unmeasurable",eventData:(u=R.turtlexReportEventData)!=null?u:"",destination:["buyer"]})}}else{u=void 0;var v=LaO(R);if(v==="x"){var Q,M=(Q=R.geometricMeasurementErrors)!=null?Q:R.contextValidationErrors;M&&(y=M.stack,u=M.message)}R.urlSerializer(Object.assign({},R,{urlPrefixes:R.immediateUrlPrefixes,payloadMapper:R.payloadMapper,pingId:R.inferredPingId,viewState:2,reasonCode:v,errorMessage:u,errorStack:y}),O6(R)).forEach(function(K){R.beaconFactory.makeBeacon(K).sendNow()})}}),
SL(1),c$());var s_S=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var TBO=iB(qP(function(R){return R.payloadMapper!==void 0&&R.immediateUrlPrefixes!==void 0&&R.urlSerializer!==void 0&&R.inferredPingId!==void 0&&R.beaconFactory!==void 0}),rY(function(R){return Object.assign({},R,{timestamps:O6(R)})}),qP(function(R){var y=R.viewable;
var u=R.hasImpressionFired;R=R.timestamps;var v;return!!u&&((v=y==null?void 0:y.extrapolateUsingTimestampMap(R).value)!=null?v:!1)}),SXP(function(R){return R.activeViewViewableEvent},function(R){return R.emit}),rY(function(R){var y=R.beaconFactory,u=R.turtlexReportEventData;
if(R.isTurtlex){var v=R.reportFencedFrameEvent;if(!v)return!1;v({eventType:"active-view-viewable",eventData:u!=null?u:"",destination:["buyer"]});return!0}u=R.urlSerializer(Object.assign({},R,{urlPrefixes:R.immediateUrlPrefixes,payloadMapper:R.payloadMapper,pingId:R.inferredPingId,viewState:4,reasonCode:"v"}),R.timestamps);(v=R.cpmavUrls)&&v.length>0&&R.viewUrlSerializer&&R.viewUrlSerializer(v,R).forEach(function(Q){y.makeBeacon(Q).sendNow()});
(v=R.viewableRelayUrls)&&v.length>0&&R.viewUrlSerializer&&R.viewUrlSerializer(v,R).forEach(function(Q){y.makeBeacon(Q).sendNow()});
u.forEach(function(Q){y.makeBeacon(Q,{attributionEnabled:R.isViewableAttributionEnabled}).sendNow()});
return!0}),vs(function(R){return!R}),c$());var A2E=rY(function(R){return[R.value.topWindowViewportExternalGeometry.width,R.value.topWindowViewportExternalGeometry.height]});var mv=function(R,y){this.callback=R;this.options=y;this.intersectionObserverV2=this.intersectionObserverV1=null},eCv=function(R,y){y?R.intersectionObserverV2||(y=Object.assign({},R.options,{delay:100,
trackVisibility:!0}),R.intersectionObserverV2=new IntersectionObserver(R.callback,y)):R.intersectionObserverV1||(R.intersectionObserverV1=new IntersectionObserver(R.callback,R.options))},Vyg=function(R,y){R=y?R.intersectionObserverV2:R.intersectionObserverV1;
if(!R)throw new Ngi;return R};
mv.prototype.observe=function(R,y){Vyg(this,R).observe(y)};
mv.prototype.unobserve=function(R,y){Vyg(this,R).unobserve(y)};
mv.prototype.disconnect=function(R){Vyg(this,R).disconnect()};
mv.prototype.takeRecords=function(R){return Vyg(this,R).takeRecords()};var KuG={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:Di,topWindowViewportExternalGeometry:Di,measurementRequests:new KL,elementGeometrySourceName:"ns",elementGeometry:Di,intersectionGeometry:Di,viewportLocalAppOffset:{x:0,y:0}};var r2O=pL(iB(rY(function(R){var y;return(y=R.exposureOverride)!=null?y:OyW(R)}),rY(function(R){return isFinite(R)?R:0}))),$8O=pL(iB(rY(function(R){var y;
return(y=R.exposureOverride)!=null?y:OyW(R)}),rY(function(R){return isFinite(R)?R:-1})));var sO=function(R,y){this.a=R;this.b=y;if(R.clock.timeline!==y.clock.timeline)throw Error();};
sO.prototype.equivalentTo=function(R){return R instanceof sO?this.a.equivalentTo(R.a)&&this.b.equivalentTo(R.b):!1};
sO.prototype.extrapolateToTime=function(R){var y=this.a.extrapolateToTime(R).value,u=this.b.extrapolateToTime(R).value;return{timestamp:R,value:[y,u]}};
_.RR.Object.defineProperties(sO.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.a.active||this.b.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.a.clock}},
lastMeasurement:{configurable:!0,enumerable:!0,get:function(){var R=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),y=this.a.lastMeasurement.timestamp.equals(R)?this.a.lastMeasurement.value:this.a.extrapolateToTime(R).value,u=this.b.lastMeasurement.timestamp.equals(R)?this.b.lastMeasurement.value:this.b.extrapolateToTime(R).value;return{timestamp:R,value:[y,u]}}}});var zq=function(R,y){this.input=R;this.mapFunction=y;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
zq.prototype.equivalentTo=function(R){return R instanceof zq?this.input.equivalentTo(R.input)&&this.mapFunction===R.mapFunction:!1};
zq.prototype.extrapolateToTime=function(R){R=this.input.extrapolateToTime(R);return{timestamp:R.timestamp,value:this.mapFunction(R.value)}};
_.RR.Object.defineProperties(zq.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var gx=function(){};
gx.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
gx.prototype.extrapolateUsingTimestampMap=function(R){var y=this.clock.timeline,u,v=(u=R.get(y))!=null?u:this.clock.now();R.set(y,v);return this.extrapolateToTime(v)};
gx.prototype.map=function(R){return new iKg(this,R)};
gx.prototype.joinWith=function(R){return new KKY(this,R)};
var KKY=function(){sO.apply(this,arguments);this.map=gx.prototype.map;this.joinWith=gx.prototype.joinWith;this.extrapolateToNow=gx.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=gx.prototype.extrapolateUsingTimestampMap};
_.O(KKY,sO);var iKg=function(){zq.apply(this,arguments);this.map=gx.prototype.map;this.joinWith=gx.prototype.joinWith;this.extrapolateToNow=gx.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=gx.prototype.extrapolateUsingTimestampMap};
_.O(iKg,zq);var cs=function(R,y){this.lastMeasurement=y;this.extrapolateToNow=gx.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=gx.prototype.extrapolateUsingTimestampMap;this.map=gx.prototype.map;this.joinWith=gx.prototype.joinWith;this.clock=R};
cs.prototype.equivalentTo=function(R){return R.active};
cs.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.RR.Object.defineProperties(cs.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var m88=rY(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 Hyv=iB(qP(function(R){return!isNaN(R)}),Rr(function(R,y){return isNaN(R)?y:Math.min(R,y)},NaN),YL());var P$L=pL(iB(rY(function(R){return R.intersectionGeometry.width*R.intersectionGeometry.height/(R.exposedViewportLocalGeometry.width*R.exposedViewportLocalGeometry.height)}),rY(function(R){return isFinite(R)?Math.min(1,R):0})));var XTS=iB(pL(rY(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 tfU=function(R,y){var u=this;this.timeProvider=R;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=y.pipe(YL()).subscribe(function(v){aKv(u);u.measurementRequestObserver=v})},SpG=function(R,y){aKv(R);
R.lastMeasurementRequest=R.timeProvider.setTimeout(function(){var u;return void((u=R.measurementRequestObserver)==null?void 0:u.next())},y)},aKv=function(R){R.lastMeasurementRequest!==null&&R.timeProvider.clearTimeout(R.lastMeasurementRequest);
R.lastMeasurementRequest=null};
tfU.prototype.dispose=function(){aKv(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var I2K=function(){};var FqT=function(R,y){this.context=R;this.strategies=y};
_.O(FqT,I2K);FqT.prototype.buildGeometrySource=function(R,y){var u=this.strategies.map(function(M){return M.buildGeometrySource(R,y)}),v=gaS(u.map(function(M){return M.geometrySource})),Q=v.capturedErrors.pipe(hFc());
return{geometrySource:v.chain.pipe(bv(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:Q,strategyErrors:v.capturedErrors}].concat(_.P$(u.map(function(M){return M.additionalOutputs}))))}};
var hFc=function(){return Rr(function(R,y){y instanceof GR?R.push(y.measurementStrategyFailureReason):R.push(-1);return R},[])};var NBU=function(R,y){this.context=R;this.poller=y};
_.O(NBU,I2K);NBU.prototype.buildGeometrySource=function(R,y){var u=C$P(y7z(this.context,this.poller),IKS(this.context,y.requestSource));return{geometrySource:zCP(R.measurableCreative.pipe(u),y.inApp),additionalOutputs:{}}};var wuO=function(R,y,u){u=u===void 0?Thz(R,y):u;this.context=R;this.intersectionObserverStrategy=u};
_.O(wuO,I2K);wuO.prototype.buildGeometrySource=function(R,y){var u=this.intersectionObserverStrategy(y.useV2);return{geometrySource:zCP(R.measurableCreative.pipe(u,oa8(this.context)),y.inApp),additionalOutputs:{}}};var bKK=function(R,y,u){var v=v===void 0?Symbol():v;this.element=R;this.immediateUrls=y;this.timeOnScreenUrls=u;this.symbol=v};var pTU=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),MST=Object.freeze([1,.75,pTU.exposureThreshold,pTU.largeAdExposureThreshold,0]);var FLv=function(R,y){y=y===void 0?36E5:y;var u=u===void 0?!0:u;this.creatives=new KL;this.elementsToUnregister=new KL;this.elementMap=new Map;var v=new s6(window,null);v.beaconFactory=new B7(v,new af(v));bGL(v,this.creatives,this.elementsToUnregister,R,y,u).subscribe()},T6c=function(R,y,u,v){if(!R.elementMap.has(y)){var Q=new q1(y);
R.elementMap.set(y,Q);R.creatives.next(new bKK(Q,u,v))}},N6P=function(R,y){R.elementsToUnregister.next(y);
var u=R.elementMap.get(y);u!==void 0&&(u.release(),R.elementMap.delete(y))};var KN8=function(R){var y=R.url;R=R.uaDataValues;this.JSC$9443_url_=y;this.uaDataValues_=R;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var u=/[?&]([^&=]+)=([^&]*)/g;R=u.exec(y);)this.urlParamValues_[R[1]]=R[2]},IrT=function(R){R=R.uaDataValues_;
if(!R)return"";var y=CL("uap",R.platform)+CL("uapv",R.platformVersion)+CL("uafv",R.uaFullVersion)+CL("uaa",R.architecture)+CL("uam",R.model)+CL("uab",R.bitness);R.fullVersionList&&(y+="&uafvl="+encodeURIComponent(R.fullVersionList.map(function(u){return encodeURIComponent(u.brand)+";"+encodeURIComponent(u.version)}).join("|")));
R.wow64!=null&&(y+="&uaw="+Number(R.wow64));return y.slice(1)};var FKb=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(FKb,_.y4);FKb.prototype.getId=function(){return _.$U(this,1)};var Cp=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(Cp,_.y4);Cp.prototype.getSeconds=function(){return kU(this,1)};
Cp.prototype.setSeconds=function(R){return _.SK(this,1,jK(R),"0")};_.pX=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(_.pX,_.y4);_.pX.prototype.getSeconds=function(){return kU(this,1)};
_.pX.prototype.setSeconds=function(R){return _.SK(this,1,jK(R),"0")};
_.wgc=function(R){var y=Number(XD(R,1));R=_.jZ(R,2);return new Date(y*1E3+R/1E6)};var Re=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(Re,_.y4);Re.prototype.getUrl=function(){return _.$U(this,1)};
Re.prototype.setUrl=function(R){return _.R2(this,1,R)};
Re.prototype.getHeight=function(){return _.jZ(this,2)};
Re.prototype.getWidth=function(){return _.jZ(this,3)};var yb=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(yb,_.y4);yb.prototype.getAspectRatio=function(){return Ek(this,1)};
yb.prototype.setAspectRatio=function(R){return _.SK(this,1,_.Dw(R),0)};
yb.prototype.getDuration=function(){return _.Ne(this,Cp,2)};var NCY=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(NCY,_.y4);var TCg=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(TCg,_.y4);var oEL=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(oEL,_.y4);var xyb=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(xyb,_.y4);var BCw=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(BCw,_.y4);var f2c=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(f2c,_.y4);var eFg=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(eFg,_.y4);var l2c=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(l2c,_.y4);var OKY=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(OKY,_.y4);var uV=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(uV,_.y4);var vc=[2,4,5,6,7];var ZKK=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(ZKK,_.y4);var WQ=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(WQ,_.y4);_.J=WQ.prototype;_.J.getId=function(){return _.Ne(this,FKb,1)};
_.J.getName=function(){return _.$U(this,2)};
_.J.setDescription=function(R){return _.R2(this,3,R)};
_.J.getUrl=function(){return _.$U(this,8)};
_.J.setUrl=function(R){return _.R2(this,8,R)};
var Qb=function(R){return _.vY(R,Re,10,_.Q7())};
WQ.prototype.getOwner=function(R){var y=_.Do(this,40,_.wa,3,!0);acL(y,R);return y[R]};
WQ.prototype.getVersion=function(){return kU(this,45)};
var jw=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(jw,_.y4);_.HKL=[0,Vr4,KMP];_.nEi=[0,Vr4,KMP];var GB5=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(GB5,_.y4);var Mg=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(Mg,_.y4);Mg.prototype.getStatus=function(){return _.qO(this,1)};
Mg.prototype.removeItem=function(R){return HBP(this,2,R)};var rqK=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(rqK,_.y4);rqK.prototype.getName=function(){return _.$U(this,8)};var J8=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(J8,_.y4);J8.prototype.getCommand=function(){return _.qO(this,1)};
J8.prototype.getSource=function(){return _.Ne(this,rqK,2)};
J8.prototype.setVisible=function(R){return _.dG(this,5,R)};
J8.prototype.removeItem=function(R){return HBP(this,7,R)};var Pbg=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(Pbg,_.y4);Pbg.prototype.getCommand=function(){return _.qO(this,1)};
Pbg.prototype.removeItem=function(R){return HBP(this,4,R)};
var WKi=_.hq(Pbg);var Vb=function(R,y,u){u=u===void 0?Error():u;var v=Error.call(this);this.message=v.message;"stack"in v&&(this.stack=v.stack);this.code=R;y+=":";u instanceof Error?(this.message=y+u.message,this.stack=u.stack||""):(this.message=y+String(u),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.O(Vb,Error);_.Z0=function(){this.JSC$9501_disposed_=this.JSC$9501_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.Z0.prototype.JSC$9501_disposed_=!1;_.Z0.prototype.isDisposed=function(){return this.JSC$9501_disposed_};
_.Z0.prototype.dispose=function(){this.JSC$9501_disposed_||(this.JSC$9501_disposed_=!0,this.disposeInternal())};
_.Z0.prototype[Symbol.dispose]=function(){this.dispose()};
_.bx=function(R,y){R.addOnDisposeCallback(_.lh(_.R_,y))};
_.Z0.prototype.addOnDisposeCallback=function(R,y){this.JSC$9501_disposed_?y!==void 0?R.call(y):R():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),y&&(R=R.bind(y)),this.onDisposeCallbacks_.push(R))};
_.Z0.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var iV=function(R){_.Z0.call(this);this.wpc=R};
_.O(iV,_.Z0);iV.prototype.qDi=function(){return this.wpc.f()};
iV.prototype.zVO=function(R){return this.wpc.c(R)};
iV.prototype.q5=function(R){return this.wpc.m(r7U(R))};
iV.prototype.nlN=function(R){return this.wpc.mws(r7U(R))};
var ux=function(R){_.Z0.call(this);var y=this;this.vm=R;this.k2D="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.iYi=void 0;this.zRl=this.vm.p;this.zFm=this.iKq.bind(this);this.addOnDisposeCallback(function(){return void dyG(y)})};
_.O(ux,_.Z0);var Uy5=function(R){var y;return _.I(function(u){if(u.nextAddress==1){if(!R.vm.wpc)throw new Vb(30,"NWA");return R.mla?u.return(R.mla):u.yield(R.vm.wpc(),2)}y=u.yieldResult;R.mla=new iV(y);return u.return(R.mla)})};
ux.prototype.snapshot=function(R){return this.vm.s(Object.assign({},R.j1&&{c:R.j1},R.qxd&&{s:R.qxd},R.qgO!==void 0&&{p:R.qgO}))};
ux.prototype.iKq=function(R){this.vm.e(R)};
ux.prototype.luN=function(R,y){return this.vm.c(R,y,!1)};
var dyG=function(R){R.iYi!==void 0&&(R.k2D.forEach(function(y){var u;(u=R.iYi)==null||u.removeEventListener(y,R.zFm)}),R.iYi=void 0)};
ux.prototype.zYx=function(){return this.vm.l()};var KT=function(){_.Z0.apply(this,arguments);this.aAD=1};
_.O(KT,_.Z0);KT.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.aAD++;return this};
KT.prototype.dispose=function(){--this.aAD||_.Z0.prototype.dispose.call(this)};var kB5=function(R){this.zmn=R;R.addNewEventMetric("/client_streamz/bg/frs",_.V7("mk"))};
kB5.prototype.record=function(R,y){this.zmn.record("/client_streamz/bg/frs",R,y)};
var EEK=function(R){this.hmN=R;R.addNewEventMetric("/client_streamz/bg/wrl",_.V7("mn"),JD("ac"),JD("sc"),_.V7("rk"),_.V7("mk"))};
EEK.prototype.record=function(R,y,u,v,Q,M){this.hmN.record("/client_streamz/bg/wrl",R,y,u,v,Q,M)};
var $yV=function(R){this.vPe=R;R.addNewCounter("/client_streamz/bg/ec",_.V7("en"),_.V7("mk"))};
$yV.prototype.increment=function(R,y){this.vPe.JSC$9755_incrementCounter("/client_streamz/bg/ec",R,y)};
var qo8=function(R){this.jCR=R;R.addNewEventMetric("/client_streamz/bg/el",_.V7("en"),_.V7("mk"))};
qo8.prototype.record=function(R,y,u){this.jCR.record("/client_streamz/bg/el",R,y,u)};
var Xg5=function(R){this.mJB=R;R.addNewCounter("/client_streamz/bg/cec",JD("ec"),_.V7("mk"))};
Xg5.prototype.increment=function(R,y){this.mJB.JSC$9755_incrementCounter("/client_streamz/bg/cec",R,y)};
var myc=function(R){this.w8O=R;R.addNewCounter("/client_streamz/bg/po/csc",JD("cs"),_.V7("mk"))};
myc.prototype.increment=function(R,y){this.w8O.JSC$9755_incrementCounter("/client_streamz/bg/po/csc",R,y)};
var Aqw=function(R){this.oPe=R;R.addNewCounter("/client_streamz/bg/po/ctav",_.V7("av"),_.V7("mk"))};
Aqw.prototype.increment=function(R,y){this.oPe.JSC$9755_incrementCounter("/client_streamz/bg/po/ctav",R,y)};
var DyL=function(R){this.fne=R;R.addNewCounter("/client_streamz/bg/po/cwsc",_.V7("su"),_.V7("mk"))};
DyL.prototype.increment=function(R,y){this.fne.JSC$9755_incrementCounter("/client_streamz/bg/po/cwsc",R,y)};var QhP=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(QhP,_.y4);var vzO=function(R,y){return _.aP(R,3,y,hcT)};var pgb=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(pgb,_.y4);var ty8=[1,2,3];var cqT=[0,ty8,_.wUT,IDU,FMP];var a28=[0,_.y_,[0,jwG,_.z$]];var SoV=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(SoV,_.y4);var Yob=[1,2,3];var LKg=[0,Yob,iMO,MrU,_.uj,a28];var sKL=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(sKL,_.y4);var zFL=[0,_.y_,cqT,LKg];var gEi=[0,_.Rf];var CbY=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(CbY,_.y4);var RUL=[0,_.Rf,-1,_.CU];var yac=[0,_.Rf,-1,_.gV,_.CU];var uoK=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(uoK,_.y4);var vLV=[1,2,3];var Q1i=[0,vLV,_.uj,RUL,_.uj,yac,_.uj,gEi];var j1L=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(j1L,_.y4);j1L.prototype.JSC$9575_serializeBinary=EEW([0,_.Rf,Q1i,NtT,_.y_,zFL,hMU,bME]);var ML5=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(ML5,_.y4);var i$V=function(R){var y=new j1L;y=_.eQ(y,1,R.JSC$9691_metricName);var u=JaL(R);y=_.aP(y,3,u,_.hI);u=[];for(var v=[],Q=_.V(R.cellMap.keys()),M=Q.next();!M.done;M=Q.next())v.push(M.value.split(","));for(Q=0;Q<v.length;Q++){M=v[Q];for(var K=R.cellType,h=R.getCells(M)||[],b=[],N=0;N<h.length;N++){var T=h[N],x=T&&T.cellValue;T=new SoV;switch(K){case 3:x=Number(x);Number.isFinite(x)&&wI(T,1,Yob,jK(x));break;case 2:wI(T,2,Yob,_.Dw(Number(x)))}b.push(T)}K=b;for(h=0;h<K.length;h++){b=K[h];N=new sKL;b=_.wC(N,
2,b);N=[];T=VLc(R);for(x=0;x<T.length;x++){var B=T[x],l=M[x],Z=new pgb;switch(B){case 3:wI(Z,1,ty8,bJ(String(l)));break;case 2:B=Number(l);Number.isFinite(B)&&wI(Z,2,ty8,_.CY(B));break;case 1:wI(Z,3,ty8,iYW(l==="true"))}N.push(Z)}PQ(b,1,N);u.push(b)}}PQ(y,4,u);return y};var K_8=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 y=R.substring(R.indexOf("://")+3),u=y.indexOf("/");u!=-1&&(y=y.substring(0,u));u=R.substring(0,R.indexOf("://"));if(!u)throw Error("qa`"+R);if(u!=="http"&&u!=="https"&&u!=="chrome-extension"&&u!=="moz-extension"&&
u!=="file"&&u!=="android-app"&&u!=="chrome-search"&&u!=="chrome-untrusted"&&u!=="chrome"&&u!=="app"&&u!=="devtools")throw Error("ra`"+u);R="";var v=y.indexOf(":");if(v!=-1){var Q=y.substring(v+1);y=y.substring(0,v);if(u==="http"&&Q!=="80"||u==="https"&&Q!=="443")R=":"+Q}return u+"://"+y+R};var hUG=function(R,y,u){var v=String(_.uO.location.href);return v&&R&&y?[y,ItG(K_8(v),R,u||null)].join(" "):null},ItG=function(R,y,u){var v=[],Q=[];
if((Array.isArray(u)?2:1)==1)return Q=[y,R],_.cu(v,function(h){Q.push(h)}),b$b(Q.join(" "));
var M=[],K=[];_.cu(u,function(h){K.push(h.key);M.push(h.value)});
u=Math.floor((new Date).getTime()/1E3);Q=M.length==0?[u,y,R]:[M.join(":"),u,y,R];_.cu(v,function(h){Q.push(h)});
R=b$b(Q.join(" "));R=[u,R];K.length==0||R.push(K.join(""));return R.join("_")},b$b=function(R){var y=qBz();
y.update(R);return y.digestString().toLowerCase()};var Ie=function(R){this.JSC$9586_document_=R||{cookie:""}},F_g;
_.J=Ie.prototype;_.J.isEnabled=function(){if(!_.uO.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};
_.J.set=function(R,y,u){var v=!1;if(typeof u==="object"){var Q=u.sameSite;v=u.secure||!1;var M=u.domain||void 0;var K=u.path||void 0;var h=u.maxAge}if(/[;=\s]/.test(R))throw Error("sa`"+R);if(/[;\r\n]/.test(y))throw Error("ta`"+y);h===void 0&&(h=-1);u=M?";domain="+M:"";K=K?";path="+K:"";v=v?";secure":"";h=h<0?"":h==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+h*1E3)).toUTCString();this.JSC$9586_document_.cookie=R+"="+y+u+K+h+v+(Q!=null?";samesite="+Q:"")};
_.J.get=function(R,y){for(var u=R+"=",v=(this.JSC$9586_document_.cookie||"").split(";"),Q=0,M;Q<v.length;Q++){M=FU(v[Q]);if(M.lastIndexOf(u,0)==0)return M.slice(u.length);if(M==R)return""}return y};
_.J.remove=function(R,y,u){var v=this.containsKey(R);this.set(R,"",{maxAge:0,path:y,domain:u});return v};
_.J.getKeys=function(){return F_g(this).keys};
_.J.getValues=function(){return F_g(this).values};
_.J.isEmpty=function(){return!this.JSC$9586_document_.cookie};
_.J.getCount=function(){return this.JSC$9586_document_.cookie?(this.JSC$9586_document_.cookie||"").split(";").length:0};
_.J.containsKey=function(R){return this.get(R)!==void 0};
_.J.containsValue=function(R){for(var y=F_g(this).values,u=0;u<y.length;u++)if(y[u]==R)return!0;return!1};
_.J.clear=function(){for(var R=F_g(this).keys,y=R.length-1;y>=0;y--)this.remove(R[y])};
F_g=function(R){R=(R.JSC$9586_document_.cookie||"").split(";");for(var y=[],u=[],v,Q,M=0;M<R.length;M++)Q=FU(R[M]),v=Q.indexOf("="),v==-1?(y.push(""),u.push(Q)):(y.push(Q.substring(0,v)),u.push(Q.substring(v+1)));return{keys:y,values:u}};
_.xz=new Ie(typeof document=="undefined"?null:document);var sZO,w$5;sZO=function(){var R=_.uO.__SAPISID||_.uO.__APISID||_.uO.__3PSAPISID||_.uO.__1PSAPISID||_.uO.__OVERRIDE_SID;if(R)return!0;typeof document!=="undefined"&&(R=new Ie(document),R=R.get("SAPISID")||R.get("APISID")||R.get("__Secure-3PAPISID")||R.get("__Secure-1PAPISID"));return!!R};
w$5=function(R,y,u,v){(R=_.uO[R])||typeof document==="undefined"||(R=(new Ie(document)).get(y));return R?hUG(R,u,v):null};
_.mzT=function(R){var y=K_8(_.uO==null?void 0:_.uO.location.href),u=[];if(sZO()){y=y.indexOf("https:")==0||y.indexOf("chrome-extension:")==0||y.indexOf("chrome-untrusted://new-tab-page")==0||y.indexOf("moz-extension:")==0;var v=y?_.uO.__SAPISID:_.uO.__APISID;v||typeof document==="undefined"||(v=new Ie(document),v=v.get(y?"SAPISID":"APISID")||v.get("__Secure-3PAPISID"));(v=v?hUG(v,y?"SAPISIDHASH":"APISIDHASH",R):null)&&u.push(v);y&&((y=w$5("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",R))&&u.push(y),
(R=w$5("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",R))&&u.push(R))}return u.length==0?null:u.join(" ")};var NY8=function(){this.minSize=1024};
NY8.prototype.compress=function(R){var y,u,v,Q;return _.I(function(M){switch(M.nextAddress){case 1:return y=new CompressionStream("gzip"),u=(new Response(y.readable)).arrayBuffer(),v=y.writable.getWriter(),M.yield(v.write((new TextEncoder).encode(R)),2);case 2:return M.yield(v.close(),3);case 3:return Q=Uint8Array,M.yield(u,4);case 4:return M.return(new Q(M.yieldResult))}})};
NY8.prototype.isSupported=function(R){return R<this.minSize?!1:typeof CompressionStream!=="undefined"};var TYL=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(TYL,_.y4);var h8=function(R,y){this.intervalMs=R;this.callback=y;this.enabled=!1;this.nowFn=function(){return _.KU()};
this.lastTimeMs=this.nowFn()};
h8.prototype.setInterval=function(R){this.intervalMs=R;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
h8.prototype.start=function(){var R=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){R.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
h8.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
h8.prototype.tick=function(){var R=this;if(this.enabled){var y=Math.max(this.nowFn()-this.lastTimeMs,0);y<this.intervalMs*.8?this.timer=setTimeout(function(){R.tick()},this.intervalMs-y):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var oLb=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(oLb,_.y4);var xP8=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(xP8,_.y4);var BYG=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(BYG,_.y4);BYG.prototype.getTransmissionType=function(){return _.qO(this,1)};var DsG=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(DsG,_.y4);DsG.prototype.getVersion=function(){return _.$U(this,2)};var bV=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(bV,_.y4);var A7O=function(R){PQ(puG,1,R)};
bV.prototype.getModel=function(){return _.$U(this,6)};
var ftK=_.hq(bV);var eUg=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(eUg,_.y4);var XuG=["platform","platformVersion","architecture","model","uaFullVersion"],puG=new bV,msW=null;var FC=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(FC,_.y4);var lt5=function(R){return _.j_(R,1,1)};var O$G=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R,4)};
_.O(O$G,_.y4);_.wK=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R,36)};
_.O(_.wK,_.y4);_.wK.prototype.getExperimentIds=function(){return _.Ne(this,TYL,16)};var Z$L=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R,19)};
_.O(Z$L,_.y4);Z$L.prototype.setLogSource=function(R){return _.j_(this,2,R)};
Z$L.prototype.setScheduler=function(R){return _.j_(this,10,R)};var nLL=function(R,y){this.isServiceWorkerScope=y=y===void 0?!1:y;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new Z$L;Number.isInteger(R)&&this.logRequest.setLogSource(R);y||(this.locale=document.documentElement.getAttribute("lang"));H$5(this,new FC)};
nLL.prototype.setLogSource=function(R){this.logRequest.setLogSource(R);return this};
var H$5=function(R,y){_.wC(R.logRequest,1,y);_.qO(y,1)||lt5(y);R.isServiceWorkerScope||(y=Ng(R),_.$U(y,5)||_.eQ(y,5,R.locale));R.uach&&(y=Ng(R),_.Ne(y,bV,9)||_.wC(y,9,R.uach))},G9i=function(R,y){R.transmissionType=y},rag=function(R){var y=y===void 0?XuG:y;
var u=R.isServiceWorkerScope?void 0:U6();u?tSS(u,y).then(function(v){R.uach=ftK(v!=null?v:"[]");v=Ng(R);_.wC(v,9,R.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},Ng=function(R){var y=_.Ne(R.logRequest,FC,1);
y||(y=new FC,H$5(R,y));R=y;y=_.Ne(R,eUg,11);y||(y=new eUg,_.wC(R,11,y));return y};
nLL.prototype.build=function(R,y,u,v,Q,M){y=y===void 0?0:y;u=u===void 0?0:u;v=v===void 0?null:v;Q=Q===void 0?0:Q;M=M===void 0?0:M;if(!this.isServiceWorkerScope){var K=Ng(this);var h=new BYG;h=_.j_(h,1,this.transmissionType);h=_.ix(h,2,this.isFinal);u=_.DF(h,3,u>0?u:void 0);u=_.DF(u,4,Q>0?Q:void 0);u=_.DF(u,5,M>0?M:void 0);Q=u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;M=Q[_.jg]|0;u=F5(u,M)?u:foz(u,Q,M)?BaU(u,Q):new u.constructor(Um(Q,M,!0));_.wC(K,10,u)}K=this.logRequest.clone();u=Date.now().toString();
K=_.Mt(K,4,jK(u));R=R.slice();R=PQ(K,3,R);v&&(K=new oLb,v=_.DF(K,13,v),K=new xP8,v=_.wC(K,2,v),K=new O$G,v=_.wC(K,1,v),v=_.j_(v,2,9),_.wC(R,18,v));y&&_.ex(R,14,y);return R};KF.prototype.currBackoffCount_=0;KF.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
KF.prototype.getValue=function(){return this.currValue_};
var PBV=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 fDP=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R,8)};
_.O(fDP,_.y4);var W_b=_.hq(fDP);var eME=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(eME,_.y4);var T0;T0=new lDO;var oe=function(R){_.Z0.call(this);var y=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9664_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$9664_sendBeaconApiEnabled=!1;this.logSource=R.logSource;this.getAuthHeaderValue=
R.getAuthHeaderValue||function(){};
this.logRequestBuilder=new nLL(R.logSource,R.isServiceWorkerScope);this.network=R.network||null;this.productID=R.productID||null;this.bufferSize=1E3;this.clearcutUrl=R.urlOverride||null;this.sessionIndex=R.sessionIndex||null;this.disableAutomaticFlush=R.disableAutomaticFlush||!1;this.withCredentials=!R.disableWithCredentials;this.isServiceWorkerScope=R.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!U6()&&!!U6().navigator&&U6().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(dPT())).searchParams&&!!(new URL(dPT())).searchParams.set;var u=lt5(new FC);H$5(this.logRequestBuilder,u);this.flushBackoff=new KF(1E4,3E5,.1);R=UPK(this,R.backgroundJobDeferrer);this.JSC$9664_flushTimer=new h8(this.flushBackoff.getValue(),R);this.backupTimer=new h8(6E5,R);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){k9L(y);
var v;(v=y.metalogService)==null||v.flush()}}),document.addEventListener("pagehide",function(){k9L(y);
var v;(v=y.metalogService)==null||v.flush()}))};
_.O(oe,_.Z0);var UPK=function(R,y){return R.isBrowserSupported?y?function(){y().then(function(){R.flush()})}:function(){R.flush()}:function(){}};
oe.prototype.disposeInternal=function(){k9L(this);this.JSC$9664_flushTimer.stop();this.backupTimer.stop();_.Z0.prototype.disposeInternal.call(this)};
var EL5=function(R){R.clearcutUrl||(R.clearcutUrl=dPT());try{return(new URL(R.clearcutUrl)).toString()}catch(y){return(new URL(R.clearcutUrl,U6().location.origin)).toString()}};
oe.prototype.dispatch=function(R){if(R instanceof _.wK)this.log(R);else try{var y=new _.wK,u=R.serialize();var v=_.eQ(y,8,u);this.log(v)}catch(Q){xj(this,4,1)}};
var xj=function(R,y,u){R.metalogService&&R.metalogService.increment(y,u)};
oe.prototype.log=function(R){xj(this,2,1);if(this.isBrowserSupported){R=R.clone();var y=this.sequencePosition++;R=_.ex(R,21,y);this.componentId&&_.eQ(R,26,this.componentId);y=R;if(PTO(_.Ok(y,1))==null){var u=Date.now();u=Number.isFinite(u)?u.toString():"0";_.Mt(y,1,jK(u))}_.rLP(_.Ok(y,15))!=null||_.ex(y,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(u=this.experimentIds.clone(),_.wC(y,16,u));xj(this,1,1);y=this.pendingEvents.length-this.bufferSize+1;y>0&&(this.pendingEvents.splice(0,y),
this.numLogsDroppedSinceLastFlush+=y,xj(this,3,y));this.pendingEvents.push(R);this.disableAutomaticFlush||this.JSC$9664_flushTimer.enabled||this.JSC$9664_flushTimer.start()}};
oe.prototype.flush=function(R,y){var u=this;if(this.pendingEvents.length===0)R&&R();else if(this.JSC$9664_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,$Pg(this);else{var v=Date.now();if(this.noFlushUntilMs>v&&this.startWaitingMs<v)y&&y("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?G9i(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var Q=this.pendingEvents.length,
M=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),K=this.getAuthHeaderValue();if(K&&this.lastFailedAuth===K)y&&y("stale-auth-token");else{this.pendingEvents=[];this.JSC$9664_flushTimer.enabled&&this.JSC$9664_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;v=M.serialize();var h;this.JSC$9664_compressor&&this.JSC$9664_compressor.isSupported(v.length)&&
(h=this.JSC$9664_compressor.compress(v));var b=qri(this,v,K),N=function(B){u.flushBackoff.reset();u.JSC$9664_flushTimer.setInterval(u.flushBackoff.getValue());if(B){var l=null;try{var Z=JSON.stringify(JSON.parse(B.replace(")]}'\n","")));l=W_b(Z)}catch(P){}l&&(B=Number(kU(l,1,_.k8("-1"))),B>0&&(u.startWaitingMs=Date.now(),u.noFlushUntilMs=u.startWaitingMs+B),zcT(l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,T0.fieldIndex),LVU(l,T0.fieldIndex),l=T0.ctor?T0.getExtensionFn(l,T0.ctor,T0.fieldIndex,
T0.JSC$8843_hasMessageId):T0.getExtensionFn(l,T0.fieldIndex,null,T0.JSC$8843_hasMessageId),l=l===null?void 0:l)&&(l=_.jZ(l,1,-1),l!==-1&&(u.flushBackoff=new KF(l<1?1:l,3E5,.1),u.JSC$9664_flushTimer.setInterval(u.flushBackoff.getValue())))}R&&R();u.numRetriesSinceLastSuccessfulFlush=0},T=function(B,l){var Z=_.vY(M,_.wK,3,_.Q7());
var P=Number(kU(M,14));PBV(u.flushBackoff);u.JSC$9664_flushTimer.setInterval(u.flushBackoff.getValue());B===401&&K&&(u.lastFailedAuth=K);P&&(u.numLogsDroppedSinceLastFlush+=P);l===void 0&&(l=u.isRetryable(B));l&&(u.pendingEvents=Z.concat(u.pendingEvents),u.disableAutomaticFlush||u.JSC$9664_flushTimer.enabled||u.JSC$9664_flushTimer.start());xj(u,7,1);y&&y("net-send-failed",B);++u.numRetriesSinceLastSuccessfulFlush},x=function(){u.network&&u.network.send(b,N,T)};
h?h.then(function(B){xj(u,5,Q);b.requestHeaders["Content-Encoding"]="gzip";b.requestHeaders["Content-Type"]="application/binary";b.body=B;b.bodyType=2;x()},function(){xj(u,6,Q);
x()}):x()}}}};
var qri=function(R,y,u){u=u===void 0?null:u;var v=v===void 0?R.withCredentials:v;var Q={},M=new URL(EL5(R));u&&(Q.Authorization=u);R.sessionIndex&&(Q["X-Goog-AuthUser"]=R.sessionIndex,M.searchParams.set("authuser",R.sessionIndex));R.pageId&&(Object.defineProperty(Q,"X-Goog-PageId",{value:R.pageId}),M.searchParams.set("pageId",R.pageId));return{url:M.toString(),body:y,bodyType:1,requestHeaders:Q,requestType:"POST",withCredentials:v,timeoutMillis:R.timeoutMillis}},k9L=function(R){R.logRequestBuilder.isFinal=
!0;
R.flush();R.logRequestBuilder.isFinal=!1},$Pg=function(R){X$8(R,function(y,u){y=new URL(y);
y.searchParams.set("format","json");var v=!1;try{v=U6().navigator.sendBeacon(y.toString(),u.serialize())}catch(Q){}v||(R.isSendBeaconSupported=!1);return v})},X$8=function(R,y){if(R.pendingEvents.length!==0){var u=new URL(EL5(R));
u.searchParams.delete("format");var v=R.getAuthHeaderValue();v&&u.searchParams.set("auth",v);u.searchParams.set("authuser",R.sessionIndex||"0");for(v=0;v<10&&R.pendingEvents.length;++v){var Q=R.pendingEvents.slice(0,32),M=R.logRequestBuilder.build(Q,R.numLogsDroppedSinceLastFlush,R.numRetriesSinceLastSuccessfulFlush,R.productID,R.persistedLogRecoveredCount,R.persistedLogExpiredCount);if(!y(u.toString(),M)){++R.numRetriesSinceLastSuccessfulFlush;break}R.numLogsDroppedSinceLastFlush=0;R.numRetriesSinceLastSuccessfulFlush=
0;R.persistedLogRecoveredCount=0;R.persistedLogExpiredCount=0;R.pendingEvents=R.pendingEvents.slice(Q.length)}R.JSC$9664_flushTimer.enabled&&R.JSC$9664_flushTimer.stop()}};
oe.prototype.isRetryable=function(R){return 500<=R&&R<600||R===401||R===0};
var dPT=function(){return"https://play.google.com/log?format=json&hasfast=true"};var mP8=function(){this.abortSupported=typeof AbortController!=="undefined"};
mP8.prototype.send=function(R,y,u){var v=this,Q,M,K,h,b,N,T,x,B,l;return _.I(function(Z){switch(Z.nextAddress){case 1:return M=(Q=v.abortSupported?new AbortController:void 0)?setTimeout(function(){Q.abort()},R.timeoutMillis):void 0,_.wY(Z,2,3),K=Object.assign({},{method:R.requestType,
headers:Object.assign({},R.requestHeaders)},R.body&&{body:R.body},R.withCredentials&&{credentials:"include"},{signal:R.timeoutMillis&&Q?Q.signal:null}),Z.yield(fetch(R.url,K),5);case 5:h=Z.yieldResult;if(h.status!==200){(b=u)==null||b(h.status);Z.jumpTo(3);break}if((N=y)==null){Z.jumpTo(7);break}return Z.yield(h.text(),8);case 8:N(Z.yieldResult);case 7:case 3:_.T9(Z);clearTimeout(M);_.xL(Z,0);break;case 2:T=_.B$(Z);switch((x=T)==null?void 0:x.name){case "AbortError":(B=u)==null||B(408);break;default:(l=
u)==null||l(400)}Z.jumpTo(3)}})};
mP8.prototype.getTransmissionType=function(){return 4};_.hD=function(R,y){y=y===void 0?"0":y;_.Z0.call(this);this.logSource=R;this.sessionIndex=y;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9682_clearExperimentIds=this.productID=null;this.JSC$9682_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.O(_.hD,_.Z0);var RXE=function(R,y){R.buildLabel=y;return R},CrT=function(R,y){R.network=y;
return R},uq8=function(R,y){R.JSC$9682_clearExperimentIds=y},gBE=function(R){R.JSC$9682_sendBeaconApiEnabled=!0;
return R};
_.hD.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.hD.prototype.build=function(){this.network||(this.network=new mP8);var R=new oe({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.mzT,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.bx(this,R);if(this.buildLabel){var y=this.buildLabel,u=
Ng(R.logRequestBuilder);_.eQ(u,7,y)}R.JSC$9664_compressor=new NY8;this.componentId&&(R.componentId=this.componentId);this.productID&&(R.productID=this.productID);this.pageId&&(R.pageId=this.pageId);this.JSC$9682_clearExperimentIds&&((u=this.JSC$9682_clearExperimentIds)?(R.experimentIds||(R.experimentIds=new TYL),y=R.experimentIds,u=u.serialize(),_.eQ(y,4,u)):R.experimentIds&&_.Mt(R.experimentIds,4));this.JSC$9682_sendBeaconApiEnabled&&(R.JSC$9664_sendBeaconApiEnabled=R.isSendBeaconSupported);rag(R.logRequestBuilder);
this.bufferSize&&(R.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(R);return R};var jhT=function(R,y,u,v,Q,M,K){R=R===void 0?-1:R;y=y===void 0?"":y;u=u===void 0?"":u;v=v===void 0?!1:v;Q=Q===void 0?"":Q;_.Z0.call(this);this.logSource=R;this.componentId=y;M?y=M:(R=new _.hD(R,"0"),R.componentId=y,_.bx(this,R),u!==""&&(R.destinationUrl=u),v&&(R.serviceWorkerScopeEnabled=!0),Q&&RXE(R,Q),K&&CrT(R,K),y=R.build());this.JSC$9686_transport=y};
_.O(jhT,_.Z0);jhT.prototype.flush=function(R){R=R||[];if(R.length){for(var y=new ML5,u=[],v=0;v<R.length;v++){var Q=R[v],M=i$V(Q);u.push(M);Q.clear()}PQ(y,1,u);this.JSC$9686_transport.dispatch(y);this.JSC$9686_transport.flush()}};var Aa8=function(R){this.cellValue=R};var Bc=function(R,y,u){this.JSC$9691_metricName=R;this.cellType=y;this.fields=u||[];this.cellMap=new Map},VLc=function(R){return R.fields.map(function(y){return y.fieldType})},JaL=function(R){return R.fields.map(function(y){return y.fieldName})};
_.J=Bc.prototype;_.J.addCell=function(R){var y=_.qy.apply(1,arguments),u=this.getCells(y);u?u.push(new Aa8(R)):this.JSC$9691_setCell(R,y)};
_.J.JSC$9691_setCell=function(R){var y=this.JSC$9691_getKey(_.qy.apply(1,arguments));this.cellMap.set(y,[new Aa8(R)])};
_.J.getCells=function(){var R=this.JSC$9691_getKey(_.qy.apply(0,arguments));return this.cellMap.has(R)?this.cellMap.get(R):void 0};
_.J.getCell=function(){var R=this.getCells(_.qy.apply(0,arguments));return R&&R.length?R[0]:void 0};
_.J.clear=function(){this.cellMap.clear()};
_.J.JSC$9691_getKey=function(){var R=_.qy.apply(0,arguments);return R?R.join(","):"key"};var DPw=function(R,y){Bc.call(this,R,3,y)};
_.O(DPw,Bc);DPw.prototype.JSC$9694_incrementCounterBy=function(R){var y=_.qy.apply(1,arguments),u=0,v=this.getCell(y);v&&(u=v.cellValue);this.JSC$9691_setCell(u+R,y)};var p$g=function(R,y){Bc.call(this,R,2,y)};
_.O(p$g,Bc);p$g.prototype.record=function(R){this.addCell(R,_.qy.apply(1,arguments))};_.fT=function(R){this.id=R};
_.fT.prototype.toString=function(){return this.id};_.ew=function(R,y){this.type=R instanceof _.fT?String(R):R;this.currentTarget=this.target=y;this.defaultPrevented=this.propagationStopped_=!1};
_.ew.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.ew.prototype.preventDefault=function(){this.defaultPrevented=!0};_.lV=function(R,y){_.ew.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,y)};
_.IE(_.lV,_.ew);
_.lV.prototype.init=function(R,y){var u=this.type=R.type,v=R.changedTouches&&R.changedTouches.length?R.changedTouches[0]:null;this.target=R.target||R.srcElement;this.currentTarget=y;y=R.relatedTarget;y||(u=="mouseover"?y=R.fromElement:u=="mouseout"&&(y=R.toElement));this.relatedTarget=y;v?(this.clientX=v.clientX!==void 0?v.clientX:v.pageX,this.clientY=v.clientY!==void 0?v.clientY:v.pageY,this.screenX=v.screenX||0,this.screenY=v.screenY||0):(this.offsetX=_.T$||R.offsetX!==void 0?R.offsetX:R.layerX,
this.offsetY=_.T$||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||(u=="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&&_.lV.superClass_.preventDefault.call(this)};
_.lV.prototype.stopPropagation=function(){_.lV.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.lV.prototype.preventDefault=function(){_.lV.superClass_.preventDefault.call(this);var R=this.event_;R.preventDefault?R.preventDefault():R.returnValue=!1};var tLT="closure_listenable_"+(Math.random()*1E6|0),O8=function(R){return!(!R||!R[tLT])};var caY=0;var atY=function(R,y,u,v,Q){this.listener=R;this.proxy=null;this.src=y;this.type=u;this.capture=!!v;this.handler=Q;this.key=++caY;this.removed=this.callOnce=!1},SrV=function(R){R.removed=!0;
R.listener=null;R.proxy=null;R.src=null;R.handler=null};I_.prototype.add=function(R,y,u,v,Q){var M=R.toString();R=this.listeners[M];R||(R=this.listeners[M]=[],this.typeCount_++);var K=Yrg(R,y,v,Q);K>-1?(y=R[K],u||(y.callOnce=!1)):(y=new atY(y,this.src,M,!!v,Q),y.callOnce=u,R.push(y));return y};
I_.prototype.remove=function(R,y,u,v){R=R.toString();if(!(R in this.listeners))return!1;var Q=this.listeners[R];y=Yrg(Q,y,u,v);return y>-1?(SrV(Q[y]),_.lcE(Q,y),Q.length==0&&(delete this.listeners[R],this.typeCount_--),!0):!1};
var L_G=function(R,y){var u=y.type;if(!(u in R.listeners))return!1;var v=_.m4(R.listeners[u],y);v&&(SrV(y),R.listeners[u].length==0&&(delete R.listeners[u],R.typeCount_--));return v};
I_.prototype.removeAll=function(R){R=R&&R.toString();var y=0,u;for(u in this.listeners)if(!R||u==R){for(var v=this.listeners[u],Q=0;Q<v.length;Q++)++y,SrV(v[Q]);delete this.listeners[u];this.typeCount_--}return y};
I_.prototype.getListener=function(R,y,u,v){R=this.listeners[R.toString()];var Q=-1;R&&(Q=Yrg(R,y,u,v));return Q>-1?R[Q]:null};
I_.prototype.hasListener=function(R,y){var u=R!==void 0,v=u?R.toString():"",Q=y!==void 0;return _.Ps.some(this.listeners,function(M){for(var K=0;K<M.length;++K)if(!(u&&M[K].type!=v||Q&&M[K].capture!=y))return!0;return!1})};
var Yrg=function(R,y,u,v){for(var Q=0;Q<R.length;++Q){var M=R[Q];if(!M.removed&&M.listener==y&&M.capture==!!u&&M.handler==v)return Q}return-1};var s1g,zU5,gLK,RSb,yS5,Wy,dZ,Qr5,uVg,vh5,Zd,jr8,CBV;s1g="closure_lm_"+(Math.random()*1E6|0);zU5={};gLK=0;_.E4=function(R,y,u,v,Q){if(v&&v.once)return Wy(R,y,u,v,Q);if(Array.isArray(y)){for(var M=0;M<y.length;M++)_.E4(R,y[M],u,v,Q);return null}u=CBV(u);return O8(R)?R.listen(y,u,_.Sv(v)?!!v.capture:!!v,Q):RSb(R,y,u,!1,v,Q)};
RSb=function(R,y,u,v,Q,M){if(!y)throw Error("va");var K=_.Sv(Q)?!!Q.capture:!!Q,h=Zd(R);h||(R[s1g]=h=new I_(R));u=h.add(y,u,v,K,M);if(u.proxy)return u;v=yS5();u.proxy=v;v.src=R;v.listener=u;if(R.addEventListener)_.gmS||(Q=K),Q===void 0&&(Q=!1),R.addEventListener(y.toString(),v,Q);else if(R.attachEvent)R.attachEvent(uVg(y.toString()),v);else if(R.addListener&&R.removeListener)R.addListener(v);else throw Error("wa");gLK++;return u};
yS5=function(){var R=vh5,y=function(u){return R.call(y.src,y.listener,u)};
return y};
Wy=function(R,y,u,v,Q){if(Array.isArray(y)){for(var M=0;M<y.length;M++)Wy(R,y[M],u,v,Q);return null}u=CBV(u);return O8(R)?R.listenOnce(y,u,_.Sv(v)?!!v.capture:!!v,Q):RSb(R,y,u,!0,v,Q)};
_.Hc=function(R,y,u,v,Q){if(Array.isArray(y))for(var M=0;M<y.length;M++)_.Hc(R,y[M],u,v,Q);else v=_.Sv(v)?!!v.capture:!!v,u=CBV(u),O8(R)?R.unlisten(y,u,v,Q):R&&(R=Zd(R))&&(y=R.getListener(y,u,v,Q))&&dZ(y)};
dZ=function(R){if(typeof R==="number"||!R||R.removed)return!1;var y=R.src;if(O8(y))return L_G(y.eventTargetListeners_,R);var u=R.type,v=R.proxy;y.removeEventListener?y.removeEventListener(u,v,R.capture):y.detachEvent?y.detachEvent(uVg(u),v):y.addListener&&y.removeListener&&y.removeListener(v);gLK--;(u=Zd(y))?(L_G(u,R),u.typeCount_==0&&(u.src=null,y[s1g]=null)):SrV(R);return!0};
Qr5=function(R,y,u,v,Q){u=CBV(u);v=!!v;return O8(R)?R.getListener(y,u,v,Q):R?(R=Zd(R))?R.getListener(y,u,v,Q):null:null};
uVg=function(R){return R in zU5?zU5[R]:zU5[R]="on"+R};
vh5=function(R,y){if(R.removed)R=!0;else{y=new _.lV(y,this);var u=R.listener,v=R.handler||R.src;R.callOnce&&dZ(R);R=u.call(v,y)}return R};
Zd=function(R){R=R[s1g];return R instanceof I_?R:null};
jr8="__closure_events_fn_"+(Math.random()*1E9>>>0);CBV=function(R){if(typeof R==="function")return R;R[jr8]||(R[jr8]=function(y){return R.handleEvent(y)});
return R[jr8]};_.nT=function(){_.Z0.call(this);this.eventTargetListeners_=new I_(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.IE(_.nT,_.Z0);_.nT.prototype[tLT]=!0;_.J=_.nT.prototype;_.J.setParentEventTarget=function(R){this.parentEventTarget_=R};
_.J.addEventListener=function(R,y,u,v){_.E4(this,R,y,u,v)};
_.J.removeEventListener=function(R,y,u,v){_.Hc(this,R,y,u,v)};
_.J.dispatchEvent=function(R){var y,u=this.parentEventTarget_;if(u)for(y=[];u;u=u.parentEventTarget_)y.push(u);u=this.actualEventTarget_;var v=R.type||R;if(typeof R==="string")R=new _.ew(R,u);else if(R instanceof _.ew)R.target=R.target||u;else{var Q=R;R=new _.ew(v,u);_.Ps.extend(R,Q)}Q=!0;var M;if(y)for(M=y.length-1;!R.propagationStopped_&&M>=0;M--){var K=R.currentTarget=y[M];Q=MQi(K,v,!0,R)&&Q}R.propagationStopped_||(K=R.currentTarget=u,Q=MQi(K,v,!0,R)&&Q,R.propagationStopped_||(Q=MQi(K,v,!1,R)&&
Q));if(y)for(M=0;!R.propagationStopped_&&M<y.length;M++)K=R.currentTarget=y[M],Q=MQi(K,v,!1,R)&&Q;return Q};
_.J.disposeInternal=function(){_.nT.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.J.listen=function(R,y,u,v){return this.eventTargetListeners_.add(String(R),y,!1,u,v)};
_.J.listenOnce=function(R,y,u,v){return this.eventTargetListeners_.add(String(R),y,!0,u,v)};
_.J.unlisten=function(R,y,u,v){return this.eventTargetListeners_.remove(String(R),y,u,v)};
_.J.removeAllListeners=function(R){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(R):0};
var MQi=function(R,y,u,v){y=R.eventTargetListeners_.listeners[String(y)];if(!y)return!0;y=y.concat();for(var Q=!0,M=0;M<y.length;++M){var K=y[M];if(K&&!K.removed&&K.capture==u){var h=K.listener,b=K.handler||K.src;K.callOnce&&L_G(R.eventTargetListeners_,K);Q=h.call(b,v)!==!1&&Q}}return Q&&!v.defaultPrevented};
_.nT.prototype.getListener=function(R,y,u,v){return this.eventTargetListeners_.getListener(String(R),y,u,v)};
_.nT.prototype.hasListener=function(R,y){return this.eventTargetListeners_.hasListener(R!==void 0?String(R):void 0,y)};var G0=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(R){return R&&AsyncContext.Snapshot.wrap(R)}:function(R){return R};var JSg=function(R,y){this.create_=R;this.reset_=y;this.occupants_=0;this.JSC$9726_head_=null};
JSg.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var R=this.JSC$9726_head_;this.JSC$9726_head_=R.next;R.next=null}else R=this.create_();return R};
JSg.prototype.put=function(R){this.reset_(R);this.occupants_<100&&(this.occupants_++,R.next=this.JSC$9726_head_,this.JSC$9726_head_=R)};var VQK=function(){this.workTail_=this.workHead_=null};
VQK.prototype.add=function(R,y){var u=a6P.get();u.set(R,y);this.workTail_?this.workTail_.next=u:this.workHead_=u;this.workTail_=u};
VQK.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 a6P=new JSg(function(){return new iLT},function(R){return R.reset()}),iLT=function(){this.next=this.scope=this.fn=null};
iLT.prototype.set=function(R,y){this.fn=R;this.scope=y;this.next=null};
iLT.prototype.reset=function(){this.next=this.scope=this.fn=null};var KvT,SBS,c7E,Ii5;SBS=!1;c7E=new VQK;_.rK=function(R,y){KvT||Ii5();SBS||(KvT(),SBS=!0);c7E.add(R,y)};
Ii5=function(){var R=Promise.resolve(void 0);KvT=function(){R.then(YBU)}};var hSw=function(R){R.prototype.$goog_Thenable=!0},bLV=function(R){if(!R)return!1;
try{return!!R.$goog_Thenable}catch(y){return!1}};var FvT,wsL,Ncc,oh5,x1g,Bcw,OLY,nhg,Wvg,rS5,GA4;_.F4=function(R,y){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(R!=_.ZM)try{var u=this;R.call(y,function(v){u.resolve_(2,v)},function(v){u.resolve_(3,v)})}catch(v){this.resolve_(3,v)}};
FvT=function(){this.next=this.context=this.JSC$9737_onRejected=this.JSC$9737_onFulfilled=this.child=null;this.always=!1};
FvT.prototype.reset=function(){this.context=this.JSC$9737_onRejected=this.JSC$9737_onFulfilled=this.child=null;this.always=!1};
wsL=new JSg(function(){return new FvT},function(R){R.reset()});
Ncc=function(R,y,u){var v=wsL.get();v.JSC$9737_onFulfilled=R;v.JSC$9737_onRejected=y;v.context=u;return v};
_.NQ=function(R){if(R instanceof _.F4)return R;var y=new _.F4(_.ZM);y.resolve_(2,R);return y};
_.qk=function(R){return new _.F4(function(y,u){u(R)})};
oh5=function(R,y,u){TcL(R,y,u,null)||_.rK(_.lh(y,R))};
_.Pc=function(R){return new _.F4(function(y,u){var v=R.length,Q=[];if(v)for(var M=function(N,T){v--;Q[N]=T;v==0&&y(Q)},K=function(N){u(N)},h,b=0;b<R.length;b++)h=R[b],oh5(h,_.lh(M,b),K);
else y(Q)})};
x1g=function(R){return new _.F4(function(y){var u=R.length,v=[];if(u)for(var Q=function(h,b,N){u--;v[h]=b?{fulfilled:!0,value:N}:{fulfilled:!1,reason:N};u==0&&y(v)},M,K=0;K<R.length;K++)M=R[K],oh5(M,_.lh(Q,K,!0),_.lh(Q,K,!1));
else y(v)})};
Bcw=function(R){return new _.F4(function(y,u){var v=R.length,Q=[];if(v)for(var M=function(N){y(N)},K=function(N,T){v--;
Q[N]=T;v==0&&u(Q)},h,b=0;b<R.length;b++)h=R[b],oh5(h,M,_.lh(K,b));
else y(void 0)})};
_.uD=function(){var R,y,u=new _.F4(function(v,Q){R=v;y=Q});
return new fiT(u,R,y)};
_.F4.prototype.then=function(R,y,u){return eSc(this,G0(typeof R==="function"?R:null),G0(typeof y==="function"?y:null),u)};
hSw(_.F4);OLY=function(R,y,u,v){liK(R,Ncc(y||_.ZM,u||null,v))};
_.Wc=function(R,y){y=G0(y);y=Ncc(y,y);y.always=!0;liK(R,y);return R};
_.F4.prototype.finally=function(R){var y=this;R=G0(R);return new _.F4(function(u,v){OLY(y,function(Q){R();u(Q)},function(Q){R();
v(Q)})})};
_.F4.prototype.thenCatch=function(R,y){return eSc(this,null,G0(R),y)};
_.F4.prototype.catch=_.F4.prototype.thenCatch;_.F4.prototype.cancel=function(R){if(this.state_==0){var y=new _.LX(R);_.rK(function(){ZLg(this,y)},this)}};
var ZLg=function(R,y){if(R.state_==0)if(R.parent_){var u=R.parent_;if(u.callbackEntries_){for(var v=0,Q=null,M=null,K=u.callbackEntries_;K&&(K.always||(v++,K.child==R&&(Q=K),!(Q&&v>1)));K=K.next)Q||(M=K);Q&&(u.state_==0&&v==1?ZLg(u,y):(M?(v=M,v.next==u.callbackEntriesTail_&&(u.callbackEntriesTail_=v),v.next=v.next.next):HLi(u),nhg(u,Q,3,y)))}R.parent_=null}else R.resolve_(3,y)},liK=function(R,y){R.callbackEntries_||R.state_!=2&&R.state_!=3||GRb(R);
R.callbackEntriesTail_?R.callbackEntriesTail_.next=y:R.callbackEntries_=y;R.callbackEntriesTail_=y},eSc=function(R,y,u,v){var Q=Ncc(null,null,null);
Q.child=new _.F4(function(M,K){Q.JSC$9737_onFulfilled=y?function(h){try{var b=y.call(v,h);M(b)}catch(N){K(N)}}:M;
Q.JSC$9737_onRejected=u?function(h){try{var b=u.call(v,h);b===void 0&&h instanceof _.LX?K(h):M(b)}catch(N){K(N)}}:K});
Q.child.parent_=R;liK(R,Q);return Q.child};
_.F4.prototype.unblockAndFulfill_=function(R){this.state_=0;this.resolve_(2,R)};
_.F4.prototype.unblockAndReject_=function(R){this.state_=0;this.resolve_(3,R)};
_.F4.prototype.resolve_=function(R,y){this.state_==0&&(this===y&&(R=3,y=new TypeError("xa")),this.state_=1,TcL(y,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=y,this.state_=R,this.parent_=null,GRb(this),R!=3||y instanceof _.LX||rS5(this,y)))};
var TcL=function(R,y,u,v){if(R instanceof _.F4)return OLY(R,y,u,v),!0;if(bLV(R))return R.then(y,u,v),!0;if(_.Sv(R))try{var Q=R.then;if(typeof Q==="function")return Pvc(R,Q,y,u,v),!0}catch(M){return u.call(v,M),!0}return!1},Pvc=function(R,y,u,v,Q){var M=!1,K=function(b){M||(M=!0,u.call(Q,b))},h=function(b){M||(M=!0,v.call(Q,b))};
try{y.call(R,K,h)}catch(b){h(b)}},GRb=function(R){R.executing_||(R.executing_=!0,_.rK(R.executeCallbacks_,R))},HLi=function(R){var y=null;
R.callbackEntries_&&(y=R.callbackEntries_,R.callbackEntries_=y.next,y.next=null);R.callbackEntries_||(R.callbackEntriesTail_=null);return y};
_.F4.prototype.executeCallbacks_=function(){for(var R;R=HLi(this);)nhg(this,R,this.state_,this.result_);this.executing_=!1};
nhg=function(R,y,u,v){if(u==3&&y.JSC$9737_onRejected&&!y.always)for(;R&&R.hadUnhandledRejection_;R=R.parent_)R.hadUnhandledRejection_=!1;if(y.child)y.child.parent_=null,Wvg(y,u,v);else try{y.always?y.JSC$9737_onFulfilled.call(y.context):Wvg(y,u,v)}catch(Q){GA4.call(null,Q)}wsL.put(y)};
Wvg=function(R,y,u){y==2?R.JSC$9737_onFulfilled.call(R.context,u):R.JSC$9737_onRejected&&R.JSC$9737_onRejected.call(R.context,u)};
rS5=function(R,y){R.hadUnhandledRejection_=!0;_.rK(function(){R.hadUnhandledRejection_&&GA4.call(null,y)})};
GA4=vW;_.LX=function(R){_.RL.call(this,R)};
_.IE(_.LX,_.RL);_.LX.prototype.name="cancel";var fiT=function(R,y,u){this.promise=R;this.resolve=y;this.reject=u};var dK;_.Jl=function(R,y){_.nT.call(this);this.JSC$9749_interval_=R||1;this.timerObject_=y||_.uO;this.boundTick_=(0,_.HY)(this.tick_,this);this.last_=_.KU()};
_.IE(_.Jl,_.nT);_.J=_.Jl.prototype;_.J.enabled=!1;_.J.JSC$9751_timer_=null;_.J.setInterval=function(R){this.JSC$9749_interval_=R;this.JSC$9751_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9751_timer_&&this.stop()};
_.J.tick_=function(){if(this.enabled){var R=_.KU()-this.last_;R>0&&R<this.JSC$9749_interval_*.8?this.JSC$9751_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9749_interval_-R):(this.JSC$9751_timer_&&(this.timerObject_.clearTimeout(this.JSC$9751_timer_),this.JSC$9751_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.J.start=function(){this.enabled=!0;this.JSC$9751_timer_||(this.JSC$9751_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9749_interval_),this.last_=_.KU())};
_.J.stop=function(){this.enabled=!1;this.JSC$9751_timer_&&(this.timerObject_.clearTimeout(this.JSC$9751_timer_),this.JSC$9751_timer_=null)};
_.J.disposeInternal=function(){_.Jl.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
dK=function(R,y,u){if(typeof R==="function")u&&(R=(0,_.HY)(R,u));else if(R&&typeof R.handleEvent=="function")R=(0,_.HY)(R.handleEvent,R);else throw Error("ya");return Number(y)>2147483647?-1:_.uO.setTimeout(R,y||0)};
_.d18=function(R){var y=null;return(new _.F4(function(u,v){y=dK(function(){u(void 0)},R);
y==-1&&v(Error("za"))})).thenCatch(function(u){_.uO.clearTimeout(y);
throw u;})};var Fv=function(R){_.Z0.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$9755_flushTimer=new _.Jl(this.flushInterval);this.JSC$9755_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.bx(this,this.JSC$9755_flushTimer)};
_.O(Fv,_.Z0);Fv.prototype.sendIsolatedPayload=function(R){this.shouldSendIsolatedPayload=R;this.invocationLimit=1};
var U1G=function(R){R.JSC$9755_flushTimer.enabled||R.JSC$9755_flushTimer.start();R.invocationCount++;R.invocationCount>=R.invocationLimit&&R.snapshotAndFlush()};
Fv.prototype.snapshotAndFlush=function(){var R=this.metricMap.values();R=[].concat(_.P$(R)).filter(function(y){return y.cellMap.size});
R.length&&this.streamzLogger.flush(R,this.shouldSendIsolatedPayload);kRV(R);this.invocationCount=0;this.JSC$9755_flushTimer.enabled&&this.JSC$9755_flushTimer.stop()};
Fv.prototype.addNewCounter=function(R){var y=_.qy.apply(1,arguments);this.metricMap.has(R)||this.metricMap.set(R,new DPw(R,y))};
Fv.prototype.addNewEventMetric=function(R){var y=_.qy.apply(1,arguments);this.metricMap.has(R)||this.metricMap.set(R,new p$g(R,y))};
var Ehc=function(R,y){return R.disabledMetrics.has(y)?void 0:R.metricMap.get(y)};
Fv.prototype.JSC$9755_incrementCounter=function(R){this.JSC$9755_incrementCounterBy(R,1,_.qy.apply(1,arguments))};
Fv.prototype.JSC$9755_incrementCounterBy=function(R,y){var u=_.qy.apply(2,arguments),v=Ehc(this,R);v&&v instanceof DPw&&(v.JSC$9694_incrementCounterBy(y,u),U1G(this))};
Fv.prototype.record=function(R,y){var u=_.qy.apply(2,arguments),v=Ehc(this,R);v&&v instanceof p$g&&(v.record(y,u),U1G(this))};
var kRV=function(R){for(var y=0;y<R.length;y++)R[y].clear()};_.U8=function(R,y,u){u=u===void 0?{}:u;y=Error.call(this,y);this.message=y.message;"stack"in y&&(this.stack=y.stack);this.code=R;this.metadata=u;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.O(_.U8,Error);_.U8.prototype.toString=function(){var R="RpcError("+(sMS(this.code)||String(this.code))+")";this.message&&(R+=": "+this.message);return R};_.$1b=_.uO.JSON.parse;_.kj=_.uO.JSON.stringify;_.W8=_.uO.JSON.parse;_.q6T=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 XsG=function(R){switch(R){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var m1g,AST=function(){};
_.IE(AST,_.z2T);AST.prototype.createInstance=function(){return new XMLHttpRequest};
m1g=new AST;_.E8=function(R){_.nT.call(this);this.headers=new Map;this.JSC$9764_xmlHttpFactory_=R||null;this.JSC$9764_active_=!1;this.JSC$9764_xhr_=null;this.JSC$9764_lastUri_="";this.JSC$9764_lastErrorCode_=0;this.JSC$9764_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9764_timeoutId_=null;this.responseType_="";this.JSC$9764_withCredentials_=!1};
_.IE(_.E8,_.nT);var D1Y=/^https?$/i,psg=["POST","PUT"],tQL=[],CAT=function(R,y,u,v,Q,M,K){var h=new _.E8;tQL.push(h);y&&h.listen("complete",y);h.listenOnce("ready",h.cleanupSend_);M&&(h.timeoutInterval_=Math.max(0,M));K&&(h.JSC$9764_withCredentials_=K);h.send(R,u,v,Q)};
_.E8.prototype.cleanupSend_=function(){this.dispose();_.m4(tQL,this)};
_.E8.prototype.send=function(R,y,u,v){if(this.JSC$9764_xhr_)throw Error("Aa`"+this.JSC$9764_lastUri_+"`"+R);y=y?y.toUpperCase():"GET";this.JSC$9764_lastUri_=R;this.JSC$9764_lastError_="";this.JSC$9764_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9764_active_=!0;this.JSC$9764_xhr_=this.createXhr();this.JSC$9764_xhr_.onreadystatechange=G0((0,_.HY)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9764_xhr_.open(y,String(R),!0),this.inOpen_=!1}catch(K){cS8(this,K);return}R=u||"";u=new Map(this.headers);
if(v)if(Object.getPrototypeOf(v)===Object.prototype)for(var Q in v)u.set(Q,v[Q]);else if(typeof v.keys==="function"&&typeof v.get==="function"){Q=_.V(v.keys());for(var M=Q.next();!M.done;M=Q.next())M=M.value,u.set(M,v.get(M))}else throw Error("Ba`"+String(v));v=Array.from(u.keys()).find(function(K){return"content-type"==K.toLowerCase()});
Q=_.uO.FormData&&R instanceof _.uO.FormData;!_.XU(psg,y)||v||Q||u.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");y=_.V(u);for(v=y.next();!v.done;v=y.next())u=_.V(v.value),v=u.next().value,u=u.next().value,this.JSC$9764_xhr_.setRequestHeader(v,u);this.responseType_&&(this.JSC$9764_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9764_xhr_&&this.JSC$9764_xhr_.withCredentials!==this.JSC$9764_withCredentials_&&(this.JSC$9764_xhr_.withCredentials=this.JSC$9764_withCredentials_);
try{this.JSC$9764_timeoutId_&&(clearTimeout(this.JSC$9764_timeoutId_),this.JSC$9764_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9764_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9764_xhr_.send(R),this.inSend_=!1}catch(K){cS8(this,K)}};
_.E8.prototype.createXhr=function(){return this.JSC$9764_xmlHttpFactory_?this.JSC$9764_xmlHttpFactory_.createInstance():m1g.createInstance()};
_.E8.prototype.timeout_=function(){typeof MjW!="undefined"&&this.JSC$9764_xhr_&&(this.JSC$9764_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9764_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var cS8=function(R,y){R.JSC$9764_active_=!1;R.JSC$9764_xhr_&&(R.inAbort_=!0,R.JSC$9764_xhr_.abort(),R.inAbort_=!1);R.JSC$9764_lastError_=y;R.JSC$9764_lastErrorCode_=5;aic(R);S6g(R)},aic=function(R){R.errorDispatched_||(R.errorDispatched_=!0,R.dispatchEvent("complete"),R.dispatchEvent("error"))};
_.E8.prototype.abort=function(R){this.JSC$9764_xhr_&&this.JSC$9764_active_&&(this.JSC$9764_active_=!1,this.inAbort_=!0,this.JSC$9764_xhr_.abort(),this.inAbort_=!1,this.JSC$9764_lastErrorCode_=R||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),S6g(this))};
_.E8.prototype.disposeInternal=function(){this.JSC$9764_xhr_&&(this.JSC$9764_active_&&(this.JSC$9764_active_=!1,this.inAbort_=!0,this.JSC$9764_xhr_.abort(),this.inAbort_=!1),S6g(this,!0));_.E8.superClass_.disposeInternal.call(this)};
_.E8.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)Y68(this);else this.onReadyStateChangeEntryPoint_()};
_.E8.prototype.onReadyStateChangeEntryPoint_=function(){Y68(this)};
var Y68=function(R){if(R.JSC$9764_active_&&typeof MjW!="undefined")if(R.inSend_&&_.qg(R)==4)setTimeout(R.onReadyStateChange_.bind(R),0);else if(R.dispatchEvent("readystatechange"),R.isComplete()){R.JSC$9764_active_=!1;try{if(R.isSuccess())R.dispatchEvent("complete"),R.dispatchEvent("success");else{R.JSC$9764_lastErrorCode_=6;try{var y=_.qg(R)>2?R.JSC$9764_xhr_.statusText:""}catch(u){y=""}R.JSC$9764_lastError_=y+" ["+R.getStatus()+"]";aic(R)}}finally{S6g(R)}}},S6g=function(R,y){if(R.JSC$9764_xhr_){R.JSC$9764_timeoutId_&&
(clearTimeout(R.JSC$9764_timeoutId_),R.JSC$9764_timeoutId_=null);
var u=R.JSC$9764_xhr_;R.JSC$9764_xhr_=null;y||R.dispatchEvent("ready");try{u.onreadystatechange=null}catch(v){}}};
_.E8.prototype.isActive=function(){return!!this.JSC$9764_xhr_};
_.E8.prototype.isComplete=function(){return _.qg(this)==4};
_.E8.prototype.isSuccess=function(){var R=this.getStatus(),y;if(!(y=XsG(R))){if(R=R===0)R=z7g(String(this.JSC$9764_lastUri_)),R=!D1Y.test(R);y=R}return y};
_.qg=function(R){return R.JSC$9764_xhr_?R.JSC$9764_xhr_.readyState:0};
_.J=_.E8.prototype;_.J.getStatus=function(){try{return _.qg(this)>2?this.JSC$9764_xhr_.status:-1}catch(R){return-1}};
_.J.getResponseText=function(){try{return this.JSC$9764_xhr_?this.JSC$9764_xhr_.responseText:""}catch(R){return""}};
_.J.getResponse=function(){try{if(!this.JSC$9764_xhr_)return null;if("response"in this.JSC$9764_xhr_)return this.JSC$9764_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9764_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9764_xhr_)return this.JSC$9764_xhr_.mozResponseArrayBuffer}return null}catch(R){return null}};
_.J.getAllResponseHeaders=function(){return this.JSC$9764_xhr_&&_.qg(this)>=2?this.JSC$9764_xhr_.getAllResponseHeaders()||"":""};
_.J.getLastError=function(){return typeof this.JSC$9764_lastError_==="string"?this.JSC$9764_lastError_:String(this.JSC$9764_lastError_)};var yTS=function(){};
yTS.prototype.send=function(R,y,u){y=y===void 0?function(){}:y;
u=u===void 0?function(){}:u;
CAT(R.url,function(v){v=v.target;v.isSuccess()?y(v.getResponseText()):u(v.getStatus())},R.requestType,R.body,R.requestHeaders,R.timeoutMillis,R.withCredentials)};
yTS.prototype.getTransmissionType=function(){return 1};var Lvc=function(R,y){this.qlR=R;this.event=y;this.startTime=ws()},JTO;
Lvc.prototype.done=function(){this.qlR.nM(this.event,ws()-this.startTime)};
var XC=function(){KT.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.O(XC,KT);_.mF=function(R,y,u){var v=ws();y=y();R.nM(u,ws()-v);return y};
JTO=function(){XC.apply(this,arguments)};
_.O(JTO,XC);_.J=JTO.prototype;_.J.bGh=function(){};
_.J.cB=function(){};
_.J.nM=function(){};
_.J.logError=function(){};
_.J.o0=function(){};
_.J.niL=function(){};
_.J.giL=function(){};
_.J.pZS=function(){};
var sr8=function(R){XC.call(this);var y=this;this.yR=R;this.TEST_ONLY={xhw:function(){return y.yR},
getExperimentIds:function(){return y.yR.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void y.yR.dispose()})};
_.O(sr8,XC);_.J=sr8.prototype;_.J.update=function(R){this.yR.dispose();this.yR=R};
_.J.cB=function(R){this.yR.cB(R)};
_.J.nM=function(R,y){this.yR.nM(R,y)};
_.J.logError=function(R){this.yR.logError(R)};
_.J.o0=function(){this.yR.o0()};
_.J.niL=function(R){this.yR.niL(R)};
_.J.giL=function(R){this.yR.giL(R)};
_.J.pZS=function(R){this.yR.pZS(R)};
_.J.bGh=function(R){this.yR.bGh(R)};
var zS8=function(R,y){_.Z0.call(this);var u=this;this.callback=R;this.xre=y;this.c8i=-y;this.addOnDisposeCallback(function(){return void clearTimeout(u.timer)})};
_.O(zS8,_.Z0);var ghK=function(R){if(R.timer===void 0){var y=Math.max(0,R.c8i+R.xre-ws());R.timer=setTimeout(function(){try{R.callback()}finally{R.c8i=ws(),R.timer=void 0}},y)}},CvT=function(R,y){XC.call(this);
this.metrics=R;this.vx=y};
_.O(CvT,XC);_.J=CvT.prototype;_.J.bGh=function(R){this.metrics.mcL.record(R,this.vx)};
_.J.cB=function(R){this.metrics.eventCount.increment(R,this.vx)};
_.J.nM=function(R,y){this.metrics.jJX.record(y,R,this.vx)};
_.J.logError=function(R){this.metrics.errorCount.increment(R,this.vx)};
_.J.niL=function(R){this.metrics.hUj.increment(R,this.vx)};
_.J.giL=function(R){this.metrics.qNX.increment(R,this.vx)};
_.J.pZS=function(R){this.metrics.zUV.increment(R,this.vx)};
var iJL=function(R,y){y=y===void 0?[]:y;var u={vx:R.vx||"_",brH:R.brH||[],gM8:R.gM8|0,destinationUrl:R.destinationUrl,disableClearcutCredentialBinding:R.disableClearcutCredentialBinding,mUS:R.mUS||function(){},
kwS:R.kwS||function(M,K){return MX4(M,K,u.mUS,u.destinationUrl,u.disableClearcutCredentialBinding)}},v=u.kwS("50",u.brH.concat(y));
CvT.call(this,{mcL:new kB5(v),errorCount:new Xg5(v),eventCount:new $yV(v),jJX:new qo8(v),qTx:new EEK(v),hUj:new myc(v),qNX:new Aqw(v),zUV:new DyL(v)},u.vx);var Q=this;this.TEST_ONLY={getExperimentIds:function(){return Q.options.brH.concat(Q.xNe).sort(function(M,K){return M-K})}};
this.options=u;this.service=v;this.rCN=!R.kwS;this.flushDebouncer=new zS8(function(){return void Q.service.snapshotAndFlush()},u.gM8);
this.addOnDisposeCallback(function(){Q.flushDebouncer.dispose();Q.rCN&&Q.service.dispose()});
(this.xNe=y.slice()).sort(_.nSE)};
_.O(iJL,CvT);iJL.prototype.o0=function(){ghK(this.flushDebouncer)};var IUP=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(IUP,_.y4);_.hm4=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(_.hm4,_.y4);var CX=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R,0,CX.messageId)};
_.O(CX,_.y4);var Rpg=_.$y4(CX);CX.messageId="bfkj";var VXS=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(VXS,_.y4);var Us4=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(Us4,_.y4);var yDY=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(yDY,_.y4);var uvc=_.hq(yDY);_.xv=function(){var R=this;this.promise=new Promise(function(y,u){R.resolve=y;R.reject=u})};_.A8=function(R){_.Z0.call(this);var y=this;this.axn=Math.floor(Math.random()*200);this.uYw=new yDY;if("challenge"in R&&Rpg(R.challenge)){var u=_.$U(R.challenge,4,void 0,PK);var v=_.$U(R.challenge,5,void 0,PK);_.$U(R.challenge,7,void 0,PK)&&(this.uYw=uvc(_.$U(R.challenge,7,void 0,PK)))}else u=R.program,v=R.globalName;this.addOnDisposeCallback(function(){var Z,P,k;return _.I(function(E){if(E.nextAddress==1)return E.yield(y.iMw,2);Z=E.yieldResult;P=Z.aYL;(k=P)==null||k();_.f$(E)})});
this.yM=KiG(R.pKf||{},this.uYw);_.bx(this,this.yM);var Q=new _.xv;this.iMw=Q.promise;this.yM.cB("t");var M=this.yM.share(),K=new Lvc(M,"t"),h=function(Z,P,k,E){if(!y.yM.isDisposed()){var D="k";P?D="h":k&&(D="u");D!=="k"?E!==0&&(y.yM.cB(D),y.yM.nM(D,Z)):y.axn<=0?(y.yM.cB(D),y.yM.nM(D,Z),y.axn=Math.floor(Math.random()*200)):y.axn--}},b=function(Z,P,k,E){Promise.resolve().then(function(){K.done();
M.o0();M.dispose();Q.resolve({u5e:Z,aYL:P,fAJ:k,wbN:E})})};
if(!_.uO[v])throw this.yM.logError(25),Error("Ca");if(!_.uO[v].a)throw this.yM.logError(26),Error("Da");try{var N=_.uO[v].a;v=[];for(var T=[],x=k7E(this.uYw),B=0;B<x.length;B++)v.push(x[B]),T.push(1);var l=EBL(this.uYw);for(x=0;x<l.length;x++)v.push(l[x]),T.push(2);this.eX7=_.V(N(u,b,!0,R.lYR,h,[v,T],_.$U(this.uYw,5))).next().value;this.zRl=Q.promise.then(function(){})}catch(Z){throw this.yM.logError(28),Z;
}};
_.O(_.A8,_.Z0);_.A8.prototype.snapshot=function(R){if(this.isDisposed())throw Error("Ea");this.yM.cB("n");var y=this.yM.share();return this.iMw.then(function(u){var v=u.u5e;return new Promise(function(Q){var M=new Lvc(y,"n");v(function(K){M.done();y.bGh(K.length);y.o0();y.dispose();Q(K)},[R.j1,
R.qxd,R.toX,R.qgO])})})};
_.A8.prototype.iKq=function(R){this.iMw.then(function(y){var u;(u=y.fAJ)==null||u(R)})};
_.A8.prototype.luN=function(R,y){return this.iMw.then(function(u){var v;return(v=u.wbN)==null?void 0:v(R,y,!1)})};
_.A8.prototype.zYx=function(){return this.yM.share()};var v7g=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(v7g,_.y4);var YlP=_.$y4(v7g);var Q_w=function(){this.promises={};this.bYg=null},j_g=function(){Q_w.instance||(Q_w.instance=new Q_w);
return Q_w.instance},JDg=function(R,y){return MZw(R,_.Ne(y,IUP,1,PK),_.Ne(y,_.hm4,2,PK),_.$U(y,3,void 0,PK))},MZw=function(R,y,u,v){if(!y&&!u)return Promise.resolve();
if(!v)return w54(y,u);var Q;(Q=R.promises)[v]||(Q[v]=new Promise(function(M,K){w54(y,u).then(function(){R.bYg=v;M()},function(h){delete R.promises[v];
K(h)})}));
return R.promises[v]};var VZL=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(VZL,_.y4);var iFg=function(R,y){return _.R2(R,1,y)},Ka8=function(R,y){return _.R2(R,2,y)};var Dd=function(R){_.Z0.call(this);var y=this;this.options=R;this.hVh=new _.xv;this.zRl=this.hVh.promise;this.vTK=new _.xv;this.skO=1;this.kQS=new _.xv;this.lmq=[];this.i5d=R.i5d||function(){};
this.otL=new sr8(KiG(R.pKf||{}));I0g(this,R.gZ,R.tsv,R.eSk,R.f0R,Object.assign({},hpV,R.jYN||{}));this.addOnDisposeCallback(function(){return void bFc(y)})};
_.O(Dd,_.Z0);Dd.prototype.snapshot=function(R){var y=this;return _.I(function(u){switch(u.nextAddress){case 1:if(y.isDisposed())throw Error("Ea");if(y.qI||y.yVg){u.jumpTo(2);break}return u.yield(y.vTK.promise,2);case 2:if(!y.qI){u.jumpTo(4);break}return u.yield(y.qI.snapshot(R),5);case 5:return u.return(u.yieldResult);case 4:throw y.yVg;}})};
var Fac=function(R){var y;return _.I(function(u){if(R.isDisposed())throw Error("Ea");(y=R.fA)!=null&&(y.endTimeMs=0,y.resolver(1));return u.yield(R.kQS.promise,0)})},bFc=function(R){R.yVg=Error("Ga");
R.vTK.resolve();$sL(R.hVh.promise);R.hVh.reject(Error("Ga"));R.otL.dispose();Promise.all(R.lmq).then(function(){var u;return _.I(function(v){(u=R.qI)==null||u.dispose();R.qI=void 0;_.f$(v)})});
R.lmq=[];var y;(y=R.fA)!=null&&(y.endTimeMs=0,y.resolver(1));$sL(R.kQS.promise);R.kQS.reject(Error("Ga"))};
Dd.prototype.iKq=function(R){var y,u;(y=this.qI)==null||(u=y.iKq)==null||u.call(y,R)};
Dd.prototype.luN=function(R,y){var u,v,Q;return(Q=(u=this.qI)==null?void 0:(v=u.luN)==null?void 0:v.call(u,R,y))!=null?Q:Promise.resolve()};
var wYK=function(R,y){var u=R.i5d;R.i5d=function(){u();y()}},Ns5=function(R,y){R.isDisposed()||(R.qI=y,R.otL.update(y.zYx()),R.vTK.resolve(),R.hVh.resolve(void 0),R.i5d())};
Dd.prototype.handleError=function(R){if(!this.isDisposed()){this.yVg=R;this.vTK.resolve();var y,u;(u=(y=this.options).laN)==null||u.call(y,R)}};
var TsY=function(R,y){y&&(Promise.all(R.lmq).then(function(){return void y.dispose()}),R.lmq=[])},pT=function(R,y){R.skO=y;
var u,v;(v=(u=R.options).oaJ)==null||v.call(u,y)},o75=function(R){R.isDisposed()||(R.kQS.resolve(),R.kQS=new _.xv)},I0g=function(R,y,u,v,Q,M){v=v===void 0?j_g():v;
Q=Q===void 0?Promise.resolve(void 0):Q;var K,h,b,N,T,x,B,l,Z,P,k,E;_.I(function(D){switch(D.nextAddress){case 1:return D.yield(0,3);case 3:h=null;if(!K){D.jumpTo(6);break}pT(R,7);_.wY(D,7);return D.yield(eZ(K.snapshot({}),M.t9R,function(){return Promise.resolve("E:CTO")}),9);
case 9:h=D.yieldResult;_.c5(D,6);break;case 7:_.B$(D),h="E:UCE";case 6:b=void 0,N=K?M.ags:M.rke,T=new KF(N,M.cke,M.t2R,M.xGe),x=1;case 10:if(!(x<=M.maxAttempts)){D.jumpTo(12);break}if(x===1){D.jumpTo(13);break}pT(R,0);R.fA=new xeg(T.getValue(),M.tLj,M.fHB);return D.yield(R.fA.promise,14);case 14:B=D.yieldResult,R.fA=void 0,B===1?(x=1,T.reset()):PBV(T);case 13:_.wY(D,15);l=void 0;if(u){l=u;D.jumpTo(17);break}pT(R,5);Z=v.bYg;return D.yield(eZ(BsY(y,Z,h),M.rpe,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:l=D.yieldResult;case 17:return pT(R,3),D.yield(eZ(JDg(v,l),M.n1X,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return pT(R,8),D.yield(Q,20);case 20:return P=new _.A8({challenge:l,pKf:R.options.pKf,lYR:R.options.lYR}),D.yield(eZ(P.zRl,M.goV,function(){return Promise.reject(Error("Ja"))}),21);
case 21:b=P;D.jumpTo(12);break;case 15:k=_.B$(D),R.handleError(k),o75(R);case 11:x++;D.jumpTo(10);break;case 12:if(R.isDisposed()){D.jumpTo(5);break}b&&(u=void 0,TsY(R,K),K=b,Ns5(R,b),o75(R));pT(R,2);R.fA=new xeg(M.rHm,M.tLj,M.fHB);return D.yield(R.fA.promise,22);case 22:R.fA=void 0;if(R.isDisposed()){D.jumpTo(5);break}D.jumpTo(3);break;case 5:(E=K)==null||E.dispose(),_.f$(D)}})};
Dd.prototype.zYx=function(){return this.otL.share()};
var hpV={rHm:432E5,tLj:3E5,fHB:10,t9R:1E4,rpe:3E4,n1X:3E4,goV:6E4,rke:1E3,ags:6E4,cke:6E5,t2R:.25,xGe:2,maxAttempts:10},xeg=function(R,y,u){var v=this;this.endTimeMs=Date.now()+R;this.promise=new Promise(function(M){v.resolver=M});
var Q=function(){var M=v.endTimeMs-Date.now();M<=u?v.resolver(0):setTimeout(Q,Math.min(M,y))};
Q()};var f0c,Ezz=(f0c=Math.imul)!=null?f0c:function(R,y){return R*y|0},lx=[196,
200,224,18],t8=function(R,y,u){u=u===void 0?[]:u;this.maxItems=R;this.l3=y===void 0?0:y;this.sY=u},epK=function(R){var y=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!y)return new t8(R);var u=y.split(",");if(u.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new t8(R);y=u.slice(1);y.length===1&&y[0]===""&&(y=[]);u=Number(u[0]);return isNaN(u)||u<0||u>y.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new t8(R)):new t8(R,u,y)};
t8.prototype.serialize=function(){return String(this.l3)+","+this.sY.join()};
t8.prototype.insert=function(R,y){var u=void 0;if(this.sY[this.l3]!==R){var v=this.sY.indexOf(R);v!==-1?(this.sY.splice(v,1),v<this.l3&&this.l3--,this.sY.splice(this.l3,0,R)):(u=this.sY[this.l3],this.sY[this.l3]=R)}this.l3=(this.l3+1)%this.maxItems;R=NRc("iU5q-!O9@$",this.serialize());u&&R&&y(u);return R};
var l05=function(R,y){this.a7L=y;try{var u=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(v){u=!1}u&&(this.index=epK(R))},OFb=function(R,y,u,v,Q){var M=R.index?_.mF(R.a7L,function(){return mCU(R.index,qLP(y),u,v,Q)},"W"):"u";
R.a7L.pZS(M)},ZFY=function(R,y,u){var v=_.V(R.index?_.mF(R.a7L,function(){return ATW(qLP(y),u)},"R"):["u"]),Q=v.next().value;
v=v.next().value;R.a7L.giL(Q);return v};var HFK={toString:function(R){var y=[],u=0;R-=-2147483648;y[u++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(R%52);for(R=Math.floor(R/52);R>0;)y[u++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(R%62),R=Math.floor(R/62);return y.join("")}};var rDK=function(R){R=n7V(R);for(var y=2654435769,u=2654435769,v=314159265,Q=R.length,M=Q,K=0,h=function(){y-=u;y-=v;y^=v>>>13;u-=v;u-=y;u^=y<<8;v-=y;v-=u;v^=u>>>13;y-=u;y-=v;y^=v>>>12;u-=v;u-=y;u^=y<<16;v-=y;v-=u;v^=u>>>5;y-=u;y-=v;y^=v>>>3;u-=v;u-=y;u^=y<<10;v-=y;v-=u;v^=u>>>15};M>=12;M-=12,K+=12)y+=GlY(R,K),u+=GlY(R,K+4),v+=GlY(R,K+8),h();
v+=Q;switch(M){case 11:v+=R[K+10]<<24;case 10:v+=R[K+9]<<16;case 9:v+=R[K+8]<<8;case 8:u+=R[K+7]<<24;case 7:u+=R[K+6]<<16;case 6:u+=R[K+5]<<8;case 5:u+=R[K+4];case 4:y+=R[K+3]<<24;case 3:y+=R[K+2]<<16;case 2:y+=R[K+1]<<8;case 1:y+=R[K]}h();return HFK.toString(v)},n7V=function(R){for(var y=[],u=0;u<R.length;u++)y.push(R.charCodeAt(u));
return y},GlY=function(R,y){return R[y]+(R[y+1]<<8)+(R[y+2]<<16)+(R[y+3]<<24)};var cc=function(R){_.Z0.call(this);this.m4=R;this.amg=new _.xv};
_.O(cc,_.Z0);var PxV=function(R,y){var u=setTimeout(function(){R.amg.resolve()},y);
R.addOnDisposeCallback(function(){return void clearTimeout(u)})};
cc.prototype.nlN=function(R,y){var u=this.q5(R);y==null||y(u);return _.mF(this.m4,function(){return _.nZ(u,2)},this.vyH)};
var Wai=function(R,y,u,v){return _.mF(R.m4,function(){return u?R.nlN(y,v):R.q5(y,v)},R.yxd)},deT=function(R,y,u,v){cc.call(this,R);
this.c9v=y;this.zxN=u;this.yxd="m";this.vyH="x";this.t6O=0;PxV(this,v)};
_.O(deT,cc);deT.prototype.q5=function(R,y){var u=this;this.m4.cB(this.yxd);++this.t6O>=this.zxN&&this.amg.resolve();var v=R();R=_.mF(this.m4,function(){return u.c9v(v)},"C");
if(R===void 0)throw new Vb(17,"YNJ:Undefined");if(!(R instanceof Uint8Array))throw new Vb(18,"ODM:Invalid");y==null||y(R);return R};
var Uec=function(R,y,u){cc.call(this,R);this.dij=y;this.yxd="f";this.vyH="z";PxV(this,u)};
_.O(Uec,cc);Uec.prototype.q5=function(){return this.dij};
var kl5=function(R,y,u){cc.call(this,R);this.zXR=y;this.yxd="w";this.vyH="z";PxV(this,u)};
_.O(kl5,cc);kl5.prototype.q5=function(){var R=this;return _.mF(this.m4,function(){return _.zT(R.zXR)},"d")};
kl5.prototype.nlN=function(){return this.zXR};
var E7b=function(R,y){cc.call(this,R);this.error=y;this.yxd="e";this.vyH="y"};
_.O(E7b,cc);var $eg=function(R,y){var u=(y(R.error.message)+":"+y(R.error.stack)).substring(0,2048);y=u.length+1;u=DCU(u);var v=new Uint8Array(4+u.length);v.set([42,y&127|128,y>>7,R.error.code]);v.set(u,4);return v};
E7b.prototype.q5=function(){if(this.ykg)return this.ykg;this.ykg=$eg(this,function(R){return"_"+rDK(R)});
return $eg(this,function(R){return R})};
var qXV=function(R,y,u){cc.call(this,R);this.mtj=y;this.clientState=u;this.yxd="S";this.vyH="q"};
_.O(qXV,cc);qXV.prototype.q5=function(){var R=Math.floor(Date.now()/1E3),y=[Math.random()*255,Math.random()*255],u=y.concat([this.mtj&255,this.clientState],[R>>24&255,R>>16&255,R>>8&255,R&255]);R=new Uint8Array(2+u.length);R[0]=34;R[1]=u.length;R.set(u,2);u=R.subarray(2);for(var v=y=y.length;v<u.length;++v)u[v]^=u[v%y];this.m4.niL(this.clientState);return R};var XY5={tPj:3E4,lYV:2E4},ae=function(R){_.Z0.call(this);var y=this;this.uRf=new _.xv;this.eJd=0;this.nr=void 0;this.state=2;this.vm=R.vm;this.gZ=R.gZ;this.jYN=Object.assign({},XY5,R.jYN||{});this.tU=R.vm.zYx();var u;this.onError=(u=R.onError)!=null?u:function(){};
this.xMx=R.xMx||!1;if(meg(R)){var v=this.vm;this.gP8=function(){return Fac(v).catch(function(K){K=y.reportError(new Vb(y.kd?20:32,"TRG:Disposed",K));y.nr=K;var h;(h=y.kd)==null||h.dispose();y.kd=void 0;y.uRf.reject(K)})};
wYK(v,function(){return void ADb(y)});
v.skO===2&&ADb(this)}else this.gP8=R.hkm,ADb(this);var Q=this.tU.share();Q.cB("o");var M=new Lvc(Q,"o");this.uRf.promise.then(function(){M.done();Q.o0();Q.dispose()},function(){return void Q.dispose()});
this.addOnDisposeCallback(function(){y.kd?(y.kd.dispose(),y.kd=void 0):y.nr?y.tU.o0():(y.nr=y.reportError(new Vb(32,"TNP:Disposed")),y.tU.o0(),y.uRf.reject(y.nr))});
_.bx(this,this.tU)};
_.O(ae,_.Z0);ae.prototype.qDi=function(){return this.uRf.promise};
var De5=function(R,y){if(!(y instanceof Vb))if(y instanceof _.U8){var u=Error(y.toString());u.stack=y.stack;y=new Vb(11,"EBH:Error",u)}else y=new Vb(12,"BSO:Unknown",y);return R.reportError(y)},ADb=function(R){var y,u,v,Q,M,K,h,b,N,T,x,B,l,Z,P;
return _.I(function(k){switch(k.nextAddress){case 1:y=void 0;R.eJd++;u=new _.xv;R.vm instanceof Dd&&R.vm.lmq.push(u.promise);if(!R.xMx){k.jumpTo(2);break}v=new _.xv;setTimeout(function(){return void v.resolve()});
return k.yield(v.promise,2);case 2:return Q=R.tU.share(),_.wY(k,4,5),R.state=5,M={},K=[],k.yield(eZ(R.vm.snapshot({j1:M,toX:K}),R.jYN.lYV,function(){return Promise.reject(new Vb(15,"MDA:Timeout"))}),7);
case 7:h=k.yieldResult;if(R.isDisposed())throw new Vb(R.kd?20:32,"MDA:Disposed");b=K[0];R.state=6;return k.yield(eZ(pYK(R.gZ,h),R.jYN.tPj,function(){return Promise.reject(new Vb(10,"BWB:Timeout"))}),8);
case 8:N=k.yieldResult;if(R.isDisposed())throw new Vb(R.kd?20:32,"BWB:Disposed");R.state=7;y=_.mF(Q,function(){var D=tZc(R,N,u,b);D.amg.promise.then(function(){return void R.gP8()});
return D},"i");
case 5:_.T9(k);Q.dispose();_.xL(k,6);break;case 4:T=_.B$(k);(x=y)==null||x.dispose();if(!R.nr){B=De5(R,T);u.resolve();var E;if(E=R.vm instanceof Dd&&R.eJd<2)a:if(T instanceof Vb)E=T.code!==32&&T.code!==20&&T.code!==10;else{if(T instanceof _.U8)switch(T.code){case 2:case 13:case 14:case 4:break;default:E=!1;break a}E=!0}if(E)return l=(1+Math.random()*.25)*(R.kd?6E4:1E3),Z=setTimeout(function(){return void R.gP8()},l),R.addOnDisposeCallback(function(){return void clearTimeout(Z)}),k.return();
R.nr=B}Q.logError(R.kd?13:14);R.uRf.reject(R.nr);return k.return();case 6:R.state=8,R.eJd=0,(P=R.kd)==null||P.dispose(),R.kd=y,R.uRf.resolve(),_.f$(k)}})},tZc=function(R,y,u,v){var Q=n_G(y,2)*1E3;
if(Q<=0)throw new Vb(31,"TTM:Invalid");if(_.$U(y,4))return new kl5(R.tU,_.$U(y,4),Q);if(!n_G(y,3))return new Uec(R.tU,KTU(_.nU(y,1)),Q);if(!v)throw new Vb(4,"PMD:Undefined");v=v(KTU(_.nU(y,1)));if(!(v instanceof Function))throw new Vb(16,"APF:Failed");R.plx=Math.floor((Date.now()+Q)/1E3);R=new deT(R.tU,v,n_G(y,3),Q);R.addOnDisposeCallback(function(){return void u.resolve()});
return R};
ae.prototype.q5=function(R){return cDi(this,Object.assign({},R),!1)};
ae.prototype.nlN=function(R){return cDi(this,Object.assign({},R),!0)};
ae.prototype.zVO=function(R){if(R>150)return!1;try{return this.cache=new l05(R,this.tU),!0}catch(y){return this.reportError(new Vb(22,"GBJ:init",y)),!1}};
ae.prototype.reportError=function(R){this.tU.logError(R.code);this.onError(R);return R};
var a0i=function(R,y){y=y instanceof Vb?y:new Vb(5,"TVD:error",y);return R.reportError(y)},cDi=function(R,y,u){try{if(R.isDisposed())throw new Vb(21,"BNT:disposed");
if(!R.kd&&R.nr)throw R.nr;var v,Q;return(Q=(v=SXi(R,y,u))!=null?v:YXc(R,y,u))!=null?Q:LaT(R,y,u)}catch(M){if(!y.r7J)throw a0i(R,M);return s_8(R,u,M)}},SXi=function(R,y,u){var v;
return(v=R.kd)==null?void 0:Wai(v,function(){return zpL(R,y)},u,function(Q){var M;
if(R.kd instanceof deT&&((M=y.e9)==null?0:M.nvs))try{var K;(K=R.cache)==null||OFb(K,zpL(R,y),Q,y.e9.tMd,R.plx-120)}catch(h){R.reportError(new Vb(24,"ELX:write",h))}})},YXc=function(R,y,u){var v;
if((v=y.e9)!=null&&v.k6O)try{var Q,M=(Q=R.cache)==null?void 0:ZFY(Q,zpL(R,y),y.e9.tMd);return M?u?_.mF(R.tU,function(){return _.nZ(M,2)},"a"):M:void 0}catch(K){R.reportError(new Vb(23,"RXO:read",K))}},LaT=function(R,y,u){var v={stack:[],
error:void 0,hasError:!1};try{if(!y.aDx)throw new Vb(29,"SDF:notready");return Wai(hbG(v,new qXV(R.tU,0,R.state)),function(){return zpL(R,y)},u)}catch(Q){v.error=Q,v.hasError=!0}finally{bfO(v)}},s_8=function(R,y,u){var v={stack:[],
error:void 0,hasError:!1};try{var Q=a0i(R,u);return Wai(hbG(v,new E7b(R.tU,Q)),function(){return[]},y)}catch(M){v.error=M,v.hasError=!0}finally{bfO(v)}},zpL=function(R,y){return y.ojS?y.ojS:y.j1?_.mF(R.tU,function(){return y.ojS=DCU(y.j1)},"c"):[]},meg=function(R){return Ui(function(y){if(!vT(y))return!1;
for(var u=_.V(Object.entries(R)),v=u.next();!v.done;v=u.next()){var Q=_.V(v.value);v=Q.next().value;Q=Q.next().value;if(!(v in y)){if(Q.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!Q(y[v]))return!1}return!0})}({vm:function(R){return Ui(function(y){return y instanceof R})}(Dd)},"");var g7T=function(){var R=_.Fb();this.JSC$9884_streamzService=R;R.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",Me("cookie_enabled"),Me("cookie_3p_enabled"),_.V7("browser"))};
g7T.prototype.increment=function(R,y,u){this.JSC$9884_streamzService.JSC$9755_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",R,y,u)};
var h_O=function(){var R=_.Fb();this.JSC$9908_streamzService=R;R.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",JD("tick"),Me("from_st_cookie"))};
h_O.prototype.increment=function(R,y){this.JSC$9908_streamzService.JSC$9755_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",R,y)};
var Cxc=function(){var R=_.Fb();this.JSC$9914_streamzService=R;R.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.V7("status"))};
Cxc.prototype.increment=function(R){this.JSC$9914_streamzService.JSC$9755_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",R)};
var RCg=function(){var R=_.Fb();this.JSC$9917_streamzService=R;R.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.V7("stage"),Me("is_using_ytd_player"),Me("has_expandable_tiles"))};
RCg.prototype.increment=function(R,y,u){this.JSC$9917_streamzService.JSC$9755_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",R,y,u)};
var y25=function(){var R=_.Fb();this.JSC$9920_streamzService=R;R.addNewCounter("/client_streamz/youtube/web/response_signature",_.V7("check_status"))};
y25.prototype.increment=function(R){this.JSC$9920_streamzService.JSC$9755_incrementCounter("/client_streamz/youtube/web/response_signature",R)};
var ulb=function(){var R=_.Fb();this.JSC$9923_streamzService=R;R.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.V7("sig"),JD("de"))};
ulb.prototype.increment=function(R,y){this.JSC$9923_streamzService.JSC$9755_incrementCounter("/client_streamz/youtube/web/e_sig_log",R,y)};
var va8=function(){var R=_.Fb();this.JSC$9926_streamzService=R;R.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.V7("sig"),JD("de"))};
va8.prototype.increment=function(R,y){this.JSC$9926_streamzService.JSC$9755_incrementCounter("/client_streamz/youtube/web/e_sig_en",R,y)};
_.Qn5=function(){var R=_.Fb();this.JSC$9929_streamzService=R;R.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.V7("action"))};
_.Qn5.prototype.increment=function(R){this.JSC$9929_streamzService.JSC$9755_incrementCounter("/client_streamz/youtube/web/enforcement_intent",R)};var Sw=window;var jng=(new Date).getTime();_.Ps.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.Ps.createSet("action","cite","data","formaction","href","manifest","poster","src");var MfG=function(R){this.servicePromise_=R;R.then((0,_.HY)(function(){},this),function(){},this)},J2i=function(R,y,u){R.servicePromise_.then(function(v){var Q=v[y];
if(!Q)throw Error("Ka`"+y);return Q.apply(v,u)})},Kuc=function(R,y,u){for(var v=Array(arguments.length-2),Q=2;Q<arguments.length;Q++)v[Q-2]=arguments[Q];
Q=VfL(R,y).then(function(M){return M.apply(null,v)},function(M){M=Error("La`"+y+"`"+R,{cause:M});
delete iyG[y];return _.qk(M)});
return new MfG(Q)},iyG={},VfL=function(R,y){var u=iyG[y];
if(u)return u;u=(u=_.D6(y))?_.NQ(u):(new _.F4(function(v,Q){var M=(new P7(document)).createElement("SCRIPT");M.async=!0;_.gC(M,_.lb(vMV(R)));M.onload=M.onreadystatechange=function(){M.readyState&&M.readyState!="loaded"&&M.readyState!="complete"||v()};
M.onerror=function(K){Q(Error("Ma`"+y+"`"+R,{cause:K}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(M)})).then(function(){var v=_.D6(y);
if(!v)throw Error("Na`"+y+"`"+R);return v});
return iyG[y]=u};var IK8={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},byK=function(){var R=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=p5P(function(){return _.I(function(y){if(y.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?y.return(Promise.resolve()):y.yield(hCT(R),2);R.rsaForList.length>
0&&document.addEventListener("click",R.requestAccessForHelpPanel);_.f$(y)})});
this.requestAccessForHelpPanel=function(){if(!(R.rsaForPromises.length>0)){for(var y=_.V(R.rsaForList),u=y.next();!u.done;u=y.next()){u=u.value;try{R.rsaForPromises.push(document.requestStorageAccessFor(u))}catch(v){}}Promise.all(R.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){R.reset()})}}};
byK.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var hCT=function(R){var y,u,v,Q;return _.I(function(M){switch(M.nextAddress){case 1:y=_.V(Object.values(IK8)),u=y.next();case 2:if(u.done){M.jumpTo(0);break}v=u.value;_.wY(M,5);return M.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:v}),7);case 7:Q=M.yieldResult;Q.state!=="granted"&&R.rsaForList.push(v);_.c5(M,3);break;case 5:_.B$(M);M.jumpTo(0);break;case 3:u=y.next(),M.jumpTo(2)}})};(new byK).initialize();var Fuc=function(R){this.JSC$9943_loader_=R};
Fuc.prototype.startHelp=function(R){J2i(this.JSC$9943_loader_,"startHelp",arguments)};
Fuc.prototype.JSC$9945_loadChatSupport=function(R){J2i(this.JSC$9943_loader_,"loadChatSupport",arguments)};
var Nhw=function(R,y){y=y||{};R=Kuc(wTT,"help.service.Lazy.create",R,{apiKey:y.apiKey||y.apiKey,asxUiUri:y.asxUiUri||y.asxUiUri,environment:y.environment||y.environment,flow:y.flow||y.flow,frdProductData:y.frdProductData||y.frdProductData,frdProductDataSerializedJspb:y.frdProductDataSerializedJspb||y.frdProductDataSerializedJspb,helpCenterPath:y.helpCenterPath||y.helpCenterPath,locale:y.locale||y.locale||"en-US".replace(/-/g,"_"),nonce:y.nonce||y.nonce,productData:y.productData||y.productData,receiverUri:y.receiverUri||
y.receiverUri,renderApiUri:y.renderApiUri||y.renderApiUri,theme:y.theme||y.theme,window:y.window||y.window});return new Fuc(R)},wTT=new $T(wmE,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var ThL=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(ThL,_.y4);var oaY=_.hq(ThL);_.x8c=new function(R,y,u,v){this.configType=R;this.flagName=u;this.defaultValue=v;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 fKG=function(){this.retriever=_.ua().resolve(Bh5)};cTS(Node);cTS(Element);var eCg=cTS(HTMLElement);cTS(SVGElement);var lKg,OyK,s8,ZyV;lKg=function(R){return typeof R.className=="string"?R.className:R.getAttribute&&R.getAttribute("class")||""};
OyK=function(R){return R.classList?R.classList:lKg(R).match(/\S+/g)||[]};
_.Yj=function(R,y){typeof R.className=="string"?R.className=y:R.setAttribute&&R.setAttribute("class",y)};
_.LT=function(R,y){return R.classList?R.classList.contains(y):_.XU(OyK(R),y)};
_.J6=function(R,y){if(R.classList)R.classList.add(y);else if(!_.LT(R,y)){var u=lKg(R);_.Yj(R,u+(u.length>0?" "+y:y))}};
s8=function(R,y){if(R.classList)Array.prototype.forEach.call(y,function(Q){_.J6(R,Q)});
else{var u={};Array.prototype.forEach.call(OyK(R),function(Q){u[Q]=!0});
Array.prototype.forEach.call(y,function(Q){u[Q]=!0});
y="";for(var v in u)y+=y.length>0?" "+v:v;_.Yj(R,y)}};
_.jp=function(R,y){R.classList?R.classList.remove(y):_.LT(R,y)&&_.Yj(R,Array.prototype.filter.call(OyK(R),function(u){return u!=y}).join(" "))};
ZyV=function(R,y){R.classList?Array.prototype.forEach.call(y,function(u){_.jp(R,u)}):_.Yj(R,Array.prototype.filter.call(OyK(R),function(u){return!_.XU(y,u)}).join(" "))};var Hyg=function(R){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=R.document},r2T=function(R,y){nac(R);
var u=document.createElement("div"),v;(v=y.parentNode)==null||v.insertBefore(u,y);u.tabIndex=0;u.id="fc-focus-trap-pre-div";u=document.createElement("div");var Q;(Q=y.parentNode)==null||Q.insertBefore(u,y.nextSibling);u.tabIndex=0;u.id="fc-focus-trap-post-div";var M=GFb(R,y),K=GFb(R,y,!0);M&&K&&(R.focusChangeHandler=function(){var h=R.document.activeElement;if(h)if(_.ma(y,h))R.previouslyFocusedElement=h;else if(h===R.document.activeElement)switch(R.previouslyFocusedElement){case M:K.focus();R.previouslyFocusedElement=
K;break;default:M.focus(),R.previouslyFocusedElement=M}},R.document.addEventListener("focus",R.focusChangeHandler,!0),R.document.addEventListener("focusin",R.focusChangeHandler))},nac=function(R){R.focusChangeHandler&&(document.removeEventListener("focus",R.focusChangeHandler,!0),document.removeEventListener("focusin",R.focusChangeHandler),R.focusChangeHandler=null);
var y;(y=document.getElementById("fc-focus-trap-pre-div"))==null||y.remove();var u;(u=document.getElementById("fc-focus-trap-post-div"))==null||u.remove()},P$b=function(R,y,u,v,Q){u=u===void 0?!0:u;
var M;Q=(M=Q===void 0?null:Q)!=null?M:GFb(R,y,v===void 0?!1:v);Q!==null&&(Q.focus(),u&&r2T(R,y))};
Hyg.prototype.disableButton=function(R,y){y=y===void 0?null:y;R.disabled=!0;y&&_.J6(R,y)};
var GFb=function(R,y,u){u=u===void 0?!1:u;if(kNG(y)&&!u)return y;var v=u?[].slice.call(y.children,0).reverse():y.children;v=_.V(v);for(var Q=v.next();!Q.done;Q=v.next())if(Q=Q.value,eCg(Q)&&(Q=GFb(R,Q,u)))return Q;return kNG(y)&&u?y:null};var WuK=function(R){this.originalBodyOverflow="";this.JSC$9969_domHelper=fL(R)};
WuK.prototype.enableScrolling=function(){this.JSC$9969_domHelper.JSC$9293_document_.body.style.overflow=this.originalBodyOverflow};_.IE(_.nF,_.Z0);_.J=_.nF.prototype;_.J.JSC$9972_id_=0;_.J.disposeInternal=function(){_.nF.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$9970_listener_;delete this.handler_};
_.J.start=function(R){this.stop();this.JSC$9972_id_=dK(this.callback_,R!==void 0?R:this.JSC$9970_interval_)};
_.J.stop=function(){this.isActive()&&_.uO.clearTimeout(this.JSC$9972_id_);this.JSC$9972_id_=0};
_.J.fire=function(){this.stop();this.JSC$9972_doAction_()};
_.J.isActive=function(){return this.JSC$9972_id_!=0};
_.J.JSC$9972_doAction_=function(){this.JSC$9972_id_=0;this.JSC$9970_listener_&&this.JSC$9970_listener_.call(this.handler_)};_.V9=function(R){_.Z0.call(this);this.handler_=R;this.JSC$9973_keys_={}};
_.IE(_.V9,_.Z0);var d8L=[];_.V9.prototype.listen=function(R,y,u,v){Array.isArray(y)||(y&&(d8L[0]=y.toString()),y=d8L);for(var Q=0;Q<y.length;Q++){var M=_.E4(R,y[Q],u||this.handleEvent,v||!1,this.handler_||this);if(!M)break;this.JSC$9973_keys_[M.key]=M}return this};
_.V9.prototype.listenOnce=function(R,y,u,v){return U8K(this,R,y,u,v)};
var U8K=function(R,y,u,v,Q,M){if(Array.isArray(u))for(var K=0;K<u.length;K++)U8K(R,y,u[K],v,Q,M);else{y=Wy(y,u,v||R.handleEvent,Q,M||R.handler_||R);if(!y)return R;R.JSC$9973_keys_[y.key]=y}return R};
_.V9.prototype.unlisten=function(R,y,u,v,Q){if(Array.isArray(y))for(var M=0;M<y.length;M++)this.unlisten(R,y[M],u,v,Q);else if(R=Qr5(R,y,u||this.handleEvent,_.Sv(v)?!!v.capture:!!v,Q||this.handler_||this))dZ(R),delete this.JSC$9973_keys_[R.key];return this};
_.V9.prototype.removeAll=function(){_.Ps.forEach(this.JSC$9973_keys_,function(R,y){this.JSC$9973_keys_.hasOwnProperty(y)&&dZ(R)},this);
this.JSC$9973_keys_={}};
_.V9.prototype.disposeInternal=function(){_.V9.superClass_.disposeInternal.call(this);this.removeAll()};
_.V9.prototype.handleEvent=function(){throw Error("Oa");};var z0=function(){_.Z0.call(this);this.services_={}};
_.IE(z0,_.Z0);z0.prototype.connect=function(R){R&&R()};
z0.prototype.isConnected=function(){return!0};
z0.prototype.registerService=function(R,y,u){this.services_[R]={callback:y,objectPayload:!!u}};
z0.prototype.getService=function(R,y){var u=this.services_[R];return u?u:this.defaultService_?{callback:_.lh(this.defaultService_,R),objectPayload:_.Sv(y)}:null};
var kFi=function(R,y){if(y&&typeof R==="string")try{return JSON.parse(R)}catch(u){return null}else if(!y&&typeof R!=="string")return(0,_.kj)(R);return R};
z0.prototype.disposeInternal=function(){z0.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 gK=function(R,y){this.sequence_=[];this.onCancelFunction_=R;this.defaultScope_=y||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};
gK.prototype.cancel=function(R){if(this.fired_)this.result_ instanceof gK&&this.result_.cancel();else{if(this.parent_){var y=this.parent_;delete this.parent_;R?y.cancel(R):(y.branches_--,y.branches_<=0&&y.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new CT(this))}};
gK.prototype.continue_=function(R,y){this.blocked_=!1;EaY(this,R,y)};
var EaY=function(R,y,u){R.fired_=!0;R.result_=u;R.hadError_=!y;$8T(R)},XT8=function(R){if(R.fired_){if(!R.silentlyCanceled_)throw new qpb(R);
R.silentlyCanceled_=!1}};
gK.prototype.callback=function(R){XT8(this);EaY(this,!0,R)};
gK.prototype.errback=function(R){XT8(this);EaY(this,!1,R)};
var m8Y=function(R,y,u){Rq(R,y,null,u)};
gK.prototype.finally=function(R){var y=this;return A2g(new Promise(function(u,v){Rq(y,function(Q){R();u(Q)},function(Q){R();
v(Q)})}))};
var Rq=function(R,y,u,v){var Q=R.fired_;Q||(y===u?y=u=G0(y):(y=G0(y),u=G0(u)));R.sequence_.push([y,u,v]);Q&&$8T(R)};
gK.prototype.then=function(R,y,u){var v,Q,M=new _.F4(function(K,h){Q=K;v=h});
Rq(this,Q,function(K){K instanceof CT?M.cancel():v(K);return D88},this);
return M.then(R,y,u)};
hSw(gK);var pT5=function(R,y){y instanceof gK?m8Y(R,(0,_.HY)(y.branch,y)):m8Y(R,function(){return y})};
gK.prototype.branch=function(R){var y=new gK;Rq(this,y.callback,y.errback,y);R&&(y.parent_=this,this.branches_++);return y};
gK.prototype.isError=function(R){return R instanceof Error};
var tfG=function(R){return az(R.sequence_,function(y){return typeof y[1]==="function"})},D88={},$8T=function(R){if(R.unhandledErrorId_&&R.fired_&&tfG(R)){var y=R.unhandledErrorId_,u=c2g[y];
u&&(_.uO.clearTimeout(u.JSC$9990_id_),delete c2g[y]);R.unhandledErrorId_=0}R.parent_&&(R.parent_.branches_--,delete R.parent_);y=R.result_;for(var v=u=!1;R.sequence_.length&&!R.blocked_;){var Q=R.sequence_.shift(),M=Q[0],K=Q[1];Q=Q[2];if(M=R.hadError_?K:M)try{var h=M.call(Q||R.defaultScope_,y);h===D88&&(h=void 0);h!==void 0&&(R.hadError_=R.hadError_&&(h==y||R.isError(h)),R.result_=y=h);if(bLV(y)||typeof _.uO.Promise==="function"&&y instanceof _.uO.Promise)v=!0,R.blocked_=!0}catch(b){y=b,R.hadError_=
!0,tfG(R)||(u=!0)}}R.result_=y;v&&(h=(0,_.HY)(R.continue_,R,!0),v=(0,_.HY)(R.continue_,R,!1),y instanceof gK?(Rq(y,h,v),y.blocking_=!0):y.then(h,v));u&&(y=new aKg(y),c2g[y.JSC$9990_id_]=y,R.unhandledErrorId_=y.JSC$9990_id_)},A2g=function(R){var y=new gK;
R.then(function(u){y.callback(u)},function(u){y.errback(u)});
return y},qpb=function(){_.RL.call(this)};
_.IE(qpb,_.RL);qpb.prototype.message="Deferred has already fired";qpb.prototype.name="AlreadyCalledError";var CT=function(){_.RL.call(this)};
_.IE(CT,_.RL);CT.prototype.message="Deferred was canceled";CT.prototype.name="CanceledError";var aKg=function(R){this.JSC$9990_id_=_.uO.setTimeout((0,_.HY)(this.throwError,this),0);this.JSC$9990_error_=R};
aKg.prototype.throwError=function(){delete c2g[this.JSC$9990_id_];throw this.JSC$9990_error_;};
var c2g={};var Spc={1:"NativeMessagingTransport"},Ypi=["pu","lru","pru","lpu","ppu"],snb=function(){for(var R=10,y=Luw,u=y.length,v="";R-- >0;)v+=y.charAt(Math.floor(Math.random()*u));return v},Luw="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var yh=function(R){_.Z0.call(this);this.JSC$9993_domHelper_=R||fL()};
_.IE(yh,_.Z0);yh.prototype.transportType=0;yh.prototype.getWindow=function(){return this.JSC$9993_domHelper_.getWindow()};
yh.prototype.getName=function(){return Spc[String(this.transportType)]||""};var uA=function(R,y,u,v,Q){yh.call(this,u);this.JSC$9996_channel_=R;this.protocolVersion_=Q||2;this.peerHostname_=y||"*";this.JSC$9996_eventHandler_=new _.V9(this);this.maybeAttemptToConnectTimer_=new _.Jl(100,this.getWindow());this.oneSidedHandshake_=!!v;this.setupAckReceived_=new gK;this.setupAckSent_=new gK;this.JSC$9996_connected_=new gK;this.endpointId_=snb();this.peerEndpointId_=null;this.oneSidedHandshake_?zCi(this.JSC$9996_channel_)==1?pT5(this.JSC$9996_connected_,this.setupAckReceived_):
pT5(this.JSC$9996_connected_,this.setupAckSent_):(pT5(this.JSC$9996_connected_,this.setupAckReceived_),this.protocolVersion_==2&&pT5(this.JSC$9996_connected_,this.setupAckSent_));m8Y(this.JSC$9996_connected_,this.notifyConnected_,this);this.JSC$9996_connected_.callback(!0);this.JSC$9996_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.IE(uA,yh);uA.prototype.peerProtocolVersion_=null;uA.prototype.initialized_=!1;uA.prototype.transportType=1;var ga8={};uA.prototype.sendTimerId_=0;
var y7L=function(R){var y=R.event_.data;if(typeof y!=="string")return!1;var u=y.indexOf("|"),v=y.indexOf(":");if(u==-1||v==-1)return!1;var Q=y.substring(0,u);u=y.substring(u+1,v);y=y.substring(v+1);if(v=v0[Q])return v.xpcDeliver(u,y,R.event_.origin),!0;v=C$i(y)[0];for(var M in v0){var K=v0[M];if(zCi(K)==1&&!K.isConnected()&&u=="tp"&&(v=="SETUP"||v=="SETUP_NTPV2")&&R2i(K,R.event_.origin))return delete v0[K.name],K.name=Q,v0[Q]=K,K.xpcDeliver(u,y),!0}return!1},ung=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")},vB8=function(R,y){if(R.protocolVersion_!=2||R.peerProtocolVersion_!=null&&R.peerProtocolVersion_!=2||y!=2){if(R.peerProtocolVersion_!=null&&R.peerProtocolVersion_!=1||y!=1)return;
R.send("tp","SETUP_ACK")}else R.send("tp","SETUP_ACK_NTPV2");R.setupAckSent_.fired_||R.setupAckSent_.callback(!0)},QMg=function(R,y){y>R.peerProtocolVersion_&&(R.peerProtocolVersion_=y);
R.peerProtocolVersion_==1&&(R.setupAckSent_.fired_||R.oneSidedHandshake_||R.setupAckSent_.callback(!0),R.peerEndpointId_=null)};
_.J=uA.prototype;_.J.connect=function(){var R=this.getWindow(),y=_.YS(R),u=ga8[y];typeof u!=="number"&&(u=0);u==0&&_.E4(R.postMessage?R:R.document,"message",y7L,!1,uA);ga8[y]=u+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.J.maybeAttemptToConnect_=function(){var R=zCi(this.JSC$9996_channel_)==0;this.oneSidedHandshake_&&R||this.JSC$9996_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),ung(this))};
_.J.send=function(R,y){var u=this.JSC$9996_channel_.peerWindowObject_;u&&(this.send=function(v,Q){var M=this,K=this.JSC$9996_channel_.name;this.sendTimerId_=dK(function(){M.sendTimerId_=0;try{var h=u.postMessage?u:u.document;h.postMessage&&h.postMessage(K+"|"+v+":"+Q,M.peerHostname_)}catch(b){}},0)},this.send(R,y))};
_.J.notifyConnected_=function(){var R=this.JSC$9996_channel_,y=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;R.isConnected()||R.connectionDelay_&&R.connectionDelay_.isActive()||(R.state_=2,_.R_(R.connectionDelay_),y!==void 0?(R.connectionDelay_=new _.nF(R.connectCb_,y),R.connectionDelay_.start()):(R.connectionDelay_=null,R.connectCb_()))};
_.J.disposeInternal=function(){if(this.initialized_){var R=this.getWindow(),y=_.YS(R),u=ga8[y];ga8[y]=u-1;u==1&&_.Hc(R.postMessage?R:R.document,"message",y7L,!1,uA)}this.sendTimerId_&&(_.uO.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.R_(this.JSC$9996_eventHandler_);delete this.JSC$9996_eventHandler_;_.R_(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$9996_connected_.cancel();delete this.JSC$9996_connected_;delete this.send;uA.superClass_.disposeInternal.call(this)};
var C$i=function(R){R=R.split(",");R[1]=R[1]||null;return R};var MSc;_.Qh=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(_.p8(R)){for(var y=[],u=R.length,v=0;v<u;v++)y.push(R[v]);return y}return _.Ps.getValues(R)};
_.jM5=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(_.p8(R)||typeof R==="string"){var y=[];R=R.length;for(var u=0;u<R;u++)y.push(u);return y}return _.Ps.getKeys(R)}}};
MSc=function(R,y,u){if(R.forEach&&typeof R.forEach=="function")R.forEach(y,u);else if(_.p8(R)||typeof R==="string")Array.prototype.forEach.call(R,y,u);else for(var v=_.jM5(R),Q=_.Qh(R),M=Q.length,K=0;K<M;K++)y.call(u,Q[K],v&&v[K],R)};var N04,Iq,bA,bGb,J7G,iGc,VS5,h2V,Kqg;
_.Cv=function(R,y){this.JSC$10001_domain_=this.userInfo_=this.scheme_="";this.JSC$10001_port_=null;this.fragment_=this.JSC$10001_path_="";this.JSC$10001_ignoreCase_=!1;var u;R instanceof _.Cv?(this.JSC$10001_ignoreCase_=y!==void 0?y:R.JSC$10001_ignoreCase_,_.jY(this,R.scheme_),this.userInfo_=R.userInfo_,_.ME(this,R.JSC$10001_domain_),_.Jt(this,R.JSC$10001_port_),_.Vh(this,R.getPath()),_.iA(this,R.JSC$10001_queryData_.clone()),_.KI(this,R.fragment_)):R&&(u=_.sB(String(R)))?(this.JSC$10001_ignoreCase_=
!!y,_.jY(this,u[1]||"",!0),this.userInfo_=Iq(u[2]||""),_.ME(this,u[3]||"",!0),_.Jt(this,u[4]),_.Vh(this,u[5]||"",!0),_.iA(this,u[6]||"",!0),_.KI(this,u[7]||"",!0)):(this.JSC$10001_ignoreCase_=!!y,this.JSC$10001_queryData_=new _.ht(null,this.JSC$10001_ignoreCase_))};
_.Cv.prototype.toString=function(){var R=[],y=this.scheme_;y&&R.push(bA(y,J7G,!0),":");var u=this.JSC$10001_domain_;if(u||y=="file")R.push("//"),(y=this.userInfo_)&&R.push(bA(y,J7G,!0),"@"),R.push(_.t7(u).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),u=this.JSC$10001_port_,u!=null&&R.push(":",String(u));if(u=this.getPath())this.JSC$10001_domain_&&u.charAt(0)!="/"&&R.push("/"),R.push(bA(u,u.charAt(0)=="/"?VS5:iGc,!0));(u=this.JSC$10001_queryData_.toString())&&R.push("?",u);(u=this.fragment_)&&R.push("#",
bA(u,Kqg));return R.join("")};
_.Cv.prototype.resolve=function(R){var y=this.clone(),u=!!R.scheme_;u?_.jY(y,R.scheme_):u=!!R.userInfo_;u?y.userInfo_=R.userInfo_:u=!!R.JSC$10001_domain_;u?_.ME(y,R.JSC$10001_domain_):u=R.JSC$10001_port_!=null;var v=R.getPath();if(u)_.Jt(y,R.JSC$10001_port_);else if(u=!!R.JSC$10001_path_){if(v.charAt(0)!="/")if(this.JSC$10001_domain_&&!this.JSC$10001_path_)v="/"+v;else{var Q=y.getPath().lastIndexOf("/");Q!=-1&&(v=y.getPath().slice(0,Q+1)+v)}Q=v;if(Q==".."||Q==".")v="";else if(_.K8(Q,"./")||_.K8(Q,
"/.")){v=_.jv(Q,"/");Q=Q.split("/");for(var M=[],K=0;K<Q.length;){var h=Q[K++];h=="."?v&&K==Q.length&&M.push(""):h==".."?((M.length>1||M.length==1&&M[0]!="")&&M.pop(),v&&K==Q.length&&M.push("")):(M.push(h),v=!0)}v=M.join("/")}else v=Q}u?_.Vh(y,v):u=R.JSC$10001_queryData_.toString()!=="";u?_.iA(y,R.JSC$10001_queryData_.clone()):u=!!R.fragment_;u&&_.KI(y,R.fragment_);return y};
_.Cv.prototype.clone=function(){return new _.Cv(this)};
_.jY=function(R,y,u){R.scheme_=u?Iq(y,!0):y;R.scheme_&&(R.scheme_=R.scheme_.replace(/:$/,""));return R};
_.ME=function(R,y,u){R.JSC$10001_domain_=u?Iq(y,!0):y;return R};
_.Jt=function(R,y){if(y){y=Number(y);if(isNaN(y)||y<0)throw Error("Pa`"+y);R.JSC$10001_port_=y}else R.JSC$10001_port_=null;return R};
_.Cv.prototype.getPath=function(){return this.JSC$10001_path_};
_.Vh=function(R,y,u){R.JSC$10001_path_=u?Iq(y,!0):y;return R};
_.iA=function(R,y,u){y instanceof _.ht?(R.JSC$10001_queryData_=y,I6K(R.JSC$10001_queryData_,R.JSC$10001_ignoreCase_)):(u||(y=bA(y,h2V)),R.JSC$10001_queryData_=new _.ht(y,R.JSC$10001_ignoreCase_));return R};
_.cY=function(R,y,u){R.JSC$10001_queryData_.set(y,u);return R};
_.tD=function(R,y){return R.JSC$10001_queryData_.get(y)};
_.KI=function(R,y,u){R.fragment_=u?Iq(y):y;return R};
_.FW=function(R){_.cY(R,"zx",D0());return R};
_.pF=function(R,y){return R instanceof _.Cv?R.clone():new _.Cv(R,y)};
N04=function(R,y){R instanceof _.Cv||(R=_.pF(R));y instanceof _.Cv||(y=_.pF(y));return R.resolve(y)};
Iq=function(R,y){return R?y?decodeURI(R.replace(/%25/g,"%2525")):decodeURIComponent(R):""};
bA=function(R,y,u){return typeof R==="string"?(R=encodeURI(R).replace(y,bGb),u&&(R=R.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),R):null};
bGb=function(R){R=R.charCodeAt(0);return"%"+(R>>4&15).toString(16)+(R&15).toString(16)};
J7G=/[#\/\?@]/g;iGc=/[#\?:]/g;VS5=/[#\?]/g;h2V=/[#\?@]/g;Kqg=/#/g;_.ht=function(R,y){this.count_=this.keyMap_=null;this.encodedQuery_=R||null;this.JSC$10002_ignoreCase_=!!y};
_.wq=function(R){R.keyMap_||(R.keyMap_=new Map,R.count_=0,R.encodedQuery_&&RFc(R.encodedQuery_,function(y,u){R.add(Rh(y),u)}))};
_.J=_.ht.prototype;_.J.getCount=function(){_.wq(this);return this.count_};
_.J.add=function(R,y){_.wq(this);this.encodedQuery_=null;R=NE(this,R);var u=this.keyMap_.get(R);u||this.keyMap_.set(R,u=[]);u.push(y);this.count_+=1;return this};
_.J.remove=function(R){_.wq(this);R=NE(this,R);return this.keyMap_.has(R)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(R).length,this.keyMap_.delete(R)):!1};
_.J.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.J.isEmpty=function(){_.wq(this);return this.count_==0};
_.J.containsKey=function(R){_.wq(this);R=NE(this,R);return this.keyMap_.has(R)};
_.J.containsValue=function(R){var y=this.getValues();return _.XU(y,R)};
_.J.forEach=function(R,y){_.wq(this);this.keyMap_.forEach(function(u,v){u.forEach(function(Q){R.call(y,Q,v,this)},this)},this)};
_.J.getKeys=function(){_.wq(this);for(var R=Array.from(this.keyMap_.values()),y=Array.from(this.keyMap_.keys()),u=[],v=0;v<y.length;v++)for(var Q=R[v],M=0;M<Q.length;M++)u.push(y[v]);return u};
_.J.getValues=function(R){_.wq(this);var y=[];if(typeof R==="string")this.containsKey(R)&&(y=y.concat(this.keyMap_.get(NE(this,R))));else{R=Array.from(this.keyMap_.values());for(var u=0;u<R.length;u++)y=y.concat(R[u])}return y};
_.J.set=function(R,y){_.wq(this);this.encodedQuery_=null;R=NE(this,R);this.containsKey(R)&&(this.count_-=this.keyMap_.get(R).length);this.keyMap_.set(R,[y]);this.count_+=1;return this};
_.J.get=function(R,y){if(!R)return y;R=this.getValues(R);return R.length>0?String(R[0]):y};
_.Fqc=function(R,y,u){R.remove(y);u.length>0&&(R.encodedQuery_=null,R.keyMap_.set(NE(R,y),_.Az(u)),R.count_+=u.length)};
_.ht.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var R=[],y=Array.from(this.keyMap_.keys()),u=0;u<y.length;u++){var v=y[u],Q=_.t7(v);v=this.getValues(v);for(var M=0;M<v.length;M++){var K=Q;v[M]!==""&&(K+="="+_.t7(v[M]));R.push(K)}}return this.encodedQuery_=R.join("&")};
_.ht.prototype.clone=function(){var R=new _.ht;R.encodedQuery_=this.encodedQuery_;this.keyMap_&&(R.keyMap_=new Map(this.keyMap_),R.count_=this.count_);return R};
var NE=function(R,y){y=String(y);R.JSC$10002_ignoreCase_&&(y=y.toLowerCase());return y},I6K=function(R,y){y&&!R.JSC$10002_ignoreCase_&&(_.wq(R),R.encodedQuery_=null,R.keyMap_.forEach(function(u,v){var Q=v.toLowerCase();
v!=Q&&(this.remove(v),_.Fqc(this,Q,u))},R));
R.JSC$10002_ignoreCase_=y};
_.ht.prototype.extend=function(R){for(var y=0;y<arguments.length;y++)MSc(arguments[y],function(u,v){this.add(v,u)},this)};var TQ=function(R,y){z0.call(this);for(var u=0,v;v=Ypi[u];u++)if(v in R&&!/^https?:\/\//.test(R[v]))throw Error("Ra`"+R[v]+"`"+v);this.cfg_=R;this.name=this.cfg_.cn||snb();this.JSC$9997_domHelper_=y||fL();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.V9(this);R.lpu=R.lpu||gMT(this.JSC$9997_domHelper_.getWindow().location.href)+"/robots.txt";R.ppu=R.ppu||gMT(R.pu||"")+"/robots.txt";v0[this.name]=this;Qr5(window,"unload",wuT)||Wy(window,"unload",wuT)};
_.IE(TQ,z0);var NB5=RegExp("^%*tp$"),TBT=RegExp("^%+tp$");_.J=TQ.prototype;_.J.connectionDelay_=null;_.J.peerWindowDeferred_=null;_.J.transport_=null;_.J.state_=1;_.J.isConnected=function(){return this.state_==2};
_.J.peerWindowObject_=null;_.J.iframeElement_=null;_.J.connect=function(R){this.connectCb_=R||_.ZM;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?m8Y(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.J.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$9997_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("Ta");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$9997_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new uA(this,this.cfg_.ph,this.JSC$9997_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Sa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.J.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.R_(this.transport_);this.connectCb_=this.transport_=null;_.R_(this.connectionDelay_);this.connectionDelay_=null};
_.J.send=function(R,y){if(this.isConnected()){try{var u=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(Q){u=!1}if(u){_.Sv(y)&&(y=(0,_.kj)(y));u=this.transport_;var v=u.send;NB5.test(R)&&(R="%"+R);R=R.replace(/[%:|]/g,encodeURIComponent);v.call(u,R,y)}else this.close()}};
_.J.xpcDeliver=function(R,y,u){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.HY)(this.xpcDeliver,this,R,y,u));else if(R2i(this,u)&&!this.isDisposed()&&this.state_!=3)if(R&&R!="tp")this.isConnected()&&(R=R.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),R=TBT.test(R)?R.substring(1):R,R=this.getService(R,y))&&(y=kFi(y,R.objectPayload),y!=null&&R.callback(y));else switch(R=this.transport_,u=C$i(y),y=u[1],u[0]){case "SETUP_ACK":QMg(R,1);R.setupAckReceived_.fired_||R.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":R.protocolVersion_==2&&(QMg(R,2),R.setupAckReceived_.fired_||R.setupAckReceived_.callback(!0));break;case "SETUP":QMg(R,1);vB8(R,1);break;case "SETUP_NTPV2":R.protocolVersion_==2&&(u=R.peerProtocolVersion_,QMg(R,2),vB8(R,2),u!=1&&R.peerEndpointId_==null||R.peerEndpointId_==y||ung(R),R.peerEndpointId_=y)}};
var zCi=function(R){var y=R.cfg_.role;return typeof y==="number"?y:window.parent==R.peerWindowObject_?1:0},R2i=function(R,y){var u=R.cfg_.ph;
return _.iO(y==null?"":String(y))||_.iO(u==null?"":String(u))||y==R.cfg_.ph};
TQ.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete v0[this.name];_.R_(this.peerLoadHandler_);delete this.peerLoadHandler_;TQ.superClass_.disposeInternal.call(this)};
var wuT=function(){for(var R in v0)_.R_(v0[R])},v0={};var xs5=function(R,y){this.JSC$10011_win=R;this.allowAdsHttpEndpoint=y;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10011_domHelper=fL(R);this.scrollManager=new WuK(R);this.accessibilityManager=new Hyg(R);oBg(this)},oBg=function(R){var y=function(){R.allowAdsPopup&&R.allowAdsPopup.style.setProperty("display","none","important");
R.wallElement.style.setProperty("display","","important");nac(R.accessibilityManager);P$b(R.accessibilityManager,R.wallElement.querySelector(".fc-dialog-container"),!1,!1,R.wallElement.querySelector(".fc-button-whitelist"));R.scrollManager.enableScrolling()};
R.allowAdsPopup=R.JSC$10011_domHelper.JSC$9295_createDom("DIV",{"class":"fc-whitelist-root"});R.allowAdsPopup.style.setProperty("display","none","important");R.JSC$10011_domHelper.appendChild(R.JSC$10011_domHelper.JSC$9293_document_.body,R.allowAdsPopup);var u=R.JSC$10011_domHelper.JSC$9295_createDom("DIV",{"class":"fc-dialog-overlay"});R.JSC$10011_domHelper.appendChild(R.allowAdsPopup,u);var v=R.JSC$10011_domHelper.JSC$9295_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:y});R.JSC$10011_domHelper.appendChild(R.allowAdsPopup,
v);u=R.JSC$10011_domHelper.JSC$9295_createDom("IFRAME");u.className="fc-whitelist-dialog";u.frameBorder="0";u.id="fc-whitelist-iframe";u.tabIndex="0";_.cg(u,R.allowAdsHttpEndpoint);R.JSC$10011_domHelper.appendChild(v,u);v={};v.pu=_.Oo(R.allowAdsHttpEndpoint).toString();v.tp=1;v.cn="fc-whitelist-channel";v.ifrid=u.id;v.osh=!0;R.allowAdsCrossPageChannel=new TQ(v);R.allowAdsCrossPageChannel.registerService("close",y);R.allowAdsCrossPageChannel.registerService("refresh",function(){R.JSC$10011_win.location.reload()});
R.allowAdsCrossPageChannel.registerService("resize",function(Q){if(Q){var M=R.allowAdsPopup.querySelector(".fc-whitelist-dialog");Q.width&&M.style.setProperty("width",Q.width,"important");Q.height&&M.style.setProperty("height",Q.height,"important")}},!0);
R.allowAdsCrossPageChannel.connect()};
xs5.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10011_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var xD=window,B0=document,BBY=xD.location,f65=function(){},e2T=/\[native code\]/,fI=function(R,y,u){return R[y]=R[y]||u},l6b=function(R){R=R.sort();
for(var y=[],u=void 0,v=0;v<R.length;v++){var Q=R[v];Q!=u&&y.push(Q);u=Q}return y},eY=function(){var R;
if((R=Object.create)&&e2T.test(R))R=R(null);else{R={};for(var y in R)R[y]=void 0}return R},lA=fI(xD,"gapi",{});var OR={};OR=fI(xD,"___jsl",eY());fI(OR,"I",0);fI(OR,"hel",10);var OGT=function(){var R=BBY.href;if(OR.dpo)var y=OR.h;else{y=OR.h;var u=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),v=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(R=R&&(u.exec(R)||v.exec(R)))try{y=decodeURIComponent(R[2])}catch(Q){}}return y},ZGK=function(R){var y=fI(OR,"PQ",[]);
OR.PQ=[];var u=y.length;if(u===0)R();else for(var v=0,Q=function(){++v===u&&R()},M=0;M<u;M++)y[M](Q)},HGY=function(R){return fI(fI(OR,"H",eY()),R,eY())};var ZQ=function(R){this.JSC$10013_obj_=R};
ZQ.prototype.value=function(){return this.JSC$10013_obj_};
ZQ.prototype.getWidth=function(){return this.JSC$10013_obj_.width};
ZQ.prototype.getHeight=function(){return this.JSC$10013_obj_.height};
ZQ.prototype.getStyle=function(){return this.JSC$10013_obj_.style};var nBb=function(R){this.JSC$10016_obj_=R||{}};
_.J=nBb.prototype;_.J.value=function(){return this.JSC$10016_obj_};
_.J.setUrl=function(R){this.JSC$10016_obj_.url=R;return this};
_.J.getUrl=function(){return this.JSC$10016_obj_.url};
_.J.getStyle=function(){return this.JSC$10016_obj_.style};
_.J.getId=function(){return this.JSC$10016_obj_.id};
_.J.getContext=function(){return this.JSC$10016_obj_.context};
var G7g=function(R){R.JSC$10016_obj_.attributes=R.JSC$10016_obj_.attributes||{};return new ZQ(R.JSC$10016_obj_.attributes)};var r75=function(){nBb.apply(this,arguments)};
_.O(r75,nBb);var PrL=fI(OR,"perf",eY());fI(PrL,"g",eY());var WqT=fI(PrL,"i",eY());fI(PrL,"r",[]);eY();eY();var UsV=function(R,y,u){y&&y.length>0&&(y=dsc(y),u&&u.length>0&&(y+="___"+dsc(u)),y.length>28&&(y=y.substr(0,28)+(y.length-28)),u=y,y=fI(WqT,"_p",eY()),fI(y,u,eY())[R]=(new Date).getTime(),y=PrL.r,typeof y==="function"?y(R,"_p",u):y.push([R,"_p",u]))},dsc=function(R){return R.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var k7g=eY(),EBb=[],H0=function(R){throw Error("Ua`"+R);};
EBb.push(["jsl",function(R){for(var y in R)if(Object.prototype.hasOwnProperty.call(R,y)){var u=R[y];typeof u=="object"?OR[y]=fI(OR,y,[]).concat(u):fI(OR,y,u)}if(y=R.u)R=fI(OR,"us",[]),R.push(y),(y=/^https:(.*)$/.exec(y))&&R.push("http:"+y[1])}]);
var $sb=/^(\/[a-zA-Z0-9_\-]+)+$/,qBL=[/\/amp\//,/\/amp$/,/^\/amp$/],Xuc=/^[a-zA-Z0-9\-_\.,!]+$/,msK=/^gapi\.loaded_[0-9]+$/,A7T=/^[a-zA-Z0-9,._-]+$/,c7g=function(R,y,u,v,Q){var M=R.split(";"),K=M.shift(),h=k7g[K],b=null;h?b=h(M,y,u,v):H0("no hint processor for: "+K);b||H0("failed to generate load url");y=b;u=y.match(Dsc);(v=y.match(puc))&&v.length===1&&tS8.test(y)&&u&&u.length===1||H0("failed sanity: "+R);try{R="?";if(Q&&Q.length>0){H8E(Q);var N=Q.join(",");b=b+"?le="+N;R="&"}if(OR.rol){var T=OR.ol;
T&&T.length&&(b=""+b+R+"ol="+T.length)}}catch(x){}return b},YBG=function(R,y,u,v){R=a6i(R);
msK.test(u)||H0("invalid_callback");y=SB8(y);v=v&&v.length?SB8(v):null;var Q=function(M){return encodeURIComponent(M).replace(/%2C/g,",")};
return[encodeURIComponent(R.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",Q(R.version),"/m=",Q(y),v?"/exm="+Q(v):"","/rt=j/sv=1/d=1/ed=1",R.activeMods?"/am="+Q(R.activeMods):"",R.resourceSig?"/rs="+Q(R.resourceSig):"",R.zcms?"/t="+Q(R.zcms):"","/cb=",Q(u)].join("")},a6i=function(R){R.charAt(0)!=="/"&&H0("relative path");
for(var y=R.substring(1).split("/"),u=[];y.length;){R=y.shift();if(!R.length||R.indexOf(".")==0)H0("empty/relative directory");else if(R.indexOf("=")>0){y.unshift(R);break}u.push(R)}R={};for(var v=0,Q=y.length;v<Q;++v){var M=y[v].split("="),K=decodeURIComponent(M[0]),h=decodeURIComponent(M[1]);M.length==2&&K&&h&&(R[K]=R[K]||h)}y="/"+u.join("/");$sb.test(y)||H0("invalid_prefix");u=0;for(v=qBL.length;u<v;++u)qBL[u].test(y)&&H0("invalid_prefix");u=Lqb(R,"k",!0);v=Lqb(R,"am");Q=Lqb(R,"rs");R=Lqb(R,"t");
return{pathPrefix:y,version:u,activeMods:v,resourceSig:Q,zcms:R}},SB8=function(R){for(var y=[],u=0,v=R.length;u<v;++u){var Q=R[u].replace(/\./g,"_").replace(/-/g,"_");
A7T.test(Q)&&y.push(Q)}return y.join(",")},Lqb=function(R,y,u){R=R[y];
!R&&u&&H0("missing: "+y);if(R){if(Xuc.test(R))return R;H0("invalid: "+y)}return null},tS8=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,puc=/\/cb=/g,Dsc=/\/\//g;
k7g.m=function(R,y,u,v){(R=R[0])||H0("missing_hint");return"https://apis.google.com"+YBG(R,y,u,v)};
var sM8=decodeURI("%73cript"),z2c=/^[-+_0-9\/A-Za-z]+={0,2}$/,gBg=function(R,y){for(var u=[],v=0;v<R.length;++v){var Q=R[v],M;if(M=Q){a:{for(M=0;M<y.length;M++)if(y[M]===Q)break a;M=-1}M=M<0}M&&u.push(Q)}return u},Cr5=function(){var R=OR.nonce;
return R!==void 0?R&&R===String(R)&&R.match(z2c)?R:OR.nonce=null:B0.querySelector?(R=B0.querySelector("script[nonce]"))?(R=R.nonce||R.getAttribute("nonce")||"",R&&R===String(R)&&R.match(z2c)?OR.nonce=R:OR.nonce=null):null:null},uqY=function(R){if(B0.readyState!="loading")RXg(R);
else{var y=Cr5(),u="";y!==null&&(u=' nonce="'+y+'"');R="<"+sM8+' src="'+encodeURI(R)+'"'+u+"></"+sM8+">";B0.write(yT8?yT8.createHTML(R):R)}},RXg=function(R){var y=B0.createElement(sM8);
y.setAttribute("src",yT8?yT8.createScriptURL(R):R);R=Cr5();R!==null&&y.setAttribute("nonce",R);y.async="true";(R=B0.getElementsByTagName(sM8)[0])?R.parentNode.insertBefore(y,R):(B0.head||B0.body||B0.documentElement).appendChild(y)},Qhi=function(R,y,u){vzT(function(){var v=y===OGT()?fI(lA,"_",eY()):eY();
v=fI(HGY(y),"_",v);R(v)},u)},IaS=function(R,y){var u=y||{};
typeof y=="function"&&(u={},u.callback=y);var v=(y=u)&&y._c;if(v)for(var Q=0;Q<EBb.length;Q++){var M=EBb[Q][0],K=EBb[Q][1];K&&Object.prototype.hasOwnProperty.call(v,M)&&K(v[M],R,y)}y=[];R?y=R.split(":"):u.features&&(y=u.features);if(!(R=u.h)&&(R=OGT(),!R))throw Error("Va");jhc(y||[],u,R)},jhc=function(R,y,u){R=l6b(R)||[];
var v=y.callback,Q=y.config,M=y.timeout,K=y.ontimeout,h=y.onerror,b=void 0;typeof h=="function"&&(b=h);var N=null,T=!1;if(M&&!K||!M&&K)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";h=fI(HGY(u),"r",[]).sort();var x=fI(HGY(u),"L",[]).sort(),B=OR.le||[],l=[].concat(h),Z=function(z,c){if(T)return 0;xD.clearTimeout(N);x.push.apply(x,P);var a=((lA||{}).config||{}).update;a?a(Q):Q&&fI(OR,"cu",[]).push(Q);if(c){UsV("me0",z,l);try{Qhi(c,u,b)}finally{UsV("me1",z,l)}}return 1};
M>0&&(N=xD.setTimeout(function(){T=!0;K()},M));
var P=gBg(R,x);if(P.length){P=gBg(R,h);var k=fI(OR,"CP",[]),E=k.length;k[E]=function(z){if(!z)return 0;UsV("ml1",P,l);var c=function(L){k[E]=null;Z(P,z)&&ZGK(function(){v&&v();L()})},a=function(){var L=k[E+1];
L&&L()};
E>0&&k[E-1]?k[E]=function(){c(a)}:c(a)};
if(P.length){var D="loaded_"+OR.I++;lA[D]=function(z){k[E](z);lA[D]=null};
R=c7g(u,P,"gapi."+D,h,B);h.push.apply(h,P);UsV("ml0",P,l);y.sync||xD.___gapisync?uqY(R):RXg(R)}else k[E](f65)}else Z(P)&&v&&v()},MXV;
var JTT=null,VX8=_.uO.trustedTypes;if(VX8&&VX8.createPolicy){try{JTT=VX8.createPolicy("goog#gapi",{createHTML:I3E,createScript:I3E,createScriptURL:I3E})}catch(R){_.uO.console&&_.uO.console.error(R.message)}MXV=JTT}else MXV=JTT;var yT8=MXV,vzT=function(R,y){if(OR.hee&&OR.hel>0)try{return R()}catch(u){y&&y(u),OR.hel--,IaS("debug_error",function(){try{window.___jsl.hefn(u)}catch(v){throw u;}})}else try{return R()}catch(u){throw y&&y(u),u;
}},iJb=lA.load;
iJb&&fI(OR,"ol",[]).push(iJb);lA.load=function(R,y){return vzT(function(){return IaS(R,y)})};var shW;var II5=function(R,y){var u=u||[];this.serviceId_=R;this.moduleId_=y||null;this.dependencies_=[];Kic(this,u)};
II5.prototype.toString=function(){return this.serviceId_};
II5.prototype.getModuleId=function(){return this.moduleId_};
var Kic=function(R,y){var u=!1;u=u===void 0?!1:u;R.dependencies_=R.dependencies_.concat(y);if(u){if(!R.moduleId_)throw Error("Wa`"+R.serviceId_);y.map(function(v){return v.getModuleId()}).forEach(function(v){zXU(function(Q){Q.addExtraEdge(R.moduleId_,v)})})}};var CpT=new II5("MpJwZc","MpJwZc");var y_E=new _.fT("a"),R5G=function(R,y,u){_.ew.call(this,R,y);this.node=y;this.kind=u};
_.O(R5G,_.ew);var hXi=function(){this.JSC$10029_keys_={};this.urlPrefix_="";this.JSC$10029_queryData_={}};
hXi.prototype.toString=function(){var R=this.urlPrefix_+bJc(this),y=_.NC(this.JSC$10029_queryData_),u="";y!=""&&(u="?"+y);return R+u};
var Fic=function(R){R=nI(R,"md");return!!R&&R!=="0"},bJc=function(R){var y=[],u=(0,_.HY)(function(v){this.JSC$10029_keys_[v]!==void 0&&y.push(v+"="+this.JSC$10029_keys_[v])},R);
Fic(R)?(u("md"),u("k"),u("ck"),u("am"),u("rs"),u("gssmodulesetproto"),u("slk"),u("dti")):(u("sdch"),u("k"),u("ck"),u("am"),u("rt"),"d"in R.JSC$10029_keys_||GQ(R,"d","0"),u("d"),u("exm"),u("excm"),(R.JSC$10029_keys_.excm||R.JSC$10029_keys_.exm)&&y.push("ed=1"),u("im"),u("dg"),u("sm"),nI(R,"br")!="1"&&nI(R,"br")!="0"||u("br"),u("br-d"),nI(R,"rb")=="1"&&u("rb"),nI(R,"zs")!=="0"&&u("zs"),w5V(R)!==""&&u("wt"),u("gssmodulesetproto"),u("ujg"),u("sp"),u("rs"),u("cb"),u("ee"),u("slk"),u("dti"),u("m"));return y.join("/")},
nI=function(R,y){return R.JSC$10029_keys_[y]?R.JSC$10029_keys_[y]:null},GQ=function(R,y,u){u?R.JSC$10029_keys_[y]=u:delete R.JSC$10029_keys_[y]},NRw=function(R,y){R.urlPrefix_=y},TRY=function(R,y){y&&y.length>0?(y.sort(),GQ(R,"exm",y.join(","))):GQ(R,"exm",null)},ozc=function(R,y){y&&y.length>0?(y.sort(),GQ(R,"excm",y.join(","))):GQ(R,"excm",null)},xCT=function(R){return(R=nI(R,"m"))?R.split(","):[]},w5V=function(R){switch(nI(R,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},BRG=function(R,y){var u=Object.keys(y).filter(function(v){return!!Object.keys(y[v]).length}).map(function(v){var Q=Object.keys(y[v]);
Q.length>1&&Q.sort();return v+":"+Q.join(",")});
u.sort();GQ(R,"ee",u.join(";"))},DtL=function(R){var y=nI(R,"ee");
if(!y)return{};R={};y=_.V(y.split(";"));for(var u=y.next();!u.done;u=y.next()){var v=_.V(u.value.split(":"));u=v.next().value;v=v.next().value;R[u]={};v=_.V(v.split(","));for(var Q=v.next();!Q.done;Q=v.next())R[u][Q.value]=!0}return R},fIY=function(R){delete R.JSC$10029_keys_.m;
delete R.JSC$10029_keys_.exm;delete R.JSC$10029_keys_.ed};
hXi.prototype.clone=function(){var R=new hXi;R.JSC$10029_keys_=Object.assign({},this.JSC$10029_keys_);R.urlPrefix_=this.urlPrefix_;R.JSC$10029_queryData_=Object.assign({},this.JSC$10029_queryData_);return R};
var pGc=function(R,y){y=y===void 0?!0:y;var u=eXK(R),v=new hXi,Q=_.sB(u)[5];_.Ps.forEach(lI5,function(K){var h=Q.match("/"+K+"=([^/]+)");h&&GQ(v,K,h[1])});
var M="";M=R.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";NRw(v,R.substr(0,R.indexOf(M)+M.length));if(!y)return v;(R=_.sB(u)[6]||null)&&RFc(R,function(K,h){v.JSC$10029_queryData_[K]=h});
return v},XGv=function(R){R=_.Fq(eXK(R));
return R===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(R)?/\/k=/.test(R):!1},eXK=function(R){return R.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?R.substr(65):R},lI5={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"},OJ8=RegExp("^loaded_(g|h)?[_\\d]+$");_.rq=function(R){this.JSC$10041_id_=R;this.opts={}};
_.rq.prototype.JSC$10043_setLabel=function(R){this.label_=R||void 0;return this};
_.rq.prototype.addUploadMetadata=function(R,y){var u=this.opts.data||{};u[R]=y;this.opts.data=u;return this};
var ZJG=function(R){var y=_.Ps.filter(R.opts,function(u){return u!==null});
y=_.Ps.isEmpty(y)?null:y;R=[R.JSC$10041_id_,R.label_,y];y=fc8(R);return R=R.slice(0,y+1)};
_.rq.prototype.toString=function(){var R=ZJG(this);return"("+_.Ws(R,function(y){return JSON.stringify(y)}).join(",")+")"};
_.rq.prototype.getId=function(){return this.JSC$10041_id_};
_.rq.prototype.getOptions=function(){return _.Ps.clone(this.opts)};var P0=function(){_.rq.call(this,"image-search")};
_.O(P0,_.rq);P0.prototype.setSize=function(R){this.opts.imgsz=R;return this};
P0.prototype.JSC$10043_setLabel=function(R){_.rq.prototype.JSC$10043_setLabel.call(this,R);return this};
P0.prototype.addUploadMetadata=function(R,y){_.rq.prototype.addUploadMetadata.call(this,R,y);return this};var W0=function(){_.rq.call(this,"maps")};
_.O(W0,_.rq);W0.prototype.setZoom=function(R){this.opts.zoom=R;return this};
W0.prototype.JSC$10043_setLabel=function(R){_.rq.prototype.JSC$10043_setLabel.call(this,R);return this};
W0.prototype.addUploadMetadata=function(R,y){_.rq.prototype.addUploadMetadata.call(this,R,y);return this};_.dq=function(){_.rq.call(this,"photos")};
_.O(_.dq,_.rq);_.dq.prototype.JSC$10043_setLabel=function(R){_.rq.prototype.JSC$10043_setLabel.call(this,R);return this};
_.dq.prototype.addUploadMetadata=function(R,y){_.rq.prototype.addUploadMetadata.call(this,R,y);return this};var UR=function(){_.rq.call(this,"url")};
_.O(UR,_.rq);var HJK=function(){var R=new UR;R.opts.type="video";R.opts.site="youtube.com";return R};
UR.prototype.JSC$10043_setLabel=function(R){_.rq.prototype.JSC$10043_setLabel.call(this,R);return this};
UR.prototype.addUploadMetadata=function(R,y){_.rq.prototype.addUploadMetadata.call(this,R,y);return this};var kD=function(){_.rq.call(this,"video-search")};
_.O(kD,_.rq);var nz5=function(){var R=new kD;R.opts.site="youtube.com";return R};
kD.prototype.JSC$10043_setLabel=function(R){_.rq.prototype.JSC$10043_setLabel.call(this,R);return this};
kD.prototype.addUploadMetadata=function(R,y){_.rq.prototype.addUploadMetadata.call(this,R,y);return this};var GuK=function(){_.rq.call(this,"web")};
_.O(GuK,_.rq);GuK.prototype.JSC$10043_setLabel=function(R){_.rq.prototype.JSC$10043_setLabel.call(this,R);return this};
GuK.prototype.addUploadMetadata=function(R,y){_.rq.prototype.addUploadMetadata.call(this,R,y);return this};var ER=function(){this.items_=[];this.opts={}},rTc=function(R){switch(R){case "image-search":return new P0;
case "maps":return new W0;case "photos":return new _.dq;case "url":return new UR;case "video-search":return new kD;case "web":return new GuK}return new _.rq(R)};
ER.prototype.addView=function(R){this.items_.push(typeof R==="string"?rTc(R):R);return this};
var PaT=function(R){return"("+_.Ws(R.items_,function(y){return y.toString()}).join(",")+")"};
ER.prototype.toString=function(){return PaT(this)};
ER.prototype.getViews=function(R,y){y=y===void 0?[]:y;for(var u=this.items_,v=0;v<u.length;v++){var Q=u[v];Q instanceof ER?Q.getViews(R,y):Q.getId()==R&&y.push(Q)}return y};
ER.prototype.getOptions=function(){return _.Ps.clone(this.opts)};var $7=function(R){this.basePickerUrl_=R||"https://docs.google.com/picker";this.nav_=new ER};
$7.prototype.nav_=null;$7.prototype.addView=function(R){this.nav_.addView(R);return this};
$7.prototype.getBaseUrl=function(){return this.basePickerUrl_};
$7.prototype.getViews=function(R){return this.nav_.getViews(R)};
_.WiK=function(R,y){R.callback_=y;return R};var dCb=new Map;dCb.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");dCb.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");dCb.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var UCY=new Set;UCY.add("application/vnd.google-apps.kix");UCY.add("application/vnd.google-apps.ritz");UCY.add("application/vnd.google-apps.punch");var aIK=function(R,y,u){var v=u&&_.$U(u,1);u=kuT(u);var Q=R[0].getId();switch(_.qO(Q,2)){case 13:return EzL(R,y,v,u);case 3:return $CL(R,y,v,u);case 10:return qLi(R,y,v,u);case 27:return qLi(R,y,v,u);case 12:return X55(R,y);case 2:return mCG(R,y,v,u);case 5:return ATK(R,y,v,u);case 9:return DC5(R,y,v,u);case 6:return p5i(R,y,v,u);case 25:return tXg(R,y,v,u);case 1:return _.ZF(R[0],NCY,26)?cT8(R,y,v,u):qLi(R,y,v,u);default:return{}}},p5i=function(R,y,u,v){R=R.map(function(Q){return{id:Q.getId().getId(),
serviceId:"youtube",name:Q.getName(),description:_.$U(Q,3),type:$D(Q),lastEditedUtc:_.wgc(_.Ne(Q,_.pX,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:Q.getUrl(),embedUrl:_.$U(Q,13),thumbnails:qE(Qb(Q))}});
return{action:y,docs:R,viewToken:v,view:u||"youtube",v2Translated:!0}},mCG=function(R,y,u,v){var Q=R.map(function(M){var K=M.getId().getId(),h=_.$U(M,7),b=M.getName(),N=$D(M),T=_.wgc(_.Ne(M,_.pX,12)).getTime(),x=M.getUrl(),B=Number(GzU(M)),l=_.$U(M,3),Z=_.$U(M,11),P=qE(Qb(M));
var k=_.Ne(M,jw,21);k=_.Uk(k,1);var E=_.Ne(M,jw,21);E=_.$U(E,10);var D=_.$U(M,13);var z=_.Ne(M,jw,21);z=_.Uk(z,9);var c=_.Ne(M,jw,21);c=_.$U(c,11);K={id:K,serviceId:"docs",mimeType:h,name:b,type:N,lastEditedUtc:T,url:x,sizeBytes:B,description:l,iconUrl:Z,thumbnails:P,isShared:k,downloadUrl:E,embedUrl:D,copyable:z,resourceKey:c};h=_.Ne(M,jw,21);_.Uk(h,12)&&(K.uploadState="success",K.isNew=!0);h=_.Ne(M,jw,21);_.ZF(h,yb,3)&&(M=_.Ne(M,jw,21),M=_.Ne(M,yb,3),_.ZF(M,Cp,2)&&(h=k7(M.getDuration().getSeconds()),
b=M.getDuration(),b=_.jZ(b,2),K.duration=h+b/1E9),K.aspectRatio=M.getAspectRatio());return K});
return{action:y,docs:Q,viewToken:v,view:u||"all",extraUserInputs:SLc(R),v2Translated:!0}},ATK=function(R,y,u,v){R=R.map(function(Q){var M=_.Ne(Q,ZKK,15);
M=_.Ne(M,Re,1);oN(Q,10,Re,M);return{id:Q.getId().getId(),serviceId:"web",mimeType:_.$U(Q,7),name:Q.getName(),type:$D(Q),url:Q.getUrl(),description:_.$U(Q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:qE(Qb(Q))}});
return{action:y,docs:R,viewToken:v,view:u||"image-search",v2Translated:!0}},DC5=function(R,y,u,v){R=R.map(function(Q){return{serviceId:"url",
name:Qb(Q)[0].getUrl().split("/").pop(),type:$D(Q),mimeType:_.$U(Q,7),url:Q.getUrl(),description:_.$U(Q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:qE(Qb(Q))}});
return{action:y,docs:R,viewToken:v,view:u||"url",v2Translated:!0}},cT8=function(R,y,u,v){R=R.map(function(Q){return{id:Q.getId().getId(),
serviceId:"picasa",name:Q.getName(),type:$D(Q),description:_.$U(Q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:qE(Qb(Q))}});
return{action:y,docs:R,viewToken:v,view:u||"webcam",v2Translated:!0}},qLi=function(R,y,u,v){return{action:y,
docs:R.map(YLc),viewToken:v,view:Lig(u||"upload",R),extraUserInputs:SLc(R),v2Translated:!0}},Lig=function(R,y){return y.some(function(u){var v;
return((v=_.Ne(u,uV,30))==null?void 0:_.qO(v,3))===9})?R+"/gmailphotos":R},$CL=function(R,y,u,v){var Q=R.map(function(M){var K={id:M.getId().getId(),
serviceId:"picasa",mimeType:_.$U(M,7),name:M.getName(),type:$D(M),lastEditedUtc:_.wgc(_.Ne(M,_.pX,12)).getTime(),url:M.getUrl(),sizeBytes:Number(GzU(M)),description:_.$U(M,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:qE(Qb(M)),mediaKey:M.getId().getId(),parentId:_.$U(M,4)},h,b=(h=_.Ne(M,xyb,18))==null?void 0:_.Ne(h,oEL,3);b&&(K.latitude=Ek(b,1),K.longitude=Ek(b,2));var N;M=(N=_.Ne(M,xyb,18))==null?void 0:kU(N,6);N=M!=null?k7(M):void 0;N&&(K.version=
N);return K});
return{action:y,docs:Q,viewToken:v,view:u||"photos",extraUserInputs:SLc(R),v2Translated:!0}},EzL=function(R,y,u,v){R=R.map(function(Q){return{id:Q.getId().getId(),
serviceId:"et",name:Qb(Q)[0].getUrl().split("/").pop(),description:_.$U(Q,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:qE(Qb(Q),"etjpg")}});
return{action:y,docs:R,viewToken:v,view:u||"et",v2Translated:!0}},tXg=function(R,y,u,v){R=R.map(function(Q){var M=Q.getId().getId(),K=v["2"];
return{id:M,serviceId:K.type!=="gmail_themes"&&K.parent==="6226252643674576769"?"picasa":"static_themes",name:Q.getName(),mimeType:_.$U(Q,7),type:$D(Q),description:_.$U(Q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:Q.getUrl(),embedUrl:Q.getUrl(),thumbnails:qE(Qb(Q))}});
return{action:y,docs:R,viewToken:v,view:u||"photos",v2Translated:!0}},X55=function(R,y){R=R.map(function(u){var v=_.Ne(u,TCg,27);
v=_.Do(v,1,_.wa,_.Q7())[0];return{id:u.getId().getId(),serviceId:"contacts",mimeType:_.$U(u,7),name:u.getName(),description:_.$U(u,3),url:"mailto:"+v,thumbnail:[{url:_.$U(u,11)}],email:v}});
return{action:y,docs:R,view:"contacts",v2Translated:!0}},kuT=function(R){if(!R)return{};
var y=_.$U(R,3);y=y&&JSON.parse(y)||{};return{0:_.$U(R,1),1:_.$U(R,2),2:y}},qE=function(R,y){y=y===void 0?"":y;
if(!R.length)return null;y=="etjpg"&&(R=R.filter(function(u){return u.getUrl().includes("w1200-h300")}));
return R.map(function(u){return{url:u.getUrl(),height:u.getHeight(),width:u.getWidth(),type:y}})},SLc=function(R){return{isAttachment:R.some(function(y){return _.Uk(y,31)})}},YLc=function(R){var y,u={id:(y=R.getId())==null?void 0:y.getId(),
serviceId:shK(R),mimeType:_.$U(R,7),name:R.getName(),type:$D(R),sizeBytes:Number(GzU(R)),description:_.$U(R,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:qE(Qb(R)),isNew:!0};if(y=_.Ne(R,uV,30)){u.dataUrl=_.$U(y,1)||null;a:{var v=_.Ne(R,uV,30);switch(_.qO(v,3)){case 9:v=_.AR(v,l2c,2,vc);v={remoteRefs:v&&_.$U(v,1)};break a;case 10:case 15:v=_.AR(v,eFg,4,vc);var Q=Qb(R);v={photo_id:v&&_.$U(v,1),media_key:R.getId().getId(),media_type:_.qO(R,6)===1?1:2,image_url:Q&&
Q[0].getUrl(),width:Q&&String(Q[0].getWidth()),height:Q&&String(Q[0].getHeight())};break a}v=null}u.uploadMetadata=v;u.uploadId=_.$U(y,9)||null;u.uploadState=zX5(y)||null}(v=y&&_.AR(y,eFg,4,vc))&&(u.id=_.$U(v,1));(v=y&&_.AR(y,OKY,5,vc))&&(u.contentId=_.$U(v,1));(v=y&&_.AR(y,BCw,7,vc))&&(u.contentId=_.$U(v,1));(v=y&&_.AR(y,f2c,6,vc))&&(u.contentId=_.$U(v,1));(y==null?void 0:_.qO(y,3))===1&&(u.mediaKey=R.getId().getId());return u},shK=function(R){var y;
switch(((y=_.Ne(R,uV,30))==null?void 0:_.qO(y,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},$D=function(R){switch(_.qO(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 _.$U(R,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},zX5=function(R){switch(R==null?void 0:_.qO(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 yvV,gzc,Cag,RuY;_.uMK=function(R,y){var u=y||{};y=u.document||document;var v=_.Oo(R).toString(),Q=(new P7(y)).createElement("SCRIPT"),M={script_:Q,timeout_:void 0},K=new gK(gzc,M),h=null,b=u.timeout!=null?u.timeout:5E3;b>0&&(h=window.setTimeout(function(){Cag(Q,!0);K.errback(new RuY(1,"Timeout reached for loading script "+v))},b),M.timeout_=h);
Q.onload=Q.onreadystatechange=function(){Q.readyState&&Q.readyState!="loaded"&&Q.readyState!="complete"||(Cag(Q,u.cleanupWhenDone||!1,h),K.callback(null))};
Q.onerror=function(){Cag(Q,!0,h);K.errback(new RuY(0,"Error while loading script "+v))};
M=u.attributes||{};_.Ps.extend(M,{type:"text/javascript",charset:"UTF-8"});JI5(Q,M);_.gC(Q,R);yvV(y).appendChild(Q);return K};
yvV=function(R){var y=fF("HEAD",R);return y&&y.length!==0?y[0]:R.documentElement};
gzc=function(){if(this&&this.script_){var R=this.script_;R&&R.tagName=="SCRIPT"&&Cag(R,!0,this.timeout_)}};
Cag=function(R,y,u){u!=null&&_.uO.clearTimeout(u);R.onload=function(){};
R.onerror=function(){};
R.onreadystatechange=function(){};
y&&window.setTimeout(function(){_.BY(R)},0)};
RuY=function(R,y){var u="Jsloader error (code #"+R+")";y&&(u+=": "+y);_.RL.call(this,u);this.code=R};
_.IE(RuY,_.RL);var v2b=_.RE(["https://apis.google.com/js/api.js"]),Qzw=_.M1(v2b),V_8=function(R,y){var u=!1,v=jzK(R,y).then(function(M){u=!0;return M}),Q=_.d18(5E3).then(function(){return u?jzK(R,y):M_i(y).then(function(M){return JvK(M,R)})});
return Bcw([v,Q])},jzK=function(R,y){return i9T(y).then(function(u){return JvK(u,R)})},JvK=function(R,y){var u=_.jv(y,"gapi.")?y.slice(5):y;
return R[u]?_.NQ(R[u]):new _.F4(function(v,Q){var M=dK(function(){Q(Error("Ya"))},3E4);
R.load(y,{callback:function(){_.uO.clearTimeout(M);v(R[u])},
onerror:function(K){_.uO.clearTimeout(M);Q(K)}})})},i9T=function(R){return R.gapi&&R.gapi.load?_.NQ(R.gapi):M_i(R)},M_i=function(R){return _.uMK(Qzw,{document:R.document}).then(function(){return R.gapi})},Keb=function(){};
Keb.prototype.load=function(R,y){y=y===void 0?window:y;var u=Date.now();return V_8(R,y).then(function(v){var Q=Date.now();return{library:v,loadStartMs:u,loadEndMs:Q}},function(v){throw v instanceof Error?v:Error(String(v));
})};var i9O=function(){_.Z0.call(this);this.gapiLoader_=new Keb;this.origin_=null;this.gapiPickerIframeResolver_=_.uD();this.gapiIframesResolver_=_.uD();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.O(i9O,_.Z0);var I1L=function(R,y){var u=_.D6("gapi.iframes",y);return u?(R=Date.now(),_.NQ({library:u,loadStartMs:R,loadEndMs:R})):R.gapiLoader_.load("gapi.iframes",y)},hui=function(R,y,u,v,Q,M){var K=!1;
K=K===void 0?!1:K;I1L(R,U6(y.ownerDocument)).then(function(h){var b=h.library;R.gapiIframesResolver_.resolve(b);h=R.gapiPickerIframeResolver_;var N=h.resolve,T=K;T=T===void 0?!1:T;var x={};x["host-message-handler"]=u;R.hostMessageHandlerInternal_=x;var B=_.pF(v);B=_.pF(B);B=_.Jt(_.ME(_.jY(new _.Cv,B.scheme_),B.JSC$10001_domain_),B.JSC$10001_port_).toString();R.origin_=B;B=(new r75).setUrl(v);B.JSC$10016_obj_.where=y;B.JSC$10016_obj_.allowPost=T;B.JSC$10016_obj_.messageHandlers=x;T=_.D6("makeWhiteListIframesFilter",
b)([R.origin_]);B.JSC$10016_obj_.messageHandlersFilter=T;Q!=null&&(B.JSC$10016_obj_.id=Q);M!=null&&(B.JSC$10016_obj_.rpctoken=M);T=G7g(B);T.JSC$10013_obj_.style={display:"block","min-width":"100%",width:"1px"};T.JSC$10013_obj_.height="100%";G7g(B).value().allow="camera 'src' "+R.origin_;b=b.getContext().openChild(B.value());N.call(h,b)},function(h){R.gapiIframesResolver_.reject(h);
R.gapiPickerIframeResolver_.reject(h)});
return R.gapiPickerIframeResolver_.promise},b98=function(R,y){return _.Pc([R.gapiIframesResolver_.promise,
R.gapiPickerIframeResolver_.promise]).then(function(u){var v=_.V(u);u=v.next().value;return(v=v.next().value)?v.send("picker-message-handler",y,void 0,_.D6("makeWhiteListIframesFilter",u)([R.origin_])):_.qk(Error("Za"))})};
i9O.prototype.disposeInternal=function(){FeT(this);_.Z0.prototype.disposeInternal.call(this)};
var FeT=function(R){R.gapiPickerIframeResolver_.promise.then(function(y){y&&(y.unregister("host-message-handler"),delete R.hostMessageHandlerInternal_["host-message-handler"])})};var wGw=function(){this.JSC$10103_nextId=0};var T35=function(R,y){switch(R.action){case "select-contacts":R=N3b(R.contacts);break;case "visibility":R=R.visible;var u=new J8;R=_.pU(u,1,7).setVisible(R);u={};u["iframe-command"]=R.serialize();R=u;break;default:R=null}return R?b98(y,R):_.NQ()},N3b=function(R){if(!R||R.length==0)return null;
var y=new J8;_.pU(y,1,11);var u=new wGw;R.forEach(function(v){if(v.email){var Q=new WQ;Q=_.R2(Q,2,v.name?v.name:v.email);var M=new TCg;v=_.kaz(M,1,_.hI,v.email,_.wa);v=_.wC(Q,27,v);Q=new FKb;M=":"+(u.JSC$10103_nextId++).toString(36);Q=_.R2(Q,1,M);Q=_.pU(Q,2,12);v=_.wC(v,1,Q)}else v=null;v&&oN(y,7,WQ,v)});
R={};R["iframe-command"]=y.serialize();return R};_.o2c=function(){if(pnO){var R=/Windows NT ([0-9.]+)/;return(R=R.exec(_.NU()))?R[1]:"0"}return _.DTS?(R=/1[0|1][_.][0-9_.]+/,(R=R.exec(_.NU()))?R[0].replace(/_/g,"."):"10"):zsc?(R=/Android\s+([^\);]+)(\)|;)/,(R=R.exec(_.NU()))?R[1]:""):chz||a3P||SYP?(R=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(R=R.exec(_.NU()))?R[1].replace(/_/g,"."):""):""}();var XW;XW=function(R){return(R=R.exec(_.NU()))?R[1]:""};
_.xtc=function(){if(_.xU)return XW(/Firefox\/([0-9.]+)/);if(_.wV||zu||XnL)return ReU;if(_.BQ){if(_.PW()||_.TES()){var R=XW(/CriOS\/([0-9.]+)/);if(R)return R}return XW(/Chrome\/([0-9.]+)/)}if(_.qC&&!_.PW())return XW(/Version\/([0-9.]+)/);if(osz||xqz){if(R=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.NU()))return R[1]+"."+R[2]}else if(jBz)return(R=XW(/Android\s+([0-9.]+)/))?R:XW(/Version\/([0-9.]+)/);return""}();var B3T=function(){};
_.io(B3T);B3T.prototype.nextId_=0;_.mR=function(R){return":"+(R.nextId_++).toString(36)};var At=function(R){_.nT.call(this);this.JSC$10111_dom_=R||fL();this.JSC$10111_id_=null;this.inDocument_=!1;this.JSC$10111_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.IE(At,_.nT);At.prototype.idGenerator_=B3T.getInstance();At.prototype.getId=function(){return this.JSC$10111_id_||(this.JSC$10111_id_=_.mR(this.idGenerator_))};
At.prototype.getElement=function(){return this.JSC$10111_element_};
var DQ=function(R){R.googUiComponentHandler_||(R.googUiComponentHandler_=new _.V9(R));return R.googUiComponentHandler_},f1V=function(R,y){if(R==y)throw Error("$a");
var u;if(u=y&&R.parent_&&R.JSC$10111_id_){u=R.parent_;var v=R.JSC$10111_id_;u=u.childIndex_&&v?_.Ps.get(u.childIndex_,v)||null:null}if(u&&R.parent_!=y)throw Error("$a");R.parent_=y;At.superClass_.setParentEventTarget.call(R,y)};
At.prototype.setParentEventTarget=function(R){if(this.parent_&&this.parent_!=R)throw Error("ab");At.superClass_.setParentEventTarget.call(this,R)};
At.prototype.JSC$10113_createDom=function(){this.JSC$10111_element_=this.JSC$10111_dom_.createElement("DIV")};
At.prototype.render=function(R){eu8(this,R)};
var eu8=function(R,y,u){if(R.inDocument_)throw Error("bb");R.JSC$10111_element_||R.JSC$10113_createDom();y?y.insertBefore(R.JSC$10111_element_,u||null):R.JSC$10111_dom_.JSC$9293_document_.body.appendChild(R.JSC$10111_element_);R.parent_&&!R.parent_.inDocument_||R.enterDocument()};
_.J=At.prototype;_.J.decorate=function(R){if(this.inDocument_)throw Error("bb");if(R&&this.canDecorate(R)){this.wasDecorated_=!0;var y=_.kh(R);this.JSC$10111_dom_&&this.JSC$10111_dom_.JSC$9293_document_==y||(this.JSC$10111_dom_=fL(R));this.decorateInternal(R);this.enterDocument()}else throw Error("cb");};
_.J.canDecorate=function(){return!0};
_.J.decorateInternal=function(R){this.JSC$10111_element_=R};
_.J.enterDocument=function(){this.inDocument_=!0;l18(this,function(R){!R.inDocument_&&R.getElement()&&R.enterDocument()})};
_.J.exitDocument=function(){l18(this,function(R){R.inDocument_&&R.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.J.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);l18(this,function(R){R.dispose()});
!this.wasDecorated_&&this.JSC$10111_element_&&_.BY(this.JSC$10111_element_);this.parent_=this.model_=this.JSC$10111_element_=this.childIndex_=this.children_=null;At.superClass_.disposeInternal.call(this)};
_.J.getModel=function(){return this.model_};
_.J.addChild=function(R,y){var u=this.children_?this.children_.length:0;if(R.inDocument_&&(y||!this.inDocument_))throw Error("bb");if(u<0||u>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);R.parent_==this?(_.Ps.set(this.childIndex_,R.getId(),R),_.m4(this.children_,R)):_.Ps.add(this.childIndex_,R.getId(),R);f1V(R,this);_.Z8c(this.children_,u,0,R);R.inDocument_&&this.inDocument_&&R.parent_==this?(y=this.getContentElement(),
(y.childNodes[u]||null)!=R.getElement()&&(R.getElement().parentElement==y&&y.removeChild(R.getElement()),u=y.childNodes[u]||null,y.insertBefore(R.getElement(),u))):y?(this.JSC$10111_element_||this.JSC$10113_createDom(),u=this.children_?this.children_[u+1]||null:null,eu8(R,this.getContentElement(),u?u.JSC$10111_element_:null)):this.inDocument_&&!R.inDocument_&&R.JSC$10111_element_&&R.JSC$10111_element_.parentNode&&R.JSC$10111_element_.parentNode.nodeType==1&&R.enterDocument()};
_.J.getContentElement=function(){return this.JSC$10111_element_};
var l18=function(R,y){R.children_&&R.children_.forEach(y,void 0)};
At.prototype.removeChild=function(R,y){if(R){var u=typeof R==="string"?R:R.getId();R=this.childIndex_&&u?_.Ps.get(this.childIndex_,u)||null:null;u&&R&&(_.Ps.remove(this.childIndex_,u),_.m4(this.children_,R),y&&(R.exitDocument(),R.JSC$10111_element_&&_.BY(R.JSC$10111_element_)),f1V(R,null))}if(!R)throw Error("eb");return R};_.IE(Ru8,Cav);_.IE(yv4,Cav);var O9c;_.Ps.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var Z9V=function(R,y){y?R.setAttribute("role",y):R.removeAttribute("role")},pI=function(R,y,u){Array.isArray(u)&&(u=u.join(" "));
var v="aria-"+y;u===""||u==void 0?(O9c||(u={},O9c=(u.atomic=!1,u.autocomplete="none",u.dropeffect="none",u.haspopup=!1,u.live="off",u.multiline=!1,u.multiselectable=!1,u.orientation="vertical",u.readonly=!1,u.relevant="additions text",u.required=!1,u.sort="none",u.busy=!1,u.disabled=!1,u.hidden=!1,u.invalid="false",u)),u=O9c,y in u?R.setAttribute(v,u[y]):R.removeAttribute(v)):R.setAttribute(v,u)};var H9b;_.tt=function(R,y,u){_.nT.call(this);this.target=R;this.handle=y||R;this.limits=u||new DM(NaN,NaN,NaN,NaN);this.JSC$10116_document_=_.kh(R);this.JSC$10116_eventHandler_=new _.V9(this);_.bx(this,this.JSC$10116_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;_.E4(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=H9b};
_.IE(_.tt,_.nT);H9b=_.uO.document&&_.uO.document.documentElement&&!!_.uO.document.documentElement.setCapture&&!!_.uO.document.releaseCapture;_.n2i=function(R,y){R.hysteresisDistanceSquared_=Math.pow(y,2)};
_.J=_.tt.prototype;_.J.setEnabled=function(R){this.enabled_=R};
_.J.disposeInternal=function(){_.tt.superClass_.disposeInternal.call(this);_.Hc(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10116_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10116_document_.releaseCapture();this.handle=this.target=null};
_.J.startDrag=function(R){var y=R.type=="mousedown";if(!this.enabled_||this.dragging_||y&&(R.event_.button!=0||_.DTS&&R.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new c0("start",this,R.clientX,R.clientY,R)))this.dragging_=!0,y&&R.preventDefault();else return;else y&&R.preventDefault();y=this.JSC$10116_document_;var u=y.documentElement,v=!this.useSetCapture_;this.JSC$10116_eventHandler_.listen(y,["touchmove","mousemove"],this.handleMove_,
{capture:v,passive:!1});this.JSC$10116_eventHandler_.listen(y,["touchend","mouseup"],this.endDrag,v);this.useSetCapture_?(u.setCapture(!1),this.JSC$10116_eventHandler_.listen(u,"losecapture",this.endDrag)):this.JSC$10116_eventHandler_.listen(U6(y),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10116_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,v);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=Bs(fL(this.JSC$10116_document_))}};
_.J.endDrag=function(R,y){this.JSC$10116_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10116_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new c0("end",this,R.clientX,R.clientY,R,Ggc(this,this.deltaX),rv5(this,this.deltaY),y||R.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.J.handleMove_=function(R){if(this.enabled_){var y=R.clientX-this.clientX,u=R.clientY-this.clientY;this.clientX=R.clientX;this.clientY=R.clientY;this.screenX=R.screenX;this.screenY=R.screenY;if(!this.dragging_){var v=this.startX-this.clientX,Q=this.startY-this.clientY;if(v*v+Q*Q>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new c0("start",this,R.clientX,R.clientY,R)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(R);return}}u=PQg(this,y,u);y=u.x;u=u.y;this.dragging_&&this.dispatchEvent(new c0("beforedrag",
this,R.clientX,R.clientY,R,y,u))&&(Wew(this,R,y,u),R.preventDefault())}};
var PQg=function(R,y,u){var v=Bs(fL(R.JSC$10116_document_));y+=v.x-R.pageScroll.x;u+=v.y-R.pageScroll.y;R.pageScroll=v;R.deltaX+=y;R.deltaY+=u;return new _.dc(Ggc(R,R.deltaX),rv5(R,R.deltaY))};
_.tt.prototype.onScroll_=function(R){var y=PQg(this,0,0);R.clientX=this.clientX;R.clientY=this.clientY;Wew(this,R,y.x,y.y)};
var Wew=function(R,y,u,v){R.target.style.left=u+"px";R.target.style.top=v+"px";R.dispatchEvent(new c0("drag",R,y.clientX,y.clientY,y,u,v))},Ggc=function(R,y){var u=R.limits;
R=isNaN(u.left)?null:u.left;u=isNaN(u.width)?0:u.width;return Math.min(R!=null?R+u:Infinity,Math.max(R!=null?R:-Infinity,y))},rv5=function(R,y){var u=R.limits;
R=isNaN(u.top)?null:u.top;u=isNaN(u.height)?0:u.height;return Math.min(R!=null?R+u:Infinity,Math.max(R!=null?R:-Infinity,y))};
_.tt.prototype.isDragging=function(){return this.dragging_};
var c0=function(R,y,u,v,Q,M,K){_.ew.call(this,R);this.clientX=u;this.clientY=v;this.browserEvent=Q;this.left=M!==void 0?M:y.deltaX;this.top=K!==void 0?K:y.deltaY};
_.IE(c0,_.ew);var aq=function(R){this.JSC$10123_map_=new Map;var y=arguments.length;if(y>1){if(y%2)throw Error("ka");for(var u=0;u<y;u+=2)this.set(arguments[u],arguments[u+1])}else R&&this.addAll(R)};
_.J=aq.prototype;_.J.getCount=function(){return this.JSC$10123_map_.size};
_.J.getValues=function(){return Array.from(this.JSC$10123_map_.values())};
_.J.getKeys=function(){return Array.from(this.JSC$10123_map_.keys())};
_.J.containsKey=function(R){return this.JSC$10123_map_.has(R)};
_.J.containsValue=function(R){return this.getValues().some(function(y){return y==R})};
_.J.equals=function(R,y){var u=this;y=y===void 0?function(v,Q){return v===Q}:y;
return this===R?!0:this.JSC$10123_map_.size!=R.getCount()?!1:this.getKeys().every(function(v){return y(u.JSC$10123_map_.get(v),R.get(v))})};
_.J.isEmpty=function(){return this.JSC$10123_map_.size==0};
_.J.clear=function(){this.JSC$10123_map_.clear()};
_.J.remove=function(R){return this.JSC$10123_map_.delete(R)};
_.J.get=function(R,y){return this.JSC$10123_map_.has(R)?this.JSC$10123_map_.get(R):y};
_.J.set=function(R,y){this.JSC$10123_map_.set(R,y);return this};
_.J.addAll=function(R){if(R instanceof aq){R=_.V(R.JSC$10123_map_);for(var y=R.next();!y.done;y=R.next()){var u=_.V(y.value);y=u.next().value;u=u.next().value;this.JSC$10123_map_.set(y,u)}}else if(R)for(R=_.V(Object.entries(R)),y=R.next();!y.done;y=R.next())u=_.V(y.value),y=u.next().value,u=u.next().value,this.JSC$10123_map_.set(y,u)};
_.J.forEach=function(R,y){var u=this;y=y===void 0?this:y;this.JSC$10123_map_.forEach(function(v,Q){return R.call(y,v,Q,u)})};
_.J.clone=function(){return new aq(this)};(function(){for(var R=["ms","moz","webkit","o"],y,u=0;y=R[u]&&!_.uO.requestAnimationFrame;++u)_.uO.requestAnimationFrame=_.uO[y+"RequestAnimationFrame"],_.uO.cancelAnimationFrame=_.uO[y+"CancelAnimationFrame"]||_.uO[y+"CancelRequestAnimationFrame"];if(!_.uO.requestAnimationFrame){var v=0;_.uO.requestAnimationFrame=function(Q){var M=(new Date).getTime(),K=Math.max(0,16-(M-v));v=M+K;return _.uO.setTimeout(function(){Q(M+K)},K)};
_.uO.cancelAnimationFrame||(_.uO.cancelAnimationFrame=function(Q){clearTimeout(Q)})}})();
var dtw=[[],[]],Utc=0,kg5=!1,E2g=0,qWg=function(R,y){var u=E2g++,v={measureTask:{id:u,fn:R.measure,context:y},mutateTask:{id:u,fn:R.mutate,context:y},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(v.args||(v.args=[]),v.args.length=0,v.args.push.apply(v.args,arguments),v.args.push(v.state)):v.args&&v.args.length!=0?(v.args[0]=v.state,v.args.length=1):v.args=[v.state];v.isScheduled||(v.isScheduled=!0,dtw[Utc].push(v));kg5||(kg5=!0,window.requestAnimationFrame($tc))}},$tc=
function(){kg5=!1;
var R=dtw[Utc],y=R.length;Utc=(Utc+1)%2;for(var u,v=0;v<y;++v){u=R[v];var Q=u.measureTask;u.isScheduled=!1;Q.fn&&Q.fn.apply(Q.context,u.args)}for(v=0;v<y;++v)u=R[v],Q=u.mutateTask,u.isScheduled=!1,Q.fn&&Q.fn.apply(Q.context,u.args),u.state={};R.length=0};var XGg=_.RE(["about:blank"]),mtT=_.RE(["javascript:undefined"]),Avc=_.M1(XGg);_.Oo(Avc);var Dtb=_.M1(mtT);_.Oo(Dtb);var SY=function(R){_.nT.call(this);this.JSC$10129_element_=R;this.listenKeyIn_=_.E4(this.JSC$10129_element_,"focus",this,!0);this.listenKeyOut_=_.E4(this.JSC$10129_element_,"blur",this,!0)};
_.IE(SY,_.nT);SY.prototype.handleEvent=function(R){var y=new _.lV(R.event_);y.type=R.type=="focusin"||R.type=="focus"?"focusin":"focusout";this.dispatchEvent(y)};
SY.prototype.disposeInternal=function(){SY.superClass_.disposeInternal.call(this);dZ(this.listenKeyIn_);dZ(this.listenKeyOut_);delete this.JSC$10129_element_};var pGw=function(R,y){this.JSC$10132_element_=R;this.JSC$10132_dom_=y};var YD=function(R,y){At.call(this,y);this.useIframeMask_=!!R;this.lastFocus_=null;this.resizeBackgroundTask_=qWg({mutate:this.resizeBackground_},this);qWg({mutate:this.updateModalAndBackground_},this)};
_.IE(YD,At);_.J=YD.prototype;_.J.focusHandler_=null;_.J.visible_=!1;_.J.bgEl_=null;_.J.bgIframeEl_=null;_.J.tabCatcherElement_=null;_.J.backwardTabWrapInProgress_=!1;_.J.getCssClass=function(){return"goog-modalpopup"};
_.J.getBackgroundElement=function(){return this.bgEl_};
_.J.JSC$10113_createDom=function(){YD.superClass_.JSC$10113_createDom.call(this);var R=this.getElement(),y=FU(this.getCssClass()).split(" ");s8(R,y);R.tabIndex=0;_.a_(R,!1);t_5(this);cv5(this)};
var t_5=function(R){if(R.useIframeMask_&&!R.bgIframeEl_){var y=R.JSC$10111_dom_.JSC$9295_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.cg(y,Avc);R.bgIframeEl_=y;R.bgIframeEl_.className=R.getCssClass()+"-bg";_.a_(R.bgIframeEl_,!1);$Vc(R.bgIframeEl_,0)}R.bgEl_||(R.bgEl_=R.JSC$10111_dom_.JSC$9295_createDom("DIV",R.getCssClass()+"-bg"),_.a_(R.bgEl_,!1))},cv5=function(R){R.tabCatcherElement_||(R.tabCatcherElement_=R.JSC$10111_dom_.createElement("SPAN"),_.a_(R.tabCatcherElement_,
!1),R.tabCatcherElement_.tabIndex=0,R.tabCatcherElement_.style.position="absolute")};
_.J=YD.prototype;_.J.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.J.canDecorate=function(R){return!!R&&R.tagName=="DIV"};
_.J.decorateInternal=function(R){YD.superClass_.decorateInternal.call(this,R);R=FU(this.getCssClass()).split(" ");s8(this.getElement(),R);t_5(this);cv5(this);this.getElement().tabIndex=0;_.a_(this.getElement(),!1)};
_.J.enterDocument=function(){this.bgIframeEl_&&_.qW(this.bgIframeEl_,this.getElement());_.qW(this.bgEl_,this.getElement());YD.superClass_.enterDocument.call(this);_.Xi(this.tabCatcherElement_,this.getElement());this.focusHandler_=new SY(this.JSC$10111_dom_.JSC$9293_document_);DQ(this).listen(this.focusHandler_,"focusin",this.onFocus);a1g(this,!1)};
_.J.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.R_(this.focusHandler_);YD.superClass_.exitDocument.call(this);_.BY(this.bgIframeEl_);_.BY(this.bgEl_);_.BY(this.tabCatcherElement_)};
_.J.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_&&a1g(this,R),R){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10111_dom_.JSC$9293_document_.activeElement}catch(Q){}this.updateModalAndBackground_();DQ(this).listen(this.JSC$10111_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10111_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);SW5(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)Wy(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){DQ(this).unlisten(this.JSC$10111_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10111_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)Wy(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var y=this.JSC$10111_dom_,u=y.JSC$9293_document_.body,v=y.JSC$9293_document_.activeElement||u;if(!this.lastFocus_||this.lastFocus_==u){this.lastFocus_=null;break a}(v==u||y.contains(this.getElement(),v))&&this.lastFocus_.focus()}catch(Q){}this.lastFocus_=
null}}};
var a1g=function(R,y){R.modalAriaVisibilityHelper_||(R.modalAriaVisibilityHelper_=new pGw(R.JSC$10111_element_,R.JSC$10111_dom_));R=R.modalAriaVisibilityHelper_;if(y){R.hiddenElements_||(R.hiddenElements_=[]);y=R.JSC$10132_dom_.getChildren(R.JSC$10132_dom_.JSC$9293_document_.body);for(var u=0;u<y.length;u++){var v=y[u],Q;if(Q=v!=R.JSC$10132_element_)Q=v.getAttribute("aria-hidden"),Q=!(Q==null||Q==void 0?0:String(Q));Q&&(pI(v,"hidden",!0),R.hiddenElements_.push(v))}}else if(R.hiddenElements_){for(y=
0;y<R.hiddenElements_.length;y++)R.hiddenElements_[y].removeAttribute("aria-hidden");R.hiddenElements_=null}};
YD.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var SW5=function(R,y){R.bgIframeEl_&&_.a_(R.bgIframeEl_,y);R.bgEl_&&_.a_(R.bgEl_,y);_.a_(R.getElement(),y);_.a_(R.tabCatcherElement_,y)};
_.J=YD.prototype;_.J.onShow=function(){this.dispatchEvent("show")};
_.J.onHide=function(){SW5(this,!1);this.dispatchEvent("hide")};
_.J.isVisible=function(){return this.visible_};
_.J.focus=function(){this.focusElement_()};
_.J.resizeBackground_=function(){this.bgIframeEl_&&_.a_(this.bgIframeEl_,!1);this.bgEl_&&_.a_(this.bgEl_,!1);var R=this.JSC$10111_dom_.JSC$9293_document_;var y=_.xh(U6(this.JSC$10111_dom_.JSC$9293_document_)||window);var u=Math.max(y.width,Math.max(R.body.scrollWidth,R.documentElement.scrollWidth));R=Math.max(y.height,Math.max(R.body.scrollHeight,R.documentElement.scrollHeight));this.bgIframeEl_&&(_.a_(this.bgIframeEl_,!0),_.dVV(this.bgIframeEl_,u,R));this.bgEl_&&(_.a_(this.bgEl_,!0),_.dVV(this.bgEl_,
u,R))};
_.J.reposition=function(){var R;if(_.Wg8(this.getElement())=="fixed")var y=R=0;else y=Bs(this.JSC$10111_dom_),R=y.x,y=y.y;var u=kaL(this.getElement());var v=_.xh(U6(this.JSC$10111_dom_.JSC$9293_document_)||window);R=Math.max(R+v.width/2-u.width/2,0);y=Math.max(y+v.height/2-u.height/2,0);c7(this.getElement(),R,y);c7(this.tabCatcherElement_,R,y)};
_.J.onFocus=function(R){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():R.target==this.tabCatcherElement_&&dK(this.focusElement_,0,this)};
_.J.focusElement_=function(){try{this.getElement().focus()}catch(R){}};
_.J.disposeInternal=function(){_.R_(this.popupShowTransition_);this.popupShowTransition_=null;_.R_(this.popupHideTransition_);this.popupHideTransition_=null;_.R_(this.bgShowTransition_);this.bgShowTransition_=null;_.R_(this.bgHideTransition_);this.bgHideTransition_=null;YD.superClass_.disposeInternal.call(this)};var EX=function(R,y,u){YD.call(this,y,u);this.JSC$10142_class_=R||"modal-dialog";this.buttons_=(new LI).addButton(YWb,!0).addButton(Leg,!1,!0)};
_.IE(EX,YD);_.J=EX.prototype;_.J.escapeToCancel_=!0;_.J.hasTitleCloseButton_=!0;_.J.modal_=!0;_.J.draggable_=!0;_.J.backgroundElementOpacity_=.5;_.J.title_="";_.J.JSC$10144_dragger_=null;_.J.JSC$10144_disposeOnHide_=!1;_.J.titleEl_=null;_.J.titleTextEl_=null;_.J.titleTextId_=null;_.J.titleCloseEl_=null;_.J.contentEl_=null;_.J.buttonEl_=null;_.J.getCssClass=function(){return this.JSC$10142_class_};
_.J.setTitle=function(R){this.title_=R;this.titleTextEl_&&_.Ak(this.titleTextEl_,R)};
_.J.getTitle=function(){return this.title_};
_.J.getContent=function(){return""};
_.J.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var szV=function(R){R.getElement()||R.render();return R.getElement()};
EX.prototype.getBackgroundElement=function(){this.getElement()||this.render();return EX.superClass_.getBackgroundElement.call(this)};
var zuT=function(R,y){R.backgroundElementOpacity_=y;R.getElement()&&(y=R.getBackgroundElement())&&$Vc(y,R.backgroundElementOpacity_)};
EX.prototype.setDraggable=function(R){this.draggable_=R;g2c(this,R&&this.inDocument_)};
EX.prototype.JSC$10144_handleDrag=function(){};
var g2c=function(R,y){var u=FU(R.JSC$10142_class_+"-title-draggable").split(" ");R.getElement()&&(y?s8(R.titleEl_,u):ZyV(R.titleEl_,u));y&&!R.JSC$10144_dragger_?(y=new _.tt(R.getElement(),R.titleEl_),R.JSC$10144_dragger_=y,s8(R.titleEl_,u),_.E4(R.JSC$10144_dragger_,"start",R.setDraggerLimits_,!1,R),_.E4(R.JSC$10144_dragger_,"drag",R.JSC$10144_handleDrag,!1,R)):!y&&R.JSC$10144_dragger_&&(R.JSC$10144_dragger_.dispose(),R.JSC$10144_dragger_=null)};
_.J=EX.prototype;
_.J.JSC$10113_createDom=function(){EX.superClass_.JSC$10113_createDom.call(this);var R=this.getElement(),y=this.JSC$10111_dom_;this.titleTextId_=this.getId();var u=this.getId()+".contentEl";this.titleEl_=y.JSC$9295_createDom("DIV",this.JSC$10142_class_+"-title",this.titleTextEl_=y.JSC$9295_createDom("SPAN",{className:this.JSC$10142_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=y.JSC$9295_createDom("SPAN",this.JSC$10142_class_+"-title-close"));h78(R,this.titleEl_,this.contentEl_=
y.JSC$9295_createDom("DIV",{className:this.JSC$10142_class_+"-content",id:u}),this.buttonEl_=y.JSC$9295_createDom("DIV",this.JSC$10142_class_+"-buttons"));Z9V(this.titleTextEl_,"heading");Z9V(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;pI(this.titleCloseEl_,"label","Close");Z9V(R,"dialog");pI(R,"labelledby",this.titleTextId_||"");_.a_(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(R=this.buttons_,R.JSC$10145_element_=this.buttonEl_,R.render());_.a_(this.buttonEl_,!!this.buttons_);
zuT(this,this.backgroundElementOpacity_)};
_.J.decorateInternal=function(R){EX.superClass_.decorateInternal.call(this,R);R=this.getElement();var y=this.JSC$10142_class_+"-content";this.contentEl_=W7(document,null,y,R)[0];this.contentEl_||(this.contentEl_=this.JSC$10111_dom_.JSC$9295_createDom("DIV",y),R.appendChild(this.contentEl_));y=this.JSC$10142_class_+"-title";var u=this.JSC$10142_class_+"-title-text",v=this.JSC$10142_class_+"-title-close";(this.titleEl_=W7(document,null,y,R)[0])?(this.titleTextEl_=W7(document,null,u,this.titleEl_)[0],
this.titleCloseEl_=W7(document,null,v,this.titleEl_)[0]):(this.titleEl_=this.JSC$10111_dom_.JSC$9295_createDom("DIV",y),R.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=HZ5(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.UO("SPAN",{className:u,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;pI(R,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10111_dom_.JSC$9295_createDom("SPAN",v),this.titleEl_.appendChild(this.titleCloseEl_));_.a_(this.titleCloseEl_,this.hasTitleCloseButton_);y=this.JSC$10142_class_+"-buttons";(this.buttonEl_=W7(document,null,y,R)[0])?(this.buttons_=new LI(this.JSC$10111_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10111_dom_.JSC$9295_createDom("DIV",y),R.appendChild(this.buttonEl_),this.buttons_&&(R=this.buttons_,R.JSC$10145_element_=this.buttonEl_,R.render()),_.a_(this.buttonEl_,
!!this.buttons_));zuT(this,this.backgroundElementOpacity_)};
_.J.enterDocument=function(){EX.superClass_.enterDocument.call(this);DQ(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);DQ(this).listen(this.buttonEl_,"click",this.onButtonClick_);g2c(this,this.draggable_);DQ(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var R=this.getElement();Z9V(R,"dialog");this.titleTextEl_.id!==""&&pI(R,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){R=this.JSC$10111_dom_;
var y=this.getBackgroundElement();R.removeNode(this.bgIframeEl_);R.removeNode(y)}this.isVisible()&&a1g(this,!1)}};
_.J.exitDocument=function(){this.isVisible()&&this.setVisible(!1);g2c(this,!1);EX.superClass_.exitDocument.call(this)};
_.J.setVisible=function(R){R!=this.isVisible()&&(this.inDocument_||this.render(),EX.superClass_.setVisible.call(this,R))};
_.J.onShow=function(){EX.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.J.onHide=function(){EX.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10144_disposeOnHide_&&this.dispose()};
_.J.setDraggerLimits_=function(){var R=this.JSC$10111_dom_.JSC$9293_document_,y=_.xh(U6(R)||window),u=Math.max(R.body.scrollWidth,y.width);R=Math.max(R.body.scrollHeight,y.height);var v=kaL(this.getElement());_.Wg8(this.getElement())=="fixed"?this.JSC$10144_dragger_.limits=new DM(0,0,Math.max(0,y.width-v.width),Math.max(0,y.height-v.height)):this.JSC$10144_dragger_.limits=new DM(0,0,u-v.width,R-v.height)};
_.J.onTitleCloseClick_=function(){CQb(this)};
var CQb=function(R){if(R.hasTitleCloseButton_){var y=R.buttons_,u=y&&y.cancelButton_;u?(y=y.get(u),R.dispatchEvent(new sR(u,y))&&R.setVisible(!1)):R.setVisible(!1)}},RHL=function(R){R.hasTitleCloseButton_=!1;
R.titleCloseEl_&&_.a_(R.titleCloseEl_,R.hasTitleCloseButton_)};
EX.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;EX.superClass_.disposeInternal.call(this)};
EX.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 y=this.buttons_.get(R);this.dispatchEvent(new sR(R,y))&&this.setVisible(!1)}};
EX.prototype.onKey_=function(R){var y=!1,u=!1,v=this.buttons_,Q=R.target;if(R.type=="keydown")if(this.escapeToCancel_&&R.keyCode==27){var M=v&&v.cancelButton_;Q=Q.tagName=="SELECT"&&!Q.disabled;M&&!Q?(u=!0,y=v.get(M),y=this.dispatchEvent(new sR(M,y))):Q||(y=!0)}else{if(R.keyCode==9&&R.shiftKey&&Q==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(T){}dK(this.resetBackwardTabWrap_,0,this)}}else if(R.keyCode==13){if(Q.tagName=="BUTTON"&&!Q.disabled)M=Q.name;
else if(Q==this.titleCloseEl_)CQb(this);else if(v){var K=v.defaultButton_,h;if(h=K)a:{h=fF("BUTTON",v.JSC$10145_element_);for(var b,N=0;b=h[N];N++)if(b.name==K||b.id==K){h=b;break a}h=null}Q=(Q.tagName=="TEXTAREA"||Q.tagName=="SELECT"||Q.tagName=="A")&&!Q.disabled;!h||h.disabled||Q||(M=K)}M&&v&&(u=!0,y=this.dispatchEvent(new sR(M,String(v.get(M)))))}else Q!=this.titleCloseEl_||R.keyCode!=32&&R.key!=" "||CQb(this);if(y||u)R.stopPropagation(),R.preventDefault();y&&this.setVisible(!1)};
var sR=function(R,y){this.type="dialogselect";this.key=R;this.caption=y};
_.IE(sR,_.ew);var LI=function(R){aq.call(this);R||fL();this.cancelButton_=this.JSC$10145_element_=this.defaultButton_=null};
_.IE(LI,aq);_.J=LI.prototype;_.J.clear=function(){aq.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.J.set=function(R,y,u,v){aq.prototype.set.call(this,R,y);u&&(this.defaultButton_=R);v&&(this.cancelButton_=R);return this};
_.J.addButton=function(R,y,u){return this.set(R.key,R.caption,y,u)};
_.J.render=function(){if(this.JSC$10145_element_){_.CK(this.JSC$10145_element_,b9S);var R=fL(this.JSC$10145_element_);this.forEach(function(y,u){y=R.JSC$9295_createDom("BUTTON",{name:u},y);u==this.defaultButton_&&(y.className="goog-buttonset-default");this.JSC$10145_element_.appendChild(y)},this)}};
_.J.decorate=function(R){if(R&&R.nodeType==1){this.JSC$10145_element_=R;R=fF("BUTTON",this.JSC$10145_element_);for(var y,u,v,Q=0;y=R[Q];Q++)if(u=y.name||y.id,v=HZ5(y)||y.value,u){var M=Q==0;this.set(u,v,M,y.name=="cancel");M&&_.J6(y,"goog-buttonset-default")}}};
_.J.getElement=function(){return this.JSC$10145_element_};
var YWb={key:"ok",caption:"OK"},Leg={key:"cancel",caption:"Cancel"},yc8={key:"yes",caption:"Yes"},u45={key:"no",caption:"No"},vTK={key:"save",caption:"Save"},QNb={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new LI).addButton(YWb,!0,!0),(new LI).addButton(YWb,!0).addButton(Leg,!1,!0),(new LI).addButton(yc8,!0).addButton(u45,!1,!0),(new LI).addButton(yc8).addButton(u45,!0).addButton(Leg,!1,!0),(new LI).addButton(QNb).addButton(vTK).addButton(Leg,!0,!0));_.IE(uMW,EX);_.IE(v2L,$7);var jNc=_.RE(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),MxV=_.RE(["//apis.google.com/js/rpc.js"]),huP=_.M1(jNc),I1z=_.M1(MxV),jzW=null;var qe=function(R,y){_.nT.call(this);this.JSC$10154_element_=R;R=_.L9(this.JSC$10154_element_)?this.JSC$10154_element_:this.JSC$10154_element_?this.JSC$10154_element_.body:null;this.isRtl_=!!R&&_.qmc(R);this.listenKey_=_.E4(this.JSC$10154_element_,_.NO?"DOMMouseScroll":"mousewheel",this,y)};
_.IE(qe,_.nT);qe.prototype.handleEvent=function(R){var y=0,u=0,v=R.event_;v.type=="mousewheel"?(R=Jc5(-v.wheelDelta),v.wheelDeltaX!==void 0?(y=Jc5(-v.wheelDeltaX),u=Jc5(-v.wheelDeltaY)):u=R):(R=v.detail,R>100?R=3:R<-100&&(R=-3),v.axis!==void 0&&v.axis===v.HORIZONTAL_AXIS?y=R:u=R);typeof this.maxDeltaX_==="number"&&(y=_.Ae(y,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(u=_.Ae(u,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(y=-y);y=new Vx5(R,v,y,u);this.dispatchEvent(y)};
var Jc5=function(R){return _.T$&&(_.DTS||tjv)&&R%40!=0?R:R/40};
qe.prototype.disposeInternal=function(){qe.superClass_.disposeInternal.call(this);dZ(this.listenKey_);this.listenKey_=null};
var Vx5=function(R,y,u,v){_.lV.call(this,y);this.type="mousewheel";this.detail=R;this.deltaX=u;this.deltaY=v};
_.IE(Vx5,_.lV);_.Vz=function(R){var y="instance_";if(R.instance_&&R.hasOwnProperty(y))return R.instance_;y=new R;return R.instance_=y};var KeL;var iiT=_.RE(["https://about:blank"]),KWg=_.RE(['javascript:""']),Iz5=_.RE(["about:blank"]);_.IE(SZ,uMW);_.J=SZ.prototype;_.J.JSC$10162_url_="";_.J.JSC$10162_iframe_=null;_.J.iframeLoaded_=!1;_.J.loadedFired_=!1;_.J.callback_=function(){};
_.J.enterDocument=function(){SZ.superClass_.enterDocument.call(this);V_S(this.getBackgroundElement(),DQ(this))};
_.J.render=function(R){var y=this;SZ.superClass_.render.call(this,R);this.useGapi_?I1L(this.iframeManager_,window).then(function(){return hHV(y)}).then(null,function(){y.callback_({action:"error"})}):big(this)};
var hHV=function(R){var y=R.JSC$10111_dom_.JSC$9295_createDom("div",["picker-dialog-content","picker-frame"]);_.a_(y,!1);R.getContentElement().appendChild(y);return hui(R.iframeManager_,y,function(u){var v=WKi(u["iframe-command"]);switch(v.getCommand()){case 1:u=R.callback_;v=_.Ne(v,Mg,2);var Q="";switch(v.getStatus()){case 2:Q="cancel";break;case 1:Q="picked";break;case 3:Q="error"}var M=_.vY(v,WQ,2,_.Q7(FT8));v=M.length===0?{action:Q}:aIK(M,Q,_.Ne(v,GB5,7));u.call(R,v);R.setVisible(!1);break;case 4:RHL(R);
R.callback_({action:"loaded"});break;case 7:case 8:u=R.callback_;a:{Q=v.getCommand();M=_.Ne(v,Mg,2);switch(Q){case 7:Q="uploadScheduled";break;case 8:Q="uploadStateChange";break;default:v={};break a}v=_.vY(M,WQ,2,_.Q7(FT8));if(v.length===0)v={action:Q};else{var K=_.Ne(M,GB5,7);M=K&&_.$U(K,1);K=kuT(K);v=qLi(v,Q,M,K)}}u.call(R,v)}},R.JSC$10162_url_,R.targetId_,R.rpcToken_).then(function(u){R.JSC$10162_iframe_=u.getIframeEl();
FWK(R);_.a_(R.JSC$10162_iframe_.parentElement,!0);_.J6(R.getElement(),"picker-dialog");w3G(R);return u})},big=function(R){R.JSC$10162_iframe_=R.JSC$10111_dom_.JSC$9295_createDom("IFRAME",{id:R.targetId_,
name:R.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.cg(R.JSC$10162_iframe_,NIc(R));_.J6(R.getElement(),"picker-dialog");R.getContentElement().appendChild(R.JSC$10162_iframe_);DQ(R).listen(R.JSC$10162_iframe_,"load",function(){return void FWK(R)});
R.JSC$10162_iframe_.src=R.JSC$10162_url_;w3G(R)},oTc=function(R){TI5(R,(0,_.HY)(function(y){y.setAuthToken(this.targetId_,this.rpcToken_)},R))},w3G=function(R){var y=_.tD(_.pF(R.JSC$10162_url_),"title");
y&&R.setTitle(y)},NIc=function(R){return _.F4T("Internet Explorer")>=7&&_.jv(R.JSC$10162_url_,"https")?_.M1(iiT):_.wV?_.M1(KWg):_.M1(Iz5)},FWK=function(R){oTc(R);
R.iframeLoaded_=!0;R.JSC$10162_iframe_.tabIndex=0;R.isVisible()&&R.focus()};
SZ.prototype.handleKeydown_=function(R){R.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),R.stopPropagation(),R.preventDefault())};
var TI5=function(R,y){var u=R.JSC$10160_gadgetsDomHelper_;M_P(function(){y(u.getWindow().gadgets.rpc)},u)};
SZ.prototype.setUrl=function(R){R=_.cY(new _.Cv(R),"rpcService",this.targetId_);_.cY(R,"rpctoken",this.rpcToken_);_.KI(R,"rpctoken="+this.rpcToken_);_.jY(R,"https");this.JSC$10162_url_=R.toString();this.JSC$10162_iframe_&&(this.JSC$10162_iframe_.src=this.JSC$10162_url_)};
var xc5=function(R,y){R.callback_=y;TI5(R,(0,_.HY)(function(u){u.register(this.targetId_,(0,_.HY)(this.handlePickerAction_,this))},R))};
SZ.prototype.handlePickerAction_=function(R){var y=R.action;y=="loaded"&&(this.loadedFired_=!0,BIc(this,new yv4(this.isVisible())),fzb(this),RHL(this),DQ(this).unlisten(this.JSC$10111_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10162_iframe_.tabIndex=0);y!="picked"&&y!="cancel"||this.setVisible(!1);this.callback_(R)};
var fzb=function(R){R.JSC$10162_appId_&&BIc(R,new Ru8(R.JSC$10162_appId_,window.location.protocol+"//"+window.location.host))};
SZ.prototype.setRelayUrl=function(R){TI5(this,(0,_.HY)(function(y){y.setRelayUrl(this.targetId_,R)},this))};
var BIc=function(R,y){R.useGapi_&&T35(y,R.iframeManager_).then(null,function(){R.callback_({action:"error"})});
TI5(R,(0,_.HY)(function(u){u.call(this.targetId_,"picker",null,y)},R))};
SZ.prototype.resizePicker_=function(){var R=U6(this.JSC$10111_dom_.JSC$9293_document_)||window;if(_.tD(_.pF(this.JSC$10162_url_),"ignoreLimits")=="true")R=new _.or(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.tD(_.pF(this.JSC$10162_url_),"shadeDialog")=="true"){var y=szV(this);y=XHi(y);var u=_.xh(R);R=u.width-80;u=u.height-40;y&&(R-=y.left?y.left:0,R-=y.right?y.right:0,u-=y.top?y.top:0,u-=y.bottom?y.bottom:0);R=new _.or(R>0?R:0,u>0?u:0)}else(y=this.preferredDialogWidth_)?(y=Math.max(320,
Math.min(1051,y)),(u=this.preferredDialogHeight_)||(u=_.xh(R).height*.85),u=Math.max(480,Math.min(650,u))):(y=_.xh(R),u=y.width*.618,u=u<y.height?Math.round(Math.max(480,Math.min(650,u*.85))):Math.round(Math.max(480,Math.min(650,y.height*.85))),y=Math.round(u/.618)),R=_.xh(R),y=Math.min(y,Math.max(R.width,320)),u=Math.min(u,Math.max(R.height,480)),R=new _.or(y,u);_.dVV(this.getContentElement(),R);this.reposition()};
SZ.prototype.reposition=function(){if(_.tD(_.pF(this.JSC$10162_url_),"shadeDialog")=="true"){var R=kaL(this.getElement()),y=_.xh(this.JSC$10111_dom_.getWindow());R=Math.floor(y.width/2-R.width/2);y=szV(this);if(y=XHi(y)){var u=y.left?y.left:0;u+=y.right?y.right:0;R=Math.floor(R-u/2)}R=R>0?R:0;y=Bs(this.JSC$10111_dom_).y;c7(this.getElement(),R,y)}else SZ.superClass_.reposition.call(this)};
SZ.prototype.setVisible=function(R){if(R!=this.isVisible()&&this.autoSizeDialog_){var y=this.JSC$10111_dom_.getWindow();R?(this.resizePicker_(),DQ(this).listen(y,"resize",this.resizePicker_),this.iframeLoaded_||DQ(this).listen(y,"keydown",this.handleKeydown_)):(DQ(this).unlisten(y,"resize",this.resizePicker_),this.iframeLoaded_||DQ(this).unlisten(y,"keydown",this.handleKeydown_))}SZ.superClass_.setVisible.call(this,R);BIc(this,new yv4(R))};
SZ.prototype.focus=function(){SZ.superClass_.focus.call(this);if(this.JSC$10162_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10162_iframe_.focus()}catch(R){}};var mH=function(R,y){y=y===void 0?SZ:y;$7.call(this,R);this.pickerConstructor=y;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_=[]};
_.O(mH,v2L);mH.prototype.JSC$10167_disposeOnHide_=!1;
mH.prototype.build=function(){this.JSC$10068_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10068_appId_);this.getRelayUrl()||this.setRelayUrl(_.Vh(_.KI(_.iA(_.pF(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var R=new this.pickerConstructor(eH5(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);R.JSC$10144_disposeOnHide_=this.JSC$10167_disposeOnHide_;
R.JSC$10162_appId_=this.JSC$10068_appId_;R.loadedFired_&&fzb(R);xc5(R,this.callback_);return R};
var lz5=function(R){R.urlParamMap_.set("multiselectEnabled","true");return R};
_.J=mH.prototype;_.J.getHeight=function(){return this.dialogHeight_};
_.J.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.J.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.J.getTitle=function(){return this.urlParamMap_.get("title")};
_.J.getWidth=function(){return this.dialogWidth_};
var OiT=function(R){R.JSC$10167_disposeOnHide_=void 0;return R};
mH.prototype.setRelayUrl=function(R){this.urlParamMap_.set("parent",R);return this};
var ZiT=function(R,y){R.urlParamMap_.set("selectButtonLabel",y);return R};
mH.prototype.setSize=function(R,y){this.dialogWidth_=R;this.dialogHeight_=y;return this};
mH.prototype.setTitle=function(R){this.urlParamMap_.set("title",R);return this};
var eH5=function(R){R.postProcessors_.length&&R.urlParamMap_.set("pp",JSON.stringify(R.postProcessors_));R.urlParamMap_.set("nav",PaT(R.nav_));var y=new _.Cv(R.getBaseUrl());R.urlParamMap_.forEach(function(u,v){_.cY(y,v,u)});
return y};var Gp5=function(R,y){R.name!==void 0?(this.name=R.name,this.code=Hii[R.name]):(this.code=R=R.code,this.name=nTi(R));_.RL.call(this,L4K("%s %s",this.name,y))};
_.IE(Gp5,_.RL);var nTi=function(R){var y=_.Ps.findKey(Hii,function(u){return R==u});
if(y===void 0)throw Error("hb`"+R);return y},zQ={},Hii=(zQ.AbortError=3,zQ.EncodingError=5,zQ.InvalidModificationError=9,zQ.InvalidStateError=7,zQ.NotFoundError=1,zQ.NotReadableError=4,zQ.NoModificationAllowedError=6,zQ.PathExistsError=12,zQ.QuotaExceededError=10,zQ.SecurityError=2,zQ.SyntaxError=8,zQ.TypeMismatchError=11,zQ);var rc8=function(R,y){_.ew.call(this,R.type,y);this.event_=R};
_.IE(rc8,_.ew);var P_L=function(R,y,u){u===void 0&&(u=R.size);return R.slice?R.slice(y,u):null};var wGc=new WeakMap,FeO=function(R,y){R=[R];for(var u=y.length-1;u>=0;--u)R.push(typeof y[u],y[u]);return R.join("\v")};_.T3U(function(){if(!_.uO.Blob)return!1;var R=new Uint8Array(100);try{var y=new Blob([R])}catch(u){return!1}return y.size!=100?!1:!0});
var WWg=_.T3U(function(){if(!_.uO.Blob)return!1;var R=new Uint8Array(100);try{var y=new Blob([R])}catch(u){return!1}return P_L(y,0,1)===null?!1:!0});_.uO.U3bHHf!=null||(_.uO.U3bHHf=0);_.uO.U3bHHf++;_.dcY=new WeakMap;_.UcL=new WeakMap;var o2G={};var zl=void 0;var B3O=Symbol("pb");var UtT=Rn("WizInjectionContext_Dispatcher");var ur=Symbol("qb");var wB,fG;wB=function(){this.afterRenderCallbacks=null};
_.axG=Symbol("rb");fG=function(R){this.props=R;this.__unmounted=!1};
fG.prototype.didPatch=function(){};
fG.prototype.didMount=function(){};
fG.prototype.didUnmount=function(){};
fG.prototype.didUpdate=function(){};_.GgT=Rn("WizInjectionContext_RootElement");var PQE=Rn("WizInjectionContext_AppContext"),rvU=Rn("WizInjectionContext_ModelRootElement"),Wec=Rn("WizInjectionContext_RendererData"),dtc=Rn("WizInjectionContext_InjectingConstructor"),n2P=Rn("WizInjectionContext_AsyncDeps"),kgT={};var AvG=!1;var cvU={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:EKL,enableLazyTsx:$TT,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:keO,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var u$=Object.assign({},{attributes:{},handleError:function(R){throw R;}},cvU);var kpG=Symbol("vb"),on=Symbol("wb"),kpU=Symbol("xb"),dc8=Symbol("yb"),Dcc=Ui(function(R){return vT(R)&&kpG in R});var g2G=Symbol("zb"),gq={},sz4=(gq[g2G]=!0,gq.debugName="[component]",gq.getComponentStack=function(){for(var R=[],y=this;y;)CQL(y)&&R.push(y.debugName),y=y.parent;return R},gq.registerSignal=function(){},gq.registerEffect=function(){},gq);var QU=null,M8=!1,vTW=1,i$=Symbol("Ab"),wh={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var CI=Symbol("Bb"),RZ=Symbol("Cb"),VU=Symbol("Db"),IzT=Object.assign({},wh,{value:CI,dirty:!0,error:null,equal:RHz,kind:"computed",producerMustRecompute:function(R){return R.value===CI||R.value===RZ},
producerRecomputeValue:function(R){if(R.value===RZ)throw Error("Z");var y=R.value;R.value=RZ;var u=VxT(R),v=!1;try{var Q=R.computation();jf(null);v=y!==CI&&y!==VU&&Q!==VU&&R.equal(y,Q)}catch(M){Q=VU,R.error=M}finally{KWv(R,u)}v?R.value=y:(R.value=Q,R.version++)}});var w3U=function(){throw Error();};var TIU=null,biv=Object.assign({},wh,{equal:RHz,value:void 0,kind:"signal"});Object.assign({},wh,{value:CI,dirty:!0,error:null,equal:RHz,kind:"linkedSignal",producerMustRecompute:function(R){return R.value===CI||R.value===RZ},
producerRecomputeValue:function(R){if(R.value===RZ)throw Error("Z");var y=R.value;R.value=RZ;var u=VxT(R);try{var v=R.source();var Q=R.computation(v,y===CI||y===VU?void 0:{source:R.sourceValue,value:y});R.sourceValue=v}catch(M){Q=VU,R.error=M}finally{KWv(R,u)}y!==CI&&Q!==VU&&R.equal(y,Q)?R.value=y:(R.value=Q,R.version++)}});Object.assign({},wh,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(R){R.schedule!==null&&R.schedule(R.ref)},
hasRun:!1,cleanupFn:function(){}});var xcT=Symbol("Eb"),h2=Symbol("Fb");var b$=Array.isArray;var GpT;var ETc={},P_z=nTP(Object.assign({},{consumerAllowSignalWrites:!0},ETc)),T7=nTP(Object.assign({},{consumerAllowSignalWrites:!0},ETc));var xa=0,BT=!1,yC=function(){this.queue=new Set};
yC.prototype.remove=function(R){this.queue.delete(R)};
yC.prototype.clear=function(){this.queue.clear()};
var $cT=function(){yC.apply(this,arguments)};
_.O($cT,yC);$cT.prototype.schedule=function(R){this.queue.add(R)};
$cT.prototype.flush=function(){if(this.queue.size){BT=!0;try{for(var R=_.V(this.queue),y=R.next();!y.done;y=R.next()){var u=y.value;this.queue.delete(u);try{u.run()}catch(v){qhV(v)}}}finally{BT=!1}}};
var X3V=new $cT,um=function(){yC.apply(this,arguments)};
_.O(um,yC);var mcg=function(){um.apply(this,arguments)};
_.O(mcg,um);mcg.prototype.schedule=function(R){R.hasRun?this.queue.add(R):R.run()};
mcg.prototype.flush=function(){if(this.queue.size)if(u$.flushRenderEffectsDuringRender){var R=this.queue;this.queue=new Set;p3T(R)}else p3T(this.queue)};
var WWE=new mcg,AcK=function(){um.apply(this,arguments)};
_.O(AcK,um);AcK.prototype.schedule=function(R){var y=this;return _.I(function(u){if(u.nextAddress==1)return R.hasRun?u.jumpTo(2):u.yield(Promise.resolve(),3);if(u.nextAddress!=2)return R.run(),u.return();y.queue.add(R);_.f$(u)})};
AcK.prototype.flush=function(){var R=this;return _.I(function(y){if(y.nextAddress==1)return R.queue.size?y.yield(Promise.resolve(),2):y.return();p3T(R.queue);_.f$(y)})};
var ETG=new AcK,Dcw=function(){um.apply(this,arguments)};
_.O(Dcw,um);Dcw.prototype.schedule=function(R){this.queue.add(R)};
Dcw.prototype.flush=function(){this.queue.size&&p3T(this.queue)};
var Ucz=new Dcw,mcE=[WWE,X3V,Ucz,ETG],p3c=[WWE,Ucz,ETG],qh4=[];TIU=function(){AcW();for(var R=_.V(qh4),y=R.next();!y.done;y=R.next())y=y.value,y()};
var qhV=vW;var l$=Symbol("Kb");var ef=null,azL,Shv=null,YhU;var vt={},txc=Object.assign({},wh,(vt[kpG]=!0,vt.effectType=on,vt.isResettableContext=!0,vt.hasRun=!1,vt.effectFn=null,vt.consumerIsAlwaysLive=!0,vt.consumerAllowSignalWrites=!0,vt.consumerMarkedDirty=$cO,vt.kind="effect",vt.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(M8)throw Error("Lb");this.dirty=!1;if(!this.hasRun||QNL(this)){this.hasRun=!0;H9L(this);var R=_.gs(this),y=VxT(this);SWU("effectRun",this.debugName);try{HT(this.effectFn,this.componentStack,this)}catch(u){throw u$.enableContextBasedComponentStacks&&
ZK(u),u;}finally{YWL("effectRun",this.debugName),KWv(this,y),_.gs(R)}}}},vt.componentStack=void 0,vt.debugName="[effect]",vt[Symbol.dispose]=function(){if(J2(this))for(var R=this.producers;R!==void 0;)R=iiO(R);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;R=_.V(p3c);for(var y=R.next();!y.done;y=R.next())y.value.remove(this);Z94(this)},vt));var zHz=Object.assign({},txc,{effectType:kpU});var gTL=Symbol("Mb");var C_c=Object.assign({},txc,{effectType:on});var USU=new Set("allowfullscreen allowtransparency async autofocus autoplay checked controls default defer disabled disableremoteplayback formnovalidate hidden inert ismap itemscope jsshadow jsslot loop multiple muted nomodule novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var um8={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,coords:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,
id:10,inert:1,ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,playsinline:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,usemap:1,valign:1,value:1,width:1,wrap:1},yWT=
{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}]}},HTW={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},jx4=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],QxT={"*":{async:1,dir:0,loading:2,target:3}};var ccK=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,QC={},JWU=(QC[1]=null,QC[2]=function(R,y){return y instanceof D2?tq(y):kE.toString()},QC[3]=function(R,y){return GB(y)?_.Pg(y):ccK.test(String(y))?String(y):kE.toString()},QC[4]=function(R,y){return y instanceof ey?_.Oo(y):kE.toString()},QC[5]=function(R,y){return String(y)},QC[7]=null,QC[8]=null,QC[10]=null,QC);var LkL=Symbol("Pb");var A1c=function(R){var y=azb,u=R,v="",Q="",M=1;R<0&&(R=-R);if(R===Infinity)R=(Infinity*Math.sign(u)).toString();else{for(var K=0;K<Shg.length;K++){var h=Shg[K];M=y[h];if(R>=M||M<=1&&R>.1*M){v=h;break}}v?(v+="B",Q=" "):M=1;R=Math.round(u/M*10)/10+Q+v}return R},Shg="Y Z E P T G M K  m u n".split(" "),azb={"":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};_.YhG=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 VV={};RegExp.prototype.hasOwnProperty("sticky");var Ek8=function(R){R=String(R);for(var y=function(v,Q,M){for(var K=Math.min(Q.length-M,v.length),h=0;h<K;h++){var b=Q[M+h];if(v[h]!==("A"<=b&&b<="Z"?b.toLowerCase():b))return!1}return!0},u=0;(u=R.indexOf("<",u))!=-1;){if(y("\x3c/script",R,u)||y("\x3c!--",R,u))return"zSoyz";
u+=1}return R};var $a={default:"__default"};var bNv=Object.prototype.hasOwnProperty;KQS.prototype=Object.create(null);var Rx=Nnz();var sp=null;var nkE=function(R){this.created=[];this.deleted=[];this.node=R};var GSP=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var R=this,y=R;R;)y=R,R=R.parentNode;return y};var okS=function(R,y){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=R;this.key=y;this.text=void 0};var py=null,t2=null,Xl=null,an=null,l7E=[],eLU=BnS,Ya=[],Ly=[],YCP=function(R){return rW4(function(y,u,v){Xl=t2=y;t2=null;u(v);f7O(null);t2=Xl;Xl=Xl.parentNode;return y},R)}(),SCv=function(R){return rW4(function(y,u,v){var Q={nextSibling:y};
t2=Q;u(v);Xl&&f7O(y.nextSibling);return Q===t2?null:t2},R)}();var zF=[],WQc=0;var gh=new KQS;var mN=new KQS;var LW8=Nnz(),XAT=LW8[$a.default],qlU=LW8.style,kSG=["focusin","focusout"],DSU="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var OvG=function(){},bvG=function(){},rlS=function(){},Hvc=function(){};var yV=Symbol("Wb");var SlT,a78=cWG;var IM=Symbol("Xb");var GM8=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(" ")),
nIv=new Set(["a","font","script","style","title"]);var KG={setUp:MCT,tearDown:MCT,log:MCT,logNodeRange:MCT,graft:function(R,y){y()}};var oM={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var xB=null,Bu=function(R,y){fG.call(this,R);var u=this;this.functionComponent=y;this.hooks=[];this.hookCounter=0;this.disposeEffects=rh(function(v){u.effectContext=v;_.GF(function(){TGU(u,u.el)})},u$.alwaysTrackContexts||!!zl)};
_.O(Bu,fG);Bu.prototype.render=function(R){var y=xB;xB=this;this.hookCounter=0;var u=jf(T7),v=_.gs(this.effectContext);try{return SWU("render",this.componentName),this.functionComponent(R)}finally{YWL("render",this.componentName),_.gs(v),jf(u),xB=y}};
_.RR.Object.defineProperties(Bu.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return txG(this.functionComponent)}}});var Ppc=Symbol("kc"),e6U=function(R,y,u){this.afterRenderCallbacks=null;this.kind=R;this.props=y;this.children=u};
_.O(e6U,wB);e6U.prototype.render=function(){var R=fxU(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var y=_.V(this.afterRenderCallbacks),u=y.next();!u.done;u=y.next())u=u.value,R=u(R);return R};
e6U.prototype.getChildren=function(){return this.children};var d4U=[];w3U=function(R){throw Error("ob`"+R.debugName);};
(function(){var R=sp;sp=function(y){R==null||R(y);U4O(y)}})();var sNK=new WeakMap,zHL=0;var gTb=void 0,C_w={},RLY=new WeakMap,vAG={getComponent:function(R){if(R.hasAttribute("ng-version"))return C_w;if(!R.__wizComponent)return null;R=R.__wizComponent;RLY.set(R.propsAndState,R);return R.propsAndState},
getDirectiveMetadata:function(R){if(R===C_w)return{framework:"wiz",name:"<Root>",props:{}};R=RLY.get(R);if(!R)throw Error("lc");return{framework:"wiz",name:R.name,props:Object.fromEntries(Object.keys(R.props).map(function(y){return[y,y]}))}},
"\u0275setProfiler":function(R){var y;(y=gTb)==null||y();gTb=X34(function(){R(2)})},
getInjector:function(R){return R.__wizComponent},
"\u0275getSignalGraph":function(R){var y;R=(y=R.effects)!=null?y:[];var u=kMT(R),v=Array.from(u.keys());y=[];R=[];for(var Q=new Map,M=0;M<v.length;M++)Q.set(v[M],M);u=_.V(u.entries());for(v=u.next();!v.done;v=u.next()){M=_.V(v.value);v=M.next().value;var K=M.next().value;M=v;v=Q.get(M);var h=sNK.get(M);h||(h=zHL.toString(),sNK.set(M,h),zHL++);var b=void 0,N=((b=M.debugName)!=null?b:"").replace(/@.+/,"");if(M.kind==="computed"){b=M.computation;var T=void 0;y.push({label:N,value:M.value,kind:M.kind,
epoch:M.version,debuggableFn:(T=b.userFn)!=null?T:b,id:h})}else if(M.kind==="signal")y.push({label:N,value:M.value,kind:M.kind,epoch:M.version,debuggableFn:M.debugFn,id:h});else if(M.kind==="effect"){T=void 0;b=(T=M.effectFn)!=null?T:void 0;var x=T=void 0;y.push({label:N,kind:M.kind,epoch:M.version,debuggableFn:(x=(T=b)==null?void 0:T.userFn)!=null?x:b,id:h})}else y.push({label:N,kind:M.kind,epoch:M.version,id:h});M=_.V(K);for(K=M.next();!K.done;K=M.next())R.push({consumer:v,producer:Q.get(K.value)})}return{nodes:y,
edges:R}},
isSignal:function(R){return typeof R==="function"&&R[i$]!==void 0}};Object.assign({},txc,{effectType:on,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var R=this.elementRef;var y;R.element!=null||(R.element=(y=R.document.getElementById(R.value))!=null?y:void 0);R=R.element;for(y=this.attributes;y;){var u=y.signal();u!==y.prevValue&&(y.prevValue=u,USU.has(y.name)?Ep(R,y.name,u?"":null):Ep(R,y.name,u));y=y.next}}});Object.assign({},txc,{effectType:on,hasRun:!0});_.w.debugName="RlDudd";var EIP={nonNullableCondIsNull:function(){return Error("rc")}};var D4z=function(){this.map=new Map};
D4z.prototype.push=function(R,y){var u=this.map;u.has(R)&&(this.multi||(this.multi=new Map),this.multi.set(y,u.get(R)));u.set(R,y)};
D4z.prototype.pop=function(R){var y=this.map,u=y.get(R),v;u!==void 0&&((v=this.multi)==null?0:v.has(u))?(y.set(R,this.multi.get(u)),this.multi.delete(u)):y.delete(R);return u};_.eS.debugName="nsTGHd";_.lr.debugName="tbhMcf";_.OB.debugName="zyMFzb";_.Z6.debugName="vI1rtf";_.Yfz={OUT_OF_ORDER_HOOK_CALL:function(R){return Error("sc`"+R)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("tc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("uc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("vc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(R,y){return Error("wc`"+((y===void 0?0:y)?"IDOM":"Reactive")+"`"+R)},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(R,y){return Error("xc`"+R+"`"+y)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(R){return Error("yc`"+R)},
USE_ELEMENT_NOT_ASSIGNED:function(R){return Error("zc`"+String(R))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(R){return Error("Ac`"+String(R))}};SlT=lxG;var uhU=Symbol("Bc");w8L({beforeRender:function(R){var y=_.gs(R.effectContext);try{var u;((u=R.__syncEffects)==null?0:u.length)&&QkT(R.__syncEffects)}finally{_.gs(y)}},
didPatch:function(R){var y=_.gs(R.effectContext);try{var u;((u=R.__syncEffects)==null?0:u.length)&&QkT(R.__syncEffects)}finally{_.gs(y)}},
didUnmount:function(R){var y;((y=R.hooks)==null?0:y.length)&&R.hooks.forEach(vFT)}});var yWc,umY,vki;yWc=_.uO.window;_.UB=(yWc==null?void 0:(umY=yWc.yt)==null?void 0:umY.config_)||(yWc==null?void 0:(vki=yWc.ytcfg)==null?void 0:vki.data_)||{};_.CJ("yt.config_",_.UB);var Qxc={},ViT=[];_.OL=function(R){var y=_.qy.apply(1,arguments);var u=Error.call(this,R);this.message=u.message;"stack"in u&&(this.stack=u.stack);this.args=[].concat(_.P$(y));Object.setPrototypeOf(this,this.constructor.prototype)};
_.O(_.OL,Error);var KjU=function(R,y,u){this.actionName=R;this.optionalAction=y===void 0?!1:y;this.args=u===void 0?null:u;this.returnValue=[]};_.jF=function(R){this.name=R};_.Dz=new _.jF("signalAction");var xQP=/^[\w.]*$/,boU={q:!0,search_query:!0},h5G=String(IqG);var Mn;Mn=Symbol("Cc");_.Jx=function(R){this.name=R};
_.Jx.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var BrU=function(R){this.key=R},lq8=function(R){this.deferredKey=R},e5L=function(){var R=this;
this.providers=new Map;this.JSC$10422_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(R.providers)}}};
e5L.prototype.addProvider=function(R){this.providers.set(R.provide,R);var y=this.JSC$10422_deferred.get(R.provide);if(y)try{y.resolver(this.resolve(R.provide))}catch(u){y.rejector(u)}};
e5L.prototype.resolve=function(R){return R instanceof lq8?jxV(this,R):R instanceof BrU?Mmb(this,R.key,[],!0):Mmb(this,R,[])};
var jxV=function(R,y){y=y.deferredKey;if(R.JSC$10422_deferred.has(y))return R.JSC$10422_deferred.get(y).promise;var u={};u.promise=new Promise(function(v,Q){u.resolver=v;u.rejector=Q});
R.JSC$10422_deferred.set(y,u);return u.promise},Mmb=function(R,y,u,v){v=v===void 0?!1:v;
if(u.indexOf(y)>-1)throw Error("Dc`"+y);if(R.cachedValues.has(y))return R.cachedValues.get(y);if(!R.providers.has(y)){if(v)return;throw Error("Ec`"+y);}v=R.providers.get(y);u.push(y);if(v.useValue!==void 0)var Q=v.useValue;else if(v.useFactory)Q=v[Mn]?JWG(R,v[Mn],u):[],Q=v.useFactory.apply(v,_.P$(Q));else if(v.useClass){Q=v.useClass;var M=Q[Mn]?JWG(R,Q[Mn],u):[];Q=new (Function.prototype.bind.apply(Q,[null].concat(_.P$(M))))}else throw Error("Fc`"+y);u.pop();v.skipCache||R.cachedValues.set(y,Q);return Q},
JWG=function(R,y,u){return y?y.map(function(v){return v instanceof BrU?Mmb(R,v.key,u,!0):Mmb(R,v,u)}):[]};var fqP;var pi=new _.Jx("ENDPOINT_HANDLER_TOKEN");_.tc=new _.jF("urlEndpoint");var VmY=function(){this.data=[];this.cachedPackedInt52=-1};
VmY.prototype.set=function(R,y){y=y===void 0?!0:y;0<=R&&R<52&&Number.isInteger(R)&&this.data[R]!==y&&(this.data[R]=y,this.cachedPackedInt52=-1)};
VmY.prototype.get=function(R){return!!this.data[R]};
var iNT=function(R){R.cachedPackedInt52===-1&&(R.cachedPackedInt52=R.data.reduce(function(y,u,v){return y+(u?Math.pow(2,v):0)},0));
return R.cachedPackedInt52};var q9c=function(R){var y=KQ8;R=R===void 0?_.D6("yt.ads.biscotti.lastId_")||"":R;var u=Object,v=u.assign,Q={};Q.dt=jng;Q.flash="0";a:{try{var M=y.JSC$10427_win_.top.location.href}catch(QG){M=2;break a}M=M?M===y.doc_.location.href?0:1:2}Q=(Q.frm=M,Q);try{Q.u_tz=-(new Date).getTimezoneOffset();try{var K=Sw.history.length}catch(QG){K=0}Q.u_his=K;var h;Q.u_h=(h=Sw.screen)==null?void 0:h.height;var b;Q.u_w=(b=Sw.screen)==null?void 0:b.width;var N;Q.u_ah=(N=Sw.screen)==null?void 0:N.availHeight;var T;Q.u_aw=
(T=Sw.screen)==null?void 0:T.availWidth;var x;Q.u_cd=(x=Sw.screen)==null?void 0:x.colorDepth}catch(QG){}K=y.JSC$10427_win_;try{var B=K.screenX;var l=K.screenY}catch(QG){}try{var Z=K.outerWidth;var P=K.outerHeight}catch(QG){}try{var k=K.innerWidth;var E=K.innerHeight}catch(QG){}try{var D=K.screenLeft;var z=K.screenTop}catch(QG){}try{k=K.innerWidth,E=K.innerHeight}catch(QG){}try{var c=K.screen.availWidth;var a=K.screen.availTop}catch(QG){}B=[D,z,B,l,c,a,Z,P,k,E];l=I0v(!1,y.JSC$10427_win_.top);Z={};
var L=L===void 0?_.uO:L;P=new VmY;"SVGElement"in L&&"createElementNS"in L.document&&P.set(0);k=yIg();k["allow-top-navigation-by-user-activation"]&&P.set(1);k["allow-popups-to-escape-sandbox"]&&P.set(2);L.crypto&&L.crypto.subtle&&P.set(3);"TextDecoder"in L&&"TextEncoder"in L&&P.set(4);L=iNT(P);y=(Z.bc=L,Z.bih=l.height,Z.biw=l.width,Z.brdim=B.join(),Z.vis=unv(y.doc_),Z.wgl=!!Sw.WebGLRenderingContext,Z);u=v.call(u,Q,y);u.ca_type="image";R&&(u.bid=R);return u},KQ8=new function(){var R=window.document;
this.JSC$10427_win_=window;this.doc_=R};
_.CJ("yt.ads_.signals_.getAdSignalsString",function(R){return Fm4(q9c(R))});_.KU();navigator.userAgent.indexOf(" (CrKey ");var GPT="XMLHttpRequest"in _.uO?function(){return new XMLHttpRequest}:null;var I78="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),hLK=[].concat(_.P$(I78),["client_dev_set_cookie"]);var $QO={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"},Wm4="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(_.P$(I78)),S9T=!1,UQU=_.XoT,ti4=EFT;var FkG=[{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 bNg={messageWeights:[],callbackWeights:[{callback:z5S,weight:500},{callback:gFc,weight:500}]};var FQ5=function(){this.callbackWeights=[];this.messageWeights=[]},wAG,bAL=function(){if(!wAG){var R=wAG=new FQ5;
R.messageWeights.length=0;R.callbackWeights.length=0;nbO(R,bNg)}return wAG},nbO=function(R,y){y.messageWeights&&R.messageWeights.push.apply(R.messageWeights,y.messageWeights);
y.callbackWeights&&R.callbackWeights.push.apply(R.callbackWeights,y.callbackWeights)};_.IE(_.Tu,_.Z0);_.Tu.prototype.subscribe=function(R,y,u){var v=this.topics_[R];v||(v=this.topics_[R]=[]);var Q=this.JSC$10451_key_;this.subscriptions_[Q]=R;this.subscriptions_[Q+1]=y;this.subscriptions_[Q+2]=u;this.JSC$10451_key_=Q+3;v.push(Q);return Q};
var NnL=function(R){var y=o9G,u=!1,v=y.subscribe("handleError",function(Q){u||(u=!0,this.unsubscribeByKey(v),R.apply(void 0,arguments))},y)};
_.Tu.prototype.unsubscribe=function(R,y,u){if(R=this.topics_[R]){var v=this.subscriptions_;if(R=R.find(function(Q){return v[Q+1]==y&&v[Q+2]==u}))return this.unsubscribeByKey(R)}return!1};
_.Tu.prototype.unsubscribeByKey=function(R){var y=this.subscriptions_[R];if(y){var u=this.topics_[y];this.publishDepth_!=0?(this.pendingKeys_.push(R),this.subscriptions_[R+1]=function(){}):(u&&_.m4(u,R),delete this.subscriptions_[R],delete this.subscriptions_[R+1],delete this.subscriptions_[R+2])}return!!y};
_.Tu.prototype.publish=function(R,y){var u=this.topics_[R];if(u){var v=Array(arguments.length-1),Q=arguments.length,M;for(M=1;M<Q;M++)v[M-1]=arguments[M];if(this.async_)for(M=0;M<u.length;M++)Q=u[M],TnG(this.subscriptions_[Q+1],this.subscriptions_[Q+2],v);else{this.publishDepth_++;try{for(M=0,Q=u.length;M<Q&&!this.isDisposed();M++){var K=u[M];this.subscriptions_[K+1].apply(this.subscriptions_[K+2],v)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;u=this.pendingKeys_.pop();)this.unsubscribeByKey(u)}}return M!=
0}return!1};
var TnG=function(R,y,u){_.rK(function(){R.apply(y,u)})};
_.Tu.prototype.clear=function(R){if(R){var y=this.topics_[R];y&&(y.forEach(this.unsubscribeByKey,this),delete this.topics_[R])}else this.subscriptions_.length=0,this.topics_={}};
_.Tu.prototype.getCount=function(R){if(R){var y=this.topics_[R];return y?y.length:0}R=0;for(y in this.topics_)R+=this.getCount(y);return R};
_.Tu.prototype.disposeInternal=function(){_.Tu.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var o9G=new _.Tu;var Jv=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(Jv,_.y4);Jv.prototype.getColdHashData=function(){return _.$U(this,3)};
Jv.prototype.getHotHashData=function(){return _.$U(this,5)};
Jv.prototype.setHotHashData=function(R){return _.eQ(this,5,R)};var Ijz=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(Ijz,_.y4);var X_4=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(X_4,_.y4);_.J=X_4.prototype;_.J.getDeviceId=function(){return _.$U(this,6)};
_.J.getExperimentIds=function(R){var y=_.Do(this,9,_.y8,3,!0);acL(y,R);return y[R]};
_.J.getPlayerType=function(){return _.qO(this,36)};
_.J.setHomeGroupInfo=function(R){return _.wC(this,81,R)};
_.J.clearLocationPlayabilityToken=function(){return _.Mt(this,89)};var Tp=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(Tp,_.y4);Tp.prototype.setKey=function(R){return _.eQ(this,1,R)};
Tp.prototype.getValue=function(){return m9(this,2,A6G)};
var A6G=[2,3,4,5,6];var ok8=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(ok8,_.y4);ok8.prototype.setTrackingParams=function(R){return _.Mt(this,1,_.G5(R,!1))};var mRE=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(mRE,_.y4);var FHP=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(FHP,_.y4);FHP.prototype.getExperimentIds=function(R){var y=_.Do(this,5,_.bYE,3,!0);acL(y,R);return y[R]};var fi=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(fi,_.y4);fi.prototype.getToken=function(){return _.Tl(this,2)};
fi.prototype.setToken=function(R){return _.eQ(this,2,R)};var xT=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(xT,_.y4);xT.prototype.setSafetyMode=function(R){return _.j_(this,5,R)};var Nc=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(Nc,_.y4);Nc.prototype.setClient=function(R){return _.wC(this,1,R)};var bc4={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 hzG;_.qB=function(){var R=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.uO.addEventListener("beforeinstallprompt",function(y){y.preventDefault();R.deferredInstallPrompt=y});
_.uO.addEventListener("appinstalled",function(){R.appInstalledEventFired=!0},{once:!0})};
hzG=function(){if(!_.uO.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.uO.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.uO.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.uO.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.uO.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(R){return"WEB_DISPLAY_MODE_UNKNOWN"}};var TwU=function(){this.syncHeaders=!0},ov8=function(R){var y={},u=[];
"USER_SESSION_ID"in _.UB&&u.push({key:"u",value:_.EB("USER_SESSION_ID")});if(u=_.mzT(u))y.Authorization=u,u=R=R==null?void 0:R.sessionIndex,u===void 0&&(u=Number(_.EB("SESSION_INDEX",0)),u=isNaN(u)?0:u),_.f("voice_search_auth_header_removal")||(y["X-Goog-AuthUser"]=u.toString()),"INNERTUBE_HOST_OVERRIDE"in _.UB||(y["X-Origin"]=window.location.origin),R===void 0&&"DELEGATED_SESSION_ID"in _.UB&&(y["X-Goog-PageId"]=_.EB("DELEGATED_SESSION_ID"));return y};var xSg={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var VC=_.D6("ytglobal.prefsUserPrefsPrefs_")||{},Bn8;_.CJ("ytglobal.prefsUserPrefsPrefs_",VC);_.im=function(){this.cookieName=_.EB("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.EB("ALT_PREF_COOKIE_DOMAIN","youtube.com");var R=_.xz.get(this.cookieName,void 0);R&&this.parse(R)};
_.O9=function(){Bn8||(Bn8=new _.im);return Bn8};
_.im.prototype.get=function(R,y){f7T(R);eL5(R);R=VC[R]!==void 0?VC[R].toString():null;return R!=null?R:y?y:""};
_.im.prototype.set=function(R,y){f7T(R);eL5(R);if(y==null)throw Error("Ic");VC[R]=y.toString()};
_.im.prototype.getFlag=function(R){return!!((l7g("f"+(Math.floor(R/31)+1))||0)&1<<R%31)};
_.Zq=function(R,y,u){R="f"+(Math.floor(y/31)+1);y=1<<y%31;var v=l7g(R)||0;v=u?v|y:v&~y;v===0?delete VC[R]:(u=v.toString(16),VC[R]=u.toString())};
_.im.prototype.remove=function(R){f7T(R);eL5(R);delete VC[R]};
_.im.prototype.save=function(){var R=!0;_.f("web_secure_pref_cookie_killswitch")&&(R=!1);_.B5(this.cookieName,this.dump(),63072E3,this.cookieDomain,R)};
_.im.prototype.clear=function(){_.Ps.clear(VC)};
_.im.prototype.dump=function(){var R=[],y;for(y in VC)VC.hasOwnProperty(y)&&R.push(y+"="+encodeURIComponent(String(VC[y])));return R.join("&")};
var eL5=function(R){if(/^f([1-9][0-9]*)$/.test(R))throw Error("Jc`"+R);},f7T=function(R){if(!/^\w+$/.test(R))throw Error("Kc`"+R);
},l7g=function(R){R=VC[R]!==void 0?VC[R].toString():null;
return R!=null&&/^[A-Fa-f0-9]+$/.test(R)?parseInt(R,16):null};
_.im.prototype.parse=function(R){R=decodeURIComponent(R).split("&");for(var y=0;y<R.length;y++){var u=R[y].split("="),v=u[0];(u=u[1])&&(VC[v]=u.toString())}};var JNO={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"},wVW={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},NwG={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},iz4={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var NR;_.KV=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.Oh=function(R,y,u){return R.addJob(y,0,u)};
_.KV.prototype.addLowPriorityJob=function(R,y){return this.addJob(R,1,y)};
_.Wm=function(R,y,u){return R.addJob(y,2,u)};
_.Xs=function(R,y,u){return R.addJob(y,3,u)};
_.T3=function(R,y,u){return R.addJob(y,4,u)};
NR=function(R){var y=_.D6("yt.scheduler.instance.addImmediateJob");y?y(R):R()};
_.KV.prototype.debounce=function(R,y,u){var v=this,Q=0,M=function(){Q&&v.cancelJob(Q);Q=v.addJob(R,y,u);v.cancelDebouncedJobMap.set(M,Q)};
return M};
_.KV.prototype.cancelThrottle=function(R){(R=this.cancelThrottledJobMap.get(R))&&R()};var IZ=function(){_.KV.apply(this,arguments)};
_.O(IZ,_.KV);_.EJ=function(){IZ.instance||(IZ.instance=new IZ);return IZ.instance};
IZ.prototype.addJob=function(R,y,u){u!==void 0&&Number.isNaN(Number(u))&&(u=void 0);var v=_.D6("yt.scheduler.instance.addJob");return v?v(R,y,u):u===void 0?(R(),NaN):_.Ih(R,u||0)};
IZ.prototype.cancelJob=function(R){if(R===void 0||!Number.isNaN(Number(R))){var y=_.D6("yt.scheduler.instance.cancelJob");y?y(R):_.ba(R)}};
IZ.prototype.start=function(){var R=_.D6("yt.scheduler.instance.start");R&&R()};
IZ.prototype.pause=function(){var R=_.D6("yt.scheduler.instance.pause");R&&R()};
_.WG=_.EJ();_.ZI.prototype.set=function(R,y){y===void 0?this.mechanism.remove(R):this.mechanism.set(R,(0,_.kj)(y))};
_.ZI.prototype.get=function(R){try{var y=this.mechanism.get(R)}catch(u){return}if(y!==null)try{return JSON.parse(y)}catch(u){throw"Storage: Invalid value was encountered";}};
_.ZI.prototype.remove=function(R){this.mechanism.remove(R)};var hx=function(R){this.mechanism=R};
_.IE(hx,_.ZI);var ONg=function(R){this.data=R},ZNg=function(R){return R===void 0||R instanceof ONg?R:new ONg(R)};
hx.prototype.set=function(R,y){hx.superClass_.set.call(this,R,ZNg(y))};
hx.prototype.getWrapper=function(R){R=hx.superClass_.get.call(this,R);if(R===void 0||R instanceof Object)return R;throw"Storage: Invalid value was encountered";};
hx.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};_.IE(H5,hx);_.HNK=function(R){var y=R.creation;R=R.expiration;return!!R&&R<_.KU()||!!y&&y>_.KU()};
H5.prototype.set=function(R,y,u){if(y=ZNg(y)){if(u){if(u<_.KU()){H5.prototype.remove.call(this,R);return}y.expiration=u}y.creation=_.KU()}H5.superClass_.set.call(this,R,y)};
H5.prototype.getWrapper=function(R,y){var u=H5.superClass_.getWrapper.call(this,R);if(u)if(!y&&_.HNK(u))H5.prototype.remove.call(this,R);else return u};var bm=function(){};
bm.prototype.next=function(){return FQ};
var FQ={done:!0,value:void 0},w1=function(R){return{value:R,done:!1}};
bm.prototype.__iterator__=function(){return this};
_.nkg=function(R){if(R instanceof bm)return R;if(typeof R.__iterator__=="function")return R.__iterator__(!1);if(_.p8(R)){var y=0,u=new bm;u.next=function(){for(;;){if(y>=R.length)return FQ;if(y in R)return w1(R[y++]);y++}};
return u}throw Error("Lc");};var GSi=function(R){if(R instanceof Nn||R instanceof Tn||R instanceof oZ)return R;if(typeof R.next=="function")return new Nn(function(){return R});
if(typeof R[Symbol.iterator]=="function")return new Nn(function(){return R[Symbol.iterator]()});
if(typeof R.__iterator__=="function")return new Nn(function(){return R.__iterator__()});
throw Error("Mc");},Nn=function(R){this.func_=R};
Nn.prototype.__iterator__=function(){return new Tn(this.func_())};
Nn.prototype[Symbol.iterator]=function(){return new oZ(this.func_())};
Nn.prototype.toEs6=function(){return new oZ(this.func_())};
var Tn=function(R){this.JSC$10535_iter_=R};
_.O(Tn,bm);Tn.prototype.next=function(){return this.JSC$10535_iter_.next()};
Tn.prototype[Symbol.iterator]=function(){return new oZ(this.JSC$10535_iter_)};
Tn.prototype.toEs6=function(){return new oZ(this.JSC$10535_iter_)};
var oZ=function(R){Nn.call(this,function(){return R});
this.JSC$10538_iter_=R};
_.O(oZ,Nn);oZ.prototype.next=function(){return this.JSC$10538_iter_.next()};var rWV=function(){};var xc=function(){};
_.IE(xc,rWV);xc.prototype.getCount=function(){for(var R=0,y=_.V(this),u=y.next();!u.done;u=y.next())R++;return R};
xc.prototype[Symbol.iterator]=function(){return GSi(this.__iterator__(!0)).toEs6()};
xc.prototype.clear=function(){var R=Array.from(this);R=_.V(R);for(var y=R.next();!y.done;y=R.next())this.remove(y.value)};_.IE(nJ,xc);_.J=nJ.prototype;_.J.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var R=this.storage_;if(R)try{R.setItem("__sak","1");R.removeItem("__sak");var y=!0}catch(u){y=u instanceof DOMException&&(u.name==="QuotaExceededError"||u.code===22||u.code===1014||u.name==="NS_ERROR_DOM_QUOTA_REACHED")&&R&&R.length!==0}else y=!1;this.cachedIsStorageAvailable_=y}return this.cachedIsStorageAvailable_};
_.J.set=function(R,y){Bt(this);try{this.storage_.setItem(R,y)}catch(u){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.J.get=function(R){Bt(this);R=this.storage_.getItem(R);if(typeof R!=="string"&&R!==null)throw"Storage mechanism: Invalid value was encountered";return R};
_.J.remove=function(R){Bt(this);this.storage_.removeItem(R)};
_.J.getCount=function(){Bt(this);return this.storage_.length};
_.J.__iterator__=function(R){Bt(this);var y=0,u=this.storage_,v=new bm;v.next=function(){if(y>=u.length)return FQ;var Q=u.key(y++);if(R)return w1(Q);Q=u.getItem(Q);if(typeof Q!=="string")throw"Storage mechanism: Invalid value was encountered";return w1(Q)};
return v};
_.J.clear=function(){Bt(this);this.storage_.clear()};
_.J.key=function(R){Bt(this);return this.storage_.key(R)};
var Bt=function(R){if(R.storage_==null)throw Error("Nc");R.isAvailable()||vW(Error("Nc"))};_.IE(InL,nJ);_.IE(hB4,nJ);_.IE(Gu,xc);Gu.prototype.set=function(R,y){this.mechanism_.set(this.JSC$10553_prefix_+R,y)};
Gu.prototype.get=function(R){return this.mechanism_.get(this.JSC$10553_prefix_+R)};
Gu.prototype.remove=function(R){this.mechanism_.remove(this.JSC$10553_prefix_+R)};
Gu.prototype.__iterator__=function(R){var y=this.mechanism_[Symbol.iterator](),u=this,v=new bm;v.next=function(){var Q=y.next();if(Q.done)return Q;for(Q=Q.value;Q.slice(0,u.JSC$10553_prefix_.length)!=u.JSC$10553_prefix_;){Q=y.next();if(Q.done)return Q;Q=Q.value}return w1(R?Q.slice(u.JSC$10553_prefix_.length):u.mechanism_.get(Q))};
return v};_.$2=function(R){this.expiringStorage_=(R=_.bz8(R))?new H5(R):null;this.JSC$10557_domain_=document.domain||window.location.hostname};
_.$2.prototype.set=function(R,y,u,v){u=u||31104E3;this.remove(R);if(this.expiringStorage_)try{this.expiringStorage_.set(R,y,Date.now()+u*1E3);return}catch(M){}var Q="";if(v)try{Q=escape((0,_.kj)(y))}catch(M){return}else Q=escape(y);_.B5(R,Q,u,this.JSC$10557_domain_)};
_.$2.prototype.get=function(R,y){var u=void 0,v=!this.expiringStorage_;if(!v)try{u=this.expiringStorage_.get(R)}catch(Q){v=!0}if(v&&(u=_.xz.get(R,void 0))&&(u=unescape(u),y))try{u=JSON.parse(u)}catch(Q){this.remove(R),u=void 0}return u};
_.$2.prototype.remove=function(R){this.expiringStorage_&&this.expiringStorage_.remove(R);_.Q3c(R,"/",this.JSC$10557_domain_)};
_.$2.prototype.getCreationTime=function(R){return this.expiringStorage_&&(R=(this.expiringStorage_.getWrapper(R)||{}).creation,typeof R==="number")?R:null};var wdc=function(){var R;return function(){R||(R=new _.$2("ytidb"));return R}}();var TNL;_.P5=[];TNL=!1;var EsW=osz||xqz;var fV={},PNg=(fV.AUTH_INVALID="No user identifier specified.",fV.EXPLICIT_ABORT="Transaction was explicitly aborted.",fV.IDB_NOT_SUPPORTED="IndexedDB is not supported.",fV.MISSING_INDEX="Index not created.",fV.MISSING_OBJECT_STORES="Object stores not created.",fV.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",fV.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",fV.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",fV.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",fV.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",fV.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",fV.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",fV),eF={},WQw=(eF.AUTH_INVALID="ERROR",eF.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",eF.EXPLICIT_ABORT="IGNORED",
eF.IDB_NOT_SUPPORTED="ERROR",eF.MISSING_INDEX="WARNING",eF.MISSING_OBJECT_STORES="ERROR",eF.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",eF.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",eF.QUOTA_EXCEEDED="WARNING",eF.QUOTA_MAYBE_EXCEEDED="WARNING",eF.UNKNOWN_ABORT="WARNING",eF.INCOMPATIBLE_DB_VERSION="WARNING",eF),lm={},dSY=(lm.AUTH_INVALID=!1,lm.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,lm.EXPLICIT_ABORT=!1,lm.IDB_NOT_SUPPORTED=!1,lm.MISSING_INDEX=!1,lm.MISSING_OBJECT_STORES=!1,lm.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,lm.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,lm.QUOTA_EXCEEDED=!1,lm.QUOTA_MAYBE_EXCEEDED=!0,lm.UNKNOWN_ABORT=!0,lm.INCOMPATIBLE_DB_VERSION=!1,lm),$z=function(R,y,u,v,Q){y=y===void 0?{}:y;u=u===void 0?PNg[R]:u;v=v===void 0?WQw[R]:v;Q=Q===void 0?dSY[R]:Q;_.OL.call(this,u,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:R},y));this.type=R;this.message=u;this.level=v;this.retryable=Q;Object.setPrototypeOf(this,$z.prototype)};
_.O($z,_.OL);var US5=function(R,y){$z.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:y,foundObjectStores:R},PNg.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,US5.prototype)};
_.O(US5,$z);var fnG=function(R,y){var u=Error.call(this);this.message=u.message;"stack"in u&&(this.stack=u.stack);this.index=R;this.objectStore=y;Object.setPrototypeOf(this,fnG.prototype)};
_.O(fnG,Error);var eB8=["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 AT=function(R){this.executor=R},mi=function(R){var y=this;
this.state={status:"PENDING"};this.JSC$10585_onFulfilled=[];this.JSC$10585_onRejected=[];R=R.executor;var u=function(Q){if(y.state.status==="PENDING"){y.state={status:"FULFILLED",value:Q};Q=_.V(y.JSC$10585_onFulfilled);for(var M=Q.next();!M.done;M=Q.next())M=M.value,M()}},v=function(Q){if(y.state.status==="PENDING"){y.state={status:"REJECTED",
reason:Q};Q=_.V(y.JSC$10585_onRejected);for(var M=Q.next();!M.done;M=Q.next())M=M.value,M()}};
try{R(u,v)}catch(Q){v(Q)}};
mi.all=function(R){return new mi(new AT(function(y,u){var v=[],Q=R.length;Q===0&&y(v);for(var M={i$jscomp$463:0};M.i$jscomp$463<R.length;M={i$jscomp$463:M.i$jscomp$463},++M.i$jscomp$463)mi.resolve(R[M.i$jscomp$463]).then(function(K){return function(h){v[K.i$jscomp$463]=h;Q--;Q===0&&y(v)}}(M)).catch(function(K){u(K)})}))};
mi.resolve=function(R){return new mi(new AT(function(y,u){R instanceof mi?R.then(y,u):y(R)}))};
mi.reject=function(R){return new mi(new AT(function(y,u){u(R)}))};
mi.prototype.then=function(R,y){var u=this,v=R!=null?R:ZzU,Q=y!=null?y:Ozz;return new mi(new AT(function(M,K){u.state.status==="PENDING"?(u.JSC$10585_onFulfilled.push(function(){kSc(u,u,v,M,K)}),u.JSC$10585_onRejected.push(function(){EkY(u,u,Q,M,K)})):u.state.status==="FULFILLED"?kSc(u,u,v,M,K):u.state.status==="REJECTED"&&EkY(u,u,Q,M,K)}))};
mi.prototype.catch=function(R){return this.then(void 0,R)};
var kSc=function(R,y,u,v,Q){try{if(R.state.status!=="FULFILLED")throw Error("Qc");var M=u(R.state.value);M instanceof mi?$Sb(R,y,M,v,Q):v(M)}catch(K){Q(K)}},EkY=function(R,y,u,v,Q){try{if(R.state.status!=="REJECTED")throw Error("Rc");
var M=u(R.state.reason);M instanceof mi?$Sb(R,y,M,v,Q):v(M)}catch(K){Q(K)}},$Sb=function(R,y,u,v,Q){y===u?Q(new TypeError("Sc")):u.then(function(M){M instanceof mi?$Sb(R,y,M,v,Q):v(M)},function(M){Q(M)})};var Ov;Ov=window;_.uQ=Ov.ytcsi&&Ov.ytcsi.now?Ov.ytcsi.now:Ov.performance&&Ov.performance.timing&&Ov.performance.now&&Ov.performance.timing.navigationStart?function(){return Ov.performance.timing.navigationStart+Ov.performance.now()}:function(){return(new Date).getTime()};var pJ=function(R,y){this.JSC$10597_wrapped=R;this.options=y;this.transactionCount=0;this.startedMs=Math.round((0,_.uQ)());this.hasUnknownAbortedTransaction=!1},ZR=function(){return _.f("idb_immediate_commit")},mSG,AW5,Gn,tmc;
pJ.prototype.add=function(R,y,u){return _.Yz(this,[R],{mode:"readwrite",enableRetries:!0,commit:ZR()},function(v){return v.objectStore(R).add(y,u)})};
pJ.prototype.clear=function(R){return _.Yz(this,[R],{mode:"readwrite",enableRetries:!0},function(y){return y.objectStore(R).clear()})};
pJ.prototype.close=function(){this.JSC$10597_wrapped.close();var R;((R=this.options)==null?0:R.closed)&&this.options.closed()};
pJ.prototype.count=function(R,y){return _.Yz(this,[R],{mode:"readonly",enableRetries:!0,commit:ZR()},function(u){return u.objectStore(R).count(y)})};
var XM=function(R,y,u){R=R.JSC$10597_wrapped.createObjectStore(y,u);return new Ht(R)};
pJ.prototype.delete=function(R,y){return _.Yz(this,[R],{mode:"readwrite",enableRetries:!0,commit:ZR()&&!(y instanceof IDBKeyRange)},function(u){return u.objectStore(R).delete(y)})};
var ql5=function(R,y){return _.Yz(R,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(u){return u.objectStore("ResponseStore").index("byInterface").delete(y)})};
pJ.prototype.get=function(R,y){return _.Yz(this,[R],{mode:"readonly",enableRetries:!0,commit:ZR()},function(u){return u.objectStore(R).get(y)})};
pJ.prototype.getAll=function(R,y,u){return _.Yz(this,[R],{mode:"readonly",enableRetries:!0},function(v){return v.objectStore(R).getAll(y,u)})};
pJ.prototype.put=function(R,y,u){return _.Yz(this,[R],{mode:"readwrite",enableRetries:!0,commit:ZR()},function(v){return v.objectStore(R).put(y,u)})};
pJ.prototype.objectStoreNames=function(){return Array.from(this.JSC$10597_wrapped.objectStoreNames)};
_.Yz=function(R,y,u,v){var Q,M,K,h,b,N,T,x,B,l,Z,P;return _.I(function(k){switch(k.nextAddress){case 1:var E={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof u==="string"?E.mode=u:Object.assign(E,u);Q=E;R.transactionCount++;M=Q.enableRetries?3:1;K=0;case 2:if(h){k.jumpTo(4);break}K++;b=Math.round((0,_.uQ)());_.wY(k,5);N=R.JSC$10597_wrapped.transaction(y,Q.mode);E=k.yield;var D=!!Q.commit;var z=new tT(N);D=XAc(z,v,D);return E.call(k,D,7);case 7:return T=k.yieldResult,x=Math.round((0,_.uQ)()),
mSG(R,b,x,K,void 0,y.join(),Q),k.return(T);case 5:B=_.B$(k);l=Math.round((0,_.uQ)());Z=ln8(B,R.JSC$10597_wrapped.name,y.join(),R.JSC$10597_wrapped.version);if((P=Z instanceof $z&&!Z.retryable)||K>=M)mSG(R,b,l,K,Z,y.join(),Q),h=Z;k.jumpTo(2);break;case 4:return k.return(Promise.reject(h))}})};
mSG=function(R,y,u,v,Q,M,K){y=u-y;Q?(Q instanceof $z&&(Q.type==="QUOTA_EXCEEDED"||Q.type==="QUOTA_MAYBE_EXCEEDED")&&dR("QUOTA_EXCEEDED",{dbName:kz(R.JSC$10597_wrapped.name),objectStoreNames:M,transactionCount:R.transactionCount,transactionMode:K.mode}),Q instanceof $z&&Q.type==="UNKNOWN_ABORT"&&(u-=R.startedMs,u<0&&u>=2147483648&&(u=0),dR("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:M,transactionDuration:y,transactionCount:R.transactionCount,dbDuration:u}),R.hasUnknownAbortedTransaction=!0),
AW5(R,!1,v,M,y,K.tag),_.W5(Q)):AW5(R,!0,v,M,y,K.tag)};
AW5=function(R,y,u,v,Q,M){dR("TRANSACTION_ENDED",{objectStoreNames:v,connectionHasUnknownAbortedTransaction:R.hasUnknownAbortedTransaction,duration:Q,isSuccessful:y,tryCount:u,tag:M===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":M})};
pJ.prototype.getVersion=function(){return this.JSC$10597_wrapped.version};
pJ.prototype.getName=function(){return this.JSC$10597_wrapped.name};
var Ht=function(R){this.JSC$10612_wrapped=R};
Ht.prototype.add=function(R,y){return DI(this.JSC$10612_wrapped.add(R,y))};
Ht.prototype.autoIncrement=function(){return this.JSC$10612_wrapped.autoIncrement};
Ht.prototype.clear=function(){return DI(this.JSC$10612_wrapped.clear()).then(function(){})};
var me=function(R,y,u){R.JSC$10612_wrapped.createIndex(y,u,{unique:!1})};
Ht.prototype.count=function(R){return DI(this.JSC$10612_wrapped.count(R))};
var DSG=function(R,y){return sL(R,{query:y},function(u){return u.delete().then(function(){return u.continue()})}).then(function(){})};
Ht.prototype.delete=function(R){return R instanceof IDBKeyRange?DSG(this,R):DI(this.JSC$10612_wrapped.delete(R))};
Ht.prototype.get=function(R){return DI(this.JSC$10612_wrapped.get(R))};
Ht.prototype.getAll=function(R,y){return"getAll"in IDBObjectStore.prototype?DI(this.JSC$10612_wrapped.getAll(R,y)):pAY(this,R,y)};
var pAY=function(R,y,u){var v=[];return sL(R,{query:y},function(Q){if(!(u!==void 0&&v.length>=u))return v.push(Q.getValue()),Q.continue()}).then(function(){return v})};
Ht.prototype.index=function(R){try{return new nV(this.JSC$10612_wrapped.index(R))}catch(y){if(y instanceof Error&&y.name==="NotFoundError")throw new fnG(R,this.JSC$10612_wrapped.name);throw y;}};
Ht.prototype.getName=function(){return this.JSC$10612_wrapped.name};
Ht.prototype.keyPath=function(){return this.JSC$10612_wrapped.keyPath};
Ht.prototype.put=function(R,y){return DI(this.JSC$10612_wrapped.put(R,y))};
var sL=function(R,y,u){R=R.JSC$10612_wrapped.openCursor(y.query,y.direction);return tmc(R).then(function(v){return GIL(v,u)})},tT=function(R){var y=this;
this.JSC$10620_wrapped=R;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(u,v){y.JSC$10620_wrapped.addEventListener("complete",function(){u()});
y.JSC$10620_wrapped.addEventListener("error",function(Q){Q.currentTarget===Q.target&&v(y.JSC$10620_wrapped.error)});
y.JSC$10620_wrapped.addEventListener("abort",function(){var Q=y.JSC$10620_wrapped.error;if(Q)v(Q);else if(!y.aborted){Q=$z;for(var M=y.JSC$10620_wrapped.objectStoreNames,K=[],h=0;h<M.length;h++){var b=M.item(h);if(b===null)throw Error("Tc");K.push(b)}Q=new Q("UNKNOWN_ABORT",{objectStoreNames:K.join(),dbName:y.JSC$10620_wrapped.db.name,mode:y.JSC$10620_wrapped.mode});v(Q)}})})},XAc=function(R,y,u){var v=new Promise(function(Q,M){try{var K=y(R);
u&&R.commit();K.then(function(h){Q(h)}).catch(M)}catch(h){M(h),R.abort()}});
return Promise.all([v,R.done]).then(function(Q){return _.V(Q).next().value})};
tT.prototype.abort=function(){this.JSC$10620_wrapped.abort();this.aborted=!0;throw new $z("EXPLICIT_ABORT");};
tT.prototype.commit=function(){if(!this.aborted){var R,y;(y=(R=this.JSC$10620_wrapped).commit)==null||y.call(R)}};
tT.prototype.objectStore=function(R){R=this.JSC$10620_wrapped.objectStore(R);var y=this.objectStoreCache.get(R);y||(y=new Ht(R),this.objectStoreCache.set(R,y));return y};
var nV=function(R){this.JSC$10622_wrapped=R};
nV.prototype.count=function(R){return DI(this.JSC$10622_wrapped.count(R))};
nV.prototype.delete=function(R){return _.vG(this,{query:R},function(y){return y.delete().then(function(){return y.continue()})})};
nV.prototype.get=function(R){return DI(this.JSC$10622_wrapped.get(R))};
nV.prototype.getAll=function(R,y){return"getAll"in IDBIndex.prototype?DI(this.JSC$10622_wrapped.getAll(R,y)):cWc(this,R,y)};
var cWc=function(R,y,u){var v=[];return _.vG(R,{query:y},function(Q){if(!(u!==void 0&&v.length>=u))return v.push(Q.getValue()),Q.continue()}).then(function(){return v})};
nV.prototype.keyPath=function(){return this.JSC$10622_wrapped.keyPath};
nV.prototype.unique=function(){return this.JSC$10622_wrapped.unique};
_.vG=function(R,y,u){R=R.JSC$10622_wrapped.openCursor(y.query===void 0?null:y.query,y.direction===void 0?"next":y.direction);return tmc(R).then(function(v){return GIL(v,u)})};
Gn=function(R,y){this.request=R;this.cursor=y};
tmc=function(R){return DI(R).then(function(y){return y?new Gn(R,y):null})};
Gn.prototype.continue=function(R){this.cursor.continue(R);return tmc(this.request)};
Gn.prototype.delete=function(){return DI(this.cursor.delete()).then(function(){})};
Gn.prototype.getValue=function(){return this.cursor.value};
Gn.prototype.update=function(R){return DI(this.cursor.update(R))};var r1=function(R,y){this.name=R;this.options=y;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},a7Y;
r1.prototype.openDb=function(R,y,u){u=u===void 0?{}:u;return PE8(R,y,u)};
r1.prototype.delete=function(R){R=R===void 0?{}:R;return _.ah(this.name,R)};
a7Y=function(R,y){return new $z("INCOMPATIBLE_DB_VERSION",{dbName:R.name,oldVersion:R.options.version,newVersion:y})};
_.SX=function(R,y){if(!y)throw Xq("openWithToken",kz(R.name));return R.open()};
r1.prototype.open=function(){var R=this;if(!this.isCompatible)throw a7Y(this);if(this.connectionPromise)return this.connectionPromise;var y,u=function(){R.connectionPromise===y&&(R.connectionPromise=void 0)},v={blocking:function(M){M.close()},
closed:u,terminated:u,upgrade:this.options.upgrade},Q=function(){var M,K,h,b,N,T,x,B,l,Z;return _.I(function(P){switch(P.nextAddress){case 1:return K=(M=Error().stack)!=null?M:"",_.wY(P,2),P.yield(R.openDb(R.name,R.options.version,v),4);case 4:for(var k=h=P.yieldResult,E=R.options,D=[],z=_.V(Object.keys(E.objectStores)),c=z.next();!c.done;c=z.next()){c=c.value;var a=E.objectStores[c],L=a.removedAtVersion===void 0?Number.MAX_VALUE:a.removedAtVersion;!(k.JSC$10597_wrapped.version>=a.addedAtVersion)||
k.JSC$10597_wrapped.version>=L||k.JSC$10597_wrapped.objectStoreNames.contains(c)||D.push(c)}b=D;if(b.length===0){P.jumpTo(5);break}N=Object.keys(R.options.objectStores);T=h.objectStoreNames();if(R.timesReopenedToFixMissingObjectStore<_.JT("ytidb_reopen_db_retries",0))return R.timesReopenedToFixMissingObjectStore++,h.close(),_.W5(new $z("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:R.name,expectedObjectStores:N,foundObjectStores:T})),P.return(Q());if(!(R.timesDeletedToFixMissingObjectStore<_.JT("ytidb_remake_db_retries",
1))){P.jumpTo(6);break}R.timesDeletedToFixMissingObjectStore++;return P.yield(R.delete(),7);case 7:return _.W5(new $z("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:R.name,expectedObjectStores:N,foundObjectStores:T})),P.return(Q());case 6:throw new US5(T,N);case 5:return P.return(h);case 2:x=_.B$(P);if(x instanceof DOMException?x.name!=="VersionError":"DOMError"in self&&x instanceof DOMError?x.name!=="VersionError":!(x instanceof Object&&"message"in x)||x.message!=="An attempt was made to open a database using a lower version than the existing version."){P.jumpTo(8);
break}return P.yield(R.openDb(R.name,void 0,Object.assign({},v,{upgrade:void 0})),9);case 9:B=P.yieldResult;l=B.getVersion();if(R.options.version!==void 0&&l>R.options.version+1)throw B.close(),R.isCompatible=!1,a7Y(R,l);return P.return(B);case 8:throw u(),x instanceof Error&&!_.f("ytidb_async_stack_killswitch")&&(x.stack=x.stack+"\n"+K.substring(K.indexOf("\n")+1)),ln8(x,R.name,"",(Z=R.options.version)!=null?Z:-1);}})};
return this.connectionPromise=y=Q()};var WcE=new r1("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(R,y){y(1)&&XM(R,"databases",{keyPath:"actualName"})}});var XdS,$qv=new function(){}(new function(){});new _.xv;var Slc=function(R,y){r1.call(this,R,y);this.options=y;UL(R)};
_.O(Slc,r1);var Lc8=function(R,y){var u;return function(){u||(u=new Slc(R,y));return u}};
Slc.prototype.openDb=function(R,y,u){u=u===void 0?{}:u;return(this.options.shared?t6L:pdP)(R,y,Object.assign({},u))};
Slc.prototype.delete=function(R){R=R===void 0?{}:R;return(this.options.shared?YqG:cNT)(this.name,R)};var Yli={},s38=yO("ytGcfConfig",{objectStores:(Yli.coldConfigStore={addedAtVersion:1},Yli.hotConfigStore={addedAtVersion:1},Yli),shared:!1,upgrade:function(R,y){y(1)&&(me(XM(R,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),me(XM(R,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var LQ8=function(){_.Z0.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var R=_.D6("yt.gcf.config.hotUpdateCallbacks");R?(this.localHotConfigJobQueue=[].concat(_.P$(R)),this.sharedHotConfigJobQueue=R):(this.sharedHotConfigJobQueue=[],_.CJ("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.O(LQ8,_.Z0);LQ8.prototype.disposeInternal=function(){for(var R=_.V(this.localHotConfigJobQueue),y=R.next();!y.done;y=R.next()){var u=this.sharedHotConfigJobQueue;y=u.indexOf(y.value);y>=0&&u.splice(y,1)}this.localHotConfigJobQueue.length=0;_.Z0.prototype.disposeInternal.call(this)};var Zz=function(){var R=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new LQ8;this.TEST_ONLY={initializeConfigDb:function(){R.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return R.coldGlobalConfigGroup},
setHotConfigGroup:function(y){sxg(R,y)},
setHotHashData:function(y){R.setHotHashData(y)},
setColdConfigGroup:function(y){zLK(R,y)},
getColdHashData:function(){return R.coldHashData},
getHotHashData:function(){return R.hotHashData},
getHotConfigGroup:function(){return R.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return gkc()},
getExportedHotConfigGroup:function(){return Pt()},
getExportedColdHashData:function(){return _.D6("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.D6("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){CNT(R)},
resetInstance:function(){R.setHotHashData(void 0);R6T(R);delete Zz.instance},
setDebounceTimer:function(y){R.debounceTimer=y},
getDebounceTimer:function(){return R.debounceTimer}}},ylL=function(){if(!Zz.instance){var R=new Zz;
Zz.instance=R}return Zz.instance},QRc=function(R){var y;
_.I(function(u){if(u.nextAddress==1)return _.f("start_client_gcf")||_.f("delete_gcf_config_db")?_.f("start_client_gcf")?u.yield(_.Rz(),3):u.jumpTo(2):u.return();u.nextAddress!=2&&((y=u.yieldResult)&&_.la()&&!_.f("delete_gcf_config_db")?(R.isConfigDbInitialized=!0,CNT(R)):(ucb(R),vI5(R)));return _.f("delete_gcf_config_db")?u.yield(ubz(),0):u.jumpTo(0)})},H3=function(){var R;
return(R=Pt())!=null?R:_.EB("RAW_HOT_CONFIG_GROUP")},jRK=function(R){var y,u,v,Q,M,K;
return _.I(function(h){switch(h.nextAddress){case 1:if(R.hotGlobalConfigGroup)return h.return(Pt());if(!R.isConfigDbInitialized)return y=Xq("getHotConfig IDB not initialized"),_.pG(y),h.return(Promise.reject(y));u=gR();v=_.EB("TIME_CREATED_MS");if(!u){Q=Xq("getHotConfig token error");_.pG(Q);h.jumpTo(2);break}return h.yield(yUT(u),3);case 3:if((M=h.yieldResult)&&M.timestamp>v)return sxg(R,M.config),R.setHotHashData(M.hashData),h.return(Pt());case 2:vI5(R);if(!(u&&R.hotGlobalConfigGroup&&R.hotHashData)){h.jumpTo(4);
break}return h.yield(gs4(R.hotGlobalConfigGroup,R.hotHashData,u,v),4);case 4:return R.hotGlobalConfigGroup?h.return(Pt()):(K=new _.OL("Config not available in ytConfig"),_.pG(K),h.return(Promise.reject(K)))}})},Jlb=function(R){var y,u,v,Q,M,K;
return _.I(function(h){switch(h.nextAddress){case 1:if(R.coldGlobalConfigGroup)return h.return(gkc());if(!R.isConfigDbInitialized)return y=Xq("getColdConfig IDB not initialized"),_.pG(y),h.return(Promise.reject(y));u=gR();v=_.EB("TIME_CREATED_MS");if(!u){Q=Xq("getColdConfig");_.pG(Q);h.jumpTo(2);break}return h.yield(RzP(u),3);case 3:if((M=h.yieldResult)&&M.timestamp>v)return zLK(R,M.config),MC5(R,M.configData),R6T(R,M.hashData),h.return(gkc());case 2:ucb(R);if(!(u&&R.coldGlobalConfigGroup&&R.coldHashData&&
R.configData)){h.jumpTo(4);break}return h.yield(CET(R.coldGlobalConfigGroup,R.coldHashData,R.configData,u,v),4);case 4:return R.coldGlobalConfigGroup?h.return(gkc()):(K=new _.OL("Config not available in ytConfig"),_.pG(K),h.return(Promise.reject(K)))}})},CNT=function(R){if(!R.hotGlobalConfigGroup||!R.coldGlobalConfigGroup){if(!gR()){var y=Xq("scheduleGetConfigs");
_.pG(y)}R.initJob||(R.initJob=_.WG.addLowPriorityJob(function(){return _.I(function(u){switch(u.nextAddress){case 1:return _.wY(u,2),u.yield(jRK(R),4);case 4:_.c5(u,3);break;case 2:_.B$(u);case 3:return _.wY(u,5),u.yield(Jlb(R),7);case 7:_.c5(u,6);break;case 5:_.B$(u);case 6:R.initJob&&(R.initJob=0),_.f$(u)}})},100))}},g6v=function(R,y,u){var v,Q,M;
return _.I(function(K){switch(K.nextAddress){case 1:if(!_.f("start_client_gcf")){K.jumpTo(0);break}u&&sxg(R,u);R.setHotHashData(y);v=gR();if(!v){K.jumpTo(3);break}if(u){K.jumpTo(4);break}return K.yield(yUT(v),5);case 5:Q=K.yieldResult,u=(M=Q)==null?void 0:M.config;case 4:return K.yield(gs4(u,y,v),3);case 3:if(u)for(var h=u,b=_.V(R.configUpdateService.sharedHotConfigJobQueue),N=b.next();!N.done;N=b.next())N=N.value,N(h);_.f$(K)}})},C0O=function(R,y,u){var v,Q,M,K;
return _.I(function(h){if(h.nextAddress==1){if(!_.f("start_client_gcf"))return h.jumpTo(0);R6T(R,y);return(v=gR())?u?h.jumpTo(4):h.yield(RzP(v),5):h.jumpTo(0)}h.nextAddress!=4&&(Q=h.yieldResult,u=(M=Q)==null?void 0:M.config);if(!u)return h.jumpTo(0);K=u.configData;return h.yield(CET(u,y,K,v),0)})},BwL=function(){var R=ylL(),y=(0,_.uQ)()-R.debounceTimer;
if(!(R.debounceTimer!==0&&y<_.JT("send_config_hash_timer"))){y=_.D6("yt.gcf.config.coldConfigData");var u=_.D6("yt.gcf.config.hotHashData"),v=_.D6("yt.gcf.config.coldHashData");y&&u&&v&&(R.debounceTimer=(0,_.uQ)());return{coldConfigData:y,hotHashData:u,coldHashData:v}}},ucb=function(R){zLK(R,_.EB("RAW_COLD_CONFIG_GROUP"));
R6T(R,_.EB("SERIALIZED_COLD_HASH_DATA"));var y;MC5(R,(y=R.coldGlobalConfigGroup)==null?void 0:y.configData)},vI5=function(R){sxg(R,_.EB("RAW_HOT_CONFIG_GROUP"));
R.setHotHashData(_.EB("SERIALIZED_HOT_HASH_DATA"))},sxg=function(R,y){R.hotGlobalConfigGroup=y;
_.CJ("yt.gcf.config.hotConfigGroup",R.hotGlobalConfigGroup||null)},zLK=function(R,y){R.coldGlobalConfigGroup=y;
_.CJ("yt.gcf.config.coldConfigGroup",R.coldGlobalConfigGroup||null)};
Zz.prototype.setHotHashData=function(R){this.hotHashData=R;_.CJ("yt.gcf.config.hotHashData",this.hotHashData||null)};
var R6T=function(R,y){R.coldHashData=y;_.CJ("yt.gcf.config.coldHashData",R.coldHashData||null)},MC5=function(R,y){R.configData=y;
_.CJ("yt.gcf.config.coldConfigData",R.configData||null)},Pt=function(){return _.D6("yt.gcf.config.hotConfigGroup")},gkc=function(){return _.D6("yt.gcf.config.coldConfigGroup")};var hv={},VC8=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";hv.assign=function(R){for(var y=Array.prototype.slice.call(arguments,1);y.length;){var u=y.shift();if(u){if(typeof u!=="object")throw new TypeError("Wc`"+u);for(var v in u)Object.prototype.hasOwnProperty.call(u,v)&&(R[v]=u[v])}}return R};
hv.shrinkBuf=function(R,y){if(R.length===y)return R;if(R.subarray)return R.subarray(0,y);R.length=y;return R};
var ivw={arraySet:function(R,y,u,v,Q){if(y.subarray&&R.subarray)R.set(y.subarray(u,u+v),Q);else for(var M=0;M<v;M++)R[Q+M]=y[u+M]},
flattenChunks:function(R){var y,u;var v=u=0;for(y=R.length;v<y;v++)u+=R[v].length;var Q=new Uint8Array(u);v=u=0;for(y=R.length;v<y;v++){var M=R[v];Q.set(M,u);u+=M.length}return Q}},Kbi={arraySet:function(R,y,u,v,Q){for(var M=0;M<v;M++)R[Q+M]=y[u+M]},
flattenChunks:function(R){return[].concat.apply([],R)}};
hv.setTyped=function(){VC8?(hv.Buf8=Uint8Array,hv.Buf16=Uint16Array,hv.Buf32=Int32Array,hv.assign(hv,ivw)):(hv.Buf8=Array,hv.Buf16=Array,hv.Buf32=Array,hv.assign(hv,Kbi))};
hv.setTyped();var Ix8=!0;try{new Uint8Array(1)}catch(R){Ix8=!1}
var yw4=function(R){var y,u,v=R.length,Q=0;for(y=0;y<v;y++){var M=R.charCodeAt(y);if((M&64512)===55296&&y+1<v){var K=R.charCodeAt(y+1);(K&64512)===56320&&(M=65536+(M-55296<<10)+(K-56320),y++)}Q+=M<128?1:M<2048?2:M<65536?3:4}var h=new hv.Buf8(Q);for(y=u=0;u<Q;y++)M=R.charCodeAt(y),(M&64512)===55296&&y+1<v&&(K=R.charCodeAt(y+1),(K&64512)===56320&&(M=65536+(M-55296<<10)+(K-56320),y++)),M<128?h[u++]=M:(M<2048?h[u++]=192|M>>>6:(M<65536?h[u++]=224|M>>>12:(h[u++]=240|M>>>18,h[u++]=128|M>>>12&63),h[u++]=
128|M>>>6&63),h[u++]=128|M&63);return h};var DBU={};DBU=function(R,y,u,v){var Q=R&65535|0;R=R>>>16&65535|0;for(var M;u!==0;){M=u>2E3?2E3:u;u-=M;do Q=Q+y[v++]|0,R=R+Q|0;while(--M);Q%=65521;R%=65521}return Q|R<<16|0};for(var HG={},Wt,h6T=[],bvc=0;bvc<256;bvc++){Wt=bvc;for(var Fb5=0;Fb5<8;Fb5++)Wt=Wt&1?3988292384^Wt>>>1:Wt>>>1;h6T[bvc]=Wt}HG=function(R,y,u,v){u=v+u;for(R^=-1;v<u;v++)R=R>>>8^h6T[(R^y[v])&255];return R^-1};var Nt={};Nt={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 P7P=[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],dBU=[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],R3T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],mBT=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],BG=Array(576);VO(BG);var f9=Array(60);VO(f9);var FM=Array(512);VO(FM);var bQ=Array(256);VO(bQ);var WH4=Array(29);VO(WH4);var UBT=Array(30);VO(UBT);var zzz,gvP,C7T,sHU=!1;var PG;
PG=[new r3(0,0,0,0,function(R,y){var u=65535;for(u>R.pending_buf_size-5&&(u=R.pending_buf_size-5);;){if(R.lookahead<=1){n9(R);if(R.lookahead===0&&y===0)return 1;if(R.lookahead===0)break}R.strstart+=R.lookahead;R.lookahead=0;var v=R.block_start+u;if(R.strstart===0||R.strstart>=v)if(R.lookahead=R.strstart-v,R.strstart=v,lQ(R,!1),R.strm.avail_out===0)return 1;if(R.strstart-R.block_start>=R.w_size-262&&(lQ(R,!1),R.strm.avail_out===0))return 1}R.insert=0;if(y===4)return lQ(R,!0),R.strm.avail_out===0?3:
4;R.strstart>R.block_start&&lQ(R,!1);return 1}),
new r3(4,4,8,4,pVT),new r3(4,5,16,8,pVT),new r3(4,6,32,32,pVT),new r3(4,4,16,16,Gg),new r3(8,16,32,32,Gg),new r3(8,16,128,128,Gg),new r3(8,32,128,256,Gg),new r3(32,128,258,1024,Gg),new r3(32,258,258,4096,Gg)];var LHE={};LHE=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 uNT=Object.prototype.toString;
YZc.prototype.push=function(R,y){var u=this.strm,v=this.options.chunkSize;if(this.ended)return!1;var Q=y===~~y?y:y===!0?4:0;typeof R==="string"?u.input=yw4(R):uNT.call(R)==="[object ArrayBuffer]"?u.input=new Uint8Array(R):u.input=R;u.next_in=0;u.avail_in=u.input.length;do{u.avail_out===0&&(u.output=new hv.Buf8(v),u.next_out=0,u.avail_out=v);R=SZP(u,Q);if(R!==1&&R!==0)return w8b(this,R),this.ended=!0,!1;if(u.avail_out===0||u.avail_in===0&&(Q===4||Q===2))if(this.options.to==="string"){var M=hv.shrinkBuf(u.output,
u.next_out);y=M;M=M.length;if(M<65537&&(y.subarray&&Ix8||!y.subarray))y=String.fromCharCode.apply(null,hv.shrinkBuf(y,M));else{for(var K="",h=0;h<M;h++)K+=String.fromCharCode(y[h]);y=K}this.chunks.push(y)}else y=hv.shrinkBuf(u.output,u.next_out),this.chunks.push(y)}while((u.avail_in>0||u.avail_out===0)&&R!==1);if(Q===4)return(u=this.strm)&&u.state?(v=u.state.status,v!==42&&v!==69&&v!==73&&v!==91&&v!==103&&v!==113&&v!==666?R=Tg(u,-2):(u.state=null,R=v===113?Tg(u,-3):0)):R=-2,w8b(this,R),this.ended=
!0,R===0;Q===2&&(w8b(this,0),u.avail_out=0);return!0};
var w8b=function(R,y){y===0&&(R.result=R.options.to==="string"?R.chunks.join(""):hv.flattenChunks(R.chunks));R.chunks=[];R.err=y;R.msg=R.strm.msg};var NGi=typeof TextEncoder!=="undefined"?new TextEncoder:null,W8E=NGi?function(R){return NGi.encode(R)}:function(R){R=_.OX(R);
for(var y=new Uint8Array(R.length),u=0;u<y.length;u++)y[u]=R[u];return y};var jQT={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},JjS={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var d1=function(R,y){this.version=R;this.args=y};
d1.prototype.serialize=function(){return{version:this.version,args:this.args}};var JwU=function(R,y){this.topic=R;this.dataClass=y};
JwU.prototype.toString=function(){return this.topic};var TG5=_.D6("ytPubsub2Pubsub2Instance")||new _.Tu;_.Tu.prototype.subscribe=_.Tu.prototype.subscribe;_.Tu.prototype.unsubscribeByKey=_.Tu.prototype.unsubscribeByKey;_.Tu.prototype.publish=_.Tu.prototype.publish;_.Tu.prototype.clear=_.Tu.prototype.clear;_.CJ("ytPubsub2Pubsub2Instance",TG5);var M0c=_.D6("ytPubsub2Pubsub2SubscribedKeys")||{};_.CJ("ytPubsub2Pubsub2SubscribedKeys",M0c);var iuT=_.D6("ytPubsub2Pubsub2TopicToKeys")||{};_.CJ("ytPubsub2Pubsub2TopicToKeys",iuT);
var V0v=_.D6("ytPubsub2Pubsub2IsAsync")||{};_.CJ("ytPubsub2Pubsub2IsAsync",V0v);_.CJ("ytPubsub2Pubsub2SkipSubKey",null);var xzE=void 0,T2E=void 0;var nJz=_.JT("max_body_size_to_compress",5E5),GJU=_.JT("min_body_size_to_compress",500),UW=!0,kJU=0,k2=0,UzO=_.JT("compression_performance_threshold_lr",250),EJT=_.JT("slow_compressions_before_abandon_count",4),e3E=!1,lVP=new Map,P8P=1,rwL=!0;_.IE(EW,XNz);EW.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 oIT=function(R,y,u){u||(u=0);var v=R.W_;if(typeof y==="string")for(var Q=0;Q<16;Q++)v[Q]=y.charCodeAt(u)<<24|y.charCodeAt(u+1)<<16|y.charCodeAt(u+2)<<8|y.charCodeAt(u+3),u+=4;else for(Q=0;Q<16;Q++)v[Q]=y[u]<<24|y[u+1]<<16|y[u+2]<<8|y[u+3],u+=4;for(y=16;y<80;y++)u=v[y-3]^v[y-8]^v[y-14]^v[y-16],v[y]=(u<<1|u>>>31)&4294967295;y=R.chain_[0];u=R.chain_[1];Q=R.chain_[2];for(var M=R.chain_[3],K=R.chain_[4],h,b,N=0;N<80;N++)N<40?N<20?(h=M^u&(Q^M),b=1518500249):(h=u^Q^M,b=1859775393):N<60?(h=u&Q|M&(u|Q),
b=2400959708):(h=u^Q^M,b=3395469782),h=(y<<5|y>>>27)+h+K+b+v[N]&4294967295,K=M,M=Q,Q=(u<<30|u>>>2)&4294967295,u=y,y=h;R.chain_[0]=R.chain_[0]+y&4294967295;R.chain_[1]=R.chain_[1]+u&4294967295;R.chain_[2]=R.chain_[2]+Q&4294967295;R.chain_[3]=R.chain_[3]+M&4294967295;R.chain_[4]=R.chain_[4]+K&4294967295};
EW.prototype.update=function(R,y){if(R!=null){y===void 0&&(y=R.length);for(var u=y-this.blockSize,v=0,Q=this.buf_,M=this.inbuf_;v<y;){if(M==0)for(;v<=u;)oIT(this,R,v),v+=this.blockSize;if(typeof R==="string")for(;v<y;){if(Q[M]=R.charCodeAt(v),++M,++v,M==this.blockSize){oIT(this,Q);M=0;break}}else for(;v<y;)if(Q[M]=R[v],++M,++v,M==this.blockSize){oIT(this,Q);M=0;break}}this.inbuf_=M;this.total_+=y}};
EW.prototype.digest=function(){var R=[],y=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var u=this.blockSize-1;u>=56;u--)this.buf_[u]=y&255,y/=256;oIT(this,this.buf_);for(u=y=0;u<5;u++)for(var v=24;v>=0;v-=8)R[y]=this.chain_[u]>>v&255,++y;return R};var Dzc;var kc=function(R){var y=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(T){y.databaseToken=T},
triggerThrottle:function(){y.throttledSend()},
cancelThrottle:function(){y.cancelThrottledSend()},
immediateSend:function(T){return _.I(function(x){return x.yield(y.immediateSend(T),0)})},
requestWithinAgeLimit:function(T,x){return y.requestWithinAgeLimit(T,x)},
retryQueuedRequests:function(){y.retryQueuedRequests()}};
var u;this.throttleTimeout=(u=R.throttleTimeout)!=null?u:100;var v;this.retryMaxAttempts=(v=R.retryMaxAttempts)!=null?v:1;var Q;this.requestAgeLimitMs=(Q=R.requestAgeLimitMs)!=null?Q:2592E6;var M;this.queuedRequestAgeLimitMs=(M=R.queuedRequestAgeLimitMs)!=null?M:12E4;var K;this.retryDelayMs=(K=R.retryDelayMs)!=null?K:5E3;var h;this.databaseToken=(h=R.databaseToken)!=null?h:void 0;this.enableCleaning=!!R.enableCleaning;var b;this.cleaningRate=(b=R.cleaningRate)!=null?b:.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;Uv(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&x4c(this)},x4c=function(R){Uv(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)))};
_.J=kc.prototype;_.J.writeThenSend=function(R,y){var u=this;y=y===void 0?{}:y;if(Uv(this)&&this.initialized){var v={url:R,options:y,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(v,this.databaseToken).then(function(Q){v.id=Q;u.networkManager.isNetworkAvailable()&&u.immediateSend(v)}).catch(function(Q){u.immediateSend(v);
BGc(u,Q)})}else this.sendFn(R,y)};
_.J.sendThenWrite=function(R,y,u){var v=this;y=y===void 0?{}:y;if(Uv(this)&&this.initialized){var Q={url:R,options:y,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(Q.skipRetry=u);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!Q.skipRetry){if(!Q.skipRetry){var M=y.onError?y.onError:function(){};
y.onError=function(K,h){return _.I(function(b){if(b.nextAddress==1)return b.yield(v.logsStore.set(Q,v.databaseToken).catch(function(N){BGc(v,N)}),2);
M(K,h);_.f$(b)})}}this.sendFn(R,y,Q.skipRetry)}else this.logsStore.set(Q,this.databaseToken).catch(function(K){v.sendFn(R,y,Q.skipRetry);
BGc(v,K)})}else this.sendFn(R,y,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&u)};
_.J.sendAndWrite=function(R,y){var u=this;y=y===void 0?{}:y;if(Uv(this)&&this.initialized){var v={url:R,options:y,timestamp:this.now(),status:"NEW",sendCount:0},Q=!1,M=y.onSuccess?y.onSuccess:function(){};
v.options.onSuccess=function(K,h){v.id!==void 0?u.logsStore.deleteRequest(v.id,u.databaseToken):Q=!0;u.networkManager.networkStatusHint&&u.getBooleanFlag&&u.getBooleanFlag("vss_network_hint")&&u.networkManager.networkStatusHint(!0);M(K,h)};
this.sendFn(v.url,v.options,void 0,!0);this.logsStore.set(v,this.databaseToken).then(function(K){v.id=K;Q&&u.logsStore.deleteRequest(v.id,u.databaseToken)}).catch(function(K){BGc(u,K)})}else this.sendFn(R,y,void 0,!0)};
_.J.throttledSend=function(){var R=this;if(!Uv(this))throw Error("Zc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var y;return _.I(function(u){if(u.nextAddress==1)return u.yield(R.logsStore.getMostRecentByStatus("NEW",R.databaseToken),2);if(u.nextAddress!=3)return y=u.yieldResult,y?u.yield(R.immediateSend(y),3):(R.cancelThrottledSend(),u.return());R.intervalJob&&(R.intervalJob=0,R.throttledSend());_.f$(u)})},this.throttleTimeout))};
_.J.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.J.immediateSend=function(R){var y=this,u;return _.I(function(v){switch(v.nextAddress){case 1:if(!Uv(y))throw Error("$c");if(R.id===void 0){v.jumpTo(2);break}return v.yield(y.logsStore.markAsQueued(R.id,y.databaseToken),3);case 3:(u=v.yieldResult)||y.handleWarning(Error("ad"));case 2:if(y.requestWithinAgeLimit(R,y.requestAgeLimitMs)){v.jumpTo(4);break}y.handleWarning(Error("bd"));if(R.id===void 0){v.jumpTo(5);break}return v.yield(y.logsStore.deleteRequest(R.id,y.databaseToken),5);case 5:return v.return();
case 4:R.skipRetry||(R=fx5(y,R));if(!R){v.jumpTo(0);break}if(!R.skipRetry||R.id===void 0){v.jumpTo(8);break}return v.yield(y.logsStore.deleteRequest(R.id,y.databaseToken),8);case 8:y.sendFn(R.url,R.options,!!R.skipRetry),_.f$(v)}})};
var fx5=function(R,y){if(!Uv(R))throw Error("cd");var u=y.options.onError?y.options.onError:function(){};
y.options.onError=function(Q,M){var K,h,b,N;return _.I(function(T){switch(T.nextAddress){case 1:K=S7G(M);(h=Y7U(M))&&R.getBooleanFlag&&R.getBooleanFlag("web_enable_error_204")&&R.handleError(Error("dd"),y.url,M);if(!(R.getBooleanFlag&&R.getBooleanFlag("nwl_consider_error_code")&&K||R.getBooleanFlag&&!R.getBooleanFlag("nwl_consider_error_code")&&R.potentialEsfErrorCounter<=R.potentialEsfErrorLimit)){T.jumpTo(2);break}if(!R.networkManager.sendNetworkCheckRequest){T.jumpTo(3);break}return T.yield(R.networkManager.sendNetworkCheckRequest(),
3);case 3:if(R.networkManager.isNetworkAvailable()){T.jumpTo(2);break}u(Q,M);if(!R.getBooleanFlag||!R.getBooleanFlag("nwl_consider_error_code")||((b=y)==null?void 0:b.id)===void 0){T.jumpTo(6);break}return T.yield(R.logsStore.resetRequest(y.id,R.databaseToken,!1),6);case 6:return T.return();case 2:if(R.getBooleanFlag&&R.getBooleanFlag("nwl_consider_error_code")&&!K&&R.potentialEsfErrorCounter>R.potentialEsfErrorLimit)return T.return();R.potentialEsfErrorCounter++;if(((N=y)==null?void 0:N.id)===void 0){T.jumpTo(8);
break}return y.sendCount<R.retryMaxAttempts?T.yield(R.logsStore.resetRequest(y.id,R.databaseToken,!0,h?!1:void 0),12):T.yield(R.logsStore.deleteRequest(y.id,R.databaseToken),8);case 12:R.jobManager.addLowPriorityJob(function(){R.networkManager.isNetworkAvailable()&&R.throttledSend()},R.retryDelayMs);
case 8:u(Q,M),_.f$(T)}})};
var v=y.options.onSuccess?y.options.onSuccess:function(){};
y.options.onSuccess=function(Q,M){var K;return _.I(function(h){if(h.nextAddress==1)return((K=y)==null?void 0:K.id)===void 0?h.jumpTo(2):h.yield(R.logsStore.deleteRequest(y.id,R.databaseToken),2);R.networkManager.networkStatusHint&&R.getBooleanFlag&&R.getBooleanFlag("vss_network_hint")&&R.networkManager.networkStatusHint(!0);v(Q,M);_.f$(h)})};
return y};
kc.prototype.requestWithinAgeLimit=function(R,y){R=R.timestamp;return this.now()-R>=y?!1:!0};
kc.prototype.retryQueuedRequests=function(){var R=this;if(!Uv(this))throw Error("ed");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(y){y&&!R.requestWithinAgeLimit(y,R.queuedRequestAgeLimitMs)?R.jobManager.addLowPriorityJob(function(){return _.I(function(u){if(u.nextAddress==1)return y.id===void 0?u.jumpTo(2):u.yield(R.logsStore.resetRequest(y.id,R.databaseToken),2);R.retryQueuedRequests();_.f$(u)})}):R.networkManager.isNetworkAvailable()&&R.throttledSend()})};
var BGc=function(R,y){R.writeError&&!R.networkManager.isNetworkAvailable()?R.writeError(y):R.handleError(y)},Uv=function(R){return!!R.databaseToken||R.bypassDbTokenDependency};var L8S;var us4={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,
startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,
keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525};var e6G={},jcz=yO("ServiceWorkerLogsDatabase",{objectStores:(e6G.SWHealthLog={addedAtVersion:1},e6G),shared:!0,upgrade:function(R,y){y(1)&&me(XM(R,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var bkz={},h4G=0;var TZG;var Ev=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},cG=function(){if(!Ev.instance){var R=_.D6("yt.networkRequestMonitor.instance")||new Ev;
_.CJ("yt.networkRequestMonitor.instance",R);Ev.instance=R}return Ev.instance};
Ev.prototype.requestComplete=function(R,y){y&&(this.anyRequestHasSucceeded=!0);R=this.removeParams(R);this.requestMap.get(R)||this.requestMap.set(R,y)};
Ev.prototype.isEndpointCFR=function(R){R=this.removeParams(R);return(R=this.requestMap.get(R))?!1:R===!1&&this.anyRequestHasSucceeded?!0:null};
Ev.prototype.removeParams=function(R){return R.split("?")[0]};
Ev.prototype.removeParams=Ev.prototype.removeParams;Ev.prototype.isEndpointCFR=Ev.prototype.isEndpointCFR;Ev.prototype.requestComplete=Ev.prototype.requestComplete;Ev.getInstance=cG;var $c=function(R){_.nT.call(this);var y=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=R!=null?R:{addLowPriorityJob:function(Q,M){return setTimeout(Q,M)},
cancelJob:function(Q){clearTimeout(Q)}};
var u,v;this.isOnline=(v=(u=window.navigator)==null?void 0:u.onLine)!=null?v:!0;this.onNavigatorChange=function(){return _.I(function(Q){return Q.yield(lxc(y),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||Ovc(this)};
_.O($c,_.nT);$c.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete $c.instance};
$c.prototype.isNetworkAvailable=function(){return this.isOnline};
var Ovc=function(R){R.pollingJob=R.jobManager.addLowPriorityJob(function(){var y;return _.I(function(u){if(u.nextAddress==1)return R.isOnline?((y=window.navigator)==null?0:y.onLine)?u.jumpTo(3):u.yield(lxc(R),3):u.yield(lxc(R),3);Ovc(R);_.f$(u)})},3E4)},lxc=function(R,y){return R.networkRequestPromise?R.networkRequestPromise:R.networkRequestPromise=new Promise(function(u){var v,Q,M,K;
return _.I(function(h){switch(h.nextAddress){case 1:return v=window.AbortController?new window.AbortController:void 0,M=(Q=v)==null?void 0:Q.signal,K=!1,_.wY(h,2,3),v&&(R.abortTimeoutKey=R.jobManager.addLowPriorityJob(function(){v.abort()},y||2E4)),h.yield(fetch("/generate_204",{method:"HEAD",
signal:M}),5);case 5:K=!0;case 3:_.T9(h);R.networkRequestPromise=void 0;R.abortTimeoutKey&&(R.jobManager.cancelJob(R.abortTimeoutKey),R.abortTimeoutKey=0);K!==R.isOnline&&(R.isOnline=K,R.isOnline?R.dispatchEvent("networkstatus-online"):R.dispatchEvent("networkstatus-offline"));u(K);_.xL(h,0);break;case 2:_.B$(h),K=!1,h.jumpTo(3)}})})};var qn=function(){_.nT.call(this);var R=this;this.shouldFlushErrors=!1;$c.instance||($c.instance=new $c(_.WG));this.sharedNetworkStatusManager=$c.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(R.shouldFlushErrors&&_.f("offline_error_handling")){var y=oiO().get("errors",!0);if(y){for(var u in y)if(y[u]){var v=new _.OL(u,"sent via offline_errors");v.name=y[u].name;v.stack=y[u].stack;v.level=y[u].level;_.mq(v)}oiO().set("errors",{},2592E3,!0)}}})};
_.O(qn,_.nT);var Zv5=function(){if(!qn.instance){var R=_.D6("yt.networkStatusManager.instance")||new qn;_.CJ("yt.networkStatusManager.instance",R);qn.instance=R}return qn.instance};
_.J=qn.prototype;_.J.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.J.networkStatusHint=function(R){this.sharedNetworkStatusManager.isOnline=R};
_.J.getWindowStatus=function(){var R=window.navigator.onLine;return R===void 0?!0:R};
_.J.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.J.listen=function(R,y){return this.sharedNetworkStatusManager.listen(R,y)};
_.J.sendNetworkCheckRequest=function(R){R=lxc(this.sharedNetworkStatusManager,R);R.then(function(y){_.f("use_cfr_monitor")&&cG().requestComplete("generate_204",y)});
return R};
qn.prototype.sendNetworkCheckRequest=qn.prototype.sendNetworkCheckRequest;qn.prototype.listen=qn.prototype.listen;qn.prototype.enableErrorFlushing=qn.prototype.enableErrorFlushing;qn.prototype.getWindowStatus=qn.prototype.getWindowStatus;qn.prototype.networkStatusHint=qn.prototype.networkStatusHint;qn.prototype.isNetworkAvailable=qn.prototype.isNetworkAvailable;qn.getInstance=Zv5;_.tv=function(R){R=R===void 0?{}:R;_.nT.call(this);var y=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=Zv5();var u=_.D6("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);u&&(R.rateLimit?(this.rateLimit=R.rateLimit,u("networkstatus-online",function(){Hvw(y,"publicytnetworkstatus-online")}),u("networkstatus-offline",function(){Hvw(y,"publicytnetworkstatus-offline")})):(u("networkstatus-online",function(){y.dispatchEvent("publicytnetworkstatus-online")}),u("networkstatus-offline",
function(){y.dispatchEvent("publicytnetworkstatus-offline")})))};
_.O(_.tv,_.nT);_.tv.prototype.isNetworkAvailable=function(){var R=_.D6("yt.networkStatusManager.instance.isNetworkAvailable");return R?R.bind(this.nsmInstance)():!0};
_.tv.prototype.networkStatusHint=function(R){var y=_.D6("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);y&&y(R)};
_.tv.prototype.sendNetworkCheckRequest=function(R){var y=this,u;return _.I(function(v){u=_.D6("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(y.nsmInstance);return _.f("skip_network_check_if_cfr")&&cG().isEndpointCFR("generate_204")?v.return(new Promise(function(Q){var M;y.networkStatusHint(((M=window.navigator)==null?void 0:M.onLine)||!0);Q(y.isNetworkAvailable())})):u?v.return(u(R)):v.return(!0)})};
var Hvw=function(R,y){R.rateLimit?R.lastJobTime?(_.WG.cancelJob(R.schedulerJob),R.schedulerJob=_.WG.addLowPriorityJob(function(){R.lastPublicSignalSent!==y&&(R.dispatchEvent(y),R.lastPublicSignalSent=y,R.lastJobTime=(0,_.uQ)())},R.rateLimit-((0,_.uQ)()-R.lastJobTime))):(R.dispatchEvent(y),R.lastPublicSignalSent=y,R.lastJobTime=(0,_.uQ)()):R.dispatchEvent(y)};var lrS,XQ=function(){kc.call(this,{logsStore:{cleanLogsStore:viE,deleteRequest:ugT,getMostRecentByStatus:C8T,markAsQueued:R4U,resetRequest:ydT,set:gJc},networkManager:_.Okv(),handleError:function(R,y,u){var v,Q=u==null?void 0:(v=u.error)==null?void 0:v.code;if(Q===400||Q===415){var M;R=new _.OL(R.message,y,u==null?void 0:(M=u.error)==null?void 0:M.code);_.pG(R,void 0,void 0,void 0,!0)}else _.mq(R)},
handleWarning:_.pG,sendFn:frL,now:_.uQ,writeError:xk8,jobManager:_.EJ(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.JT("potential_esf_error_limit",10),getBooleanFlag:_.f,disableYtIdbTransactions:!(_.la()&&_.ZkT())});this.initializationPromise=new _.xv;_.f("networkless_immediately_drop_all_requests")&&QcT();YqG("LogsDatabaseV2")};
_.O(XQ,kc);_.GMY=function(){var R=_.D6("yt.networklessRequestController.instance");R||(R=new XQ,_.CJ("yt.networklessRequestController.instance",R),_.f("networkless_logging")&&_.Rz().then(function(y){R.databaseToken=y;x4c(R);R.initializationPromise.resolve();R.enableCleaning&&Math.random()<=R.cleaningRate&&R.databaseToken&&JdT(R.databaseToken);_.f("networkless_immediately_drop_sw_health_store")&&nIg(R)}));
return R};
XQ.prototype.writeThenSend=function(R,y){y||(y={});y=e4P(R,y);_.la()||(this.initialized=!1);kc.prototype.writeThenSend.call(this,R,y)};
XQ.prototype.sendThenWrite=function(R,y,u){y||(y={});y=e4P(R,y);_.la()||(this.initialized=!1);kc.prototype.sendThenWrite.call(this,R,y,u)};
XQ.prototype.sendAndWrite=function(R,y){y||(y={});y=e4P(R,y);_.la()||(this.initialized=!1);kc.prototype.sendAndWrite.call(this,R,y)};
XQ.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var nIg=function(R){var y;_.I(function(u){if(!R.databaseToken)throw y=Xq("clearSWHealthLogsDb"),y;return u.return(VbU(R.databaseToken).catch(function(v){R.handleError(v)}))})};_.ni8=!1;_.HkL=_.uO.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.ni8};_.CJ("ytNetworklessLoggingInitializationOptions",_.HkL);var rI=function(R){var y=this;this.config_=null;R?this.config_=R:vvz()&&(this.config_=_.QO());_.Oh(_.WG,function(){aVT(y)},5E3)};
rI.prototype.isReady=function(){!this.config_&&vvz()&&(this.config_=_.QO());return!!this.config_};
var cwW=function(R,y,u,v){!_.EB("VISITOR_DATA")&&y!=="visitor_id"&&Math.random()<.01&&_.pG(new _.OL("Missing VISITOR_DATA when sending innertube request.",y,u,v));if(!R.isReady()){var Q=new _.OL("innertube xhrclient not ready",y,u,v);_.mq(Q);throw Q;}var M={headers:v.headers||{},method:"POST",postParams:u,postBody:v.postBody,postBodyFormat:v.postBodyFormat||"JSON",onTimeout:function(){v.onTimeout()},
onFetchTimeout:v.onTimeout,onSuccess:function(x,B){if(v.onSuccess)v.onSuccess(B)},
onFetchSuccess:function(x){if(v.onSuccess)v.onSuccess(x)},
onProgress:function(x){if(v.onProgress)v.onProgress(x)},
onError:function(x,B){if(v.onError)v.onError(B)},
onFetchError:function(x){if(v.onError)v.onError(x)},
timeout:v.timeout,withCredentials:!0,compress:v.compress};M.headers["Content-Type"]||(M.headers["Content-Type"]="application/json");var K="";(Q=R.config_.innertubeHostOverride)&&(K=Q);var h=R.config_.innertubeUseThirdPartyAuth||!1,b=_.xBU(h,K,v);Object.assign(M.headers,b);M.headers.Authorization&&!K&&h&&(M.headers["x-origin"]=window.location.origin);var N=_.YB(K+("/youtubei/"+R.config_.innertubeApiVersion+"/"+y),{alt:"json"}),T=function(x){x=x===void 0?!1:x;var B;if(v.retry&&K!="www.youtube-nocookie.com"&&
(x||_.f("skip_ls_gel_retry")||M.headers["Content-Type"]!=="application/json"||(B=pN8(y,u,b,h)),B)){var l=M.onSuccess,Z=M.onFetchSuccess;M.onSuccess=function(E,D){t04(B);l(E,D)};
u.onFetchSuccess=function(E,D){t04(B);Z(E,D)}}try{if(x&&v.retry&&!v.networklessOptions.bypassNetworkless)M.method="POST",v.networklessOptions.writeThenSend?_.GMY().writeThenSend(N,M):_.GMY().sendAndWrite(N,M);
else if(v.compress){var P=!v.networklessOptions.writeThenSend;if(M.postBody){var k=M.postBody;typeof k!=="string"&&(k=JSON.stringify(M.postBody));dzz(N,k,M,_.wR,P)}else dzz(N,JSON.stringify(M.postParams),M,mQ4,P)}else _.f("web_all_payloads_via_jspb")?_.wR(N,M):mQ4(N,M)}catch(E){if(E.name==="InvalidAccessError")B&&(t04(B),B=0),_.pG(Error("fd"));else throw E;}B&&_.Oh(_.WG,function(){aVT(R)},5E3)};
_.GNU()?mqS().then(function(x){T(x)}):T(!1)};var dd4=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(dd4,_.y4);var rl8=0,PXP=_.T$?"webkit":_.NO?"moz":_.wV?"ms":XnL?"o":"";_.CJ("ytDomDomGetNextId",_.D6("ytDomDomGetNextId")||function(){return++rl8});var Ppw={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},RN=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 y in R)y in Ppw||(this[y]=R[y]);this.scale=R.scale;this.rotation=R.rotation;var u=R.target||R.srcElement;u&&u.nodeType==3&&(u=u.parentNode);this.target=u;var v=R.relatedTarget;if(v)try{v=v.nodeName?v:null}catch(Q){v=null}else this.type=="mouseover"?v=R.fromElement:this.type=="mouseout"&&(v=R.toElement);this.relatedTarget=v;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(Q){}},Wbc=function(R){if(document.body&&document.documentElement){var y=document.body.scrollTop+document.documentElement.scrollTop;
R.pageX_=R.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);R.pageY_=R.clientY+y}};
RN.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
RN.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
RN.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var g3=_.uO.ytEventsEventsListeners||{};_.CJ("ytEventsEventsListeners",g3);var $kT=_.uO.ytEventsEventsCounter||{count:0};_.CJ("ytEventsEventsCounter",$kT);var q4E=_.H7(function(){var R=!1;try{var y=Object.defineProperty({},"capture",{get:function(){R=!0}});
window.addEventListener("test",null,y)}catch(u){}return R});_.IE(u_,_.Z0);u_.prototype.onMouseMove_=function(R){R.pageX_===void 0&&Wbc(R);var y=R.pageX_;R.pageY_===void 0&&Wbc(R);this.position_=new _.dc(y,R.pageY_)};
u_.prototype.checkPosition_=function(){if(this.position_){var R=(0,_.uQ)();if(this.previousTime_!=0){var y=this.previousPosition_,u=this.position_,v=y.x-u.x;y=y.y-u.y;v=Math.sqrt(v*v+y*y)/(R-this.previousTime_);this.cycles_[this.index_]=Math.abs((v-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(u=y=0;u<4;u++)y+=this.cycles_[u]||0;y>=3&&this.callback_();this.previousVelocity_=v}this.previousTime_=R;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
u_.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.Xyv(this.mouseListenerKey_)};var py8={};var zvS=new _.jF("rawColdConfigGroup");var sCU=new _.jF("rawHotConfigGroup");var d45=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(d45,_.y4);var WjW=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(WjW,_.y4);var l_=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R,500)};
_.O(l_,_.y4);l_.prototype.getPayloadCase=function(){return _.rV(this,U4T)};
l_.prototype.getContext=function(){return _.Ne(this,WjW,33)};
var U4T=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525];var tpT=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(tpT,_.y4);var xR4=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(xR4,_.y4);xR4.prototype.setVideoId=function(R){return wI(this,1,BWG,bJ(R))};
xR4.prototype.getPlaylistId=function(){return _.Tl(this,B3(this,BWG,2))};
var BWG=[1,2];var qyG=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(qyG,_.y4);qyG.prototype.getContext=function(){return _.Ne(this,Nc,1)};
qyG.prototype.getTier=function(){return _.qO(this,7)};var kMc,Mc,Jc;kMc=_.uO.ytPubsubPubsubInstance||new _.Tu;Mc=_.uO.ytPubsubPubsubSubscribedKeys||{};Jc=_.uO.ytPubsubPubsubTopicToKeys||{};_.tbW=_.uO.ytPubsubPubsubIsSynchronous||{};_.Tu.prototype.subscribe=_.Tu.prototype.subscribe;_.Tu.prototype.unsubscribeByKey=_.Tu.prototype.unsubscribeByKey;_.Tu.prototype.publish=_.Tu.prototype.publish;_.Tu.prototype.clear=_.Tu.prototype.clear;_.CJ("ytPubsubPubsubInstance",kMc);_.CJ("ytPubsubPubsubTopicToKeys",Jc);_.CJ("ytPubsubPubsubIsSynchronous",_.tbW);
_.CJ("ytPubsubPubsubSubscribedKeys",Mc);var i_=window;var mB=_.f("web_enable_lifecycle_monitoring")&&LNL()!==0,EIi=_.f("web_enable_lifecycle_monitoring");var $4G=function(R){var y=this;var u=u===void 0?0:u;var v=v===void 0?_.EJ():v;this.JSC$10819_defaultPriority=u;this.scheduler=v;this.completedResolver=new _.xv;this.scheduledPayloads=R;for(R={i$jscomp$487:0};R.i$jscomp$487<this.scheduledPayloads.length;R={payload$jscomp$19:void 0,i$jscomp$487:R.i$jscomp$487},R.i$jscomp$487++)R.payload$jscomp$19=this.scheduledPayloads[R.i$jscomp$487],u=function(Q){return function(){Q.payload$jscomp$19.job();y.scheduledPayloads[Q.i$jscomp$487].processed=!0;y.scheduledPayloads.every(function(M){return M.processed===
!0})&&y.completedResolver.resolve()}}(R),v=this.getPriority(R.payload$jscomp$19),v=this.scheduler.addJob(u,v),this.scheduledPayloads[R.i$jscomp$487]=Object.assign({},R.payload$jscomp$19,{job:u,
jobId:v})};
$4G.prototype.flushJobs=function(){var R=this,y=Array.from(this.scheduledPayloads.keys()).sort(function(v,Q){return R.getPriority(R.scheduledPayloads[Q])-R.getPriority(R.scheduledPayloads[v])});
y=_.V(y);for(var u=y.next();!u.done;u=y.next())u=this.scheduledPayloads[u.value],u.jobId===void 0||u.processed||(this.scheduler.cancelJob(u.jobId),this.scheduler.addJob(u.job,10))};
$4G.prototype.cancel=function(){for(var R=_.V(this.scheduledPayloads),y=R.next();!y.done;y=R.next())y=y.value,y.jobId===void 0||y.processed||this.scheduler.cancelJob(y.jobId),y.processed=!0;this.completedResolver.resolve()};
$4G.prototype.getPriority=function(R){var y;return(y=R.priority)!=null?y:this.JSC$10819_defaultPriority};var Ax=function(R){this.state=R;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};mB&&scG(this.state)};
Ax.prototype.install=function(R){this.plugins.push(R);return this};
Ax.prototype.uninstall=function(){var R=this;_.qy.apply(0,arguments).forEach(function(y){y=R.plugins.indexOf(y);y>-1&&R.plugins.splice(y,1)})};
Ax.prototype.transition=function(R,y){var u=this;mB&&z4P(this.state);var v=this.transitions.find(function(M){return Array.isArray(M.from)?M.from.find(function(K){return K===u.state&&M.to===R}):M.from===u.state&&M.to===R});
if(v){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);qfV(this,R,y);this.state=R;mB&&scG(this.state);v=v.action.bind(this);var Q=this.plugins.filter(function(M){return M[R]}).map(function(M){return M[R]});
v(X88(this,Q),y)}else throw Error("gd`"+this.state+"`"+R);};
var X88=function(R,y){var u=y.filter(function(Q){return m4K(R,Q)===10}),v=y.filter(function(Q){return m4K(R,Q)!==10});
return R.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var Q=_.qy.apply(0,arguments);return _.I(function(M){if(M.nextAddress==1)return M.yield(R.runImmediateJobsAsync.apply(R,[u].concat(_.P$(Q))),2);R.setJobSetWithScheduledJobs.apply(R,[v].concat(_.P$(Q)));_.f$(M)})}:function(){var Q=_.qy.apply(0,arguments);
R.runImmediateJobsSync.apply(R,[u].concat(_.P$(Q)));R.setJobSetWithScheduledJobs.apply(R,[v].concat(_.P$(Q)))}};
Ax.prototype.runImmediateJobsSync=function(R){var y=_.qy.apply(1,arguments);_.EJ();for(var u=_.V(R),v=u.next(),Q={};!v.done;Q={lifecycle$jscomp$2:void 0},v=u.next())Q.lifecycle$jscomp$2=v.value,NR(function(M){return function(){AlK(M.lifecycle$jscomp$2.name);CXU(function(){return M.lifecycle$jscomp$2.callback.apply(M.lifecycle$jscomp$2,_.P$(y))});
DR(M.lifecycle$jscomp$2.name)}}(Q))};
Ax.prototype.runImmediateJobsAsync=function(R){var y=_.qy.apply(1,arguments),u,v,Q,M;return _.I(function(K){K.nextAddress==1&&(_.EJ(),u=_.V(R),v=u.next(),Q={});if(K.nextAddress!=3){if(v.done)return K.jumpTo(0);Q.lifecycle$jscomp$3=v.value;Q.asyncJobCompletion=void 0;M=function(h){return function(){AlK(h.lifecycle$jscomp$3.name);var b=CXU(function(){return h.lifecycle$jscomp$3.callback.apply(h.lifecycle$jscomp$3,_.P$(y))});
NHL(b)?h.asyncJobCompletion=_.f("web_lifecycle_error_handling_killswitch")?b.then(function(){DR(h.lifecycle$jscomp$3.name)}):b.then(function(){DR(h.lifecycle$jscomp$3.name)},function(N){gi8(N);
DR(h.lifecycle$jscomp$3.name)}):DR(h.lifecycle$jscomp$3.name)}}(Q);
NR(M);return Q.asyncJobCompletion?K.yield(Q.asyncJobCompletion,3):K.jumpTo(3)}Q={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};v=u.next();return K.jumpTo(2)})};
Ax.prototype.setJobSetWithScheduledJobs=function(R){var y=_.qy.apply(1,arguments),u=this,v=R.map(function(Q){return{job:function(){AlK(Q.name);CXU(function(){return Q.callback.apply(Q,_.P$(y))});
DR(Q.name)},
priority:m4K(u,Q)}});
v.length&&(this.jobSet=new $4G(v))};
var m4K=function(R,y){var u,v;return(v=(u=R.overridePriority)!=null?u:y.priority)!=null?v:0},AlK=function(R){mB&&R&&scG(R)},DR=function(R){mB&&R&&z4P(R)},qfV=function(R,y,u){EIi&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+R.constructor.name+"] '"+R.state+"' to '"+y+"'"),console.log("with message: ",u),console.groupEnd())};
_.RR.Object.defineProperties(Ax.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var D4L=function(R){Ax.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(){}}]},p8i;
_.O(D4L,Ax);D4L.prototype.runApplicationNavigationBegin=function(R,y){var u=this;this.navigationTimer=_.Oh(_.WG,function(){u.currentState==="application_navigating"&&u.transition("none")},5E3);
R(y==null?void 0:y.event)};
D4L.prototype.runApplicationNavigationEnd=function(R,y){this.navigationTimer&&(_.WG.cancelJob(this.navigationTimer),this.navigationTimer=null);R(y==null?void 0:y.event)};
_.LxU=function(){p8i||(p8i=new D4L);return p8i};var YyU=[];_.CJ("yt.logging.transport.getScrapedGelPayloads",function(){return YyU});var Ki=function(){var R=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return R.totalEntries}}};
Ki.prototype.storePayload=function(R,y){R=RvW(R);this.store[R]?this.store[R].push(y):(this.memoizedKeySequences={},this.store[R]=[y]);this.totalEntries++;_.f("more_accurate_gel_parser")&&(y=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(y));return R};
Ki.prototype.smartExtractMatchingEntries=function(R){if(!R.keys.length)return[];for(var y=tC5(this,R.keys.splice(0,1)[0]),u=[],v=0;v<y.length;v++)this.store[y[v]]&&R.sizeLimit&&(this.store[y[v]].length<=R.sizeLimit?(u.push.apply(u,_.P$(this.store[y[v]])),delete this.store[y[v]]):u.push.apply(u,_.P$(this.store[y[v]].splice(0,R.sizeLimit))));this.totalEntries-=u.length;(R==null?0:R.sizeLimit)&&u.length<(R==null?void 0:R.sizeLimit)&&(R.sizeLimit-=u.length,u.push.apply(u,_.P$(this.smartExtractMatchingEntries(R))));
return u};
Ki.prototype.extractMatchingEntries=function(R){R=tC5(this,R);for(var y=[],u=0;u<R.length;u++)this.store[R[u]]&&(y.push.apply(y,_.P$(this.store[R[u]])),delete this.store[R[u]]);this.totalEntries-=y.length;return y};
Ki.prototype.getSequenceCount=function(R){R=tC5(this,R);for(var y=0,u=0;u<R.length;u++){var v=void 0;y+=((v=this.store[R[u]])==null?void 0:v.length)||0}return y};
var tC5=function(R,y){var u=RvW(y);if(R.memoizedKeySequences[u])return R.memoizedKeySequences[u];var v=Object.keys(R.store)||[];if(v.length<=1&&RvW(y)===v[0])return v;for(var Q=[],M=0;M<v.length;M++){var K=v[M].split("/");if(clc(y.auth,K[0])){var h=y.isJspb;clc(h===void 0?"undefined":h?"true":"false",K[1])&&clc(y.cttAuthInfo,K[2])&&(h=y.tier,h=h===void 0?"undefined":JSON.stringify(h),clc(h,K[3])&&Q.push(v[M]))}}return R.memoizedKeySequences[u]=Q},clc=function(R,y){return R===void 0||R==="undefined"?
!0:R===y};
Ki.prototype.getSequenceCount=Ki.prototype.getSequenceCount;Ki.prototype.extractMatchingEntries=Ki.prototype.extractMatchingEntries;Ki.prototype.smartExtractMatchingEntries=Ki.prototype.smartExtractMatchingEntries;Ki.prototype.storePayload=Ki.prototype.storePayload;var r6P,n6U,P08,b_,axc,yFW,R8L,HhP,Zh8,Fxc,G3L,alO,ev8;r6P=_.JT("initial_gel_batch_timeout",2E3);n6U=_.JT("gel_queue_timeout_max_ms",6E4);P08=_.JT("gel_min_batch_size",5);b_=void 0;axc=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
yFW=new axc;R8L=new axc;HhP=new axc;Zh8=new axc;G3L=!0;alO=1;_.c6W=new Map;ev8=_.uO.ytLoggingTransportTokensToCttTargetIds_||{};_.CJ("ytLoggingTransportTokensToCttTargetIds_",ev8);var flG=_.uO.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.CJ("ytLoggingTransportTokensToJspbCttTargetIds_",flG);var hc={};var ni=_.uO.ytLoggingGelSequenceIdObj_||{};_.CJ("ytLoggingGelSequenceIdObj_",ni);var Q8O=[];var Nm8=new Set,iAP=0,BmG=0,xpP=0,IOP=[],Kkz=[],fOS=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var kwP=function(){};
kwP.prototype.getUrl=function(R,y){y=y===void 0?!1:y;return R.hasOwnProperty("shareEndpoint")?null:_.ZAU(R,null,y)};
var S0P=function(R,y,u){R={endpoint:y,actions:[]};u=(u.path?u.path[0]:u.target).icon||"";y=u.indexOf(":");y>0&&(u=u.substr(y+1));u&&R.actions.push(u);return R};var Wk8=/Command$/,PDU=/Endpoint$/,n9P=new Map;var Sfc,YfL;Sfc=1;_.c3=function(){this.actionRoutingMap=new Map};
_.c3.prototype.triggerAction=function(R){var y=new KjU(R,!1,_.qy.apply(1,arguments));this.handleAction(y);return y.returnValue};
_.c3.prototype.triggerOptionalAction=function(R){var y=new KjU(R,!0,_.qy.apply(1,arguments));this.handleAction(y);return y.returnValue};
_.pV=function(R,y,u){y.forEach(function(v){var Q=rF8(v);Q&&R.triggerOptionalAction(Q,v,u,void 0)})};
_.c3.prototype.handleAction=function(R){var y=this.actionRoutingMap.get(R.actionName);y&&YfL(R,y);R.optionalAction||R.returnValue.length!==0||(R=new _.OL("Unhandled action",R.actionName),_.pG(R))};
YfL=function(R,y){y.forEach(function(u){var v=null;u?v=u.apply(null,R.args):(u=Error("hd"),u.params=R.actionName,_.mq(u));R.returnValue.push(v)})};
_.aN=function(R,y,u){u||(u=Sfc++);for(var v=_.V(Object.keys(y)),Q=v.next();!Q.done;Q=v.next()){Q=Q.value;var M=R.actionRoutingMap.get(Q);M||(M=new Map,R.actionRoutingMap.set(Q,M));R.registerActionHandler(u,Q,y[Q],M)}return u};
_.c3.prototype.registerActionHandler=function(R,y,u,v){v.set(R,_.A7(u))};
_.Sx=function(R,y,u){y=_.V(Object.keys(y));for(var v=y.next();!v.done;v=y.next())(v=R.actionRoutingMap.get(v.value))&&v.delete(u)};
_.io(_.c3);var qCE=function(R,y){var u=_.c3.getInstance();_.rB(function(){var v={},Q=_.aN(u,(v[R]=y,v));_.GF(function(){var M={};_.Sx(u,(M[R]="",M),Q)})})};var U0W=Symbol("jd");SlT=lxG;var RtU=new Set(["For","If","Match","Watch"]),Lbi={},sRg=(Lbi[$a.default]=function(){return mSU},Lbi.style=function(){return mSU},Lbi),z6i;
for(z6i in sRg)u$.attributes[z6i]=sRg[z6i](u$.attributes[z6i]);var uN=new _.Jx("VISIBILITY_OBSERVER");var KhS={retrieve:function(R){return this.id.\u0275prov.token===R.\u0275prov.token?this.contextValue:this?_.CF(this,this.id):B3O}};var yHE=function(R,y,u){if(R!==gI)return!1;R=YCP(document.createElement("div"),function(){var v=QV(!1);try{u[0]()}finally{QV(v)}});
R=Array.from(R.childNodes);R.length===1&&(R=R[0]);return R};var gI8=function(R){R=R.clone();fIY(R);GQ(R,"dg",null);GQ(R,"d","0");TRY(R,null);ozc(R,null);return R},Cpc=!0,R5c=function(R,y,u){var v=u===void 0?{}:u;
u=v.cssRowKey===void 0?void 0:v.cssRowKey;var Q=v.combinedSignature===void 0?void 0:v.combinedSignature;var M=v.extraEdges===void 0?void 0:v.extraEdges;v=v.callback===void 0?void 0:v.callback;GQ(R,"m",y.join(","));M&&BRG(R,M);u&&(GQ(R,"ck",u),Q?GQ(R,"rs",Q):Cpc&&(Cpc=!1));if(v){if(v!=null&&!OJ8.test(v))throw Error("Xa`"+v);GQ(R,"cb",v)}R=R.toString();_.jv(R,"/")&&(R=gMT(document.location.href)+R);return _.lb(R)};var uh5=function(R){return y_g(R).then(function(y){return JSON.parse(y.responseText)})},y_g=function(R){var y={},u=y.xmlHttpFactory?y.xmlHttpFactory.createInstance():m1g.createInstance();
return(new _.F4(function(v,Q){var M;try{u.open("GET",R,!0)}catch(b){Q(new tx("Error opening XHR: "+b.message,R,u))}u.onreadystatechange=function(){if(u.readyState==4){_.uO.clearTimeout(M);var b;!(b=XsG(u.status))&&(b=u.status===0)&&(b=z7g(R),b=!(b=="http"||b=="https"||b==""));b?v(u):Q(new vFc(u.status,R,u))}};
u.onerror=function(){Q(new tx("Network error",R,u))};
if(y.headers)for(var K in y.headers){var h=y.headers[K];h!=null&&u.setRequestHeader(K,h)}y.withCredentials&&(u.withCredentials=y.withCredentials);y.responseType&&(u.responseType=y.responseType);y.mimeType&&u.overrideMimeType(y.mimeType);y.timeoutMs>0&&(M=_.uO.setTimeout(function(){u.onreadystatechange=function(){};
u.abort();Q(new Qk5(R,u))},y.timeoutMs));
try{u.send(null)}catch(b){u.onreadystatechange=function(){},_.uO.clearTimeout(M),Q(new tx("Error sending XHR: "+b.message,R,u))}})).thenCatch(function(v){v instanceof _.LX&&u.abort();
throw v;})},tx=function(R,y,u){_.RL.call(this,R+", url="+y);
this.url=y;this.xhr=u};
_.IE(tx,_.RL);tx.prototype.name="XhrError";var vFc=function(R,y,u){tx.call(this,"Request Failed, status="+R,y,u);this.status=R};
_.IE(vFc,tx);vFc.prototype.name="XhrHttpError";var Qk5=function(R,y){tx.call(this,"Request timed out",R,y)};
_.IE(Qk5,tx);Qk5.prototype.name="XhrTimeoutError";VR=VR||{};var ct=function(){_.Z0.call(this)};
_.IE(ct,_.Z0);ct.prototype.initialize=function(){};var jk5=function(R,y){this.fn_=R;this.handler_=y};
jk5.prototype.execute=function(R){this.fn_&&(this.fn_.call(this.handler_||null,R),this.fn_=this.handler_=null)};
jk5.prototype.abort=function(){this.handler_=this.fn_=null};var aZ=function(R,y){_.Z0.call(this);this.deps_=R;this.JSC$10946_id_=y;this.onloadCallbacks_=[];this.JSC$10946_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.IE(aZ,_.Z0);aZ.prototype.moduleConstructor_=ct;aZ.prototype.module_=null;aZ.prototype.getId=function(){return this.JSC$10946_id_};
aZ.prototype.registerCallback=function(R,y){return MiG(this.onloadCallbacks_,R,y)};
var J_8=function(R,y){MiG(R.JSC$10946_onErrorCallbacks_,y)},MiG=function(R,y,u){y=new jk5(y,u);
R.push(y);return y};
aZ.prototype.isLoaded=function(){return!!this.module_};
aZ.prototype.onLoad=function(R){var y=new this.moduleConstructor_;y.initialize(R());this.module_=y;y=(y=Vi5(this.earlyOnloadCallbacks_,R()))||Vi5(this.onloadCallbacks_,R());y||(this.JSC$10946_onErrorCallbacks_.length=0);return y};
aZ.prototype.onError=function(R){(R=Vi5(this.JSC$10946_onErrorCallbacks_,R))&&vW(Error("nd`"+R));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var Vi5=function(R,y){for(var u=[],v=0;v<R.length;v++)try{R[v].execute(y)}catch(Q){vW(Q),u.push(Q)}R.length=0;return u.length?u:null};
aZ.prototype.disposeInternal=function(){aZ.superClass_.disposeInternal.call(this);_.R_(this.module_)};var ioc,wog,bo5,FmV,Iqc,h5c,Br5,oFK,xQi;
_.Yc=function(R,y,u,v,Q){v=v===void 0?!1:v;Q=Q===void 0?!1:Q;var M=M===void 0?!0:M;this.scsReferenceUrl_=pGc(_.Oo(R).toString(),M);this.cssRowKey_=y;this.combinedSignature_=u;this.useNegativeLoading_=v;this.requestedModuleMap_={};this.JSC$10949_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(R=nI(this.scsReferenceUrl_,"excm"))?R.split(","):[];this.shouldScanForCss_=Q;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;t_U();_.SF(this,xCT(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
ioc=function(R,y){if(y.href||y.getAttribute("data-href"))if(y=y.href||y.getAttribute("data-href"),XGv(y)&&!pGc(y).urlPrefix_.endsWith("_/js/")){y=xCT(pGc(y));y=_.V(y);for(var u=y.next();!u.done;u=y.next())u=u.value,R.loadedCssModuleList_.includes(u)||R.loadedCssModuleList_.push(u)}};
_.Yc.prototype.JSC$10951_loadModules=function(R,y,u){var v=u===void 0?{}:u;u=v.extraEdges;var Q=v.onError;var M=v.onSuccess;v=v.forceReload;this.JSC$10949_moduleInfoMap_=y;if(!R)throw Error("od");if(this.shouldScanForCss_){y=_.V(document.getElementsByTagName("style"));for(var K=y.next();!K.done;K=y.next())ioc(this,K.value);y=_.V(document.getElementsByTagName("link"));for(K=y.next();!K.done;K=y.next())ioc(this,K.value)}Kmw(this,Iqc(this,R),u,Q,M,v)};
var Kmw=function(R,y,u,v,Q,M){v=v===void 0?function(){}:v;
Q=Q===void 0?function(){}:Q;
M=M===void 0?!1:M;h5c(R,y,function(K,h,b){b=b===void 0?h:b;R.enableFallbackFetch&&M?R.loadWithFetch(K,h,v,Q,b):R.load(K,h,v,Q,b,u)},u)||v(-1)};
_.Yc.prototype.loadWithFetch=function(){_.I(function(){throw Error("pd");})};
_.Yc.prototype.maybeSetAdditionalFields=function(){};
wog=function(R,y,u){if(R.useNegativeLoading_){var v=R.scsReferenceUrl_;R={cssRowKey:R.cssRowKey_,combinedSignature:R.combinedSignature_,extraEdges:u,requestedModuleIds:bo5(R),requestedCssModuleIds:FmV(R)};var Q=R===void 0?{}:R;R=Q.requestedModuleIds===void 0?[]:Q.requestedModuleIds;u=Q.requestedCssModuleIds===void 0?[]:Q.requestedCssModuleIds;var M=Q.cssRowKey===void 0?void 0:Q.cssRowKey;var K=Q.combinedSignature===void 0?void 0:Q.combinedSignature;var h=Q.extraEdges===void 0?void 0:Q.extraEdges;
Q=Q.callback===void 0?void 0:Q.callback;v=gI8(v);GQ(v,"d","1");TRY(v,R);ozc(v,u);y=R5c(v,y,{cssRowKey:M,combinedSignature:K,extraEdges:h,callback:Q})}else v=R.scsReferenceUrl_,R={cssRowKey:R.cssRowKey_,combinedSignature:R.combinedSignature_,requestedModuleIds:bo5(R),requestedCssModuleIds:FmV(R)},h=R===void 0?{}:R,R=h.requestedCssModuleIds===void 0?[]:h.requestedCssModuleIds,u=h.cssRowKey===void 0?void 0:h.cssRowKey,M=h.combinedSignature===void 0?void 0:h.combinedSignature,K=h.extraEdges===void 0?
void 0:h.extraEdges,h=h.callback===void 0?void 0:h.callback,v=gI8(v),ozc(v,R),y=R5c(v,y,{cssRowKey:u,combinedSignature:M,extraEdges:K,callback:h});return y};
_.SF=function(R,y){for(var u=!1,v=[],Q=0;Q<y.length;++Q){var M=y[Q];R.requestedModuleMap_[M]||(R.requestedModuleMap_[M]=!0,R.requestedModuleList_.push(M),u=!0,v.push(M))}u&&(R.requestedModuleListSorted_=!1)};
_.LV=function(R,y){for(var u=[],v=0;v<y.length;++v){var Q=y[v];R.requestedModuleMap_[Q]&&(delete R.requestedModuleMap_[Q],_.m4(R.requestedModuleList_,Q),u.push(Q))}};
_.Yc.prototype.load=function(R,y,u,v,Q){Q=Q===void 0?y:Q;_.Oo(R);var M=this.useCors_,K=this.corsMode_,h=this.fetchPriority,b=_.o_("SCRIPT");_.gC(b,R);M&&(b.crossOrigin=K);b.async=!1;h&&b.setAttribute("fetchpriority",h);_.SF(this,y);_.Nr5(this,R,b,y,u,v,Q)};
_.Nr5=function(R,y,u,v,Q,M,K){K=K===void 0?v:K;R.lastScript_=u;R.insertPos.insertBefore(u,R.insertPos.firstChild);_.Tri(u,v,function(){u.parentElement.removeChild(u);R.lastScript_==u&&(R.lastScript_=null);var h=new Set;v.map(function(N){return h.add(N)});
for(var b in R.JSC$10949_moduleInfoMap_)R.JSC$10949_moduleInfoMap_[b].isLoaded()&&h.add(b);Array.from(h);M()},function(h){u.parentElement.removeChild(u);
R.lastScript_==u&&(R.lastScript_=null);_.LV(R,h);R.pendingModuleGraphUpdate_?R.pendingModuleGraphUpdate_.then(function(){Q(-1,y)}):Q(-1,y)},K)};
_.Tri=function(R,y,u,v,Q){Q=Q===void 0?y:Q;var M=y.length,K=function(){M=0;R.onload=null;R.onerror=null;h=function(){}},h=function(){K();
var N=Q.filter(function(T){return!WY().getModuleInfo(T).isLoaded()});
N.length!==0?v(N,"Response was successful but was missing module(s) "+N+"."):u()},b=function(){M--;
M==0&&h()};
y.forEach(function(N){N=WY().getModuleInfo(N);N.isLoaded()?b():(MiG(N.earlyOnloadCallbacks_,b),J_8(N,b))});
R.onload=function(){return h()};
R.onerror=function(){K();v(y)}};
bo5=function(R){R.requestedModuleListSorted_||(R.requestedModuleListSorted_=!0,R.requestedModuleList_.sort());return R.requestedModuleList_};
FmV=function(R){R=R.loadedCssModuleList_;R.sort();return R};
Iqc=function(R,y){return y.filter(function(u){return!R.requestedModuleMap_[u]})};
h5c=function(R,y,u,v){if(R.pendingModuleGraphUpdate_)return R.pendingModuleGraphUpdate_.then(function(){h5c(R,y,u,v)}),!0;
if(!R.useNegativeLoading_){var Q=[],M=Object.assign({},R.requestedModuleMap_);oFK(R,y,function(T){Q.push(T.getId())},v,function(T){return!T.isLoaded()},M);
y=Q}for(M=0;M<y.length;){for(var K=y.length-M,h=M==0?y:y.slice(M,y.length),b=wog(R,h,v),N=_.Oo(b).toString();N.length>R.urlMaxLength;)if(K>1)K-=Math.ceil((N.length-R.urlMaxLength)/6),K=Math.max(K,1),h=y.slice(M,M+K),b=wog(R,h,v),N=_.Oo(b).toString();else return R.useNegativeLoading_?(R.useNegativeLoading_=!1,R.pendingModuleGraphUpdate_=xQi(R).then(function(T){Br5(R,T,v)}),h5c(R,y.slice(M),u,v)):!1;
M+=K;R.useNegativeLoading_?u(b,h):u(b,h,M===y.length?y:[])}return!0};
Br5=function(R,y,u){WY().setAllModuleInfoString((y||{}).moduleGraph);oFK(R,bo5(R),function(v){_.SF(R,[v.getId()])},u);
R.pendingModuleGraphUpdate_=null};
oFK=function(R,y,u,v,Q,M){M=M===void 0?{}:M;var K=WY();y=_.V(y);for(var h=y.next();!h.done;h=y.next()){h=h.value;var b=K.getModuleInfo(h);if(!(M[h]||Q&&!Q(b))){M[h]=!0;var N=b.deps_||[];if(v){var T=[];v[h]&&(T=Object.keys(v[h]));N=N.concat(T)}oFK(R,N,u,v,Q,M);u(b)}}};
xQi=function(R){R=R.scsReferenceUrl_.clone();fIY(R);GQ(R,"dg",null);GQ(R,"md","1");return uh5(R.toString())};var bX8=new Uint8Array(123);var fqi=[];var e5b=function(){this.JSC$10023_loader_=null};
_.J=e5b.prototype;_.J.setBatchModeEnabled=function(){};
_.J.setAllModuleInfoString=function(){};
_.J.addExtraEdge=function(){throw Error("qd");};
_.J.removeExtraEdge=function(){throw Error("rd");};
_.J.getModuleContext=function(){return null};
_.J.isActive=function(){return!1};
_.J.isUserActive=function(){return!1};
_.J.registerCallback=function(){};var sv=function(R,y,u,v,Q){var M=Error.call(this);this.message=M.message;"stack"in M&&(this.stack=M.stack);this.name="ModuleLoadFailure";this.type=R;this.status=y;this.requestedModuleIds=u;this.url=v;this.cause=Q;this.message=this.toString()};
_.O(sv,Error);sv.prototype.toString=function(){return lqY(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var lqY=function(R){switch(R.type){case sv.Type.UNAUTHORIZED:return"Unauthorized";case sv.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case sv.Type.TIMEOUT:return"Timed out";case sv.Type.OLD_CODE_GONE:return"Out of date module id";case sv.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+R.type}};
VR.ModuleLoadFailure=sv;VR.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var zn=function(){this.moduleIds_=this.JSC$10023_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$10964_extraEdges_={};this.JSC$10964_callbackMap_={};this.JSC$10964_currentlyLoadingModule_=this.baseModuleInfo_=new aZ([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new gK;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.IE(zn,e5b);var Oob=function(R,y){_.RL.call(this,"Error loading "+R+": "+y)};
_.IE(Oob,_.RL);zn.prototype.setBatchModeEnabled=function(R){this.batchModeEnabled_=R};
zn.prototype.setAllModuleInfoString=function(R,y){if(!(this instanceof zn))this.setAllModuleInfoString(R,y);else if(typeof R==="string"){if(R.startsWith("d$")){R=R.substring(2);for(var u=[],v=0,Q=R.indexOf("/"),M=0,K=!1,h=0;;){var b=K?R.substring(M):R.substring(M,Q);if(b.length===0)v++,M="sy"+v.toString(36),b=[];else{var N=b.indexOf(":");if(N<0)M=b,b=[];else if(N===b.length-1)M=b.substring(0,N),b=Array(u[h-1]);else{M=b.substring(0,N);b=b.substring(N+1).split(",");N=h;for(var T=0;T<b.length;T++)N-=
b[T].length===0?1:Number(b[T]),b[T]=u[N]}N=0;if(M.length===0)N=1;else if(M.charAt(0)==="+"||M.charAt(0)==="-")N=Number(M);N!==0&&(v+=N,M="sy"+v.toString(36))}u.push(M);Zo5(this,M,b);if(K)break;M=Q+1;Q=R.indexOf("/",M);Q===-1&&(K=!0);h++}this.moduleIds_=u}else if(R.startsWith("p$"))HoV(this,R);else{R=R.split("/");u=[];for(v=0;v<R.length;v++){h=R[v].split(":");Q=h[0];K=[];if(h[1])for(K=h[1].split(","),h=0;h<K.length;h++)K[h]=u[parseInt(K[h],36)];u.push(Q);Zo5(this,Q,K)}this.moduleIds_=u}y&&y.length?
(_.tz(this.loadingModuleIds_,y),this.lastInitialModuleId_=_.WW(y)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$10964_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$10964_currentlyLoadingModule_=null,(y=this.baseModuleInfo_.onLoad((0,_.HY)(this.getModuleContext,this)))&&y.length&&nFV(this,new VR.ModuleLoadFailure(VR.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,y[0])),g1(this))}};
var HoV=function(R,y){var u=y.substring(2);for(y=0;y<64;y++)bX8["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(y)]=y;var v={buf:u,pos:0};jm(v);var Q=jm(v),M=jm(v)+1;y=Array(Q);var K=Array(Q),h=Array(Q);M=Array(M);var b=0,N=0,T=v.pos,x=v.buf.indexOf("|",v.pos);v.pos=x+1;for(x=0;x<Q;x++){var B=jm(v),l=B&2,Z=B&1;B>>>=2;Z?(b+=B>>>1^-(B&1),B="sy"+b.toString(36)):(Z=T,T+=B,B=u.substring(Z,T));y[x]=B;l&&(M[N++]=B)}M[N]="";v.pos++;N=Q&-2;u=Q&1;for(b=0;b<N;b+=2)T=FhU(v),h[b]=
T&7,h[b+1]=T>>>3&7;u&&(u=FhU(v),h[N]=u&7);v.pos++;for(N=0;N<Q;N++)h[N]===7&&(h[N]=jm(v));v.pos++;for(u=N=0;u<Q;u++){b=h[u];T=b===0?fqi:Array(b);K[u]=T;x=N;for(l=0;l<b;l++)x-=jm(v),T[l]=M[x];M[N]===y[u]&&N++}for(v=0;v<y.length;v++)Zo5(R,y[v],K[v]);R.moduleIds_=y};
_.J=zn.prototype;_.J.getModuleInfo=function(R){return this.moduleInfoMap[R]};
_.J.addExtraEdge=function(R,y){var u=this.getModuleInfo(R);u&&u.isLoaded()?this.load(y):(this.JSC$10964_extraEdges_[R]||(this.JSC$10964_extraEdges_[R]={}),this.JSC$10964_extraEdges_[R][y]=!0)};
_.J.removeExtraEdge=function(R,y){if(this.JSC$10964_extraEdges_[R]){delete this.JSC$10964_extraEdges_[R][y];for(var u in this.JSC$10964_extraEdges_[R])return;delete this.JSC$10964_extraEdges_[R]}};
_.J.isActive=function(){return this.loadingModuleIds_.length>0};
_.J.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var g1=function(R){var y=R.lastActive_,u=R.isActive();u!=y&&(R.executeCallbacks_(u?"active":"idle"),R.lastActive_=u);y=R.isUserActive();y!=R.userLastActive_&&(R.executeCallbacks_(y?"userActive":"userIdle"),R.userLastActive_=y)},Zo5=function(R,y,u){R.moduleInfoMap[y]?(R=R.moduleInfoMap[y].deps_,R!=u&&R.splice.apply(R,[0,
R.length].concat(_.P$(u)))):R.moduleInfoMap[y]=new aZ(u,y)},r_c=function(R,y,u){var v=[];
H8E(y,v);y=[];for(var Q={},M=0;M<v.length;M++){var K=v[M],h=R.getModuleInfo(K);if(!h)throw Error("sd`"+K);var b=new gK;Q[K]=b;h.isLoaded()?b.callback(null):(GPc(R,K,h,!!u,b),R.isModuleLoading(K)||y.push(K))}y.length>0&&(R.loadingModuleIds_.length===0?R.loadModules_(y):(R.requestedModuleIdsQueue_.push(y),g1(R)));return Q},GPc=function(R,y,u,v,Q){u.registerCallback(Q.callback,Q);
J_8(u,function(M){Q.errback(new Oob(y,M))});
R.isModuleLoading(y)?v&&(Phc(R,y),g1(R)):v&&Phc(R,y)};
zn.prototype.loadModules_=function(R,y,u){var v=this;y||(this.consecutiveFailures_=0);var Q=WmV(this,R);this.loadingModuleIds_=Q;this.requestedLoadingModuleIds_=this.batchModeEnabled_?R:_.Az(Q);g1(this);if(Q.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,Q);if(Object.keys(this.JSC$10964_extraEdges_).length>0&&!this.JSC$10023_loader_.supportsExtraEdges)throw Error("td");R=(0,_.HY)(this.JSC$10023_loader_.JSC$10951_loadModules,this.JSC$10023_loader_,_.Az(Q),this.moduleInfoMap,
{extraEdges:this.JSC$10964_extraEdges_,forceReload:!!u,onError:function(M,K){var h=v.requestedLoadingModuleIds_;M=M!=null?M:void 0;v.consecutiveFailures_++;var b=_.Az(Q);v.requestedLoadingModuleIds_=h;Q.forEach(_.lh(_.m4,v.requestedModuleIds_),v);M==401?(nFV(v,new VR.ModuleLoadFailure(VR.ModuleLoadFailure.Type.UNAUTHORIZED,M)),v.requestedModuleIdsQueue_.length=0):M==410?(dQK(v,new VR.ModuleLoadFailure(VR.ModuleLoadFailure.Type.OLD_CODE_GONE,M)),UQG(v)):v.consecutiveFailures_>=3?(dQK(v,new VR.ModuleLoadFailure(VR.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
M,b,K)),UQG(v)):v.loadModules_(v.requestedLoadingModuleIds_,!0,M==8001||!1)},
onTimeout:(0,_.HY)(this.handleLoadTimeout_,this)});(y=Math.pow(this.consecutiveFailures_,2)*5E3)?_.uO.setTimeout(R,y):R()}};
var WmV=function(R,y){y=y.filter(function(Q){return R.moduleInfoMap[Q].isLoaded()?(_.uO.setTimeout(function(){return Error("ud`"+Q)},0),!1):!0});
for(var u=[],v=0;v<y.length;v++)u=u.concat(kPg(R,y[v]));H8E(u);return!R.batchModeEnabled_&&u.length>1?(y=u.shift(),R.requestedModuleIdsQueue_=u.map(function(Q){return[Q]}).concat(R.requestedModuleIdsQueue_),[y]):u},kPg=function(R,y){var u=_.Ps.createSet(R.requestedModuleIds_),v=[];
u[y]||v.push(y);y=[y];for(var Q=0;Q<y.length;Q++)for(var M=R.getModuleInfo(y[Q]).deps_,K=M.length-1;K>=0;K--){var h=M[K];R.getModuleInfo(h).isLoaded()||u[h]||(v.push(h),y.push(h))}v.reverse();H8E(v);return v};
zn.prototype.JSC$10959_setLoaded=function(){if(this.JSC$10964_currentlyLoadingModule_){var R=this.JSC$10964_currentlyLoadingModule_.getId(),y=[];if(this.JSC$10964_extraEdges_[R]){for(var u=_.V(Object.keys(this.JSC$10964_extraEdges_[R])),v=u.next();!v.done;v=u.next()){v=v.value;var Q=this.getModuleInfo(v);Q&&!Q.isLoaded()&&(this.removeExtraEdge(R,v),y.push(v))}this.loadMultiple(y)}this.isDisposed()||((y=this.moduleInfoMap[R].onLoad((0,_.HY)(this.getModuleContext,this)))&&y.length&&nFV(this,new VR.ModuleLoadFailure(VR.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,y[0])),_.m4(this.userInitiatedLoadingModuleIds_,R),_.m4(this.loadingModuleIds_,R),this.loadingModuleIds_.length===0&&UQG(this),this.lastInitialModuleId_&&R==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),g1(this),this.JSC$10964_currentlyLoadingModule_=null)}};
zn.prototype.isModuleLoading=function(R){if(_.XU(this.loadingModuleIds_,R))return!0;for(var y=0;y<this.requestedModuleIdsQueue_.length;y++)if(_.XU(this.requestedModuleIdsQueue_[y],R))return!0;return!1};
zn.prototype.load=function(R,y){return r_c(this,[R],y)[R]};
zn.prototype.loadMultiple=function(R){return r_c(this,R)};
var Phc=function(R,y){_.XU(R.userInitiatedLoadingModuleIds_,y)||R.userInitiatedLoadingModuleIds_.push(y)};
zn.prototype.beforeLoadModuleCode=function(R){var y=this;this.JSC$10964_currentlyLoadingModule_&&this.JSC$10964_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$10959_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[R]&&EF5(this,this.moduleInfoMap[R].deps_||[],function(u){u.module_=new ct;_.m4(y.loadingModuleIds_,u.getId())},function(u){return!u.isLoaded()});
this.JSC$10964_currentlyLoadingModule_=this.getModuleInfo(R)};
zn.prototype.handleLoadTimeout_=function(){dQK(this,new VR.ModuleLoadFailure(VR.ModuleLoadFailure.Type.TIMEOUT));UQG(this)};
var dQK=function(R,y){R.requestedLoadingModuleIds_.length>1?R.requestedModuleIdsQueue_=R.requestedLoadingModuleIds_.map(function(u){return[u]}).concat(R.requestedModuleIdsQueue_):nFV(R,y)},nFV=function(R,y){var u=R.requestedLoadingModuleIds_;
R.loadingModuleIds_.length=0;for(var v=[],Q=0;Q<R.requestedModuleIdsQueue_.length;Q++){var M=R.requestedModuleIdsQueue_[Q].filter(function(b){var N=kPg(this,b);return az(u,function(T){return _.XU(N,T)})},R);
_.tz(v,M)}for(Q=0;Q<u.length;Q++)_.eTU(v,u[Q]);for(Q=0;Q<v.length;Q++){for(M=0;M<R.requestedModuleIdsQueue_.length;M++)_.m4(R.requestedModuleIdsQueue_[M],v[Q]);_.m4(R.userInitiatedLoadingModuleIds_,v[Q])}if(Q=R.JSC$10964_callbackMap_.error)for(M=0;M<Q.length;M++)for(var K=Q[M],h=0;h<v.length;h++)K("error",v[h],y);for(v=0;v<u.length;v++)if(R.moduleInfoMap[u[v]])R.moduleInfoMap[u[v]].onError(y);R.requestedLoadingModuleIds_.length=0;g1(R)},UQG=function(R){for(;R.requestedModuleIdsQueue_.length;){var y=
R.requestedModuleIdsQueue_.shift().filter(function(u){return!this.getModuleInfo(u).isLoaded()},R);
if(y.length>0){R.loadModules_(y);return}}g1(R)};
zn.prototype.registerCallback=function(R,y){Array.isArray(R)||(R=[R]);for(var u=0;u<R.length;u++){var v=R[u],Q=y,M=this.JSC$10964_callbackMap_;M[v]||(M[v]=[]);M[v].push(Q)}};
zn.prototype.executeCallbacks_=function(R){for(var y=this.JSC$10964_callbackMap_[R],u=0;y&&u<y.length;u++)y[u](R)};
var EF5=function(R,y,u,v,Q){v=v===void 0?function(){return!0}:v;
Q=Q===void 0?{}:Q;y=_.V(y);for(var M=y.next();!M.done;M=y.next()){M=M.value;var K=R.getModuleInfo(M);!Q[M]&&v(K)&&(Q[M]=!0,EF5(R,K.deps_||[],u,v,Q),u(K))}};
zn.prototype.dispose=function(){_.y7(_.Ps.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$10964_callbackMap_={};this.isDisposed_=!0};
zn.prototype.isDisposed=function(){return this.isDisposed_};
_.PY=function(){return new zn};var $QT=[5E3,2E4],q9w=function(){this.JSC$10023_loader_=null;this.JSC$10972_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$10972_queue_=[];this.JSC$10972_extraEdges_=Object.create(null);this.JSC$10972_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.O(q9w,e5b);_.J=q9w.prototype;_.J.setAllModuleInfoString=function(){this.JSC$10972_currentlyLoadingModule_&&this.JSC$10972_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$10959_setLoaded()};
_.J.getModuleInfo=function(R){var y=this.JSC$10972_moduleInfoMap_[R];y||(y=new aZ([],R),this.JSC$10972_moduleInfoMap_[R]=y);return y};
_.J.addExtraEdge=function(R,y){this.getModuleInfo(R).isLoaded()?this.load(y):(this.JSC$10972_extraEdges_[R]||(this.JSC$10972_extraEdges_[R]={}),this.JSC$10972_extraEdges_[R][y]=!0)};
_.J.removeExtraEdge=function(R,y){if(this.JSC$10972_extraEdges_[R]){delete this.JSC$10972_extraEdges_[R][y];for(var u in this.JSC$10972_extraEdges_[R])return;delete this.JSC$10972_extraEdges_[R]}};
_.J.isModuleLoading=function(R){return!!this.loadingModules_[R]};
_.J.load=function(R){Xo5(this,[R]);return mQV(this,R)};
_.J.loadMultiple=function(R){var y=this,u=Object.create(null),v=[];R.forEach(function(Q){u[Q]||(u[Q]=mQV(y,Q),v.push(Q))});
Xo5(this,v);return u};
_.J.beforeLoadModuleCode=function(R){var y;((y=this.JSC$10972_currentlyLoadingModule_)==null?void 0:y.getId())==="synthetic_module_overhead"&&this.JSC$10959_setLoaded();var u,v;A_g(this,(v=(u=this.JSC$10972_moduleInfoMap_[R])==null?void 0:u.deps_)!=null?v:[],function(Q){Q.module_=new ct},function(Q){return!Q.isLoaded()});
this.JSC$10972_currentlyLoadingModule_=this.getModuleInfo(R)};
_.J.JSC$10959_setLoaded=function(){if(this.JSC$10972_currentlyLoadingModule_){var R=this.JSC$10972_currentlyLoadingModule_.getId(),y=[];if(this.JSC$10972_extraEdges_[R]){for(var u=_.V(Object.keys(this.JSC$10972_extraEdges_[R])),v=u.next();!v.done;v=u.next())v=v.value,this.getModuleInfo(v).isLoaded()||(this.removeExtraEdge(R,v),y.push(v));this.loadMultiple(y)}this.JSC$10972_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$10972_currentlyLoadingModule_=null;(!this.isModuleLoading(R)&&/^sy[0-9a-z]{0,4}$/.test(R)||R==="synthetic_module_overhead")&&delete this.JSC$10972_moduleInfoMap_[R];this.unsetModulesAsLoading(R)}};
_.J.setModulesAsLoading=function(){var R=this;_.qy.apply(0,arguments).forEach(function(y){R.loadingModules_[y]=!0})};
_.J.unsetModulesAsLoading=function(){var R=this;_.qy.apply(0,arguments).forEach(function(y){delete R.loadingModules_[y]})};
var mQV=function(R,y){return new _.F4(function(u,v){var Q=R.getModuleInfo(y);Q.isLoaded()?u(null):(Q.registerCallback(function(){u(null)}),J_8(Q,function(M){var K="Error loading "+y+": "+M;
M instanceof VR.ModuleLoadFailure&&M.url&&(K=K+", requested url: "+M.url.toString());v(Error(K))}))})},Xo5=function(R,y){y=y.filter(function(u){return!R.isModuleLoading(u)&&!R.getModuleInfo(u).isLoaded()});
y.length>0&&(R.setModulesAsLoading.apply(R,_.P$(y)),R.JSC$10972_queue_.push(y),DQc(R))},DQc=function(R){for(var y={};R.activeLoads_<Infinity&&R.JSC$10972_queue_.length>0;y={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})y.ids$jscomp$36=R.JSC$10972_queue_.shift().filter(function(u){return!R.getModuleInfo(u).isLoaded()}),y.ids$jscomp$36.length>0&&(R.activeLoads_++,y.finishLoad=function(u){return function(){R.activeLoads_--;
DQc(R);u.finishLoad=function(){}}}(y),_.Pc(y.ids$jscomp$36.map(function(u){return mQV(R,u)})).then(function(u){return function(){(0,u.finishLoad)()}}(y)),y.attempt$jscomp$6=0,y.load$jscomp$1=function(u){return function(){if(Object.keys(R.JSC$10972_extraEdges_).length>0&&!R.JSC$10023_loader_.supportsExtraEdges)throw Error("td");
R.JSC$10023_loader_.JSC$10951_loadModules(u.ids$jscomp$36,R.JSC$10972_moduleInfoMap_,{extraEdges:R.JSC$10972_extraEdges_,onError:function(v,Q){var M=$QT[u.attempt$jscomp$6++];M!==void 0?setTimeout(function(){(0,u.load$jscomp$1)()},M):(R.unsetModulesAsLoading.apply(R,_.P$(u.ids$jscomp$36)),(0,u.finishLoad)(),u.ids$jscomp$36.forEach(function(K){K=R.getModuleInfo(K);
if(!K.isLoaded())K.onError(new VR.ModuleLoadFailure(VR.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,v,u.ids$jscomp$36,Q))}))}})}}(y),(0,y.load$jscomp$1)())},A_g=function(R,y,u,v,Q){v=v===void 0?function(){return!0}:v;
Q=Q===void 0?{}:Q;y=_.V(y);for(var M=y.next();!M.done;M=y.next()){M=M.value;var K=R.getModuleInfo(M);!Q[M]&&v(K)&&(Q[M]=!0,A_g(R,K.deps_||[],u,v,Q),u(K))}};var poG=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var N$P=Symbol("wd");window.JSCompiler_renameProperty=function(R){return R};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var tiV=!poG||HTMLElement.es5Shimmed||_.uO.Reflect===void 0||_.uO.customElements===void 0||_.uO.customElements.polyfillWrapFlushCallback||!1,c_K,ahS=function(){var R=HTMLElement;if(tiV)return R;if(c_K!==void 0)return c_K;var y=_.uO.Reflect,u=function(){return y.construct(R,[],this.constructor)};
u.prototype=R.prototype;u.prototype.constructor=u;u.es5Shimmed=!0;Object.setPrototypeOf(u,R);return c_K=u},aq8=!1;tiV||aq8||(aq8=!0,_.uO.HTMLElement=ahS());/*

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 fT8=/(url\()([^)]*)(\))/g,x5E=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,B$O,MS;var AW=!window.ShadyDOM||!window.ShadyDOM.inUse,S95=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),Y9V=!window.customElements.polyfillWrapFlushCallback,Lmc;if(Lmc=AW&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var ski=new CSSStyleSheet;ski.replaceSync("");var z58=document.createElement("div");z58.attachShadow({mode:"open"});z58.shadowRoot.adoptedStyleSheets=[ski];Lmc=z58.shadowRoot.adoptedStyleSheets[0]===ski}catch(R){Lmc=!1}
var gFw=Lmc,Chw=window.Polymer&&window.Polymer.rootPath||lTG(document.baseURI||window.location.href),fN=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,WrU=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,cA=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,RB5=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,mQ=window.Polymer&&window.Polymer.legacyOptimizations||!1,tW=window.Polymer&&window.Polymer.legacyWarnings||!1,yNg=window.Polymer&&window.Polymer.syncInitialRender||
!1,lN=window.Polymer&&window.Polymer.legacyUndefined||!1,u9g=window.Polymer&&window.Polymer.orderedComputed||!1,CV=window.Polymer&&window.Polymer.removeNestedTemplates||!1,RU=window.Polymer&&window.Polymer.fastDomIf||!1,yl=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,vsc=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,Q3w=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var uk={},j3g={},Z7=function(){return HTMLElement.apply(this,arguments)||this};
_.O(Z7,HTMLElement);Z7.import=function(R,y){return R?(R=uk[R]||j3g[R.toLowerCase()])&&y?R.querySelector(y):R:null};
Z7.prototype.attributeChangedCallback=function(R,y,u){y!==u&&this.register()};
Z7.prototype.register=function(R){if(R=R||this.id){if(cA&&(uk[R]||j3g[R.toLowerCase()])!==void 0)throw uk[R]=j3g[R.toLowerCase()]=null,Error("xd`"+R);this.id=R;uk[R]=j3g[R.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.RR.Object.defineProperties(Z7.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var R=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;R=_.JW(this.getAttribute("assetpath")||"",R.baseURI);this.__assetpath=lTG(R)}return this.__assetpath}}});
_.RR.Object.defineProperties(Z7,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
Z7["import"]=Z7.import;Z7.prototype.modules=uk;customElements.define("dom-module",Z7);var M6g=0,ZXU=0,Vn=[],JNT=0,OXS=!1,V6g=document.createTextNode(""),izV,qS;(new window.MutationObserver(HXS)).observe(V6g,{characterData:!0});_.vb={after:function(R){return{run:function(y){return window.setTimeout(y,R)},
cancel:function(y){window.clearTimeout(y)}}},
run:function(R,y){return window.setTimeout(R,y)},
cancel:function(R){window.clearTimeout(R)}};
_.$i={run:function(R){return window.requestAnimationFrame(R)},
cancel:function(R){window.cancelAnimationFrame(R)}};
izV={run:function(R){return window.requestIdleCallback?window.requestIdleCallback(R):window.setTimeout(R,16)},
cancel:function(R){window.cancelIdleCallback?window.cancelIdleCallback(R):window.clearTimeout(R)}};
qS={run:function(R){OXS||(OXS=!0,V6g.textContent=JNT++);Vn.push(R);return M6g++},
cancel:function(R){var y=R-ZXU;if(y>=0){if(!Vn[y])throw Error("yd`"+R);Vn[y]=null}}};var Kc5=0,Ql=function(R){var y=R.__mixinApplications;y||(y=new WeakMap,R.__mixinApplications=y);var u=Kc5++;return function(v){var Q=v.__mixinSet;if(Q&&Q[u])return v;var M=y,K=M.get(v);K||(K=R(v),M.set(v,K),v=Object.create(K.__mixinSet||Q||null),v[u]=!0,K.__mixinSet=v);return K}};_.BA=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(R){return ShadyDOM.patch(R)}:function(R){return R};var Inb=Ql(function(R){var y=function(){var u=R.call(this)||this;u.__dataEnabled=!1;u.__dataReady=!1;u.__dataInvalid=!1;u.__data={};u.__dataPending=null;u.__dataOld=null;u.__dataInstanceProps=null;u.__dataCounter=0;u.__serializing=!1;u._initializeProperties();return u};
_.O(y,R);y.createProperties=function(u){var v=this.prototype,Q;for(Q in u)Q in v||v._createPropertyAccessor(Q)};
y.attributeNameForProperty=function(u){return u.toLowerCase()};
y.typeForProperty=function(){};
y.prototype._createPropertyAccessor=function(u,v){this._addPropertyToAttributeMap(u);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[u]||(this.__dataHasAccessor[u]=!0,this._definePropertyAccessor(u,v))};
y.prototype._addPropertyToAttributeMap=function(u){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var v=this.__dataAttributes[u];v||(v=this.constructor.attributeNameForProperty(u),this.__dataAttributes[v]=u);return v};
y.prototype._definePropertyAccessor=function(u,v){Object.defineProperty(this,u,{get:function(){return this.__data[u]},
set:v?function(){}:function(Q){this._setPendingProperty(u,Q,!0)&&this._invalidateProperties()}})};
y.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
y.prototype._initializeProperties=function(){for(var u in this.__dataHasAccessor)this.hasOwnProperty(u)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[u]=this[u],delete this[u])};
y.prototype._initializeInstanceProperties=function(u){Object.assign(this,u)};
y.prototype._setProperty=function(u,v){this._setPendingProperty(u,v)&&this._invalidateProperties()};
y.prototype._getProperty=function(u){return this.__data[u]};
y.prototype._setPendingProperty=function(u,v){var Q=this.__data[u],M=this._shouldPropertyChange(u,v,Q);M&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||u in this.__dataOld||(this.__dataOld[u]=Q),this.__data[u]=v,this.__dataPending[u]=v);return M};
y.prototype._isPropertyPending=function(u){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(u))};
y.prototype._invalidateProperties=function(){var u=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,qS.run(function(){u.__dataInvalid&&(u.__dataInvalid=!1,u._flushProperties())}))};
y.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
y.prototype._flushProperties=function(){this.__dataCounter++;var u=this.__data,v=this.__dataPending,Q=this.__dataOld;this._shouldPropertiesChange(u,v,Q)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(u,v,Q));this.__dataCounter--};
y.prototype._shouldPropertiesChange=function(u,v){return!!v};
y.prototype._propertiesChanged=function(){};
y.prototype._shouldPropertyChange=function(u,v,Q){return Q!==v&&(Q===Q||v===v)};
y.prototype.attributeChangedCallback=function(u,v,Q,M){v!==Q&&this._attributeToProperty(u,Q);R.prototype.attributeChangedCallback&&R.prototype.attributeChangedCallback.call(this,u,v,Q,M)};
y.prototype._attributeToProperty=function(u,v,Q){if(!this.__serializing){var M=this.__dataAttributes;u=M&&M[u]||u;this[u]=this._deserializeValue(v,Q||this.constructor.typeForProperty(u))}};
y.prototype._propertyToAttribute=function(u,v,Q){this.__serializing=!0;Q=arguments.length<3?this[u]:Q;this._valueToNodeAttribute(this,Q,v||this.constructor.attributeNameForProperty(u));this.__serializing=!1};
y.prototype._valueToNodeAttribute=function(u,v,Q){v=this._serializeValue(v);if(Q==="class"||Q==="name"||Q==="slot")u=(0,_.BA)(u);v===void 0?u.removeAttribute(Q):u.setAttribute(Q,v===""&&window.trustedTypes?window.trustedTypes.emptyScript:v)};
y.prototype._serializeValue=function(u){switch(typeof u){case "boolean":return u?"":void 0;default:return u!=null?u.toString():void 0}};
y.prototype._deserializeValue=function(u,v){switch(v){case Boolean:return u!==null;case Number:return Number(u);default:return u}};
return y});var hBV=0,nYL=[];var bzY=Ql(function(R){function y(M){M=Object.getPrototypeOf(M);return M.prototype instanceof Q?M:null}
function u(M){if(!M.hasOwnProperty("__ownProperties")){var K=null;if(M.hasOwnProperty("properties")){var h=M.properties;if(h){K={};for(var b in h){var N=h[b];K[b]=typeof N==="function"?{type:N}:N}}}M.__ownProperties=K}return M.__ownProperties}
var v=Inb(R),Q=function(){return v.apply(this,arguments)||this};
_.O(Q,v);Q.finalize=function(){if(!this.hasOwnProperty("__finalized")){var M=y(this);M&&M.finalize();this.__finalized=!0;this._finalizeClass()}};
Q._finalizeClass=function(){var M=u(this);M&&this.createProperties(M)};
Q.typeForProperty=function(M){return(M=this._properties[M])&&M.type};
Q.prototype._initializeProperties=function(){hBV++;this.constructor.finalize();v.prototype._initializeProperties.call(this)};
Q.prototype.connectedCallback=function(){v.prototype.connectedCallback&&v.prototype.connectedCallback.call(this);this._enableProperties()};
Q.prototype.disconnectedCallback=function(){v.prototype.disconnectedCallback&&v.prototype.disconnectedCallback.call(this)};
_.RR.Object.defineProperties(Q,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var M=this;if(!this.hasOwnProperty("__observedAttributes")){Gx8(this.prototype);var K=this._properties;this.__observedAttributes=K?Object.keys(K).map(function(h){return M.prototype._addPropertyToAttributeMap(h)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var M=y(this);this.__properties=Object.assign({},M&&M._properties,u(this))}return this.__properties}}});
return Q});var rGS={},PGO=/-[a-z]/g,WhW=/([A-Z])/g;for(var Fc5={},wdw=HTMLElement.prototype;wdw;){for(var NNi=Object.getOwnPropertyNames(wdw),TNb=0;TNb<NNi.length;TNb++)Fc5[NNi[TNb]]=!0;wdw=Object.getPrototypeOf(wdw)}var osL=window.trustedTypes?function(R){return trustedTypes.isHTML(R)||trustedTypes.isScript(R)||trustedTypes.isScriptURL(R)}:function(){return!1},xqL=Ql(function(R){var y=Inb(R);
R=function(){return y.apply(this,arguments)||this};
_.O(R,y);R.createPropertiesForAttributes=function(){for(var u=this.observedAttributes,v=0;v<u.length;v++)this.prototype._createPropertyAccessor(iN(u[v]))};
R.attributeNameForProperty=function(u){return KN(u)};
R.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);y.prototype._initializeProperties.call(this)};
R.prototype._initializeProtoProperties=function(u){for(var v in u)this._setProperty(v,u[v])};
R.prototype._ensureAttribute=function(u,v){this.hasAttribute(u)||this._valueToNodeAttribute(this,v,u)};
R.prototype._serializeValue=function(u){switch(typeof u){case "object":if(u instanceof Date)return u.toString();if(u){if(osL(u))return u;try{return JSON.stringify(u)}catch(v){return""}}default:return y.prototype._serializeValue.call(this,u)}};
R.prototype._deserializeValue=function(u,v){switch(v){case Object:try{var Q=JSON.parse(u)}catch(M){Q=u}break;case Array:try{Q=JSON.parse(u)}catch(M){Q=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+u)}break;case Date:Q=isNaN(u)?String(u):Number(u);Q=new Date(Q);break;default:Q=y.prototype._deserializeValue.call(this,u,v)}return Q};
R.prototype._definePropertyAccessor=function(u,v){if(!Fc5[u]){var Q=this[u];Q!==void 0&&(this.__data?this._setPendingProperty(u,Q):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[u]=Q))}y.prototype._definePropertyAccessor.call(this,u,v)};
R.prototype._hasAccessor=function(u){return this.__dataHasAccessor&&this.__dataHasAccessor[u]};
R.prototype._isPropertyPending=function(u){return!!(this.__dataPending&&u in this.__dataPending)};
return R});var BN5={"dom-if":!0,"dom-repeat":!0},fnc=!1,eBY=!1,lnY=function(){var R=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(y){return y}});
return function(y,u,v){u=u.getAttribute(v);R&&v.startsWith("on-")?y.setAttribute(v,R.createScript(u,v)):y.setAttribute(v,u)}}(),OzL=Ql(function(R){var y=function(){return R.apply(this,arguments)||this};
_.O(y,R);y._parseTemplate=function(u,v){if(!u._templateInfo){var Q=u._templateInfo={};Q.nodeInfoList=[];Q.nestedTemplate=!!v;Q.stripWhiteSpace=v&&v.stripWhiteSpace||u.hasAttribute&&u.hasAttribute("strip-whitespace");this._parseTemplateContent(u,Q,{parent:null})}return u._templateInfo};
y._parseTemplateContent=function(u,v,Q){return this._parseTemplateNode(u.content,v,Q)};
y._parseTemplateNode=function(u,v,Q){var M=!1;u.localName!="template"||u.hasAttribute("preserve-content")?u.localName==="slot"&&(v.hasInsertionPoint=!0):M=this._parseTemplateNestedTemplate(u,v,Q)||M;if(!fnc){fnc=!0;var K=document.createElement("textarea");K.placeholder="a";eBY=K.placeholder===K.textContent}eBY&&u.localName==="textarea"&&u.placeholder&&u.placeholder===u.textContent&&(u.textContent=null);u.firstChild&&this._parseTemplateChildNodes(u,v,Q);u.hasAttributes&&u.hasAttributes()&&(M=this._parseTemplateNodeAttributes(u,
v,Q)||M);return M||Q.noted};
y._parseTemplateChildNodes=function(u,v,Q){if(u.localName!=="script"&&u.localName!=="style")for(var M=u.firstChild,K=0,h;M;M=h){if(M.localName=="template"){var b=M.getAttribute("is");if(b&&BN5[b])for(h=M,h.removeAttribute("is"),M=h.ownerDocument.createElement(b),h.parentNode.replaceChild(M,h),M.appendChild(h);h.attributes.length;)b=h.attributes[0].name,lnY(M,h,b),h.removeAttribute(b)}h=M.nextSibling;if(M.nodeType===Node.TEXT_NODE){for(b=h;b&&b.nodeType===Node.TEXT_NODE;)M.textContent+=b.textContent,
h=b.nextSibling,u.removeChild(b),b=h;if(v.stripWhiteSpace&&!M.textContent.trim()){u.removeChild(M);continue}}b={parentIndex:K,parentInfo:Q};this._parseTemplateNode(M,v,b)&&(b.infoIndex=v.nodeInfoList.push(b)-1);M.parentNode&&K++}};
y._parseTemplateNestedTemplate=function(u,v,Q){v=this._parseTemplate(u,v);(v.content=u.content.ownerDocument.createDocumentFragment()).appendChild(u.content);Q.templateInfo=v;return!0};
y._parseTemplateNodeAttributes=function(u,v,Q){for(var M=!1,K=Array.from(u.attributes),h=K.length-1,b;b=K[h];h--)M=this._parseTemplateNodeAttribute(u,v,Q,b.name,b.value)||M;return M};
y._parseTemplateNodeAttribute=function(u,v,Q,M,K){return M.slice(0,3)==="on-"?(u.removeAttribute(M),Q.events=Q.events||[],Q.events.push({name:M.slice(3),value:K}),!0):M==="id"?(Q.id=K,!0):!1};
y._contentForTemplate=function(u){var v=u._templateInfo;return v&&v.content||u.content};
y.prototype._stampTemplate=function(u,v){u&&!u.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(u);v=v||this.constructor._parseTemplate(u);var Q=v.nodeInfoList;u=document.importNode(v.content||u.content,!0);u.__noInsertionPoint=!v.hasInsertionPoint;var M=u.nodeList=Array(Q.length);u.$={};for(var K=0,h=Q.length,b=void 0;K<h&&(b=Q[K]);K++){var N=M[K]=d5P(u,b);b.id&&(u.$[b.id]=N);var T=N,x=b,B=v;x.templateInfo&&(T._templateInfo=x.templateInfo,T._parentTemplateInfo=
B);if(b.events&&b.events.length)for(T=0,x=b.events,B=void 0;T<x.length&&(B=x[T]);T++)this._addMethodEventListenerToNode(N,B.name,B.value,this)}return u};
y.prototype._addMethodEventListenerToNode=function(u,v,Q,M){Q=U5W(M||u,Q);this._addEventListenerToNode(u,v,Q);return Q};
y.prototype._addEventListenerToNode=function(u,v,Q){u.addEventListener(v,Q)};
y.prototype._removeEventListenerFromNode=function(u,v,Q){u.removeEventListener(v,Q)};
return y});var ox=0,em=[],ZzG={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},HzL=/[A-Z]/,ns5=function(R,y,u,v,Q){var M=Q?hW(R):R;if(y=y[M])for(M=0;M<y.length;M++){var K=y[M];if(K.info.lastRun!==ox&&(!Q||m5G(R,K.trigger))){K.info.lastRun=ox;K=K.info;for(var h=u,b=v,N=0,T=h.length-1,x=-1;N<=T;){var B=N+T>>1,l=b.get(h[B].methodInfo)-b.get(K.methodInfo);if(l<0)N=B+1;else if(l>0)T=B-1;else{x=B;break}}x<
0&&(x=T+1);h.splice(x,0,K)}}},yez=[],GIb=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"),Md=Ql(function(R){var y=OzL(xqL(R));
R=function(){var u=y.call(this)||this;u.__isPropertyEffectsClient=!0;return u};
_.O(R,y);R.prototype._initializeProperties=function(){y.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(jH.length){var u=jH[jH.length-1];u._enqueueClient(this);this.__dataHost=u}};
R.prototype._initializeProtoProperties=function(u){this.__data=Object.create(u);this.__dataPending=Object.create(u);this.__dataOld={}};
R.prototype._initializeInstanceProperties=function(u){var v=this.__readOnly,Q;for(Q in u)v&&v[Q]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[Q]=this.__dataPending[Q]=u[Q])};
R.prototype._addPropertyEffect=function(u,v,Q){this._createPropertyAccessor(u,v=="__readOnly");var M=X2E(this,v,!0)[u];M||(M=this[v][u]=[]);M.push(Q)};
R.prototype._removePropertyEffect=function(u,v,Q){u=X2E(this,v,!0)[u];Q=u.indexOf(Q);Q>=0&&u.splice(Q,1)};
R.prototype._hasPropertyEffect=function(u,v){v=this[v];return!(!v||!v[u])};
R.prototype._hasReadOnlyEffect=function(u){return this._hasPropertyEffect(u,"__readOnly")};
R.prototype._hasNotifyEffect=function(u){return this._hasPropertyEffect(u,"__notifyEffects")};
R.prototype._hasReflectEffect=function(u){return this._hasPropertyEffect(u,"__reflectEffects")};
R.prototype._hasComputedEffect=function(u){return this._hasPropertyEffect(u,"__computeEffects")};
R.prototype._setPendingPropertyOrPath=function(u,v,Q,M){if(M||hW(Array.isArray(u)?u[0]:u)!==u){if(!M&&(M=TS(this,u),u=qzU(this,u,v),!u||!y.prototype._shouldPropertyChange.call(this,u,v,M)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(u,v,Q)){if(Q=this.__dataLinkedPaths)for(var K in Q)M=Q[K],bN(K,u)?(M=Fm(K,M,u),this._setPendingPropertyOrPath(M,v,!0,!0)):bN(M,u)&&(M=Fm(M,K,u),this._setPendingPropertyOrPath(M,v,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[u])return this._setPendingProperty(u,
v,Q);this[u]=v}return!1};
R.prototype._setUnmanagedPropertyToNode=function(u,v,Q){if(Q!==u[v]||typeof Q=="object")v==="className"&&(u=(0,_.BA)(u)),u[v]=Q};
R.prototype._setPendingProperty=function(u,v,Q){var M=this.__dataHasPaths&&Ix(u);if(this._shouldPropertyChange(u,v,(M?this.__dataTemp:this.__data)[u])){this.__dataPending||(this.__dataPending={},this.__dataOld={});u in this.__dataOld||(this.__dataOld[u]=this.__data[u]);M?this.__dataTemp[u]=v:this.__data[u]=v;this.__dataPending[u]=v;if(M||this.__notifyEffects&&this.__notifyEffects[u])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[u]=Q;return!0}return!1};
R.prototype._setProperty=function(u,v){this._setPendingProperty(u,v,!0)&&this._invalidateProperties()};
R.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
R.prototype._enqueueClient=function(u){this.__dataPendingClients=this.__dataPendingClients||[];u!==this&&this.__dataPendingClients.push(u)};
R.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
R.prototype.__enableOrFlushClients=function(){var u=this.__dataPendingClients;if(u){this.__dataPendingClients=null;for(var v=0;v<u.length;v++){var Q=u[v];Q.__dataEnabled?Q.__dataPending&&Q._flushProperties():Q._enableProperties()}}};
R.prototype._readyClients=function(){this.__enableOrFlushClients()};
R.prototype.setProperties=function(u,v){for(var Q in u)!v&&this.__readOnly&&this.__readOnly[Q]||this._setPendingPropertyOrPath(Q,u[Q],!0);this._invalidateProperties()};
R.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
R.prototype._propertiesChanged=function(u,v,Q){u=this.__dataHasPaths;this.__dataHasPaths=!1;var M;if(M=this.__computeEffects)if(u9g){ox++;var K=aTS(this),h=[],b;for(b in v)ns5(b,M,h,K,u);for(;b=h.shift();)YzU(this,"",v,Q,b)&&ns5(b.methodInfo,M,h,K,u);Object.assign(Q,this.__dataOld);Object.assign(v,this.__dataPending);this.__dataPending=null}else for(K=v;xk(this,M,K,Q,u);)Object.assign(Q,this.__dataOld),Object.assign(v,this.__dataPending),K=this.__dataPending,this.__dataPending=null;M=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(v,Q,u);this._flushClients();xk(this,this.__reflectEffects,v,Q,u);xk(this,this.__observeEffects,v,Q,u);if(M){K=this.__notifyEffects;h=ox++;for(var N in M)if(M[N]){if(b=K){var T=K;b=h;var x=N,B=v,l=Q,Z=u,P=!1,k=Z?hW(x):x;if(T=T[k]){k=0;for(var E=T.length,D=void 0;k<E&&(D=T[k]);k++)D.info&&D.info.lastRun===b||Z&&!m5G(x,D.trigger)||(D.info&&(D.info.lastRun=b),D.fn(this,x,B,l,D.info,Z,void 0),P=!0)}b=P}if(b)var z=!0;else{if(b=u)b=N,x=v,B=hW(b),B!==
b?(B=KN(B)+"-changed",D5v(this,B,x[b],b),b=!0):b=!1;b&&(z=!0)}}var c;z&&(c=this.__dataHost)&&c._invalidateProperties&&c._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
R.prototype._propagatePropertyChanges=function(u,v,Q){this.__propagateEffects&&xk(this,this.__propagateEffects,u,v,Q);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,u,v,Q)};
R.prototype._runEffectsForTemplate=function(u,v,Q,M){var K=this,h=function(b,N){xk(K,u.propertyEffects,b,Q,N,u.nodeList);for(var T=u.firstChild;T;T=T.nextSibling)K._runEffectsForTemplate(T,b,Q,N)};
u.runEffects?u.runEffects(h,v,M):h(v,M)};
R.prototype.linkPaths=function(u,v){u=wn(u);v=wn(v);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[u]=v};
R.prototype.unlinkPaths=function(u){u=wn(u);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[u]};
R.prototype.notifySplices=function(u,v){var Q={path:""};u=TS(this,u,Q);j2W(this,u,Q.path,v)};
R.prototype.get=function(u,v){return TS(v||this,u)};
R.prototype.set=function(u,v,Q){Q?qzU(Q,u,v):this.__readOnly&&this.__readOnly[u]||this._setPendingPropertyOrPath(u,v,!0)&&this._invalidateProperties()};
R.prototype.push=function(u){var v=_.qy.apply(1,arguments),Q={path:""},M=TS(this,u,Q),K=M.length,h=M.push.apply(M,_.P$(v));v.length&&Ol(this,M,Q.path,K,v.length,[]);return h};
R.prototype.pop=function(u){var v={path:""};u=TS(this,u,v);var Q=!!u.length,M=u.pop();Q&&Ol(this,u,v.path,u.length,0,[M]);return M};
R.prototype.splice=function(u,v,Q){var M=_.qy.apply(3,arguments),K={path:""},h=TS(this,u,K);v<0?v=h.length-Math.floor(-v):v&&(v=Math.floor(v));var b=arguments.length===2?h.splice(v):h.splice.apply(h,[v,Q].concat(_.P$(M)));(M.length||b.length)&&Ol(this,h,K.path,v,M.length,b);return b};
R.prototype.shift=function(u){var v={path:""};u=TS(this,u,v);var Q=!!u.length,M=u.shift();Q&&Ol(this,u,v.path,0,0,[M]);return M};
R.prototype.unshift=function(u){var v=_.qy.apply(1,arguments),Q={path:""},M=TS(this,u,Q),K=M.unshift.apply(M,_.P$(v));v.length&&Ol(this,M,Q.path,0,v.length,[]);return K};
R.prototype.notifyPath=function(u,v){if(arguments.length==1){var Q={path:""};v=TS(this,u,Q);Q=Q.path}else Q=Array.isArray(u)?wn(u):u;this._setPendingPropertyOrPath(Q,v,!0,!0)&&this._invalidateProperties()};
R.prototype._createReadOnlyProperty=function(u,v){this._addPropertyEffect(u,"__readOnly");v&&(this["_set"+(u[0].toUpperCase()+u.substring(1))]=function(Q){this._setProperty(u,Q)})};
R.prototype._createPropertyObserver=function(u,v,Q){var M={property:u,method:v,dynamicFn:!!Q};this._addPropertyEffect(u,"__observeEffects",{fn:AGU,info:M,trigger:{name:u}});Q&&this._addPropertyEffect(v,"__observeEffects",{fn:AGU,info:M,trigger:{name:v}})};
R.prototype._createMethodObserver=function(u,v){var Q=vlE(u);if(!Q)throw Error("zd`"+u);CGT(this,Q,"__observeEffects",SzT,null,v)};
R.prototype._createNotifyingProperty=function(u){this._addPropertyEffect(u,"__notifyEffects",{fn:p2G,info:{eventName:KN(u)+"-changed",property:u}})};
R.prototype._createReflectedProperty=function(u){var v=this.constructor.attributeNameForProperty(u);v[0]==="-"?console.warn("Property "+u+" cannot be reflected to attribute "+v+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(u,"__reflectEffects",{fn:t8U,info:{attrName:v}})};
R.prototype._createComputedProperty=function(u,v,Q){var M=vlE(v);if(!M)throw Error("Ad`"+v);v=CGT(this,M,"__computeEffects",YzU,u,Q);X2E(this,"__computeInfo")[u]=v};
R.prototype._marshalArgs=function(u,v,Q){for(var M=this.__data,K=[],h=0,b=u.length;h<b;h++){var N=u[h],T=N.name,x=N.structured,B=N.wildcard,l=N.value;N.literal||(B?(N=bN(T,v),x=Q2z(M,Q,N?v:T),l={path:N?v:T,value:x,base:N?TS(M,T):x}):l=x?Q2z(M,Q,T):M[T]);if(lN&&!this._overrideLegacyUndefined&&l===void 0&&u.length>1)return em;K[h]=l}return K};
R.addPropertyEffect=function(u,v,Q){this.prototype._addPropertyEffect(u,v,Q)};
R.createPropertyObserver=function(u,v,Q){this.prototype._createPropertyObserver(u,v,Q)};
R.createMethodObserver=function(u,v){this.prototype._createMethodObserver(u,v)};
R.createNotifyingProperty=function(u){this.prototype._createNotifyingProperty(u)};
R.createReadOnlyProperty=function(u,v){this.prototype._createReadOnlyProperty(u,v)};
R.createReflectedProperty=function(u){this.prototype._createReflectedProperty(u)};
R.createComputedProperty=function(u,v,Q){this.prototype._createComputedProperty(u,v,Q)};
R.bindTemplate=function(u){return this.prototype._bindTemplate(u)};
R.prototype._bindTemplate=function(u,v){var Q=this.constructor._parseTemplate(u),M=this.__preBoundTemplateInfo==Q;if(!M)for(var K in Q.propertyEffects)this._createPropertyAccessor(K);v?(Q=Object.create(Q),Q.wasPreBound=M,this.__templateInfo?(u=u._parentTemplateInfo||this.__templateInfo,v=u.lastChild,Q.parent=u,u.lastChild=Q,(Q.previousSibling=v)?v.nextSibling=Q:u.firstChild=Q):this.__templateInfo=Q):this.__preBoundTemplateInfo=Q;return Q};
R._addTemplatePropertyEffect=function(u,v,Q){(u.hostProps=u.hostProps||{})[v]=!0;u=u.propertyEffects=u.propertyEffects||{};(u[v]=u[v]||[]).push(Q)};
R.prototype._stampTemplate=function(u,v){v=v||this._bindTemplate(u,!0);jH.push(this);u=y.prototype._stampTemplate.call(this,u,v);jH.pop();v.nodeList=u.nodeList;if(!v.wasPreBound)for(var Q=v.childNodes=[],M=u.firstChild;M;M=M.nextSibling)Q.push(M);u.templateInfo=v;Q=v.nodeList;M=v.nodeInfoList;if(M.length)for(var K=0;K<M.length;K++){var h=Q[K],b=M[K].bindings;if(b)for(var N=0;N<b.length;N++){var T=b[N],x=h,B=T;if(B.isCompound){for(var l=x.__dataCompoundStorage||(x.__dataCompoundStorage={}),Z=B.parts,
P=Array(Z.length),k=0;k<Z.length;k++)P[k]=Z[k].literal;Z=B.target;l[Z]=P;B.literal&&B.kind=="property"&&(Z==="className"&&(x=(0,_.BA)(x)),x[Z]=B.literal)}gYW(h,this,T)}h.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(v,this.__data,null,!1),this._flushClients());return u};
R.prototype._removeBoundDom=function(u){u=u.templateInfo;var v=u.previousSibling,Q=u.nextSibling,M=u.parent;v?v.nextSibling=Q:M&&(M.firstChild=Q);Q?Q.previousSibling=v:M&&(M.lastChild=v);u.nextSibling=u.previousSibling=null;u=u.childNodes;for(v=0;v<u.length;v++)Q=u[v],(0,_.BA)((0,_.BA)(Q).parentNode).removeChild(Q)};
R._parseTemplateNode=function(u,v,Q){var M=y._parseTemplateNode.call(this,u,v,Q);if(u.nodeType===Node.TEXT_NODE){var K=this._parseBindings(u.textContent,v);K&&(u.textContent=Ro4(K)||" ",ztO(this,v,Q,"text","textContent",K),M=!0)}return M};
R._parseTemplateNodeAttribute=function(u,v,Q,M,K){var h=this._parseBindings(K,v);if(h){K=M;var b="property";HzL.test(M)?b="attribute":M[M.length-1]=="$"&&(M=M.slice(0,-1),b="attribute");var N=Ro4(h);N&&b=="attribute"&&(M=="class"&&u.hasAttribute("class")&&(N+=" "+u.getAttribute(M)),u.setAttribute(M,N));b=="attribute"&&K=="disable-upgrade$"&&u.setAttribute(M,"");u.localName==="input"&&K==="value"&&u.setAttribute(K,"");u.removeAttribute(K);b==="property"&&(M=iN(M));ztO(this,v,Q,b,M,h,N);return!0}return y._parseTemplateNodeAttribute.call(this,
u,v,Q,M,K)};
R._parseTemplateNestedTemplate=function(u,v,Q){var M=y._parseTemplateNestedTemplate.call(this,u,v,Q),K=u.parentNode,h=Q.templateInfo,b=K.localName==="dom-if",N=K.localName==="dom-repeat";CV&&(b||N)&&(K.removeChild(u),Q=Q.parentInfo,Q.templateInfo=h,Q.noted=!0,M=!1);u=h.hostProps;if(RU&&b)u&&(v.hostProps=Object.assign(v.hostProps||{},u),CV||(Q.parentInfo.noted=!0));else for(var T in u)ztO(this,v,Q,"property","_host_"+T,[{mode:"{",source:T,dependencies:[T],hostProp:!0}]);return M};
R._parseBindings=function(u,v){for(var Q=[],M=0,K;(K=GIb.exec(u))!==null;){K.index>M&&Q.push({literal:u.slice(M,K.index)});M=K[1][0];var h=!!K[2];K=K[3].trim();var b=!1,N="",T=-1;M=="{"&&(T=K.indexOf("::"))>0&&(N=K.substring(T+2),K=K.substring(0,T),b=!0);T=vlE(K);var x=[];if(T){var B=T,l=B.args;B=B.methodName;for(var Z=0;Z<l.length;Z++){var P=l[Z];P.literal||x.push(P)}if((l=v.dynamicFns)&&l[B]||T.static)x.push(B),T.dynamicFn=!0}else x.push(K);Q.push({source:K,mode:M,negate:h,customEvent:b,signature:T,
dependencies:x,event:N});M=GIb.lastIndex}M&&M<u.length&&(u=u.substring(M))&&Q.push({literal:u});return Q.length?Q:null};
R._evaluateBinding=function(u,v,Q,M,K,h){u=v.signature?SzT(u,Q,M,K,v.signature):Q!=v.source?TS(u,v.source):h&&Ix(Q)?TS(u,Q):u.__data[Q];v.negate&&(u=!u);return u};
_.RR.Object.defineProperties(R.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return ZzG}}});
return R}),jH=[];var rNT=window.ShadyCSS&&window.ShadyCSS.cssBuild,JA=Ql(function(R){function y(v,Q,M,K){if(!rNT){for(var h=Q.content.querySelectorAll("style"),b=iRW(Q),N=KrT(M),T=Q.content.firstElementChild,x=0;x<N.length;x++){var B=N[x];B.textContent=v._processStyleText(B.textContent,K);Q.content.insertBefore(B,T)}for(T=N=0;T<b.length;T++)x=b[T],B=h[N],B!==x?(x=x.cloneNode(!0),B.parentNode.insertBefore(x,B)):N++,x.textContent=v._processStyleText(x.textContent,K)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(Q,
M);if(Q3w&&rNT&&gFw&&(Q=Q.content.querySelectorAll("style"))){var l="";Array.from(Q).forEach(function(Z){l+=Z.textContent;Z.parentNode.removeChild(Z)});
v._styleSheet=new CSSStyleSheet;v._styleSheet.replaceSync(l)}}
var u=bzY(Md(R));R=function(){return u.call(this)||this};
_.O(R,u);R._finalizeClass=function(){u._finalizeClass.call(this);var v;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(v=this.__ownObservers)&&this.createObservers(v,this._properties);this._prepareTemplate()};
R._prepareTemplate=function(){var v=this.template;v&&(typeof v==="string"?(console.error("template getter must return HTMLTemplateElement"),v=null):mQ||(v=v.cloneNode(!0)));this.prototype._template=v};
R.createProperties=function(v){for(var Q in v){var M=this.prototype,K=Q,h=v[Q],b=v;h.computed&&(h.readOnly=!0);h.computed&&(M._hasReadOnlyEffect(K)?console.warn("Cannot redefine computed property '"+K+"'."):M._createComputedProperty(K,h.computed,b));h.readOnly&&!M._hasReadOnlyEffect(K)?M._createReadOnlyProperty(K,!h.computed):h.readOnly===!1&&M._hasReadOnlyEffect(K)&&console.warn("Cannot make readOnly property '"+K+"' non-readOnly.");h.reflectToAttribute&&!M._hasReflectEffect(K)?M._createReflectedProperty(K):
h.reflectToAttribute===!1&&M._hasReflectEffect(K)&&console.warn("Cannot make reflected property '"+K+"' non-reflected.");h.notify&&!M._hasNotifyEffect(K)?M._createNotifyingProperty(K):h.notify===!1&&M._hasNotifyEffect(K)&&console.warn("Cannot make notify property '"+K+"' non-notify.");h.observer&&M._createPropertyObserver(K,h.observer,b[h.observer]);M._addPropertyToAttributeMap(K)}};
R.createObservers=function(v,Q){for(var M=this.prototype,K=0;K<v.length;K++)M._createMethodObserver(v[K],Q)};
R.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);u.prototype._initializeProperties.call(this);this.rootPath=Chw;this.importPath=this.constructor.importPath;var v=this.constructor;if(!v.hasOwnProperty("__propertyDefaults")){v.__propertyDefaults=null;var Q=v._properties,M;for(M in Q){var K=Q[M];"value"in K&&(v.__propertyDefaults=v.__propertyDefaults||{},v.__propertyDefaults[M]=K)}}if(v=v.__propertyDefaults)for(var h in v)Q=v[h],
this._canApplyPropertyDefault(h)&&(Q=typeof Q.value=="function"?Q.value.call(this):Q.value,this._hasAccessor(h)?this._setPendingProperty(h,Q,!0):this[h]=Q)};
R.prototype._canApplyPropertyDefault=function(v){return!this.hasOwnProperty(v)};
R._processStyleText=function(v,Q){return etS(v,Q)};
R._finalizeTemplate=function(v){var Q=this.prototype._template;if(Q&&!Q.__polymerFinalized){Q.__polymerFinalized=!0;var M=this.importPath;M=M?_.JW(M):"";y(this,Q,v,M);this.prototype._bindTemplate(Q)}};
R.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);u.prototype.connectedCallback.call(this)};
R.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);u.prototype.ready.call(this)};
R.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));u.prototype._readyClients.call(this)};
R.prototype._attachDom=function(v){var Q=(0,_.BA)(this);if(Q.attachShadow)return v?(Q.shadowRoot||(Q.attachShadow({mode:"open",shadyUpgradeFragment:v}),Q.shadowRoot.appendChild(v),this.constructor._styleSheet&&(Q.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),yNg&&window.ShadyDOM&&window.ShadyDOM.flushInitial(Q.shadowRoot),Q.shadowRoot):null;throw Error("Cd");};
R.prototype.updateStyles=function(v){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,v)};
R.prototype.resolveUrl=function(v,Q){!Q&&this.importPath&&(Q=_.JW(this.importPath));return _.JW(v,Q)};
R._parseTemplateContent=function(v,Q,M){Q.dynamicFns=Q.dynamicFns||this._properties;return u._parseTemplateContent.call(this,v,Q,M)};
R._addTemplatePropertyEffect=function(v,Q,M){!tW||Q in this._properties||M.info.part.signature&&M.info.part.signature.static||M.info.part.hostProp||v.nestedTemplate||console.warn("Property '"+Q+"' used in template but not declared in 'properties'; attribute will not be observed.");return u._addTemplatePropertyEffect.call(this,v,Q,M)};
_.RR.Object.defineProperties(R,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var v=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof v==="function"&&(v=v());if(v===void 0){if(v=this.hasOwnProperty("is")){v=this.is;var Q=null;if(v&&(!cA||RB5)&&(Q=Z7.import(v,"template"),cA&&!Q))throw Error("Bd`"+v);v=Q}v=v||Object.getPrototypeOf(this.prototype).constructor.template}this._template=v}return this._template},
set:function(v){this._template=v}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var v=this.importMeta;v?this._importPath=lTG(v.url):this._importPath=(v=Z7.import(this.is))&&v.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return R});var PEY=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(R){return R}}),TXT=function(R,y){Wcg(R,y);
this.value=y.reduce(function(u,v,Q){return u+olP(v)+R[Q+1]},R[0]).toString()},Wcg;
TXT.prototype.toString=function(){return this.value};
_.dqY=function(R){var y=_.qy.apply(1,arguments);Wcg(R,y);var u=document.createElement("template");y=y.reduce(function(v,Q,M){if(Q instanceof HTMLTemplateElement)Q=Q.innerHTML;else if(Q instanceof TXT)Q=olP(Q);else throw Error("Ed`"+Q);return v+Q+R[M+1]},R[0]);
PEY&&(y=PEY.createHTML(y));u.innerHTML=y;return u};
Wcg=function(R,y){if(!Array.isArray(R)||!Array.isArray(R.raw)||y.length!==R.length-1)throw new TypeError("Fd");};var Vl=JA(HTMLElement);var UqL=Ql(function(R){var y=JA(R);R=function(){var u=y.call(this)||this;u.__lastItems=null;u.__lastMulti=null;u.__selectedMap=null;return u};
_.O(R,y);R.prototype.__updateSelection=function(u,v){var Q=v.path;Q=="items"?(v=v.base||[],Q=this.__lastItems,u!==this.__lastMulti&&this.clearSelection(),Q&&(Q=NXU(v,Q),this.__applySplices(Q)),this.__lastItems=v,this.__lastMulti=u):v.path=="items.splices"?this.__applySplices(v.value.indexSplices):(u=Q.slice(6),v=parseInt(u,10),u.indexOf(".")<0&&u==v&&this.__deselectChangedIdx(v))};
R.prototype.__applySplices=function(u){for(var v=this,Q=this.__selectedMap,M={},K=0;K<u.length;M={s$jscomp$108:void 0},K++){M.s$jscomp$108=u[K];Q.forEach(function(T){return function(x,B){x<T.s$jscomp$108.index||(x>=T.s$jscomp$108.index+T.s$jscomp$108.removed.length?Q.set(B,x+T.s$jscomp$108.addedCount-T.s$jscomp$108.removed.length):Q.set(B,-1))}}(M));
for(var h=0;h<M.s$jscomp$108.addedCount;h++){var b=M.s$jscomp$108.index+h;Q.has(this.items[b])&&Q.set(this.items[b],b)}}this.__updateLinks();var N=0;Q.forEach(function(T,x){T<0?(v.multi?v.splice("selected",N,1):v.selected=v.selectedItem=null,Q.delete(x)):N++})};
R.prototype.__updateLinks=function(){var u=this;this.__dataLinkedPaths={};if(this.multi){var v=0;this.__selectedMap.forEach(function(Q){Q>=0&&u.linkPaths("items."+Q,"selected."+v++)})}else this.__selectedMap.forEach(function(Q){u.linkPaths("selected","items."+Q);
u.linkPaths("selectedItem","items."+Q)})};
R.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
R.prototype.isSelected=function(u){return this.__selectedMap.has(u)};
R.prototype.isIndexSelected=function(u){return this.isSelected(this.items[u])};
R.prototype.__deselectChangedIdx=function(u){var v=this,Q=this.__selectedIndexForItemIndex(u);if(Q>=0){var M=0;this.__selectedMap.forEach(function(K,h){Q==M++&&v.deselect(h)})}};
R.prototype.__selectedIndexForItemIndex=function(u){if(u=this.__dataLinkedPaths["items."+u])return parseInt(u.slice(9),10)};
R.prototype.deselect=function(u){var v=this.__selectedMap.get(u);if(v>=0){this.__selectedMap.delete(u);var Q;this.multi&&(Q=this.__selectedIndexForItemIndex(v));this.__updateLinks();this.multi?this.splice("selected",Q,1):this.selected=this.selectedItem=null}};
R.prototype.deselectIndex=function(u){this.deselect(this.items[u])};
R.prototype.select=function(u){this.selectIndex(this.items.indexOf(u))};
R.prototype.selectIndex=function(u){var v=this.items[u];this.isSelected(v)?this.toggle&&this.deselectIndex(u):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(v,u),this.__updateLinks(),this.multi?this.push("selected",v):this.selected=this.selectedItem=v)};
_.RR.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}),kIY=UqL(Vl),ik=function(){return kIY.apply(this,arguments)||this};
_.O(ik,kIY);_.RR.Object.defineProperties(ik,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(ik.is,ik);var EsK=window.Polymer;window.Polymer=function(R){return window.Polymer._polymerFn(R)};
EsK&&Object.assign(Polymer,EsK);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:etS,resolveUrl:_.JW,pathFromUrl:lTG};Polymer.DomModule=Z7;Polymer.Async={timeOut:_.vb,animationFrame:_.$i,idlePeriod:izV,microTask:qS};Polymer.dedupingMixin=Ql;Polymer.wrap=_.BA;Polymer.PropertiesChanged=Inb;Polymer.telemetry={instanceCount:hBV,incrementInstanceCount:function(){hBV++},
registrations:nYL,register:Gx8,dumpRegistrations:function(){nYL.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=bzY;Polymer.CaseMap={dashToCamelCase:iN,camelToDashCase:KN};Polymer.PropertyAccessors=xqL;Polymer.TemplateStamp=OzL;Polymer.Path={isPath:Ix,root:hW,isAncestor:kxU,isDescendant:bN,translate:Fm,matches:EYc,normalize:wn,split:$5E,get:TS,set:qzU,isDeep:Ix};Polymer.Settings={useShadow:AW,useNativeCSSProperties:S95,useNativeCustomElements:Y9V,get rootPath(){return Chw},setRootPath:function(R){Chw=R},
get sanitizeDOMValue(){return fN},setSanitizeDOMValue:function(R){fN=R},
get passiveTouchGestures(){return WrU},setPassiveTouchGestures:function(R){WrU=R},
get strictTemplatePolicy(){return cA},setStrictTemplatePolicy:function(R){cA=R},
get allowTemplateFromDomModule(){return RB5},setAllowTemplateFromDomModule:function(R){RB5=R},
get legacyOptimizations(){return mQ},setLegacyOptimizations:function(R){mQ=R},
get syncInitialRender(){return yNg},setSyncInitialRender:function(R){yNg=R},
get legacyUndefined(){return lN},setLegacyUndefined:function(R){lN=R},
get legacyWarnings(){return tW},setLegacyWarnings:function(R){tW=R},
get orderedComputed(){return u9g},setOrderedComputed:function(R){u9g=R},
get fastDomIf(){return RU},setFastDomIf:function(R){RU=R},
get removeNestedTemplates(){return CV},setRemoveNestedTemplates:function(R){CV=R},
get suppressTemplateNotifications(){return yl},setSuppressTemplateNotifications:yl};Polymer.rootPath!==void 0&&(Chw=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(fN=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(WrU=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(cA=Polymer.strictTemplatePolicy);RB5=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(mQ=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(yNg=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(lN=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(tW=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(u9g=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(RU=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(CV=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(yl=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return fN},
set:function(R){fN=R}});Polymer.PropertyEffects=Md;Polymer.StyleGather={stylesFromModules:VVU,stylesFromModule:Jec,stylesFromTemplate:iRW,stylesFromModuleImports:KrT,cssFromModules:hoT,cssFromModule:IAU,cssFromTemplate:bRP,cssFromModuleImports:function(R){return(R=Z7.import(R))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(R):""}};Polymer.ElementMixin=JA;Polymer.updateStyles=function(R){window.ShadyCSS&&window.ShadyCSS.styleDocument(R)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:NXU};Polymer.html=_.dqY;Polymer.htmlLiteral=function(R){return new TXT(R,_.qy.apply(1,arguments))};Polymer.Element=Vl;Polymer.ArraySelectorMixin=UqL;Polymer.ArraySelector=ik;var $qg=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,qqK=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,gUE=/@media\s(.*)/;var eoc=null,fA8=window.HTMLImports&&window.HTMLImports.whenReady||null,lA8;var Xd8=null,Kj=null,IU=function(){this.customStyles=[];this.enqueued=!1;ORv(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},mq8=function(R){!R.enqueued&&Kj&&(R.enqueued=!0,ORv(Kj))};
IU.prototype.addCustomStyle=function(R){R.__seenByShadyCSS||(R.__seenByShadyCSS=!0,this.customStyles.push(R),mq8(this))};
IU.prototype.getStyleForCustomStyle=function(R){if(R.__shadyCSSCachedStyle)return R.__shadyCSSCachedStyle;var y;R.getStyle?y=R.getStyle():y=R;return y};
IU.prototype.processStyles=function(){for(var R=this.customStyles,y=0;y<R.length;y++){var u=R[y];if(!u.__shadyCSSCachedStyle){var v=this.getStyleForCustomStyle(u);v&&(v=v.__appliedElement||v,Xd8&&Xd8(v),u.__shadyCSSCachedStyle=v)}}return R};
IU.prototype.addCustomStyle=IU.prototype.addCustomStyle;IU.prototype.getStyleForCustomStyle=IU.prototype.getStyleForCustomStyle;IU.prototype.processStyles=IU.prototype.processStyles;Object.defineProperties(IU.prototype,{transformCallback:{get:function(){return Xd8},
set:function(R){Xd8=R}},
validateCallback:{get:function(){return Kj},
set:function(R){var y=!1;Kj||(y=!0);Kj=R;y&&mq8(this)}}});var HRE=!(window.ShadyDOM&&window.ShadyDOM.inUse),ZRO,CN;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(CN=window.ShadyCSS.cssBuild);var ANb=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?ZRO=window.ShadyCSS.nativeCss:window.ShadyCSS?(nlc(window.ShadyCSS),window.ShadyCSS=void 0):nlc(window.WebComponents&&window.WebComponents.flags);var L9O=ZRO;var Dqb=new IU;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(R,y){Dqb.processStyles();xr8(R,y)},
styleElement:function(){Dqb.processStyles()},
styleDocument:function(R){Dqb.processStyles();xr8(document.body,R)},
getComputedStyleValue:function(R,y){return BX8(R,y)},
flushCustomStyles:function(){},
nativeCss:L9O,nativeShadow:HRE,cssBuild:CN,disableRuntime:ANb});window.ShadyCSS.CustomStyleInterface=Dqb;var pdi=window.ShadyCSS.CustomStyleInterface,hA=function(){var R=HTMLElement.call(this)||this;R._style=null;pdi.addCustomStyle(R);return R};
_.O(hA,HTMLElement);hA.prototype.getStyle=function(){if(this._style)return this._style;var R=this.querySelector("style");if(!R)return null;this._style=R;var y=R.getAttribute("include");y&&(R.removeAttribute("include"),R.textContent=hoT(y)+R.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
hA.prototype.getStyle=hA.prototype.getStyle;window.customElements.define("custom-style",hA);Polymer.CustomStyle=hA;var bk=function(){this._timer=this._callback=this._asyncModule=null},FL,cN5;
bk.prototype.setConfig=function(R,y){var u=this;this._asyncModule=R;this._callback=y;this._timer=this._asyncModule.run(function(){u._timer=null;FL.delete(u);u._callback()})};
bk.prototype.cancel=function(){this.isActive()&&(t6b(this),FL.delete(this))};
var t6b=function(R){R.isActive()&&(R._asyncModule.cancel(R._timer),R._timer=null)};
bk.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
bk.prototype.isActive=function(){return this._timer!=null};
_.w5=function(R,y,u){R instanceof bk?t6b(R):R=new bk;R.setConfig(y,u);return R};
FL=new Set;_.Nd=function(R){FL.add(R)};
cN5=function(){var R=!!FL.size;FL.forEach(function(y){try{y.flush()}catch(u){setTimeout(function(){throw u;})}});
return R};var re4=typeof document.head.style.touchAction==="string",GK8=["mousedown","mousemove","mouseup","click"],XZO=[0,1,4,2],anG;try{anG=(new MouseEvent("test",{buttons:1})).buttons===1}catch(R){anG=!1}var qJS=anG,P1O=!1;(function(){try{var R=Object.defineProperty({},"passive",{get:function(){P1O=!0}});
window.addEventListener("test",null,R);window.removeEventListener("test",null,R)}catch(y){}})();
var UrP=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),kKO=[],Sqc={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},zov={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},Elz=function(R){var y=R.sourceCapabilities;if(!y||y.firesTouchEvents)if(R.__polymerGesturesHandled={skip:!0},R.type==="click"){y=!1;for(var u=pZP(R),v=0;v<u.length;v++){if(u[v].nodeType===Node.ELEMENT_NODE)if(u[v].localName==="label")kKO.push(u[v]);
else if(Sqc[u[v].localName]){var Q=u[v];var M=Array.prototype.slice.call(Q.labels||[]);if(!M.length){M=[];try{var K=Q.getRootNode();if(Q.id){var h=K.querySelectorAll("label[for = '"+Q.id+"']");for(Q=0;Q<h.length;Q++)M.push(h[Q])}}catch(b){}}for(Q=0;Q<M.length;Q++)y=y||kKO.indexOf(M[Q])>-1}if(u[v]===Yqc)return}y||(R.preventDefault(),R.stopPropagation())}},Yqc=null,TX=null,ceT=0,aAP=0,tVT=-1,SJW=!1;
document.addEventListener("touchend",function(R){TX||$rT(!0);Yqc=pZP(R)[0];TX=_.w5(TX,_.vb.after(2500),function(){$rT();TX=Yqc=null})},P1O?{passive:!0}:!1);
var pZP=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(R){return R.composedPath&&R.composedPath()||[]},Ul={},WA=[];
YJT({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){PA(this.info)},
mousedown:function(R){if(rn(R)){var y=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(R),u=this;Ae8(this.info,function(v){rn(v)||(Xm("up",y,v),PA(u.info))},function(v){rn(v)&&Xm("up",y,v);
PA(u.info)});
Xm("down",y,R)}},
touchstart:function(R){Xm("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(R),R.changedTouches[0],R)},
touchend:function(R){Xm("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(R),R.changedTouches[0],R)}});
YJT({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;PA(this.info)},
mousedown:function(R){if(rn(R)){var y=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(R),u=this,v=function(Q){var M=Q.clientX,K=Q.clientY;Lrc(u.info,M,K)&&(u.info.state=u.info.started?Q.type==="mouseup"?"end":"track":"start",u.info.state==="start"&&dn("tap"),u.info.addMove({x:M,y:K}),rn(Q)||(u.info.state="end",PA(u.info)),y&&s2P(u.info,y,Q),u.info.started=!0)};
Ae8(this.info,v,function(Q){u.info.started&&v(Q);PA(u.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 y=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(R);R=R.changedTouches[0];var u=R.clientX,v=R.clientY;Lrc(this.info,u,v)&&(this.info.state==="start"&&dn("tap"),this.info.addMove({x:u,y:v}),s2P(this.info,y,R),this.info.state="track",this.info.started=!0)},
touchend:function(R){var y=_._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}),s2P(this.info,y,R))}});
YJT({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){rn(R)&&(this.info.x=R.clientX,this.info.y=R.clientY)},
click:function(R){rn(R)&&glU(this.info,R)},
touchstart:function(R){R=R.changedTouches[0];this.info.x=R.clientX;this.info.y=R.clientY},
touchend:function(R){glU(this.info,R.changedTouches[0],R)}});var LcY=Ql(function(R){var y=function(){return R.apply(this,arguments)||this};
_.O(y,R);y.prototype._addEventListenerToNode=function(u,v,Q){kk(u,v,Q)||R.prototype._addEventListenerToNode.call(this,u,v,Q)};
y.prototype._removeEventListenerFromNode=function(u,v,Q){El(u,v,Q)||R.prototype._removeEventListenerFromNode.call(this,u,v,Q)};
return y});var oU=Ql(function(R){var y=function(){return R.apply(this,arguments)||this};
_.O(y,R);y.prototype._shouldPropertyChange=function(u,v,Q){return C1W(this,u,v,Q,!0)};
return y}),s3Y=Ql(function(R){var y=function(){return R.apply(this,arguments)||this};
_.O(y,R);y.prototype._shouldPropertyChange=function(u,v,Q){return C1W(this,u,v,Q,this.mutableData)};
_.RR.Object.defineProperties(y,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return y});
oU._mutablePropertyChange=C1W;var RDG=!1;var zBY=LcY(s3Y(Md(HTMLElement))),xu=function(){var R=zBY.call(this)||this;if(cA)throw Error("Hd");R.root=null;R.$=null;R.__children=null;return R};
_.O(xu,zBY);_.J=xu.prototype;_.J.attributeChangedCallback=function(){this.mutableData=!0};
_.J.connectedCallback=function(){yRc()||(this.style.display="none");this.render()};
_.J.disconnectedCallback=function(){this.__removeChildren()};
_.J.__insertChildren=function(){(0,_.BA)((0,_.BA)(this).parentNode).insertBefore(this.root,this)};
_.J.__removeChildren=function(){if(this.__children)for(var R=0;R<this.__children.length;R++)this.root.appendChild(this.__children[R])};
_.J.render=function(){var R=this;if(!this.__children){var y=y||this.querySelector("template");if(!y){var u=new MutationObserver(function(){if(y=R.querySelector("template"))u.disconnect(),R.render();else throw Error("Id");});
u.observe(this,{childList:!0});return}this.root=this._stampTemplate(y);this.$=this.root.$;this.__children=[];for(var v=this.root.firstChild;v;v=v.nextSibling)this.__children[this.__children.length]=v;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.RR.Object.defineProperties(xu,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",xu);Polymer.Debouncer=bk;Polymer.Gestures={gestures:Ul,recognizers:WA,deepTargetFind:DrW,addListener:kk,removeListener:El,register:YJT,setTouchAction:_.$k,prevent:dn,resetMouseCanceller:function(){TX&&TX.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:kk,remove:El};Polymer.GestureEventListeners=LcY;Polymer.MutableData=oU;Polymer.OptionalMutableData=s3Y;Polymer.DomBind=xu;_.Bb=function(){do{var R=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var y=cN5()}while(R||y)};var uDO=null;vUc.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:vUc,writable:!0}});var IFP=Md(vUc),K9E=oU(IFP),gsV=Md(function(){}),D7=function(R){var y=gsV.call(this)||this;
y._configureProperties(R);y.root=y._stampTemplate(y.__dataHost);var u=[];y.children=u;for(var v=y.root.firstChild;v;v=v.nextSibling)u.push(v),v.__templatizeInstance=y;y.__templatizeOwner&&y.__templatizeOwner.__hideTemplateChildren__&&y._showHideChildren(!0);u=y.__templatizeOptions;(R&&u.instanceProps||!u.instanceProps)&&y._enableProperties();return y};
_.O(D7,gsV);_.J=D7.prototype;_.J._configureProperties=function(R){if(this.__templatizeOptions.forwardHostProp)for(var y in this.__hostProps)this._setPendingProperty(y,this.__dataHost["_host_"+y]);for(var u in R)this._setPendingProperty(u,R[u])};
_.J.forwardHostProp=function(R,y){this._setPendingPropertyOrPath(R,y,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.J._addEventListenerToNode=function(R,y,u){var v=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(R,y,function(M){M.model=v;u(M)});
else{var Q=this.__dataHost.__dataHost;Q&&Q._addEventListenerToNode(R,y,u)}};
_.J._showHideChildren=function(R){jE8(R,this.children)};
_.J._setUnmanagedPropertyToNode=function(R,y,u){R.__hideTemplateChildren__&&R.nodeType==Node.TEXT_NODE&&y=="textContent"?R.__polymerTextContent__=u:gsV.prototype._setUnmanagedPropertyToNode.call(this,R,y,u)};
_.J.dispatchEvent=function(){return!0};
_.RR.Object.defineProperties(D7.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var R=this.__parentModel;if(!R){var y;R=this;do R=R.__dataHost.__dataHost;while((y=R.__templatizeOptions)&&!y.parentModel);this.__parentModel=R}return R}}});
var JRc=oU(D7);var fj=function(){var R=Vl.call(this)||this;R.__renderDebouncer=null;R._lastIf=!1;R.__hideTemplateChildren__=!1;return R};
_.O(fj,Vl);_.J=fj.prototype;_.J.__debounceRender=function(){var R=this;this.__renderDebouncer=_.w5(this.__renderDebouncer,qS,function(){return R.__render()});
_.Nd(this.__renderDebouncer)};
_.J.disconnectedCallback=function(){Vl.prototype.disconnectedCallback.call(this);var R=(0,_.BA)(this).parentNode;R&&(R.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.BA)(R).host)||this.__teardownInstance()};
_.J.connectedCallback=function(){Vl.prototype.connectedCallback.call(this);yRc()||(this.style.display="none");this.if&&this.__debounceRender()};
_.J.__ensureTemplate=function(){var R=this;if(!this.__template){var y=this._templateInfo?this:(0,_.BA)(this).querySelector("template");if(!y){var u=new MutationObserver(function(){if((0,_.BA)(R).querySelector("template"))u.disconnect(),R.__render();else throw Error("Ld");});
u.observe(this,{childList:!0});return!1}this.__template=y}return!0};
_.J.__ensureInstance=function(){var R=(0,_.BA)(this).parentNode;if(this.__hasInstance()){var y=this.__getInstanceNodes();if(y&&y.length&&(0,_.BA)(this).previousSibling!==y[y.length-1])for(var u=0,v=void 0;u<y.length&&(v=y[u]);u++)(0,_.BA)(R).insertBefore(v,this)}else{if(!R||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(R)}return!0};
_.J.render=function(){_.Bb()};
_.J.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();yl&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.J.__hasInstance=function(){};
_.J.__getInstanceNodes=function(){};
_.J.__createAndInsertInstance=function(){};
_.J.__teardownInstance=function(){};
_.J._showHideChildren=function(){};
_.RR.Object.defineProperties(fj,{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:fj.prototype.__debounceRender},restamp:{type:Boolean,observer:fj.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var CEc=function(){var R=fj.call(this)||this;R.__instance=null;R.__syncInfo=null;return R};
_.O(CEc,fj);_.J=CEc.prototype;_.J.__hasInstance=function(){return!!this.__instance};
_.J.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.J.__createAndInsertInstance=function(R){var y=this,u=this.__dataHost||this;if(cA&&!this.__dataHost)throw Error("Jd");var v=u._bindTemplate(this.__template,!0);v.runEffects=function(Q,M,K){var h=y.__syncInfo;if(y.if)h&&(y.__syncInfo=null,y._showHideChildren(),M=Object.assign(h.changedProps,M)),Q(M,K);else if(y.__instance)if(h||(h=y.__syncInfo={runEffects:Q,changedProps:{}}),K)for(var b in M)Q=hW(b),h.changedProps[Q]=y.__dataHost[Q];else Object.assign(h.changedProps,M)};
this.__instance=u._stampTemplate(this.__template,v);(0,_.BA)(R).insertBefore(this.__instance,this)};
_.J.__syncHostProperties=function(){var R=this.__syncInfo;R&&(this.__syncInfo=null,R.runEffects(R.changedProps,!1))};
_.J.__teardownInstance=function(){var R=this.__dataHost||this;this.__instance&&(R._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.J._showHideChildren=function(){var R=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==R&&(this.__instance.__hidden=R,jE8(R,this.__instance.templateInfo.childNodes));R||this.__syncHostProperties()};
var Rzi=function(){var R=fj.call(this)||this;R.__ctor=null;R.__instance=null;R.__invalidProps=null;return R};
_.O(Rzi,fj);_.J=Rzi.prototype;_.J.__hasInstance=function(){return!!this.__instance};
_.J.__getInstanceNodes=function(){return this.__instance.children};
_.J.__createAndInsertInstance=function(R){this.__ctor||(this.__ctor=pN(this.__template,this,{mutableData:!0,forwardHostProp:function(y,u){this.__instance&&(this.if?this.__instance.forwardHostProp(y,u):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[hW(y)]=!0))}}));
this.__instance=new this.__ctor;(0,_.BA)(R).insertBefore(this.__instance.root,this)};
_.J.__teardownInstance=function(){if(this.__instance){var R=this.__instance.children;if(R&&R.length){var y=(0,_.BA)(R[0]).parentNode;if(y){y=(0,_.BA)(y);for(var u=0,v=void 0;u<R.length&&(v=R[u]);u++)y.removeChild(v)}}this.__instance=this.__invalidProps=null}};
_.J.__syncHostProperties=function(){var R=this.__invalidProps;if(R){this.__invalidProps=null;for(var y in R)this.__instance._setPendingProperty(y,this.__dataHost[y]);this.__instance._flushProperties()}};
_.J._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()};
_.m8=RU?CEc:Rzi;customElements.define(_.m8.is,_.m8);Polymer.enqueueDebouncer=_.Nd;Polymer.flush=_.Bb;Polymer.Templatize={templatize:pN,modelForElement:TVU};Polymer.TemplateInstanceBase=D7;Polymer.DomIf=_.m8;var yU5=s3Y(Vl),XN=function(){var R=yU5.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};
_.O(XN,yU5);_.J=XN.prototype;_.J.disconnectedCallback=function(){yU5.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var R=0;R<this.__instances.length;R++)this.__detachInstance(R);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.J.connectedCallback=function(){yU5.prototype.connectedCallback.call(this);yRc()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var R=(0,_.BA)((0,_.BA)(this).parentNode),y=0;y<this.__instances.length;y++)this.__attachInstance(y,R);this.__chunkingId&&this.__render()}};
_.J.__ensureTemplatized=function(){var R=this;if(!this.__ctor){var y=this.template=this._templateInfo?this:this.querySelector("template");if(!y){var u=new MutationObserver(function(){if(R.querySelector("template"))u.disconnect(),R.__render();else throw Error("Md");});
u.observe(this,{childList:!0});return!1}var v={};v[this.as]=!0;v[this.indexAs]=!0;v[this.itemsIndexAs]=!0;this.__ctor=pN(y,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:v,forwardHostProp:function(Q,M){for(var K=this.__instances,h=0,b=void 0;h<K.length&&(b=K[h]);h++)b.forwardHostProp(Q,M)},
notifyInstanceProp:function(Q,M,K){EYc(this.as,M)&&(Q=Q[this.itemsIndexAs],M==this.as&&(this.items[Q]=K),M=Fm(this.as,"items."+Q,M),this.notifyPath(M,K))}})}return!0};
_.J.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.J.__functionFromPropertyValue=function(R){if(typeof R==="string"){var y=this.__getMethodHost();return function(){return y[R].apply(y,arguments)}}return R};
_.J.__sortChanged=function(R){this.__sortFn=this.__functionFromPropertyValue(R);this.items&&this.__debounceRender(this.__render)};
_.J.__filterChanged=function(R){this.__filterFn=this.__functionFromPropertyValue(R);this.items&&this.__debounceRender(this.__render)};
_.J.__computeFrameTime=function(R){return Math.ceil(1E3/R)};
_.J.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.J.__handleObservedPaths=function(R){if(this.__sortFn||this.__filterFn)if(!R)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var y=this.__observePaths,u=0;u<y.length;u++)R.indexOf(y[u])===0&&this.__debounceRender(this.__render,this.delay)};
_.J.__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))};
_.J.__debounceRender=function(R,y){y=y===void 0?0:y;this.__renderDebouncer=_.w5(this.__renderDebouncer,y>0?_.vb.after(y):qS,R.bind(this));_.Nd(this.__renderDebouncer)};
_.J.render=function(){this.__debounceRender(this.__render);_.Bb()};
_.J.__render=function(){var R=this;if(this.__ensureTemplatized()){var y=this.items||[],u=this.__sortAndFilterItems(y),v=this.__calculateLimit(u.length);this.__updateInstances(y,v,u);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){R.__chunkingId=null;R.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);yl&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.J.__sortAndFilterItems=function(R){for(var y=this,u=Array(R.length),v=0;v<R.length;v++)u[v]=v;this.__filterFn&&(u=u.filter(function(Q,M,K){return y.__filterFn(R[Q],M,K)}));
this.__sortFn&&u.sort(function(Q,M){return y.__sortFn(R[Q],R[M])});
return u};
_.J.__calculateLimit=function(R){var y=R,u=this.__instances.length;if(this.initialCount){var v;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(y=Math.min(R,this.initialCount),this.__chunkCount=(v=Math.max(y-u,0))||1):(v=Math.min(Math.max(R-u,0),this.__chunkCount),y=Math.min(u+v,R));this.__shouldMeasureChunk=v===this.__chunkCount;this.__shouldContinueChunking=y<R;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return y};
_.J.__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)};
_.J.__updateInstances=function(R,y,u){var v=this.__itemsIdxToInstIdx={},Q;for(Q=0;Q<y;Q++){var M=this.__instances[Q],K=u[Q],h=R[K];v[K]=Q;M?(M._setPendingProperty(this.as,h),M._setPendingProperty(this.indexAs,Q),M._setPendingProperty(this.itemsIndexAs,K),M._flushProperties()):this.__insertInstance(h,Q,K)}for(R=this.__instances.length-1;R>=Q;R--)this.__detachAndRemoveInstance(R)};
_.J.__detachInstance=function(R){R=this.__instances[R];for(var y=(0,_.BA)(R.root),u=0;u<R.children.length;u++)y.appendChild(R.children[u]);return R};
_.J.__attachInstance=function(R,y){y.insertBefore(this.__instances[R].root,this)};
_.J.__detachAndRemoveInstance=function(R){this.__detachInstance(R);this.__instances.splice(R,1)};
_.J.__stampInstance=function(R,y,u){var v={};v[this.as]=R;v[this.indexAs]=y;v[this.itemsIndexAs]=u;return new this.__ctor(v)};
_.J.__insertInstance=function(R,y,u){R=this.__stampInstance(R,y,u);u=(u=this.__instances[y+1])?u.children[0]:this;(0,_.BA)((0,_.BA)(this).parentNode).insertBefore(R.root,u);return this.__instances[y]=R};
_.J._showHideChildren=function(R){for(var y=0;y<this.__instances.length;y++)this.__instances[y]._showHideChildren(R)};
_.J.__handleItemPath=function(R,y){var u=R.slice(6),v=u.indexOf(".");R=v<0?u:u.substring(0,v);if(R==parseInt(R,10)){u=v<0?"":u.substring(v+1);this.__handleObservedPaths(u);if(R=this.__instances[this.__itemsIdxToInstIdx[R]])R._setPendingPropertyOrPath(this.as+(u?"."+u:""),y,!1,!0),R._flushProperties();return!0}};
_.J.itemForElement=function(R){return(R=this.modelForElement(R))&&R[this.as]};
_.J.indexForElement=function(R){return(R=this.modelForElement(R))&&R[this.indexAs]};
_.J.modelForElement=function(R){return TVU(this.template,R)};
_.RR.Object.defineProperties(XN,{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:XN.prototype.__sortChanged},filter:{type:Function,observer:XN.prototype.__filterChanged},observe:{type:String,observer:XN.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!yl,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.*)"]}}});
XN.prototype._setRenderedItemCount=function(){};
customElements.define(XN.is,XN);Polymer.DomRepeat=XN;var ubL=function(R,y){var u=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=R;this.callback=y;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){u._schedule()};
this.connect();this._schedule()},vvL=function(R){var y=(0,_.BA)(R);
if(ax(R))return y.assignedNodes({flatten:!0});R=[];for(var u=0;u<y.childNodes.length;u++){var v=y.childNodes[u];ax(v)?R.push.apply(R,_.P$((0,_.BA)(v).assignedNodes({flatten:!0}))):R.push(v)}return R};
_.J=ubL.prototype;_.J.connect=function(){var R=this;ax(this._target)?this._listenSlots([this._target]):(0,_.BA)(this._target).children&&(this._listenSlots((0,_.BA)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(y){R._processMutations(y)}):(this._nativeChildrenObserver=new MutationObserver(function(y){R._processMutations(y)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.J.disconnect=function(){ax(this._target)?this._unlistenSlots([this._target]):(0,_.BA)(this._target).children&&(this._unlistenSlots((0,_.BA)(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};
_.J._schedule=function(){var R=this;this._scheduled||(this._scheduled=!0,qS.run(function(){return R.flush()}))};
_.J._processMutations=function(R){this._processSlotMutations(R);this.flush()};
_.J._processSlotMutations=function(R){if(R)for(var y=0;y<R.length;y++){var u=R[y];u.addedNodes&&this._listenSlots(u.addedNodes);u.removedNodes&&this._unlistenSlots(u.removedNodes)}};
_.J.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:[]},y=vvL(this._target),u=NXU(y,this._effectiveNodes),v=0,Q=void 0;v<u.length&&(Q=u[v]);v++)for(var M=0,K=void 0;M<Q.removed.length&&(K=Q.removed[M]);M++)R.removedNodes.push(K);
v=0;for(Q=void 0;v<u.length&&(Q=u[v]);v++)for(M=Q.index;M<Q.index+Q.addedCount;M++)R.addedNodes.push(y[M]);this._effectiveNodes=y;y=!1;if(R.addedNodes.length||R.removedNodes.length)y=!0,this.callback.call(this._target,R);return y};
_.J._listenSlots=function(R){for(var y=0;y<R.length;y++){var u=R[y];ax(u)&&u.addEventListener("slotchange",this._boundSchedule)}};
_.J._unlistenSlots=function(R){for(var y=0;y<R.length;y++){var u=R[y];ax(u)&&u.removeEventListener("slotchange",this._boundSchedule)}};var eH=Element.prototype,QH5=eH.matches||eH.matchesSelector||eH.mozMatchesSelector||eH.msMatchesSelector||eH.oMatchesSelector||eH.webkitMatchesSelector,jHL=function(R,y){return QH5.call(R,y)},Sm=function(R){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(R);
this.node=R},icg;
_.J=Sm.prototype;_.J.observeNodes=function(R){return new ubL(this.node,R)};
_.J.unobserveNodes=function(R){R.disconnect()};
_.J.notifyObserver=function(){};
_.J.deepContains=function(R){if((0,_.BA)(this.node).contains(R))return!0;var y=R;for(R=R.ownerDocument;y&&y!==R&&y!==this.node;)y=(0,_.BA)(y).parentNode||(0,_.BA)(y).host;return y===this.node};
_.J.getOwnerRoot=function(){return(0,_.BA)(this.node).getRootNode()};
_.J.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.BA)(this.node).assignedNodes({flatten:!0}):[]};
_.J.getDestinationInsertionPoints=function(){for(var R=[],y=(0,_.BA)(this.node).assignedSlot;y;)R.push(y),y=(0,_.BA)(y).assignedSlot;return R};
_.J.importNode=function(R,y){return(0,_.BA)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(R,y)};
_.J.getEffectiveChildNodes=function(){return vvL(this.node)};
_.J.queryDistributedElements=function(R){for(var y=this.getEffectiveChildNodes(),u=[],v=0,Q=y.length,M=void 0;v<Q&&(M=y[v]);v++)M.nodeType===Node.ELEMENT_NODE&&jHL(M,R)&&u.push(M);return u};
_.RR.Object.defineProperties(Sm.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var R=this.node;return R._activeElement!==void 0?R._activeElement:R.activeElement}}});
var lk=function(R){this.event=R};
_.RR.Object.defineProperties(lk.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 Mqc=Sm;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var JUc=window.ShadyDOM.Wrapper,Vqc=function(){return JUc.apply(this,arguments)||this};
_.O(Vqc,JUc);Object.getOwnPropertyNames(Sm.prototype).forEach(function(R){R!="activeElement"&&R!="constructor"&&(Vqc.prototype[R]=Sm.prototype[R])});
xOz(Vqc.prototype,["classList"]);Mqc=Vqc;Object.defineProperties(lk.prototype,{localTarget:{get:function(){var R=this.event.currentTarget;R=R&&_.GM(R).getOwnerRoot();for(var y=this.path,u=0;u<y.length;u++){var v=y[u];if(_.GM(v).getOwnerRoot()===R)return v}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else oUG(),xOz(Sm.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),BVv();icg=Mqc;_.GM=function(R){R=R||document;if(R instanceof Mqc)return R;if(R instanceof lk)return R;var y=R.__domApi;y||(R instanceof Event?y=new lk(R):y=new Mqc(R),R.__domApi=y);return y};var KHV=/:host\(:dir\((ltr|rtl)\)\)/g,IjL=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,hzc=/:dir\((?:ltr|rtl)\)/,bcV=!(!window.ShadyDOM||!window.ShadyDOM.inUse),LN=[],Ob=null,Yk="",FHi=Ql(function(R){bcV||Ob||(Yk=document.documentElement.getAttribute("dir"),Ob=new MutationObserver(fFU),Ob.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var y=xqL(R);R=function(){var u=y.call(this)||this;u.__autoDirOptOut=!1;return u};
_.O(R,y);R._processStyleText=function(u,v){u=y._processStyleText.call(this,u,v);!bcV&&hzc.test(u)&&(u=this._replaceDirInCssText(u),this.__activateDir=!0);return u};
R._replaceDirInCssText=function(u){u=u.replace(KHV,':host([dir="$1"])');return u=u.replace(IjL,':host([dir="$2"]) $1')};
R.prototype.ready=function(){y.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
R.prototype.connectedCallback=function(){y.prototype.connectedCallback&&y.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(Ob&&Ob.takeRecords().length&&fFU(),LN.push(this),this.__autoDirOptOut||this.setAttribute("dir",Yk))};
R.prototype.disconnectedCallback=function(){y.prototype.disconnectedCallback&&y.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var u=LN.indexOf(this);u>-1&&LN.splice(u,1)}};
R.__activateDir=!1;return R});var wVK=function(R){for(;R;){var y=Object.getOwnPropertyDescriptor(R,"observedAttributes");if(y)return y.get;R=Object.getPrototypeOf(R.prototype).constructor}return function(){return[]}};
Ql(function(R){var y=JA(R),u=wVK(y);R=function(){return y.call(this)||this};
_.O(R,y);R.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:y.prototype._initializeProperties.call(this)};
R.prototype._enableProperties=function(){this.__isUpgradeDisabled||y.prototype._enableProperties.call(this)};
R.prototype._canApplyPropertyDefault=function(v){return y.prototype._canApplyPropertyDefault.call(this,v)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(v))};
R.prototype.attributeChangedCallback=function(v,Q,M,K){v=="disable-upgrade"?this.__isUpgradeDisabled&&M==null&&(y.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.BA)(this).isConnected&&y.prototype.connectedCallback.call(this)):y.prototype.attributeChangedCallback.call(this,v,Q,M,K)};
R.prototype.connectedCallback=function(){this.__isUpgradeDisabled||y.prototype.connectedCallback.call(this)};
R.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||y.prototype.disconnectedCallback.call(this)};
_.RR.Object.defineProperties(R,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return u.call(this).concat("disable-upgrade")}}});
return R});var sl=!1,lFG=[],zS=[];var nUP=window.ShadyDOM,G$G=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",PoU):document.readyState==="interactive"||document.readyState==="complete"?PoU():window.addEventListener("DOMContentLoaded",PoU);var UOz=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=""},W9W=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,dOG=/@import[^;]*;/gim,mO8=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,ART=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,DOU=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,pQG=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,qkE=/^@[^\s]*keyframes/,
$OW=/\s+/g;var tdG={};var Sk8=Promise.resolve();var Nwc=new Set;var TwG=/;\s*/m,ovY=/^\s*(initial)|(inherit)\s*$/,xB5=/\s*!important/,Bwb=function(){this._map={}};
Bwb.prototype.set=function(R,y){R=R.trim();this._map[R]={properties:y,dependants:{}}};
Bwb.prototype.get=function(R){R=R.trim();return this._map[R]||null};
var fj5=null,Za=function(){this._measureElement=this._currentElement=null;this._map=new Bwb};
_.J=Za.prototype;_.J.detectMixin=function(R){R=qqK.test(R)||$qg.test(R);qqK.lastIndex=0;$qg.lastIndex=0;return R};
_.J.transformTemplate=function(R,y){if(R._gatheredStyle===void 0){var u=[];for(var v=R.content.querySelectorAll("style"),Q=0;Q<v.length;Q++){var M=v[Q];if(M.hasAttribute("shady-unscoped")){if(!HRE){var K=M.textContent;if(!Nwc.has(K)){Nwc.add(K);var h=document.createElement("style");h.setAttribute("shady-unscoped","");h.textContent=K;document.head.appendChild(h)}M.parentNode.removeChild(M)}}else u.push(M.textContent),M.parentNode.removeChild(M)}(u=u.join("").trim())?(v=document.createElement("style"),
v.textContent=u,R.content.insertBefore(v,R.content.firstChild),u=v):u=null;R._gatheredStyle=u}return(R=R._gatheredStyle)?this.JSC$11181_transformStyle(R,y):null};
_.J.JSC$11181_transformStyle=function(R,y){y=y===void 0?"":y;var u=zDW(R);this.transformRules(u,y);R.textContent=sEW(u);return u};
_.J.transformCustomStyle=function(R){var y=this,u=zDW(R);Coz(u,function(v){v.selector===":root"&&(v.selector="html");y.transformRule(v)});
R.textContent=sEW(u);return u};
_.J.transformRules=function(R,y){var u=this;this._currentElement=y;Coz(R,function(v){u.transformRule(v)});
this._currentElement=null};
_.J.transformRule=function(R){R.cssText=ezi(this,R.parsedCssText,R);R.selector===":root"&&(R.selector=":host > *")};
var ezi=function(R,y,u){y=y.replace($qg,function(v,Q,M,K){return R._produceCssProperties(v,Q,M,K,u)});
return R._consumeCssProperties(y,u)};
_.J=Za.prototype;_.J._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)};
_.J._fallbacksFromPreviousRules=function(R){for(var y=this,u=R;u.parent;)u=u.parent;var v={},Q=!1;Coz(u,function(M){(Q=Q||M===R)||M.selector===R.selector&&Object.assign(v,y._cssTextToMap(M.parsedCssText))});
return v};
_.J._consumeCssProperties=function(R,y){for(var u;u=qqK.exec(R);){var v=u[0],Q=u[1];u=u.index;var M=u+v.indexOf("@apply"),K=u+v.length;v=R.slice(0,M);R=R.slice(K);M=y?this._fallbacksFromPreviousRules(y):{};Object.assign(M,this._cssTextToMap(v));Q=this._atApplyToCssProperties(Q,M);R=v+Q+R;qqK.lastIndex=u+Q.length}return R};
_.J._atApplyToCssProperties=function(R,y){R=R.replace(TwG,"");var u=[],v=this._map.get(R);v||(this._map.set(R,{}),v=this._map.get(R));if(v){this._currentElement&&(v.dependants[this._currentElement]=!0);var Q,M=v.properties;for(Q in M){var K=y&&y[Q];v=[Q,": var(",R,"_-_",Q];K&&v.push(",",K.replace(xB5,""));v.push(")");xB5.test(M[Q])&&v.push(" !important");u.push(v.join(""))}}return u.join("; ")};
_.J._replaceInitialOrInherit=function(R,y){var u=ovY.exec(y);u&&(y=u[1]?this._getInitialValueForProperty(R):"apply-shim-inherit");return y};
_.J._cssTextToMap=function(R,y){y=y===void 0?!1:y;R=R.split(";");for(var u,v,Q={},M=0;M<R.length;M++)if(u=R[M])v=u.split(":"),v.length>1&&(u=v[0].trim(),v=v.slice(1).join(":"),y&&(v=this._replaceInitialOrInherit(u,v)),Q[u]=v);return Q};
_.J._invalidateMixinEntry=function(R){if(fj5)for(var y in R.dependants)y!==this._currentElement&&fj5(y)};
_.J._produceCssProperties=function(R,y,u,v,Q){var M=this;u&&RhT(u,function(Z,P){P&&M._map.get(P)&&(v="@apply "+P+";")});
if(!v)return R;var K=this._consumeCssProperties(""+v,Q);Q=R.slice(0,R.indexOf("--"));var h=K=this._cssTextToMap(K,!0),b=this._map.get(y),N=b&&b.properties;N?h=Object.assign(Object.create(N),K):this._map.set(y,h);var T=[],x,B=!1;for(x in h){var l=K[x];l===void 0&&(l="initial");!N||x in N||(B=!0);T.push(y+"_-_"+x+": "+l)}B&&this._invalidateMixinEntry(b);b&&(b.properties=h);u&&(Q=R+";"+Q);return Q+T.join("; ")+";"};
Za.prototype.detectMixin=Za.prototype.detectMixin;Za.prototype.transformStyle=Za.prototype.JSC$11181_transformStyle;Za.prototype.transformCustomStyle=Za.prototype.transformCustomStyle;Za.prototype.transformRules=Za.prototype.transformRules;Za.prototype.transformRule=Za.prototype.transformRule;Za.prototype.transformTemplate=Za.prototype.transformTemplate;Za.prototype._separator="_-_";Object.defineProperty(Za.prototype,"invalidCallback",{get:function(){return fj5},
set:function(R){fj5=R}});var Hb=new Za,lj5=function(){this.customStyleInterface=null;Hb.invalidCallback=cRT},nj=function(R){!R.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(R.customStyleInterface=window.ShadyCSS.CustomStyleInterface,R.customStyleInterface.transformCallback=function(y){Hb.transformCustomStyle(y)},R.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){R.customStyleInterface.enqueued&&R.flushCustomStyles()})})};
_.J=lj5.prototype;_.J.prepareTemplate=function(R,y){nj(this);ykE(R)===""&&(tdG[y]=R,y=Hb.transformTemplate(R,y),R._styleAst=y)};
_.J.flushCustomStyles=function(){nj(this);if(this.customStyleInterface){var R=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var y=0;y<R.length;y++){var u=this.customStyleInterface.getStyleForCustomStyle(R[y]);u&&Hb.transformCustomStyle(u)}this.customStyleInterface.enqueued=!1}}};
_.J.styleSubtree=function(R,y){nj(this);y&&xr8(R,y);if(R.shadowRoot)for(this.styleElement(R),R=R.shadowRoot.children||R.shadowRoot.childNodes,y=0;y<R.length;y++)this.styleSubtree(R[y]);else for(R=R.children||R.childNodes,y=0;y<R.length;y++)this.styleSubtree(R[y])};
_.J.styleElement=function(R){nj(this);var y=R.localName,u;y?y.indexOf("-")>-1?u=y:u=R.getAttribute&&R.getAttribute("is")||"":u=R.is;y=tdG[u];if(!(y&&ykE(y)!==""||!y||aFT(y))){if(aFT(y)||y._applyShimValidatingVersion!==y._applyShimNextVersion)this.prepareTemplate(y,u),Yk4(y);if(R=R.shadowRoot)if(R=R.querySelector("style"))R.__cssRules=y._styleAst,R.textContent=sEW(y._styleAst)}};
_.J.styleDocument=function(R){nj(this);this.styleSubtree(document.body,R)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var GX=new lj5,Oc5=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(R,y){GX.flushCustomStyles();GX.prepareTemplate(R,y)},
prepareTemplateStyles:function(R,y,u){window.ShadyCSS.prepareTemplate(R,y,u)},
prepareTemplateDom:function(){},
styleSubtree:function(R,y){GX.flushCustomStyles();GX.styleSubtree(R,y)},
styleElement:function(R){GX.flushCustomStyles();GX.styleElement(R)},
styleDocument:function(R){GX.flushCustomStyles();GX.styleDocument(R)},
getComputedStyleValue:function(R,y){return BX8(R,y)},
flushCustomStyles:function(){GX.flushCustomStyles()},
nativeCss:L9O,nativeShadow:HRE,cssBuild:CN,disableRuntime:ANb};Oc5&&(window.ShadyCSS.CustomStyleInterface=Oc5)}window.ShadyCSS.ApplyShim=Hb;var Zcg;Zcg=window.ShadyCSS;_.r5=Ql(function(R){R=LcY(JA(R));var y=rNT?R:FHi(R),u=wVK(y),v={x:"pan-x",y:"pan-y",none:"none",all:"auto"};R=function(){return y.call(this)||this};
_.O(R,y);R.prototype.created=function(){};
R.prototype.__attributeReaction=function(Q,M,K){(this.__dataAttributes&&this.__dataAttributes[Q]||Q==="disable-upgrade")&&this.attributeChangedCallback(Q,M,K,null)};
R.prototype.setAttribute=function(Q,M){if(vsc&&!this._legacyForceObservedAttributes){var K=this.getAttribute(Q);y.prototype.setAttribute.call(this,Q,M);this.__attributeReaction(Q,K,String(M))}else y.prototype.setAttribute.call(this,Q,M)};
R.prototype.removeAttribute=function(Q){if(vsc&&!this._legacyForceObservedAttributes){var M=this.getAttribute(Q);y.prototype.removeAttribute.call(this,Q);this.__attributeReaction(Q,M,null)}else y.prototype.removeAttribute.call(this,Q)};
R.prototype._enableProperties=function(){this.__isUpgradeDisabled||y.prototype._enableProperties.call(this)};
R.prototype._canApplyPropertyDefault=function(Q){return y.prototype._canApplyPropertyDefault.call(this,Q)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(Q))};
R.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(y.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
R.prototype.attached=function(){};
R.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(y.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
R.prototype.detached=function(){};
R.prototype.attributeChangedCallback=function(Q,M,K,h){M!==K&&(Q=="disable-upgrade"?this.__isUpgradeDisabled&&K==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.BA)(this).isConnected&&this.connectedCallback()):(y.prototype.attributeChangedCallback.call(this,Q,M,K,h),this.attributeChanged(Q,M,K)))};
R.prototype.attributeChanged=function(){};
R.prototype._initializeProperties=function(){if(mQ&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var Q=Object.getPrototypeOf(this);Q.hasOwnProperty("__hasRegisterFinished")||(this._registered(),Q.__hasRegisterFinished=!0);y.prototype._initializeProperties.call(this);this.root=this;this.created();vsc&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
R.prototype._takeAttributes=function(){for(var Q=this.attributes,M=0,K=Q.length;M<K;M++){var h=Q[M];this.__attributeReaction(h.name,null,h.value)}};
R.prototype._registered=function(){};
R.prototype.ready=function(){this._ensureAttributes();y.prototype.ready.call(this)};
R.prototype._ensureAttributes=function(){};
R.prototype._applyListeners=function(){};
R.prototype.serialize=function(Q){return this._serializeValue(Q)};
R.prototype.deserialize=function(Q,M){return this._deserializeValue(Q,M)};
R.prototype.reflectPropertyToAttribute=function(Q,M,K){this._propertyToAttribute(Q,M,K)};
R.prototype.serializeValueToAttribute=function(Q,M,K){this._valueToNodeAttribute(K||this,Q,M)};
R.prototype.extend=function(Q,M){if(!Q||!M)return Q||M;for(var K=Object.getOwnPropertyNames(M),h=0,b=void 0;h<K.length&&(b=K[h]);h++){var N=Object.getOwnPropertyDescriptor(M,b);N&&Object.defineProperty(Q,b,N)}return Q};
R.prototype.mixin=function(Q,M){for(var K in M)Q[K]=M[K];return Q};
R.prototype.chainObject=function(Q,M){Q&&M&&Q!==M&&(Q.__proto__=M);return Q};
R.prototype.instanceTemplate=function(Q){Q=this.constructor._contentForTemplate(Q);return document.importNode(Q,!0)};
R.prototype.fire=function(Q,M,K){K=K||{};M=M===null||M===void 0?{}:M;Q=new Event(Q,{bubbles:K.bubbles===void 0?!0:K.bubbles,cancelable:!!K.cancelable,composed:K.composed===void 0?!0:K.composed});Q.detail=M;(0,_.BA)(K.node||this).dispatchEvent(Q);return Q};
R.prototype.listen=function(Q,M,K){Q=Q||this;var h=this.__boundListeners||(this.__boundListeners=new WeakMap),b=h.get(Q);b||(b={},h.set(Q,b));h=M+K;b[h]||(b[h]=this._addMethodEventListenerToNode(Q,M,K,this))};
R.prototype.unlisten=function(Q,M,K){Q=Q||this;var h=this.__boundListeners&&this.__boundListeners.get(Q);K=M+K;var b=h&&h[K];b&&(this._removeEventListenerFromNode(Q,M,b),h[K]=null)};
R.prototype.setScrollDirection=function(Q,M){_.$k(M||this,v[Q]||"auto")};
R.prototype.$$=function(Q){return this.root.querySelector(Q)};
R.prototype.distributeContent=function(){var Q=_.GM(this);window.ShadyDOM&&Q.shadowRoot&&ShadyDOM.flush()};
R.prototype.getEffectiveChildNodes=function(){return _.GM(this).getEffectiveChildNodes()};
R.prototype.queryDistributedElements=function(Q){return _.GM(this).queryDistributedElements(Q)};
R.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(Q){return Q.nodeType===Node.ELEMENT_NODE})};
R.prototype.getEffectiveTextContent=function(){for(var Q=this.getEffectiveChildNodes(),M=[],K=0,h;h=Q[K];K++)h.nodeType!==Node.COMMENT_NODE&&M.push(h.textContent);return M.join("")};
R.prototype.queryEffectiveChildren=function(Q){return(Q=this.queryDistributedElements(Q))&&Q[0]};
R.prototype.queryAllEffectiveChildren=function(Q){return this.queryDistributedElements(Q)};
R.prototype.getContentChildNodes=function(Q){return(Q=this.root.querySelector(Q||"slot"))?_.GM(Q).getDistributedNodes():[]};
R.prototype.getContentChildren=function(Q){return this.getContentChildNodes(Q).filter(function(M){return M.nodeType===Node.ELEMENT_NODE})};
R.prototype.isLightDescendant=function(Q){return this!==Q&&(0,_.BA)(this).contains(Q)&&(0,_.BA)(this).getRootNode()===(0,_.BA)(Q).getRootNode()};
R.prototype.isLocalDescendant=function(Q){return this.root===(0,_.BA)(Q).getRootNode()};
R.prototype.scopeSubtree=function(Q,M){return rRz(Q,M===void 0?!1:M)};
R.prototype.getComputedStyleValue=function(Q){return Zcg.getComputedStyleValue(this,Q)};
R.prototype.debounce=function(Q,M,K){this._debouncers=this._debouncers||{};return this._debouncers[Q]=_.w5(this._debouncers[Q],K>0?_.vb.after(K):qS,M.bind(this))};
R.prototype.isDebouncerActive=function(Q){this._debouncers=this._debouncers||{};Q=this._debouncers[Q];return!(!Q||!Q.isActive())};
R.prototype.flushDebouncer=function(Q){this._debouncers=this._debouncers||{};(Q=this._debouncers[Q])&&Q.flush()};
R.prototype.cancelDebouncer=function(Q){this._debouncers=this._debouncers||{};(Q=this._debouncers[Q])&&Q.cancel()};
R.prototype.async=function(Q,M){return M>0?_.vb.run(Q.bind(this),M):~qS.run(Q.bind(this))};
R.prototype.cancelAsync=function(Q){Q<0?qS.cancel(~Q):_.vb.cancel(Q)};
R.prototype.create=function(Q,M){Q=document.createElement(Q);if(M)if(Q.setProperties)Q.setProperties(M);else for(var K in M)Q[K]=M[K];return Q};
R.prototype.elementMatches=function(Q,M){return jHL(M||this,Q)};
R.prototype.toggleAttribute=function(Q,M){var K=this;arguments.length===3&&(K=arguments[2]);arguments.length==1&&(M=!K.hasAttribute(Q));if(M)return(0,_.BA)(K).setAttribute(Q,""),!0;(0,_.BA)(K).removeAttribute(Q);return!1};
R.prototype.toggleClass=function(Q,M,K){K=K||this;arguments.length==1&&(M=!K.classList.contains(Q));M?K.classList.add(Q):K.classList.remove(Q)};
R.prototype.transform=function(Q,M){M=M||this;M.style.webkitTransform=Q;M.style.transform=Q};
R.prototype.translate3d=function(Q,M,K,h){this.transform("translate3d("+Q+","+M+","+K+")",h||this)};
R.prototype.arrayDelete=function(Q,M){if(Array.isArray(Q)){if(M=Q.indexOf(M),M>=0)return Q.splice(M,1)}else if(M=TS(this,Q).indexOf(M),M>=0)return this.splice(Q,M,1);return null};
R.prototype._logger=function(Q,M){Array.isArray(M)&&M.length===1&&Array.isArray(M[0])&&(M=M[0]);switch(Q){case "log":case "warn":case "error":console[Q].apply(console,_.P$(M))}};
R.prototype._log=function(){this._logger("log",_.qy.apply(0,arguments))};
R.prototype._warn=function(){this._logger("warn",_.qy.apply(0,arguments))};
R.prototype._error=function(){this._logger("error",_.qy.apply(0,arguments))};
R.prototype._logf=function(Q){return["[%s::%s]",this.is,Q].concat(_.P$(_.qy.apply(1,arguments)))};
_.RR.Object.defineProperties(R.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var Q=(0,_.BA)(this).getRootNode();return Q instanceof DocumentFragment?Q.host:Q}}});
_.RR.Object.defineProperties(R,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return vsc&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],Gx8(this.prototype)),this.__observedAttributes):u.call(this).concat("disable-upgrade")}}});
R.prototype.is="";return R});Polymer.FlattenedNodesObserver=ubL;Polymer.DomApi=icg;Polymer.EventApi=lk;Polymer.dom=_.GM;Polymer.dom.matchesSelector=jHL;Polymer.dom.flush=_.Bb;Polymer.dom.addDebouncer=_.Nd;Polymer.DirMixin=FHi;Polymer.RenderStatus={beforeNextRender:_.HUz,afterNextRender:_.gn,flush:function(){for(;lFG.length||zS.length;)eDT(lFG),eDT(zS);sl=!1}};Polymer.LegacyElementMixin=_.r5;var HcY;HcY=oU._mutablePropertyChange;var nv8={properties:{mutableData:Boolean},_shouldPropertyChange:function(R,y,u){return HcY(this,R,y,u,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(R,y,u){return HcY(this,R,y,u,!0)}};
Polymer.OptionalMutableDataBehavior=nv8;var uiG={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},JkL={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},Mzz=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},JkL),G2w=(0,_.r5)(HTMLElement),YuU=function(R,y){R||console.warn("Polymer.Class requires `info` argument");y=y?y(G2w):G2w;y=Vz4(R,y,R.behaviors);y.is=y.prototype.is=
R.is;return y};Polymer.Class=YuU;Polymer.mixinBehaviors=function(R,y){return Vz4({},(0,_.r5)(y),R)};
Polymer.GenerateClassFromInfo=Vz4;_.qz=function(R){var y=typeof R==="function"?R:_.qz.Class(R);R._legacyForceObservedAttributes&&(y.prototype._legacyForceObservedAttributes=R._legacyForceObservedAttributes);customElements.define(y.is,y);return y};
_.qz.Class=YuU;Polymer._polymerFn=_.qz;var rUT=window.onLegacyPolymerFunctionDefinedCallback;rUT&&rUT();var spv={templatize:function(R,y){this._templatizerTemplate=R;this.ctor=pN(R,this,{mutableData:!!y,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(R){return new this.ctor(R)},
modelForElement:function(R){return TVU(this._templatizerTemplate,R)}};Polymer.Templatizer=spv;_.Pb=(0,_.r5)(HTMLElement).prototype;Polymer.Base=_.Pb;var Kn8=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.y9=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.O(_.y9,PolymerFakeBaseClass);var up=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.O(up,PolymerFakeBaseClass);var IMS=Symbol("Nd"),xWU=[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 P7i=P7i||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},WHV;(function(R){function y(c,a,L){var QG=z.get(c);if(!QG){if(!L)return;QG=new E;z.set(c,QG)}c=QG.get(a);if(!c){if(!L)return;c=new E;QG.set(a,c)}return c}
function u(c,a,L){if(v(c,a,L))return!0;a=B(a);return a!==null?u(c,a,L):!1}
function v(c,a,L){a=y(a,L,!1);return a===void 0?!1:!!a.has(c)}
function Q(c,a,L){if(v(c,a,L))return M(c,a,L);a=B(a);if(a!==null)return Q(c,a,L)}
function M(c,a,L){a=y(a,L,!1);if(a!==void 0)return a.get(c)}
function K(c,a){var L=h(c,a);c=B(c);if(c===null)return L;var QG=K(c,a);if(QG.length<=0)return L;if(L.length<=0)return QG;a=new D;c=[];L=_.V(L);for(var hz=L.next();!hz.done;hz=L.next())hz=hz.value,a.has(hz)||(a.add(hz),c.push(hz));L=_.V(QG);for(QG=L.next();!QG.done;QG=L.next())QG=QG.value,a.has(QG)||(a.add(QG),c.push(QG));return c}
function h(c,a){c=y(c,a,!1);var L=[];c&&c.forEach(function(QG,hz){return L.push(hz)});
return L}
function b(c){return c===void 0}
function N(c){return typeof c==="object"?c!==null:typeof c==="function"}
function T(c){return typeof c==="function"}
function x(c){return typeof c==="symbol"?c:String(c)}
function B(c){var a=Object.getPrototypeOf(c);if(typeof c!=="function"||c===k||a!==k)return a;var L=Object.getPrototypeOf(c.prototype);if(L==null||L===Object.prototype)return a;L=L.constructor;return typeof L!=="function"||L===c?a:L}
function l(){function c(){this._keys=[];this._values=[];this._cache=a}
var a={};c.prototype={get size(){return this._keys.length},has:function(L){return L===this._cache?!0:this._find(L)>=0?(this._cache=L,!0):!1},
get:function(L){var QG=this._find(L);if(QG>=0)return this._cache=L,this._values[QG]},
set:function(L,QG){this.delete(L);this._keys.push(L);this._values.push(QG);this._cache=L;return this},
delete:function(L){L=this._find(L);return L>=0?(this._keys.splice(L,1),this._values.splice(L,1),this._cache=a,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=a},
forEach:function(L){for(var QG=this.size,hz=0;hz<QG;++hz){var bO=this._keys[hz],BW=this._values[hz];this._cache=bO;L.call(this,BW,bO,this)}},
_find:function(L){for(var QG=this._keys,hz=QG.length,bO=0;bO<hz;++bO)if(QG[bO]===L)return bO;return-1}};
return c}
function Z(){function c(){this._map=new E}
c.prototype={get size(){return this._map.length},has:function(a){return this._map.has(a)},
add:function(a){this._map.set(a,a);return this},
delete:function(a){return this._map.delete(a)},
clear:function(){this._map.clear()},
forEach:function(a,L){this._map.forEach(a,L)}};
return c}
function P(){function c(){this._key=L()}
function a(xS,Dc){for(var $S=0;$S<Dc;++$S)xS[$S]=Math.random()*255|0}
function L(){do{if(hz)var xS=hz.randomBytes(16);else typeof Uint8Array==="function"?(xS=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(xS):a(xS,16)):(xS=Array(16),a(xS,16));xS[6]=xS[6]&79|64;xS[8]=xS[8]&191|128;for(var Dc="",$S=0;$S<16;++$S){var hL=xS[$S];if($S===4||$S===6||$S===8)Dc+="-";hL<16&&(Dc+="0");Dc+=hL.toString(16).toLowerCase()}xS="@@WeakMap@@"+Dc}while(bO.call(BW,xS));BW[xS]=!0;return xS}
function QG(xS,Dc){if(!bO.call(xS,Zc)){if(!Dc)return;Object.defineProperty(xS,Zc,{value:Object.create(null)})}return xS[Zc]}
var hz=typeof global!=="undefined"&&typeof P7i==="object"&&typeof require==="function"&&require("crypto"),bO=Object.prototype.hasOwnProperty,BW={},Zc=L();c.prototype={has:function(xS){return(xS=QG(xS,!1))?this._key in xS:!1},
get:function(xS){if(xS=QG(xS,!1))return xS[this._key]},
set:function(xS,Dc){QG(xS,!0)[this._key]=Dc;return this},
delete:function(xS){return(xS=QG(xS,!1))&&this._key in xS?delete xS[this._key]:!1},
clear:function(){this._key=L()}};
return c}
var k=Object.getPrototypeOf(Function),E=typeof Map==="function"?Map:l(),D=typeof Set==="function"?Set:Z(),z=new (typeof WeakMap==="function"?WeakMap:P());R.decorate=function(c,a,L,QG){if(b(QG)){if(b(L)){if(!Array.isArray(c))throw new TypeError;if(!T(a))throw new TypeError;for(L=c.length-1;L>=0;--L)if(QG=(0,c[L])(a),!b(QG)){if(!T(QG))throw new TypeError;a=QG}return a}if(!Array.isArray(c))throw new TypeError;if(!N(a))throw new TypeError;L=x(L);for(QG=c.length-1;QG>=0;--QG)(0,c[QG])(a,L)}else{if(Array.isArray(c))if(N(a)){if(b(L))throw new TypeError;
if(!N(QG))throw new TypeError;}else throw new TypeError;else throw new TypeError;L=x(L);for(var hz=c.length-1;hz>=0;--hz){var bO=(0,c[hz])(a,L,QG);if(!b(bO)){if(!N(bO))throw new TypeError;QG=bO}}return QG}};
R.metadata=function(c,a){return function(L,QG){if(b(QG)){if(!T(L))throw new TypeError;y(L,void 0,!0).set(c,a)}else{if(!N(L))throw new TypeError;QG=x(QG);y(L,QG,!0).set(c,a)}}};
R.defineMetadata=function(c,a){var L;if(N(a))b(L)||(L=x(L));else throw new TypeError;y(a,L,!0).set("parameters",c)};
R.hasMetadata=function(c,a,L){if(N(a))b(L)||(L=x(L));else throw new TypeError;return u(c,a,L)};
R.hasOwnMetadata=function(c,a,L){if(N(a))b(L)||(L=x(L));else throw new TypeError;return v(c,a,L)};
R.getMetadata=function(c,a,L){if(N(a))b(L)||(L=x(L));else throw new TypeError;return Q(c,a,L)};
R.getOwnMetadata=function(c,a,L){if(N(a))b(L)||(L=x(L));else throw new TypeError;return M(c,a,L)};
R.getMetadataKeys=function(c,a){if(N(c))b(a)||(a=x(a));else throw new TypeError;return K(c,a)};
R.getOwnMetadataKeys=function(c,a){if(N(c))b(a)||(a=x(a));else throw new TypeError;return h(c,a)};
R.deleteMetadata=function(c,a,L){if(N(a))b(L)||(L=x(L));else throw new TypeError;var QG=y(a,L,!1);if(!b(QG)){if(!QG.delete(c))return!1;if(QG.size>0)return!0;c=z.get(a);c.delete(L);if(c.size>0)return!0;z.delete(a);return!0}};
(function(c){if(typeof c.Reflect!=="undefined"){if(c.Reflect!==R)for(var a in R)c.Reflect[a]=R[a]}else c.Reflect=R})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(WHV||(WHV={}));var dB5=function(){this.aborted=!1;this.onabort=null;this.target=document.createDocumentFragment?document.createDocumentFragment():document.createElement("div")};
dB5.prototype.addEventListener=function(R,y,u){this.target.addEventListener(R,y,u)};
dB5.prototype.removeEventListener=function(R,y,u){this.target.removeEventListener(R,y,u)};
dB5.prototype.dispatchEvent=function(R){if(this.onabort&&R.type==="abort")this.onabort(R);return this.target.dispatchEvent(R)};var UB5=function(){this.signal=new dB5};
UB5.prototype.abort=function(){if(!this.signal.aborted){this.signal.aborted=!0;var R=document.createEvent("Event");R.initEvent("abort",!1,!1);this.signal.dispatchEvent(R)}};var d$4=self;var k2i=[0,_.gV,_.Rf,_.gV];var Evb=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(Evb,_.y4);var $BL=_.KK(Evb,[0,_.omT,_.y_,k2i,_.Rf,_.v7]);_.IE(_.Q9,_.Z0);_.J=_.Q9.prototype;_.J.start=function(){this.stop();this.usingListeners_=!1;var R=qZY(this),y=XVw(this);R&&!y&&this.JSC$11230_win_.mozRequestAnimationFrame?(this.JSC$11230_id_=_.E4(this.JSC$11230_win_,"MozBeforePaint",this.callback_),this.JSC$11230_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11230_id_=R&&y?R.call(this.JSC$11230_win_,this.callback_):this.JSC$11230_win_.setTimeout(rLi(this.callback_),20)};
_.J.stop=function(){if(this.isActive()){var R=qZY(this),y=XVw(this);R&&!y&&this.JSC$11230_win_.mozRequestAnimationFrame?dZ(this.JSC$11230_id_):R&&y?y.call(this.JSC$11230_win_,this.JSC$11230_id_):this.JSC$11230_win_.clearTimeout(this.JSC$11230_id_)}this.JSC$11230_id_=null};
_.J.fire=function(){this.stop();this.JSC$11232_doAction_()};
_.J.isActive=function(){return this.JSC$11230_id_!=null};
_.J.JSC$11232_doAction_=function(){this.usingListeners_&&this.JSC$11230_id_&&dZ(this.JSC$11230_id_);this.JSC$11230_id_=null;this.JSC$11230_listener_.call(this.handler_,_.KU())};
_.J.disposeInternal=function(){this.stop();_.Q9.superClass_.disposeInternal.call(this)};
var qZY=function(R){R=R.JSC$11230_win_;return R.requestAnimationFrame||R.webkitRequestAnimationFrame||R.mozRequestAnimationFrame||R.oRequestAnimationFrame||R.msRequestAnimationFrame||null},XVw=function(R){R=R.JSC$11230_win_;
return R.cancelAnimationFrame||R.cancelRequestAnimationFrame||R.webkitCancelRequestAnimationFrame||R.mozCancelRequestAnimationFrame||R.oCancelRequestAnimationFrame||R.msCancelRequestAnimationFrame||null};_.v2=function(R,y,u){_.Z0.call(this);this.JSC$11233_listener_=u!=null?R.bind(u):R;this.JSC$11233_interval_=y;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11233_timer_=null};
_.O(_.v2,_.Z0);_.J=_.v2.prototype;_.J.fire=function(R){this.args_=arguments;this.JSC$11233_timer_||this.pauseCount_?this.shouldFire_=!0:mB5(this)};
_.J.stop=function(){this.JSC$11233_timer_&&(_.uO.clearTimeout(this.JSC$11233_timer_),this.JSC$11233_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.J.pause=function(){this.pauseCount_++};
_.J.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11233_timer_||(this.shouldFire_=!1,mB5(this))};
_.J.disposeInternal=function(){_.Z0.prototype.disposeInternal.call(this);this.stop()};
var mB5=function(R){R.JSC$11233_timer_=dK(function(){R.JSC$11233_timer_=null;R.shouldFire_&&!R.pauseCount_&&(R.shouldFire_=!1,mB5(R))},R.JSC$11233_interval_);
var y=R.args_;R.args_=null;R.JSC$11233_listener_.apply(null,y)};var AU8=function(R,y){this.childIterator_=R[_.uO.Symbol.iterator]();this.mapFn_=y};
AU8.prototype[Symbol.iterator]=function(){return this};
AU8.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 DBG=function(R,y){return new AU8(R,y)};var pVc={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 b58=function(R){var y=tqY(R);if(!y)throw Error("Rd`"+R);return y},tqY=function(R){var y={};
R=String(R);var u=R.charAt(0)=="#"?R:"#"+R;if(cU5.test(u))return y.hex=JfT(u),y.type="hex",y;u=TML(R);return u.length?(y.hex=saz(u[0],u[1],u[2]),y.type="rgb",y):pVc&&(R=pVc[R.toLowerCase()])?(y.hex=R,y.type="named",y):null},ajc=/#(.)(.)(.)/,JfT=function(R){if(!cU5.test(R))throw Error("Td`"+R);
R.length==4&&(R=R.replace(ajc,"#$1$1$2$2$3$3"));return R.toLowerCase()},FtU=function(R){R=JfT(R);
R=parseInt(R.slice(1),16);return[R>>16,R>>8&255,R&255]},saz=function(R,y,u){R=Number(R);
y=Number(y);u=Number(u);if(R!=(R&255)||y!=(y&255)||u!=(u&255))throw Error("Ud`"+R+"`"+y+"`"+u);y=R<<16|y<<8|u;return R<16?"#"+(16777216|y).toString(16).slice(1):"#"+y.toString(16)},cU5=/^#(?:[0-9a-f]{3}){1,2}$/i,SZi=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,TML=function(R){var y=R.match(SZi);
if(y){R=Number(y[1]);var u=Number(y[2]);y=Number(y[3]);if(R>=0&&R<=255&&u>=0&&u<=255&&y>=0&&y<=255)return[R,u,y]}return[]};var YZw={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},r$=YZw;r$=YZw;var d98,LHg,sH5;d98=function(R,y){switch(y){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};
LHg=function(R,y,u,v,Q){R=new Date(R,y,u);Q=Q||0;return R.valueOf()+(((v!==void 0?v:3)-Q+7)%7-((R.getDay()+6)%7-Q+7)%7)*864E5};
_.Wb=function(R,y,u){typeof R==="number"?(this.date=sH5(R,y||0,u||1),zzL(this,u||1)):_.Sv(R)?(this.date=sH5(R.getFullYear(),R.getMonth(),R.getDate()),zzL(this,R.getDate())):(this.date=new Date(_.KU()),R=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),zzL(this,R))};
sH5=function(R,y,u){y=new Date(R,y,u);R>=0&&R<100&&y.setFullYear(y.getFullYear()-1900);return y};
_.J=_.Wb.prototype;_.J.firstDayOfWeek_=r$.FIRSTDAYOFWEEK;_.J.firstWeekCutOffDay_=r$.FIRSTWEEKCUTOFFDAY;_.J.clone=function(){var R=new _.Wb(this.date);R.firstDayOfWeek_=this.firstDayOfWeek_;R.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return R};
_.J.getFullYear=function(){return this.date.getFullYear()};
_.J.getYear=function(){return this.getFullYear()};
_.J.getMonth=function(){return this.date.getMonth()};
_.J.getDate=function(){return this.date.getDate()};
_.J.getTime=function(){return this.date.getTime()};
_.J.getDay=function(){return this.date.getDay()};
_.J.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.J.getUTCMonth=function(){return this.date.getUTCMonth()};
_.J.getUTCDate=function(){return this.date.getUTCDate()};
_.J.getUTCDay=function(){return this.date.getDay()};
_.J.getUTCHours=function(){return this.date.getUTCHours()};
_.J.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.J.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.J.set=function(R){this.date=new Date(R.getFullYear(),R.getMonth(),R.getDate())};
_.J.setFullYear=function(R){this.date.setFullYear(R)};
_.J.setYear=function(R){this.setFullYear(R)};
_.J.setMonth=function(R){this.date.setMonth(R)};
_.J.setDate=function(R){this.date.setDate(R)};
_.J.setTime=function(R){this.date.setTime(R)};
_.J.setUTCFullYear=function(R){this.date.setUTCFullYear(R)};
_.J.setUTCMonth=function(R){this.date.setUTCMonth(R)};
_.J.setUTCDate=function(R){this.date.setUTCDate(R)};
_.J.add=function(R){if(R.years||R.months){var y=this.getMonth()+R.months+R.years*12,u=this.getYear()+Math.floor(y/12);y%=12;y<0&&(y+=12);var v=Math.min(d98(u,y),this.getDate());this.setDate(1);this.setFullYear(u);this.setMonth(y);this.setDate(v)}R.days&&(u=this.getYear(),y=u>=0&&u<=99?-1900:0,R=new Date((new Date(u,this.getMonth(),this.getDate(),12)).getTime()+R.days*864E5),this.setDate(1),this.setFullYear(R.getFullYear()+y),this.setMonth(R.getMonth()),this.setDate(R.getDate()),zzL(this,R.getDate()))};
_.J.JSC$11246_toIsoString=function(R){var y=this.getFullYear(),u=y<0?"-":y>=1E4?"+":"";return[u+_.ij(Math.abs(y),u?6:4),_.ij(this.getMonth()+1,2),_.ij(this.getDate(),2)].join(R?"-":"")};
_.J.equals=function(R){return!(!R||this.getYear()!=R.getYear()||this.getMonth()!=R.getMonth()||this.getDate()!=R.getDate())};
_.J.toString=function(){return this.JSC$11246_toIsoString()};
var zzL=function(R,y){R.getDate()!=y&&R.date.setUTCHours(R.date.getUTCHours()+(R.getDate()<y?1:-1))};
_.Wb.prototype.valueOf=function(){return this.date.valueOf()};var Ub=function(R,y,u,v,Q){this.reversed=!!y;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!u;R&&d5(this,R,v);this.depth=Q!=void 0?Q:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.IE(Ub,bm);var d5=function(R,y,u,v){if(R.node=y)R.tagType=typeof u==="number"?u:R.node.nodeType!=1?0:R.reversed?-1:1;typeof v==="number"&&(R.depth=v)};
_.J=Ub.prototype;_.J.JSC$11261_copyFrom=function(R){this.node=R.node;this.tagType=R.tagType;this.depth=R.depth;this.reversed=R.reversed;this.constrained=R.constrained};
_.J.clone=function(){return new Ub(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.J.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return FQ;var R=this.node;var y=this.reversed?-1:1;if(this.tagType==y){var u=this.reversed?R.lastChild:R.firstChild;u?d5(this,u):d5(this,R,y*-1)}else(u=this.reversed?R.previousSibling:R.nextSibling)?d5(this,u):d5(this,R.parentNode,y*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(R=this.node)?w1(R):FQ};
_.J.equals=function(R){return R.node==this.node&&(!this.node||R.tagType==this.tagType)};
_.J.splice=function(R){var y=this.node,u=this.reversed?1:-1;this.tagType==u&&(this.tagType=u*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;Ub.prototype.next.call(this);this.reversed=!this.reversed;u=_.p8(arguments[0])?arguments[0]:arguments;for(var v=u.length-1;v>=0;v--)_.Xi(u[v],y);_.BY(y)};var gvi=function(){},ku=function(R){for(var y=[],u=R.getTextRangeCount(),v=0;v<u;v++)y.push(R.getTextRange(v));
return y};
gvi.prototype.isReversed=function(){return!1};
gvi.prototype.getWindow=function(){return U6(_.kh(this.JSC$11263_getStartNode()))};
var C7c=function(R,y){Ub.call(this,R,y,!0)};
_.IE(C7c,Ub);var Eb=function(R,y,u,v,Q){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!Q;if(R){this.startNode_=R;this.startOffset_=y;this.endNode_=u;this.endOffset_=v;if(R.nodeType==1&&R.tagName!="BR")if(R=R.childNodes,y=R[y])this.startNode_=y,this.startOffset_=0;else{R.length&&(this.startNode_=_.WW(R));var M=!0}u.nodeType==1&&((this.endNode_=u.childNodes[v])?this.endOffset_=0:this.endNode_=u)}Ub.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);M&&this.next()};
_.IE(Eb,C7c);_.J=Eb.prototype;_.J.JSC$11269_getStartNode=function(){return this.startNode_};
_.J.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)};
_.J.next=function(){return this.isLast()?FQ:Eb.superClass_.next.call(this)};
_.J.JSC$11261_copyFrom=function(R){this.startNode_=R.startNode_;this.endNode_=R.endNode_;this.startOffset_=R.startOffset_;this.endOffset_=R.endOffset_;this.isReversed_=R.isReversed_;Eb.superClass_.JSC$11261_copyFrom.call(this,R)};
_.J.clone=function(){var R=new Eb(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);R.JSC$11261_copyFrom(this);return R};var R35=function(){};
R35.prototype.__iterator__=function(){return new Eb(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var $u=function(R){this.range_=R};
_.IE($u,R35);var ywV=function(R){var y=_.kh(R).createRange();if(R.nodeType==3)y.setStart(R,0),y.setEnd(R,R.length);else if(EO(R)||R.nodeType==3){for(var u,v=R;(u=v.firstChild)&&(EO(u)||u.nodeType==3);)v=u;y.setStart(v,0);for(v=R;(u=v.lastChild)&&(EO(u)||u.nodeType==3);)v=u;y.setEnd(v,v.nodeType==1?v.childNodes.length:v.length)}else u=R.parentNode,R=Array.prototype.indexOf.call(u.childNodes,R),y.setStart(u,R),y.setEnd(u,R+1);return y},uN5=function(R,y,u,v){var Q=_.kh(R).createRange();
Q.setStart(R,y);Q.setEnd(u,v);return Q};
_.J=$u.prototype;_.J.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.J.getContainer=function(){return this.range_.commonAncestorContainer};
_.J.compareBrowserRangeEndpoints=function(R,y,u){return this.range_.compareBoundaryPoints(u==1?y==1?_.uO.Range.START_TO_START:_.uO.Range.START_TO_END:y==1?_.uO.Range.END_TO_START:_.uO.Range.END_TO_END,R)};
_.J.isCollapsed=function(){return this.range_.collapsed};
_.J.select=function(R){this.selectInternal(U6(_.kh(this.range_.startContainer)).getSelection(),R)};
_.J.selectInternal=function(R){R.removeAllRanges();R.addRange(this.range_)};
_.J.insertNode=function(R,y){var u=this.range_.cloneRange();u.collapse(y);u.insertNode(R);u.detach();return R};
_.J.collapse=function(R){this.range_.collapse(R)};_.IE(jC,$u);jC.prototype.selectInternal=function(R,y){!y||this.isCollapsed()?jC.superClass_.selectInternal.call(this,R,y):(R.collapse(this.range_.endContainer,this.range_.endOffset),R.extend(this.range_.startContainer,this.range_.startOffset))};_.IE(M4,$u);M4.prototype.compareBrowserRangeEndpoints=function(R,y,u){return M4.superClass_.compareBrowserRangeEndpoints.call(this,R,y,u)};
M4.prototype.selectInternal=function(R,y){y?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 vJb=function(R){return _.T$?new M4(R):_.NO?new jC(R):new $u(R)};var qd=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},QXV;
_.IE(qd,gvi);QXV=function(R,y){var u=new qd;u.browserRangeWrapper_=R;u.isReversed_=!!y;return u};
_.jXb=function(R){R=_.T$?new M4(ywV(R)):_.NO?new jC(ywV(R)):new $u(ywV(R));return QXV(R)};
_.XL=function(R,y,u,v){var Q=new qd;Q.isReversed_=M0w(R,y,u,v);if(_.L9(R)&&!EO(R)){var M=R.parentNode;y=Array.prototype.indexOf.call(M.childNodes,R);R=M}_.L9(u)&&!EO(u)&&(M=u.parentNode,v=Array.prototype.indexOf.call(M.childNodes,u),u=M);Q.isReversed_?(Q.startNode_=u,Q.startOffset_=v,Q.endNode_=R,Q.endOffset_=y):(Q.startNode_=R,Q.startOffset_=y,Q.endNode_=u,Q.endOffset_=v);return Q};
_.J=qd.prototype;_.J.clone=function(){var R=new qd;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};
_.J.JSC$11263_getType=function(){return"text"};
_.J.getBrowserRangeObject=function(){return mj(this).range_};
_.J.getTextRangeCount=function(){return 1};
_.J.getTextRange=function(){return this};
var mj=function(R){var y;if(!(y=R.browserRangeWrapper_)){y=R.JSC$11263_getStartNode();var u=R.JSC$11263_getStartOffset(),v=R.JSC$11263_getEndNode(),Q=R.JSC$11263_getEndOffset();y=_.T$?new M4(uN5(y,u,v,Q)):_.NO?new jC(uN5(y,u,v,Q)):new $u(uN5(y,u,v,Q));y=R.browserRangeWrapper_=y}return y};
_.J=qd.prototype;_.J.getContainer=function(){return mj(this).getContainer()};
_.J.JSC$11263_getStartNode=function(){return this.startNode_||(this.startNode_=mj(this).range_.startContainer)};
_.J.JSC$11263_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=mj(this).range_.startOffset};
_.J.JSC$11263_getEndNode=function(){return this.endNode_||(this.endNode_=mj(this).range_.endContainer)};
_.J.JSC$11263_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=mj(this).range_.endOffset};
_.J.isReversed=function(){return this.isReversed_};
_.J.JSC$11263_containsRange=function(R,y){if(R.JSC$11263_getType()=="text"){var u=mj(this);R=mj(R);y=y&&!R.isCollapsed();R=R.range_;u=y?u.compareBrowserRangeEndpoints(R,0,1)>=0&&u.compareBrowserRangeEndpoints(R,1,0)<=0:u.compareBrowserRangeEndpoints(R,0,0)>=0&&u.compareBrowserRangeEndpoints(R,1,1)<=0}else u=!1;return u};
_.J.isCollapsed=function(){return mj(this).isCollapsed()};
_.J.JSC$11263_getText=function(){return mj(this).range_.toString()};
_.J.__iterator__=function(){return new Eb(this.JSC$11263_getStartNode(),this.JSC$11263_getStartOffset(),this.JSC$11263_getEndNode(),this.JSC$11263_getEndOffset())};
_.J.select=function(){mj(this).select(this.isReversed_)};
_.J.JSC$11263_removeContents=function(){var R=mj(this).range_;R.extractContents();if(R.startContainer.hasChildNodes()&&(R=R.startContainer.childNodes[R.startOffset])){var y=R.previousSibling;nMi(R)==""&&_.BY(R);y&&nMi(y)==""&&_.BY(y)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.J.insertNode=function(R,y){R=mj(this).insertNode(R,y);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return R};
_.J.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 JwG=function(){};
_.IE(JwG,gvi);JwG.prototype.JSC$11263_containsRange=function(R,y){var u=ku(this);R=ku(R);return(y?az:_.zYz)(R,function(v){return az(u,function(Q){return Q.JSC$11263_containsRange(v,y)})})};
JwG.prototype.insertNode=function(R,y){y?_.qW(R,this.JSC$11263_getStartNode()):_.Xi(R,this.JSC$11263_getEndNode());return R};var V0g,iu5=fL().JSC$9293_document_.documentElement;V0g=iu5.requestFullscreen?"fullscreenchange":iu5.webkitRequestFullscreen?"webkitfullscreenchange":iu5.mozRequestFullScreen?"mozfullscreenchange":iu5.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var K8i=function(){var R=fL().JSC$9293_document_;return!!(R.webkitIsFullScreen||R.mozFullScreen||R.msFullscreenElement||R.fullscreenElement)};var AA=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.IE(AA,JwG);_.J=AA.prototype;_.J.clone=function(){var R=new AA;R.browserRanges_=_.Az(this.browserRanges_);return R};
_.J.JSC$11263_getType=function(){return"mutli"};
_.J.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.J.getTextRangeCount=function(){return this.browserRanges_.length};
_.J.getTextRange=function(R){this.ranges_[R]||(this.ranges_[R]=QXV(vJb(this.browserRanges_[R])));return this.ranges_[R]};
_.J.getContainer=function(){if(!this.container_){for(var R=[],y=this.getTextRangeCount(),u=0;u<y;u++)R.push(this.getTextRange(u).getContainer());this.container_=BaG.apply(null,R)}return this.container_};
var Da=function(R){R.sortedRanges_||(R.sortedRanges_=ku(R),R.sortedRanges_.sort(function(y,u){var v=y.JSC$11263_getStartNode();y=y.JSC$11263_getStartOffset();var Q=u.JSC$11263_getStartNode();u=u.JSC$11263_getStartOffset();return v==Q&&y==u?0:M0w(v,y,Q,u)?1:-1}));
return R.sortedRanges_};
_.J=AA.prototype;_.J.JSC$11263_getStartNode=function(){return Da(this)[0].JSC$11263_getStartNode()};
_.J.JSC$11263_getStartOffset=function(){return Da(this)[0].JSC$11263_getStartOffset()};
_.J.JSC$11263_getEndNode=function(){return _.WW(Da(this)).JSC$11263_getEndNode()};
_.J.JSC$11263_getEndOffset=function(){return _.WW(Da(this)).JSC$11263_getEndOffset()};
_.J.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.J.JSC$11263_getText=function(){return ku(this).map(function(R){return R.JSC$11263_getText()}).join("")};
_.J.__iterator__=function(){return new pj(this)};
_.J.select=function(){var R=this.getWindow().getSelection();R.removeAllRanges();for(var y=this.getTextRangeCount(),u=0;u<y;u++)R.addRange(this.getTextRange(u).getBrowserRangeObject())};
_.J.JSC$11263_removeContents=function(){ku(this).forEach(function(R){R.JSC$11263_removeContents()})};
_.J.collapse=function(R){if(!this.isCollapsed()){var y=R?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;y.collapse(R);this.ranges_=[y];this.sortedRanges_=[y];this.browserRanges_=[y.getBrowserRangeObject()]}};
var pj=function(R){this.iterators_=null;this.currentIdx_=0;R&&(this.iterators_=Da(R).map(function(y){return _.nkg(y)}));
Ub.call(this,R?this.JSC$11269_getStartNode():null,!1,!0)};
_.IE(pj,C7c);_.J=pj.prototype;_.J.JSC$11269_getStartNode=function(){return this.iterators_[0].JSC$11269_getStartNode()};
_.J.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.J.next=function(){for(;this.currentIdx_<this.iterators_.length;){var R=this.iterators_[this.currentIdx_],y=R.next();if(y.done)this.currentIdx_++;else return d5(this,R.node,R.tagType,R.depth),y}return FQ};
_.J.JSC$11261_copyFrom=function(R){this.iterators_=_.Az(R.iterators_);pj.superClass_.JSC$11261_copyFrom.call(this,R)};
_.J.clone=function(){var R=new pj(null);R.JSC$11261_copyFrom(this);return R};var IVi,M0w;_.Oz=function(){var R=window.getSelection();return R&&IVi(R)};
IVi=function(R){var y=!1;if(R.createRange)try{var u=R.createRange()}catch(Q){return null}else if(R.rangeCount){if(R.rangeCount>1){u=new AA;y=R.rangeCount;for(var v=0;v<y;v++)u.browserRanges_.push(R.getRangeAt(v));return u}u=R.getRangeAt(0);y=M0w(R.anchorNode,R.anchorOffset,R.focusNode,R.focusOffset)}else return null;return QXV(vJb(u),y)};
_.tA=function(R,y){return _.XL(R,y,R,y)};
_.cb=function(R,y,u,v){return _.XL(R,y,u,v)};
M0w=function(R,y,u,v){if(R==u)return v<y;var Q;if(R.nodeType==1&&y)if(Q=R.childNodes[y])R=Q,y=0;else if(_.ma(R,u))return!0;if(u.nodeType==1&&v)if(Q=u.childNodes[v])u=Q,v=0;else if(_.ma(u,R))return!1;return(xVL(R,u)||y-v)>0};var aU=function(){_.nT.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.HY)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.HY)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.HY)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.HY)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.HY)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.HY)(this.dispatchProgressEvent_,this)};
_.IE(aU,_.nT);aU.prototype.abort=function(){try{this.reader_.abort()}catch(R){throw new Gp5(R,"aborting read");}};
aU.prototype.getError=function(){return this.reader_.error&&new Gp5(this.reader_.error,"reading file")};
aU.prototype.dispatchProgressEvent_=function(R){this.dispatchEvent(new rc8(R,this))};
aU.prototype.disposeInternal=function(){aU.superClass_.disposeInternal.call(this);delete this.reader_};
var buc=function(R){var y=new aU,u=h3c(y);y.reader_.readAsArrayBuffer(R);return u},F8g=function(R){var y=new aU,u=h3c(y);
y.reader_.readAsDataURL(R);return u},h3c=function(R){var y=new gK;
R.listen("loadend",_.lh(function(u,v){var Q=v.reader_.result,M=v.getError();Q==null||M?u.errback(M):u.callback(Q);v.dispose()},y,R));
return y};var SH=function(){_.nT.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11303_eventHandler_=new _.V9(this);this.JSC$11303_isInitialized_=!1};
_.IE(SH,_.nT);var wN8=new _.fT("d"),N2V=new _.fT("beforedragstart"),T2g=new _.fT("dragstart"),oJg=new _.fT("beforedragmove"),xzg=new _.fT("dragmove"),B2c=new _.fT("beforedragend"),fVc=new _.fT("dragend"),e3g=new _.fT("e");SH.prototype.isDragging=function(){return!!this.JSC$11303_dragger_};
var lVi=function(R,y){y.dlgGrowthDirection_=0;y.dlgDragHoverClass_=void 0;y.dlgDragPermission=0;R.dragLists_.push(y)},Oug=function(R,y){R.getHandleForDragItem_=y};
SH.prototype.init=function(){if(!this.JSC$11303_isInitialized_){for(var R=this.dragLists_.length,y=0;y<R;y++)for(var u=_.mn(this.dragLists_[y]),v=u.length,Q=0;Q<v;++Q){var M=u[Q],K=this.getHandleForDragItem_(M),h=_.YS(K);this.dragItemForHandle_[h]=M;this.dragItemHoverClasses_&&(this.JSC$11303_eventHandler_.listen(M,"mouseover",this.handleDragItemMouseover_),this.JSC$11303_eventHandler_.listen(M,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11303_eventHandler_.listen(K,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11303_eventHandler_.listen(K,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(M);this.JSC$11303_eventHandler_.listen(K,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11303_isInitialized_=!0}};
SH.prototype.disposeInternal=function(){this.JSC$11303_eventHandler_.dispose();for(var R=this.dragLists_.length,y=0;y<R;y++){var u=this.dragLists_[y];u.dlgGrowthDirection_=void 0;u.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;ZuY(this);SH.superClass_.disposeInternal.call(this)};
var Hu5=function(R,y){for(var u=R.dragLists_.length,v=0;v<u;v++){var Q=R.dragLists_[v];Q.dlgBounds_=Zp8(Q)}u=R.dragItems_.length;for(v=0;v<u;v++)Q=R.dragItems_[v],Q!=y&&(Q.dlgBounds_=Zp8(Q))};
_.J=SH.prototype;
_.J.handlePotentialDragStart_=function(R){var y=_.YS(R.currentTarget);y=this.dragItemForHandle_[y];if(y.parentElement.dlgDragPermission!=2){this.currDragItem_=y;a:{y=this.currDragItem_;for(var u=y.cloneNode(!0),v=fF("TEXTAREA",y),Q=fF("TEXTAREA",u),M=0;M<v.length;M++)Q[M].value=v[M].value;switch(y.tagName){case "TR":y=_.UO("TABLE",null,_.UO("TBODY",null,u));break a;case "TD":case "TH":y=_.UO("TABLE",null,_.UO("TBODY",null,_.UO("TR",null,u)));break a;case "TEXTAREA":u.value=y.value;default:y=u;break a}y=
void 0}this.draggerEl_=y;this.draggerElClasses_&&s8(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.kh(this.currDragItem_).body.appendChild(this.draggerEl_);u=_.E6(this.currDragItem_);y=this.draggerEl_;v=_.E6(y);if(u instanceof _.dc){var K=u.y;u=u.x}c7(y,y.offsetLeft+(u-v.x),y.offsetTop+(Number(K)-v.y));this.JSC$11303_dragger_=new _.tt(this.draggerEl_);_.n2i(this.JSC$11303_dragger_,this.hysteresisDistance_);
_.E4(this.JSC$11303_dragger_,"start",this.handleDragStart_,!1,this);_.E4(this.JSC$11303_dragger_,"end",this.handleDragEnd_,!1,this);_.E4(this.JSC$11303_dragger_,"earlycancel",this.JSC$11305_cleanup_,!1,this);this.dispatchEvent(new Yu(wN8,this,R,this.currDragItem_,this.draggerEl_,this.JSC$11303_dragger_));this.JSC$11303_dragger_.startDrag(R)}};
_.J.handleDragStart_=function(R){if(this.dispatchEvent(new Yu(N2V,this,R.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.Na5(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?s8(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var y=UVb(this.draggerEl_);this.draggerEl_.halfWidth=y.width/2;this.draggerEl_.halfHeight=y.height/2;y=this.draggerEl_.getBoundingClientRect();
var u=R.clientY,v=Ggc(this.JSC$11303_dragger_,R.clientX);if(v>y.right){var Q=this.currDragItem_.getBoundingClientRect();this.JSC$11303_dragger_.deltaX=v-(v-Q.left)/Q.width*y.width}u=rv5(this.JSC$11303_dragger_,u);u>y.bottom&&(this.JSC$11303_dragger_.deltaY+=u-y.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";Hu5(this,this.currDragItem_);this.currDragItem_.style.display="";_.E4(this.JSC$11303_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new Yu(T2g,
this,R.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11303_dragger_))}else R.preventDefault(),this.JSC$11305_cleanup_()};
_.J.handleDragMove_=function(R){var y=_.E6(this.draggerEl_);y=new _.dc(y.x+this.draggerEl_.halfWidth,y.y+this.draggerEl_.halfHeight);a:{var u=null;if(this.currDragItem_.style.display!="none"){u=this.currDragItem_.parentNode;var v=Zp8(u);if(nJL(y,v))break a}v=this.dragLists_.length;for(var Q=0;Q<v;Q++){var M=this.dragLists_[Q];if(M!=u&&nJL(y,M.dlgBounds_)){u=M;break a}}u=null}if(u){if(u==null)throw Error("Vd");v=0;Q=!1;M=void 0;switch(u.dlgGrowthDirection_){case 0:v=y.y;var K=GJG;var h=rwb;break;case 4:Q=
!0;case 2:v=y.x;K=P8i;h=rwb;break;case 5:Q=!0;case 3:v=y.x,K=W8g,h=dzL}for(var b=null,N,T=_.mn(u),x=T.length,B=0;B<x;B++){var l=T[B];if(l!=this.currDragItem_){var Z=K(l.dlgBounds_);if(Q){var P=UzT(l,y);M===void 0&&(M=P);h(v,Z)&&(N==void 0||P<M||P==M&&(h(Z,N)||Z==N))&&(b=l,N=Z);P<M&&(M=P)}else h(v,Z)&&(N==void 0||h(Z,N))&&(b=l,N=Z)}}K=b!==null&&UzT(b,y)>M?null:b}else K=null;if(!this.dispatchEvent(new Yu(oJg,this,R,this.currDragItem_,this.draggerEl_,this.JSC$11303_dragger_,y,u,K)))return!1;if(u&&u.dlgDragPermission!=
1)this.currDragItem_.parentNode==u&&_.Na5(this.currDragItem_)==K||u.insertBefore(this.currDragItem_,K),this.currDragItem_.style.display="",u.dlgDragHoverClass_&&_.J6(u,u.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",h=this.dragLists_.length,N=0;N<h;N++)v=this.dragLists_[N],v.dlgDragHoverClass_&&_.jp(v,v.dlgDragHoverClass_);u!=this.currHoverList_&&(this.currHoverList_=u,Hu5(this,this.currDragItem_));this.dispatchEvent(new Yu(xzg,this,R,this.currDragItem_,this.draggerEl_,this.JSC$11303_dragger_,
y,u,K));return!1};
_.J.JSC$11305_cleanup_=function(){ZuY(this);this.JSC$11303_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var R=this.dragLists_.length,y=0;y<R;y++)this.dragLists_[y].dlgBounds_=null;R=this.dragItems_.length;for(y=0;y<R;y++)this.dragItems_[y].dlgBounds_=null};
_.J.handleDragEnd_=function(R){if(!this.dispatchEvent(new Yu(B2c,this,R,this.currDragItem_,this.draggerEl_,this.JSC$11303_dragger_)))return!1;ZuY(this);this.dispatchEvent(new Yu(fVc,this,R,this.currDragItem_,this.draggerEl_,this.JSC$11303_dragger_));this.JSC$11305_cleanup_();return!0};
var ZuY=function(R){_.R_(R.JSC$11303_dragger_);var y=R.draggerEl_&&R.draggerEl_.parentElement;R.draggerEl_&&_.BY(R.draggerEl_);R.currDragItem_&&R.currDragItem_.style.display=="none"&&(R.origList_.insertBefore(R.currDragItem_,R.origNextItem_),R.currDragItem_.style.display="");R.currDragItemClasses_&&R.currDragItem_?ZyV(R.currDragItem_,R.currDragItemClasses_||[]):R.currDragItem_&&(R.currDragItem_.style.visibility="");for(var u=R.dragLists_.length,v=0;v<u;v++){var Q=R.dragLists_[v];Q.dlgDragHoverClass_&&
_.jp(Q,Q.dlgDragHoverClass_)}y&&R.dispatchEvent(new Yu(e3g,R,null,R.currDragItem_,R.draggerEl_,R.JSC$11303_dragger_))};
_.J=SH.prototype;_.J.getHandleForDragItem_=function(R){return R};
_.J.handleDragItemMouseover_=function(R){s8(R.currentTarget,this.dragItemHoverClasses_||[])};
_.J.handleDragItemMouseout_=function(R){ZyV(R.currentTarget,this.dragItemHoverClasses_||[])};
_.J.handleDragItemHandleMouseover_=function(R){s8(R.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.J.handleDragItemHandleMouseout_=function(R){ZyV(R.currentTarget,this.dragItemHandleHoverClasses_||[])};
var nJL=function(R,y){return R.x>y.left&&R.x<y.left+y.width&&R.y>y.top&&R.y<y.top+y.height},UzT=function(R,y){R=R.dlgBounds_;
return Math.abs(y.y-(R.top+(R.height-1)/2))},GJG=function(R){return R.top+R.height-1},P8i=function(R){return R.left+R.width-1},W8g=function(R){return R.left||0},rwb=function(R,y){return R<y},dzL=function(R,y){return R>y},Yu=function(R,y,u,v,Q,M){_.ew.call(this,R);
this.event=u;this.currDragItem=v;this.draggerEl=Q;this.JSC$11307_dragger=M};
_.IE(Yu,_.ew);_.IE(ip,_.Z0);var kJG=new _.dc(0,0);ip.prototype.JSC$11311_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
ip.prototype.JSC$11311_onMouseMove=function(R){var y=this.containerIsActuallyContent_?kJG:Bs(fL(this.containerNode_)),u=this.horizontalScrolling_?this.calculateScrollDelta(R.clientX+y.x,this.scrollBounds_.left,this.scrollBounds_.width):0,v=this.calculateScrollDelta(R.clientY+y.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=u;this.scrollDelta_.y=v;!(u=!u&&!v)&&(u=this.constrainScroll_)&&(u=R.clientX+y.x,R=R.clientY+y.y,y=this.containerBounds_,u=!(y.left<=u&&y.left+y.width>=
u&&y.top<=R&&y.top+y.height>=R));u?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
ip.prototype.calculateScrollDelta=function(R,y,u){var v=0;R<y?v=-8:R>y+u&&(v=8);return v};
ip.prototype.disposeInternal=function(){ip.superClass_.disposeInternal.call(this);this.JSC$11309_eventHandler_.dispose();this.scrollTimer_.dispose()};var EJc={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"}}},Lj=EJc;Lj=EJc;var sb={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 $z8=function(){},zI=function(R){if(typeof R=="number"){var y=new $z8;
y.standardOffset_=R;var u=R;if(u==0)u="Etc/GMT";else{var v=["Etc/GMT",u<0?"-":"+"];u=Math.abs(u);v.push(Math.floor(u/60)%100);u%=60;u!=0&&v.push(":",_.ij(u,2));u=v.join("")}y.timeZoneId_=u;u=R;u==0?u="UTC":(v=["UTC",u<0?"+":"-"],u=Math.abs(u),v.push(Math.floor(u/60)%100),u%=60,u!=0&&v.push(":",u),u=v.join(""));R=q75(R);y.tzNames_=[u,u];y.tzNamesExt_={STD_LONG_NAME_GMT:R,STD_GENERIC_LOCATION:R};y.transitions_=[];return y}y=new $z8;y.timeZoneId_=R.id;y.standardOffset_=-R.std_offset;y.tzNames_=R.names;
y.tzNamesExt_=R.names_ext;y.transitions_=R.transitions;return y},q75=function(R){var y=["GMT"];
y.push(R<=0?"+":"-");R=Math.abs(R);y.push(_.ij(Math.floor(R/60)%100,2),":",_.ij(R%60,2));return y.join("")},XNL=function(R,y){y=Date.UTC(y.getUTCFullYear(),y.getUTCMonth(),y.getUTCDate(),y.getUTCHours(),y.getUTCMinutes())/36E5;
for(var u=0;u<R.transitions_.length&&y>=R.transitions_[u];)u+=2;return u==0?0:R.transitions_[u-1]},mz5=function(R,y){R=R.standardOffset_-XNL(R,y);
return R===-1440?0:R};var gN=function(R,y){this.patternParts_=[];this.JSC$11322_dateTimeSymbols_=y||r$;typeof R=="number"?Awg(this,R):Dzw(this,R)},pNY=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],zX=function(R){return R.getHours?R.getHours():0},Dzw=function(R,y){for(Bv8&&(y=y.replace(/\u200f/g,""));y;){for(var u=y,v=0;v<pNY.length;++v){var Q=y.match(pNY[v]);
if(Q){var M=Q[0];y=y.substring(M.length);v==0&&(M=="''"?M="'":(M=M.substring(1,Q[1]=="'"?M.length-1:M.length),M=M.replace(/''/g,"'")));R.patternParts_.push({text:M,type:v});break}}if(u===y)throw Error("Wd`"+y);}};
gN.prototype.format=function(R,y){if(!R)throw Error("Xd");var u=y?(R.getTimezoneOffset()-mz5(y,R))*6E4:0,v=u?new Date(R.getTime()+u):R,Q=v;y&&v.getTimezoneOffset()!=R.getTimezoneOffset()&&(v=new Date(v.getTime()+(v.getTimezoneOffset()-R.getTimezoneOffset())*6E4),Q=new Date(R.getTime()+(u+(u>0?-864E5:864E5))));u=[];for(var M=0;M<this.patternParts_.length;++M){var K=this.patternParts_[M].text;1==this.patternParts_[M].type?u.push(t0V(this,K,R,v,Q,y)):u.push(K)}return u.join("")};
var Awg=function(R,y){if(y<4)var u=R.JSC$11322_dateTimeSymbols_.DATEFORMATS[y];else if(y<8)u=R.JSC$11322_dateTimeSymbols_.TIMEFORMATS[y-4];else if(y<12)u=R.JSC$11322_dateTimeSymbols_.DATETIMEFORMATS[y-8],u=u.replace("{1}",R.JSC$11322_dateTimeSymbols_.DATEFORMATS[y-8]),u=u.replace("{0}",R.JSC$11322_dateTimeSymbols_.TIMEFORMATS[y-8]);else if(y===12)u=R.JSC$11322_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(y===13)u=R.JSC$11322_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{Awg(R,10);return}Dzw(R,u)},g5=function(R,y){y=String(y);
R=R.JSC$11322_dateTimeSymbols_||r$;if(R.ZERODIGIT!==void 0&&!xL8){for(var u=[],v=0;v<y.length;v++){var Q=y.charCodeAt(v);u.push(48<=Q&&Q<=57?String.fromCharCode(R.ZERODIGIT+Q-48):y.charAt(v))}y=u.join("")}return y},xL8=!1,Bv8=!1,aVc=function(R,y,u,v){u=u.getFullYear();
u<=0&&v&&(u=1-u);return g5(R,cwK(u,y))},cwK=function(R,y){y==2&&(R%=100);
R<0&&y++;return _.ij(R,y)},Cj=function(R){if(!(R.getHours&&R.getSeconds&&R.getMinutes))throw Error("Yd");
},S7c=function(R,y){Cj(y);
y=zX(y);return R.JSC$11322_dateTimeSymbols_.AMPMS[y>=12&&y<24?1:0]},t0V=function(R,y,u,v,Q,M){var K=y.length;
switch(y.charAt(0)){case "G":return u=v.getFullYear()>0?1:0,K>=4?R.JSC$11322_dateTimeSymbols_.ERANAMES[u]:R.JSC$11322_dateTimeSymbols_.ERAS[u];case "y":return aVc(R,K,v,!0);case "Y":return u=(new Date(LHg(v.getFullYear(),v.getMonth(),v.getDate(),R.JSC$11322_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,R.JSC$11322_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),K==2&&(u%=100),g5(R,cwK(u,K));case "u":return aVc(R,K,v,!1);case "M":a:switch(u=v.getMonth(),K){case 5:K=R.JSC$11322_dateTimeSymbols_.NARROWMONTHS[u];
break a;case 4:K=R.JSC$11322_dateTimeSymbols_.MONTHS[u];break a;case 3:K=R.JSC$11322_dateTimeSymbols_.SHORTMONTHS[u];break a;default:K=g5(R,_.ij(u+1,K))}return K;case "k":return Cj(Q),g5(R,_.ij(zX(Q)||24,K));case "S":return g5(R,(Q.getMilliseconds()/1E3).toFixed(Math.min(3,K)).slice(2)+(K>3?_.ij(0,K-3):""));case "E":return u=v.getDay(),K>=4?R.JSC$11322_dateTimeSymbols_.WEEKDAYS[u]:R.JSC$11322_dateTimeSymbols_.SHORTWEEKDAYS[u];case "a":return S7c(R,Q);case "b":return S7c(R,Q);case "B":return S7c(R,
Q);case "h":return Cj(Q),g5(R,_.ij(zX(Q)%12||12,K));case "K":return Cj(Q),g5(R,_.ij(zX(Q)%12,K));case "H":return Cj(Q),g5(R,_.ij(zX(Q),K));case "c":a:switch(u=v.getDay(),K){case 5:K=R.JSC$11322_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[u];break a;case 4:K=R.JSC$11322_dateTimeSymbols_.STANDALONEWEEKDAYS[u];break a;case 3:K=R.JSC$11322_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[u];break a;default:K=g5(R,_.ij(u,1))}return K;case "L":a:switch(u=v.getMonth(),K){case 5:K=R.JSC$11322_dateTimeSymbols_.STANDALONENARROWMONTHS[u];
break a;case 4:K=R.JSC$11322_dateTimeSymbols_.STANDALONEMONTHS[u];break a;case 3:K=R.JSC$11322_dateTimeSymbols_.STANDALONESHORTMONTHS[u];break a;default:K=g5(R,_.ij(u+1,K))}return K;case "Q":return u=Math.floor(v.getMonth()/3),K<4?R.JSC$11322_dateTimeSymbols_.SHORTQUARTERS[u]:R.JSC$11322_dateTimeSymbols_.QUARTERS[u];case "d":return g5(R,_.ij(v.getDate(),K));case "m":return Cj(Q),g5(R,_.ij(Q.getMinutes?Q.getMinutes():0,K));case "s":return Cj(Q),g5(R,_.ij(Q.getSeconds(),K));case "v":return(M||zI(u.getTimezoneOffset())).timeZoneId_;
case "V":return R=M||zI(u.getTimezoneOffset()),K<=2?R.timeZoneId_:XNL(R,u)>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 u=LHg(Q.getFullYear(),Q.getMonth(),Q.getDate(),R.JSC$11322_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,R.JSC$11322_dateTimeSymbols_.FIRSTDAYOFWEEK),g5(R,_.ij(Math.floor(Math.round((u-(new Date((new Date(u)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,K));case "z":return R=M||zI(u.getTimezoneOffset()),K<4?R.tzNames_[XNL(R,u)>0?2:0]:R.tzNames_[XNL(R,u)>0?3:1];case "Z":return y=M||zI(u.getTimezoneOffset()),K<4?(K=-mz5(y,u),R=[K<0?"-":"+"],K=Math.abs(K),R.push(_.ij(Math.floor(K/60)%100,2),_.ij(K%60,2)),K=R.join("")):K=g5(R,q75(mz5(y,u))),K;default:return""}};var Y7G=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,L88=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,Q4E=function(R){this.patternParts_=[];this.JSC$11331_dateTimeSymbols_=r$;if(typeof R=="number"){R>11&&(R=10);if(R<4)var y=this.JSC$11331_dateTimeSymbols_.DATEFORMATS[R];else R<8?y=this.JSC$11331_dateTimeSymbols_.TIMEFORMATS[R-4]:(y=this.JSC$11331_dateTimeSymbols_.DATETIMEFORMATS[R-8],y=y.replace("{1}",this.JSC$11331_dateTimeSymbols_.DATEFORMATS[R-8]),y=y.replace("{0}",this.JSC$11331_dateTimeSymbols_.TIMEFORMATS[R-
8]));sXi(this,y)}else sXi(this,R)},sXi=function(R,y){for(var u=!1,v="",Q=0;Q<y.length;Q++){var M=y.charAt(Q);
if(Y7G.test(M))for(v.length>0&&(R.patternParts_.push({text:v,count:0,abutStart:!1,numeric:!1}),v=""),R.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});Q<y.length-1&&y.charAt(Q+1)==" ";)Q++;else if(u)M=="'"?Q+1<y.length&&y.charAt(Q+1)=="'"?(v+="'",Q++):u=!1:v+=M;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(M)>=0){v.length>0&&(R.patternParts_.push({text:v,count:0,abutStart:!1,numeric:!1}),v="");for(var K=y.charAt(Q),h=Q+1;h<y.length&&y.charAt(h)==K;)h++;K=h-Q;K<=0?h=!1:(h="MydhHmsSDkK".indexOf(M),
h=h>0||h==0&&K<3);R.patternParts_.push({text:M,count:K,abutStart:!1,numeric:h});Q+=K-1}else M=="'"?Q+1<y.length&&y.charAt(Q+1)=="'"?(v+="'",Q++):u=!0:v+=M}v.length>0&&R.patternParts_.push({text:v,count:0,abutStart:!1,numeric:!1});y=!1;for(u=0;u<R.patternParts_.length;u++)R.patternParts_[u].numeric?!y&&u+1<R.patternParts_.length&&R.patternParts_[u+1].numeric&&(y=!0,R.patternParts_[u].abutStart=!0):y=!1};
Q4E.prototype.parse=function(R,y,u){var v=!1,Q=!1;u&&(v=u.predictive||!1,Q=u.validate||!1);if(v)for(u=0;u<this.patternParts_.length;u++){var M=this.patternParts_[u];if(M.count>0&&("abBhHkKm".indexOf(M.text.charAt(0))<0||M.count>2||M.abutStart))throw Error("Zd`"+M.text.charAt(0));}M=new z3Y;u=[0];M.dayPeriodIndex=-1;for(var K=0;K<this.patternParts_.length&&!(v&&u[0]>=R.length);K++){if(this.patternParts_[K].count==0){a:{var h=R;var b=u,N=this.patternParts_[K],T=v;if(N.text.match(Y7G)!=null){if(N=b[0],
gJw(h,b),b[0]>N){h=!0;break a}}else{if(h.indexOf(N.text,b[0])==b[0]){b[0]+=N.text.length;h=!0;break a}if(T&&N.text.indexOf(h.substring(b[0]))==0){b[0]+=h.length-b[0];h=!0;break a}}h=!1}if(h)continue;return 0}if(this.patternParts_[K].abutStart){a:{b=R;N=u;T=K;var x=N[0],B=0;for(h=T;h<this.patternParts_.length;h++){var l=this.patternParts_[h],Z=l.count;if(Z===0)break;if(h==T&&(Z-=B,B++,Z==0)){h=0;break a}var P=h>T&&l.numeric,k=N[0];if(!C85(this,b,N,l,Z,M,!1)||P&&N[0]-k<Z)h=T-1,N[0]=x}h-=T}if(h<=0)return 0;
K+=h-1}else if(!C85(this,R,u,this.patternParts_[K],0,M,v))return 0}a:{R=Q;if(y==null)throw Error("$d");M.era!=void 0&&M.year!=void 0&&M.era==0&&M.year>0&&(M.year=-(M.year-1));M.year!=void 0&&y.setFullYear(M.year);v=y.getDate();y.setDate(1);M.month!=void 0&&y.setMonth(M.month);M.day!=void 0?y.setDate(M.day):(Q=d98(y.getFullYear(),y.getMonth()),y.setDate(v>Q?Q:v));typeof y.setHours==="function"&&(M.hours==void 0&&(M.hours=y.getHours()),M.hours<12&&(M.ampm!=void 0&&M.ampm>0?M.hours+=12:M.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(M.dayPeriodName)||["night1","night2"].includes(M.dayPeriodName)&&M.hours>=6)&&(M.hours+=12)),y.setHours(M.hours));typeof y.setMinutes==="function"&&M.minutes!=void 0&&y.setMinutes(M.minutes);typeof y.setSeconds==="function"&&M.seconds!=void 0&&y.setSeconds(M.seconds);typeof y.setMilliseconds==="function"&&M.milliseconds!=void 0&&y.setMilliseconds(M.milliseconds);if(R&&(M.year&&M.year!=y.getFullYear()||M.month&&M.month!=
y.getMonth()||M.day&&M.day!=y.getDate()||M.hours&&M.hours>=24||M.minutes&&M.minutes>=60||M.seconds&&M.seconds>=60||M.milliseconds&&M.milliseconds>=1E3))y=!1;else{M.tzOffset!=void 0&&y.setTime(y.getTime()+(M.tzOffset-y.getTimezoneOffset())*60*1E3);M.ambiguousYear&&(R=new Date,R.setFullYear(R.getFullYear()-80),y.getTime()<R.getTime()&&y.setFullYear(R.getFullYear()+100));if(M.dayOfWeek!=void 0)if(M.day==void 0)M=(7+M.dayOfWeek-y.getDay())%7,M>3&&(M-=7),R=y.getMonth(),y.setDate(y.getDate()+M),y.getMonth()!=
R&&y.setDate(y.getDate()+(M>0?-7:7));else if(M.dayOfWeek!=y.getDay()){y=!1;break a}y=!0}}return y?u[0]:0};
var C85=function(R,y,u,v,Q,M,K){gJw(y,u);if(v.numeric&&Q>0&&u[0]+Q>y.length)return!1;switch(v.text.charAt(0)){case "G":return RQ(y,u,[R.JSC$11331_dateTimeSymbols_.ERAS],function(h){return M.era=h}),!0;
case "M":case "L":return R4G(R,y,u,Q,v,M);case "E":return RQ(y,u,[R.JSC$11331_dateTimeSymbols_.WEEKDAYS,R.JSC$11331_dateTimeSymbols_.SHORTWEEKDAYS],function(h){return M.dayOfWeek=h});
case "B":case "b":return Q=[],R=[[].concat(R.JSC$11331_dateTimeSymbols_.AMPMS)],Q.push("isAm"),Q.push("isPm"),y=RQ(y,u,R,function(h){return M.dayPeriodIndex=h},K),M.dayPeriodName=Q[M.dayPeriodIndex],K?y:!0;
case "a":return y=RQ(y,u,[R.JSC$11331_dateTimeSymbols_.AMPMS],function(h){return M.ampm=h},K),K?y:!0;
case "y":return yd5(R,y,u,v,Q,M);case "Q":return RQ(y,u,[R.JSC$11331_dateTimeSymbols_.QUARTERS,R.JSC$11331_dateTimeSymbols_.SHORTQUARTERS],function(h){M.month=h*3;M.day=1});
case "d":return y5(R,y,u,v,Q,function(h){M.day=h}),!0;
case "S":return ugc(R,y,u,Q,M);case "h":case "K":case "H":case "k":return y=y5(R,y,u,v,Q,function(h){M.hours=v.text.charAt(0)==="h"&&h===12?0:h},K),K?y:!0;
case "m":return y=y5(R,y,u,v,Q,function(h){M.minutes=h},K),K?y:!0;
case "s":return y5(R,y,u,v,Q,function(h){M.seconds=h}),!0;
case "z":case "Z":case "v":return vig(R,y,u,M);default:return!1}},yd5=function(R,y,u,v,Q,M){var K=u[0];
Q=u3(R,y,u,Q);Q===null&&(Q=u3(R,y,u,0,!0));if(Q===null)return!1;Q>=0&&u[0]-K==2&&v.count==2?(R=Q,y=(new Date).getFullYear()-80,u=y%100,M.ambiguousYear=R==u,R+=Math.floor(y/100)*100+(R<u?100:0),M.year=R):M.year=Q;return!0},R4G=function(R,y,u,v,Q,M){return Q.numeric&&y5(R,y,u,Q,v,function(K){M.month=K-1})?!0:RQ(y,u,[R.JSC$11331_dateTimeSymbols_.MONTHS,
R.JSC$11331_dateTimeSymbols_.STANDALONEMONTHS,R.JSC$11331_dateTimeSymbols_.SHORTMONTHS,R.JSC$11331_dateTimeSymbols_.STANDALONESHORTMONTHS],function(K){M.month=K})},ugc=function(R,y,u,v,Q){var M=u[0];
R=u3(R,y,u,v);if(R===null)return!1;u=u[0]-M;Q.milliseconds=u<3?R*Math.pow(10,3-u):Math.round(R/Math.pow(10,u-3));return!0},vig=function(R,y,u,v){y.indexOf("GMT",u[0])==u[0]&&(u[0]+=3);
if(u[0]>=y.length)return v.tzOffset=0,!0;var Q=u[0],M=u3(R,y,u,0,!0);if(M===null)return!1;if(u[0]<y.length&&y.charAt(u[0])==":"){var K=M*60;u[0]++;M=u3(R,y,u,0);if(M===null)return!1;K+=M}else K=M,K=K<24&&u[0]-Q<=3?K*60:K%100+K/100*60;v.tzOffset=-K;return!0},y5=function(R,y,u,v,Q,M,K){K=K||!1;
var h=u[0];R=u3(R,y,u,Q);if(R===null)return!1;if(K&&u[0]-h<v.count){if(u[0]<y.length)return!1;R*=Math.pow(10,v.count-(u[0]-h))}M(R);return!0},RQ=function(R,y,u,v,Q){Q=Q||!1;
for(var M,K=0;K<u.length;K++){M=y;for(var h=u[K],b=Q,N=0,T=null,x=R.substring(M[0]).toLowerCase(),B=0;B<h.length;B++){var l=h[B].toLowerCase();if(b&&l.indexOf(x)==0){N=x.length;T=B;break}h[B].length>N&&x.indexOf(l)==0&&(N=h[B].length,T=B)}T!==null&&(M[0]+=N);M=T;if(M!==null)return v(M),!0}return!1},gJw=function(R,y){(R=R.substring(y[0]).match(L88))&&(y[0]+=R[0].length)},u3=function(R,y,u,v,Q){y=v>0?y.substring(0,u[0]+v):y;
Q=Q||!1;if(R.JSC$11331_dateTimeSymbols_.ZERODIGIT){v=[];for(var M=u[0];M<y.length;M++){var K=y.charCodeAt(M)-R.JSC$11331_dateTimeSymbols_.ZERODIGIT;v.push(0<=K&&K<=9?String.fromCharCode(K+48):y.charAt(M))}y=v.join("")}else y=y.substring(u[0]);R=y.match(new RegExp("^"+(Q?"[+-]?":"")+"\\d+"));if(!R)return null;u[0]+=R[0].length;return parseInt(R[0],10)},z3Y=function(){};
z3Y.prototype.ambiguousYear=!1;_.Qc5={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 jcL={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"},Mbg=jcL,Jd5=jcL;Jd5=Mbg=jcL;var ikK,vO,jt,rC4,Q5,Vb5;
_.Ys=function(R,y,u,v){var Q;if(Q=y){a:if(y&&y.length===3){for(Q=0;Q<3;Q++){var M=y[Q];if(M<"A"||M>"Z"&&M<"a"||M>"z"){Q=!1;break a}}Q=!0}else Q=!1;Q=!Q}if(Q)throw new TypeError("ae");this.intlCurrencyCode_=y?y.toUpperCase():null;this.currencyStyle_=u||0;this.overrideNumberFormatSymbols_=v||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_=vO(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:Q5(this,vO(this).DECIMAL_PATTERN);break;case 2:Q5(this,vO(this).SCIENTIFIC_PATTERN);break;case 3:Q5(this,vO(this).PERCENT_PATTERN);break;case 4:R=vO(this).CURRENCY_PATTERN;y=["0"];if(u=
sb[jt(this)]){u=u[0]&7;if(u>0)for(y.push("."),v=0;v<u;v++)y.push("0");R=R.replace(/0.00/g,y.join(""))}Q5(this,R);break;case 5:Vb5(this,1);break;case 6:Vb5(this,2);break;default:throw Error("de");}else Q5(this,R)};
ikK=!1;vO=function(R){return R.overrideNumberFormatSymbols_||(ikK?Jd5:Mbg)};
jt=function(R){return R.intlCurrencyCode_||vO(R).DEF_CURRENCY_CODE};
rC4=function(R,y){if(y>308)throw Error("ce`"+y);R.maximumFractionDigits_=y;return R};
Q5=function(R,y){var u=[0];R.positivePrefix_=KNY(R,y,u);for(var v=u[0],Q=-1,M=0,K=0,h=0,b=-1,N=y.length,T=!0;u[0]<N&&T;u[0]++)switch(y.charAt(u[0])){case "#":K>0?h++:M++;b>=0&&Q<0&&b++;break;case "0":if(h>0)throw Error("je`"+y);K++;b>=0&&Q<0&&b++;break;case ",":b>0&&R.groupingArray_.push(b);b=0;break;case ".":if(Q>=0)throw Error("ke`"+y);Q=M+K+h;break;case "E":if(R.useExponentialNotation_)throw Error("le`"+y);R.useExponentialNotation_=!0;R.minExponentDigits_=0;u[0]+1<N&&y.charAt(u[0]+1)=="+"&&(u[0]++,
R.useSignForPositiveExponent_=!0);for(;u[0]+1<N&&y.charAt(u[0]+1)=="0";)u[0]++,R.minExponentDigits_++;if(M+K<1||R.minExponentDigits_<1)throw Error("me`"+y);T=!1;break;default:u[0]--,T=!1}K==0&&M>0&&Q>=0&&(K=Q,K==0&&K++,h=M-K,M=K-1,K=1);if(Q<0&&h>0||Q>=0&&(Q<M||Q>M+K)||b==0)throw Error("ne`"+y);h=M+K+h;R.maximumFractionDigits_=Q>=0?h-Q:0;Q>=0&&(R.minimumFractionDigits_=M+K-Q,R.minimumFractionDigits_<0&&(R.minimumFractionDigits_=0));R.minimumIntegerDigits_=(Q>=0?Q:h)-M;R.useExponentialNotation_&&(R.maximumIntegerDigits_=
M+R.minimumIntegerDigits_,R.maximumFractionDigits_==0&&R.minimumIntegerDigits_==0&&(R.minimumIntegerDigits_=1));R.groupingArray_.push(Math.max(0,b));R.decimalSeparatorAlwaysShown_=Q==0||Q==h;v=u[0]-v;R.positiveSuffix_=KNY(R,y,u);u[0]<y.length&&y.charAt(u[0])==";"?(u[0]++,R.multiplier_!=1&&(R.negativePercentSignExpected_=!0),R.negativePrefix_=KNY(R,y,u),u[0]+=v,R.negativeSuffix_=KNY(R,y,u)):(R.negativePrefix_+=R.positivePrefix_,R.negativeSuffix_+=R.positiveSuffix_)};
Vb5=function(R,y){R.compactStyle_=y;Q5(R,vO(R).DECIMAL_PATTERN);R.minimumFractionDigits_=0;rC4(R,2);if(R.minimumFractionDigits_>0)throw Error("be");R.significantDigits_=2};
_.Ys.prototype.parse=function(R,y){y=y||[0];if(this.compactStyle_!==0)throw Error("ee");R=R.replace(/ |\u202f/g,"\u00a0");var u=R.indexOf(this.positivePrefix_,y[0])==y[0],v=R.indexOf(this.negativePrefix_,y[0])==y[0];u&&v&&(this.positivePrefix_.length>this.negativePrefix_.length?v=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(u=!1));u?y[0]+=this.positivePrefix_.length:v&&(y[0]+=this.negativePrefix_.length);if(R.indexOf(vO(this).INFINITY,y[0])==y[0]){y[0]+=vO(this).INFINITY.length;var Q=
Infinity}else{Q=R;var M=!1,K=!1,h=!1,b=-1,N=1,T=vO(this).DECIMAL_SEP,x=vO(this).GROUP_SEP,B=vO(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("fe");x=x.replace(/\u202f/g,"\u00a0");for(var l="";y[0]<Q.length;y[0]++){var Z=Q.charAt(y[0]),P=Ir5(this,Z);if(P>=0&&P<=9)l+=P,h=!0;else if(Z==T.charAt(0)){if(M||K)break;l+=".";M=!0}else if(Z==x.charAt(0)&&("\u00a0"!=x.charAt(0)||y[0]+1<Q.length&&Ir5(this,Q.charAt(y[0]+1))>=0)){if(M||K)break}else if(Z==B.charAt(0)){if(K)break;l+="E";K=!0;b=y[0]}else if(Z==
"+"||Z=="-"){if(h&&b!=y[0]-1)break;l+=Z}else if(this.multiplier_==1&&Z==vO(this).PERCENT.charAt(0)){if(N!=1)break;N=100;if(h){y[0]++;break}}else if(this.multiplier_==1&&Z==vO(this).PERMILL.charAt(0)){if(N!=1)break;N=1E3;if(h){y[0]++;break}}else break}this.multiplier_!=1&&(N=this.multiplier_);Q=parseFloat(l)/N}if(u){if(R.indexOf(this.positiveSuffix_,y[0])!=y[0])return NaN;y[0]+=this.positiveSuffix_.length}else if(v){if(R.indexOf(this.negativeSuffix_,y[0])!=y[0])return NaN;y[0]+=this.negativeSuffix_.length}return v?
-Q:Q};
_.Ys.prototype.format=function(R){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ge");if(isNaN(R))return vO(this).NAN;var y=[];var u=R;if(this.compactStyle_==0)u=Mv;else{u=Math.abs(u);var v=h4c(this,u<=1?0:bkL(u)).divisorBase;u=h4c(this,v+bkL(FNT(this,Jj(u,-v)).intValue))}R=Jj(R,-u.divisorBase);(v=R<0||R==0&&1/R<0)?u.negative_prefix?y.push(u.negative_prefix):(y.push(u.prefix),y.push(this.negativePrefix_)):(y.push(u.prefix),y.push(this.positivePrefix_));if(isFinite(R))if(R*=
v?-1:1,R*=this.multiplier_,this.useExponentialNotation_){var Q=R;if(Q==0)wy5(this,Q,this.minimumIntegerDigits_,y),NZL(this,0,y);else{var M=Math.floor(Math.log(Q)/Math.log(10)+2E-15);Q=Jj(Q,-M);var K=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(K=M%this.maximumIntegerDigits_,K<0&&(K=this.maximumIntegerDigits_+K),Q=Jj(Q,K),M-=K,K=1):this.minimumIntegerDigits_<1?(M++,Q=Jj(Q,-1)):(M-=this.minimumIntegerDigits_-1,Q=Jj(Q,this.minimumIntegerDigits_-
1));wy5(this,Q,K,y);NZL(this,M,y)}}else wy5(this,R,this.minimumIntegerDigits_,y);else y.push(vO(this).INFINITY);v?u.negative_suffix?y.push(u.negative_suffix):(isFinite(R)&&y.push(u.suffix),y.push(this.negativeSuffix_)):(isFinite(R)&&y.push(u.suffix),y.push(this.positiveSuffix_));return y.join("")};
var FNT=function(R,y){var u=Jj(y,R.maximumFractionDigits_);R.significantDigits_>0&&(u=TZc(u,R.significantDigits_,R.maximumFractionDigits_));u=Math.round(u);if(isFinite(u)){var v=Math.floor(Jj(u,-R.maximumFractionDigits_));u=Math.floor(u-Jj(v,R.maximumFractionDigits_));if(u<0||u>=Jj(1,R.maximumFractionDigits_))v=Math.round(y),u=0}else v=y,u=0;return{intValue:v,fracValue:u}},wy5=function(R,y,u,v){if(R.minimumFractionDigits_>R.maximumFractionDigits_)throw Error("ge");
v||(v=[]);y=FNT(R,y);var Q=y.intValue,M=y.fracValue,K=R.minimumFractionDigits_>0||M>0||!1;y=R.minimumFractionDigits_;K&&(y=R.minimumFractionDigits_);for(var h="",b=Q;b>1E20;)h="0"+h,b=Math.round(Jj(b,-1));h=b+h;var N=vO(R).DECIMAL_SEP;b=vO(R).ZERO_DIGIT.codePointAt(0);var T=h.length,x=0;if(Q>0||u>0){for(Q=T;Q<u;Q++)v.push(String.fromCodePoint(b));if(R.groupingArray_.length>=2)for(u=1;u<R.groupingArray_.length;u++)x+=R.groupingArray_[u];u=T-x;if(u>0){Q=R.groupingArray_;x=T=0;for(var B,l=vO(R).GROUP_SEP,
Z=h.length,P=0;P<Z;P++)if(v.push(String.fromCodePoint(b+Number(h.charAt(P)))),Z-P>1)if(B=Q[x],P<u){var k=u-P;(B===1||B>0&&k%B===1)&&v.push(l)}else x<Q.length&&(P===u?x+=1:B===P-u-T+1&&(v.push(l),T+=B,x+=1))}else{u=h;h=R.groupingArray_;Q=vO(R).GROUP_SEP;B=u.length;l=[];for(T=h.length-1;T>=0&&B>0;T--){x=h[T];for(Z=0;Z<x&&B-Z-1>=0;Z++)l.push(String.fromCodePoint(b+Number(u.charAt(B-Z-1))));B-=x;B>0&&l.push(Q)}v.push.apply(v,l.reverse())}}else K||v.push(String.fromCodePoint(b));(R.decimalSeparatorAlwaysShown_||
K)&&v.push(N);M=String(M);K=M.split("e+");K.length==2&&(M=String(TZc(parseFloat(K[0]),R.significantDigits_,1)),M=M.replace(".",""),M+=(0,_.COc)("0",parseInt(K[1],10)-M.length+1));R.maximumFractionDigits_+1>M.length&&(M="1"+(0,_.COc)("0",R.maximumFractionDigits_-M.length)+M);for(R=M.length;M.charAt(R-1)=="0"&&R>y+1;)R--;for(y=1;y<R;y++)v.push(String.fromCodePoint(b+Number(M.charAt(y))))},NZL=function(R,y,u){u.push(vO(R).EXP_SYMBOL);
y<0?(y=-y,u.push(vO(R).MINUS_SIGN)):R.useSignForPositiveExponent_&&u.push(vO(R).PLUS_SIGN);y=""+y;for(var v=vO(R).ZERO_DIGIT,Q=y.length;Q<R.minExponentDigits_;Q++)u.push(v);R=v.codePointAt(0)-oiT;for(v=0;v<y.length;v++)u.push(String.fromCodePoint(R+y.codePointAt(v)))},Ir5=function(R,y){y=y.codePointAt(0);
if(48<=y&&y<58)return y-48;R=vO(R).ZERO_DIGIT.codePointAt(0);return R<=y&&y<R+10?y-R:-1},oiT="0".codePointAt(0),KNY=function(R,y,u){for(var v="",Q=!1,M=y.length;u[0]<M;u[0]++){var K=y.charAt(u[0]);
if(K=="'")u[0]+1<M&&y.charAt(u[0]+1)=="'"?(u[0]++,v+="'"):Q=!Q;else if(Q)v+=K;else switch(K){case "#":case "0":case ",":case ".":case ";":return v;case "\u00a4":if(u[0]+1<M&&y.charAt(u[0]+1)=="\u00a4")u[0]++,v+=jt(R);else switch(R.currencyStyle_){case 0:K=jt(R);v+=K in sb?sb[K][1]:K;break;case 2:K=jt(R);var h=sb[K];v+=h?K==h[1]?K:K+" "+h[1]:K;break;case 1:K=jt(R),v+=K in sb?sb[K][2]:K}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;v+=vO(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;v+=vO(R).PERMILL;break;default:v+=K}}return v},Mv={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},h4c=function(R,y){R=R.compactStyle_==1?Lj.COMPACT_DECIMAL_SHORT_PATTERN:Lj.COMPACT_DECIMAL_LONG_PATTERN;R==null&&(R=Lj.COMPACT_DECIMAL_SHORT_PATTERN);if(y<3)return Mv;y=Math.min(14,y);var u=R[Jj(1,y)];for(--y;!u&&y>=3;)u=R[Jj(1,y)],y--;if(!u)return Mv;u=u.other;var v=R="",Q=u.indexOf(";");Q>=0&&(u=u.substring(0,Q),Q=u.substring(Q+1))&&(v=/([^0]*)(0+)(.*)/.exec(Q),R=v[1],v=v[3]);return u&&u!="0"?(u=/([^0]*)(0+)(.*)/.exec(u))?{divisorBase:y+
1-(u[2].length-1),negative_prefix:R,negative_suffix:v,prefix:u[1],suffix:u[3]}:Mv:Mv},bkL=function(R){if(!isFinite(R))return R>0?R:0;
for(var y=0;(R/=10)>=1;)y++;return y},Jj=function(R,y){if(!R||!isFinite(R)||y==0)return R;
R=String(R).split("e");return parseFloat(R[0]+"e"+(parseInt(R[1]||0,10)+y))},xkY=function(R,y){return R&&isFinite(R)?Jj(Math.round(Jj(R,y)),-y):R},TZc=function(R,y,u){if(!R)return R;
y=y-bkL(R)-1;return y<-u?xkY(R,-u):xkY(R,y)};var BZ5=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"},frb=BZ5;
frb=BZ5;var e4i;e4i=function(R,y){var u=R|0;if(void 0===y){y=Math;var v=y.min,Q=R+"",M=Q.indexOf(".");y=v.call(y,M===-1?0:Q.length-M-1,3)}v=Math.pow(10,y);R={v:y,f:(R*v|0)%v};return u==1&&R.v==0?"one":"other"};
_.Cz=e4i;_.Cz=e4i;var lr8,Okg,Zk5,niY,GN5;_.Hkb=function(R){this.JSC$11374_pattern_=R;this.parsedPattern_=this.literals_=this.initialLiterals_=null;R=Mbg;var y=Lj;if(lr8!==R||Okg!==y)lr8=R,Okg=y,Zk5=new _.Ys(1);this.numberFormatter_=Zk5};
lr8=null;Okg=null;Zk5=null;niY=RegExp("'([{}#].*?)'","g");GN5=RegExp("''","g");
_.Hkb.prototype.format=function(R){if(this.JSC$11374_pattern_){this.initialLiterals_=[];var y=rdg(this,this.JSC$11374_pattern_);this.parsedPattern_=PXi(this,y);this.JSC$11374_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.Az(this.initialLiterals_),y=[],WNg(this,this.parsedPattern_,R,!1,y),R=y.join("");this.literals_.length>0;)R=R.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else R="";return R};
var WNg=function(R,y,u,v,Q){for(var M=0;M<y.length;M++)switch(y[M].type){case 4:Q.push(y[M].value);break;case 3:var K=y[M].value;var h=R,b=Q,N=u[K];N===void 0?b.push("Undefined parameter - "+K):(h.literals_.push(N),b.push(h.buildPlaceholder_(h.literals_)));break;case 2:K=y[M].value;h=R;b=u;N=v;var T=Q,x=K.argumentIndex;b[x]===void 0?T.push("Undefined parameter - "+x):(x=K[b[x]],x===void 0&&(x=K.other),WNg(h,x,b,N,T));break;case 0:K=y[M].value;dkY(R,K,u,_.Cz,v,Q);break;case 1:K=y[M].value,dkY(R,K,
u,frb,v,Q)}},dkY=function(R,y,u,v,Q,M){var K=y.argumentIndex,h=y.argumentOffset,b=+u[K];
isNaN(b)?M.push("Undefined or invalid parameter - "+K):(h=b-h,K=y[u[K]],K===void 0&&(v=v(Math.abs(h)),K=y[v],K===void 0&&(K=y.other)),y=[],WNg(R,K,u,Q,y),u=y.join(""),Q?M.push(u):(R=R.numberFormatter_.format(h),M.push(u.replace(/#/g,R))))},rdg=function(R,y){var u=R.initialLiterals_,v=R.buildPlaceholder_.bind(R);
y=y.replace(GN5,function(){u.push("'");return v(u)});
return y=y.replace(niY,function(Q,M){u.push(M);return v(u)})},Ukg=function(R){var y=0,u=[],v=[],Q=/[{}]/g;
Q.lastIndex=0;for(var M;M=Q.exec(R);){var K=M.index;M[0]=="}"?(u.pop(),u.length==0&&(M={type:1},M.value=R.substring(y,K),v.push(M),y=K+1)):(u.length==0&&(y=R.substring(y,K),y!=""&&v.push({type:0,value:y}),y=K+1),u.push("{"))}R=R.substring(y);R!=""&&v.push({type:0,value:R});return v},kNc=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,EiK=/^\s*(\w+)\s*,\s*selectordinal\s*,/,$k5=/^\s*(\w+)\s*,\s*select\s*,/,PXi=function(R,y){var u=[];
y=Ukg(y);for(var v=0;v<y.length;v++){var Q={};if(0==y[v].type)Q.type=4,Q.value=y[v].value;else if(1==y[v].type){var M=y[v].value;switch(kNc.test(M)?0:EiK.test(M)?1:$k5.test(M)?2:/^\s*\w+\s*/.test(M)?3:5){case 2:Q.type=2;Q.value=q4g(R,y[v].value);break;case 0:Q.type=0;Q.value=Xyg(R,y[v].value);break;case 1:Q.type=1;Q.value=mk5(R,y[v].value);break;case 3:Q.type=3,Q.value=y[v].value}}u.push(Q)}return u},q4g=function(R,y){var u="";
y=y.replace($k5,function(h,b){u=b;return""});
var v={};v.argumentIndex=u;y=Ukg(y);for(var Q=0;Q<y.length;){var M=y[Q].value;Q++;var K=void 0;1==y[Q].type&&(K=PXi(R,y[Q].value));v[M.replace(/\s/g,"")]=K;Q++}return v},Xyg=function(R,y){var u="",v=0;
y=y.replace(kNc,function(b,N,T){u=N;T&&(v=parseInt(T,10));return""});
var Q={};Q.argumentIndex=u;Q.argumentOffset=v;y=Ukg(y);for(var M=0;M<y.length;){var K=y[M].value;M++;var h=void 0;1==y[M].type&&(h=PXi(R,y[M].value));Q[K.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=h;M++}return Q},mk5=function(R,y){var u="";
y=y.replace(EiK,function(h,b){u=b;return""});
var v={};v.argumentIndex=u;v.argumentOffset=0;y=Ukg(y);for(var Q=0;Q<y.length;){var M=y[Q].value;Q++;var K=void 0;1==y[Q].type&&(K=PXi(R,y[Q].value));v[M.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=K;Q++}return v};
_.Hkb.prototype.buildPlaceholder_=function(R){return"\ufddf_"+(R.length-1).toString(10)+"_"};var Adg;
Adg={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 l5v=function(){this.rdtfSymbols_=DkK||Adg;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
l5v.prototype.format=function(R,y){a:{y=pyY(this,y);switch(this.style_){case 2:if(y.NARROW!=void 0){y=y.NARROW;break a}case 1:if(y.SHORT!=void 0){y=y.SHORT;break a}default:y=y.LONG;break a}y=void 0}if(!this.alwaysNumeric_&&y&&y.R&&y.R[""+R])R=y.R[""+R];else if(y){var u=Math.abs(R);R=(new _.Hkb("{N,plural,"+(R>0||R==0&&1/R==Infinity?y.F:y.P)+"}")).format({N:u})}else R="";return R};
var pyY=function(R,y){switch(y){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 tbK=function(R,y,u,v,Q,M,K,h){this.x0=R;this.y0=y;this.x1=u;this.y1=v;this.x2=Q;this.y2=M;this.x3=K;this.y3=h};
tbK.prototype.clone=function(){return new tbK(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
tbK.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 cdT=function(R,y){if(y==0)return R.x0;if(y==1)return R.x3;var u=rx(R.x0,R.x1,y),v=rx(R.x1,R.x2,y);R=rx(R.x2,R.x3,y);u=rx(u,v,y);v=rx(v,R,y);return rx(u,v,y)},arT=function(R,y){var u=(y-R.x0)/(R.x3-R.x0);
if(u<=0)return 0;if(u>=1)return 1;for(var v=0,Q=1,M=0,K=0;K<8;K++){M=cdT(R,u);var h=(cdT(R,u+1E-6)-M)/1E-6;if(Math.abs(M-y)<1E-6)return u;if(Math.abs(h)<1E-6)break;else M<y?v=u:Q=u,u-=(M-y)/h}for(K=0;Math.abs(M-y)>1E-6&&K<8;K++)M<y?(v=u,u=(u+Q)/2):(Q=u,u=(u+v)/2),M=cdT(R,u);return u};var V5=function(){_.nT.call(this);this.JSC$11395_name_="closure_frame"+S4b++;this.iframesForDisposal_=[];Y4b[this.JSC$11395_name_]=this},i3;
_.IE(V5,_.nT);var Y4b={},S4b=0,LNb=function(R,y){var u=fL(R);MSc(y,function(v,Q){Array.isArray(v)||(v=[v]);_.cu(v,function(M){M=u.JSC$9295_createDom("INPUT",{type:"hidden",name:Q,value:M});R.appendChild(M)})})};
_.J=V5.prototype;_.J.JSC$11397_form_=null;_.J.JSC$11397_iframe_=null;_.J.iframeName_=null;_.J.nextIframeId_=0;_.J.JSC$11397_active_=!1;_.J.complete_=!1;_.J.success_=!1;_.J.lastContent_=null;_.J.JSC$11397_lastErrorCode_=0;_.J.iframeDisposalTimer_=null;
_.J.send=function(R,y,u,v){if(this.JSC$11397_active_)throw Error("oe");R=new _.Cv(R);y=y?y.toUpperCase():"GET";u&&_.FW(R);i3||(i3=_.UO("FORM"),i3.acceptCharset="utf-8",u=i3.style,u.position="absolute",u.visibility="hidden",u.top=u.left="-10px",u.width=u.height="10px",u.overflow="hidden",document.body.appendChild(i3));this.JSC$11397_form_=i3;y=="GET"&&LNb(this.JSC$11397_form_,R.JSC$10001_queryData_);v&&LNb(this.JSC$11397_form_,v);u=R.toString();u=aIW(u);v=this.JSC$11397_form_;u=_.mK(nK(u));u!==void 0&&
(v.action=u);this.JSC$11397_form_.method=y;scc(this);z4i(this)};
_.J.abort=function(R){if(this.JSC$11397_active_){var y=K2(this);if(y)if(O8(y))y.removeAllListeners(void 0);else if(y=Zd(y)){var u=0,v;for(v in y.listeners)for(var Q=y.listeners[v].concat(),M=0;M<Q.length;++M)dZ(Q[M])&&++u}this.success_=this.JSC$11397_active_=this.complete_=!1;this.JSC$11397_lastErrorCode_=R||7;this.dispatchEvent("abort");giY(this)}};
_.J.disposeInternal=function(){this.JSC$11397_active_&&this.abort();V5.superClass_.disposeInternal.call(this);this.JSC$11397_iframe_&&CX5(this);z4i(this);this.JSC$11397_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11397_form_=null;this.JSC$11397_lastErrorCode_=0;delete Y4b[this.JSC$11395_name_]};
_.J.isComplete=function(){return this.complete_};
_.J.isSuccess=function(){return this.success_};
_.J.isActive=function(){return this.JSC$11397_active_};
_.J.getResponseText=function(){return this.lastContent_};
_.J.getLastError=function(){return _.q6T(this.JSC$11397_lastErrorCode_)};
var scc=function(R){R.JSC$11397_active_=!0;R.complete_=!1;R.JSC$11397_lastErrorCode_=0;R.iframeName_=R.JSC$11395_name_+"_"+(R.nextIframeId_++).toString(36);R.JSC$11397_iframe_=fL(R.JSC$11397_form_).JSC$9295_createDom("IFRAME",{name:R.iframeName_,id:R.iframeName_});var y=R.JSC$11397_iframe_.style;y.visibility="hidden";y.width=y.height="10px";y.display="none";_.T$?y.marginTop=y.marginLeft="-10px":(y.position="absolute",y.top=y.left="-10px");fL(R.JSC$11397_form_).JSC$9293_document_.body.appendChild(R.JSC$11397_iframe_);
y=R.iframeName_+"_inner";var u=foL(R.JSC$11397_iframe_);if(document.baseURI){var v=x9(y);v='<head><base href="'+x9(document.baseURI)+'"></head><body><iframe id="'+v+'" name="'+v+'"></iframe>';v=pK(v)}else v=x9(y),v=pK('<body><iframe id="'+v+'" name="'+v+'"></iframe>');u.write(tq(v));_.E4(u.getElementById(y),"load",R.onIframeLoaded_,!1,R);v=fF("TEXTAREA",R.JSC$11397_form_);for(var Q=0,M=v.length;Q<M;Q++){var K=v[Q].value;nMi(v[Q])!=K&&(_.Ak(v[Q],K),v[Q].value=K)}v=u.importNode(R.JSC$11397_form_,!0);
v.target=y;v.action=R.JSC$11397_form_.action;u.body.appendChild(v);Q=fF("SELECT",R.JSC$11397_form_);M=fF("SELECT",v);K=0;for(var h=Q.length;K<h;K++)for(var b=fF("OPTION",Q[K]),N=fF("OPTION",M[K]),T=0,x=b.length;T<x;T++)N[T].selected=b[T].selected;Q=fF("INPUT",R.JSC$11397_form_);M=fF("INPUT",v);K=0;for(h=Q.length;K<h;K++)if(Q[K].type=="file"&&Q[K].value!=M[K].value){R.JSC$11397_form_.target=y;v=R.JSC$11397_form_;break}try{R.errorHandled_=!1,v.submit(),u.close(),_.NO&&setTimeout(R.testForFirefoxSilentError_.bind(R),
250)}catch(B){_.Hc(u.getElementById(y),"load",R.onIframeLoaded_,!1,R),u.close(),IQ(R,2)}};
V5.prototype.onIframeLoaded_=function(){_.Hc(K2(this),"load",this.onIframeLoaded_,!1,this);try{var R=this.JSC$11397_iframe_?foL(K2(this)):null;this.complete_=!0;this.JSC$11397_active_=!1;try{var y=R.body;this.lastContent_=y.textContent||y.innerText}catch(Q){var u=1}var v;u||typeof this.errorChecker_!="function"||(v=this.errorChecker_(R))&&(u=4);u?IQ(this,u):(this.success_=!0,this.JSC$11397_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),giY(this))}catch(Q){IQ(this,1)}};
var IQ=function(R,y){R.errorHandled_||(R.success_=!1,R.JSC$11397_active_=!1,R.complete_=!0,R.JSC$11397_lastErrorCode_=y,R.dispatchEvent("complete"),R.dispatchEvent("error"),giY(R),R.errorHandled_=!0)},giY=function(R){CX5(R);
z4i(R);R.JSC$11397_form_=null;R.dispatchEvent("ready")},CX5=function(R){var y=R.JSC$11397_iframe_;
y&&(y.onreadystatechange=null,y.onload=null,y.onerror=null,R.iframesForDisposal_.push(y));R.iframeDisposalTimer_&&(clearTimeout(R.iframeDisposalTimer_),R.iframeDisposalTimer_=null);_.NO?R.iframeDisposalTimer_=setTimeout(R.disposeIframes_.bind(R),2E3):R.disposeIframes_();R.JSC$11397_iframe_=null;R.iframeName_=null};
V5.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var R=this.iframesForDisposal_.pop();_.BY(R)}};
var z4i=function(R){R.JSC$11397_form_&&R.JSC$11397_form_==i3&&_.$$(R.JSC$11397_form_)},K2=function(R){return R.JSC$11397_iframe_?foL(R.JSC$11397_iframe_).getElementById(R.iframeName_+"_inner"):null};
V5.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11397_active_){var R=this.JSC$11397_iframe_?foL(K2(this)):null;R&&!liW(R,"documentUri")?(_.Hc(K2(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?IQ(this,3):IQ(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.hj=function(R){return R=="\r"||R=="\n"||R==" "||R=="\t"};var RvK;_.b3=function(R){this.errorMessage_=null;this.result_=[];this.JSC$11399_buffer_="";this.stack_=[];this.JSC$11399_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!R||!R.deliverMessageAsRawString)};
RvK={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};_.b3.prototype.isInputValid=function(){return this.streamState_!=3};
_.b3.prototype.done=function(){return this.streamState_===2};
var F8=function(R,y,u){R.streamState_=3;R.errorMessage_="The stream is broken @"+R.JSC$11399_pos_+"/"+u+". With input:\n"+y;throw Error(R.errorMessage_);};
_.b3.prototype.acceptsBinaryInput=function(){return!1};
_.b3.prototype.parse=function(R){function y(){for(;B<R.length;)if(_.hj(R[B]))B++,M.JSC$11399_pos_++;else break;return B<N}
function u(){for(var Z;;){Z=R[B++];if(!Z)break;M.JSC$11399_pos_++;switch(M.state_){case b.INIT:Z==="{"?M.state_=b.OBJECT_OPEN:Z==="["?M.state_=b.ARRAY_OPEN:_.hj(Z)||F8(M,R,B);continue;case b.KEY_START:case b.OBJECT_OPEN:if(_.hj(Z))continue;if(M.state_===b.KEY_START)K.push(b.KEY_END);else if(Z==="}"){Q("{}");M.state_=v();continue}else K.push(b.OBJECT_END);Z==='"'?M.state_=b.STRING:F8(M,R,B);continue;case b.KEY_END:case b.OBJECT_END:if(_.hj(Z))continue;Z===":"?(M.state_===b.OBJECT_END&&(K.push(b.OBJECT_END),
M.depth_++),M.state_=b.VALUE):Z==="}"?(M.depth_--,Q(),M.state_=v()):Z===","?(M.state_===b.OBJECT_END&&K.push(b.OBJECT_END),M.state_=b.KEY_START):F8(M,R,B);continue;case b.ARRAY_OPEN:case b.VALUE:if(_.hj(Z))continue;if(M.state_===b.ARRAY_OPEN)if(M.depth_++,M.state_=b.VALUE,Z==="]"){M.depth_--;if(M.depth_===0){M.state_=b.ARRAY_END;return}Q("[]");M.state_=v();continue}else K.push(b.ARRAY_END);Z==='"'?M.state_=b.STRING:Z==="{"?M.state_=b.OBJECT_OPEN:Z==="["?M.state_=b.ARRAY_OPEN:Z==="t"?M.state_=b.TRUE1:
Z==="f"?M.state_=b.FALSE1:Z==="n"?M.state_=b.NULL1:Z!=="-"&&("0123456789".indexOf(Z)!==-1?M.state_=b.NUM_DIGIT:F8(M,R,B));continue;case b.ARRAY_END:if(Z===",")K.push(b.ARRAY_END),M.state_=b.VALUE,M.depth_===1&&(x=B);else if(Z==="]"){M.depth_--;if(M.depth_===0)return;Q();M.state_=v()}else if(_.hj(Z))continue;else F8(M,R,B);continue;case b.STRING:var P=B;a:for(;;){for(;M.unicodeCount_>0;)if(Z=R[B++],M.unicodeCount_===4?M.unicodeCount_=0:M.unicodeCount_++,!Z)break a;if(Z==='"'&&!M.slashed_){M.state_=
v();break}if(Z==="\\"&&!M.slashed_&&(M.slashed_=!0,Z=R[B++],!Z))break;if(M.slashed_)if(M.slashed_=!1,Z==="u"&&(M.unicodeCount_=1),Z=R[B++])continue;else break;h.lastIndex=B;Z=h.exec(R);if(!Z){B=R.length+1;break}B=Z.index+1;Z=R[Z.index];if(!Z)break}M.JSC$11399_pos_+=B-P;continue;case b.TRUE1:if(!Z)continue;Z==="r"?M.state_=b.TRUE2:F8(M,R,B);continue;case b.TRUE2:if(!Z)continue;Z==="u"?M.state_=b.TRUE3:F8(M,R,B);continue;case b.TRUE3:if(!Z)continue;Z==="e"?M.state_=v():F8(M,R,B);continue;case b.FALSE1:if(!Z)continue;
Z==="a"?M.state_=b.FALSE2:F8(M,R,B);continue;case b.FALSE2:if(!Z)continue;Z==="l"?M.state_=b.FALSE3:F8(M,R,B);continue;case b.FALSE3:if(!Z)continue;Z==="s"?M.state_=b.FALSE4:F8(M,R,B);continue;case b.FALSE4:if(!Z)continue;Z==="e"?M.state_=v():F8(M,R,B);continue;case b.NULL1:if(!Z)continue;Z==="u"?M.state_=b.NULL2:F8(M,R,B);continue;case b.NULL2:if(!Z)continue;Z==="l"?M.state_=b.NULL3:F8(M,R,B);continue;case b.NULL3:if(!Z)continue;Z==="l"?M.state_=v():F8(M,R,B);continue;case b.NUM_DECIMAL_POINT:Z===
"."?M.state_=b.NUM_DIGIT:F8(M,R,B);continue;case b.NUM_DIGIT:if("0123456789.eE+-".indexOf(Z)!==-1)continue;else B--,M.JSC$11399_pos_--,M.state_=v();continue;default:F8(M,R,B)}}}
function v(){var Z=K.pop();return Z!=null?Z:b.VALUE}
function Q(Z){M.depth_>1||(Z||(Z=x===-1?M.JSC$11399_buffer_+R.substring(T,B):R.substring(x,B)),M.deliverMessageAsRawString_?M.result_.push(Z):M.result_.push(JSON.parse(Z)),x=B)}
for(var M=this,K=M.stack_,h=M.stringInputPattern_,b=RvK,N=R.length,T=0,x=-1,B=0;B<N;)switch(M.streamState_){case 3:return F8(M,R,B),null;case 2:return y()&&F8(M,R,B),null;case 0:if(y()){var l=R[B++];M.JSC$11399_pos_++;if(l==="["){M.streamState_=1;T=B;M.state_=b.ARRAY_OPEN;continue}else F8(M,R,B)}return null;case 1:return u(),M.depth_===0&&M.state_==b.ARRAY_END?(M.streamState_=2,M.JSC$11399_buffer_=R.substring(B)):M.JSC$11399_buffer_=x===-1?M.JSC$11399_buffer_+R.substring(T):R.substring(x),M.result_.length>
0?(l=M.result_,M.result_=[],l):null}return null};_.IE(_.Kv,H5);IR.prototype.getValue=function(){return this.JSC$11407_value_};
IR.prototype.clone=function(){return new IR(this.JSC$11407_key_,this.JSC$11407_value_)};var w9=function(R){this.nodes_=[];if(R)a:{if(R instanceof w9){var y=R.getKeys();R=R.getValues();if(this.getCount()<=0){for(var u=this.nodes_,v=0;v<y.length;v++)u.push(new IR(y[v],R[v]));break a}}else y=_.Ps.getKeys(R),R=_.Ps.getValues(R);for(u=0;u<y.length;u++)this.insert(y[u],R[u])}};
_.J=w9.prototype;_.J.insert=function(R,y){var u=this.nodes_;u.push(new IR(R,y));R=u.length-1;y=this.nodes_;for(u=y[R];R>0;){var v=R-1>>1;if(y[v].JSC$11407_key_>u.JSC$11407_key_)y[R]=y[v],R=v;else break}y[R]=u};
_.J.remove=function(){var R=this.nodes_,y=R.length,u=R[0];if(!(y<=0)){if(y==1)R.length=0;else{R[0]=R.pop();R=0;y=this.nodes_;for(var v=y.length,Q=y[R];R<v>>1;){var M=R*2+1,K=R*2+2;M=K<v&&y[K].JSC$11407_key_<y[M].JSC$11407_key_?K:M;if(y[M].JSC$11407_key_>Q.JSC$11407_key_)break;y[R]=y[M];R=M}y[R]=Q}return u.getValue()}};
_.J.peek=function(){var R=this.nodes_;if(R.length!=0)return R[0].getValue()};
_.J.getValues=function(){for(var R=this.nodes_,y=[],u=R.length,v=0;v<u;v++)y.push(R[v].getValue());return y};
_.J.getKeys=function(){for(var R=this.nodes_,y=[],u=R.length,v=0;v<u;v++)y.push(R[v].JSC$11407_key_);return y};
_.J.containsValue=function(R){return this.nodes_.some(function(y){return y.getValue()==R})};
_.J.containsKey=function(R){return this.nodes_.some(function(y){return y.JSC$11407_key_==R})};
_.J.clone=function(){return new w9(this)};
_.J.getCount=function(){return this.nodes_.length};
_.J.isEmpty=function(){return this.nodes_.length===0};
_.J.clear=function(){this.nodes_.length=0};_.Nv=function(R,y){this.JSC$11413_map_={};this.JSC$11413_keys_=[];this.version_=this.size=0;var u=arguments.length;if(u>1){if(u%2)throw Error("ka");for(var v=0;v<u;v+=2)this.set(arguments[v],arguments[v+1])}else R&&this.addAll(R)};
_.J=_.Nv.prototype;_.J.getCount=function(){return this.size};
_.J.getValues=function(){Th(this);for(var R=[],y=0;y<this.JSC$11413_keys_.length;y++)R.push(this.JSC$11413_map_[this.JSC$11413_keys_[y]]);return R};
_.J.getKeys=function(){Th(this);return this.JSC$11413_keys_.concat()};
_.J.containsKey=function(R){return this.has(R)};
_.J.has=function(R){return oQ(this.JSC$11413_map_,R)};
_.J.containsValue=function(R){for(var y=0;y<this.JSC$11413_keys_.length;y++){var u=this.JSC$11413_keys_[y];if(oQ(this.JSC$11413_map_,u)&&this.JSC$11413_map_[u]==R)return!0}return!1};
_.J.equals=function(R,y){if(this===R)return!0;if(this.size!=R.getCount())return!1;y=y||y6K;Th(this);for(var u,v=0;u=this.JSC$11413_keys_[v];v++)if(!y(this.get(u),R.get(u)))return!1;return!0};
var y6K=function(R,y){return R===y};
_.Nv.prototype.isEmpty=function(){return this.size==0};
_.Nv.prototype.clear=function(){this.JSC$11413_map_={};this.version_=this.size=this.JSC$11413_keys_.length=0};
_.Nv.prototype.remove=function(R){return this.delete(R)};
_.Nv.prototype.delete=function(R){return oQ(this.JSC$11413_map_,R)?(delete this.JSC$11413_map_[R],--this.size,this.version_++,this.JSC$11413_keys_.length>2*this.size&&Th(this),!0):!1};
var Th=function(R){if(R.size!=R.JSC$11413_keys_.length){for(var y=0,u=0;y<R.JSC$11413_keys_.length;){var v=R.JSC$11413_keys_[y];oQ(R.JSC$11413_map_,v)&&(R.JSC$11413_keys_[u++]=v);y++}R.JSC$11413_keys_.length=u}if(R.size!=R.JSC$11413_keys_.length){y={};for(v=u=0;u<R.JSC$11413_keys_.length;){var Q=R.JSC$11413_keys_[u];oQ(y,Q)||(R.JSC$11413_keys_[v++]=Q,y[Q]=1);u++}R.JSC$11413_keys_.length=v}};
_.J=_.Nv.prototype;_.J.get=function(R,y){return oQ(this.JSC$11413_map_,R)?this.JSC$11413_map_[R]:y};
_.J.set=function(R,y){oQ(this.JSC$11413_map_,R)||(this.size+=1,this.JSC$11413_keys_.push(R),this.version_++);this.JSC$11413_map_[R]=y};
_.J.addAll=function(R){if(R instanceof _.Nv)for(var y=R.getKeys(),u=0;u<y.length;u++)this.set(y[u],R.get(y[u]));else for(y in R)this.set(y,R[y])};
_.J.forEach=function(R,y){for(var u=this.getKeys(),v=0;v<u.length;v++){var Q=u[v],M=this.get(Q);R.call(y,M,Q,this)}};
_.J.clone=function(){return new _.Nv(this)};
_.J.transpose=function(){for(var R=new _.Nv,y=0;y<this.JSC$11413_keys_.length;y++){var u=this.JSC$11413_keys_[y];R.set(this.JSC$11413_map_[u],u)}return R};
_.J.keys=function(){return GSi(this.__iterator__(!0)).toEs6()};
_.J.values=function(){return GSi(this.__iterator__(!1)).toEs6()};
_.J.entries=function(){var R=this;return DBG(this.keys(),function(y){return[y,R.get(y)]})};
_.J.__iterator__=function(R){Th(this);var y=0,u=this.version_,v=this,Q=new bm;Q.next=function(){if(u!=v.version_)throw Error("pe");if(y>=v.JSC$11413_keys_.length)return FQ;var M=v.JSC$11413_keys_[y++];return w1(R?M:v.JSC$11413_map_[M])};
return Q};
var oQ=function(R,y){return Object.prototype.hasOwnProperty.call(R,y)};var v6V=function(){this.JSC$11416_map_=new _.Nv;this.JSC$11416_head_=new ujT("");this.JSC$11416_head_.next=this.JSC$11416_head_.prev=this.JSC$11416_head_},QCG=function(R,y){if(y=R.JSC$11416_map_.get(y))y.remove(),R.insert_(y);
return y};
_.J=v6V.prototype;_.J.get=function(R,y){return(R=QCG(this,R))?R.value:y};
_.J.set=function(R,y){var u=QCG(this,R);u?u.value=y:(u=new ujT(R,y),this.JSC$11416_map_.set(R,u),this.insert_(u))};
_.J.peek=function(){return this.JSC$11416_head_.next.value};
_.J.shift=function(){return jC5(this,this.JSC$11416_head_.next)};
_.J.pop=function(){return jC5(this,this.JSC$11416_head_.prev)};
_.J.remove=function(R){return(R=this.JSC$11416_map_.get(R))?(this.removeNode(R),!0):!1};
_.J.removeNode=function(R){R.remove();this.JSC$11416_map_.remove(R.key)};
_.J.getCount=function(){return this.JSC$11416_map_.getCount()};
_.J.isEmpty=function(){return this.JSC$11416_map_.isEmpty()};
_.J.getKeys=function(){return this.map(function(R,y){return y})};
_.J.getValues=function(){return this.map(function(R){return R})};
_.J.contains=function(R){return this.some(function(y){return y==R})};
_.J.containsKey=function(R){return this.JSC$11416_map_.containsKey(R)};
_.J.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11416_head_.prev)};
_.J.forEach=function(R,y){for(var u=this.JSC$11416_head_.next;u!=this.JSC$11416_head_;u=u.next)R.call(y,u.value,u.key,this)};
_.J.map=function(R,y){for(var u=[],v=this.JSC$11416_head_.next;v!=this.JSC$11416_head_;v=v.next)u.push(R.call(y,v.value,v.key,this));return u};
_.J.some=function(R,y){for(var u=this.JSC$11416_head_.next;u!=this.JSC$11416_head_;u=u.next)if(R.call(y,u.value,u.key,this))return!0;return!1};
_.J.every=function(R,y){for(var u=this.JSC$11416_head_.next;u!=this.JSC$11416_head_;u=u.next)if(!R.call(y,u.value,u.key,this))return!1;return!0};
_.J.insert_=function(R){R.next=this.JSC$11416_head_.next;R.prev=this.JSC$11416_head_;this.JSC$11416_head_.next=R;for(R.next.prev=R;this.getCount()>100;)this.removeNode(this.JSC$11416_head_.prev)};
var jC5=function(R,y){R.JSC$11416_head_!=y&&R.removeNode(y);return y.value},ujT=function(R,y){this.key=R;
this.value=y};
ujT.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var Mpb=function(){w9.apply(this,arguments)};
_.O(Mpb,w9);Mpb.prototype.enqueue=function(R,y){this.insert(R,y)};var J6g=function(){var R=Error();R.name="SecurityError";throw R;},rVP=function(){return{get opener(){return null},
get closed(){return!0},get location(){J6g()},get document(){J6g()},postMessage:function(){},
close:function(){},
focus:function(){}}};var Hpz={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 Pjv={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 Vpb={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(Pjv).join("|");var ihb=function(){function R(h){h.substr(-1)!==";"&&(h+=";");return K(h)}
for(var y=Object.keys(Vpb).sort(GqT),u=Object.keys(Pjv).sort(GqT),v=0,Q=0;v<u.length;v++)y[Q]===u[v]?(u[v]+=";?",Q++):u[v]+=";";var M=new RegExp("&(?:"+u.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),K=WnP();return function(h){return String(h).replace(M,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 Kxg={};var Ilc=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"),hvg=/[\\&]/,bhw=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),Fxw=RegExp('[&<>"]',"g"),w_c=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),NW5=function(R){return R.charCodeAt(0)===92?R.charAt(1):ihb(R)},TW8=function(R){return hvg.test(R)?R.replace(bhw,NW5):R},o6i=function(R){try{var y,u="";
if(typeof Q!=="string"){var v=Q;var Q=";/?:@&=+$,-_.!~*'()#"}typeof v==="undefined"&&(v=!0);var M,K=Kxg[Q];if(K)var h=K;else{K=Kxg[Q]=[];for(M=0;M<128;M++){var b=String.fromCharCode(M);/^[0-9a-z]$/i.test(b)?K.push(b):K.push("%"+("0"+M.toString(16).toUpperCase()).slice(-2))}for(M=0;M<Q.length;M++)K[Q.charCodeAt(M)]=Q[M];h=K}var N=0;for(y=R.length;N<y;N++){var T=R.charCodeAt(N);if(v&&T===37&&N+2<y&&/^[0-9a-f]{2}$/i.test(R.slice(N+1,N+3)))u+=R.slice(N,N+3),N+=2;else if(T<128)u+=h[T];else if(T>=55296&&
T<=57343){if(T>=55296&&T<=56319&&N+1<y){var x=R.charCodeAt(N+1);if(x>=56320&&x<=57343){u+=encodeURIComponent(R[N]+R[N+1]);N++;continue}}u+="%EF%BF%BD"}else u+=encodeURIComponent(R[N])}return u}catch(B){return R}},xRV=function(R){switch(R){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return R}},xR=function(R,y){return Fxw.test(R)?y?R.replace(w_c,xRV):R.replace(Fxw,xRV):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 BO;if(String.fromCodePoint)BO=function(R){try{return String.fromCodePoint(R)}catch(y){if(y instanceof RangeError)return String.fromCharCode(65533);throw y;}};
else{var BWc=String.fromCharCode,flc=Math.floor;BO=function(){var R=[],y=-1,u=arguments.length;if(!u)return"";for(var v="";++y<u;){var Q=Number(arguments[y]);if(!isFinite(Q)||Q<0||Q>1114111||flc(Q)!==Q)return String.fromCharCode(65533);if(Q<=65535)R.push(Q);else{Q-=65536;var M=(Q>>10)+55296;Q=Q%1024+56320;R.push(M,Q)}if(y+1===u||R.length>16384)v+=BWc.apply(null,R),R.length=0}return v}};var evY=function(R){this.root=this.current=R;this.entering=!0};
evY.prototype.next=function(){var R=this.current,y=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 u=!0;break a;default:u=!1}y&&u?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:y,node:R}};
var wG=function(R,y){this._type=R;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=y;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};
wG.prototype.appendChild=function(R){R.unlink();R._parent=this;this._lastChild?(this._lastChild._next=R,R._prev=this._lastChild):this._firstChild=R;this._lastChild=R};
wG.prototype.unlink=function(){this._prev?this._prev._next=this._next:this._parent&&(this._parent._firstChild=this._next);this._next?this._next._prev=this._prev:this._parent&&(this._parent._lastChild=this._prev);this._prev=this._next=this._parent=null};
var llg=function(R,y){y.unlink();y._next=R._next;y._next&&(y._next._prev=y);y._prev=R;R._next=y;y._parent=R._parent;y._next||(y._parent._lastChild=y)};
wG.prototype.insertBefore=function(R){R.unlink();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)};
_.RR.Object.defineProperties(wG.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 dWT=/[ \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,
UWU={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 Ohg=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]/),
ZhY=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),Hhi=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),n65=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),G3b=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),r6i=/`+/,P0Y=/^`+/,Wx5=/\.\.\./g,dRc=/--+/g,URK=/^<([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])?)*)>/,
k3g=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,E6L=/^ *(?:\n *)?/,$RL=/^[ \t\n\x0b\x0c\x0d]/,qyc=/[ \t\n\x0b\x0c\x0d]+/g,X_V=/^\s/,mRg=/ *$/,A6c=/^ */,DRK=/^ *(?:\n|$)/,p_g=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),tp5=/^[^\n`\[\]\\!<&*_'"]+/m,f2=function(R){var y=new wG("text");y._literal=R;return y},et=function(R){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=R||{}};
et.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]};
et.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var l3=function(R){R.match(E6L);return!0},c6K=function(R,y,u){var v=0;
var Q=R.pos;if(y===39||y===34)v++,R.pos++;else for(;R.peek()===y;)v++,R.pos++;if(v===0)v=null;else{var M=Q===0?"\n":R.subject.charAt(Q-1);var K=R.peek();K=K===-1?"\n":BO(K);var h=X_V.test(K);K=Ohg.test(K);var b=X_V.test(M);var N=Ohg.test(M);M=!h&&!(K&&!b&&!N);h=!b&&!(N&&!h&&!K);y===95?(b=M&&(!h||N),K=h&&(!M||K)):(b=y===39||y===34?M&&!h:M,K=h);R.pos=Q;v={numdelims:v,can_open:b,can_close:K}}if(!v)return!1;Q=v.numdelims;K=R.pos;R.pos+=Q;K=y===39?"\u2019":y===34?"\u201c":R.subject.slice(K,R.pos);K=f2(K);
u.appendChild(K);R.delimiters={cc:y,numdelims:Q,origdelims:Q,node:K,previous:R.delimiters,next:null,can_open:v.can_open,can_close:v.can_close};R.delimiters.previous!==null&&(R.delimiters.previous.next=R.delimiters);return!0},alT=function(R,y){y.previous!==null&&(y.previous.next=y.next);
y.next===null?R.delimiters=y.previous:y.next.previous=y.previous},Syg=function(R,y){var u,v,Q=[],M=!1;
Q[95]=y;Q[42]=y;Q[39]=y;Q[34]=y;for(u=R.delimiters;u!==null&&u.previous!==y;)u=u.previous;for(;u!==null;){var K=u.cc;if(u.can_close){var h=u.previous;for(v=!1;h!==null&&h!==y&&h!==Q[K];){M=(u.can_open||h.can_close)&&(h.origdelims+u.origdelims)%3===0;if(h.cc===u.cc&&h.can_open&&!M){v=!0;break}h=h.previous}var b=u;if(K===42||K===95)if(v){var N=u.numdelims>=2&&h.numdelims>=2?2:1;var T=h.node;var x=u.node;h.numdelims-=N;u.numdelims-=N;T._literal=T._literal.slice(0,T._literal.length-N);x._literal=x._literal.slice(0,
x._literal.length-N);var B=new wG(N===1?"emph":"strong");for(N=T._next;N&&N!==x;){var l=N._next;N.unlink();B.appendChild(N);N=l}llg(T,B);N=h;l=u;N.next!==l&&(N.next=l,l.previous=N);h.numdelims===0&&(T.unlink(),alT(R,h));u.numdelims===0&&(x.unlink(),h=u.next,alT(R,u),u=h)}else u=u.next;else K===39?(u.node._literal="\u2019",v&&(h.node._literal="\u2018"),u=u.next):K===34&&(u.node._literal="\u201d",v&&(h.node.literal="\u201c"),u=u.next);v||M||(Q[K]=b.previous,b.can_open||alT(R,b))}else u=u.next}for(;R.delimiters!==
null&&R.delimiters!==y;)alT(R,R.delimiters)},YyG=function(R){R=R.match(ZhY);
return R===null?null:TW8(R.substr(1,R.length-2))},LxG=function(R){var y=R.match(Hhi);
if(y===null){y=R.pos;for(var u=0,v;(v=R.peek())!==-1;)if(v===92)R.pos+=1,R.peek()!==-1&&(R.pos+=1);else if(v===40)R.pos+=1,u+=1;else if(v===41)if(u<1)break;else R.pos+=1,--u;else if($RL.exec(BO(v))!==null)break;else R.pos+=1;y=R.subject.substr(y,R.pos-y);return o6i(TW8(y))}return o6i(TW8(y.substr(1,y.length-2)))},sC5=function(R){R=R.match(p_g);
return R===null||R.length>1001?0:R.length},zv8=function(R,y,u,v){R.brackets!==null&&(R.brackets.bracketAfter=!0);
R.brackets={node:y,previous:R.brackets,previousDelimiter:R.delimiters,index:u,image:v,active:!0}},g6g=function(R,y){var u;
return(u=R.match(tp5))?(R.options.smart?y.appendChild(f2(u.replace(Wx5,"\u2026").replace(dRc,function(v){var Q=0,M=0;v.length%3===0?M=v.length/3:v.length%2===0?Q=v.length/2:v.length%3===2?(Q=1,M=(v.length-2)/3):(Q=2,M=(v.length-4)/3);v="";var K;for(K=0;K<M;K++)v+="\u2014";for(K=0;K<Q;K++)v+="\u2013";return v}))):y.appendChild(f2(u)),!0):!1},C0T=function(R,y,u){R.subject=y;
R.pos=0;y=R.pos;var v=sC5(R);if(v===0)return 0;var Q=R.subject.substr(0,v);if(R.peek()===58)R.pos++;else return R.pos=y,0;l3(R);v=LxG(R);if(v===null||v.length===0)return R.pos=y,0;var M=R.pos;l3(R);var K=YyG(R);K===null&&(K="",R.pos=M);var h=!0;R.match(DRK)===null&&(K===""?h=!1:(K="",R.pos=M,h=R.match(DRK)!==null));if(!h)return R.pos=y,0;Q=kqT(Q);if(Q==="")return R.pos=y,0;u[Q]||(u[Q]={destination:v,title:K});return R.pos-y},R8b=function(R,y){var u,v=R.peek();
if(v===-1)return!1;switch(v){case 10:R.pos+=1;if((u=y._lastChild)&&u.type==="text"&&u._literal[u._literal.length-1]===" "){var Q=u._literal[u._literal.length-2]===" ";u._literal=u._literal.replace(mRg,"");y.appendChild(new wG(Q?"linebreak":"softbreak"))}else y.appendChild(new wG("softbreak"));R.match(A6c);u=!0;break;case 92:u=R.subject;R.pos+=1;R.peek()===10?(R.pos+=1,u=new wG("linebreak"),y.appendChild(u)):n65.test(u.charAt(R.pos))?(y.appendChild(f2(u.charAt(R.pos))),R.pos+=1):y.appendChild(f2("\\"));
u=!0;break;case 96:a:if(u=R.match(P0Y),u===null)u=!1;else{Q=R.pos;for(var M;(M=R.match(r6i))!==null;)if(M===u){M=new wG("code");M._literal=R.subject.slice(Q,R.pos-u.length).trim().replace(qyc," ");y.appendChild(M);u=!0;break a}R.pos=Q;y.appendChild(f2(u));u=!0}break;case 42:case 95:u=c6K(R,v,y);break;case 39:case 34:u=R.options.smart&&c6K(R,v,y);break;case 91:u=R.pos;R.pos+=1;Q=f2("[");y.appendChild(Q);zv8(R,Q,u,!1);u=!0;break;case 33:u=R.pos;R.pos+=1;R.peek()===91?(R.pos+=1,Q=f2("!["),y.appendChild(Q),
zv8(R,Q,u+1,!0)):y.appendChild(f2("!"));u=!0;break;case 93:var K,h=!1,b;R.pos+=1;var N=R.pos;Q=R.brackets;if(Q===null)y.appendChild(f2("]"));else if(Q.active){u=Q.image;var T=R.pos;R.peek()===40&&(R.pos++,l3(R)&&(M=LxG(R))!==null&&l3(R)&&($RL.test(R.subject.charAt(R.pos-1))&&(K=YyG(R)),1)&&l3(R)&&R.peek()===41?(R.pos+=1,h=!0):R.pos=T);if(!h){var x=R.pos,B=sC5(R);B>2?b=R.subject.slice(x,x+B):Q.bracketAfter||(b=R.subject.slice(Q.index,N));B===0&&(R.pos=T);b&&(b=R.refmap[kqT(b)])&&(M=b.destination,K=
b.title,h=!0)}if(h){N=new wG(u?"image":"link");N._destination=M;N._title=K||"";for(M=Q.node._next;M;)K=M._next,M.unlink(),N.appendChild(M),M=K;y.appendChild(N);Syg(R,Q.previousDelimiter);R.brackets=R.brackets.previous;Q.node.unlink();if(!u)for(Q=R.brackets;Q!==null;)Q.image||(Q.active=!1),Q=Q.previous}else R.brackets=R.brackets.previous,R.pos=N,y.appendChild(f2("]"))}else y.appendChild(f2("]")),R.brackets=R.brackets.previous;u=!0;break;case 60:(u=R.match(URK))?(u=u.slice(1,u.length-1),Q=new wG("link"),
Q._destination=o6i("mailto:"+u),Q._title="",Q.appendChild(f2(u)),y.appendChild(Q),u=!0):(u=R.match(k3g))?(u=u.slice(1,u.length-1),Q=new wG("link"),Q._destination=o6i(u),Q._title="",Q.appendChild(f2(u)),y.appendChild(Q),u=!0):u=!1;u||(u=R.match(Ilc),u===null?u=!1:(Q=new wG("html_inline"),Q._literal=u,y.appendChild(Q),u=!0));break;case 38:(u=R.match(G3b))?(y.appendChild(f2(ihb(u))),u=!0):u=!1;break;default:u=g6g(R,y)}u||(R.pos+=1,y.appendChild(f2(BO(v))));return!0};
et.prototype.parseInlines=function(R){this.subject=R._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;R8b(this,R););R._string_content=null;Syg(this,null)};
et.prototype.parse=et.prototype.parseInlines;var yFK=[/./,/^<(?: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")],usV=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],v98=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,Q8T=/^[#`~*+_=<>0-9-\|]|\|/,j88=/[^ \t\f\v\r\n]/,Moc=/^[*+-]/,JFK=/^(\d{1,9})([.)])/,VoV=/^#{1,6}(?:[ \t]+|$)/,iAi=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,KkL=/^(?:`{3,}|~{3,})(?= *$)/,IOi=/^(?:=+|-+)[ \t]*$/,h8c=/\r\n|\n|\r/,$Wc=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,qOU=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,bAb={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(R){return R!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(R,y){for(R=y._firstChild;R;){if(E$T(R)&&R._next){y._listData.tight=!1;break}for(var u=R._firstChild;u;){if(E$T(u)&&(R._next||u._next)){y._listData.tight=!1;break}u=u._next}R=R._next}},
canContain:function(R){return R==="item"},
acceptsLines:!1},block_quote:{continue:function(R){var y=R.currentLine;if(R.indented||bp(y,R.nextNonspace)!==62)return 1;OD(R);Zy(R,1,!1);hl(bp(y,R.offset))&&Zy(R,1,!0);return 0},
finalize:function(){},
canContain:function(R){return R!=="item"},
acceptsLines:!1},item:{continue:function(R,y){if(R.blank){if(y._firstChild==null)return 1;OD(R)}else if(R.indent>=y._listData.markerOffset+y._listData.padding)Zy(R,y._listData.markerOffset+y._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(R){return R!=="item"&&!X74(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,y){var u=R.currentLine,v=R.indent;if(y._isFenced){if((v=v<=3&&u.charAt(R.nextNonspace)===y._fenceChar&&u.slice(R.nextNonspace).match(KkL))&&v[0].length>=y._fenceLength)return R.finalize(y,R.lineNumber),2;for(y=y._fenceOffset;y>0&&hl(bp(u,R.offset));)Zy(R,1,!0),y--}else if(v>=4)Zy(R,4,!0);else if(R.blank)OD(R);else return 1;return 0},
finalize:function(R,y){if(y._isFenced){var u=y._string_content,v=u.indexOf("\n");R=u.slice(0,v);u=u.slice(v+1);y.info=TW8(R.trim());y._literal=u}else y._literal=y._string_content.replace(/(\n *)+$/,"\n");y._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(R,y){return!R.blank||y._htmlBlockType!==6&&y._htmlBlockType!==7?0:1},
finalize:function(R,y){y._literal=y._string_content.replace(/(\n *)+$/,"");y._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(R){return R.blank?1:0},
finalize:function(R,y){for(var u,v=!1;bp(y._string_content,0)===91&&(u=C0T(R.inlineParser,y._string_content,R.refmap));)y._string_content=y._string_content.slice(u),v=!0;v&&!j88.test(y._string_content)&&y.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(R){return Fc(R.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(R){return R=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(R,y){if(!y._rowIsDelimiter){R=y._isHeader?"th":"td";for(var u=y._parent._tableColumns,v=y._string_content,Q=0,M="",K,h=y._sourcepos[0][0];Q<v.length;){switch(v[Q]){case "|":K&&(K._string_content=M.trim(),M="",K=null,u--,u<=0&&(Q=v.length));break;default:if(!K){K=new wG(R,[[h,Q],[h,Q]]);var b=y._parent._columnAlignment,N=y._parent._tableColumns-u;b&&N<=b.length&&N>=0&&(K._alignment=b[N]);y.appendChild(K)}M+=v[Q];K._sourcepos[1][1]=Q}Q++}K&&(K._string_content=M.trim());y._string_content=
""}},
canContain:function(R){return R!=="row"},
acceptsLines:!1}},Fkc=[function(R){if(R.indented||bp(R.currentLine,R.nextNonspace)!==62)return 0;OD(R);Zy(R,1,!1);hl(bp(R.currentLine,R.offset))&&Zy(R,1,!0);HO(R);R.addChild("block_quote",R.nextNonspace);return 1},
function(R){var y;if(!R.indented&&(y=R.currentLine.slice(R.nextNonspace).match(VoV))){OD(R);Zy(R,y[0].length,!1);HO(R);var u=R.addChild("heading",R.nextNonspace);u.level=y[0].trim().length;u._string_content=R.currentLine.slice(R.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");Zy(R,R.currentLine.length-R.offset);return 2}return 0},
function(R){var y;if(!R.indented&&(y=R.currentLine.slice(R.nextNonspace).match(iAi))){var u=y[0].length;HO(R);var v=R.addChild("code_block",R.nextNonspace);v._isFenced=!0;v._fenceLength=u;v._fenceChar=y[0][0];v._fenceOffset=R.indent;OD(R);Zy(R,u,!1);return 2}return 0},
function(R,y){if(!R.indented&&bp(R.currentLine,R.nextNonspace)===60){var u=R.currentLine.slice(R.nextNonspace),v;for(v=1;v<=7;v++)if(yFK[v].test(u)&&(v<7||y.type!=="paragraph"))return HO(R),R.addChild("html_block",R.offset)._htmlBlockType=v,2}return 0},
function(R,y){var u;if(!R.indented&&y.type==="paragraph"&&(u=R.currentLine.slice(R.nextNonspace).match(IOi))){HO(R);var v=new wG("heading",y.sourcepos);v.level=u[0][0]==="="?1:2;v._string_content=y._string_content;llg(y,v);y.unlink();R.tip=v;Zy(R,R.currentLine.length-R.offset,!1);return 2}return 0},
function(R){return!R.indented&&v98.test(R.currentLine.slice(R.nextNonspace))?(HO(R),R.addChild("thematic_break",R.nextNonspace),Zy(R,R.currentLine.length-R.offset,!1),2):0},
function(R,y){var u,v;if(!(v=R.indented&&y.type!=="list")){a:{var Q=y,M=R.currentLine.slice(R.nextNonspace);v={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:R.indent};if(u=M.match(Moc))v.type="bullet",v.bulletChar=u[0][0];else{if(!(u=M.match(JFK))||Q.type==="paragraph"&&u[1]!=="1"){u=null;break a}v.type="ordered";v.start=parseInt(u[1],10);v.delimiter=u[2]}var K=bp(R.currentLine,R.nextNonspace+u[0].length);if(K!==-1&&K!==9&&K!==32||Q.type==="paragraph"&&!R.currentLine.slice(R.nextNonspace+
u[0].length).match(j88))u=null;else{OD(R);Zy(R,u[0].length,!0);Q=R.column;M=R.offset;do Zy(R,1,!0),K=bp(R.currentLine,R.offset);while(R.column-Q<5&&hl(K));K=bp(R.currentLine,R.offset)===-1;var h=R.column-Q;h>=5||h<1||K?(v.padding=u[0].length+1,R.column=Q,R.offset=M,hl(bp(R.currentLine,R.offset))&&Zy(R,1,!0)):v.padding=u[0].length+h;u=v}}v=!u}if(v)return 0;HO(R);(v=R.tip.type!=="list")||(y=y._listData,v=!(y.type===u.type&&y.delimiter===u.delimiter&&y.bulletChar===u.bulletChar));v&&(y=R.addChild("list",
R.nextNonspace),y._listData=u);y=R.addChild("item",R.nextNonspace);y._listData=u;return 1},
function(R){var y;return((y=R.options.shouldParseIndentAsCodeBlock)!=null?y:1)&&R.indented&&R.tip.type!=="paragraph"&&!R.blank?(Zy(R,4,!0),HO(R),R.addChild("code_block",R.offset),2):0},
function(R,y){var u=Fc(R.currentLine),v=Fc(R.lookahead);if(u!==0&&v<0&&Math.abs(u)==Math.abs(v)&&!X74(y.type)){HO(R);y=R.addChild("table",R.nextNonspace);y._tableRows=1;y._tableColumns=Math.abs(u);u=R.lookahead;if(qOU.test(u)){v=[];for(var Q=0,M=!1,K=0,h=void 0;Q<u.length;){var b=K>=3;switch(u[Q]){case "-":K++;break;case "|":M&&(v.push(h),h=void 0,K=0);M=!0;break;case ":":h||b||(h="left"),!h&&b&&(h="right"),h==="left"&&b&&(h="center")}Q++}u=v}else u=void 0;y._columnAlignment=u;y=R.addChild("row",
R.nextNonspace);y._isHeader=!0;Zy(R,R.currentLine.length-R.offset,!1);y._string_content=R.currentLine;return 1}return 0},
function(R,y){if(y.type=="table"&&Fc(R.currentLine)!==0){HO(R);var u=y;y=R.addChild("row",R.nextNonspace);Fc(R.currentLine)<0?y._rowIsDelimiter=!0:u._tableRows+=1;Zy(R,R.currentLine.length-R.offset,!1);y._string_content=R.currentLine;return 2}return 0}],cbW=function(){var R={shouldParseIndentAsCodeBlock:!1};
R=R===void 0?{}:R;this.lastMatchedContainer=this.doc=mWG();this.refmap={};this.lastLineLength=0;this.inlineParser=new et(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=bAb;this.blockStarts=Fkc},wmg=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"};
cbW.prototype.addChild=function(R,y){for(;!this.blocks[this.tip.type].canContain(R);)this.finalize(this.tip,this.lineNumber-1);R=new wG(R,[[this.lineNumber,y+1],[0,0]]);R._string_content="";this.tip.appendChild(R);return this.tip=R};
var HO=function(R){if(!R.allClosed){for(;R.oldtip!==R.lastMatchedContainer;){var y=R.oldtip._parent;R.finalize(R.oldtip,R.lineNumber-1);R.oldtip=y}R.allClosed=!0}},Zy=function(R,y,u){for(var v=R.currentLine,Q,M;y>0&&(M=v[R.offset]);)M==="\t"?(Q=4-R.column%4,u?(R.partiallyConsumedTab=Q>y,Q=Q>y?y:Q,R.column+=Q,R.offset+=R.partiallyConsumedTab?0:1,y-=Q):(R.partiallyConsumedTab=!1,R.column+=Q,R.offset+=1,--y)):(R.partiallyConsumedTab=!1,R.offset+=1,R.column+=1,--y)},OD=function(R){R.offset=R.nextNonspace;
R.column=R.nextNonspaceColumn;R.partiallyConsumedTab=!1},NmY=function(R){for(var y=R.currentLine,u=R.offset,v=R.column,Q;(Q=y.charAt(u))!=="";)if(Q===" ")u++,v++;
else if(Q==="\t")u++,v+=4-v%4;else break;R.blank=Q==="\n"||Q==="\r"||Q==="";R.nextNonspace=u;R.nextNonspaceColumn=v;R.indent=R.nextNonspaceColumn-R.column;R.indented=R.indent>=4};
cbW.prototype.finalize=function(R,y){var u=R._parent;R._open=!1;R.sourcepos[1]=[y,this.lastLineLength];this.blocks[R.type].finalize(this,R);this.tip=u};
cbW.prototype.parse=function(R){this.tip=this.doc=mWG();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 y=R.split(h8c),u=y.length;R.charCodeAt(R.length-1)===10&&--u;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(R=0;R<u;R++)a:{var v=void 0,Q=y[R],M=y[R+1],K=!0,h=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;Q.indexOf("\x00")!==-1&&(Q=Q.replace(/\0/g,"\ufffd"));this.currentLine=Q;for(this.lookahead=M;(v=h._lastChild)&&v._open;){h=v;NmY(this);switch(this.blocks[h.type].continue(this,h)){case 0:break;case 1:K=!1;break;case 2:this.lastLineLength=Q.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!K){h=h._parent;break}}this.allClosed=h===this.oldtip;this.lastMatchedContainer=
h;v=h.type!=="paragraph"&&bAb[h.type].acceptsLines;M=this.blockStarts;for(K=M.length;!v;){NmY(this);if(!this.indented&&!Q8T.test(Q.slice(this.nextNonspace))){OD(this);break}for(var b=0;b<K;){var N=M[b](this,h);if(N===1){h=this.tip;break}else if(N===2){h=this.tip;v=!0;break}else b++}if(b===K){OD(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){HO(this);this.blank&&h.lastChild&&(h.lastChild._lastLineBlank=!0);v=h.type;M=this.blank&&!(v==="block_quote"||v==="code_block"&&h._isFenced||
v==="item"&&!h._firstChild&&h.sourcepos[0][0]===this.lineNumber);for(K=h;K;)K._lastLineBlank=M,K=K._parent;this.blocks[v].acceptsLines?(wmg(this),v==="html_block"&&h._htmlBlockType>=1&&h._htmlBlockType<=5&&usV[h._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(h,this.lineNumber)):this.offset<Q.length&&!this.blank&&(this.addChild("paragraph",this.offset),OD(this),wmg(this))}else wmg(this);this.lastLineLength=Q.length}for(;this.tip;)this.finalize(this.tip,u);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");Q=new evY(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;u=Q.next();)y=u.node,R=y.type,u.entering||R!=="paragraph"&&R!=="heading"&&R!=="th"&&R!="td"||this.inlineParser.parse(y);this.options.time&&console.timeEnd("inline parsing");return this.doc};AkT.prototype.render=function(R){R=new evY(R);var y;this.buffer="";for(this.lastOut="\n";y=R.next();){var u=y.node.type;if(this[u])this[u](y.node,y.entering)}return this.buffer};
AkT.prototype.out=function(R){n2(this,R)};
var n2=function(R,y){R.buffer+=y;R.lastOut=y};
AkT.prototype.cr=function(){this.lastOut!=="\n"&&n2(this,"\n")};var Tmg=/^javascript:|vbscript:|file:|data:/i,o9c=/^data:image\/(?:png|gif|jpeg|webp)/i,xpi=function(R){return Tmg.test(R)&&!o9c.test(R)};
N4.prototype=Object.create(AkT.prototype);_.J=N4.prototype;_.J.text=function(R){this.out(R.literal)};
_.J.html_inline=function(R){this.options.safe?n2(this,"\x3c!-- raw HTML omitted --\x3e"):n2(this,R.literal)};
_.J.html_block=function(R){this.cr();this.options.safe?n2(this,"\x3c!-- raw HTML omitted --\x3e"):n2(this,R.literal);this.cr()};
_.J.softbreak=function(){n2(this,this.options.softbreak)};
_.J.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.J.link=function(R,y){var u=this.attrs(R);y?(this.options.safe&&xpi(R.destination)||u.push(["href",xR(R.destination,!0)]),R.title&&u.push(["title",xR(R.title,!0)]),this.tag("a",u)):this.tag("/a")};
_.J.image=function(R,y){y?(this.disableTags===0&&(this.options.safe&&xpi(R.destination)?n2(this,'<img src="" alt="'):n2(this,'<img src="'+xR(R.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(R.title&&n2(this,'" title="'+xR(R.title,!0)),n2(this,'" />')))};
_.J.emph=function(R,y){this.tag(y?"em":"/em")};
_.J.strong=function(R,y){this.tag(y?"strong":"/strong")};
_.J.paragraph=function(R,y){var u=R.parent.parent;R=this.attrs(R);u!==null&&u.type==="list"&&u.listTight||(y?(this.cr(),this.tag("p",R)):(this.tag("/p"),this.cr()))};
_.J.heading=function(R,y){var u="h"+R.level;R=this.attrs(R);y?(this.cr(),this.tag(u,R)):(this.tag("/"+u),this.cr())};
_.J.code=function(R){this.tag("code");this.out(R.literal);this.tag("/code")};
_.J.code_block=function(R){var y=R.info?R.info.split(/\s+/):[],u=this.attrs(R);y.length>0&&y[0].length>0&&u.push(["class","language-"+xR(y[0],!0)]);this.cr();this.tag("pre");this.tag("code",u);this.out(R.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.J.thematic_break=function(R){R=this.attrs(R);this.cr();this.tag("hr",R,!0);this.cr()};
_.J.block_quote=function(R,y){R=this.attrs(R);y?(this.cr(),this.tag("blockquote",R)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.J.list=function(R,y){var u=R.listType==="bullet"?"ul":"ol",v=this.attrs(R);y?(R=R.listStart,R!==null&&R!==1&&v.push(["start",R.toString()]),this.cr(),this.tag(u,v)):(this.cr(),this.tag("/"+u));this.cr()};
_.J.item=function(R,y){R=this.attrs(R);y?this.tag("li",R):(this.tag("/li"),this.cr())};
_.J.custom_inline=function(R,y){y&&R.onEnter?n2(this,R.onEnter):!y&&R.onExit&&n2(this,R.onExit)};
_.J.custom_block=function(R,y){this.cr();y&&R.onEnter?n2(this,R.onEnter):!y&&R.onExit&&n2(this,R.onExit);this.cr()};
_.J.table=function(R,y){R=this.attrs(R);y?(this.cr(),this.tag("table",R)):(this.tag("/table"),this.cr())};
_.J.row=function(R,y){R._rowIsDelimiter||(R=this.attrs(R),y?this.tag("tr",R):this.tag("/tr"))};
_.J.td=function(R,y){var u=this.attrs(R);R._alignment&&u.push(["align",R._alignment]);y?this.tag("td",u):this.tag("/td")};
_.J.th=function(R,y){var u=this.attrs(R);R._alignment&&u.push(["align",R._alignment]);y?this.tag("th",u):this.tag("/th")};
_.J.out=function(R){n2(this,xR(R,!1))};
_.J.tag=function(R,y,u){if(!(this.disableTags>0)){this.buffer+="<"+R;if(y&&y.length>0){R=0;for(var v;(v=y[R])!==void 0;)this.buffer+=" "+v[0]+'="'+v[1]+'"',R++}u&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.J.attrs=function(R){var y=[];this.options.sourcepos&&(R=R.sourcepos)&&y.push(["data-sourcepos",String(R[0][0])+":"+String(R[0][1])+"-"+String(R[1][0])+":"+String(R[1][1])]);return y};
N4.prototype.text=N4.prototype.text;N4.prototype.html_inline=N4.prototype.html_inline;N4.prototype.html_block=N4.prototype.html_block;N4.prototype.softbreak=N4.prototype.softbreak;N4.prototype.linebreak=N4.prototype.linebreak;N4.prototype.link=N4.prototype.link;N4.prototype.image=N4.prototype.image;N4.prototype.emph=N4.prototype.emph;N4.prototype.strong=N4.prototype.strong;N4.prototype.paragraph=N4.prototype.paragraph;N4.prototype.heading=N4.prototype.heading;N4.prototype.code=N4.prototype.code;
N4.prototype.code_block=N4.prototype.code_block;N4.prototype.thematic_break=N4.prototype.thematic_break;N4.prototype.block_quote=N4.prototype.block_quote;N4.prototype.list=N4.prototype.list;N4.prototype.item=N4.prototype.item;N4.prototype.custom_inline=N4.prototype.custom_inline;N4.prototype.custom_block=N4.prototype.custom_block;N4.prototype.table=N4.prototype.table;N4.prototype.row=N4.prototype.row;N4.prototype.td=N4.prototype.td;N4.prototype.th=N4.prototype.th;N4.prototype.out=N4.prototype.out;
N4.prototype.tag=N4.prototype.tag;N4.prototype.attrs=N4.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 Bmc,fO8,NMv;(function(){function R(U,d){return U<d?-1:U>d?1:U>=d?0:NaN}
function y(U){return function(d,X){return R(U(d),X)}}
function u(){for(var U=0,d=arguments.length,X={},C;U<d;++U){if(!(C=arguments[U]+"")||C in X)throw Error("re`"+C);X[C]=[]}return new v(X)}
function v(U){this._=U}
function Q(U,d){return U.trim().split(/^|\s+/).map(function(X){var C="",VG=X.indexOf(".");VG>=0&&(C=X.slice(VG+1),X=X.slice(0,VG));if(X&&!d.hasOwnProperty(X))throw Error("se`"+X);return{type:X,name:C}})}
function M(U,d,X){for(var C=0,VG=U.length;C<VG;++C)if(U[C].name===d){U[C]=OjI;U=U.slice(0,C).concat(U.slice(C+1));break}X!=null&&U.push({name:d,value:X});return U}
function K(U){var d=U,X=d.indexOf(":");X>=0&&(d=U.slice(0,X))!=="xmlns"&&(U=U.slice(X+1));return OJ.hasOwnProperty(d)?{space:OJ[d],local:U}:U}
function h(U){return function(){var d=this.ownerDocument,X=this.namespaceURI;return X==="http://www.w3.org/1999/xhtml"&&d.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?d.createElement(U):d.createElementNS(X,U)}}
function b(U){return function(){return this.ownerDocument.createElementNS(U.space,U.local)}}
function N(U){U=K(U);return(U.local?b:h)(U)}
function T(){}
function x(U){return U==null?T:function(){return this.querySelector(U)}}
function B(U){return Array(U.length)}
function l(U,d){this.ownerDocument=U.ownerDocument;this.namespaceURI=U.namespaceURI;this._next=null;this._parent=U;this.__data__=d}
function Z(U){return function(){return U}}
function P(U,d,X,C,VG,TT){for(var lO=0,dE,yc=d.length,gE=TT.length;lO<gE;++lO)(dE=d[lO])?(dE.__data__=TT[lO],C[lO]=dE):X[lO]=new l(U,TT[lO]);for(;lO<yc;++lO)if(dE=d[lO])VG[lO]=dE}
function k(U,d,X,C,VG,TT,lO){var dE,yc,gE={},Qc=d.length,NG=TT.length,z5=Array(Qc),lJ;for(dE=0;dE<Qc;++dE)if(yc=d[dE])z5[dE]=lJ="$"+lO.call(yc,yc.__data__,dE,d),lJ in gE?VG[dE]=yc:gE[lJ]=yc;for(dE=0;dE<NG;++dE)lJ="$"+lO.call(U,TT[dE],dE,TT),(yc=gE[lJ])?(C[dE]=yc,yc.__data__=TT[dE],gE[lJ]=null):X[dE]=new l(U,TT[dE]);for(dE=0;dE<Qc;++dE)(yc=d[dE])&&gE[z5[dE]]===yc&&(VG[dE]=yc)}
function E(U,d){return U<d?-1:U>d?1:U>=d?0:NaN}
function D(U){return function(){this.removeAttribute(U)}}
function z(U){return function(){this.removeAttributeNS(U.space,U.local)}}
function c(U,d){return function(){this.setAttribute(U,d)}}
function a(U,d){return function(){this.setAttributeNS(U.space,U.local,d)}}
function L(U,d){return function(){var X=d.apply(this,arguments);X==null?this.removeAttribute(U):this.setAttribute(U,X)}}
function QG(U,d){return function(){var X=d.apply(this,arguments);X==null?this.removeAttributeNS(U.space,U.local):this.setAttributeNS(U.space,U.local,X)}}
function hz(U){return function(){this.style.removeProperty(U)}}
function bO(U,d,X){return function(){this.style.setProperty(U,d,X)}}
function BW(U,d,X){return function(){var C=d.apply(this,arguments);C==null?this.style.removeProperty(U):this.style.setProperty(U,C,X)}}
function Zc(U,d){return U.style.getPropertyValue(d)||(U.ownerDocument&&U.ownerDocument.defaultView||U.document&&U||U.defaultView).getComputedStyle(U,null).getPropertyValue(d)}
function xS(U){return function(){delete this[U]}}
function Dc(U,d){return function(){this[U]=d}}
function $S(U,d){return function(){var X=d.apply(this,arguments);X==null?delete this[U]:this[U]=X}}
function hL(){this.textContent=""}
function WK(U){return function(){this.textContent=U}}
function JL(U){return function(){var d=U.apply(this,arguments);this.textContent=d==null?"":d}}
function sP(){this.innerHTML=""}
function wg(U){return function(){this.innerHTML=U}}
function bT(U){return function(){var d=U.apply(this,arguments);this.innerHTML=d==null?"":d}}
function HK(){return null}
function Ta(){var U=this.parentNode;U&&U.removeChild(this)}
function Sg(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function MU(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function vK(U,d,X){U=eg(U,d,X);return function(C){var VG=C.relatedTarget;VG&&(VG===this||VG.compareDocumentPosition(this)&8)||U.call(this,C)}}
function eg(U,d,X){return function(){U.call(this,this.__data__,d,X)}}
function oP(U){return U.trim().split(/^|\s+/).map(function(d){var X="",C=d.indexOf(".");C>=0&&(X=d.slice(C+1),d=d.slice(0,C));return{type:d,name:X}})}
function BK(U){return function(){var d=this.__on;if(d){for(var X=0,C=-1,VG=d.length,TT;X<VG;++X)(TT=d[X],U.type&&TT.type!==U.type||TT.name!==U.name)?d[++C]=TT:this.removeEventListener(TT.type,TT.listener,TT.capture);++C?d.length=C:delete this.__on}}}
function pY(U,d,X){var C=dig.hasOwnProperty(U.type)?vK:eg;return function(VG,TT,lO){VG=this.__on;var dE;TT=C(d,TT,lO);if(VG){lO=0;for(var yc=VG.length;lO<yc;++lO)if((dE=VG[lO]).type===U.type&&dE.name===U.name){this.removeEventListener(dE.type,dE.listener,dE.capture);this.addEventListener(dE.type,dE.listener=TT,dE.capture=X);dE.value=d;return}}this.addEventListener(U.type,TT,X);dE={type:U.type,name:U.name,value:d,listener:TT,capture:X};VG?VG.push(dE):this.__on=[dE]}}
function v$(U,d,X){var C=U.ownerDocument&&U.ownerDocument.defaultView||U.document&&U||U.defaultView,VG=C.CustomEvent;typeof VG==="function"?VG=new VG(d,X):(VG=C.document.createEvent("Event"),X?(VG.initEvent(d,X.bubbles,X.cancelable),VG.detail=X.detail):VG.initEvent(d,!1,!1));U.dispatchEvent(VG)}
function RP(U,d){return function(){return v$(this,U,d)}}
function KY(U,d){return function(){return v$(this,U,d.apply(this,arguments))}}
function si(U,d){this._groups=U;this._parents=d}
function Fp(){return new si([[document.documentElement]],Zjp)}
function Oi(){this._="@"+(++HjI).toString(36)}
function rg(U,d,X){U.prototype=d.prototype=X;X.constructor=U}
function fZ(U,d){U=Object.create(U.prototype);for(var X in d)U[X]=d[X];return U}
function ha(){}
function IP(U){var d;U=(U+"").trim().toLowerCase();return(d=nuo.exec(U))?(d=parseInt(d[1],16),new vg(d>>8&15|d>>4&240,d>>4&15|d&240,(d&15)<<4|d&15,1)):(d=GXK.exec(U))?Zi(parseInt(d[1],16)):(d=rAa.exec(U))?new vg(d[1],d[2],d[3],1):(d=PkP.exec(U))?new vg(d[1]*255/100,d[2]*255/100,d[3]*255/100,1):(d=WjH.exec(U))?gr(d[1],d[2],d[3],d[4]):(d=ddg.exec(U))?gr(d[1]*255/100,d[2]*255/100,d[3]*255/100,d[4]):(d=UdP.exec(U))?e_(d[1],d[2]/100,d[3]/100,1):(d=kXH.exec(U))?e_(d[1],d[2]/100,d[3]/100,d[4]):Uii.hasOwnProperty(U)?
Zi(Uii[U]):U==="transparent"?new vg(NaN,NaN,NaN,0):null}
function Zi(U){return new vg(U>>16&255,U>>8&255,U&255,1)}
function gr(U,d,X,C){C<=0&&(U=d=X=NaN);return new vg(U,d,X,C)}
function Y8(U){U instanceof ha||(U=IP(U));if(!U)return new vg;U=U.rgb();return new vg(U.r,U.g,U.b,U.opacity)}
function WH(U,d,X,C){return arguments.length===1?Y8(U):new vg(U,d,X,C==null?1:C)}
function vg(U,d,X,C){this.r=+U;this.g=+d;this.b=+X;this.opacity=+C}
function Fr(U){U=Math.max(0,Math.min(255,Math.round(U)||0));return(U<16?"0":"")+U.toString(16)}
function e_(U,d,X,C){C<=0?U=d=X=NaN:X<=0||X>=1?U=d=NaN:d<=0&&(U=NaN);return new sW(U,d,X,C)}
function SQ(U){if(U instanceof sW)return new sW(U.h,U.s,U.l,U.opacity);U instanceof ha||(U=IP(U));if(!U)return new sW;if(U instanceof sW)return U;U=U.rgb();var d=U.r/255,X=U.g/255,C=U.b/255,VG=Math.min(d,X,C),TT=Math.max(d,X,C),lO=NaN,dE=TT-VG,yc=(TT+VG)/2;dE?(lO=d===TT?(X-C)/dE+(X<C)*6:X===TT?(C-d)/dE+2:(d-X)/dE+4,dE/=yc<.5?TT+VG:2-TT-VG,lO*=60):dE=yc>0&&yc<1?0:lO;return new sW(lO,dE,yc,U.opacity)}
function NS(U,d,X,C){return arguments.length===1?SQ(U):new sW(U,d,X,C==null?1:C)}
function sW(U,d,X,C){this.h=+U;this.s=+d;this.l=+X;this.opacity=+C}
function m_(U,d,X){return(U<60?d+(X-d)*U/60:U<180?X:U<240?d+(X-d)*(240-U)/60:d)*255}
function gG(U){if(U instanceof HW)return new HW(U.l,U.a,U.b,U.opacity);if(U instanceof lT){if(isNaN(U.h))return new HW(U.l,0,0,U.opacity);var d=U.h*kDG;return new HW(U.l,Math.cos(d)*U.c,Math.sin(d)*U.c,U.opacity)}U instanceof vg||(U=Y8(U));var X=iJ(U.r),C=iJ(U.g),VG=iJ(U.b);d=qU(.2225045*X+.7168786*C+.0606169*VG);if(X===C&&C===VG)var TT=X=d;else TT=qU((.4360747*X+.3850649*C+.1430804*VG)/.96422),X=qU((.0139322*X+.0971045*C+.7141733*VG)/.82521);return new HW(116*d-16,500*(TT-d),200*(d-X),U.opacity)}
function HW(U,d,X,C){this.l=+U;this.a=+d;this.b=+X;this.opacity=+C}
function qU(U){return U>EuZ?Math.pow(U,1/3):U/E05+$iT}
function cW(U){return U>ud?U*U*U:E05*(U-$iT)}
function ob(U){return 255*(U<=.0031308?12.92*U:1.055*Math.pow(U,1/2.4)-.055)}
function iJ(U){return(U/=255)<=.04045?U/12.92:Math.pow((U+.055)/1.055,2.4)}
function dC(U){if(U instanceof lT)return new lT(U.h,U.c,U.l,U.opacity);U instanceof HW||(U=gG(U));if(U.a===0&&U.b===0)return new lT(NaN,0,U.l,U.opacity);var d=Math.atan2(U.b,U.a)*qTV;return new lT(d<0?d+360:d,Math.sqrt(U.a*U.a+U.b*U.b),U.l,U.opacity)}
function eK(U,d,X,C){return arguments.length===1?dC(U):new lT(U,d,X,C==null?1:C)}
function lT(U,d,X,C){this.h=+U;this.c=+d;this.l=+X;this.opacity=+C}
function x8(U,d,X,C){if(arguments.length===1){var VG=U;if(VG instanceof da)VG=new da(VG.h,VG.s,VG.l,VG.opacity);else{VG instanceof vg||(VG=Y8(VG));var TT=VG.g/255,lO=VG.b/255,dE=(Xrb*lO+VG.r/255*-1.7884503806-3.5172982438*TT)/(Xrb+-1.7884503806-3.5172982438);lO-=dE;var yc=(1.97294*(TT-dE)- -.29227*lO)/-.90649;lO=(TT=Math.sqrt(yc*yc+lO*lO)/(1.97294*dE*(1-dE)))?Math.atan2(yc,lO)*qTV-120:NaN;VG=new da(lO<0?lO+360:lO,TT,dE,VG.opacity)}}else VG=new da(U,d,X,C==null?1:C);return VG}
function da(U,d,X,C){this.h=+U;this.s=+d;this.l=+X;this.opacity=+C}
function rC(U,d,X,C,VG){var TT=U*U,lO=TT*U;return((1-3*U+3*TT-lO)*d+(4-6*TT+3*lO)*X+(1+3*U+3*TT-3*lO)*C+lO*VG)/6}
function T5(U){return function(){return U}}
function Yh(U,d){return function(X){return U+X*d}}
function v5(U,d,X){return U=Math.pow(U,X),d=Math.pow(d,X)-U,X=1/X,function(C){return Math.pow(U+C*d,X)}}
function Xr(U,d){var X=d-U;return X?Yh(U,X>180||X<-180?X-360*Math.round(X/360):X):T5(isNaN(U)?d:U)}
function Hs(U){return(U=+U)===1?zg:function(d,X){return X-d?v5(d,X,U):T5(isNaN(d)?X:d)}}
function zg(U,d){var X=d-U;return X?Yh(U,X):T5(isNaN(U)?d:U)}
function RH(U){return function(d){var X=d.length,C=Array(X),VG=Array(X),TT=Array(X),lO;for(lO=0;lO<X;++lO){var dE=WH(d[lO]);C[lO]=dE.r||0;VG[lO]=dE.g||0;TT[lO]=dE.b||0}C=U(C);VG=U(VG);TT=U(TT);dE.opacity=1;return function(yc){dE.r=C(yc);dE.g=VG(yc);dE.b=TT(yc);return dE+""}}}
function aL(U,d){return U=+U,d-=U,function(X){return U+d*X}}
function KZ(U){return function(){return U}}
function pZ(U){return function(d){return U(d)+""}}
function za(U,d){var X=zJT.lastIndex=gXv.lastIndex=0,C,VG,TT,lO=-1,dE=[],yc=[];U+="";for(d+="";(C=zJT.exec(U))&&(VG=gXv.exec(d));)(TT=VG.index)>X&&(TT=d.slice(X,TT),dE[lO]?dE[lO]+=TT:dE[++lO]=TT),(C=C[0])===(VG=VG[0])?dE[lO]?dE[lO]+=VG:dE[++lO]=VG:(dE[++lO]=null,yc.push({i:lO,x:aL(C,VG)})),X=gXv.lastIndex;X<d.length&&(TT=d.slice(X),dE[lO]?dE[lO]+=TT:dE[++lO]=TT);return dE.length<2?yc[0]?pZ(yc[0].x):KZ(d):(d=yc.length,function(gE){for(var Qc=0,NG;Qc<d;++Qc)dE[(NG=yc[Qc]).i]=NG.x(gE);return dE.join("")})}
function hS(U,d,X,C,VG,TT){var lO,dE,yc;if(lO=Math.sqrt(U*U+d*d))U/=lO,d/=lO;if(yc=U*X+d*C)X-=U*yc,C-=d*yc;if(dE=Math.sqrt(X*X+C*C))X/=dE,C/=dE,yc/=dE;U*C<d*X&&(U=-U,d=-d,yc=-yc,lO=-lO);return{translateX:VG,translateY:TT,rotate:Math.atan2(d,U)*miw,skewX:Math.atan(yc)*miw,scaleX:lO,scaleY:dE}}
function JS(U,d,X,C){function VG(gE){return gE.length?gE.pop()+" ":""}
function TT(gE,Qc,NG,z5,lJ,fK){gE!==NG||Qc!==z5?(lJ=lJ.push("translate(",null,d,null,X),fK.push({i:lJ-4,x:aL(gE,NG)},{i:lJ-2,x:aL(Qc,z5)})):(NG||z5)&&lJ.push("translate("+NG+d+z5+X)}
function lO(gE,Qc,NG,z5){gE!==Qc?(gE-Qc>180?Qc+=360:Qc-gE>180&&(gE+=360),z5.push({i:NG.push(VG(NG)+"rotate(",null,C)-2,x:aL(gE,Qc)})):Qc&&NG.push(VG(NG)+"rotate("+Qc+C)}
function dE(gE,Qc,NG,z5){gE!==Qc?z5.push({i:NG.push(VG(NG)+"skewX(",null,C)-2,x:aL(gE,Qc)}):Qc&&NG.push(VG(NG)+"skewX("+Qc+C)}
function yc(gE,Qc,NG,z5,lJ,fK){gE!==NG||Qc!==z5?(lJ=lJ.push(VG(lJ)+"scale(",null,",",null,")"),fK.push({i:lJ-4,x:aL(gE,NG)},{i:lJ-2,x:aL(Qc,z5)})):NG===1&&z5===1||lJ.push(VG(lJ)+"scale("+NG+","+z5+")")}
return function(gE,Qc){var NG=[],z5=[];gE=U(gE);Qc=U(Qc);TT(gE.translateX,gE.translateY,Qc.translateX,Qc.translateY,NG,z5);lO(gE.rotate,Qc.rotate,NG,z5);dE(gE.skewX,Qc.skewX,NG,z5);yc(gE.scaleX,gE.scaleY,Qc.scaleX,Qc.scaleY,NG,z5);gE=Qc=null;return function(lJ){for(var fK=-1,Aa=z5.length,Or;++fK<Aa;)NG[(Or=z5[fK]).i]=Or.x(lJ);return NG.join("")}}}
function xE(U){return function(d,X){var C=U((d=NS(d)).h,(X=NS(X)).h),VG=zg(d.s,X.s),TT=zg(d.l,X.l),lO=zg(d.opacity,X.opacity);return function(dE){d.h=C(dE);d.s=VG(dE);d.l=TT(dE);d.opacity=lO(dE);return d+""}}}
function TJ(U){return function(d,X){var C=U((d=eK(d)).h,(X=eK(X)).h),VG=zg(d.c,X.c),TT=zg(d.l,X.l),lO=zg(d.opacity,X.opacity);return function(dE){d.h=C(dE);d.c=VG(dE);d.l=TT(dE);d.opacity=lO(dE);return d+""}}}
function YU(U){return function C(X){function VG(TT,lO){var dE=U((TT=x8(TT)).h,(lO=x8(lO)).h),yc=zg(TT.s,lO.s),gE=zg(TT.l,lO.l),Qc=zg(TT.opacity,lO.opacity);return function(NG){TT.h=dE(NG);TT.s=yc(NG);TT.l=gE(Math.pow(NG,X));TT.opacity=Qc(NG);return TT+""}}
X=+X;VG.gamma=C;return VG}(1)}
function Jr(){return PS||(Asg(So4),PS=V0.now()+ozT)}
function So4(){PS=0}
function VZ(){this._call=this._time=this._next=null}
function Vy(U,d,X){var C=new VZ;C.restart(U,d,X);return C}
function iC(){PS=(xCO=V0.now())+ozT;va=iP=0;try{Jr();++va;for(var U=BRU,d;U;)(d=PS-U._time)>=0&&U._call.call(null,d),U=U._next;--va}finally{va=0;U=BRU;for(var X=Infinity;U;)if(U._call){X>U._time&&(X=U._time);var C=U;U=U._next}else d=U._next,U._next=null,U=C?C._next=d:BRU=d;KP=C;KS(X);PS=0}}
function rkG(){var U=V0.now(),d=U-xCO;d>1E3&&(ozT-=d,xCO=U)}
function KS(U){va||(iP&&(iP=clearTimeout(iP)),U-PS>24?(U<Infinity&&(iP=setTimeout(iC,U-V0.now()-ozT)),ID&&(ID=clearInterval(ID))):(ID||(xCO=V0.now(),ID=setInterval(rkG,1E3)),va=1,Asg(iC)))}
function DiT(U,d,X){var C=new VZ;d=d==null?0:+d;C.restart(function(VG){C.stop();U(VG+d)},d,X);
return C}
function CLU(U,d,X,C,VG,TT){var lO=U.__transition;if(!lO)U.__transition={};else if(X in lO)return;$dM(U,X,{name:d,index:C,group:VG,on:qbP,tween:Xbp,time:TT.time,delay:TT.delay,duration:TT.duration,ease:TT.ease,timer:null,state:0})}
function RNT(U,d){U=oq(U,d);if(U.state>0)throw Error("te");return U}
function WS(U,d){U=oq(U,d);if(U.state>2)throw Error("ue");return U}
function oq(U,d){U=U.__transition;if(!U||!(U=U[d]))throw Error("ve");return U}
function $dM(U,d,X){function C(yc){var gE,Qc;if(X.state!==1)return TT();for(z5 in lO){var NG=lO[z5];if(NG.name===X.name){if(NG.state===3)return DiT(C);NG.state===4?(NG.state=6,NG.timer.stop(),NG.on.call("interrupt",U,U.__data__,NG.index,NG.group),delete lO[z5]):+z5<d&&(NG.state=6,NG.timer.stop(),delete lO[z5])}}DiT(function(){X.state===3&&(X.state=4,X.timer.restart(VG,X.delay,X.time),VG(yc))});
X.state=2;X.on.call("start",U,U.__data__,X.index,X.group);if(X.state===2){X.state=3;dE=Array(Qc=X.tween.length);var z5=0;for(gE=-1;z5<Qc;++z5)if(NG=X.tween[z5].value.call(U,U.__data__,X.index,X.group))dE[++gE]=NG;dE.length=gE+1}}
function VG(yc){yc=yc<X.duration?X.ease.call(null,yc/X.duration):(X.timer.restart(TT),X.state=5,1);for(var gE=-1,Qc=dE.length;++gE<Qc;)dE[gE].call(null,yc);X.state===5&&(X.on.call("end",U,U.__data__,X.index,X.group),TT())}
function TT(){X.state=6;X.timer.stop();delete lO[d];for(var yc in lO)return;delete U.__transition}
var lO=U.__transition,dE;lO[d]=X;X.timer=Vy(function(yc){X.state=1;X.timer.restart(C,X.delay,X.time);X.delay<=yc&&C(yc-X.delay)},0,X.time)}
function mdm(U,d){var X,C;return function(){var VG=WS(this,U),TT=VG.tween;if(TT!==X){C=X=TT;TT=0;for(var lO=C.length;TT<lO;++TT)if(C[TT].name===d){C=C.slice();C.splice(TT,1);break}}VG.tween=C}}
function AAg(U,d,X){var C,VG;if(typeof X!=="function")throw Error();return function(){var TT=WS(this,U),lO=TT.tween;if(lO!==C){VG=(C=lO).slice();lO={name:d,value:X};for(var dE=0,yc=VG.length;dE<yc;++dE)if(VG[dE].name===d){VG[dE]=lO;break}dE===yc&&VG.push(lO)}TT.tween=VG}}
function yXT(U,d,X){var C=U._id;U.each(function(){var VG=WS(this,C);(VG.value||(VG.value={}))[d]=X.apply(this,arguments)});
return function(VG){return oq(VG,C).value[d]}}
function prg(U,d){var X;return(typeof d==="number"?aL:d instanceof IP?t25:(X=IP(d))?(d=X,t25):za)(U,d)}
function Ddg(U){return function(){this.removeAttribute(U)}}
function pb7(U){return function(){this.removeAttributeNS(U.space,U.local)}}
function tHp(U,d,X){var C,VG;return function(){var TT=this.getAttribute(U);return TT===X?null:TT===C?VG:VG=d(C=TT,X)}}
function cAK(U,d,X){var C,VG;return function(){var TT=this.getAttributeNS(U.space,U.local);return TT===X?null:TT===C?VG:VG=d(C=TT,X)}}
function aaJ(U,d,X){var C,VG,TT;return function(){var lO=X(this);if(lO==null)return void this.removeAttribute(U);var dE=this.getAttribute(U);return dE===lO?null:dE===C&&lO===VG?TT:TT=d(C=dE,VG=lO)}}
function Sbo(U,d,X){var C,VG,TT;return function(){var lO=X(this);if(lO==null)return void this.removeAttributeNS(U.space,U.local);var dE=this.getAttributeNS(U.space,U.local);return dE===lO?null:dE===C&&lO===VG?TT:TT=d(C=dE,VG=lO)}}
function YbM(U,d){function X(){var C=this,VG=d.apply(C,arguments);return VG&&function(TT){C.setAttributeNS(U.space,U.local,VG(TT))}}
X._value=d;return X}
function LjK(U,d){function X(){var C=this,VG=d.apply(C,arguments);return VG&&function(TT){C.setAttribute(U,VG(TT))}}
X._value=d;return X}
function sUg(U,d){return function(){RNT(this,U).delay=+d.apply(this,arguments)}}
function zqm(U,d){return d=+d,function(){RNT(this,U).delay=d}}
function guP(U,d){return function(){WS(this,U).duration=+d.apply(this,arguments)}}
function CkJ(U,d){return d=+d,function(){WS(this,U).duration=d}}
function R$P(U,d){if(typeof d!=="function")throw Error();return function(){WS(this,U).ease=d}}
function yj8(U){return(U+"").trim().split(/^|\s+/).every(function(d){var X=d.indexOf(".");X>=0&&(d=d.slice(0,X));return!d||d==="start"})}
function u8a(U,d,X){var C,VG,TT=yj8(d)?RNT:WS;return function(){var lO=TT(this,U),dE=lO.on;if(dE!==C)(VG=(C=dE).copy()).on(d,X);lO.on=VG}}
function vRm(U){return function(){var d=this.parentNode,X;for(X in this.__transition)if(+X!==U)return;d&&d.removeChild(this)}}
function QQI(U,d){var X,C,VG;return function(){var TT=Zc(this,U),lO=(this.style.removeProperty(U),Zc(this,U));return TT===lO?null:TT===X&&lO===C?VG:VG=d(X=TT,C=lO)}}
function jQa(U){return function(){this.style.removeProperty(U)}}
function Mto(U,d,X){var C,VG;return function(){var TT=Zc(this,U);return TT===X?null:TT===C?VG:VG=d(C=TT,X)}}
function JjM(U,d,X){var C,VG,TT;return function(){var lO=Zc(this,U),dE=X(this);dE==null&&(dE=(this.style.removeProperty(U),Zc(this,U)));return lO===dE?null:lO===C&&dE===VG?TT:TT=d(C=lO,VG=dE)}}
function VtV(U,d,X){function C(){var VG=this,TT=d.apply(VG,arguments);return TT&&function(lO){VG.style.setProperty(U,TT(lO),X)}}
C._value=d;return C}
function i2p(U){return function(){this.textContent=U}}
function Kf7(U){return function(){var d=U(this);this.textContent=d==null?"":d}}
function WR(U,d,X,C){this._groups=U;this._parents=d;this._name=X;this._id=C}
function u2W(U){return{type:U}}
function v14(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function fI8(){}
function csg(U,d){var X=new fI8;if(U instanceof fI8)U.each(function(lO,dE){X.set(dE,lO)});
else if(Array.isArray(U)){var C=-1,VG=U.length,TT;if(d==null)for(;++C<VG;)X.set(C,U[C]);else for(;++C<VG;)X.set(d(TT=U[C],C,U),TT)}else if(U)for(C in U)X.set(C,U[C]);return X}
function eXW(){}
function aXb(U){return function(d){for(var X={},C=0;C<U.length;C++)X[U[C]]=d[C]||"";return X}}
function Iym(U,d){var X=aXb(U);return function(C,VG){return d(X(C),VG,U)}}
function h$g(U){var d=Object.create(null),X=[];U.forEach(function(C){for(var VG in C)VG in d||X.push(d[VG]=VG)});
return X}
function STg(U){function d(lO,dE){function yc(){if(fK)return QJP;if(Aa)return Aa=!1,YTg;var qc,mu=NG,I3;if(lO.charCodeAt(mu)===34){for(;NG++<Qc&&lO.charCodeAt(NG)!==34||lO.charCodeAt(++NG)===34;);(qc=NG)>=Qc?fK=!0:(I3=lO.charCodeAt(NG++))===10?Aa=!0:I3===13&&(Aa=!0,lO.charCodeAt(NG)===10&&++NG);return lO.slice(mu+1,qc-1).replace(/""/g,'"')}for(;NG<Qc;){if((I3=lO.charCodeAt(qc=NG++))===10)Aa=!0;else if(I3===13)Aa=!0,lO.charCodeAt(NG)===10&&++NG;else if(I3!==TT)continue;return lO.slice(mu,qc)}return fK=
!0,lO.slice(mu,Qc)}
var gE=[],Qc=lO.length,NG=0,z5=0,lJ,fK=Qc<=0,Aa=!1;lO.charCodeAt(Qc-1)===10&&--Qc;for(lO.charCodeAt(Qc-1)===13&&--Qc;(lJ=yc())!==QJP;){for(var Or=[];lJ!==YTg&&lJ!==QJP;)Or.push(lJ),lJ=yc();dE&&(Or=dE(Or,z5++))==null||gE.push(Or)}return gE}
function X(lO){return lO.map(C).join(U)}
function C(lO){return lO==null?"":VG.test(lO)?'"'+lO.replace(/"/g,'""')+'"':lO}
var VG=new RegExp('["'+U+"\n\r]"),TT=U.charCodeAt(0);return{parse:function(lO,dE){var yc,gE;lO=d(lO,function(Qc,NG){if(yc)return yc(Qc,NG-1);gE=Qc;yc=dE?Iym(Qc,dE):aXb(Qc)});
lO.columns=gE||[];return lO},
parseRows:d,format:function(lO,dE){dE==null&&(dE=h$g(lO));return[dE.map(C).join(U)].concat(lO.map(function(yc){return dE.map(function(gE){return C(yc[gE])}).join(U)})).join("\n")},
formatRows:function(lO){return lO.map(X).join("\n")}}}
function b2I(U){if(!U.ok)throw Error("we`"+U.status+"`"+U.statusText);return U.text()}
function LIb(U){return function(d,X,C){arguments.length===2&&typeof X==="function"&&(C=X,X=void 0);return fetch(d,X).then(b2I).then(function(VG){return U(VG,C)})}}
function smT(U,d,X,C){if(isNaN(d)||isNaN(X))return U;var VG,TT=U._root;C={data:C};var lO=U._x0,dE=U._y0,yc=U._x1,gE=U._y1,Qc,NG,z5,lJ,fK;if(!TT)return U._root=C,U;for(;TT.length;)if((z5=d>=(Qc=(lO+yc)/2))?lO=Qc:yc=Qc,(lJ=X>=(NG=(dE+gE)/2))?dE=NG:gE=NG,VG=TT,!(TT=TT[fK=lJ<<1|z5]))return VG[fK]=C,U;var Aa=+U._x.call(null,TT.data);var Or=+U._y.call(null,TT.data);if(d===Aa&&X===Or)return C.next=TT,VG?VG[fK]=C:U._root=C,U;do VG=VG?VG[fK]=Array(4):U._root=Array(4),(z5=d>=(Qc=(lO+yc)/2))?lO=Qc:yc=Qc,(lJ=
X>=(NG=(dE+gE)/2))?dE=NG:gE=NG;while((fK=lJ<<1|z5)===(z5=(Or>=NG)<<1|Aa>=Qc));return VG[z5]=TT,VG[fK]=C,U}
function WN(U,d,X,C,VG){this.node=U;this.x0=d;this.y0=X;this.x1=C;this.y1=VG}
function FfP(U){return U[0]}
function wOH(U){return U[1]}
function jJW(U,d,X,C,VG,TT){this._x=U;this._y=d;this._x0=X;this._y0=C;this._x1=VG;this._y1=TT;this._root=void 0}
function zxV(U){for(var d={data:U.data},X=d;U=U.next;)X=X.next={data:U.data};return d}
function lIT(U,d){if((d=(U=d?U.toExponential(d-1):U.toExponential()).indexOf("e"))<0)return null;var X=U.slice(0,d);return[X.length>1?X[0]+X.slice(2):X,+U.slice(d+1)]}
function N9P(U){return U=lIT(Math.abs(U)),U?U[1]:NaN}
function T9m(U,d){return function(X,C){for(var VG=X.length,TT=[],lO=0,dE=U[0],yc=0;VG>0&&dE>0;){yc+dE+1>C&&(dE=Math.max(1,C-yc));TT.push(X.substring(VG-=dE,VG+dE));if((yc+=dE+1)>C)break;dE=U[lO=(lO+1)%U.length]}return TT.reverse().join(d)}}
function oRZ(U){return function(d){return d.replace(/[0-9]/g,function(X){return U[+X]})}}
function MuL(U){return new JX4(U)}
function JX4(U){if(!(d=xvK.exec(U)))throw Error("xe`"+U);var d;this.fill=d[1]||" ";this.align=d[2]||">";this.sign=d[3]||"-";this.symbol=d[4]||"";this.zero=!!d[5];this.width=d[6]&&+d[6];this.comma=!!d[7];this.precision=d[8]&&+d[8].slice(1);this.trim=!!d[9];this.type=d[10]||""}
function g05(U,d){d=lIT(U,d);if(!d)return U+"";U=d[0];d=d[1];return d<0?"0."+Array(-d).join("0")+U:U.length>d+1?U.slice(0,d+1)+"."+U.slice(d+1):U+Array(d-U.length+2).join("0")}
function Ctc(U){return U}
function B9a(U){function d(dE){function yc(so){var C9=I3,$M=AF,TB,My;if(mu==="c")$M=A2(so)+$M,so="";else{so=+so;var HH=so<0;so=A2(Math.abs(so),Or);if(qc){var qs=so.length,HA=1,X4=-1;a:for(;HA<qs;++HA)switch(so[HA]){case ".":X4=TB=HA;break;case "0":X4===0&&(X4=HA);TB=HA;break;default:if(!+so[HA])break a;X4>0&&(X4=0)}so=X4>0?so.slice(0,X4)+so.slice(TB+1):so}HH&&+so===0&&(HH=!1);C9=(HH?NG==="("?NG:"-":NG==="-"||NG==="("?"":NG)+C9;$M=(mu==="s"?RJb[8+yng/3]:"")+$M+(HH&&NG==="("?")":"");if(x7)for(HH=-1,
TB=so.length;++HH<TB;)if(My=so.charCodeAt(HH),48>My||My>57){$M=(My===46?VG+so.slice(HH+1):so.slice(HH))+$M;so=so.slice(0,HH);break}}Aa&&!lJ&&(so=X(so,Infinity));My=C9.length+so.length+$M.length;HH=My<fK?Array(fK-My+1).join(gE):"";Aa&&lJ&&(so=X(HH+so,HH.length?fK-$M.length:Infinity),HH="");switch(Qc){case "<":so=C9+so+$M+HH;break;case "=":so=C9+HH+so+$M;break;case "^":so=HH.slice(0,My=HH.length>>1)+C9+so+$M+HH.slice(My);break;default:so=HH+C9+so+$M}return TT(so)}
dE=MuL(dE);var gE=dE.fill,Qc=dE.align,NG=dE.sign,z5=dE.symbol,lJ=dE.zero,fK=dE.width,Aa=dE.comma,Or=dE.precision,qc=dE.trim,mu=dE.type;mu==="n"?(Aa=!0,mu="g"):uwc[mu]||(Or==null&&(Or=12),qc=!0,mu="g");if(lJ||gE==="0"&&Qc==="=")lJ=!0,gE="0",Qc="=";var I3=z5==="$"?C[0]:z5==="#"&&/[boxX]/.test(mu)?"0"+mu.toLowerCase():"",AF=z5==="$"?C[1]:/[%p]/.test(mu)?lO:"",A2=uwc[mu],x7=/[defgprs%]/.test(mu);Or=Or==null?6:/[gprs]/.test(mu)?Math.max(1,Math.min(21,Or)):Math.max(0,Math.min(20,Or));yc.toString=function(){return dE+
""};
return yc}
var X=U.grouping&&U.thousands?T9m(U.grouping,U.thousands):Ctc,C=U.currency,VG=U.decimal,TT=U.numerals?oRZ(U.numerals):Ctc,lO=U.percent||"%";return{format:d,formatPrefix:function(dE,yc){var gE=d((dE=MuL(dE),dE.type="f",dE));dE=Math.max(-8,Math.min(8,Math.floor(N9P(yc)/3)))*3;var Qc=Math.pow(10,-dE),NG=RJb[8+dE/3];return function(z5){return gE(Qc*z5)+NG}}}}
function bj(){this.reset()}
function vXc(U,d,X){var C=U.s=d+X,VG=C-d;U.t=d-(C-VG)+(X-VG)}
function OJS(U){return U>1?ZA:U<-1?-ZA:Math.asin(U)}
function fyK(){}
function Qi8(U){var d=U[0];U=U[1];var X=HZ(U);return[X*HZ(d),X*oH(d),oH(U)]}
function jig(U,d){return[U[1]*d[2]-U[2]*d[1],U[2]*d[0]-U[0]*d[2],U[0]*d[1]-U[1]*d[0]]}
function M5G(U){var d=ZJU(U[0]*U[0]+U[1]*U[1]+U[2]*U[2]);U[0]/=d;U[1]/=d;U[2]/=d}
function e$J(){var U=[],d;return{point:function(X,C){d.push([X,C])},
lineStart:function(){U.push(d=[])},
lineEnd:fyK,rejoin:function(){U.length>1&&U.push(U.pop().concat(U.shift()))},
result:function(){var X=U;U=[];d=null;return X}}}
function HJW(U,d,X,C){this.x=U;this.z=d;this.o=X;this.e=C;this.v=!1;this.n=this.p=null}
function lyM(U,d,X,C,VG){var TT=[],lO=[];U.forEach(function(NG){if(!((z5=NG.length-1)<=0)){var z5,lJ=NG[0],fK=NG[z5],Aa=lJ;if(dj(Aa[0]-fK[0])<1E-6&&dj(Aa[1]-fK[1])<1E-6){VG.lineStart();for(dE=0;dE<z5;++dE)VG.point((lJ=NG[dE])[0],lJ[1]);VG.lineEnd()}else TT.push(z5=new HJW(lJ,NG,null,!0)),lO.push(z5.o=new HJW(lJ,null,z5,!1)),TT.push(z5=new HJW(fK,NG,null,!1)),lO.push(z5.o=new HJW(fK,null,z5,!0))}});
if(TT.length){lO.sort(d);JnV(TT);JnV(lO);var dE=0;for(U=lO.length;dE<U;++dE)lO[dE].e=X=!X;X=TT[0];for(var yc;;){for(var gE=X,Qc=!0;gE.v;)if((gE=gE.n)===X)return;d=gE.z;VG.lineStart();do{gE.v=gE.o.v=!0;if(gE.e){if(Qc)for(dE=0,U=d.length;dE<U;++dE)VG.point((yc=d[dE])[0],yc[1]);else C(gE.x,gE.n.x,1,VG);gE=gE.n}else{if(Qc)for(d=gE.p.z,dE=d.length-1;dE>=0;--dE)VG.point((yc=d[dE])[0],yc[1]);else C(gE.x,gE.p.x,-1,VG);gE=gE.p}gE=gE.o;d=gE.z;Qc=!Qc}while(!gE.v);VG.lineEnd()}}}
function JnV(U){if(d=U.length){for(var d,X=0,C=U[0],VG;++X<d;)C.n=VG=U[X],VG.p=C,C=VG;C.n=VG=U[0];VG.p=C}}
function O2Z(U){return U.length>1}
function Z2m(U,d){return((U=U.x)[0]<0?U[1]-ZA-1E-6:ZA-U[1])-((d=d.x)[0]<0?d[1]-ZA-1E-6:ZA-d[1])}
function VuT(){}
function V55(U){return function(d,X){var C=HZ(d),VG=HZ(X);C=U(C*VG);return[C*VG*oH(d),C*oH(X)]}}
function hB(U){return function(d,X){var C=ZJU(d*d+X*X),VG=U(C),TT=oH(VG);VG=HZ(VG);return[ilL(d*TT,C*VG),OJS(C&&X*TT/C)]}}
function H2a(U){var d=0,X=U.children,C=X&&X.length;if(C)for(;--C>=0;)d+=X[C].value;else d=1;U.value=d}
function K$c(U,d){var X=new bP(U);U=+U.value&&(X.value=U.value);var C,VG=[X],TT,lO,dE,yc;for(d==null&&(d=nRZ);C=VG.pop();)if(U&&(C.value=+C.data.value),(lO=d(C.data))&&(yc=lO.length))for(C.children=Array(yc),dE=yc-1;dE>=0;--dE)VG.push(TT=C.children[dE]=new bP(lO[dE])),TT.parent=C,TT.depth=C.depth+1;return X.eachBefore(GhV)}
function nRZ(U){return U.children}
function rj8(U){U.data=U.data.data}
function GhV(U){var d=0;do U.height=d;while((U=U.parent)&&U.height<++d)}
function bP(U){this.data=U;this.depth=this.height=0;this.parent=null}
function MQ(U,d,X,C){function VG(TT){return U(TT=new Date(+TT)),TT}
VG.floor=VG;VG.ceil=function(TT){return U(TT=new Date(TT-1)),d(TT,1),U(TT),TT};
VG.round=function(TT){var lO=VG(TT),dE=VG.ceil(TT);return TT-lO<dE-TT?lO:dE};
VG.offset=function(TT,lO){return d(TT=new Date(+TT),lO==null?1:Math.floor(lO)),TT};
VG.range=function(TT,lO,dE){var yc=[],gE;TT=VG.ceil(TT);dE=dE==null?1:Math.floor(dE);if(!(TT<lO&&dE>0))return yc;do yc.push(gE=new Date(+TT)),d(TT,dE),U(TT);while(gE<TT&&TT<lO);return yc};
VG.filter=function(TT){return MQ(function(lO){if(lO>=lO)for(;U(lO),!TT(lO);)lO.setTime(lO-1)},function(lO,dE){if(lO>=lO)if(dE<0)for(;++dE<=0;)for(;d(lO,-1),!TT(lO););
else for(;--dE>=0;)for(;d(lO,1),!TT(lO););})};
X&&(VG.count=function(TT,lO){iQS.setTime(+TT);KsT.setTime(+lO);U(iQS);U(KsT);return Math.floor(X(iQS,KsT))},VG.every=function(TT){TT=Math.floor(TT);
return isFinite(TT)&&TT>0?TT>1?VG.filter(C?function(lO){return C(lO)%TT===0}:function(lO){return VG.count(0,lO)%TT===0}):VG:null});
return VG}
function dJ(U){return MQ(function(d){d.setDate(d.getDate()-(d.getDay()+7-U)%7);d.setHours(0,0,0,0)},function(d,X){d.setDate(d.getDate()+X*7)},function(d,X){return(X-d-(X.getTimezoneOffset()-d.getTimezoneOffset())*6E4)/6048E5})}
function UK(U){return MQ(function(d){d.setUTCDate(d.getUTCDate()-(d.getUTCDay()+7-U)%7);d.setUTCHours(0,0,0,0)},function(d,X){d.setUTCDate(d.getUTCDate()+X*7)},function(d,X){return(X-d)/6048E5})}
function P3o(U){if(0<=U.y&&U.y<100){var d=new Date(-1,U.m,U.d,U.H,U.M,U.S,U.L);d.setFullYear(U.y);return d}return new Date(U.y,U.m,U.d,U.H,U.M,U.S,U.L)}
function nzT(U){if(0<=U.y&&U.y<100){var d=new Date(Date.UTC(-1,U.m,U.d,U.H,U.M,U.S,U.L));d.setUTCFullYear(U.y);return d}return new Date(Date.UTC(U.y,U.m,U.d,U.H,U.M,U.S,U.L))}
function FY(U){return{y:U,m:0,d:1,H:0,M:0,S:0,L:0}}
function Wfg(U){function d($M,TB){return function(My){var HH=[],qs=-1,HA=0,X4=$M.length,QN,yr;for(My instanceof Date||(My=new Date(+My));++qs<X4;)if($M.charCodeAt(qs)===37){HH.push($M.slice(HA,qs));(HA=I58[QN=$M.charAt(++qs)])!=null?QN=$M.charAt(++qs):HA=QN==="e"?" ":"0";if(yr=TB[QN])QN=yr(My,HA);HH.push(QN);HA=qs+1}HH.push($M.slice(HA,qs));return HH.join("")}}
function X($M,TB){return function(My){var HH=FY(1900);if(C(HH,$M,My,0)!=My.length)return null;if("Q"in HH)return new Date(HH.Q);"p"in HH&&(HH.H=HH.H%12+HH.p*12);if("V"in HH){if(HH.V<1||HH.V>53)return null;"w"in HH||(HH.w=1);if("Z"in HH){My=nzT(FY(HH.y));var qs=My.getUTCDay();My=qs>4||qs===0?ILU.ceil(My):ILU(My);My=hJY.offset(My,(HH.V-1)*7);HH.y=My.getUTCFullYear();HH.m=My.getUTCMonth();HH.d=My.getUTCDate()+(HH.w+6)%7}else My=TB(FY(HH.y)),qs=My.getDay(),My=qs>4||qs===0?hN8.ceil(My):hN8(My),My=blK.offset(My,
(HH.V-1)*7),HH.y=My.getFullYear(),HH.m=My.getMonth(),HH.d=My.getDate()+(HH.w+6)%7}else if("W"in HH||"U"in HH)"w"in HH||(HH.w="u"in HH?HH.u%7:"W"in HH?1:0),qs="Z"in HH?nzT(FY(HH.y)).getUTCDay():TB(FY(HH.y)).getDay(),HH.m=0,HH.d="W"in HH?(HH.w+6)%7+HH.W*7-(qs+5)%7:HH.w+HH.U*7-(qs+6)%7;return"Z"in HH?(HH.H+=HH.Z/100|0,HH.M+=HH.Z%100,nzT(HH)):TB(HH)}}
function C($M,TB,My,HH){for(var qs=0,HA=TB.length,X4=My.length,QN;qs<HA;){if(HH>=X4)return-1;QN=TB.charCodeAt(qs++);if(QN===37){if(QN=TB.charAt(qs++),QN=C9[QN in I58?TB.charAt(qs++):QN],!QN||(HH=QN($M,My,HH))<0)return-1}else if(QN!=My.charCodeAt(HH++))return-1}return HH}
var VG=U.dateTime,TT=U.date,lO=U.time,dE=U.periods,yc=U.days,gE=U.shortDays,Qc=U.months,NG=U.shortMonths,z5=wi(dE),lJ=NN(dE),fK=wi(yc),Aa=NN(yc),Or=wi(gE),qc=NN(gE),mu=wi(Qc),I3=NN(Qc),AF=wi(NG),A2=NN(NG),x7={a:function($M){return gE[$M.getDay()]},
A:function($M){return yc[$M.getDay()]},
b:function($M){return NG[$M.getMonth()]},
B:function($M){return Qc[$M.getMonth()]},
c:null,d:F$T,e:F$T,f:dvV,H:UvM,I:khg,j:ERg,L:w1V,m:$vo,M:qDg,p:function($M){return dE[+($M.getHours()>=12)]},
Q:Nvw,s:TvT,S:XOa,u:mv8,U:Aj7,V:DvI,w:pOV,W:ttm,x:null,X:null,y:cjJ,Y:ayH,Z:SDg,"%":oX5},so={a:function($M){return gE[$M.getUTCDay()]},
A:function($M){return yc[$M.getUTCDay()]},
b:function($M){return NG[$M.getUTCMonth()]},
B:function($M){return Qc[$M.getUTCMonth()]},
c:null,d:xLY,e:xLY,f:YDH,H:LfJ,I:sQ7,j:z$g,L:BvY,m:gRa,M:C3a,p:function($M){return dE[+($M.getUTCHours()>=12)]},
Q:Nvw,s:TvT,S:RlI,u:y4M,U:uaK,V:vWo,w:QGH,W:jGH,x:null,X:null,y:MEm,Y:J4a,Z:VEM,"%":oX5},C9={a:function($M,TB,My){return(TB=Or.exec(TB.slice(My)))?($M.w=qc[TB[0].toLowerCase()],My+TB[0].length):-1},
A:function($M,TB,My){return(TB=fK.exec(TB.slice(My)))?($M.w=Aa[TB[0].toLowerCase()],My+TB[0].length):-1},
b:function($M,TB,My){return(TB=AF.exec(TB.slice(My)))?($M.m=A2[TB[0].toLowerCase()],My+TB[0].length):-1},
B:function($M,TB,My){return(TB=mu.exec(TB.slice(My)))?($M.m=I3[TB[0].toLowerCase()],My+TB[0].length):-1},
c:function($M,TB,My){return C($M,VG,TB,My)},
d:f5T,e:f5T,f:itJ,H:eJ5,I:eJ5,j:KEp,L:IE7,m:hlI,M:btg,p:function($M,TB,My){return(TB=z5.exec(TB.slice(My)))?($M.p=lJ[TB[0].toLowerCase()],My+TB[0].length):-1},
Q:FEH,s:weK,S:NuP,u:Tuo,U:oWM,V:xwM,w:Bu8,W:fEg,x:function($M,TB,My){return C($M,TT,TB,My)},
X:function($M,TB,My){return C($M,lO,TB,My)},
y:el8,Y:lEa,Z:OtV,"%":ZtH};x7.x=d(TT,x7);x7.X=d(lO,x7);x7.c=d(VG,x7);so.x=d(TT,so);so.X=d(lO,so);so.c=d(VG,so);return{format:function($M){var TB=d($M,x7);TB.toString=function(){return $M};
return TB},
parse:function($M){var TB=X($M,P3o);TB.toString=function(){return $M};
return TB},
utcFormat:function($M){var TB=d($M,so);TB.toString=function(){return $M};
return TB},
utcParse:function($M){var TB=X($M,nzT);TB.toString=function(){return $M};
return TB}}}
function h7(U,d,X){var C=U<0?"-":"";U=(C?-U:U)+"";var VG=U.length;return C+(VG<X?Array(X-VG+1).join(d)+U:U)}
function HtK(U){return U.replace(nWM,"\\$&")}
function wi(U){return new RegExp("^(?:"+U.map(HtK).join("|")+")","i")}
function NN(U){for(var d={},X=-1,C=U.length;++X<C;)d[U[X].toLowerCase()]=X;return d}
function Bu8(U,d,X){return(d=hN.exec(d.slice(X,X+1)))?(U.w=+d[0],X+d[0].length):-1}
function Tuo(U,d,X){return(d=hN.exec(d.slice(X,X+1)))?(U.u=+d[0],X+d[0].length):-1}
function oWM(U,d,X){return(d=hN.exec(d.slice(X,X+2)))?(U.U=+d[0],X+d[0].length):-1}
function xwM(U,d,X){return(d=hN.exec(d.slice(X,X+2)))?(U.V=+d[0],X+d[0].length):-1}
function fEg(U,d,X){return(d=hN.exec(d.slice(X,X+2)))?(U.W=+d[0],X+d[0].length):-1}
function lEa(U,d,X){return(d=hN.exec(d.slice(X,X+4)))?(U.y=+d[0],X+d[0].length):-1}
function el8(U,d,X){return(d=hN.exec(d.slice(X,X+2)))?(U.y=+d[0]+(+d[0]>68?1900:2E3),X+d[0].length):-1}
function OtV(U,d,X){return(d=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(d.slice(X,X+6)))?(U.Z=d[1]?0:-(d[2]+(d[3]||"00")),X+d[0].length):-1}
function hlI(U,d,X){return(d=hN.exec(d.slice(X,X+2)))?(U.m=d[0]-1,X+d[0].length):-1}
function f5T(U,d,X){return(d=hN.exec(d.slice(X,X+2)))?(U.d=+d[0],X+d[0].length):-1}
function KEp(U,d,X){return(d=hN.exec(d.slice(X,X+3)))?(U.m=0,U.d=+d[0],X+d[0].length):-1}
function eJ5(U,d,X){return(d=hN.exec(d.slice(X,X+2)))?(U.H=+d[0],X+d[0].length):-1}
function btg(U,d,X){return(d=hN.exec(d.slice(X,X+2)))?(U.M=+d[0],X+d[0].length):-1}
function NuP(U,d,X){return(d=hN.exec(d.slice(X,X+2)))?(U.S=+d[0],X+d[0].length):-1}
function IE7(U,d,X){return(d=hN.exec(d.slice(X,X+3)))?(U.L=+d[0],X+d[0].length):-1}
function itJ(U,d,X){return(d=hN.exec(d.slice(X,X+6)))?(U.L=Math.floor(d[0]/1E3),X+d[0].length):-1}
function ZtH(U,d,X){return(U=GCM.exec(d.slice(X,X+1)))?X+U[0].length:-1}
function FEH(U,d,X){return(d=hN.exec(d.slice(X)))?(U.Q=+d[0],X+d[0].length):-1}
function weK(U,d,X){return(d=hN.exec(d.slice(X)))?(U.Q=+d[0]*1E3,X+d[0].length):-1}
function F$T(U,d){return h7(U.getDate(),d,2)}
function UvM(U,d){return h7(U.getHours(),d,2)}
function khg(U,d){return h7(U.getHours()%12||12,d,2)}
function ERg(U,d){return h7(1+blK.count(Qu(U),U),d,3)}
function w1V(U,d){return h7(U.getMilliseconds(),d,3)}
function dvV(U,d){return w1V(U,d)+"000"}
function $vo(U,d){return h7(U.getMonth()+1,d,2)}
function qDg(U,d){return h7(U.getMinutes(),d,2)}
function XOa(U,d){return h7(U.getSeconds(),d,2)}
function mv8(U){U=U.getDay();return U===0?7:U}
function Aj7(U,d){return h7(r4M.count(Qu(U),U),d,2)}
function DvI(U,d){var X=U.getDay();U=X>=4||X===0?bQU(U):bQU.ceil(U);return h7(bQU.count(Qu(U),U)+(Qu(U).getDay()===4),d,2)}
function pOV(U){return U.getDay()}
function ttm(U,d){return h7(hN8.count(Qu(U),U),d,2)}
function cjJ(U,d){return h7(U.getFullYear()%100,d,2)}
function ayH(U,d){return h7(U.getFullYear()%1E4,d,4)}
function SDg(U){U=U.getTimezoneOffset();return(U>0?"-":(U*=-1,"+"))+h7(U/60|0,"0",2)+h7(U%60,"0",2)}
function xLY(U,d){return h7(U.getUTCDate(),d,2)}
function LfJ(U,d){return h7(U.getUTCHours(),d,2)}
function sQ7(U,d){return h7(U.getUTCHours()%12||12,d,2)}
function z$g(U,d){return h7(1+hJY.count(j3(U),U),d,3)}
function BvY(U,d){return h7(U.getUTCMilliseconds(),d,3)}
function YDH(U,d){return BvY(U,d)+"000"}
function gRa(U,d){return h7(U.getUTCMonth()+1,d,2)}
function C3a(U,d){return h7(U.getUTCMinutes(),d,2)}
function RlI(U,d){return h7(U.getUTCSeconds(),d,2)}
function y4M(U){U=U.getUTCDay();return U===0?7:U}
function uaK(U,d){return h7(PuP.count(j3(U),U),d,2)}
function vWo(U,d){var X=U.getUTCDay();U=X>=4||X===0?FsU(U):FsU.ceil(U);return h7(FsU.count(j3(U),U)+(j3(U).getUTCDay()===4),d,2)}
function QGH(U){return U.getUTCDay()}
function jGH(U,d){return h7(ILU.count(j3(U),U),d,2)}
function MEm(U,d){return h7(U.getUTCFullYear()%100,d,2)}
function J4a(U,d){return h7(U.getUTCFullYear()%1E4,d,4)}
function VEM(){return"+0000"}
function oX5(){return"%"}
function Nvw(U){return+U}
function TvT(U){return Math.floor(+U/1E3)}
function FV(U){for(var d=U.length/6|0,X=Array(d),C=0;C<d;)X[C]="#"+U.slice(C*6,++C*6);return X}
function Xn(U){return WEV(U[U.length-1])}
function GuW(U){var d=U.length;return function(X){return U[Math.max(0,Math.min(d-1,Math.floor(X*d)))]}}
function l5g(U){this._context=U}
function Olc(U){this._curve=U}
function ZlL(U,d,X){var C=U._x1-U._x0;d-=U._x1;var VG=(U._y1-U._y0)/(C||d<0&&-0);U=(X-U._y1)/(d||C<0&&-0);return((VG<0?-1:1)+(U<0?-1:1))*Math.min(Math.abs(VG),Math.abs(U),.5*Math.abs((VG*d+U*C)/(C+d)))||0}
function Hlb(U,d){var X=U._x1-U._x0;return X?(3*(U._y1-U._y0)/X-d)/2:d}
function wRT(U,d,X){var C=U._x0,VG=U._x1,TT=U._y1,lO=(VG-C)/3;U._context.bezierCurveTo(C+lO,U._y0+lO*d,VG-lO,TT-lO*X,VG,TT)}
function Nj8(U){this._context=U}
function nXb(U){this._context=U}
function TA(U,d,X){this.k=U;this.x=d;this.y=X}
(function(U){U.length===1&&(U=y(U));return{left:function(d,X,C,VG){C==null&&(C=0);VG==null&&(VG=d.length);for(;C<VG;){var TT=C+VG>>>1;U(d[TT],X)<0?C=TT+1:VG=TT}return C},
right:function(d,X,C,VG){C==null&&(C=0);VG==null&&(VG=d.length);for(;C<VG;){var TT=C+VG>>>1;U(d[TT],X)>0?VG=TT:C=TT+1}return C}}})(R);
var OjI={value:function(){}};
v.prototype=u.prototype={constructor:v,on:function(U,d){var X=this._,C=Q(U+"",X),VG,TT=-1,lO=C.length;if(arguments.length<2)for(;++TT<lO;){var dE;if(dE=VG=(U=C[TT]).type){a:{dE=X[VG];for(var yc=0,gE=dE.length;yc<gE;++yc)if((VG=dE[yc]).name===U.name){VG=VG.value;break a}VG=void 0}dE=VG}if(dE)return VG}else{if(d!=null&&typeof d!=="function")throw Error("ye`"+d);for(;++TT<lO;)if(VG=(U=C[TT]).type)X[VG]=M(X[VG],U.name,d);else if(d==null)for(VG in X)X[VG]=M(X[VG],U.name,null);return this}},
copy:function(){var U={},d=this._,X;for(X in d)U[X]=d[X].slice();return new v(U)},
call:function(U,d){if((VG=arguments.length-2)>0)for(var X=Array(VG),C=0,VG,TT;C<VG;++C)X[C]=arguments[C+2];if(!this._.hasOwnProperty(U))throw Error("se`"+U);TT=this._[U];C=0;for(VG=TT.length;C<VG;++C)TT[C].value.apply(d,X)},
apply:function(U,d,X){if(!this._.hasOwnProperty(U))throw Error("se`"+U);U=this._[U];for(var C=0,VG=U.length;C<VG;++C)U[C].value.apply(d,X)}};
var OJ={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/"},GLY=function(U){return function(){return this.matches(U)}};
if(typeof document!=="undefined"){var oD=document.documentElement;if(!oD.matches){var dwZ=oD.webkitMatchesSelector||oD.msMatchesSelector||oD.mozMatchesSelector||oD.oMatchesSelector;GLY=function(U){return function(){return dwZ.call(this,U)}}}}var rni=GLY;
l.prototype={constructor:l,appendChild:function(U){return this._parent.insertBefore(U,this._next)},
insertBefore:function(U,d){return this._parent.insertBefore(U,d)},
querySelector:function(U){return this._parent.querySelector(U)},
querySelectorAll:function(U){return this._parent.querySelectorAll(U)}};
var dig={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(dig={mouseenter:"mouseover",mouseleave:"mouseout"}));var Zjp=[null];si.prototype=Fp.prototype={constructor:si,select:function(U){typeof U!=="function"&&(U=x(U));for(var d=this._groups,X=d.length,C=Array(X),VG=0;VG<X;++VG)for(var TT=d[VG],lO=TT.length,dE=C[VG]=Array(lO),yc,gE,Qc=0;Qc<lO;++Qc)(yc=TT[Qc])&&(gE=U.call(yc,yc.__data__,Qc,TT))&&("__data__"in yc&&(gE.__data__=yc.__data__),dE[Qc]=gE);return new si(C,this._parents)},
filter:function(U){typeof U!=="function"&&(U=rni(U));for(var d=this._groups,X=d.length,C=Array(X),VG=0;VG<X;++VG)for(var TT=d[VG],lO=TT.length,dE=C[VG]=[],yc,gE=0;gE<lO;++gE)(yc=TT[gE])&&U.call(yc,yc.__data__,gE,TT)&&dE.push(yc);return new si(C,this._parents)},
data:function(U,d){if(!U)return lJ=Array(this.size()),gE=-1,this.each(function(mu){lJ[++gE]=mu}),lJ;
var X=d?k:P,C=this._parents,VG=this._groups;typeof U!=="function"&&(U=Z(U));for(var TT=VG.length,lO=Array(TT),dE=Array(TT),yc=Array(TT),gE=0;gE<TT;++gE){var Qc=C[gE],NG=VG[gE],z5=NG.length,lJ=U.call(Qc,Qc&&Qc.__data__,gE,C),fK=lJ.length,Aa=dE[gE]=Array(fK),Or=lO[gE]=Array(fK);z5=yc[gE]=Array(z5);X(Qc,NG,Aa,Or,z5,lJ,d);NG=Qc=0;for(var qc;Qc<fK;++Qc)if(z5=Aa[Qc]){for(Qc>=NG&&(NG=Qc+1);!(qc=Or[NG])&&++NG<fK;);z5._next=qc||null}}lO=new si(lO,C);lO._enter=dE;lO._exit=yc;return lO},
enter:function(){return new si(this._enter||this._groups.map(B),this._parents)},
exit:function(){return new si(this._exit||this._groups.map(B),this._parents)},
merge:function(U){var d=this._groups;U=U._groups;for(var X=d.length,C=Math.min(X,U.length),VG=Array(X),TT=0;TT<C;++TT)for(var lO=d[TT],dE=U[TT],yc=lO.length,gE=VG[TT]=Array(yc),Qc,NG=0;NG<yc;++NG)if(Qc=lO[NG]||dE[NG])gE[NG]=Qc;for(;TT<X;++TT)VG[TT]=d[TT];return new si(VG,this._parents)},
order:function(){for(var U=this._groups,d=-1,X=U.length;++d<X;)for(var C=U[d],VG=C.length-1,TT=C[VG],lO;--VG>=0;)if(lO=C[VG])TT&&TT!==lO.nextSibling&&TT.parentNode.insertBefore(lO,TT),TT=lO;return this},
sort:function(U){function d(NG,z5){return NG&&z5?U(NG.__data__,z5.__data__):!NG-!z5}
U||(U=E);for(var X=this._groups,C=X.length,VG=Array(C),TT=0;TT<C;++TT){for(var lO=X[TT],dE=lO.length,yc=VG[TT]=Array(dE),gE,Qc=0;Qc<dE;++Qc)if(gE=lO[Qc])yc[Qc]=gE;yc.sort(d)}return(new si(VG,this._parents)).order()},
call:function(){var U=arguments[0];arguments[0]=this;U.apply(null,arguments);return this},
nodes:function(){var U=Array(this.size()),d=-1;this.each(function(){U[++d]=this});
return U},
node:function(){for(var U=this._groups,d=0,X=U.length;d<X;++d)for(var C=U[d],VG=0,TT=C.length;VG<TT;++VG){var lO=C[VG];if(lO)return lO}return null},
size:function(){var U=0;this.each(function(){++U});
return U},
empty:function(){return!this.node()},
each:function(U){for(var d=this._groups,X=0,C=d.length;X<C;++X)for(var VG=d[X],TT=0,lO=VG.length,dE;TT<lO;++TT)(dE=VG[TT])&&U.call(dE,dE.__data__,TT,VG);return this},
attr:function(U,d){var X=K(U);if(arguments.length<2){var C=this.node();return X.local?C.getAttributeNS(X.space,X.local):C.getAttribute(X)}return this.each((d==null?X.local?z:D:typeof d==="function"?X.local?QG:L:X.local?a:c)(X,d))},
style:function(U,d,X){return arguments.length>1?this.each((d==null?hz:typeof d==="function"?BW:bO)(U,d,X==null?"":X)):Zc(this.node(),U)},
property:function(U,d){return arguments.length>1?this.each((d==null?xS:typeof d==="function"?$S:Dc)(U,d)):this.node()[U]},
text:function(U){return arguments.length?this.each(U==null?hL:(typeof U==="function"?JL:WK)(U)):this.node().textContent},
html:function(U){return arguments.length?this.each(U==null?sP:(typeof U==="function"?bT:wg)(U)):this.node().innerHTML},
append:function(U){var d=typeof U==="function"?U:N(U);return this.select(function(){return this.appendChild(d.apply(this,arguments))})},
insert:function(U,d){var X=typeof U==="function"?U:N(U),C=d==null?HK:typeof d==="function"?d:x(d);return this.select(function(){return this.insertBefore(X.apply(this,arguments),C.apply(this,arguments)||null)})},
remove:function(){return this.each(Ta)},
clone:function(U){return this.select(U?MU:Sg)},
datum:function(U){return arguments.length?this.property("__data__",U):this.node().__data__},
on:function(U,d,X){var C=oP(U+""),VG=C.length,TT;if(arguments.length<2){var lO=this.node().__on;if(lO)for(var dE=0,yc=lO.length,gE;dE<yc;++dE){var Qc=0;for(gE=lO[dE];Qc<VG;++Qc)if((TT=C[Qc]).type===gE.type&&TT.name===gE.name)return gE.value}}else{lO=d?pY:BK;X==null&&(X=!1);for(Qc=0;Qc<VG;++Qc)this.each(lO(C[Qc],d,X));return this}},
dispatch:function(U,d){return this.each((typeof d==="function"?KY:RP)(U,d))}};
var HjI=0;Oi.prototype=function(){return new Oi}.prototype={constructor:Oi,
get:function(U){for(var d=this._;!(d in U);)if(!(U=U.parentNode))return;return U[d]},
set:function(U,d){return U[this._]=d},
remove:function(U){return this._ in U&&delete U[this._]},
toString:function(){return this._}};
var Ma=1/.7,nuo=/^#([0-9a-f]{3})$/,GXK=/^#([0-9a-f]{6})$/,rAa=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),PkP=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),WjH=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),ddg=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*\\)$"),
UdP=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),kXH=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*\\)$"),Uii={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};
rg(ha,IP,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
rg(vg,WH,fZ(ha,{brighter:function(U){U=U==null?Ma:Math.pow(Ma,U);return new vg(this.r*U,this.g*U,this.b*U,this.opacity)},
darker:function(U){U=U==null?.7:Math.pow(.7,U);return new vg(this.r*U,this.g*U,this.b*U,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"#"+Fr(this.r)+Fr(this.g)+Fr(this.b)},
toString:function(){var U=this.opacity;U=isNaN(U)?1:Math.max(0,Math.min(1,U));return(U===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))+(U===1?")":", "+U+")")}}));
rg(sW,NS,fZ(ha,{brighter:function(U){U=U==null?Ma:Math.pow(Ma,U);return new sW(this.h,this.s,this.l*U,this.opacity)},
darker:function(U){U=U==null?.7:Math.pow(.7,U);return new sW(this.h,this.s,this.l*U,this.opacity)},
rgb:function(){var U=this.h%360+(this.h<0)*360,d=this.l,X=d+(d<.5?d:1-d)*(isNaN(U)||isNaN(this.s)?0:this.s);d=2*d-X;return new vg(m_(U>=240?U-240:U+120,d,X),m_(U,d,X),m_(U<120?U+240:U-120,d,X),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 kDG=Math.PI/180,qTV=180/Math.PI,$iT=4/29,ud=6/29,E05=3*ud*ud,EuZ=ud*ud*ud;rg(HW,function(U,d,X,C){return arguments.length===1?gG(U):new HW(U,d,X,C==null?1:C)},fZ(ha,{brighter:function(U){return new HW(this.l+18*(U==null?1:U),this.a,this.b,this.opacity)},
darker:function(U){return new HW(this.l-18*(U==null?1:U),this.a,this.b,this.opacity)},
rgb:function(){var U=(this.l+16)/116,d=isNaN(this.a)?U:U+this.a/500,X=isNaN(this.b)?U:U-this.b/200;d=.96422*cW(d);U=1*cW(U);X=.82521*cW(X);return new vg(ob(3.1338561*d-1.6168667*U-.4906146*X),ob(-.9787684*d+1.9161415*U+.033454*X),ob(.0719453*d-.2289914*U+1.4052427*X),this.opacity)}}));
rg(lT,eK,fZ(ha,{brighter:function(U){return new lT(this.h,this.c,this.l+18*(U==null?1:U),this.opacity)},
darker:function(U){return new lT(this.h,this.c,this.l-18*(U==null?1:U),this.opacity)},
rgb:function(){return gG(this).rgb()}}));
var Xrb=1.78277*-.29227-.1347134789;rg(da,x8,fZ(ha,{brighter:function(U){U=U==null?Ma:Math.pow(Ma,U);return new da(this.h,this.s,this.l*U,this.opacity)},
darker:function(U){U=U==null?.7:Math.pow(.7,U);return new da(this.h,this.s,this.l*U,this.opacity)},
rgb:function(){var U=isNaN(this.h)?0:(this.h+120)*kDG,d=+this.l,X=isNaN(this.s)?0:this.s*d*(1-d),C=Math.cos(U);U=Math.sin(U);return new vg(255*(d+X*(-.14861*C+1.78277*U)),255*(d+X*(-.29227*C+-.90649*U)),255*(d+1.97294*C*X),this.opacity)}}));
var t25=function X(d){function C(TT,lO){var dE=VG((TT=WH(TT)).r,(lO=WH(lO)).r),yc=VG(TT.g,lO.g),gE=VG(TT.b,lO.b),Qc=zg(TT.opacity,lO.opacity);return function(NG){TT.r=dE(NG);TT.g=yc(NG);TT.b=gE(NG);TT.opacity=Qc(NG);return TT+""}}
var VG=Hs(d);C.gamma=X;return C}(1),WEV=RH(function(d){var X=d.length-1;
return function(C){var VG=C<=0?C=0:C>=1?(C=1,X-1):Math.floor(C*X),TT=d[VG],lO=d[VG+1];return rC((C-VG/X)*X,VG>0?d[VG-1]:2*TT-lO,TT,lO,VG<X-1?d[VG+2]:2*lO-TT)}});
RH(function(d){var X=d.length;return function(C){var VG=Math.floor(((C%=1)<0?++C:C)*X);return rC((C-VG/X)*X,d[(VG+X-1)%X],d[VG%X],d[(VG+1)%X],d[(VG+2)%X])}});
var zJT=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,gXv=new RegExp(zJT.source,"g"),miw=180/Math.PI,TjL={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},xb,o1G,PLg,rTG,Uwa=JS(function(d){if(d==="none")return TjL;xb||(xb=document.createElement("DIV"),o1G=document.documentElement,PLg=document.defaultView);xb.style.transform=d;d=PLg.getComputedStyle(o1G.appendChild(xb),null).getPropertyValue("transform");o1G.removeChild(xb);d=d.slice(7,-1).split(",");return hS(+d[0],+d[1],+d[2],+d[3],
+d[4],+d[5])},"px, ","px)","deg)"),kCJ=JS(function(d){if(d==null)return TjL;
rTG||(rTG=document.createElementNS("http://www.w3.org/2000/svg","g"));rTG.setAttribute("transform",d);if(!(d=rTG.transform.baseVal.consolidate()))return TjL;d=d.matrix;return hS(d.a,d.b,d.c,d.d,d.e,d.f)},", ",")",")");
xE(Xr);xE(zg);TJ(Xr);TJ(zg);YU(Xr);var xJT=YU(zg),va=0,iP=0,ID=0,BRU,KP,xCO=0,PS=0,ozT=0,V0=typeof performance==="object"&&performance.now?performance:Date,Asg=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(d){setTimeout(d,17)};
VZ.prototype=Vy.prototype={constructor:VZ,restart:function(d,X,C){if(typeof d!=="function")throw new TypeError("ze");C=(C==null?Jr():+C)+(X==null?0:+X);this._next||KP===this||(KP?KP._next=this:BRU=this,KP=this);this._call=d;this._time=C;KS()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,KS())}};
var qbP=u("start","end","interrupt"),Xbp=[],EWH=Fp.prototype.constructor,W$c=0,J9=Fp.prototype;WR.prototype=function(d){return Fp().transition(d)}.prototype={constructor:WR,
select:function(d){var X=this._name,C=this._id;typeof d!=="function"&&(d=x(d));for(var VG=this._groups,TT=VG.length,lO=Array(TT),dE=0;dE<TT;++dE)for(var yc=VG[dE],gE=yc.length,Qc=lO[dE]=Array(gE),NG,z5,lJ=0;lJ<gE;++lJ)(NG=yc[lJ])&&(z5=d.call(NG,NG.__data__,lJ,yc))&&("__data__"in NG&&(z5.__data__=NG.__data__),Qc[lJ]=z5,CLU(Qc[lJ],X,C,lJ,Qc,oq(NG,C)));return new WR(lO,this._parents,X,C)},
filter:function(d){typeof d!=="function"&&(d=rni(d));for(var X=this._groups,C=X.length,VG=Array(C),TT=0;TT<C;++TT)for(var lO=X[TT],dE=lO.length,yc=VG[TT]=[],gE,Qc=0;Qc<dE;++Qc)(gE=lO[Qc])&&d.call(gE,gE.__data__,Qc,lO)&&yc.push(gE);return new WR(VG,this._parents,this._name,this._id)},
merge:function(d){if(d._id!==this._id)throw Error();var X=this._groups;d=d._groups;for(var C=X.length,VG=Math.min(C,d.length),TT=Array(C),lO=0;lO<VG;++lO)for(var dE=X[lO],yc=d[lO],gE=dE.length,Qc=TT[lO]=Array(gE),NG,z5=0;z5<gE;++z5)if(NG=dE[z5]||yc[z5])Qc[z5]=NG;for(;lO<C;++lO)TT[lO]=X[lO];return new WR(TT,this._parents,this._name,this._id)},
selection:function(){return new EWH(this._groups,this._parents)},
transition:function(){for(var d=this._name,X=this._id,C=++W$c,VG=this._groups,TT=VG.length,lO=0;lO<TT;++lO)for(var dE=VG[lO],yc=dE.length,gE,Qc=0;Qc<yc;++Qc)if(gE=dE[Qc]){var NG=oq(gE,X);CLU(gE,d,C,Qc,dE,{time:NG.time+NG.delay+NG.duration,delay:0,duration:NG.duration,ease:NG.ease})}return new WR(VG,this._parents,d,C)},
call:J9.call,nodes:J9.nodes,node:J9.node,size:J9.size,empty:J9.empty,each:J9.each,on:function(d,X){var C=this._id;return arguments.length<2?oq(this.node(),C).on.on(d):this.each(u8a(C,d,X))},
attr:function(d,X){var C=K(d),VG=C==="transform"?kCJ:prg;return this.attrTween(d,typeof X==="function"?(C.local?Sbo:aaJ)(C,VG,yXT(this,"attr."+d,X)):X==null?(C.local?pb7:Ddg)(C):(C.local?cAK:tHp)(C,VG,X+""))},
attrTween:function(d,X){var C="attr."+d;if(arguments.length<2)return(C=this.tween(C))&&C._value;if(X==null)return this.tween(C,null);if(typeof X!=="function")throw Error();var VG=K(d);return this.tween(C,(VG.local?YbM:LjK)(VG,X))},
style:function(d,X,C){var VG=d==="transform"?Uwa:prg;return X==null?this.styleTween(d,QQI(d,VG)).on("end.style."+d,jQa(d)):this.styleTween(d,typeof X==="function"?JjM(d,VG,yXT(this,"style."+d,X)):Mto(d,VG,X+""),C)},
styleTween:function(d,X,C){var VG="style."+d;if(arguments.length<2)return(VG=this.tween(VG))&&VG._value;if(X==null)return this.tween(VG,null);if(typeof X!=="function")throw Error();return this.tween(VG,VtV(d,X,C==null?"":C))},
text:function(d){return this.tween("text",typeof d==="function"?Kf7(yXT(this,"text",d)):i2p(d==null?"":d+""))},
remove:function(){return this.on("end.remove",vRm(this._id))},
tween:function(d,X){var C=this._id;if(arguments.length<2){C=oq(this.node(),C).tween;for(var VG=0,TT=C.length,lO;VG<TT;++VG)if((lO=C[VG]).name===d)return lO.value;return null}return this.each((X==null?mdm:AAg)(C,d,X))},
delay:function(d){var X=this._id;return arguments.length?this.each((typeof d==="function"?sUg:zqm)(X,d)):oq(this.node(),X).delay},
duration:function(d){var X=this._id;return arguments.length?this.each((typeof d==="function"?guP:CkJ)(X,d)):oq(this.node(),X).duration},
ease:function(d){var X=this._id;return arguments.length?this.each(R$P(X,d)):oq(this.node(),X).ease}};
var Bjv={time:null,delay:0,duration:250,ease:function(d){return((d*=2)<=1?d*d*d:(d-=2)*d*d+2)/2}};
Fp.prototype.transition=function(d){var X;if(d instanceof WR){var C=d._id;d=d._name}else C=++W$c,(X=Bjv).time=Jr(),d=d==null?null:d+"";for(var VG=this._groups,TT=VG.length,lO=0;lO<TT;++lO)for(var dE=VG[lO],yc=dE.length,gE,Qc=0;Qc<yc;++Qc)if(gE=dE[Qc]){var NG=gE,z5=d,lJ=C,fK=Qc,Aa=dE,Or;if(!(Or=X))a:{Or=void 0;for(var qc=C;!(Or=gE.__transition)||!(Or=Or[qc]);)if(!(gE=gE.parentNode)){Or=(Bjv.time=Jr(),Bjv);break a}}CLU(NG,z5,lJ,fK,Aa,Or)}return new WR(VG,this._parents,d,C)};
["e","w"].map(u2W);["n","s"].map(u2W);"n e s w nw ne se sw".split(" ").map(u2W);v14.prototype=function(){return new v14}.prototype={constructor:v14,
moveTo:function(d,X){this._+="M"+(this._x0=this._x1=+d)+","+(this._y0=this._y1=+X)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(d,X){this._+="L"+(this._x1=+d)+","+(this._y1=+X)},
bezierCurveTo:function(d,X,C,VG,TT,lO){this._+="C"+ +d+","+ +X+","+ +C+","+ +VG+","+(this._x1=+TT)+","+(this._y1=+lO)},
rect:function(d,X,C,VG){this._+="M"+(this._x0=this._x1=+d)+","+(this._y0=this._y1=+X)+"h"+ +C+"v"+ +VG+"h"+-C+"Z"},
toString:function(){return this._}};
fI8.prototype=csg.prototype={constructor:fI8,has:function(d){return" "+d in this},
get:function(d){return this[" "+d]},
set:function(d,X){this[" "+d]=X;return this},
remove:function(d){d=" "+d;return d in this&&delete this[d]},
clear:function(){for(var d in this)d[0]===" "&&delete this[d]},
keys:function(){var d=[],X;for(X in this)X[0]===" "&&d.push(X.slice(1));return d},
values:function(){var d=[],X;for(X in this)X[0]===" "&&d.push(this[X]);return d},
entries:function(){var d=[],X;for(X in this)X[0]===" "&&d.push({key:X.slice(1),value:this[X]});return d},
size:function(){var d=0,X;for(X in this)X[0]===" "&&++d;return d},
empty:function(){for(var d in this)if(d[0]===" ")return!1;return!0},
each:function(d){for(var X in this)X[0]===" "&&d(this[X],X.slice(1),this)}};
var kZ=csg.prototype;eXW.prototype=function(d,X){var C=new eXW;if(d instanceof eXW)d.each(function(lO){C.add(lO)});
else if(d){var VG=-1,TT=d.length;if(X==null)for(;++VG<TT;)C.add(d[VG]);else for(;++VG<TT;)C.add(X(d[VG],VG,d))}return C}.prototype={constructor:eXW,
has:kZ.has,add:function(d){this[" "+d]=d;return this},
remove:kZ.remove,clear:kZ.clear,values:kZ.keys,size:kZ.size,empty:kZ.empty,each:kZ.each};var YTg={},QJP={},$w8=STg(",").parse,qcK=STg("\t").parse;LIb($w8);LIb(qcK);var d2=function(d,X,C){X=new jJW(X==null?FfP:X,C==null?wOH:C,NaN,NaN,NaN,NaN);return d==null?X:X.addAll(d)}.prototype=jJW.prototype;
d2.copy=function(){var d=new jJW(this._x,this._y,this._x0,this._y0,this._x1,this._y1),X=this._root,C,VG;if(!X)return d;if(!X.length)return d._root=zxV(X),d;for(C=[{source:X,target:d._root=Array(4)}];X=C.pop();)for(var TT=0;TT<4;++TT)if(VG=X.source[TT])VG.length?C.push({source:VG,target:X.target[TT]=Array(4)}):X.target[TT]=zxV(VG);return d};
d2.add=function(d){var X=+this._x.call(null,d),C=+this._y.call(null,d);return smT(this.cover(X,C),X,C,d)};
d2.addAll=function(d){var X,C,VG=d.length,TT,lO,dE=Array(VG),yc=Array(VG),gE=Infinity,Qc=Infinity,NG=-Infinity,z5=-Infinity;for(C=0;C<VG;++C)isNaN(TT=+this._x.call(null,X=d[C]))||isNaN(lO=+this._y.call(null,X))||(dE[C]=TT,yc[C]=lO,TT<gE&&(gE=TT),TT>NG&&(NG=TT),lO<Qc&&(Qc=lO),lO>z5&&(z5=lO));NG<gE&&(gE=this._x0,NG=this._x1);z5<Qc&&(Qc=this._y0,z5=this._y1);this.cover(gE,Qc).cover(NG,z5);for(C=0;C<VG;++C)smT(this,dE[C],yc[C],d[C]);return this};
d2.cover=function(d,X){if(isNaN(d=+d)||isNaN(X=+X))return this;var C=this._x0,VG=this._y0,TT=this._x1,lO=this._y1;if(isNaN(C))TT=(C=Math.floor(d))+1,lO=(VG=Math.floor(X))+1;else if(C>d||d>TT||VG>X||X>lO){var dE=TT-C,yc=this._root,gE;switch(gE=(X<(VG+lO)/2)<<1|d<(C+TT)/2){case 0:do{var Qc=Array(4);Qc[gE]=yc;yc=Qc}while(dE*=2,TT=C+dE,lO=VG+dE,d>TT||X>lO);break;case 1:do Qc=Array(4),Qc[gE]=yc,yc=Qc;while(dE*=2,C=TT-dE,lO=VG+dE,C>d||X>lO);break;case 2:do Qc=Array(4),Qc[gE]=yc,yc=Qc;while(dE*=2,TT=C+dE,
VG=lO-dE,d>TT||VG>X);break;case 3:do Qc=Array(4),Qc[gE]=yc,yc=Qc;while(dE*=2,C=TT-dE,VG=lO-dE,C>d||VG>X)}this._root&&this._root.length&&(this._root=yc)}else return this;this._x0=C;this._y0=VG;this._x1=TT;this._y1=lO;return this};
d2.data=function(){var d=[];this.visit(function(X){if(!X.length){do d.push(X.data);while(X=X.next)}});
return d};
d2.extent=function(d){return arguments.length?this.cover(+d[0][0],+d[0][1]).cover(+d[1][0],+d[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
d2.find=function(d,X,C){var VG=this._x0,TT=this._y0,lO,dE,yc,gE,Qc=this._x1,NG=this._y1,z5=[],lJ=this._root,fK;lJ&&z5.push(new WN(lJ,VG,TT,Qc,NG));C==null?C=Infinity:(VG=d-C,TT=X-C,Qc=d+C,NG=X+C,C*=C);for(;fK=z5.pop();)if(!(!(lJ=fK.node)||(lO=fK.x0)>Qc||(dE=fK.y0)>NG||(yc=fK.x1)<VG||(gE=fK.y1)<TT))if(lJ.length){fK=(lO+yc)/2;var Aa=(dE+gE)/2;z5.push(new WN(lJ[3],fK,Aa,yc,gE),new WN(lJ[2],lO,Aa,fK,gE),new WN(lJ[1],fK,dE,yc,Aa),new WN(lJ[0],lO,dE,fK,Aa));if(lJ=(X>=Aa)<<1|d>=fK)fK=z5[z5.length-1],z5[z5.length-
1]=z5[z5.length-1-lJ],z5[z5.length-1-lJ]=fK}else if(fK=d-+this._x.call(null,lJ.data),Aa=X-+this._y.call(null,lJ.data),fK=fK*fK+Aa*Aa,fK<C){var Or=Math.sqrt(C=fK);VG=d-Or;TT=X-Or;Qc=d+Or;NG=X+Or;Or=lJ.data}return Or};
d2.remove=function(d){if(isNaN(gE=+this._x.call(null,d))||isNaN(Qc=+this._y.call(null,d)))return this;var X,C=this._root,VG,TT=this._x0,lO=this._y0,dE=this._x1,yc=this._y1,gE,Qc,NG,z5,lJ,fK,Aa;if(!C)return this;if(C.length)for(;;){(lJ=gE>=(NG=(TT+dE)/2))?TT=NG:dE=NG;(fK=Qc>=(z5=(lO+yc)/2))?lO=z5:yc=z5;if(!(X=C,C=C[Aa=fK<<1|lJ]))return this;if(!C.length)break;if(X[Aa+1&3]||X[Aa+2&3]||X[Aa+3&3]){var Or=X;var qc=Aa}}for(;C.data!==d;)if(!(VG=C,C=C.next))return this;(d=C.next)&&delete C.next;if(VG)return d?
VG.next=d:delete VG.next,this;if(!X)return this._root=d,this;d?X[Aa]=d:delete X[Aa];(C=X[0]||X[1]||X[2]||X[3])&&C===(X[3]||X[2]||X[1]||X[0])&&!C.length&&(Or?Or[qc]=C:this._root=C);return this};
d2.removeAll=function(d){for(var X=0,C=d.length;X<C;++X)this.remove(d[X]);return this};
d2.root=function(){return this._root};
d2.size=function(){var d=0;this.visit(function(X){if(!X.length){do++d;while(X=X.next)}});
return d};
d2.visit=function(d){var X=[],C,VG=this._root,TT,lO,dE,yc,gE;for(VG&&X.push(new WN(VG,this._x0,this._y0,this._x1,this._y1));C=X.pop();)if(!d(VG=C.node,lO=C.x0,dE=C.y0,yc=C.x1,gE=C.y1)&&VG.length){C=(lO+yc)/2;var Qc=(dE+gE)/2;(TT=VG[3])&&X.push(new WN(TT,C,Qc,yc,gE));(TT=VG[2])&&X.push(new WN(TT,lO,Qc,C,gE));(TT=VG[1])&&X.push(new WN(TT,C,dE,yc,Qc));(TT=VG[0])&&X.push(new WN(TT,lO,dE,C,Qc))}};
d2.visitAfter=function(d){var X=[],C=[],VG;for(this._root&&X.push(new WN(this._root,this._x0,this._y0,this._x1,this._y1));VG=X.pop();){var TT=VG.node;if(TT.length){var lO,dE=VG.x0,yc=VG.y0,gE=VG.x1,Qc=VG.y1,NG=(dE+gE)/2,z5=(yc+Qc)/2;(lO=TT[0])&&X.push(new WN(lO,dE,yc,NG,z5));(lO=TT[1])&&X.push(new WN(lO,NG,yc,gE,z5));(lO=TT[2])&&X.push(new WN(lO,dE,z5,NG,Qc));(lO=TT[3])&&X.push(new WN(lO,NG,z5,gE,Qc))}C.push(VG)}for(;VG=C.pop();)d(VG.node,VG.x0,VG.y0,VG.x1,VG.y1);return this};
d2.x=function(d){return arguments.length?(this._x=d,this):this._x};
d2.y=function(d){return arguments.length?(this._y=d,this):this._y};
var xvK=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;MuL.prototype=JX4.prototype;JX4.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 yng,uwc={"%":function(d,X){return(d*100).toFixed(X)},
b:function(d){return Math.round(d).toString(2)},
c:function(d){return d+""},
d:function(d){return Math.round(d).toString(10)},
e:function(d,X){return d.toExponential(X)},
f:function(d,X){return d.toFixed(X)},
g:function(d,X){return d.toPrecision(X)},
o:function(d){return Math.round(d).toString(8)},
p:function(d,X){return g05(d*100,X)},
r:g05,s:function(d,X){var C=lIT(d,X);if(!C)return d+"";var VG=C[0];C=C[1];C=C-(yng=Math.max(-8,Math.min(8,Math.floor(C/3)))*3)+1;var TT=VG.length;return C===TT?VG:C>TT?VG+Array(C-TT+1).join("0"):C>0?VG.slice(0,C)+"."+VG.slice(C):"0."+Array(1-C).join("0")+lIT(d,Math.max(0,X+C-1))[0]},
X:function(d){return Math.round(d).toString(16).toUpperCase()},
x:function(d){return Math.round(d).toString(16)}},RJb="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),Xe8;
(function(d){return Xe8=B9a(d)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});bj.prototype={constructor:bj,reset:function(){this.s=this.t=0},
add:function(d){vXc(PaO,d,this.t);vXc(this,PaO.s,this.s);this.s?this.t+=PaO.t:this.s=PaO.t},
valueOf:function(){return this.s}};
var PaO=new bj,nN=Math.PI,ZA=nN/2,dLL=nN/4,mwa=nN*2,fLT=nN/180,dj=Math.abs,eN8=Math.atan,ilL=Math.atan2,HZ=Math.cos,oH=Math.sin,ZJU=Math.sqrt;new bj;new bj;new bj;var lLU=new bj;(function(d,X,C,VG){return function(TT){function lO(A2,x7){d(A2,x7)&&TT.point(A2,x7)}
function dE(A2,x7){lJ.point(A2,x7)}
function yc(){AF.point=dE;lJ.lineStart()}
function gE(){AF.point=lO;lJ.lineEnd()}
function Qc(A2,x7){I3.push([A2,x7]);Aa.point(A2,x7)}
function NG(){Aa.lineStart();I3=[]}
function z5(){Qc(I3[0][0],I3[0][1]);Aa.lineEnd();var A2=Aa.clean(),x7=fK.result(),so=x7.length,C9;I3.pop();qc.push(I3);I3=null;if(so)if(A2&1){if(so=x7[0],(x7=so.length-1)>0){Or||(TT.polygonStart(),Or=!0);TT.lineStart();for(A2=0;A2<x7;++A2)TT.point((C9=so[A2])[0],C9[1]);TT.lineEnd()}}else so>1&&A2&2&&x7.push(x7.pop().concat(x7.shift())),mu.push(x7.filter(O2Z))}
var lJ=X(TT),fK=e$J(),Aa=X(fK),Or=!1,qc,mu,I3,AF={point:lO,lineStart:yc,lineEnd:gE,polygonStart:function(){AF.point=Qc;AF.lineStart=NG;AF.lineEnd=z5;mu=[];qc=[]},
polygonEnd:function(){AF.point=lO;AF.lineStart=yc;AF.lineEnd=gE;var A2=mu,x7=A2.length;var so=-1;for(var C9=0,$M,TB;++so<x7;)C9+=A2[so].length;for($M=Array(C9);--x7>=0;)for(TB=A2[x7],so=TB.length;--so>=0;)$M[--C9]=TB[so];mu=$M;A2=qc;x7=VG[0];C9=VG[1];var My=oH(C9);so=[oH(x7),-HZ(x7),0];TB=$M=0;lLU.reset();My===1?C9=ZA+1E-6:My===-1&&(C9=-ZA-1E-6);My=0;for(var HH=A2.length;My<HH;++My)if(HA=(qs=A2[My]).length){var qs,HA,X4=qs[HA-1],QN=X4[0],yr=X4[1]/2+dLL,WiW=oH(yr),UL8=HZ(yr);for(yr=0;yr<HA;++yr,QN=
OQL,WiW=kLb,UL8=BF,X4=dCL){var dCL=qs[yr],OQL=dCL[0];BF=dCL[1]/2+dLL;var kLb=oH(BF),BF=HZ(BF),Vu=OQL-QN,ZQ8=Vu>=0?1:-1,HQP=ZQ8*Vu,UC8=HQP>nN;WiW*=kLb;lLU.add(ilL(WiW*ZQ8*oH(HQP),UL8*BF+WiW*HZ(HQP)));$M+=UC8?Vu+ZQ8*mwa:Vu;UC8^QN>=x7^OQL>=x7&&(X4=jig(Qi8(X4),Qi8(dCL)),M5G(X4),QN=jig(so,X4),M5G(QN),QN=(UC8^Vu>=0?-1:1)*OJS(QN[2]),C9>QN||C9===QN&&(X4[0]||X4[1]))&&(TB+=UC8^Vu>=0?1:-1)}}A2=($M<-1E-6||$M<1E-6&&lLU<-1E-6)^TB&1;mu.length?(Or||(TT.polygonStart(),Or=!0),lyM(mu,Z2m,A2,C,TT)):A2&&(Or||(TT.polygonStart(),
Or=!0),TT.lineStart(),C(null,null,1,TT),TT.lineEnd());Or&&(TT.polygonEnd(),Or=!1);mu=qc=null},
sphere:function(){TT.polygonStart();TT.lineStart();C(null,null,1,TT);TT.lineEnd();TT.polygonEnd()}};
return AF}})(function(){return!0},function(d){var X=NaN,C=NaN,VG=NaN,TT;
return{lineStart:function(){d.lineStart();TT=1},
point:function(lO,dE){var yc=lO>0?nN:-nN,gE=dj(lO-X);if(dj(gE-nN)<1E-6)d.point(X,C=(C+dE)/2>0?ZA:-ZA),d.point(VG,C),d.lineEnd(),d.lineStart(),d.point(yc,C),d.point(lO,C),TT=0;else if(VG!==yc&&gE>=nN){dj(X-VG)<1E-6&&(X-=VG*1E-6);dj(lO-yc)<1E-6&&(lO-=yc*1E-6);gE=X;var Qc=C,NG=lO,z5,lJ,fK=oH(gE-NG);C=dj(fK)>1E-6?eN8((oH(Qc)*(lJ=HZ(dE))*oH(NG)-oH(dE)*(z5=HZ(Qc))*oH(gE))/(z5*lJ*fK)):(Qc+dE)/2;d.point(VG,C);d.lineEnd();d.lineStart();d.point(yc,C);TT=0}d.point(X=lO,C=dE);VG=yc},
lineEnd:function(){d.lineEnd();X=C=NaN},
clean:function(){return 2-TT}}},function(d,X,C,VG){d==null?(C*=ZA,VG.point(-nN,C),VG.point(0,C),VG.point(nN,C),VG.point(nN,0),VG.point(nN,-C),VG.point(0,-C),VG.point(-nN,-C),VG.point(-nN,0),VG.point(-nN,C)):dj(d[0]-X[0])>1E-6?(d=d[0]<X[0]?nN:-nN,C=C*d/2,VG.point(-d,C),VG.point(0,C),VG.point(d,C)):VG.point(X[0],X[1])},[-nN,
-ZA]);new bj;new bj;new bj;new bj;VuT.prototype={constructor:VuT,point:function(d,X){this.stream.point(d,X)},
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()}};
HZ(30*fLT);(function(d){return function(X){var C=new VuT,VG;for(VG in d)C[VG]=d[VG];C.stream=X;return C}})({point:function(d,X){this.stream.point(d*fLT,X*fLT)}});
V55(function(d){return ZJU(2/(1+d))}).invert=hB(function(d){return 2*OJS(d/2)});
V55(function(d){return(d=d>1?0:d<-1?nN:Math.acos(d))&&d/oH(d)}).invert=hB(function(d){return d});
ZJU(3);hB(eN8);hB(OJS);hB(function(d){return 2*eN8(d)});
bP.prototype=K$c.prototype={constructor:bP,count:function(){return this.eachAfter(H2a)},
each:function(d){var X,C=[this],VG;do{var TT=C.reverse();for(C=[];X=TT.pop();)if(d(X),X=X.children){var lO=0;for(VG=X.length;lO<VG;++lO)C.push(X[lO])}}while(C.length);return this},
eachAfter:function(d){for(var X,C=[this],VG=[],TT,lO;X=C.pop();)if(VG.push(X),X=X.children)for(TT=0,lO=X.length;TT<lO;++TT)C.push(X[TT]);for(;X=VG.pop();)d(X);return this},
eachBefore:function(d){for(var X,C=[this],VG;X=C.pop();)if(d(X),X=X.children)for(VG=X.length-1;VG>=0;--VG)C.push(X[VG]);return this},
sum:function(d){return this.eachAfter(function(X){for(var C=+d(X.data)||0,VG=X.children,TT=VG&&VG.length;--TT>=0;)C+=VG[TT].value;X.value=C})},
sort:function(d){return this.eachBefore(function(X){X.children&&X.children.sort(d)})},
path:function(d){var X=this;var C=X;var VG=d;if(C!==VG){var TT=C.ancestors(),lO=VG.ancestors(),dE=null;C=TT.pop();for(VG=lO.pop();C===VG;)dE=C,C=TT.pop(),VG=lO.pop();C=dE}for(VG=[X];X!==C;)X=X.parent,VG.push(X);for(X=VG.length;d!==C;)VG.splice(X,0,d),d=d.parent;return VG},
ancestors:function(){for(var d=this,X=[d];d=d.parent;)X.push(d);return X},
links:function(){var d=this,X=[];d.each(function(C){C!==d&&X.push({source:C.parent,target:C})});
return X},
copy:function(){return K$c(this).eachBefore(rj8)}};
(function(d,X){this._=d;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=X}).prototype=Object.create(bP.prototype);
var iQS=new Date,KsT=new Date,EX5=MQ(function(){},function(d,X){d.setTime(+d+X)},function(d,X){return X-d});
EX5.every=function(d){d=Math.floor(d);return isFinite(d)&&d>0?d>1?MQ(function(X){X.setTime(Math.floor(X/d)*d)},function(X,C){X.setTime(+X+C*d)},function(X,C){return(C-X)/d}):EX5:null};
MQ(function(d){d.setTime(Math.floor(d/1E3)*1E3)},function(d,X){d.setTime(+d+X*1E3)},function(d,X){return(X-d)/1E3},function(d){return d.getUTCSeconds()});
MQ(function(d){d.setTime(Math.floor(d/6E4)*6E4)},function(d,X){d.setTime(+d+X*6E4)},function(d,X){return(X-d)/6E4},function(d){return d.getMinutes()});
MQ(function(d){var X=d.getTimezoneOffset()*6E4%36E5;X<0&&(X+=36E5);d.setTime(Math.floor((+d-X)/36E5)*36E5+X)},function(d,X){d.setTime(+d+X*36E5)},function(d,X){return(X-d)/36E5},function(d){return d.getHours()});
var blK=MQ(function(d){d.setHours(0,0,0,0)},function(d,X){d.setDate(d.getDate()+X)},function(d,X){return(X-d-(X.getTimezoneOffset()-d.getTimezoneOffset())*6E4)/864E5},function(d){return d.getDate()-1}),r4M=dJ(0),hN8=dJ(1);
dJ(2);dJ(3);var bQU=dJ(4);dJ(5);dJ(6);MQ(function(d){d.setDate(1);d.setHours(0,0,0,0)},function(d,X){d.setMonth(d.getMonth()+X)},function(d,X){return X.getMonth()-d.getMonth()+(X.getFullYear()-d.getFullYear())*12},function(d){return d.getMonth()});
var Qu=MQ(function(d){d.setMonth(0,1);d.setHours(0,0,0,0)},function(d,X){d.setFullYear(d.getFullYear()+X)},function(d,X){return X.getFullYear()-d.getFullYear()},function(d){return d.getFullYear()});
Qu.every=function(d){return isFinite(d=Math.floor(d))&&d>0?MQ(function(X){X.setFullYear(Math.floor(X.getFullYear()/d)*d);X.setMonth(0,1);X.setHours(0,0,0,0)},function(X,C){X.setFullYear(X.getFullYear()+C*d)}):null};
MQ(function(d){d.setUTCSeconds(0,0)},function(d,X){d.setTime(+d+X*6E4)},function(d,X){return(X-d)/6E4},function(d){return d.getUTCMinutes()});
MQ(function(d){d.setUTCMinutes(0,0,0)},function(d,X){d.setTime(+d+X*36E5)},function(d,X){return(X-d)/36E5},function(d){return d.getUTCHours()});
var hJY=MQ(function(d){d.setUTCHours(0,0,0,0)},function(d,X){d.setUTCDate(d.getUTCDate()+X)},function(d,X){return(X-d)/864E5},function(d){return d.getUTCDate()-1}),PuP=UK(0),ILU=UK(1);
UK(2);UK(3);var FsU=UK(4);UK(5);UK(6);MQ(function(d){d.setUTCDate(1);d.setUTCHours(0,0,0,0)},function(d,X){d.setUTCMonth(d.getUTCMonth()+X)},function(d,X){return X.getUTCMonth()-d.getUTCMonth()+(X.getUTCFullYear()-d.getUTCFullYear())*12},function(d){return d.getUTCMonth()});
var j3=MQ(function(d){d.setUTCMonth(0,1);d.setUTCHours(0,0,0,0)},function(d,X){d.setUTCFullYear(d.getUTCFullYear()+X)},function(d,X){return X.getUTCFullYear()-d.getUTCFullYear()},function(d){return d.getUTCFullYear()});
j3.every=function(d){return isFinite(d=Math.floor(d))&&d>0?MQ(function(X){X.setUTCFullYear(Math.floor(X.getUTCFullYear()/d)*d);X.setUTCMonth(0,1);X.setUTCHours(0,0,0,0)},function(X,C){X.setUTCFullYear(X.getUTCFullYear()+C*d)}):null};
var I58={"-":"",_:" ",0:"0"},hN=/^\s*\d+/,GCM=/^%/,nWM=/[\\^$*+?|[\]().{}]/g,kuO;(function(d){kuO=Wfg(d);Bmc=kuO.utcFormat;fO8=kuO.utcParse;return kuO})({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||Bmc("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||fO8("%Y-%m-%dT%H:%M:%S.%LZ");FV("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
FV("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");FV("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");FV("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");FV("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");FV("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");FV("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
FV("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");FV("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");FV("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");FV("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");FV("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var A4J=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(FV);Xn(A4J);var DwK=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(FV);Xn(DwK);var peK=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(FV);Xn(peK);var tEJ=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(FV);
Xn(tEJ);var c4K=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(FV);Xn(c4K);var aEm=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(FV);Xn(aEm);var ScZ=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(FV);Xn(ScZ);var Yco=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(FV);Xn(Yco);var LEa=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(FV);Xn(LEa);var sGI=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(FV);Xn(sGI);var zla=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(FV);Xn(zla);var gWZ=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(FV);Xn(gWZ);var Cum=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(FV);Xn(Cum);var Rx8=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(FV);Xn(Rx8);var ysJ=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(FV);Xn(ysJ);var ueP=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(FV);Xn(ueP);var v0o=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(FV);Xn(v0o);var Qm7=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(FV);Xn(Qm7);var jmp=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(FV);Xn(jmp);var M2g=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(FV);Xn(M2g);var Js8=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(FV);Xn(Js8);var V2J=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(FV);Xn(V2J);var ixa=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(FV);Xn(ixa);var KIo=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(FV);Xn(KIo);var IXo=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(FV);Xn(IXo);var hxm=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(FV);Xn(hxm);var bxg=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(FV);Xn(bxg);xJT(x8(300,.5,0),x8(-240,.5,1));xJT(x8(-100,.75,.35),x8(80,1.5,.8));xJT(x8(260,.75,.35),x8(80,1.5,.8));x8();WH();GuW(FV("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
GuW(FV("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
GuW(FV("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
GuW(FV("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
l5g.prototype={lineStart:function(){this._point=0},
lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(d,X){d=+d;X=+X;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(d,X):this._context.moveTo(d,X);break;case 1:this._point=2;default:this._context.lineTo(d,X)}}};
(function(d){function X(C){return new Olc(d(C))}
X._curve=d;return X})(function(d){return new l5g(d)});
Olc.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(d,X){this._curve.point(X*Math.sin(d),X*-Math.cos(d))}};
Nj8.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:wRT(this,this._t0,Hlb(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(d,X){var C=NaN;d=+d;X=+X;if(d!==this._x1||X!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(d,X):this._context.moveTo(d,X);break;case 1:this._point=2;break;case 2:this._point=3;wRT(this,Hlb(this,C=ZlL(this,d,X)),C);break;default:wRT(this,this._t0,C=ZlL(this,d,X))}this._x0=this._x1;this._x1=d;this._y0=this._y1;this._y1=X;this._t0=C}}};
(function(d){this._context=new nXb(d)}.prototype=Object.create(Nj8.prototype)).point=function(d,X){Nj8.prototype.point.call(this,X,d)};
nXb.prototype={moveTo:function(d,X){this._context.moveTo(X,d)},
closePath:function(){this._context.closePath()},
lineTo:function(d,X){this._context.lineTo(X,d)},
bezierCurveTo:function(d,X,C,VG,TT,lO){this._context.bezierCurveTo(X,d,VG,C,lO,TT)}};
TA.prototype={constructor:TA,scale:function(d){return d===1?this:new TA(this.k*d,this.x,this.y)},
translate:function(d,X){return d===0&X===0?this:new TA(this.k,this.x+this.k*d,this.y+this.k*X)},
apply:function(d){return[d[0]*this.k+this.x,d[1]*this.k+this.y]},
invert:function(d){return[(d[0]-this.x)/this.k,(d[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new TA(1,0,0);NMv=IP;OJ.svg=OJ.svg;OJ.xhtml=OJ.xhtml;OJ.xlink=OJ.xlink;OJ.xml=OJ.xml;OJ.xmlns=OJ.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 e8i="hammer_"+(Math.random()*1E6|0),lOc=function(){var R=document||document;if(!R[e8i]){var y=function(){(function(u,v,Q,M){function K(HW,qU,cW){return setTimeout(B(HW,cW),qU)}
function h(HW,qU,cW){return Array.isArray(HW)?(b(HW,cW[qU],cW),!0):!1}
function b(HW,qU,cW){var ob;if(HW)if(HW.forEach)HW.forEach(qU,cW);else if(HW.length!==M){var iJ=0;for(ob=HW.length;iJ<ob;iJ++)qU.call(cW,HW[iJ],iJ,HW)}else for(iJ in HW)HW.hasOwnProperty(iJ)&&qU.call(cW,HW[iJ],iJ,HW)}
function N(HW,qU,cW){for(var ob=Object.keys(qU),iJ=0,dC=ob.length;iJ<dC;iJ++)if(!cW||cW&&HW[ob[iJ]]===M)HW[ob[iJ]]=qU[ob[iJ]];return HW}
function T(HW,qU){return N(HW,qU,!0)}
function x(HW,qU,cW){qU=qU.prototype;var ob=HW.prototype=Object.create(qU);ob.constructor=HW;ob._super=qU;cW&&N(ob,cW)}
function B(HW,qU){return function(){return HW.apply(qU,arguments)}}
function l(HW,qU){return typeof HW=="function"?HW.apply(qU?qU[0]||M:M,qU):HW}
function Z(HW,qU,cW){b(k(qU),function(ob){HW.addEventListener(ob,cW,!1)})}
function P(HW,qU,cW){b(k(qU),function(ob){HW.removeEventListener(ob,cW,!1)})}
function k(HW){return HW.trim().split(/\s+/g)}
function E(HW,qU,cW){if(HW.indexOf&&!cW)return HW.indexOf(qU);for(var ob=0,iJ=HW.length;ob<iJ;ob++)if(cW&&HW[ob][cW]==qU||!cW&&HW[ob]===qU)return ob;return-1}
function D(HW,qU,cW){for(var ob=[],iJ=[],dC=0,eK=HW.length;dC<eK;dC++){var lT=qU?HW[dC][qU]:HW[dC];E(iJ,lT)<0&&ob.push(HW[dC]);iJ[dC]=lT}cW&&(ob=qU?ob.sort(function(x8,da){return x8[qU]>da[qU]}):ob.sort());
return ob}
function z(HW,qU){for(var cW,ob=qU[0].toUpperCase()+qU.slice(1),iJ=0,dC=KY.length;iJ<dC;iJ++)if(cW=(cW=KY[iJ])?cW+ob:qU,cW in HW)return cW;return M}
function c(HW,qU){var cW=this;this.manager=HW;this.callback=qU;this.element=HW.element;this.target=HW.options.inputTarget;this.domHandler=function(ob){l(HW.options.enable,[HW])&&cW.handler(ob)};
this.evEl&&Z(this.element,this.evEl,this.domHandler);this.evTarget&&Z(this.target,this.evTarget,this.domHandler);this.evWin&&Z(u,this.evWin,this.domHandler)}
function a(HW){var qU;Zi?qU=Dc:gr?qU=$S:IP?qU=hL:qU=xS;return new qU(HW,L)}
function L(HW,qU,cW){var ob=cW.pointers.length,iJ=cW.changedPointers.length,dC=qU&1&&ob-iJ===0;cW.isFirst=!!dC;cW.isFinal=!!(qU&12&&ob-iJ===0);dC&&(HW.session={});cW.eventType=qU;qU=HW.session;ob=cW.pointers;iJ=ob.length;qU.firstInput||(qU.firstInput=QG(cW));iJ>1&&!qU.firstMultiple?qU.firstMultiple=QG(cW):iJ===1&&(qU.firstMultiple=!1);dC=qU.firstInput;var eK=(iJ=qU.firstMultiple)?iJ.center:dC.center,lT=cW.center=hz(ob);cW.timeStamp=rg();cW.deltaTime=cW.timeStamp-dC.timeStamp;cW.angle=Zc(eK,lT);cW.distance=
BW(eK,lT);dC=cW.center;eK=qU.offsetDelta||{};lT=qU.prevDelta||{};var x8=qU.prevInput||{};if(cW.eventType===1||x8.eventType===4)lT=qU.prevDelta={x:x8.deltaX||0,y:x8.deltaY||0},eK=qU.offsetDelta={x:dC.x,y:dC.y};cW.deltaX=lT.x+(dC.x-eK.x);cW.deltaY=lT.y+(dC.y-eK.y);cW.offsetDirection=bO(cW.deltaX,cW.deltaY);iJ?(dC=iJ.pointers,dC=BW(ob[0],ob[1],WH)/BW(dC[0],dC[1],WH)):dC=1;cW.scale=dC;iJ?(iJ=iJ.pointers,ob=Zc(ob[1],ob[0],WH)-Zc(iJ[1],iJ[0],WH)):ob=0;cW.rotation=ob;eK=qU.lastInterval||cW;ob=cW.timeStamp-
eK.timeStamp;cW.eventType!=8&&(ob>25||eK.velocity===M)?(dC=eK.deltaX-cW.deltaX,eK=eK.deltaY-cW.deltaY,lT=dC/ob||0,x8=eK/ob||0,ob=lT,iJ=x8,lT=Oi(lT)>Oi(x8)?lT:x8,dC=bO(dC,eK),qU.lastInterval=cW):(lT=eK.velocity,ob=eK.velocityX,iJ=eK.velocityY,dC=eK.direction);cW.velocity=lT;cW.velocityX=ob;cW.velocityY=iJ;cW.direction=dC;qU=HW.element;a:{for(ob=cW.srcEvent.target;ob;){if(ob==qU){ob=!0;break a}ob=ob.parentNode}ob=!1}ob&&(qU=cW.srcEvent.target);cW.target=qU;HW.emit("hammer.input",cW);HW.recognize(cW);
HW.session.prevInput=cW}
function QG(HW){for(var qU=[],cW=0;cW<HW.pointers.length;cW++)qU[cW]={clientX:Fp(HW.pointers[cW].clientX),clientY:Fp(HW.pointers[cW].clientY)};return{timeStamp:rg(),pointers:qU,center:hz(qU),deltaX:HW.deltaX,deltaY:HW.deltaY}}
function hz(HW){var qU=HW.length;if(qU===1)return{x:Fp(HW[0].clientX),y:Fp(HW[0].clientY)};for(var cW=0,ob=0,iJ=0;iJ<qU;iJ++)cW+=HW[iJ].clientX,ob+=HW[iJ].clientY;return{x:Fp(cW/qU),y:Fp(ob/qU)}}
function bO(HW,qU){return HW===qU?1:Oi(HW)>=Oi(qU)?HW>0?2:4:qU>0?8:16}
function BW(HW,qU,cW){cW||(cW=Y8);var ob=qU[cW[0]]-HW[cW[0]];HW=qU[cW[1]]-HW[cW[1]];return Math.sqrt(ob*ob+HW*HW)}
function Zc(HW,qU,cW){cW||(cW=Y8);return Math.atan2(qU[cW[1]]-HW[cW[1]],qU[cW[0]]-HW[cW[0]])*180/Math.PI}
function xS(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;c.apply(this,arguments)}
function Dc(){this.evEl=SQ;this.evWin=NS;c.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function $S(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};c.apply(this,arguments)}
function hL(){c.apply(this,arguments);var HW=B(this.handler,this);this.touch=new $S(this.manager,HW);this.mouse=new xS(this.manager,HW)}
function WK(HW,qU){this.manager=HW;this.set(qU)}
function JL(HW){if(HW.indexOf("none")>-1)return"none";var qU=HW.indexOf("pan-x")>-1,cW=HW.indexOf("pan-y")>-1;return qU&&cW?"pan-x pan-y":qU||cW?qU?"pan-x":"pan-y":HW.indexOf("manipulation")>-1?"manipulation":"auto"}
function sP(HW){this.id=fZ++;this.manager=null;this.options=T(HW||{},this.defaults);HW=this.options.enable;this.options.enable=HW===M?!0:HW;this.state=1;this.simultaneous={};this.requireFail=[]}
function wg(HW){return HW==16?"down":HW==8?"up":HW==2?"left":HW==4?"right":""}
function bT(HW,qU){return(qU=qU.manager)?qU.get(HW):HW}
function HK(){sP.apply(this,arguments)}
function Ta(){HK.apply(this,arguments);this.pY=this.pX=null}
function Sg(){HK.apply(this,arguments)}
function MU(){sP.apply(this,arguments);this._input=this._timer=null}
function vK(){HK.apply(this,arguments)}
function eg(){HK.apply(this,arguments)}
function oP(){sP.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function BK(HW,qU){qU=qU||{};var cW=qU.recognizers;qU.recognizers=cW===M?BK.defaults.preset:cW;return new pY(HW,qU)}
function pY(HW,qU){qU=qU||{};this.options=T(qU,BK.defaults);this.options.inputTarget=this.options.inputTarget||HW;this.handlers={};this.session={};this.recognizers=[];this.element=HW;this.input=a(this);this.touchAction=new WK(this,this.options.touchAction);v$(this,!0);b(qU.recognizers,function(cW){var ob=this.add(new cW[0](cW[1]));cW[2]&&ob.recognizeWith(cW[2]);cW[3]&&ob.requireFailure(cW[2])},this)}
function v$(HW,qU){var cW=HW.element;b(HW.options.cssProps,function(ob,iJ){cW.style[z(cW.style,iJ)]=qU?ob:""})}
function RP(HW,qU){var cW=v.createEvent("Event");cW.initEvent(HW,!0,!0);cW.gesture=qU;qU.target.dispatchEvent(cW)}
var KY=" webkit moz MS ms o".split(" "),si=v.createElement("div"),Fp=Math.round,Oi=Math.abs,rg=Date.now,fZ=1,ha=/mobile|tablet|ip(ad|hone|od)|android/i,IP="ontouchstart"in u,Zi=z(u,"PointerEvent")!==M,gr=IP&&ha.test(navigator.userAgent),Y8=["x","y"],WH=["clientX","clientY"];c.prototype={handler:function(){},
destroy:function(){this.evEl&&P(this.element,this.evEl,this.domHandler);this.evTarget&&P(this.target,this.evTarget,this.domHandler);this.evWin&&P(u,this.evWin,this.domHandler)}};
var vg={mousedown:1,mousemove:2,mouseup:4};x(xS,c,{handler:function(HW){var qU=vg[HW.type];qU&1&&HW.button===0&&(this.pressed=!0);qU&2&&HW.which!==1&&(qU=4);this.pressed&&this.allow&&(qU&4&&(this.pressed=!1),this.callback(this.manager,qU,{pointers:[HW],changedPointers:[HW],pointerType:"mouse",srcEvent:HW}))}});
var Fr={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},e_={2:"touch",3:"pen",4:"mouse",5:"kinect"},SQ="pointerdown",NS="pointermove pointerup pointercancel";u.MSPointerEvent&&(SQ="MSPointerDown",NS="MSPointerMove MSPointerUp MSPointerCancel");x(Dc,c,{handler:function(HW){var qU=this.store,cW=!1,ob=HW.type.toLowerCase().replace("ms","");ob=Fr[ob];var iJ=e_[HW.pointerType]||HW.pointerType;ob&1&&(HW.button===0||iJ=="touch")?qU.push(HW):ob&12&&(cW=!0);var dC=E(qU,HW.pointerId,"pointerId");
dC<0||(qU[dC]=HW,this.callback(this.manager,ob,{pointers:qU,changedPointers:[HW],pointerType:iJ,srcEvent:HW}),cW&&qU.splice(dC,1))}});
var sW={touchstart:1,touchmove:2,touchend:4,touchcancel:8};x($S,c,{handler:function(HW){var qU=sW[HW.type];var cW=Array.prototype.slice.call(HW.touches,0);var ob=this.targetIds;if(qU&3&&cW.length===1)ob[cW[0].identifier]=!0,ob=[cW,cW];else{var iJ,dC=Array.prototype.slice.call(HW.targetTouches,0),eK=Array.prototype.slice.call(HW.changedTouches,0),lT=[];if(qU===1)for(cW=0,iJ=dC.length;cW<iJ;cW++)ob[dC[cW].identifier]=!0;cW=0;for(iJ=eK.length;cW<iJ;cW++)ob[eK[cW].identifier]&&lT.push(eK[cW]),qU&12&&
delete ob[eK[cW].identifier];ob=lT.length?[D(dC.concat(lT),"identifier",!0),lT]:void 0}ob&&this.callback(this.manager,qU,{pointers:ob[0],changedPointers:ob[1],pointerType:"touch",srcEvent:HW})}});
x(hL,c,{handler:function(HW,qU,cW){var ob=cW.pointerType=="mouse";if(cW.pointerType=="touch")this.mouse.allow=!1;else if(ob&&!this.mouse.allow)return;qU&12&&(this.mouse.allow=!0);this.callback(HW,qU,cW)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var m_=z(si.style,"touchAction"),gG=m_!==M;WK.prototype={set:function(HW){HW=="compute"&&(HW=this.compute());gG&&(this.manager.element.style[m_]=HW);this.actions=HW.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var HW=[];b(this.manager.recognizers,function(qU){l(qU.options.enable,[qU])&&(HW=HW.concat(qU.getTouchAction()))});
return JL(HW.join(" "))},
preventDefaults:function(HW){if(!gG){var qU=HW.srcEvent;HW=HW.offsetDirection;if(this.manager.session.prevented)qU.preventDefault();else{var cW=this.actions,ob=cW.indexOf("none")>-1,iJ=cW.indexOf("pan-y")>-1;cW=cW.indexOf("pan-x")>-1;if(ob||iJ&&cW||iJ&&HW&6||cW&&HW&24)return this.preventSrc(qU)}}},
preventSrc:function(HW){this.manager.session.prevented=!0;HW.preventDefault()}};
sP.prototype={defaults:{},set:function(HW){N(this.options,HW);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(HW){if(h(HW,"recognizeWith",this))return this;var qU=this.simultaneous;HW=bT(HW,this);qU[HW.id]||(qU[HW.id]=HW,HW.recognizeWith(this));return this},
dropRecognizeWith:function(HW){if(h(HW,"dropRecognizeWith",this))return this;HW=bT(HW,this);delete this.simultaneous[HW.id];return this},
requireFailure:function(HW){if(h(HW,"requireFailure",this))return this;var qU=this.requireFail;HW=bT(HW,this);E(qU,HW)===-1&&(qU.push(HW),HW.requireFailure(this));return this},
dropRequireFailure:function(HW){if(h(HW,"dropRequireFailure",this))return this;HW=bT(HW,this);HW=E(this.requireFail,HW);HW>-1&&this.requireFail.splice(HW,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(HW){return!!this.simultaneous[HW.id]},
emit:function(HW){function qU(iJ){cW.manager.emit(cW.options.event+(iJ?ob&16?"cancel":ob&8?"end":ob&4?"move":ob&2?"start":"":""),HW)}
var cW=this,ob=this.state;ob<8&&qU(!0);qU();ob>=8&&qU(!0)},
tryEmit:function(HW){if(this.canEmit())return this.emit(HW);this.state=32},
canEmit:function(){for(var HW=0;HW<this.requireFail.length;HW++)if(!(this.requireFail[HW].state&33))return!1;return!0},
recognize:function(HW){HW=N({},HW);l(this.options.enable,[this,HW])?(this.state&56&&(this.state=1),this.state=this.process(HW),this.state&30&&this.tryEmit(HW)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
x(HK,sP,{defaults:{pointers:1},attrTest:function(HW){var qU=this.options.pointers;return qU===0||HW.pointers.length===qU},
process:function(HW){var qU=this.state,cW=HW.eventType,ob=qU&6;HW=this.attrTest(HW);return ob&&(cW&8||!HW)?qU|16:ob||HW?cW&4?qU|8:qU&2?qU|4:2:32}});
x(Ta,HK,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var HW=this.options.direction;if(HW===30)return["none"];var qU=[];HW&6&&qU.push("pan-y");HW&24&&qU.push("pan-x");return qU},
directionTest:function(HW){var qU=this.options,cW=!0,ob=HW.distance,iJ=HW.direction,dC=HW.deltaX,eK=HW.deltaY;iJ&qU.direction||(qU.direction&6?(iJ=dC===0?1:dC<0?2:4,cW=dC!=this.pX,ob=Math.abs(HW.deltaX)):(iJ=eK===0?1:eK<0?8:16,cW=eK!=this.pY,ob=Math.abs(HW.deltaY)));HW.direction=iJ;return cW&&ob>qU.threshold&&iJ&qU.direction},
attrTest:function(HW){return HK.prototype.attrTest.call(this,HW)&&(this.state&2||!(this.state&2)&&this.directionTest(HW))},
emit:function(HW){this.pX=HW.deltaX;this.pY=HW.deltaY;var qU=wg(HW.direction);qU&&this.manager.emit(this.options.event+qU,HW);this._super.emit.call(this,HW)}});
x(Sg,HK,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(HW){return this._super.attrTest.call(this,HW)&&(Math.abs(HW.scale-1)>this.options.threshold||this.state&2)},
emit:function(HW){this._super.emit.call(this,HW);HW.scale!==1&&this.manager.emit(this.options.event+(HW.scale<1?"in":"out"),HW)}});
x(MU,sP,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(HW){var qU=this.options,cW=HW.pointers.length===qU.pointers,ob=HW.distance<qU.threshold,iJ=HW.deltaTime>qU.time;this._input=HW;if(!ob||!cW||HW.eventType&12&&!iJ)this.reset();else if(HW.eventType&1)this.reset(),this._timer=K(function(){this.state=8;this.tryEmit()},qU.time,this);
else if(HW.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(HW){this.state===8&&(HW&&HW.eventType&4?this.manager.emit(this.options.event+"up",HW):(this._input.timeStamp=rg(),this.manager.emit(this.options.event,this._input)))}});
x(vK,HK,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(HW){return this._super.attrTest.call(this,HW)&&(Math.abs(HW.rotation)>this.options.threshold||this.state&2)}});
x(eg,HK,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return Ta.prototype.getTouchAction.call(this)},
attrTest:function(HW){var qU=this.options.direction;if(qU&30)var cW=HW.velocity;else qU&6?cW=HW.velocityX:qU&24&&(cW=HW.velocityY);return this._super.attrTest.call(this,HW)&&qU&HW.direction&&Oi(cW)>this.options.velocity&&HW.eventType&4},
emit:function(HW){var qU=wg(HW.direction);qU&&this.manager.emit(this.options.event+qU,HW);this.manager.emit(this.options.event,HW)}});
x(oP,sP,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(HW){var qU=this.options,cW=HW.pointers.length===qU.pointers,ob=HW.distance<qU.threshold,iJ=HW.deltaTime<qU.time;this.reset();if(HW.eventType&1&&this.count===0)return this.failTimeout();if(ob&&iJ&&cW){if(HW.eventType!=4)return this.failTimeout();cW=this.pTime?HW.timeStamp-this.pTime<qU.interval:!0;ob=!this.pCenter||BW(this.pCenter,HW.center)<qU.posThreshold;this.pTime=HW.timeStamp;this.pCenter=HW.center;ob&&cW?this.count+=1:this.count=1;this._input=HW;if(this.count%qU.taps===0)return this.hasRequireFailures()?
(this._timer=K(function(){this.state=8;this.tryEmit()},qU.interval,this),2):8}return 32},
failTimeout:function(){this._timer=K(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))}});
BK.VERSION="2.0.2";BK.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[vK,{enable:!1}],[Sg,{enable:!1},["rotate"]],[eg,{direction:6}],[Ta,{direction:6},["swipe"]],[oP],[oP,{event:"doubletap",taps:2},["tap"]],[MU]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};pY.prototype={set:function(HW){N(this.options,HW);return this},
stop:function(HW){this.session.stopped=HW?2:1},
recognize:function(HW){var qU=this.session;if(!qU.stopped){this.touchAction.preventDefaults(HW);var cW=this.recognizers,ob=qU.curRecognizer;if(!ob||ob&&ob.state&8)ob=qU.curRecognizer=null;for(var iJ=0,dC=cW.length;iJ<dC;iJ++){var eK=cW[iJ];qU.stopped===2||ob&&eK!=ob&&!eK.canRecognizeWith(ob)?eK.reset():eK.recognize(HW);!ob&&eK.state&14&&(ob=qU.curRecognizer=eK)}}},
get:function(HW){if(HW instanceof sP)return HW;for(var qU=this.recognizers,cW=0;cW<qU.length;cW++)if(qU[cW].options.event==HW)return qU[cW];return null},
add:function(HW){if(h(HW,"add",this))return this;var qU=this.get(HW.options.event);qU&&this.remove(qU);this.recognizers.push(HW);HW.manager=this;this.touchAction.update();return HW},
remove:function(HW){if(h(HW,"remove",this))return this;var qU=this.recognizers;HW=this.get(HW);qU.splice(E(qU,HW),1);this.touchAction.update();return this},
on:function(HW,qU){var cW=this.handlers;b(k(HW),function(ob){cW[ob]=cW[ob]||[];cW[ob].push(qU)});
return this},
off:function(HW,qU){var cW=this.handlers;b(k(HW),function(ob){qU?cW[ob].splice(E(cW[ob],qU),1):delete cW[ob]});
return this},
emit:function(HW,qU){this.options.domEvents&&RP(HW,qU);var cW=this.handlers[HW]&&this.handlers[HW].slice();if(cW&&cW.length){qU.type=HW;qU.preventDefault=function(){qU.srcEvent.preventDefault()};
HW=0;for(var ob=cW.length;HW<ob;HW++)cW[HW](qU)}},
destroy:function(){this.element&&v$(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
N(BK,{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:pY,Input:c,TouchAction:WK,Recognizer:sP,AttrRecognizer:HK,Tap:oP,Pan:Ta,Swipe:eg,Pinch:Sg,Rotate:vK,Press:MU,on:Z,off:P,each:b,merge:T,extend:N,inherit:x,bindFn:B,prefixed:z});
u[Q]=BK})(window,document,"Hammer");
return window.Hammer}.call({});
y.DOCUMENT=R;R[e8i]=y}return R[e8i]};/*

 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 OAc=function(R,y){if(R.length!==y.length)return!1;for(var u=0;u<R.length;++u)if(R[u]!==y[u])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var ZA5=_.V(["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"]),HAY=ZA5.next();!HAY.done;HAY=ZA5.next()){var n9i=HAY.value,Gwg=document.createElement("link");Gwg.rel="stylesheet";Gwg.href=n9i;document.head.appendChild(Gwg)};var SOS,LnU,zhz,tz8,YOO,ckG,DWT,p7S;SOS={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};LnU={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:"*"};zhz={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};tz8=/[a-z0-9*]/;YOO=/U\+/;ckG=/^arrow/;DWT=/^space(bar)?/;p7S=/^escape$/;_.Gh={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,y){this._imperativeKeyBindings[R]=y;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(R,y){y=CjS(y);for(var u=0;u<y.length;++u)if(sfS(y[u],R))return!0;return!1},
_collectKeyBindings:function(){var R=this.behaviors.map(function(y){return y.keyBindings});
R.indexOf(this.keyBindings)===-1&&R.push(this.keyBindings);return R},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(u){for(var v in u)this._addKeyBinding(v,u[v])},this);
for(var R in this._imperativeKeyBindings)this._addKeyBinding(R,this._imperativeKeyBindings[R]);for(var y in this._keyBindings)this._keyBindings[y].sort(function(u,v){u=u[0].hasModifiers;return u===v[0].hasModifiers?0:u?-1:1})},
_addKeyBinding:function(R,y){CjS(R).forEach(function(u){this._keyBindings[u.event]=this._keyBindings[u.event]||[];this._keyBindings[u.event].push([u,y])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(R){var y=this._onKeyBindingEvent.bind(this,this._keyBindings[R]);this._boundKeyHandlers.push([this.keyEventTarget,R,y]);this.keyEventTarget.addEventListener(R,y)},this)},
_unlistenKeyEventListeners:function(){for(var R,y,u;this._boundKeyHandlers.length;)R=this._boundKeyHandlers.pop(),y=R[0],u=R[1],R=R[2],y.removeEventListener(u,R)},
_onKeyBindingEvent:function(R,y){this.stopKeyboardEventPropagation&&y.stopPropagation();if(!y.defaultPrevented)for(var u=0;u<R.length;u++){var v=R[u][0],Q=R[u][1];if(sfS(v,y)&&(this._triggerKeyHandler(v,Q,y),y.defaultPrevented))break}},
_triggerKeyHandler:function(R,y,u){var v=Object.create(R);v.keyboardEvent=u;R=new CustomEvent(R.event,{detail:v,cancelable:!0});this[y].call(this,R);R.defaultPrevented&&u.preventDefault()}};/*

Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
_.qz({is:"iron-a11y-keys",_template:null,behaviors:[_.Gh],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,{})}});_.r9={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 PO={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 y=_.GM(R).localTarget;this.isLightDescendant(y)||(R.preventDefault(),R.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(R){R=_.GM(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,y){y&&y!=R&&this.hasAttribute(y)&&this.removeAttribute(y)},
_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()}},rFY=[_.Gh,
PO];_.WO={IronButtonState:rFY,IronButtonStateImpl:PO};_.d9={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.UD=function(R){_.UD[" "](R);this.type=R&&R.type||"default";this.key=R&&R.key;R&&"value"in R&&(this.value=R.value)};
_.UD.prototype.byKey=function(R){this.key=R;return this.value};
_.RR.Object.defineProperties(_.UD.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var R=this.type,y=this.key;if(R&&y)return kR[R]&&kR[R][y]},
set:function(R){var y=this.type,u=this.key;y&&u&&(y=kR[y]=kR[y]||{},R==null?delete y[u]:y[u]=R)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var R=kR[this.type];return R?Object.keys(R).map(function(y){return kR[this.type][y]},this):[]}}});
_.UD[" "]=function(){};
var kR={};_.qz({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,y,u){R=new _.UD({type:R,key:y});u!==void 0&&u!==R.value?R.value=u: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 _.UD({type:this.type,key:R})).value}});var PDG;PDG=null;_.ED={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){PDG=new _.UD({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return PDG&&PDG.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 WkY={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"}},dpc=[_.d9,
_.ED,WkY];_.qz({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 _.UD({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,y){this.removeIcon(R);if(y=this._cloneIcon(y,this.rtlMirroring&&this._targetIsRTL(R))){var u=_.GM(R.root||R);u.insertBefore(y,u.childNodes[0]);return R._svgIcon=y}return null},
removeIcon:function(R){R._svgIcon&&(_.GM(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);_.GM(this).querySelectorAll("[id]").forEach(function(y){R[y.id]=y});
return R},
_cloneIcon:function(R,y){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[R],this.size,y)},
_prepareSvgClone:function(R,y,u){if(R){R=R.cloneNode(!0);var v=document.createElementNS("http://www.w3.org/2000/svg","svg");y=R.getAttribute("viewBox")||"0 0 "+y+" "+y;var Q="pointer-events: none; display: block; width: 100%; height: 100%;";u&&R.hasAttribute("mirror-in-rtl")&&(Q+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");v.setAttribute("viewBox",y);v.setAttribute("preserveAspectRatio","xMidYMid meet");v.setAttribute("focusable","false");v.style&&(v.style.cssText=
Q);v.appendChild(R).removeAttribute("id");return v}return null}});var UpK=function(R){this.multi=!1;this.selection=[];this.selectCallback=R};
_.J=UpK.prototype;_.J.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.J.clear=function(R){this.selection.slice().forEach(function(y){(!R||R.indexOf(y)<0)&&this.setItemSelected(y,!1)},this)};
_.J.isSelected=function(R){return this.selection.indexOf(R)>=0};
_.J.setItemSelected=function(R,y){if(R!=null&&y!==this.isSelected(R)){if(y)this.selection.push(R);else{var u=this.selection.indexOf(R);u>=0&&this.selection.splice(u,1)}this.selectCallback&&this.selectCallback(R,y)}};
_.J.select=function(R){this.multi?this.toggle(R):this.get()!==R&&(this.setItemSelected(this.get(),!1),this.setItemSelected(R,!0))};
_.J.toggle=function(R){this.setItemSelected(R,!this.isSelected(R))};_.Cu={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 UpK(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.GM(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,y=R-1;this.selected!==void 0&&(y=(Number(this._valueToIndex(this.selected))-1+R)%R);this.selected=this._indexToValue(y)},
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,y){this._removeListener(y);this._addListener(R)},
_updateItems:function(){var R=_.GM(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 y=0,u;u=this.items[y];y++){if(this._valueForItem(u)==R)return y}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 y=R[iN(this.attrForSelected)];return y!=void 0?y:R.getAttribute(this.attrForSelected)},
_applySelection:function(R,y){this.selectedClass&&this.toggleClass(this.selectedClass,y,R);this.selectedAttribute&&this.toggleAttribute.call(R,this.selectedAttribute,y);this._selectionChange();this.fire("iron-"+(y?"select":"deselect"),{item:R})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(R){return _.GM(R).observeNodes(function(y){this._updateItems();this._updateSelected();this.fire("iron-items-changed",y,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(R){R=R.target;for(var y=this.items;R&&R!=this;){var u=y.indexOf(R);if(u>=0){y=this._indexToValue(u);this._itemActivate(y,R);break}R=R.parentNode}},
_itemActivate:function(R,y){this.fire("iron-activate",{selected:R,item:y},{cancelable:!0}).defaultPrevented||this.select(R)}};var kwi={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)):_.Cu._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(u){return u!==null&&u!==void 0});
this._selection.clear(R);for(var y=0;y<R.length;y++)this._selection.setItemSelected(R[y],!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 y=this.selectedValues.indexOf(R);y<0?this.push("selectedValues",R):this.splice("selectedValues",y,1)},
_valuesToItems:function(R){return R==null?null:R.map(function(y){return this._valueToItem(y)},this)}},E95=[_.Cu,
kwi];var $pT;
_.$R={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 y=this._valueToItem(R);y&&y.hasAttribute("disabled")||(this._setFocusedItem(y),kwi.select.apply(this,arguments))},
_resetTabindices:function(){var R=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(y){y.setAttribute("tabindex",y===R?"0":"-1");y.setAttribute("aria-selected",this._selection.isSelected(y))},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 y=this._searchText||"";y+=(R.key&&R.key.length==1?R.key:String.fromCharCode(R.keyCode)).toLocaleLowerCase();R=y.length;for(var u=0,v;v=this.items[u];u++)if(!v.hasAttribute("disabled")){var Q=this.attrForItemTitle||"textContent";Q=(v[Q]||v.getAttribute(Q)||"").trim();if(!(Q.length<R)&&Q.slice(0,R).toLocaleLowerCase()==y){this._setFocusedItem(v);break}}this._searchText=y;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var R=this.items.length,y=Number(this.indexOf(this.focusedItem)),u=1;u<R+1;u++){var v=this.items[(y-u+R)%R];if(!v.hasAttribute("disabled")){var Q=_.GM(v).getOwnerRoot()||document;this._setFocusedItem(v);if(_.GM(Q).activeElement==v)break}}},
_focusNext:function(){for(var R=this.items.length,y=Number(this.indexOf(this.focusedItem)),u=1;u<R+1;u++){var v=this.items[(y+u)%R];if(!v.hasAttribute("disabled")){var Q=_.GM(v).getOwnerRoot()||document;this._setFocusedItem(v);if(_.GM(Q).activeElement==v)break}}},
_applySelection:function(R,y){y?R.setAttribute("aria-selected","true"):R.setAttribute("aria-selected","false");_.Cu._applySelection.apply(this,arguments)},
_focusedItemChanged:function(R,y){y&&y.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");_.$R._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",R);_.$R._shiftTabPressed=!1},1)},
_onFocus:function(R){!_.$R._shiftTabPressed&&(R=_.GM(R).rootTarget,R===this||typeof R.tabIndex==="undefined"||this.isLightDescendant(R))&&(this._defaultFocusAsync=this.async(function(){var y=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);y?this._setFocusedItem(y):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){_.Cu._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};$pT=[E95,_.Gh,_.$R];_.qCg={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)}};
_.XmY=[$pT,_.qCg];var mpc;mpc=new Set;_.qv={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):(mpc.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 y=this._interestedResizables.indexOf(R);y>-1&&(this._interestedResizables.splice(y,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():AW||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(R){var y=_.GM(R).rootTarget;y!==this&&(y.assignParentResizable(this),this._notifyDescendant(y),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 u(){document.removeEventListener("readystatechange",u);R()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(y){y!==this&&y._findParent()},this):(mpc.forEach(function(y){y!==this&&y._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?mpc.delete(this):mpc.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
*/
_.AFK={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(R,y){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);y&&(R==="document"?this.scrollTarget=this._doc:typeof R==="string"?this.scrollTarget=(y=this.domHost)&&y.$?y.$[R]:_.GM(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,y){if(typeof R==="object"){var u=R.left;y=R.top}else u=R;u=u||0;y=y||0;this.scrollTarget===this._doc?window.scrollTo(u,y):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=u,this.scrollTarget.scrollTop=y)},
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,y){y=y===this._doc?window:y;R?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),y.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(y.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(R){this._shouldHaveListener=R;this._toggleScrollListener(R,this.scrollTarget)}};_.qz({is:"iron-selector",_template:null,behaviors:[E95]});var X8={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 y in R.timing)this.animationTiming[y]=R.timing[y];return this.animationTiming},
setPrefixedProperty:function(R,y,u){for(var v={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[y],Q,M=0;Q=v[M];M++)R.style[Q]=u;R.style[y]=u},
complete:function(){}};_.qz({is:"fade-in-animation",_template:null,behaviors:[X8],configure:function(R){return this._effect=new KeyframeEffect(R.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(R))}});_.qz({is:"fade-out-animation",_template:null,behaviors:[X8],configure:function(R){return this._effect=new KeyframeEffect(R.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(R))}});var Dp5=[{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,y){for(var u in y)R[u]=y[u]},
_cloneConfig:function(R){var y={isClone:!0};this._copyProperties(y,R);return y},
_getAnimationConfigRecursive:function(R,y,u){if(this.animationConfig)if(this.animationConfig.value&&typeof this.animationConfig.value==="function")this._warn(this._logf("playAnimation","Please put 'animationConfig' inside of your components 'properties' object instead of outside of it."));else{var v=R?this.animationConfig[R]:this.animationConfig;Array.isArray(v)||(v=[v]);if(v)for(var Q,M=0;Q=v[M];M++)if(Q.animatable)Q.animatable._getAnimationConfigRecursive(Q.type||R,y,u);else if(Q.id){var K=y[Q.id];
K?(K.isClone||(y[Q.id]=this._cloneConfig(K),K=y[Q.id]),this._copyProperties(K,Q)):y[Q.id]=Q}else u.push(Q)}},
getAnimationConfig:function(R){var y={},u=[];this._getAnimationConfigRecursive(R,y,u);for(var v in y)u.push(y[v]);return u}},
{_configureAnimations:function(R){var y=[],u=[];if(R.length>0)for(var v,Q=0;v=R[Q];Q++){var M=document.createElement(v.name);if(M.isNeonAnimation){var K=null;M.configure||(M.configure=function(){return null});
K=M.configure(v);u.push({result:K,config:v})}else console.warn(this.is+":",v.name,"not found!")}for(R=0;R<u.length;R++){K=u[R].result;v=u[R].config;try{typeof K.cancel!="function"&&(K=document.timeline.play(K))}catch(h){K=null,console.warn("Couldnt play","(",v.name,").",h)}K&&y.push({neonAnimation:M,config:v,animation:K})}return y},
_shouldComplete:function(R){for(var y=!0,u=0;u<R.length;u++)if(R[u].animation.playState!="finished"){y=!1;break}return y},
_complete:function(R){for(var y=0;y<R.length;y++)R[y].neonAnimation.complete(R[y].config);for(y=0;y<R.length;y++)R[y].animation.cancel()},
playAnimation:function(R,y){var u=this.getAnimationConfig(R);if(u){this._active=this._active||{};this._active[R]&&(this._complete(this._active[R]),delete this._active[R]);var v=this._configureAnimations(u);if(v.length==0)this.fire("neon-animation-finish",y,{bubbles:!1});else for(this._active[R]=v,u=0;u<v.length;u++)v[u].animation.onfinish=function(){this._shouldComplete(v)&&(this._complete(v),delete this._active[R],this.fire("neon-animation-finish",y,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var R in this._active){var y=this._active[R],u;for(u in y)y[u].animation&&y[u].animation.cancel&&y[u].animation.cancel()}this._active={}}}];var TM=function(R,y){R=Error.call(this,R);this.message=R.message;"stack"in R&&(this.stack=R.stack);this.arg=y;this.name=this.constructor.name;this.constructor=TM;this.__proto__=TM.prototype};
_.O(TM,Error);var pm5=Ql(function(R){var y=function(){return R.apply(this,arguments)||this};
_.O(y,R);y.prototype._marshalArgs=function(u,v,Q){v=R.prototype._marshalArgs.call(this,u,v,Q);if(this._legacyUndefinedCheck&&v.length>1)for(Q=0;Q<v.length;Q++)if(v[Q]===void 0||u[Q].wildcard&&v[Q].base===void 0)throw u=u[Q].name,new TM("Argument '"+u+"' is undefined.",u);return v};
y.prototype._addPropertyEffect=function(u,v,Q){return R.prototype._addPropertyEffect.call(this,u,v,REz(Q,Q&&Q.info&&Q.info.methodName))};
y._addTemplatePropertyEffect=function(u,v,Q){return R._addTemplatePropertyEffect.call(this,u,v,REz(Q))};
return y}),toK=_.qz.Class;
_.qz.Class=function(R,y){return toK(R,function(u){return y?y(pm5(u)):pm5(u)})};
var cFK=Ql(function(R){var y=pm5(R);R=function(){return y.apply(this,arguments)||this};
_.O(R,y);_.RR.Object.defineProperties(R.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return R}),aOw=pN.mixin;
pN.mixin=aOw?function(R){return cFK(aOw(R))}:cFK;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.mf=_.WO.IronButtonState;var L6T=mQ;/*

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 YCi;_.SCg="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");YCi=function(){var R=[],y;var u=u||_.SCg.length;for(y=0;y<8;y++)R[y]=_.SCg[0|Math.random()*u];return R.join("")};var QeU=function(){return Math.random().toString(36).substring(7).split("").join(".")},vjP="@@redux/INIT"+QeU(),J8G="@@redux/REPLACE"+QeU();var VwT=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Lkb=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var s8g="top right bottom left width height size weight".split(" "),z88=typeof MutationObserver!=="undefined",g9L=Lkb&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,CDg=function(){this.mutationEventsAdded_=this.JSC$11672_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=iTO(this.refresh.bind(this))},Rt5=function(R,
y){var u=R.observers_;
y=u.indexOf(y);~y&&u.splice(y,1);!u.length&&R.JSC$11672_connected_&&Lkb&&R.JSC$11672_connected_&&(document.removeEventListener("transitionend",R.onTransitionEnd_),window.removeEventListener("resize",R.refresh),R.mutationsObserver_&&(R.mutationsObserver_.disconnect(),g9L&&(HTMLElement.prototype.attachShadow=g9L)),R.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",R.refresh),R.mutationsObserver_=null,R.mutationEventsAdded_=!1,R.JSC$11672_connected_=!1)};
CDg.prototype.refresh=function(){yGb(this)&&this.refresh()};
var yGb=function(R){R=R.observers_.filter(function(y){return udK(y),y.activeObservations_.length>0});
R.forEach(function(y){return vYc(y)});
return R.length>0},Qyg=function(R){if(Lkb&&!R.JSC$11672_connected_){document.addEventListener("transitionend",R.onTransitionEnd_);
window.addEventListener("resize",R.refresh);if(z88){R.mutationsObserver_=new MutationObserver(R.refresh);var y={attributes:!0,childList:!0,characterData:!0,subtree:!0};R.mutationsObserver_.observe(document,y);g9L&&(function Q(v){var M=v.shadowRoot;M&&(R.mutationsObserver_.observe(M,y),Q(M));for(v=v.firstElementChild;v;)Q(v),v=v.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var v=g9L.apply(this,_.qy.apply(0,arguments));
R.mutationsObserver_.observe(v,y);return v})}else document.addEventListener("DOMSubtreeModified",R.refresh),R.mutationEventsAdded_=!0;
R.JSC$11672_connected_=!0}};
CDg.prototype.onTransitionEnd_=function(R){var y=R.propertyName===void 0?"":R.propertyName;s8g.some(function(u){return!!~y.indexOf(u)})&&this.refresh()};
var jy5=null;var M8i=function(R,y){for(var u=_.V(Object.keys(y)),v=u.next();!v.done;v=u.next())v=v.value,Object.defineProperty(R,v,{value:y[v],enumerable:!1,writable:!1,configurable:!0})};var Aj=function(R){var y;return(R==null?void 0:(y=R.ownerDocument)==null?void 0:y.defaultView)||globalThis};var JGT={x:0,y:0,width:0,height:0},V8V=typeof SVGGraphicsElement!=="undefined"?function(R){return R instanceof Aj(R).SVGGraphicsElement}:function(R){return R instanceof Aj(R).SVGElement&&typeof R.getBBox==="function"};var iXV=function(R){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=R};
iXV.prototype.isActive=function(){var R=this.target;if(Lkb)if(V8V(R)){var y=R.getBBox();y={x:0,y:0,width:y.width,height:y.height}}else{var u=R.clientWidth,v=R.clientHeight;if(u||v){var Q=Aj(R).getComputedStyle(R);y=xI(Q["padding-top"]);var M=xI(Q["padding-left"]),K=M+xI(Q["padding-right"]),h=y+xI(Q["padding-bottom"]),b=xI(Q.width),N=xI(Q.height);Q.boxSizing==="border-box"&&(Math.round(b+K)!==u&&(b-=KFE(Q,"left","right")+K),Math.round(N+h)!==v&&(N-=KFE(Q,"top","bottom")+h));R!==Aj(R).document.documentElement&&
(R=Math.round(b+K)-u,v=Math.round(N+h)-v,Math.abs(R)!==1&&(b-=R),Math.abs(v)!==1&&(N-=v));y={x:M,y:y,width:b,height:N}}else y=JGT}else y=JGT;this.contentRect_=y;return y.width!==this.broadcastWidth||y.height!==this.broadcastHeight};var Kh8=function(R,y){var u=y.x;var v=y.y;var Q=y.width;y=y.height;var M=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);M8i(M,{x:u,y:v,width:Q,height:y,top:v,right:u+Q,bottom:y+v,left:u});M8i(this,{target:R,contentRect:M})};var ITY=function(R,y){var u=jy5;this.activeObservations_=[];this.observations_=new Map;if(typeof R!=="function")throw new TypeError("Qe");this.callback_=R;this.controller_=u;this.callbackCtx_=y};
ITY.prototype.observe=function(R){if(R===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(R instanceof Aj(R).Element))throw new TypeError("Se");var y=this.observations_;y.has(R)||(y.set(R,new iXV(R)),R=this.controller_,~R.observers_.indexOf(this)||R.observers_.push(this),R.JSC$11672_connected_||Qyg(R),this.controller_.refresh())}};
ITY.prototype.unobserve=function(R){if(R===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(R instanceof Aj(R).Element))throw new TypeError("Se");var y=this.observations_;y.has(R)&&(y.delete(R),y.size||Rt5(this.controller_,this))}};
ITY.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();Rt5(this.controller_,this)};
var udK=function(R){R.activeObservations_.splice(0);R.observations_.forEach(function(y){y.isActive()&&R.activeObservations_.push(y)})},vYc=function(R){if(R.activeObservations_.length>0){var y=R.callbackCtx_,u=R.activeObservations_.map(function(v){var Q=v.target,M=v.contentRect_;
v.broadcastWidth=M.width;v.broadcastHeight=M.height;return new Kh8(Q,M)});
R.callback_.call(y,u,y);R.activeObservations_.splice(0)}};var Dy=function(R){if(!(this instanceof Dy))throw new TypeError("Te");if(!arguments.length)throw new TypeError("Re");jy5||(jy5=new CDg);this.observer_=new ITY(R,this)};
Dy.prototype.observe=function(R){this.observer_.observe(R)};
Dy.prototype.unobserve=function(R){this.observer_.unobserve(R)};
Dy.prototype.disconnect=function(){this.observer_.disconnect()};var QjW=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:Dy;var ojP="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(" "),TKP={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},NKO=null,IdS=null;var xgW={},BKL=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 njc={text:1},ldT={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var htL=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,bXY={CONSTANT:{isUnwrappable:function(R){return R instanceof $T},
unwrap:vMV},JAVASCRIPT:{isUnwrappable:function(R){return R instanceof _.YE},
unwrap:j1z},HTML:{isUnwrappable:function(R){return R instanceof D2},
unwrap:function(R){return tq(R)}},
RESOURCE_URL:{isUnwrappable:function(R){return R instanceof ey},
unwrap:_.Oo},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 GB(R)},
unwrap:_.Pg}},FhG={CONSTANT:G0G,JAVASCRIPT:G0G,HTML:function(R){R=R instanceof D2?R:pK(String(R).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return tq(R)},
RESOURCE_URL:G0G,STRING:String,STYLE:G0G,URL:function(R,y){R=htL.test(R)?R:void 0;return R===void 0?y:R}};var mgU=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,r88=/[\t\n\f\r ]+/,WF4=/[\t\n\f\r ,]+/g,UgS=function(R,y,u){return u},lp={},w28=function(){var R=function(){var v={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",v):v}(),y=R.createHTML(""),u=R.createScript("");
R=R.createScriptURL("");return{INNOCUOUS_STRING:y,INNOCUOUS_SCRIPT:u,INNOCUOUS_URL:R}}(),eC=w28.INNOCUOUS_STRING,XcT=w28.INNOCUOUS_SCRIPT,q8L=w28.INNOCUOUS_URL;var N$i=function(R){var y=A8v(R);return function(u,v,Q,M){return M?y(M,v,Q,u):eC}}({reportHandler:function(R,y){if(R)try{throw Error(y);
}catch(u){_.dI(u)}},
safeTypesBridge:function(R,y,u){var v=bXY[y];return v.isUnwrappable(R)&&(v=v.unwrap(R,u),v!==u)?v:(0,FhG[y])(String(R),u)},
allowedIdentifierPrefixes:[""]});if(fN!==void 0)throw Error("Ue");fN=N$i;if(fN!==N$i)throw Error("Ve");Of("Injectable",[]);var bIv=Of("Inject",[["token",void 0]]),w0T=Of("Optional",[]);Of("Injectable",[]);var NqL=Of("Self",[]),TqW=Of("SkipSelf",[]);Of("Host",[]);var T$5={},oYc=function(){};
oYc.prototype.resolve=function(){throw Error("Xe");};
oYc.prototype.addProvider=function(){throw Error("Xe");};var IQc=Function;var x5g=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,B$T=function(){this._reflect=window.Reflect};
_.J=B$T.prototype;_.J.factory=function(R){return function(){return new (Function.prototype.bind.apply(R,[null].concat(_.P$(_.qy.apply(0,arguments)))))}};
_.J._zipTypesAndAnnotations=function(R,y){var u=typeof R==="undefined"?Array(y.length):Array(R.length);for(var v=0;v<u.length;v++)u[v]=typeof R==="undefined"?[]:R[v]!=Object?[R[v]]:[],y&&pcE(y[v])&&(u[v]=u[v].concat(y[v]));return u};
_.J._ownParameters=function(R,y){if(x5g.exec(R.toString()))return null;if(R.parameters&&R.parameters!==y.parameters)return R.parameters;var u=R.ctorParameters;return u&&u!==y.ctorParameters?(y=typeof u==="function"?u():u,R=y.map(function(v){return v&&v.type}),y=y.map(function(v){return v&&c84(v.decorators)}),this._zipTypesAndAnnotations(R,y)):pcE(this._reflect)&&pcE(this._reflect.getOwnMetadata)&&(y=this._reflect.getOwnMetadata("parameters",R),(u=this._reflect.getOwnMetadata("design:paramtypes",R))||
y)?this._zipTypesAndAnnotations(u,y):Array(R.length).fill(void 0)};
_.J.parameters=function(R){if(!R.prototype)return[];var y=Object.getPrototypeOf(R.prototype).constructor;(R=this._ownParameters(R,y))||y===Object||(R=this.parameters(y));return R||[]};
_.J._ownAnnotations=function(R,y){if(R.annotations&&R.annotations!==y.annotations)return R=R.annotations,typeof R==="function"&&R.annotations&&(R=R.annotations),R;if(R.decorators&&R.decorators!==y.decorators)return c84(R.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",R)};
_.J.annotations=function(R){var y=Object.getPrototypeOf(R.prototype).constructor;R=this._ownAnnotations(R,y)||[];return(y!==Object?this.annotations(y):[]).concat(R)};
_.J._ownPropMetadata=function(R,y){if(R.propMetadata&&R.propMetadata!==y.propMetadata)return R=R.propMetadata,typeof R==="function"&&R.propMetadata&&(R=R.propMetadata),R;if(R.propDecorators&&R.propDecorators!==y.propDecorators){var u=R.propDecorators,v={};Object.keys(u).forEach(function(Q){v[Q]=c84(u[Q])});
return v}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",R)};
_.J.propMetadata=function(R){var y=Object.getPrototypeOf(R.prototype).constructor,u={};if(y!==Object){var v=this.propMetadata(y);Object.keys(v).forEach(function(M){u[M]=v[M]})}var Q=this._ownPropMetadata(R,y);
Q&&Object.keys(Q).forEach(function(M){var K=[];u.hasOwnProperty(M)&&K.push.apply(K,_.P$(u[M]));K.push.apply(K,_.P$(Q[M]));u[M]=K});
return u};
_.J.getter=function(R){return function(y){return y[R]}};
_.J.setter=function(R){return function(y,u){return y[R]=u}};
_.J.method=function(R){return function(y,u){if(!y[R])throw Error("Ye`"+R);return y[R].apply(y,u)}};var fTY=function(){};var et8=function(R){this.reflectionCapabilities=R};
_.O(et8,fTY);_.J=et8.prototype;_.J.factory=function(R){return this.reflectionCapabilities.factory(R)};
_.J.parameters=function(R){return this.reflectionCapabilities.parameters(R)};
_.J.annotations=function(R){return this.reflectionCapabilities.annotations(R)};
_.J.propMetadata=function(R){return this.reflectionCapabilities.propMetadata(R)};
_.J.getter=function(R){return this.reflectionCapabilities.getter(R)};
_.J.setter=function(R){return this.reflectionCapabilities.setter(R)};
_.J.method=function(R){return this.reflectionCapabilities.method(R)};var RRE=new et8(new B$T);var p2=function(R,y){this.token=R;this.id=y;if(R===void 0||R===null)throw Error("cf");};
_.RR.Object.defineProperties(p2.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return Zx(this.token)}}});
_.RR.Object.defineProperties(p2,{JSC$11714_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return nv.JSC$11718_numberOfKeys}}});
var lTc=function(){this._allKeys=new Map};
lTc.prototype.get=function(R){if(R instanceof p2)return R;if(this._allKeys.has(R))return this._allKeys.get(R);var y=new p2(R,p2.JSC$11714_numberOfKeys);this._allKeys.set(R,y);return y};
_.RR.Object.defineProperties(lTc.prototype,{JSC$11718_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var nv=new lTc;var oDT=function(R,y,u){this.key=R;this.optional=y;this.visibility=u},uWE=function(R){return new oDT(R,!1,null)},QqT=[],JtG=function(R,y,u){this.key=R;
this.resolvedFactories=y;this.multiProvider=u},jqW=function(R,y,u,v){this.factory=R;
this.dependencies=y;this.providerClass=u;this.providerValue=v};var tj={},cO=function(R,y){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=y===void 0?null:y;R=_.V(R);for(y=R.next();!y.done;y=R.next())this.addProvider(y.value)};
_.J=cO.prototype;_.J.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(tj)};
_.J.resolve=function(R,y){y=y===void 0?T$5:y;return this._getByKey(nv.get(H8(R)),null,y)};
_.J._new=function(R){if(this.constructedKeyIds[R.key.id])throw zET(this,R.key);this.constructedKeyIds[R.key.id]=!0;return this._instantiateProvider(R)};
_.J._instantiateProvider=function(R){if(R.multiProvider){for(var y=Array(R.resolvedFactories.length),u=0;u<R.resolvedFactories.length;++u)y[u]=this._instantiate(R,R.resolvedFactories[u]);return y}return this._instantiate(R,R.resolvedFactories[0])};
_.J._instantiate=function(R,y){var u=this,v=y.factory;try{var Q=y.dependencies.map(function(K){return u._getByReflectiveDependency(K)})}catch(K){throw K.addKey&&K.addKey(this,R.key),K;
}try{var M=v.apply(null,_.P$(Q))}catch(K){throw gjc(this,K,R.key);}return M};
_.J._getByReflectiveDependency=function(R){return this._getByKey(R.key,R.visibility,R.optional?null:T$5)};
_.J._getByKey=function(R,y,u){return R===OX8?this:y instanceof NqL?this._getByKeySelf(R,u):this._getByKeyDefault(R,u,y)};
_.J._getObjByKeyId=function(R){for(var y=0;y<this.keyIds.length;y++)if(this.keyIds[y]===R)return this.objs[y]===tj&&(this.objs[y]=this._new(this.providers[y])),this.objs[y];return tj};
_.J._throwOrNull=function(R,y){if(y!==T$5)return y;throw sec(this,R);};
_.J._getByKeySelf=function(R,y){var u=this._getObjByKeyId(R.id);return u!==tj?u:this._throwOrNull(R,y)};
_.J._getByKeyDefault=function(R,y,u){for(var v=u=u instanceof TqW?this.parent:this;u instanceof cO;){var Q=u._getObjByKeyId(R.id);if(Q!==tj)return Q;u=u.parent}Q=void 0;if(u!==null)try{var M=u.resolve(R.token,y);if(M!==tj)return M}catch(K){Q=K}if(!(v instanceof cO&&BqE(R.token))){if(Q)throw Q;return this._throwOrNull(R,y)}for(M=v;M.parent instanceof cO;)M=M.parent;M.addProvider(VYO({provide:R.token,useClass:R.token}));return M.resolve(R.token,y)};
_.J.toString=function(){return this.displayName};
_.RR.Object.defineProperties(cO.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+xEP(this,function(R){return' "'+R.key.displayName+'" '}).join(", ")+"])"}}});
var OX8=nv.get(H8(oYc));(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 ZX5=window.XRegExp;var HX8=-1,nYb=function(R){addEventListener("pageshow",function(y){y.persisted&&(HX8=y.timeStamp,R(y))},!0)};var rG8=function(R,y,u){var v=GxY,Q,M;return function(K){if(y.value>=0&&(K||u)){var h;if((M=y.value-((h=Q)!=null?h:0))||Q===void 0)Q=y.value,y.delta=M,K=y.value,y.rating=K>v[1]?"poor":K>v[0]?"needs-improvement":"good",R(y)}}};var PGT=function(R){requestAnimationFrame(function(){return requestAnimationFrame(function(){return R()})})};var WhK=function(){var R=performance.getEntriesByType("navigation")[0];if(R&&R.responseStart>0&&R.responseStart<performance.now())return R};var d5i=function(){var R,y;return(y=(R=WhK())==null?void 0:R.activationStart)!=null?y:0};var U5K=function(){var R=R===void 0?-1:R;var y=WhK(),u="navigate";HX8>=0?u="back-forward-cache":y&&(document.prerendering||d5i()>0?u="prerender":document.wasDiscarded?u="restore":y.type&&(u=y.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:u}};var eRW=new WeakMap;var kx5=function(R){var y=y===void 0?{}:y;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var u=new PerformanceObserver(function(v){Promise.resolve().then(function(){R(v.getEntries())})});
u.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},y));return u}}catch(v){}};var EYw=function(R){var y=!1;return function(){y||(R(),y=!0)}};var aQ=-1,$5g=function(R){document.visibilityState==="hidden"&&aQ>-1&&(aQ=R.type==="visibilitychange"?R.timeStamp:0,removeEventListener("visibilitychange",$5g,!0),removeEventListener("prerenderingchange",$5g,!0))},qz5=function(){addEventListener("visibilitychange",$5g,!0);
addEventListener("prerenderingchange",$5g,!0)},X2g=function(){if(aQ<0){var R=d5i(),y,u;
aQ=(u=document.prerendering?void 0:(y=globalThis.performance.getEntriesByType("visibility-state").filter(function(v){return v.name==="hidden"&&v.startTime>R})[0])==null?void 0:y.startTime)!=null?u:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
qz5();nYb(function(){setTimeout(function(){aQ=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;qz5()})})}return{get firstHiddenTime(){return aQ}}};var m5c=function(R){document.prerendering?addEventListener("prerenderingchange",function(){return R()},!0):R()};var AG5=function(R){var y=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?R():(R=EYw(R),document.addEventListener("visibilitychange",R,{once:!0}),y(function(){R();document.removeEventListener("visibilitychange",R)}))};var fQU=function(){};
fQU.prototype._processEntry=function(R){var y;(y=this._onBeforeProcessingEntry)==null||y.call(this,R)};var GxY=[2500,4E3],FJP=function(R){var y=y===void 0?{}:y;m5c(function(){var u=X2g(),v=U5K(),Q=lQU(y),M=function(x){y.reportAllChanges||(x=x.slice(-1));x=_.V(x);for(var B=x.next();!B.done;B=x.next())B=B.value,Q._processEntry(B),B.startTime<u.firstHiddenTime&&(v.value=Math.max(B.startTime-d5i(),0),v.entries=[B],h())},K=kx5(M);
if(K){var h=rG8(R,v,y.reportAllChanges);for(var b=EYw(function(){M(K.takeRecords());K.disconnect();h(!0)}),N=_.V(["keydown",
"click","visibilitychange"]),T=N.next();!T.done;T=N.next())addEventListener(T.value,function(){return AG5(b)},{capture:!0,
once:!0});nYb(function(x){v=U5K();h=rG8(R,v,y.reportAllChanges);PGT(function(){v.value=performance.now()-x.timeStamp;h(!0)})})}})};var D5g;var p2c;_.t=function(){return p2c!==void 0?p2c:p2c=document.createElement("template")};
document.head.appendChild(_.t().content);var t85;_.qz({_template:function(){if(t85!==void 0)return t85;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);
var y=R.content,u=y.insertBefore;D5g===void 0&&(D5g=document.createElement("template"));var v=D5g;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return t85=R},
is:"tp-yt-app-toolbar"});var cGc;var aT8;_.St=function(){};
_.St=_.qz({_template:function(){if(aT8!==void 0)return aT8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;cGc===void 0&&(cGc=document.createElement("template"));var v=cGc;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return aT8=R},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.St.instance||(_.St.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)}});
_.St.instance=null;_.St.requestAvailability=function(){_.St.instance||(_.St.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.St.instance):document.addEventListener("load",function(){document.body.appendChild(_.St.instance)})};var Szc;var YzG;/*

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
*/
_.qz({_template:function(){if(YzG!==void 0)return YzG;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;Szc===void 0&&(Szc=document.createElement("template"));var v=Szc;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return YzG=R},
is:"tp-yt-iron-autogrow-textarea",behaviors:[_.ED,_.r9],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=_.ED.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 y=this.textarea;y&&(y.value!==R&&(y.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 y=_.GM(R).path;this.value=y?y[0].value:R.target.value},
_constrain:function(R){var y;R=R||[""];for(y=this.maxRows>0&&R.length>this.maxRows?R.slice(0,this.maxRows):R.slice(0);this.rows>0&&y.length<this.rows;)y.push("");return y.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 LhY;var syg;_.qz({_template:function(){if(syg!==void 0)return syg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);
var y=R.content,u=y.insertBefore;LhY===void 0&&(LhY=document.createElement("template"));var v=LhY;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return syg=R},
is:"tp-yt-iron-collapse",behaviors:[_.qv],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,y){R=R==="auto"?"":R;y=y&&!this.noAnimation&&this.isAttached&&this._desiredSize!==R;this._desiredSize=R;this._updateTransition(!1);y&&(y=this._calcSize(),R===""&&(this.style[this._dimensionMax]="",R=this._calcSize()),this.style[this._dimensionMax]=y,this.scrollTop=this.scrollTop,this._updateTransition(!0),y=R!==y);this.style[this._dimensionMax]=R;y||this._transitionEnd()},
enableTransition:function(R){_.Pb._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){_.GM(R).rootTarget===this&&this._transitionEnd()},
_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});var ztT;var gYK;var CG5=void 0,RoV={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,y=_.GM((R=this.hostElement)!=null?R:
this).parentNode;y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(y=y.host);return y},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,y=window.getComputedStyle((R=this.hostElement)!=null?R:this);R=window.getComputedStyle(this.sizingTarget);var u,v,Q;this._fitInfo={inlineStyle:{top:((u=this.hostElement)!=null?u:this).style.top||"",left:((v=this.hostElement)!=null?v:this).style.left||"",position:((Q=this.hostElement)!=null?Q:this).style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||
""},positionedBy:{vertically:y.top!=="auto"?"top":y.bottom!=="auto"?"bottom":null,horizontally:y.left!=="auto"?"left":y.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(y.marginTop,10)||0,right:parseInt(y.marginRight,10)||0,bottom:parseInt(y.marginBottom,10)||0,left:parseInt(y.marginLeft,10)||0}}}},
resetFit:function(){var R=this._fitInfo||{},y;for(y in R.sizerInlineStyle)this.sizingTarget.style[y]=R.sizerInlineStyle[y];for(y in R.inlineStyle){var u=void 0;((u=this.hostElement)!=null?u:this).style[y]=R.inlineStyle[y]}this._fitInfo=null},
refit:function(){var R=this.sizingTarget.scrollLeft,y=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=R;this.sizingTarget.scrollTop=y},
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 y;((y=this.hostElement)!=null?y:this).style.left="0px";var u;((u=this.hostElement)!=null?u:this).style.top="0px";var v,Q=((v=this.hostElement)!=null?v:this).getBoundingClientRect();y=this.__getNormalizedRect(this.positionTarget);v=this.__getNormalizedRect(this.fitInto);this.avoidOuterEdge&&
(v={left:v.left+24,right:v.right-24,top:v.top+24,bottom:v.bottom-24});if(this.expandSizingTargetForScrollbars){var M=this.sizingTarget.offsetWidth;var K=this.sizingTarget.offsetHeight;var h=this.sizingTarget.clientWidth;var b=this.sizingTarget.clientHeight}R=this._fitInfo.margin;y=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,{width:Q.width+R.left+R.right,height:Q.height+R.top+R.bottom},Q,y,v);var N=y.left+R.left,T=y.top+R.top;u=Math.min(v.right-R.right,N+Q.width);var x=Math.min(v.bottom-
R.bottom,T+Q.height);N=Math.max(v.left+R.left,Math.min(N,u-this._fitInfo.sizedBy.minWidth));T=Math.max(v.top+R.top,Math.min(T,x-this._fitInfo.sizedBy.minHeight));u=Math.max(u-N,this._fitInfo.sizedBy.minWidth);x=Math.max(x-T,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=u+"px";this.sizingTarget.style.maxHeight=x+"px";N-=Q.left;Q=T-Q.top;var B;((B=this.hostElement)!=null?B:this).style.left=N+"px";var l;((l=this.hostElement)!=null?l:this).style.top=Q+"px";if(this.expandSizingTargetForScrollbars){B=
this.sizingTarget.offsetHeight;K=B-this.sizingTarget.clientHeight-(K-b);if(K>0){this.sizingTarget.style.maxHeight=Math.min(v.height-R.top-R.bottom,x+K)+"px";K=this.sizingTarget.offsetHeight;b=K-B;var Z;y.verticalAlign==="top"?Z=Q:y.verticalAlign==="middle"?Z=Q-b/2:y.verticalAlign==="bottom"&&(Z=Q-b);Z=Math.max(v.top+R.top,Math.min(Z,v.bottom-R.bottom-K));var P;((P=this.hostElement)!=null?P:this).style.top=Z+"px"}Z=this.sizingTarget.offsetWidth;M=Z-this.sizingTarget.clientWidth-(M-h);if(M>0){CG5!==
void 0?h=CG5:(h=document.createElement("div"),Object.assign(h.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"}),P=document.createElement("div"),P.style.width="200px",P.style.height="200px",h.appendChild(P),document.body.appendChild(h),CG5=Math.abs(h.offsetWidth-100)>1?h.offsetWidth-h.clientWidth:0,document.body.removeChild(h),h=CG5);this.sizingTarget.style.maxWidth=Math.min(v.width-R.left-R.right,u+M-h)+"px";M=this.sizingTarget.offsetWidth+h;h=M-Z;var k;
y.horizontalAlign==="left"?k=N:y.horizontalAlign==="center"?k=N-h/2:y.horizontalAlign==="right"&&(k=N-h);k=Math.max(v.left+R.left,Math.min(k,v.right-R.right-M));var E;((E=this.hostElement)!=null?E:this).style.left=k+"px"}}}},
constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var R=this._fitInfo;if(!R.positionedBy.vertically){var y;((y=this.hostElement)!=null?y:this).style.position="fixed";var u;((u=this.hostElement)!=null?u:this).style.top="0px"}if(!R.positionedBy.horizontally){var v;((v=this.hostElement)!=null?v:this).style.position="fixed";var Q;((Q=this.hostElement)!=null?Q:this).style.left="0px"}this.sizingTarget.style.boxSizing="border-box";var M;y=((M=this.hostElement)!=null?M:this).getBoundingClientRect();
R.sizedBy.height||this.__sizeDimension(y,R.positionedBy.vertically,"top","bottom","Height");R.sizedBy.width||this.__sizeDimension(y,R.positionedBy.horizontally,"left","right","Width")}},
_sizeDimension:function(R,y,u,v,Q){this.__sizeDimension(R,y,u,v,Q)},
__sizeDimension:function(R,y,u,v,Q){var M=this._fitInfo,K=this.__getNormalizedRect(this.fitInto);K=Q==="Width"?K.width:K.height;R=(y=y===v)?K-R[v]:R[u];u=M.margin[y?u:v];v="offset"+Q;var h;M=((h=this.hostElement)!=null?h:this)[v]-this.sizingTarget[v];this.sizingTarget.style["max"+Q]=K-u-R-M+"px"},
center:function(){if(!this.__shouldPosition){this._discoverInfo();var R=this._fitInfo.positionedBy;if(!R.vertically||!R.horizontally){var y;((y=this.hostElement)!=null?y:this).style.position="fixed";if(!R.vertically){var u;((u=this.hostElement)!=null?u:this).style.top="0px"}if(!R.horizontally){var v;((v=this.hostElement)!=null?v:this).style.left="0px"}var Q;y=((Q=this.hostElement)!=null?Q:this).getBoundingClientRect();Q=this.__getNormalizedRect(this.fitInto);if(!R.vertically){u=Q.top-y.top+(Q.height-
y.height)/2;var M;((M=this.hostElement)!=null?M:this).style.top=u+"px"}if(!R.horizontally){R=Q.left-y.left+(Q.width-y.width)/2;var K;((K=this.hostElement)!=null?K: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,y,u){return Math.abs(Math.min(0,R.top)+Math.min(0,u.bottom-(R.top+y.height)))*y.width+Math.abs(Math.min(0,R.left)+Math.min(0,u.right-(R.left+y.width)))*y.height},
__getPosition:function(R,y,u,v,Q,M){var K=[{verticalAlign:"top",horizontalAlign:"left",top:Q.top+this.verticalOffset,left:Q.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:Q.top+this.verticalOffset,left:Q.right-u.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:Q.bottom-u.height-this.verticalOffset,left:Q.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:Q.bottom-u.height-this.verticalOffset,left:Q.right-u.width-
this.horizontalOffset}];if(this.noOverlap){for(var h=0,b=K.length;h<b;h++){var N={},T;for(T in K[h])N[T]=K[h][T];K.push(N)}K[0].top=K[1].top+=Q.height;K[2].top=K[3].top-=Q.height;K[4].left=K[6].left+=Q.width;K[5].left=K[7].left-=Q.width}y=y==="auto"?null:y;R=R==="auto"?null:R;R&&R!=="center"||(K.push({verticalAlign:"top",horizontalAlign:"center",top:Q.top+this.verticalOffset+(this.noOverlap?Q.height:0),left:Q.left-v.width/2+Q.width/2+this.horizontalOffset}),K.push({verticalAlign:"bottom",horizontalAlign:"center",
top:Q.bottom-u.height-this.verticalOffset-(this.noOverlap?Q.height:0),left:Q.left-v.width/2+Q.width/2+this.horizontalOffset}));y&&y!=="middle"||(K.push({verticalAlign:"middle",horizontalAlign:"left",top:Q.top-v.height/2+Q.height/2+this.verticalOffset,left:Q.left+this.horizontalOffset+(this.noOverlap?Q.width:0)}),K.push({verticalAlign:"middle",horizontalAlign:"right",top:Q.top-v.height/2+Q.height/2+this.verticalOffset,left:Q.right-u.width-this.horizontalOffset-(this.noOverlap?Q.width:0)}));y==="middle"&&
R==="center"&&K.push({verticalAlign:"middle",horizontalAlign:"center",top:Q.top-v.height/2+Q.height/2+this.verticalOffset,left:Q.left-v.width/2+Q.width/2+this.horizontalOffset});for(h=0;h<K.length;h++){v=K[h];Q=v.verticalAlign===y;b=v.horizontalAlign===R;if(!this.dynamicAlign&&!this.noOverlap&&Q&&b){var x=v;break}N=(!y||Q)&&(!R||b);if(this.dynamicAlign||N){v.offscreenArea=this.__getOffscreenArea(v,u,M);if(v.offscreenArea===0&&N){x=v;break}v.alignsOk=Q+b;x=x||v;Q=v.offscreenArea-x.offscreenArea;if(Q<
0||Q===0&&v.alignsOk>x.alignsOk)x=v}}return x}};/*

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 YR,yeL,u1g;YR=Element.prototype;yeL=YR.matches||YR.matchesSelector||YR.mozMatchesSelector||YR.msMatchesSelector||YR.oMatchesSelector||YR.webkitMatchesSelector;u1g=function(){};
_.Q2L=function(R){var y=vlg,u=[];return y._collectTabbableNodes(R,u)?y._sortByTabIndex(u):u};
_.J=u1g.prototype;_.J._normalizedTabIndex=function(R){return(yeL.call(R,"input, select, textarea, button, object")?yeL.call(R,":not([disabled])"):yeL.call(R,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(R=R.getAttribute("tabindex")||0,Number(R)):-1};
_.J._collectTabbableNodes=function(R,y){if(R.nodeType!==Node.ELEMENT_NODE||!this._isVisible(R))return!1;var u=this._normalizedTabIndex(R),v=u>0;u>=0&&y.push(R);if(R.localName==="content"||R.localName==="slot")u=_.GM(R).getDistributedNodes();else{var Q;u=((Q=_.GM(R).shadowRoot)!=null?Q:_.GM(R.root||R)).children}for(R=0;R<u.length;R++)v=this._collectTabbableNodes(u[R],y)||v;return v};
_.J._isVisible=function(R){var y=R.style;return y.visibility!=="hidden"&&y.display!=="none"?(y=window.getComputedStyle(R),y.visibility!=="hidden"&&y.display!=="none"):!1};
_.J._sortByTabIndex=function(R){var y=R.length;if(y<2)return R;var u=Math.ceil(y/2);y=this._sortByTabIndex(R.slice(0,u));R=this._sortByTabIndex(R.slice(u));return this._mergeSortByTabIndex(y,R)};
_.J._mergeSortByTabIndex=function(R,y){for(var u=[];R.length>0&&y.length>0;)this._hasLowerTabOrder(R[0],y[0])?u.push(y.shift()):u.push(R.shift());return u.concat(R,y)};
_.J._hasLowerTabOrder=function(R,y){R=Math.max(R.tabIndex,0);y=Math.max(y.tabIndex,0);return R===0||y===0?y>R:R>y};
var vlg=new u1g;var j2K;var MV5;_.qz({_template:function(){if(MV5!==void 0)return MV5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;j2K===void 0&&(j2K=document.createElement("template"));var v=j2K;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return MV5=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&&_.GM(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.GM(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 L2=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;kk(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)};
L2.prototype._bringOverlayAtIndexToFront=function(R){var y=this._overlays[R];if(y){var u=this._overlays.length-1,v=this._overlays[u];v&&this._shouldBeBehindOverlay(y,v)&&u--;if(!(R>=u)){v=Math.max(this._getZ(_.Jew(this)),this._minimumZ);for(this._getZ(y)<=v&&this._applyOverlayZ(y,v);R<u;)this._overlays[R]=this._overlays[R+1],R++;this._overlays[u]=y}}};
L2.prototype.addOverlay=function(R){var y=this._overlays.indexOf(R);if(y>=0)this._bringOverlayAtIndexToFront(y);else{y=this._overlays.length;var u=this._overlays[y-1],v=Math.max(this._getZ(u),this._minimumZ),Q=this._getZ(R);u&&this._shouldBeBehindOverlay(R,u)&&(this._applyOverlayZ(u,v),y--,v=Math.max(this._getZ(this._overlays[y-1]),this._minimumZ));Q<=v&&this._applyOverlayZ(R,v);this._overlays.splice(y,0,R)}this.trackBackdrop()};
L2.prototype.removeOverlay=function(R){R=this._overlays.indexOf(R);R!==-1&&(this._overlays.splice(R,1),this.trackBackdrop())};
_.Jew=function(R){return R._overlays[R._overlays.length-1]};
_.J=L2.prototype;_.J.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()};
_.J._overlayWithBackdrop=function(){for(var R=this._overlays.length-1;R>=0;R--)if(this._overlays[R].withBackdrop)return this._overlays[R]};
_.J._getZ=function(R){var y=this._minimumZ;if(R){var u,v,Q=Number(((u=R.hostElement)!=null?u:R).style.zIndex||window.getComputedStyle((v=R.hostElement)!=null?v:R).zIndex);Q===Q&&(y=Q)}return y};
_.J._setZ=function(R,y){var u;((u=R.hostElement)!=null?u:R).style.zIndex=y};
_.J._applyOverlayZ=function(R,y){this._setZ(R,y+2)};
_.J._overlayInPath=function(R){R=R||[];for(var y=0;y<R.length;y++){var u=void 0;if(((u=R[y].polymerController)!=null?u:R[y])._manager===this)return R[y]}};
_.J._onCaptureClick=function(R){var y=this._overlays.length-1;if(y!==-1)for(var u=_.GM(R).path,v,Q;(v=this._overlays[y])&&this._overlayInPath(u)!==((Q=v.hostElement)!=null?Q:v);)if(v._onCaptureClick(R),v.allowClickThrough)y--;else break};
_.J._onCaptureFocus=function(R){var y=_.Jew(this);y&&y._onCaptureFocus(R)};
_.J._onCaptureKeyDown=function(R){var y=_.Jew(this);y&&(_.Gh.keyboardEventMatchesKeys(R,"esc")?y._onCaptureEsc(R):_.Gh.keyboardEventMatchesKeys(R,"tab")&&y._onCaptureTab(R))};
_.J._shouldBeBehindOverlay=function(R,y){return!R.alwaysOnTop&&y.alwaysOnTop&&!y.contains(R)};
_.RR.Object.defineProperties(L2.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&&_.GM(R.root).activeElement;)R=_.GM(R.root).activeElement;return R}}});
_.sD=new L2;var OIG=0,ZIW=0,HI4=null,nDG=[],rG=["wheel","mousewheel","DOMMouseScroll"],GQT;_.f("web_no_lock_on_touchstart_killswitch")&&(rG.push("touchstart"),rG.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;_.zh={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:_.sD},_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||_.GM((R=this.hostElement)!=null?R:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var R;return _.Q2L((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=_.GM((R=this.hostElement)!=null?R:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var R;_.GM((R=this.hostElement)!=null?R:this).unobserveNodes(this._observer)}this._observer=null;for(var y in this.__rafs)this.__rafs[y]!==null&&cancelAnimationFrame(this.__rafs[y]);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 y;((y=this.hostElement)!=null?y:this).style.display="none"}},
_openedChanged:function(R){if(R){var y;((y=this.hostElement)!=null?y:this).removeAttribute("aria-hidden")}else{var u;((u=this.hostElement)!=null?u:this).setAttribute("aria-hidden","true")}this.isAttached&&(this.__isAnimating=!0,this.__deraf("__openedChanged",this.__openedChanged))},
_canceledChanged:function(){this.closingReason=this.closingReason||{};this.closingReason.canceled=this.canceled},
_withBackdropChanged:function(){var R;if(this.withBackdrop&&!((R=this.hostElement)!=null?R:this).hasAttribute("tabindex")){var y;((y=this.hostElement)!=null?y:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var u;((u=this.hostElement)!=null?u:this).removeAttribute("tabindex");this.__shouldRemoveTabIndex=!1}this.opened&&this.isAttached&&this._manager.trackBackdrop()},
_prepareRenderOpened:function(){this.__restoreFocusNode=this._manager.deepActiveElement;this._preparePositioning();this.refit();this._finishPositioning();this.noAutoFocus&&document.activeElement===this._focusNode&&(this._focusNode.blur(),this.__restoreFocusNode.focus())},
_renderOpened:function(){this._finishRenderOpened()},
_renderClosed:function(){this._finishRenderClosed()},
_finishRenderOpened:function(){this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-opened")},
_finishRenderClosed:function(){var R;((R=this.hostElement)!=null?R:this).style.display="none";var y;((y=this.hostElement)!=null?y:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var R,y;((R=this.hostElement)!=null?R:this).style.transition=((y=this.hostElement)!=null?y:this).style.webkitTransition="none";var u,v;((u=this.hostElement)!=null?u:this).style.transform=((v=this.hostElement)!=null?v:this).style.webkitTransform="none";var Q;((Q=this.hostElement)!=null?Q:this).style.display=""},
_finishPositioning:function(){var R;((R=this.hostElement)!=null?R:this).style.display="none";this.scrollTop=this.scrollTop;var y,u;((y=this.hostElement)!=null?y:this).style.transition=((u=this.hostElement)!=null?u:this).style.webkitTransition="";var v,Q;((v=this.hostElement)!=null?v:this).style.transform=((Q=this.hostElement)!=null?Q:this).style.webkitTransform="";var M;((M=this.hostElement)!=null?M: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,y;if(!(y=R===document.body))a:{for(;R;R=R.assignedSlot||R.parentNode||R.host)if(R===this){y=!0;break a}y=!1}y&&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 y=_.GM(R).path;y.indexOf(this)===-1?(R.stopPropagation(),this._applyFocus()):this._focusedChild=y[0]}},
_onCaptureEsc:function(R){this.noCancelOnEscKey||this.cancel(R)},
_onCaptureTab:function(R){if(this.withBackdrop){this.__ensureFirstLastFocusables();var y=R.shiftKey,u=y?this.__firstFocusableNode:this.__lastFocusableNode;y=y?this.__lastFocusableNode:this.__firstFocusableNode;if(u===y)u=!0;else{var v=this._manager.deepActiveElement;u=v===u||v===this}u&&(R.preventDefault(),this._focusedChild=y,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,y){var u=this.__rafs;u[R]!==null&&cancelAnimationFrame(u[R]);u[R]=requestAnimationFrame(function(){u[R]=null;y.call(this)}.bind(this))},
__updateScrollObservers:function(R,y,u){R&&y&&this.__isValidScrollAction(u)?(u==="lock"&&(this.__saveScrollPosition(),_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this)>=0||(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length===0&&_._lockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(),
_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.push(this),GQT=_._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),GQT=_._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(AW)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(y){y.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||_.GM(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)}};
_.g9=[RoV,_.qv,_.zh];_.qz({_template:function(){if(gYK!==void 0)return gYK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;ztT===void 0&&(ztT=document.createElement("template"));var v=ztT;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return gYK=R},
is:"tp-yt-iron-dropdown",behaviors:[_.r9,_.Gh,_.g9,Dp5],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=_.GM(this.$.content).getDistributedNodes(),y=0,u=R.length;y<u;y++)if(R[y].nodeType===Node.ELEMENT_NODE)return R[y]},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(),_.zh._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.zh._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.zh._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var R=this.containedElement,y=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),u=0;u<y.length;u++)y[u].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():_.zh._applyFocus.apply(this,arguments)}});var VV5;var iRK;/*

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 Kr5=new _.UD({type:"iconset"});
_.qz({_template:function(){if(iRK!==void 0)return iRK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;VV5===void 0&&(VV5=document.createElement("template"));
var v=VV5;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return iRK=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&&_.GM(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=Kr5.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,_.GM(this.root).appendChild(this._img)}});var IA5;var ho5;_.qz({_template:function(){if(ho5!==void 0)return ho5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);
var y=R.content,u=y.insertBefore;IA5===void 0&&(IA5=document.createElement("template"));var v=IA5;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return ho5=R},
is:"tp-yt-iron-input",behaviors:[_.ED],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(){_.St.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.GM(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.GM(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,y){y&&(R===void 0?y.value=null:R!==y.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 y=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&&y)},
_onKeypress:function(R){if(this.allowedPattern||this.inputElement.type==="number"){var y=this._patternRegExp;if(y&&!(R.metaKey||R.ctrlKey||R.altKey)){this._patternAlreadyChecked=!0;var u=String.fromCharCode(R.charCode);this._isPrintable(R)&&!y.test(u)&&(R.preventDefault(),this._announceInvalidCharacter("Invalid character "+u+" not entered."))}}},
_checkPatternValidity:function(){var R=this._patternRegExp;if(!R)return!0;for(var y=0;y<this.inputElement.value.length;y++)if(!R.test(this.inputElement.value[y]))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=_.ED.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 bRi;var Frc;var wZb=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),NX5=wZb&&wZb[1]>=8;
_.qz({_template:function(){if(Frc!==void 0)return Frc;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;bRi===void 0&&(bRi=document.createElement("template"));var v=bRi;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return Frc=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:[spv,_.qv,_.AFK,nv8],_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 _.GM(_.GM(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 y=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
R=this._iterateItems(function(u,v){y+=this._getPhysicalSizeIncrement(u);if(y>this._scrollPosition)return this.grid?v-v%this._itemsPerRow:v;if(this.grid&&this._virtualCount-1===v)return v-v%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 y=this._physicalTop+this._scrollOffset;this._iterateItems(function(u,v){y<this._scrollBottom&&(R=v);y+=this._getPhysicalSizeIncrement(u)})}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,_.$i);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,_.$i)},
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)),y=R-this._scrollPosition,u=y>=0;this._scrollPosition=R;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(y)>this._physicalSize&&this._physicalSize>0?(y-=this._scrollOffset,u=Math.round(y/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=u,this._physicalStart+=u,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(R=this._getReusables(u),u?(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,u?null:R.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),qS))},
_getReusables:function(R){var y=[],u=this._hiddenContentSize*this._ratio,v=this._virtualStart,Q=this._virtualEnd,M=this._physicalCount,K=this._physicalTop+this._scrollOffset;var h=this._physicalBottom+this._scrollOffset;var b=this._scrollPosition,N=this._scrollBottom;if(R){var T=this._physicalStart;h=b-K}else T=this._physicalEnd,h-=N;for(;;){var x=this._getPhysicalSizeIncrement(T);h-=x;if(y.length>=M||h<=u)break;if(R){if(Q+y.length+1>=this._virtualCount)break;if(K+x>=b-this._scrollOffset)break;y.push(T);
K+=x;T=(T+1)%M}else{if(v-y.length<=0)break;if(K+this._physicalSize-x<=N)break;y.push(T);K-=x;T=T===0?M-1:T-1}}return{indexes:y,physicalTop:K-this._scrollOffset}},
_update:function(R,y){if(!(R&&R.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(R);this._updateMetrics(R);if(y)for(;y.length;)R=y.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(R);this._positionItems();this._updateScrollerSize()}},
_createPool:function(R){this._ensureTemplatized();var y,u=Array(R);for(y=0;y<R;y++){var v=this.stamp(null);u[y]=v.root.querySelector("*");this._itemsParent.appendChild(v.root)}return u},
_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 y=R%this._itemsPerRow;y&&R-y<=this._physicalCount&&(R+=this._itemsPerRow);R-=y}R-=this._physicalCount;y=Math.round(this._physicalCount*.5);if(!(R<0)){if(R>0){y=window.performance.now();[].push.apply(this._physicalItems,this._createPool(R));for(var u=0;u<R;u++)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()-y)/R;y=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||y===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,y)),izV):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,y),qS))}},
_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,y){typeof y!=="undefined"&&(this.notifyResize(),_.Bb(),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,
_.$i);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(u){return u.addedCount>0||u.removed.length>0})){var y=this._getActiveElement();
this.contains(y)&&y.blur()}R=R.value.indexSplices.some(function(u){return u.index+u.addedCount>=this._virtualStart&&u.index<=this._virtualEnd},this);
this._isClientFull()&&!R||this._debounce("_render",this._render,_.$i)}else R.path!=="items.length"&&this._forwardItemPath(R.path,R.value)},
_forwardItemPath:function(R,y){R=R.slice(6);var u=R.indexOf(".");u===-1&&(u=R.length);var v,Q=this.modelForElement(this._offscreenFocusedItem),M=parseInt(R.substring(0,u),10);if(v=this._isIndexRendered(M)){var K=this._getPhysicalIndex(M);var h=this.modelForElement(this._physicalItems[K])}else Q&&(h=Q);h&&h[this.indexAs]===M&&(R=R.substring(u+1),R=this.as+(R?"."+R:""),h._setPendingPropertyOrPath(R,y,!1,!0),h._flushProperties&&h._flushProperties(),v&&(this._updateMetrics([K]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(R){R.forEach(function(y){y.removed.forEach(this._removeItem,this);y.index<this._virtualStart&&(y=Math.max(y.addedCount-y.removed.length,y.index-this._virtualStart),this._virtualStart+=y,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=y))},this)},
_removeItem:function(R){this.$.selector.deselect(R);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===R&&this._removeFocusedItem()},
_iterateItems:function(R,y){var u,v;if(arguments.length===2&&y)for(v=0;v<y.length;v++){var Q=y[v];var M=this._computeVidx(Q);if((u=R.call(this,Q,M))!=null)return u}else{Q=this._physicalStart;for(M=this._virtualStart;Q<this._physicalCount;Q++,M++)if((u=R.call(this,Q,M))!=null)return u;for(Q=0;Q<this._physicalStart;Q++,M++)if((u=R.call(this,Q,M))!=null)return u}},
_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(y,u){var v=this._physicalItems[y],Q=this.items&&this.items[u];if(Q!=null){var M=this.modelForElement(v);M.__key__=null;this._forwardProperty(M,this.as,Q);this._forwardProperty(M,this.selectedAs,this.$.selector.isSelected(Q));this._forwardProperty(M,this.indexAs,u);this._forwardProperty(M,"tabIndex",this._focusedVirtualIndex===u?0:-1);this._physicalIndexForKey[M.__key__]=y;M._flushProperties&&M._flushProperties(!0);v.removeAttribute("hidden")}else v.setAttribute("hidden",
"")},R)},
_updateMetrics:function(R){_.Bb();var y=0,u=0,v=this._physicalAverageCount,Q=this._physicalAverage;this._iterateItems(function(M){u+=this._physicalSizes[M];this._physicalSizes[M]=this._physicalItems[M].offsetHeight;y+=this._physicalSizes[M];this._physicalAverageCount+=this._physicalSizes[M]?1:0},R);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(u=this._itemsPerRow===1?u:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+y-u,this._itemsPerRow=1);this._physicalAverageCount!==v&&(this._physicalAverage=Math.round((Q*v+y)/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 y=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(u,v){var Q=Math.floor(v%this._itemsPerRow*this._itemWidth+y);this._isRTL&&(Q*=-1);this.translate3d(Q+"px",R+"px",0,this._physicalItems[u]);this._shouldRenderNextRow(v)&&(R+=this._rowHeight)})}else this._iterateItems(function(u){this.translate3d(0,R+"px",0,this._physicalItems[u]);
R+=this._physicalSizes[u]})},
_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 y=this._scrollPosition;!NX5&&y>0&&this._resetScrollPosition(y-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)&&(_.Bb(),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 y=this._physicalStart,u=this._virtualStart,v=0,Q=this._hiddenContentSize;u<R&&
v<=Q;)v+=this._getPhysicalSizeIncrement(y),y=(y+1)%this._physicalCount,u++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+v);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)},_.$i)},
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 y=this.modelForElement(this._physicalItems[this._getPhysicalIndex(R)]);y&&(y[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 y=this.modelForElement(R.target);if(y){var u=_.GM(R).path[0];R=this._getActiveElement();var v=this._physicalItems[this._getPhysicalIndex(y[this.indexAs])];if(u.localName!=="input"&&u.localName!=="button"&&u.localName!=="select"){u=y.tabIndex;y.tabIndex=-100;var Q=R?R.tabIndex:-1;y.tabIndex=u;R&&v!==R&&v.contains(R)&&Q!==-100||this.toggleSelectionForItem(y[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 y=this._physicalItems[this._getPhysicalIndex(R)],u=this.modelForElement(y),v;u.tabIndex=-100;y.tabIndex===-100&&(v=y);v||(v=_.GM(y).querySelector('[tabindex="-100"]'));u.tabIndex=0;this._focusedVirtualIndex=R;v&&v.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 y=this.stamp(null);this._focusBackfillItem=y.root.querySelector("*");this._itemsParent.appendChild(y.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),y=this._physicalItems[R];if(y){var u=this.modelForElement(y),v=this.modelForElement(this._offscreenFocusedItem);u[this.as]===v[this.as]?(this._focusBackfillItem=y,u.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 y=this.modelForElement(this._focusedItem),u=this._offscreenFocusedItem!==null,v=this._focusedVirtualIndex;R&&(y===R?this._isIndexVisible(v)||this.scrollToIndex(v):(this._restoreFocusedItem(),y&&(y.tabIndex=-1),R.tabIndex=0,this._focusedVirtualIndex=v=R[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(v),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],u&&!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,y,u){return Math.min(u,Math.max(y,R))},
_debounce:function(R,y,u){this._debouncers=this._debouncers||{};this._debouncers[R]=_.w5(this._debouncers[R],u,y.bind(this));_.Nd(this._debouncers[R])},
_forwardProperty:function(R,y,u){R._setPendingProperty(y,u)},
_forwardHostPropV2:function(R,y){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(u){u&&this.modelForElement(u).forwardHostProp(R,y)},this)},
_notifyInstancePropV2:function(R,y,u){EYc(this.as,y)&&(R=R[this.indexAs],y==this.as&&(this.items[R]=u),this.notifyPath(Fm(this.as,"items."+R,y),u))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(R,y,u){y.indexOf(this.as+".")===0&&this.notifyPath("items."+R.__key__+"."+y.slice(this.as.length+1),u)},
_forwardParentPath:function(R,y){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(u){u&&this.modelForElement(u).notifyPath(R,y)},this)},
_forwardParentProp:function(R,y){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(u){u&&(this.modelForElement(u)[R]=y)},this)},
_getActiveElement:function(){var R=this._itemsParent.node.domHost;return _.GM(R?R.root:document).activeElement},
_scrollTargetChanged:function(R,y){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(y)if(R==="document")this.scrollTarget=this._doc;else if(typeof R==="string"){var u,v;this.scrollTarget=(y=(v=(u=this.domHost)==null?void 0:u.polymerController)!=null?v:this.domHost)&&y.$?y.$[R]:_.GM(this.ownerDocument).querySelector("#"+R)}else this._isValidScrollTarget()&&(this._oldScrollTarget=R,this._toggleScrollListener(this._shouldHaveListener,R))}});var TXc;var oli;var xrY=function(R,y,u,v){R-=u;y-=v;return Math.sqrt(R*R+y*y)},BXY=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
rtv.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var PAT=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 rtv(R.element)};
WRO.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var R=BXY()-this.mouseDownStart;this.mouseUpStart&&(R-=this.mouseUpElapsed);return R},get mouseUpElapsed(){return this.mouseUpStart?BXY()-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 y=this.xNow-this.containerMetrics.width/2;var u=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+y+"px, "+u+"px)";this.waveContainer.style.transform="translate3d("+y+"px, "+u+"px, 0)";this.wave.style.webkitTransform="scale("+R+","+R+")";this.wave.style.transform="scale3d("+R+","+R+",1)"},
downAction:function(R){var y=this.containerMetrics.width/2,u=this.containerMetrics.height/2;PAT(this);this.mouseDownStart=BXY();this.center?(this.xStart=y,this.yStart=u):(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=y,this.yEnd=u);R=this.containerMetrics;y=this.xStart;u=this.yStart;this.maxRadius=Math.max(xrY(y,u,0,0),xrY(y,u,
R.width,0),xrY(y,u,0,R.height),xrY(y,u,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=BXY())},
remove:function(){_.GM(_.GM(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.qz({_template:function(){if(oli!==void 0)return oli;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;TXc===void 0&&(TXc=document.createElement("template"));var v=TXc;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return oli=R},
is:"tp-yt-paper-ripple",behaviors:[_.Gh],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(){_.GM(this).parentNode.nodeType==11?this.keyEventTarget=_.GM(this).getOwnerRoot().host:this.keyEventTarget=_.GM(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(y){y.upAction(R)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var R=0;R<this.ripples.length;++R){var y=this.ripples[R];y.isOpacityFullyDecayed&&!y.isRestingAtMaxRadius&&this.removeRipple(y)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var R=new WRO(this);_.GM(this.$.waves).appendChild(R.waveContainer);this.$.background.style.backgroundColor=R.color;this.ripples.push(R);this._setAnimating(!0);return R},
removeRipple:function(R){var y=this.ripples.indexOf(R);y<0||(this.ripples.splice(y,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 y=this.ripples[R];y.draw();this.$.background.style.opacity=y.outerOpacity;y.isOpacityFullyDecayed&&!y.isRestingAtMaxRadius&&this.removeRipple(y)}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,y){y!==void 0&&(R?this.downAction():this.upAction())}});var C2={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(R){PO._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 y=this._rippleContainer||this.root;y&&_.GM(y).appendChild(this._ripple);if(R){y=_.GM(this._rippleContainer||this);var u=_.GM(R).rootTarget;y.deepContains(u)&&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 fAY={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){PO._spaceKeyDownHandler.call(this,R);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(R){PO._spaceKeyUpHandler.call(this,R);this.hasRipple()&&this._ripple.uiUpAction()}},eow=[rFY,
_.r9,C2,fAY];_.lAY={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(R){R&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=R)},
_createRipple:function(){var R=C2._createRipple();R.id="ink";R.setAttribute("center","");R.classList.add("circle");return R}};
_.ORg=[rFY,_.r9,C2,_.lAY];_.ZRT=[_.ORg,dpc,{_checkedChanged:function(){WkY._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){C2._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var HRg;var nlw;var GKY=function(){};
_.J=GKY.prototype;_.J.registered=function(){};
_.J.addOwnKeyBinding=function(){};
_.J.removeOwnKeyBindings=function(){};
_.J.keyboardEventMatchesKeys=function(){};
_.J._collectKeyBindings=function(){};
_.J._prepKeyBindings=function(){};
_.J._addKeyBinding=function(){};
_.J._resetKeyEventListeners=function(){};
_.J._listenKeyEventListeners=function(){};
_.J._unlistenKeyEventListeners=function(){};
_.J._onKeyBindingEvent=function(){};
_.J._triggerKeyHandler=function(){};
_.J._tapHandler=function(){};
_.J._focusChanged=function(){};
_.J._detectKeyboardFocus=function(){};
_.J._userActivate=function(){};
_.J._upHandler=function(){};
_.J._asyncClick=function(){};
_.J._pressedChanged=function(){};
_.J._ariaActiveAttributeChanged=function(){};
_.J._activeChanged=function(){};
_.J._controlStateChanged=function(){};
_.J._changedButtonState=function(){};
_.J._focusBlurHandler=function(){};
_.J._disabledChanged=function(){};
_.J._changedControlState=function(){};
_.J._buttonStateChanged=function(){};
_.J._downHandler=function(){};
_.J.ensureRipple=function(){};
_.J.getRipple=function(){};
_.J.hasRipple=function(){};
_.J._createRipple=function(){};
_.J._noinkChanged=function(){};
_.J._computeKeyboardClass=function(){};
_.J._spaceKeyDownHandler=function(){};
_.J._spaceKeyUpHandler=function(){};
_.J._setPressed=function(){};
_.J._setPointerDown=function(){};
_.J._setReceivedFocusFromKeyboard=function(){};
_.J._setFocused=function(){};
_.J._setElevation=function(){};
GKY=_.qz({_template:function(){if(nlw!==void 0)return nlw;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);
var y=R.content,u=y.insertBefore;HRg===void 0&&(HRg=document.createElement("template"));var v=HRg;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return nlw=R},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[eow],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?fAY._calculateElevation.apply(this):this._setElevation(0)}});var reV;var P1T;var Wr5={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},isAriaModal:{type:Boolean,value:!1},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)","isAriaModalChanged(isAriaModal)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(R){_.f("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(R)},
_onDialogClickWrapped:function(R){_.f("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,y){y&&(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))},
isAriaModalChanged:function(R){R?this.setAttribute("aria-modal","true"):this.removeAttribute("aria-modal")},
_updateClosingReasonConfirmed:function(R){this.closingReason=this.closingReason||{};this.closingReason.confirmed=R},
_onDialogClick:function(R){for(var y=_.GM(R).path,u=0,v,Q=y.indexOf((v=this.hostElement)!=null?v:this);u<Q;u++)if(v=y[u],v.hasAttribute&&(v.hasAttribute("dialog-dismiss")||v.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(v.hasAttribute("dialog-confirm"));this.close();R.stopPropagation();break}}},drc=[_.g9,
Wr5];var Uri=document.createElement("template");_.H(Uri,'<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(Uri.content);var kKT=document.createElement("template");_.H(kKT,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(kKT.content);_.qz({_template:function(){if(P1T!==void 0)return P1T;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);
var y=R.content,u=y.insertBefore;reV===void 0&&(reV=document.createElement("template"));var v=reV;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return P1T=R},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[drc,Dp5],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 ElL;var $rc;_.qz({_template:function(){if($rc!==void 0)return $rc;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;ElL===void 0&&(ElL=document.createElement("template"));var v=ElL;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return $rc=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,y,u;if(((R=window.ShadyDOM)==null?void 0:R.noPatch)!==!0&&((y=window.ShadyDOM)==null?void 0:y.noPatch)!=="on-demand"||((u=this.__shady_parentNode)==null?void 0:u.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(Wr5)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var qJ8=_.RE(['<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>']),XZT=_.dqY(qJ8);XZT.setAttribute("style","display: none;");document.head.appendChild(XZT.content);var mrc;var AeY;var DrK;var pZi;_.qz({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[X8],configure:function(R){var y=R.node,u=y.getBoundingClientRect().height;return this._effect=new KeyframeEffect(y,[{height:u/2+"px"},{height:u+"px"}],this.timingFromConfig(R))}});
_.qz({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[X8],configure:function(R){var y=R.node,u=y.getBoundingClientRect().width;return this._effect=new KeyframeEffect(y,[{width:u/2+"px"},{width:u+"px"}],this.timingFromConfig(R))}});
_.qz({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[X8],configure:function(R){var y=R.node,u=y.getBoundingClientRect().width;return this._effect=new KeyframeEffect(y,[{width:u+"px"},{width:u-u/20+"px"}],this.timingFromConfig(R))}});
_.qz({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[X8],configure:function(R){var y=R.node,u=y.getBoundingClientRect().height;this.setPrefixedProperty(y,"transformOrigin","0 0");return this._effect=new KeyframeEffect(y,[{height:u+"px",transform:"translateY(0)"},{height:u/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(R))}});var RG={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},tVc=function(){};
_.J=tVc.prototype;_.J.registered=function(){};
_.J.addOwnKeyBinding=function(){};
_.J.removeOwnKeyBindings=function(){};
_.J.keyboardEventMatchesKeys=function(){};
_.J._collectKeyBindings=function(){};
_.J._prepKeyBindings=function(){};
_.J._addKeyBinding=function(){};
_.J._resetKeyEventListeners=function(){};
_.J._listenKeyEventListeners=function(){};
_.J._unlistenKeyEventListeners=function(){};
_.J._onKeyBindingEvent=function(){};
_.J._triggerKeyHandler=function(){};
_.J._focusBlurHandler=function(){};
_.J._changedControlState=function(){};
_.J._setFocused=function(){};
tVc=_.qz({_template:function(){if(pZi!==void 0)return pZi;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;DrK===void 0&&(DrK=document.createElement("template"));var v=DrK;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return pZi=R},
is:"tp-yt-paper-menu-button",behaviors:[_.Gh,_.r9],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:RG.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:RG.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:RG.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=_.GM(this.$.content).getDistributedNodes(),y=0,u=R.length;y<u;y++)if(R[y].nodeType===Node.ELEMENT_NODE)return R[y]},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,y){R?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):y!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(R){_.r9._disabledChanged.apply(this,arguments);R&&this.opened&&this.close()},
__onIronOverlayCanceled:function(R){var y=this.$.trigger;_.GM(R.detail).path.indexOf(y)>-1&&R.preventDefault()}});
Object.keys(RG).forEach(function(R){tVc[R]=RG[R]});var ce5=_.WO.IronButtonState,aAi=(0,_.r5)(HTMLElement);
_.qz({_template:function(){if(AeY!==void 0)return AeY;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;mrc===void 0&&(mrc=document.createElement("template"));var v=mrc;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return AeY=R},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[ce5,_.r9,C2,_.d9,_.ED],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 y=(0,_.BA)(this);y.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:R});y.shadowRoot.appendChild(R);return aAi.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=_.GM(this.$.content).getDistributedNodes(),y=0,u=R.length;y<u;y++)if(R[y].nodeType===Node.ELEMENT_NODE)return R[y]},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 y="";R?y=R.label||R.getAttribute("label")||R.textContent.trim():y="";this.value=y;this._setSelectedItemLabel(y)},
_computeMenuVerticalOffset:function(R,y){return y?y:R?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var R=this.opened?"true":"false",y=this.contentElement;y&&y.setAttribute("aria-expanded",R)},
_computeLabelClass:function(R,y,u){var v="label";if(R)u&&(v+=" label-is-hidden");else if(u||y)v+=" label-is-floating";return v},
_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 SJK;var YJ5;_.qz({is:"tp-yt-paper-icon-button",_template:function(){if(YJ5!==void 0)return YJ5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;SJK===void 0&&(SJK=document.createElement("template"));var v=SJK;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return YJ5=R},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.ORg],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(R,y){var u=this.getAttribute("aria-label");u&&y!=u||this.setAttribute("aria-label",R)}});var Lrw;var s2i;_.uu=[rFY,_.r9,{hostAttributes:{role:"option",tabindex:"0"}}];_.qz({_template:function(){if(s2i!==void 0)return s2i;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;Lrw===void 0&&(Lrw=document.createElement("template"));var v=Lrw;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return s2i=R},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.uu]});var zog;var gl5;var C1K={attached:function(){this.fire("addon-attached")},
update:function(){}};var RDc=1,yRw=1,uDT=1,vUw=[_.r9,_.Gh,{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();!Vl&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(R,y){R?R=R+" "+y:R=y;return R},
_onAddonAttached:function(R){R=_.GM(R).rootTarget;if(R.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,R.id);else{var y="paper-input-add-on-"+yRw++;R.id=y;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,y)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(R){_.r9._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 y=this.inputElement.selectionStart;this.value=R;this.inputElement.selectionStart=y;this.inputElement.selectionEnd=y}catch(u){this.value=R}},
_computeAlwaysFloatLabel:function(R,y){return y||R},
_updateAriaLabelledBy:function(){var R=_.GM(this.root).querySelector("label");if(R){if(R.id)var y=R.id;else y="paper-input-label-"+RDc++,R.id=y;this._ariaLabelledBy=y}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+uDT++)},
_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 QEi;var jEY;_.qz({_template:function(){if(jEY!==void 0)return jEY;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;QEi===void 0&&(QEi=document.createElement("template"));var v=QEi;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return jEY=R},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[C1K],properties:{_charCounterStr:{type:String,value:"0"}},update:function(R){if(R.inputElement){R.value=R.value||"";var y=R.value.toString().length.toString();R.inputElement.hasAttribute("maxlength")&&(y+="/"+R.inputElement.getAttribute("maxlength"));this._charCounterStr=y}}});var Mdc;var JRw;_.qz({_template:function(){if(JRw!==void 0)return JRw;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;Mdc===void 0&&(Mdc=document.createElement("template"));var v=Mdc;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return JRw=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 iN(this.attrForValue)},get _inputElement(){return _.GM(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 y=R.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,y.value===void 0||y.value===""))return;this._handleValueAndAutoValidate(R.target)},
_handleValue:function(R){var y=this._inputElementValue;y||y===0||R.type==="number"&&!R.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:R,value:y,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 y,u=0;y=this._addons[u];u++)y.update(R)},
_computeInputContentClass:function(R,y,u,v,Q){var M="input-content";R?(Q&&(M+=" label-is-hidden"),v&&!this.noUnfloatedLabelError&&(M+=" is-invalid")):(R=this.querySelector("label"),y||Q?(M+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",v?M+=" is-invalid":u&&(M+=" label-is-highlighted")):(R&&(this.$.labelAndInputContainer.style.position="relative"),v&&!this.noUnfloatedLabelError&&(M+=" is-invalid")));u&&(M+=" focused");return M},
_computeUnderlineClass:function(R,y){var u="underline";y?u+=" is-invalid":R&&(u+=" is-highlighted");return u},
_computeAddOnContentClass:function(R,y){var u="add-on-content";y?u+=" is-invalid":R&&(u+=" is-highlighted");return u}});var VdY;var iUY;_.qz({_template:function(){if(iUY!==void 0)return iUY;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;VdY===void 0&&(VdY=document.createElement("template"));var v=VdY;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return iUY=R},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[C1K],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(R){this._setInvalid(R.invalid)}});_.qz({is:"tp-yt-paper-input",_template:function(){if(gl5!==void 0)return gl5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;zog===void 0&&(zog=document.createElement("template"));var v=zog;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return gl5=R},
behaviors:[vUw,_.d9],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 K9g;var IFi;_.qz({_template:function(){if(IFi!==void 0)return IFi;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=
R.content,u=y.insertBefore;K9g===void 0&&(K9g=document.createElement("template"));var v=K9g;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return IFi=R},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.uu]});var hDw;var bUg;_.qz({_template:function(){if(bUg!==void 0)return bUg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);
var y=R.content,u=y.insertBefore;hDw===void 0&&(hDw=document.createElement("template"));var v=hDw;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return bUg=R},
is:"tp-yt-paper-item-body"});var F9g;var wQg;var NVw=function(){};
_.J=NVw.prototype;_.J.indexOf=function(){};
_.J.selectPrevious=function(){};
_.J.selectNext=function(){};
_.J.selectIndex=function(){};
_.J.forceSynchronousItemUpdate=function(){};
_.J._checkFallback=function(){};
_.J._addListener=function(){};
_.J._removeListener=function(){};
_.J._activateEventChanged=function(){};
_.J._updateItems=function(){};
_.J._selectSelected=function(){};
_.J._filterItem=function(){};
_.J._valueToItem=function(){};
_.J._valueToIndex=function(){};
_.J._indexToValue=function(){};
_.J._valueForItem=function(){};
_.J._observeItems=function(){};
_.J._itemActivate=function(){};
_.J.multiChanged=function(){};
_.J._updateAttrForSelected=function(){};
_.J._updateSelected=function(){};
_.J._selectMulti=function(){};
_.J._selectionChange=function(){};
_.J._toggleSelected=function(){};
_.J._valuesToItems=function(){};
_.J.registered=function(){};
_.J.addOwnKeyBinding=function(){};
_.J.removeOwnKeyBindings=function(){};
_.J.keyboardEventMatchesKeys=function(){};
_.J._collectKeyBindings=function(){};
_.J._prepKeyBindings=function(){};
_.J._addKeyBinding=function(){};
_.J._resetKeyEventListeners=function(){};
_.J._listenKeyEventListeners=function(){};
_.J._unlistenKeyEventListeners=function(){};
_.J._onKeyBindingEvent=function(){};
_.J._triggerKeyHandler=function(){};
_.J.select=function(){};
_.J._resetTabindices=function(){};
_.J._updateMultiselectable=function(){};
_.J._focusWithKeyboardEvent=function(){};
_.J._clearSearchText=function(){};
_.J._focusPrevious=function(){};
_.J._focusNext=function(){};
_.J._applySelection=function(){};
_.J._focusedItemChanged=function(){};
_.J._onIronItemsChanged=function(){};
_.J._onShiftTabDown=function(){};
_.J._onFocus=function(){};
_.J._onUpKey=function(){};
_.J._onDownKey=function(){};
_.J._onEscKey=function(){};
_.J._onKeydown=function(){};
_.J._activateHandler=function(){};
_.J._disabledChanged=function(){};
_.J._setSelectedItem=function(){};
_.J._setItems=function(){};
_.J._setSelectedItems=function(){};
_.J._setFocusedItem=function(){};
NVw=_.qz({_template:function(){if(wQg!==void 0)return wQg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);
var y=R.content,u=y.insertBefore;F9g===void 0&&(F9g=document.createElement("template"));var v=F9g;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return wQg=R},
is:"tp-yt-paper-listbox",behaviors:[$pT],hostAttributes:{role:"listbox"}});var TV5;var oUc;var xOL={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,y){return[R||y?"active":"",y?"cooldown":""].join(" ")},
__activeChanged:function(R,y){this.__setAriaHidden(!R);this.__coolingDown=!R&&y},
__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}};_.qz({_template:function(){if(oUc!==void 0)return oUc;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;TV5===void 0&&(TV5=document.createElement("template"));var v=TV5;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return oUc=R},
is:"tp-yt-paper-spinner",behaviors:[xOL]});var BVg;var fFG;_.qz({_template:function(){if(fFG!==void 0)return fFG;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;BVg===void 0&&(BVg=document.createElement("template"));var v=BVg;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return fFG=R},
is:"tp-yt-paper-spinner-lite",behaviors:[xOL]});var eD5;var lFc;_.qz({_template:function(){if(lFc!==void 0)return lFc;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;eD5===void 0&&(eD5=document.createElement("template"));var v=eD5;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return lFc=R},
is:"tp-yt-paper-tab",behaviors:[_.r9,_.WO.IronButtonState,C2],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=_.GM(this).parentNode;return!!R&&!!R.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(R){if(this.link){var y=this.queryEffectiveChildren("a");y&&R.target!==y&&y.click()}}});var OU5;var ZUg;var HUL=_.RE(['<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>']),nUi=_.dqY(HUL);document.head.appendChild(nUi.content);_.qz({_template:function(){if(ZUg!==void 0)return ZUg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;OU5===void 0&&(OU5=document.createElement("template"));var v=OU5;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return ZUg=R},
is:"tp-yt-paper-tabs",behaviors:[_.qv,_.XmY],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){_.GM(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,y,u,v){return!y||u?"hidden":R?v?"hidden":"not-visible":""},
_computeTabsContentClass:function(R,y){var u="tabs-content";R&&(u+=" scrollable");if(!R||y)u+=" fit-container";return u},
_computeSelectionBarClass:function(R,y){var u="selection-bar";R?u+=" hidden":y&&(u+=" align-bottom");return u},
_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();_.$R._activateHandler.apply(this,arguments)},
_scheduleActivation:function(R,y){this._pendingActivationItem=R;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,y)},
_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,y){this.scrollable&&this._affectScroll(y&&-y.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,y){if(R){var u=this.$.tabsContent.getBoundingClientRect(),v=u.width,Q=R.getBoundingClientRect();u=Q.left-u.left;this._pos={width:this._calcPercent(Q.width,v),left:this._calcPercent(u,v)};if(this.noSlide||y==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var M=y.getBoundingClientRect();y=this.items.indexOf(y);R=this.items.indexOf(R);this.$.selectionBar.classList.add("expand");
R=y<R;this._isRTL&&(R=!R);R?this._positionBar(this._calcPercent(Q.left+Q.width-M.left,v)-5,this._left):this._positionBar(this._calcPercent(M.left+M.width-Q.left,v)-5,this._calcPercent(u,v)+5);this.scrollable&&this._scrollToSelectedIfNeeded(Q.width,u)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(R,y){y-=this.$.tabsContainer.scrollLeft;y<0?this.$.tabsContainer.scrollLeft+=y:(y+=R-this.$.tabsContainer.offsetWidth,y>0&&(this.$.tabsContainer.scrollLeft+=y))},
_calcPercent:function(R,y){return 100*R/y},
_positionBar:function(R,y){R=R||0;y=y||0;this._width=R;this._left=y;this.transform("translateX("+y+"%) 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 G$c;var rRL;_.qz({_template:function(){if(rRL!==void 0)return rRL;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;G$c===void 0&&(G$c=document.createElement("template"));var v=G$c;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return rRL=R},
is:"tp-yt-paper-textarea",behaviors:[vUw,_.d9],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 Po5;var W9K;/*

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 dOc=function(){};
_.J=dOc.prototype;_.J.addOwnKeyBinding=function(){};
_.J.removeOwnKeyBindings=function(){};
_.J.keyboardEventMatchesKeys=function(){};
_.J._collectKeyBindings=function(){};
_.J._prepKeyBindings=function(){};
_.J._addKeyBinding=function(){};
_.J._resetKeyEventListeners=function(){};
_.J._listenKeyEventListeners=function(){};
_.J._unlistenKeyEventListeners=function(){};
_.J._onKeyBindingEvent=function(){};
_.J._triggerKeyHandler=function(){};
_.J._tapHandler=function(){};
_.J._focusChanged=function(){};
_.J._detectKeyboardFocus=function(){};
_.J._userActivate=function(){};
_.J._upHandler=function(){};
_.J._spaceKeyDownHandler=function(){};
_.J._spaceKeyUpHandler=function(){};
_.J._asyncClick=function(){};
_.J._pressedChanged=function(){};
_.J._ariaActiveAttributeChanged=function(){};
_.J._activeChanged=function(){};
_.J._controlStateChanged=function(){};
_.J._changedButtonState=function(){};
_.J._focusBlurHandler=function(){};
_.J._disabledChanged=function(){};
_.J._changedControlState=function(){};
_.J._downHandler=function(){};
_.J.ensureRipple=function(){};
_.J.getRipple=function(){};
_.J.hasRipple=function(){};
_.J._noinkChanged=function(){};
_.J._focusedChanged=function(){};
_.J.registered=function(){};
_.J._invalidChanged=function(){};
_.J.hasValidator=function(){};
_.J.validate=function(){};
_.J._getValidity=function(){};
_.J._requiredChanged=function(){};
_.J._valueChanged=function(){};
_.J._checkedChanged=function(){};
_.J._buttonStateChanged=function(){};
_.J._setPressed=function(){};
_.J._setPointerDown=function(){};
_.J._setReceivedFocusFromKeyboard=function(){};
_.J._setFocused=function(){};
dOc=_.qz({is:"tp-yt-paper-toggle-button",_template:function(){if(W9K!==void 0)return W9K;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;Po5===void 0&&(Po5=document.createElement("template"));var v=Po5;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return W9K=R},
behaviors:[_.ZRT],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");_.gn(this,function(){_.$k(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=C2._createRipple();R.id="ink";R.setAttribute("recenters","");R.classList.add("circle","toggle-ink");return R}});var UOL;var k$5;_.qz({_template:function(){if(k$5!==void 0)return k$5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;UOL===void 0&&(UOL=document.createElement("template"));var v=UOL;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return k$5=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=_.GM(this).parentNode,y=_.GM(this).getOwnerRoot(),u;this.for?u=_.GM(y).querySelector("#"+this.for):u=R.nodeType==Node.DOCUMENT_FRAGMENT_NODE?y.host:R;return u},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&&_.GM(this).textContent.trim()===""){for(var R=!0,y=_.GM(this).getEffectiveChildNodes(),u=0;u<y.length;u++)if(y[u].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 y=this.offsetParent.getBoundingClientRect(),u=this._target.getBoundingClientRect(),v=this.getBoundingClientRect(),Q=(u.width-v.width)/2,M=(u.height-v.height)/2,K=u.left-y.left,h=u.top-y.top;switch(this.position){case "top":var b=K+Q;var N=h-v.height-R;break;case "bottom":b=K+Q;N=h+u.height+R;break;case "left":b=K-v.width-R;N=h+M;break;case "right":b=K+u.width+
R,N=h+M}this.fitToVisibleBounds?(y.left+b+v.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,b)+"px",this.style.right="auto"),y.top+N+v.height>window.innerHeight?(this.style.bottom=y.height+"px",this.style.top="auto"):(this.style.top=Math.max(-y.top,N)+"px",this.style.bottom="auto")):(this.style.left=b+"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 y=this.animationConfig[R][0].timing.delay;R==="entry"?this.updateStyles({"--paper-tooltip-delay-in":y+"ms"}):R==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":y+
"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 EUV=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(EUV,_.y4);var $OK=_.KK(EUV,[0,_.v7]);var ve=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(ve,_.y4);var qkg=[3,4],XQT=[5,6];var mOY=[0,qkg,XQT,_.HKL,-1,_.uj,_.nEi,-1,x_L,BtU];var ARc=_.KK(ve,mOY),DOG=_.IK(mOY);var pQc=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(pQc,_.y4);var tdc=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(tdc,_.y4);var cR5=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(cR5,_.y4);var aF5=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(aF5,_.y4);var SkY=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(SkY,_.y4);var Qr=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(Qr,_.y4);Qr.prototype.getSource=function(){return _.qO(this,1)};
Qr.prototype.getMessage=function(){return _.$U(this,4)};
Qr.prototype.getData=function(){return _.Ne(this,SkY,8)};var YkV=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(YkV,_.y4);var jE=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(jE,_.y4);var Mw=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(Mw,_.y4);var J4=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(J4,_.y4);J4.prototype.getUrl=function(){return _.$U(this,1)};
J4.prototype.setUrl=function(R){return _.eQ(this,1,R)};
J4.prototype.hasUrl=function(){return _.wa(_.Ok(this,1))!=null};var L9T=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(L9T,_.y4);var sEK=[3];var zDK=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(zDK,_.y4);var Vr=function(R){var y=new zDK;return _.j_(y,2,R)};
zDK.prototype.getLanguage=function(){return m9(this,4,iu)};
var gUg=function(R){var y=Vr(1);return _.Ny(y,6,iu,R)},iu=[3,
4,5,6];var CoL=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(CoL,_.y4);var Kt=function(R){var y=new CoL;return _.j_(y,1,R)},IG=function(R,y){return _.Ny(R,2,Rhc,y)},Rhc=[2,
3,4,5];var ykg=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(ykg,_.y4);var h4=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(h4,_.y4);var uic=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(uic,_.y4);var v$5=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(v$5,_.y4);var Qfw=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(Qfw,_.y4);var jfi=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(jfi,_.y4);var MzL=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(MzL,_.y4);var bu=function(R){return _.Ne(R,Mw,5)};var Jkb=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(Jkb,_.y4);Jkb.prototype.getValue=function(){return kU(this,1)};var VzV=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(VzV,_.y4);var Fa=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(Fa,_.y4);Fa.prototype.getMetadata=function(){return _.AR(this,Qfw,7,wu)};
Fa.prototype.hasMetadata=function(){return _.HQ(this,Qfw,7,wu)};
var ipg=_.$y4(Fa),wu=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Nw=function(R){this.JSC$11939_name_=R;this.files_=[];this.directories_=[];this.directoryMap_={}};
Nw.prototype.getName=function(){return this.JSC$11939_name_};var oG=function(R,y){this.callback_=y;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new Nw("");KnY(this,R,this.rootDirectory_);TC(this)},KnY=function(R,y,u){for(var v=0;v<y.length;v++){var Q=y[v];
Q.isFile?(R.fileOps_++,Q.file((0,_.HY)(R.handleFileSuccess_,R,u),(0,_.HY)(R.handleFileError_,R))):R.unscannedDirectories_.push(new IM8(Q,u))}},TC=function(R){if(R.unscannedDirectories_.length>0&&R.directoryOps_<5&&!R.hasError_){R.directoryOps_++;
var y=R.unscannedDirectories_.shift(),u=y.entry,v=new Nw(u.name);y=y.parent;y.directoryMap_[v.getName()]=v;y.directories_.push(v);u=u.createReader();u.readEntries((0,_.HY)(R.handleDirectorySuccess_,R,u,v),(0,_.HY)(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_)};
oG.prototype.handleDirectorySuccess_=function(R,y,u){KnY(this,u,y);u.length==0?(this.directoryOps_--,TC(this)):R.readEntries((0,_.HY)(this.handleDirectorySuccess_,this,R,y),(0,_.HY)(this.handleDirectoryError_,this))};
oG.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;TC(this)};
oG.prototype.handleFileSuccess_=function(R,y){R.files_.push(y);this.fileOps_--;TC(this)};
oG.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;TC(this)};
var IM8=function(R,y){this.entry=R;this.parent=y};var xW=function(R){_.nT.call(this);_.E4(R,"drop",this.onObjectsDropped_,!1,this);_.E4(R,"dragenter",this.onFilesDragged_,!1,this);_.E4(R,"dragover",this.onFilesDragged_,!1,this);_.E4(R,"dragleave",this.onDragLeave_,!1,this);_.E4(R,"dragend",this.onDragLeave_,!1,this)};
_.IE(xW,_.nT);var hh5=function(R,y){_.ew.call(this,"f");this.files=R;this.directories=y};
_.IE(hh5,_.ew);var bpc=function(){_.ew.call(this,"h")};
_.IE(bpc,_.ew);var FnK=function(){_.ew.call(this,"i")};
_.IE(FnK,_.ew);var w7g=function(){_.ew.call(this,"g")};
_.IE(w7g,_.ew);xW.prototype.onObjectsDropped_=function(R){var y=this;R.preventDefault();var u=R.event_.dataTransfer;if((R=u&&u.items)&&R.length>0&&R[0].webkitGetAsEntry){u=[];for(var v=[],Q=0;Q<R.length;Q++){var M=R[Q].webkitGetAsEntry();M?u.push(M):v.push(R[Q])}new oG(u,function(K,h,b){b?y.dispatchEvent(new w7g("Error occurred while reading from the file system.")):y.dispatchEvent(new hh5(K,h,v))})}else(R=u&&u.files)&&this.dispatchEvent(new hh5(Array.from(R),[]))};
xW.prototype.onFilesDragged_=function(R){R.type==="dragenter"&&this.dispatchEvent(new bpc);R.preventDefault()};
xW.prototype.onDragLeave_=function(){this.dispatchEvent(new FnK)};var NxT=function(R,y){this.JSC$11962_name_=R;this.inputElement_=y};
NxT.prototype.getName=function(){return this.JSC$11962_name_};
NxT.prototype.getInputElement=function(){return this.inputElement_};var Be=function(R,y,u){y=y===void 0?"single_file":y;u=u===void 0?[]:u;_.nT.call(this);this.overlayTarget_=R;this.parentOverlay_=R!=null?R.parentNode:_.o_("scotty-overlay-parent");this.selectorType_=y;this.acceptTypes_=u;this.overlay_=TxY(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.O(Be,_.nT);
var TxY=function(R,y,u,v){var Q=document.createElement("input");Q.setAttribute("type","file");Q.setAttribute("name","Filedata");_.E4(Q,"change",R.onFilesSelected_,!1,R);u==="multiple_file"&&(Q.multiple="true");u==="single_directory"&&(Q.webkitdirectory="true");v.length>0&&Q.setAttribute("accept",v.join(","));Q.style.position="absolute";Q.style.overflow="hidden";Q.style.height="0px";Q.style.width="0px";Q.style.opacity="0";Q.setAttribute("aria-hidden","true");Q.setAttribute("tabIndex",-1);if(R.overlayTarget_!=
null)return Q.style.height=y.offsetHeight+"px",Q.style.width=y.offsetWidth+"px",R.parentOverlay_&&(R.parentOverlay_.style.position="relative"),_.Xi(Q,y),c7(Q,new _.dc(y.offsetLeft,y.offsetTop)),Q;R.parentOverlay_.appendChild(Q);return Q};
Be.prototype.click=function(){this.overlay_.click()};
Be.prototype.onFilesSelected_=function(R){a:{try{var y=(new XMLHttpRequest).upload!==void 0;break a}catch(N){}y=!1}if(y){var u;R=Array.from((u=R.target.files)!=null?u:[]);u=[];if(this.selectorType_==="single_directory"&&(_.T$||zu||_.NO)){u=new Nw("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(y=0;y<R.length;y++)for(var v=R[y],Q=v.webkitRelativePath.split("/"),M=u,K=0;K<Q.length;K++){var h=Q[K];if(K==Q.length-1){h!="."&&M.files_.push(v);break}var b=M.directoryMap_[h];b==void 0&&(h=
b=new Nw(h),M.directoryMap_[h.getName()]=h,M.directories_.push(h));M=b}u=u.directories_}this.dispatchEvent(new o$g(R,u,null))}else R=R.target.value,R.match(/^c:\\fakepath\\/i)&&(R=R.substring(12)),this.dispatchEvent(new o$g([],[],new NxT(R,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=TxY(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var o$g=function(R,y){_.ew.call(this,"j");this.files=R;this.directories=y};
_.O(o$g,_.ew);var xWG=function(R){this.uploadUrl_=R};var Bxg=function(){_.nT.call(this)};
_.IE(Bxg,_.nT);var ft=function(R){_.ew.call(this,R)};
_.IE(ft,_.ew);var eE=function(R){_.ew.call(this,R)};
_.IE(eE,_.ew);var fMw=function(R,y,u,v,Q){_.nT.call(this);u=document.createElement("form");u.setAttribute("method",y);u.setAttribute("enctype","multipart/form-data");u.setAttribute("encoding","multipart/form-data");y=document.createElement("input");y.setAttribute("type","hidden");y.setAttribute("name","metadata");y.setAttribute("value",Q);u.appendChild(y);u.appendChild(v);this.JSC$11979_form_=u;R=new _.Cv(R);_.cY(R,"upload_protocol","multipart");this.JSC$11979_url_=R.toString();this.JSC$11979_request_=new V5;this.state_=
"Ready";this.JSC$11979_errorDescription_=null;this.JSC$11979_eventHandler_=new _.V9(this);_.bx(this,this.JSC$11979_eventHandler_);this.JSC$11979_eventHandler_.listen(this.JSC$11979_request_,"success",this.onTransferSuccess_);this.JSC$11979_eventHandler_.listen(this.JSC$11979_request_,"error",this.onTransferError_)};
_.O(fMw,Bxg);_.J=fMw.prototype;_.J.run=function(){this.state_="Transferring";var R=this.JSC$11979_request_,y=this.JSC$11979_form_;if(R.JSC$11397_active_)throw Error("oe");var u=new _.Cv(this.JSC$11979_url_||y.action);R.JSC$11397_form_=y;y=R.JSC$11397_form_;u=_.mK(u.toString());u!==void 0&&(y.action=u);scc(R)};
_.J.getResponseCode=function(){return null};
_.J.getResponseText=function(){return this.JSC$11979_request_&&this.JSC$11979_request_.getResponseText()||null};
_.J.JSC$29254_getErrorDescription=function(){return this.JSC$11979_errorDescription_};
_.J.cancel=function(){this.JSC$11979_request_&&this.JSC$11979_request_.abort();this.state_="Cancelled";this.dispatchEvent(new ft("o"))};
_.J.pause=function(){};
_.J.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new ft("l"))};
_.J.onTransferError_=function(){this.JSC$11979_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new ft("n"))};var lu=function(){_.E8.call(this)};
_.O(lu,_.E8);lu.prototype.createXhr=function(){var R=_.E8.prototype.createXhr.call(this);R.upload&&(R.upload.onprogress=(0,_.HY)(this.onProgress_,this));return R};
lu.prototype.onProgress_=function(R){this.dispatchEvent(R)};var ehG=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},OpG=function(R,y){var u=R.attempt_+1;
if(R.maxAttempts_>0&&u>R.maxAttempts_)return!1;u==0?y():R.delayCallId_=dK(function(){R.delayCallId_=null;y()},lMg(R),R);
R.attempt_=u;return!0};
ehG.prototype.reset=function(){this.delayCallId_&&_.uO.clearTimeout(this.delayCallId_);this.attempt_=-1};
var lMg=function(R){var y=250*Math.pow(2,R.attempt_);R.maxDelayMs_>=0&&(y=Math.min(y,R.maxDelayMs_));return y};var UEP=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var Oc=function(){_.nT.call(this);this.JSC$11989_request_=this.state_=null;this.JSC$11989_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$11989_bytesTransferred_=0;this.retryIterator_=new ehG;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$11989_errorDescription_=null;this.JSC$11989_eventHandler_=new _.V9(this);_.bx(this,this.JSC$11989_eventHandler_);this.JSC$11989_url_=this.blob_=null;this.JSC$11989_method_=void 0;this.chunkSize_=this.JSC$11989_metadata_=
this.JSC$11989_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$11989_responseText_=this.JSC$11989_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.IE(Oc,Bxg);_.J=Oc.prototype;_.J.run=function(){ZE(this)};
_.J.getResponseCode=function(){return this.JSC$11989_responseCode_};
_.J.getResponseText=function(){return this.JSC$11989_responseText_};
_.J.JSC$29254_getErrorDescription=function(){return this.JSC$11989_errorDescription_};
_.J.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$11989_eventHandler_.removeAll();this.JSC$11989_request_&&this.JSC$11989_request_.abort();this.retryIterator_.reset();var R=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(R==="Upload"||R==="Query")R=new lu,R.JSC$9764_withCredentials_=this.JSC$11989_withCredentials_,R.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$11989_bytesTransferred_=
0;this.dispatchEvent(new ft("o"))}};
_.J.pause=function(){this.pauseRequested_=!0};
var ZE=function(R){var y=R.state_;R.pauseRequested_?(R.pauseRequested_=!1,R.stateAfterUnpausing_=y,R.state_="Paused"):OpG(R.retryIterator_,function(){switch(R.state_){case "Start":R.JSC$11989_request_=new lu;var u=_.Ps.clone(R.JSC$11989_headers_);R.blob_.size!=null&&(u["Content-Length"]=R.blob_.size);u=kQP(u);u["X-Goog-Upload-Protocol"]="resumable";u["X-Goog-Upload-Command"]="start";R.JSC$11989_eventHandler_.removeAll();R.JSC$11989_eventHandler_.listen(R.JSC$11989_request_,"complete",R.onStartComplete_);
R.JSC$11989_request_.JSC$9764_withCredentials_=R.JSC$11989_withCredentials_;R.JSC$11989_request_.send(R.JSC$11989_url_,R.JSC$11989_method_,R.JSC$11989_metadata_,u);R.lastCommandResponseCode_=null;R.dispatchEvent(new eE("q"));break;case "Upload":u=R.transferHandle_.uploadUrl_;var v=R.blob_.size;if(WWg()){var Q=R.chunkSize_;var M=R.offset_+Q>=v;v=P_L(R.blob_,R.offset_,M?v:R.offset_+Q)}else R.offset_=0,v=R.blob_,M=!0;R.JSC$11989_request_=new lu;R.JSC$11989_request_.JSC$9764_withCredentials_=R.JSC$11989_withCredentials_;
R.JSC$11989_eventHandler_.removeAll();R.JSC$11989_eventHandler_.listen(R.JSC$11989_request_,"progress",R.onUploadProgress_);Q=(0,_.HY)(R.JSC$11991_onUploadComplete_,R,R.offset_+v.size,M);R.JSC$11989_eventHandler_.listen(R.JSC$11989_request_,"complete",Q);R.lastCommandResponseCode_=null;R.dispatchEvent(new eE("q"));M=Object.assign({},R.JSC$11989_headers_||{},{"X-Goog-Upload-Command":"upload"+(M?", finalize":""),"X-Goog-Upload-Offset":R.offset_});R.JSC$11989_request_.send(u,"POST",v,M);break;case "Query":R.JSC$11989_request_=
new lu;R.JSC$11989_eventHandler_.removeAll();R.JSC$11989_eventHandler_.listen(R.JSC$11989_request_,"complete",R.onQueryComplete_);u=Object.assign({},R.JSC$11989_headers_||{},{"X-Goog-Upload-Command":"query"});R.JSC$11989_request_.send(R.transferHandle_.uploadUrl_,"POST","",u);R.lastCommandResponseCode_=null;R.dispatchEvent(new eE("q"));break;default:throw Error("df");}})||He(R,"Transfer encountered too many consecutive failures.")},He=function(R,y){R.state_="Error";
R.JSC$11989_errorDescription_=y;R.dispatchEvent(new ft("n"))};
Oc.prototype.onStartComplete_=function(R){var y=R.target;this.lastCommandResponseCode_=y.getStatus();this.dispatchEvent(new eE("r"));if(ZpY(y))HpL(this,y);else if(n$c(y)){R=LF(R.target.getAllResponseHeaders());for(var u in R)_.jv(u.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new ft("m"));u=P8(R,"X-Goog-Upload-URL");R=(R=P8(R,"X-Goog-Upload-Chunk-Granularity"))?parseInt(R,10):1;u===void 0||isNaN(R)||R<=0?He(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
R)*R,this.transferHandle_=new xWG(u),this.dispatchEvent(new ft("p")),this.state_="Upload",this.retryIterator_.reset(),ZE(this))}else ZE(this)};
Oc.prototype.onUploadProgress_=function(R){this.JSC$11989_bytesTransferred_=this.offset_+R.loaded;this.dispatchEvent(new ft("k"))};
Oc.prototype.JSC$11991_onUploadComplete_=function(R,y,u){var v=this,Q,M;return _.I(function(K){switch(K.nextAddress){case 1:Q=u.target;v.lastCommandResponseCode_=Q.getStatus();v.dispatchEvent(new eE("r"));if(Gqc(Q)||Q.getStatus()==404)return v.JSC$11989_bytesTransferred_=R,HpL(v,Q),K.return();if(n$c(Q)){K.jumpTo(2);break}if(!(M=v.detectCorruptedBlobEnabled_)){K.jumpTo(3);break}return K.yield(rkc(v),4);case 4:M=K.yieldResult;case 3:if(M)return He(v,"Blob has been modified or corrupted."),K.return();
v.requireUploadRequestModification_=Q.getStatus()==400;v.state_="Query";ZE(v);return K.return();case 2:if(y)return He(v,"Got a non-final success response after issuing a finalize command."),K.return();v.JSC$11989_bytesTransferred_=R;v.offset_=R;v.retryIterator_.reset();ZE(v);return K.return()}})};
Oc.prototype.onQueryComplete_=function(R){var y=R.target;this.lastCommandResponseCode_=y.getStatus();this.dispatchEvent(new eE("r"));ZpY(y)?(y.getStatus()===200&&(this.JSC$11989_bytesTransferred_=this.blob_.size),HpL(this,y)):n$c(y)?(R=LF(R.target.getAllResponseHeaders()),R=parseInt(P8(R,"X-Goog-Upload-Size-Received"),10),isNaN(R)?He(this,"Server did not respond with current offset."):R<this.offset_?He(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
R+"."):this.requireUploadRequestModification_&&this.offset_===R?He(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$11989_bytesTransferred_=R,this.state_="Upload",ZE(this))):ZE(this)};
var HpL=function(R,y){R.JSC$11989_responseCode_=y.getStatus();var u=LF(y.getAllResponseHeaders());EDG(u);R.JSC$11989_responseText_=y.getResponseText();R.state_="Response received";R.dispatchEvent(new ft("l"))},n$c=function(R){var y=R.getStatus();
R=LF(R.getAllResponseHeaders());R=P8(R,"X-Goog-Upload-Status");return y===200&&R==="active"},Gqc=function(R){R=LF(R.getAllResponseHeaders());
return P8(R,"X-Goog-Upload-Status")==="final"},ZpY=function(R){if(Gqc(R))return!0;
R=R.getStatus();return R>=400&&R<500},rkc=function(R){var y;
return _.I(function(u){if(u.nextAddress==1){if(!R.blob_||R.originalBlobSize_<=0)return u.return(!1);if(R.blob_.size!==R.originalBlobSize_)return u.return(!0);_.wY(u,2);if(y=P_L(R.blob_,0,1)){var v=u.yield,Q=new aU,M=h3c(Q);Q.reader_.readAsBinaryString(y);u=v.call(u,M,4)}else u=u.return(!0);return u}if(u.nextAddress!=2)return u.return(R.blob_.size!==R.originalBlobSize_);_.B$(u);return u.return(!0)})};var Pjg=function(R,y,u,v,Q,M){_.nT.call(this);this.payload_=v;this.JSC$11992_url_=R;this.JSC$11992_method_=y;this.JSC$11992_headers_=u;this.JSC$11992_metadata_=Q;this.encoding_=M||"binary";R=new _.Wb;this.boundary_="uploader-"+D0()+"-"+R.JSC$11246_toIsoString();this.JSC$11992_responseText_=this.JSC$11992_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$11992_errorDescription_=null;this.JSC$11992_eventHandler_=new _.V9(this);_.bx(this,this.JSC$11992_eventHandler_)};
_.O(Pjg,Bxg);_.J=Pjg.prototype;
_.J.run=function(){var R=_.Ps.clone(this.JSC$11992_headers_);this.payload_.length!=null&&(R["Content-Length"]=this.payload_.length);R=kQP(R);R["X-Goog-Upload-Protocol"]="multipart";R["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new lu;this.JSC$11992_eventHandler_.removeAll();this.JSC$11992_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$11992_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$11992_url_,this.JSC$11992_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$11992_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)};
_.J.getResponseCode=function(){return this.JSC$11992_responseCode_};
_.J.getResponseText=function(){return this.JSC$11992_responseText_};
_.J.JSC$29254_getErrorDescription=function(){return this.JSC$11992_errorDescription_};
_.J.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$11992_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new ft("o")))};
_.J.pause=function(){};
_.J.onTransferProgress_=function(){this.dispatchEvent(new ft("k"))};
_.J.onTransferComplete_=function(R){var y=R.target.getStatus();y===void 0||y===-1?(this.JSC$11992_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new ft("n"))):(this.JSC$11992_responseCode_=y,R=R.target,y=LF(R.getAllResponseHeaders()),EDG(y),this.JSC$11992_responseText_=R.getResponseText(),this.state_="Complete",this.dispatchEvent(new ft("l")))};_.Wni=function(R,y,u,v){v=v===void 0?!1:v;if(u instanceof NxT)return new fMw(R,"POST",y,u.getInputElement(),"");if(typeof u==="string"||u instanceof String)return new Pjg(R,"POST",y,u,"");var Q=new Oc(void 0);Q.JSC$11989_url_=R;Q.JSC$11989_method_="POST";Q.JSC$11989_headers_=y;Q.blob_=u;Q.originalBlobSize_=u.size;Q.JSC$11989_metadata_="";v&&(Q.JSC$11989_withCredentials_=v);Q.state_="Start";return Q};var nt=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(nt,_.y4);_.J=nt.prototype;_.J.getEnableSsEngine=function(){return _.Uk(this,2)};
_.J.getEnableAwr=function(){return _.Uk(this,3)};
_.J.getAlohaAutoGaRollout=function(){return _.Uk(this,5)};
_.J.getEnableConfigurator=function(){return _.Uk(this,6)};
_.J.getEnableMweb=function(){return _.Uk(this,7)};
var UW5=function(){var R=dWc();return _.dG(R,7,!0)};
nt.prototype.getEnableCtlConsentCheckbox=function(){return _.Uk(this,8)};
nt.prototype.getEnableIframe=function(){return _.Uk(this,9)};
var dWc=function(){var R=new nt;R=_.dG(R,5,!0);R=_.dG(R,2,!0);R=_.dG(R,4,!1);R=_.dG(R,8,!0);return _.dG(R,9,!0)};
nt.prototype.getEnableScreenshotNudge=function(){return _.Uk(this,10)};
var kqc=function(){var R=UW5();return _.dG(R,10,!0)};
nt.prototype.getEnableWebStartupConfigEndpoint=function(){return _.Uk(this,11)};
nt.prototype.getEnableJunkNudge=function(){return _.Uk(this,12)};
var yxU=function(){var R=kqc();return _.dG(R,12,!0)};
_.J=nt.prototype;_.J.getEnableConfiguratorLocale=function(){return _.Uk(this,13)};
_.J.getEnableTinyNoPointer=function(){return _.Uk(this,14)};
_.J.getEnableSupportSessionLogging=function(){return _.Uk(this,15)};
_.J.getEnableFileUploadForScreenshot=function(){return _.Uk(this,16)};
_.J.getEnableDirectDeflectionForSingleCategory=function(){return _.Uk(this,17)};
_.J.getEnableImageSanitization=function(){return _.Uk(this,18)};
_.J.getEnableAlohaBinarySplit=function(){return _.Uk(this,19)};
_.J.getEnableDbFeedbackIntents=function(){return _.Uk(this,20)};
_.J.getEnableMarkMandatoryFieldsWithRequired=function(){return _.Uk(this,21)};
_.J.getEnableFeedbackCategoryCustomUi=function(){return _.Uk(this,22)};
_.J.getEnableRealtimeCtl=function(){return _.Uk(this,23)};var RsO=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(RsO,_.y4);var $E8=[/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 X08="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 mEP=_.RE(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),AtT=_.RE(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var p0T,aQ4,tYz,SR8;var E$c,$Ww;
E$c=function(R,y,u){R.timeOfStartCall=(new Date).getTime();var v=u||_.uO,Q=v.document,M=R.nonce||_.Sy(v.document);M&&!R.nonce&&(R.nonce=M);if(R.flow=="help"){var K=_.D6("document.location.href",v);!R.helpCenterContext&&K&&(R.helpCenterContext=K.substring(0,1200));K=!0;if(y&&JSON&&JSON.stringify){var h=JSON.stringify(y);(K=h.length<=1200)&&(R.psdJson=h)}K||(y={invalidPsd:!0})}y=[R,y,u];v.GOOGLE_FEEDBACK_START_ARGUMENTS=y;u=R.feedbackServerUri||"//www.google.com/tools/feedback";if(K=v.GOOGLE_FEEDBACK_START)K.apply(v,y);
else{v=u+"/load.js?";for(var b in R)y=R[b],y==null||_.Sv(y)||(v+=encodeURIComponent(b)+"="+encodeURIComponent(y)+"&");R=fL(Q).createElement("SCRIPT");M&&R.setAttribute("nonce",M);_.gC(R,_.lb(v));Q.body.appendChild(R)}};
$Ww=function(R,y,u,v){var Q,M;_.I(function(K){Q=u||_.uO;var h=R.serverEnvironment==="DEV",b=u||_.uO;b=R.nonce||_.Sy(b.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:b,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}};y&&(b=new Map(Object.entries(y)),h.extraData.productSpecificData=b);M=h;return K.yield(zRS(M,v,Q),0)})};
_.qOG=function(R,y,u){try{if(R.flow==="help"){var v=R.helpCenterPath.replace(/^\//,"");_.aK(u||window,"https://support.google.com/"+v)}else R.flow==="submit"?E$c(R,y,u):uQU(R.productId,R.feedbackServerUri).then(function(Q){Q=_.Ne(Q,nt,1);var M=!AhG||(Q==null?void 0:Q.getEnableMweb()),K=!R.tinyNoPointer||(Q==null?void 0:Q.getEnableTinyNoPointer());!Q||Q.getAlohaAutoGaRollout()&&M&&K?$Ww(R,y,u,Q):E$c(R,y,u)},function(Q){Q&&Q.name!=="DuplicateFormError"&&E$c(R,y,u)})}catch(Q){$Ww(R,y,u,null)}};
_.CJ("userfeedback.api.startFeedback",_.qOG);var vc4=/https?:\/\/\S+\.\S+/,QZU=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],jZG=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var Mev=function(R){var y=R.split(""),u=[-263237435,15,y,function(v,Q,M){var K=Q.length;M.forEach(function(h,b,N){this.push(N[b]=Q[(Q.indexOf(h)-Q.indexOf(this[b])+b+K--)%Q.length])},v.split(""))},
function(v,Q){v=(v%Q.length+Q.length)%Q.length;Q.splice(-v).reverse().forEach(function(M){Q.unshift(M)})},
"response",function(){for(var v=64,Q=[];++v-Q.length-32;){switch(v){case 58:v-=14;case 91:case 92:case 93:continue;case 123:v=47;case 94:case 95:case 96:continue;case 46:v=95}Q.push(String.fromCharCode(v))}return Q},
null,12,1540023973,65941107,null,y,function(v,Q){for(v=(v%Q.length+Q.length)%Q.length;v--;)Q.unshift(Q.pop())},
695603893,function(v){for(var Q=v.length;Q;)v.push(v.splice(--Q,1)[0])},
"'[;'[(",function(v,Q){v.push(Q)},
null,function(v,Q,M,K,h){return Q(M,K,h)},
"continuation",y,function(v,Q){if(v.length!=0){Q=(Q%v.length+v.length)%v.length;var M=v[0];v[0]=v[Q];v[Q]=M}},
function(){for(var v=64,Q=[];++v-Q.length-32;){switch(v){case 91:v=44;continue;case 123:v=65;break;case 65:v-=18;continue;case 58:v=96;continue;case 46:v=95}Q.push(String.fromCharCode(v))}return Q},
'"),/]];'];u[7]=u;u[11]=u;u[18]=u;try{(((0,u[15])(u[21]),u[22])(u[11],u[9]),u[22])(u[new Date("1970-01-01T04:30:12.000+04:30")/1E3],u[1]),((0,u[22])(u[11],u[23]),u[4])(u[10],u[18]),(0,u[20])(u[21],u[14])<<(0,u[17])(u[18],u[1]),(0,u[4])(u[8],u[21]),(0,u[19])((0,u[19])((0,u[17])(u[7],u[9]),u[3],u[20],(0,u[6])(),u[2]),u[3],u[5],(0,u[15])(),u[2])}catch(v){return"aTlOUOubTO4AP____8P_"+R}return y.join("")};_.X7V=new _.jF("runAttestationCommand");var mWc=new _.jF("verifyCommand");_.GC=new _.jF("accessibilityContext");var Akc=new _.jF("accessibilityData");var DW5=new _.jF("profileCardCommand");var UmO=new _.jF("signInEndpoint");var dmU=new _.jF("signOutEndpoint");var tzY;_.p78=new _.jF("accountItemSectionRenderer");tzY=new _.jF("accountItemRenderer");_.ckc=new _.jF("saveCommandToSessionStorageAction");var aMg=new _.jF("crossAccountChannelTransferEndpoint");var G8U=new _.jF("getAccountMenuEndpoint");_.r94=new _.jF("getAccountSwitcherEndpoint");var nHO=new _.jF("getAccountsListEndpoint");var SO8=new _.jF("getAccountsListInnertubeEndpoint");_.ru=new _.jF("addToToastAction");var YOT=new _.jF("hideEnclosingAction");_.Pe=new _.jF("replaceEnclosingAction");var LnG=new _.jF("buttonRefreshAction");var sf8=new _.jF("adsControlFlowOpportunityReceivedCommand");var zhL=new _.jF("openAdAllowlistInstructionCommand");var g$V=new _.jF("videoMastheadAdPrimaryVideoRenderer");var Cj8=new _.jF("displayAdRenderer");var c3U=new _.jF("instreamVideoAdRenderer");_.REL=new _.jF("inFeedAdLayoutRenderer");var y8i=new _.jF("sequenceItemInPlayerAdLayoutRenderer");_.uCV=new _.jF("adSlotRenderer");var vji=new _.jF("adAvatarViewModel");var QeG=new _.jF("adBadgeViewModel");var jeT=new _.jF("adImageViewModel");var On8=new _.jF("reelsAdCardButtonedViewModel");var Mw5=new _.jF("reelsPlayerOverlayLayoutViewModel");var J8c=new _.jF("showSchedulingPanelCommand");var Vwc=new _.jF("backstageCommentsRenderer");var iTT=new _.jF("backstageImageRenderer");var KFg=new _.jF("backstagePostRenderer");var Id8=new _.jF("backstageZeroStateRenderer");var hEV=new _.jF("postRenderer");var bTi=new _.jF("sharedPostRenderer");var FFG=new _.jF("createBackstagePostEndpoint");var wcb=new _.jF("getPostVideoPreviewEndpoint");var NKT=new _.jF("updateBackstagePostEndpoint");var TKi=new _.jF("filterChipTransformCommand");var oji=new _.jF("insertRichSectionCommand");var oA8=new _.jF("talkToRecsDeselectCommand");var xgK=new _.jF("talkToRecsNextCommand");var TeT=new _.jF("talkToRecsSelectCommand");var BKb=new _.jF("talkToRecsUpdateTextCommand");_.HV=new _.jF("browseEndpoint");_.fd5=new _.jF("confirmDialogEndpoint");var eEG=new _.jF("expandOnHoverCardRenderer");var ld5=new _.jF("lumiereShelfDetailsRenderer");var OT5=new _.jF("revealBusinessEmailCommand");var ZTg=new _.jF("validateChannelHandleCommand");var HTK=new _.jF("channelCreationFormEndpoint");var njw=new _.jF("aboutChannelViewModel");var G0c=new _.jF("channelThumbnailWithLinkRenderer");var r8Y=new _.jF("channelCreationServiceEndpoint");var PVi=new _.jF("updateChannelPageSettingsEndpoint");var We=function(R){this.delegate=R},du=function(){We.apply(this,arguments)};
_.O(du,We);_.RR.Object.defineProperties(du.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(R){this.delegate.entityMetadata=R}}});var WFV=function(){du.apply(this,arguments)};
_.O(WFV,du);WFV.prototype.getAssociations=function(){return[]};
WFV.prototype.getTypeName=function(){return"channelHandle"};var WCc=new _.jF("webThumbnailDetailsExtensionData");var uZT=new _.jF("commandContext");var dgi=new _.jF("addVideoLinkAction");var Ug8=new _.jF("banAuthorAction");var k0c=new _.jF("createCommentAction");var EjK=new _.jF("createCommentReplyAction");var $gb=new _.jF("createPollAction");var q8b=new _.jF("hideIdentityChipAction");var Xcc=new _.jF("openUpdateCommentDialogAction");var mg5=new _.jF("pinCommentAction");var A8g=new _.jF("removeCommentAction");var Dgb=new _.jF("unpinCommentAction");var Uc=new _.jF("updateBackstagePollAction");var pcg=new _.jF("updateCommentVoteAction");var twc=new _.jF("commentThreadRenderer");var c8V=function(){du.apply(this,arguments)};
_.O(c8V,du);c8V.prototype.getAssociations=function(){return[]};
c8V.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var adw=function(){du.apply(this,arguments)};
_.O(adw,du);adw.prototype.getAssociations=function(){return[]};
adw.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.S8G=new _.jF("commentDialogRenderer");var Y88=new _.jF("reloadCommentsCommand");var LFG=new _.jF("updateCommentsSettingsEndpoint");var sew=new _.jF("commentViewModel");var zE5=new _.jF("triStateButtonViewModel");var gjw=new _.jF("voiceReplyContainerViewModel");_.TP=new _.jF("commandExecutorCommand");var td=new _.jF("emoji");var CVK=new _.jF("updateCreatorChannelInnertubeCommand");_.RRg=new _.jF("appendContinuationItemsAction");_.yt5=new _.jF("changeEngagementPanelVisibilityAction");_.Lh=new _.jF("continuationCommand");var uWg=new _.jF("hideReportedCommentAction");var vDw=new _.jF("listMutationCommand");_.kW=new _.jF("openPopupAction");var Qqc=new _.jF("persistSubscriptionsDisplayPreferencesCommand");var hRc;_.jqK=new _.jF("playlistRemoveVideosAction");_.MYc=new _.jF("updatePlaylistAction");_.Jtc=new _.jF("addToPlaylistCommand");_.VYT=new _.jF("endPlaylistCommand");_.iIY=new _.jF("recoverPlaylistCommand");_.KRb=new _.jF("refreshPlaylistCommand");_.IQw=new _.jF("refreshFormCommand");hRc=new _.jF("openOnePickAddVideoModalCommand");_.EHU=new _.jF("reloadContinuationItemsCommand");_.bIg=new _.jF("scrollToEngagementPanelCommand");var FRG=new _.jF("selectCountryCommand");var w05=new _.jF("showReloadUiCommand");var Nqb=new _.jF("undoFeedbackAction");var TqK=new _.jF("updateButtonAction");var oD5=new _.jF("updateSubscribeButtonAction");var xEi=new _.jF("updateToggleAction");var Bqg=new _.jF("webNativeShareCommand");_.QL=new _.jF("webCommandMetadata");_.Ec=new _.jF("webHandleServiceEndpointExtension");var OrO=new _.jF("webNavigationEndpointData");var fQ5=new _.jF("backgroundAudioPlaybackCommand");var eRK=new _.jF("copyLinkCommand");var lQ5=new _.jF("playlistVotingRefreshPopupCommand");var OIc=new _.jF("selectChipCommand");var ZIK=new _.jF("setCookieCommand");var HIV=new _.jF("setLocalStorageCommand");var nDc=new _.jF("setPrefStorageEntryCommand");var WRT;_.GQ5=new _.jF("settingsUpdateCheckboxCommand");_.rtg=new _.jF("settingsUpdateTextCommand");_.PAc=new _.jF("settingsUpdateOptionsCommand");WRT=new _.jF("settingsUpdateSwitchCommand");_.dE8=new _.jF("settingsUpdateConnectedAppRendererCommand");var UEi=new _.jF("updateTextInputFormFieldRendererCommand");var kQi=new _.jF("updateToggleButtonStateCommand");var EDc=new _.jF("updateUrlParamCommand");var $EY=new _.jF("webSubmitFormCommand");var qRg=new _.jF("channelSwitcherPageRenderer"),X0Y=new _.jF("updateChannelSwitcherPageAction");_.Je=new _.jF("continuationItemRenderer");_.$W=new _.jF("richItemRenderer");var mEi=new _.jF("richSectionRenderer");_.Atc=new _.jF("richShelfRenderer");_.DET=new _.jF("metadataBadgeRenderer");_.p05=new _.jF("multiPageMenuNotificationSectionRenderer");_.tYL=new _.jF("playlistLoopButtonStateRenderer");var ctK=new _.jF("claimLegacyYoutubeChannelEndpoint");var aQV=new _.jF("getNotificationMenuEndpoint");var SRY=new _.jF("getSearchInVideoCommand");_.YRi=new _.jF("getTranscriptEndpoint");_.xF=new _.jF("signalServiceEndpoint");var LR8=new _.jF("verifyAgeEndpoint");var i7L=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(i7L,_.y4);i7L.prototype.getPath=function(){return _.$U(this,1)};
i7L.prototype.getValue=function(){return _.$U(this,2)};var sqg=[0,_.Rf,-1];var zR8=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(zR8,_.y4);var VeP=_.KK(zR8,[0,_.y_,sqg]);var gDT=new _.jF("dismissalEndpoint");var CA5=new _.jF("elementsCommand");_.ac=new _.jF("innertubeCommand");var RsT=new _.jF("multipleInlinePlaybackCommand");var VWO=new _.jF("loggingDirectives");var yx5=new _.jF("acknowledgeChannelTouStrikeCommand");var uQ5=function(){du.apply(this,arguments)};
_.O(uQ5,du);uQ5.prototype.getAssociations=function(){return[]};
uQ5.prototype.getTypeName=function(){return"booleanEntity"};var vcV=function(){du.apply(this,arguments)};
_.O(vcV,du);vcV.prototype.getAssociations=function(){return[]};
vcV.prototype.getTypeName=function(){return"stringEntity"};var jo=new _.jF("entityBatchUpdate");_.QZ5=new _.jF("entityUpdateCommand");var jZc=function(){du.apply(this,arguments)};
_.O(jZc,du);jZc.prototype.getAssociations=function(){var R=[];this.delegate.alternateChannel&&R.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&R.push.apply(R,_.P$(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&R.push(this.delegate.oneofChannelEntity);return[].concat(_.P$(new Set(R)))};
jZc.prototype.getTypeName=function(){return"fakeChannel"};var MFT=function(){du.apply(this,arguments)};
_.O(MFT,du);MFT.prototype.getAssociations=function(){var R=[];this.delegate.entryCollection&&R.push(this.delegate.entryCollection);return[].concat(_.P$(new Set(R)))};
MFT.prototype.getTypeName=function(){return"fakePlaylist"};
var Jx5=function(){du.apply(this,arguments)};
_.O(Jx5,du);Jx5.prototype.getAssociations=function(){var R=[];this.delegate.parentPlaylist&&R.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var y=_.V(this.delegate.entries),u=y.next();!u.done;u=y.next())R.push.apply(R,_.P$((new VFV(u.value)).getAssociations()));return[].concat(_.P$(new Set(R)))};
Jx5.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var VFV=function(){We.apply(this,arguments)};
_.O(VFV,We);VFV.prototype.getAssociations=function(){var R=[];this.delegate.video&&R.push(this.delegate.video);return[].concat(_.P$(new Set(R)))};var iV8=function(){du.apply(this,arguments)};
_.O(iV8,du);iV8.prototype.getAssociations=function(){var R=[];this.delegate.descriptionEntity&&R.push(this.delegate.descriptionEntity);this.delegate.creators&&R.push.apply(R,_.P$(this.delegate.creators));this.delegate.theBiggestFan&&R.push(this.delegate.theBiggestFan);return[].concat(_.P$(new Set(R)))};
iV8.prototype.getTypeName=function(){return"fakeVideo"};
var KBc=function(){du.apply(this,arguments)};
_.O(KBc,du);KBc.prototype.getAssociations=function(){return[]};
KBc.prototype.getTypeName=function(){return"fakeVideoDescription"};var IRw=new _.jF("fantasyRosterViewModel");var hsi=new _.jF("addFollowUpSurveyCommand");var bVG=new _.jF("getSurveyCommand");var FBg=new _.jF("ratingSurveyOptionRenderer");_.mr=new _.jF("feedbackEndpoint");var wt5=new _.jF("reportHistoryTableCellRenderer"),N15=new _.jF("reportHistoryTableTextCellRenderer"),T1K=new _.jF("reportHistoryTableReasonCellRenderer");_.ocg=new _.jF("flagEndpoint");var xnc=new _.jF("getFlowCommand");var B18=new _.jF("submitFormWithValidationFlowCommand");var fR8=function(){du.apply(this,arguments)};
_.O(fR8,du);fR8.prototype.getAssociations=function(){return[]};
fR8.prototype.getTypeName=function(){return"flowStateEntity"};var esc=new _.jF("flowFormState");var lRb=new _.jF("gameCardRenderer");var OVT=new _.jF("accountLinkingStateChangedCommand");var ZVL=function(){du.apply(this,arguments)};
_.O(ZVL,du);ZVL.prototype.getAssociations=function(){return[]};
ZVL.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var HVT=new _.jF("changeMiniAppPlayStateCommand");var ncc=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(ncc,_.y4);var qw=[1,2,3];var Gni=[0,qw,FMP,_.wUT,JyU];var rx8=_.KK(ncc,Gni),Pmg=_.IK(Gni);var WBc=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(WBc,_.y4);var dnV=[0,_.z$,_.Rf];var Un5=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(Un5,_.y4);var kng=[0,_.Rf,_.z$,-1];var Xa=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(Xa,_.y4);var Ecc=_.IK([0,1,dnV,_.v7,kng]);var $n5=new _.jF("miniAppScoreChallengeViewModel");var qvb=new _.jF("miniGameCardViewModel");var Xtg=new _.jF("teaserCardViewModel");var mn5=function(){du.apply(this,arguments)};
_.O(mn5,du);mn5.prototype.getAssociations=function(){return[]};
mn5.prototype.getTypeName=function(){return"logoEntity"};_.Axg=new _.jF("feedbackItemRenderer");var Dnc=function(){du.apply(this,arguments)};
_.O(Dnc,du);Dnc.prototype.getAssociations=function(){return[]};
Dnc.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.pt8=new _.jF("playerInterstitialRenderer");var tFT=new _.jF("getKidsBlocklistPickerCommand");_.cxc=new _.jF("updateKidsBlacklistEndpoint");_.YY=new _.jF("likeEndpoint");var aRV,SvK,YvY;aRV=new _.jF("addChatItemAction");SvK=new _.jF("removeChatItemAction");YvY=new _.jF("markChatItemAsDeletedAction");_.LBg=new _.jF("setLiveChatCollapsedStateAction");var sZT=function(){du.apply(this,arguments)};
_.O(sZT,du);sZT.prototype.getAssociations=function(){return[]};
sZT.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var zsw=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(zsw,_.y4);var gcY=_.KK(zsw,[0,1,_.z$]);var CmG=new _.jF("liveChatEndpoint");var Rq8=new _.jF("liveChatItemContextMenuEndpoint");var yAw=new _.jF("liveChatReplayEndpoint");_.uL8=new _.jF("emojiPickerRenderer");var vuc=new _.jF("liveChatAuthorBadgeViewModel");var QUK=new _.jF("deleteLiveChatMessageCommand");var jUg=new _.jF("liveChatActionEndpoint");var MHK=new _.jF("createLiveChatPollEndpoint");var JAi=new _.jF("manageLiveChatUserEndpoint");var VHT=new _.jF("moderateLiveChatEndpoint");_.ijb=new _.jF("sendLiveChatMessageEndpoint");var KjG=new _.jF("sendLiveChatVoteEndpoint");var Ia8=new _.jF("clearLocationCommand");var hq5=new _.jF("resolveLocationCommand");var bjg=new _.jF("interactionLoggingCommandMetadata");var Fjc=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(Fjc,_.y4);var wbV=function(R,y){return _.ix(R,1,y)};var N5b=[0,_.CU];var T5c=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(T5c,_.y4);var ou8=function(R,y){return oN(R,1,Fjc,y)};T5c.prototype.JSC$12086_serializeBinary=EEW([0,_.y_,N5b]);var ncG={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 xd5={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"},
B5V={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 YPT={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED"};_.LtP=new _.jF("logFlowLoggingEventCommand");_.rZ=new _.jF("loggingContext");var faL=new _.jF("captionLanguageSelectActionCommand");var eqw=new _.jF("showCaptionLanguageSelectActionCommand");var laV=new _.jF("dismissDialogEndpoint");var OjL=new _.jF("hideItemSectionVideosByIdCommand");var Zj5=new _.jF("showMiniplayerCommand");var HjL=function(){du.apply(this,arguments)};
_.O(HjL,du);HjL.prototype.getAssociations=function(){return[]};
HjL.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var nuw=function(){du.apply(this,arguments)};
_.O(nuw,du);nuw.prototype.getAssociations=function(){return[]};
nuw.prototype.getTypeName=function(){return"downloadStatusEntity"};var GXg=function(){du.apply(this,arguments)};
_.O(GXg,du);GXg.prototype.getAssociations=function(){return[]};
GXg.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var rA5=function(){du.apply(this,arguments)};
_.O(rA5,du);rA5.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(_.P$(new Set(R)))};
rA5.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var Pkb=function(){du.apply(this,arguments)};
_.O(Pkb,du);Pkb.prototype.getAssociations=function(){var R=[];this.delegate.refresh&&R.push(this.delegate.refresh);if(this.delegate.downloads)for(var y=_.V(this.delegate.downloads),u=y.next();!u.done;u=y.next())R.push.apply(R,_.P$((new WjK(u.value)).getAssociations()));return[].concat(_.P$(new Set(R)))};
Pkb.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var WjK=function(){We.apply(this,arguments)};
_.O(WjK,We);WjK.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(_.P$(new Set(R)))};var ddV=function(){du.apply(this,arguments)};
_.O(ddV,du);ddV.prototype.getAssociations=function(){var R=[];this.delegate.localImageEntities&&R.push.apply(R,_.P$(this.delegate.localImageEntities));return[].concat(_.P$(new Set(R)))};
ddV.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var Udb=function(){du.apply(this,arguments)};
_.O(Udb,du);Udb.prototype.getAssociations=function(){var R=[];this.delegate.playbackData&&R.push(this.delegate.playbackData);this.delegate.localImageEntities&&R.push.apply(R,_.P$(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&R.push(this.delegate.videoDownloadContextEntity);return[].concat(_.P$(new Set(R)))};
Udb.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var kXK=function(){du.apply(this,arguments)};
_.O(kXK,du);kXK.prototype.getAssociations=function(){return[]};
kXK.prototype.getTypeName=function(){return"offlineabilityEntity"};var EuY=function(){du.apply(this,arguments)};
_.O(EuY,du);EuY.prototype.getAssociations=function(){var R=[];this.delegate.fakeChildren&&R.push.apply(R,_.P$(this.delegate.fakeChildren));return[].concat(_.P$(new Set(R)))};
EuY.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var $d8=function(){du.apply(this,arguments)};
_.O($d8,du);$d8.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(_.P$(new Set(R)))};
$d8.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var qbb=function(){du.apply(this,arguments)};
_.O(qbb,du);qbb.prototype.getAssociations=function(){return[]};
qbb.prototype.getTypeName=function(){return"continuationTokenEntity"};var Xb5=function(){du.apply(this,arguments)};
_.O(Xb5,du);Xb5.prototype.getAssociations=function(){var R=[];this.delegate.channelOwner&&R.push(this.delegate.channelOwner);this.delegate.videos&&R.push.apply(R,_.P$(this.delegate.videos));this.delegate.collaboratorChannels&&R.push.apply(R,_.P$(this.delegate.collaboratorChannels));this.delegate.downloadState&&R.push(this.delegate.downloadState);this.delegate.refresh&&R.push(this.delegate.refresh);return[].concat(_.P$(new Set(R)))};
Xb5.prototype.getTypeName=function(){return"mainPlaylistEntity"};var mdi=function(){du.apply(this,arguments)};
_.O(mdi,du);mdi.prototype.getAssociations=function(){var R=[];this.delegate.video&&R.push(this.delegate.video);this.delegate.channelContributor&&R.push(this.delegate.channelContributor);return[].concat(_.P$(new Set(R)))};
mdi.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var AAV=function(){We.apply(this,arguments)};
_.O(AAV,We);AAV.prototype.getAssociations=function(){var R=[];this.delegate.recommendedVideoMetadata&&R.push.apply(R,_.P$((new DdV(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.P$(new Set(R)))};
var DdV=function(){We.apply(this,arguments)};
_.O(DdV,We);DdV.prototype.getAssociations=function(){var R=[];this.delegate.localImageEntities&&R.push.apply(R,_.P$(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&R.push(this.delegate.videoDownloadContextEntity);return[].concat(_.P$(new Set(R)))};var pbc=function(){We.apply(this,arguments)};
_.O(pbc,We);pbc.prototype.getAssociations=function(){var R=[];this.delegate.playbackPosition&&R.push(this.delegate.playbackPosition);return[].concat(_.P$(new Set(R)))};var tH5=function(){du.apply(this,arguments)};
_.O(tH5,du);tH5.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,_.P$((new pbc(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&R.push.apply(R,_.P$((new AAV(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.P$(new Set(R)))};
tH5.prototype.getTypeName=function(){return"mainVideoEntity"};var cAg=function(){du.apply(this,arguments)};
_.O(cAg,du);cAg.prototype.getAssociations=function(){var R=[];this.delegate.userChannelDetails&&R.push(this.delegate.userChannelDetails);return[].concat(_.P$(new Set(R)))};
cAg.prototype.getTypeName=function(){return"ytMainChannelEntity"};var aaT=function(){du.apply(this,arguments)};
_.O(aaT,du);aaT.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,_.P$(this.delegate.localImageEntities));this.delegate.downloadStatus&&R.push(this.delegate.downloadStatus);return[].concat(_.P$(new Set(R)))};
aaT.prototype.getTypeName=function(){return"ytMainVideoEntity"};var exO=new _.jF("downloadsPageSmartDownloadsOptInBannerParams");var HxE=new _.jF("downloadsPageUpsellBannerParams");var Sbw=function(){du.apply(this,arguments)};
_.O(Sbw,du);Sbw.prototype.getAssociations=function(){return[]};
Sbw.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var Yb8=function(){du.apply(this,arguments)};
_.O(Yb8,du);Yb8.prototype.getAssociations=function(){return[]};
Yb8.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var Ljg=function(){du.apply(this,arguments)};
_.O(Ljg,du);Ljg.prototype.getAssociations=function(){return[]};
Ljg.prototype.getTypeName=function(){return"macroMarkerEntity"};var sUV=function(){du.apply(this,arguments)};
_.O(sUV,du);sUV.prototype.getAssociations=function(){return[]};
sUV.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var zqi=function(){du.apply(this,arguments)};
_.O(zqi,du);zqi.prototype.getAssociations=function(){return[]};
zqi.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var gub=function(){du.apply(this,arguments)};
_.O(gub,du);gub.prototype.getAssociations=function(){return[]};
gub.prototype.getTypeName=function(){return"playerStateEntity"};var CkT=function(){du.apply(this,arguments)};
_.O(CkT,du);CkT.prototype.getAssociations=function(){return[]};
CkT.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var R$b=function(){du.apply(this,arguments)};
_.O(R$b,du);R$b.prototype.getAssociations=function(){return[]};
R$b.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var yjc=function(){du.apply(this,arguments)};
_.O(yjc,du);yjc.prototype.getAssociations=function(){return[]};
yjc.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.mE=new _.jF("dislikeButtonViewModel");_.A4=new _.jF("likeButtonViewModel");var u85=new _.jF("videoSummaryContentViewModel");var vRi=new _.jF("videoSummaryParagraphViewModel");var QQL=new _.jF("changeTimelyActionVisibilityCommand");var jQ5=new _.jF("hideEngagementPanelEndpoint");var Mtw=new _.jF("refreshPanelEndpoint");var Jj8=new _.jF("scrollToSectionEndpoint");var VtG=new _.jF("seekToVideoTimestampCommand");_.X1=new _.jF("showEngagementPanelEndpoint");var i25=new _.jF("showTransientPlayerScrimOverlayCommand");var Kfc=new _.jF("toggleEngagementPanelCommand");_.Iyi=new _.jF("createBroadcastCommand");var h$V=new _.jF("metadataUpdateCommand");var b2L=function(){du.apply(this,arguments)};
_.O(b2L,du);b2L.prototype.getAssociations=function(){return[]};
b2L.prototype.getTypeName=function(){return"featuredProductsEntity"};var Ffb=function(){du.apply(this,arguments)};
_.O(Ffb,du);Ffb.prototype.getAssociations=function(){return[]};
Ffb.prototype.getTypeName=function(){return"pinnedProductEntity"};var wOK=function(){du.apply(this,arguments)};
_.O(wOK,du);wOK.prototype.getAssociations=function(){return[]};
wOK.prototype.getTypeName=function(){return"trendingOfferEntity"};_.N9b=new _.jF("merchandiseShelfRenderer");var T9i=new _.jF("gridMovieRenderer");_.oRY=new _.jF("movieRenderer");var xvg=function(){du.apply(this,arguments)};
_.O(xvg,du);xvg.prototype.getAssociations=function(){var R=[];this.delegate.trackDownloadMetadatas&&R.push.apply(R,_.P$(this.delegate.trackDownloadMetadatas));return[].concat(_.P$(new Set(R)))};
xvg.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var B95=function(){du.apply(this,arguments)};
_.O(B95,du);
B95.prototype.getAssociations=function(){var R=[];this.delegate.downloadedTracks&&R.push.apply(R,_.P$(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&R.push.apply(R,_.P$(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&R.push.apply(R,_.P$(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&R.push.apply(R,_.P$(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&R.push.apply(R,_.P$(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
R.push.apply(R,_.P$(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&R.push.apply(R,_.P$(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&R.push.apply(R,_.P$(this.delegate.metadataOnlyTracks));return[].concat(_.P$(new Set(R)))};
B95.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var fyg=function(){du.apply(this,arguments)};
_.O(fyg,du);fyg.prototype.getAssociations=function(){var R=[];this.delegate.trackDownloadMetadatas&&R.push.apply(R,_.P$(this.delegate.trackDownloadMetadatas));return[].concat(_.P$(new Set(R)))};
fyg.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var e$T=function(){du.apply(this,arguments)};
_.O(e$T,du);e$T.prototype.getAssociations=function(){var R=[];this.delegate.playbackData&&R.push(this.delegate.playbackData);this.delegate.localImageEntities&&R.push.apply(R,_.P$(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&R.push(this.delegate.videoDownloadContextEntity);return[].concat(_.P$(new Set(R)))};
e$T.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var ly8=function(){du.apply(this,arguments)};
_.O(ly8,du);
ly8.prototype.getAssociations=function(){var R=[];this.delegate.musicLibraryStatusEntity&&R.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&R.push.apply(R,_.P$(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,_.P$(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(_.P$(new Set(R)))};
ly8.prototype.getTypeName=function(){return"musicAlbumRelease"};
var O2Y=function(){du.apply(this,arguments)};
_.O(O2Y,du);O2Y.prototype.getAssociations=function(){var R=[];this.delegate.albumRelease&&R.push(this.delegate.albumRelease);this.delegate.tracks&&R.push.apply(R,_.P$(this.delegate.tracks));return[].concat(_.P$(new Set(R)))};
O2Y.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var Z2i=function(){du.apply(this,arguments)};
_.O(Z2i,du);Z2i.prototype.getAssociations=function(){var R=[];this.delegate.albumRelease&&R.push(this.delegate.albumRelease);return[].concat(_.P$(new Set(R)))};
Z2i.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var H2g=function(){du.apply(this,arguments)};
_.O(H2g,du);H2g.prototype.getAssociations=function(){var R=[];this.delegate.details&&R.push(this.delegate.details);this.delegate.userDetails&&R.push(this.delegate.userDetails);return[].concat(_.P$(new Set(R)))};
H2g.prototype.getTypeName=function(){return"musicArtist"};
var nRY=function(){du.apply(this,arguments)};
_.O(nRY,du);nRY.prototype.getAssociations=function(){var R=[];this.delegate.parentArtist&&R.push(this.delegate.parentArtist);return[].concat(_.P$(new Set(R)))};
nRY.prototype.getTypeName=function(){return"musicArtistDetail"};
var GhG=function(){du.apply(this,arguments)};
_.O(GhG,du);GhG.prototype.getAssociations=function(){var R=[];this.delegate.parentArtist&&R.push(this.delegate.parentArtist);return[].concat(_.P$(new Set(R)))};
GhG.prototype.getTypeName=function(){return"musicArtistUserDetail"};var rjc=function(){du.apply(this,arguments)};
_.O(rjc,du);rjc.prototype.getAssociations=function(){return[]};
rjc.prototype.getTypeName=function(){return"musicLibraryEdit"};var P3w=function(){du.apply(this,arguments)};
_.O(P3w,du);P3w.prototype.getAssociations=function(){return[]};
P3w.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var WfV=function(){du.apply(this,arguments)};
_.O(WfV,du);
WfV.prototype.getAssociations=function(){var R=[];this.delegate.tracks&&R.push.apply(R,_.P$(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,_.P$((new dvG(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.P$(new Set(R)))};
WfV.prototype.getTypeName=function(){return"musicPlaylist"};
var dvG=function(){We.apply(this,arguments)};
_.O(dvG,We);dvG.prototype.getAssociations=function(){var R=[];this.delegate.creatorEntity&&R.push(this.delegate.creatorEntity);return[].concat(_.P$(new Set(R)))};var Uv8=function(){du.apply(this,arguments)};
_.O(Uv8,du);Uv8.prototype.getAssociations=function(){return[]};
Uv8.prototype.getTypeName=function(){return"musicShare"};var khV=function(){du.apply(this,arguments)};
_.O(khV,du);
khV.prototype.getAssociations=function(){var R=[];this.delegate.musicLibraryStatusEntity&&R.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&R.push.apply(R,_.P$(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(_.P$(new Set(R)))};
khV.prototype.getTypeName=function(){return"musicTrack"};
var ERV=function(){du.apply(this,arguments)};
_.O(ERV,du);ERV.prototype.getAssociations=function(){var R=[];this.delegate.parentTrack&&R.push(this.delegate.parentTrack);return[].concat(_.P$(new Set(R)))};
ERV.prototype.getTypeName=function(){return"musicTrackDetail"};
var $vw=function(){du.apply(this,arguments)};
_.O($vw,du);$vw.prototype.getAssociations=function(){var R=[];this.delegate.parentTrack&&R.push(this.delegate.parentTrack);return[].concat(_.P$(new Set(R)))};
$vw.prototype.getTypeName=function(){return"musicTrackUserDetail"};var Qz=new _.jF("musicResponsiveListItemRenderer");var mav=new _.jF("addToPlaylistEndpoint");var qDV=new _.jF("captionPickerEndpoint");var XO5=new _.jF("suggestStats");var mvc=new _.jF("backstageImageUploadEndpoint");var Ajc=new _.jF("createBackstagePostDialogEndpoint");_.DvL=new _.jF("createCommentReplyDialogEndpoint");_.pOG=new _.jF("updateCommentDialogEndpoint");_.tti=new _.jF("updateCommentReplyDialogEndpoint");var cjT=new _.jF("menuEndpoint");var fuS=new _.jF("modalEndpoint");var ayK=new _.jF("playlistEditorEndpoint");var SDV=new _.jF("copyTextEndpoint");var YDK,LfT;YDK=new _.jF("shareEndpoint");LfT=new _.jF("shareEntityEndpoint");_.sQc=new _.jF("shareEntityServiceEndpoint");_.Y0v=new _.jF("userFeedbackEndpoint");_.zM=new _.jF("watchEndpoint");var uJE=new _.jF("watchPlaylistEndpoint");var z$V=new _.jF("addUpcomingEventReminderEndpoint");_.DE=new _.jF("getCommentsFromInboxCommand");var gR5=new _.jF("notificationOptOutEndpoint");var C3g=new _.jF("recordNotificationInteractionsEndpoint");var RlL=new _.jF("removeUpcomingEventReminderEndpoint");var qeU=new _.jF("getDownloadActionCommand");_.y48=new _.jF("offlineOrchestrationActionCommand");var uag=function(){du.apply(this,arguments)};
_.O(uag,du);uag.prototype.getAssociations=function(){return[]};
uag.prototype.getTypeName=function(){return"captionTrack"};var vWw=function(){du.apply(this,arguments)};
_.O(vWw,du);vWw.prototype.getAssociations=function(){return[]};
vWw.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var QGK=function(){du.apply(this,arguments)};
_.O(QGK,du);QGK.prototype.getAssociations=function(){return[]};
QGK.prototype.getTypeName=function(){return"offlineVideoPolicy"};var jGK=function(){du.apply(this,arguments)};
_.O(jGK,du);jGK.prototype.getAssociations=function(){return[]};
jGK.prototype.getTypeName=function(){return"offlineVideoStreams"};var MEi=function(){du.apply(this,arguments)};
_.O(MEi,du);MEi.prototype.getAssociations=function(){var R=[];this.delegate.transfer&&R.push(this.delegate.transfer);this.delegate.adsPlaybackData&&R.push.apply(R,_.P$(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(_.P$(new Set(R)))};
MEi.prototype.getTypeName=function(){return"playbackData"};var J4g=function(){du.apply(this,arguments)};
_.O(J4g,du);J4g.prototype.getAssociations=function(){return[]};
J4g.prototype.getTypeName=function(){return"refresh"};var VE8=function(){du.apply(this,arguments)};
_.O(VE8,du);VE8.prototype.getAssociations=function(){var R=[];this.delegate.offlineVideoStreams&&R.push.apply(R,_.P$(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&R.push.apply(R,_.P$(this.delegate.captionTrack));return[].concat(_.P$(new Set(R)))};
VE8.prototype.getTypeName=function(){return"transfer"};var itT=function(){du.apply(this,arguments)};
_.O(itT,du);itT.prototype.getAssociations=function(){return[]};
itT.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var KE5=new _.jF("showMoreDrawerCommand");var IEc=new _.jF("updateEngagementPanelContentCommand");var hlL=new _.jF("getPdgBuyFlowCommand");var btV=new _.jF("liveChatPurchaseMessageEndpoint");var FEK=new _.jF("openSuperStickerBuyFlowCommand");var weg=new _.jF("updatePdgFeatureEnablementCommand");var Nub=function(){du.apply(this,arguments)};
_.O(Nub,du);Nub.prototype.getAssociations=function(){return[]};
Nub.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var Tuw=function(){du.apply(this,arguments)};
_.O(Tuw,du);Tuw.prototype.getAssociations=function(){return[]};
Tuw.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.oW8=new _.jF("pdgCommentChipRenderer");_.xw8=new _.jF("permissionRoleBottomBarRenderer");_.Buc=new _.jF("updatePermissionRoleCommand");var fEV=new _.jF("prefetchWatchCommand");var elc=new _.jF("updatePlayerErrorMessageCommand");var PdW=new _.jF("toggleCaptionsVisibilityCommand");_.lE5=new _.jF("quickActionsViewModel");var OtG=new _.jF("playerResponse");var ZtK=new _.jF("playlistRenderer");_.Htg=new _.jF("playlistVideoListRenderer");_.pt=new _.jF("playlistEditEndpoint");var nW8=new _.jF("createImagePollCommand");var GC8=new _.jF("createQuizCommand");var r48=new _.jF("quizRenderer");var Pub=new _.jF("uploadedVideoRenderer");var WEG=new _.jF("decorateMessageEndpoint");var dwY=new _.jF("lpOfferCardOptionViewModel");var Uw5=new _.jF("sfvAudioItemPlaybackCommand");var kCT=function(){du.apply(this,arguments)};
_.O(kCT,du);kCT.prototype.getAssociations=function(){return[]};
kCT.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.t4=new _.jF("reelNonVideoContentEndpoint");_.PV=new _.jF("reelWatchEndpoint");_.ce=new _.jF("reelItemRenderer");_.EWK=new _.jF("reelMetapanelViewModel");_.$wc=new _.jF("reelNonVideoContentRenderer");_.qcg=new _.jF("reelPlayerOverlayRenderer");var Xec=new _.jF("shortsLockupViewModel");var mwg=new _.jF("sponsorButtonViewModel");var A4T=new _.jF("reelItemWatchResponse");var Dwg=new _.jF("textBadgeRenderer");_.aG=new _.jF("buttonRenderer");_.SE=new _.jF("toggleButtonRenderer");var TAc=new _.jF("switchButtonViewModel");_.peg=new _.jF("confirmDialogRenderer");var tET;tET=new _.jF("menuRenderer");_.c4g=new _.jF("menuFlexibleItemRenderer");var aEi=new _.jF("pollRenderer");_.ScY=new _.jF("backgroundPromoRenderer");var LEg;_.Ycw=new _.jF("chipCloudRenderer");LEg=new _.jF("chipCloudChipRenderer");var sGL=new _.jF("dropdownRenderer");var zlg=new _.jF("gridVideoRenderer");_.gWY=new _.jF("itemSectionRenderer");_.Cui=new _.jF("messageRenderer");var Rxc=new _.jF("sortFilterHeaderRenderer");_.YW=new _.jF("videoRenderer");var ysT=new _.jF("resolveUrlCommandMetadata");var ueb=function(){du.apply(this,arguments)};
_.O(ueb,du);ueb.prototype.getAssociations=function(){return[]};
ueb.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.v0w=new _.jF("getAnswerCommand");_.nc=new _.jF("searchEndpoint");var Qmc=new _.jF("genAiRichTextViewModel");var $aE=new _.jF("overviewAnswerViewModel");var jm5=new _.jF("addToPlaylistServiceEndpoint");var M2V=new _.jF("clearSearchHistoryEndpoint");var Jsc=new _.jF("clearWatchHistoryEndpoint");var V2T=new _.jF("webSerializedServiceEndpointExtension");_.ixg=new _.jF("createCommentEndpoint");var KIw=new _.jF("createCommentReplyEndpoint");var IXw=new _.jF("performCommentActionEndpoint");var hxi=new _.jF("updateCommentEndpoint");var bxV=new _.jF("updateCommentReplyEndpoint");_.Lt=new _.jF("createPlaylistServiceEndpoint");var FIw=new _.jF("deletePlaylistEndpoint");var wrV=new _.jF("deleteVideoEndpoint");var Xa4=new _.jF("getReportFormEndpoint");var NQL=new _.jF("modifyChannelNotificationPreferenceEndpoint");var yi8;_.ZO=new _.jF("offlinePlaylistEndpoint");yi8={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 uyU;_.OC=new _.jF("offlineVideoEndpoint");uyU={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 TQc=new _.jF("pingingEndpoint");_.o0L=new _.jF("selectActiveIdentityEndpoint");var xic=new _.jF("setSettingEndpoint");var xbG=new _.jF("undoFeedbackEndpoint");var BQi=new _.jF("unsubscribeEndpoint");_.fX8=new _.jF("updatedMetadataEndpoint");var exT=function(){du.apply(this,arguments)};
_.O(exT,du);exT.prototype.getAssociations=function(){return[]};
exT.prototype.getTypeName=function(){return"settingEntity"};_.lXg=new _.jF("updateLocalAppSettingCommand");var Ox5=new _.jF("saveImageToDeviceEndpoint");var Zxc=new _.jF("shareImageCommand");var Hxg=new _.jF("sharingProviderDataCommand");var n0T=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(n0T,_.y4);var GD5=[0,_.Rf,-1];n0T.prototype.JSC$12287_serializeBinary=EEW(GD5);var rsi=_.IK(GD5);var PtV=new _.jF("userMentionSuggestionRenderer");var WIc=new _.jF("liveChatTunnelCommand");var $Lb=new _.jF("showSponsorshipsGiftOfferDialogCommand");var qx5=new _.jF("sponsorshipsScrollableShelfViewModel");var X1G=new _.jF("updateUpcomingEventReminderButtonStateCommand");var mL8=new _.jF("upcomingEventReminderButtonStateRenderer");var Anc=new _.jF("subscribeEndpoint");var DL5=new _.jF("registerTasksCommand");var p1G=new _.jF("hideSnackbarCommand");var t5G=new _.jF("showDialogCommand");_.rm=new _.jF("showSheetCommand");var cn8=new _.jF("showSnackbarCommand");var a5g=function(){du.apply(this,arguments)};
_.O(a5g,du);a5g.prototype.getAssociations=function(){return[]};
a5g.prototype.getTypeName=function(){return"chipEntity"};var SxG=function(){du.apply(this,arguments)};
_.O(SxG,du);SxG.prototype.getAssociations=function(){return[]};
SxG.prototype.getTypeName=function(){return"dismissState"};_.LA=new _.jF("avatarViewModel");var Yxg=new _.jF("badgeViewModel");_.k9=new _.jF("buttonViewModel");_.sc=new _.jF("chipViewModel");var GkU=new _.jF("collectionThumbnailViewModel");var L$8=new _.jF("contentPreviewImageViewModel");var sig=new _.jF("decoratedAvatarViewModel");var jFT=new _.jF("downloadButtonViewModel");_.O7c=new _.jF("engagementBarViewModel");_.zJ5=new _.jF("imageBannerViewModel");var gXg=new _.jF("lockupContentMetadataRowExtension");var CLG=new _.jF("lockupMetadataViewModel");_.RN5=new _.jF("lockupViewModel");var yXc=new _.jF("avatarStackViewModel");_.u2K=new _.jF("contentMetadataViewModel");var v1V=function(){du.apply(this,arguments)};
_.O(v1V,du);v1V.prototype.getAssociations=function(){return[]};
v1V.prototype.getTypeName=function(){return"pageHeaderEntity"};_.QJi=new _.jF("pageHeaderViewModel");var jJK=new _.jF("snackbarViewModel");var Mub=new _.jF("thumbnailHoverOverlayToggleActionsViewModel");_.EC=new _.jF("toggleButtonViewModel");var JXV=function(){du.apply(this,arguments)};
_.O(JXV,du);JXV.prototype.getAssociations=function(){return[]};
JXV.prototype.getTypeName=function(){return"votingEntity"};_.Z7v=new _.jF("votingViewModel");var Vu5=new _.jF("sectionHeaderViewModel");var iQ8=new _.jF("notifyDropdownOptionSelectedCommand");var civ=new _.jF("listViewModel");_.Pm=new _.jF("listItemViewModel");var n48=new _.jF("toggleableListItemViewModel");var Ks5=new _.jF("dialogHeaderViewModel");var ILG=function(){du.apply(this,arguments)};
_.O(ILG,du);ILG.prototype.getAssociations=function(){return[]};
ILG.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var hNY=function(){du.apply(this,arguments)};
_.O(hNY,du);hNY.prototype.getAssociations=function(){return[]};
hNY.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var bQG=function(){du.apply(this,arguments)};
_.O(bQG,du);bQG.prototype.getAssociations=function(){return[]};
bQG.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.Fs5=new _.jF("transcriptSubmitCaptionCorrectionCommand");var wRc=function(){du.apply(this,arguments)};
_.O(wRc,du);wRc.prototype.getAssociations=function(){return[]};
wRc.prototype.getTypeName=function(){return"buttonEntity"};var irv=new _.jF("unpluggedStringRunImage");var NjY=new _.jF("tabViewModel");var Tjb=new _.jF("tabbedViewModel");var o1c=function(){du.apply(this,arguments)};
_.O(o1c,du);o1c.prototype.getAssociations=function(){return[]};
o1c.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.xJ5=new _.jF("updateDescriptionAction");var Bjg=new _.jF("updateToggleButtonTextAction");_.fLc=new _.jF("autoplaySwitchButtonRenderer");var DA;_.eNY=new _.jF("multiMarkersPlayerBarRenderer");DA=new _.jF("chapterRenderer");var lL5=new _.jF("heatMarkerRenderer");var WJ4=new _.jF("heatmapRenderer");var OQb=new _.jF("smartSkipPlayerScrimOverlayRenderer");var ZQY=new _.jF("timedMarkerDecorationRenderer");var VRG=new _.jF("postWebToNativeMessageCommand");var tG=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(tG,_.y4);tG.prototype.getMethodName=function(){return _.$U(this,1)};var HQi=[0,_.Rf,-2];tG.prototype.JSC$12307_serializeBinary=EEW(HQi);var n1K=_.KK(tG,HQi);var Gic=new _.jF("whitelistEditEndpoint");var rXb=new _.jF("clearUrlParamCommand");var PWw=new _.jF("commerceActionCommand");_.WsV=new _.jF("getPaymentInstrumentsParamsCommand");var dJg=new _.jF("getPaymentsClientTokenCommand");var UJG=new _.jF("googlePaymentBillingCommand");var kii=new _.jF("googlePaymentPurchaseManagerCommand");_.E1c=new _.jF("logGtmCommand");var $JL=new _.jF("updateCardItemOnClickCommand");_.qj5=new _.jF("ypcPauseSubscriptionCommand");_.XRV=new _.jF("ypcResumeSubscriptionCommand");var mJ5=function(){du.apply(this,arguments)};
_.O(mJ5,du);mJ5.prototype.getAssociations=function(){return[]};
mJ5.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var AXT=function(){du.apply(this,arguments)};
_.O(AXT,du);AXT.prototype.getAssociations=function(){return[]};
AXT.prototype.getTypeName=function(){return"commerceCartListEntity"};var DJi=function(){du.apply(this,arguments)};
_.O(DJi,du);DJi.prototype.getAssociations=function(){return[]};
DJi.prototype.getTypeName=function(){return"iconBadgeEntity"};var pRY=function(){du.apply(this,arguments)};
_.O(pRY,du);pRY.prototype.getAssociations=function(){return[]};
pRY.prototype.getTypeName=function(){return"pdpStateEntity"};var tuw=function(){du.apply(this,arguments)};
_.O(tuw,du);tuw.prototype.getAssociations=function(){return[]};
tuw.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var grL=new _.jF("ypcOffersEndpoint");var cXb=new _.jF("cardItemRenderer"),aLV=new _.jF("cardItemTextRenderer");var Sjg=new _.jF("commerceCartItemQuantityPickerRenderer");var YjK=new _.jF("linkCardRenderer");var uGT=new _.jF("quantityIncrementerButtonViewModel");var Ls5=new _.jF("quantityIncrementerViewModel");var sJ5=new _.jF("themedImageViewModel");_.zN5=new _.jF("ypcCancelRecurrenceEndpoint");var g1w=new _.jF("ypcCompleteTransactionEndpoint");_.CWL=new _.jF("ypcGetCartEndpoint");_.KX=new _.jF("ypcGetOffersEndpoint");_.zC=new _.jF("ypcHandleTransactionEndpoint");var Rgg=new _.jF("ypcLogWalletAnalyticDataEndpoint");_.y3g=new _.jF("ypcRedeemCodeEndpoint");var u0Y=new _.jF("ypcUpdateFopEndpoint");IG(Kt(1),Vr(4));LMP((new MessageChannel).port2);var vCV=function(){this.register=new Map},rxS=function(R,y,u){R=R+"_"+y;
gu.register.has(R)?u=gu.register.get(R):(u=u(),gu.register.set(R,u));return u},QST=function(R){R=_.V(R.register.values());
for(var y=R.next();!y.done;y=R.next())_.o2(y.value,"ABORTED")};
vCV.prototype.clear=function(){QST(this);this.register.clear()};
var gu=new vCV;var iVS=Date.now().toString();var hsP=IRc();var B1S={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 jSK;jSK=1;_.kI=function(R){this.veData=R};
_.U4=function(R){return new _.kI({trackingParams:R})};
_.$6=function(R,y,u,v,Q,M){var K=jSK++;return new _.kI({veType:R,veCounter:K,elementIndex:u,dataElement:y,youtubeData:v,jspbYoutubeData:Q,loggingDirectives:M})};
_.J=_.kI.prototype;
_.J.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};
_.J.getAsJspb=function(){var R=new ok8;this.veData.trackingParams!==void 0?R.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.DF(R,2,this.veData.veType),this.veData.veCounter!==void 0&&_.DF(R,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.DF(R,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.ix(R,5,!0));if(this.veData.dataElement!==void 0){var y=this.veData.dataElement.getAsJspb();_.wC(R,7,y)}this.veData.youtubeData!==void 0&&_.wC(R,8,this.veData.jspbYoutubeData);
return R};
_.J.toString=function(){return JSON.stringify(this.getAsJson())};
_.J.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.J.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.CJ("yt_logging_screen.getRootVeType",T1W);_.CJ("yt_logging_screen.getCurrentCsn",_.$I);_.CJ("yt_logging_screen.getCttAuthInfo",q4);_.CJ("yt_logging_screen.setCurrentScreen",_.Xc);var Mcb=function(){this.events=new Map},J3L=function(R){var y=[];
R=_.V(R.events.values());for(var u=R.next();!u.done;u=R.next())y.push(u.value);return y};
Mcb.prototype.clear=function(){this.events.clear()};var i65=function(){this.logTransport=new Vcw;this.loggedEventRegister=new Mcb;this.unloggedEventRegister=new Mcb;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12344_flushTimer=new _.Jl(this.flushInterval);this.JSC$12344_flushTimer.listen("tick",this.flush,!1,this)};
i65.prototype.flush=function(){if(this.eventsCount){var R={loggedEvents:J3L(this.loggedEventRegister),unloggedEvents:J3L(this.unloggedEventRegister)};if(_.f("export_player_version_to_ytconfig")){var y;(y=_.EB("PLAYER_CLIENT_VERSION"))?(y=y.split("-")[0].replace(/\./g,""),y=isNaN(Number(y))?"0":y):y="";var u=_.EB("PLAYER_CLIENT_VERSION");if(u){u=u.split("-");var v="";u.length>1&&(v=u[u.length-1]);u=VF4(v.startsWith("canary_experiment")?"canary":v.startsWith("canary_control")?"control":"none")}else u=
"CLIENT_CANARY_STATE_UNKNOWN";R.dimensions={playerClientVersion:y,playerCanaryState:u}}this.logTransport.flush(R);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12344_flushTimer.enabled&&this.JSC$12344_flushTimer.stop()}};
var K5g=function(R){Ct==null&&(Ct=new i65);var y=Ct;var u=y.loggedEventRegister;R.dimensions=R.dimensions||{};R.dimensions.csn=_.$I()||"";var v=lRL(R.dimensions).join(";");if(R.records!=null)if(u.events.has(v)){var Q;(Q=u.events.get(v).records)==null||Q.push.apply(Q,_.P$(R.records))}else u.events.set(v,R);y.JSC$12344_flushTimer.enabled||y.JSC$12344_flushTimer.start();y.eventsCount++;y.eventsCount>=100&&y.flush()};var Vcw=function(){};
Vcw.prototype.flush=function(R,y){_.f("enable_client_sli_logging")&&_.P3("sliEventBatch",R,{sendIsolatedPayload:!!y})};var Ct;var hgV;hgV=function(R){var y=IYL;R=R===void 0?{}:R;y=y.name;var u=GnP("SUCCESS");K5g({dimensions:R,records:[{name:y,state:"SLI_STATE_END",status:u}]})};
_.Pmv=function(R,y,u,v){this.name=R;this.sliId=y;this.timeoutMs=u;this.statusOnTimeout=v;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.Pmv.prototype.getId=function(){return this.sliId};
_.TK=function(R,y){y=y===void 0?{}:y;R.ongoing||(R.ongoing=!0,R.dimensions=y,R.logSliId=YCi(),K5g({dimensions:R.dimensions,records:[{name:R.name,state:"SLI_STATE_START",sliId:R.logSliId}]}),R.timeoutMs>0&&(R.timeoutHandle=setTimeout(function(){_.o2(R,R.statusOnTimeout)},R.timeoutMs)))};
_.o2=function(R,y){R.ongoing&&(R.timeoutMs>0&&clearTimeout(R.timeoutHandle),R.ongoing=!1,y={dimensions:R.dimensions,records:[{name:R.name,status:GnP(y),state:"SLI_STATE_END",sliId:R.logSliId}]},gu.register.delete(R.name+"_"+R.sliId),K5g(y))};var IYL=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var b6K=function(){du.apply(this,arguments)};
_.O(b6K,du);b6K.prototype.getAssociations=function(){return[]};
b6K.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var LSc=new _.jF("highlightTextDecoratorColorMapExtension");var SVc=new _.jF("styleRunColorMapExtension");var qvL=_.RE(["data-"]),Axv={};var ptS={};var Rm=function(R){this.wrappedPromise_=R===void 0?null:R;this.state_=0;this.JSC$12376_value_=null};
Rm.prototype.then=function(R,y,u){return this.wrappedPromise_?this.wrappedPromise_.then(R,y,u):this.state_===1&&R?(R=R.call(u,this.JSC$12376_value_))&&typeof R.then==="function"?R:_.yA(R):this.state_===2&&y?(R=y.call(u,this.JSC$12376_value_))&&typeof R.then==="function"?R:_.F5L(R):this};
Rm.prototype.getValue=function(){return this.JSC$12376_value_};
Rm.prototype.isRejected=function(){return this.state_==2};
hSw(Rm);_.F5L=function(R){var y=new Rm;R=R===void 0?null:R;y.state_=2;y.JSC$12376_value_=R===void 0?null:R;return y};
_.yA=function(R){var y=new Rm;R=R===void 0?null:R;y.state_=1;y.JSC$12376_value_=R===void 0?null:R;return y};var QUW="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var w4g=["load","abort","error"],ut=function(R,y,u){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12396_maxAspectRatio_=R;this.disableAnimation_=y===void 0?!1:y;this.disableExifRotation_=u===void 0?!1:u;this.JSC$12396_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12396_reject_=this.resolve_=null};
ut.prototype.transform=function(R){var y=this;this.mime_=R.type;Rq(F8g(R),this.dataUrlRead_,this.readError_,this);Rq(buc(R.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(u,v){y.resolve_=u;y.JSC$12396_reject_=v})};
ut.prototype.dataUrlRead_=function(R){this.dataUrl_=R;this.angle_!=null&&NTY(this)};
ut.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 y=2,u=R.byteLength;y<u;){var v=R.getUint16(y),Q=R.getUint16(y+2);if(v===65505){y+=4;v=R.getUint32(y);Q=R.getUint16(y+4);if(v!==1165519206||Q!==0)break;y+=6;v=R.getUint16(y)===18761;y+=R.getUint32(y+4,v);Q=R.getUint16(y,v);y+=2;for(var M=0;M<Q;M++){if(R.getUint16(y,v)===274){y+=8;R=R.getUint16(y,v);break a}y+=12}}else if(v>>8!==255)break;
else y+=Q+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&&NTY(this)};
ut.prototype.readError_=function(){this.JSC$12396_reject_()};
var NTY=function(R){Wy(R.JSC$12396_image_,w4g,R.completeTransform_,!1,R);R.JSC$12396_image_.src=_.Eo(R.dataUrl_).toString();R.JSC$12396_image_.src!=kE.toString()&&R.JSC$12396_image_.src.substr(0,11)==="data:image/"||R.JSC$12396_reject_()};
ut.prototype.completeTransform_=function(){if(this.JSC$12396_image_.src!=kE.toString()){var R=_.Eo(this.dataUrl_),y=this.JSC$12396_image_.naturalHeight?this.JSC$12396_image_.naturalWidth/this.JSC$12396_image_.naturalHeight:null;this.invalidAspectRatio=y>this.JSC$12396_maxAspectRatio_||y<1/this.JSC$12396_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var u=this.JSC$12396_image_.naturalWidth,v=this.JSC$12396_image_.naturalHeight,Q=y=0,M=this.JSC$12396_image_.naturalHeight?this.JSC$12396_image_.naturalWidth/
this.JSC$12396_image_.naturalHeight:null;M>this.JSC$12396_maxAspectRatio_?(u=this.JSC$12396_maxAspectRatio_*v,y=(u-this.JSC$12396_image_.naturalWidth)/2,this.cropped=!0):M<1/this.JSC$12396_maxAspectRatio_?(v=this.JSC$12396_maxAspectRatio_*u,Q=(v-this.JSC$12396_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)M=u,u=v,v=M,M=y,y=Q,Q=M;switch(this.angle_){case 90:Q-=u;break;case 180:y-=u;Q-=v;break;case 270:y-=
v}this.cropped||this.angle_%360!==0?(R=document.createElement("canvas"),R.width=u||1,R.height=v||1,this.JSC$12396_image_.naturalWidth&&this.JSC$12396_image_.naturalHeight&&(u=R.getContext("2d"),u.rotate(Math.PI/180*this.angle_),u.drawImage(this.JSC$12396_image_,y,Q,this.JSC$12396_image_.naturalWidth,this.JSC$12396_image_.naturalHeight)),this.transformedData=_.Eo(R.toDataURL(this.mime_))):this.transformedData=R}else this.transformedData=R;this.resolve_(this)}};var vr=function(R,y){_.ew.call(this,R);this.value=y};
_.O(vr,_.ew);
var QA=function(R,y,u,v,Q,M,K){K=K===void 0?!1:K;_.nT.call(this);var h=this;this.JSC$12401_url_=R;this.channelId_=y;this.maxFileSizeMb_=u;this.JSC$12401_maxAspectRatio_=v;this.dropZoneEl_=Q;this.rejectInvalidAspectRatio_=K;this.selectButtonEl_=M;this.JSC$12401_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new xW(this.dropZoneEl_);this.selectOverlay_=new Be(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12401_image_=this.transfer_=null;this.handler_=new _.V9(this);_.bx(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(M,"click",function(){h.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.O(QA,_.nT);QA.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();_.nT.prototype.disposeInternal.call(this)};
QA.prototype.uploadPromise=function(){if(this.JSC$12401_image_==null)return null;this.uploadPromise_||TTg(this);return this.uploadPromise_};
QA.prototype.cancel=function(){oC8(this);this.JSC$12401_image_=null};
var oC8=function(R){R.transfer_&&R.transfer_.cancel();R.transfer_=null;R.uploadPromise_=null;R.resolve_=null;R.JSC$12401_reject_=null},TTg=function(R){oC8(R);
R.transfer_=_.Wni(R.JSC$12401_url_,{"X-YouTube-ChannelId":R.channelId_},R.JSC$12401_image_);R.handler_.listenOnce(R.transfer_,"l",R.JSC$12403_onUploadComplete_);R.handler_.listenOnce(R.transfer_,"n",R.onUploadError_);R.transfer_.run();R.uploadPromise_=new Promise(function(y,u){R.resolve_=y;R.JSC$12401_reject_=u})};
_.J=QA.prototype;_.J.onChange_=function(R){R.files.length&&(this.JSC$12401_image_=R.files[0],this.JSC$12401_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12401_image_=null,this.dispatchEvent(new vr("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(TTg(this),(new ut(this.JSC$12401_maxAspectRatio_)).transform(this.JSC$12401_image_).then((0,_.HY)(this.onPreview_,this),(0,_.HY)(this.onPreviewError_,this))))};
_.J.onPreview_=function(R){if(R.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12401_image_=null),this.dispatchEvent(new vr("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;R.cropped&&this.dispatchEvent(new vr("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new vr("yt.comments.ImageUploadOverlay.CHANGE_EVENT",R.transformedData))};
_.J.onPreviewError_=function(){this.JSC$12401_image_=null;this.dispatchEvent(new vr("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.J.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 vr("yt.comments.ImageUploadOverlay.HOVER_EVENT",R))};
_.J.JSC$12403_onUploadComplete_=function(){var R=(0,_.$1b)(this.transfer_.getResponseText());this.resolve_(R.encryptedBlobId)};
_.J.onUploadError_=function(){this.JSC$12401_reject_();oC8(this)};var xAL=function(R){R=R||{};var y={},u={};this.url=R.url||"";this.args=R.args||_.Ps.clone(y);this.assets=R.assets||{};this.attrs=R.attrs||_.Ps.clone(u);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||{}};
xAL.prototype.clone=function(){var R=new xAL,y;for(y in this)if(this.hasOwnProperty(y)){var u=this[y];_.tL(u)=="object"?R[y]=_.Ps.clone(u):R[y]=u}return R};var BTY,fY5,egw,vZ,O6T,Z6c,H6Y,nCi,GW5,r3K,Pq5,W5w,dA5,UA5,kWw,ECT,$AY,qIi,X4K,mAV,A3c,DAw,p4L,tcL,c35,aYT,SIK,YIw,L5V,Bzz,sSi,zg8,gCL,Cq5,RYi,yOK,uJg,vxT,QaT,jaw,x2P,Mhb,JOi,Vhg,i_5,K2g,INV,hYK,b_b,F2K,wCL,N0V,T0g,ox5,x$K,B0c,j2,fN8,eYG,lNT,O_g,Z_b,H_g,nxG,GdK,rO5,Pl5,W2i,d$V,U$g,kdg,ExL,$$8,qMc,XCV,TzE,m$V,AOc,D$g,pC5,thc,cOi,aNK,SMV,YMT,L2c,saL,zYL,gxY,Clw,R_c,yp5,uSY,vO8,QsV,jsK,M15,Jpg,V1g,iWV,KGY;BTY=["account/accounts_list"];fY5=["acknowledge_channel_tou_strike"];egw=["notification/add_upcoming_event_reminder"];
_.lY5=["att/get"];vZ=["browse","music/browse","unplugged/browse"];O6T=["channel/claim_legacy_youtube_channel"];Z6c=["history/clear_search_history"];H6Y=["history/clear_watch_history"];nCi=["comment/perform_comment_action"];GW5=["comment/get_comment_replies"];r3K=["ypc/commerce_action"];Pq5=["backstage/create_post"];W5w=["live/create_broadcast"];dA5=["channel/create_channel"];UA5=["comment/create_comment_reply"];kWw=["comment/create_comment"];ECT=["live_chat/create_poll"];$AY=["playlist/create"];
qIi=["decorate_message"];X4K=["live_chat/delete_message"];mAV=["playlist/delete"];A3c=["video/delete"];DAw=["like/dislike"];p4L=["dismissal/dismiss"];tcL=["flag/flag"];c35=["flow"];aYT=["account/account_menu"];SIK=["playlist/get_add_to_playlist"];YIw=["get_answer"];L5V=["channel/get_channel_creation_form"];Bzz=["offline/get_download_action"];sSi=["kids/get_kids_blocklist_picker"];zg8=["live_chat/get_item_context_menu"];gCL=["live_chat/get_live_chat_message_buy_flow"];Cq5=["live_chat/get_live_chat_replay"];
RYi=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];yOK=["live_chat/get_live_chat_super_sticker_buy_flow"];uJg=["notification/get_notification_menu"];vxT=["playlist/get_settings_editor"];QaT=["backstage/get_post_video_preview"];jaw=["account/get_profile_card"];x2P=["share/get_share_panel"];Mhb=["share/get_sharing_provider_data"];JOi=["get_survey"];Vhg=["notification/get_unseen_count"];i_5=["get_user_mention_suggestions"];K2g=["get_watch"];INV=["guide"];
hYK=["feedback"];b_b=["kids/update_blacklist"];F2K=["like/like"];wCL=["live_chat/live_chat_action"];N0V=["live_chat/manage_user"];T0g=["video_manager/metadata_update"];ox5=["live_chat/moderate"];x$K=["notification/modify_channel_preference"];B0c=["notification/opt_out"];j2=["get_panel","get_posts_by_host_panel"];fN8=["player"];eYG=["browse/edit_playlist"];lNT=["notification/record_interactions"];O_g=["reel/reel_item_watch"];Z_b=["reel/reel_watch_sequence"];H_g=["like/removelike"];nxG=["notification/remove_upcoming_event_reminder"];
GdK=["flag/get_form"];rO5=["miniapp/report_value"];Pl5=["navigation/resolve_url"];W2i=["channel/reveal_business_email"];d$V=["in_video/search"];U$g=["search","sfv/search","unplugged/search"];kdg=["live_chat/send_message"];ExL=["live_chat/send_live_chat_vote"];$$8=["account/set_setting"];qMc=["submit_caption_correction"];XCV=["subscription/subscribe"];TzE=["get_transcript"];m$V=["resolve_location","unplugged/resolve_location"];AOc=["subscription/unsubscribe"];D$g=["backstage/update_post"];pC5=["channel_edit/update_channel_page_settings"];
thc=["comment/update_comment_reply"];cOi=["comment/update_comment"];aNK=["comment/update_comments_settings"];SMV=["creator/update_creator_channel"];YMT=["pdg/update_enablement"];L2c=["updated_metadata"];saL=["channel_edit/validate_channel_handle"];zYL=["verify_age"];gxY=["next","unplugged/watch_next"];Clw=["whitelist/edit"];R_c=["ypc/cancel_recurrence"];yp5=["ypc/complete_transaction"];uSY=["ypc/get_cart"];vO8=["ypc/get_fix_instrument_params"];QsV=["ypc/get_offers"];jsK=["ypc/get_payment_instruments_params"];
M15=["ypc/handle_transaction"];Jpg=["ypc/log_payment_server_analytics"];V1g=["ypc/pause_subscription"];iWV=["ypc/redeem_code"];KGY=["ypc/resume_subscription"];var IHL=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,
21759,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,
89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,
72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,
211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,
136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,
11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,
72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,233634,265810,194770,195350,195349,194771,166382,
37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,
252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,261210,
210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,
139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,
267645,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,
170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,267693,267694,267578,262801,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,82039];var Bo=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.CJ("yt.msgs_",Bo);var Mi=new _.Jx("ACTION_ROUTER_TOKEN");_.Js=function(){this.autonavState_=_.f("kevlar_is_pupi_enabled")?2:T5G()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.Js.prototype.getState=function(){return this.autonavState_};
_.Js.prototype.pause=function(R){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=R):this.autonavState_==1&&(this.disabledAutonavPauseReason_=R)};
_.Js.prototype.setState=function(R,y,u){y&&(this.autoplayChangedByUser=!0);y=this.autonavState_===3||R===3;this.autonavState_!=R&&(this.autonavState_=R,R!=3&&_.ouS(R==2),R=_.f("kevlar_is_pupi_enabled")?u||y:!0,_.c3.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,R,u))};
_.Js.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.io(_.Js);var VA=function(){this.hasRun=!1};var Kx={},rAT=(Kx.auto_search="LATENCY_ACTION_AUTO_SEARCH",Kx.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Kx.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Kx.app_startup="LATENCY_ACTION_APP_STARTUP",Kx.browse="LATENCY_ACTION_BROWSE",Kx.cast_splash="LATENCY_ACTION_CAST_SPLASH",Kx.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",Kx.channels="LATENCY_ACTION_CHANNELS",Kx.chips="LATENCY_ACTION_CHIPS",Kx.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Kx.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
Kx.editor="LATENCY_ACTION_EDITOR",Kx.embed="LATENCY_ACTION_EMBED",Kx.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Kx.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Kx.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Kx.explore="LATENCY_ACTION_EXPLORE",Kx.favorites="LATENCY_ACTION_FAVORITES",Kx.home="LATENCY_ACTION_HOME",Kx.inboarding="LATENCY_ACTION_INBOARDING",Kx.landing="LATENCY_ACTION_LANDING",Kx.learning="LATENCY_ACTION_LEARNING",
Kx.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",Kx.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",Kx.library="LATENCY_ACTION_LIBRARY",Kx.live="LATENCY_ACTION_LIVE",Kx.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",Kx.management="LATENCY_ACTION_MANAGEMENT",Kx.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Kx.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",Kx.onboarding="LATENCY_ACTION_ONBOARDING",Kx.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
Kx.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Kx.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Kx.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",Kx.prebuffer="LATENCY_ACTION_PREBUFFER",Kx.prefetch="LATENCY_ACTION_PREFETCH",Kx.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Kx.profile_switcher="LATENCY_ACTION_LOGIN",Kx.projects="LATENCY_ACTION_PROJECTS",Kx.reel_watch="LATENCY_ACTION_REEL_WATCH",Kx.results="LATENCY_ACTION_RESULTS",Kx.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
Kx.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Kx.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",Kx.review="LATENCY_ACTION_REVIEW",Kx.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",Kx.search_ui="LATENCY_ACTION_SEARCH_UI",Kx.search_suggest="LATENCY_ACTION_SUGGEST",Kx.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Kx.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Kx.seek="LATENCY_ACTION_PLAYER_SEEK",Kx.settings="LATENCY_ACTION_SETTINGS",Kx.store="LATENCY_ACTION_STORE",
Kx.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",Kx.tenx="LATENCY_ACTION_TENX",Kx.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Kx.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",Kx.watch="LATENCY_ACTION_WATCH",Kx.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Kx["watch,watch7"]="LATENCY_ACTION_WATCH",Kx["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Kx["watch,watch7ad"]="LATENCY_ACTION_WATCH",Kx["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Kx.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
Kx.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Kx.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Kx.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Kx.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",Kx.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Kx.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Kx.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Kx),cAv=0;var zqP=function(R,y){d1.call(this,1,arguments);this.timer=y};
_.O(zqP,d1);var sU4=new JwU("aft-recorded",zqP);var UdL=_.uO.ytLoggingGelSequenceIdObj_||{};_.CJ("ytLoggingGelSequenceIdObj_",UdL);var Im=_.uO.ytLoggingLatencyUsageStats_||{};_.CJ("ytLoggingLatencyUsageStats_",Im);var hs=function(){this.cleanupJob=0},$dS=function(){hs.instance||(hs.instance=new hs);
return hs.instance};
_.J=hs.prototype;_.J.baseline=function(R,y,u){bt(this,"baseline_"+R)||_.P3("latencyActionBaselined",{clientActionNonce:R},{timestamp:y,cttAuthInfo:u})};
_.J.tick=function(R,y,u,v){bt(this,"tick_"+R+"_"+y)||_.P3("latencyActionTicked",{tickName:R,clientActionNonce:y},{timestamp:u,cttAuthInfo:v})};
_.J.info=function(R,y,u){var v=Object.keys(R).join("");bt(this,"info_"+v+"_"+y)||(R=Object.assign({},R),R.clientActionNonce=y,_.P3("latencyActionInfo",R,{cttAuthInfo:u}))};
_.J.jspbInfo=function(R,y,u){for(var v="",Q=0;Q<ra(R).length;Q++)ra(R)[Q]!==void 0&&(v=Q===0?v.concat(""+Q):v.concat("_"+Q));bt(this,"info_"+v+"_"+y)||(_.eQ(R,2,y),y={cttAuthInfo:u},u=_.f("jspb_sparse_encoded_pivot")?new l_([{}]):new l_,_.Ny(u,7,U4T,R),kXW("latencyActionInfo",u,y))};
_.J.span=function(R,y,u){var v=Object.keys(R).join("");bt(this,"span_"+v+"_"+y)||(R.clientActionNonce=y,_.P3("latencyActionSpan",R,{cttAuthInfo:u}))};
var bt=function(R,y){Im[y]=Im[y]||{count:0};var u=Im[y];u.count++;u.time=(0,_.uQ)();R.cleanupJob||(R.cleanupJob=_.Oh(_.WG,function(){var v=(0,_.uQ)(),Q;for(Q in Im)Im[Q]&&v-Im[Q].time>6E4&&delete Im[Q];R&&(R.cleanupJob=0)},5E3));
return u.count>5?(u.count===6&&Math.random()*1E5<1&&(u=new _.OL("CSI data exceeded logging limit with key",y.split("_")),y.indexOf("plev")>=0||_.kT(u)),!0):!1};var h_T,bWK;h_T=window;bWK=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.rr=h_T.performance||h_T.mozPerformance||h_T.msPerformance||h_T.webkitPerformance||new bWK;var Ljv=!1,XbU=!1,guL=(0,_.HY)(_.rr.clearResourceTimings||_.rr.webkitClearResourceTimings||_.rr.mozClearResourceTimings||_.rr.msClearResourceTimings||_.rr.oClearResourceTimings||_.ZM,_.rr);var FGT=window;FGT.ytcsi&&(FGT.ytcsi.infoGel=_.E9,FGT.ytcsi.tick=_.qQ);var KfT=function(R){d1.call(this,1,arguments);this.csn=R};
_.O(KfT,d1);var h3G=new JwU("screen-created",KfT),H2E=[],i2U=Z2P,nR8=0,po=new Map,IyP=new Map,h$4=new Map;var LZT=Symbol("vf"),yw=new WeakMap;var Fe=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},Py=function(){Fe.instance||(Fe.instance=new Fe);
return Fe.instance};
_.J=Fe.prototype;_.J.setClient=function(R){this.client=R};
_.J.JSC$12482_newScreen=function(){this.clear();this.csn=_.$I()};
_.J.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.J.reportShown=function(R,y,u){var v=this.JSC$12482_getTrackingParams(R),Q=R.visualElement?R.visualElement:v;y=this.shownElements.has(Q);var M=this.visibleState.get(Q);this.shownElements.add(Q);this.visibleState.set(Q,!0);R.impressionLog&&!y&&R.impressionLog();if(v||R.visualElement)if(u=wEc(this,R,u))if(Q=Nob(this,R),wQ(this,R)||Q){v=R.visualElement?R.visualElement:_.U4(v);var K=R.interactionLoggingClientData;Q||y?wQ(this,R)&4?M||B9T(this.client,u,v,K):wQ(this,R)&1&&!y&&T9P(this.client,u,v,K):T9P(this.client,
u,v,K)}};
_.J.reportHidden=function(R,y,u){var v=this.JSC$12482_getTrackingParams(R),Q=R.visualElement?R.visualElement:v;y=this.hiddenElements.has(Q);var M=this.visibleState.get(Q);this.hiddenElements.add(Q);this.visibleState.set(Q,!1);if(M===!1)return!0;if(!v&&!R.visualElement)return!1;u=wEc(this,R,u);if(!u||!wQ(this,R)&&Nob(this,R))return!1;v=R.visualElement?R.visualElement:_.U4(v);wQ(this,R)&8?fyv(this.client,u,v):wQ(this,R)&2&&!y&&(R=this.client,y=Dq({cttAuthInfo:q4(u)||void 0},u),v={csn:u,ve:v.getAsJson(),
eventType:2},u==="UNDEFINED_CSN"?co("visualElementHidden",y,v):R?Gp("visualElementHidden",v,R,y):_.P3("visualElementHidden",v,y));return!0};
_.J.JSC$12482_getTrackingParams=function(R){var y=this.getData(R),u,v;if(_.f("il_use_view_model_logging_context")&&(y==null?0:(u=y.context)==null?0:(v=u.loggingContext)==null?0:v.loggingDirectives))return y.context.loggingContext.loggingDirectives.trackingParams||"";var Q,M;if(y==null?0:(Q=y.rendererContext)==null?0:(M=Q.loggingContext)==null?0:M.loggingDirectives)return y.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(y==null?0:y.loggingDirectives)return y.loggingDirectives.trackingParams||
"";var K;return((K=R.veContainer)==null?0:K.trackingParams)?R.veContainer.trackingParams:(y==null?void 0:y.trackingParams)||""};
_.J.JSC$12482_elementShouldLogGesture=function(R,y){R=this.getData(R);return!!((Math.floor(Number(R&&R.loggingDirectives&&R.loggingDirectives.gestures&&R.loggingDirectives.gestures.types||""))||0)&y)};
_.J.JSC$12482_getNearestParentVe=function(R){var y=this.JSC$12482_getTrackingParams(R);return R.visualElement?R.visualElement:y?_.U4(y):R.parentElement?this.JSC$12482_getNearestParentVe(R.parentElement):null};
var wEc=function(R,y,u){var v=_.$I(u);return R.csn===null||v===R.csn||u?v:(R=new _.OL("VisibilityLogger called before newScreen",{caller:y.tagName,previous_csn:R.csn,current_csn:v}),_.kT(R),null)};
Fe.prototype.getData=function(R){var y,u=R.data||((y=R.props)==null?void 0:y.data);if(!u||R.isWebComponentWrapper){var v;u=(v=yw.get(R))==null?void 0:v[LZT]}return u};
var Nob=function(R,y){var u;return!((u=R.getData(y))==null||!u.loggingDirectives)},wQ=function(R,y){R=R.getData(y);
return Math.floor(Number(R&&R.loggingDirectives&&R.loggingDirectives.visibility&&R.loggingDirectives.visibility.types||""))||1};var Ni;Ni=function(){};
_.Hy=function(){Ni.instance||(Ni.instance=new Ni);return Ni.instance};
Ni.prototype.setClient=function(R){_.A7(Py().setClient).bind(Py())(R)};
_.ToL=function(){_.Hy();_.A7(Py().JSC$12482_newScreen).bind(Py())()};
Ni.prototype.clear=function(){_.A7(Py().clear).bind(Py())()};
Ni.prototype.reportShown=function(R,y,u){_.A7(Py().reportShown).bind(Py())(R,y,u)};
Ni.prototype.reportHidden=function(R,y,u){return _.A7(Py().reportHidden).bind(Py())(R,y,u)};
var cuO=function(R,y){return _.A7(Py().JSC$12482_getTrackingParams).bind(Py())(y)},s9L=function(R,y){return _.A7(Py().JSC$12482_getNearestParentVe).bind(Py())(y)};var TD,oOT;TD=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};
_.GN=function(){TD.instance||(TD.instance=new TD);return TD.instance};
TD.prototype.setClient=function(R){this.client=R};
oOT=function(R,y,u){u=u===void 0?{}:u;_.A7(function(){var v,Q,M,K=((v=_.e(y==null?void 0:y.commandMetadata,_.QL))==null?void 0:v.rootVe)||((Q=_.e(y==null?void 0:y.commandMetadata,bjg))==null?void 0:(M=Q.screenVisualElement)==null?void 0:M.uiType);if(K){v=_.e(y==null?void 0:y.commandMetadata,ysT);if(v==null?0:v.parentTrackingParams){var h=_.U4(v.parentTrackingParams);if(v.parentCsn)var b=v.parentCsn}else u.clickedVisualElement?h=u.clickedVisualElement:y.clickTrackingParams&&(h=_.U4(y.clickTrackingParams));
a:{v=_.e(y,_.zM);Q=_.e(y,uJE);if(v){if(Q=xdU(v,"VIDEO")){v={token:Q,videoId:v.videoId};break a}}else if(Q&&(v=xdU(Q,"PLAYLIST"))){v={token:v,playlistId:Q.playlistId};break a}v=void 0}u=Object.assign({},{cttAuthInfo:v,parentCsn:b},u);if(_.f("expectation_logging")){var N;u.loggingExpectations=((N=_.e(y==null?void 0:y.commandMetadata,bjg))==null?void 0:N.loggingExpectations)||void 0}_.om(R,K,h,u)}else _.kT(new _.OL("Error: Trying to create a new screen without a rootVeType",y))})()};
_.om=function(R,y,u,v){v=v===void 0?{}:v;_.A7(function(){IHL.includes(y)||(_.kT(new _.OL("createClientScreen() called with a non-page VE",y)),y=83769);v.isHistoryNavigation||(R.forwardHistoryStack=[],R.backHistoryStack.push({rootVe:y,key:v.key||""}));R.graftQueue=[];R.stateChangedQueue=[];v.dataPromises?xHc(R,y,u,v):BoY(R,y,u,v)})()};
_.fH5=function(R,y,u){u=u===void 0?0:u;_.A7(function(){y.then(function(v){R.pendingScreenCreation.has(u)&&R.pendingScreenFn&&R.pendingScreenFn();var Q=_.$I(u),M=_.Ef(u);if(Q&&M){var K={automatedLogEventSource:3},h;(v==null?0:(h=v.response)==null?0:h.trackingParams)&&t_(R.client,Q,M,_.U4(v.response.trackingParams),!1,K);var b;(v==null?0:(b=v.playerResponse)==null?0:b.trackingParams)&&t_(R.client,Q,M,_.U4(v.playerResponse.trackingParams),!1,K)}})})()};
TD.prototype.graftServerVe=function(R,y,u){var v=this;return _.A7(function(){var Q=_.U4(R);_.x0(v,Q,y,u);return Q})()};
_.zyc=function(R,y,u,v){return _.f("enable_client_ve_spec")&&y.clientVeSpec?(y=_.$6(y.clientVeSpec.uiType,void 0,y.clientVeSpec.elementIndex,y.clientVeSpec.clientYoutubeData,void 0,y),_.x0(R,y,u,v)?y:null):y.trackingParams?R.graftServerVe(y.trackingParams,u,v):null};
_.nk=function(R,y,u,v){return _.A7(function(){if(!y.veType)return _.Uh(new _.OL("Error: Trying to graft a client VE without a veType.")),null;if(y.visibilityTypes){var Q=y.visibilityTypes.reduce(function(M,K){return M|K});
Q={visibility:{types:String(Q)}}}Q=_.$6(y.veType,y.visualElement,y.elementIndex,y.clientYouTubeData,void 0,Q);return _.x0(R,Q,u,v)?Q:null})()};
_.x0=function(R,y,u,v){v=v===void 0?0:v;return _.A7(function(){if(R.pendingScreenCreation.has(v))return R.graftQueue.push([y,u]),!0;var Q=_.$I(v),M=u||_.Ef(v);if(Q&&M){if(_.f("combine_ve_grafts")){var K=R.cachedVisualElements.get(M.toString());K?K.push(y):(R.cachedRootVisualElements.set(M.toString(),M),R.cachedVisualElements.set(M.toString(),[y]));R.attachTimeout||(R.attachTimeout=_.Oh(_.WG,function(){e_i(R,Q)},1200))}else t_(R.client,Q,M,y);
return!0}return!1})()};
_.Br=function(R,y,u){u=u===void 0?0:u;var v=R.recurringGrafts.get(u)||new Map;if(_.f("smarter_ve_dedupping"))for(var Q=Array.from(v.keys()),M=0;M<Q.length;M++){var K=void 0,h=void 0;var b=y;var N=Q[M];N.isClientVe()&&b.isClientVe()?(K=b.getAsJson(),h=N.getAsJson(),b=K.veType!==h.veType||K.elementIndex!==h.elementIndex||K.dataElement!==h.dataElement||b.getLoggingDirectives()!==N.getLoggingDirectives()?!1:!0):b=N.veData.trackingParams!==void 0&&b.veData.trackingParams!==void 0?((h=b.veData)==null?void 0:
h.trackingParams)===((K=N.veData)==null?void 0:K.trackingParams):!1;if(b)return}else if(v.has(y))return;v.set(y,void 0);R.recurringGrafts.set(u,v);_.$I(u)==="UNDEFINED_CSN"||R.pendingScreenCreation.has(u)||_.x0(R,y,void 0,u)};
_.fx=function(R,y,u,v){v=_.$I(v===void 0?0:v);if(!v)return!1;lyS(R.client,v,y,u);return!0};
_.e2=function(R,y,u,v){if(!y)return!1;v=_.$I(v===void 0?0:v);if(!v)return!1;lyS(R.client,v,_.U4(y),u);return!0};
_.gW=function(R,y){var u=y.getScreenLayer&&y.getScreenLayer();if(y.visualElement)return _.fx(R,y.visualElement,void 0,u);y=cuO(_.Hy(),y);return _.e2(R,y,void 0,u)};
TD.prototype.clickCommand=function(R,y,u){return _.e2(this,R.clickTrackingParams,y,u===void 0?0:u)};
TD.prototype.stateChanged=function(R,y,u){this.visualElementStateChanged(_.U4(R),y,u===void 0?0:u)};
TD.prototype.visualElementStateChanged=function(R,y,u){u=u===void 0?0:u;u===0&&this.pendingScreenCreation.has(u)?this.stateChangedQueue.push([R,y]):this.logStateChanged(R,y,u)};
TD.prototype.logStateChanged=function(R,y,u){u=u===void 0?0:u;var v=_.$I(u);R=R||_.Ef(u);return v&&R?(O28(this.client,v,R,y),!0):!1};
var xHc=function(R,y,u,v){v=v===void 0?{}:v;R.pendingScreenCreation.add(v.layer||0);R.pendingScreenFn=function(){BoY(R,y,u,v);var K=_.Ef(v.layer);if(K){for(var h=_.V(R.graftQueue),b=h.next();!b.done;b=h.next())b=b.value,_.x0(R,b[0],b[1]||K,v.layer);K=_.V(R.stateChangedQueue);for(h=K.next();!h.done;h=K.next())h=h.value,R.logStateChanged(h[0],h[1])}};
u||_.$I(v.layer)||R.pendingScreenFn();if(v.dataPromises)for(var Q=_.V(v.dataPromises),M=Q.next();!M.done;M=Q.next())_.fH5(R,M.value,v.layer);else _.dI(Error("wf"))},BoY=function(R,y,u,v){v=v===void 0?{}:v;
var Q=void 0;v.layer||(v.layer=0);Q=v.parentLayer!==void 0?v.parentLayer:v.layer;var M=_.$I(Q);Q=_.Ef(Q);var K=u||Q,h;K&&(v.parentCsn!==void 0?h={clientScreenNonce:v.parentCsn,visualElement:K}:M&&M!=="UNDEFINED_CSN"&&(h={clientScreenNonce:M,visualElement:K}));var b,N=_.EB("EVENT_ID");M==="UNDEFINED_CSN"&&N&&(b={servletData:{serializedServletEventId:N}});_.f("combine_ve_grafts")&&M&&e_i(R,M);_.f("no_client_ve_attach_unless_shown")&&K&&M&&N9L(K,M);try{var T=_.b2z(R.client,y,h,v.csnToClone,v.cttAuthInfo,
b,v.implicitGestureType,void 0,v.loggingExpectations)}catch(l){_.Eh(l,{rootVeType:y,rootVe:Q,parentVisualElement:u,currentCsn:M,parentEl:h,csnToClone:v.csnToClone});_.dI(l);return}_.Xc(T,y,v.layer,v.cttAuthInfo);M&&M!=="UNDEFINED_CSN"&&Q&&!fRS(M)&&fyv(R.client,M,Q,!0);R.backHistoryStack[R.backHistoryStack.length-1]&&!R.backHistoryStack[R.backHistoryStack.length-1].csn&&(R.backHistoryStack[R.backHistoryStack.length-1].csn=T||"");_.E9({clientScreenNonce:T});_.ToL();var x=_.Ef(v.layer);M&&M!=="UNDEFINED_CSN"&&
x&&(_.f("web_mark_root_visible")||_.f("music_web_mark_root_visible"))&&_.YF(T,x);R.pendingScreenCreation.delete(v.layer||0);R.pendingScreenFn=void 0;var B;(B=R.recurringGrafts.get(v.layer))==null||B.forEach(function(l,Z){l?_.x0(R,Z,l,v.layer):x&&_.x0(R,Z,x,v.layer)});
lH5(R)},lH5=function(R){for(var y=0;y<R.afterNewScreenOneOffJobs.length;y++){var u=R.afterNewScreenOneOffJobs[y];
try{u()}catch(v){_.dI(v)}}for(y=R.afterNewScreenOneOffJobs.length=0;y<R.afterNewScreenRecurringJobs.length;y++){u=R.afterNewScreenRecurringJobs[y];try{u()}catch(v){_.dI(v)}}},e_i=function(R,y){if(y===void 0)for(var u=xnG(),v=0;v<u.length;v++)u[v]!==void 0&&e_i(R,u[v]);
else R.cachedVisualElements.forEach(function(Q,M){(M=R.cachedRootVisualElements.get(M))&&FfL(R.client,y,M,Q)}),R.cachedVisualElements.clear(),R.cachedRootVisualElements.clear(),R.attachTimeout=void 0};var lt=function(R){R=R===void 0?{layer:0}:R;this.hasRun=!1;this.createScreenConfig=R;R={};this.diq=(R.response=!1,R.playerResponse=!1,R)};
_.O(lt,VA);lt.prototype.validate=function(R){return!(!R.data||!R.data.response&&!R.data.playerResponse)};
lt.prototype.handle=function(R){var y=_.GN(),u=this.createScreenConfig.layer;R.data.response&&R.data.response.trackingParams&&!this.diq.response&&(y.graftServerVe(R.data.response.trackingParams,void 0,u),this.diq.response=!0);R.data.playerResponse&&R.data.playerResponse.trackingParams&&!this.diq.playerResponse&&(y.graftServerVe(R.data.playerResponse.trackingParams,void 0,u),this.diq.playerResponse=!0)};var OT=function(){this.qG=_.uD();this.t7=[];this.b3H=0};
OT.prototype.processChunk=function(R){if(R){for(var y=_.V(this.t7),u=y.next();!u.done;u=y.next())u=u.value,u.validate(R)&&(u.handle(R),u.hasRun=!0);_.qQ("np"+this.b3H);this.b3H++}};var uE;var Be4,OWY,nOc;_.lX=function(R,y,u,v,Q,M,K){K=K===void 0?[]:K;this.buildCommandPayload=R;this.navigate=y;this.handleServiceRequest=u;this.sendAction=v;this.JSC$12524_screenManager=Q;this.commandResolverMap=M;this.autoLogResolverAllowlist=K;this.pendingCommands=new Set;this.isTracingEnabled=!1;OWY(this)};
Be4=function(R,y,u){var v=MNU,Q=JHE,M=_.GN(),K=ZWV;u=u===void 0?[]:u;_.lX.instance=new _.lX(R,y,v,Q,M,K,u)};
OWY=function(R){if(!R.isTracingEnabled&&rjG("command")){var y=R.resolveCommand;R.resolveCommand=function(u,v){a:{for(Q in u)if(Object.prototype.hasOwnProperty.call(u,Q)){var Q={commandType:Q};break a}Q={}}return dvU("command",Q,y.bind(this,u,v))};
R.isTracingEnabled=!0}};
nOc=function(R,y,u){if(!R.commandResolverMap)return!1;var v=$vc(y,R.commandResolverMap);return v?((R.autoLogResolverAllowlist.some(function(Q){return!!_.e(y,Q)})||(u==null?0:u.forceClickLogging))&&HWY(R,y,u),v instanceof Promise?v.then(function(Q){Q.resolve(y,u)}):v.resolve(y,u),!0):!1};
_.lX.prototype.resolveCommand=function(R,y){var u=this,v=GZT(R);if(nOc(this,R,y))return!0;if(v)return rpY(this,R,y);if(!this.buildCommandPayload)return UvS(R,"Unhandled command by buildCommandPayload"),!1;var Q=this.buildCommandPayload(R,y);if(y==null?0:y.commandController)Q.commandController=y.commandController;if(Q.type===0){if(!this.navigate)return kh4(R,"navigate"),!1;if(!PHc(Q.command))return UvS(R,"Page requests need to specify a url"),!1;_.f("logging_avoid_blocking_during_navigation")&&_.LxU().transition("application_navigating");
R=this.navigate(Q)||[];x1g(R).then(function(){u.pendingCommands.delete(Q.command)});
return!0}if(Q.type===1){if(!this.handleServiceRequest)return kh4(R,"handleServiceRequest"),!1;(y==null?0:y.forceClickLogging)&&HWY(this,Q.command,y);R=this.handleServiceRequest(Q);x1g(R).then(function(){u.pendingCommands.delete(Q.command)});
return!0}if(Q.type===2){if(!this.sendAction)return kh4(R,"sendAction"),!1;HWY(this,Q.command,y);this.sendAction(Q);return!0}return!1};
var HWY=function(R,y,u){if((u==null||!u.disableClickTracking)&&R.JSC$12524_screenManager)if(y.clickTrackingParams&&_.f("log_click_with_layer_from_element_in_command_handler")){var v;u=u==null?void 0:(v=u.form)==null?void 0:v.element;R.JSC$12524_screenManager.clickCommand(y,null,u&&u.getScreenLayer&&u.getScreenLayer())}else y.clickTrackingParams?R.JSC$12524_screenManager.clickCommand(y):!_.f("disable_clicked_visual_element_in_command_handler")&&(u==null?0:u.clickedVisualElement)&&_.fx(R.JSC$12524_screenManager,
u.clickedVisualElement)},GZT=function(R){var y=!!_.e(R,_.TP),u;
R=((u=_.e(R,_.xF))==null?void 0:u.signal)==="CLIENT_SIGNAL";return y||R},rpY=function(R,y,u){var v=_.e(y,_.TP);
if(v)var Q=(v==null?void 0:v.commands)||[];else{var M;if(((M=_.e(y,_.xF))==null?void 0:M.signal)==="CLIENT_SIGNAL"){var K;Q=((K=_.e(y,_.xF))==null?void 0:K.actions)||[]}}if(Q){y=_.V(Q);for(Q=y.next();!Q.done;Q=y.next()){Q=Q.value;try{R.resolveCommand(Q,u)}catch(h){h instanceof Error&&_.dI(h)}}return!0}UvS(y,"Could not handle the meta command");return!1},PHc=function(R){var y;
return!((y=_.e(R==null?void 0:R.commandMetadata,_.QL))==null||!y.url)};var ZX=function(){VA.apply(this,arguments)};
_.O(ZX,VA);ZX.prototype.validate=function(R){var y,u;return!this.hasRun&&!!((y=R.data.response)==null?0:(u=y.onResponseReceivedEndpoints)==null?0:u.length)};
ZX.prototype.handle=function(R){var y=_.lX.instance;R=_.V(R.data.response.onResponseReceivedEndpoints);for(var u=R.next();!u.done;u=R.next())y.resolveCommand(u.value)};var WGL,dHc,UHc;
WGL=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=_.NQ();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.Hr=function(){dHc||(dHc=new WGL);return dHc};
UHc=function(){var R=_.Hr();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};
_.kZc=function(){var R=_.Hr(),y=R.mediaSessionPipActivation,u=R.watchPipActivation,v=R.watchWhileActivation,Q=R.playlistWatchPageActivation,M=R.lockupActivation,K=R.showMiniplayerCommandActivation,h=R.navigatingAwayFromWatchDeletedVideo,b=R.shortsPipActivation,N=R.playlistSuggestionsShelfActivation,T=R.productDetailsPageActivation,x=R.miniAppPageActivation,B=R.playablesDestPageActivation;return!R.miniplayerButtonActivation&&!Q&&!N&&!T&&!x&&!B&&!M&&!K&&!y&&!u&&!v&&!b||h};var xuU;_.nx=Qw("FEwhat_to_watch","/",3854);_.BLW=Qw("FEdownloads","/feed/downloads",42352);xuU=Qw("FEmusic_offline","browse/FEmusic_offline",42352);var vV=function(R,y){y=y===void 0?[]:y;var u=u===void 0?[]:u;y=y8P.apply(null,[uC4.apply(null,_.P$(y))].concat(_.P$(u)));this.store=MwU(R,void 0,y)};
vV.prototype.getState=function(){return this.store.getState()};
vV.prototype.dispatch=function(R){return this.store.dispatch(R)};
vV.prototype.subscribe=function(R){return this.store.subscribe(R)};
vV.prototype.replaceReducer=function(R){return this.store.replaceReducer(R)};
vV.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.GD=function(R,y,u){var v=y(R.getState());return R.subscribe(function(){var Q=y(R.getState());if(Q!==v){var M=v;v=Q;u(Q,M)}})};var nWS;_.Gw=function(R,y,u){return _.iE({type:"REPLACE_ENTITY",payload:{entityPayload:u,entityType:R,key:y}})};
nWS=function(R){return _.iE({type:"REPLACE_ENTITIES",payload:R})};
_.DT=function(R,y,u,v){return _.iE({type:"UPDATE_ENTITY",payload:{entityPayload:u,entityType:R,key:y,mergeOption:v}})};var sQT=function(R){var y=this;R=R===void 0?[]:R;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;R.forEach(function(u){y.append(u)})};
_.J=sQT.prototype;_.J.getLength=function(){return this.totalLength};
_.J.append=function(R){var y=this.arrays.length===0?!1:(y=this.arrays[this.arrays.length-1])&&y.buffer===R.buffer&&y.byteOffset+y.length===R.byteOffset;y?(y=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(y.buffer,y.byteOffset,y.length+R.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(R);this.totalLength+=R.length};
_.J.split=function(R){for(var y=new sQT,u=new sQT,v=_.V(this.arrays),Q=v.next();!Q.done;Q=v.next())Q=Q.value,R>=Q.length?(y.append(Q),R-=Q.length):R?(y.append(new Uint8Array(Q.buffer,Q.byteOffset,R)),u.append(new Uint8Array(Q.buffer,Q.byteOffset+R,Q.length-R)),R=0):u.append(Q);return{headView:y,tailView:u}};
_.J.extract=function(R,y){return this.split(R).tailView.split(y).headView};
_.J.isFocused=function(R){return R>=this.arrayPos&&R<this.arrayPos+this.arrays[this.arrayIdx].length};
_.J.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 EO5=function(R,y){R.focus(y);return R.arrays[R.arrayIdx][y-R.arrayPos]};(function(){var R=function(v){return new Uint8Array(v)},y=function(v){for(var Q=new Uint8Array(v.length),M=0;M<v.length;M++)Q[M]=v[M];
return Q},u=new Uint8Array([1]);
return u.length===1&&u[0]===1?R:y})();
var ttP=Array(1024),pOU=window.TextDecoder?new TextDecoder:void 0,ayW=window.TextEncoder?new TextEncoder:void 0;var LfO=function(R){this.arrayView=R;this.pos=0;this.pendingTagAndType=-1},Kz=function(R){var y=EO5(R.arrayView,R.pos);
++R.pos;if(y<128)return y;for(var u=y&127,v=1;y>=128;)y=EO5(R.arrayView,R.pos),++R.pos,v*=128,u+=(y&127)*v;return u},z$4=function(R,y){var u=R.pendingTagAndType;
for(R.pendingTagAndType=-1;R.pos+1<=R.arrayView.totalLength;){u<0&&(u=Kz(R));var v=u>>3,Q=u&7;if(v===y)return!0;if(v>y){R.pendingTagAndType=u;break}u=-1;switch(Q){case 0:Kz(R);break;case 1:R.pos+=8;break;case 2:v=Kz(R);R.pos+=v;break;case 5:R.pos+=4}}return!1};var C3E=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=YDW(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},wN=function(R,y){y=R.pos+y;
if(!(R.buf.length>=y)){for(var u=R.buf.length*2;u<y;)u*=2;R.buf=YDW(u,R.wasm,R.buf.subarray(0,R.pos));R.view=new DataView(R.buf.buffer,R.buf.byteOffset,R.buf.byteLength)}},F9=function(R,y){if(y>268435455){wN(R,4);
for(var u=y&1073741823,v=0;v<4;v++)R.view.setUint8(R.pos,u&127|128),u>>=7,R.pos+=1;y=Math.floor(y/268435456)}for(wN(R,4);y>127;)R.view.setUint8(R.pos,y&127|128),y>>=7,R.pos+=1;R.view.setUint8(R.pos,y);R.pos+=1};for(var Rlz={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,contextNoteUserRatingEntityPayload:576,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,
emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,
mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,
musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,
suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},gRT={},$HY=_.V(Object.entries(Rlz)),q$8=$HY.next();!q$8.done;q$8=$HY.next()){var XE5=_.V(q$8.value),mHw=XE5.next().value,Apc=XE5.next().value,DHY=mHw,pEb=Apc;pEb&&(gRT[pEb]=DHY)};var uav=function(R,y){R=R===void 0?{}:R;switch(y.type){case "ENTITY_LOADED":return y.payload.reduce(function(v,Q){var M,K=(M=Q.options)==null?void 0:M.persistenceOption;if(K&&K!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&K!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return v;if(!Q.entityKey)return _.dI(Error("Af")),v;if(Q.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!Q.payload)return Q=new _.OL("REPLACE entity mutation is missing a payload",{entityKey:Q.entityKey}),_.dI(Q),v;var h=(0,_.Ps.getAnyKey)(Q.payload);
return QGW(v,h,Q.entityKey,Q.payload[h])}if(Q.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{Q=Q.entityKey;try{var b=_.bE(Q).entityType;h=QGW(v,b,Q);break a}catch(x){if(x instanceof Error){Q=new _.OL("Failed to deserialize entity key",{entityKey:Q,originalMessage:x.message});_.dI(Q);h=v;break a}throw x;}h=void 0}return h}if(Q.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!Q.payload)return Q=new _.OL("UPDATE entity mutation is missing a payload",{entityKey:Q.entityKey}),_.dI(Q),v;h=(0,_.Ps.getAnyKey)(Q.payload);
var N,T;return jGW(v,h,Q.entityKey,Q.payload[h],(N=Q.fieldMask)==null?void 0:(T=N.mergeOptions)==null?void 0:T.repeatedFieldsMergeOption)}return v},R);
case "REPLACE_ENTITY":var u=y.payload;return QGW(R,u.entityType,u.key,u.entityPayload);case "REPLACE_ENTITIES":return Object.keys(y.payload).reduce(function(v,Q){var M=y.payload[Q];return Object.keys(M).reduce(function(K,h){return QGW(K,Q,h,M[h])},v)},R);
case "UPDATE_ENTITY":return u=y.payload,jGW(R,u.entityType,u.key,u.entityPayload,u.mergeOption);default:return R}};var MEP;var t1g=!1,rQ,Pr,Wr,dQ,UT,cpY=function(R){_.Z0.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!t1g){var y,u=new Uint8Array(256),v=new Uint8Array(256);var Q=1;for(y=0;y<256;y++)u[Q]=y,v[y]=Q,Q^=Q<<1^(Q>>7&&283);rQ=new Uint8Array(256);Pr=o3(256);Wr=o3(256);dQ=o3(256);UT=o3(256);for(var M=0;M<256;M++){Q=M?v[255^u[M]]:0;Q^=Q<<1^Q<<2^Q<<3^Q<<4;Q=Q&255^Q>>>8^99;rQ[M]=Q;y=Q<<1^(Q>>7&&283);var K=y^Q;Pr[M]=y<<24|Q<<16|Q<<8|K;Wr[M]=K<<24|Pr[M]>>>8;dQ[M]=Q<<24|Wr[M]>>>
8;UT[M]=Q<<24|dQ[M]>>>8}t1g=!0}Q=o3(44);for(u=0;u<4;u++)Q[u]=R[4*u]<<24|R[4*u+1]<<16|R[4*u+2]<<8|R[4*u+3];for(v=1;u<44;u++)R=Q[u-1],u%4||(R=(rQ[R>>16&255]^v)<<24|rQ[R>>8&255]<<16|rQ[R&255]<<8|rQ[R>>>24],v=v<<1^(v>>7&&283)),Q[u]=Q[u-4]^R;this.key=Q};
_.O(cpY,_.Z0);
cpY.prototype.encrypt=function(R){var y=R.length;R=new Uint8Array(R.buffer.slice(R.byteOffset,R.byteOffset+y));for(var u=this.cipherBlock,v=0;v<y&&this.blockOffset<16;)R[v++]^=u[this.blockOffset++];for(var Q=y-(y-v)%16;v<Q;)aHg(this),R[v++]^=u[0],R[v++]^=u[1],R[v++]^=u[2],R[v++]^=u[3],R[v++]^=u[4],R[v++]^=u[5],R[v++]^=u[6],R[v++]^=u[7],R[v++]^=u[8],R[v++]^=u[9],R[v++]^=u[10],R[v++]^=u[11],R[v++]^=u[12],R[v++]^=u[13],R[v++]^=u[14],R[v++]^=u[15];if(v<y)for(aHg(this),this.blockOffset=0;v<y;)R[v++]^=
u[this.blockOffset++];return R};
var aHg=function(R){for(var y=R.key,u=R.counter[0]^y[0],v=R.counter[1]^y[1],Q=R.counter[2]^y[2],M=R.counter[3]^y[3],K=3;K>=0&&!(R.counter[K]=-~R.counter[K]);K--);for(var h,b,N=4;N<40;)K=Pr[u>>>24]^Wr[v>>16&255]^dQ[Q>>8&255]^UT[M&255]^y[N++],h=Pr[v>>>24]^Wr[Q>>16&255]^dQ[M>>8&255]^UT[u&255]^y[N++],b=Pr[Q>>>24]^Wr[M>>16&255]^dQ[u>>8&255]^UT[v&255]^y[N++],M=Pr[M>>>24]^Wr[u>>16&255]^dQ[v>>8&255]^UT[Q&255]^y[N++],u=K,v=h,Q=b;R=R.cipherBlock;K=y[40];R[0]=rQ[u>>>24]^K>>>24;R[1]=rQ[v>>16&255]^K>>16&255;R[2]=
rQ[Q>>8&255]^K>>8&255;R[3]=rQ[M&255]^K&255;K=y[41];R[4]=rQ[v>>>24]^K>>>24;R[5]=rQ[Q>>16&255]^K>>16&255;R[6]=rQ[M>>8&255]^K>>8&255;R[7]=rQ[u&255]^K&255;K=y[42];R[8]=rQ[Q>>>24]^K>>>24;R[9]=rQ[M>>16&255]^K>>16&255;R[10]=rQ[u>>8&255]^K>>8&255;R[11]=rQ[v&255]^K&255;K=y[43];R[12]=rQ[M>>>24]^K>>>24;R[13]=rQ[u>>16&255]^K>>16&255;R[14]=rQ[v>>8&255]^K>>8&255;R[15]=rQ[Q&255]^K&255};var S$5=!1;(function(){var R=function(v){return new Uint8Array(v)},y=function(v){for(var Q=new Uint8Array(v.length),M=0;M<v.length;M++)Q[M]=v[M];
return Q},u=new Uint8Array([1]);
return u.length===1&&u[0]===1?R:y})();
var k0;var ssb=function(R){a:{if(!S$5&&!zu){if(k0){var y=k0;break a}k0=(y=window.crypto)==null?void 0:y.subtle;var u,v,Q;if(((u=k0)==null?0:u.importKey)&&((v=k0)==null?0:v.sign)&&((Q=k0)==null?0:Q.encrypt)){y=k0;break a}k0=void 0}y=void 0}y&&(this.nativeEncryptor=new Y$b(R,y));this.encryptorPolyfill=new LGw(R)};
ssb.prototype.encrypt=function(R,y){var u=this,v;return _.I(function(Q){switch(Q.nextAddress){case 1:if(!u.nativeEncryptor){Q.jumpTo(2);break}_.wY(Q,3);return Q.yield(u.nativeEncryptor.encrypt(R,y),5);case 5:return Q.return(Q.yieldResult);case 3:v=_.B$(Q),_.kT(v),S$5=!0,u.nativeEncryptor=void 0;case 2:return Q.return(u.encryptorPolyfill.encrypt(R,y))}})};
ssb.prototype.decrypt=function(R,y){return this.encrypt(R,y)};
var Y$b=function(R,y){this.JSC$12597_aesKey=R;this.subtleCrypto=y};
Y$b.prototype.encrypt=function(R,y){var u=this,v;return _.I(function(Q){if(Q.nextAddress==1)return _.wY(Q,2),Q.yield(z_Y(u,R,y),4);if(Q.nextAddress!=2)return Q.return(Q.yieldResult);v=_.B$(Q);_.kT(v);S$5=!0;throw v;})};
var z_Y=function(R,y,u){var v,Q;return _.I(function(M){switch(M.nextAddress){case 1:if(R.cryptoKey){M.jumpTo(2);break}return M.yield(R.subtleCrypto.importKey("raw",R.JSC$12597_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:R.cryptoKey=M.yieldResult;case 2:return v={name:"AES-CTR",counter:u,length:128},M.yield(R.subtleCrypto.encrypt(v,R.cryptoKey,y),4);case 4:return Q=M.yieldResult,M.return(new Uint8Array(Q))}})},LGw=function(R){this.JSC$12600_aesKey=R};
LGw.prototype.encrypt=function(R,y){this.encryptor||(this.encryptor=new cpY(this.JSC$12600_aesKey));for(var u=this.encryptor,v=0;v<4;v++)u.counter[v]=y[v*4]<<24|y[v*4+1]<<16|y[v*4+2]<<8|y[v*4+3];u.blockOffset=16;return this.encryptor.encrypt(R)};
LGw.prototype.decrypt=function(R,y){return this.encrypt(R,y)};var gOb={},itO=yO("yt-idb-pref-storage",{objectStores:(gOb.prefs={addedAtVersion:1},gOb),shared:!1,upgrade:function(R,y){y(1)&&me(XM(R,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.ET=function(R){this.token=R};
_.ET.getInstance=function(){return _.I(function(R){return R.return(new Promise(function(y){_.Rz().then(function(u){u?(_.ET.instance||(_.ET.instance=new _.ET(u)),y(_.ET.instance)):y(void 0)})}))})};
_.ET.prototype.get=function(R){var y=this,u,v,Q;return _.I(function(M){if(M.nextAddress==1)return M.yield(KEU(y.token),2);if(M.nextAddress!=3)return u=M.yieldResult,M.yield(u.get("prefs",R),3);v=M.yieldResult;if(!v)return M.return();Q=(0,_.uQ)();return v.expirationTimestampMs<=Q?M.return():M.return(v.value)})};
_.ET.prototype.set=function(R,y,u){u=u===void 0?31536E3:u;var v=this,Q,M,K;return _.I(function(h){if(h.nextAddress==1)return Q=(0,_.uQ)(),M={key:R,value:y,expirationTimestampMs:Q+u*1E3},h.yield(KEU(v.token),2);K=h.yieldResult;return h.yield(K.put("prefs",M),0)})};
_.ET.prototype.remove=function(R){var y=this,u;return _.I(function(v){if(v.nextAddress==1)return v.yield(KEU(y.token),2);u=v.yieldResult;return v.yield(u.delete("prefs",R),0)})};var $0={},CH5=($0.INVALID_ENCODER_VERSION="Invalid encoder version",$0.KEY_CREATION_FAILED="Failed to create encoder key",$0.UNKNOWN_DECODE_ERROR="Failed to decode PES data",$0.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",$0.WRONG_DATA_TYPE="Encoder cannot process the data type",$0),xs=function(R,y){y=y===void 0?{}:y;_.OL.call(this,CH5[R],Object.assign({},{name:"PESEncoderError",type:R},y));this.type=R;this.level="WARNING";Object.setPrototypeOf(this,xs.prototype)};
_.O(xs,_.OL);var qi=function(){};
qi.prototype.encode=function(R,y){try{return this.encodeImpl(R,y)}catch(u){FEW(u,hlz)}};
qi.prototype.decode=function(R,y){try{return this.decodeImpl(R,y)}catch(u){FEW(u,bt4)}};
var RwG=function(R,y,u){var v;return _.I(function(Q){if(Q.nextAddress==1)return _.wY(Q,2),Q.yield(R.decodeAsyncImpl(y,u),4);if(Q.nextAddress!=2)return Q.return(Q.yieldResult);v=_.B$(Q);FEW(v,bt4);_.f$(Q)})};
qi.prototype.decodeAsyncImpl=function(R,y){return Promise.resolve(this.decodeImpl(R,y))};var Xe=function(R,y){this.aesEncryptor=R;this.aesEncryptorAsync=y};
_.O(Xe,qi);Xe.prototype.encodeImpl=function(R,y){y=wev(y);R=(new TextEncoder).encode(JSON.stringify(R));return this.aesEncryptor.encrypt(R,y)};
Xe.prototype.decodeImpl=function(R,y){if(!(R instanceof Uint8Array))throw IET(1);var u=new TextDecoder;y=wev(y);R=this.aesEncryptor.decrypt(R,y);return JSON.parse(u.decode(R))};
Xe.prototype.decodeAsyncImpl=function(R,y){var u=this,v,Q,M;return _.I(function(K){if(K.nextAddress==1){if(!(R instanceof Uint8Array))throw IET(1);v=new TextDecoder;Q=wev(y);return K.yield(u.aesEncryptorAsync.decrypt(R,Q),2)}M=K.yieldResult;return K.return(JSON.parse(v.decode(M)))})};var NuL={accountLinkStatusEntity:ZVL,booleanEntity:uQ5,buttonEntity:wRc,captionTrack:uag,channelHandle:WFV,chipEntity:a5g,commerceAcquisitionClientPayloadEntity:mJ5,commerceCartListEntity:AXT,contextNoteFeedEntityPayload:c8V,contextNoteUserRatingEntityPayload:adw,continuationTokenEntity:qbb,downloadQualityPickerEntity:HjL,downloadsPageRefreshTokenEntity:GXg,downloadsPageViewConfigurationEntity:Sbw,downloadStatusEntity:nuw,dismissState:SxG,sfvAudioItemCurrentlyPlayingEntity:kCT,emojiFountainDataEntity:hNY,
emojiCustomizationSetEntity:ILG,fakeChannel:jZc,fakePlaylist:MFT,fakePlaylistEntryCollection:Jx5,fakeVideo:iV8,fakeVideoDescription:KBc,featuredProductsEntity:b2L,flowStateEntity:fR8,iconBadgeEntity:DJi,interstitialInteractionStateEntity:Dnc,likeButtonAnimationEntity:Yb8,liveChatPollStateEntity:sZT,liveViewerLeaderboardChatEntryPointStateEntity:Nub,liveViewerLeaderboardPointsEntity:Tuw,liveReactionsDataEntity:bQG,logoEntity:mn5,macroMarkerEntity:Ljg,mainDownloadsLibraryEntity:rA5,mainDownloadsListEntity:Pkb,
mainPlaylistDownloadStateEntity:ddV,mainPlaylistEntity:Xb5,mainPlaylistVideoEntity:mdi,mainVideoDownloadStateEntity:Udb,mainVideoEntity:tH5,markersEngagementPanelSyncEntity:sUV,markersVisibilityOverrideEntity:zqi,musicAlbumReleaseDetail:O2Y,musicAlbumReleaseDownloadMetadataEntity:xvg,musicAlbumRelease:ly8,musicAlbumReleaseUserDetail:Z2i,musicArtistDetail:nRY,musicArtist:H2g,musicArtistUserDetail:GhG,musicDownloadsLibraryEntity:B95,musicLibraryEdit:rjc,musicLibraryStatusEntity:P3w,musicPlaylist:WfV,
musicPlaylistDownloadMetadataEntity:fyg,musicShare:Uv8,musicTrackDetail:ERV,musicTrackDownloadMetadataEntity:e$T,musicTrack:khV,musicTrackUserDetail:$vw,offlineOrchestrationActionWrapperEntity:vWw,offlineVideoPolicy:QGK,offlineVideoStreams:jGK,offlineabilityEntity:kXK,orchestrationWebSamplingEntity:EuY,pageHeaderEntity:v1V,pdpStateEntity:pRY,pinnedProductEntity:Ffb,playbackData:MEi,playerStateEntity:gub,quantityIncrementerEntity:tuw,refresh:J4g,saveToPlaylistListEntity:ueb,selectedChipIndexEntityPayload:CkT,
settingEntity:exT,stringEntity:vcV,suggestedFeedbackChipStateEntity:R$b,transfer:VE8,trendingOfferEntity:wOK,videoDownloadContextEntity:itT,videoOverviewAsyncDataEntity:b6K,videoPlaybackPositionEntity:o1c,votingEntity:JXV,ytMainChannelEntity:cAg,youchatPendingResponseEntity:yjc,ytMainDownloadedVideoEntity:$d8,ytMainVideoEntity:aaT};var yr5,vQb,Oq,OtU,ZtW,Mai,VaT,Jri,jpL;yr5=function(R,y){this.JSC$12619_wrapped=R;this.JSC$12619_encoderRegistry=y;this.changedKeys={}};
vQb=function(R,y){return uxb(R.JSC$12619_encoderRegistry,y.version).decode(y.data,y.key)};
_.Qpg=function(R,y,u){return R.JSC$12619_wrapped.objectStore("EntityStore").get(y).then(function(v){if(v){if(u&&v.entityType!==u)throw Error("Bf");return vQb(R,v)}})};
Oq=function(R,y,u){return u?(u=u.map(function(v){return _.Qpg(R,v,y)}),mi.all(u)):R.JSC$12619_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(y)).then(function(v){return v.map(function(Q){return vQb(R,Q)})})};
_.lET=function(R,y,u){var v=y4S(y),Q=uxb(R.JSC$12619_encoderRegistry,1),M=Object.assign({},y);return R.JSC$12619_wrapped.objectStore("EntityStore").get(v).then(function(K){if(K){if(K.entityType!==u)throw Error("Bf");M.entityMetadata||(K=vQb(R,K),M.entityMetadata=K.entityMetadata)}}).then(function(){var K={key:v,
entityType:u,data:Q.encode(M,v),version:1};return mi.all([R.JSC$12619_wrapped.objectStore("EntityStore").put(K),jpL(R,M,u)])}).then(function(){Mai(R,v,u);
return v})};
OtU=function(R,y){var u=_.bE(y).entityType;return mi.all([R.JSC$12619_wrapped.objectStore("EntityStore").delete(y),Jri(R,y)]).then(function(){Mai(R,y,u)})};
ZtW=function(R,y,u,v){var Q=uxb(R.JSC$12619_encoderRegistry,1);return _.Qpg(R,y,v).then(function(M){if(M){M=Dvz(M,u);var K={key:y,entityType:v,data:Q.encode(M,y),version:1};return mi.all([R.JSC$12619_wrapped.objectStore("EntityStore").put(K),jpL(R,M,v)])}}).then(function(){Mai(R,y,v);
return y})};
Mai=function(R,y,u){var v=R.changedKeys[u];v||(v=new Set,R.changedKeys[u]=v);v.add(y)};
VaT=function(R,y,u){var v=y4S(y);u=Tuc(u);if(!u)return mi.resolve([]);u=new u(y);R=R.JSC$12619_wrapped.objectStore("EntityAssociationStore");y=[];u=_.V(u.getAssociations());for(var Q=u.next();!Q.done;Q=u.next())y.push(R.put({parentEntityKey:v,childEntityKey:Q.value}));return mi.all(y).then(function(M){return M.map(function(K){return K[1]})})};
Jri=function(R,y){return R.JSC$12619_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(y))};
jpL=function(R,y,u){var v=y4S(y);return Jri(R,v).then(function(){return VaT(R,y,u)})};var iwV=function(){};
_.O(iwV,qi);iwV.prototype.encodeImpl=function(R){return R};
iwV.prototype.decodeImpl=function(R){if(R instanceof Uint8Array)throw IET(0);return R};var BuG=function(){this.cacheMap={};this.cacheMap[0]=new iwV;if(!_.f("aes_pes_encoder_killswitch")){var R=this.cacheMap;try{var y=_.eX();var u=wev(y);var v=new Xe(new LGw(u),new ssb(u))}catch(Q){throw R=Q instanceof Error?new xs("KEY_CREATION_FAILED",{originalMessage:Q.message}):new xs("KEY_CREATION_FAILED"),_.dI(R),R;}R[1]=v}},uxb=function(R,y){y=y===void 0?0:y;
R=R.cacheMap[y];if(!R)throw y=new xs("INVALID_ENCODER_VERSION",{encoderVersion:y}),_.dI(y),y;return R};var fz=function(R,y){_.Z0.call(this);this.token=R;this.JSC$12633_encoderRegistry=y;this.observers=[];R=new _.uO.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.eX());R.onmessage=this.handleMessage.bind(this);this.channel=R};
_.O(fz,_.Z0);_.lE=function(R,y,u){var v,Q,M,K;return _.I(function(h){if(h.nextAddress==1)return h.yield(VES(R.token),2);if(h.nextAddress!=3)return v=h.yieldResult,h.yield(_.Yz(v,["EntityStore","EntityAssociationStore"],y,function(b){Q=new yr5(b,R.JSC$12633_encoderRegistry);return u(Q)}),3);
M=h.yieldResult;Q&&(K=Q.changedKeys,Object.keys(K).length>0&&(R.channel.postMessage(K),K65(R,K)));return h.return(M)})};
fz.prototype.observe=function(R){var y=this;this.observers.push(R);return function(){var u=y.observers.indexOf(R);u>=0&&y.observers.splice(u,1)}};
var UNU=function(R){var y;return _.I(function(u){if(u.nextAddress==1)return u.yield(_.lE(R,{mode:"readonly",enableRetries:!0},function(v){return v.JSC$12619_wrapped.objectStore("EntityStore").getAll()}),2);
y=u.yieldResult;return u.return(Promise.all(y.filter(function(v){return!!v}).map(function(v){var Q,M;
return _.I(function(K){if(K.nextAddress==1){Q=v.key;M=v.entityType;var h=K.yield;var b=RwG(uxb(R.JSC$12633_encoderRegistry,v.version),v.data,v.key);return h.call(K,b,2)}return K.return({key:Q,entityType:M,data:K.yieldResult})})})))})};
fz.prototype.handleMessage=function(R){K65(this,R.data)};
var K65=function(R,y){R=_.V(R.observers);for(var u=R.next();!u.done;u=R.next())u=u.value,u(y)};
fz.prototype.disposeInternal=function(){this.channel.close()};
var oWS;var mI,hwi,c4v;mI={};_.I8c=(mI.mainVideoEntity="mainVideoEntityActionMetadata",mI.mainPlaylistEntity="mainPlaylistEntityActionMetadata",mI.musicTrack="musicTrackEntityActionMetadata",mI.musicPlaylist="musicPlaylistEntityActionMetadata",mI);hwi=new _.Jx("DOWNLOADS_ENTITY_TYPE_MAP");_.dN=_.Nq("","downloadsPageViewConfigurationEntity");c4v=_.Nq("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.OxT=_.Nq("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.Nq("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.Nq("SMART_DOWNLOADS_ENABLED","settingEntity");_.Nq("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var PuL=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var qcv=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var hxP={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var As,I5S,DkK,P9v;As=window;_.S6=As.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.eJU=As.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.Cz;I5S=As.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||r$;DkK=As.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||Adg;_.bwb=As.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.Qc5;P9v=As.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||Jd5;zI({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 Zlz=hJ8(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(R){return R}}}),EtG=hJ8(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(R){return R}}}),Nvc=new Map;var nXL=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],f5O;var F65=function(R){return _.iE({type:"SET_EPHEMERAL_ACTION",payload:R})};var wxK={ephemeralAction:null};var Nb5={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var siE={sharedUi:function(R,y){R=R===void 0?Nb5:R;switch(y.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},R,{animatedThumbnailEnabled:y.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},R,{inlinePreviewEnabled:y.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},R,{currentPageType:y.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},R,{currentPageSubType:y.payload});default:return R}},
a11y:oR({ephemeralAction:function(R,y){R=R===void 0?wxK.ephemeralAction:R;switch(y.type){case "SET_EPHEMERAL_ACTION":return y.payload;default:return R}}})};var ULS={playlistId:"",inviteLinkURL:""};var TbG={};var DLT=oR({continuationCommand:function(R,y){R=R===void 0?TbG:R;switch(y.type){case "SET_CONTINUATION_COMMAND":return y.payload.continuationCommand;default:return R}}});var EXU={currentFormId:"",commandsMap:{}};var p1U=oR({isLeaderTab:function(R,y){R=R===void 0?!0:R;switch(y.type){case "SET_IS_LEADER_TAB":var u,v;return(v=y==null?void 0:(u=y.payload)==null?void 0:u.isLeaderTab)!=null?v:R;default:return R}}});var xoV;_.oQ8=function(R){return _.iE({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:R}})};
xoV=function(R){return _.iE({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:R}})};var L$S=oR({isDesktopSmallWidth:function(R,y){switch(y.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return y.payload.isDesktopSmallWidth;default:return R===void 0?!1:R}},
isShortsActive:function(R,y){switch(y.type){case "SET_IS_SHORTS_ACTIVE":return y.payload.isShortsActive;default:return R===void 0?!1:R}},
isWatchWhileMode:function(R,y){switch(y.type){case "SET_IS_WATCH_WHILE_MODE":return y.payload.isWatchWhileMode;default:return R===void 0?!1:R}},
playerState:function(R,y){switch(y.type){case "SET_PLAYER_STATE":return y.payload.playerState;default:return R===void 0?-1:R}},
isFullscreen:function(R,y){switch(y.type){case "SET_IS_FULLSCREEN":return y.payload.isFullscreen;default:return R===void 0?!1:R}},
isSmallScreenSqueezeback:function(R,y){switch(y.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return y.payload.isSmallScreenSqueezeback;default:return R===void 0?!1:R}},
isShortsPipActive:function(R,y){switch(y.type){case "SET_IS_SHORTS_PIP_ACTIVE":return y.payload.isShortsPipActive;default:return R===void 0?!1:R}},
isPlaybackStarted:function(R,y){switch(y.type){case "SET_IS_PLAYBACK_STARTED":return y.payload.isPlaybackStarted;default:return R===void 0?!1:R}}});var GiT=function(){return function(R){return function(y){var u=R(y);_.Ik(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[y],!0);return u}}};var Bb5,SGc;Bb5=new _.xv;_.Np=new _.Jx("WATCH_PLAYER_PROMISE_TOKEN");_.f8b=new _.xv;_.ewY=new _.Jx("SHORTS_PLAYER_PROMISE_TOKEN");SGc=new _.Jx("");var rXL=function(){return function(R){return function(y){y.type==="ENTITY_LOADED"&&_.ua().resolve(_.Np).then(function(u){var v;(v=u.dispatchReduxAction)==null||v.call(u,y)});
return R(y)}}};var l8Y={};var t5U=oR({additionalContext:function(R,y){switch(y.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var u;return(u=y.payload)!=null?u:"";default:return R===void 0?"":R}},
impersonatedChannelUrl:function(R,y){switch(y.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var u;return(u=y.payload)!=null?u:"";default:return R===void 0?"":R}},
selectedVideoIds:function(R,y){R=R===void 0?l8Y:R;switch(y.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var u={};return Object.assign({},R,(u[y.payload]=!0,u));case "VIDEO_UNSELECTED":return y=y.payload,R=Object.assign({},R),delete R[y],R;default:return R}}});var cnS=oR({parentClickTrackingParams:function(R,y){switch(y.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return y.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return R===void 0?"":R}}});var Owg=function(R){return _.iE({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:R})};var Zw5={};var a5E=oR({stepStates:function(R,y){R=R===void 0?Zw5:R;switch(y.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var u=R,v=y.payload,Q,M,K;R={};y={selectionStates:Object.assign({},(K=(Q=u[v.stepId])==null?void 0:Q.selectionStates)!=null?K:{},(R[v.token]={isSelected:v.isSelected},R)),userQuery:(M=u[v.stepId])==null?void 0:M.userQuery};Q={};return Object.assign({},u,(Q[v.stepId]=y,Q));case "TALK_TO_RECS_UPDATE_USER_QUERY":return Q=R,M=y.payload,K={selectionStates:Object.assign({},
(v=(u=Q[M.stepId])==null?void 0:u.selectionStates)!=null?v:{}),userQuery:{userQuery:M.userQuery,token:M.userQueryToken}},u={},Object.assign({},Q,(u[M.stepId]=K,u));default:return R}}});var Hw5,nQi,rrK;Hw5=function(R){return _.iE({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:R})};
nQi=function(R){return _.iE({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:R})};
_.$l=function(R){return _.iE({type:"SET_CURRENT_PAGE_TYPE",payload:R})};
_.GtG=function(R){return _.iE({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:R})};
rrK=function(R){return _.iE({type:"SET_CHIP_BAR_IS_STICKY",payload:R})};var qxU={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"};_.P2Y=function(R){return _.iE({type:"SET_PLAYER_STATE",payload:{playerState:R}})};var W6Y=[],do5={width:0,height:0};var SxU=oR({isTheaterMode:function(R,y){R=R===void 0?_.f("kevlar_disable_theater_mode_persistence")?!1:_.$B("START_IN_THEATER_MODE"):R;switch(y.type){case "SET_IS_THEATER_MODE":return y.payload.isTheaterMode;default:return R}},
isWatchActive:function(R,y){switch(y.type){case "SET_IS_WATCH_ACTIVE":return y.payload.isWatchActive;default:return R===void 0?!1:R}},
isLearningJourneyActive:function(R,y){switch(y.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return y.payload.isLearningJourneyActive;default:return R===void 0?!1:R}},
isWatchFullscreen:function(R,y){switch(y.type){case "SET_IS_WATCH_FULLSCREEN":return y.payload.isWatchFullscreen;default:return R===void 0?!1:R}},
isWatchNarrowWidth:function(R,y){switch(y.type){case "SET_IS_WATCH_NARROW_WIDTH":return y.payload.isWatchNarrowWidth;default:return R===void 0?!1:R}},
isWatchRetroMode:function(R,y){switch(y.type){case "SET_IS_WATCH_RETRO_MODE":return y.payload.isWatchRetroMode;default:return R===void 0?!1:R}},
isLiveChatCollapsed:function(R,y){switch(y.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return y.payload.isLiveChatCollapsed;default:return R===void 0?!1:R}},
openEngagementPanels:function(R,y){R=R===void 0?W6Y:R;var u=[].concat(_.P$(R));switch(y.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return u.push(y.payload.panelToAdd),u;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return u.splice(u.indexOf(y.payload.panelToRemove),1),u;default:return R}},
playerState:function(R,y){switch(y.type){case "SET_PLAYER_STATE":return y.payload.playerState;default:return R===void 0?-1:R}},
watchScrollTop:function(R,y){switch(y.type){case "SET_WATCH_SCROLL_TOP":return y.payload.watchScrollTop;default:return R===void 0?0:R}},
watchWindowSize:function(R,y){R=R===void 0?do5:R;switch(y.type){case "SET_WATCH_WINDOW_SIZE":return y.payload.watchWindowSize;default:return R}}});var UoG={feedbackTokens:[]};var YxE=oR({surveyFeedbackData:function(R,y){R=R===void 0?UoG:R;switch(y.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return y.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},R,y.payload);default:return R}}});var mLS={};var Ws4=void 0;_.f("web_enable_redux_store_on_demand")||(Ws4=PWc());var ktg=function(R,y,u){var v=this;this.listId=R;this.JSC$12767_updateCallback=y;this.isOfflineVideoCallback=u;_.Qe().subscribe(function(){v.handleUpdate()})};
ktg.prototype.getPlaylistData=function(){var R=_.Qe().getState().entities;if(this.listId&&this.listId!=="PPSV"){var y=ysO(R,this.listId,!0),u=_.Nq(this.listId,"mainPlaylistEntity"),v,Q;R=R==null?void 0:(v=R.mainPlaylistEntity)==null?void 0:(Q=v[u])==null?void 0:Q.title;return dJv(y,R,this.listId)}y=_.XeG(Pt4(R));R=_.XeG(_.Uq(R));R=y.concat(R);return dJv(R)};
ktg.prototype.getPlaylistId=function(){return this.listId};
ktg.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$12767_updateCallback(this.listId,this.getPlaylistData(),{})};var DX=function(R,y,u,v){v=v===void 0?[]:v;this.JSC$12770_playlistNetworkManager=R;this.listId=y;this.JSC$12770_updateCallback=u;this.videoIds=v;this.pendingUpdates=[];this.currentIndex=0};
DX.prototype.JSC$12770_setCurrentIndex=function(R){this.currentIndex=R};
DX.prototype.setListId=function(R){this.listId=R};
var EQc=function(R,y){R.currentCreateRequest&&R.currentCreateRequest.cancel(y);R.currentUpdateRequest&&R.currentUpdateRequest.cancel(y);R.currentRefreshRequest&&R.currentRefreshRequest.cancel(y)};
DX.prototype.delete=function(){EQc(this,"PROXY DELETED")};
DX.prototype.addVideos=function(R,y,u){var v=this;u!==void 0?this.videoIds.splice.apply(this.videoIds,[u,0].concat(_.P$(R))):this.videoIds.push.apply(this.videoIds,_.P$(R));this.listId||this.currentCreateRequest?(R.forEach(function(Q,M){Q={addedVideoId:Q,action:"ACTION_ADD_VIDEO"};u&&(Q.addedVideoPosition=u+M);v.pendingUpdates.push(Q)}),px(this)):$oY(this,y.onCreateListCommand)};
var quc=function(R,y,u,v,Q){PO8(R.videoIds,y,u);y>R.currentIndex&&u<=R.currentIndex?R.JSC$12770_setCurrentIndex(R.currentIndex+1):y===R.currentIndex?R.JSC$12770_setCurrentIndex(u):y<R.currentIndex&&u>=R.currentIndex&&R.JSC$12770_setCurrentIndex(R.currentIndex-1);R.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:v,movedSetVideoIdPredecessor:Q});px(R)},$oY=function(R,y){EQc(R,"OBSOLETE");
R.currentCreateRequest=XxY(R.JSC$12770_playlistNetworkManager,y,R.videoIds);_.Wc(R.currentCreateRequest,function(){R.currentCreateRequest=void 0}).then(function(u){R.setListId(u.playlistId);
R.pendingUpdates.length>0?px(R):mob(R)})},px=function(R){if(R.pendingUpdates.length!==0&&(R.currentRefreshRequest&&R.currentRefreshRequest.cancel("OBSOLETE"),!R.currentUpdateRequest&&!R.currentCreateRequest)){var y=R.pendingUpdates.splice(0,R.pendingUpdates.length);
R.currentUpdateRequest=R.JSC$12770_playlistNetworkManager.updatePlaylist(R.listId,y);_.Wc(R.currentUpdateRequest,function(){R.currentUpdateRequest=void 0}).then(function(){R.pendingUpdates.length>0?px(R):mob(R)}).thenCatch(function(){R.pendingUpdates.unshift.apply(R.pendingUpdates,_.P$(y))})}},mob=function(R){R.currentRefreshRequest=_.Ar5(R.JSC$12770_playlistNetworkManager,R.listId,R.currentIndex,R.videoIds[R.currentIndex]);
_.Wc(R.currentRefreshRequest,function(){R.currentRefreshRequest=void 0}).then(function(y){R.JSC$12770_updateCallback(y.playlistId,y.playlistPanelRenderer,y.autoplayRenderer)})};
DX.prototype.size=function(){return this.videoIds.length};var Do8=function(R,y,u,v){v=v===void 0?[]:v;DX.call(this,R,y,u,v);this.JSC$12770_playlistNetworkManager=R;this.listId=y;this.JSC$12770_updateCallback=u;this.videoIds=v};
_.O(Do8,DX);_.ts=function(R,y,u,v,Q,M,K){Q=Q===void 0?[]:Q;K=K===void 0?Ie:K;DX.call(this,R,y,u,Q);this.JSC$12770_playlistNetworkManager=R;this.listId=y;this.JSC$12770_updateCallback=u;this.onAuthChange=v;this.videoIds=Q;this.storage=M;this.cookieReader=K;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.T3(_.WG,this.checkLoggedInStatusChange.bind(this),1E3)};
_.O(_.ts,DX);_.J=_.ts.prototype;_.J.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.T3(_.WG,this.checkLoggedInStatusChange.bind(this),1E3)};
_.J.JSC$12770_setCurrentIndex=function(R){DX.prototype.JSC$12770_setCurrentIndex.call(this,R);this.store()};
_.J.delete=function(){_.WG.cancelJob(this.queueSapisIdJob);DX.prototype.delete.call(this)};
_.J.setListId=function(R){DX.prototype.setListId.call(this,R);this.store()};
_.J.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var pxG=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],tab=["playerResponse","videoDetails"],cr5=["response","currentVideoEndpoint","watchEndpoint","videoId"],a88=["response","currentVideoEndpoint","watchEndpoint","playlistId"],SuT=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],Yu5=["response","contents","twoColumnWatchNextResults","playlist","playlist"],L6c=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
spg=["response","contents","twoColumnWatchNextResults"];var cr={},qjU=(cr.WEB_UNPLUGGED="^unplugged/",cr.WEB_UNPLUGGED_ONBOARDING="^unplugged/",cr.WEB_UNPLUGGED_OPS="^unplugged/",cr.WEB_UNPLUGGED_PUBLIC="^unplugged/",cr.WEB_CREATOR="^creator/",cr.WEB_KIDS="^kids/",cr.WEB_EXPERIMENTS="^experiments/",cr.WEB_MUSIC="^music/",cr.WEB_REMIX="^music/",cr.WEB_MUSIC_EMBEDDED_PLAYER="^music/",cr.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",cr);var B0G,XxY;B0G=function(R,y){this.networkManager=R;this.innertubeTransportService=y};
XxY=function(R,y,u){if(!_.e(y,_.Lt))return _.qk(Error("Ff"));_.e(y,_.Lt).videoIds=u;u={create_playlist_title:_.fo("QUEUE",void 0,"Queue")};return E1G(_.yB(R.innertubeTransportService,y,u),UJU)};
_.Ar5=function(R,y,u,v){y={videoId:v,playlistId:y,playlistIndex:u};u=_.jq(gxY);return E1G(_.am(R.innertubeTransportService,y,u),$Jz)};
B0G.prototype.updatePlaylist=function(R,y){return E1G(_.yB(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:R,actions:y}}),kiP)};var zwc=function(R){this.storage=R},gQi;
zwc.prototype.store=function(R,y){y=y===void 0?0:y;if(this.storage&&R.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",R),this.storage.set("TLPQindex",String(y)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(u){}};
zwc.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
zwc.prototype.getPlaylistId=function(){if(!this.storage)return null;var R=null;try{R=this.storage.get("TLPQplaylist")}catch(y){}return R};var DJP=["navigationEndpoint","watchEndpoint","videoId"],AXO=["nextButtonVideo","watchEndpoint","videoId"];_.AU=new _.Jx("NETWORK_TOKEN");_.iD=new _.Jx("PAGE_TOKEN");_.S2=new _.Jx("PLAYLIST_TOKEN");var C2w;C2w=new _.Jx("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.Dj=new _.Jx("INNERTUBE_TRANSPORT_TOKEN");var RWg,Y0,uBL,vZc,jOL,M7Y;RWg=new Set(["ci","cr","carml"]);Y0=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$12817_parkedJobs=new Map;this.parkedProcessors=new Map};
_.Lx=function(){Y0.instance||(Y0.instance=new Y0);return Y0.instance};
Y0.prototype.onAny=function(R){return _.yZ5(this,R,2)};
Y0.prototype.parkOrScheduleJob=function(R,y,u,v,Q){_.sT(this,u)?_.EJ().addJob(R,y,v):(Q&&(R=uBL(R),vZc(this,R,y,u,Q)),Q=this.JSC$12817_parkedJobs.get(u),Q||(this.JSC$12817_parkedJobs.set(u,[]),Q=this.JSC$12817_parkedJobs.get(u)),Q.push({job:R,priority:y,delay:v}))};
Y0.prototype.addListener=function(R,y,u){u&&(y=uBL(y),vZc(this,y,0,R,u));u=this.parkedProcessors.get(R);u||(this.parkedProcessors.set(R,[]),u=this.parkedProcessors.get(R));u.push(y)};
Y0.prototype.processSignal=function(R){if(!_.sT(this,R)){this.inProgressSignals.add(R);var y=this.JSC$12817_parkedJobs.get(R);if(y){y=_.V(y);for(var u=y.next();!u.done;u=y.next())u=u.value,_.EJ().addJob(u.job,u.priority,u.delay);this.JSC$12817_parkedJobs.delete(R)}if(y=this.parkedProcessors.get(R)){y=_.V(y);for(u=y.next();!u.done;u=y.next())u=u.value,u();this.parkedProcessors.delete(R)}this.signals.push(R);this.inProgressSignals.delete(R)}};
_.sT=function(R,y){return RWg.has(y)||_.$B("IS_HOMEPAGE_COLD")||_.$B("IS_RESULTS_PAGE_COLD")||_.$B("IS_WATCH_PAGE_COLD")?R.signals.indexOf(y)>=0:!0};
uBL=function(R){var y=!1;return function(){y||(y=!0,R())}};
vZc=function(R,y,u,v,Q){if(QOT.has(v))_.EJ().addJob(y,u,Q);else{var M=R.compoundSignals.get(v);M&&_.EJ().addJob(function(){_.sT(R,v)||(M.isTimeoutConditionSatisfied?_.EJ().addJob(y,u):M.timeoutConditionObservers.push(function(){_.EJ().addJob(y,u)}))},u,Q)}};
_.yZ5=function(R,y,u){if(y.length>1){var v=[],Q=Object.create(null);y=_.V(y);for(var M=y.next();!M.done;M=y.next())M=M.value,Q[M]||(v.push(M),Q[M]=!0);y=v}if(y.length===1)return y[0];M=y;v="";Q=u===2?"|":"&";M.sort();M=_.V(M);for(var K=M.next();!K.done;K=M.next())v+=K.value+Q;if(!R.compoundSignals.get(v)){Q=0;M=[];K=_.V(y);for(var h=K.next();!h.done;h=K.next())h=h.value,Q++,_.sT(R,h)||M.push(h);(u=u===2)&&Q>M.length||!u&&!M.length?R.signals.push(v):jOL(R,v,u,y,M)}return v};
jOL=function(R,y,u,v,Q){var M=Q.length,K=function(){u||--M===0?R.processSignal(y):M7Y(R,y)};
Q=_.V(Q);for(var h=Q.next();!h.done;h=Q.next())R.addListener(h.value,K);R.compoundSignals.set(y,{signals:v,isOnAny:u,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});M7Y(R,y)};
M7Y=function(R,y){if(!_.sT(R,y)){var u=R.compoundSignals.get(y);if(u&&!u.isTimeoutConditionSatisfied){for(var v=!1,Q=0,M=0,K=_.V(u.signals),h=K.next();!h.done;h=K.next()){var b=h.value;h=!_.sT(R,b);QOT.has(b)?v=!0:(b=R.compoundSignals.get(b))?h&&!b.isTimeoutConditionSatisfied&&(M++,u.isInitialized||b.timeoutConditionObservers.push(function(){M7Y(R,y)})):h&&Q++}u.isInitialized=!0;
u.isOnAny?v&&(u.isTimeoutConditionSatisfied=!0):Q===0&&M===0&&(u.isTimeoutConditionSatisfied=!0);if(u.isTimeoutConditionSatisfied)for(u=_.V(u.timeoutConditionObservers),v=u.next();!v.done;v=u.next())v=v.value,v()}}};
Y0.prototype.processSignal=Y0.prototype.processSignal;Y0.prototype.parkOrScheduleJob=Y0.prototype.parkOrScheduleJob;Y0.prototype.onAny=Y0.prototype.onAny;_.CJ("ytsignals.getInstance",_.Lx);Y0.prototype.onAny=Y0.prototype.onAny;Y0.prototype.parkOrScheduleJob=Y0.prototype.parkOrScheduleJob;Y0.prototype.processSignal=Y0.prototype.processSignal;var QOT=new Set(["eop","eocs","dl","pcl"]);_.cZ=new _.Jx("MINIPLAYER_SERVICE");var zD,JZg,V7V;zD=function(R,y,u){var v=_.c3.getInstance();if(!gQi){var Q=new hB4;var M=void 0,K=_.EB("ID_TOKEN");K&&Q.isAvailable()&&(M=new Gu(Q,"yt-queue"+K));gQi=new zwc(M)}Q=gQi;M=_.Lx();this.JSC$12824_actionRouter=v;this.pageManager=R;this.playlistManager=y;this.JSC$12824_playlistNetworkManager=u;this.storage=Q;this.signals=M;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.gQ=function(){if(!JZg){var R=_.ua(),y=R.resolve(_.yN(_.iD)),u=R.resolve(_.yN(_.AU)),v=R.resolve(_.yN(_.S2));R=R.resolve(_.Dj);JZg=new zD(y,v,new B0G(u,R))}return JZg};
V7V=function(R,y,u){if(u){var v;if(((v=R.responsePlaylistData)==null?void 0:v.playlistId)!==u)return}R.responsePlaylistData&&(u=YjW(y,R.responsePlaylistData),R.responsePlaylistData=(0,_.Ps.unsafeClone)(R.responsePlaylistData),sJU(R.responsePlaylistData,u));u=R.temporaryItems.findIndex(function(Q){return Q.videoId===y});
u>-1&&R.temporaryItems.splice(u,1);_.Cx(R,_.Ri(R,R.response?R.response.autoplayRenderer:void 0))};
_.iEb=function(R,y){if(R.responsePlaylistData){var u=LsU(y,R.responsePlaylistData);sJU(R.responsePlaylistData,u);if(R.queueProxy){var v=R.queueProxy;u<0||(v.videoIds.splice(u,1),u<v.currentIndex&&v.JSC$12770_setCurrentIndex(v.currentIndex-1),v.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:y}),px(v))}}_.Cx(R,_.Ri(R,R.response?R.response.autoplayRenderer:void 0))};
zD.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.Cx(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
zD.prototype.setPlaylistData=function(R,y,u){this.temporaryItems=[];this.listId=R;this.responsePlaylistData=y;_.Cx(this,_.Ri(this,u))};
var KXK=function(R){return(R==null?0:R.playlistId)?R.playlistId:"PPSV"},IP8=function(R){return R&&R.playlistId?R.playlistId==="PPSV"?!0:CuP(_.Qe().getState().entities,R.playlistId):!1};
zD.prototype.isPlayingOfflineVideo=function(){return this.response?IP8(this.response):!1};
zD.prototype.closeMiniplayer=function(R){var y=this.queueProxy&&this.queueProxy.size()<=1,u=_.ua().resolve(_.cZ);if(!this.queueProxy||y)this.queueProxy&&this.clearQueue(),u.close(!0);else{u.pipController.getWindow()&&window.focus();y=this.responsePlaylistData;var v=this.temporaryItems.length+(y&&y.contents?y.contents.length:0);y=_.fo("QUEUE_CLEARED_UNPLURALIZED")||_.ei("QUEUE_CLEARED",v);y=_.JU(y);u=_.fo("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");v=_.fo("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.ei("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",v);var Q=_.fo("MINIPLAYER_CLOSE",void 0,"Close"),M=_.fo("CANCEL",void 0,"Cancel");_.pV(this.JSC$12824_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.ye(u),dialogMessages:[_.ye(v)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.ye(Q),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
y]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.ye(M)}}}}}}],R)}};
_.Ri=function(R,y){var u={},v=R.response;u.autoplayRenderer=y;if(!R.responsePlaylistData&&!R.temporaryItems.length)return!v||!v.hasRelatedVideoData&&_.f("kevlar_prefetch_data_augments_network_data")||(u.playerData={rvs:v.relatedVideoArgs,endScreenRenderer:v.endScreenRenderer}),u;u.playerData={};if(R.index===void 0)return _.dI(Error("Hf")),u;u.panel=R.responsePlaylistData?(0,_.Ps.unsafeClone)(R.responsePlaylistData):{titleText:_.ye(_.fo("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
y=u.panel;if(y.contents)for(var Q=_.V(R.temporaryItems),M=Q.next();!M.done;M=Q.next())y.contents.push({playlistPanelVideoRenderer:M.value});R.queueProxy&&v&&v.playingVideo&&v.playingVideoId&&!Sjv(v.playingVideoId,u.panel)&&(y=v.playingVideo,Q=u.panel,M=R.index,Q.contents&&Q.contents.splice(M===void 0?0:M,0,{playlistPanelVideoRenderer:y}));v&&v.playingVideoId&&(y=R.index,Q=u.panel,y=!Q.contents||y>=Q.contents.length?void 0:Q.contents[y].playlistPanelVideoRenderer,y&&y.videoId===v.playingVideoId||(y=
YjW(v.playingVideoId,u.panel),R.index=y!==-1?y:R.index?R.index-1:0));y=aL4(R.index+1,u.panel);Q=void 0;R.index>0&&(Q=aL4(R.index-1,u.panel));if(Q||y)u.autoplayRenderer=pR8(y,Q,u.autoplayRenderer);!y&&(v==null?0:v.relatedVideoArgs)&&(u.playerData.rvs=v.relatedVideoArgs);v=v?v.playlistIndexOffset:0;R.queueProxy?CWz(u.panel,R.index,v,cXL,!0,!0,!0):CWz(u.panel,R.index,v);u.playerData.playlistPanelRenderer=u.panel;return u};
zD.prototype.openToast=function(R){_.ua().resolve(_.cZ).openToast(R,_.fo("ADDED_TO_QUEUE",void 0,"Added to queue"))};
zD.prototype.isMiniplayerActive=function(){return _.ua().resolve(_.cZ).isMiniplayerActive()};
_.Cx=function(R,y){R.playlistManager.setAutoplayRenderer(y.autoplayRenderer||null);R.playlistManager.setPlaylistData(y.panel||null);y.playerData&&R.playlistManager.setPlayerPlaybackControlData(y.playerData)};var y3E="#";var hW5={},bEw={},FX8={},wSg={},NJL={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:(hW5.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",hW5),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:(bEw.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",bEw),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:(FX8.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",FX8),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:(wSg.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",wSg),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 $A8=[{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:NJL},{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:NJL}}];var H68;_.T2=[[["N2tpbmQjN2Z6eTBsaHdoMTM=","ZSN5aTBuODI2cHFyNjR2YWx1"],"VCN4bXJnbWNhdnFlYTFBRF9QTEFDRU1FTlRfS0lORF9TVEFS"]];
H68=[[["NGFjOG13cHJpbWFyeSNxcGlmOXQ=",null,null],[null,["cm93c2UtcmVzdWx0cy1yZW5kZXJlciNuaWpsd3BvbXJ4N2F5dGQtdHdvLWNvbHVtbi1i","ZSMydDc4cGVqc2ttaWlzdHlsZS1zY29w"],null],["ZCNmdDU0NTFzbWxrZ3dtYXN0aGVhZC1h",["cmVyIzQ2bTZiamIxOTRjdXl0ZC1yaWNoLWdyaWQtcmVuZGU="],null],[null,["cmVyI3lrcnpwMjZkcWZyZXl0ZC1yaWNoLWdyaWQtcmVuZGU=","ZSNxODY2cmIyeGV5NTBzdHlsZS1zY29w"],null],[null,["cDZtN2FwZ3htb3l0ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXIjcno=","ZSNndmQzeGZ6ZWwwcmVzdHlsZS1zY29w"],null],[null,["ZW5kZXJlciNsYW0ydGRhOHdnNzJ5dGQtYWQtc2xvdC1y"],
null]],[["LWFkcyNvMnlsamwzMzNlZGVwbGF5ZXI=",null,null]]];_.NB=["emdnbG9iYWxDYWxsYmFja3MjMTVkOGJ1c2NkMA==","ZWN0ZWQjN3d1NnVidWR0ZTk3b25BYm5vcm1hbGl0eURldA==","ZXNvbkFkU2tpcCNlYm9icTNzaTR5","X3Jlc3BvbnNlIzd5ZGp5bGd6bnMyM3Jhd19wbGF5ZXI=","aDdvOTliYWRTbG90cyM0aHkzdmM="];_.y$="emdnbG9iYWxDYWxsYmFja3MjMTVkOGJ1c2NkMA== ZWN0ZWQjN3d1NnVidWR0ZTk3b25BYm5vcm1hbGl0eURldA== ZXNvbkFkU2tpcCNlYm9icTNzaTR5 X3Jlc3BvbnNlIzd5ZGp5bGd6bnMyM3Jhd19wbGF5ZXI= X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzI2l3MDFzbDZleWk2eHdlYl9wbGF5bGlzdA== d3RhYl9zYV9lZiM0Z3Z0NWtyaDR2 aDdvOTliYWRTbG90cyM0aHkzdmM=".split(" ");var uL;uL=function(R,y,u){this.nog=R;this.isAsync=y;this.b8x=u};
_.L54=[new uL("b.f_",!1,0),new uL("j.s_",!1,2),new uL("r.s_",!1,4),new uL("e.h_",!1,6),new uL("i.s_",!0,8),new uL("s.t_",!1,10),new uL("p.h_",!1,12),new uL("s.i_",!1,14),new uL("f.i_",!1,16),new uL("a.b_",!1,18),new uL("a.o_",!1),new uL("g.o_",!1,22),new uL("p.i_",!1,24),new uL("p.m_",!1),new uL("n.k_",!0,20),new uL("i.f_",!1),new uL("a.s_",!0),new uL("m.c_",!1),new uL("n.h_",!1,26),new uL("o.p_",!1),new uL("m.p_",!0,28),new uL("o.a_",!1),new uL("d.p_",!1),new uL("e.i_",!1)].reduce(function(R,y){R[y.nog]=
y;return R},{});var TJ5=function(){};
TJ5.prototype.flush=function(R,y){R=R===void 0?[]:R;y=y===void 0?!1:y;if(_.f("enable_client_streamz_web")){R=_.V(R);for(var u=R.next();!u.done;u=R.next())u=i$V(u.value),this.rootSpec&&_.wC(u,2,this.rootSpec),u={serializedIncrementBatch:_.nZ(u.JSC$9575_serializeBinary())},_.P3("streamzIncremented",u,{sendIsolatedPayload:y})}};
var jSW=function(){};
_.O(jSW,TJ5);var oZ5=function(R){var y=new uoK;var u=new CbY;u=_.eQ(u,1,"botguard");R=_.eQ(u,2,R);this.rootSpec=_.Ny(y,1,vLV,R)};
_.O(oZ5,TJ5);var b7,xMg=new Map;var PqU,J3z,NT8,K5v,b6W,O6O,dAU,egc;PqU=2;J3z=2;NT8=2;K5v=2;b6W=2;O6O=2;dAU=2;egc=new va8;var fPc,eWi,lPb;fPc=function(){this.ongoingFlowNonces=new Map};
_.eq=function(){eWi||(eWi=new fPc);return eWi};
_.BV=function(R,y,u){return{eventType:{flowEventNamespace:R,flowEventType:y},metadata:u,statusCode:void 0,csn:void 0,can:void 0}};
_.zgS=function(R,y){var u=_.eq(),v=lPb(u,y,!0);_.fc(u,R,y,v)};
_.fc=function(R,y,u,v){R={flowNonce:v||lPb(R,u),flowType:u,flowEventType:y.eventType};y.metadata&&(R.flowMetadata=y.metadata);y.statusCode!==void 0&&(R.flowEventStatus=y.statusCode);y.csn&&(R.csn=y.csn);y.can&&(R.can=y.can);_.P3("flowEvent",R,void 0)};
lPb=function(R,y,u){u=u===void 0?!1:u;var v=R.ongoingFlowNonces.get(y);if(!v||u)v=Uf(16),R.ongoingFlowNonces.set(y,v);return v};_.OEg=new ulb;var yOW={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch"};var v1=function(R,y,u,v,Q,M,K){u=u===void 0?!1:u;v=v===void 0?!1:v;M=M===void 0?_.gQ():M;this.hasRun=!1;this.zzx=R;this.mHS=y;this.tDv=u;this.fromHistory=v;this.previousVideoId=Q;this.zGX=M;this.tempData=K;this.c1O=new _.Qn5};
_.O(v1,VA);v1.prototype.validate=function(R){return!(!R.data.playerResponse||R.data.page!=="watch"&&R.data.page!=="learning_journey_watch"&&R.data.page!=="shorts"||this.hasRun)};
v1.prototype.handle=function(R){var y=this,u=_.e(R.endpoint,_.zM),v=_.e(R.endpoint,_.PV);if(_.f("kevlar_continue_playback_without_player_response")&&(u==null?0:u.videoId)&&this.previousVideoId&&(u==null?void 0:u.videoId)===this.previousVideoId&&(u==null?0:u.continuePlayback)&&!this.fromHistory)this.zzx.resolve();else{var Q={};u?Q.watch_endpoint=u:v&&(Q.watch_endpoint=v,v.endTimeSeconds&&(Q.end=v.endTimeSeconds));R.data.page==="watch"?(R.data.filler||this.tDv||(_.Xh("cfg"),_.c3.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(Q,ZEw(this,R.endpoint)),_.f("enable_masthead_quartile_ping_fix")&&Object.assign(Q,HEc(this)),Object.assign(Q,void 0),R.data.forceExternalPlaylist&&(Q.external_list=!0)):R.data.page==="shorts"?_.c3.getInstance().triggerAction("yt-start-loading-shorts"):R.data.page==="learning_journey_watch"&&_.c3.getInstance().triggerAction("yt-start-loading-learning-journey");if(u=this.mHS()){try{u.loadVideoWithPlayerResponse(R.data.playerResponse,Q),u.getPlayerPromise().then(this.zzx.resolve)}catch(M){_.dI(M),
this.zzx.resolve()}this.hasRun=!0;u.getPlayerPromise().then(function(M){M.addEventListener("onAbnormalityDetected",function(){var K=R.data.playerResponse,h=M.getVideoData().cpn;dAU=0;_.BJY=h;if(h=YIc(K))y.c1O.increment("IN_PLAYER"),_.l7(5),_.f("ab_st_vid_ks")?M.pauseVideo(!0):M.stopVideo(),K.playabilityStatus=Object.assign({},K.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:h}}),K.videoDetails=void 0,_.c3.getInstance().triggerOptionalAction("yt-updated-playability-status",
K.playabilityStatus)})})}else _.kT(Error("Kf"))}};
var ZEw=function(R,y){var u=_.e(y,_.zM);if(y&&u&&u.playlistId&&u.videoId&&(R=R.zGX,R.queueProxy?(R=R.queueProxy,u=R.listId===u.playlistId?R.attributionData.get(u.videoId):void 0):u=void 0,u))return{queue_info:u}},HEc=function(R){var y;
if((y=R.tempData)==null?0:y.adpings)return{adpings:R.tempData.adpings}};var Q$=function(R,y,u){this.hasRun=!1;this.hGD=R;this.y5J=y;this.v3m=u};
_.O(Q$,VA);Q$.prototype.validate=function(R){return!!_.Ps.getValueByKeys.apply(null,[R.data].concat(_.P$(spg)))};
Q$.prototype.handle=function(R){var y=this;this.hGD.promise.then(function(){var u=R.data;var v=_.Ps.getValueByKeys.apply(null,[u].concat(_.P$(pxG))),Q=_.Ps.getValueByKeys.apply(null,[u].concat(_.P$(Yu5))),M=_.Ps.getValueByKeys.apply(null,[u].concat(_.P$(cr5)));var K=(K=_.Ps.getValueByKeys.apply(null,[u].concat(_.P$(tab))))?{videoId:K.videoId,thumbnail:K.thumbnail,title:K.title?_.ye(K.title):void 0,shortBylineText:K.author?_.ye(K.author):void 0}:void 0;var h=void 0;_.f("web_get_playlist_id_from_current_endpoint_ks")||
(h=_.Ps.getValueByKeys.apply(null,[u].concat(_.P$(a88))));var b=_.Ps.getValueByKeys.apply(null,[u].concat(_.P$(L6c))),N=_.Ps.getValueByKeys.apply(null,[u].concat(_.P$(SuT))),T=!!b||!!N&&!!N.results&&N.results.length>0,x=0;Q&&Q.currentIndex&&Q.localCurrentIndex&&(x=Q.currentIndex-Q.localCurrentIndex);Q&&Q.playlistId&&(h=Q.playlistId);u={rawResponse:u,autoplayRenderer:v,hasRelatedVideoData:T,playingVideo:K,playingVideoId:M,playlistPanelRenderer:Q,playlistId:h,playlistIndex:Q&&Q.currentIndex,relatedVideoArgs:b,
endScreenRenderer:N,playlistIndexOffset:x};a:{v=y.v3m;Q=y.y5J;v.response=u;if(IP8(u))v.downloadPlaylistProxy&&v.downloadPlaylistProxy.getPlaylistId()===KXK(u)||(v.downloadPlaylistProxy=new ktg(KXK(u),v.setPlaylistData.bind(v),v.isPlayingOfflineVideo.bind(v))),v.responsePlaylistData=v.downloadPlaylistProxy.getPlaylistData(),v.listId=KXK(u),v.index=0;else if(u.playlistPanelRenderer&&u.playlistId&&u.autoplayRenderer)u.playlistId.startsWith("TLPQ")?v.queueProxy?v.listId===u.playlistId?(v.index=u.playlistIndex,
v.responsePlaylistData=u.playlistPanelRenderer,v.queueProxy.JSC$12770_setCurrentIndex(v.index)):u.playingVideoId&&v.index!==void 0&&Q.clientParams.autoSaveToQueue&&(v.index+=1,v.queueProxy.JSC$12770_setCurrentIndex(v.index),v.queueProxy.addVideos([u.playingVideoId],{},v.index)):(v.queueProxy=new _.ts(v.JSC$12824_playlistNetworkManager,u.playlistId,v.setPlaylistData.bind(v),v.clearQueue.bind(v),_.zNT(u.playlistPanelRenderer),v.storage),v.responsePlaylistData=u.playlistPanelRenderer,v.listId=u.playlistId,
v.index=u.playlistIndex):(v.index=u.playlistIndex,v.listId!==u.playlistId&&v.clearQueue(),v.responsePlaylistData=u.playlistPanelRenderer,v.listId=u.playlistId,v.playlistProxy=new Do8(v.JSC$12824_playlistNetworkManager,u.playlistId,v.setPlaylistData.bind(v),_.zNT(u.playlistPanelRenderer)));else if(!v.queueProxy)v.responsePlaylistData=void 0;else if(u.playingVideoId&&Q.clientParams.autoSaveToQueue){if(v.index===void 0){_.dI(Error("Gf"));v.clearQueue();break a}v.queueProxy.videoIds.includes(u.playingVideoId)||
(v.index+=1,v.queueProxy.JSC$12770_setCurrentIndex(v.index),v.queueProxy.addVideos([u.playingVideoId],{},v.index))}_.Cx(v,_.Ri(v,v.response.autoplayRenderer))}})};var nZ5=function(R,y){y=y===void 0?_.gQ():y;OT.call(this);this.t7.push(new Q$(this.qG,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},y));this.t7.push(new v1(this.qG,R,!1,!1));_.f("web_response_commands_chunk_processor")&&this.t7.push(new ZX)};
_.O(nZ5,OT);nZ5.prototype.processChunk=function(R){R&&R.data.player===void 0&&this.qG.resolve();OT.prototype.processChunk.call(this,R)};var j5=function(R,y){R=R===void 0?{layer:0}:R;this.hasRun=!1;this.createScreenConfig=R;this.qOx=y};
_.O(j5,VA);j5.prototype.validate=function(R){return!(this.hasRun||!R.endpoint)};
j5.prototype.handle=function(R){var y=_.GN(),u,v,Q=(v=_.e((u=R.endpoint)==null?void 0:u.commandMetadata,_.QL))==null?void 0:v.rootVe;this.qOx&&Q?_.om(y,Q,this.qOx,this.createScreenConfig):oOT(y,R.endpoint,this.createScreenConfig);this.hasRun=!0};var ML=function(R,y){this.hasRun=!1;this.jQB=R;this.previousVideoId=y};
_.O(ML,VA);ML.prototype.validate=function(R){return _.f("kevlar_continue_playback_without_player_response")&&(R=_.e(R.endpoint,_.zM),(R==null?0:R.videoId)&&this.previousVideoId&&(R==null?void 0:R.videoId)===this.previousVideoId&&(R==null?0:R.continuePlayback))?!1:this.jQB.b3H===0};
ML.prototype.handle=function(R){_.c3.getInstance().triggerAction("yt-stop-old-player",R.data,!0)};var GHY=function(R){R=R===void 0?{layer:0}:R;OT.call(this);this.t7.push(new ML(this));this.t7.push(new j5(R));this.t7.push(new lt(R))};
_.O(GHY,OT);var rZ5=function(){this.hasRun=this.hasRun=!1};
_.O(rZ5,VA);rZ5.prototype.validate=function(R){return!this.hasRun&&!(!R.data.csn||!R.data.rootVe)};
rZ5.prototype.handle=function(R){this.hasRun=!0;_.Xc(R.data.csn,R.data.rootVe,3)};var PzV=function(){VA.apply(this,arguments)};
_.O(PzV,VA);PzV.prototype.validate=function(R){return!!R.data.preconnect};
PzV.prototype.handle=function(R){_.qQ("bc");R=_.V(R.data.preconnect);for(var y=R.next();!y.done;y=R.next())y=y.value,(new Image).src=y};var WX5=function(R,y,u){u=u===void 0?{layer:0}:u;OT.call(this);this.t7.push(new v1(this.qG,R));this.t7.push(new j5(u));this.t7.push(new lt(u))};
_.O(WX5,OT);var dMY=function(R,y,u,v,Q){u=u===void 0?{layer:0}:u;v=v===void 0?_.gQ():v;OT.call(this);var M=!!y&&!!y.clientParams&&!!y.clientParams.miniplayer;M&&this.t7.push(new rZ5);this.t7.push(new Q$(this.qG,y,v));this.t7.push(new PzV);var K,h;this.t7.push(new v1(this.qG,R,M,!((K=y.clientParams)==null||!K.fromHistory),(h=y.clientParams)==null?void 0:h.previousVideoId,v,y.tempData));var b;this.t7.push(new ML(this,(b=y.clientParams)==null?void 0:b.previousVideoId));var N;(N=y.clientParams)!=null&&N.fromHistory||
(u.layer||(u=Object.assign({},u,{layer:M?3:0})),this.t7.push(new j5(u,Q)),this.t7.push(new lt(u)));_.f("web_response_commands_chunk_processor")&&this.t7.push(new ZX)};
_.O(dMY,OT);var Jn,EZc;Jn={};
_.UMi=(Jn["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Jn["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Jn["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Jn["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Jn["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Jn["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Jn["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Jn);_.V$=new _.$2("yt-edu");_.kHg=function(){this.JSC$12925_eduDisplayedThisLoad_={}};
EZc=function(R){var y=_.kHg.getInstance();var u=_.JT("kevlar_tooltip_impression_cap");y=u&&parseInt(_.V$.get(R+"-impression")||0,10)>=u||_.V$.get(R+"-dismissed")?!1:(u=_.UMi[R])&&!y.JSC$12925_eduDisplayedThisLoad_[u.setKey||R]&&(u.titleText&&_.fo(u.titleText)||u.bodyText&&_.fo(u.bodyText))?!0:!1;if(!y)return null;y=_.UMi[R];if(!y)return null;u=y.bodyText?_.fo(y.bodyText):void 0;var v=y.titleText?_.fo(y.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:y.position,popup:{bubbleHintRenderer:{text:v?
_.ye(v):void 0,detailsText:u?_.ye(u):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.ye(_.fo("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:R}}]}}}}}}}},{eduImpressionAction:{key:R}}]};
_.io(_.kHg);var gCz=!1;for(var $M5="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),qKi=[],iL=6;iL>=1;iL--)qKi.push({columnCount:iL,query:iL==1?0:iL*2*107-4+32,className:"grid-"+iL+"-columns",width:iL*2*107+"px"});_.mML=function(R){this.actionRouter_=R=R===void 0?_.c3.getInstance():R;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.XS5(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.XS5=function(R){var y=R.miniGuideVisible_?72:0,u=R.documentWidth_-(R.guidePersistentAndVisible_?240:y);return qKi.find(function(v){return u>v.query})};
_.io(_.mML);var AZK=function(){var R=this;this.JSC$12937_keyboardInUse=!1;document.addEventListener("keydown",function(){R.onKeydown()});
document.addEventListener("mousedown",function(){R.JSC$12937_keyboardInUse=!1})},DMg;
AZK.prototype.isKeyBoardInUse=function(){return this.JSC$12937_keyboardInUse};
AZK.prototype.onKeydown=function(){this.JSC$12937_keyboardInUse=!0};var pSV,hn;_.Kl=new _.$2("yt-mentions");_.Ii=function(){};
pSV=function(R,y){return hn(y,"drag-to-reorder-edu-displayed")};
hn=function(R,y,u,v,Q,M){u=u===void 0?"OPEN_POPUP_POSITION_TOP":u;if(y){if(_.Kl.get(y))return;_.Kl.set(y,!0,v)}if(Q&&M!==void 0){y=Number(_.Kl.get(Q)||0);if(y>=M)return;_.Kl.set(Q,y+1)}return[{openPopupAction:{popupType:"HINT",position:u,popup:{bubbleHintRenderer:{detailsText:R,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.io(_.Ii);var t7V,cZV,aPL;t7V=function(R,y,u,v){this.JSC$12947_taskManager_=R;this.onFulfilled_=typeof y==="function"?y:null;this.onRejected_=typeof u==="function"?u:null;this.JSC$12947_context_=v};
cZV=function(R,y){R.onFulfilled_&&_.Wm(R.JSC$12947_taskManager_,function(){R.onFulfilled_.call(R.JSC$12947_context_,y)})};
aPL=function(R,y){R.onRejected_&&_.Wm(R.JSC$12947_taskManager_,function(){R.onRejected_.call(R.JSC$12947_context_,y)})};
_.bL=function(R){this.JSC$12950_taskManager_=R;this.callbacks_=[]};
_.bL.prototype.then=function(R,y,u){this.callbacks_.push(new t7V(this.JSC$12950_taskManager_,R,y,u));return this};
_.bL.prototype.onSuccess=function(R){this.callbacks_.forEach(function(y){cZV(y,R)})};
_.bL.prototype.onFailure=function(R){this.callbacks_.forEach(function(y){aPL(y,R)})};
_.bL.prototype.cancel=function(){this.callbacks_.length=0};
hSw(_.bL);_.vxO=null;_.Xj=new _.Jx("ACTIVITY_TOKEN");var Fw=function(R,y){this.serviceId=new II5(R,y)};
Fw.prototype.toString=function(){return this.serviceId.toString()};var SKb=function(){this.internalMap={}};
_.J=SKb.prototype;_.J.contains=function(R){return Object.prototype.hasOwnProperty.call(this.internalMap,R)};
_.J.get=function(R){if(this.contains(R))return this.internalMap[R]};
_.J.set=function(R,y){this.internalMap[R]=y};
_.J.getKeys=function(){return Object.keys(this.internalMap)};
_.J.remove=function(R){delete this.internalMap[R]};var wv=function(){this.mappings=new SKb;this.errorCallbacks=new Set};
wv.prototype.getModuleId=function(R){return R.serviceId.getModuleId()};
wv.prototype.get=function(R){var y=this.mappings.get(R.toString());return YKc(this,y,R)};
wv.prototype.getMultipleAsync=function(){var R=_.qy.apply(0,arguments),y=this,u=R.map(function(b){return y.getModuleId(b)}),v=R.map(function(b){return y.mappings.get(b.toString())}).filter(function(b){return b});
if(v.length===R.length)return _.NQ(v.map(function(b,N){return YKc(y,b,R[N])}));
var Q=WY().loadMultiple(u);v=_.Pc(u.map(function(b){return Q[b]}));
var M=document.hidden,K=-1,h=_.JT("get_async_timeout_ms",-1);h>-1&&(K=setTimeout(function(){_.kT(new _.OL("Module timeout.",u,M,document.hidden))},h));
return _.Wc(v.then(function(){return R.map(function(b){return YKc(y,y.mappings.get(b.toString()),b)})}).thenCatch(function(b){for(var N=_.V(y.errorCallbacks),T=N.next();!T.done;T=N.next())T=T.value,T(b);
throw b;}),function(){clearTimeout(K)})};
wv.prototype.registerService=function(R,y){this.mappings.set(R.toString(),{type:"mapping",value:y});return R};
var YKc=function(R,y,u){switch(y.type){case "mapping":return y.value;case "factory":return y=y.value(),R.mappings.set(u.toString(),{type:"mapping",value:y}),y;default:return _.AL(y)}};
wv.prototype.onLoadError=function(R){var y=this;this.errorCallbacks.add(R);return function(){y.errorCallbacks.delete(R)}};
_.NL=new wv;var Vhv=/^[a-zA-Z0-9_\-]{11}$/;var i_T=_.H7(function(){var R,y;return(y=(R=window).matchMedia)==null?void 0:y.call(R,"(prefers-reduced-motion: reduce)").matches});var LXg=_.H7(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=_.D6("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");R||(R=_.o_("VIDEO"),_.CJ("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 wCz=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var TL;TL=function(){this.tokenJars={};if(this.cookiesEnabled=_.fJ()){var R=_.xz.get("CONSISTENCY",void 0);R&&sOc(this,{encryptedTokenJarContents:R})}};
_.T0v=function(){TL.instance||(TL.instance=new TL);return TL.instance};
TL.prototype.handleResponse=function(R,y){if(!y)throw Error("Qf");var u,v;y=((u=y.innerTubeRequest.context)==null?void 0:(v=u.request)==null?void 0:v.consistencyTokenJars)||[];var Q;(R=(Q=R.responseContext)==null?void 0:Q.consistencyTokenJar)&&this.replace(y,R)};
TL.prototype.replace=function(R,y){R=_.V(R);for(var u=R.next();!u.done;u=R.next())delete this.tokenJars[u.value.encryptedTokenJarContents];sOc(this,y)};
var sOc=function(R,y){if(y.encryptedTokenJarContents&&(R.tokenJars[y.encryptedTokenJarContents]=y,typeof y.expirationSeconds==="string")){var u=Number(y.expirationSeconds);setTimeout(function(){delete R.tokenJars[y.encryptedTokenJarContents]},u*1E3);
R.cookiesEnabled&&_.B5("CONSISTENCY",y.encryptedTokenJarContents,u,void 0,!0)}};var zWw,oi;zWw=window.location.hostname.split(".").slice(-2).join(".");_.Xb=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var R=_.EB("LOCATION_PLAYABILITY_TOKEN");_.EB("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=gZg(this))&&(R=this.localStorage.get("yt-location-playability-token"));R&&(this.locationPlayabilityToken=R,this.mostRecentPosition=void 0)};
_.Xb.getInstance=function(){oi=_.D6("yt.clientLocationService.instance");oi||(oi=new _.Xb,_.CJ("yt.clientLocationService.instance",oi));return oi};
_.Xb.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};
_.Xb.prototype.handleResponse=function(R){var y;R=(y=R.responseContext)==null?void 0:y.locationPlayabilityToken;R!==void 0&&(this.locationPlayabilityToken=R,this.mostRecentPosition=void 0,_.EB("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=gZg(this))&&this.localStorage.set("yt-location-playability-token",R,15552E3):_.B5("YT_CL",JSON.stringify({loctok:R}),15552E3,zWw,!0))};
var gZg=function(R){return R.localStorage===void 0?new _.$2("yt-client-location"):R.localStorage};
_.Xb.prototype.clearLocationPlayabilityToken=function(R){R==="TVHTML5"?(this.localStorage=gZg(this))&&this.localStorage.remove("yt-location-playability-token"):_.Q3c("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.Xb.prototype.getCurrentPositionFromGeolocation=function(){var R=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Rf"));var y=!1,u=1E4;_.EB("INNERTUBE_CLIENT_NAME")==="MWEB"&&(y=!0,u=15E3);return new Promise(function(v,Q){navigator.geolocation.getCurrentPosition(function(M){R.mostRecentPosition=M;v(M)},function(M){Q(M)},{enableHighAccuracy:y,
maximumAge:0,timeout:u})})};
_.Xb.prototype.createUnpluggedLocationInfo=function(R){var y={};R=R.coords;if(R==null?0:R.latitude)y.latitudeE7=Math.floor(R.latitude*1E7);if(R==null?0:R.longitude)y.longitudeE7=Math.floor(R.longitude*1E7);if(R==null?0:R.accuracy)y.locationRadiusMeters=Math.round(R.accuracy);return y};
_.Xb.prototype.createLocationInfo=function(R){var y={};R=R.coords;if(R==null?0:R.latitude)y.latitudeE7=Math.floor(R.latitude*1E7);if(R==null?0:R.longitude)y.longitudeE7=Math.floor(R.longitude*1E7);return y};var CzK=function(){};
_.J=CzK.prototype;
_.J.JSC$13017_getRequest=function(R,y,u){y=y===void 0?{}:y;u=u===void 0?xSg:u;var v=y;if(this.isNavigationCommand()){var Q,M=(Q=_.e(R==null?void 0:R.commandMetadata,_.QL))==null?void 0:Q.url;v=_.oxU(R.clickTrackingParams,!0,!1,M,this.JSC$13017_getClientScreen(v))}else v=_.oxU(R.clickTrackingParams,!1,this.includeCsn);v={context:v};if(Q=this.getExtension(R))return this.JSC$13017_buildRequest(v,Q,y),Q=this.getApiUrl(R),M=Object.assign({},{command:R},this.getRequestConfig(R,y)),v={input:Q,requestShell:Lv(Q),
innerTubeRequest:v,config:M},v.config.authStrategy?v.config.authStrategy.identity=u:v.config.authStrategy={identity:u},(R=this.JSC$13017_getRequestKey(R,y))&&!v.config.requestKey&&(v.config.requestKey=R),v;R=new _.OL("Error: Failed to create Request from Command.",R);_.dI(R)};
_.J.getApiUrl=function(R){var y=_.jq(this.getApiPaths(R)),u;(R=(u=_.e(R.commandMetadata,_.QL))==null?void 0:u.apiUrl)&&(y=R);return Yv8(SvW(y))};
_.J.isNavigationCommand=function(){return!1};
_.J.JSC$13017_getClientScreen=function(){};
_.J.JSC$13017_getRequestKey=function(){};
_.J.getRequestConfig=function(){};
_.RR.Object.defineProperties(CzK.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var xX=function(){};
_.O(xX,CzK);xX.prototype.JSC$13024_getStoreKey=function(){};
xX.prototype.JSC$13017_getRequestKey=function(R,y){y=y===void 0?{}:y;return this.JSC$13024_getStoreKey(R,y)};var yKb;_.B1=function(R,y,u){var v=u&&u>0?u:0;u=v?Date.now()+v*1E3:0;if((v=v?(0,_.RPL)():yKb())&&window.JSON){typeof y!=="string"&&(y=JSON.stringify(y,void 0));try{v.set(R,y,u)}catch(Q){v.remove(R)}}};
_.fl=function(R){var y=yKb(),u=(0,_.RPL)();if(!y&&!u||!window.JSON)return null;try{var v=y.get(R)}catch(Q){}if(typeof v!=="string")try{v=u.get(R)}catch(Q){}if(typeof v!=="string")return null;try{v=JSON.parse(v,void 0)}catch(Q){}return v};
_.e5=function(R){try{var y=yKb(),u=(0,_.RPL)();y&&y.remove(R);u&&u.remove(R)}catch(v){}};
_.RPL=_.H7(function(){try{var R=new InL;var y=R.isAvailable()?R:null}catch(u){return null}return y?new _.Kv(y):null});
yKb=_.H7(function(){var R=new hB4;return R.isAvailable()?new _.Kv(R):null});var he=new _.Jx("ENTITY_STATE_TOKEN"),lL=new _.Jx("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var uX5=XMLHttpRequest.prototype.fetch,vqY=uX5&&uX5.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!zu?!0:!1;var Ox=function(R){this.JSC$13029_storeWithEntities=R};
_.O(Ox,xX);_.J=Ox.prototype;_.J.getApiPaths=function(){return fN8};
_.J.getExtension=function(R){return _.e(R,_.zM)||_.e(R,_.PV)||_.e(R,fEV)};
_.J.isNavigationCommand=function(){return!0};
_.J.JSC$13024_getStoreKey=function(R){if((_.f("kevlar_cache_on_ttl_player")||_.f("mweb_enable_shorts_innertube_player_prefetch")||_.f("mweb_use_new_history_manager")||_.f("web_shorts_prefetch_service_enabled"))&&(R=this.getExtension(R))&&R.videoId){var y={videoId:R.videoId};R.playlistId&&(y.playlistId=R.playlistId);R.playerParams&&(y.params=R.playerParams);return _.sf("player",y)}};
_.J.JSC$13017_getClientScreen=function(R){var y;return((y=R.contentPlaybackContext)==null?void 0:y.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.J.JSC$13017_buildRequest=function(R,y,u){if(_.f("enable_interstitial_entity_check")){var v=this.JSC$13029_storeWithEntities;if(y.videoId)for(var Q=_.V(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),M=Q.next();!M.done;M=Q.next()){M=M.value;var K;var h=void 0,b=void 0,N=y.videoId,T=M;(K=v)?(N=_.Nq(N+T,"interstitialInteractionStateEntity"),K=(h=(b=_.TI(K.getState().entities,"interstitialInteractionStateEntity",N))==null?void 0:b.primaryButtonClicked)!=null?h:!1):K=!1;if(K)switch(M){case "CONTENT_CHECK_REQUIRED":y.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":y.racyCheckOk=!0}}}y.videoId&&(R.videoId=y.videoId);y.playlistId&&(R.playlistId=y.playlistId);y.index!==void 0&&(R.playlistIndex=y.index+1);y.playerParams&&(R.params=y.playerParams);"startTimeSeconds"in y&&y.startTimeSeconds&&(_.f("enable_player_request_builder_start_time_floor")?R.startTimeSecs=Math.floor(y.startTimeSeconds):R.startTimeSecs=y.startTimeSeconds);u.contentPlaybackContext&&(R.playbackContext={contentPlaybackContext:u.contentPlaybackContext});u.prefetchPlaybackContext&&
(R.playbackContext=Object.assign({},R.playbackContext,{prefetchPlaybackContext:u.prefetchPlaybackContext}),R.context.request||(R.context.request={}),R.context.request.isPrefetch=!0);R.playbackContext||(R.playbackContext={});v=LXg();R.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!v,supportXhr:vqY};u.overrideMutedAtStart&&(R.overrideMutedAtStart=u.overrideMutedAtStart);R.racyCheckOk=!!y.racyCheckOk;R.contentCheckOk=!!y.contentCheckOk;!_.f("captions_prefs_killswitch")&&(u=(u=_.fl("yt-player-caption-language-preferences"))?
u:[],u==null?0:u.length)&&(R.captionParams={viewerSelectedCaptionLangs:u})};
_.J.getRequestConfig=function(R){R=this.JSC$13024_getStoreKey(R);var y;R&&(y={storeStrategy:{storeKey:R}});_.f("web_log_player_watch_next_ticks")&&(y=y||{},y.requestTick="ps_s",y.responseTick="ps_r");return y};
Ox[Mn]=[he];var Z5=function(){};
_.O(Z5,xX);_.J=Z5.prototype;_.J.getApiPaths=function(){return gxY};
_.J.getExtension=function(R){return _.e(R,_.zM)};
_.J.isNavigationCommand=function(){return!0};
_.J.JSC$13024_getStoreKey=function(R){if((R=this.getExtension(R))&&R.videoId){var y={videoId:R.videoId};R.playlistId&&(y.playlistId=R.playlistId);R.index&&(y.index=R.index);R.params&&(y.params=R.params);return _.sf("next",y)}};
_.J.JSC$13017_getClientScreen=function(R){var y;return((y=R.contentPlaybackContext)==null?void 0:y.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.J.JSC$13017_buildRequest=function(R,y,u){y.videoId&&(R.videoId=y.videoId);y.playlistId&&(R.playlistId=y.playlistId);y.params&&(R.params=y.params);y.index!==void 0&&(R.playlistIndex=y.index);R.racyCheckOk=!(!u.racyCheckOk&&!y.racyCheckOk);R.contentCheckOk=!!y.contentCheckOk;u.contentPlaybackContext&&(R.autonavState=u.contentPlaybackContext.autonavState,R.playbackContext={vis:u.contentPlaybackContext.vis,lactMilliseconds:u.contentPlaybackContext.lactMilliseconds});u.prefetchPlaybackContext&&(R.context.request||
(R.context.request={}),R.context.request.isPrefetch=!0);_.f("captions_hats_killswitch")||(y=_.O9().getFlag(65),y=y!=null?!y:!1,u=!!_.fl("yt-player-sticky-caption"),R.captionsRequested=y&&u)};
_.J.getRequestConfig=function(R){R=this.JSC$13024_getStoreKey(R);var y;R&&(y={storeStrategy:{storeKey:R}});_.f("web_log_player_watch_next_ticks")&&(y=y||{},y.requestTick="wn_s",y.responseTick="wn_r");return y};
var H1=function(){};
_.O(H1,xX);H1.prototype.getApiPaths=function(){return gxY};
H1.prototype.getExtension=function(R){return _.e(R,_.Lh)};
H1.prototype.JSC$13017_buildRequest=function(R,y){y.token&&(R.continuation=y.token)};var nl=function(R,y){this.playerRequestBuilder=R;this.watchNextRequestBuilder=y};
_.O(nl,xX);nl.prototype.getApiPaths=function(){return K2g};
nl.prototype.getExtension=function(R){return _.e(R,_.zM)};
nl.prototype.isNavigationCommand=function(){return!0};
nl.prototype.JSC$13017_buildRequest=function(R,y,u){R.playerRequest={};this.playerRequestBuilder.JSC$13017_buildRequest(R.playerRequest,y,u);_.f("web_streaming_watch")&&(R.watchNextRequest={},this.watchNextRequestBuilder.JSC$13017_buildRequest(R.watchNextRequest,y,u))};
nl[Mn]=[Ox,Z5];var QdV;_.GL=new _.Jx("SHORTS_CONTROLLER_TOKEN");QdV=new _.Jx("SHORTS_STATE_STORE_TOKEN");var rv=function(R,y){var u=_.qy.apply(2,arguments);R=R===void 0?0:R;_.OL.call(this,y,u);this.errorType=R;Object.setPrototypeOf(this,this.constructor.prototype)};
_.O(rv,_.OL);var jdT,MAc,VAV,KJO,Yl,rPU,hPc,IWw,oqw,wv5,F7G;jdT=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(R){return R+"="}).join("|"));
MAc=RegExp(".*\\?.*playnext=1.*");_.P1=function(R,y,u,v){this.watchEndpointMap=R;this.reelWatchEndpointMap=y;this.innerTubeTransportService=u;this.fetchPbj=v};
VAV=function(R,y,u){var v=_.ua().resolve(_.yN(JKc));_.P1.instance=new _.P1(R,y,u,v)};
_.isK=function(R,y){var u=_.JT("web_pbj_log_warning_rate",0);u=u>0&&Math.random()<u;var v;if((v=_.e(y.commandMetadata,_.QL))==null||!v.rootVe)return u&&_.kT(Error("Tf")),!1;var Q;v=(Q=_.e(y.commandMetadata,_.QL))==null?void 0:Q.url;if(!v)return u&&_.kT(Error("Uf")),!1;if(MAc.test(v))return!0;if(jdT.test(v))return u&&_.kT(Error("Vf`"+v)),!1;if(_.e(y,_.zM)){if(!(R.watchEndpointMap.watchNext&&R.watchEndpointMap.player||_.f("kevlar_fetch_initial_data_op_watch_client")))return u&&_.kT(Error("Mf")),!1;
R=_.JT("web_pbj_log_warning_rate",0);R=R>0&&Math.random()<R;_.e(y,_.zM)?MhL(y)?y=!0:(R&&_.kT(Error("Nf")),y=!1):(R&&_.kT(Error("Mf")),y=!1);return y}if(_.e(y,_.PV))return JOP(y);if(_.e(y,_.t4))return!0;R=_.R8(R.innerTubeTransportService,y);!R&&u&&_.dI(Error("Wf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(y)});return R};
KJO=function(R,y,u,v,Q,M){y={url:y};if(u==null?0:u.itct)y.parentTrackingParams=u.itct;var K=_.jq(Pl5);return _.am(R.innerTubeTransportService,y,K).then(function(h){(h=h.endpoint)||(h=_.nx);(u==null?0:u.itct)&&h&&!h.trackingParams&&(h.trackingParams=u.itct);var b=G2(h);return Yl(R,h,u,v,b,Q,M)})};
Yl=function(R,y,u,v,Q,M,K,h){h=h===void 0?{}:h;if(R.fetchPbj&&!_.isK(R,y)&&!_.f("force_one_platform")){h=R.fetchPbj(y);var b=_.NQ(h.then(function(c){if(!c)throw Error("Xf");K(b)||M(y,c);return c}));
return b}var N,T,x={rootVe:(N=_.e(y.commandMetadata,_.QL))==null?void 0:N.rootVe,url:(T=_.e(y.commandMetadata,_.QL))==null?void 0:T.url,endpoint:y,page:Q};if(_.e(y,_.zM)){var B,l={contentPlaybackContext:_.UZ(u,(B=_.e(y.commandMetadata,_.QL))==null?void 0:B.url,v)},Z=_.uD();_.f("web_streaming_watch")&&window.TextDecoderStream?(h=K7G(R.innerTubeTransportService,y,l,function(c){!x.response&&c.content&&(x.response=c.content);!x.playerResponse&&c.player&&(x.playerResponse=c.player);M(y,x)}),N=LBv(y),N.length&&
(x.preconnect=N,M(y,x)),IWw(h,Z,x).catch(function(c){c instanceof rv&&c.errorType===2&&hPc(R,y,l,x,M,K,Z)})):hPc(R,y,l,x,M,K,Z);
return Z.promise}if(_.e(y,_.PV)){var P;if(((P=_.e(y,_.PV))==null?void 0:P.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var k=_.uD();_.bsY(_.ua().resolve(_.GL),y).then(function(c){F7G(R,u,v,Q,M,k,c)});
return k.promise}h=_.NQ();var E;N={contentPlaybackContext:_.UZ(u,(E=_.e(y.commandMetadata,_.QL))==null?void 0:E.url,v)};(E=R.reelWatchEndpointMap.player)&&(E=E().JSC$13017_getRequest(y,N))&&(h=_.am(R.innerTubeTransportService,E.innerTubeRequest,E.input,y.clickTrackingParams,E.config));E=_.NQ();(T=R.reelWatchEndpointMap.reelItemWatch)&&(T=T().JSC$13017_getRequest(y))&&(E=_.am(R.innerTubeTransportService,T.innerTubeRequest,T.input,y.clickTrackingParams,T.config));T=_.NQ();(B=R.reelWatchEndpointMap.reelWatchSequence)&&
_.e(y,_.PV).sequenceParams&&(N=B().JSC$13017_getRequest(y,N))&&(T=_.am(R.innerTubeTransportService,N.innerTubeRequest,N.input,y.clickTrackingParams,N.config));N=_.NQ(x);B=_.uD();wv5(y,N,h,E,T,M,K,B);return B.promise}var D;if(_.e(y,uJE)&&((D=_.e(y.commandMetadata,_.QL))==null?0:D.url))return h=N04(_.pF(U6().location.href),_.pF(_.e(y.commandMetadata,_.QL).url)).toString(),KJO(R,h,u,v,M,function(){return!1});
if(_.e(y,_.t4))return M(y,x),_.NQ(x);if(_.R8(R.innerTubeTransportService,y)){h=Object.assign({},{tempData:u,disableCache:u.disableCache},h);var z=_.yB(R.innerTubeTransportService,y,h).then(function(c){x.response=c;K(z)||M(y,x);return x});
return z}return _.NQ(x)};
_.T_b=function(R,y,u,v){if(_.e(y,_.zM)||_.e(y,_.PV)&&(_.f("mweb_enable_shorts_innertube_player_prefetch")||_.f("kevlar_enable_shorts_prefetch_in_sequence"))||_.e(y,fEV)&&_.f("web_enable_prefetching_videos_on_home")){var Q,M={contentPlaybackContext:_.UZ(u,(Q=_.e(y.commandMetadata,_.QL))==null?void 0:Q.url,v),prefetchPlaybackContext:IN4(u)},K,h,b;if(((K=_.e(y,_.zM))==null?void 0:(h=K.watchEndpointSupportedPrefetchConfig)==null?void 0:(b=h.prefetchHintConfig)==null?void 0:b.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(u=
R.watchEndpointMap.watchNext)if(M=u().JSC$13017_getRequest(y,M))return Promise.resolve(_.am(R.innerTubeTransportService,M.innerTubeRequest,M.input,void 0,M.config).then(function(x){return x}))}else if(u=R.watchEndpointMap.player)if(M=u().JSC$13017_getRequest(y,M))return Promise.resolve(_.am(R.innerTubeTransportService,M.innerTubeRequest,M.input,void 0,M.config).then(function(x){return x}))}else if(_.R8(R.innerTubeTransportService,y)){var N={tempData:u},T=N_5(R.innerTubeTransportService,y);
return T?new Promise(function(x,B){var l,Z;return _.I(function(P){if(P.nextAddress==1)return P.yield(T,2);if(P.nextAddress!=4)return l=P.yieldResult,l.JSC$13024_getStoreKey(y,N)?P.yield(_.yB(R.innerTubeTransportService,y,N),4):(B(new _.OL("Prefetching request builder with no store key.",y)),P.jumpTo(0));Z=P.yieldResult;x(Z);_.f$(P)})}):Promise.reject(new _.OL("Prefetching unregistered request builder.",y))}return Promise.reject(new _.OL("No request builder available to prefetch endpoint.",y))};
rPU=function(R,y){var u,v,Q;if(_.e(y,_.zM)){var M=R.watchEndpointMap.watchNext;M&&(u=M());(R=R.watchEndpointMap.player)&&(v=R())}else if(_.e(y,_.PV))(M=R.reelWatchEndpointMap.reelItemWatch)&&(u=M()),(M=R.reelWatchEndpointMap.player)&&(v=M()),(R=R.reelWatchEndpointMap.reelWatchSequence)&&(Q=R());else{a:{R=N4U(y,R.innerTubeTransportService.endpointMap);if(R!==void 0)if(typeof R.then==="function")_.dI(new _.OL("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",y));else break a;
R=void 0}R&&(u=R)}var K,h,b;return{content:(K=u)==null?void 0:K.JSC$13024_getStoreKey(y),player:(h=v)==null?void 0:h.JSC$13024_getStoreKey(y),reelSequence:(b=Q)==null?void 0:b.JSC$13024_getStoreKey(y)}};
hPc=function(R,y,u,v,Q,M,K){var h=_.NQ(),b=R.watchEndpointMap.player;_.f("web_streaming_player")&&(b=dw(nl));b&&(b=b().JSC$13017_getRequest(y,u))&&(h=_.am(R.innerTubeTransportService,b.innerTubeRequest,b.input,y.clickTrackingParams,b.config));b=_.NQ();var N=R.watchEndpointMap.watchNext;N&&(u=N().JSC$13017_getRequest(y,u))&&(b=_.am(R.innerTubeTransportService,u.innerTubeRequest,u.input,y.clickTrackingParams,u.config));R=_.NQ(v);oqw(y,R,h,b,Q,M,K)};
IWw=function(R,y,u){return _.I(function(v){if(v.nextAddress==1)return v.yield(R,2);y.resolve(u);_.f$(v)})};
oqw=function(R,y,u,v,Q,M,K){var h,b,N,T,x;_.I(function(B){switch(B.nextAddress){case 1:return B.yield(y,2);case 2:h=B.yieldResult;if(M(K.promise))return K.resolve(h),B.return();Q(R,h);b=LBv(R);if(!b.length){B.jumpTo(3);break}return B.yield(y,4);case 4:h.preconnect=b,Q(R,h);case 3:return _.wY(B,5),B.yield(u,7);case 7:N=B.yieldResult;_.c5(B,6);break;case 5:return T=_.B$(B),K.reject(T),B.return();case 6:if(N===void 0)return h.reload=!0,Q(R,h),K.resolve(h),B.return();if(M(K.promise))return K.resolve(h),
B.return();h.playerResponse=N;Q(R,h);_.wY(B,8);return B.yield(v,10);case 10:x=B.yieldResult;_.c5(B,9);break;case 8:_.B$(B);case 9:if(x===void 0)return h.response={responseContext:{}},K.resolve(h),B.return();if(M(K.promise))return K.resolve(h),B.return();h.response=x;Q(R,h);K.resolve(h);_.f$(B)}})};
wv5=function(R,y,u,v,Q,M,K,h){var b,N,T,x,B,l;_.I(function(Z){switch(Z.nextAddress){case 1:return Z.yield(y,2);case 2:b=Z.yieldResult;if(K(h.promise))return h.resolve(b),Z.return();M(R,b);N=LBv(R);if(!N.length){Z.jumpTo(3);break}return Z.yield(y,4);case 4:b.preconnect=N,M(R,b);case 3:return _.wY(Z,5),Z.yield(u,7);case 7:T=Z.yieldResult;_.c5(Z,6);break;case 5:return x=_.B$(Z),h.reject(x),Z.return();case 6:if(T===void 0)return b.reload=!0,M(R,b),h.resolve(b),Z.return();if(K(h.promise))return h.resolve(b),
Z.return();b.playerResponse=T;M(R,b);_.wY(Z,8);return Z.yield(v,10);case 10:B=Z.yieldResult;_.c5(Z,9);break;case 8:_.B$(Z);case 9:if(B===void 0)return b.response={responseContext:{}},h.resolve(b),Z.return();if(K(h.promise))return h.resolve(b),Z.return();b.response=B;M(R,b);_.wY(Z,11);return Z.yield(Q,13);case 13:l=Z.yieldResult;_.c5(Z,12);break;case 11:_.B$(Z);case 12:if(K(h.promise))return h.resolve(b),Z.return();b.reelWatchSequenceResponse=l;M(R,b);h.resolve(b);_.f$(Z)}})};
F7G=function(R,y,u,v,Q,M,K){var h,b,N,T,x,B;_.I(function(l){if((h=K)==null||!h.replacementEndpoint)return M.reject(),l.return();b=K.replacementEndpoint;(N=_.e(b,_.PV))?(K.sequenceContinuation&&(N.sequenceParams=K.sequenceContinuation),T=_.ua().resolve(_.GL),x=N.sequenceParams,x6i(T,b)&&delete N.sequenceParams,B=Yl(R,b,y,u,v,Q,function(){return!1}),B.then(function(Z){return _.I(function(P){if(P.nextAddress==1)return B_b(T,{reelWatchEndpoint:{sequenceParams:x}},Z),P.yield(0,2);
M.resolve(Z);_.f$(P)})})):M.reject();
_.f$(l)})};_.fWc=function(R){if(R.validatedFragments_.length==0)return null;if(!R.mergedPrefetchedData_){for(var y=[],u=_.V(R.validatedFragments_),v=u.next();!v.done;v=u.next()){v=_.V(R.fragmentConfiguration_[v.value].graftedKeys);for(var Q=v.next();!Q.done;Q=v.next())(Q=R.prefetchedData_[Q.value].trackingParams)&&y.push(Q)}R.mergedPrefetchedData_={};Object.assign(R.mergedPrefetchedData_,R.prefetchedData_,{clientSideGrafts:y})}return R.mergedPrefetchedData_};var ePG;_.W1=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
ePG=function(R,y,u){if(_.QaO(y))return R.prefetchCache_.get(_.jac(y,u))};_.dv=new _.Jx("NAVIGATION_TOKEN");var lWY=function(R){var y=this;var u=u===void 0?fNS():u;var v=v===void 0?_.ua().resolve(_.dv):v;this.onePickCommand=R;this.JSC$13127_playlistNetworkManager=u;this.navigationManager=v;this.videoPickerBuilder=_.x$W("yt-addtoplaylist");_.WiK(OiT(ZiT(lz5(this.videoPickerBuilder.setTitle(R.modalTitle).setSize(1E3).addView(nz5()).addView(HJK())).addView("youtube"),R.selectButtonLabel)),function(Q){y.handleAction(Q)})};
lWY.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
lWY.prototype.handleAction=function(R){var y=this;if(R&&this.onePickCommand.listId&&R.action==="picked"&&R.docs){var u=[];R.docs.forEach(function(v){u.push({addedVideoId:v.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13127_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,u).then(function(){_.f("playlist_add_video_hard_reload_killswitch")?y.navigationManager.reload():OsL(y.navigationManager)})}};var Zsg=function(){if(this.constructor===Zsg)throw new TypeError("Yf");};
_.J=Zsg.prototype;_.J.dispose=function(){};
_.J.disconnect=function(){};
_.J.reconnect=function(){};
_.J.observe=function(R,y,u){return{element:R,option:u}};
_.J.unobserveByKey=function(){};var eYU=function(R,y){y=y===void 0?0:y;Zsg.call(this);this.viewroot=R;this.defaultPrescanHeight=y;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};
_.O(eYU,Zsg);_.J=eYU.prototype;_.J.dispose=function(){this.disconnect();this.handlers.clear()};
_.J.disconnect=function(R){this.isConnected=!1;this.pauseObservingUntilReconnect=R===void 0?!1:R;this.observer.disconnect();R=_.V(this.prescanObservers.values());for(var y=R.next();!y.done;y=R.next())y.value.disconnect()};
_.J.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var R=_.V(this.handlers),y=R.next();!y.done;y=R.next()){var u=_.V(y.value);y=u.next().value;var v=u.next().value;u=!1;v=_.V(v.keys());for(var Q=v.next();!Q.done;Q=v.next())if((Q=Q.value)&&Q.state==="prescan"){u=!0;break}u&&Hs5(this,y).observe(y);this.observer.observe(y)}}};
_.J.handleObserveEvent=function(R){R=_.V(R);for(var y=R.next();!y.done;y=R.next()){y=y.value;var u=this.handlers.get(y.target);if(u){var v=y.isIntersecting;u=_.V(u);for(var Q=u.next();!Q.done;Q=u.next()){var M=_.V(Q.value);Q=M.next().value;M=M.next().value;Q&&(Q.state==="visible"&&v||Q.state==="hidden"&&!v)&&(M(y.target,Q.state),Q.calledOnce&&this.unobserveByKey({element:y.target,option:Q}))}}}};
_.J.handlePrescanEvent=function(R){R=_.V(R);for(var y=R.next();!y.done;y=R.next()){y=y.value;var u=this.handlers.get(y.target);if(u&&y.isIntersecting){u=_.V(u);for(var v=u.next();!v.done;v=u.next()){var Q=_.V(v.value);v=Q.next().value;Q=Q.next().value;v&&v.state==="prescan"&&(Q(y.target,v.state),v.calledOnce&&this.unobserveByKey({element:y.target,option:v}))}}}};
_.J.observe=function(R,y,u){var v=(v=this.handlers.get(R))&&v.has(u)?{element:R,option:u}:void 0;if(v)return v;v={element:R,option:u};this.handlers.has(R)||this.handlers.set(R,new Map);var Q=this.handlers.get(R);Q&&!Q.has(u)&&Q.set(u,y);this.pauseObservingUntilReconnect||(u.state==="prescan"&&Hs5(this,R).observe(R),this.observer.observe(R));return v};
_.J.unobserveByKey=function(R){var y=this.handlers.get(R.element);if(y&&y.has(R.option)){y.delete(R.option);if(R&&R.option.state==="prescan")for(var u=_.V(this.prescanObservers.values()),v=u.next();!v.done;v=u.next())v.value.unobserve(R.element);y.size===0&&(this.handlers.delete(R.element),this.observer.unobserve(R.element))}};
var Hs5=function(R,y){var u=R.defaultPrescanHeight;y.hasAttribute("prescan-height")&&(y=Number(y.getAttribute("prescan-height")),isNaN(y)||(u=y));if(R.prescanObservers.has(u))return R.prescanObservers.get(u);y="-0.1px -0.1px "+u+"px -0.1px";y=new IntersectionObserver(R.handlePrescanEvent.bind(R),R.viewroot?{root:R.viewroot,rootMargin:y}:{rootMargin:y});R.prescanObservers.set(u,y);return y};var nqc=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],G4V=function(){var R,y=this;this.JSC$13144_actionRouter=R=R===void 0?_.c3.getInstance():R;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return y.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return y.visibilityObservedElementHandlerKeys}}},rKg,W7g,k48;
G4V.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.f("kevlar_use_vimio_behavior")&&_.EB("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=lNO())};
G4V.prototype.dispose=function(){this.visibilityMonitor&&_.Hc(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
G4V.prototype.handleVisibilityRefreshed=function(){for(var R=_.V(this.targetMap.entries()),y=R.next();!y.done;y=R.next()){var u=_.V(y.value);y=u.next().value;u=u.next().value;_.PZ5(this,y,u)}};
_.U6b=function(R,y,u){W7g(R,u);var v=_.d6g(R,y);v.element=u;R.targetedElements.set(u,y);_.PZ5(R,y,v)};
W7g=function(R,y){var u=R.targetedElements.get(y);if(u){var v=R.targetMap.get(u);v&&(delete v.element,R.targetMap.set(u,v));R.targetedElements.delete(y);R.visibilityObserver&&R.visibilityObservedElementHandlerKeys&&(u=R.visibilityObservedElementHandlerKeys.get(y))&&(R.visibilityObserver.unobserveByKey(u),R.visibilityObservedElementHandlerKeys.delete(y))}};
_.PZ5=function(R,y,u){var v=u.action,Q=u.element;Q&&v&&(nqc.includes(y)||_.EB("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||R.visibilityMonitor&&R.visibilityMonitor.isNodeVisible(Q)?k48(R,y,u):R.visibilityObserver&&(R.visibilityObservedElementHandlerKeys||(R.visibilityObservedElementHandlerKeys=new WeakMap),v=R.visibilityObserver.observe(Q,function(){k48(R,y,u);R.visibilityObservedElementHandlerKeys.delete(Q)},{calledOnce:!0,
state:"visible"}),R.visibilityObservedElementHandlerKeys.set(Q,v)))};
k48=function(R,y,u){var v=u.action;(u=u.element)&&v&&(_.pV(R.JSC$13144_actionRouter,[v],u),R.targetMap.delete(y),R.targetedElements.delete(u),R.triggeredTargets.add(y))};
_.d6g=function(R,y){var u=R.targetMap.get(y);u||(u={},R.targetMap.set(y,u));return u};
_.Ux=function(){rKg||(rKg=new G4V);return rKg};var Eq5=document.createElement("div");Eq5.style.touchAction="pan-down";var O_E=Eq5.style.touchAction==="pan-down";var $65,qUT;$65=function(){this.hammerFn=lOc();this.JSC$13152_screenManager=_.GN();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.$6(83615);_.Br(this.JSC$13152_screenManager,this.ve);Z_L()};
_.kX=function(){qUT||(qUT=new $65);return qUT};
$65.prototype.registerTouchEvents=function(R,y,u){var v=_.qy.apply(3,arguments),Q=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}]]});u&&Q.set({touchAction:u});this.nodeManagerMapping.set(R,Q);var M=
H_v(y);v=_.V(v);for(var K=v.next();!K.done;K=v.next()){K=K.value;if(K.includes("swipe")||K.includes("pinch")||K.includes("pan"))K.includes("swipe")?Q.get("swipe").set({enable:!0,direction:M,velocity:.2}):K.includes("pinch")?Q.get("pinch").set({enable:!0}):K.includes("pan")&&(Q.get("pan").set({enable:!0,direction:M}),Q.get("swipe").set({enable:!0,direction:M,velocity:.2}),Q.get("swipe").recognizeWith("pan"));Xvc(this,R,Q,K)}};
var Xvc=function(R,y,u,v){u.on(v,function(Q){if(v.includes("pinch"))R.lastPinchTime=Date.now();else if(v.includes("swipe")&&Date.now()-R.lastPinchTime<400)return;Q.pointerType!=="mouse"&&(Q=v==="doubletap"?{coordinates:Q.center}:v.includes("pan")?Q:v.includes("swipe")?{target:Q.target}:{},y.dispatchEvent(new CustomEvent(v,{bubbles:!0,composed:!0,detail:Q})))})};
$65.prototype.unregisterTouchEvents=function(R){var y=_.qy.apply(1,arguments),u=this.nodeManagerMapping.get(R);if(u){y=_.V(y);for(var v=y.next();!v.done;v=y.next())u.off(v.value);this.nodeManagerMapping.delete(R);R.style.touchAction="unset"}};var m6i=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var nxU=null;var AKg=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},aNW=function(){AKg.instance||(AKg.instance=new AKg);
return AKg.instance},SM4=function(R){var y=R.networkEvents;
R.networkEvents=[];return _.f("enable_network_monitoring")?y:[]};var D6T;D6T={};_.pvG=yO("yt-serviceworker-metadata",{objectStores:(D6T.auth={addedAtVersion:1},D6T["resource-manifest-assets"]={addedAtVersion:2},D6T),shared:!0,upgrade:function(R,y){y(1)&&XM(R,"resource-manifest-assets");y(2)&&XM(R,"auth")},
version:2});var U$v=self.location.origin+"/";kdv([/\.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\//]);kdv([/purge_shell=1/]);var tAb=void 0;tAb=tAb===void 0?[]:tAb;for(var cKc=[],aWg=_.V(hLK),SUb=aWg.next();!SUb.done;SUb=aWg.next())cKc.push({key:SUb.value});for(var YUc=_.V(tAb),L7L=YUc.next();!L7L.done;L7L=YUc.next())cKc.push(L7L.value);var sdL,pc=_.uO==null?void 0:(sdL=_.uO.performance)==null?void 0:sdL.memory,qMT=!1,YMO={},AOT={},tU={},cV=navigator;var Ex=function(R){this.JSC$13196_expiringStorage=new H5(R)};
Ex.prototype.set=function(R,y,u){u=u!==void 0?Date.now()+u:void 0;this.JSC$13196_expiringStorage.set(R,y,u)};
Ex.prototype.get=function(R){return this.JSC$13196_expiringStorage.get(R)};
Ex.prototype.remove=function(R){this.JSC$13196_expiringStorage.remove(R)};var uS8=_.RE(["https://www.youtube.com/",""]),vOS=_.RE(["https://studio.youtube.com/",""]),V1v="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",jsW=null,bWW;var zPg=_.RE(["https://www.youtube.com/iframe_api"]),$X=function(){this.playerResolver_=_.uD();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.ZM;this.playbackDurationSeconds_=0},gqK=function(R){var y=function(){return window.YT&&typeof window.YT.ready==="function"};
if(y())return _.NQ(window.YT);var u=_.uD(),v=_.o_("SCRIPT");v.onload=v.onreadystatechange=function(){v.readyState&&v.readyState!="loaded"&&v.readyState!="complete"||(v.onload=_.ZM,v.onreadystatechange=_.ZM,v.onerror=_.ZM,y()?u.resolve(window.YT):u.reject(new _.OL("Failed to load the iframe player library","script.onload",v.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
v.onerror=function(Q){v.onload=_.ZM;v.onreadystatechange=_.ZM;v.onerror=_.ZM;u.reject(new _.OL("Failed to load the iframe player library","script.onerror",Q&&Q.target&&Q.target.src))};
_.gC(v,_.M1(zPg));R.insertBefore(v,R.firstChild);return u.promise},CZ5=function(R,y,u){var v,Q;
_.I(function(M){switch(M.nextAddress){case 1:return R.playbackEndedCallback_=u,_.wY(M,2),M.yield(gqK(y.parentElement||null),4);case 4:v=M.yieldResult;_.c5(M,3);break;case 2:return Q=_.B$(M),Q instanceof _.OL&&Q.args&&Q.args[0]=="script.onerror"?_.kT(Q):_.dI(Q),M.return();case 3:v.ready(function(){return new v.Player(y,{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)}})}),_.f$(M)}})};
_.J=$X.prototype;_.J.getPlayerPromise=function(){return this.playerPromise_};
_.J.onPlayerReady_=function(R){this.playerResolver_.resolve(R.target)};
_.J.onPlayerStateChange_=function(R){if(R.data==YT.PlayerState.PLAYING){R=R.target;var y=R.getCurrentTime();R.addCueRange("playback",y,y+this.playbackDurationSeconds_)}};
_.J.onCueRangeExit_=function(R){R.data=="playback"&&(R.target.stopVideo(),this.playbackEndedCallback_())};
_.J.stopVideo=function(){this.playerPromise_.then(function(R){R.stopVideo()})};
var RQg=function(R){R.playerVars_&&R.playerPromise_.then(function(y){typeof y.cueVideoByPlayerVars!="function"?_.kT(new _.OL("vmh: player API not ready","cueVideoByPlayerVars",typeof y.cueVideoByPlayerVars)):y.cueVideoByPlayerVars(R.playerVars_)})};
$X.prototype.playVideo=function(){var R=this;this.playerVars_&&this.playerPromise_.then(function(y){typeof y.loadVideoByPlayerVars!="function"?(y=new _.OL("vmh: player API not ready","loadVideoByPlayerVars",typeof y.loadVideoByPlayerVars),_.dI(y)):y.loadVideoByPlayerVars(R.playerVars_)})};
var yMV=function(R,y,u,v,Q){y&&(u===void 0&&(u=0),v===void 0&&(v=0),R.playbackDurationSeconds_=v/1E3,R.playerVars_={adformat:"17_8",videoId:y,suggestedQuality:"hd720",startSeconds:u/1E3,player_params:Q})};
$X.prototype.mute=function(){this.playerPromise_.then(function(R){R.mute()})};
$X.prototype.unMute=function(){this.playerPromise_.then(function(R){R.unMute()})};var u6V=function(R,y){var u=pv();R||(R="unknown");y||(y="unknown");R="MAIN_APP_WEB_PAGE_TYPE_"+R.toUpperCase();R in xd5||(R="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");y="MAIN_APP_WEB_REQUEST_TYPE_"+y.toUpperCase();y in B5V||(y="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.TK(u,{mainAppWeb:{pageType:R,requestType:y,isShellLoad:_.$B("IS_SHELL_LOAD",!1)}})},vnc={start:function(){_.TK(dn4(),{mainAppWeb:_.gw()})},
success:function(){_.o2(dn4(),"SUCCESS")},
failure:function(){_.o2(dn4(),"FAILURE")},
cancelled:function(){_.o2(dn4(),"CANCELLED")}};var QAg,jAV,fHT;QAg=_.RE(["/sw.js"]);jAV=_.RE(["/sw.js?0"]);_.Ml5=_.M1(QAg);fHT=_.M1(jAV);var JM8=function(){var R=Error.apply(this,arguments);this.message=R.message;"stack"in R&&(this.stack=R.stack)};
_.O(JM8,Error);_.ya.prototype.load=function(R){this.megabloxUrl_=_.EB("YPC_MB_URL");_.tl(this.megabloxUrl_,(0,_.HY)(function(){R&&R()},this))};
_.JB8=function(R,y,u,v,Q,M,K,h,b,N,T){_.lHU(b);R.load((0,_.HY)(function(){try{var x=M?M:_.EB("HL"),B=_.EB("SESSION_INDEX");_.hqU("client",function(){Nhw("59",{helpCenterPath:"/youtube",locale:x,window:window}).JSC$9945_loadChatSupport({authuser:String(B)})})}catch(l){throw Cc(10,T,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),Q&&Q(l),_.dI(l),l;
}Vlg(this,y,u,v,Q,M,K,h,b,N,T)},R))};
_.ya.prototype.openFixFlowDialog=function(R,y,u,v){this.load((0,_.HY)(function(){try{iCg(this,_.D6("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(R).withIntegratorCallback(y).load(u,v)}catch(Q){throw _.dI(Q),Q;}},this))};
var iCg=function(R,y,u,v){var Q=y.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.f("enable_window_constrained_buy_flow_dialog")&&(Q=Q.usingPopupStyle(_.D6("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));v&&(Q=Q.usingCloseCallback(v));y.bootstrap.fromPaymentsUrl(R.megabloxUrl_);R=y.bootstrap.asMashupMode(Q);u=u?u:_.EB("HL");R.usingGaiaIndex(_.EB("SESSION_INDEX")).usingLocale(u).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.f("enable_google_payments_buyflow_material2_style_web")?
R.usingStyle(":m2;pc=#444;ac=#065fd4"):R.usingStyle(":md;pc=#444;ac=#065fd4");return R},Vlg=function(R,y,u,v,Q,M,K,h,b,N,T){try{var x=_.D6("payments.business.integration");
if(!x)throw new JM8("payments.business.integration is undefined");var B=x.standaloneContextAuthId.forUserId(),l=iCg(R,x,M,function(){ZW4(!1);h&&h()});
K&&l.usingServerAnalyticsEventHandler(K);var Z=l.inStandaloneContext(B).buyFlow(function(P){if(P&&(!P.integratorData||P.integratorData===""||P.error))if(P.error!=null)if(String(P.error)==="-1")_.OW8(b);else{var k=String(P.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";Cc(10,T,k,P.debugCode);_.RX(k,b,P.debugCode);k=new _.OL("PAYMENT_ERROR_MESSAGE::"+P.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+P.internalErrorDetails);
_.dI(k)}else Cc(10,T,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.RX("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",b,"EMPTY_INTEGRATOR_DATA"),_.dI(Error("cg"));u&&(ZW4(!1),u(P))}).withEncryptedParameters(y);
N&&Z.withClientParameters(oKU(_.J$v(N)));Z.load(function(){Cc(24,T);_.mm("ttc",void 0,"commerce_transaction");yjG("commerce_transaction");v&&(v(),ZW4(!0))},function(P){if(P==null?0:P.debugCode)var k=P==null?void 0:P.debugCode;
else if(!P||(P==null?0:P.debugCode))k="EMPTY_LOAD_FAILURE_ERROR",_.dI(Error(k));else{k="EMPTY_LOAD_FAILURE_DEBUG_CODE";var E=new _.OL("LOAD_FAILURE:"+P.message," DEBUG_CODE:"+k);_.dI(E)}Cc(10,T,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",k);_.RX("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",b,k);_.dI(P);Q&&Q(P)})}catch(P){throw P instanceof JM8&&(Cc(10,T,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),Q&&Q(P)),_.dI(P),P;
}};var K3g;K3g=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.QD4=function(R,y){y=y===void 0?!1:y;R=K3g.test(R)?_.lb(R):null;!y&&window.payments||!R?(R=_.uD(),y=R.promise,R.resolve()):y=_.uMK(R,{attributes:{"data-payments-main":"",id:"payment-lib"}});return y};var Iei;Iei=_.RE(["//www.googletagmanager.com/gtm.js?id=",""]);_.qL=function(R,y){_.bD(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:y}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.EB("GL")}),y=_.o_("SCRIPT"),y.async=!0,_.gC(y,_.M1(Iei,R)),y.id="gtm",R=document.getElementsByTagName("script"),R.length==0?document.head.appendChild(y):(R=R[0],R.parentNode.insertBefore(y,R)))};
_.Xw=function(R){if(R=JSON.parse(R))window.dataLayer=window.dataLayer||[],window.dataLayer.push(R)};var hQT,bCG;hQT=_.RE(["https://clients2.google.com/gr/gr_sync.js"]);_.uYO=function(){};
_.uYO.prototype.init=function(){if(bCG()){var R=_.uD();R.resolve();return R.promise}return _.uMK(_.M1(hQT)).then(function(){if(!bCG())throw Error("dg");},function(){throw Error("eg");
})};
_.vbz=function(){if(!bCG())return"";var R=window.google.gr;R.init({async:{schedule:"sync"},merchantId:"youtube"});R.start();R=R.finish();return R==null?"":R};
bCG=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.W=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.O(_.W,PolymerFakeBaseClassWithoutHtml);_.HN=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.O(_.HN,PolymerFakeBaseClassWithoutHtml);var HW8=window.ShadyDOM;var JrP,jpz,iw4,K6U,hwP,bwL,m$,IX;JrP=_.f("enable_shadydom_free_scoped_query_methods");jpz=_.f("enable_shadydom_free_scoped_node_methods");iw4=_.f("enable_shadydom_free_scoped_readonly_properties_batch_one");K6U=_.f("enable_shadydom_free_parent_node");hwP=_.f("enable_shadydom_free_children");bwL=_.f("enable_shadydom_free_last_child");m$=window.ShadyDOM;_.Nz=m$&&m$.noPatch&&m$.wrap?m$.wrap:m$?function(R){return m$.patch(R)}:function(R){return R};
IX=function(R){if(R instanceof ShadowRoot)this.host=(0,_.Nz)(R.host),this.root=R;else if(R.$$){this.host=(0,_.Nz)(R);var y;this.root=(y=R.root)!=null?y:this.host}else if(R.polymerController){this.host=(0,_.Nz)(R);var u;this.root=(u=this.host.shadowRoot)!=null?u:this.host}else this.root=this.host=(0,_.Nz)(R)};
MaP();VaO();F6U();wxW();I8G();var F35={querySelector:function(R,y){y=GZO(y,j0(R));R=_.Mz(R);return Jw(R).prototype.querySelector.call(R,y)},
querySelectorAll:function(R,y){y=GZO(y,j0(R));R=_.Mz(R);return Jw(R).prototype.querySelectorAll.call(R,y)}},wMV={appendChild:function(R,y){var u=j0(R),v=_.Qa(y);
return _.vQL(_.Mz(R),u?_.i8(y,u,v):y)},
cloneNode:function(R,y){var u=_.Qa(R);R=_.Mz(R);y=Jw(R).prototype.cloneNode.call(R,y);return u?Ku(y,u):y},
contains:function(R,y){var u=j0(R),v=_.Qa(y);return u!==v?!1:Qpv(R,y)},
insertBefore:function(R,y,u){var v=j0(R),Q=_.Qa(y);R=_.Mz(R);y=v?_.i8(y,v,Q):y;return Jw(R).prototype.insertBefore.call(R,y,u)},
removeChild:function(R,y){var u=j0(R);R=_.Mz(R);y=u?Ku(y,u):y;return Jw(R).prototype.removeChild.call(R,y)},
replaceChild:function(R,y,u){var v=j0(R),Q=_.Qa(y);y=v?_.i8(y,v,Q):Q?Ku(y,Q):y;u=v?Ku(u,v):u;R=_.Mz(R);return Jw(R).prototype.replaceChild.call(R,y,u)},
getRootNode:function(R,y){y=y===void 0?{composed:!0}:y;var u;if(((u=y)!=null?u:{}).composed)R=mHc(R);else{y=R;for(R=PHG(R);R;)y=R,R=dHG(R);R=y}return R}},TbU=iw4?{firstChild:z_8,
nextSibling:Y$L,previousSibling:ssL,firstElementChild:gOL,lastElementChild:RwU,nextElementSibling:S$U,previousElementSibling:LGc,childNodes:yrU}:{};K6U&&(TbU.parentNode=aHv);hwP&&(TbU.children=uxL);bwL&&(TbU.lastChild=CHU);JrP&&NbT(F35);jpz&&NbT(wMV);oQS();var xo4=function(R){this.node=R instanceof ShadowRoot?R.host:R};
BbU();f8L();var OwE=new WeakMap;var HwT=Symbol("wd");var W68=new Set(["tap","track","down","up"]),doT=_.f("pbcm_fi_query_decorators");var An=function(){return _.HN.apply(this,arguments)||this};
_.O(An,_.HN);_.J=An.prototype;_.J.getState=function(){return this.store.getState()};
_.J.dispatch=function(R){this.store.dispatch(R)};
_.J.beforeRegister=function(){if(this&&typeof this==="object"){var R;var y=!!this.useSignals||!((R=this.polymerController)==null||!R.useSignals)}else y=!1;if(!y&&this.properties)for(y=_.V(Object.keys(this.properties)),R=y.next();!R.done;R=y.next()){var u=R.value;R=this.properties[u];if(R.selector){if(R.computed)throw Error("kg");u=["reduxPropertiesRecomputeTrigger",'"'+u+'"'].concat(_.P$(R.selectorArgs||[])).join(",");R.computed="recomputeReduxSelector("+u+")"}}};
_.J.attached=function(){var R=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){R.reduxPropertiesRecomputeTrigger++}));
_.f("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.J.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.J.recomputeReduxSelector=function(R,y){var u=_.qy.apply(2,arguments),v=this.properties[y].selector;if(!v)throw Error("ig`"+y);return v.apply(null,[this.store.getState()].concat(_.P$(u)))};
_.J.select=function(R){var y=_.qy.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return R.apply(null,[this.store.getState()].concat(_.P$(y)))};
_.RR.Object.defineProperties(An.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("jg");}}});
An.prototype.recomputeReduxSelector=An.prototype.recomputeReduxSelector;_.A([_.r(),_.p("design:type",Number)],An.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.A([_.nu()],An);var D5=[],$o8={},DV=function(){return up.apply(this,arguments)||this};
_.O(DV,up);DV.prototype._addPropertyEffect=function(R,y,u){if(y==="__observeEffects"&&u){var v,Q=(v=u.info.method)!=null?v:u.info.methodName;if(Q){var M=this[Q];this[Q]=function(){D5.push(Q);try{M==null||M.apply(this,arguments)}finally{D5.pop()}}}}_.Pb._addPropertyEffect.apply(this,[R,
y,u])};
DV.prototype._setPendingProperty=function(R,y,u){if(D5.length){var v=D5[D5.length-1],Q;(Q=$o8[this.is])!=null&&Q.has(v)||(quG(this.is,v),_.P3("polymerPropertyChangedInObserver",{componentName:this.is,observerName:v}))}return _.Pb._setPendingProperty.apply(this,[R,y,u])};
_.A([bpT()],DV);var Xx8=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),ArT,PN={};_.f("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=PN);var E7=function(){return _.HN.apply(this,arguments)||this};
_.O(E7,_.HN);E7.prototype._setUnmanagedPropertyToNode=function(R,y,u){R.loggingStatus&&(R.loggingStatus.isDeclarativeExternal=!0);if(u!==R[y]||typeof u==="object")R[y]=u;R.is&&R.polymerController&&R.polymerController!==R&&U7(R.is,y,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");R.loggingStatus&&(R.loggingStatus.isDeclarativeExternal=!1)};
_.A([_.nu()],E7);moL()&&(D7.prototype._setUnmanagedPropertyToNode=(new E7)._setUnmanagedPropertyToNode);_.yZU={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(R){},set polymerController(R){}}]};var Aw=function(){var R=up.apply(this,arguments)||this;R.json=function(){};
return R};
_.O(Aw,up);Aw.prototype.equals=function(R,y){return R===y};
Aw.prototype.isEmpty=function(R){var y;(y=!R)||(y=_.p8(R)&&R.length===0);return y};
_.A([bpT()],Aw);var Nyw=function(R){R=KRL(R);cO.call(this,R)};
_.O(Nyw,cO);Nyw.prototype.addProvider=function(R){R=R.key?R:KRL([R])[0];var y=this.keyIdToIndex.get(R.key.id);if(y){if(a8S(R,this.providers[y]))throw Error("lg`"+R.key.displayName);}else cO.prototype.addProvider.call(this,R)};
var Tyi=new Nyw([]);var ong=!1;var gQP={};ong||(zwT(),ong=!0);
gQP.InjectBehavior={initializeInjection:function(){var R=this.provide;try{if((R=R!=null?R:[])&&R.length>0)for(var y=KRL(R),u=_.V(y),v=u.next();!v.done;v=u.next())Tyi.addProvider(v.value);var Q=new Set;SuO(this.behaviors||[],Q);y={};for(var M=_.V(Q),K=M.next();!K.done;K=M.next()){var h=K.value;h.inject&&Object.assign(y,h.inject)}this.inject&&Object.assign(y,this.inject);for(var b=_.V(Object.keys(y)),N=b.next();!N.done;N=b.next()){var T=N.value,x=y[T];try{this[T]=Tyi.resolve(x)}catch(B){throw B;}}}catch(B){throw Error(B.message);
}}};var RWE;var uBz=/\bclass\b/.test(function(){}.toString()),jOz=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var x7Y=function(R){this.wasDefined=!0;Array.isArray(R)||R instanceof Array?(this.JSC$13325_getImpl=R[0],this.JSC$13325_setImpl=R[1]):this.JSC$13325_getImpl=R};
_.J=x7Y.prototype;_.J.getWithPath=function(R){return V74(this.JSC$13325_getImpl(),R)};
_.J.setWithPath=function(R,y){var u=this;if(R.length)throw Error("mg");if(!this.JSC$13325_setImpl)throw Error("ng");TF(function(){u.JSC$13325_setImpl(y)})};
_.J.notifyPath=function(){throw Error("og");};
_.J.notifySplices=function(){throw Error("pg");};
_.J.getChangeRecordSignal=function(R,y){var u=this;if(R.length)throw Error("qg");return function(){var v=u.getWithPath(R);return{path:y!=null?y:"",base:v,value:v}}};
_.J.getSplicesSignal=function(){throw Error("rg");};
_.J.getPathMutationSignal=function(){throw Error("sg");};
_.J.pop=function(){throw Error("tg");};
_.J.push=function(){throw Error("ug");};
_.J.splice=function(){throw Error("vg");};
_.J.unshift=function(){throw Error("wg");};var pl=function(R){var y=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(R)||R instanceof Array?(this.JSC$13330_getImpl=R[0],this.JSC$13330_setImpl=R[1]):this.JSC$13330_getImpl=R;this.wasDefined=!1;Ky(function(){y.wasDefined=y.JSC$13330_getImpl()!==void 0})};
pl.prototype.getWithPath=function(R){return V74(this.JSC$13330_getImpl(),R)};
pl.prototype.setWithPath=function(R,y){var u=this;if(R[R.length-1]!=="*"&&R[R.length-1]!=="splices"){var v=Ky(function(){return u.getWithPath([])});
if(R.length===0){if(!this.JSC$13330_setImpl)throw Error("xg");if(_.f("mutable_signal_set_skip_unchanged")&&v===y)return;this.wasDefined||(this.wasDefined=y!==void 0);TF(function(){u.JSC$13330_setImpl(y)})}else{for(var Q=0;Q<R.length-1;Q++){if(!v)return;
v=v[R[Q]]}Q=R[R.length-1];v&&(v[Q]=y);this.wasDefined||(this.wasDefined=R.length>1||y!==void 0)}ByL(this,R,{pathComponents:R,value:y})}};
pl.prototype.notifyPath=function(R,y){R.length===0?y&&this.setWithPath(R,y.value):ByL(this,R,{pathComponents:R,value:y==null?void 0:y.value,fallbackWhenUndefined:y==null?void 0:y.value})};
var ByL=function(R,y,u,v){if(R.setMutationSignal){var Q=++R.mutationIndex,M=[R.observedPath],K=R.observedPath,h;y.length===0&&(h=K);for(var b=0;b<y.length;b++){var N=K.subPaths[y[b]];if(!N)break;M.push(N);K=N;b===y.length-1&&(h=N)}for(y=!1;M.length;)K=M.shift(),K.data={index:Q,mutation:u,spliceMutationIndex:v},y||(y=K===h),y&&M.push.apply(M,_.P$(Object.values(K.subPaths)));TF(function(){R.setMutationSignal(Q)})}};
pl.prototype.notifySplices=function(R,y){var u=this,v=Ky(function(){return u.getWithPath(R)}),Q=[].concat(_.P$(R),["splices"]);
ByL(this,Q,{pathComponents:Q,value:{indexSplices:y}});if(v==null?0:v.length)y=this.mutationIndex,Q=[].concat(_.P$(R),["length"]),ByL(this,Q,{pathComponents:Q,value:v.length},y)};
var fe5=function(R,y,u,v,Q,M){R.notifySplices(u,[{index:v,addedCount:Q,removed:M,object:y,type:"splice"}])},eQc=function(R,y){R=R.observedPath;
for(var u=0;u<y.length;u++){var v=y[u],Q=R.subPaths[v];Q||(Q={pathComponents:y.slice(0,u+1),subPaths:{}},R.subPaths[v]=Q);R=Q}},OCc=function(R,y,u){eQc(R,y);
if(!R.getMutationSignal){var v=_.V(_.In(R.mutationIndex,void 0,"VAMwMc"));R.getMutationSignal=v.next().value;R.setMutationSignal=v.next().value}var Q=R.getMutationSignal;return _.N8(function(){Q();return u(leV(R,y))},void 0,"XeEyEc")};
pl.prototype.getChangeRecordSignal=function(R,y){var u=this,v=this.mutationIndex,Q;return OCc(this,R,function(M){if(M&&M.index>v){var K=M.mutation;v=M.index;Q=void 0}M=Ky(function(){return u.getWithPath(R)});
if(K){var h=K.pathComponents[K.pathComponents.length-1],b=[].concat(_.P$(K.pathComponents));if(h==="splices"||h==="length")return{base:M,path:(y?[y].concat(_.P$(b)):b).join("."),value:K.value};var N=R.length>b.length?R:b,T;return{base:M!=null?M:K.fallbackWhenUndefined,path:(y?[y].concat(_.P$(N)):N).join("."),value:(T=Ky(function(){return u.getWithPath(N)}))!=null?T:K.fallbackWhenUndefined}}Q||(Q={base:M,
path:(y?[y].concat(_.P$(R)):R).join("."),value:M});return Q})};
pl.prototype.getSplicesSignal=function(R){var y=this.mutationIndex,u;return OCc(this,R,function(v){if(v&&v.index>y&&v.spliceMutationIndex!==y){var Q=v.mutation;y=v.index;u=void 0}return Q&&Q.pathComponents[Q.pathComponents.length-1]==="splices"?u=v=Q.value:u})};
pl.prototype.getPathMutationSignal=function(R){var y=this;eQc(this,R);if(!this.getMutationSignal){var u=_.V(_.In(this.mutationIndex,void 0,"T3qL4d"));this.getMutationSignal=u.next().value;this.setMutationSignal=u.next().value}var v=this.getMutationSignal,Q=this.mutationIndex,M;return _.N8(function(){v();var K=leV(y,R);if(K&&K.index>Q&&K.mutation&&iEL(K.mutation.pathComponents,R)){var h=K.mutation;Q=K.index}if(!M||Q!==M.index){var b,N;K=(N=Ky(function(){return y.getWithPath(R)}))!=null?N:(b=h)==null?
void 0:b.fallbackWhenUndefined;
M={index:Q,value:K}}return M},void 0,"rXesZe")};
var leV=function(R,y){R=R.observedPath;y=_.V(y);for(var u=y.next();!u.done;u=y.next())R=R.subPaths[u.value];return R.data};
pl.prototype.pop=function(R){var y=this,u=Ky(function(){return y.getWithPath(R)});
if(!(u instanceof Array))throw Error("yg");var v=u.length>0,Q=u.pop();v&&fe5(this,u,R,u.length,0,[Q]);return Q};
pl.prototype.push=function(R){var y=_.qy.apply(1,arguments),u=this,v=Ky(function(){return u.getWithPath(R)});
if(!(v instanceof Array))throw Error("zg");var Q=v.length,M=v.push.apply(v,_.P$(y));y.length&&fe5(this,v,R,Q,y.length,[]);return M};
pl.prototype.splice=function(R,y,u){var v=_.qy.apply(3,arguments),Q=this,M=Ky(function(){return Q.getWithPath(R)});
if(!(M instanceof Array))throw Error("Ag");y<0?y=M.length-Math.floor(-y):y&&(y=Math.floor(y));var K=M.splice.apply(M,[y,u].concat(_.P$(v)));(v.length||K.length)&&fe5(this,M,R,y,v.length,K);return K};
pl.prototype.unshift=function(R){var y=_.qy.apply(1,arguments),u=this,v=Ky(function(){return u.getWithPath(R)});
if(!(v instanceof Array))throw Error("Bg");var Q=v.unshift.apply(v,_.P$(y));y.length&&fe5(this,v,R,0,y.length,[]);return Q};var ZCi=!0,HC8=!1,SUL=!1,nnw=!1,oZU=!1,GbL=0;nnw=!1;GbL=0;ZCi=!0;oZU=HC8=SUL=!1;var tn=function(R,y,u){this.model=R;this.unknownSignalResolver=y;this.options=u;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];y=_.V(BJ8());R=y.next().value;y=y.next().value;this.owner=R;this.disposeImpl=y};
tn.prototype.dispose=function(){if(!this.isDisposed){for(var R=_.V(this.childSignalProxies),y=R.next();!y.done;y=R.next())y.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var rMw=function(R,y){R=_.gs(R.owner);try{y()}finally{_.gs(R)}};
tn.prototype.effect=function(R){rMw(this,function(){_.WT(R)})};
var PIb=function(R,y){R.options!=null||(R.options={});var u;(u=R.options).immutableProps!=null||(u.immutableProps=new Set);R.options.immutableProps.add(y)},aPz=function(R,y){y=""+y;
W3K(R,y);var u,v;if((u=R.options)==null?0:(v=u.immutableProps)==null?0:v.has(y))return!0;var Q;if((Q=R.model.__signalCache)==null?0:Q.has(y))u=R.model.__signalCache.get(y),Array.isArray(u)&&PIb(R,y);var M,K,h;return(h=(M=R.options)==null?void 0:(K=M.immutableProps)==null?void 0:K.has(y))!=null?h:!1},d7T=function(R,y){var u;
R.unknownSignalResolver&&(u=R.unknownSignalResolver(y));var v,Q;((v=R.options)==null?0:(Q=v.immutableProps)==null?0:Q.has(y))?u!=null||(u=new x7Y(_.In(R.model[y],void 0,"bgwlkd"))):u!=null||(u=new pl(_.In(R.model[y],void 0,"V1hou")));var M=R.model.hostElement;Object.defineProperty(R.model,y,{get:function(){pxU(M,y);return u.getWithPath([])},
set:function(K){kJ(M,y);R.setWithPath([y],K)},
configurable:!0});return u},W3K=function(R,y){var u,v,Q;
((u=R.model.__signalCache)==null||!u.has(y))&&((v=R.options)==null?0:(Q=v.externalSignalProps)==null?0:Q.has(y))&&R.model[y]},aX=function(R,y){y=""+y;
var u=R.signalCache[y];if(u!==void 0)return u;u=!1;W3K(R,y);var v;if((v=R.model.__signalCache)==null?0:v.has(y))if(u=R.model.__signalCache.get(y),Array.isArray(u))u=!0,PIb(R,y);else return R.signalCache[y]=R.model.__signalCache.get(y).signal,R.signalCache[y];var Q,M;v=(M=(Q=R.options)==null?void 0:Q.reactivityMode)!=null?M:0;var K,h;if(!((K=R.options)==null?0:(h=K.reactiveProps)==null?0:h.has(y))&&!u&&v===1)throw Error("Cg`"+y);Q=u?U7V(R,y):d7T(R,y);return R.signalCache[y]=Q},U7V=function(R,y){var u=
Object.getOwnPropertyDescriptor(R.model.constructor.prototype,y),v=function(){return R.model[y]};
return new x7Y(u&&u.get&&!u.set?v:[v,function(Q){R.model[y]=Q}])};
tn.prototype.getWithPath=function(R){var y=_.V(R);R=y.next().value;y=Y7(y);pxU(this.model.hostElement,""+R);return aX(this,R).getWithPath(y)};
tn.prototype.setWithPath=function(R,y){if(R.length){kJ(this.model.hostElement,R.join("."));var u=_.V(R);R=u.next().value;u=Y7(u);aX(this,R).setWithPath(u,y)}};
tn.prototype.getPathMutationSignal=function(R){var y=_.V(R);R=y.next().value;y=Y7(y);return aX(this,R).getPathMutationSignal(y)};
tn.prototype.notifyPath=function(R,y){var u=_.V(R);R=u.next().value;u=Y7(u);aX(this,R).notifyPath(u,y)};
var kbY=function(R,y){if(y.type==="literal")return function(){return{rootWasDefined:!0,value:y.value}};
var u=tw(y.path),v=_.V(u),Q=v.next().value;v=Y7(v);var M,K;if(y.type==="path"&&(u.length===1||((M=R.options)==null?0:(K=M.immutableProps)==null?0:K.has(Q))))return function(){var x=R.getWithPath(u.slice(0,1)),B=V74(x,u.slice(1));x=x!==void 0;xMv()&&(x=aX(R,u[0]).wasDefined);return{rootWasDefined:x,value:B}};
var h=aX(R,Q);if(y.type==="path"){var b=h.getPathMutationSignal(v);return function(){var x=xMv()?h.wasDefined:dh(R.owner,function(){return h.getWithPath([])})!==void 0;
var B,l=(B=b())==null?void 0:B.value;return{rootWasDefined:x,value:l}}}if(y.type==="splices"){var N=h.getSplicesSignal(v);
return function(){var x=N();return{rootWasDefined:xMv()?h.wasDefined:x!==void 0,value:x}}}var T=h.getChangeRecordSignal(v,""+Q);
return function(){var x=T();return{rootWasDefined:xMv()?h.wasDefined:x!==void 0,value:x}}},wSv=function(R,y,u){var v=u.map(function(h){return kbY(R,h)}),Q=u.length===0,M=[],K=u.length!==1||u[0].type!=="path"?!1:!0;
R.effect(function(){for(var h=v.length,b=[],N=!!M.length,T=0;T<h;T++){var x=v[T](),B=x.rootWasDefined;x=x.value;Q||(Q=B);b[T]=x;K&&(b[T+h]=N?M[T]:b[T],M[T]=x)}Q&&dh(R.owner,function(){return void y.apply(null,_.P$(b))})})},KXW=function(R,y,u,v,Q){var M=aX(R,y);
Q!==void 0&&M.setWithPath([],Q);wSv(R,function(){var K=_.qy.apply(0,arguments);kJ(R.model.hostElement,y,!0);M.setWithPath([],u.apply(null,_.P$(K)))},v)};
tn.prototype.arrayPush=function(R){var y=_.qy.apply(1,arguments),u=_.V(R),v=u.next().value;u=Y7(u);v=aX(this,v);return v.push.apply(v,[u].concat(_.P$(y)))};
tn.prototype.arraySplice=function(R,y,u){var v=_.qy.apply(3,arguments),Q=_.V(R),M=Q.next().value;Q=Y7(Q);M=aX(this,M);return M.splice.apply(M,[Q,y,u].concat(_.P$(v)))};
tn.prototype.arrayUnshift=function(R){var y=_.qy.apply(1,arguments),u=_.V(R),v=u.next().value;u=Y7(u);v=aX(this,v);return v.unshift.apply(v,[u].concat(_.P$(y)))};
tn.prototype.notifySplices=function(R,y){var u=_.V(R);R=u.next().value;u=Y7(u);aX(this,R).notifySplices(u,y)};var HEG=/([^\s]+?)\(([\s\S]*)\)/,lPL=/\.([^.]+)$/,GH8=/\\,/g,fPT=/&comma;/g,eWP=/\\(.)/g,nZU=[],OEE={"*":"wildcard",splices:"splices"};var XSU=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"),kHE=/[A-Z]/,En8=["class","hidden","id","on-dom-change"],AZW=new Set([].concat(_.P$(En8),
["if","notify-dom-change","restamp"])),DME=new Set([].concat(_.P$(En8),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),pS4=new Set(["restamp"]);var D7U=new Set(["className","id"]);var YKG=Symbol(),yKL=window;var isW=window;var N_U=0,hPG=0,S0=[],wvU=0,IWc=!1,F7U=document.createTextNode("");(new window.MutationObserver(bs8)).observe(F7U,{characterData:!0});var Lu=new Map,YJ=0,$7G=function(R){this.mappedHandleId=R},oqc=function(R,y,u,v){this.mappedHandleId=R;
var Q=this;this.mappedHandleId=R;this.callback=y;this.waitTime=u;this.schedulerPriority=v;this.handleId=_.WG.addJob(function(){Q.callback();Lu.delete(Q.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.O(oqc,$7G);oqc.prototype.cancel=function(){_.WG.cancelJob(this.handleId);Lu.delete(this.mappedHandleId)};
var x6P=function(R,y){this.mappedHandleId=R;var u=this;this.mappedHandleId=R;this.callback=y;this.handleId=T_L(function(){u.callback();Lu.delete(u.mappedHandleId)})};
_.O(x6P,$7G);x6P.prototype.cancel=function(){var R=this.handleId-hPG;R<0||S0.length<=R||(S0[R]=null);Lu.delete(this.mappedHandleId)};var lW8=function(){};
lW8.prototype.cancel=function(){this.jobHandle!==void 0&&(B_L(this.jobHandle),this.jobHandle=void 0)};
lW8.prototype.run=function(R,y,u){var v=this;this.cancel();this.callback=R;this.jobHandle=_.s7(function(){R();v.callback=void 0},y,u)};
lW8.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var fWT=new WeakMap;var qNK=Ql(function(R){for(var y=R,u=0;u<3;u++)y=Object.getPrototypeOf(y);delete y.prototype.connectedCallback;var v=function(){return R.apply(this,arguments)||this};
_.O(v,R);v.prototype._attachDom=function(Q){if(!Q)return null;var M=(0,_.Nz)(this.hostElement);M.attachShadow({mode:"open",shadyUpgradeFragment:Q});M.shadowRoot.appendChild(Q);return M.shadowRoot};
v.prototype._takeAttributes=function(){for(var Q=this.hostElement.attributes,M=0;M<Q.length;M++){var K=Q[M],h=void 0,b=void 0;(b=(h=this).__attributeReaction)==null||b.call(h,K.name,null,K.value)}};
v.prototype._readyClients=function(){R.prototype._readyClients.call(this);this.root=this};
v.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);R.prototype.connectedCallback.call(this)};
_.RR.Object.defineProperties(v,{template:{configurable:!0,enumerable:!0,get:function(){return v.prototype._template}}});
return v}),XML=Ql(function(R){var y=function(){return R.apply(this,arguments)||this};
_.O(y,R);y.prototype.created=function(){if(this.__notifyEffects)for(var u=_.V(Object.values(this.__notifyEffects)),v=u.next();!v.done;v=u.next()){v=_.V(v.value);for(var Q=v.next();!Q.done;Q=v.next())Q.value.fn=nqT}if(this.__reflectEffects)for(u=_.V(Object.values(this.__reflectEffects)),v=u.next();!v.done;v=u.next())for(v=_.V(v.value),Q=v.next();!Q.done;Q=v.next())Q.value.fn=G44};
y.prototype._addEventListenerToNode=function(u,v,Q){u=g2(u);kk(u,v,Q)||R.prototype._addEventListenerToNode.call(this,u,v,Q)};
y.prototype._removeEventListenerFromNode=function(u,v,Q){u=g2(u);El(u,v,Q)||R.prototype._removeEventListenerFromNode.call(this,u,v,Q)};
y.prototype._propertiesChanged=function(u,v,Q){if(this.__dataToNotify&&this.__notifyEffects)for(var M=_.V(Object.keys(this.__dataToNotify)),K=M.next();!K.done;K=M.next()){K=K.value;var h=HsU(K);this.__notifyEffects[h]||delete this.__dataToNotify[K]}else this.__dataToNotify=null;R.prototype._propertiesChanged.call(this,u,v,Q)};
y.prototype.fire=function(u,v,Q){v=v===void 0?{}:v;var M;return _.Ko(g2((M=Q==null?void 0:Q.node)!=null?M:this),u,v,Q)};
y.prototype._ensureAttribute=function(u,v){var Q=g2(this);Q.hasAttribute(u)||cN(Q,v,u)};
y.prototype.isLightDescendant=function(u){var v=g2(this);return g2(v)!==u&&_.hw(v).contains(u)&&_.hw(v).getRootNode()===_.hw(u).getRootNode()};
return y});
_.r9.ready=function(){var R;((R=this.hostElement)!=null?R:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var y;((y=this.hostElement)!=null?y:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.qv._subscribeIronResize=function(R){var y;((y=R.hostElement)!=null?y:R).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.qv._unsubscribeIronResize=function(R){var y;((y=R.hostElement)!=null?y:R).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var W7v=[Array,Boolean,Date,Number,Object,String],Rc=function(R,y,u,v){this.polySiInfo=R;this.polySiParams=y;this.polySiContext=u;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;v||this instanceof HTMLElement&&(v=this);if(!v)throw Error("Jg");this.allowedProps=y.allowedProps;this.hostElement=v;this.is=R.is;this.upgradeDisabled=!!y.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");R=new Set(y.reactiveSchemas.filter(function(Q){return Q.type!==
"observe"}).map(function(Q){return Q.propertyKey}));
this.signalProxy=new tn(this,void 0,{reactiveProps:R,reactivityMode:y.reactivityMode});this.__dataHasAccessor={};y=_.V(y.reactiveSchemas);for(R=y.next();!R.done;R=y.next())R=R.value,R.type==="signal"&&(this.__dataHasAccessor[R.propertyKey]=!0);this.upgradeDisabled||m7b(this)};
Rc.prototype.getExtraMethodsToForward=function(){return[]};
var m7b=function(R){R.polySiContext.didRegister||(R.registered(),R.polySiContext.didRegister=!0);R.polySiContext.finalizedTemplate||(R.polySiContext.finalizedTemplate={},R.polySiParams.templateGetter&&(R.polySiContext.finalizedTemplate.processedTemplate=K7U(R.polySiParams.templateGetter,R.polySiParams.is)));AMT(R);var y=R.hostElement;y.loggingStatus!=null||(y.loggingStatus={});y.loggingStatus.isInitializing=!0;Ky(function(){return void R.created()});
y.loggingStatus.isInitializing=!1;R.isPolySiElementConnected&&D7G(R)},D7G=function(R){R.didCallReady||(Ky(function(){return void R.ready()}),R.didCallReady=!0);
R.isAttached=!0;R.attached()};
_.J=Rc.prototype;_.J.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||D7G(this)};
_.J.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.J.attributeChangedCallback=function(R,y,u){if(this.upgradeDisabled)R==="disable-upgrade"&&u===null&&(this.upgradeDisabled=!1,m7b(this));else if(y!==u){var v=_.fv(R),Q=this.polySiContext.typesForSignals[v];if(Q&&(!this.reflecting||_.f("polysi_attribute_changed_serializing_killswitch"))){switch(Q){case Object:try{var M=JSON.parse(u)}catch(h){M=u}break;case Array:try{M=JSON.parse(u)}catch(h){M=null}break;case Date:M=isNaN(u)?String(u):Number(u);M=new Date(M);break;case Boolean:M=u!==null;break;case Number:M=
Number(u);break;default:M=u}this[v]=M}v=_.V(this.polySiParams.behaviors);for(Q=v.next();!Q.done;Q=v.next())M=void 0,(M=Q.value.attributeChanged)==null||M.call(this,R,y,u);var K;(K=this.attributeChanged)==null||K.call(this,R,y,u)}};
_.J.attributeChangedCallbackWrapper=function(R,y,u){this.attributeChangedCallback(R,y,u)};
_.J.setPropertiesFromInitialAttributeValues=function(){for(var R=0;R<this.hostElement.attributes.length;R++){var y=this.hostElement.attributes[R];(y.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(y.name))&&this.attributeChangedCallback(y.name,null,y.value)}};
_.J.created=function(){this.provide=this.polySiParams.provide;var R;(R=this.initializeInjection)==null||R.call(this);R=_.V(this.polySiParams.reactiveSchemas);for(var y=R.next();!y.done;y=R.next())y=y.value,y.type==="signal"&&(this.mutablePropNames.add(y.propertyKey),aX(this.signalProxy,y.propertyKey));PZU(this,this.polySiInfo,this.polySiParams.behaviors);R=_.V(this.polySiParams.reactiveSchemas);for(y=R.next();!y.done;y=R.next())y=y.value,y.type==="signal"&&y.value!==void 0&&(this.signalProxy.model[y.propertyKey]=
typeof y.value==="function"?y.value.call(this):y.value);if(this.polySiParams.signalProperties)for(R=_.V(this.polySiParams.signalProperties),y=R.next();!y.done;y=R.next()){y=y.value;var u=void 0;((u=this.__signalCache)==null?0:u.has(y))||(this.signalProxy.model[y]=void 0)}nnw||pMT(this);rKE(this);R=_.V(this.polySiParams.behaviors);for(y=R.next();!y.done;y=R.next())u=void 0,(u=y.value.created)==null||u.call(this);var v;(v=this.polySiInfo.created)==null||v.call(this)};
_.J.registered=function(){var R=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var y=Object.getPrototypeOf(this);y.addReactiveSchema=function(h){R.polySiParams.reactiveSchemas.push(h)};
for(var u=_.V(this.polySiParams.behaviors),v=u.next();!v.done;v=u.next()){var Q=void 0;(Q=v.value.beforeRegister)==null||Q.call(y)}var M;(M=this.polySiInfo.beforeRegister)==null||M.call(y);y.addReactiveSchema=U6L;u=_.V(this.polySiParams.behaviors);for(v=u.next();!v.done;v=u.next())Q=void 0,(Q=v.value.registered)==null||Q.call(y);var K;(K=this.polySiInfo.registered)==null||K.call(y)};
_.J.ready=function(){var R;(R=this.beforeReady)==null||R.call(this);nnw&&pMT(this);var y;if(R=(y=this.polySiContext.finalizedTemplate)==null?void 0:y.processedTemplate){R=VA4(R.template,R.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:R.hasInsertionPoint,thisCtx:this});y=R.nodesById;R=R.root;var u=this.hostElement;var v=v===void 0?!1:v;u=(0,_.Nz)(u);if(!u.attachShadow)throw Error("Cd");if(!u.shadowRoot||v)u.attachShadow({mode:"open",shadyUpgradeFragment:R}),u.shadowRoot.appendChild(R);
this.root=u.shadowRoot;this.$=y}tlw(this);v=_.V(this.polySiParams.behaviors);for(y=v.next();!y.done;y=v.next())R=void 0,(R=y.value.ready)==null||R.call(this);var Q;(Q=this.polySiInfo.ready)==null||Q.call(this)};
_.J.attached=function(){for(var R=_.V(this.polySiParams.behaviors),y=R.next();!y.done;y=R.next()){var u=void 0;(u=y.value.attached)==null||u.call(this)}var v;(v=this.polySiInfo.attached)==null||v.call(this)};
_.J.detached=function(){for(var R=_.V(this.polySiParams.behaviors),y=R.next();!y.done;y=R.next()){var u=void 0;(u=y.value.detached)==null||u.call(this)}var v;(v=this.polySiInfo.detached)==null||v.call(this)};
var AMT=function(R){for(var y=_.V(R.polySiParams.behaviors),u=y.next();!u.done;u=y.next())if(u=u.value,u.listeners)for(var v in u.listeners)JKG(R,R.hostElement,v,u.listeners[v]);if(R.polySiInfo.listeners)for(var Q in R.polySiInfo.listeners)JKG(R,R.hostElement,Q,R.polySiInfo.listeners[Q])},JKG=function(R,y,u,v,Q){R=JZE(R,v,Q);
kk(y,u,R)||y.addEventListener(u,R);return R},pMT=function(R){for(var y=_.V(R.polySiParams.reactiveSchemas),u=y.next();!u.done;u=y.next())u=u.value,u.type==="compute"||u.type==="computeWithMethod"?IPS(R.signalProxy,u,R):u.type==="redux"?FXS(R.signalProxy,u,R.store):u.type==="signal"&&u.readOnly&&bEc(R.signalProxy,u)},tlw=function(R){for(var y=_.V(R.polySiParams.reactiveSchemas),u=y.next(),v={};!u.done;v={schema$jscomp$12:void 0},u=y.next())v.schema$jscomp$12=u.value,v.schema$jscomp$12.type==="notify"?
NJz(R.signalProxy,v.schema$jscomp$12,R.hostElement):v.schema$jscomp$12.type==="observe"?TJT(R.signalProxy,v.schema$jscomp$12,R):v.schema$jscomp$12.type==="reflect"&&R.signalProxy.effect(function(M){return function(){var K=R.signalProxy.getWithPath([M.schema$jscomp$12.propertyKey]);
R.reflecting=!0;Pz4(R.hostElement,M.schema$jscomp$12.propertyKey,K,!0);R.reflecting=!1}}(v));
if(R.reflectedAttributes)for(y=_.V(Object.entries(R.reflectedAttributes)),v=y.next(),u={};!v.done;u={key$jscomp$910:void 0,value$jscomp$9047:void 0},v=y.next()){var Q=_.V(v.value);v=Q.next().value;Q=Q.next().value;u.key$jscomp$910=v;u.value$jscomp$9047=Q;R.signalProxy.effect(function(M){return function(){R.reflecting=!0;Pz4(R.hostElement,M.key$jscomp$910,(0,M.value$jscomp$9047)(),!0);R.reflecting=!1}}(u))}};
_.J=Rc.prototype;_.J._setPendingProperty=function(R,y){this.set(R,y);return!1};
_.J._enableProperties=function(){};
_.J._setPendingPropertyOrPath=function(R,y){this.notifyPath(R,y);return!1};
_.J._addPropertyEffect=function(){};
_.J._stampTemplate=function(){throw Error("Kg");};
_.J.fire=function(R,y,u){y=y===void 0?{}:y;u=u===void 0?{}:u;var v,Q,M={bubbles:(v=u.bubbles)!=null?v:!0,cancelable:!!u.cancelable,composed:(Q=u.composed)!=null?Q:!0},K;return _.Ko(k4S((K=u.node)!=null?K:this.hostElement),R,y,M)};
_.J.get=function(R,y){var u=tw(R);return y?V74(y,u):R==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(u)};
_.J.linkPaths=function(){};
_.J.listen=function(R,y,u){R=k4S(R);this.boundListeners!=null||(this.boundListeners=new WeakMap);var v=this.boundListeners.get(R);v||(v={},this.boundListeners.set(R,v));var Q=y+u;v[Q]||(v[Q]=JKG(this,R,y,u))};
_.J.notifyPath=function(R,y){this.signalProxy.notifyPath(tw(R),arguments.length===2?{value:y}:void 0)};
_.J.canNotifyPath=function(R){return this.mutablePropNames.has(R)&&!aPz(this.signalProxy,R)};
_.J.notifySplices=function(R,y){this.signalProxy.notifySplices(tw(R),y)};
_.J.pop=function(R){var y=this.signalProxy;R=tw(R);var u=_.V(R);R=u.next().value;u=Y7(u);return aX(y,R).pop(u)};
_.J.push=function(R){var y=_.qy.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[tw(R)].concat(_.P$(y)))};
_.J.set=function(R,y,u){if(u)throw Error("Lg");R==="hidden"?this.hostElement.hidden=!!y:this.signalProxy.setWithPath(tw(R),y)};
_.J.setProperties=function(R){R=_.V(Object.entries(R));for(var y=R.next();!y.done;y=R.next()){var u=_.V(y.value);y=u.next().value;u=u.next().value;this[y]=u}};
_.J.splice=function(R,y,u){var v=_.qy.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[tw(R),y,u].concat(_.P$(v)))};
_.J.unlinkPaths=function(){};
_.J.unlisten=function(R,y,u){R=k4S(R);if(this.boundListeners){var v=this.boundListeners.get(R);if(v){u=y+u;var Q=v[u];Q&&(El(R,y,Q)||R.removeEventListener(y,Q),delete v[u])}}};
_.J.unshift=function(R){var y=_.qy.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[tw(R)].concat(_.P$(y)))};
_.RR.Object.defineProperties(Rc.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 aWE=[Array,Boolean,Date,Number,Object,String];var L7z=!1;var c1=function(){var R=HTMLElement.apply(this,arguments)||this;R.restamp=!1;R.notifyDomChange=!1;R.JSC$13438_didCallConnected=!1;R.JSC$13438_renderDebouncer=null;R.disableTemplateUpdateSignalImpl=yj()?void 0:_.In(!1,void 0,"Ofhkwb");var y;R.getDisableTemplateUpdate=(y=R.disableTemplateUpdateSignalImpl)==null?void 0:y[0];var u;R.setDisableTemplateUpdate=(u=R.disableTemplateUpdateSignalImpl)==null?void 0:u[1];return R};
_.O(c1,HTMLElement);var cMw=function(R){R.conditionSignalImpl!=null||(R.conditionSignalImpl=new pl(_.In(!1,void 0,"gE52Fb")));return R.conditionSignalImpl};
_.J=c1.prototype;_.J.showHideChildren=function(R){ae5(this,R,this.if)};
_.J.attributeChangedCallback=function(R,y,u){if(this.JSC$13438_didCallConnected)throw Error("Pg`"+R);R==="notify-dom-change"?this.notifyDomChange=u!==null:R==="restamp"&&(this.restamp=u!==null)};
_.J.debounceRender=function(){this.JSC$13438_renderDebouncer=_.w5(this.JSC$13438_renderDebouncer,qS,this.JSC$13438_renderImpl.bind(this));_.Nd(this.JSC$13438_renderDebouncer)};
_.J.disconnectedCallback=function(){var R=(0,_.Nz)(this).parentNode;(!R||R.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in R&&!R.host)&&SNT(this)};
_.J.connectedCallback=function(){var R=this;this.JSC$13438_didCallConnected=!0;ZCi?sdz():this.style.display="none";this.parentSignalProxy.effect(function(){cMw(R).getWithPath([]);R.debounceRender()})};
_.J.render=function(){_.Bb()};
_.J.JSC$13438_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var R=this.if,y=!1;if(R){this.hasInstance()||(YNK(this),y=!0);a:{var u=(0,_.Nz)(this).parentNode;if(this.hasInstance()){var v=this.instance.children;if((v==null?0:v.length)&&(0,_.Nz)(this).previousSibling!==v[v.length-1])for(var Q=0;Q<v.length;Q++)(0,_.Nz)(u).insertBefore(v[Q],this)}else{if(!u){u=!1;break a}L3T(this,u)}u=!0}if(!u)return}else this.restamp&&SNT(this);ae5(this,!1,R);R&&!y&&YNK(this);HC8&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.J.hasInstance=function(){return!!this.instance};
var L3T=function(R,y){var u=R.parentSignalProxy;if(yj()){var v=_.V(_.In(!0,void 0,"jQ0Qb"));var Q=v.next().value;v=v.next().value;u=R.parentSignalProxy}else{var M;var K=new tn((M=sAw(R))!=null?M:{},function(b){var N=aX(R.parentSignalProxy,b).getChangeRecordSignal([]);b=_.In(void 0,void 0,"oT9mkc");var T=new pl(b);K.effect(function(){if(R.getDisableTemplateUpdate&&!R.getDisableTemplateUpdate()){var x=N();T.notifyPath(tw(x.path),{value:x.value})}});
return T});
R.parentSignalProxy.childSignalProxies.push(K);var h=u=K}u=VA4(R.templateInfo,R.templateInfo.nodeInfoList,u,{eventListenerHost:R.eventListenerHost,hasInsertionPoint:R.templateInfo.hasInsertionPoint,thisCtx:R.eventListenerHost,enabledSignal:yj()?Q:void 0,getModel:function(){return sAw(R)}}).root;
R.instance={root:u,children:[],hidden:!1,signalProxy:h,getTemplateUpdatesEnabled:Q,setTemplateUpdatesEnabled:v};h=_.V(u.childNodes);for(Q=h.next();!Q.done;Q=h.next())R.instance.children.push(Q.value);(0,_.Nz)(y).insertBefore(R.instance.root,R)},sAw=function(R){if((R=R.parentSignalProxy.model)&&!R.hostElement){var y={},u;
for(u in R)R.hasOwnProperty(u)&&(y[u]=R[u]);return y}},SNT=function(R){if(R.instance){var y=R.instance.children;
if(y.length){var u=(0,_.Nz)(y[0]).parentNode;if(u){u=(0,_.Nz)(u);for(var v=0;v<y.length;v++)u.removeChild(y[v])}}yj()?R.instance.setTemplateUpdatesEnabled(!1):R.instance.signalProxy.dispose();R.instance=void 0}},ae5=function(R,y,u){y=y||!u;
R.instance&&R.instance.hidden!==y&&(R.instance.hidden=y,YUG(y,R.instance.children))},YNK=function(R){if(yj()){var y=R.instance;
y&&dh(R.parentSignalProxy.owner,function(){return!y.getTemplateUpdatesEnabled()})&&y.setTemplateUpdatesEnabled(!0)}else R.setDisableTemplateUpdate(!1)};
_.RR.Object.defineProperties(c1.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var R=this;return dh(this.parentSignalProxy.owner,function(){return cMw(R).getWithPath([])})},
set:function(R){R||(yj()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));cMw(this).setWithPath([],!!R)}}});
_.RR.Object.defineProperties(c1,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",c1);var zQV=[],ai=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$13445_renderDebouncer=null;R.instances=[];R.chunkingId=null;R.chunkCount=null;R.shouldMeasureChunk=!1;R.shouldContinueChunking=!1;R.renderStartTime=null;R.JSC$13445_didCallConnected=!1;return R};
_.O(ai,HTMLElement);var gnK=function(R){R.itemSignalImpl!=null||(R.itemSignalImpl=new pl(_.In(zQV,void 0,"YBrqgf")));return R.itemSignalImpl},CIK=function(R,y){Array.isArray(y)||(y=zQV);
gnK(R).setWithPath([],y)};
_.J=ai.prototype;_.J.showHideChildren=function(R){for(var y=_.V(this.instances),u=y.next();!u.done;u=y.next())YUG(R,u.value.children)};
_.J.notifyPath=function(R,y){R=tw(R);R[0]==="items"&&(R.length===1?CIK(this,y):gnK(this).setWithPath(R.slice(1),y))};
_.J.canNotifyPath=function(R){return R==="items"};
_.J.attributeChangedCallback=function(R,y,u){if(this.JSC$13445_didCallConnected)throw Error("Qg`"+R);R==="as"?this.as=u:R==="index-as"?this.indexAs=u:R==="items-index-as"?this.itemsIndexAs=u:R==="initial-count"?this.initialCount=Number(u):R==="notify-dom-change"?this.notifyDomChange=u!==null:R==="target-framerate"&&(this.targetFramerate=Number(u))};
_.J.disconnectedCallback=function(){this.isDetached=!0;for(var R=0;R<this.instances.length;R++)RaV(this,R);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.J.connectedCallback=function(){var R=this,y=gnK(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var Q=y(),M=tw(Q.path);if(M[0]===void 0||M[0]==="splices"||M[0]==="length")R.debounceRender();else{var K=M[0];if(K=R.instances[typeof K==="string"?Math.floor(Number(K)):K])M=[R.as].concat(_.P$(M.slice(1))),K.signalProxy.notifyPath(M,Q)}});
this.JSC$13445_didCallConnected=!0;ZCi?sdz():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var u=(0,_.Nz)((0,_.Nz)(this).parentNode),v=0;v<this.instances.length;v++)u.insertBefore(this.instances[v].root,this);this.chunkingId&&this.render()}};
_.J.debounceRender=function(){this.JSC$13445_renderDebouncer=_.w5(this.JSC$13445_renderDebouncer,qS,this.JSC$13445_renderImpl.bind(this));_.Nd(this.JSC$13445_renderDebouncer)};
_.J.render=function(){this.debounceRender();_.Bb()};
_.J.JSC$13445_renderImpl=function(){var R=this;if(!this.parentSignalProxy.isDisposed){var y=this.items,u=yuL(this,y.length);uF8(this,y,u);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){R.chunkingId=null;if(R.shouldMeasureChunk){var v=performance.now()-R.renderStartTime;R.chunkCount=Math.round(Math.ceil(1E3/R.targetFramerate)/v*R.chunkCount)||1}R.shouldContinueChunking&&R.debounceRender()}));
HC8&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var yuL=function(R,y){var u=y,v=R.instances.length;if(R.initialCount){if(R.chunkCount){var Q=Math.min(Math.max(y-v,0),R.chunkCount);u=Math.min(v+Q,y)}else u=Math.min(y,R.initialCount),Q=Math.max(u-v,0),R.chunkCount=Q||1;R.shouldMeasureChunk=Q===R.chunkCount;R.shouldContinueChunking=u<y;R.renderStartTime=performance.now()}return u},uF8=function(R,y,u){for(var v=0;v<u;v++){var Q=R.instances[v],M=y[v];
Q?(Q.signalProxy.setWithPath([R.as],M),Q.signalProxy.setWithPath([R.indexAs],v)):v5G(R,M,v)}for(y=R.instances.length-1;y>=v;y--)u=R,Q=y,RaV(u,Q),_.V(u.instances.splice(Q,1)).next().value.signalProxy.dispose()},RaV=function(R,y){R=R.instances[y];
y=(0,_.Nz)(R.root);for(var u=0;u<R.children.length;u++)y.appendChild(R.children[u])},v5G=function(R,y,u){var v={};
y=Object.assign({},QYc(R),(v[R.as]=y,v[R.indexAs]=u,v[R.itemsIndexAs]=u,v));var Q=new tn(y,function(K){if(K!==R.as&&K!==R.indexAs){if(K===R.itemsIndexAs)return aX(Q,R.indexAs);var h=aX(R.parentSignalProxy,K).getChangeRecordSignal([]);K=_.In(void 0,void 0,"T21Pqc");var b=new pl(K);Q.effect(function(){var N=h();b.notifyPath(tw(N.path),{value:N.value})});
return b}});
R.parentSignalProxy.childSignalProxies.push(Q);v=VA4(R.templateInfo,R.templateInfo.nodeInfoList,Q,{eventListenerHost:R.eventListenerHost,getModel:function(){var K={};return Object.assign({},QYc(R),(K[R.as]=Q.model[R.as],K[R.indexAs]=Q.model[R.indexAs],K[R.itemsIndexAs]=Q.model[R.indexAs],K))},
hasInsertionPoint:R.templateInfo.hasInsertionPoint,thisCtx:R.eventListenerHost,methodInvocationRequirement:GbL,enabledSignal:R.stampingEnabled}).root;y={root:v,children:[],signalProxy:Q};v=_.V(v.childNodes);for(var M=v.next();!M.done;M=v.next())y.children.push(M.value);v=(v=R.instances[u+1])?v.children[0]:R;(0,_.Nz)((0,_.Nz)(R).parentNode).insertBefore(y.root,v);R.instances[u]=y},QYc=function(R){if((R=R.parentSignalProxy.model)&&!R.hostElement){var y={},u;
for(u in R)R.hasOwnProperty(u)&&(y[u]=R[u]);return y}};
ai.prototype.itemForElement=function(R){var y=this,u=this.instances.find(function(v){return v.children.includes(R)});
if(u)return dh(this.parentSignalProxy.owner,function(){return u.signalProxy.getWithPath([y.as])})};
ai.prototype.indexForElement=function(R){var y=this.instances.findIndex(function(u){return u.children.includes(R)});
return y>=0?y:void 0};
_.RR.Object.defineProperties(ai.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var R=this;return dh(this.parentSignalProxy.owner,function(){return gnK(R).getWithPath([])})},
set:function(R){CIK(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}}});
_.RR.Object.defineProperties(ai,{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",ai);var jYw,MOG;_.S5=new _.Jx("STATE_STORE_TOKEN");jYw=new _.Jx("SELECT_TOKEN");MOG=new _.Jx("DISPATCH_TOKEN");var u64={getSelectFn:function(){var R;return(R=_.ua().resolve(_.yN(jYw)))!=null?R:zPv},
getDispatchFn:function(){var R;return(R=_.ua().resolve(_.yN(MOG)))!=null?R:_.uX().dispatch.bind(_.uX())},
getAppStore:function(){return _.ua().resolve(_.S5)}},gqW,yM4=!1;var Mk={traceAllComponents:_.f("web_tracing_all_components"),exportToCsi:_.f("web_tracing_export_to_csi"),exportBreadcrumbs:_.f("web_enable_tracing"),bufferSize:_.JT("web_max_tracing_events"),enabledSpansArray:_.ia("web_tracing_enabled_spans")};var K3v=function(){};var JMS=void 0;var JuT=function(){};
JuT.prototype.hasAttribute=function(R){if(R==="dir")return!1;if(R==="disable-upgrade"){var y,u;return(u=(y=this.hostElement)==null?void 0:y.hasAttribute("disable-upgrade"))!=null?u:!1}throw Error("Rg`"+R);};
JuT.prototype.attributeChangedCallbackWrapper=function(R,y,u){if(R==="disable-upgrade"&&this.__isUpgradeDisabled&&u===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var v;((v=this.hostElement)!=null?v:this).isConnected&&this.connectedCallback()}else y===u||this.__isReflecting||this.attributeChangedCallback(R,y,u)};
JuT.prototype.getExtraMethodsToForward=function(){for(var R=this,y=[],u=_.V(VOg),v=u.next(),Q={};!v.done;Q={tagName$jscomp$54:void 0,name$jscomp$572:void 0},v=u.next())Q.name$jscomp$572=v.value,v=void 0,Q.name$jscomp$572==="_setPendingProperty"?(Q.tagName$jscomp$54=this.hostElement.tagName.toLowerCase(),v=function(M){return function(K,h,b){U7(M.tagName$jscomp$54,K,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return R._setPendingProperty(K,h,b)}}(Q)):v=function(M){return function(){return R[M.name$jscomp$572].apply(R,
_.P$(_.qy.apply(0,arguments)))}}(Q),y.push([Q.name$jscomp$572,
v]);return y};
for(var bCU=XML(qNK((0,_.r5)(JuT))),TyP=["disabled","disable-upgrade"],i55=(0,_.r5)(function(){}),KtT=new Set(Object.getOwnPropertyNames(i55.prototype)),eQG=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.P$(KtT))),x78=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),VOg=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),IZ5=new Set([].concat(_.P$(x78),_.P$(VOg),_.P$(KtT))),hai=_.V(IZ5),b5Y=hai.next();!b5Y.done;b5Y=hai.next())Xx8.add(b5Y.value);var feT={created:function(){rKE(this);this.initializeInjection()}};var W3W=!1,Ic=window.ShadyDOM,m7L=["appendChild","insertBefore","removeChild","replaceChild"],XMz=[Node];Ic&&XMz.push(Ic.Wrapper);var aeU,SNO,sAc={};var Fg=new Set,hd="",zQ4="";var bX,wZ=new Set;var MOU=new Set("context didCallReady is info params signalProxy".split(" ")),VOE="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),i5U="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var Ft5=oR({entities:vWc}),wwV=new vV(Ft5);var NMg=function(){return _.HN.apply(this,arguments)||this};
_.O(NMg,_.HN);_.RR.Object.defineProperties(NMg.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return wwV}}});
_.A([_.nu()],NMg);_.YX=[An.prototype,NMg.prototype];_.Ll={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var R=this,y={};setTimeout(function(){var u;return _.Ko((u=R.hostElement)!=null?u:R,"yt-live-chat-add-tooltip-target",y)},0);
this.handler_=y.handler},
detached:function(){if(this.handler_){var R;this.handler_.removeElementFromSupportingTooltips((R=this.hostElement)!=null?R:this)}this.handler_=null}}};_.eb=new _.Jx("ICON_MANAGER_TOKEN");var TMb=[48,20,18,16,15,13,12],WtE=new Map,Z5L=new Set,eav=new Set,O58=new Set,fZT=new Set,lZz=new Set,n5G=new Promise(function(R){var y=!1,u=!1,v=!1,Q=[],M=function(K){if("detail"in K)if(K=K.detail,K.name==="yt-icons")H5O(K),y=!0;else if(K.name==="yt-sys-icons")H5O(K),u=!0;else{var h;((h=K.name)==null?0:h.includes("yt-sys-icons"))&&K.size!==24&&(H5O(K,!0),Q.push(K.size),Q.length===TMb.length&&(v=!0))}y&&u&&v&&(window.removeEventListener("iron-iconset-added",M),R())};
window.addEventListener("iron-iconset-added",M)}),ruU=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"]]);_.sx={};_.sx.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.u7,computeHref_:function(R,y){y=y===void 0?!1:y;if(!R||R.commandExecutorCommand)return null;var u=E9T(R,y);return y||u!==null?u?_.f("enable_polymer_resin")?_.Eo(u).toString():u:null:(_.kT(new _.OL("computeHref was null",this.is,R)),null)},
computeOptionalHref_:function(R){return this.computeHref_(R,!0)},
computeNofollow_:function(R){return R?HA8(R)?"nofollow":null:null},
computeIcon_:function(R){return R&&R.iconType?_.fk(R.iconType):""},
resolveCommand:function(R,y,u){y=y===void 0?{}:y;return _.O4(R,this.hostElement,y,u===void 0?!1:u)}};var xh5,zL;_.o5i={};xh5=null;
zL={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_=lNO(this.viewroot));_.s7(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var R=this;this.unobserve_();if(_.f("kevlar_vimio_use_shared_monitor"))$hU(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 y=[];this.visibilityOptionVisible_&&y.push(this.visibilityObserver.observe(this.hostElement,function(){return R.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&y.push(this.visibilityObserver.observe(this.hostElement,function(){return R.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&y.push(this.visibilityObserver.observe(this.hostElement,function(){return R.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=y}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){dhW(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=_.$h(this.parentNode,function(u){var v,Q=(v=u.polymerController)!=null?v:u;return!!Q.getVisibilityObserverForChild&&Q.getVisibilityObserverForChild()},!0);
if(R){var y;this.localVisibilityObserver_=((y=R.polymerController)!=null?y:R).getVisibilityObserverForChild()}else xh5||(xh5=lNO()),this.localVisibilityObserver_=xh5;return this.localVisibilityObserver_},visibilityCallback:function(R){R?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.f("kevlar_use_vimio_behavior")||(zL={});zL&&!_.f("kevlar_use_vimio_behavior")&&(delete zL.attached,delete zL.detached);_.o5i.YtVisibilityObserverBehavior=[zL];var BMK={};BMK.YtVisualElementBehavior=[_.o5i.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.f("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.f("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var R=this.getScreenLayer&&this.getScreenLayer(),y=this.getVisibilityLogger();y&&y.reportShown(this,void 0,R)}},
onHidden:function(){if(_.f("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.f("kevlar_vimio_use_shared_monitor")){var R=this.getScreenLayer&&this.getScreenLayer(),y=this.getVisibilityLogger();y&&y.reportHidden(this,void 0,R)}},
getVisibilityLogger:function(){return _.f("kevlar_use_vimio_behavior")?_.Hy():null},
shouldSkipLogging:function(){if(_.EB("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var R=this.getParentRenderer&&this.getParentRenderer();if(!R)return!1;var y,u=(y=R.polymerController)!=null?y:R;if(!u.data)return!1;R=this.data.trackingParams;R=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:R;var v;y=(v=u.data)==null?void 0:v.trackingParams;var Q,M;y=((Q=u.data)==null?0:Q.loggingDirectives)?(M=u.data)==null?void 0:M.loggingDirectives.trackingParams:y;return R&&y&&R===
y}}];var mhP=new Map,ki;var Y24=function(R){this.layer=R},xl=function(R){return R.layer!==void 0?R.layer:R.parent?xl(R.parent):R.layer=0};var aZO;_.S={};aZO=0;_.S.YtRendererBehavior=[_.sx.YtComponentBehavior,BMK.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_:_.f("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var R,y;(y=(R=this.monitorScrollElement)!=null?R:this.hostElement)==null||y.removeEventListener("scroll",_.BN(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();qHc(this.hostElement);W7g(_.Ux(),this.hostElement);yw.delete(this.hostElement)},
registerRenderer:function(R){var y;((y=R.polymerController)!=null?y: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,y=this.getParentRenderer();if(y){var u,v,Q;(v=(u=(Q=y.polymerController)!=null?Q:y).registerRenderer)==null||v.call(u,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var M,K;(K=(M=this.monitorScrollElement)!=null?M:this.hostElement)==null||K.addEventListener("scroll",_.BN(this,this.onScroll))}_.WG.addJob(function(){Au4(R.hostElement)},8);
u=new Y24(this.screenLayer||void 0);(y=yw.get(y))&&y.layerNode&&(u.parent=y.layerNode);y={};GhU(this.hostElement,(y.isRenderer=!0,y.layerNode=u,y[LZT]=this.data,y))},
getParentRenderer:function(){for(var R=this.hostElement.parentNode,y,u;R&&((y=yw.get(R))==null||!y.isRenderer)&&!((u=R.polymerController)!=null?u:R).isRenderer_;)R=R.parentNode||R.host;return R},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.f("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.$B("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.f("debug_web_ve_data")&&this.data.trackingParams){var R="";try{R=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(u){_.dI(u)}if(R){var y=RBT(R,1);y!==void 0&&(this.hostElement.dataset.veIndex=String(y));R=RBT(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,_.f("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.U4(this.data.loggingDirectives.trackingParams)),this.visualElement=_.nk(_.GN(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var R=this.data.targetId;_.U6b(_.Ux(),R,this.hostElement)}else W7g(_.Ux(),this.hostElement)},
onScroll:function(){var R=Date.now();R-this.lastHandledScroll_<50||(this.lastHandledScroll_=R,this.markDirty())},
markDirty:function(){_.f("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():SHU(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var R=this.getParentRenderer();if(R&&(R=yw.get(R))&&R.layerNode)return xl(R.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.P$(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 y,u;(R==null?0:(y=R.commandMetadata)==null?0:(u=y.webCommandMetadata)==null?0:u.sendPost)?_.Fh(this.hostElement,[R,{impression:!0}]):_.wr(this.hostElement,[R],this.hostElement)},
logExplicitClick:function(R){var y=_.$I(this.getScreenLayer());if(y){var u,v=(u=R.polymerController)!=null?u:R;R=v.visualElement;v=v.trackingParams||v.clickTrackingParams;!R&&v&&(R=_.U4(v));R&&_.zP(y,R)}}}];var fZ5={},gv=function(){return _.HN.apply(this,arguments)||this};
_.O(gv,_.HN);gv.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
gv.prototype.onPdgItemBehaviorClick=gv.prototype.onPdgItemBehaviorClick;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],gv.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],gv.prototype,"data",void 0);_.A([_.fu("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],gv.prototype,"onPdgItemBehaviorClick",null);_.A([_.nu()],gv);fZ5.YtPdgLiveChatItemBehavior=[gv.prototype,_.S.YtRendererBehavior];var eag;var lZL;_.Cl={};_.Cl.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var RJ=function(){var R=up.apply(this,arguments)||this;R.switchTemplateAtRegistration=!1;return R};
_.O(RJ,up);RJ.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||zaz(this),_.Osz(this,"doRender"),this.doRender())};
RJ.prototype.debounceRender=function(){this.templatingFn&&_.zJ(this,"doRender",this.doRender)};
RJ.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.dI(Error("ah"))};
RJ.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.A([bpT()],RJ);var O5Y=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,yE={},yf8=(yE[1]={filterString:null,isUnwrappable:null,unwrap:null},yE[2]={filterString:function(R,y,u){return x9(u)},
isUnwrappable:function(R){return R instanceof D2},
unwrap:function(R){return tq(R)}},yE[3]={filterString:function(R,y,u){return O5Y.test(u)?u:kE.toString()},
isUnwrappable:function(R){return GB(R)},
unwrap:function(R){return _.Pg(R)}},yE[4]={filterString:function(){return kE.toString()},
isUnwrappable:function(R){return R instanceof ey},
unwrap:function(R){return _.Oo(R).toString()}},yE[5]={filterString:function(R,y,u){return u},
isUnwrappable:function(R){return typeof R==="string"},
unwrap:function(R){return R.toString()}},yE[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(R){return R instanceof _.YE},
unwrap:function(R){return j1z(R)}},yE[8]={filterString:function(R,y,u){u=String(u).toLowerCase();
return MmL(R,y,u)?u:"zClosurez"},
isUnwrappable:null,unwrap:null},yE[10]={filterString:null,isUnwrappable:null,unwrap:null},yE);Rx[$a["default"]]=vPG;var Q$S=[];var xYT=MWP("A"),BUE=MWP("BUTTON"),Uy=MWP("DIV"),fbP=MWP("LABEL");(function(){var R=sp;sp=function(y){R==null||R(y);Xg(function(){for(var u=0;u<y.length;u++)j$O(y[u])})}})();var Z5b=function(){var R=_.HN.apply(this,arguments)||this;R.hasUnmounted=!1;return R};
_.O(Z5b,_.HN);_.J=Z5b.prototype;_.J.beforeRegister=function(){var R=this.doIdomRender;this.templatingFn?_.dI(Error("$g")):(this.templatingFn=R,this.switchTemplateAtRegistration=!0,R1W(this))};
_.J.attached=function(){};
_.J.detached=function(){j$O(this.hostElement)};
_.J.renderIdom=function(){throw Error("ch");};
_.J.doIdomRender=function(){var R=this;YCP(this.hostElement,function(){R.renderIdom()})};
_.A([_.nu()],Z5b);var H5T=[RJ.prototype,Z5b.prototype];var n5c,GUw=function(){return n5c!==void 0?n5c:n5c=document.createElement("template")};
document.head.appendChild(GUw().content);var ruG;var Pec,Wtg=function(){return Pec!==void 0?Pec:Pec=document.createElement("template")};
document.head.appendChild(Wtg().content);var dhK;var Uhc=document.head,kUL=Uhc.appendChild,E5g;if(dhK===void 0){var $h5=document.createElement("template");_.H($h5,"\x3c!--css-build:shady--\x3e");$h5.content.insertBefore(Wtg().content.cloneNode(!0),$h5.content.firstChild);dhK=$h5}E5g=dhK;kUL.call(Uhc,E5g.content);var qHw,Xwg=function(){return qHw!==void 0?qHw:qHw=document.createElement("template")};
document.head.appendChild(Xwg().content);var mhi;var AuV=document.head,DhT=AuV.appendChild,pwb;if(mhi===void 0){var tOK=document.createElement("template");_.H(tOK,"\x3c!--css-build:shady--\x3e");tOK.content.insertBefore(Xwg().content.cloneNode(!0),tOK.content.firstChild);mhi=tOK}pwb=mhi;DhT.call(AuV,pwb.content);var cuT=document.head,aZT=cuT.appendChild,SHG;if(ruG===void 0){var YHG=document.createElement("template");_.H(YHG,"\x3c!--css-build:shady--\x3e");YHG.content.insertBefore(GUw().content.cloneNode(!0),YHG.content.firstChild);ruG=YHG}SHG=ruG;aZT.call(cuT,SHG.content);var Lti,sYg=function(){return Lti!==void 0?Lti:Lti=document.createElement("template")};
document.head.appendChild(sYg().content);var zaL;_.u0=new _.Jx("DARK_THEME_TOKEN");var z18=new _.jF("accessibilityProperties");var s$S=new _.jF("layoutProperties");var gPO=new _.jF("imageType");var g55={};if("ytAttributedStringLinkHoverColor"in g55)throw Error("fh`ytAttributedStringLinkHoverColor");(function(R,y){g55[R]="value"in y&&"unit"in y?IuL(R,y):function(u){try{return y(u)}catch(v){throw Error("dh`"+R+"`"+v.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var Ceg=function(R){var y=this;this.holdTime=R===void 0?500:R;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(u){var v=new CustomEvent("LONG_PRESS"),Q;(Q=u.changedTouches[0].target)==null||Q.dispatchEvent(v)};
this.ontouchstart=function(u){y.longPressTimeout=_.Xs(_.WG,function(){y.onlongpress(u);y.longPressOccurred=!0},y.holdTime)};
this.ontouchmove=function(){_.WG.cancelJob(y.longPressTimeout);y.longPressTimeout=NaN;y.longPressOccurred=!1;y.moveOccurred=!0};
this.ontouchend=function(u){if(y.longPressTimeout&&!y.longPressOccurred&&!y.moveOccurred){var v;(v=u.changedTouches[0].target)==null||v.dispatchEvent(new Event("click"))}_.WG.cancelJob(y.longPressTimeout);y.longPressTimeout=NaN;y.longPressOccurred=!1;y.moveOccurred=!1}};var dfS=function(R,y){Ceg.call(this,y);var u=this;this.callback=R;this.onlongpress=function(v){var Q;(Q=u.callback)==null||Q.call(u,v)}};
_.O(dfS,Ceg);var UfW=function(R,y){var u=Object.assign({},y);R=_.V(new Map([["ontouchstart",R.ontouchstart],["ontouchend",R.ontouchend],["ontouchmove",R.ontouchmove]]));for(var v=R.next(),Q={};!v.done;Q={eventName$jscomp$101:void 0,eventHandler$jscomp$1:void 0},v=R.next()){var M=_.V(v.value);v=M.next().value;M=M.next().value;Q.eventName$jscomp$101=v;Q.eventHandler$jscomp$1=M;y[Q.eventName$jscomp$101]=function(K){return function(h){var b;(b=u[K.eventName$jscomp$101])==null||b.call(u,h);(0,K.eventHandler$jscomp$1)(h)}}(Q)}};_.jX=new _.Jx("COMMAND_HANDLER_TOKEN");var brT=new _.jF("parallelCommand");var NlU=new _.jF("performOnceCommand");var wqO=new _.jF("serialCommand");var Tlz=void 0;var R1K=function(){this.data=[];this.consumer=null};
R1K.prototype.push=function(R){this.consumer?this.consumer(R):this.data.push(R)};var iG={};_.In(iG,void 0,"sgPmTd");_.In(null,void 0,"jypsq");_.In(null,void 0,"mWiOof");var joz=new R1K;var Zr4=[qPG,XWc,mUi,DUL,AzV,$Uc,pWc,tvL];var YV4=new _.jF("bracketTextDecorator");var RC=new _.jF("highlightTextDecorator");_.QX=new _.Jx("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var pq8=function(){},yfY;
(yfY=window.requestIdleCallback)==null||yfY.bind(window);var cfL={calledOnce:!1,state:"visible"},tWP={calledOnce:!1,state:"hidden"};var ufc=new _.Jx("ICON_WIZ_COMPONENT_TOKEN");_.W_=_.Jd(function(R){var y=R.icon;var u=R.active;var v=R.className;var Q=R.style;var M=R.dataSelected;var K=R.dataDisabled;var h=R.role;var b=R.animateIcon;var N=R.themeOverride;var T=R.ariaHidden;var x=R.ariaExpanded;var B=R.ariaLabel;var l=R.tabindex;var Z=R.id;var P=R.size;var k=R.iconFilter;return _.F(_.w,{cond:y,then:function(){var E=_.ua().resolve(ufc);return _.F(E,{icon:y,dataSelected:M,dataDisabled:K,animateIcon:b,themeOverride:N,ariaExpanded:x,tabindex:l,id:Z,active:u,size:P,role:h,className:v,
ariaHidden:T,ariaLabel:B,style:function(){return Q!=null&&Q()||P==null||!P()?Q==null?void 0:Q():"width: "+(P==null?void 0:P())+"px;height: "+((P==null?void 0:P())+"px;")},
iconFilter:k})}})},"b");
_.W_.idomCompat=!0;var FCU=window.devicePixelRatio||1;var oe8=new Map([["yt_outline_bag_black_24","bag"]]);var uW=function(R){var y=this;this.margin=.1;this.whenInViewportWithMargin=R;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){y.requestScan()});
window.addEventListener("touchend",function(){y.requestScan()});
window.addEventListener("updateui",function(){y.requestScan()});
var u=new _.v2((0,_.HY)(this.requestScan,this),100);window.addEventListener("scroll",function(){u.fire()},!0);
window.addEventListener("resize",(0,_.HY)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){y.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.HY)(this.requestScan,this))};
uW.prototype.observe=function(R){this.observationTargets.includes(R)||this.observationTargets.push(R)};
uW.prototype.unobserve=function(R){this.observationTargets=this.observationTargets.filter(function(y){return y!==R})};
uW.prototype.requestScan=function(){var R=this;this.scanRequested||(Xg(function(){vPc(R)}),this.scanRequested=!0)};
var vPc=function(R){var y=(1+R.margin)*(document.documentElement.clientHeight||window.innerHeight);R.observationTargets=R.observationTargets.filter(function(u){var v=u.getBoundingClientRect();(v=y>v.top&&!!v.height)&&R.whenInViewportWithMargin(u);return!v&&u.parentNode});
R.scanRequested=!1};
uW.prototype.disconnect=function(){this.observationTargets=[]};var Q$8,MWi;Q$8=_.V(_.In(lhE(),void 0,"O3X2wd"));_.j$T=Q$8.next().value;MWi=Q$8.next().value;window.addEventListener("resize",function(){MWi(lhE())});var Jf5={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},VWT=void 0,irg=window.innerWidth,KSw=window.innerHeight;window.addEventListener("resize",function(){VWT=void 0});var Iub;if("IntersectionObserver"in window)Iub=H48();else{if(VWT===void 0){var h1T;h1T="matchMedia"in window?window.matchMedia(Jf5.landscape+","+Jf5.portrait).matches:void 0;VWT=h1T!==void 0?h1T:irg>=930&&KSw>=550||irg>=550&&KSw>=930}Iub=VWT?{observe:function(R){Xg(function(){var y;(y=R.onViewportEntered)==null||y.call(R)})},
unobserve:function(){}}:new uW(function(R){Xg(function(){var y;
(y=R.onViewportEntered)==null||y.call(R)})})}var O4L=Iub;var brc=_.Jd(function(R){var y=!1,u=_.sh("img",function(v){_.GF(function(){y=!0;v.onload=null})});
_.ny(function(){var v,Q=(v=R.data)==null?void 0:v.call(R),M,K=(M=R.getSrc)==null?void 0:M.call(R).cb,h;v=(h=R.config)==null?void 0:h.call(R);if(h=u.value)if(M=function(N,T){if(!y)return K?K(N,T):N},rmT(h,v),_.f("web_image_dont_reload_same_src")&&Gjc(h,Q,M))_.f("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 b;ne4(h,Q||null,M,v,(b=R.lazy)==null?void 0:b.call(R))}},"v0I2p");
return _.F("img",{el:u})},"c");
brc.idomCompat=!0;_.MR=_.Jd(function(R){var y=function(){var u,v=R.data(),Q,M,K,h,b,N,T,x,B,l,Z,P,k,E,D,z,c,a,L,QG,hz,bO,BW,Zc,xS,Dc,$S,hL,WK;var JL={contentMode:(Q=R.contentMode)==null?void 0:Q.call(R),loadedClass:(M=R.loadedClass)==null?void 0:M.call(R),isPreloaded:(K=R.isPreloaded)==null?void 0:K.call(R),notifyOnLoaded:(h=R.notifyOnLoaded)==null?void 0:h.call(R),notifyOnUnloaded:(b=R.notifyOnUnloaded)==null?void 0:b.call(R),preferredThumbnail:(N=R.preferredThumbnail)==null?void 0:N.call(R),preserveHeight:(T=R.preserveHeight)==
null?void 0:T.call(R),preserveWidth:(x=R.preserveWidth)==null?void 0:x.call(R),objectPosition:(B=R.objectPosition)==null?void 0:B.call(R),targetWidth:(l=R.targetWidth)==null?void 0:l.call(R),targetHeight:(Z=R.targetHeight)==null?void 0:Z.call(R),shouldShowPlaceholder:(P=R.shouldShowPlaceholder)==null?void 0:P.call(R),useWidth:(k=R.useWidth)==null?void 0:k.call(R),isToggled:(E=R.isToggled)==null?void 0:E.call(R),alt:(D=R.alt)==null?void 0:D.call(R),className:(z=R.className)==null?void 0:z.call(R),
onerror:R.onerror,onload:R.onload,style$:((c=R.style$)==null?void 0:c.call(R))||((a=R.style)==null?void 0:a.call(R)),color:(L=R.color)==null?void 0:L.call(R),width:(QG=R.width)==null?void 0:QG.call(R),height:(hz=R.height)==null?void 0:hz.call(R),"aria-hidden$":(hL=(bO=R["aria-hidden$"])==null?void 0:bO.call(R))!=null?hL:(BW=R.ariaHidden)==null?void 0:BW.call(R),draggable:(Zc=R.draggable)==null?void 0:Zc.call(R),"data-disabled$":(WK=(xS=R["data-disabled$"])==null?void 0:xS.call(R))!=null?WK:(Dc=R.dataDisabled)==
null?void 0:Dc.call(R),size:($S=R.size)==null?void 0:$S.call(R)};return d0T(v,JL,(u=R.hideOn404)==null?void 0:u.call(R))};
return _.F(_.Z6,null,_.F(_.lr,{when:function(){var u;return((u=y())==null?void 0:u.type)==="image"}},function(){return _.F(brc,{data:function(){return y().image},
getSrc:{cb:function(u,v){var Q=y().image.sources,M=y().config.isPreloaded,K=y().config.useWidth,h=y().config.targetWidth,b=y().config.targetHeight,N=y().config.preferredThumbnail;return _.wpc(v,Q,M,K,h,b,N)||""}},
config:function(){var u=y().config,v;for(v in u)u[v]===void 0&&delete u[v];return u},
lazy:R.renderLazy})}),_.F(_.lr,{when:function(){var u;
return((u=y())==null?void 0:u.type)==="icon"}},function(){return _.F(_.W_,{icon:function(){return y().iconName},
role:function(){return y().config.role},
className:function(){return y().config.className},
style:function(){return y().config.style$+";width: "+(y().config.width+"px;height: ")+(y().config.height+"px;color: ")+(y().config.color+";")},
ariaLabel:function(){return y().config["aria-label$"]},
ariaHidden:function(){return y().config["aria-hidden$"]},
dataDisabled:function(){return y().config["data-disabled$"]},
active:function(){return y().config.isToggled},
size:function(){return y().config.size}})}))},"d");
_.MR.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var FS8=function(R){return function(y){return _.F(IT8,null,function(){var u=y.data(),v=_.PT(y.config);return _.F(gI,null,function(){return void R(u,v)})})}}(q5c),Eez=_.Jd(function(R){var y=function(v){var Q,M=_.VX(function(B){Q=rh(function(){for(var l=_.V(T()),Z=l.next();!Z.done;Z=l.next()){Z=XpU(Z.value);
Z=typeof Z==="string"?document.createTextNode(Z):Z;if(!(Z instanceof Node)){l=new _.OL("Part is not a node",Z,typeof Z);_.dI(l);break}B.appendChild(Z)}})}),K=i0(function(){return RdT(v())},{isEqual:kjT}),h=_.Qj(R.config),b=function(){var B,l=K();
return!((B=h())==null||!B.ariaLabel)||!(l.commandRuns&&l.commandRuns.length!==0||l.paragraphStyleRuns&&l.paragraphStyleRuns.length!==0)},N=i0(h,{isEqual:Am8}),T=function(){var B=C6v(K(),N());
u_8(B,N());return K().content?VMO(K().content,B).parts:[]},x=!0;
_.ny(function(){K();N();if(x)x=!1;else{var B=T();Promise.resolve().then(function(){var l=M.value;if(l){l.innerText="";var Z;(Z=Q)==null||Z();Q=_.Hu(l,function(){return _.F(m0T,{parts:B})})}})}},"YlhjWd");
return _.F("span",{el:M,class:function(){return K()&&XqS(K(),h())},
dir:function(){var B;return((B=h())==null?0:B.userInput)?"auto":void 0},
"aria-label":function(){var B;return b()?(B=h())==null?void 0:B.ariaLabel:void 0},
role:function(){return b()?"text":void 0}})},u;
return((u=R.config)==null?0:u.renderedFromFormattedString)?y(R.text):_.F(_.w,{cond:R.text,then:y})},"e");
Eez.idomCompat=!0;_.QM=_.Jd(function(R){var y=_.Qj(R.text),u=D0E(R);R.renderedFromFormattedString!==void 0&&(u.renderedFromFormattedString=!0);return _.f("attr_string_reactive")?_.F(Eez,{text:y,config:u}):_.F(_.w,{cond:function(){var v;return y()&&((v=RdT(y()))==null?void 0:v.content)},
then:function(){return _.F(FS8,{data:R.text,config:u})},
debugInstance:"Apcuac"})},"f");
_.QM.idomCompat=!0;var tMU=function(R,y,u){y=y===void 0?"unknown":y;u=u===void 0?{}:u;_.OL.call(this,R+" ("+y+")",Object.assign({},{name:"YtWcwError",tagName:y},u));Object.setPrototypeOf(this,this.constructor.prototype)};
_.O(tMU,_.OL);_.s7E=new WeakMap;_.LCP=!1;var Y5W,zdv,S5S;_.vR=Symbol("hh");_.IC=Symbol("ih");Y5W=Symbol("jh");zdv=new Set(Object.getOwnPropertyNames(Element.prototype));S5S=Symbol("kh");var wqT=_.Jd(function(R){return _.F("yt-attributed-string",{"aria-label":R.ariaLabel,hidden:R.hidden,id:R.id,class:R.className,"force-default-style":R.forceDefaultStyle},_.F(_.QM,{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");
_.f("web_wiz_attributed_string")&&_.h6(wqT,"yt-attributed-string",{props:{ariaHidden:_.vR,ariaLabel:_.vR,className:_.vR,ellipsisTruncate:_.vR,isOverlay:_.vR,linkInheritColor:_.vR,noEndpoints:_.vR,noStyleRuns:_.vR,noLinkColor:_.vR,noPreWrap:_.vR,noWrap:_.vR,skipOnClick:_.vR,userInput:_.vR,headerRuns:_.vR,id:_.vR,data:_.vR,hidden:_.vR,forceDefaultStyle:_.vR,text:_.IC,stopPropagation:_.IC,disableUpgrade:_.IC,disable:_.IC,slot:_.IC}});var QE=function(){return _.W.apply(this,arguments)||this};
_.O(QE,_.W);QE.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},q5c(this.data,this.config))};
_.A([_.n(H5T),_.p("design:type",Object)],QE.prototype,"ytIdomTemplatingBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],QE.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],QE.prototype,"ariaLabel",void 0);_.A([_.r(),_.p("design:type",Boolean)],QE.prototype,"disable",void 0);_.A([_.r(),_.p("design:type",Boolean)],QE.prototype,"ellipsisTruncate",void 0);_.A([_.r(),_.p("design:type",Boolean)],QE.prototype,"isOverlay",void 0);
_.A([_.r(),_.p("design:type",Boolean)],QE.prototype,"linkInheritColor",void 0);_.A([_.r(),_.p("design:type",Boolean)],QE.prototype,"noPreWrap",void 0);_.A([_.r(),_.p("design:type",Boolean)],QE.prototype,"noWrap",void 0);_.A([_.r(),_.p("design:type",Boolean)],QE.prototype,"userInput",void 0);_.A([_.r(),_.p("design:type",Boolean)],QE.prototype,"noEndpoints",void 0);_.A([_.r(),_.p("design:type",Array)],QE.prototype,"headerRuns",void 0);
_.A([_.pu({is:"yt-attributed-string",disableElementRegistration:!0})],QE);
_.f("web_wiz_attributed_string")||_.m(QE,"yt-attributed-string",function(){if(zaL===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);
R.content.insertBefore(sYg().content.cloneNode(!0),R.content.firstChild);zaL=R}R=zaL;return R},{mode:2});var Nl5,TlL,Q64;Nl5=function(){this.firstThumbnailLoaded=!1};
_.oPc=function(){TlL||(TlL=new Nl5);return TlL};
Q64=function(R){var y=_.oPc();y.firstThumbnailLoaded||(y.firstThumbnailLoaded=!0,_.qQ("ftl",R))};
Nl5.prototype.reset=function(){this.firstThumbnailLoaded=!1};var Cfc=0,vf8=new WeakMap,yo8=0,wW=new Set;var xfV,Blw=function(){return xfV!==void 0?xfV:xfV=document.createElement("template")};
document.head.appendChild(Blw().content);var fu8;var V$G,KYO,ju;_.oC=_.uO.caches;ju=function(){};
ju.prototype.open=function(R){return _.oC.open(e1b(R))};
ju.prototype.has=function(R){return _.oC.has(e1b(R))};
ju.prototype.delete=function(R){return _.oC.delete(e1b(R))};
ju.prototype.match=function(R,y){var u=this,v,Q,M,K,h,b;return _.I(function(N){switch(N.nextAddress){case 1:return N.yield(u.keys(),2);case 2:v=N.yieldResult,Q=_.V(v),M=Q.next();case 3:if(M.done){N.jumpTo(5);break}K=M.value;return N.yield(u.open(K),6);case 6:return h=N.yieldResult,N.yield(h.match(R,y),7);case 7:if(b=N.yieldResult)return N.return(b);M=Q.next();N.jumpTo(3);break;case 5:return N.return()}})};
var IBU=function(){};
_.O(IBU,ju);var e1b=function(R){if(R.includes(":"))throw Error("nh`"+R);return R+":"+_.eX("CacheStorage get")};
IBU.prototype.keys=function(){var R,y,u,v,Q,M,K,h,b;return _.I(function(N){if(N.nextAddress==1)return R=[],y=_.eX("CacheStorage keys"),N.yield(_.oC.keys(),2);u=N.yieldResult;v=_.V(u);for(Q=v.next();!Q.done;Q=v.next())M=Q.value,K=_.Joc(M),h=K.originalName,b=K.datasyncId,b===y&&R.push(h);return N.return(R)})};var MJ=function(){var R=_.W.apply(this,arguments)||this;R.objectURL=null;R.loadTime=Infinity;return R};
_.O(MJ,_.W);_.J=MJ.prototype;_.J.renderIdom=function(){M$W(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("qh");this.setConfig();this.config&&PfS(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.J.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"}};
_.J.logThumbnailFailureVe=function(){var R=_.$6(197497);_.x0(_.GN(),R);var y=_.$I();y&&R&&y&&_.Lo(y,[R])};
_.J.loadImageFromCacheIfExists=function(R){var y=this,u=R.target;(u==null?0:u.src)&&bdG(u.src).then(function(v){y.objectURL=_.$E(v).toString();y.setSrc(u,y.objectURL)}).catch(function(){})};
_.J.onError=function(R){var y=this;if(_.f("web_use_cache_for_image_fallback")){var u=R.target;u&&bdG(u.src).then(function(v){y.objectURL=_.$E(v).toString();y.setSrc(u,y.objectURL)}).catch(function(){_.f("kevlar_woffle_log_thumbnail_failure_ve")&&y.logThumbnailFailureVe();
_.f("kevlar_woffle_fallback_image")&&y.setSrc(u,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.J.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.J.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(y){R.loadImageFromCacheIfExists(y);R.revokeObjectURL();j6O(R.hostElement)},
onerror:function(y){R.onError(y)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.f("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.J.setSrc=function(R,y){y&&(R.src=y)};
_.A([_.n(H5T),_.p("design:type",Object)],MJ.prototype,"ytIdomTemplatingBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],MJ.prototype,"data",void 0);_.A([_.r(),_.p("design:type",String)],MJ.prototype,"alt",void 0);_.A([_.r(),_.p("design:type",Boolean)],MJ.prototype,"ftlEligible",void 0);_.A([_.r(),_.p("design:type",Number)],MJ.prototype,"height",void 0);_.A([_.r(),_.p("design:type",Boolean)],MJ.prototype,"notifyOnLoaded",void 0);
_.A([_.r(),_.p("design:type",Boolean)],MJ.prototype,"notifyOnUnloaded",void 0);_.A([_.r(),_.p("design:type",String)],MJ.prototype,"objectFit",void 0);_.A([_.r(),_.p("design:type",String)],MJ.prototype,"objectPosition",void 0);_.A([_.r(),_.p("design:type",String)],MJ.prototype,"preferredThumbnail",void 0);_.A([_.r(),_.p("design:type",Boolean)],MJ.prototype,"preserveHeight",void 0);_.A([_.r(),_.p("design:type",Boolean)],MJ.prototype,"preserveWidth",void 0);
_.A([_.r({value:!0}),_.p("design:type",Boolean)],MJ.prototype,"useWidth",void 0);_.A([_.r({value:function(){return!_.$B("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.p("design:type",Boolean)],MJ.prototype,"shouldRenderLazy",void 0);_.A([_.r(),_.p("design:type",Number)],MJ.prototype,"width",void 0);_.A([_.pu({is:"yt-image",disableElementRegistration:!0})],MJ);
_.m(MJ,"yt-image",function(){if(fu8===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);R.content.insertBefore(Blw().content.cloneNode(!0),R.content.firstChild);
fu8=R}R=fu8;return R},{mode:2});var JX=function(){return _.W.apply(this,arguments)||this};
_.O(JX,_.W);JX.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var R=_.Sb(this.data.onVisibleCommand);R&&this.ytComponentBehavior.resolveCommand(R)}};
_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],JX.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],JX.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.Cl.YtVisibilityBehavior),_.p("design:type",Object)],JX.prototype,"ytVisibilityBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],JX.prototype,"data",void 0);_.A([_.pu({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],JX);
_.m(JX,"yt-bumper-user-edu-content-view-model",function(){if(lZL===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;eag===void 0&&(eag=document.createElement("template"));var v=eag;u.call(y,v.content.cloneNode(!0),R.content.firstChild);lZL=R}R=lZL;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var luw;var OrT,ZrV=function(){if(OrT!==void 0)return OrT;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;luw===void 0&&(luw=document.createElement("template"));var v=luw;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return OrT=R};var Hrc;_.VE={};Hrc=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"]);_.VE.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var R=this.getContext_();return R?R.getTaskManager():_.WG},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var R=_.Ko(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 Hrc.has(this.hostElement.localName)},
getNetworkManager:function(){var R=this.getContext_();if(R)return R.getNetworkManager()}};var x3T,nPg,rfT,Gsg;_.iW=function(R){var y=nPg.get(R);if(y&&(y=y.pop()))return Gsg++,y;rfT++;try{var u=document.createElement(R)}catch(v){throw new _.OL("ElementPool failed to create element",R,v.message);}return u};
x3T=function(R){var y=R.is;if(y){var u=nPg.get(y);u||(u=[],nPg.set(y,u));var v=_.EB("ELEMENT_POOL_CONFIG")||{};u.length>=(v[y]!==void 0?v[y]:_.EB("ELEMENT_POOL_DEFAULT_CAP",0))||u.push(R)}else _.kT(new _.OL("Element pool should only handle custom elements:",R.nodeName))};
nPg=new Map;rfT=0;Gsg=0;var x6=new WeakMap,of4=new WeakMap;var WSb;_.KQ=function(R,y,u){u=u===void 0?_.EJ():u;this.JSC$13710_defaultPriority=R;this.signal=y;this.scheduler=u;this.nextJobDescriptor=0;this.JSC$13710_parkedJobs=[];this.scheduledJobs=new Map};
_.IJ=function(R,y){if(y){var u=_.Lx();R.signal&&!_.sT(u,R.signal)?(u.addListener(R.signal,function(){R.processSignal()}),R.JSC$13710_parkedJobs.push({job:y,
priority:void 0})):P6V(R,y)}};
WSb=function(R,y){if(y!==R.JSC$13710_defaultPriority){R.JSC$13710_defaultPriority=y;for(var u=_.V(R.scheduledJobs.values()),v=u.next();!v.done;v=u.next())v=v.value,R.scheduler.cancelJob(v.jobId),v.jobId=R.scheduler.addJob(v.jobWrapper,y)}};
_.KQ.prototype.flushJobs=function(){WSb(this,10);this.processSignal()};
_.KQ.prototype.cancel=function(){for(var R=_.V(this.scheduledJobs),y=R.next();!y.done;y=R.next()){var u=_.V(y.value);y=u.next().value;u=u.next().value;this.scheduler.cancelJob(u.jobId);this.scheduledJobs.delete(y)}this.JSC$13710_parkedJobs=[]};
_.KQ.prototype.processSignal=function(){for(var R=_.V(this.JSC$13710_parkedJobs),y=R.next();!y.done;y=R.next())y=y.value,P6V(this,y.job,y.priority);this.JSC$13710_parkedJobs=[]};
var P6V=function(R,y,u){u=u||R.JSC$13710_defaultPriority;if(u===10)NR(y);else{var v=R.nextJobDescriptor++,Q=function(){y();R.scheduledJobs.delete(v)},M=R.scheduler.addJob(Q,u);
R.scheduledJobs.set(v,{jobWrapper:Q,jobId:M,priority:u})}};_.Qn(lBE);var Odc={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};w8L({beforeVisit:function(R){if(Fg.has(R.type)){var y;(y=R.props).idomKey!=null||(y.idomKey=R.type)}else R.type.TAG_NAME&&(hd=R.type.TAG_NAME)},
afterRender:function(R,y){var u;hd=(u=y==null?void 0:y.type)!=null?u:""},
didPatch:function(){hd=""}});var df8;_.hX={};df8={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.hX.YtRendererstamperBehavior=[_.VE.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 y=this.stampDom[R];y&&y.id&&this.addReactiveSchema({type:"observe",method:{methodName:wIc(y.id),args:[{type:"wildcard",path:R}]}})}else{(R=(this.constructor.generatedFrom||this).observers)||(R=[]);for(y in this.stampDom){var u=this.stampDom[y];u&&u.id&&R.push(wIc(u.id)+"("+y+".*)")}this.constructor.generatedFrom.observers=R}},
addStampDomObserverFns_:function(){for(var R in this.stampDom){var y=this.stampDom[R];y.id?(this[wIc(y.id)]=this.rendererStamperObserver_.bind(this,R,y.id),this.hasDataPath_[R]=!1):(y=new _.OL("Bad rendererstamper config",this.is+":"+R),_.dI(y))}},
rendererStamperObserver_:function(R,y,u){if(u.path==R){if(u.value===void 0&&!this.hasDataPath_[R])return;this.hasDataPath_[R]=u.value!==void 0}this.rendererStamperApplyChangeRecord_(R,y,u)},
rendererStamperApplyChangeRecord_:function(R,y,u){var v=this.renderJobsMap_[y],Q=null;R==u.path?(u=u.value,_.p8(u)||(u=u===void 0||u===null?[]:[u]),R=this.stampDom[R],R.mapping&&(Q=this.stampDomArray_.bind(this,u,y,R.mapping,R.reuseComponents,R.events,R.stamperStableList)),v&&v.cancel(),u=R.usePageScheduler?this.getTaskManager():void 0,v||R.initialRenderPriority==void 0)?R.renderPriority==void 0||v||(v=new _.KQ(R.renderPriority,R.waitForSignal,u),this.renderJobsMap_[y]=v):(v=new _.KQ(R.initialRenderPriority,
R.waitForSignal,u),this.renderJobsMap_[y]=v,Q=function(M,K){M();WSb(K,10)}.bind(this,Q,v)):Q=R+".splices"==u.path?this.stampDomArraySplices_.bind(this,R,y,u.value):this.forwardRendererStamperChanges_.bind(this,R,y,u);
v?_.IJ(v,Q):Q()},
forwardRendererStamperChanges_:function(R,y,u){var v=u.path.slice(R.length+1),Q=this.getStampContainer_(y),M=v.indexOf("."),K=v.substring(0,M),h=!1,b=0,N=parseInt(K,0);if(K[0]=="#"){h=parseInt(K.substring(1),0);N=this.get(R);var T=this.get([R,K]);N[h]==T?b=h:b=N.indexOf(T);h=!0}else isNaN(N)||(b=N,h=!0);h&&(v=v.substring(K.length+1),M=v.indexOf("."));K=_.GM(Q).children[b];var x;if(Q=(x=K==null?void 0:K.polymerController)!=null?x:K)v="data"+v.slice(M),typeof Q.notifyPath!=="function"?_.kT(new _.OL("notifyPath missing",
this.is+": "+R+", "+y)):u.value?Q.notifyPath(v,u.value):Q.notifyPath(v)},
stampDomArraySplices_:function(R,y,u){if(u&&u.indexSplices){var v=this.getStampContainer_(y);if(v){for(var Q=_.GM(v),M=TPv(this.stampDom[R].reuseComponents),K=u.indexSplices.length,h=0;h<K;h++){for(var b=u.indexSplices[h],N=Q.children[b.index],T=b.removed.length;T>0;T--)N&&N.parentElement&&(_.GM(N.parentElement).removeChild(N),M&&x3T(N),N=Q.children[b.index]);T=this.stampDom[R].mapping;for(var x=b.index+b.addedCount,B=document.createDocumentFragment(),l=M,Z=b.index;Z<x;Z++){var P=b.object[Z],k=FYL(T,
P);if(k){var E=T[k];P=P[k];k=this.getComponentName_(E,P);var D=N?x6.has(N):!1;l&&N&&N.is==k&&D?(k=N,this.telemetry_.reuse++,N=N.nextElementSibling):l&&N&&D?(k=this.createComponent_(E,P,M),D=_.GM(N).nextElementSibling,Q.insertBefore(k,D),fBv(this.is,Q,N,M),N=D):(l=!1,k=this.createComponent_(E,P,M),B.appendChild(k));this.deferRenderStamperBinding_(k,E,P)}else E=new _.OL("Unimplemented type",R,y,v.tagName,Object.keys(P)[0]),_.dI(E)}Q.insertBefore(B,N)}this.flushRenderStamperComponentBindings_();this.stampDom[R].events&&
_.Ko(this.hostElement,"yt-rendererstamper-finished",{container:v})}else R=new _.OL("Container object not found",y,this.hostElement?this.hostElement.is:""),_.dI(R)}},
stampDomArray_:function(R,y,u,v,Q,M){var K=this.getStampContainer_(y);if(K)if(y=_.GM(K),v=TPv(v),R){var h=0,b=0,N;if(M=M===void 0?_.$B("STAMPER_STABLE_LIST",!1):M||!1)for(N=y.firstElementChild;N&&!x6.has(N)&&R.length>b;){M=R[b];var T=FYL(u,M);if(T){if(this.getComponentName_(u[T],M[T])!=N.is){var x=this.createComponent_(u[T],M[T],v),B=_.GM(N).nextElementSibling;B?y.insertBefore(x,B):y.appendChild(x);fBv(this.is,y,N,v);N=x}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(N,u[T],M[T]);h++;
b++;N=_.GM(N).nextElementSibling}else b++}ei8(this.is,y,h,v);h=N;if(R.length>b){M=document.createDocumentFragment();for(T=R.length;b<T;b++)if(x=R[b],B=FYL(u,x))N=this.createComponent_(u[B],x[B],v),this.deferRenderStamperBinding_(N,u[B],x[B]),M.appendChild(N);h&&_.GM(h).parentNode&&N&&!x6.has(N)?y.insertBefore(M,h):y.appendChild(M)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();Q&&_.Ko(this.hostElement,"yt-rendererstamper-finished",{container:K})}else ei8(this.is,y,0,
v);else R=new _.OL("Container object not found",y,this.hostElement?this.hostElement.is:""),_.dI(R)},
getStampContainer_:function(R){return this.$&&this.$[R]||_.hw(this.hostElement).querySelector("#"+R)},
getComponentName_:function(R,y){return typeof R==="string"?R:R.matcher?R.matcher.call(this,y):R.component},
createComponent_:function(R,y,u){R=this.getComponentName_(R,y);try{var v=wZ.has(R)||Fg.has(R);if(u&&!v){var Q=_.iW(R);try{_.oX(Q)}catch(M){u="Failed to clear styles for "+R+".",M.message&&(u+=" Original error: "+M.message),_.kT(new _.OL(u))}}else Q=document.createElement(R)}catch(M){return Q="YtRendererStamperBehavior failed to create "+R+".",M.message&&(Q+=" Original description: "+M.message),M.message="YtRendererStamperBehavior failed to create element",_.Eh(M,Q),df8.hasOwnProperty(R)?_.kT(M):_.dI(M),
document.createElement("SPAN")}this.telemetry_.create++;return Q},
deferRenderStamperBinding_:function(R,y,u){this.deferredBindingTasks_.push({component:R,typeOrConfig:y,data:u})},
flushRenderStamperComponentBindings_:function(){for(var R=0,y=this.deferredBindingTasks_.length;R<y;R++){var u=this.deferredBindingTasks_[R];if(!u)break;var v=void 0,Q=void 0,M=void 0,K=void 0,h=u.component,b=u.typeOrConfig;u=u.data;var N=(K=h.polymerController)!=null?K:h;K=h.loggingStatus;try{K&&(K.isRendererStamper=!0);if(typeof b!=="string"){for(M in b.attributes)b.attributes[M]===!0?h.setAttribute(M,""):b.attributes[M]===!1?h.removeAttribute(M):h.setAttribute(M,b.attributes[M]);for(Q in b.params)N[Q]=
b.params[Q],h!==N&&U7(h.localName,Q,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(v in b.properties){var T=b.properties[v];if(T){var x=NPS(T);N[v]=this.get(x);h!==N&&U7(h.localName,v,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(v==="on-tap"||v==="on-click"){var B=this.get(x);h.addEventListener("click",B);of4.set(h,{property:v,listener:{type:"element",eventName:"click",handler:B}})}}else{var l=new _.OL("Undefined property binding",v);_.dI(l)}}}if(b.classListBinding){var Z=NPS(b.classListBinding),
P=Z?this[Z]:null;if(P)for(v=0;v<P.length;v++)_.FN(h,P[v],!0)}N.data=u}finally{K&&(K.isRendererStamper=!1)}if(v=x6.get(h))h.hidden=!1,x6.delete(h),_.WG.cancelJob(v)}this.deferredBindingTasks_.length=0}}];_.bW={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(R){for(var y=_.c3.getInstance(),u=_.V(Object.keys(R)),v=u.next();!v.done;v=u.next()){var Q=v.value;v=R[Q];if(this&&this[v]){var M=y.actionRoutingMap.get(Q);M||(M=new Map,y.actionRoutingMap.set(Q,M));y.registerActionHandler(this,Q,this[v].bind(this),M)}else Q=Error("id"),Q.params=v,_.mq(Q)}},
unregisterActionMap:function(R){_.Sx(_.c3.getInstance(),R,this)}}]};var ep=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_"+(_.f("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.f("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.f("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",
path:_.f("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light_v4.json":"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",pathDarkTheme:_.f("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark_v4.json":"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,
autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:_.f("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var fh;var l0=new Map;var $3O=window.matchMedia("(forced-colors: active)").matches;var UfK;var ksG;var EPb=new _.Jx("LOTTIE_LOADER_TOKEN");_.F2=_.Jd(function(R){var y=R.data;var u=R.className;var v=R.animationName;var Q=R.animationRef;var M=R.elRefForInterop;var K=_.zp("lottie-component"),h;_.GF(function(){var N;return void((N=h)==null?void 0:N.destroy())});
var b;_.ny(function(){var N=_.PT(v);if(N!==b){b=N;var T=Object.assign({},{animationName:N,animationRef:_.PT(Q)},_.PT(y));try{_.ua().resolve(EPb)().then(function(l){var Z;(Z=h)==null||Z.destroy();var P,k;Z=(k=M==null?void 0:(P=M())==null?void 0:P.value)!=null?k:K.value;P=T.animationRef;k=T.listeners;l=l.loadAnimation(Object.assign({},{container:Z},T.animationConfig));P&&(P.lottieEl=l);if(k)for(Z=_.V(Object.entries(k)),P=Z.next();!P.done;P=Z.next())k=_.V(P.value),P=k.next().value,(k=k.next().value)&&
l.addEventListener(P,k);h=l})}catch(l){N=l;
var x="LottieComponent error.";N.message&&(x+=" Original description: "+N.message);_.Eh(N,x);_.kT(N);var B;((B=T.listeners)==null?0:B.error)&&T.listeners.error(N)}}},"lbhvPc");
return _.F($4U,{cond:function(){return!(M==null?0:M())},
then:function(){return _.F("lottie-component",{class:_.Oy("ytLottieComponentHost",u),el:K})}})},"h");_.h6(_.Jd(function(R){return _.F("ytd-lottie-player",{id:R.id,hidden:R.hidden,class:R.className,"aria-label":R.ariaLabel,style:"display: block;"},_.F(_.F2,{data:R.data,animationName:function(){var y;return((y=R.data().animationConfig)==null?void 0:y.name)||""},
animationRef:function(){return R.data().animationRef}}))},"i"),"ytd-lottie-player",{props:{data:_.vR,
id:_.vR,hidden:_.vR,className:_.vR,ariaLabel:_.vR}});var wj=function(){var R=_.W.apply(this,arguments)||this;R.animationRef={};R.delhiIconsEnabled=_.f("enable_web_delhi_icons");return R};
_.O(wj,_.W);_.J=wj.prototype;
_.J.handlePropertyChange=function(){var R=this.animatedIcon,y=this.active,u=this.isDarkTheme;if(R){var v=this.previousActive!==y;this.previousActive=y;this.animationRef.lottieEl?v&&this.toggleAnimation(y,R.totalFrames):y?this.initializeAnimationAsToggled(R.lottiePlayerProps,R.totalFrames):this.initializeAnimationAsUntoggled(R.lottiePlayerProps);R.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=R.type;this.lottiePlayerProps=this.computeLottiePlayerProps(R,u)}};
_.J.computeLottiePlayerProps=function(R,y){var u=this.deepCloneLottiePlayerProps(R);y?(y=R.nameDarkTheme,R=R.pathDarkTheme):(y=R.name,R=R.path);u.animationConfig.name=y;(y=l0.get(R))?u.animationConfig.animationData=y:u.animationConfig.path=R;return u};
_.J.initializeAnimationAsToggled=function(R,y){R.animationConfig.initialSegment=[y-1,y]};
_.J.initializeAnimationAsUntoggled=function(R){R.animationConfig.initialSegment=void 0};
_.J.toggleAnimation=function(R,y){if(R){var u;(u=this.animationRef.lottieEl)==null||u.playSegments([0,y],!0)}else{var v;(v=this.animationRef.lottieEl)==null||v.playSegments([0,1],!0)}};
_.J.deepCloneLottiePlayerProps=function(R){var y=Object.assign({},R.lottiePlayerProps.animationConfig);R=Object.assign({},R.lottiePlayerProps);R.animationConfig=y;return R};
wj.prototype.handlePropertyChange=wj.prototype.handlePropertyChange;_.A([_.r(),_.p("design:type",Object)],wj.prototype,"animatedIcon",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],wj.prototype,"active",void 0);_.A([_.r(),_.p("design:type",Boolean)],wj.prototype,"isDarkTheme",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],wj.prototype,"animatedIconType",void 0);_.A([_.r(),_.p("design:type",Boolean)],wj.prototype,"previousActive",void 0);
_.A([_.r(),_.p("design:type",Object)],wj.prototype,"lottiePlayerProps",void 0);_.A([_.r(),_.p("design:type",Object)],wj.prototype,"animationRef",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],wj.prototype,"delhiIconsEnabled",void 0);_.A([_.e0("animatedIcon","active","isDarkTheme"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wj.prototype,"handlePropertyChange",null);_.A([_.pu({is:"yt-animated-icon",disableElementRegistration:!0})],wj);
_.m(wj,"yt-animated-icon",function(){if(ksG===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;UfK===void 0&&(UfK=document.createElement("template"));var v=UfK;u.call(y,v.content.cloneNode(!0),R.content.firstChild);ksG=R}R=ksG;return R},{mode:2});var $fL;var qVK;var pIS=_.Jd(function(R){var y=_.zp("span"),u=Pu(function(){return{value:null}});
_.GF(function(){var Q;(Q=u.value)==null||Q.cancel()});
var v=_.N8(R.data,{equals:function(Q,M){return Q.iconName===M.iconName&&Q.iconStyle===M.iconStyle&&Q.iconSize===M.iconSize&&Q.iconSetName===M.iconSetName&&Q.iconSelected===M.iconSelected}},"aoiXAb");
_.ny(function(){var Q,M=(Q=R.options)==null?void 0:Q.call(R);D3c(y,u,v(),M)},"QXgxJd");
return _.F("span",{class:"yt-icon-shape",el:y})},"j");
pIS.idomCompat=!0;var GOT=["youtube_fill","youtube_outline"];var Xq8=new _.UD({type:"iconset",value:void 0}),NJ=function(){var R=_.W.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=_.In(void 0,void 0,"RQ9kUb");R.renderingOptionsSignal=_.In({iconWidth:"100%",iconHeight:"100%",iconFilter:R.iconFilter},void 0,"qtx8Ef");R.wizHasRendered=!1;R.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return R};
_.O(NJ,_.W);NJ.prototype.onDarkModeToggledAction=function(R){R!==this.isDarkTheme&&(this.isDarkTheme=R)};
NJ.prototype.handlePropertyChange=function(){var R=this,y,u,v,Q,M,K,h,b,N,T,x,B,l,Z,P,k,E;return _.I(function(D){switch(D.nextAddress){case 1:if(y=!R.icon&&!R.iconName||!R.isAttached)return D.return();u=R;v=u.icon;Q=u.size;M=u.defaultToFilled;K=u.active;h=u.targetContainer;R.toggleContainerClass(h);_.f("kevlar_use_wil_icons")&&v&&(b=BMW(v),R.iconType=b.length?b[1]:null);if(v){D.jumpTo(2);break}R.iconsetName="";R.iconName="";return D.yield(R.renderIcon(h,v),3);case 3:return D.return();case 2:N=mfV(v);
T=BMW(N);T.length&&(R.iconsetName=T[0],R.iconName=T[1]);if(!_.f("kevlar_use_wil_icons")){D.jumpTo(4);break}x=NJ;B=AfV;l=R.iconType;Z=R.active;P=R.defaultToFilled;k=R.size;E=R.iconsetName;return D.yield(DfV(),6);case 6:return D.yield(B.call(x,l,Z,P,k,E,D.yieldResult),5);case 5:R.iconShapeData=D.yieldResult;case 4:if(R.shouldRenderIconShape(h)){D.jumpTo(7);break}return D.yield(R.determineIconSet(N,K,M,Q,h),7);case 7:return D.yield(R.renderIcon(h,v),0)}})};
NJ.prototype.toggleContainerClass=function(R){R?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var mfV=function(R){return!_.f("default_to_innertube_icon")||R.indexOf(":")>0?R:_.fk(R)};
_.J=NJ.prototype;_.J.determineIconSet=function(R,y,u,v){var Q=this;return _.I(function(M){return M.nextAddress==1?_.f("kevlar_system_icons")||_.EB("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.EB("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?M.yield(Q.switchToYtSysIconset(R,y,u,v),3):M.jumpTo(2):M.nextAddress!=2?M.return():M.yield(Q.useYtSysIconsetForMissingIcons(R,y,u,v),0)})};
_.J.switchToYtSysIconset=function(R,y,u,v){var Q=this,M,K,h,b,N,T,x;return _.I(function(B){switch(B.nextAddress){case 1:if(!R||Q.iconsetName!=="yt-icons"&&Q.iconsetName!=="yt-sys-icons"){B.jumpTo(0);break}M=BMW(R);K=M[1];K=_.PeT(K);_.f("enable_polymer_icons_replace_underscores_dash")&&K.includes("_filled")&&(K=K.replace(/_filled/g,"-filled"));return B.yield(By(K,!0),3);case 3:return h=B.yieldResult,B.yield(By(K,!1),4);case 4:if((b=B.yieldResult)||y&&h)Q.iconsetName="yt-sys-icons";Q.iconName=Q.getIconName(K,
y,u,b,h);if(v===24){B.jumpTo(0);break}N="yt-sys-icons"+v+":"+Q.iconName;return B.yield(By(N,!1,!0),6);case 6:return T=B.yieldResult,B.yield(By(N,!0,!0),7);case 7:x=B.yieldResult;Q.iconName=Q.getIconName(K,y,u,T,x);if(!y&&T||y&&x)Q.iconsetName="yt-sys-icons"+v;_.f$(B)}})};
_.J.getIconName=function(R,y,u,v,Q){R.includes("-filled")&&(R=R.replace("-filled",""));return Q&&(y||u)?R+"-filled":R};
_.J.useYtSysIconsetForMissingIcons=function(R,y,u,v){var Q=this,M,K;return _.I(function(h){if(h.nextAddress==1)return Q.iconsetName!=="yt-icons"?h.jumpTo(0):h.yield(By(Q.iconName,!1,!1,!0),3);if(h.nextAddress!=4)return M=h.yieldResult,h.yield(By(Q.iconName,!1),4);K=h.yieldResult;if(M||!K)return h.jumpTo(0);Q.iconsetName="yt-sys-icons";return h.yield(Q.switchToYtSysIconset(R,y,u,v),0)})};
_.J.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var DfV=function(){return _.I(function(R){try{return R.return(_.ua().resolve(_.eb))}catch(y){return R.return(new Promise(function(u){_.Lx().parkOrScheduleJob(function(){u(_.ua().resolve(_.eb))},2,"ci")}))}})},AfV=function(R,y,u,v,Q,M){v=v===void 0?24:v;
if(R){R=R.toLowerCase();var K=R.endsWith("_filled")||R.endsWith("-filled");y={iconName:R,iconStyle:(y===void 0?0:y)||(u===void 0?0:u)||K?"youtube_fill":"youtube_outline",iconSize:v,iconSetName:Q===void 0?"yt-icons":Q};u=!!M.resolveIcon(y);u||(y.iconSize=void 0,u=!!M.resolveIcon(y));!u&&K&&(y.iconName=R.substring(0,R.length-7),y.iconSize=v,u=!!M.resolveIcon(y),u||(y.iconSize=void 0,u=!!M.resolveIcon(y)));u||(y.iconStyle=void 0,u=!!M.resolveIcon(y));u||_.kT(new _.OL("Icon not supported",{iconName:y.iconName,
iconStyle:y.iconStyle,iconSize:y.iconSize,iconType:R}));return u?y:void 0}};
_.J=NJ.prototype;_.J.shouldRenderIconShape=function(R){if(!_.f("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;R=this.getContainer(R);return!qdL(R,this.icon)};
_.J.renderIcon=function(R,y){var u=this,v,Q,M,K,h,b,N,T;return _.I(function(x){switch(x.nextAddress){case 1:if(y&&u.icon!==y)return x.return();v=u.getContainer(R);Q=qdL(v,u.icon);if(u.shouldRenderIconShape(R)&&u.iconType)return u.applyIconShape(Q,v),x.return();u.removeIconShape();if(!v)return x.return();u.iconName===""&&u.iconset&&v&&(u.removeStaticIcon(u.iconset,v),Q&&u.removeAnimatedIcon(v));if(u.iconName===""&&u.iconset||!u.iconsetName||!Xq8)return x.return();u.iconset=Xq8.byKey(u.iconsetName);
if(!u.iconset)return u.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.BN(u,u.onIconsetAdded)),x.return();u.missingIconSet&&(u.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.BN(u,u.onIconsetAdded)));K=(M=Q||u.isAnimatedIcon?EfP(u.icon):void 0)&&!M.lazyLoad;b=M&&((h=M)==null?void 0:h.lazyLoad)&&(M.lottiePlayerProps.animationConfig.animationData?!0:l0.get(u.isDarkTheme?M.pathDarkTheme:M.path)?!0:!1);if(K||b)return u.applyAnimatedIcon(v,M,u.iconset),x.return();if(b||
(N=M)==null||!N.lazyLoad){x.jumpTo(2);break}T=m3P(M,u.isDarkTheme);u.applyStaticIcon(u.iconset,v,u.iconName,R,Q);return x.yield(T,3);case 3:return x.yield(u.renderIcon(u.targetContainer,u.icon),4);case 4:return x.return();case 2:u.applyStaticIcon(u.iconset,v,u.iconName,R,Q),_.f$(x)}})};
_.J.getContainer=function(R){var y,u=(y=mHc(this.hostElement))==null?void 0:y.host;y=!!u&&!!u.polymerController;if(!R||y)return R?this.getTargetContainer(R,u):this.hostElement};
_.J.getTargetContainer=function(R,y){var u=_.hw(y).querySelector("#"+R);u||(R=new _.OL("yt-icon container missing",y.is,R),_.dI(R));return u};
_.J.applyStaticIcon=function(R,y,u,v,Q){Q&&this.removeAnimatedIcon(y);this.removeIconShape();Q=Q&&!!this.iconType&&!!this.iconShapeData&&_.f("kevlar_use_wil_icons");try{Q?this.applyIconShape(!1,y):R.applyIcon(y,u)}catch(M){this.handleError(M,v,y)}};
_.J.applyIconShape=function(R,y){this.iconset&&y&&(this.removeStaticIcon(this.iconset,y),R&&this.removeAnimatedIcon(y));R={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var u=_.V(this.iconShapeDataSignal);y=u.next().value;u=u.next().value;var v=_.V(this.renderingOptionsSignal),Q=v.next().value;v=v.next().value;u(this.iconShapeData);v(R);if(!this.wizHasRendered)for(this.wizHasRendered=!0,R=_.V(t$T(y,Q)).next().value;R.firstChild;)_.hw(this.hostElement).appendChild(R.firstChild)};
_.J.removeIconShape=function(){if(_.f("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.J.removeStaticIcon=function(R,y){R.removeIcon(y)};
_.J.applyAnimatedIcon=function(R,y,u){this.removeStaticIcon(u,R);this.removeIconShape();var v;u=this.animatedIconElement&&((v=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:v.type)===y.type;if(this.animatedIconElement&&u){this.animatedIconElement.polymerController.animatedIcon=y;var Q;((Q=this.animatedIconElement)==null?void 0:Q.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=y,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.f("kevlar_use_wil_icons")?R.insertBefore(this.animatedIconElement,R.childNodes[0]):(R=_.hw(R),R.insertBefore(this.animatedIconElement,R.childNodes[0]))};
_.J.removeAnimatedIcon=function(R){_.f("kevlar_use_wil_icons")?this.animatedIconElement&&R.contains(this.animatedIconElement)&&R.removeChild(this.animatedIconElement):(R=_.hw(R),this.animatedIconElement&&R.contains(this.animatedIconElement)&&R.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.J.handleError=function(R,y,u){_.Eh(R,this.iconName,y,u);y=qdL(u,this.icon);var v=!1;window.location.href.includes("JpymaW6Lh2w")?v=!0:u._svgIcon&&(u=(u=u._svgIcon.parentNode)?u.tagName:"unknown",_.Eh(R,u),u==="YT-ICON"&&R.name==="NotFoundError"?v=!0:R.name==="NotFoundError"&&y&&(v=!0));v?_.kT(R):_.dI(R)};
_.RR.Object.defineProperties(NJ,{template:{configurable:!0,enumerable:!0,get:function(){if(qVK===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;
$fL===void 0&&($fL=document.createElement("template"));var v=$fL;u.call(y,v.content.cloneNode(!0),R.content.firstChild);qVK=R}R=qVK;return R}}});
NJ.prototype.handlePropertyChange=NJ.prototype.handlePropertyChange;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],NJ.prototype,"actionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",String)],NJ.prototype,"icon",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],NJ.prototype,"active",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],NJ.prototype,"defaultToFilled",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],NJ.prototype,"isAnimatedIcon",void 0);
_.A([_.r({value:24}),_.p("design:type",Number)],NJ.prototype,"size",void 0);_.A([_.r({value:""}),_.p("design:type",String)],NJ.prototype,"targetContainer",void 0);_.A([_.r(),_.p("design:type",Object)],NJ.prototype,"animatedIconElement",void 0);_.A([_.r(),_.p("design:type",Object)],NJ.prototype,"isDarkTheme",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],NJ.prototype,"ariaHidden",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],NJ.prototype,"ariaLabel",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],NJ.prototype,"role",void 0);_.A([_.r(),_.p("design:type",String)],NJ.prototype,"style",void 0);_.A([_.r(),_.p("design:type",String)],NJ.prototype,"iconFilter",void 0);_.A([_.e0("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype",Promise)],NJ.prototype,"handlePropertyChange",null);_.A([_.pu({is:"yt-icon",noInjection:!0})],NJ);var pqY;var tWi=function(){var R=document.body,y=R.appendChild;if(pqY===void 0){var u=document.createElement("template");_.H(u,'\x3c!--css-build:shady--\x3e<svg style="position: absolute; height: 0; width: 0;" aria-hidden="true"><defs><mask id="artwork__b" fill="#fff"><path d="M.24.24v70.2h10.43c0 33 26.76 59.77 59.77 59.77 33 0 59.77-26.7 59.77-59.7h9.7V.3H.3z"></path></mask><mask id="artwork__d" fill="#fff"><path d="M17.3.23C-2.2-.13.26 14.73.26 14.73s-.1 25.85 14.83 28.3c3.9.06 5.2-5.33 5.2-5.33l-2.2 13.24-4.6 31.26s17.9 5.3 33.4 1.02c.1-12.1 4-43.73 3.9-49.96 3.2 3.7 9 24.97 11 51.1 5.8 1.27 9.3 0 9.3 0S70.9 43.12 54.9 21c-4.7-6.87-16.7-6.87-16.7-6.87-7-.98-8.9-.8-16 .18-7.1 1-6.6 9.5-6.6 9.5s1 5.5-1.4 10.2c-8.1-5-7.1-20.5-7.1-20.5s.5-5.6 8.1-6.8c2.3-1.3 3.9-4.7 2-6.3z"></path></mask><mask id="artwork__f" fill="#fff"><path d="M15.65 12.32L2.2 10.67C1.06 10.54.26 9.5.4 8.4L1.18 2C1.32.88 2.35.07 3.48.2l13.45 1.66c1.12.13 1.92 1.16 1.8 2.28l-.8 6.4c-.13 1.1-1.16 1.92-2.28 1.78z"></path></mask><mask id="artwork__h" fill="#fff"><path id="artwork__g" d="M2.97.2l12.6 1.55-.3 11.72-15.03-2.1z"></path></mask><mask id="artwork__j" fill="#fff"><path d="M.2.24c10.98 3.92 12.35 11.63 12.35 11.63l-.44.8S3.3 10.34.2.25z"></path></mask><mask id="artwork__l" fill="#fff"><path d="M.17.27S7.42.9 5.7 4.77l-.7.98C1 8.05.16.27.16.27z"></path></mask><mask id="artwork__n" fill="#fff"><path d="M.24.24H6.4S7.14 4.8 3.32 4.8C-.5 4.8.24.24.24.24z" id="artwork__m"></path></mask><mask id="artwork__p" fill="#fff"><circle cx="6.46" cy="6.64" r="6.46"></circle></mask><mask id="artwork__r" fill="#fff"><circle cx="6.46" cy="6.64" r="6.46"></circle></mask><mask id="artwork__t" fill="#fff"><path d="M28 14.83c0 8.06-6.22 14.6-13.9 14.6-7.7 0-13.9-4-13.9-14.6C.2 6.77 6.4.25 14.1.25 21.77.25 28 6.78 28 14.83z"></path></mask><mask id="artwork__v" fill="#fff"><path d="M28 14.83c0 8.06-6.22 14.6-13.9 14.6-7.7 0-13.9-4-13.9-14.6C.2 6.77 6.4.25 14.1.25 21.77.25 28 6.78 28 14.83z"></path></mask><mask id="artwork__x" fill="#fff"><path d="M.55.4l9.95.24s1.64 9.34-2.4 9.6C-1.47 10.54.54.4.54.4z"></path></mask><mask id="artwork__z" fill="#fff"><circle cx="59.77" cy="59.77" r="59.77"></circle></mask><clipPath id="hashtag_landing_page_empty__a"><path class="hashtag_landing_page_empty__cls-1" d="M0 0h200v200H0z"></path></clipPath><clipPath id="hashtag_landing_page_empty_dark_mode__a"><path class="hashtag_landing_page_empty_dark_mode__cls-1" d="M0 0h200v200H0z"></path></clipPath><clipPath id="hashtag_landing_page_error__a"><path class="hashtag_landing_page_error__cls-1" d="M-79.58-79.58h459.2v459.2h-459.2z"></path></clipPath><clipPath id="hashtag_landing_page_error__c"><path class="hashtag_landing_page_error__cls-1" d="M189.2 50.73c-44.7 0-83.94 30.59-90.33 67.34-7.88 45.31 26.77 92.29 78 101.2s101.3-23.34 109.2-68.65-28.76-89.53-80.04-98.45a97.63 97.63 0 00-16.75-1.45"></path></clipPath><clipPath id="hashtag_landing_page_error__b"><path class="hashtag_landing_page_error__cls-1" d="M1.49 219.9L124.8 212l-60.67-41.9z"></path></clipPath><clipPath id="hashtag_landing_page_error_dark_mode__a"><path class="hashtag_landing_page_error_dark_mode__cls-1" d="M-78.75-78.75h457.5v457.5h-457.5z"></path></clipPath><clipPath id="hashtag_landing_page_error_dark_mode__c"><path class="hashtag_landing_page_error_dark_mode__cls-1" d="M99.07 118.2c-7.85 45.15 26.68 92 77.76 100.8s100.9-23.25 108.8-68.39-28.69-89.21-79.78-98.1a98.36 98.36 0 00-16.72-1.44c-44.54 0-83.64 30.48-90 67.09"></path></clipPath><clipPath id="hashtag_landing_page_error_dark_mode__b"><path class="hashtag_landing_page_error_dark_mode__cls-1" d="M2.03 219.7l122.87-7.9L64.45 170z"></path></clipPath><mask id="offline_no_content__b" fill="#fff"><use xlink:href="#offline_no_content__a"></use></mask><mask id="offline_no_content__d" fill="#fff"><use xlink:href="#offline_no_content__c"></use></mask><path id="offline_no_content__a" d="M0 194.555V.675h191.961v193.88z"></path><path d="M.668 18.586C8.545 12.047 15.125 3.19 25.082.49v20.673H.668v-2.577z" id="offline_no_content__c"></path><clipPath id="empty_search__clip-path"><path d="M3.43 126.34H227a29.17 29.17 0 0 0-5.06-24c-4.42-6.11-10-12.51-9.71-28.73s-.4-59.23-20.9-67.3c-28.87-11.37-53.18 18.05-71.57 19s-32.31-9.34-45.87-4.5-11.63 16.68-18.17 19.83-20.58.73-25.18 13.8S34.06 77.8 25 83.73c-8.82 5.75-27.62 9.32-21.57 42.61z" fill="none"></path></clipPath><clipPath id="chrome_icon__b"><use overflow="visible" xlink:href="#chrome_icon__a"></use></clipPath><clipPath id="chrome_icon__f"><use overflow="visible" xlink:href="#chrome_icon__e"></use></clipPath><clipPath id="chrome_icon__j"><use overflow="visible" xlink:href="#chrome_icon__i"></use></clipPath><clipPath id="chrome_icon__n"><use overflow="visible" xlink:href="#chrome_icon__m"></use></clipPath><linearGradient id="chrome_icon__c" x1="29.337" x2="81.837" y1="75.021" y2="44.354" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#a52714" stop-opacity=".6"></stop><stop offset=".66" stop-color="#a52714" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__d" x1="110.872" x2="52.538" y1="164.495" y2="130.329" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#055524" stop-opacity=".4"></stop><stop offset=".33" stop-color="#055524" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__g" x1="121.858" x2="136.547" y1="49.804" y2="114.13" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ea6100" stop-opacity=".3"></stop><stop offset=".66" stop-color="#ea6100" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__h" x1="121.858" x2="136.547" y1="49.804" y2="114.13" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ea6100" stop-opacity=".3"></stop><stop offset=".66" stop-color="#ea6100" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__k" x1="29.337" x2="81.837" y1="75.021" y2="44.354" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#a52714" stop-opacity=".6"></stop><stop offset=".66" stop-color="#a52714" stop-opacity="0"></stop></linearGradient><radialGradient id="chrome_icon__l" cx="668.176" cy="55.948" r="84.078" gradientTransform="translate(-576)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#3e2723" stop-opacity=".2"></stop><stop offset="1" stop-color="#3e2723" stop-opacity="0"></stop></radialGradient><linearGradient id="chrome_icon__o" x1="110.872" x2="52.538" y1="164.495" y2="130.329" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#055524" stop-opacity=".4"></stop><stop offset=".33" stop-color="#055524" stop-opacity="0"></stop></linearGradient><radialGradient id="chrome_icon__p" cx="597.875" cy="48.52" r="78.044" gradientTransform="translate(-576)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#3e2723" stop-opacity=".2"></stop><stop offset="1" stop-color="#3e2723" stop-opacity="0"></stop></radialGradient><radialGradient id="chrome_icon__q" cx="671.844" cy="96.138" r="87.87" gradientTransform="translate(-576)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#263238" stop-opacity=".2"></stop><stop offset="1" stop-color="#263238" stop-opacity="0"></stop></radialGradient><radialGradient id="chrome_icon__r" cx="34.286" cy="32.014" r="176.746" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff" stop-opacity=".1"></stop><stop offset="1" stop-color="#fff" stop-opacity="0"></stop></radialGradient><circle id="chrome_icon__a" cx="96" cy="96" r="88"></circle><path id="chrome_icon__e" d="M8 184h83.77l38.88-38.88V116H61.36L8 24.48z"></path><path id="chrome_icon__i" d="M96 56l34.65 60-38.88 68H184V56z"></path><path id="chrome_icon__m" d="M21.97 8v40.34L61.36 116 96 56h88V8z"></path><circle id="ring__dot" cx="4" cy="4" r="2"></circle><linearGradient id="premium_standalone_cairo__paint0_linear_6125_21625" x1="2" y1="22" x2="22" y2="2" gradientUnits="userSpaceOnUse"><stop offset="0.3" stop-color="#E1002D"></stop><stop offset="0.9" stop-color="#E01378"></stop></linearGradient></defs></svg><iron-iconset-svg name="backstage"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="hashtag-landing-page"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="live-chat-badges" size="16"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="miniplayer" size="24"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="offline-no-content"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="promo-full-height"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="rotten-tomatoes" size="13"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="settings"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="shorts" size="32"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="spinners" size="22"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-icons" rtl-mirroring="" size="24" use-global-rtl-attribute=""><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-logos"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons" rtl-mirroring="" size="24" use-global-rtl-attribute=""><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons12" rtl-mirroring="" size="12"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons13" rtl-mirroring="" size="13"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons15" rtl-mirroring="" size="15"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons16" rtl-mirroring="" size="16"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons18" rtl-mirroring="" size="18"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons20" rtl-mirroring="" size="20"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons36" rtl-mirroring="" size="36"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons48" rtl-mirroring="" size="48"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="ytcp-icons" size="24"><svg><defs></defs></svg></iron-iconset-svg>');
pqY=u}u=pqY;y.call(R,u.content)};
document.body?tWi():window.addEventListener("DOMContentLoaded",tWi);var cfb,aug=function(){return cfb!==void 0?cfb:cfb=document.createElement("template")};
document.head.appendChild(aug().content);var SVw,YVV=function(){return SVw!==void 0?SVw:SVw=document.createElement("template")};
document.head.appendChild(YVV().content);var LSw;_.Ti=new _.Jx("KEY_MANAGER_TOKEN");var LYS={duration:1E3,easing:"ease",fill:"forwards"};_.Qn(YdP);var ziL={duration:1E3,easing:"ease",fill:"forwards"},gPT=_.Jd(function(R){var y=_.sh("animated-rolling-character"),u=void 0,v=function(){var Q,M;return Rk((Q=R.character)==null?void 0:Q.call(R))||Rk((M=R.previousCharacter)==null?void 0:M.call(R))};
_.ny(function(){if(R.marginMultiplier()){var Q;(Q=u)==null||Q.cancel();if(v()){var M;Q=((M=R.previousCharacter)==null?0:M.call(R))?Number(R.previousCharacter())+10:R.rollUp()?0:30;var K;if((K=R.shouldAnimate)==null||!K.call(R)){var h,b;Q-=s6S((h=R.character)==null?void 0:h.call(R),(b=R.previousCharacter)==null?void 0:b.call(R),R.rollUp(),Q)}}else{Q=R.rollUp()?0:2;var N;(N=R.shouldAnimate)!=null&&N.call(R)||(M=Q,K=R.rollUp()?-1:1,Q=M-K)}y.value.style.marginTop="-"+Q*R.marginMultiplier()+"px";var T;
if((T=R.shouldAnimate)==null?0:T.call(R)){var x,B;u=gfW(y.value,(x=R.character)==null?void 0:x.call(R),(B=R.previousCharacter)==null?void 0:B.call(R),R.rollUp(),Q,v(),R.marginMultiplier())}else{var l;y.value.style.display=((l=R.character)==null?0:l.call(R))?"":"none"}}},"vt9b9b");
return _.F("animated-rolling-character",{el:y,class:"animated-rolling-character-wiz"},_.F(_.w,{cond:v,then:function(){return _.F(s$8,null)},
else:function(){return _.F(z1Y,{character:R.character})}}))},"k");
gPT.idomCompat=!0;var CFW=_.f("web_enable_sink_animated_rolling_character_and_number")?gPT:YdP,C6g=_.f("web_enable_sink_animated_rolling_character_and_number")?gPT:_.H_(YdP),s$8=_.Jd(function(){for(var R=[],y=1;y<30;y++)R.push(_.F("div",null,y%10));return _.F(_.vu,null,_.F("div",null,"\u00a0"),R,_.F("div",null,"\u00a0"))},"l"),z1Y=_.Jd(function(R){var y=R.character;
return _.F(_.vu,null,_.F("div",null,"\u00a0"),_.F(_.w,{cond:function(){return!(y==null?0:y())||_.iO(y==null?void 0:y())},
then:function(){return _.F("div",null,"\u00a0")},
else:function(){return _.F("div",null,y)}}),_.F("div",null,"\u00a0"))},"m");_.Qn(Rnz);var Rd5=_.Jd(function(R){var y=void 0,u=void 0,v=function(){var M;return((M=R.fontSizeMultiplier)==null?0:M.call(R))?R.heightPx()*R.fontSizeMultiplier():R.heightPx()},Q=_.N8(function(){if(!R.numberText())return[];
var M,K,h=((M=R.forceRollUp)==null?void 0:M.call(R))||!u||!((K=R.numberValue)==null?0:K.call(R))||u<R.numberValue(),b,N=R.numberText();M=v();K=!((b=R.shouldAnimate)==null||!b.call(R));b=[];var T=0,x=0,B=(y?y.replace(/\D/g,"").length:0)-(N?N.replace(/\D/g,"").length:0),l=y?y.split(/(\d)/).filter(Boolean):[];for(N=N.split(/(\d)/).filter(Boolean);B<0;){var Z=N[x];b.push({character:Z,rollUp:h,marginMultiplier:M,shouldAnimate:K});x++;Rk(Z)&&B++}for(;T<B;)Z=l[T],b.push({previousCharacter:Z,rollUp:h,marginMultiplier:M,
shouldAnimate:K}),T++,Rk(Z)||B++;for(;x<N.length;)B=N[x],Z=l[T],Rk(B)===Rk(Z)?(x++,T++):Rk(B)?(T++,B=void 0):Rk(Z)&&(x++,Z=void 0),b.push({character:B,previousCharacter:Z,rollUp:h,marginMultiplier:M,shouldAnimate:K});y=R.numberText();var P;u=(P=R.numberValue)==null?void 0:P.call(R);return b},void 0,"B9AmNd");
return _.F("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:function(){return R.numberText()?["height: "+v()+"px;","line-height: "+R.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.F(_.eS,{each:Q,keyBy:"INDEX"},function(M){return _.F(C6g,{character:function(){return M().character},
previousCharacter:function(){return M().previousCharacter},
marginMultiplier:function(){return M().marginMultiplier},
rollUp:function(){return M().rollUp},
shouldAnimate:function(){return M().shouldAnimate}})}))},"n");
Rd5.idomCompat=!0;_.odW=_.f("web_enable_sink_animated_rolling_character_and_number")?Rd5:Rnz;_.ymG=_.f("web_enable_sink_animated_rolling_character_and_number")?Rd5:_.H_(Rnz);var y58={click:"EVENT_SPAN_TYPE_CLICK",dblclick:"EVENT_SPAN_TYPE_DBLCLICK",mousedown:"EVENT_SPAN_TYPE_MOUSEDOWN",mouseup:"EVENT_SPAN_TYPE_MOUSEUP",mouseover:"EVENT_SPAN_TYPE_MOUSEOVER",mouseout:"EVENT_SPAN_TYPE_MOUSEOUT",mouseenter:"EVENT_SPAN_TYPE_MOUSEENTER",mouseleave:"EVENT_SPAN_TYPE_MOUSELEAVE",mousemove:"EVENT_SPAN_TYPE_MOUSEMOVE",contextmenu:"EVENT_SPAN_TYPE_CONTEXTMENU",keydown:"EVENT_SPAN_TYPE_KEYDOWN",keyup:"EVENT_SPAN_TYPE_KEYUP",keypress:"EVENT_SPAN_TYPE_KEYPRESS",touchstart:"EVENT_SPAN_TYPE_TOUCHSTART",
touchend:"EVENT_SPAN_TYPE_TOUCHEND",touchmove:"EVENT_SPAN_TYPE_TOUCHMOVE",touchcancel:"EVENT_SPAN_TYPE_TOUCHCANCEL",pointerdown:"EVENT_SPAN_TYPE_POINTERDOWN",pointerup:"EVENT_SPAN_TYPE_POINTERUP",pointermove:"EVENT_SPAN_TYPE_POINTERMOVE",pointerover:"EVENT_SPAN_TYPE_POINTEROVER",pointerout:"EVENT_SPAN_TYPE_POINTEROUT",pointerenter:"EVENT_SPAN_TYPE_POINTERENTER",pointerleave:"EVENT_SPAN_TYPE_POINTERLEAVE",pointercancel:"EVENT_SPAN_TYPE_POINTERCANCEL",gotpointercapture:"EVENT_SPAN_TYPE_GOTPOINTERCAPTURE",
lostpointercapture:"EVENT_SPAN_TYPE_LOSTPOINTERCAPTURE",submit:"EVENT_SPAN_TYPE_SUBMIT",change:"EVENT_SPAN_TYPE_CHANGE",input:"EVENT_SPAN_TYPE_INPUT",focus:"EVENT_SPAN_TYPE_FOCUS",blur:"EVENT_SPAN_TYPE_BLUR",reset:"EVENT_SPAN_TYPE_RESET",select:"EVENT_SPAN_TYPE_SELECT",invalid:"EVENT_SPAN_TYPE_INVALID",load:"EVENT_SPAN_TYPE_LOAD",unload:"EVENT_SPAN_TYPE_UNLOAD",beforeunload:"EVENT_SPAN_TYPE_BEFOREUNLOAD",domcontentloaded:"EVENT_SPAN_TYPE_DOMCONTENTLOADED",resize:"EVENT_SPAN_TYPE_RESIZE",scroll:"EVENT_SPAN_TYPE_SCROLL",
pageshow:"EVENT_SPAN_TYPE_PAGESHOW",pagehide:"EVENT_SPAN_TYPE_PAGEHIDE",play:"EVENT_SPAN_TYPE_PLAY",pause:"EVENT_SPAN_TYPE_PAUSE",playing:"EVENT_SPAN_TYPE_PLAYING",waiting:"EVENT_SPAN_TYPE_WAITING",seeking:"EVENT_SPAN_TYPE_SEEKING",seeked:"EVENT_SPAN_TYPE_SEEKED",ended:"EVENT_SPAN_TYPE_ENDED",volumechange:"EVENT_SPAN_TYPE_VOLUMECHANGE",timeupdate:"EVENT_SPAN_TYPE_TIMEUPDATE",ratechange:"EVENT_SPAN_TYPE_RATECHANGE",dragstart:"EVENT_SPAN_TYPE_DRAGSTART",drag:"EVENT_SPAN_TYPE_DRAG",dragend:"EVENT_SPAN_TYPE_DRAGEND",
dragenter:"EVENT_SPAN_TYPE_DRAGENTER",dragleave:"EVENT_SPAN_TYPE_DRAGLEAVE",dragover:"EVENT_SPAN_TYPE_DRAGOVER",drop:"EVENT_SPAN_TYPE_DROP",animationstart:"EVENT_SPAN_TYPE_ANIMATIONSTART",animationend:"EVENT_SPAN_TYPE_ANIMATIONEND",animationiteration:"EVENT_SPAN_TYPE_ANIMATIONITERATION",transitionrun:"EVENT_SPAN_TYPE_TRANSITIONRUN",transitionstart:"EVENT_SPAN_TYPE_TRANSITIONSTART",transitionend:"EVENT_SPAN_TYPE_TRANSITIONEND",transitioncancel:"EVENT_SPAN_TYPE_TRANSITIONCANCEL"};_.zw=_.Jd(function(R){var y=_.sh("a",R.ref),u=R.aTagConfig?R.aTagConfig:_.N8(function(){var v,Q,M,K,h;var b=(h=_.Sb((M=R.command)==null?void 0:M.call(R)))!=null?h:(K=R.command)==null?void 0:K.call(R);return _.Lk({innertubeCommand:b,skipOnClick:(v=R.skipOnClick)==null?void 0:v.call(R),defaultTarget:(Q=R.target)==null?void 0:Q.call(R)})||{}},void 0,"I5WLmc");
_.ny(function(){y.value._data=u()._data;y.value.params=u().params},"STb8Se");
return _.F("a",{el:y,href:function(){return u().href$},
rel:function(){return u().rel$},
class:function(){var v,Q;return(Q=u().className)!=null?Q:(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 Q;return((Q=R.disabled)==null?0:Q.call(R))?"pointer-events:none":""},
"aria-haspopup":function(){return!!u()["aria-haspopup$"]},
"force-new-state":G3(function(){return u()["force-new-state$"]}),
title:G3(function(){var v,Q;return(Q=u().title$)!=null?Q:(v=R.title)==null?void 0:v.call(R)}),
role:G3(function(){var v;return((v=R.role)==null?void 0:v.call(R))||u().role$}),
target:G3(function(){return u().target$}),
dir:G3(function(){var v;return((v=R.dir)==null?void 0:v.call(R))||u().dir}),
tabindex:function(){var v;return u().tabindex$?Number(u().tabindex$):(v=R.tabIndex)==null?void 0:v.call(R)},
"aria-hidden":function(){var v,Q;return(Q=u()["aria-hidden$"])!=null?Q:(v=R.ariaHidden)==null?void 0:v.call(R)},
"aria-label":function(){var v,Q;return(Q=u()["aria-label$"])!=null?Q:(v=R.ariaLabel)==null?void 0:v.call(R)},
"aria-current":R.ariaCurrent,"aria-disabled":R.disabled,"aria-labelledby":R.ariaLabelledby,"aria-describedby":R.ariaDescribedby,"aria-selected":R.ariaSelected,"tab-identifier":R.tabIdentifier,"on:pointerdown":_.nh(function(v){var Q,M;return void((M=(Q=u()).onpointerdown)==null?void 0:M.call(Q,v))}),
"on:click":_.nh(function(v){var Q,M;(M=(Q=u()).onclick)==null||M.call(Q,v);var K;(K=R.onClick)==null||K.call(R,v)}),
"on:focusin":_.nh(function(v){var Q;(Q=R.onFocusin)==null||Q.call(R,v)}),
"on:focusout":_.nh(function(v){var Q;(Q=R.onFocusout)==null||Q.call(R,v)})},R.children)},"o");var u_Y=function(R,y){this.fillAnimation=new Animation(j0O(R),document.timeline);this.strokeAnimation=new Animation(M44(y),document.timeline)};
u_Y.prototype.play=function(){var R,y;(y=(R=this.fillAnimation).play)==null||y.call(R);var u,v;(v=(u=this.strokeAnimation).play)==null||v.call(u)};
u_Y.prototype.cancel=function(){var R,y;(y=(R=this.fillAnimation).cancel)==null||y.call(R);var u,v;(v=(u=this.strokeAnimation).cancel)==null||v.call(u)};_.k6=_.Jd(function(R){var y=R.model;var u=R.pointerDownEvent;var v=R.pointerUpEvent;var Q=R.pointerLeaveEvent;R=_.sh("div");var M=_.P_({"border-radius":function(){return y().borderRadius}}),K=_.sh("div"),h=_.sh("div"),b=_.V(_.rW(function(){return(v==null?0:v())||(Q==null?0:Q())?!1:!(u==null||!u())||!1})),N=b.next().value,T=b.next().value,x=void 0,B=function(){!x&&h.value&&K.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(x=new u_Y(h.value,K.value));
var D;(D=x)==null||D.play()},l=function(){var D;
(D=x)==null||D.cancel()},Z=function(){var D;
(D=x)==null||D.cancel()};
_.ny(function(){(v==null?0:v())&&B()},"YjVIpd");
_.ny(function(){(u==null?0:u())&&l()},"UrXvqb");
_.ny(function(){(Q==null?0:Q())&&Z()},"QK6L8b");
b=_.nh(function(){B();T(!1)});
var P=_.nh(function(){l();T(!0)}),k=_.nh(function(){Z();
T(!1)});
_.GF(function(){if(x){var D;(D=x)==null||D.cancel();x=void 0}});
var E={};N=_.Oy("yt-spec-touch-feedback-shape",function(){return J5T(y().color)},(E["yt-spec-touch-feedback-shape--focused"]=function(){return!!y().focused&&!y().disabled},E["yt-spec-touch-feedback-shape--circular"]=function(){return!!y().circular},E["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!y().isExtended},E["yt-spec-touch-feedback-shape--down"]=N,E["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!y().triggerEvents},E));
return _.F("yt-touch-feedback-shape",{style:_.P_({"border-radius":"inherit"})},_.F("div",{el:R,class:N,style:_.P_({"margin-top":function(){return y().customTopExtend?"-"+y().customTopExtend+"px":void 0}}),
"on:mousedown":P,"on:mouseup":b,"on:pointerleave":k,"on:touchstart":P,"on:touchend":b,"aria-hidden":!0},_.F("div",{class:"yt-spec-touch-feedback-shape__stroke",style:M,el:K}),_.F("div",{class:"yt-spec-touch-feedback-shape__fill",style:M,el:h})))},"p");
_.k6.idomCompat=!0;var veG={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 oJ=_.NU();oJ=oJ.toLowerCase();if(_.K8(oJ,"android")){var Q78=oJ.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);Q78&&parseFloat(Q78[1])<100||oJ.match("("+Object.keys(veG).join("|")+")")};var j7c=_.Jd(function(R){return _.F(_.w,{cond:R.aTagConfig,then:function(y){return _.F(_.zw,{aTagConfig:y,disabled:R.disabled,className:R.className,style:R.style,title:R.title,ariaLabel:R.ariaLabel,ariaCurrent:function(){var u,v;return((u=R.toggleable)==null?void 0:u.call(R))&&((v=R.toggled)==null?void 0:v.call(R))},
ref:R.ref},R.children)},
else:function(){return _.F("button",{el:_.VX(R.ref),"on:click":_.nh(function(y){var u;return(u=R.onClick)==null?void 0:u.call(R,y)}),
class:R.className,title:R.title,style:R.style,disabled:R.disabled,"aria-pressed":function(){var y,u;return((y=R.toggleable)==null?0:y.call(R))?!((u=R.toggled)==null||!u.call(R)):void 0},
"aria-label":R.ariaLabel,"aria-disabled":R.visiblyDisabled,"aria-hidden":R.ariaHidden,tabindex:R.tabIndex},R.children)}})},"q"),JmT=_.Jd(function(R){var y=R.data;
var u=R.hasIconLeading;var v=R.hasIconLeadingTrailing;var Q=R.hasIconTrailing;var M=R.iconButton;var K=R.iconClassName;var h=R.secondaryIconClassName;var b=R.icon;var N=R.secondaryIcon;var T=R.textContentClassName;return _.F(x1,{className:"",style:"display: inherit; justify-content: center"},_.F(_.w,{debugInstance:"V4z1Uc",cond:function(){return b&&(u()||v()||(M==null?void 0:M()))},
then:function(){return _.F(x1,null,_.F("div",{class:K,"aria-hidden":"true"},b==null?void 0:b()))}}),_.F(_.w,{debugInstance:"ok3btb",
cond:function(){return(y().buttonText||y().animatedTextProps||y().formattedButtonText)&&!(M==null?0:M())},
then:function(){return _.F(x1,null,_.F(MMg,{className:T,iconPosition:function(){return y().iconPosition},
text:function(){return y().buttonText},
oneOffCustomTextWrap:function(){return y().oneOffCustomTextWrap},
formattedButtonText:function(){return y().formattedButtonText},
animatedTextProps:function(){return y().animatedTextProps}}))}}),_.F(_.w,{debugInstance:"DO5Rz",
cond:Q,then:function(){return _.F(x1,null,_.F("div",{class:K},b==null?void 0:b()))}}),_.F(_.w,{debugInstance:"bnojSc",
cond:v,then:function(){return _.F(x1,null,_.F("div",{class:h},N==null?void 0:N()))}}),_.F(_.w,{debugInstance:"HN3kad",
cond:function(){return!y().disabled&&!0},
then:function(){return _.F(_.k6,{model:function(){return{color:hnv(y())}}})}}))},"r"),MMg=_.Jd(function(R){var y=function(){var u,v;
return((u=R.iconPosition)==null?void 0:u.call(R))==="icon-with-label"||((v=R.oneOffCustomTextWrap)==null?void 0:v.call(R))};
return _.F("div",{class:R.className,"aria-hidden":function(){var u,v,Q;return((u=R.ariaHidden)==null?void 0:u.call(R))&&(!((v=R.animatedTextProps)==null||!v.call(R))||!((Q=R.formattedButtonText)==null||!Q.call(R)))}},_.F(_.Z6,null,_.F(_.lr,{when:function(){var u;
return(u=R.animatedTextProps)==null?void 0:u.call(R)}},function(){return _.F(_.ymG,{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}})}),_.F(_.lr,{when:function(){var u;
return(u=R.formattedButtonText)==null?void 0:u.call(R)}},function(){return _.F(_.QM,{text:function(){return Object.assign({},R.formattedButtonText(),{lineBreakMode:y()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":R.formattedButtonText().lineBreakMode,
alignment:y()?"TEXT_ALIGNMENT_CENTER":R.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!y()}})}),_.F(_.lr,{when:function(){var u,v;
return((u=R.iconPosition)==null?void 0:u.call(R))==="icon-with-label"&&((v=R.text)==null?void 0:v.call(R))}},function(){return _.F(_.QM,{text:function(){return{content:R.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.F(_.OB,null,function(){return R.text})))},"s"),VMT=_.Jd(function(R){return _.F(_.w,{debugInstance:"kM7Sgc",
cond:R.hasLabel,then:function(){var y;return _.F("label",{class:R.className},R.children,(y=R.textContent)==null?void 0:y.call(R))},
else:function(){return R.children}})},"t"),x1=_.Jd(function(R){return R.children},"u");var M8P=Rn("stamper-context");var i4g=_.Jd(function(R){var y=_.VX(),u=_.V(_.In(void 0,void 0,"mJRpO")),v=u.next().value,Q=u.next().value;u=_.V(_.In(0,void 0,"WjR7id"));var M=u.next().value,K=u.next().value;u=_.N8(function(){return M()===3?"ytPopoverComponentClosing":""},void 0,"Q5p3Jf");
var h=_.nh(function(){switch(M()){case 1:K(2);break;case 3:var b,N;(N=(b=y.value).hidePopover)==null||N.call(b);K(0);Q(void 0)}});
_.ny(function(){if(R.show()){var b;Q((b=R.children)==null?void 0:b.call(R));switch(M()){case 0:var N,T;(T=(N=y.value).showPopover)==null||T.call(N);K(1);break;case 3:K(1);var x,B;(B=(x=y.value).hidePopover)==null||B.call(x);var l,Z;(Z=(l=y.value).showPopover)==null||Z.call(l)}}else switch(M()){case 2:K(3);break;case 1:var P,k;(k=(P=y.value).hidePopover)==null||k.call(P);Q(void 0);K(0)}},"KPIIob");
_.rB(function(){});
return _.F("yt-popover",{popover:"manual",el:y,class:_.Oy("ytPopoverComponentHost",u,R.classNames),"on:animationend":h},v)},"v");var KCw=function(){var R=_.V(_.In(void 0,void 0,"X7d4l"));this.state=R.next().value;this.setState=R.next().value;R=_.V(_.In(void 0,void 0,"CfI23e"));this.schedulerJobID=R.next().value;this.setSchedulerJobID=R.next().value},Hev=function(R,y){var u=ZeP,v=_.WG.addJob(function(){u.setState({text:y.text,
location:y.location,anchor:R,offset:y.offset})},4,y.delay);
u.setSchedulerJobID(v)},ndT=function(){var R=ZeP,y=R.schedulerJobID();
y&&(_.WG.cancelJob(y),R.setSchedulerJobID(void 0));R.setState(void 0)};
KCw.prototype.notify=function(R,y){var u;((u=this.state())==null?void 0:u.anchor)===R&&this.setState({text:y.text,location:y.location,anchor:R,offset:y.offset})};var ZeP;ZeP=new KCw;_.IhV=_.Jd(function(){var R=_.N8(function(){var y;return(y=ZeP.state())==null?void 0:y.text},void 0,"BR51t");
return _.F("yt-tooltip",{class:"ytTooltipContainerHost"},_.F(i4g,{show:function(){return!!R()}},R))},"w");_.j8=_.Jd(function(R){var y=R.data;var u=R.icon;var v=R.iconName;var Q=R.secondaryIcon;var M=R.secondaryIconName;var K=R.focusedOverride;var h=R.clientOnlyWizTooltipsEnabled;_.lb4();var b=V4U(y),N=b.size,T=b.style;R=b.disabled;var x=b.onTap,B=b.alignByText,l=b.aTagConfig,Z=b.customColors,P=b.segmentedPosition,k=b.toggled,E=b.toggleable,D=b.accessibilityLabel,z=b.onToggle,c=b.iconPosition,a=b.oneOffCustomTextWrap,L=b.disableTextEllipsis,QG=b.disableBackdropFilter,hz=b.tooltipText,bO=b.ariaHidden,BW=
b.tabIndex,Zc=b.buttonText,xS=b.formattedButtonText,Dc=b.animatedTextProps,$S=Ib8(y,u,Q,v,M,K),hL=$S.type;u=$S.shouldFocus;v=$S.hasIconLeading;Q=$S.hasIconTrailing;var WK=$S.hasIconLeadingTrailing,JL=$S.hasIconOnly;M=$S.hasIconOnly40;var sP=$S.hasIconWithLabel;K=$S.iconButton;var wg=$S.visiblyDisabled;b=$S.overrideSmallSizeIcon;var bT=$S.iconToRender;$S=$S.secondaryIconToRender;var HK=_.V(GYc(hz)).next().value,Ta={},Sg={};return _.F(VMT,{className:_.Oy("yt-spec-button-shape-with-label",(Ta["yt-spec-button-shape-with-label--is-overlay"]=
function(){return T()==="overlay"||T()==="overlay-dark"},Ta)),
hasLabel:sP,textContent:function(){return _.F(MMg,{text:Zc,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:a,iconPosition:c,formattedButtonText:xS,animatedTextProps:Dc})}},_.F(j7c,{aTagConfig:l,
className:_.Oy("yt-spec-button-shape-next",function(){return FPW(hL())},function(){return wg()?void 0:wLv(T())},function(){return NUv(N())},(Sg["yt-spec-button-shape-next--disabled"]=wg,Sg["yt-spec-button-shape-next--focused"]=u,Sg["yt-spec-button-shape-next--icon-trailing"]=Q,Sg["yt-spec-button-shape-next--icon-leading"]=v,Sg["yt-spec-button-shape-next--icon-leading-trailing"]=WK,Sg["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return WK()&&!(Zc()||xS())},Sg["yt-spec-button-shape-next--icon-button"]=
function(){return JL()||sP()},Sg["yt-spec-button-shape-next--icon-only-default"]=M,Sg["yt-spec-button-shape-next--align-by-text"]=B,Sg["yt-spec-button-shape-next--segmented-start"]=function(){return P()==="start"},Sg["yt-spec-button-shape-next--segmented-end"]=function(){return P()==="end"},Sg["yt-spec-button-shape-next--override-small-size-icon"]=b,Sg["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=a,Sg["yt-spec-button-shape-next--disable-text-ellipsis"]=L,Sg["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!QG()&&beE()},Sg)),
style:function(){return TUv(Z()).style},
onClick:function(MU){x==null||x(MU);E()&&(z==null||z(MU))},
disabled:R,ariaLabel:D,toggleable:E,toggled:k,title:function(){return(h==null?0:h())||!hz()?"":hz()},
visiblyDisabled:wg,ariaHidden:bO,tabIndex:BW,ref:function(MU){(h==null?0:h())&&HK(MU)}},_.F(JmT,{data:y,
hasIconLeading:v,hasIconLeadingTrailing:WK,hasIconTrailing:Q,iconButton:K,icon:bT,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:$S})))},"x");
_.j8.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var hdw=_.Jd(function(R){var y=R.data;var u=R.id;var v=R.className;var Q=R.iconName;var M=R.secondaryIconName;R=_.V(_.In(!1,void 0,"uDRWyd"));var K=R.next().value,h=R.next().value,b=function(){var T=_.ua().resolve(_.yN(_.Ti));T&&h(T.isKeyBoardInUse())},N=function(){h(!1)};
R=_.sh("yt-button-shape",function(T){if(_.ua().resolve(_.yN(_.Ti)))return T.addEventListener("focusin",b),T.addEventListener("focusout",N),function(){T.removeEventListener("focusin",b);T.removeEventListener("focusout",N)}});
return _.F("yt-button-shape",{el:R,id:u,class:v},_.F(_.w,{cond:y,then:function(){return _.F(_.j8,{data:y,iconName:Q,secondaryIconName:M,focusedOverride:K})}}))},"y");
_.f("web_wiz_button_shape")&&_.h6(hdw,"yt-button-shape",{props:{data:_.vR,id:_.vR,className:_.vR,iconName:_.vR,secondaryIconName:_.vR,clientOnlyWizTooltipsEnabled:_.vR},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var BR=function(){var R=_.W.apply(this,arguments)||this;R.keyboardFocused=!1;return R};
_.O(BR,_.W);BR.prototype.onFocus=function(){var R=_.ua().resolve(_.yN(_.Ti));R&&(this.keyboardFocused=R.isKeyBoardInUse())};
BR.prototype.onBlur=function(){this.keyboardFocused=!1};
BR.prototype.renderIdom=function(){var R=this;if(this.data){var y=dW(this.data,!!this.iconName,this.data.ignoreIconSizeOverride),u=KPP(this.data);this.data.focused=this.keyboardFocused;enz(this.data,function(){var v;Ad("yt-icon",{icon:R.iconName,active:(v=R.data)==null?void 0:v.toggled,size:y,style:"width: "+y+"px; height: "+y+"px;",iconFilter:u},Sf)},function(){var v;
Ad("yt-icon",{icon:R.secondaryIconName,active:(v=R.data)==null?void 0:v.toggled,size:y,style:"width: "+y+"px; height: "+y+"px;",iconFilter:u},Sf)});
_.Ko(this.hostElement,"yt-renderidom-finished")}};
_.RR.Object.defineProperties(BR,{template:{configurable:!0,enumerable:!0,get:function(){if(LSw===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);R.content.insertBefore(YVV().content.cloneNode(!0),R.content.firstChild);R.content.insertBefore(aug().content.cloneNode(!0),R.content.firstChild);LSw=R}R=LSw;return R}}});
BR.prototype.onBlur=BR.prototype.onBlur;BR.prototype.onFocus=BR.prototype.onFocus;_.A([_.n(H5T),_.p("design:type",Object)],BR.prototype,"ytIdomTemplatingBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],BR.prototype,"data",void 0);_.A([_.r(),_.p("design:type",String)],BR.prototype,"iconName",void 0);_.A([_.r(),_.p("design:type",String)],BR.prototype,"secondaryIconName",void 0);_.A([_.r(),_.p("design:type",Object)],BR.prototype,"keyboardFocused",void 0);
_.A([_.fu("focusin"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],BR.prototype,"onFocus",null);_.A([_.fu("focusout"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],BR.prototype,"onBlur",null);_.A([_.pu({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.f("web_wiz_button_shape")})],BR);_.h6(_.Jd(function(R){function y(){u().seconds&&M(M5U({seconds:Number(u().seconds)-Date.now()/1E3}))}
var u=R.targetTimestamp;R=R.className;var v=_.V(_.In("",void 0,"U1Q8Ae")),Q=v.next().value,M=v.next().value;_.nG(function(){y();var K=setInterval(function(){y()},1E3);
_.GF(function(){clearInterval(K)})});
return _.F("yt-countdown",{class:_.Oy("ytCountDownHost",R)},_.F("div",null,Q))},"z"),"yt-countdown",{props:{targetTimestamp:_.vR,
className:_.IC}});_.fQ=_.Jd(function(R){var y=R.data;var u=R.className;var v=R.style;var Q=R.useOutlinedIcon;var M=R.buttonOverrides;var K=R.animatedTextProps;var h=R.onClick;var b=R.target;var N=_.sh("button-view-model",function(D){D.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var z=y().targetId;z&&_.U6b(_.Ux(),z,D);return function(){W7g(_.Ux(),D)}}),T=function(){return y().iconName},x,B=(x=_.ua().resolve(_.yN(_.u0)))==null?void 0:x(),l=function(){var D=y();
var z=M==null?void 0:M(),c=K==null?void 0:K(),a=b==null?void 0:b();if(D){var L=UYU(D.type);var QG=!!D.title||!!D.titleFormatted;var hz=!(!D.iconName&&!D.iconImage);QG=hz&&!QG?"icon-only":hz?D.iconTrailing||D.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;QG==="icon-only-40"&&(L="text");var bO,BW=(bO=z==null?void 0:z.disabled)!=null?bO:D.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||D.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";bO=Object;hz=bO.assign;var Zc=D.title,
xS=D.titleFormatted;c=c&&c.numberText&&!isNaN(Number(c.numberValue))?c:void 0;var Dc=D.accessibilityText,$S=dYT(D.style),hL=kYG(D.state),WK=Edz(D.buttonSize);a=WPL(D,N,BW,h,a);BW=BW&&!D.onDisabledTap;var JL=_.Sb(D==null?void 0:D.onTap);var sP={};JL&&(sP.clickedVisualElement=PRT(D,JL));JL=_.Lk({elementsCommand:D.onTap,forceNewState:!0,additionalCommandArgs:sP});JL=s4(JL)?JL:void 0;var wg=D.customFontColor,bT=D.customBackgroundColor;sP=D.customBorderColor;var HK=D.customDarkThemeFontColor,Ta=D.customDarkThemeBackgroundColor,
Sg=D.customDarkThemeBorderColor;wg=B&&HK?HK:wg;bT=B&&Ta?Ta:bT;sP=B&&Sg?Sg:sP;sP={color:wg?_.Sq(wg):void 0,backgroundColor:bT?_.Sq(bT):void 0,borderColor:sP?_.Sq(sP):void 0};D=hz.call(bO,{},{buttonText:Zc,formattedButtonText:xS,animatedTextProps:c,accessibilityLabel:Dc,style:$S,type:L,state:hL,size:WK,iconPosition:QG,onTap:a,disabled:BW,aTagConfig:JL,customColors:sP,tooltipText:D.tooltip},z)}else D={style:"mono",type:"text",state:"active",size:"M"};D.focused=k();return D},Z=function(){return dW(l(),
!!y().iconName)};
R=_.V(_.In(!1,void 0,"bl7g4"));x=R.next().value;var P=R.next().value,k=x;R=_.nh(function(){var D=_.ua().resolve(_.yN(_.Ti));D&&P(D.isKeyBoardInUse());return!1});
x=_.nh(function(){P(!1);return!1});
_.ny(function(){var D,z=_.e(y==null?void 0:(D=y())==null?void 0:D.onVisible,_.ac);z&&_.Yi(z,{disableClickTracking:!0})},"MLqBF");
var E=_.f("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");return _.F("button-view-model",{el:N,class:_.Oy("yt-spec-button-view-model",u),"on:focusin":R,"on:focusout":x},_.F(_.w,{cond:function(){var D;return(y==null?0:(D=y())==null?0:D.iconImage)?{sources:[y().iconImage]}:void 0},
then:function(D){return _.F(_.j8,{data:l,icon:function(){return _.F(_.MR,{data:D,alt:"",targetWidth:Z,targetHeight:Z,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:E})},
else:function(){return _.F(_.j8,{data:l,icon:function(){return _.F(_.W_,{icon:T,active:function(){return(Q==null?0:Q())?!1:l().toggled},
animateIcon:function(){var D;return!!(v==null?0:(D=v())==null?0:D.animateIcon)},
size:Z})},
clientOnlyWizTooltipsEnabled:E})}}))},"A");
_.fQ.idomCompat={callbacks:{onClick:!0}};_.h6(_.Jd(function(R){return _.F("yt-button-view-model",{id:R.id,class:_.Oy(R.scopingClassName,R.classes),icon:function(){var y;return(y=R.icon)==null?void 0:y.call(R)},
"dialog-dismiss":function(){var y;return((y=R.dialogDismiss)==null?0:y.call(R))?"":void 0}},_.F(_.fQ,{data:function(){var y;
return(y=R.data)==null?void 0:y.call(R)},
className:function(){var y;return(y=R.className)==null?void 0:y.call(R)},
style:function(){var y;return(y=R.style)==null?void 0:y.call(R)},
useOutlinedIcon:function(){var y;return(y=R.useOutlinedIcon)==null?void 0:y.call(R)},
buttonOverrides:function(){var y;return(y=R.buttonOverrides)==null?void 0:y.call(R)},
animatedTextProps:function(){var y;return(y=R.animatedTextProps)==null?void 0:y.call(R)},
onClick:function(y){var u;return(u=R.onClick)==null?void 0:u.call(R,y)}}))},"B"),"yt-button-view-model",{props:{data:_.vR,
className:_.vR,style:_.vR,useOutlinedIcon:_.vR,buttonOverrides:_.vR,animatedTextProps:_.vR,onClick:_.IC,scopingClassName:_.vR,id:_.vR,icon:_.vR,dialogDismiss:_.vR,classes:_.vR,target:_.IC}});var eu=function(){var R=_.W.apply(this,arguments)||this;R.isGoalActive=!0;return R};
_.O(eu,_.W);eu.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
eu.prototype.progressBarChanged=function(){var R=_.hw(this.hostElement).querySelector("#progress-bar-progress"),y,u,v,Q=(v=Number((y=this.creatorGoalState)==null?void 0:y.currentGoalCount)/Number((u=this.creatorGoalState)==null?void 0:u.totalGoalCount)*100)!=null?v:0,M;R.style.width=((M=Math.min(Q,100))!=null?M:0)+"%"};
eu.prototype.goalStateChanged=function(){var R;this.isGoalActive=((R=this.creatorGoalState)==null?void 0:R.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var y;R={"--yt-progress-bar-color":YHU((y=this.creatorGoalState)==null?void 0:y.progressBarColor)};_.oX(this.hostElement,R)};
eu.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.RR.Object.defineProperties(eu.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 y;R=Number((y=this.creatorGoalState)==null?void 0:y.endTimestampMs)/1E3;return{seconds:String(R)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.creatorGoalState)==null?0:R.themedTargetImage){var y;R=_.e((y=this.creatorGoalState)==null?void 0:y.themedTargetImage,sJ5);return this.isAppDarkTheme()?R==null?void 0:R.imageDark:R==null?void 0:R.imageLight}}}});
_.RR.Object.defineProperties(eu,{template:{configurable:!0,enumerable:!0,get:function(){return ZrV()}}});
eu.prototype.goalStateChanged=eu.prototype.goalStateChanged;eu.prototype.progressBarChanged=eu.prototype.progressBarChanged;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],eu.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.YX),_.p("design:type",Object)],eu.prototype,"ytLiveChatReduxBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],eu.prototype,"ytRendererBehavior",void 0);
_.A([_.r({selectorArgs:["data.creatorGoalEntityKey"],selector:function(R,y){return _.TI(R.entities,"creatorGoalEntity",y)}}),
_.p("design:type",Object)],eu.prototype,"creatorGoalState",void 0);_.A([_.r(),_.p("design:type",Object)],eu.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],eu.prototype,"isGoalActive",void 0);_.A([_.G("creatorGoalState","isGoalActive"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],eu.prototype,"shouldShowCountdown",null);_.A([_.G("creatorGoalState"),_.p("design:type",Object),_.p("design:paramtypes",[])],eu.prototype,"endTimestamp",null);
_.A([_.G("creatorGoalState"),_.p("design:type",Object),_.p("design:paramtypes",[])],eu.prototype,"targetIconThemedImage",null);_.A([_.e0("creatorGoalState.currentGoalCount"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],eu.prototype,"progressBarChanged",null);_.A([_.e0("creatorGoalState.creatorGoalState"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],eu.prototype,"goalStateChanged",null);
_.A([_.pu({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],eu);_.m(eu,"yt-creator-goal-progress-flow-view-model",function(){return ZrV()},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var b4Y;var FCG;var lW=function(){return _.W.apply(this,arguments)||this};
_.O(lW,_.W);lW.prototype.attached=function(){var R,y,u;if(this==null?0:(R=this.data)==null?0:(y=R.pdgPurchasedBumperLoggingDirectives)==null?0:(u=y.loggingDirectives)==null?0:u.trackingParams){var v,Q,M;XL4(this==null?void 0:(v=this.data)==null?void 0:(Q=v.pdgPurchasedBumperLoggingDirectives)==null?void 0:(M=Q.loggingDirectives)==null?void 0:M.trackingParams)}};
lW.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],lW.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],lW.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],lW.prototype,"data",void 0);_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],lW);
_.m(lW,"yt-live-chat-item-bumper-view-model",function(){if(FCG===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;b4Y===void 0&&(b4Y=document.createElement("template"));var v=b4Y;u.call(y,v.content.cloneNode(!0),R.content.firstChild);FCG=R}R=FCG;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var wpw;var NdV;_.Mp=function(R,y){this.data=R;this.actions=y;this.data=R;this.actions=y};
_.z3=function(){};_.Oj={};_.Oj.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(R,y){mYP(this.hostElement,R,y)},
getNavigationEndpointPopupAction:function(R){return A5O(R,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(R,y){DYE(this.hostElement,R,y,this.openPopupConfig)}};var gd8=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.ZL={};
_.ZL.YtEndpointBehavior=[_.Oj.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.EB("openPopupConfig");(this.useClickHandler=_.$B("useClickHandler",!1))?this.hostElement.addEventListener("click",xJ(this,this.onEndpointClick_)):(kk(this.hostElement,"tap",xJ(this,this.onEndpointTap_)),kk(this.hostElement,"touchend",xJ(this,this.onEndpointTouchEnd_)));kk(this.hostElement,"touchstart",xJ(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
xJ(this,this.onEndpointTapStart_))},
onEndpointClick_:function(R){c5W(this.hostElement,R,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(R){var y=this.hostElement,u=this.openPopupConfig,v=this.disableCommandHandlerOverride;v=v===void 0?!1:v;var Q=pLG(R);if(Q){Q.href&&sZ(Q.href);var M=R.detail;var K=M.sourceEvent;M=M.preventer;K=K.button!==void 0?K.button===0&&!qR(K):M?!qR(M):!0;Q.data&&K&&t4T(y,Q,R,u,v)}},
onEndpointTouchEnd_:function(R){qR(R)||pLG(R)&&R.preventDefault()},
onEndpointTapStart_:function(R){s0E(R)}}];var CRz="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),y98=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var Tdc={};Tdc.YtPlaintextBehavior=[_.Gh,{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){_.BQ&&(R=R.detail.keyboardEvent,R.stopImmediatePropagation(),R.preventDefault())}}];var oeY;var x0b;var HR=function(){var R=_.W.apply(this,arguments)||this;R.ignoreShadyDom=!1;R.hasChange_=!1;R.hasSetTitle_=!1;R.useIOObserverForVisibilityLogging_=_.f("kevlar_use_vimio_behavior")&&_.EB("INNERTUBE_CLIENT_NAME")==="WEB";R.ytFormattedStringObserverHandlerKeys_=void 0;return R};
_.O(HR,_.W);_.J=HR.prototype;_.J.created=function(){this.useIOObserverForVisibilityLogging_=_.f("kevlar_use_vimio_behavior")&&_.EB("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.J.ready=function(){_.EB("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_()};
_.J.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.J.detached=function(){this.unobserveIOObservers_()};
_.J.clearContents_=function(){for(var R=this.getRoot(),y=R.lastChild;y&&y.tagName!=="STYLE";){try{R.removeChild(y)}catch(u){break}y=R.lastChild}};
_.J.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var R=_.V(this.ytFormattedStringObserverHandlerKeys_),y=R.next();!y.done;y=R.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(y.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.J.resetForAttributedString=function(){var R=this.getRoot();!R.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),R.appendChild(this.ytAttributedStringElementRef))};
_.J.resetForFormattedString=function(){var R=this.getRoot(),y=R.querySelector("yt-attributed-string");y&&(this.ytAttributedStringElementRef=R.removeChild(y))};
_.J.textChanged=function(){this.textChanged_(this.text)};
_.J.textChanged_=function(R){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!R||!R.runs&&!R.simpleText;if(_.f("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var y=this.hostElement.firstChild;y&&y.nodeName==="FONT";){var u=y;y=y.nextSibling;this.hostElement.removeChild(u)}y=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
u=R.simpleText;var v;!u&&((v=R.runs)==null?void 0:v.length)===1&&this.isSimpleString_(R.runs[0])&&(u=R.runs[0].text);u!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.EB("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(u!==void 0){try{y.textContent=u}catch(Q){}y.textContent||(this.isEmpty=!0)}else R=R.runs,u!==void 0&&(R=[{text:u}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),R&&this.updateText_(R),
y.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.J.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)};
_.J.computeAriaLabel_=function(R){return R};
_.J.computeEllipsisTruncateStyling=function(R,y){return R&&!y};
_.J.computeUseAttributedString=function(R){return _.f("web_replace_formatted_with_attributed_string")&&KSc(R)&&!this.disableAttributedString&&!this.enableContentEditable};
_.J.setNodeStyle_=function(R,y){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.f("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?y.removeAttribute("dir"):y.setAttribute("dir","auto");y.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");y.style.color="";var u=null;this.noStyles||(R.bold&&(y.classList.add("bold"),u="bold"),R.deemphasize&&(y.classList.add("deemphasize"),u="deemphasize"),R.italics&&y.classList.add("italic"),
R.strikethrough&&y.classList.add("strikethrough"),R.errorUnderline&&(y.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),R.bracket&&y.classList.add("bracket"),R.textColor&&(y.style.color=_.aH(R.textColor)));u!==y.getAttribute("style-target")&&(u?y.setAttribute("style-target",u):y.removeAttribute("style-target"))};
_.J.setUpVisibilityLogging_=function(R,y){var u=this;this.setNodeTrackingParams_(R,y);var v;((v=y.data)==null?0:v.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(R=this.ytRendererBehavior.visibilityObserver.observe(y,function(Q){var M=u.ytRendererBehavior.getVisibilityLogger();M&&M.reportShown(Q)},this.ytRendererBehavior.visibilityOptionVisible_),y=this.ytRendererBehavior.visibilityObserver.observe(y,function(Q){var M=u.ytRendererBehavior.getVisibilityLogger();
M&&M.reportHidden(Q)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(R),this.ytFormattedStringObserverHandlerKeys_.push(y))};
_.J.setNodeTrackingParams_=function(R,y){y.data||(y.data={});if((R=R.loggingDirectives?R.loggingDirectives.trackingParams:null)||y.data.trackingParams)y.data.trackingParams=R};
_.J.computeHasLinkOnly_=function(R){return!(!R||R.length!==1||this.noEndpoints||!R[0].navigationEndpoint)};
_.J.getRoot=function(){var R=this.buildScopeDomOptions();return this.enableContentEditable?_.hw(_.hw(this.hostElement,R).querySelector("[contenteditable]")):_.hw(this.hostElement,R)};
_.J.fixContenteditableScope=function(){var R=function(y){y&&(y.nodeType===1&&y.classList&&(y.classList.add("style-scope"),y.classList.add("yt-formatted-string")),y.childNodes&&y.childNodes.forEach(function(u){R(u)}))};
R(this.getRoot())};
_.J.updateText_=function(R){for(var y=R.length,u=this.getRoot(),v=u.firstChild;v&&v.nodeName==="STYLE";)v=v.nextSibling;for(var Q=0;Q<y&&v;){var M=R[Q],K=_.f("remove_cr_char")&&M.text?M.text.replace("\r",""):M.text;if(this.isSimpleString_(M)&&!this.useMixedDirectionFormattedStrings)if(v.nodeName==="#text"){v.textContent!=K&&(v.textContent=K);Q++;v=v.nextSibling;continue}else break;if(_.e(M,td))break;else if(!this.noEndpoints&&M.navigationEndpoint){if(v.nodeName!=="A")break;this.setDataOnAnchor_(v,
M.navigationEndpoint)}else if(v.nodeName!=="SPAN")break;this.setNodeStyle_(M,v);this.setUpVisibilityLogging_(M,v);v.textContent!=K&&(v.textContent=K);Q++;v=v.nextSibling}if(v)for(M=u.lastChild,v=Q?v.previousSibling:null;M&&M!=v;){try{u.removeChild(M)}catch(h){break}M=u.lastChild}Q!==y&&this.addTextNodes_(R,Q)};
_.J.addTextNodes_=function(R,y){for(var u=document.createDocumentFragment(),v=R.length;y<v;y++){var Q=R[y],M=_.f("remove_cr_char")&&Q.text?Q.text.replace("\r",""):Q.text;if(this.isSimpleString_(Q)&&!this.useMixedDirectionFormattedStrings)u.appendChild(document.createTextNode(M));else{var K=_.e(Q,td);if(K){if(K.image){var h=document.createElement("img");K.isCustomEmoji||h.classList.add("small-emoji");h.classList.add("emoji");K.isCustomEmoji&&(h.dataset.emojiId=K.emojiId);h.src=_.b0(K.image.thumbnails,
this.emojiSize);(Q=this.get("image.accessibility.accessibilityData.label",K))?h.alt=Q:K.shortcuts&&K.shortcuts.length>0?h.alt=K.shortcuts[0]:K.emojiId&&(h.alt=K.emojiId);u.appendChild(h);this.hasEmoji=!0}}else!this.noEndpoints&&Q.navigationEndpoint?(h=document.createElement("a"),h.classList.add("yt-simple-endpoint"),h.setAttribute("spellcheck","false"),this.setDataOnAnchor_(h,Q.navigationEndpoint)):h=document.createElement("span"),this.setNodeStyle_(Q,h),this.setUpVisibilityLogging_(Q,h),h.appendChild(document.createTextNode(M)),
u.appendChild(h)}}this.getRoot().appendChild(u)};
_.J.isSimpleString_=function(R){return(this.noEndpoints||!R.navigationEndpoint)&&!_.e(R,td)&&(this.noStyles||!(R.bold||R.deemphasize||R.italics||R.strikethrough||R.errorUnderline||R.bracket||R.textColor))&&!R.loggingDirectives};
_.J.getRawText=function(){return _.u7(this.text)};
_.J.getFirstRunText=function(){var R;if(((R=this.text)==null?0:R.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.J.setFirstRunText=function(R){var y;((y=this.text)==null?0:y.runs)&&this.text.runs[0]&&(this.text.runs[0].text=R,this.textChanged_(this.text))};
_.J.setDataOnAnchor_=function(R,y){var u=this;!_.f("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(y)||this.isSignalServiceEndpoint_(y)?(R.onclick=this.serviceEndpointHandler_(y),Aq(R,"#")):OAG({text:this.text,command:y},function(){$pO(R,y,u.target)})};
_.J.isServiceEndpoint_=function(R){var y;return!((y=_.e(R==null?void 0:R.commandMetadata,_.QL))==null||!y.sendPost)};
_.J.isSignalServiceEndpoint_=function(R){return!!_.e(R,_.xF)};
_.J.serviceEndpointHandler_=function(R){var y=this;return function(u){_.Fh(y.hostElement,[R]);u.preventDefault()}};
_.J.overrideAriaLabelChanged_=function(){var R=this.getRoot();this.enableContentEditable&&R&&R.setAttribute("aria-label",this.overrideAriaLabel)};
_.J.enableContentEditableChanged_=function(){var R=this,y=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),y=_.hw(this.hostElement,y),!y.lastChild||y.lastChild instanceof HTMLElement&&y.lastChild.id!=="contenteditable-root"){var u=document.createElement("div");u.id="contenteditable-root";u.setAttribute("contenteditable","true");u.setAttribute("dir","auto");u.onfocus=function(){R.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
y.appendChild(u);this.overrideAriaLabel&&u.setAttribute("aria-label",this.overrideAriaLabel)}}else u=_.b8(this.hostElement).firstChild,u instanceof HTMLElement&&u.id==="contenteditable-root"&&_.hw(this.hostElement,y).removeChild(u)};
_.J.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.J.getNodesForVisibilityLogging_=function(){return _.bo(this.getRoot().childNodes,function(R){var y;return!((y=R.data)==null||!y.trackingParams)})};
_.J.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.J.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var R=this.ytRendererBehavior.getVisibilityLogger();R&&this.getNodesForVisibilityLogging_().forEach(function(y){R.reportShown(y)})}};
_.J.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var R=this.ytRendererBehavior.getVisibilityLogger();R&&this.getNodesForVisibilityLogging_().forEach(function(y){R.reportHidden(y)})}};
_.RR.Object.defineProperties(HR.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.f("enable_mixed_direction_formatted_strings")}}});
HR.prototype.enableContentEditableChanged_=HR.prototype.enableContentEditableChanged_;HR.prototype.overrideAriaLabelChanged_=HR.prototype.overrideAriaLabelChanged_;HR.prototype.ellipsisTruncateChanged_=HR.prototype.ellipsisTruncateChanged_;HR.prototype.textChanged=HR.prototype.textChanged;_.A([_.n(Tdc.YtPlaintextBehavior),_.p("design:type",Object)],HR.prototype,"ytPlaintextBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],HR.prototype,"ytComponentBehavior",void 0);
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],HR.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],HR.prototype,"text",void 0);_.A([_.r(),_.p("design:type",Boolean)],HR.prototype,"noEndpoints",void 0);_.A([_.r(),_.p("design:type",Boolean)],HR.prototype,"noStyles",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],HR.prototype,"isDarkTheme",void 0);
_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],HR.prototype,"splitLines",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],HR.prototype,"forceDefaultStyle",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],HR.prototype,"ellipsisTruncate",void 0);_.A([_.r(),_.p("design:type",Object)],HR.prototype,"ignoreShadyDom",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.p("design:type",Boolean)],HR.prototype,"ellipsisTruncateStyling",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.p("design:type",String)],HR.prototype,"ariaLabel",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],HR.prototype,"isEmpty",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.p("design:type",Boolean)],HR.prototype,"hasLinkOnly_",void 0);_.A([_.r(),_.p("design:type",Boolean)],HR.prototype,"hasEmoji",void 0);_.A([_.r(),_.p("design:type",Boolean)],HR.prototype,"disableAttributedString",void 0);_.A([_.r(),_.p("design:type",Boolean)],HR.prototype,"isOverlay",void 0);_.A([_.r(),_.p("design:type",Boolean)],HR.prototype,"linkInheritColor",void 0);
_.A([_.r(),_.p("design:type",Boolean)],HR.prototype,"noPreWrap",void 0);_.A([_.r(),_.p("design:type",Boolean)],HR.prototype,"userInput",void 0);_.A([_.r({value:16}),_.p("design:type",Number)],HR.prototype,"emojiSize",void 0);_.A([_.r(),_.p("design:type",String)],HR.prototype,"target",void 0);_.A([_.r(),_.p("design:type",Boolean)],HR.prototype,"enableContentEditable",void 0);_.A([_.r(),_.p("design:type",String)],HR.prototype,"overrideAriaLabel",void 0);
_.A([_.r(),_.p("design:type",Boolean)],HR.prototype,"respectHtmlDir",void 0);_.A([_.r(),_.p("design:type",Boolean)],HR.prototype,"respectLangDir",void 0);_.A([_.G("plaintextOnly"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],HR.prototype,"useMixedDirectionFormattedStrings",null);_.A([_.r({computed:"computeUseAttributedString(text)"}),_.p("design:type",Boolean)],HR.prototype,"useYtAttributedString",void 0);
_.A([_.e0("text"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],HR.prototype,"textChanged",null);_.A([_.e0("ellipsisTruncate"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],HR.prototype,"ellipsisTruncateChanged_",null);_.A([_.e0("overrideAriaLabel"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],HR.prototype,"overrideAriaLabelChanged_",null);
_.A([_.e0("enableContentEditable"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],HR.prototype,"enableContentEditableChanged_",null);_.A([_.pu({is:"yt-formatted-string",disableElementRegistration:!0})],HR);
_.m(HR,"yt-formatted-string",function(){if(x0b===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;oeY===void 0&&(oeY=document.createElement("template"));var v=oeY;u.call(y,v.content.cloneNode(!0),R.content.firstChild);x0b=R}R=x0b;return R});var BdY;var fhK;var edV;var lhg;var nQ=function(){var R=_.W.apply(this,arguments)||this;R.focused=!1;R.disabled=!1;R.isOverlay=!1;return R};
_.O(nQ,_.W);nQ.prototype.triggerDown=function(){if(!this.disabled){_.FN(this.hostElement,"down",!0);var R;(R=this.currentAnimation)==null||R.cancel()}};
nQ.prototype.triggerUp=function(){if(!this.disabled){_.FN(this.hostElement,"down",!1);var R=this.fillElement;var y=this.strokeElement;typeof GroupEffect==="function"?(R=new GroupEffect([j0O(R),M44(y)]),R=new Animation(R,document.timeline)):R=new u_Y(R,y);this.currentAnimation=R;var u;(u=this.currentAnimation)==null||u.play()}};
_.A([_.O7(".stroke"),_.p("design:type",HTMLElement)],nQ.prototype,"strokeElement",void 0);_.A([_.O7(".fill"),_.p("design:type",HTMLElement)],nQ.prototype,"fillElement",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],nQ.prototype,"focused",void 0);_.A([_.r(),_.p("design:type",Object)],nQ.prototype,"disabled",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],nQ.prototype,"isOverlay",void 0);_.A([_.pu({is:"yt-interaction",disableElementRegistration:!0})],nQ);
_.m(nQ,"yt-interaction",function(){if(lhg===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;edV===void 0&&(edV=document.createElement("template"));var v=edV;u.call(y,v.content.cloneNode(!0),R.content.firstChild);lhg=R}R=lhg;return R},{mode:2});var Gi=function(){return _.W.apply(this,arguments)||this};
_.O(Gi,_.W);_.J=Gi.prototype;_.J.ready=function(){var R=this,y=_.hw(this.hostElement).querySelector("#button");y.addEventListener("focus",function(){DMg||(DMg=new AZK);R.keyboardFocused=DMg.isKeyBoardInUse()});
y.addEventListener("blur",function(){R.keyboardFocused=!1;R.rippleUp_()})};
_.J.computeTabIndex_=function(R){return R?-1:0};
_.J.computeButtonAriaPressed_=function(R){if(this.toggleable)return R?"true":"false"};
_.J.rippleDown_=function(){_.hw(this.hostElement).querySelector("#interaction").triggerDown()};
_.J.rippleUp_=function(){_.hw(this.hostElement).querySelector("#interaction").triggerUp()};
_.J.onPressedChanged_=function(){var R=_.b8(_.hw(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.b8(_.hw(this.hostElement).querySelector("#button")).children[0];R&&(R.active=this.pressed)};
Gi.prototype.onPressedChanged_=Gi.prototype.onPressedChanged_;Gi.prototype.rippleUp_=Gi.prototype.rippleUp_;Gi.prototype.rippleDown_=Gi.prototype.rippleDown_;_.A([_.r(),_.p("design:type",String)],Gi.prototype,"label",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Gi.prototype,"disabled",void 0);_.A([_.r(),_.p("design:type",Boolean)],Gi.prototype,"pressed",void 0);_.A([_.r(),_.p("design:type",Object)],Gi.prototype,"toggleable",void 0);
_.A([_.r(),_.p("design:type",Boolean)],Gi.prototype,"untabbable",void 0);_.A([_.r(),_.p("design:type",Boolean)],Gi.prototype,"keyboardFocused",void 0);_.A([_.fu("down"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Gi.prototype,"rippleDown_",null);_.A([_.fu("up"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Gi.prototype,"rippleUp_",null);
_.A([_.e0("pressed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Gi.prototype,"onPressedChanged_",null);_.A([_.pu({is:"yt-icon-button",disableElementRegistration:!0})],Gi);
_.m(Gi,"yt-icon-button",function(){if(fhK===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;BdY===void 0&&(BdY=document.createElement("template"));var v=BdY;u.call(y,v.content.cloneNode(!0),R.content.firstChild);fhK=R}R=fhK;return R},{mode:2});var O4b=_.RE(["aria-"]),rj={};rj.YtRenderButtonBehavior=[_.S.YtRendererBehavior,_.ZL.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!!_.ua().resolve(_.yN(_.Ti))&&_.f("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?Aq(this.elements_.endpoint,R):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){R=this.buttonClass.split(" ");R=_.V(R);for(var y=R.next();!y.done;y=R.next())y=y.value,_.FN(this.hostElement,y,!0),this.elements_.button&&_.FN(this.elements_.button,y,!0),this.elements_.text&&_.FN(this.elements_.text,y,!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?_.R1([_.QW(O4b)],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=_.ua().resolve(_.yN(_.Ti));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_()?_.iW("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,_.GM(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.GM(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(R,y){if(y)for(R=y.split(" "),R=_.V(R),y=R.next();!y.done;y=R.next())y=y.value,_.FN(this.hostElement,y,!1),this.elements_.button&&_.FN(this.elements_.button,y,!1),this.elements_.text&&_.FN(this.elements_.text,y,!1)},
buttonIconChanged_:function(R){this.elements_.icon?R?(this.elements_.icon.icon=R,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.GM(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.w2(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"&&_.GM(this.elements_.button).appendChild(this.elements_.icon):_.GM(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.w2(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 y=!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":y=!0;_.FN(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();R=_.GM(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;_.GM(this.elements_.endpoint).appendChild(this.elements_.button);_.GM(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.iW("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;_.GM(this.elements_.button).appendChild(this.elements_.text);_.GM(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":y=!0,this.elements_.button=this.getYtIconButton_(),R=_.GM(this.elements_.button).firstElementChild,this.elements_.icon=R,this.setIconActive_(this.elements_.icon),
_.GM(this.elements_.endpoint).appendChild(this.elements_.button)}_.w2(this.hostElement,"is-icon-button",y);_.w2(this.hostElement,"is-paper-button",!y);_.w2(this.hostElement,"has-no-text",!this.elements_.text);this.elements_.button.id="button";this.elements_.button.noink=this.noink;this.elements_.button.disabled=this.disabled;var u;_.hw((u=this.container.hostElement)!=null?u:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.GM(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){_.f("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){_.mx(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&&_.Fh(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)_.f("handle_service_request_actions")||_.Fh(this.hostElement,[this.serviceEndpoint]),
_.Ko(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.f("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&&_.wr(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?_.Fh(this.hostElement,[R]):_.wr(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,y=_.hw((R=this.container.hostElement)!=null?R:this.container);y.lastChild&&y.lastChild.tagName!="STYLE";)try{y.removeChild(y.lastChild)}catch(u){break}},
getYtIconButton_:function(){var R=this.reuseEnabled_()?_.iW("yt-icon-button"):document.createElement("yt-icon-button"),y=_.GM(R).firstElementChild;if(y&&y.is!="yt-icon"){for(y=_.GM(R);y.lastChild;)y.removeChild(y.lastChild);y=null}y||(y=this.getIcon_(),this.setIconActive_(y),_.GM(R).appendChild(y));return R},
reuseEnabled_:function(){return _.f("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.iW("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.iW("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.Z4T={};
_.Z4T.YtButtonBehavior=[rj.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 y;if((y=this.elements_)==null?0:y.button)this.elements_.button.pressed=!!R},
computeIconPositionType_:function(R){return R&&R.iconPosition||null},
computeEndpoint_:function(R){var y=R&&R.navigationEndpoint,u=this.get("data.command.commandMetadata.webCommandMetadata.url"),v=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return y?y:R&&R.command&&R.command.modalEndpoint?R.command:u&&!v&&R.command?R.command:null},
computeServiceEndpoint_:function(R){var y=R&&R.serviceEndpoint,u=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return y?y:u&&R.command?R.command:null},
computeCommand_:function(R){return R&&R.command||null},
computeButtonIcon_:function(R){return R&&R.icon&&R.icon.iconType?_.fk(R.icon.iconType):null},
computeButtonText_:function(R,y){return!y&&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 y=R&&R.style?R.style.toLowerCase().replace(/_/g,"-")+" ":"";y+=R&&R.size?R.size.toLowerCase().replace(/_/g,"-")+" ":"";R.colorData&&R.colorData.basicColorPaletteData&&R.colorData.basicColorPaletteData.borderColor&&(y+="palette-with-border");return y.trim()}}];var A6={};var H4Y;var neV;var Gjw,rmc=function(){return Gjw!==void 0?Gjw:Gjw=document.createElement("template")};
document.head.appendChild(rmc().content);var Pf8;var WCw,d05=function(){return WCw!==void 0?WCw:WCw=document.createElement("template")};
document.head.appendChild(d05().content);var U0K;var kjc,EeL=function(){return kjc!==void 0?kjc:kjc=document.createElement("template")};
document.head.appendChild(EeL().content);var $05;var q5w=document.head,Xp5=q5w.appendChild,m0c;if($05===void 0){var AmY=document.createElement("template");_.H(AmY,"\x3c!--css-build:shady--\x3e");AmY.content.insertBefore(EeL().content.cloneNode(!0),AmY.content.firstChild);$05=AmY}m0c=$05;Xp5.call(q5w,m0c.content);var D0g=document.head,ppV=D0g.appendChild,tM5;if(U0K===void 0){var cm5=document.createElement("template");_.H(cm5,"\x3c!--css-build:shady--\x3e");cm5.content.insertBefore(d05().content.cloneNode(!0),cm5.content.firstChild);U0K=cm5}tM5=U0K;ppV.call(D0g,tM5.content);var ah8=document.head,S58=ah8.appendChild,Y5K;if(Pf8===void 0){var LCi=document.createElement("template");_.H(LCi,"\x3c!--css-build:shady--\x3e");LCi.content.insertBefore(rmc().content.cloneNode(!0),LCi.content.firstChild);Pf8=LCi}Y5K=Pf8;S58.call(ah8,Y5K.content);var s7g;_.Dl("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");s7g=_.f("web_button_rework")&&_.$B("BUTTON_REWORK")||_.f("web_button_rework_with_live");_.PR=function(){return _.W.apply(this,arguments)||this};
_.O(_.PR,_.W);_.PR.prototype.created=function(){this.openPopupConfig=_.EB("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.PR.prototype.onYtNavigate_=function(R){var y=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(R.detail.endpoint);y&&(this.ytOpenPopupBehavior.openPopup(y),R.stopPropagation(),R.preventDefault())};
_.RR.Object.defineProperties(_.PR,{template:{configurable:!0,enumerable:!0,get:function(){if(neV===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);
var y=R.content,u=y.insertBefore;H4Y===void 0&&(H4Y=document.createElement("template"));var v=H4Y;u.call(y,v.content.cloneNode(!0),R.content.firstChild);neV=R}R=neV;return R}}});
_.PR.prototype.onYtNavigate_=_.PR.prototype.onYtNavigate_;_.A([_.n(_.Oj.YtOpenPopupBehavior),_.p("design:type",Object)],_.PR.prototype,"ytOpenPopupBehavior",void 0);_.A([_.n(_.Z4T.YtButtonBehavior),_.p("design:type",Object)],_.PR.prototype,"ytButtonBehavior",void 0);_.A([_.fu("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],_.PR.prototype,"onYtNavigate_",null);
_.A([_.pu({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:s7g})],_.PR);var zdg;var ge5=_.f("web_button_rework")&&_.$B("BUTTON_REWORK")||_.f("web_button_rework_with_live"),Uj=function(){var R=_.W.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(y){_.Ko(R.hostElement,"yt-service-request-sent-button-renderer",y)};
return R};
_.O(Uj,_.W);_.J=Uj.prototype;_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.J.onClick=function(R){var y,u=this.disabled||((y=this.data)==null?void 0:y.isDisabled);y=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");u&&y&&R.stopPropagation()};
_.J.computeIcon=function(){var R,y,u=(R=this.data)==null?void 0:(y=R.icon)==null?void 0:y.iconType;if(u)return _.fk(u)};
_.J.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.J.handleUpdateButtonAction=function(R){R=_.e(R,TqK);var y=_.e(R==null?void 0:R.updatedButton,_.aG);if(this.data&&R&&y){var u=this.data;u.targetId&&R.targetId&&u.targetId===R.targetId&&(this.data=y)}};
_.RR.Object.defineProperties(Uj.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var R=this;if(this.data){var y=J9T({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.Ko(R.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.Ko(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});y.alignByText=this.alignByText;return y}}}});
_.RR.Object.defineProperties(Uj,{template:{configurable:!0,enumerable:!0,get:function(){if(zdg===void 0){var R=document.createElement("template");_.H(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>');zdg=R}R=zdg;return R}}});
Uj.prototype.onClick=Uj.prototype.onClick;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Uj.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Uj.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Uj.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Uj.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],Uj.prototype,"isPressed",void 0);
_.A([_.r(),_.p("design:type",Object)],Uj.prototype,"forceIconButton",void 0);_.A([_.r(),_.p("design:type",Object)],Uj.prototype,"forceIconOnly",void 0);_.A([_.r(),_.p("design:type",Object)],Uj.prototype,"forceModernIconButton",void 0);_.A([_.r(),_.p("design:type",Object)],Uj.prototype,"skipCommandHandling",void 0);_.A([_.r(),_.p("design:type",Object)],Uj.prototype,"alignByText",void 0);_.A([_.r(),_.p("design:type",Object)],Uj.prototype,"buttonTooltipPosition",void 0);
_.A([_.r(),_.p("design:type",Object)],Uj.prototype,"fitToVisibleBounds",void 0);_.A([_.r({computed:"computeTooltip(data)"}),_.p("design:type",Object)],Uj.prototype,"tooltip",void 0);_.A([_.r(),_.p("design:type",Object)],Uj.prototype,"overrides",void 0);_.A([_.r(),_.p("design:type",Boolean)],Uj.prototype,"disabled",void 0);_.A([_.fu("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],Uj.prototype,"onClick",null);
_.A([_.G("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.p("design:type",Object),_.p("design:paramtypes",[])],Uj.prototype,"computedButtonShape",null);_.A([_.pu({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!ge5,cssBuildOptOut:!0}),_.pu({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!ge5,cssBuildOptOut:!0})],Uj);var Cfw;var Rig;var k1=function(){var R=_.W.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};
_.O(k1,_.W);_.J=k1.prototype;_.J.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.J.ready=function(){var R=this.shouldShowPlaceholder_();_.FN(this.hostElement,"no-transition",!0);R&&this.hostElement.classList.add("with-placeholder")};
_.J.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.J.isThumbPreloaded_=function(R){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",R)};
_.J.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||yoY};
_.J.computeThumbnailSrc_=function(R){return R&&R.thumbnails?_.b0(R.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.J.computeAlt_=function(){var R=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&R||""};
_.J.thumbnailChanged_=function(){var R=_.V([this.thumbnail,this.oldThumbnail_]),y=R.next().value;R=R.next().value;this.oldThumbnail_=y;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(R=this.computeThumbnailSrc_(R),this.computeThumbnailSrc_(y)===R))return;_.f("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(y)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):y&&_.$B("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.gn(this,this.onReload_):_.gn(this,this.onShow_):this.resetImage_();y&&(this.hostElement.style.opacity=""+y.opacity)}};
_.J.delayedSrcChanged_=function(){var R=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===R||this.resetImage_()};
_.J.setSrc_=function(R){R?(_.hw(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.hw(this.hostElement).querySelector("#img").src=R):(_.hw(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.J.resetImage_=function(){M$W(this.hostElement);this.empty_=!0;this.setSrc_(yoY);this.ytRendererBehavior.invalidate(!1)};
_.J.observePlaceholderColor_=function(){var R=this.thumbnail&&this.thumbnail.placeholderColor;R?this.hostElement.style.backgroundColor=_.aH(R):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.J.onLoad_=function(){_.hw(this.hostElement).querySelector("#img").src&&_.hw(this.hostElement).querySelector("#img").src!==yoY&&(j6O(this.hostElement),this.notifyOnLoaded&&_.Ko(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.J.onError_=function(){var R=this;if(_.f("web_use_cache_for_image_fallback"))bdG(_.hw(this.hostElement).querySelector("#img").src).then(function(y){R.objectURL_=_.$E(y).toString();R.setSrc_(R.objectURL_)}).catch(function(){_.f("kevlar_woffle_fallback_image")&&R.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.J.onPrescanVisible=function(){this.onShow_()};
_.J.onVisible=function(){if(_.f("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.J.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var R=this.computeSrc_();R!==_.hw(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(R))}};
_.J.onReload_=function(){this.empty_=!1;var R=this.computeSrc_();R!==_.hw(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(R))};
_.J.shouldShowPlaceholder_=function(){return _.f("kevlar_thumbnail_bg")};
k1.prototype.observePlaceholderColor_=k1.prototype.observePlaceholderColor_;k1.prototype.delayedSrcChanged_=k1.prototype.delayedSrcChanged_;k1.prototype.thumbnailChanged_=k1.prototype.thumbnailChanged_;_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],k1.prototype,"alt",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],k1.prototype,"ariaHidden",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],k1.prototype,"ariaLabel",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],k1.prototype,"hidden",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],k1.prototype,"id",void 0);_.A([_.n(_.Cl.YtVisibilityBehavior),_.p("design:type",Object)],k1.prototype,"ytVisibilityBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],k1.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",String)],k1.prototype,"delayedSrc",void 0);
_.A([_.r(),_.p("design:type",Object)],k1.prototype,"thumbnail",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],k1.prototype,"loaded",void 0);_.A([_.r(),_.p("design:type",Boolean)],k1.prototype,"notifyOnLoaded",void 0);_.A([_.r(),_.p("design:type",Number)],k1.prototype,"height",void 0);_.A([_.r(),_.p("design:type",Number)],k1.prototype,"width",void 0);_.A([_.r({value:function(){return"width"}}),
_.p("design:type",String)],k1.prototype,"dimension",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],k1.prototype,"fit",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],k1.prototype,"fitHeight",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],k1.prototype,"fitWidth",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],k1.prototype,"objectFit",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],k1.prototype,"objectPosition",void 0);_.A([_.r(),_.p("design:type",String)],k1.prototype,"preferredThumbnail",void 0);_.A([_.r({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.p("design:type",String)],k1.prototype,"alt_",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],k1.prototype,"sharedTooltipText",void 0);
_.A([_.r(),_.p("design:type",Boolean)],k1.prototype,"ftlEligible",void 0);_.A([_.r({value:void 0}),_.p("design:type",String)],k1.prototype,"observeHiddenOption",void 0);_.A([_.r({value:"observe_once"}),_.p("design:type",String)],k1.prototype,"observePrescanOption",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],k1.prototype,"roundedContainer",void 0);
_.A([_.GJ("thumbnail"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],k1.prototype,"thumbnailChanged_",null);_.A([_.GJ("delayedSrc"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],k1.prototype,"delayedSrcChanged_",null);_.A([_.e0("thumbnail.placeholderColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],k1.prototype,"observePlaceholderColor_",null);
_.A([_.pu({is:"yt-img-shadow",disableElementRegistration:!0})],k1);var yoY=_.$B("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.Nk()(k1,"yt-img-shadow",function(){if(Rig===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;Cfw===void 0&&(Cfw=document.createElement("template"));var v=Cfw;u.call(y,v.content.cloneNode(!0),R.content.firstChild);Rig=R}R=Rig;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 hGP;_.Ej=new _.Jx("SCREEN_MANAGER_TOKEN");hGP=new _.Jx("LOG_INITIAL_SCREEN_TOKEN");var u$g=Object.fromEntries(Object.keys({entities:{}}).map(function(R){return[R,R]}));var vfY=function(R){return function(y,u){return i3W(R,y,u)}}(u$g)(u$g.entities,{selectSfvAudioItemPlaybackState:function(R,y){var u,v;
R=(v=_.TI(R,"sfvAudioItemCurrentlyPlayingEntity",y))!=null?v:void 0;return(u=R==null?void 0:R.sfvAudioItemPlaybackState)!=null?u:void 0},
playlistLoopStateEntitySelector:function(R,y){var u;return(u=_.TI(R,"playlistLoopStateEntity",y))!=null?u:void 0}});_.$1=_.Jd(function(R){function y(QG){return _.e(QG,_.k9)}
function u(){var QG=v().isTogglingDisabled||P()&&v().toggledIsTogglingDisabled,hz=QG||B()?P():!P();k(hz);D(!1);if(!QG){var bO;(bO=K)==null||bO(!!hz)}var BW;((BW=M)==null?0:BW())||_.e2(_.ua().resolve(_.Ej),v().trackingParams);var Zc;if(!hz||!y(v().defaultButtonViewModel)||(Zc=M)!=null&&Zc()){var xS;!y(v().toggledButtonViewModel)||((xS=M)==null?0:xS())||_.e2(_.ua().resolve(_.Ej),y(v().toggledButtonViewModel).trackingParams)}else _.e2(_.ua().resolve(_.Ej),y(v().defaultButtonViewModel).trackingParams)}
var v=R.data,Q=R.buttonShapeOverrides,M=R.disableExplicitClickLogging,K=R.onToggle,h=R.style,b=R.useOutlinedIcon,N=R.className,T=function(){var QG,hz;return P()?(QG=R.animatedTextPropsToggled)==null?void 0:QG.call(R):(hz=R.animatedTextPropsDefault)==null?void 0:hz.call(R)},x=_.N8(function(){return T()?Object.assign({},T(),{shouldAnimate:E()}):void 0},void 0,"ZKEa0b"),B=function(){var QG;
return((QG=a())==null?void 0:QG.isToggled)!==void 0},l=_.V(_.rW(function(){var QG,hz,bO;
return B()?(QG=a())==null?void 0:QG.isToggled:(bO=Q==null?void 0:(hz=Q())==null?void 0:hz.toggled)!=null?bO:v().isToggled})),Z=l.next().value;
l=l.next().value;var P=Z,k=l;l=_.V(_.rW(function(){var QG,hz;return(QG=R.animatedTextPropsToggled)==null?void 0:(hz=QG.call(R))==null?void 0:hz.shouldAnimate}));
Z=l.next().value;l=l.next().value;var E=Z,D=l;Z=_.V(_.In(!1,void 0,"S11hid"));var z=Z.next().value,c=Z.next().value,a=_.Sp(function(QG){a:{var hz=v().entityKey,bO=v().toggledStateEntitySelectorType;if(bO)switch(bO){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!hz)break;QG=vfY.selectSfvAudioItemPlaybackState(QG,hz);if(QG==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){QG={isToggled:!0};break a}if(QG){QG={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":QG=
{isToggled:_.IsE(QG).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":QG={isToggled:_.IsE(QG).includes("engagement-panel-live-chat-item-section")};break a;default:_.kT(new _.OL("Error: entitySelectorType defined but not matched in selector.",QG,bO))}QG=void 0}return QG}),L=function(){return Object.assign({},Q==null?void 0:Q(),{onToggle:u,
toggleable:!0,toggled:P(),focused:z()})};
return _.F("toggle-button-view-model",{"on:focusin":_.nh(function(){var QG=_.ua().resolve(_.yN(_.Ti));QG&&c(QG.isKeyBoardInUse());return!1}),
"on:focusout":_.nh(function(){c(!1);return!1})},_.F(_.w,{cond:function(){return P()?y(v().toggledButtonViewModel):y(v().defaultButtonViewModel)},
then:function(QG){return _.F(_.fQ,{data:QG,className:N,style:h,useOutlinedIcon:b,buttonOverrides:L,animatedTextProps:x})}}))},"C");
_.$1.idomCompat={callbacks:{onToggle:!0}};_.h6(_.Jd(function(R){return _.F("yt-toggle-button-view-model",{class:function(){var y;return(y=R.scopingClassName)==null?void 0:y.call(R)}},_.F(_.$1,{data:function(){var y;
return(y=R.data)==null?void 0:y.call(R)},
buttonShapeOverrides:function(){var y;return(y=R.overrides)==null?void 0:y.call(R)},
animatedTextPropsDefault:function(){var y;return(y=R.animatedTextPropsDefault)==null?void 0:y.call(R)},
animatedTextPropsToggled:function(){var y;return(y=R.animatedTextPropsToggled)==null?void 0:y.call(R)},
disableExplicitClickLogging:function(){var y;return(y=R.disableExplicitClickLogging)==null?void 0:y.call(R)},
onToggle:function(y){var u;return(u=R.onToggle)==null?void 0:u.call(R,y)},
style:function(){var y;return(y=R.style)==null?void 0:y.call(R)},
useOutlinedIcon:function(){var y;return(y=R.useOutlinedIcon)==null?void 0:y.call(R)},
className:function(){var y;return(y=R.className)==null?void 0:y.call(R)}}))},"D"),"yt-toggle-button-view-model",{props:{data:_.vR,
buttonShapeOverrides:_.vR,overrides:_.vR,animatedTextPropsDefault:_.vR,animatedTextPropsToggled:_.vR,disableExplicitClickLogging:_.vR,onToggle:_.IC,style:_.vR,useOutlinedIcon:_.vR,className:_.vR,scopingClassName:_.vR}});var qJ=function(){return _.W.apply(this,arguments)||this};
_.O(qJ,_.W);qJ.prototype.onTap=function(R){R.stopPropagation();R=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.DT("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:R})):this.ytLiveChatReduxBehavior.dispatch(_.Gw("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:R}))};
_.RR.Object.defineProperties(qJ.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=_.e(this.data.toggleButton,_.EC),y;if(Number(((y=this.likeCountState)==null?void 0:y.likeCountIfIndifferentNumber)||"0")===0){var u;y=((u=this.data.likeCountPlaceholder)==null?void 0:u.content)||""}else{var v,Q,M;y=((v=this.likeCountState)==null?void 0:(Q=v.likeCountIfIndifferent)==null?void 0:Q.content)||((M=this.data.likeCountPlaceholder)==null?void 0:M.content)||""}var K,h;u=((K=this.likeCountState)==null?void 0:(h=
K.likeCountIfLiked)==null?void 0:h.content)||"1";K=_.e(R.toggledButtonViewModel,_.k9);return Object.assign({},R,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.e(R.defaultButtonViewModel,_.k9),{title:y})},toggledButtonViewModel:{buttonViewModel:Object.assign({},K,{title:u})}})}}}});
qJ.prototype.onTap=qJ.prototype.onTap;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],qJ.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],qJ.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.YX),_.p("design:type",Object)],qJ.prototype,"ytLiveChatReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],qJ.prototype,"data",void 0);
_.A([_.r({selectorArgs:["data.likeCountEntityKey"],selector:hAU}),_.p("design:type",Object)],qJ.prototype,"likeCountState",void 0);_.A([_.r({selectorArgs:["data.engagementStateKey"],selector:$YG}),_.p("design:type",Object)],qJ.prototype,"engagementState",void 0);_.A([_.G("data","engagementState"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],qJ.prototype,"isLiked",null);
_.A([_.G("data","likeCountState","isLiked"),_.p("design:type",Object),_.p("design:paramtypes",[])],qJ.prototype,"toggleButton",null);_.A([_.fu("tap"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],qJ.prototype,"onTap",null);_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],qJ);
_.m(qJ,"yt-live-chat-like-button-view-model",function(){if(NdV===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;wpw===void 0&&(wpw=document.createElement("template"));var v=wpw;u.call(y,v.content.cloneNode(!0),R.content.firstChild);NdV=R}R=NdV;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var Q6V;var j6T;var X2=function(){return _.W.apply(this,arguments)||this};
_.O(X2,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],X2.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],X2.prototype,"data",void 0);_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],X2);
_.m(X2,"yt-live-chat-paid-message-footer-renderer",function(){if(j6T===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;Q6V===void 0&&(Q6V=document.createElement("template"));var v=Q6V;u.call(y,v.content.cloneNode(!0),R.content.firstChild);j6T=R}R=j6T;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var M$K;var Jow;var V$c;var idY,KYT=function(){if(idY!==void 0)return idY;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;V$c===void 0&&(V$c=document.createElement("template"));var v=V$c;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return idY=R};var ms=function(){return _.W.apply(this,arguments)||this};
_.O(ms,_.W);ms.prototype.onTap=function(R){R.stopPropagation()};
_.RR.Object.defineProperties(ms.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var R=_.e(this.data.replyButton,_.k9),y,u,v,Q,M,K,h,b=Number(((y=this.replyCountState)==null?void 0:y.replyCountNumber)||"0")===0?(u=this.data)==null?void 0:(v=u.replyCountPlaceholder)==null?void 0:v.content:((Q=this.replyCountState)==null?void 0:(M=Q.replyCount)==null?void 0:M.content)||((K=this.data)==null?void 0:(h=K.replyCountPlaceholder)==null?void 0:h.content)||"",N;return Object.assign({},
R,{title:b,accessibilityText:(N=this.replyCountState)==null?void 0:N.replyButtonAccessibilityText})}}}});
_.RR.Object.defineProperties(ms,{template:{configurable:!0,enumerable:!0,get:function(){return KYT()}}});
ms.prototype.onTap=ms.prototype.onTap;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],ms.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ms.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.YX),_.p("design:type",Object)],ms.prototype,"ytLiveChatReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ms.prototype,"data",void 0);
_.A([_.r({selectorArgs:["data.replyCountEntityKey"],selector:function(R,y){return _.TI(R.entities,"replyCountEntity",y)}}),
_.p("design:type",Object)],ms.prototype,"replyCountState",void 0);_.A([_.G("data","replyCountState"),_.p("design:type",Object),_.p("design:paramtypes",[])],ms.prototype,"buttonViewModel",null);_.A([_.fu("tap"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],ms.prototype,"onTap",null);_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],ms);
_.m(ms,"yt-live-chat-reply-button-view-model",function(){return KYT()},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var IBG;var hig;var AX=function(){var R=_.W.apply(this,arguments)||this;R.ariaLabel="";return R};
_.O(AX,_.W);
AX.prototype.dataChanged=function(){for(var R=(0,_.Nz)(_.hw(this.hostElement).querySelector("#image"));R.firstChild;)R.removeChild(R.firstChild);if(this.data)if(this.data.icon){var y=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(y.polymerController.icon="yt-sys-icons:shield-filled",y.polymerController.defaultToFilled=!0):y.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();R.appendChild(y)}else if(this.data.customThumbnail){y=document.createElement("img");
var u=_.geU(this.data.customThumbnail.thumbnails,16);u?(y.src=u,R.appendChild(y),y.setAttribute("alt",this.hostElement.ariaLabel||"")):_.kT(new _.OL("Could not compute URL for thumbnail",this.data.customThumbnail))}};
AX.prototype.identity=function(R){return R};
AX.prototype.computeType=function(R){return oc(R||void 0)};
AX.prototype.dataChanged=AX.prototype.dataChanged;_.A([_.r(),_.p("design:type",Object)],AX.prototype,"data",void 0);_.A([_.r({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.p("design:type",Object)],AX.prototype,"ariaLabel",void 0);_.A([_.r({computed:"computeType(data)",reflectToAttribute:!0}),_.p("design:type",String)],AX.prototype,"type",void 0);
_.A([_.r({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.p("design:type",String)],AX.prototype,"sharedTooltipText",void 0);_.A([_.r({reflectToAttribute:!0,value:function(){return _.f("live_chat_enable_new_moderator_badge")}}),
_.p("design:type",Boolean)],AX.prototype,"enableNewModeratorBadge",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],AX.prototype,"dataChanged",null);_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],AX);
_.m(AX,"yt-live-chat-author-badge-renderer",function(){if(hig===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;IBG===void 0&&(IBG=document.createElement("template"));var v=IBG;u.call(y,v.content.cloneNode(!0),R.content.firstChild);hig=R}R=hig;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var bdc;var FYb;var DL=function(){return _.W.apply(this,arguments)||this};
_.O(DL,_.W);_.J=DL.prototype;_.J.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"}}}}};
_.J.computeBadgesInsideChip=function(R){return R?R.filter(function(y){return oc(y.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.J.computeBadgesOutsideChip=function(R){return this.prependChatBadges||!R?[]:R.filter(function(y){y=oc(y.liveChatAuthorBadgeRenderer);return y!=="verified"&&y!=="owner"})};
_.J.computeBadgesBeforeChip=function(R){return this.prependChatBadges&&R?R.filter(function(y){y=oc(y.liveChatAuthorBadgeRenderer);return y!=="verified"&&y!=="owner"}):[]};
_.J.computeIsHighlighted=function(R,y){var u=!!haP(R,"owner"),v=!!haP(R,"verified");R=!!haP(R,"moderator");return(u||v&&!R)&&!y};
_.J.computeAuthorType=function(R){return IZT(R)};
_.J.computeAuthorClass=function(R,y){return y?(R?R+" ":"")+"single-line":R};
_.J.onSeedColorChanged=function(){_.f("live_chat_author_name_color_usernames")||_.f("live_chat_seed_color_usernames")||_.f("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):_.f("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
DL.prototype.onSeedColorChanged=DL.prototype.onSeedColorChanged;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],DL.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],DL.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],DL.prototype,"authorName",void 0);_.A([_.r(),_.p("design:type",Array)],DL.prototype,"authorBadges",void 0);
_.A([_.r({computed:"computeAuthorType(authorBadges)"}),_.p("design:type",String)],DL.prototype,"authorType",void 0);_.A([_.r({computed:"computeAuthorClass(authorType, singleLine)"}),_.p("design:type",String)],DL.prototype,"authorClass",void 0);_.A([_.r({computed:"computeBadgesInsideChip(authorBadges)"}),_.p("design:type",Array)],DL.prototype,"badgesInsideChip",void 0);_.A([_.r({computed:"computeBadgesOutsideChip(authorBadges)"}),_.p("design:type",Array)],DL.prototype,"badgesOutsideChip",void 0);
_.A([_.r({computed:"computeBadgesBeforeChip(authorBadges)"}),_.p("design:type",Array)],DL.prototype,"badgesBeforeChip",void 0);_.A([_.r({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.p("design:type",Boolean)],DL.prototype,"isHighlighted",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],DL.prototype,"singleLine",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],DL.prototype,"disableHighlighting",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],DL.prototype,"dashboardMoneyFeed",void 0);_.A([_.r({value:_.f("live_chat_prepend_badges"),reflectToAttribute:!0}),_.p("design:type",Boolean)],DL.prototype,"prependChatBadges",void 0);_.A([_.r(),_.p("design:type",String)],DL.prototype,"authorNameColor",void 0);_.A([_.O7("#author-name"),_.p("design:type",HTMLDivElement)],DL.prototype,"username",void 0);
_.A([_.e0("authorNameColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DL.prototype,"onSeedColorChanged",null);_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],DL);
_.m(DL,"yt-live-chat-author-chip",function(){if(FYb===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;bdc===void 0&&(bdc=document.createElement("template"));var v=bdc;u.call(y,v.content.cloneNode(!0),R.content.firstChild);FYb=R}R=FYb;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var wIw;var NP8;var pQ=function(){var R=_.W.apply(this,arguments)||this;R.debounceCommand=_.np(function(y){R.ytComponentBehavior.resolveCommand(y)},1500);
return R};
_.O(pQ,_.W);pQ.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",y,u,v=this.isHearted?(y=this.data)==null?void 0:y.unheartCommand:(u=this.data)==null?void 0:u.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.DT("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:R}));(R=_.Sb(v))&&this.debounceCommand(R)}};
_.RR.Object.defineProperties(pQ.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var R,y;if(!((R=this.data)==null?0:(y=R.creatorThumbnail)==null?0:y.sources))return{};R={thumbnails:[]};y={};y.url=this.data.creatorThumbnail.sources[0].url;R.thumbnails.push(y);return R}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var R,y;return((R=this.engagementState)==null?void 0:R.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((y=this.engagementState)==null?void 0:y.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var R,y;return((R=this.engagementState)==null?void 0:R.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((y=this.engagementState)==null?void 0:y.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,y,u;return((R=this.engagementState)==null?void 0:R.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((y=this.engagementState)==null?void 0:y.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((u=this.engagementState)==null?void 0:u.heartState)==="TOOLBAR_HEART_STATE_HEARTED"}},
label:{configurable:!0,enumerable:!0,get:function(){return this.data?(this.isHearted?this.data.heartedAccessibilityLabel:this.data.unheartedAccessibilityLabel)||"":""}},
heartHoverText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.isHearted?this.data.heartedHoverText:this.data.unheartedHoverText}}});
pQ.prototype.onTap=pQ.prototype.onTap;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],pQ.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],pQ.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.YX),_.p("design:type",Object)],pQ.prototype,"ytLiveChatReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],pQ.prototype,"data",void 0);
_.A([_.r({selectorArgs:["data.engagementStateKey"],selector:$YG}),_.p("design:type",Object)],pQ.prototype,"engagementState",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],pQ.prototype,"thumbnailDetails",null);_.A([_.G("data","engagementState"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],pQ.prototype,"isHearted",null);_.A([_.G("data","engagementState"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],pQ.prototype,"isEditable",null);
_.A([_.G("data","engagementState"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],pQ.prototype,"showCreatorView",null);_.A([_.G("data","engagementState"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],pQ.prototype,"showButton",null);_.A([_.G("data","isHearted"),_.p("design:type",String),_.p("design:paramtypes",[])],pQ.prototype,"label",null);_.A([_.G("data","isHearted"),_.p("design:type",Object),_.p("design:paramtypes",[])],pQ.prototype,"heartHoverText",null);
_.A([_.fu("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],pQ.prototype,"onTap",null);_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],pQ);
_.m(pQ,"yt-live-chat-creator-heart-view-model",function(){if(NP8===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;wIw===void 0&&(wIw=document.createElement("template"));var v=wIw;u.call(y,v.content.cloneNode(!0),R.content.firstChild);NP8=R}R=NP8;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var tX=function(){};
_.O(tX,xX);tX.prototype.JSC$13017_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:Lv("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
tX.prototype.getApiPaths=function(){return[]};
tX.prototype.getExtension=function(){};
tX.prototype.JSC$13017_buildRequest=function(){};var TPg={},ofV=(TPg.GET_DATASYNC_IDS=WV(tX),TPg);var x35,BPV,fBg,K7G,cR,Odw,N_5,lBg,eiY;x35="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");BPV=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.Ch=function(R,y,u,v,Q,M,K,h,b){this.endpointMap=R;this.networkManager=y;this.authService=u;this.responseProcessorMap=v;this.innertubeResponseStore=Q;this.contextProcessors=M;this.asyncContextProcessors=K;this.localInnertubeRouter=h;this.requestSequencer=b;this.inflightRequests=new Map;R.signalEndpointMap||(R.signalEndpointMap={});R.signalEndpointMap=Object.assign({},ofV,R.signalEndpointMap)};
fBg=function(R,y,u,v,Q,M,K,h,b){if(_.Ch.instance!==void 0){if(v=_.Ch.instance,R=[R!==v.endpointMap,y!==v.networkManager,u!==v.authService,Q!==v.innertubeResponseStore,M!==v.contextProcessors,K!==v.asyncContextProcessors,h!==v.localInnertubeRouter],R.some(function(N){return N}))throw new _.OL("InnerTubeTransportService is already initialized",R);
}else _.Ch.instance=new _.Ch(R,y,u,v,Q,M,K,h,b)};
_.yB=function(R,y,u){var v=v===void 0?xSg:v;var Q=N_5(R,y);return Q?new _.F4(function(M,K){var h,b,N,T,x;return _.I(function(B){switch(B.nextAddress){case 1:return B.yield(Q,2);case 2:h=B.yieldResult;b=h.JSC$13017_getRequest(y,u,v);if(!b){K(new _.OL("Error: Failed to build request for command.",y));B.jumpTo(0);break}sZ(b.input);T=((N=b.requestShell)==null?void 0:N.mode)==="cors"?"cors":void 0;if(R.authService.syncHeaders){x=eiY(b.config,T);B.jumpTo(4);break}return B.yield(lBg(b.config,T),5);case 5:x=
B.yieldResult;case 4:M(Odw(R,b,x)),_.f$(B)}})}):_.qk(new _.OL("Error: No request builder found for command.",y))};
K7G=function(R,y,u,v){var Q=Q===void 0?xSg:Q;var M,K,h,b,N,T,x,B,l,Z,P,k,E,D,z,c,a,L;return _.I(function(QG){switch(QG.nextAddress){case 1:M=wa4(y,R.endpointMap);if(!M)throw new _.OL("Error: No streaming request builder found for command",y);K=M.JSC$13017_getRequest(y,u,Q);if(!K)throw new _.OL("Failed to build YtRequest for streaming Command",y);if((h=R.localInnertubeRouter)==null||!h.shouldPreferLocalResponse(K.input,K.innerTubeRequest)){QG.jumpTo(2);break}return QG.yield(R.localInnertubeRouter.localInnertubeResponse(K.input,
K.innerTubeRequest),3);case 3:return b=QG.yieldResult,N={},b.playerResponse&&(cR(R,b.playerResponse,K),N.player=b.playerResponse,(T=v)==null||T(N,b)),b.watchNextResponse&&(cR(R,b.watchNextResponse,K),N.content=b.watchNextResponse,(x=v)==null||x(N,b)),QG.return(N);case 2:l=((B=K.requestShell)==null?void 0:B.mode)==="cors"?"cors":void 0;if(R.authService.syncHeaders){Z=eiY(K.config,l);QG.jumpTo(4);break}return QG.yield(lBg(K.config,l),5);case 5:Z=QG.yieldResult;case 4:return E=(k=(P=K.requestShell)==
null?void 0:P.headers)!=null?k:{},K.requestShell=Object.assign({},K.requestShell,{headers:Object.assign({},E,Z)}),D=Object.assign({},K.requestShell),z=JSON.stringify(K.innerTubeRequest),K.requestShell.method==="POST"&&(D=Object.assign({},D,{body:z})),c=function(hz,bO){cR(R,bO.playerResponse||bO.watchNextResponse||bO.reelItemWatchResponse||bO.reelWatchSequenceResponse,K);v==null||v(hz,bO)},a={},QG.yield(Zdg(R.networkManager,K.input,D,c),6);
case 6:return a=QG.yieldResult,((L=K.config)==null?0:L.responseTick)&&_.qQ(K.config.responseTick),QG.return(a)}})};
_.am=function(R,y,u,v,Q){Q=Q===void 0?{authStrategy:{identity:xSg}}:Q;var M=M===void 0?!0:M;var K=function(){};
K=VtU(Mtc(u));y.context||(y.context=_.oxU(v,M));return new _.F4(function(h){var b,N,T,x,B;return _.I(function(l){if(l.nextAddress==1)return b=SvW(u),N=_.YI(b),R.authService.syncHeaders?(T=eiY(Q,N),l.jumpTo(2)):l.yield(lBg(Q,N),3);l.nextAddress!=2&&(T=l.yieldResult);x=Yv8(SvW(u));B={input:x,requestShell:Lv(x),innerTubeRequest:y,config:Q};h(Odw(R,B,T,K));_.f$(l)})})};
cR=function(R,y,u){var v;if(y&&!(y==null?0:(v=y.sequenceMetaData)==null?0:v.skipProcessing)&&R.responseProcessorMap){v=_.V(x35);for(var Q=v.next();!Q.done;Q=v.next())Q=Q.value,R.responseProcessorMap[Q]&&R.responseProcessorMap[Q].handleResponse(y,u)}};
Odw=function(R,y,u,v){v=v===void 0?function(){}:v;
var Q,M,K,h,b,N,T,x,B,l,Z,P,k,E,D,z,c,a,L,QG,hz,bO,BW,Zc,xS,Dc,$S,hL,WK,JL,sP,wg,bT,HK,Ta,Sg,MU,vK,eg,oP;return _.I(function(BK){switch(BK.nextAddress){case 1:K=(Q=y.config)==null?void 0:(M=Q.storeStrategy)==null?void 0:M.storeKey;if(!(K&&R.innertubeResponseStore&&R.innertubeResponseStore.has(K))||((h=y.config)==null?0:(b=h.storeStrategy)==null?0:b.disableCache)){BK.jumpTo(2);break}return BK.yield(R.innertubeResponseStore.get(K),3);case 3:if((N=BK.yieldResult)&&!N.isExpired())return BK.return(Promise.resolve(_.KR(N)));
case 2:if(!((T=y)==null?0:(x=T.innerTubeRequest)==null?0:x.context)){BK.jumpTo(4);break}B=y.innerTubeRequest.context;if(!(R.asyncContextProcessors&&R.asyncContextProcessors.length>0)){BK.jumpTo(5);break}l=[];Z=_.V(R.asyncContextProcessors);for(P=Z.next();!P.done;P=Z.next())k=P.value,E=k.processContext(y),E.wrappedPromise_&&l.push(E.wrappedPromise_);if(!(l.length>0)){BK.jumpTo(5);break}return BK.yield(Promise.all(l),5);case 5:D=_.V(R.contextProcessors||[]),z=D.next();case 8:if(z.done){BK.jumpTo(4);
break}c=z.value;return BK.yield(c.processContext(B),9);case 9:z=D.next();BK.jumpTo(8);break;case 4:if((a=R.localInnertubeRouter)==null||!a.shouldPreferLocalResponse(y.input,y.innerTubeRequest)){BK.jumpTo(12);break}return BK.yield(R.localInnertubeRouter.localInnertubeResponse(y.input,y.innerTubeRequest),13);case 13:return L=BK.yieldResult,cR(R,L,y),BK.return(L);case 12:return(bO=(hz=y.config)==null?void 0:hz.requestKey)&&R.inflightRequests.has(bO)?QG=R.inflightRequests.get(bO):(BW=JSON.stringify(y.innerTubeRequest),
Dc=(xS=(Zc=y.requestShell)==null?void 0:Zc.headers)!=null?xS:{},y.requestShell=Object.assign({},y.requestShell,{headers:Object.assign({},Dc,u)}),$S=Object.assign({},y.requestShell),y.requestShell.method==="POST"&&($S=Object.assign({},$S,{body:BW})),((hL=y.config)==null?0:hL.requestTick)&&_.qQ(y.config.requestTick),WK=function(){return R.networkManager.fetch(y.input,$S,y.config)},QG=R.requestSequencer?HdT(R.requestSequencer,y,WK):WK(),bO&&R.inflightRequests.set(bO,QG)),BK.yield(QG,14);
case 14:(JL=BK.yieldResult)&&_.f("web_streaming_player")&&Array.isArray(JL)&&(JL=JL[0].playerResponse);if(JL&&"error"in JL&&((sP=JL)==null?0:(wg=sP.error)==null?0:wg.details))for(bT=JL.error.details,HK=_.V(bT),Ta=HK.next();!Ta.done;Ta=HK.next())Sg=Ta.value,(MU=Sg["@type"])&&BPV.indexOf(MU)>-1&&(delete Sg["@type"],JL=Sg);bO&&R.inflightRequests.has(bO)&&R.inflightRequests.delete(bO);((vK=y.config)==null?0:vK.responseTick)&&_.qQ(y.config.responseTick);if(JL||(eg=R.localInnertubeRouter)==null||!eg.canProvideFallbackResponse(y.input,
y.innerTubeRequest)){BK.jumpTo(15);break}return BK.yield(R.localInnertubeRouter.localFallbackInnertubeResponse(y.input,y.innerTubeRequest),16);case 16:JL=BK.yieldResult;case 15:return cR(R,JL,y),((oP=y.config)==null?0:oP.processorTick)&&_.qQ(y.config.processorTick),v(),BK.return(JL||void 0)}})};
_.R8=function(R,y){return FO8(y,R.endpointMap)};
N_5=function(R,y){R=N4U(y,R.endpointMap);if(R!==void 0)return Promise.resolve(R)};
lBg=function(R,y){var u,v,Q,M;return _.I(function(K){if(K.nextAddress==1){Q=(u=R)==null?void 0:(v=u.authStrategy)==null?void 0:v.sessionIndex;var h=K.yield;var b=_.NQ(ov8({sessionIndex:Q}));return h.call(K,b,2)}M=K.yieldResult;return K.return(Promise.resolve(Object.assign({},T4S(y),M)))})};
eiY=function(R,y){var u;R=R==null?void 0:(u=R.authStrategy)==null?void 0:u.sessionIndex;u=ov8({sessionIndex:R});return Object.assign({},T4S(y),u)};var nfT,G_g,rog,PF5,WY5,d3c,Efi,$3T,Y1,qdb,XIK,k_L,m3i;nfT=0;G_g=/tone[1-5]/;rog=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");PF5="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
WY5=Number.MAX_SAFE_INTEGER;d3c=RegExp("\ufe0f","g");_.aJ=function(R){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;R&&_.U3Y(this,R)};
_.U3Y=function(R,y){try{_.wR(y,{context:R,onSuccess:function(v,Q){Array.isArray(Q)?R.load(Q):(v=new _.OL("Emoji manager JSON response was not an array!",{response:Q}),_.dI(v))},
onError:function(v){v=new _.OL("Failed to retrieve emoji manager initial JSON data!",{url:y,statusCode:_.KJ(v).toString()});_.kT(v)}})}catch(v){var u=new _.OL("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:y});
_.kT(u)}};
_.aJ.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.aJ.prototype.load=function(R,y){if(y)if(R.length)R=R.concat(y.emojis);else{this.emojis=y.emojis;this.emojiMap=y.emojiMap;this.emojiShortcutMap=y.emojiShortcutMap;this.emojiShortcutCharMap=k_L(y);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=y.emojiRegex;return}this.emojis=[].concat(_.P$(new Set(this.emojis.concat(R))));this.hasInitializedShortcutCharMap=!1;R=Array(this.emojis.length);for(y=0;y<this.emojis.length;y++){var u=this.emojis[y];if(u.emojiId){this.emojiMap[u.emojiId]=u;this.emojiMap[u.emojiId].index=
y;for(var v=0;u.shortcuts&&v<u.shortcuts.length;v++)this.emojiShortcutMap[u.shortcuts[v].toLocaleLowerCase()]=u;R[y]=u.isCustomEmoji&&u.shortcuts?u.shortcuts[0]:u.emojiId}}R.sort(function(Q,M){return M.length-Q.length});
if(R.length)try{this.emojiRegex=new RegExp(R.join("|").replace("*","\\*"),"gi")}catch(Q){this.emojiRegex=/$./}else this.emojiRegex=/$./};
Efi=function(R,y){y=_.V(y);for(var u=y.next();!u.done;u=y.next()){var v=u.value;if(v.emojiId&&R.emojiMap[v.emojiId]){u=Object.assign({},R.emojiMap[v.emojiId],v);R.emojiMap[v.emojiId]=u;var Q=void 0;u.index&&((Q=R.emojis[u.index])==null?void 0:Q.emojiId)===v.emojiId&&(R.emojis[u.index]=u);v=void 0;if((v=u.shortcuts)==null?0:v.length)for(R.hasInitializedShortcutCharMap=!1,v=_.V(u.shortcuts),Q=v.next();!Q.done;Q=v.next())R.emojiShortcutMap[Q.value.toLocaleLowerCase()]=u}}};
$3T=function(R){var y,u;_.I(function(v){if(v.nextAddress==1)return v.yield(_.ET.getInstance(),2);if(v.nextAddress!=3)return(y=v.yieldResult)?v.yield(y.get("ytlc-emoji-pref"),3):v.return();(u=v.yieldResult)&&Efi(R,Object.keys(u).map(function(Q){return{emojiId:Q,stickyPrefId:u[Q]}}).filter(function(Q){return!!Q.emojiId&&!!Q.stickyPrefId}));
_.f$(v)})};
_.Su=function(R,y,u){return(R=R.emojiMap[y])&&(!R.isLocked||u!==void 0&&u)?R:void 0};
Y1=function(R,y,u){u=_.Su(R,y,u===void 0?!1:u);var v=y.match("\u200d");u&&R.skinTone!==0&&(R=(v==null?void 0:v.length)===1?_.Su(R,y.replace("\u200d",rog[R.skinTone]+"\u200d")):_.Su(R,y+rog[R.skinTone]))&&(u=R);return u};
qdb=function(R,y){var u=R.emojiMap[y];return(u==null?0:u.stickyPrefId)?R.emojiMap[u.stickyPrefId]:Y1(R,y)};
_.e8=function(R,y){R=R.emojiShortcutMap[y.toLocaleLowerCase()];return!R||R.isLocked?null:R};
XIK=function(R,y,u){return k_L(R,u===void 0?!1:u)[y]||{}};
k_L=function(R,y){y=y===void 0?!1:y;if(!R.hasInitializedShortcutCharMap){R.hasInitializedShortcutCharMap=!0;for(var u=0;u<R.emojis.length;u++){var v=R.emojis[u];if(!(v.isLocked||y&&v.isCustomEmoji&&v.emojiId&&!R.pickerCustomEmojiIds.includes(v.emojiId)))for(var Q=0;v.shortcuts&&Q<v.shortcuts.length;Q++){var M=v.shortcuts[Q];M.startsWith(":_")&&v.isCustomEmoji&&(R.emojiShortcutCharMap[":_"]==null&&(R.emojiShortcutCharMap[":_"]=Object.create(null)),R.emojiShortcutCharMap[":_"][M]=v);if(!(M.length<3||
!v.isCustomEmoji&&G_g.test(M))){var K=M.substr(0,3).toLocaleLowerCase();R.emojiShortcutCharMap[K]==null&&(R.emojiShortcutCharMap[K]=Object.create(null));R.emojiShortcutCharMap[K][M]=v}}}}return R.emojiShortcutCharMap};
_.aJ.prototype.createEmoji=function(R,y){y=y===void 0?!0:y;var u=document.createElement("img");R.isCustomEmoji||u.classList.add("small-emoji");u.classList.add("emoji");u.classList.add("yt-formatted-string");u.src=R.image?_.b0(R.image.thumbnails,this.emojiSize)||"":"";var v=void 0;R.image&&R.image.accessibility&&R.image.accessibility.accessibilityData&&(v=R.image.accessibility.accessibilityData.label);u.alt=v?v:(R.isCustomEmoji&&R.shortcuts?R.shortcuts[0]:R.emojiId)||"";R.isCustomEmoji&&(u.dataset.emojiId=
R.emojiId);_.wV&&(u.setAttribute("contenteditable","false"),u.setAttribute("unselectable","on"));y&&(R.shortcuts&&R.shortcuts.length&&u.setAttribute("shared-tooltip-text",R.shortcuts[0]),u.id="emoji-"+nfT++);return u};
_.aJ.prototype.createDocumentFragment=function(R,y,u,v){y=y===void 0?!1:y;u=u===void 0?!0:u;v=v===void 0?!1:v;R=R.replace(d3c,"");for(var Q=document.createDocumentFragment(),M=0,K,h=0;(K=this.emojiRegex.exec(R))!=null;){var b=_.Su(this,K[0])||_.e8(this,K[0]);!b||b.isCustomEmoji&&!y||(b=this.createEmoji(b,u),M!==K.index&&Q.appendChild(document.createTextNode(R.substring(M,K.index))),Q.appendChild(b),M=K.index+K[0].length,h++)}if(!v||h)return Q.appendChild(document.createTextNode(R.substr(M))),Q};
m3i=function(R,y,u){var v,Q,M,K,h,b,N,T,x;return _.I(function(B){if(B.nextAddress==1){if(!y.emojiId||!R.emojiMap[y.emojiId])return B.return();v=Object.assign({},R.emojiMap[y.emojiId],{stickyPrefId:u});R.emojiMap[y.emojiId]=v;y.index&&((Q=R.emojis[y.index])==null?void 0:Q.emojiId)===y.emojiId&&(R.emojis[y.index]=v);if((M=y.shortcuts)==null?0:M.length)for(R.hasInitializedShortcutCharMap=!1,K=_.V(y.shortcuts),h=K.next();!h.done;h=K.next())b=h.value,R.emojiShortcutMap[b.toLocaleLowerCase()]=v;return B.yield(_.ET.getInstance(),
2)}if(B.nextAddress!=4)return(N=B.yieldResult)?B.yield(N.get("ytlc-emoji-pref"),4):B.jumpTo(0);x=(T=B.yieldResult)!=null?T:{};x[y.emojiId]=u;return B.yield(N.set("ytlc-emoji-pref",x,WY5),0)})};
_.LQ=new _.aJ;var pI8;_.sj={};
pI8={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.f("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:_.f("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 gN(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=_.hw(this.hostElement||this).querySelector("#inline-action-button-container");R&&R.setAttribute("aria-hidden","true");this.menuButton=_.hw(this.hostElement).querySelector("#menu-button")},
attached:function(){var R=this.menuButton;R&&(R.addEventListener("focusin",_.BN(this,this.onMenuButtonFocus_)),R.addEventListener("focusout",_.BN(this,this.onMenuButtonBlur_)))},
detached:function(){var R=this.menuButton;R&&(R.removeEventListener("focusin",_.BN(this,this.onMenuButtonFocus_)),R.removeEventListener("focusout",_.BN(this,this.onMenuButtonBlur_)))},
identity:_.kS,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 R},
computeMenuVisible_:function(R,y){return R||y},
computeHasInlineActionButtons:function(R){if(!R)return!1;var y,u;return!((y=R.inlineActionButtons)==null||!y.length)||!((u=R.additionalInlineActionButtons)==null||!u.length)},
createDocumentFragmentFromString:function(R){var y=_.LQ.createDocumentFragment.bind(_.LQ),u;if((u=this.participantsManager)==null||!u.viewerRegex)return y(R);u=document.createDocumentFragment();for(var v=0,Q;(Q=this.participantsManager.viewerRegex.exec(R))!=null;){if(Q.index>0){var M=":"+Q[0]+":";if((_.Su(_.LQ,M)||_.e8(_.LQ,M))&&R.indexOf(M)===Q.index-1)continue}u.appendChild(y(R.substring(v,Q.index)));v=document.createElement("span");v.appendChild(y(Q[0]));v.classList.add("mention");u.appendChild(v);
v=Q.index+Q[0].length}u.appendChild(y(R.substring(v)));return u},
createDocumentFragment:function(R){var y=document.createDocumentFragment();if(R.simpleText)return y.appendChild(this.createDocumentFragmentFromString(R.simpleText)),y;if(!R.runs)return y;for(var u=0;u<R.runs.length;u++){var v=R.runs[u];if(v.emoji)y.appendChild(_.LQ.createEmoji(v.emoji));else if(v.text)if(v.navigationEndpoint){var Q=document.createElement("a");Q.classList.add("yt-simple-endpoint");$pO(Q,v.navigationEndpoint);_.hw(Q).appendChild(this.createDocumentFragmentFromString(v.text));y.appendChild(Q)}else y.appendChild(this.createDocumentFragmentFromString(v.text))}return y},
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(y){return(y=y instanceof Element?y:null)?y.tagName&&(y.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||y.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.f("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(R)},
colorFromDecimal:function(R){return YHU(R)},
markAsDeleted:function(R,y){this.set("data.deletedStateMessage",R);this.set("data.showOriginalContentMessage",y)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(R){if(this.data.contextMenuEndpoint){var y=_.ua().resolve(_.AU),u=this.data.contextMenuEndpoint,v;(v=_.Ch.instance)&&_.R8(v,u)?(y=AoY(y,u),v=_.am(v,{},y)):v=_.D3w(y,u);v.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);R&&R.stopPropagation()}},
handleGetContextMenuResponse_:function(R){var y=_.Ch.instance;y&&_.R8(y,{liveChatEndpoint:{}})||(R=R.response);R.liveChatItemContextMenuSupportedRenderers&&R.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(R.liveChatItemContextMenuSupportedRenderers.menuRenderer);R.actions&&_.Ik(this.hostElement,"yt-live-chat-actions",[R.actions])},
handleGetContextMenuError:function(R){if(R instanceof Error||R instanceof Object||R instanceof String)var y=R;_.dI(new _.OL("Error encountered calling GetLiveChatItemContextMenu",y))},
showContextMenu_:function(R){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:R}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.Ko(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.Ko(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.sj.YtLiveChatItemBehavior=[pI8,_.sx.YtComponentBehavior,_.Oj.YtOpenPopupBehavior];_.zi=function(){};var t$5;var coK;var aBV;var Sdg;var gj=function(){var R=_.W.apply(this,arguments)||this;R.active=!1;R.identity=_.kS;return R};
_.O(gj,_.W);gj.prototype.dataChanged=function(){this.active=!1};
gj.prototype.onClick=function(){_.Ko(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
gj.prototype.dataChanged=gj.prototype.dataChanged;_.A([_.r(),_.p("design:type",Object)],gj.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],gj.prototype,"active",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gj.prototype,"dataChanged",null);_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],gj);
_.m(gj,"yt-live-chat-text-input-field-suggestion",function(){if(Sdg===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;aBV===void 0&&(aBV=document.createElement("template"));var v=aBV;u.call(y,v.content.cloneNode(!0),R.content.firstChild);Sdg=R}R=Sdg;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});_.CQ=function(R,y,u){return CustomEvent.call(this,R,{detail:{value:y,path:u}})||this};
_.O(_.CQ,CustomEvent);_.RS=function(){var R=_.W.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};
_.O(_.RS,_.W);_.J=_.RS.prototype;_.J.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.J.addParticipant=function(R){var y=_.GT4(this.participants,R,function(v,Q){v=v[Object.keys(v)[0]];Q=Q[Object.keys(Q)[0]];v=String(_.u7(v.authorName)).toLowerCase();Q=String(_.u7(Q.authorName)).toLowerCase();return v<Q?-1:v==Q?0:1}.bind(this));
if(y>=0){var u=this.participants[y];u[Object.keys(u)[0]].timestampUsec&&this.splice("participants",y,1,R)}else this.splice("participants",-y-1,0,R);R=R[Object.keys(R)[0]];y=_.u7(R.authorName).toLocaleLowerCase();u=y.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(u)||(this.allParticipantsCharMap_[u]={});this.allParticipantsCharMap_[u][y]=R};
_.J.getAuthorsFromPrefix=function(R){return this.allParticipantsCharMap_.hasOwnProperty(R)?this.allParticipantsCharMap_[R]:null};
_.J.computeViewerRegex_=function(R){if(!R)return null;R=R.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var y=R.indexOf("@")===0&&_.f("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(y+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")};
_.J.checkForStaleParticipants_=function(){var R=this;this.trimOldParticipants_();this.asyncHandle_&&B_L(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.s7(function(){R.checkForStaleParticipants_()},3E4))};
_.J.onChatMessage_=function(R){var y=this,u=Date.now()*1E3;R.forEach(function(v){if(v=_.e(v,aRV)){v=v.item;var Q=Object.keys(v)[0];y.SUPPORTED_ITEM_TYPES_.indexOf(Q)!=-1&&v[Q].timestampUsec>=u-y.PARTICIPANT_TIME_USEC_&&y.addParticipant(v)}},this);
this.checkForStaleParticipants_()};
_.J.trimOldParticipants_=function(){for(var R=Date.now()*1E3,y=this.participants.length-1;y>=0;y--){var u=this.participants[y];u=u[Object.keys(u)[0]];u.timestampUsec&&u.timestampUsec<R-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",y,1)}};
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],_.RS.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],_.RS.prototype,"viewerName",void 0);_.A([_.r({computed:"computeViewerRegex_(viewerName)"}),_.p("design:type",Object)],_.RS.prototype,"viewerRegex",void 0);_.A([_.r({value:function(){return[]},
notify:!0}),_.p("design:type",Array)],_.RS.prototype,"participants",void 0);_.A([_.pu({is:"yt-live-chat-participants-manager",noInjection:!0})],_.RS);var Ydi=/.*([:@#].*?)$/,yv=/\u00a0/g,LY8=String.fromCharCode(160),s68={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"},uq=function(){var R=_.W.apply(this,arguments)||this;R.disabled=!1;R.liveChatRichMessageInput=null;R.messageInput=null;R.isValidWithNoInputText=!1;R.suggestions=[];R.emojiManager=_.LQ;R.inputMethodEditorActive=
!1;R.suggestionIndex=-1;R.JSC$14026_lastSuggestionRange=null;return R};
_.O(uq,_.W);_.J=uq.prototype;_.J.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.J.attached=function(){_.NO&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.J.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.J.dataChanged=function(){if(!this.ignoreColorMapping){var R=!1,y={},u;for(u in s68)this.data&&this.data.hasOwnProperty(u)&&(y[s68[u]]=this.colorFromDecimal(this.data[u]),R=!0);R&&_.oX(this.hostElement,y)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.J.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.J.colorFromDecimal=function(R){R=Math.floor(Number(R));return"rgba("+[R>>16&255,R>>8&255,R&255,(R>>24&255)/255].join()+")"};
_.J.preventDrag=function(R){R.dataTransfer&&(R.dataTransfer.dropEffect="none");R.preventDefault()};
_.J.preventResize=function(R){R.returnValue=!1};
_.J.onInputChange=function(){var R=this.characterCount,y=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&y&&y.remove();if(!y&&this.characterCount>this.maxCharacterLimit){var u=window.getSelection();if(u){var v=u.getRangeAt(0);u.removeAllRanges();u.addRange(v)}}if(u=this.getCurrentRange())v=this.calculateTextBeforeRange(u),this.completeEmojisInRange(u,v,!0)||this.updateSuggestions(u,v);v=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(v);
_.Ko(this.hostElement,"yt-live-chat-message-input-change",v);y&&this.characterCount===0&&y.remove();u&&u.commonAncestorContainer.parentElement.id==="input"&&u.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>R):u&&!u.collapsed&&u.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()};
_.J.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.J.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var R=this.getCurrentRange();R&&R.commonAncestorContainer.parentElement.id==="input"&&R.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.J.mergeOverflowText=function(R){if(R){var y=document.createRange();y.selectNodeContents(R);y=y.extractContents();this.input.insertBefore(y,R)}};
_.J.checkRangeAtEndOfInput=function(){var R=this.getCurrentRange();if(R){var y=_.hw(this.hostElement).querySelector("#overflow-text"),u=document.createRange();y&&y.previousSibling?y.previousSibling instanceof HTMLImageElement?u.selectNode(y.previousSibling):u.selectNodeContents(y.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?u.selectNode(this.input.lastChild):u.selectNodeContents(this.input.lastChild));u.collapse(!1);return u.isPointInRange(R.startContainer,
R.startOffset)}return!1};
_.J.handleOverflowText=function(R){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var y=_.hw(this.hostElement).querySelector("#overflow-text"),u=this.getCurrentRange();this.input.normalize();R=this.checkRangeAtEndOfInput()&&R;this.mergeOverflowText(y);for(var v,Q=0,M=0,K,h=this.input.childNodes,b=0;b<h.length;b++){var N=h[b];N instanceof Text?(M+=N.textContent.length,M>this.maxCharacterLimit&&(v=N,Q=this.maxCharacterLimit+N.textContent.length-M)):N instanceof HTMLImageElement&&
(v=void 0,M=N.dataset.emojiId&&((v=this.data)==null?0:v.emojiCharacterCount)?M+this.data.emojiCharacterCount:M+N.alt.length,v=this.input,Q=b);if(M>this.maxCharacterLimit&&v){K=document.createRange();K.collapse(!1);y?(M=this.input.lastChild.previousSibling,M instanceof Text?K.setEnd(this.input.lastChild.previousSibling,M.textContent.length):M instanceof HTMLImageElement&&K.setEnd(this.input,this.input.childNodes.length-1)):K.selectNodeContents(this.input);K.setStart(v,Q);break}}K&&(v=!1,u&&(R=K.isPointInRange(u.startContainer,
u.startOffset-1)),y||(y=document.createElement("span"),y.id="overflow-text",y.textContent="",y.setAttribute("contenteditable","true"),_.hw(_.hw(this.hostElement).querySelector("#input")).appendChild(y),v=!0),y&&(u=K.extractContents(),y.insertBefore(u,y.firstChild),R&&y.firstChild&&(u=document.createRange(),v?u.setStartAfter(y.lastChild):u.setStartAfter(y.firstChild),u.collapse(!0),y=window.getSelection(),y.removeAllRanges(),y.addRange(u))))}};
_.J.checkForDuplicateSpans=function(){for(var R=0;R<this.input.childNodes.length;R++){var y=this.input.childNodes[R];if(y.nodeName==="SPAN"){var u=document.createRange();u.selectNodeContents(y);u=u.extractContents();this.input.insertBefore(u,y);y.remove()}}this.handleOverflowText(!0)};
_.J.getCurrentRange=function(){var R=window.getSelection();return R&&R.rangeCount?R.getRangeAt(0).cloneRange():null};
_.J.getInputRange=function(){var R=this.getCurrentRange();if(R){for(var y=R.commonAncestorContainer,u=!1,v=_.hw(this.hostElement).querySelector("#input");y;){if(y===v){u=!0;break}y=y.parentNode}u||(R=null)}R||(R=this.getRangeAtEnd());return R};
_.J.getRangeAtEnd=function(){var R=document.createRange(),y=_.hw(this.hostElement).querySelector("#input").lastChild;!y||y.nodeName!=="#text"&&y.nodeName!=="SPAN"?(R.selectNodeContents(_.hw(this.hostElement).querySelector("#input")),R.collapse(!1)):y.nodeName==="#text"?R.setStart(y,y.textContent.length):R.setStart(y,y.childNodes.length);return R};
_.J.getChatParticipantSuggestions=function(R,y,u,v){var Q=_.f("live_chat_enable_handles_web_text_input_update");if(y)for(var M in y)if(M.indexOf(R)===0||Q&&M.indexOf(u+R)===0){var K=y[M],h=_.u7(K.authorName);v.push({suggestion:{author:!0,authorType:u,image:K.authorPhoto,alt:h,text:h}});if(v.length>=64)break}};
_.J.getSuggestions=function(R){var y=[],u=R.substring(0,3),v=XIK(_.LQ,u,!0);if(v)for(var Q in v)if(Q.toLocaleLowerCase().indexOf(R)===0){var M=v[Q];if(M&&M.emojiId){if(M=qdb(_.LQ,M.emojiId)){var K=void 0,h=void 0,b=void 0,N=void 0,T=((K=M.image)==null?0:(h=K.accessibility)==null?0:(b=h.accessibilityData)==null?0:b.label)||M.isCustomEmoji?(N=M.shortcuts)==null?void 0:N[0]:M.emojiId;y.push({suggestion:{emoji:!0,image:M.image,alt:T,text:Q,textToInsertWhenSelected:M.isCustomEmoji?Q:T}})}if(y.length>=
64)break}}if(!this.participantsManager)return null;if(u.indexOf("@")===0||u.indexOf("#")===0)v=u.charAt(0),R=R.substring(1),Q=_.f("live_chat_enable_handles_web_text_input_update"),u.indexOf("@")===0&&Q&&(Q=this.participantsManager.getAuthorsFromPrefix(u.substring(0,2)),this.getChatParticipantSuggestions(R,Q,v,y)),u=u.substring(1),u=this.participantsManager.getAuthorsFromPrefix(u),this.getChatParticipantSuggestions(R,u,v,y);return y?y.sort(function(x,B){return B.suggestion.text<x.suggestion.text?-1:
B.suggestion.text===x.suggestion.text?0:1}):null};
_.J.insertSuggestion=function(R){var y=_.f("live_chat_enable_handles_web_text_input_update"),u=R.authorType;y=R.text.indexOf(u)===0&&y?R.text+LY8:u+R.text+LY8;R.emoji?this.insertTextAtRange(this.JSC$14026_lastSuggestionRange,R.textToInsertWhenSelected||""):R.author&&this.insertTextAtRange(this.JSC$14026_lastSuggestionRange,y)};
_.J.updateSuggestionsAtCaret=function(){var R=this.getCurrentRange();R&&this.updateSuggestions(R,this.calculateTextBeforeRange(R))};
_.J.offsetStartOfRangeBy=function(R,y){for(;y>0;)if(R.startOffset-y>=0){R.setStart(R.startContainer,R.startOffset-y);break}else{y=R.startContainer instanceof HTMLImageElement?y-R.startContainer.alt.length:y-R.startOffset;var u=R.startContainer.previousSibling;if(!u){R.setStart(R.startContainer,0);break}if(_.f("live_chat_require_space_for_autocomplete_emoji")){var v=void 0,Q=void 0;R.setStart(u,((v=u)==null?void 0:(Q=v.textContent)==null?void 0:Q.length)||0)}else R.setStart(u,u.childNodes.length||
0)}};
_.J.updateSuggestions=function(R,y){var u=this;this.JSC$14026_lastSuggestionRange&&(this.JSC$14026_lastSuggestionRange.detach(),this.JSC$14026_lastSuggestionRange=null);if((y=Ydi.exec(y))&&y.length&&(y=y[y.length-1].toLocaleLowerCase(),y.length>2&&(this.offsetStartOfRangeBy(R,y.length),this.JSC$14026_lastSuggestionRange=R,(R=this.getSuggestions(y))&&R.length))){this.suggestions=R;_.gn(this,function(){_.hw(u.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};
_.J.completeEmojisInRange=function(R,y,u){var v=y.replace(/[\s\xa0]+$/,"");y=y.length-v.length;v=v.split(" ");v=v[v.length-1].trim().toLocaleLowerCase();var Q=v.lastIndexOf(":");if(u&&!y&&Q!==v.length-1)return!1;Q!==-1&&(u=v.lastIndexOf(":",Q-1),u!==-1&&(v=v.substring(u)));if((u=_.e8(_.LQ,v))&&u.emojiId){u=qdb(_.LQ,u.emojiId)||null;this.offsetStartOfRangeBy(R,v.length+y);var M,K,h,b;v=(((M=u)==null?0:M.isCustomEmoji)?(K=u)==null?void 0:(h=K.shortcuts)==null?void 0:h[0]:(b=u)==null?void 0:b.emojiId)||
"";y&&(v+=LY8);this.insertTextAtRange(R,v);this.dropdown.opened=!1;return!0}return!1};
_.J.onSuggestion=function(R){this.insertSuggestion(R.detail);this.dropdown.opened=!1};
_.J.onKeyPress=function(R){R.keyCode===13&&(R.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.Ko(this.hostElement,"yt-live-chat-send-message"))};
_.J.completeEmojis=function(){var R=document.createRange(),y=_.hw(this.hostElement).querySelector("#input").lastChild;y?R.setStart(y,y.childNodes.length):(R.selectNodeContents(_.hw(this.hostElement).querySelector("#input")),R.collapse(!1));this.completeEmojisInRange(R,this.calculateTextBeforeRange(R),_.f("live_chat_require_space_for_autocomplete_emoji"))};
_.J.maybePreventTextFormatting=function(R){!_.BQ||!R.ctrlKey&&!R.metaKey||R.keyCode!==66&&R.keyCode!==73||(R.stopImmediatePropagation(),R.preventDefault())};
_.J.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()}};
_.J.onKeyUp=function(R){switch(R.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.wV)this.onInputChange()};
_.J.changeSuggestionIndex=function(R){if(this.dropdown.opened){var y=_.hw(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<y.children.length&&(y.children[this.suggestionIndex].active=!1);var u=this.suggestions.length;this.suggestionIndex=(R+u)%u;R=y.children[this.suggestionIndex];R.active=!0;y.scrollTop=R.offsetTop}};
_.J.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)};
_.J.onFocus=function(){this._setFocused(!0)};
_.J.onBlur=function(){this._setFocused(!1)};
_.J.insertText=function(R){this.insertTextAtRange(this.getInputRange(),R)};
_.J.insertTextAtRange=function(R,y){if(R&&(R.collapsed||R.deleteContents(),y=_.LQ.createDocumentFragment(y,!0,!1))){for(var u=_.V((y==null?void 0:y.childNodes)||[]),v=u.next();!v.done;v=u.next()){v=v.value;var Q=void 0,M=void 0,K=void 0,h=void 0,b=void 0;(K=(Q=window)==null?void 0:(M=Q.ShadyCSS)==null?void 0:M.ScopingShim)==null||(b=(h=K).scopeNode)==null||b.call(h,v,this.hostElement.localName)}u=y.lastChild;R.insertNode(y);this.focused||this.input.focus();if(this.focused){R=R.cloneRange();R.selectNodeContents(u);
R.collapse(!1);if(y=window.getSelection())y.removeAllRanges(),y.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);_.Ko(this.hostElement,"yt-live-chat-message-input-change",R)}};
_.J.setLiveChatRichMessageInput=function(R){_.hw(_.hw(this.hostElement).querySelector("#input")).textContent="";if(R&&R.textSegments){for(var y=0;y<R.textSegments.length;y++){var u=R.textSegments[y];u.text?_.hw(_.hw(this.hostElement).querySelector("#input")).appendChild(_.LQ.createDocumentFragment(u.text,!0,!1)):u.emojiId&&(u=_.Su(_.LQ,u.emojiId))&&_.hw(_.hw(this.hostElement).querySelector("#input")).appendChild(_.LQ.createEmoji(u,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.J.setText=function(R){this.setLiveChatRichMessageInput(R?{textSegments:[{text:R}]}:null)};
_.J.calculateTextBeforeRange=function(R){var y="",u=R.startContainer;if(u&&u instanceof Text){var v;y=((v=u.textContent)==null?void 0:v.substring(0,R.startOffset))||"";u=u.previousSibling}for(;u&&u instanceof Text;)y=u.textContent+y,u=u.previousSibling;return y.replace(yv," ")};
_.J.calculateLiveChatRichMessageInput=function(){for(var R=[],y="",u=_.hw(_.hw(this.hostElement).querySelector("#input")).childNodes,v=0;v<u.length;v++){var Q=u[v];Q instanceof Text?y+=Q.textContent:Q instanceof HTMLImageElement&&(Q.dataset.emojiId?(y&&(R.push({text:y.replace(yv," ")}),y=""),R.push({emojiId:Q.dataset.emojiId})):y+=Q.alt)}y&&R.push({text:y.replace(yv," ")});if(u=_.hw(this.hostElement).querySelector("#overflow-text")){y="";u=u.childNodes;for(v=0;v<u.length;v++)Q=u[v],Q instanceof Text?
y+=Q.textContent:Q instanceof HTMLImageElement&&(Q.dataset.emojiId?(y&&(R.push({text:y.replace(yv," ")}),y=""),R.push({emojiId:Q.dataset.emojiId})):y+=Q.alt);y&&R.push({text:y.replace(yv," ")})}return{textSegments:R}};
_.J.computeCharacterCount=function(R){if(!R||!R.textSegments)return 0;for(var y=0,u=0;u<R.textSegments.length;u++){var v=R.textSegments[u];if(v.text)y+=v.text.length;else if(v.emojiId){var Q=void 0;if((Q=this.data)==null?0:Q.emojiCharacterCount)y+=this.data.emojiCharacterCount;else{var M=Q=void 0,K=void 0;y+=((M=_.Su(_.LQ,(Q=v)==null?void 0:Q.emojiId))==null?void 0:(K=M.shortcuts)==null?void 0:K[0].length)||0}}}return y};
_.J.characterCountChanged=function(){_.Ko(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.J.focusedChanged=function(){this.hostElement.dispatchEvent(new _.CQ("focused-changed",this.focused))};
_.J.focus=function(){this.setFocus(!1)};
_.J.focusAtEnd=function(){this.setFocus(!0)};
_.J.setFocus=function(R){R=R?this.getRangeAtEnd():this.getInputRange();_.hw(this.hostElement).querySelector("#input").focus();var y=window.getSelection();y&&(y.removeAllRanges(),y.addRange(R))};
_.J.insertEmoji=function(R){var y,u=((R==null?0:R.isCustomEmoji)?(y=R.shortcuts)==null?void 0:y[0]:R==null?void 0:R.emojiId)||"";this.insertText(u)};
_.J.computeText=function(R){if(!R||!R.textSegments)return"";for(var y="",u=0;u<R.textSegments.length;u++){var v=R.textSegments[u];if(v.text)y+=v.text;else if(v.emojiId){var Q=void 0,M=void 0,K=void 0;y+=((M=_.Su(_.LQ,(Q=v)==null?void 0:Q.emojiId))==null?void 0:(K=M.shortcuts)==null?void 0:K[0])||""}}return y};
_.J.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.RR.Object.defineProperties(uq.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}}});
uq.prototype.focusedChanged=uq.prototype.focusedChanged;uq.prototype.characterCountChanged=uq.prototype.characterCountChanged;uq.prototype.onSuggestion=uq.prototype.onSuggestion;uq.prototype.onMessageSet=uq.prototype.onMessageSet;uq.prototype.dataChanged=uq.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],uq.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],uq.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],uq.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],uq.prototype,"disabled",void 0);_.A([_.G("disabled"),_.p("design:type",Number),_.p("design:paramtypes",[])],uq.prototype,"inputTabIndex",null);_.A([_.G("data.maxCharacterLimit"),_.r({readOnly:!0,notify:!0}),_.p("design:type",Number),_.p("design:paramtypes",[])],uq.prototype,"maxCharacterLimit",null);
_.A([_.G("liveChatRichMessageInput"),_.r({readOnly:!0,notify:!0}),_.p("design:type",Number),_.p("design:paramtypes",[])],uq.prototype,"characterCount",null);_.A([_.G("maxCharacterLimit, characterCount"),_.r({readOnly:!0,notify:!0}),_.p("design:type",Number),_.p("design:paramtypes",[])],uq.prototype,"remainingCharacterCount",null);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],uq.prototype,"isChatMessageInput",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],uq.prototype,"inputExpanded",void 0);_.A([_.r({readOnly:!0,notify:!0}),_.p("design:type",Object)],uq.prototype,"liveChatRichMessageInput",void 0);_.A([_.r(),_.p("design:type",Object)],uq.prototype,"messageInput",void 0);_.A([_.r(),_.p("design:type",Boolean)],uq.prototype,"ignoreColorMapping",void 0);_.A([_.G("characterCount"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],uq.prototype,"hasText",null);
_.A([_.r(),_.p("design:type",Object)],uq.prototype,"isValidWithNoInputText",void 0);_.A([_.G("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.r(),_.p("design:type",Boolean),_.p("design:paramtypes",[])],uq.prototype,"isInputValid",null);_.A([_.r({readOnly:!0,value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],uq.prototype,"focused",void 0);_.A([_.r(),_.p("design:type",Array)],uq.prototype,"suggestions",void 0);
_.A([_.r(),_.p("design:type",_.aJ)],uq.prototype,"emojiManager",void 0);_.A([_.r(),_.p("design:type",_.RS)],uq.prototype,"participantsManager",void 0);_.A([_.r(),_.p("design:type",Boolean)],uq.prototype,"noUnderline",void 0);_.A([_.r(),_.p("design:type",Object)],uq.prototype,"inputMethodEditorActive",void 0);_.A([_.O7("#dropdown"),_.p("design:type",Object)],uq.prototype,"dropdown",void 0);_.A([_.O7("#input"),_.p("design:type",HTMLElement)],uq.prototype,"input",void 0);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uq.prototype,"dataChanged",null);_.A([_.e0("messageInput"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uq.prototype,"onMessageSet",null);_.A([_.fu("yt-live-chat-select-suggestion"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],uq.prototype,"onSuggestion",null);
_.A([_.e0("characterCount"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uq.prototype,"characterCountChanged",null);_.A([_.e0("focused"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uq.prototype,"focusedChanged",null);_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],uq);
_.zib=_.m(uq,"yt-live-chat-text-input-field-renderer",function(){if(coK===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;t$5===void 0&&(t$5=document.createElement("template"));var v=t$5;u.call(y,v.content.cloneNode(!0),R.content.firstChild);coK=R}R=coK;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var v4=function(){var R=_.W.apply(this,arguments)||this;R.buttonOverrides={style:"overlay",type:"filled"};R.allowAnimations=!1;R.modern=_.f("web_button_rework_with_live");R.noPadding=!1;return R};
_.O(v4,_.W);_.J=v4.prototype;_.J.shouldSupportInlineActionButtons=function(){return!0};
_.J.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"}}}}};
_.J.ready=function(){var R=document.querySelector("yt-live-chat-app");R&&R.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.J.attached=function(){this.allowAnimations=!1};
_.J.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)};_.oX(this.hostElement,R);this.allowAnimations=!0}};
_.J.messageChanged=function(){var R,y=(R=this.data)==null?void 0:R.message;R=_.hw(_.hw(this.hostElement).querySelector("#message"));R.textContent="";y&&R.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(y))};
_.J.computeShowOnlyHeader=function(R,y){return!R||R.pdgLikeButton||R.replyButton||R.buyFlowButton?!1:this.isEmpty(R,y)&&!R.footer};
_.J.computeShowFooterDivider=function(R,y,u){return R?!!R.footer&&!this.isEmpty(R,y)&&!u:!1};
_.J.computeIsUserEditable=function(R){return!!R.inputField};
_.J.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"};
_.J.computeNoveltyImage=function(R){if(R.headerOverlayImage&&R.headerOverlayImage.thumbnails.length){var y=R.headerOverlayImage.thumbnails[0],u,v;if((u=R.pdgPurchasedNoveltyLoggingDirectives)==null?0:(v=u.loggingDirectives)==null?0:v.trackingParams){var Q,M;XL4((Q=R.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(M=Q.loggingDirectives)==null?void 0:M.trackingParams)}return y.width||0}return 0};
_.J.computeAuthorPhotoSize=function(R){return(R==null?0:R.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.J.inputFocus=function(){var R=_.hw(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");R&&R.focus()};
_.J.inputInsertEmoji=function(R){var y=_.hw(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");y&&y.insertEmoji(R)};
_.J.inputMessage=function(){var R=_.hw(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),y;return R&&((y=this.data)==null?0:y.inputField)?(R.completeEmojis(),_.sy(R.liveChatRichMessageInput)):null};
_.J.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.J.isEmpty=function(R,y){return R?R.empty||!(R.message||R.inputField||y):!0};
_.J.onLowerBuyButtonClick=function(){var R,y=_.e((R=this.data)==null?void 0:R.buyButton,_.aG);y&&y.trackingParams&&!sYv(y.command)&&(R=_.U4(y.trackingParams))&&(y=_.$I())&&_.zP(y,R)};
_.J.shouldSupportWholeItemClick=function(){return!0};
_.RR.Object.defineProperties(v4.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?0:R.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
v4.prototype.isDeletedChanged=v4.prototype.isDeletedChanged;v4.prototype.messageChanged=v4.prototype.messageChanged;v4.prototype.dataChanged=v4.prototype.dataChanged;_.A([_.n(fZ5.YtPdgLiveChatItemBehavior),_.p("design:type",Object)],v4.prototype,"ytPdgLiveChatItemBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],v4.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.YX),_.p("design:type",Object)],v4.prototype,"ytLiveChatReduxBehavior",void 0);
_.A([_.n(_.sj.YtLiveChatItemBehavior),_.p("design:type",_.zi)],v4.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],v4.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],v4.prototype,"data",void 0);_.A([_.r({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:$YG}),_.p("design:type",Object)],v4.prototype,"engagementState",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.p("design:type",Boolean)],v4.prototype,"isUserEditable",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.p("design:type",Boolean)],v4.prototype,"hasHeartButton",void 0);_.A([_.r({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.p("design:type",Boolean)],v4.prototype,"showOnlyHeader",void 0);
_.A([_.r({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.p("design:type",Boolean)],v4.prototype,"showFooterDivider",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Object)],v4.prototype,"allowAnimations",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],v4.prototype,"dashboardMoneyFeed",void 0);_.A([_.r({computed:"computeNoveltyImage(data)"}),_.p("design:type",Number)],v4.prototype,"noveltyWidth",void 0);
_.A([_.r({computed:"computeAuthorPhotoSize(data)"}),_.p("design:type",Number)],v4.prototype,"authorPhotoSize",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],v4.prototype,"modern",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],v4.prototype,"noPadding",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],v4.prototype,"dataChanged",null);
_.A([_.e0("data.message"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],v4.prototype,"messageChanged",null);_.A([_.G("data","dashboardMoneyFeed"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],v4.prototype,"hideLowerBumper",null);_.A([_.e0("isDeleted"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],v4.prototype,"isDeletedChanged",null);
_.A([_.q({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],v4);
_.m(v4,"yt-live-chat-paid-message-renderer",function(){if(Jow===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;M$K===void 0&&(M$K=document.createElement("template"));var v=M$K;u.call(y,v.content.cloneNode(!0),R.content.firstChild);Jow=R}R=Jow;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var gfK;var CFK;var Qv=function(){var R=_.HN.apply(this,arguments)||this;R._noAccessors=!0;return R};
_.O(Qv,_.HN);Qv.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.EB("openPopupConfig")};
_.A([_.n(_.Oj.YtOpenPopupBehavior),_.p("design:type",Object)],Qv.prototype,"ytOpenPopupBehavior",void 0);_.A([_.nu()],Qv);_.jc=[_.Oj.YtOpenPopupBehavior,Qv.prototype];var RnL;var QB=[_.HV,HTK,_.pt,_.nc,_.zM,_.YRi,_.PV,_.v0w,_.mr,qeU];_.f("web_watch_get_updated_metadata_response_processing")&&QB.push(_.fX8);_.f("web_continuation_response_processing")&&QB.push(_.Lh);var EoU=new _.Jx("RESPONSE_RECEIVED_COMMANDS"),UaU=new _.Jx("RESPONSE_RECEIVED_COMMANDS");var H3L="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),Z3z=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],O3T=["GET_UNSEEN_NOTIFICATION_COUNT"];var MA=function(){var R=_.HN.apply(this,arguments)||this;R._noAccessors=!0;R.serviceEndpointHandlers=[];return R};
_.O(MA,_.HN);MA.prototype.created=function(){var R=this;this.endpointHandlerActionMap={"yt-service-request":function(y,u,v,Q){var M;return ls8(R.hostElement,y,u,v,Q,R.serviceEndpointHandlers,(M=R.onEntitiesUpdated)==null?void 0:M.bind(R))}}};
MA.prototype.attached=function(){_.aN(_.c3.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
MA.prototype.detached=function(){_.Sx(_.c3.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.A([_.nu()],MA);_.y5Y=[MA.prototype];var uk5,vd5=function(){return uk5!==void 0?uk5:uk5=document.createElement("template")};
document.head.appendChild(vd5().content);var Q0V;var j0T=document.head,M4V=j0T.appendChild,J55;if(Q0V===void 0){var V4G=document.createElement("template");_.H(V4G,"\x3c!--css-build:shady--\x3e");V4G.content.insertBefore(vd5().content.cloneNode(!0),V4G.content.firstChild);Q0V=V4G}J55=Q0V;M4V.call(j0T,J55.content);var ieG,KPi=function(){return ieG!==void 0?ieG:ieG=document.createElement("template")};
document.head.appendChild(KPi().content);var IbY;var hng=document.head,beg=hng.appendChild,FPK;if(IbY===void 0){var wLg=document.createElement("template");_.H(wLg,"\x3c!--css-build:shady--\x3e");wLg.content.insertBefore(KPi().content.cloneNode(!0),wLg.content.firstChild);IbY=wLg}FPK=IbY;beg.call(hng,FPK.content);var NUg;_.Dl("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.Dl("sharingRendererButtons","buttonRenderer","ytd-button-renderer");NUg=_.f("web_button_rework")&&_.$B("BUTTON_REWORK")||_.f("web_button_rework_with_live");_.J3=function(){var R=_.W.apply(this,arguments)||this;R.isPressed=!1;R.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return R};
_.O(_.J3,_.W);_.J=_.J3.prototype;_.J.created=function(){this.showTooltips=!0};
_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.J.onHintIdChanged=function(){var R=this,y,u,v=(y=this.ytButtonBehavior.data)==null?void 0:(u=y.hint)==null?void 0:u.hintRenderer;if(v&&v.hintId){y=_.h_(this.hostElement,"yt-get-opened-popups-action");y=(y&&y.length===1?y[0]:[]).length>0;var Q=null;v.hintId!=="sponsor-pre-purchase"||y?v.hintId.startsWith("sponsor-post-purchase")&&!y?Q=EZc("membership-manage"):v.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!y&&(Q=EZc("membership-freebie-join")):Q=EZc("membership-join");Q&&_.WG.addLowPriorityJob(function(){for(var M=
_.V(Q),K=M.next();!K.done;K=M.next())R.ytComponentBehavior.resolveCommand(K.value)})}};
_.J.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.J.onYtNavigate=function(R){var y=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(R.detail.endpoint);y&&(R.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(y))};
_.J.onYtServiceRequestSent=function(R,y){this.handleServiceRequestActions(y);_.Ko(this.hostElement,"yt-service-request-sent-button-renderer")};
_.J.onServiceRequestCompleted=function(R,y){this.handleServiceRequestActions(y);_.Ko(this.hostElement,"yt-service-request-completed-button-renderer")};
_.J.updateButton=function(R){var y;if(R=(y=_.e(R,TqK))==null?void 0:y.updatedButton)this.ytButtonBehavior.data=_.e(R,_.aG)};
_.J.handleUpdateButtonAction=function(R){var y=this.ytButtonBehavior.data;y.targetId&&R.updateButtonAction.targetId&&y.targetId===R.updateButtonAction.targetId&&this.updateButton(R)};
_.J.handleServiceRequestActions=function(R){if(R=R.actions)for(var y=0;y<R.length;y++)this.updateButton(R[y])};
_.RR.Object.defineProperties(_.J3,{template:{configurable:!0,enumerable:!0,get:function(){if(RnL===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);RnL=R}R=RnL;return R}}});
_.J3.prototype.onServiceRequestCompleted=_.J3.prototype.onServiceRequestCompleted;_.J3.prototype.onYtServiceRequestSent=_.J3.prototype.onYtServiceRequestSent;_.J3.prototype.onYtNavigate=_.J3.prototype.onYtNavigate;_.J3.prototype.onPressedStateChanged=_.J3.prototype.onPressedStateChanged;_.J3.prototype.onHintIdChanged=_.J3.prototype.onHintIdChanged;_.A([_.r(),_.p("design:type",Object)],_.J3.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],_.J3.prototype,"isPressed",void 0);
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],_.J3.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.Z4T.YtButtonBehavior),_.p("design:type",Object)],_.J3.prototype,"ytButtonBehavior",void 0);_.A([_.n(_.jc),_.p("design:type",Object)],_.J3.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],_.J3.prototype,"ytComponentBehavior",void 0);
_.A([_.n(rj.YtRenderButtonBehavior),_.p("design:type",Object)],_.J3.prototype,"ytRenderButtonBehavior",void 0);_.A([_.e0("data.hint.hintRenderer"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],_.J3.prototype,"onHintIdChanged",null);_.A([_.e0("isPressed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],_.J3.prototype,"onPressedStateChanged",null);
_.A([_.fu("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],_.J3.prototype,"onYtNavigate",null);_.A([_.fu("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.z3]),_.p("design:returntype")],_.J3.prototype,"onYtServiceRequestSent",null);
_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Mp]),_.p("design:returntype")],_.J3.prototype,"onServiceRequestCompleted",null);_.A([_.q({is:"ytd-button-renderer",disableElementRegistration:NUg})],_.J3);var Vv=function(){var R=_.W.apply(this,arguments)||this;R.modern=_.f("web_button_rework_with_live");R.buttonOverrides={style:"overlay",type:"filled"};return R};
_.O(Vv,_.W);_.J=Vv.prototype;_.J.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"}}}}};
_.J.ready=function(){var R=document.querySelector("yt-live-chat-app");R&&R.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.J.dataChanged=function(){if(this.data&&this.data.sticker){var R=_.b0(this.data.sticker.thumbnails,this.stickerWidth);R||_.A94(R).thenCatch(function(){_.kT(new _.OL("Failed to load Super Sticker with url",R))})}};
_.J.computeAuthorPhotoSize=function(R){return(R==null?0:R.isV2Style)?32:40};
_.J.computeIsV2Style=function(R){return(R==null?0:R.isV2Style)?!0:!1};
_.J.onStickerLoaded=function(R){var y,u,v;(y=_.vN(R))==null||(u=y.parentNode)==null||(v=u.classList)==null||v.add("sticker-loaded")};
_.J.computeNoveltyImageWidth=function(R){var y,u;if(R==null?0:(y=R.headerOverlayImage)==null?0:(u=y.thumbnails)==null?0:u.length){y=R.headerOverlayImage.thumbnails[0];var v,Q;if((v=R.pdgPurchasedNoveltyLoggingDirectives)==null?0:(Q=v.loggingDirectives)==null?0:Q.trackingParams){var M,K;XL4((M=R.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(K=M.loggingDirectives)==null?void 0:K.trackingParams)}return y.width||0}return 0};
_.J.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.J.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)},
_.oX(this.hostElement,R))};
_.J.onBuyButtonClick=function(){var R,y=_.e((R=this.data)==null?void 0:R.buyButton,_.aG);y&&!sYv(y.command)&&this.ytRendererBehavior.logExplicitClick(y)};
_.J.shouldSupportWholeItemClick=function(){return!0};
_.RR.Object.defineProperties(Vv.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}}});
Vv.prototype.updateStickerStyles=Vv.prototype.updateStickerStyles;Vv.prototype.isDeletedChanged=Vv.prototype.isDeletedChanged;Vv.prototype.onStickerLoaded=Vv.prototype.onStickerLoaded;Vv.prototype.dataChanged=Vv.prototype.dataChanged;_.A([_.n(fZ5.YtPdgLiveChatItemBehavior),_.p("design:type",Object)],Vv.prototype,"ytPdgLiveChatItemBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Vv.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Vv.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.sj.YtLiveChatItemBehavior),_.p("design:type",_.zi)],Vv.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Vv.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Vv.prototype,"data",void 0);
_.A([_.r({computed:"computeAuthorPhotoSize(data)"}),_.p("design:type",Number)],Vv.prototype,"authorPhotoSize",void 0);_.A([_.r(),_.p("design:type",Boolean)],Vv.prototype,"isDeleted",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Vv.prototype,"dashboardMoneyFeed",void 0);_.A([_.r({computed:"computeNoveltyImageWidth(data)"}),_.p("design:type",Number)],Vv.prototype,"noveltyWidth",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Vv.prototype,"modern",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.p("design:type",Boolean)],Vv.prototype,"isV2Style",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Vv.prototype,"dataChanged",null);_.A([_.fu("yt-img-shadow-loaded"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Vv.prototype,"onStickerLoaded",null);
_.A([_.G("data"),_.p("design:type",Number),_.p("design:paramtypes",[])],Vv.prototype,"stickerWidth",null);_.A([_.G("data"),_.p("design:type",Number),_.p("design:paramtypes",[])],Vv.prototype,"stickerHeight",null);_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Vv.prototype,"hasHeartButton",null);_.A([_.G("data","dashboardMoneyFeed"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Vv.prototype,"hideLowerBumper",null);
_.A([_.e0("isDeleted"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Vv.prototype,"isDeletedChanged",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Vv.prototype,"updateStickerStyles",null);_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],Vv);
_.m(Vv,"yt-live-chat-paid-sticker-renderer",function(){if(CFK===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;gfK===void 0&&(gfK=document.createElement("template"));var v=gfK;u.call(y,v.content.cloneNode(!0),R.content.firstChild);CFK=R}R=CFK;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var TUg;var odK;var xY5,BUg=function(){return xY5!==void 0?xY5:xY5=document.createElement("template")};
document.head.appendChild(BUg().content);var fbi,enL=function(){return fbi!==void 0?fbi:fbi=document.createElement("template")};
document.head.appendChild(enL().content);var lbV;var OeG,Zei=function(){return OeG!==void 0?OeG:OeG=document.createElement("template")};
document.head.appendChild(Zei().content);var Heg;var ndc=document.head,GYw=ndc.appendChild,r5T;if(Heg===void 0){var PR5=document.createElement("template");_.H(PR5,"\x3c!--css-build:shady--\x3e");PR5.content.insertBefore(Zei().content.cloneNode(!0),PR5.content.firstChild);Heg=PR5}r5T=Heg;GYw.call(ndc,r5T.content);var WPb=document.head,dYc=WPb.appendChild,UY5;if(lbV===void 0){var iq=document.createElement("template");_.H(iq,"\x3c!--css-build:shady--\x3e");iq.content.insertBefore(enL().content.cloneNode(!0),iq.content.firstChild);iq.content.insertBefore(BUg().content.cloneNode(!0),iq.content.firstChild);lbV=iq}UY5=lbV;dYc.call(WPb,UY5.content);var K6=function(){var R=_.HN.apply(this,arguments)||this;R.focusedIndex=0;R.verticalOffset=0;R.verticalAlign="top";R.dynamicAlign=!0;return R};
_.O(K6,_.HN);K6.prototype.emojiUrl=function(R){R=_.Su(this.emojiManager,R);if(!R)return"";var y;R=(y=R.image)==null?void 0:y.thumbnails;return _.b0(R,24)||""};
var kYc=function(R){var y;R.emojiVariants&&(y=R.data)!=null&&y.target&&_.gn(R,function(){R.set("verticalOffset",-1*R.hostElement.clientHeight);var u=_.hw(R.hostElement).querySelector("img");u&&u.focus()})};
_.J=K6.prototype;_.J.onKeyboardEnter=function(){};
_.J.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.J.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.J.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()}};
_.J.onYtEmojiSelect=function(R){var y=this,u,v,Q,M,K,h,b,N;return _.I(function(T){if(T.nextAddress==1)return v=(u=y.data)==null?void 0:u.emoji,K=((Q=v)==null?void 0:Q.stickyPrefId)||((M=v)==null?void 0:M.emojiId),b=(h=R.detail)==null?void 0:h.emojiId,K&&b&&K!==b?T.yield((N=y.emojiManager)==null?void 0:m3i(N,v,b),2):T.return();_.Ik(y.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[v,b]);_.f$(T)})};
_.J.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=_.hw(this.hostElement).querySelector("#variants"))&&R.children[this.focusedIndex].focus())};
_.RR.Object.defineProperties(K6.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}}});
K6.prototype.onYtEmojiSelect=K6.prototype.onYtEmojiSelect;K6.prototype.onKeyDown=K6.prototype.onKeyDown;K6.prototype.onEmojiVariantsChanged=K6.prototype.onEmojiVariantsChanged;K6.prototype.onVerticalOffsetOrPositionTargetChanged=K6.prototype.onVerticalOffsetOrPositionTargetChanged;_.A([_.n(_.g9),_.p("design:type",Object)],K6.prototype,"ironOverlayBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],K6.prototype,"data",void 0);_.A([_.r(),_.p("design:type",_.aJ)],K6.prototype,"emojiManager",void 0);
_.A([_.r(),_.p("design:type",Object)],K6.prototype,"emojiVariants",void 0);_.A([_.r(),_.p("design:type",Object)],K6.prototype,"focusedIndex",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],K6.prototype,"positionTarget",null);_.A([_.r({reflectToAttribute:!0}),_.G("verticalOffset","data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],K6.prototype,"isPositioned",null);_.A([_.r(),_.p("design:type",Object)],K6.prototype,"verticalOffset",void 0);
_.A([_.r(),_.p("design:type",Object)],K6.prototype,"verticalAlign",void 0);_.A([_.r(),_.p("design:type",Object)],K6.prototype,"dynamicAlign",void 0);_.A([_.e0("verticalOffset","positionTarget"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],K6.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.A([_.e0("emojiVariants"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],K6.prototype,"onEmojiVariantsChanged",null);
_.A([_.fu("keydown"),_.p("design:type",Function),_.p("design:paramtypes",[KeyboardEvent]),_.p("design:returntype")],K6.prototype,"onKeyDown",null);_.A([_.fu("yt-emoji-select"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype",Promise)],K6.prototype,"onYtEmojiSelect",null);_.A([_.nu()],K6);var EdL=[K6.prototype];var $Yc;var q05;var XLV=/medium-light|medium-dark|light|medium|dark/,mYi=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,A5T=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),IS=function(){var R=_.W.apply(this,arguments)||this;R.userSelection={left:null,right:null};R.scrollAction="lock";R.isEmojiDraftInProgress=!1;return R};
_.O(IS,_.W);_.J=IS.prototype;_.J.onClick=function(R){R=_.vN(R);R instanceof HTMLImageElement&&this.selectOrUpdateEmoji(R)};
_.J.selectOrUpdateEmoji=function(R){var y=R.getAttribute("selection");y&&(y==="default"?_.Ko(this.hostElement,"yt-emoji-select",_.Su(this.emojiManager,R.id)):y==="left"?this.userSelection=Object.assign({},this.userSelection,{left:R.src}):y==="right"?this.userSelection=Object.assign({},this.userSelection,{right:R.src}):y==="user"&&this.userSelection.left&&this.userSelection.right&&_.Ko(this.hostElement,"yt-emoji-select",_.Su(this.emojiManager,R.id)))};
_.J.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.J.onMultiSelectorThumbnailRowChanged=function(){var R,y,u;((R=this.data)==null?0:(y=R.emoji)==null?0:(u=y.multiSelectorThumbnailRow)==null?0:u.length)&&this.openSelector()};
_.J.getThumbnailFromEmojiRow=function(R){var y,u;return(R==null?void 0:(y=R.thumbnails)==null?void 0:(u=y[0])==null?void 0:u.url)||""};
_.J.getEmojiAltTextForPartialSelector=function(R){var y;return((y=this.getThumbnailFromEmojiRow(R).match(mYi))==null?void 0:y[0])||""};
_.J.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.J.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.J.getRowSelection=function(R){return["left","right"][R]};
_.J.getIdFromComposedEmoji=function(R){return(R==null?void 0:R.emojiId)||""};
_.J.getEmojiFromPartialSelections=function(R,y){if(!R&&!y)return null;var u,v,Q=(u=this.data)==null?void 0:(v=u.emoji)==null?void 0:v.variantIds;if(!Q||!Q.length)return null;var M;R=(M=R.match(XLV))==null?void 0:M[0];var K;y=(K=y.match(XLV))==null?void 0:K[0];if(!R||!y)return null;var h=A5T.get(R);K=A5T.get(y);if(h===K){K=Array.from(A5T.values()).filter(function(N){return N!==h}).join("|");
var b=new RegExp("^((?!("+K+")).)*"+h+"$")}else b=new RegExp(h+".*"+K);return(Q=Q.find(function(N){return b.test(N)}))&&_.Su(this.emojiManager,Q)||null};
_.J.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var R,y=this.ytEmojiSelectorBehavior.emojiUrl(((R=this.data.emoji)==null?void 0:R.emojiId)||"");_.hw(this.hostElement).querySelector('[selection="user"]').src.includes(y)||(this.isEmojiDraftInProgress=!0)}};
_.J.onDomChange=function(){kYc(this.ytEmojiSelectorBehavior)};
_.J.getFocusableElements=function(){return _.hw(this.hostElement).querySelectorAll("img").filter(function(R){return R.getAttribute("role")==="option"})};
_.J.changeFocus=function(R){var y=this.getFocusableElements();y!=null&&y.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+R+y.length)%y.length,this.ytEmojiSelectorBehavior.focusedIndex<y.length&&(R=y[this.ytEmojiSelectorBehavior.focusedIndex])&&R.focus())};
_.J.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))};
_.RR.Object.defineProperties(IS.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var R=this,y,u,v;return this.emojiManager&&((y=this.data)==null?0:(u=y.emoji)==null?0:(v=u.variantIds)==null?0:v.length)?this.data.emoji.variantIds.map(function(Q){return!!Q&&_.Su(R.emojiManager,Q)}).filter(function(Q){return!!Q}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var R,y=(R=this.userSelection)==null?void 0:R.left,u;R=(u=this.userSelection)==null?void 0:u.right;return y&&R?this.getEmojiFromPartialSelections(y,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 y;R=(y=this.userSelection)==null?void 0:y.left;var u;y=(u=this.userSelection)==null?void 0:u.right;if(!R&&!y){var v;return this.ytEmojiSelectorBehavior.emojiUrl(((v=this.data.emoji)==null?void 0:v.emojiId)||"")}return R&&!y?R:!R&&y?y:""}}});
IS.prototype.onMultiSelectorThumbnailRowChanged=IS.prototype.onMultiSelectorThumbnailRowChanged;IS.prototype.onClick=IS.prototype.onClick;_.A([_.n(_.g9),_.p("design:type",Object)],IS.prototype,"ironOverlayBehavior",void 0);_.A([_.n(EdL),_.p("design:type",Object)],IS.prototype,"ytEmojiSelectorBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],IS.prototype,"data",void 0);_.A([_.r(),_.p("design:type",_.aJ)],IS.prototype,"emojiManager",void 0);
_.A([_.r(),_.p("design:type",Object)],IS.prototype,"userSelection",void 0);_.A([_.r(),_.p("design:type",Object)],IS.prototype,"scrollAction",void 0);_.A([_.r(),_.p("design:type",Object)],IS.prototype,"isEmojiDraftInProgress",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],IS.prototype,"emojiVariants",null);_.A([_.G("data","userSelection"),_.p("design:type",Object),_.p("design:paramtypes",[])],IS.prototype,"composedEmojiSelection",null);
_.A([_.fu("click"),_.p("design:type",Function),_.p("design:paramtypes",[MouseEvent]),_.p("design:returntype")],IS.prototype,"onClick",null);_.A([_.e0("data.emoji.multiSelectorThumbnailRow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],IS.prototype,"onMultiSelectorThumbnailRowChanged",null);_.A([_.G("data","userSelection","composedEmojiSelection"),_.p("design:type",String),_.p("design:paramtypes",[])],IS.prototype,"draftEmojiUrl",null);
_.A([_.pu({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],IS);
_.m(IS,"yt-emoji-multi-person-selector",function(){if(q05===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;$Yc===void 0&&($Yc=document.createElement("template"));var v=$Yc;u.call(y,v.content.cloneNode(!0),R.content.firstChild);q05=R}R=q05;return R},{mode:2});var DYg;var pLc;var h3=function(){var R=_.W.apply(this,arguments)||this;R.tooltip_=null;return R};
_.O(h3,_.W);_.J=h3.prototype;_.J.dataChanged_=function(){var R;if((R=this.data)==null?0:R.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.hw(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.Nz)(this.tooltip_).textContent=this.data.tooltip};
_.J.computeTargetId=function(){var R;return((R=this.data)==null?void 0:R.targetId)||""};
_.J.computeId_=function(R){return R};
_.J.computeIcon_=function(R){return _.fk(R)};
_.J.onTap_=function(){this.active=!this.active;_.Ko(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.J.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.CQ("active-changed",this.active))};
_.RR.Object.defineProperties(h3.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var R,y;if((R=this.data)==null?0:(y=R.icon)==null?0:y.iconType)return this.data.icon.iconType==="SUPER_STICKER";var u,v;return((u=this.data)==null?void 0:(v=u.icon)==null?void 0:v.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
h3.prototype.activeChangedForBinding=h3.prototype.activeChangedForBinding;h3.prototype.dataChanged_=h3.prototype.dataChanged_;_.A([_.n(_.Ll.YtLiveChatTooltipTargetingBehavior),_.p("design:type",Object)],h3.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],h3.prototype,"data",void 0);_.A([_.r({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.p("design:type",String)],h3.prototype,"id",void 0);
_.A([_.r({computed:"computeTargetId(data.targetId)"}),_.p("design:type",String)],h3.prototype,"targetId",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],h3.prototype,"active",void 0);_.A([_.r({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.p("design:type",String)],h3.prototype,"icon",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],h3.prototype,"dataChanged_",null);
_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],h3.prototype,"iconFilled",null);_.A([_.e0("active"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],h3.prototype,"activeChangedForBinding",null);_.A([_.pu({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],h3);
_.m(h3,"yt-emoji-picker-category-button-renderer",function(){if(pLc===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;DYg===void 0&&(DYg=document.createElement("template"));var v=DYg;u.call(y,v.content.cloneNode(!0),R.content.firstChild);pLc=R}R=pLc;return R},{mode:2});var t4c;var c5K;var bq=function(){var R=_.W.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$14091_ignoreNextFocus_=!1;R.longPressTimeoutId=-1;return R};
_.O(bq,_.W);_.J=bq.prototype;_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.J.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.J.emojiChanged_=function(){this.changeFocus_(0,!1);for(var R=_.GN(),y=0;y<this.emoji.length;y++){var u={veType:88013,elementIndex:y},v=this.emoji[y];v.isCustomEmoji&&(v=document.querySelector(("#"+v.emojiId).replace("/","\\/")))&&(u=_.nk(R,u))&&(v.visualElement=u)}};
_.J.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.J.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.J.emojiSkinToneChanged_=function(R){this.skinTone=R};
_.J.dataChanged=function(){this.data&&this.data.emojiData&&Efi(this.emojiManager,this.data.emojiData)};
_.J.emojiUrl=function(R){R=this.getEmoji(R);if(!R)return"";var y;R=(y=R.image)==null?void 0:y.thumbnails;return _.b0(R,24)||""};
_.J.emojiAlt=function(R){var y=this.get("image.accessibility.accessibilityData.label",R);return y?y:R.isCustomEmoji?R.shortcuts[0]:R.emojiId};
_.J.emojiAriaLabel=function(R){return R.shortcuts?R.shortcuts[0]:""};
_.J.emojiAriaSelected=function(R,y,u){return R&&u==y?"true":"false"};
_.J.getEmoji=function(R){if(this.emojiManager)return this.shouldUseStickyPreferences?qdb(this.emojiManager,R):Y1(this.emojiManager,R)};
_.J.computeId_=function(R){return R.categoryId||""};
_.J.computeEmoji=function(R){var y=this;return this.emojiManager?R.emojiIds?R.emojiIds.map(function(u){return u?_.Su(y.emojiManager,u):null}).filter(DaE):R.emojiData?R.emojiData.map(function(u){var v=!!u.emojiId&&_.Su(y.emojiManager,u.emojiId);
return v?Object.assign({},v,u):null}).filter(DaE):[]:[]};
_.J.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.J.computeAriaLabel_=function(R){return _.u7(R)};
_.J.computeAriaActivedescendant_=function(R,y){return R&&R[y]?R[y].emojiId||"":""};
_.J.handleLongPressEmojiWithVariants=function(R,y){this.changeFocusToEmoji(R.emojiId,!1);this.openVariantSelector(R,y)};
_.J.onMouseDown=function(R){var y=this;this.hostElement!==document.activeElement&&(this.JSC$14091_ignoreNextFocus_=!0);if(R.button===0){var u=_.vN(R);if(u instanceof HTMLImageElement){var v=_.hw(this.hostElement).querySelector("#repeat").itemForElement(u);this.emojiContainsVariants(v)&&(this.longPressTimeoutId=setTimeout(function(){y.handleLongPressEmojiWithVariants(v,u)},500))}}};
_.J.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.J.onFocus=function(){this.JSC$14091_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14091_ignoreNextFocus_=!1};
_.J.onBlur_=function(){this.showFocus=!1};
_.J.emojiContainsVariants=function(R){return!!(R&&R.variantIds&&R.variantIds.length)};
_.J.onClick=function(R){clearTimeout(this.longPressTimeoutId);R=_.vN(R);if(R instanceof HTMLImageElement){var y=R.id;this.changeFocusToEmoji(y,!1);var u=this.getEmoji(y),v;if(v=this.shouldUseStickyPreferences&&this.emojiContainsVariants(u)){var Q;v=!((Q=this.emojiManager.emojiMap[y])!=null&&Q.stickyPrefId)}v?(Q=_.hw(this.hostElement).querySelector("#repeat").itemForElement(R),this.openVariantSelector(Q,R)):_.Ko(this.hostElement,"yt-emoji-select",u)}};
_.J.isActiveEmojiWithVariants=function(R,y){return R&&y?y.stickyPrefId?R===y.stickyPrefId:R===y.emojiId:!1};
_.J.onCloseEmojiVariantSelector=function(R){this.activeEmojiWithVariantsId===R&&(this.activeEmojiWithVariantsId="")};
_.J.onMouseOver_=function(R){R=_.vN(R);R instanceof HTMLImageElement&&_.Ko(this.hostElement,"yt-emoji-hover",_.Su(this.emojiManager,R.id))};
_.J.changeFocus_=function(R,y){this.focusedIndex=(this.focusedIndex+R+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(R=this.emoji[this.focusedIndex],y&&(this.showFocus=!0,_.hw(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.Ko(this.hostElement,"yt-emoji-hover",R)))};
_.J.changeFocusToEmoji=function(R,y){if(R){var u=this.emoji.findIndex(function(v){return v.emojiId===R});
u!==-1&&this.changeFocus_(u-this.focusedIndex,y)}};
_.J.onKeyDown_=function(R){switch(R.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var y=this.emoji[this.focusedIndex];if(y&&y.emojiId){if(this.emojiContainsVariants(y)){var u=_.hw(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(y,u)}else _.Ko(this.hostElement,"yt-emoji-select",Y1(this.emojiManager,y.emojiId)),this.hostElement.focus();R.preventDefault()}}break;case 40:this.changeFocus_(1,!0);R.preventDefault();break;case 38:this.changeFocus_(-1,!0),
R.preventDefault()}};
_.J.onEmojiStickyPreferenceChanged=function(R,y){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&R.emojiId&&R.variantIds&&R.variantIds.includes(y)&&this.activeEmojiWithVariantsId!==y&&this.setStickyEmojiPreference(R.emojiId,y)};
_.J.openVariantSelector=function(R,y){this.activeEmojiWithVariantsId=R.stickyPrefId||R.emojiId||"";_.Ko(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:R,target:y})};
_.J.setStickyEmojiPreference=function(R,y){if(this.data){var u=this.emoji.findIndex(function(Q){return Q.emojiId===R});
if(u!==-1){var v=this.emoji[u];v.stickyPrefId=y;this.set("emoji."+u,Object.assign({},v));this.activeEmojiWithVariantsId=y}}};
bq.prototype.onKeyDown_=bq.prototype.onKeyDown_;bq.prototype.onMouseOver_=bq.prototype.onMouseOver_;bq.prototype.onClick=bq.prototype.onClick;bq.prototype.onBlur_=bq.prototype.onBlur_;bq.prototype.onFocus=bq.prototype.onFocus;bq.prototype.onMouseUp=bq.prototype.onMouseUp;bq.prototype.onMouseDown=bq.prototype.onMouseDown;bq.prototype.dataChanged=bq.prototype.dataChanged;bq.prototype.disableIncrementalLoadingChanged_=bq.prototype.disableIncrementalLoadingChanged_;bq.prototype.emojiManagerChanged_=bq.prototype.emojiManagerChanged_;
bq.prototype.emojiChanged_=bq.prototype.emojiChanged_;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],bq.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],bq.prototype,"data",void 0);_.A([_.r({computed:"computeId_(data)"}),_.p("design:type",String)],bq.prototype,"id",void 0);_.A([_.r({computed:"computeEmoji(data)"}),_.p("design:type",Array)],bq.prototype,"emoji",void 0);_.A([_.r(),_.p("design:type",Number)],bq.prototype,"skinTone",void 0);
_.A([_.r(),_.p("design:type",_.aJ)],bq.prototype,"emojiManager",void 0);_.A([_.r(),_.p("design:type",Boolean)],bq.prototype,"disableIncrementalLoading",void 0);_.A([_.r({value:0}),_.p("design:type",Number)],bq.prototype,"focusedIndex",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],bq.prototype,"showFocus",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.p("design:type",Object)],bq.prototype,"ariaLabel",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.p("design:type",Object)],bq.prototype,"ariaActivedescendant",void 0);_.A([_.r({value:60}),_.p("design:type",Number)],bq.prototype,"domRepeatTargetFramerate",void 0);_.A([_.r({value:1}),_.p("design:type",Number)],bq.prototype,"domRepeatInitialCount",void 0);_.A([_.r({value:""}),_.p("design:type",String)],bq.prototype,"activeEmojiWithVariantsId",void 0);
_.A([_.r({value:!1}),_.p("design:type",Boolean)],bq.prototype,"shouldUseStickyPreferences",void 0);_.A([_.e0("emoji"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bq.prototype,"emojiChanged_",null);_.A([_.e0("emojiManager"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bq.prototype,"emojiManagerChanged_",null);
_.A([_.e0("disableIncrementalLoading"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bq.prototype,"disableIncrementalLoadingChanged_",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bq.prototype,"dataChanged",null);_.A([_.fu("mousedown"),_.p("design:type",Function),_.p("design:paramtypes",[Object]),_.p("design:returntype")],bq.prototype,"onMouseDown",null);
_.A([_.fu("mouseup"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bq.prototype,"onMouseUp",null);_.A([_.fu("focus"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bq.prototype,"onFocus",null);_.A([_.fu("blur"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bq.prototype,"onBlur_",null);
_.A([_.fu("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],bq.prototype,"onClick",null);_.A([_.fu("mouseover"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],bq.prototype,"onMouseOver_",null);_.A([_.fu("keydown"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],bq.prototype,"onKeyDown_",null);
_.A([_.pu({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],bq);
_.m(bq,"yt-emoji-picker-category-renderer",function(){if(c5K===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;t4c===void 0&&(t4c=document.createElement("template"));var v=t4c;u.call(y,v.content.cloneNode(!0),R.content.firstChild);c5K=R}R=c5K;return R},{mode:2});var abV;var S0i;var Y0g;var LPK;var F0=function(){var R=_.W.apply(this,arguments)||this;R.ariaLabel=null;R.ariaActivedescendant=null;R.getFormattedStringRawText=_.u7;R.JSC$14097_ignoreNextFocus_=!1;return R};
_.O(F0,_.W);_.J=F0.prototype;_.J.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")};
_.J.emojiUrl=function(R){var y,u;R=(y=Y1(this.emojiManager,R,!0))==null?void 0:(u=y.image)==null?void 0:u.thumbnails;return _.b0(R,24)||""};
_.J.emojiAlt=function(R){var y=this.get("image.accessibility.accessibilityData.label",R);return y?y:R.isCustomEmoji?R.shortcuts[0]:R.emojiId};
_.J.emojiId=function(R){return"emoji"+R};
_.J.computeId_=function(R){return R.categoryId||""};
_.J.computeAriaActivedescendant_=function(R){return this.emoji&&R<this.emoji.length?this.emojiId(R):""};
_.J.emojiChanged_=function(){this.changeFocus_(0,!1);for(var R=_.GN(),y=0;y<this.emoji.length;y++){var u={veType:88013,elementIndex:y},v=this.emoji[y];v.isCustomEmoji&&(v=document.querySelector(("#"+v.emojiId).replace("/","\\/")))&&(u=_.nk(R,u))&&(v.visualElement=u)}};
_.J.computeEmoji_=function(R){var y=this;return this.emojiManager?R.emojiIds.map(function(u){return _.Su(y.emojiManager,u,!0)}).filter(paT):[]};
_.J.titleOffsetChanged_=function(){var R=this.hostElement.getBoundingClientRect(),y=_.hw(this.hostElement).querySelector("#title").getBoundingClientRect();R=Math.max(0,Math.min(this.titleOffset,R.height-y.height));_.hw(this.hostElement).querySelector("#title").style.top=R+"px"};
_.J.onEmojiMouseOver_=function(R){_.Ko(this.hostElement,"yt-emoji-hover",R.model.item)};
_.J.onEmojiTap_=function(R){this.data.command&&(R=S0P(_.ua().resolve(_.yN(pi)),this.data.command,R),_.Ko(this.hostElement,"yt-navigate",R))};
_.J.emojiAriaLabel=function(R){return R.shortcuts[0]};
_.J.emojiAriaSelected=function(R,y,u){return R&&u==y?"true":"false"};
_.J.changeFocus_=function(R,y){var u=this.emoji.length;this.focusedIndex=(this.focusedIndex+R+u)%u;R=this.emoji[this.focusedIndex];if(y){var v;(v=_.hw(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||v.scrollIntoView(!1);_.Ko(this.hostElement,"yt-emoji-hover",R)}};
_.J.onMouseDown_=function(){this.JSC$14097_ignoreNextFocus_=!0};
_.J.onFocus_=function(){this.JSC$14097_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14097_ignoreNextFocus_=!1};
_.J.onBlur_=function(){this.showFocus=!1};
_.J.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()}};
F0.prototype.onKeyDown_=F0.prototype.onKeyDown_;F0.prototype.onBlur_=F0.prototype.onBlur_;F0.prototype.onFocus_=F0.prototype.onFocus_;F0.prototype.onMouseDown_=F0.prototype.onMouseDown_;F0.prototype.onEmojiTap_=F0.prototype.onEmojiTap_;F0.prototype.titleOffsetChanged_=F0.prototype.titleOffsetChanged_;F0.prototype.emojiChanged_=F0.prototype.emojiChanged_;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],F0.prototype,"ytComponentBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],F0.prototype,"data",void 0);_.A([_.r({computed:"computeId_(data)"}),_.p("design:type",String)],F0.prototype,"id",void 0);_.A([_.r({computed:"computeEmoji_(data)"}),_.p("design:type",Array)],F0.prototype,"emoji",void 0);_.A([_.r({value:0}),_.p("design:type",Number)],F0.prototype,"titleOffset",void 0);_.A([_.r({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.p("design:type",Object)],F0.prototype,"ariaLabel",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.p("design:type",Object)],F0.prototype,"ariaActivedescendant",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],F0.prototype,"showFocus",void 0);_.A([_.r({value:0}),_.p("design:type",Number)],F0.prototype,"focusedIndex",void 0);_.A([_.r(),_.p("design:type",_.aJ)],F0.prototype,"emojiManager",void 0);
_.A([_.e0("emoji"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],F0.prototype,"emojiChanged_",null);_.A([_.e0("titleOffset"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],F0.prototype,"titleOffsetChanged_",null);_.A([_.fu("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],F0.prototype,"onEmojiTap_",null);
_.A([_.fu("mousedown"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],F0.prototype,"onMouseDown_",null);_.A([_.fu("focus"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],F0.prototype,"onFocus_",null);_.A([_.fu("blur"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],F0.prototype,"onBlur_",null);
_.A([_.fu("keydown"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],F0.prototype,"onKeyDown_",null);_.A([_.pu({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],F0);
_.m(F0,"yt-emoji-picker-upsell-category-renderer",function(){if(LPK===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;Y0g===void 0&&(Y0g=document.createElement("template"));var v=Y0g;u.call(y,v.content.cloneNode(!0),R.content.firstChild);LPK=R}R=LPK;return R},{mode:2});var s0g;var znY;var wT=function(){var R=_.W.apply(this,arguments)||this;R.scrollAction="lock";R.verticalAlign="top";return R};
_.O(wT,_.W);_.J=wT.prototype;_.J.onClick=function(R){R=_.vN(R);R instanceof HTMLImageElement&&_.Ko(this.hostElement,"yt-emoji-select",_.Su(this.emojiManager,R.id))};
_.J.openSelector=function(){this.ironOverlayBehavior.open()};
_.J.onDomChange=function(){kYc(this.ytEmojiSelectorBehavior)};
_.J.computeIsFamilySelector=function(R){var y;return(R==null?void 0:(y=R.emoji)==null?void 0:y.emojiId)==="\ud83d\udc6a"};
_.J.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var R=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];R&&R.emojiId&&(_.Ko(this.hostElement,"yt-emoji-select",_.Su(this.emojiManager,R.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.RR.Object.defineProperties(wT.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var R=this,y,u,v;return this.emojiManager&&((y=this.data)==null?0:(u=y.emoji)==null?0:(v=u.variantIds)==null?0:v.length)?this.data.emoji.variantIds.map(function(Q){return!!Q&&_.Su(R.emojiManager,Q)}).filter(function(Q){return!!Q}):[]}}});
wT.prototype.onClick=wT.prototype.onClick;_.A([_.n(_.g9),_.p("design:type",Object)],wT.prototype,"ironOverlayBehavior",void 0);_.A([_.n(EdL),_.p("design:type",Object)],wT.prototype,"ytEmojiSelectorBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],wT.prototype,"data",void 0);_.A([_.r(),_.p("design:type",_.aJ)],wT.prototype,"emojiManager",void 0);_.A([_.r(),_.p("design:type",Object)],wT.prototype,"scrollAction",void 0);_.A([_.r(),_.p("design:type",Object)],wT.prototype,"verticalAlign",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.p("design:type",Boolean)],wT.prototype,"isFamilySelector",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],wT.prototype,"emojiVariants",null);_.A([_.fu("click"),_.p("design:type",Function),_.p("design:paramtypes",[MouseEvent]),_.p("design:returntype")],wT.prototype,"onClick",null);_.A([_.pu({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],wT);
_.m(wT,"yt-emoji-variant-selector",function(){if(znY===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;s0g===void 0&&(s0g=document.createElement("template"));var v=s0g;u.call(y,v.content.cloneNode(!0),R.content.firstChild);znY=R}R=znY;return R},{mode:2});var gdY=/:/g,CRL=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],NA=function(){var R=_.W.apply(this,arguments)||this;R.emojiVariantSelector=null;R.emojiMultiPersonSelector=null;R.identity=_.kS;R.lastAnimationTime_=0;R.animationStart_=null;R.animationEnd_=null;return R};
_.O(NA,_.W);_.J=NA.prototype;
_.J.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}}};
_.J.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.LQ)};
_.J.attached=function(){_.wV&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&$3T(this.emojiManager)};
_.J.dataChanged=function(){var R;if((R=this.data)==null?0:R.categories){R=this.emojiManager;var y=this.getCustomEmojiIds();R.pickerCustomEmojiIds=[].concat(_.P$(PF5),_.P$(y))}};
_.J.getCustomEmojiIds=function(){var R,y=(R=this.data.categories)==null?void 0:R.find(function(M){var K;return((K=M.emojiPickerCategoryRenderer)==null?void 0:K.categoryId)&&CRL.includes(M.emojiPickerCategoryRenderer.categoryId)}),u;
R=(u=this.data.categories)==null?void 0:u.find(function(M){return M.emojiPickerUpsellCategoryRenderer});
var v,Q;return[y==null?void 0:(v=y.emojiPickerCategoryRenderer)==null?void 0:v.emojiIds,R==null?void 0:(Q=R.emojiPickerUpsellCategoryRenderer)==null?void 0:Q.emojiIds].flat().filter(function(M){return!!M})};
_.J.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.J.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.J.updateCategoriesAndPlaceholderInternal=function(R,y){var u=this;R&&y&&(this.categories=R.categories||[],this.categoryButtons=R.categoryButtons||[],this.resetPlaceholder(),this.search="",_.s7(function(){u.updateButtons_()}))};
_.J.computeId_=function(R){return R.id||""};
_.J.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(R){return R.emojiPickerCategoryRenderer&&R.emojiPickerCategoryRenderer.emojiData}):!1};
_.J.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.J.onShowEmojiVariantSelector=function(R){var y=R.detail.emojiData;y.variantIds&&y.variantIds.length&&(y.multiSelectorThumbnailRow&&y.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:y,target:R.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:y,target:R.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.J.onIronOverlayClosed=function(R){var y=qdb(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");y&&R.composedPath&&(R.composedPath().includes(_.hw(this.hostElement).querySelector("#emoji-variant-selector"))||R.composedPath().includes(_.hw(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.Ik(this.hostElement,"yt-close-emoji-variant-selector",[y.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.J.onEmojiVariantSelectorMouseup=function(R){var y=R.target.firstChild;this.variantSelectorOpened&&y&&_.s7(function(){y.noCancelOnOutsideClick=!1},100)};
_.J.onEmojiVariantSelectorMousedown=function(R){R=R.target.firstChild;this.variantSelectorOpened&&R&&(R.noCancelOnOutsideClick=!1)};
_.J.onSelectCategory_=function(R){var y=this.search!="";this.search="";for(var u=_.hw(this.hostElement).querySelector("#categories").children,v=0;v<u.length;v++){var Q=u[v];if(Q.id==R.detail.categoryId){y?(_.hw(this.hostElement).querySelector("#categories").scrollTop=Q.offsetTop,this.updateButtons_()):(this.animationStart_=_.hw(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=Q.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.J.onEmojiHover_=function(R){this.placeholder=R.detail.shortcuts?R.detail.shortcuts[0]:""};
_.J.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.J.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.J.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.J.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.J.computeSearchCategory_=function(R){R=R.replace(gdY,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();R=R.split(" ");for(var y=[],u=this.emojiManager.emojis,v=0;v<u.length;v++){var Q=u[v];if(Q.searchTerms)for(var M=0;M<Q.searchTerms.length;M++){for(var K=Q.searchTerms[M].toLocaleLowerCase(),h=!1,b=0;b<R.length;b++)if(K.indexOf(R[b])!=-1){h=!0;break}if(h&&(!Q.isCustomEmoji||!Q.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(Q.emojiId))){y.push(Q.emojiId);
break}}}return{categoryId:-1,emojiIds:y}};
_.J.computeSearchEmptyMessage_=function(R,y){return R&&y&&y.emojiIds&&y.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.J.computeSearching_=function(R){return this.emojiManager&&R.replace(gdY,"").length>1};
_.J.computeSkinToneHidden=function(){var R;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((R=this.data)==null||!R.hideSkinTonePicker)};
_.J.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.J.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.J.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.J.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.J.selectSkinTone_=function(R){R=Number(R.target.getAttribute("tone"));this.set("emojiManager.skinTone",R);_.Ik(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[R]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.J.skinToneChanged_=function(){_.hw(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var R=_.hw(this.hostElement).querySelector("#dropdown-content").children,y=0;y<R.length;y++)y===this.skinTone?R[y].setAttribute("selected",""):R[y].removeAttribute("selected")};
_.J.animateScroll_=function(R){this.lastAnimationTime_||(this.lastAnimationTime_=R);R-=this.lastAnimationTime_;R<200?(_.hw(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*R/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.hw(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.J.searchChanged_=function(){this.updateButtons_()};
_.J.updateButtons_=function(){var R=null;if(!this.search)for(var y=_.hw(this.hostElement).querySelector("#categories").scrollTop,u=_.hw(this.hostElement).querySelector("#categories").children,v=0;v<u.length;v++){var Q=u[v];Q.offsetTop<=y&&(R=Q.id)}y=_.hw(this.hostElement).querySelector("#category-buttons").children;for(u=0;u<y.length;u++)v=y[u],v.active=v.id===R};
NA.prototype.searchChanged_=NA.prototype.searchChanged_;NA.prototype.skinToneChanged_=NA.prototype.skinToneChanged_;NA.prototype.onEmojiHover_=NA.prototype.onEmojiHover_;NA.prototype.onSelectCategory_=NA.prototype.onSelectCategory_;NA.prototype.onShowEmojiVariantSelector=NA.prototype.onShowEmojiVariantSelector;NA.prototype.updateCategoriesAndPlaceholder_=NA.prototype.updateCategoriesAndPlaceholder_;NA.prototype.dataChanged=NA.prototype.dataChanged;
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],NA.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],NA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],NA.prototype,"data",void 0);_.A([_.r({value:function(){return[]}}),
_.p("design:type",Array)],NA.prototype,"categories",void 0);_.A([_.r({value:function(){return[]}}),
_.p("design:type",Array)],NA.prototype,"categoryButtons",void 0);_.A([_.r({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.p("design:type",Boolean)],NA.prototype,"disableScroll",void 0);_.A([_.r({computed:"computeId_(data)",reflectToAttribute:!0}),_.p("design:type",String)],NA.prototype,"id",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],NA.prototype,"selected",void 0);
_.A([_.r({value:!1}),_.p("design:type",Boolean)],NA.prototype,"disableIncrementalLoading",void 0);_.A([_.r(),_.p("design:type",String)],NA.prototype,"placeholder",void 0);_.A([_.r({value:""}),_.p("design:type",String)],NA.prototype,"search",void 0);_.A([_.r({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.p("design:type",Boolean)],NA.prototype,"searching",void 0);_.A([_.r({computed:"computeSearchCategory_(search)"}),_.p("design:type",Object)],NA.prototype,"searchCategory",void 0);
_.A([_.r({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.p("design:type",Object)],NA.prototype,"searchEmptyMessage",void 0);_.A([_.r({computed:"identity(emojiManager.skinTone)"}),_.p("design:type",Number)],NA.prototype,"skinTone",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],NA.prototype,"skinToneOpened",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],NA.prototype,"variantSelectorOpened",void 0);
_.A([_.r({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.p("design:type",Boolean)],NA.prototype,"skinToneHidden",void 0);_.A([_.r(),_.p("design:type",_.aJ)],NA.prototype,"emojiManager",void 0);_.A([_.r(),_.p("design:type",Object)],NA.prototype,"emojiVariantSelector",void 0);_.A([_.r(),_.p("design:type",Object)],NA.prototype,"emojiMultiPersonSelector",void 0);
_.A([_.r({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.p("design:type",Boolean)],NA.prototype,"shouldUseStickyPreferences",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],NA.prototype,"dataChanged",null);_.A([_.e0("data","selected"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],NA.prototype,"updateCategoriesAndPlaceholder_",null);
_.A([_.fu("yt-show-emoji-variant-selector"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],NA.prototype,"onShowEmojiVariantSelector",null);_.A([_.fu("yt-emoji-picker-select-category"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],NA.prototype,"onSelectCategory_",null);_.A([_.fu("yt-emoji-hover"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],NA.prototype,"onEmojiHover_",null);
_.A([_.e0("skinTone"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],NA.prototype,"skinToneChanged_",null);_.A([_.e0("search"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],NA.prototype,"searchChanged_",null);_.A([_.pu({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],NA);
_.m(NA,"yt-emoji-picker-renderer",function(){if(S0i===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;abV===void 0&&(abV=document.createElement("template"));var v=abV;u.call(y,v.content.cloneNode(!0),R.content.firstChild);S0i=R}R=S0i;return R},{mode:2});var TW=function(){var R=_.W.apply(this,arguments)||this;R.emojiManager=_.LQ;R.isDarkTheme=document.documentElement.hasAttribute("dark");R.selectedIndex=1;R.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return R};
_.O(TW,_.W);_.J=TW.prototype;_.J.handleEmojiCustomizationVisible=function(R){this.emojiPickerRenderer.selected=R;this.selectedIndex=1;R?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.J.emojiCustomizationSetChanged=function(){var R;(R=this.data)!=null&&R.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.L8(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.J.updateSaveButtonState=function(R){var y;(y=this.data)!=null&&y.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.Gw("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:R}))};
_.J.emojiUrl=function(R){R=_.Su(this.emojiManager,R);if(!R)return"";var y;R=(y=R.image)==null?void 0:y.thumbnails;return _.b0(R,24)||""};
_.J.emojiAlt=function(R){var y=_.Su(this.emojiManager,R);if(!y)return R;var u,v,Q,M=(y==null?void 0:(u=y.image)==null?void 0:(v=u.accessibility)==null?void 0:(Q=v.accessibilityData)==null?void 0:Q.label)||"";return M?M:y.isCustomEmoji?y.shortcuts[0]:y.emojiId||R};
_.J.emojiAriaLabel=function(R){var y,u;return((y=_.Su(this.emojiManager,R))==null?void 0:(u=y.shortcuts)==null?void 0:u[0])||R};
_.J.onEmojiClick=function(R){R.model.index!==0&&(this.selectedIndex=R.model.index)};
_.J.onEmojiSelect=function(R){R=R.detail;var y,u;((y=this.data)==null?0:y.emojiCustomizationSetEntityKey)&&((u=this.emojiCustomizationSet)==null?0:u.emojiId)&&R.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,R.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.Gw("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,R.emojiId,this.selectedIndex)}))};
_.J.canEditEmoji=function(R,y,u){R=R.indexOf(y);return R===u||R===0||u===0?!1:!0};
_.J.getUpdatedEmojiIdList=function(R,y,u){var v=R.indexOf(y);R=[].concat(_.P$(R));v>=0&&(R[v]=R[u]);R[u]=y;return R};
_.RR.Object.defineProperties(TW,{template:{configurable:!0,enumerable:!0,get:function(){if(odK===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;TUg===void 0&&(TUg=document.createElement("template"));var v=TUg;u.call(y,v.content.cloneNode(!0),R.content.firstChild);odK=R}R=odK;return R}}});
TW.prototype.onEmojiSelect=TW.prototype.onEmojiSelect;_.A([_.n(_.YX),_.p("design:type",Object)],TW.prototype,"ytLiveChatReduxBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],TW.prototype,"ytActionHandlerBehavior",void 0);_.A([_.O7("yt-emoji-picker-renderer"),_.p("design:type",Object)],TW.prototype,"emojiPickerRenderer",void 0);
_.A([_.r({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(R,y){return _.TI(R.entities,"emojiCustomizationSetEntity",y)},
observer:"emojiCustomizationSetChanged"}),_.p("design:type",Object)],TW.prototype,"emojiCustomizationSet",void 0);_.A([_.r(),_.p("design:type",Object)],TW.prototype,"originalEmojiSet",void 0);_.A([_.r(),_.p("design:type",_.aJ)],TW.prototype,"emojiManager",void 0);_.A([_.r(),_.p("design:type",Object)],TW.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],TW.prototype,"isDarkTheme",void 0);_.A([_.r(),_.p("design:type",Object)],TW.prototype,"selectedIndex",void 0);
_.A([_.fu("yt-emoji-select"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],TW.prototype,"onEmojiSelect",null);_.A([_.pu({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],TW);var RAV;var y9Y;var uO8;var vH5;var oS=function(){var R=_.W.apply(this,arguments)||this;R.authorBadges=[];return R};
_.O(oS,_.W);_.J=oS.prototype;_.J.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.J.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]]"}}}}}};
_.J.dataChanged=function(){var R=IZT(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",R)};
_.J.updateMessage=function(){var R=this.data.message,y=_.hw(_.hw(this.hostElement).querySelector("#message"));y.textContent="";R&&y.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(R))};
_.J.shouldSupportWholeItemClick=function(){return!0};
_.J.onShowOriginalClick=function(R){R.preventDefault();this.showOriginal=!0};
_.J.computeShowBar=function(R,y,u){return R&&y||u};
_.J.computeAuthorBadges=function(R){return R.authorBadges||[]};
_.J.computeAuthorIsOwner=function(R){return!!haP(R.authorBadges,"owner")};
_.J.computeAuthorNameColor=function(R){var y;if(_.f("live_chat_author_name_color_usernames")&&(R==null?0:(y=R.authorName)==null?0:y.simpleText))return _.o5P(_.xhT(R.authorName.simpleText));if(_.f("live_chat_seed_color_usernames")&&(R==null?0:R.authorSeedColorArgb))return _.o5P(_.xi(R.authorSeedColorArgb));if(_.f("live_chat_colored_usernames"))return"#cc0000";var u;return _.f("live_chat_simple_color_usernames")&&(R==null?0:(u=R.authorName)==null?0:u.simpleText)&&(R==null?0:R.authorUsernameColorLight)&&
(R==null?0:R.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.xi(R.authorUsernameColorDark):_.xi(R.authorUsernameColorLight):""};
oS.prototype.updateMessage=oS.prototype.updateMessage;oS.prototype.dataChanged=oS.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],oS.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sj.YtLiveChatItemBehavior),_.p("design:type",_.zi)],oS.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],oS.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],oS.prototype,"data",void 0);
_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],oS.prototype,"showOriginal",void 0);_.A([_.r({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.p("design:type",Boolean)],oS.prototype,"isDimmed",void 0);_.A([_.r({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.p("design:type",Boolean)],oS.prototype,"showBar",void 0);
_.A([_.r({computed:"computeAuthorBadges(data)"}),_.p("design:type",Array)],oS.prototype,"authorBadges",void 0);_.A([_.r({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],oS.prototype,"authorIsOwner",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],oS.prototype,"inCollapsedBanner",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],oS.prototype,"inBanner",void 0);
_.A([_.r({value:_.f("live_chat_hide_avatars"),reflectToAttribute:!0}),_.p("design:type",Boolean)],oS.prototype,"avatarHidden",void 0);_.A([_.r({computed:"computeAuthorNameColor(data)"}),_.p("design:type",String)],oS.prototype,"authorNameColor",void 0);_.A([_.r(),_.p("design:type",_.RS)],oS.prototype,"participantsManager",void 0);_.A([_.r({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.p("design:type",Object)],oS.prototype,"filledButtonOverrides",void 0);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],oS.prototype,"dataChanged",null);_.A([_.e0("data.message"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],oS.prototype,"updateMessage",null);_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],oS);
_.m(oS,"yt-live-chat-text-message-renderer",function(){if(vH5===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;uO8===void 0&&(uO8=document.createElement("template"));var v=uO8;u.call(y,v.content.cloneNode(!0),R.content.firstChild);vH5=R}R=vH5;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var xC=function(){var R=_.W.apply(this,arguments)||this;R.tonalButtonOverrides={type:"tonal",style:"overlay"};return R};
_.O(xC,_.W);
xC.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]]"}}}}}};
xC.prototype.shouldSupportInlineActionButtons=function(){return!0};
xC.prototype.shouldSupportWholeItemClick=function(){return!0};
_.RR.Object.defineProperties(xC.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],xC.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sj.YtLiveChatItemBehavior),_.p("design:type",_.zi)],xC.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],xC.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],xC.prototype,"data",void 0);_.A([_.r(),_.p("design:type",_.RS)],xC.prototype,"participantsManager",void 0);
_.A([_.r(),_.p("design:type",Object)],xC.prototype,"tonalButtonOverrides",void 0);_.A([_.r({reflectToAttribute:!0}),_.G("data.infoDialogButton"),_.p("design:type",Object),_.p("design:paramtypes",[])],xC.prototype,"hasInfoDialogButton",null);_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],xC);
_.m(xC,"yt-live-chat-auto-mod-message-renderer",function(){if(y9Y===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;RAV===void 0&&(RAV=document.createElement("template"));var v=RAV;u.call(y,v.content.cloneNode(!0),R.content.firstChild);y9Y=R}R=y9Y;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var QIV;var jIc;var M3T;var J95=function(){return _.W.apply(this,arguments)||this};
_.O(J95,_.W);_.A([_.r(),_.p("design:type",Object)],J95.prototype,"data",void 0);_.A([_.q({is:"ytd-factoid-renderer",disableElementRegistration:!0})],J95);
_.m(J95,"ytd-factoid-renderer",function(){if(M3T!==void 0)return M3T;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return M3T=R},{mode:1});var B4=function(){return _.W.apply(this,arguments)||this};
_.O(B4,_.W);B4.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.A([_.r(),_.p("design:type",Object)],B4.prototype,"data",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],B4.prototype,"ytRendererstamperBehavior",void 0);_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],B4);
_.m(B4,"yt-live-chat-channel-activity-reputation-renderer",function(){if(jIc===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;QIV===void 0&&(QIV=document.createElement("template"));var v=QIV;u.call(y,v.content.cloneNode(!0),R.content.firstChild);jIc=R}R=jIc;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var V3c;var i3K;var f6=function(){return _.W.apply(this,arguments)||this};
_.O(f6,_.W);f6.prototype.ready=function(){var R=document.querySelector("yt-live-chat-app");R&&R.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],f6.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Boolean)],f6.prototype,"menuFocused",void 0);_.A([_.r(),_.p("design:type",Object)],f6.prototype,"data",void 0);_.A([_.n(_.sj.YtLiveChatItemBehavior),_.p("design:type",_.zi)],f6.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],f6);
_.m(f6,"yt-live-chat-donation-announcement-renderer",function(){if(i3K===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;V3c===void 0&&(V3c=document.createElement("template"));var v=V3c;u.call(y,v.content.cloneNode(!0),R.content.firstChild);i3K=R}R=i3K;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var KOK;var Isg,hAG=function(){if(Isg!==void 0)return Isg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;KOK===void 0&&(KOK=document.createElement("template"));var v=KOK;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return Isg=R};var ec=function(){return _.W.apply(this,arguments)||this};
_.O(ec,_.W);_.RR.Object.defineProperties(ec,{template:{configurable:!0,enumerable:!0,get:function(){return hAG()}}});
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],ec.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ec.prototype,"data",void 0);_.A([_.pu({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],ec);_.m(ec,"yt-live-chat-empty-feed-view-model",function(){return hAG()},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var b3c;var FOY;var lq=function(){return _.W.apply(this,arguments)||this};
_.O(lq,_.W);lq.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"}}}}}};
_.RR.Object.defineProperties(lq.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var R,y;return{runs:[{text:(R=this.data)==null?void 0:(y=R.channelName)==null?void 0:y.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var R=[],y;if((y=this.data)==null||!y.channelBadges)return R;var u;y=_.V((u=this.data)==null?void 0:u.channelBadges);for(u=y.next();!u.done;u=y.next()){u=_.e(u.value,vuc);var v=void 0,Q=void 0;if((v=u)==null?0:(Q=v.badgeImage)==null?0:Q.sources)v=void 0,Q={liveChatAuthorBadgeRenderer:{tooltip:u.tooltip,accessibility:{accessibilityData:{label:(v=_.e(u.rendererContext,_.GC))==null?void 0:v.label}}}},u.badgeImage.sources[0].clientResource?Q.liveChatAuthorBadgeRenderer.icon=
{iconType:u.badgeImage.sources[0].clientResource.imageName}:Q.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:u.badgeImage.sources},R.push(Q)}return R}}});
_.A([_.r(),_.p("design:type",Object)],lq.prototype,"data",void 0);_.A([_.G("data.channelName"),_.p("design:type",Object),_.p("design:paramtypes",[])],lq.prototype,"channelName",null);_.A([_.G("data.channelBadges"),_.p("design:type",Array),_.p("design:paramtypes",[])],lq.prototype,"channelBadges",null);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],lq.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],lq);
_.m(lq,"yt-live-chat-identity-view-model",function(){if(FOY===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;b3c===void 0&&(b3c=document.createElement("template"));var v=b3c;u.call(y,v.content.cloneNode(!0),R.content.firstChild);FOY=R}R=FOY;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var waV;var N45;var T48;var oHK;var OI=function(){var R=_.W.apply(this,arguments)||this;R.hidden=!1;R.supportsInlineActionButtons=!0;return R};
_.O(OI,_.W);OI.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","")};
OI.prototype.dataChanged=function(R){var y=(0,_.Nz)(_.hw(this.hostElement).querySelector("#detail-text"));y.textContent="";(R==null?0:R.detailText)&&y.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(R.detailText))};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],OI.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sj.YtLiveChatItemBehavior),_.p("design:type",_.zi)],OI.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],OI.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r({observer:"dataChanged"}),_.p("design:type",Object)],OI.prototype,"data",void 0);
_.A([_.r({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.p("design:type",Object)],OI.prototype,"hidden",void 0);_.A([_.q({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],OI);
_.m(OI,"yt-live-chat-legacy-paid-message-renderer",function(){if(oHK===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;T48===void 0&&(T48=document.createElement("template"));var v=T48;u.call(y,v.content.cloneNode(!0),R.content.firstChild);oHK=R}R=oHK;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var xaL;var B4g;var fsi={},ZY=function(){return _.HN.apply(this,arguments)||this};
_.O(ZY,_.HN);ZY.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
ZY.prototype.onLiveChatMembershipItemBehaviorClick=ZY.prototype.onLiveChatMembershipItemBehaviorClick;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ZY.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ZY.prototype,"data",void 0);_.A([_.fu("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],ZY.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.A([_.nu()],ZY);
fsi.YtLiveChatMembershipItemBehavior=[ZY.prototype,_.S.YtRendererBehavior];var H4=function(){var R=_.W.apply(this,arguments)||this;R.supportsInlineActionButtons=!0;R.hasPrimaryHeaderText=!1;R.showOnlyHeader=!1;R.authorBadges=[];R.modern=_.f("web_button_rework_with_live");R.buttonOverrides={style:"overlay",type:"filled"};return R};
_.O(H4,_.W);_.J=H4.prototype;_.J.shouldSupportInlineActionButtons=function(){return!0};
_.J.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.J.ready=function(){var R=document.querySelector("yt-live-chat-app");R&&R.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.J.messageChanged=function(){var R=this.data.message,y=(0,_.Nz)(_.hw(this.hostElement).querySelector("#message"));y.textContent="";R&&y.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(R))};
_.J.computeHasPrimaryHeaderText=function(R){return!(!R||!R.headerPrimaryText)};
_.J.computeShowOnlyHeader=function(R,y){return this.isMessageEmpty(R,y)};
_.J.computeAuthorBadges=function(R){return R.authorBadges||[]};
_.J.isMessageEmpty=function(R,y){return!R||R.empty?!0:!R.message&&!R.inputField&&!y};
_.J.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.J.getInputElement=function(){return _.hw(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.J.inputFocus=function(){var R=this.getInputElement();R&&R.focus()};
_.J.inputInsertEmoji=function(R){var y=this.getInputElement();y&&y.insertEmoji(R)};
_.J.inputMessage=function(){var R=this.getInputElement();return R&&this.data.inputField?(R.completeEmojis(),_.sy(R.liveChatRichMessageInput)):null};
_.J.onFooterButtonClick=function(){this.data.footerButton&&_.Ko(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.J.shouldSupportWholeItemClick=function(){return!0};
H4.prototype.isDeletedChanged=H4.prototype.isDeletedChanged;H4.prototype.messageChanged=H4.prototype.messageChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],H4.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sj.YtLiveChatItemBehavior),_.p("design:type",_.zi)],H4.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.n(fsi.YtLiveChatMembershipItemBehavior),_.p("design:type",Object)],H4.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],H4.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],H4.prototype,"data",void 0);_.A([_.r({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.p("design:type",Object)],H4.prototype,"hasPrimaryHeaderText",void 0);_.A([_.r({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.p("design:type",Object)],H4.prototype,"showOnlyHeader",void 0);
_.A([_.r({computed:"computeAuthorBadges(data)"}),_.p("design:type",Array)],H4.prototype,"authorBadges",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],H4.prototype,"modern",void 0);_.A([_.e0("data.message"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],H4.prototype,"messageChanged",null);_.A([_.e0("isDeleted"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],H4.prototype,"isDeletedChanged",null);
_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],H4);
_.m(H4,"yt-live-chat-membership-item-renderer",function(){if(B4g===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;xaL===void 0&&(xaL=document.createElement("template"));var v=xaL;u.call(y,v.content.cloneNode(!0),R.content.firstChild);B4g=R}R=B4g;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var eAK;var lsY;var n6=function(){return _.W.apply(this,arguments)||this};
_.O(n6,_.W);n6.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],n6.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],n6.prototype,"data",void 0);_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],n6);
_.m(n6,"yt-live-chat-mode-change-message-renderer",function(){if(lsY===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;eAK===void 0&&(eAK=document.createElement("template"));var v=eAK;u.call(y,v.content.cloneNode(!0),R.content.firstChild);lsY=R}R=lsY;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var O3c;var Z3L;var GW=function(){return _.W.apply(this,arguments)||this};
_.O(GW,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],GW.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sj.YtLiveChatItemBehavior),_.p("design:type",_.zi)],GW.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],GW.prototype,"data",void 0);_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],GW);
_.m(GW,"yt-live-chat-moderation-message-renderer",function(){if(Z3L===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;O3c===void 0&&(O3c=document.createElement("template"));var v=O3c;u.call(y,v.content.cloneNode(!0),R.content.firstChild);Z3L=R}R=Z3L;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var H3b;var nHT;var rT=function(){var R=_.W.apply(this,arguments)||this;R.modern=_.f("web_button_rework");return R};
_.O(rT,_.W);rT.prototype.onClick=function(){var R;if((R=this.data)!=null&&R.onClickCommand){var y;_.lX.instance.resolveCommand((y=this.data)==null?void 0:y.onClickCommand)}};
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],rT.prototype,"modern",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],rT.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.YX),_.p("design:type",Object)],rT.prototype,"ytLiveChatReduxBehavior",void 0);_.A([_.n(_.sj.YtLiveChatItemBehavior),_.p("design:type",_.zi)],rT.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],rT.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],rT.prototype,"data",void 0);_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],rT);
_.m(rT,"yt-live-chat-offer-click-count-message-renderer",function(){if(nHT===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;H3b===void 0&&(H3b=document.createElement("template"));var v=H3b;u.call(y,v.content.cloneNode(!0),R.content.firstChild);nHT=R}R=nHT;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var G85;var r9V=function(){return _.W.apply(this,arguments)||this};
_.O(r9V,_.W);_.A([_.r(),_.p("design:type",Object)],r9V.prototype,"data",void 0);_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],r9V);
_.m(r9V,"yt-live-chat-placeholder-item-renderer",function(){if(G85===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);G85=R}R=G85;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var PdK;var WOc;var daY=new gN(7),P4=function(){var R=_.W.apply(this,arguments)||this;R.data={};return R};
_.O(P4,_.W);P4.prototype.dataChanged=function(){var R;((R=this.data)==null?0:R.class)&&_.FN(this.hostElement,this.data.class,!0);var y;((y=this.oldData)==null?0:y.class)&&_.FN(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
P4.prototype.computeTimestampString=function(R){return daY.format(new Date(R/1E3))};
P4.prototype.dataChanged=P4.prototype.dataChanged;_.A([_.r(),_.p("design:type",Object)],P4.prototype,"data",void 0);_.A([_.r({computed:"computeTimestampString(data.timestampUsec)"}),_.p("design:type",String)],P4.prototype,"timestampString",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],P4.prototype,"dataChanged",null);_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],P4);
_.m(P4,"yt-live-chat-server-error-message",function(){if(WOc===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;PdK===void 0&&(PdK=document.createElement("template"));var v=PdK;u.call(y,v.content.cloneNode(!0),R.content.firstChild);WOc=R}R=WOc;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var Ua5;var k8G;var W4=function(){var R=_.W.apply(this,arguments)||this;R.defaultToFilledIcon=!1;return R};
_.O(W4,_.W);W4.prototype.computeHasPrimaryColorIcon=function(R){return R==="SPARK"||R==="SPONSORSHIP_STAR"};
W4.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],W4.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sj.YtLiveChatItemBehavior),_.p("design:type",_.zi)],W4.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],W4.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],W4.prototype,"defaultToFilledIcon",void 0);_.A([_.r(),_.p("design:type",Object)],W4.prototype,"data",void 0);
_.A([_.r({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.p("design:type",Boolean)],W4.prototype,"hasPrimaryColorIcon",void 0);_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],W4);
_.m(W4,"yt-live-chat-viewer-engagement-message-renderer",function(){if(k8G===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;Ua5===void 0&&(Ua5=document.createElement("template"));var v=Ua5;u.call(y,v.content.cloneNode(!0),R.content.firstChild);k8G=R}R=k8G;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var EH5;var dT=function(){var R=_.W.apply(this,arguments)||this;R.modernUpdate=!1;R.buttonStyle="overlay";R.buttonType="filled";return R};
_.O(dT,_.W);dT.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
dT.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],dT.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],dT.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],dT.prototype,"modernUpdate",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],dT.prototype,"buttonStyle",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],dT.prototype,"buttonType",void 0);
_.A([_.q({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],dT);
_.m(dT,"ytd-ad-hover-text-button-renderer",function(){if(EH5!==void 0)return EH5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return EH5=R},{mode:1});var $ag;var UI=function(){var R=_.W.apply(this,arguments)||this;R.buttonOverrides={size:"XS"};R.modern=_.f("web_button_rework");return R};
_.O(UI,_.W);UI.prototype.onHelpTap=function(R){this.data&&this.data.informationDialog&&(_.Ko(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),R.preventDefault(),R.stopPropagation())};
_.A([_.r(),_.p("design:type",Object)],UI.prototype,"buttonOverrides",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],UI.prototype,"modern",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],UI.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],UI.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],UI);
_.m(UI,"ytd-live-chat-purchased-product-message-renderer",function(){if($ag!==void 0)return $ag;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return $ag=R},{mode:1});var qeG;var XaV;var kC=function(){var R=_.W.apply(this,arguments)||this;R.isContainerDeleted=!1;return R};
_.O(kC,_.W);kC.prototype.onContextMenuClick=function(R){this.ytLiveChatItemBehavior.showContextMenu(R)};
kC.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))};
kC.prototype.isContainerDeletedChanged=kC.prototype.isContainerDeletedChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],kC.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sj.YtLiveChatItemBehavior),_.p("design:type",_.zi)],kC.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],kC.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],kC.prototype,"isContainerDeleted",void 0);
_.A([_.r(),_.p("design:type",String)],kC.prototype,"deletedStateMessage",void 0);_.A([_.e0("isContainerDeleted"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],kC.prototype,"isContainerDeletedChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],kC);
_.m(kC,"ytd-sponsorships-live-chat-header-renderer",function(){if(XaV!==void 0)return XaV;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return XaV=R},{mode:1});var EI=function(){var R=_.W.apply(this,arguments)||this;R.modern=_.f("web_button_rework_with_live");R.buttonOverrides={style:"overlay",type:"filled"};return R};
_.O(EI,_.W);EI.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]]"}}}}}};
EI.prototype.onCtaButtonClick=function(){var R,y=_.e((R=this.data)==null?void 0:R.optInPrompt,_.aG);if(R=this.maybeGetButtonCommand(y)){var u;(u=_.GN())==null||u.clickCommand(R)}};
EI.prototype.maybeGetButtonCommand=function(R){return!R||!R.command||_.e(R.command,$Lb)===void 0&&_.e(R.command,WIc)===void 0?null:R.command};
EI.prototype.shouldHideOptinPrompt=function(R,y){return!R||y};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],EI.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.sj.YtLiveChatItemBehavior),_.p("design:type",_.zi)],EI.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],EI.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],EI.prototype,"modern",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],EI);
_.m(EI,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(qeG!==void 0)return qeG;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return qeG=R},{mode:1});var mag;var $C=function(){return _.W.apply(this,arguments)||this};
_.O($C,_.W);$C.prototype.onContextMenuClick=function(R){this.ytLiveChatItemBehavior.showContextMenu(R)};
$C.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))};
$C.prototype.isDeletedChanged=$C.prototype.isDeletedChanged;_.A([_.n(_.sj.YtLiveChatItemBehavior),_.p("design:type",_.zi)],$C.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],$C.prototype,"data",void 0);_.A([_.e0("isDeleted"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$C.prototype,"isDeletedChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],$C);
_.m($C,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(mag!==void 0)return mag;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return mag=R},{mode:1});var qA=function(){var R=_.W.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};
_.O(qA,_.W);_.J=qA.prototype;
_.J.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"}}}};
_.J.handleLiveChatAction=function(R){_.e(R,YvY)?this.handleMarkChatItemAsDeletedAction(_.e(R,YvY)):_.e(R,SvK)&&this.handleRemoveChatItemAction(_.e(R,SvK))};
_.J.handleLiveChatActions=function(R){R.forEach(this.handleLiveChatAction,this)};
_.J.handleMarkChatItemAsDeletedAction=function(R){var y=this,u;((u=this.data)==null?0:u.items)&&this.data.items.forEach(function(v,Q){var M=Object.keys(v)[0];Object.values(v)[0].id===R.targetItemId&&y.markAsDeleted("data.items",Q,M,R.deletedStateMessage,R.showOriginalContentMessage)})};
_.J.handleRemoveChatItemAction=function(R){var y=this,u;((u=this.data)==null?0:u.items)&&this.data.items.forEach(function(v,Q){Object.values(v)[0].id===R.targetItemId&&y.splice("data.items",Q,1)})};
_.J.markAsDeleted=function(R,y,u,v,Q){R=[R,y,u].join(".");this.set(R+".deletedStateMessage",v);this.set(R+".showOriginalContentMessage",Q)};
_.A([_.r(),_.p("design:type",Object)],qA.prototype,"data",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],qA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],qA.prototype,"ytActionHandlerBehavior",void 0);_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],qA);
_.m(qA,"yt-live-chat-item-display-list-renderer",function(){if(N45===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;waV===void 0&&(waV=document.createElement("template"));var v=waV;u.call(y,v.content.cloneNode(!0),R.content.firstChild);N45=R}R=N45;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var A9V;var Dag,pac=function(){if(Dag!==void 0)return Dag;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;A9V===void 0&&(A9V=document.createElement("template"));var v=A9V;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return Dag=R};var X0=function(){var R=_.W.apply(this,arguments)||this;R.isHeader=!1;return R};
_.O(X0,_.W);X0.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.RR.Object.defineProperties(X0,{template:{configurable:!0,enumerable:!0,get:function(){return pac()}}});
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],X0.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],X0.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],X0.prototype,"isHeader",void 0);_.A([_.pu({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],X0);_.m(X0,"yt-live-chat-item-display-renderer",function(){return pac()},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var t3b,c9c,sIc,LOg;
t3b={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}};c9c={home:"eohps",search:"eosps",watch:"eowps"};_.asK=["watch","search","home"];
_.m5=function(){this.JSC$14208_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14208_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.EB("PRECONSTRUCTION_DELAY",0);this.signals_=_.Lx();this.targetPage_=""};
_.m5.prototype.init=function(R,y){R=R===void 0?"":R;y=y===void 0?null:y;if(this.JSC$14208_isInitialized_)this.abort();else if(this.JSC$14208_isInitialized_=!0,R&&_.Sew(this,R),y){var u=_.sT(this.signals_,"pcl")?0:10,v=function(){for(var Q=0,M;M=_.asK[Q++];)M!=R&&M!=y&&this.pendingPages_.push(M);_.YeL(this)}.bind(this);
this.signals_.parkOrScheduleJob(v,u,"pcl")}};
_.m5.prototype.abort=function(){this.fragmentJobId_&&(_.WG.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);LOg(this)};
_.Sew=function(R,y){R.JSC$14208_isInitialized_&&!R.targetPage_&&(R.targetPage_=y,sIc(R,y),R.isInitialPass_=!1,sIc(R,y),R.signals_.processSignal(c9c[R.targetPage_]),LOg(R),_.YeL(R))};
_.YeL=function(R){R.pendingPages_.length&&!R.pagePreparerJobId_&&(R.pagePreparerJobId_=_.Oh(_.WG,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.Sew(this,this.pendingPages_.shift())}.bind(R),R.DEFAULT_DELAY_))};
sIc=function(R,y){if(y=t3b[y])for(var u in y){var v=!1,Q=u;u.charAt(0)=="~"&&(v=!0,Q=u.substring(1));var M=y[u];M=typeof M=="object"?M:{count:M};y[u]=M;M.componentName=Q;M.count>0&&(R.isInitialPass_?v||R.isSeenDuringInitialPass_[Q]||(R.JSC$14208_queue_.push({componentName:Q,count:1,signals:M.signals}),R.isSeenDuringInitialPass_[Q]=!0,M.count--):R.JSC$14208_queue_.push(M))}};
LOg=function(R){R.JSC$14208_queue_.length=0;R.targetPage_="";R.isInitialPass_=!0;R.signals_.processSignal("eop")};
_.m5.getInstance=function(){return _.Vz(_.m5)};var zA8=function(){this.signals=_.Lx();this.init()};
zA8.prototype.startPreconstruction=function(){_.m5.getInstance().init(_.$B("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
zA8.prototype.init=function(){gHY(this);window.Polymer&&Qxc&&CqU();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var R=_.uO.ytcsi;if(R&&R.gt&&(R=R.gt())&&R.tick&&(R.tick.aft>0||R.tick.pbs>0)&&(_.$B("IS_HOMEPAGE_COLD")||_.$B("IS_RESULTS_PAGE_COLD")||_.$B("IS_WATCH_PAGE_COLD"))){Cdc(this);break a}K8P(sU4,this.onNotifications,this)}};
var gHY=function(R){var y=function(){R.signals.processSignal("dl")};
document.readyState==="complete"?(_.pG(Error("th"),"WARNING"),y()):_.mkU(window,"load",y)};
zA8.prototype.onNotifications=function(R){R.timer||(_.$B("IS_HOMEPAGE_COLD")||_.$B("IS_RESULTS_PAGE_COLD")||_.$B("IS_WATCH_PAGE_COLD"))&&Cdc(this)};
var Cdc=function(R){R.signals.parkOrScheduleJob(function(){R.signals.processSignal("eocs")},10,"eor")};
new zA8;var A3,R9Y=function(){return _.HN.apply(this,arguments)||this};
_.O(R9Y,_.HN);_.J=R9Y.prototype;_.J.enableActiveViewMeasurement=function(R){if(this.isActiveViewEnabled(R)){var y=this.getUrlPrefixesFromCommand(R.viewableCommands);R=this.getUrlPrefixesFromCommand(R.endOfSessionCommands);if(!A3){var u=_.JT("custom_active_view_tos_timeout_ms");A3=u>0&&u!==36E5?new FLv(this.getVersion(),u):new FLv(this.getVersion())}N6P(A3,this.hostElement);T6c(A3,this.hostElement,y,R)}};
_.J.stopActiveViewMeasurement=function(){A3&&N6P(A3,this.hostElement)};
_.J.isActiveViewEnabled=function(R){return!!R&&(this.hasAtLeastOneUrl(R.viewableCommands)||this.hasAtLeastOneUrl(R.endOfSessionCommands))};
_.J.hasAtLeastOneUrl=function(R){return!!R&&R.length>0&&R[0].loggingUrls!=null&&R[0].loggingUrls.length>0};
_.J.getVersion=function(){var R=_.EB("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(R==null?void 0:R.length)===2?R[1]:null};
_.J.getUrlPrefixesFromCommand=function(R){if(!R)return[];var y=[];R=_.V(R);for(var u=R.next();!u.done;u=R.next())if(u=u.value,u.loggingUrls){u=_.V(u.loggingUrls);for(var v=u.next();!v.done;v=u.next())v=v.value,v.baseUrl&&y.push(v.baseUrl)}return y};
_.A([_.nu()],R9Y);var DY=[R9Y.prototype];var yVY=function(){return _.HN.apply(this,arguments)||this};
_.O(yVY,_.HN);_.RR.Object.defineProperties(yVY.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.f("enable_entity_store_from_dependency_injection")?_.uX():_.Qe()}}});
_.A([_.nu()],yVY);_.p6=[An.prototype,yVY.prototype];var uEi=["ytd-rich-shelf-renderer"],t3=function(){var R=_.HN.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};
_.O(t3,_.HN);_.J=t3.prototype;_.J.dismissibleItemIsDismissedChanged_=function(R){_.f("kevlar_fluid_dismiss")&&(R?_.Ko(this.hostElement,"yt-dismissible-item-dismissed"):_.Ko(this.hostElement,"yt-dismissible-item-undismissed"))};
_.J.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.J.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 _.F4(function(y,u){R.followUpDialogPromiseResolve=y;R.followUpDialogPromiseReject=u});
_.Ko(this.hostElement,"yt-enable-lockup-interaction")};
_.J.dismissibleItemOnYtServiceRequestSent_=function(R,y){y.actions&&this.dismissibleItemProcessActions(y.actions,R)};
_.J.dismissibleItemOnRequestSent=function(R){if(_.f("web_button_rework"))for(var y=_.V(R.detail),u=y.next();!u.done;u=y.next()){var v=void 0;(u=(v=_.e(u.value,_.xF))==null?void 0:v.actions)&&this.dismissibleItemProcessActions(u,R)}};
_.J.dismissibleItemOnCommandSent=function(R,y){y&&this.dismissibleItemProcessActions(y,R)};
_.J.setAndGetDismissedContentId=function(R){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+R};
_.J.replayDismissAction=function(R){this.dismissibleItemProcessActions([R])};
_.J.dismissibleItemProcessActions=function(R,y){for(var u=0;u<R.length;u++){var v=R[u],Q=void 0;((Q=_.e(v,_.TP))==null?0:Q.commands)&&this.dismissibleItemProcessActions(_.e(v,_.TP).commands,y);if(_.e(v,_.Pe)){if(Q=_.e(v,_.Pe),!Q.replaceParentSection||uEi.includes(this.hostElement.nodeName.toLowerCase()))_.f("web_see_fewer_shorts_reactive_dismissal")&&Q.groupDismissal&&t3L(this,Q.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(Q),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Gw("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:v})),v=void 0,(v=y)==null||v.stopPropagation()}else if(_.e(v,YOT))this.dismissibleItemHandleHideEnclosingAction_(),v=void 0,(v=y)==null||v.stopPropagation();else if(_.e(v,Nqb))_.f("web_see_fewer_shorts_reactive_dismissal")&&(v=_.e(v,Nqb),Q=void 0,((Q=v)==null?0:Q.targetGroupId)&&t3L(this,{targetGroupId:v.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Gw("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),v=void 0,(v=y)==null||v.stopPropagation();else if(_.e(v,_.xF))(v=_.e(v,_.xF).actions)&&_.wr(this.hostElement,v,this.hostElement),v=void 0,(v=y)==null||v.stopPropagation();else{var M=Q=void 0;((Q=_.e(v,_.Dz))==null?void 0:Q.signal)!=="TELL_US_WHY"||((M=_.e(v,_.Dz))==null?0:M.targetId)&&_.f("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),v=void 0,(v=y)==null||v.stopPropagation())}}};
_.J.dismissibleItemOnYtServiceRequestCompleted_=function(R,y){var u=this.get("feedbackResponses.0.followUpDialog",y.data);u?this.followUpDialogPromiseResolve(u):y.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(y.actions,R)};
_.J.dismissibleItemHandleReplaceEnclosingAction_=function(R){this.dismissedRenderer=R.item;this.isDismissed=!0;var y=null;(y=_.hw(this.hostElement).querySelector("#dismissed"))&&_.gn(this,function(){_.Y2(y)});
_.Ko(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.J.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.J.dismissibleItemHandleUndoFeedbackAction_=function(){_.Ko(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.J.dismissibleItemHandleTellUsWhySignalAction_=function(){var R=this;this.followUpDialogPromise.then(function(y){R.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:y}})})};
t3.prototype.dismissibleItemOnYtServiceRequestCompleted_=t3.prototype.dismissibleItemOnYtServiceRequestCompleted_;t3.prototype.dismissibleItemOnCommandSent=t3.prototype.dismissibleItemOnCommandSent;t3.prototype.dismissibleItemOnRequestSent=t3.prototype.dismissibleItemOnRequestSent;t3.prototype.dismissibleItemOnYtServiceRequestSent_=t3.prototype.dismissibleItemOnYtServiceRequestSent_;t3.prototype.dismissibleItemDataChanged_=t3.prototype.dismissibleItemDataChanged_;
t3.prototype.dismissibleItemIsDismissedChanged_=t3.prototype.dismissibleItemIsDismissedChanged_;_.A([_.n(_.jc),_.p("design:type",Object)],t3.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],t3.prototype,"ytdReduxBehavior",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],t3.prototype,"isDismissed",void 0);_.A([_.r(),_.p("design:type",Object)],t3.prototype,"dismissedRenderer",void 0);
_.A([_.e0("isDismissed"),_.p("design:type",Function),_.p("design:paramtypes",[Boolean]),_.p("design:returntype")],t3.prototype,"dismissibleItemIsDismissedChanged_",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],t3.prototype,"dismissibleItemDataChanged_",null);
_.A([_.fu("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.z3]),_.p("design:returntype")],t3.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.A([_.fu("yt-service-request-sent-button-renderer"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],t3.prototype,"dismissibleItemOnRequestSent",null);
_.A([_.fu("yt-dismissible-item-action"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Array]),_.p("design:returntype")],t3.prototype,"dismissibleItemOnCommandSent",null);_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Mp]),_.p("design:returntype")],t3.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.A([_.nu()],t3);_.c4=[_.jc,_.p6,t3.prototype];var aS=function(){var R=_.HN.apply(this,arguments)||this;R.disableGridStateAware=!1;R.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};R.currentGridClass="";return R};
_.O(aS,_.HN);aS.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.gn(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var R=this.gridStateAwareGetElement();_.FN(R,"grid",!0)}};
aS.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
aS.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.hw(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
aS.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var R="grid-disabled";else{R=_.mML.getInstance();var y=this.get("pageSubtype");R=y&&$M5.includes(y)?"grid-disabled":R.currentSnapState_?R.currentSnapState_.className:null}(y=this.gridStateAwareGetElement())&&R!==this.currentGridClass&&(R&&_.FN(y,R,!0),this.currentGridClass&&_.FN(y,this.currentGridClass,!1),this.currentGridClass=R)};
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],aS.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",String)],aS.prototype,"gridStateAwareSizingElementSelector",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],aS.prototype,"disableGridStateAware",void 0);_.A([_.nu()],aS);_.Sc=[aS.prototype,_.bW.YtActionHandlerBehavior];_.YC=new _.Jx("GUIDE_TOKEN");var sI;_.L6={};sI=function(){var R=_.HN.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};
_.O(sI,_.HN);_.J=sI.prototype;_.J.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.J.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var R=_.ua().resolve(_.yN(_.YC));R&&(this.guidePersistentAndVisible=R.getGuidePersistentAndVisible(),this.activeEndpoint=R.getActiveEndpoint(),this.guideOpened=R.getGuideOpened(),this.miniGuideVisible=R.getMiniGuideVisible())};
_.J.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.J.handleGuideStateAction=function(R){this.guidePersistentAndVisible=R};
_.J.handleMiniGuideStateAction=function(R){this.miniGuideVisible=R};
_.J.handleGuideOpenedAction=function(R){this.guideOpened=R};
_.J.handleActiveEndpointAction=function(R){this.activeEndpoint=R};
sI.prototype.onActiveEndpointChange=sI.prototype.onActiveEndpointChange;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],sI.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],sI.prototype,"guidePersistentAndVisible",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],sI.prototype,"miniGuideVisible",void 0);_.A([_.r(),_.p("design:type",Object)],sI.prototype,"activeEndpoint",void 0);
_.A([_.e0("activeEndpoint"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sI.prototype,"onActiveEndpointChange",null);_.A([_.r(),_.p("design:type",Boolean)],sI.prototype,"guideOpened",void 0);_.A([_.nu()],sI);_.L6.YtdGuideStateAwareBehavior=[];_.L6.YtdGuideStateAwareBehavior.push(sI.prototype,_.bW.YtActionHandlerBehavior);var vgi=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],zW=function(){var R=_.HN.apply(this,arguments)||this;R.hoverJobId=0;R.JSC$14239_touched=!1;return R};
_.O(zW,_.HN);_.J=zW.prototype;_.J.created=function(){this.useExpandableTooltip=!vgi.includes(this.is)};
_.J.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.J.detached=function(){this.useExpandableTooltip=!1};
_.J.lockupOnDown=function(R){this.interactionElement&&!_.JF(_.u8(R),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.J.lockupOnUp=function(R){this.interactionElement&&!_.JF(_.u8(R),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.J.onTouchStart=function(){this.JSC$14239_touched=!0};
_.J.lockupOnMouseEnter=function(){var R=this,y=_.JT("kevlar_lockup_hover_delay",-1);this.JSC$14239_touched&&y>=0?(_.WG.cancelJob(this.hoverJobId),this.hoverJobId=_.WG.addJob(function(){R.lockupIsHovered=!0},8,y),this.JSC$14239_touched=!1):this.lockupIsHovered=!0};
_.J.lockupOnMouseLeave=function(){this.hoverJobId&&(_.WG.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.J.lockupOnPopupClosed=function(R,y){var u;((u=y.popupRenderer)==null?void 0:u.is)==="ytd-menu-popup-renderer"&&(R=y.popupRenderer.veData,y=_.$I(),R&&y&&_.s9(y,[R]))};
_.J.lockupOnLockupRequested=function(R){var y=R.detail.videoIds[0],u;R.detail&&y===((u=this.data)==null?void 0:u.videoId)&&(R.detail.returnValue=[this.data])};
_.J.lockupOnYtServiceRequestSent=function(R,y){if(R=y.actions)for(var u=0;u<R.length;u++){var v=R[u];if(v.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&y.ajaxPromise){var Q=void 0,M=(Q=_.e(y.endpoint,_.pt))==null?void 0:Q.playlistId;Q=void 0;v=(Q=v.removedVideoId)!=null?Q:"";V7V(_.gQ(),v,M)}else v.action==="ACTION_REMOVE_VIDEO"&&y.ajaxPromise&&(M=void 0,v=(M=v.setVideoId)!=null?M:"",_.iEb(_.gQ(),v))}};
_.J.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.J.lockupOnLockupEnabled=function(){if(!this.$){var R=_.ua().resolve(_.iD).getCurrentPage(),y=this.getParentRenderer?this.getParentRenderer():void 0;_.kT(new _.OL("component not ready",this.is,this.isAttached,R==null?void 0:R.is,y==null?void 0:y.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
zW.prototype.lockupOnLockupEnabled=zW.prototype.lockupOnLockupEnabled;zW.prototype.lockupOnLockupDisabled=zW.prototype.lockupOnLockupDisabled;zW.prototype.lockupOnYtServiceRequestSent=zW.prototype.lockupOnYtServiceRequestSent;zW.prototype.lockupOnLockupRequested=zW.prototype.lockupOnLockupRequested;zW.prototype.lockupOnPopupClosed=zW.prototype.lockupOnPopupClosed;zW.prototype.lockupOnMouseLeave=zW.prototype.lockupOnMouseLeave;zW.prototype.lockupOnMouseEnter=zW.prototype.lockupOnMouseEnter;
zW.prototype.onTouchStart=zW.prototype.onTouchStart;zW.prototype.lockupOnUp=zW.prototype.lockupOnUp;zW.prototype.lockupOnDown=zW.prototype.lockupOnDown;_.A([_.r(),_.p("design:type",Object)],zW.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Boolean)],zW.prototype,"lockupIsHovered",void 0);_.A([_.r(),_.p("design:type",Boolean)],zW.prototype,"lockupTouchTriggered",void 0);_.A([_.r(),_.p("design:type",Boolean)],zW.prototype,"useExpandableTooltip",void 0);
_.A([_.O7("#interaction"),_.p("design:type",Object)],zW.prototype,"interactionElement",void 0);_.A([_.fu("down"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],zW.prototype,"lockupOnDown",null);_.A([_.fu("up"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],zW.prototype,"lockupOnUp",null);
_.A([_.fu("touchstart"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zW.prototype,"onTouchStart",null);_.A([_.fu("mouseenter"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zW.prototype,"lockupOnMouseEnter",null);_.A([_.fu("mouseleave"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zW.prototype,"lockupOnMouseLeave",null);
_.A([_.fu("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],zW.prototype,"lockupOnPopupClosed",null);_.A([_.fu("yt-lockup-requested"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],zW.prototype,"lockupOnLockupRequested",null);
_.A([_.fu("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.z3]),_.p("design:returntype")],zW.prototype,"lockupOnYtServiceRequestSent",null);_.A([_.fu("yt-disable-lockup-interaction"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zW.prototype,"lockupOnLockupDisabled",null);
_.A([_.fu("yt-enable-lockup-interaction"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zW.prototype,"lockupOnLockupEnabled",null);_.A([_.nu()],zW);_.gT=[zW.prototype];_.QvL={YtdReduxBehavior:[]};_.QvL.YtdReduxBehavior.push.apply(_.QvL.YtdReduxBehavior,_.p6);var C6=function(){var R=_.HN.apply(this,arguments)||this;R._noAccessors=!0;R.disableNowPlaying=!1;R.disableTooltips=!1;R.useHoveredProperty=!1;R.hovered=!1;R.isThumbnailHovered_=!1;R.addBackground=_.f("kevlar_thumbnail_bg");R.nowPlaying=!1;R.disableRounding=!1;R.size="small";return R};
_.O(C6,_.HN);_.J=C6.prototype;_.J.computeThumbnailOverlaySidePanelWidth_=function(R,y){return R-y};
_.J.computeSize=function(R,y){if(!this.disableRounding){if(!R&&!y)return"small";R=Math.max(R||0,y||0);return R>=256?"large":R>=96?"medium":"small"}};
_.J.computeFinalHoveredState_=function(R,y,u){return this.nowPlaying?!1:_.f("kevlar_thumbnail_fluid")&&R?y:u};
_.J.computeHoverOverlays_=function(R,y){return R&&y?y:void 0};
_.J.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.J.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.J.checkMiniplayer_=function(){var R;if(((R=this.data)==null?0:R.playlistSetVideoId)&&_.f("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{R=_.Hr();var y=R.currentEndpoint;!this.disableNowPlaying&&y&&_.e(y,_.zM)&&this.data?(y=_.e(y,_.zM),this.nowPlaying=this.data.playlistId?y.playlistId===this.data.playlistId:y.videoId===this.data.videoId,this.isVideoPlaying=R==null?void 0:R.isVideoPlaying):this.nowPlaying=!1}};
C6.prototype.checkMiniplayer_=C6.prototype.checkMiniplayer_;C6.prototype.onMouseLeave_=C6.prototype.onMouseLeave_;C6.prototype.onMouseEnter_=C6.prototype.onMouseEnter_;C6.prototype.computeHoverOverlays_=C6.prototype.computeHoverOverlays_;C6.prototype.computeFinalHoveredState_=C6.prototype.computeFinalHoveredState_;C6.prototype.computeSize=C6.prototype.computeSize;C6.prototype.computeThumbnailOverlaySidePanelWidth_=C6.prototype.computeThumbnailOverlaySidePanelWidth_;
_.A([_.n(_.p6),_.p("design:type",Object)],C6.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],C6.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Number)],C6.prototype,"height",void 0);_.A([_.r(),_.p("design:type",Boolean)],C6.prototype,"bottomSidePanel",void 0);_.A([_.r(),_.p("design:type",Number)],C6.prototype,"width",void 0);_.A([_.r(),_.p("design:type",Object)],C6.prototype,"disableNowPlaying",void 0);
_.A([_.r({selector:_.X9}),_.p("design:type",Boolean)],C6.prototype,"miniplayerIsActive",void 0);_.A([_.r(),_.p("design:type",Object)],C6.prototype,"disableTooltips",void 0);_.A([_.r(),_.p("design:type",Object)],C6.prototype,"useHoveredProperty",void 0);_.A([_.r(),_.p("design:type",Object)],C6.prototype,"hovered",void 0);_.A([_.r(),_.p("design:type",Object)],C6.prototype,"isThumbnailHovered_",void 0);
_.A([_.r({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.p("design:type",Boolean)],C6.prototype,"finalHoveredState_",void 0);_.A([_.r({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.p("design:type",Number)],C6.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],C6.prototype,"addBackground",void 0);
_.A([_.r({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.p("design:type",Object)],C6.prototype,"hoverOverlays_",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],C6.prototype,"nowPlaying",void 0);_.A([_.r(),_.p("design:type",Boolean)],C6.prototype,"isVideoPlaying",void 0);_.A([_.r(),_.p("design:type",Object)],C6.prototype,"disableRounding",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.p("design:type",Object)],C6.prototype,"size",void 0);_.A([_.fu("mouseenter"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],C6.prototype,"onMouseEnter_",null);_.A([_.fu("mouseleave"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],C6.prototype,"onMouseLeave_",null);
_.A([_.e0("data","disableNowPlaying","miniplayerIsActive"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],C6.prototype,"checkMiniplayer_",null);_.A([_.nu()],C6);var jvc=[C6.prototype];_.Ra={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(R,y){return R+":"+_.YS(y)},
getPlayerListener_:function(R,y,u){R=this.getPlayerListenerKey_(R,y);y=this.playerListeners_.get(R);u&&this.playerListeners_.delete(R);return y},
savePlayerListener_:function(R,y){var u=y.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(R,y),u);return u},
listenToPlayerEvent:function(R,y,u){u=this.savePlayerListener_(y,u);R.addEventListener(y,u)},
listenToPlayerEvents:function(R,y){y.forEach(function(u,v){this.listenToPlayerEvent(R,v,u)}.bind(this))},
unlistenFromPlayerEvent:function(R,y,u){u=this.getPlayerListener_(y,u,!0);R.removeEventListener(y,u)},
unlistenFromPlayerEvents:function(R,y){y.forEach(function(u,v){this.unlistenFromPlayerEvent(R,v,u)}.bind(this))}}};
_.yH=function(){};_.MDc=new _.Jx("PLAYER_API_TOKEN");var zAS=!1,yV8,CdG=!1,vgP;var Fs=function(R,y,u,v,Q){_.Z0.call(this);var M=this;this.playerId=y;this.webPlayerContextConfig=v;this.dwe=Q;this.bCO=!1;this.api={};this.zqS=this.dxa=null;this.kmS=new _.Tu;this.k5={};this.gYK=this.jGK=this.elementId=this.xkg=this.config=null;this.w1b=!1;this.zW=this.r7d=null;this.yQN={};this.a3D=["onReady"];this.lastError=null;this.gms=NaN;this.qEw={};this.jVN=0;this.dE=this.targetElement=R;_.bx(this,this.kmS);JVi(this);u?this.jVN=setTimeout(function(){M.loadNewVideoConfig(u)},0):v&&(VDc(this),
iqY(this))};
_.O(Fs,_.Z0);Fs.prototype.getId=function(){return this.playerId};
Fs.prototype.loadNewVideoConfig=function(R){if(!this.isDisposed()){this.jVN&&(clearTimeout(this.jVN),this.jVN=0);var y=R||{};y instanceof xAL||(y=new xAL(y));this.config=y;this.setConfig(R);iqY(this);this.isReady()&&KpL(this)}};
var VDc=function(R){var y;R.webPlayerContextConfig?y=R.webPlayerContextConfig.rootElementId:y=R.config.attrs.id;R.elementId=y||R.elementId;R.elementId==="video-player"&&(R.elementId=R.playerId,R.webPlayerContextConfig?R.webPlayerContextConfig.rootElementId=R.playerId:R.config.attrs.id=R.playerId);var u;((u=R.dE)==null?void 0:u.id)===R.elementId&&(R.elementId+="-player",R.webPlayerContextConfig?R.webPlayerContextConfig.rootElementId=R.elementId:R.config.attrs.id=R.elementId)};
Fs.prototype.setConfig=function(R){this.xkg=R;this.config=IGi(R);VDc(this);if(!this.jGK){var y;this.jGK=h98(this,((y=this.config.args)==null?void 0:y.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var u;if((u=this.config)==null?0:u.attrs)R=this.config.attrs,(y=R.width)&&this.dE&&(this.dE.style.width=tk(Number(y)||y,!0)),(R=R.height)&&this.dE&&(this.dE.style.height=tk(Number(R)||R,!0))};
var KpL=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 y;R.api.loadVideoByPlayerVars((y=R.config.args)!=null?y:null)}else R.api.cueVideoByPlayerVars(R.config.args)},Fp5=function(R){var y=!0,u=R.getPlayerElement();
u&&R.config&&(y=u.dataset.version===bqg(R));return y&&!!_.D6("yt.player.Application.create")},iqY=function(R){if(!R.isDisposed()&&!R.w1b){var y=Fp5(R);
if(y&&(R.getPlayerElement()?"html5":null)==="html5")R.gYK="html5",R.isReady()||wXc(R);else if(NSc(R),R.gYK="html5",y&&R.zW&&R.targetElement)R.targetElement.appendChild(R.zW),wXc(R);else{R.config&&(R.config.loaded=!0);var u=!1;R.r7d=function(){u=!0;var v=TSi(R,"player_bootstrap_method")?_.D6("yt.player.Application.createAlternate")||_.D6("yt.player.Application.create"):_.D6("yt.player.Application.create");var Q=R.config?IGi(R.config):void 0;v&&v(R.targetElement,Q,R.webPlayerContextConfig,R.dwe);wXc(R)};
R.w1b=!0;y?R.r7d():(_.tl(bqg(R),R.r7d),(y=og8(R))&&N5L(y||""),xm8(R)&&!u&&_.CJ("yt.player.Application.create",null))}}};
Fs.prototype.getPlayerElement=function(){var R=_.bD(document,this.elementId);!R&&this.dE&&this.dE.querySelector&&(R=this.dE.querySelector("#"+this.elementId));return R};
var wXc=function(R){if(!R.isDisposed()){var y=R.getPlayerElement(),u=!1;y&&y.getApiInterface&&y.getApiInterface()&&(u=!0);if(u){R.w1b=!1;if(!TSi(R,"html5_remove_not_servable_check_killswitch")){var v;if((y==null?0:y.isNotServable)&&R.config&&(y==null?0:y.isNotServable((v=R.config.args)==null?void 0:v.video_id)))return}BSw(R)}else R.gms=setTimeout(function(){wXc(R)},50)}},BSw=function(R){JVi(R);
R.bCO=!0;var y=R.getPlayerElement();if(y){R.dxa=fGV(R,y,"addEventListener");R.zqS=fGV(R,y,"removeEventListener");var u=y.getApiInterface();u=u.concat(y.getInternalApiInterface());for(var v=R.api,Q=0;Q<u.length;Q++){var M=u[Q];v[M]||(v[M]=fGV(R,y,M))}}for(var K in R.k5)R.k5.hasOwnProperty(K)&&R.dxa&&R.dxa(K,R.k5[K]);KpL(R);R.jGK&&R.jGK(R.api);R.kmS.publish("onReady",R.api)},fGV=function(R,y,u){var v=y[u];
return function(){var Q=_.qy.apply(0,arguments);try{return R.lastError=null,v.apply(y,Q)}catch(M){if(u!=="sendAbandonmentPing")throw M.params=u,R.lastError=M,Q=new _.OL("PlayerProxy error in method call",{error:M,method:u,playerId:R.playerId}),Q.level="WARNING",Q;}}},JVi=function(R){R.bCO=!1;
if(R.zqS)for(var y in R.k5)R.k5.hasOwnProperty(y)&&R.zqS(y,R.k5[y]);for(var u in R.qEw)R.qEw.hasOwnProperty(u)&&clearTimeout(Number(u));R.qEw={};R.dxa=null;R.zqS=null;y=R.api;for(var v in y)y.hasOwnProperty(v)&&(y[v]=null);y.addEventListener=function(Q,M){R.addEventListener(Q,M)};
y.removeEventListener=function(Q,M){R.removeEventListener(Q,M)};
y.destroy=function(){R.dispose()};
y.getLastError=function(){return R.getLastError()};
y.getPlayerType=function(){return R.getPlayerType()};
y.getCurrentVideoConfig=function(){return R.xkg};
y.loadNewVideoConfig=function(Q){R.loadNewVideoConfig(Q)};
y.isReady=function(){return R.isReady()}};
Fs.prototype.isReady=function(){return this.bCO};
Fs.prototype.addEventListener=function(R,y){var u=this;this.isDisposed();var v=h98(this,y);v&&(_.XU(this.a3D,R)||this.k5[R]||(y=e9Y(this,R),this.dxa&&this.dxa(R,y)),this.kmS.subscribe(R,v),R==="onReady"&&this.isReady()&&setTimeout(function(){v(u.api)},0))};
Fs.prototype.removeEventListener=function(R,y){this.isDisposed()||(y=h98(this,y))&&this.kmS.unsubscribe(R,y)};
var h98=function(R,y){var u=y;if(typeof y==="string"){if(R.yQN[y])return R.yQN[y];u=function(){var v=_.qy.apply(0,arguments),Q=_.D6(y);if(Q)try{Q.apply(_.uO,v)}catch(M){throw v=new _.OL("PlayerProxy error when executing callback",{error:M}),v.level="ERROR",v;}};
R.yQN[y]=u}return u?u:null},e9Y=function(R,y){var u=function(v){var Q=function(){R.isDisposed();
if(!R.isDisposed())try{R.kmS.publish(y,v!=null?v:void 0)}catch(h){var K=new _.OL("PlayerProxy error when creating global callback",{error:h.message,event:y,playerId:R.playerId,data:v,originalStack:h.stack,componentStack:h.componentStack});K.level="WARNING";throw K;}};
if(TSi(R,"web_player_publish_events_immediately"))Q();else{var M=setTimeout(function(){Q();_.Ps.remove(R.qEw,String(M))},0);
_.Ps.add(R.qEw,String(M),!0)}};
return R.k5[y]=u};
Fs.prototype.getPlayerType=function(){return this.gYK||(this.getPlayerElement()?"html5":null)};
Fs.prototype.getLastError=function(){return this.lastError};
var NSc=function(R){R.cancel();JVi(R);R.gYK=null;R.config&&(R.config.loaded=!1);var y=R.getPlayerElement();y&&(Fp5(R)||!xm8(R)?R.zW=y:(y&&y.destroy&&y.destroy(),R.zW=null));R.targetElement&&_.$$(R.targetElement)};
Fs.prototype.cancel=function(){this.r7d&&_.tFO(bqg(this),this.r7d);clearTimeout(this.gms);this.w1b=!1};
Fs.prototype.disposeInternal=function(){NSc(this);if(this.zW&&this.config&&this.zW.destroy)try{this.zW.destroy()}catch(y){var R=new _.OL("PlayerProxy error during disposal",{error:y});R.level="ERROR";throw R;}this.yQN=null;for(R in this.k5)this.k5.hasOwnProperty(R)&&delete this.k5[R];this.xkg=this.config=this.api=null;delete this.targetElement;delete this.dE;_.Z0.prototype.disposeInternal.call(this)};
var xm8=function(R){var y,u;R=(y=R.config)==null?void 0:(u=y.args)==null?void 0:u.fflags;return!!R&&R.indexOf("player_destroy_old_version=true")!==-1},bqg=function(R){return R.webPlayerContextConfig?R.webPlayerContextConfig.jsUrl:(R=R.config.assets)?R.js:""},og8=function(R){return R.webPlayerContextConfig?R.webPlayerContextConfig.cssUrl:(R=R.config.assets)?R.css:""},TSi=function(R,y){if(R.webPlayerContextConfig)var u=R.webPlayerContextConfig.serializedExperimentFlags;
else{var v;if((v=R.config)==null?0:v.args)u=R.config.args.fflags}return(u||"").split("&").includes(y+"=true")},IGi=function(R){for(var y={},u=_.V(Object.keys(R)),v=u.next();!v.done;v=u.next()){v=v.value;
var Q=R[v];y[v]=typeof Q==="object"?_.Ps.clone(Q):Q}return y};var VDT={},JVP="player_uid_"+(Math.random()*1E9>>>0);var ul=function(R,y,u,v,Q,M){y=y===void 0?document.createElement("div"):y;this.webPlayerContextConfig=R;this.container=y;this.commandResolver=u;this.apiResolver=IGP();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.xv;v||M?lGi(this):OqT(this);this.pendingPlayerResponse=v;this.pendingWatchNextResponse=Q;this.pendingPlayerVars=M;ZqV(this)};
ul.prototype.loadVideoWithPlayerResponse=function(R,y,u){this.loadVideo(R,y,u)};
ul.prototype.loadVideoWithPlayerVars=function(R){return this.loadVideo(void 0,void 0,R)};
ul.prototype.destroy=function(R){if(R=_.bD(document,R))R=JVP+"_"+_.YS(R),(R=VDT[R])&&R.dispose()};
var ng5=function(R,y){var u;_.I(function(v){if(v.nextAddress==1)return R.pendingWatchNextResponse=y,R.synchronousApi?(u=R.synchronousApi,v.jumpTo(2)):v.yield(R.api,3);v.nextAddress!=2&&(u=v.yieldResult);if(!Hq5(R,u))return v.return();R.pendingWatchNextResponse&&(u.updateVideoData({raw_watch_next_response:R.pendingWatchNextResponse}),R.pendingWatchNextResponse=void 0);_.f$(v)})},Hq5=function(R,y){var u;
if(!(y==null?0:(u=y.isReady)==null?0:u.call(y))){var v;_.kT(new _.OL("playerApi is falsey",{synchronousApi:R.synchronousApi,apiResolved:R.apiResolver.resolved,playerApiUndefined:y===void 0,playerApiNull:y===null,playerApiReady:(y==null?void 0:(v=y.isReady)==null?void 0:v.call(y))===!0,playerApiMethods:y?Object.keys(y):[]}));return!1}return!0},GE8=function(R,y){if(typeof R[y]==="function")return R[y]()},rVi=function(R){var y=window,u,v=(u=y.ytplayer)==null?void 0:u.bootstrapPlayerContainer;
if((u=v==null?void 0:v.firstElementChild)&&_.LT(u,"html5-video-player")){var Q,M,K=(Q=y.ytplayer)==null?void 0:(M=Q.bootstrapWebPlayerContextConfig)==null?void 0:M.contextId;Q=R.webPlayerContextConfig.contextId;if(K&&K===Q){v!==R.container&&(v=!1,GE8(u,"getPlayerState")===2&&(v=!0),R.container.appendChild(u),v||GE8(u,"playVideo"));var h;if((h=y.ytplayer)==null?0:h.bootstrapPlayerResponse)R.bootstrapPlayerResponse=y.ytplayer.bootstrapPlayerResponse}}},ZqV=function(R){var y,u,v,Q,M;
_.I(function(K){if(K.nextAddress==1)return R.pageReadyOrDataAvailable?K.jumpTo(2):K.yield(R.pageReadyOrDataAvailableResolver.promise,2);if(K.nextAddress!=4)return!_.f("kevlar_player_unified_player_loading")||gH8()&&R98()?K.jumpTo(4):K.yield(jvT(),4);rVi(R);if(R.pendingPlayerResponse||R.pendingPlayerVars)y=MDG(R.pendingPlayerResponse,R.pendingWatchNextResponse,R.pendingPlayerVars),R.pendingPlayerResponse&&R.pendingPlayerResponse===R.bootstrapPlayerResponse&&(y.loaded=!0),R.bootstrapPlayerResponse=
void 0;u=Kpz(R.container,y,R.webPlayerContextConfig);((v=y)==null?0:v.loaded)&&R.pendingWatchNextResponse?(ng5(R,R.pendingWatchNextResponse),R.pendingPlayerResponse=void 0,R.pendingPlayerVars=void 0):PgT(R);Q=function(h){u.removeEventListener("onReady",Q);R.synchronousApi=h;R.apiResolver.resolve(h)};
u.addEventListener("onReady",Q);R.commandResolver!==void 0&&(M=R.commandResolver,u.addEventListener("innertubeCommand",function(h){M(h)}));
_.f$(K)})};
ul.prototype.loadVideo=function(R,y,u){var v=this,Q,M,K,h,b,N,T,x,B;return _.I(function(l){if(l.nextAddress==1)return v.pendingPlayerResponse=R,v.pendingWatchNextResponse=y,v.pendingPlayerVars=u,lGi(v),v.synchronousApi?(Q=v.synchronousApi,l.jumpTo(2)):l.yield(v.api,3);l.nextAddress!=2&&(Q=l.yieldResult);if(!Hq5(v,Q))return l.return(new Promise(function(){}));
K=new Promise(function(Z){M=Z});
h=function(){var Z=Q.getPlayerResponse();Z&&(Q.removeEventListener("onVideoDataChange",h),M(Z))};
Q.addEventListener("onVideoDataChange",h);if(v.pendingPlayerResponse||v.pendingPlayerVars)v.pendingPlayerResponse&&v.pendingPlayerResponse===v.bootstrapPlayerResponse?(M(v.pendingPlayerResponse),v.pendingWatchNextResponse&&ng5(v,v.pendingWatchNextResponse)):(b=MDG(v.pendingPlayerResponse,v.pendingWatchNextResponse,v.pendingPlayerVars),(B=(N=v.pendingPlayerResponse)==null?void 0:(T=N.playerConfig)==null?void 0:(x=T.playbackStartConfig)==null?void 0:x.startPaused)?Q.cueVideoByPlayerVars(b.args):Q.loadVideoByPlayerVars(b.args)),
PgT(v),v.bootstrapPlayerResponse=void 0;return l.return(K)})};
var OqT=function(R){if(document.readyState==="complete"||document.readyState==="interactive")lGi(R);else{var y=function(){document.removeEventListener("DOMContentLoaded",y);lGi(R)};
document.addEventListener("DOMContentLoaded",y)}},lGi=function(R){R.pageReadyOrDataAvailable=!0;
R.pageReadyOrDataAvailableResolver.resolve()},PgT=function(R){R.pendingPlayerResponse=void 0;
R.pendingWatchNextResponse=void 0;R.pendingPlayerVars=void 0};
_.RR.Object.defineProperties(ul.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var vC=function(R){Ax.call(this,R===void 0?"document_active":R);var y=this;this.overridePriority=10;this.hasRun=new Map;this.transitions=[{from:"document_active",to:"document_disposed_preventable",action:this.runPreventableDispose},{from:"document_active",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"flush_logs",action:this.runFlush},{from:"document_disposed_preventable",
to:"document_active",action:this.runActive},{from:"document_disposed",to:"flush_logs",action:this.runFlush},{from:"document_disposed",to:"document_active",action:this.runActive},{from:"document_disposed",to:"document_disposed",action:function(){}},
{from:"flush_logs",to:"document_active",action:this.runActive}];window.addEventListener("pagehide",function(u){y.transition("document_disposed",{event:u})});
window.addEventListener("beforeunload",function(u){y.transition("document_disposed_preventable",{event:u})});
window.addEventListener("unload",function(u){y.transition("document_disposed",{event:u});y.hasRun=new Map})};
_.O(vC,Ax);
vC.prototype.runPreventableDispose=function(R,y){if(!this.hasRun.get("document_disposed_preventable")){R(y==null?void 0:y.event);var u,v;if((y==null?0:(u=y.event)==null?0:u.defaultPrevented)||(y==null?0:(v=y.event)==null?0:v.returnValue)){y.event.returnValue||(y.event.returnValue=!0);y.event.defaultPrevented||y.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")};
vC.prototype.runDispose=function(R,y){this.hasRun.get("document_disposed")?this.transition("document_active"):(R(y==null?void 0:y.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
vC.prototype.runFlush=function(R,y){R(y==null?void 0:y.event);this.transition("document_active")};
vC.prototype.runActive=function(){};var QH=function(R){Ax.call(this,R===void 0?"document_visibility_unknown":R);var y=this;this.transitions=[{from:"document_visibility_unknown",to:"document_visible",action:this.runVisible},{from:"document_visibility_unknown",to:"document_hidden",action:this.runHidden},{from:"document_visibility_unknown",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visibility_unknown",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_visible",to:"document_hidden",action:this.runHidden},
{from:"document_visible",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visible",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_hidden",action:this.runHidden},{from:"document_foregrounded",to:"document_foregrounded",action:this.runForegrounded},{from:"document_hidden",to:"document_visible",action:this.runVisible},{from:"document_hidden",to:"document_backgrounded",
action:this.runBackgrounded},{from:"document_hidden",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_backgrounded",to:"document_visible",action:this.runVisible}];document.addEventListener("visibilitychange",function(u){document.visibilityState==="visible"?y.transition("document_visible",{event:u}):y.transition("document_hidden",
{event:u})});
_.f("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(u){y.transition("document_backgrounded",{event:u})}),window.addEventListener("focus",function(u){y.transition("document_foregrounded",{event:u})}))};
_.O(QH,Ax);QH.prototype.runVisible=function(R,y){R(y==null?void 0:y.event);_.f("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
QH.prototype.runHidden=function(R,y){R(y==null?void 0:y.event);_.f("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
QH.prototype.runBackgrounded=function(R,y){R(y==null?void 0:y.event)};
QH.prototype.runForegrounded=function(R,y){R(y==null?void 0:y.event)};var jh=function(){this.teardownLifecycle=new vC;this.visibilityLifecycle=new QH};
jh.prototype.install=function(){var R=_.qy.apply(0,arguments),y=this;R.forEach(function(u){y.teardownLifecycle.install(u)});
R.forEach(function(u){y.visibilityLifecycle.install(u)})};var M$=function(){jh.call(this);var R={};this.install((R.document_disposed={callback:this.abortSlisAndFlush},R));_.f("combine_ve_grafts")&&(R={},this.install((R.document_disposed={callback:this.flushInteractionLoggingAttachVes},R)));R={};this.install((R.flush_logs={callback:this.logFinalPayload},R));_.f("web_log_cfg_cee_ks")||_.Oh(_.WG,WpT)};
_.O(M$,jh);var h9S=function(){M$.loggingInstance||(M$.loggingInstance=new M$);return M$.loggingInstance};
M$.prototype.logFinalPayload=function(){if(_.f("web_fp_via_jspb")){var R=new d45,y=_.$I();y&&_.eQ(R,1,y);y=_.f("jspb_sparse_encoded_pivot")?new l_([{}]):new l_;_.Ny(y,380,U4T,R);kXW("finalPayload",y);_.f("web_fp_via_jspb_and_json")&&_.P3("finalPayload",{csn:_.$I()})}else _.P3("finalPayload",{csn:_.$I()})};
M$.prototype.abortSlisAndFlush=function(){QST(gu);Ct!=null&&Ct.flush()};
M$.prototype.flushInteractionLoggingAttachVes=function(){e_i(_.GN())};
var WpT=function(){var R=_.EB("CLIENT_EXPERIMENT_EVENTS");if(R){var y=L4W();R=_.V(R);for(var u=R.next();!u.done;u=R.next())u=u.value,y(u)&&_.P3("genericClientExperimentEvent",{eventType:u});delete _.UB.CLIENT_EXPERIMENT_EVENTS}};var dm5={};
dm5.YtPlayerBehavior=[_.Ra.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 _.xv;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;bqv(function(){R.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.$k(this,"pan-down"),_.f("kevlar_pinch_fullscreen")&&_.kX().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.f("kevlar_pinch_fullscreen")&&_.kX().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(R,y,u){var v=this;wm(this.useUnifiedPlayer_());if(this.mainAppPlayer_)wm(!1,"MainAppPlayer already created.");else{var Q=_.f("kevlar_player_container_query_killswitch")?this.$.container:_.hw(this.hostElement).querySelector("#container");this.mainAppPlayer_=new ul(this.getWebPlayerContextConfig_(),Q,function(M){return _.O4(M,v.hostElement)},R,y,u);
this.mainAppPlayer_.api.then(function(M){v.player_=M;v.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&Bb5.resolve(M)})}},
loadVideoWithPlayerResponse:function(R,y){var u=this;if(this.useUnifiedPlayer_()){var v=this.watchNextData,Q,M=(Q=R.videoDetails)==null?void 0:Q.videoId,K,h,b;(Q=(K=this.watchNextData)==null?void 0:(h=K.currentVideoEndpoint)==null?void 0:(b=h.watchEndpoint)==null?void 0:b.videoId)&&M!=Q&&(v=void 0,_.f("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(R,v,y):this.createMainAppPlayer_(R,v,y);this.mainAppPlayer_.api.then(function(){_.Ko(u.hostElement,
"yt-player-updated")})}else this.update(Yez(R,y))},
loadVideoWithPlayerVars:function(R){var y=this;this.useUnifiedPlayer_()?(_.f("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(){_.Ko(y.hostElement,"yt-player-updated")})):this.update({args:R})},
update:function(R){var y=this;if(this.useUnifiedPlayer_())wm(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(R);var u=CmU(R.args);u&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==u&&Object.assign(R.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(R).then(function(v){_.Ko(y.hostElement,"yt-player-updated",_.f("kevlar_player_updated_obsolete_player_killswitch")?
v:void 0)})}_.Uh(new _.OL("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(R){var y=this,u;return _.I(function(v){if(v.nextAddress==1)return v.yield(y.getPlayerPromise(),2);u=v.yieldResult;if(!u)throw Error("vh");R&&y.updatePlayerPlaylist_(R);_.f$(v)})},
acquireApi_:function(R){var y=this;if(this.useUnifiedPlayer_())wm(!1,"Invalid method call in kevlar_unified_player.");else return _.WG.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(wm(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(u){y.shouldAutoplay_(R)?u.loadVideoByPlayerVars(R.args):u.cueVideoByPlayerVars(R.args)})):this.initPlayerPromise_=this.initPlayerContainer_(R),this.initPlayerPromise_},
initPlayerContainer_:function(R){var y=this;if(this.useUnifiedPlayer_())wm(!1,"Invalid method call in kevlar_unified_player.");else return wm(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.kT(Error("wh")),wm(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.f("kevlar_player_container_query_killswitch")?this.$.container:_.hw(this.hostElement).querySelector("#container"),jvT().then(function(){var u=y.initPlayer_(R);y.playerResolver_.resolve(u);
return u})},
onPlayerReady_:function(R,y){this.useUnifiedPlayer_()?wm(!1,"Invalid method call in kevlar_unified_player."):(R.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&Bb5.resolve(R),y(R))},
maybeCallApiMethodOnElement_:function(R,y){if(typeof R[y]==="function")return R[y]()},
maybeAdoptBootstrapPlayer_:function(){var R=window,y,u=(y=R.ytplayer)==null?void 0:y.bootstrapPlayerContainer;if((y=u==null?void 0:u.firstElementChild)&&y.classList.contains("html5-video-player")){var v,Q,M=(v=R.ytplayer)==null?void 0:(Q=v.bootstrapWebPlayerContextConfig)==null?void 0:Q.contextId;v=this.getWebPlayerContextConfig_().contextId;if(M&&M===v){u!==this.playerContainer_&&(u=!1,this.maybeCallApiMethodOnElement_(y,"getPlayerState")===2&&(u=!0),this.playerContainer_.appendChild(y),u||this.maybeCallApiMethodOnElement_(y,
"playVideo"));var K;if((K=R.ytplayer)==null?0:K.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=R.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(R){var y=this;if(this.useUnifiedPlayer_())wm(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(u){y.maybeAdoptBootstrapPlayer_();var v=R?LOv(R):void 0;v&&v==y.bootstrapPlayerResponse_&&(R.loaded=!0);v=y.playerContainer_;var Q=y.getWebPlayerContextConfig_();v=Kpz(v,R,Q);y.player_=v;y.onPlayerReadyEvent_=y.onPlayerReady_.bind(y,y.player_,u);y.player_.addEventListener("onReady",y.onPlayerReadyEvent_);y.player_.addEventListener("innertubeCommand",
y.onPlayerInnerTubeCommand_.bind(y));_.f("enable_web_shorts_captions_language_command")&&y.player_.addEventListener("captionschanged",y.storePlayerCaptionLanguage_.bind(y))})},
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=_.ua().resolve(_.iD).getCurrentPage();R&&R.getScrollTop()<=0?_.$k(this,"pan-down"):_.$k(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 y=this,u,v,Q;return _.I(function(M){if(M.nextAddress==1)return u=_.ua().resolve(_.yN(_.S2)),v=!!(u&&u.playlistComponent&&u.playlistComponent.loopOn),M.yield(y.getPlayerPromise(),2);var K=Q=M.yieldResult,h=K.updatePlaylist,b=[];if(_.f("kevlar_player_playlist_use_local_index")){var N,T;var x=(T=(N=R.localCurrentIndex)!=null?N:R.currentIndex)!=null?T:0}else{var B;x=(B=R.currentIndex)!=null?B:0}if(R.contents)for(N=0;N<R.contents.length;N++)if((T=R.contents[N])&&T.playlistPanelVideoRenderer)if(tuc(T)){T=
T.playlistPanelVideoRenderer;B="";T.shortBylineText&&(B=_.u7(T.shortBylineText));var l="";T.title?l=_.u7(T.title):T.unplayableText&&(l=_.u7(T.unplayableText));b.push({author:B,title:l,encrypted_id:T.videoId})}else N<x&&--x;h.call(K,{index:x,list:R.playlistId?R.playlistId:"",loop:v,playlist_title:R.title,playlist_length:b.length,video:b,fetch:0,external_list:"1",title:R.title?R.title:"",playlist_author:R.ownerName?_.u7(R.ownerName):void 0});_.f$(M)})},
focusOnPlayer:function(){_.gn(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var R=this.playerContainer_.querySelector(".html5-video-player");R&&(_.JO(_.ua().resolve(_.Xj)),R.focus())}})},
preparePlayer:function(){var R=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(y){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")y();else{var u=function(){document.removeEventListener("DOMContentLoaded",u);y()};
document.addEventListener("DOMContentLoaded",u)}})).then(function(){return jvT()}).then(function(){R.initPlayerPromise_||R.preparePlayerJobId_||(R.preparePlayerJobId_=_.Oh(_.WG,function(){R.initPlayerPromise_||(R.initPlayerPromise_=R.initPlayerContainer_())}))}):_.Uh(new _.OL("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(R){this.useUnifiedPlayer_()?wm(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(R)||(R.args.autoplay="0")},
shouldAutoplay_:function(R){if(this.useUnifiedPlayer_())wm(!1,"Invalid method call in kevlar_unified_player.");else{var y=this.get("args.el",R);return y&&y!="detailpage"&&this.isMiniplayerActive_()||y&&(y=="sponsorshipsoffer"||y=="handlesclaiming")&&this.get("args.autoplay",R)=="0"?!1:(R=LOv(R))&&this.get("playerConfig.playbackStartConfig.startPaused",R)?!1:!0}},
isMiniplayerActive_:function(){return _.ua().resolve(_.cZ).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var R=this.getPlayer();if(R){var y=R.getPlayerState();_.f("kevlar_player_check_ad_state_on_stop")&&(y=R.getPlayerState(R.getPresentingPlayerType()));y!=5&&R.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(R,y,u){u=u===void 0?!1:u;var v=this,Q,M,K,h;return _.I(function(b){if(b.nextAddress==1)return y||(y=v.hostElement),Q=v.useUnifiedPlayer_()?!!v.mainAppPlayer_:!!v.initPlayerPromise_,Q?b.yield(v.getPlayerPromise(),2):(u?R.insertBefore(y,R.firstChild):R.appendChild(y),b.return());M=b.yieldResult;K=M.getPlayerState(M.getPresentingPlayerType());h=!1;if(K==-1||K==1||K==3)h=!0;u?R.insertBefore(y,R.firstChild):R.appendChild(y);h&&M.playVideo();M.setSize(NaN,NaN);_.f$(b)})},
watchNextDataChanged_:function(R){var y=this;R&&(this.useUnifiedPlayer_()&&_.f("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&ng5(this.mainAppPlayer_,R):this.getPlayerPromise().then(function(u){u.updateVideoData(y.computeWatchNextPlayerVars_(R))}))},
computeWatchNextPlayerVars_:function(R){if(this.useUnifiedPlayer_()&&_.f("kevlar_unified_player_update_watch_next_killswitch"))wm(!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=_.EB("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(R=Object.assign({},R),R.rootElementId=this.playerId);R.serializedExperimentIds&&R.serializedExperimentFlags||_.kT(Error("xh"));return R},
hasWebPlayerContextConfig_:function(){return!!_.EB("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(R){this.useUnifiedPlayer_()?wm(!1,"Invalid method call in kevlar_unified_player."):_.O4(R,this.hostElement)},
storePlayerCaptionLanguage_:function(){this.getPlayerPromise().then(function(R){var y=_.ua().resolve(_.GL);R=R==null?void 0:R.getOption("captions","track");var u=_.Nq("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(R){var v,Q=(v=_.nA(_.b3T,u)())==null?void 0:v.value,M;v=typeof(R==null?void 0:R.translationLanguage)==="object"&&((M=R.translationLanguage)==null?void 0:M.languageName)||R.displayName||"";Q!==v&&y.store.dispatch(_.Gw("stringEntity",u,{key:u,value:v.toString()}))}else y.store.dispatch(_.Gw("stringEntity",
u,{key:u,value:"CAPTIONS_UNAVAILABLE"}))})},
useUnifiedPlayer_:function(){var R=_.f("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.f("kevlar_unified_player")||R}}];var UmT={};UmT.YtPlaylistPanelBehavior=[_.S.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 y=R.playlistButtons.menuRenderer.topLevelButtons,u=y.length,v=0;v<u;v++)if(y[v].toggleButtonRenderer){var Q=y[v].toggleButtonRenderer;Q.defaultIcon.iconType=="LOOP"&&this.loopOn?Q.isToggled=this.loopOn:Q.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(Q.isToggled=this.shuffleOn)}return R.playlistButtons}}];var kEL=function(R){ip.call(this,R,132);this.isDocument=R===document.documentElement};
_.O(kEL,ip);kEL.prototype.calculateScrollDelta=function(R,y,u){var v=0;R<y?v=R<y-100?-48:-8:R>y+u&&(v=R>y+u+100?48:8);return v};
kEL.prototype.JSC$11311_onMouseMove=function(R){this.isDocument||(R.clientX=R.event_.pageX,R.clientY=R.event_.pageY);ip.prototype.JSC$11311_onMouseMove.call(this,R)};var VH=function(){var R=_.HN.apply(this,arguments)||this;R._noAccessors=!0;R.scrollElement=document.documentElement;R.JSC$14298_dragListGroup=null;R.dragScrollSupport=null;R.onDraggerCreated=function(y){var u=y.JSC$11307_dragger;u.scrollTarget_=R.scrollElement;y=y.draggerEl;u&&y.menuOpened&&u.setEnabled(!1)};
R.onDragStart=function(y){var u=y.draggerEl;y=y.currDragItem;var v=Object.assign({},y==null?void 0:y.data);v.trackingParams=void 0;u.data=v;u.style.position="absolute";u.style.width=(y==null?void 0:y.clientWidth)+"px";u.style.zIndex="2030";u.onDrag&&u.onDrag();_.f("web_owner_document_fallback_killswitch")?(y=document.querySelector("ytd-app"))&&_.hw(y).appendChild(u):(y=_.kh(u),(v=y.querySelector("ytd-app"))?_.hw(v).appendChild(u):y.body.appendChild(u));R.dragScrollSupport=new kEL(R.scrollElement);
R.dragScrollSupport.horizontalScrolling_=!1;u=R.dragScrollSupport;u.constrainScroll_=!!u.margin_&&!1};
R.onDrop=function(y){R.handleDrop(y);R.dragScrollSupport&&(_.R_(R.dragScrollSupport),R.dragScrollSupport=null)};
R.onReorderableScroll=function(){if(R.JSC$14298_dragListGroup){var y=R.JSC$14298_dragListGroup;Hu5(y,y.currDragItem_)}};
return R};
_.O(VH,_.HN);VH.prototype.detached=function(){_.Eg5(this)};
_.Eg5=function(R){R.JSC$14298_dragListGroup&&(_.Hc(R.JSC$14298_dragListGroup,T2g,R.onDragStart),_.Hc(R.JSC$14298_dragListGroup,fVc,R.onDragStart),R.JSC$14298_dragListGroup.dispose(),R.JSC$14298_dragListGroup=null);R.dragScrollSupport&&(_.R_(R.dragScrollSupport),R.dragScrollSupport=null);R.scrollElement.removeEventListener("scroll",R.onReorderableScroll)};
_.$mw=function(R,y,u,v){v=v===void 0?"":v;_.Eg5(R);u&&(R.scrollElement=u);R.JSC$14298_dragListGroup=new SH;R.JSC$14298_dragListGroup.hysteresisDistance_=2;lVi(R.JSC$14298_dragListGroup,y);R.JSC$14298_dragListGroup.draggerElClasses_=FU("dragging").split(" ");v&&Oug(R.JSC$14298_dragListGroup,function(Q){var M=Q||document,K=null;M.getElementsByClassName?K=M.getElementsByClassName(v)[0]:K=QPV("*",v,Q);return K||Q});
_.E4(R.JSC$14298_dragListGroup,wN8,R.onDraggerCreated);_.E4(R.JSC$14298_dragListGroup,T2g,R.onDragStart);_.E4(R.JSC$14298_dragListGroup,fVc,R.onDrop);R.JSC$14298_dragListGroup.init();R.scrollElement.addEventListener("scroll",R.onReorderableScroll,{passive:!0})};
VH.prototype.handleDrop=function(){};
_.RR.Object.defineProperties(VH.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.A([_.r({value:100}),_.p("design:type",Number)],VH.prototype,"scrollMargin",void 0);_.A([_.nu()],VH);_.qGg=[VH.prototype];_.il={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(R,y,u){var v=this.getClickTarget_(y);if(v&&this.isClickAllowed_(v)){y.preventDefault();R=(0,_.Ps.unsafeClone)(R);var Q=this.getContainerBoundingRect();y=this.getRelativeClickXy_(y,Q);this.expandEndpointUrlMacros_(R,{NX:y[0],NY:y[1],NB:v.code});u&&this.truncateWebCommendMetadataUrl_(R);_.Ko(this.hostElement,"yt-navigate",{endpoint:R})}},
getClickTarget_:function(R){if(!this.clickTargetMap)return null;R=_.u8(R)||[];R=_.V(R);for(var y=R.next();!y.done;y=R.next()){y=y.value;if(y===_.hw(this.hostElement).querySelector("#menu"))break;if(y=this.clickTargetMap.get(y.id))return y}return null},
getRelativeClickXy_:function(R,y){var u=R.detail.x,v=R.detail.y;_.f("use_on_click_for_desktop_display_ad")&&R.clientX!=null&&R.clientY!=null&&(u=R.clientX,v=R.clientY);R=Math.round(u-y.left);y=Math.round(v-y.top);return R<0||y<0?[null,null]:[R,y]},
getContainerBoundingRect:function(){return _.hw(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(R,y){for(var u=_.V(R.loggingUrls||[]),v=u.next();!v.done;v=u.next())v=v.value,v.baseUrl&&(v.baseUrl=zpz(v.baseUrl,y));R.urlEndpoint&&R.urlEndpoint.url&&(R.urlEndpoint.url=zpz(R.urlEndpoint.url,y));R.commandMetadata&&R.commandMetadata.webCommandMetadata&&R.commandMetadata.webCommandMetadata.url&&(R.commandMetadata.webCommandMetadata.url=zpz(R.commandMetadata.webCommandMetadata.url,y))},
truncateWebCommendMetadataUrl_:function(R){if(R.commandMetadata&&R.commandMetadata.webCommandMetadata&&R.commandMetadata.webCommandMetadata.url){var y=R.commandMetadata.webCommandMetadata.url,u=y.indexOf("&pp=");if(u>0){var v=y.indexOf("&",u+1);R.commandMetadata.webCommandMetadata.url=v>u&&v<y.length?y.slice(0,u)+y.slice(v):y.slice(0,u)}}},
configureClickTargets:function(R,y,u){this.containerId=R;this.clickTargetMap=new Map;R=_.V(y);for(y=R.next();!y.done;y=R.next())if(y=y.value,y.location){var v=u.get(y.location);v&&(_.FN(_.hw(this.hostElement).querySelector("#"+v),"yt-simple-endpoint",this.isClickAllowed_(y)),this.clickTargetMap.set(v,y))}},
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"}}};_.K_={};
_.K_.YtLazyListBehavior=[_.VE.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&&(WSb(R,4),R.processSignal())},
deepLazyListObserver_:function(R){var y=this;if(R){var u=R.value||[];if(this.itemsPath==R.path){var v=this.nonDeferredItemCount;R=0;v>-1&&u.length>v&&(R=_.EB("REMAINING_DOVA_DEFERRED_CHUNKS",-1));R>0?(v>0&&(v=u.slice(0,v),this.setInitialItemsOnDataChanged(v)),(v=this.renderElementsOutsideVisibleArea_)?v.cancel():(v=this.renderElementsOutsideVisibleArea_=new _.KQ(2,"eocs"),_.mkU(window,"scroll",function(){return y.renderDeferredElements()})),_.IJ(v,function(){y.setInitialItemsOnDataChanged(u)}),_.kB("REMAINING_DOVA_DEFERRED_CHUNKS",
R-1)):this.setInitialItemsOnDataChanged(u)}else if(this.itemsPath+".splices"==R.path)this.onItemsUpdated_(u);
else v="shownItems"+R.path.substr(this.itemsPath.length),this.useSignals&&v==="shownItems.length"||this.notifyPath(v,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 y=0,u=R.length;y<u;y++){var v=R[y];if(v.index<this.shownCount&&(v.removed&&this.splice("shownItems",v.index,v.removed.length),v.addedCount)){var Q=v.object.slice(v.index,v.index+v.addedCount);v=["shownItems",v.index,0];v.push.apply(v,Q);this.splice.apply(this,v)}}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&&(_.$B("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.gn(this,this.tryRenderChunk_)))},
fillRange_:function(R,y){this.canShowMore&&this.items_&&(R=this.items_.slice(R,y),R.unshift("shownItems"),this.push.apply(this,R),this.shownCount=y,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var R=this;this.canShowMore&&_.zJ(this,"renderChunk",function(){R.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.$B("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.Wm(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?(_.Osz(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):R&&this.partiallyRenderedItems_.has(this.items_)&&(_.f("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var bl;_.Ia={};
bl=function(){var R=_.HN.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$14309_onWheelScroll=function(y){if(R.isSearch&&
!R.disableWheelScroll&&_.f("desktop_enable_dmpanel_wheel_scroll")){var u=y.shiftKey?Math.abs(y.deltaY)>Math.abs(y.deltaX)?y.deltaY:y.deltaX:y.deltaX;u!==0&&(y.preventDefault(),R.ytLazyListBehavior.fillRemainingListItems(),R.offset+=u,hO(R),R.reposition_())}};
R.onPointerDown=function(y){XX5(R)&&(R.dragMouseStart=y.clientX,R.dragOffsetStart=R.offset,R.dragging=!0)};
R.onPointerMove=function(y){XX5(R)&&R.dragging&&(R.ytLazyListBehavior.fillRemainingListItems(),R.offset=R.dragOffsetStart-(y.clientX-R.dragMouseStart),hO(R),R.reposition_())};
R.onPointerUp=function(){XX5(R)&&(R.dragging=!1)};
return R};
_.O(bl,_.HN);var mmg=function(R){var y=_.hw(R.hostElement).querySelector("#items").children;if(!y)return 0;var u=0;R=_.V(R.fullyVisibleItemsIndices);for(var v=R.next();!v.done;v=R.next())u+=y[v.value].clientWidth;return u},XX5=function(R){return R.isSearch&&_.f("desktop_enable_dmpanel_click_drag_scroll")};
bl.prototype.created=function(){this.cachedViewportWidth=_.EB("initialInnerWidth")||window.innerWidth;this.JSC$14309_cachedViewportHeight=_.EB("initialInnerHeight")||window.innerHeight;_.EB("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.kB("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
bl.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.f("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();AV5(this)};
bl.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.f("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var R;(R=this.itemsVisibilityObserver)==null||R.disconnect();this.itemsVisibilityObserver=null;var y;(y=this.itemsObserver)==null||y.disconnect()};
var AV5=function(R){var y=_.hw(R.hostElement).querySelector("#scroll-container");if(y){if(!R.itemsVisibilityObserver){var u=window.getComputedStyle(y).marginRight;R.itemsVisibilityObserver=new IntersectionObserver(function(v){Dmb(R,v)},{root:y,
rootMargin:u,threshold:.98})}if(y=_.hw(R.hostElement).querySelector("#items"))R.itemsObserver=new ubL(y,function(v){pXg(R,v)})}},pXg=function(R,y){tDc(R)&&(Array.from(y.addedNodes).filter(function(u){return u.nodeType===Node.ELEMENT_NODE}).forEach(function(u){R.itemsVisibilityObserver&&R.itemsVisibilityObserver.observe(u)}),Array.from(y.removedNodes).filter(function(u){return u.nodeType===Node.ELEMENT_NODE}).forEach(function(u){R.itemsVisibilityObserver&&R.itemsVisibilityObserver.unobserve(u)}))},
Dmb=function(R,y){var u=new Set(R.fullyVisibleItemsIndices);
y=_.V(y);for(var v=y.next();!v.done;v=y.next()){v=v.value;var Q=v.target.parentElement;Q?(Q=Array.from(Q.children).indexOf(v.target),v.isIntersecting?u.add(Q):u.has(Q)&&u.delete(Q)):_.kT(new _.OL("Parent element not found",v.target.nodeName))}R.fullyVisibleItemsIndices=Array.from(u).sort(function(M,K){return M-K});
u.size===0?_.kT(new _.OL("No visible entries in horizontal list")):(R.startIndex=R.fullyVisibleItemsIndices[0],R.endIndex=R.fullyVisibleItemsIndices[R.fullyVisibleItemsIndices.length-1])},tDc=function(R){R.data?R=(R=R.data)&&R.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===R.itemSizeConstraint:!1:R=!1;
return R};
_.J=bl.prototype;_.J.addScrollEventListeners=function(){var R=_.hw(this.hostElement).querySelector("#scroll-container");R.style.touchAction="pan-y";R.addEventListener("wheel",this.JSC$14309_onWheelScroll);R.addEventListener("pointerdown",this.onPointerDown);R.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.J.removeScrollEventListeners=function(){var R=_.hw(this.hostElement).querySelector("#scroll-container");R.removeEventListener("wheel",this.JSC$14309_onWheelScroll);R.removeEventListener("pointerdown",this.onPointerDown);R.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.J.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.gn(this,this.setStartIndex,[this.initialStartIndex])};
_.J.reposition_=function(){var R=_.EB("HTML_DIR")=="rtl"?"":"-",y=_.hw(this.hostElement).querySelector("#items");y&&(y.style.transform="translateX("+R+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.J.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.gn(this,this.setButtonsState_))};
_.J.setButtonsState_=function(){this.setButtonsStateRequested=!1;var R=_.hw(this.hostElement).querySelector("#items").firstElementChild;if(R){this.minComponentWidth||(this.minComponentWidth=cVg(this,R));R=_.hw(this.hostElement).querySelector("#scroll-container").clientWidth;var y=_.hw(this.hostElement).querySelector("#items").clientWidth,u=this.get(this.ytLazyListBehavior.itemsPath,this);if(u){var v=Math.round(R/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=
Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+v,u.length)-1)}this.ytLazyListBehavior.canShowMore?y+this.minComponentWidth>=this.offset+R&&(this.atEnd=!1):this.atEnd=this.offset+R>=y-20?!0:!1;this.atStart=this.offset<=20}};
_.J.setStartIndex=function(R){if(!this.minComponentWidth){var y=_.hw(this.hostElement).querySelector("#items").firstElementChild;if(!y)return;this.minComponentWidth=cVg(this,y)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*R;hO(this);this.reposition_()};
_.J.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.Bb();var R=_.hw(this.hostElement).querySelector("#scroll-container").clientWidth;_.f("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=cVg(this,_.hw(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&&aGw(this);this.offset+=tDc(this)?
mmg(this):R*this.minComponentWidth;hO(this);this.reposition_();this.scrollCount++};
_.J.prevClick_=function(){var R=_.hw(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=tDc(this)?mmg(this):this.minComponentWidth*this.scrollCount-1):this.offset-=tDc(this)?mmg(this):R*this.minComponentWidth;this.centerListItems&&aGw(this);hO(this);this.reposition_()};
_.J.onIronResize_=function(){this.resizeSupportEnabled&&_.gn(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.J.onItemsTransitionEnd_=function(R){_.vN(R)===_.hw(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.J.onChildElementFocus_=function(R){R=R.target.closest("#items > *");var y=_.hw(this.hostElement).querySelector("#scroll-container");if(y.contains(R)){if(_.f("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+y.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.Bb(),this.offset=R.offsetLeft+R.clientWidth-y.clientWidth;else return;else{var u=_.hw(this.hostElement).querySelector("#items"),
v=_.EB("HTML_DIR")==="rtl",Q=v?u.clientWidth-R.offsetLeft:R.offsetLeft;u=v?u.clientWidth-(R.offsetLeft+R.clientWidth):R.offsetLeft+R.clientWidth;var M=v?Q>this.offset+y.clientWidth:Q<this.offset,K=v?u<this.offset:u>this.offset+y.clientWidth,h=v?M:K;if(v?K:M)y=v?u:Q,this.offset=Math.abs(y)<R.clientWidth?0:y;else if(h)this.ytLazyListBehavior.fillRemainingListItems(),_.Bb(),this.offset=(v?Q:u)-y.clientWidth;else return}hO(this);this.reposition_()}};
_.J.observeShownItems_=function(){this.reset()};
_.J.checkComponentWidthResize=function(){var R=_.hw(this.hostElement).querySelector("#items").firstElementChild;R&&(R=cVg(this,R),this.centerListItems||R!==this.minComponentWidth)&&(this.minComponentWidth=R,this.offset=R*this.scrollCount,this.centerListItems&&aGw(this),hO(this),this.reposition_())};
var cVg=function(R,y){var u=window.getComputedStyle(y).marginRight;u=Math.floor(Number(u.replace("px","")));var v=window.getComputedStyle(y).marginLeft;v=Math.floor(Number(v.replace("px","")));R.centerListItems&&!R.marginWidthRight&&(R.marginWidthRight=u,R.marginWidthLeft=v);return R.resizeSupportEnabled?y.getBoundingClientRect().width+u:y.offsetWidth+u},hO=function(R){var y=_.hw(R.hostElement).querySelector("#scroll-container").clientWidth,u=_.hw(R.hostElement).querySelector("#items").clientWidth;
R.offset<0?R.offset=0:R.offset+y>=u&&(R.offset=u-y)},aGw=function(R){R.offset-=(_.hw(R.hostElement).querySelector("#scroll-container").clientWidth+R.marginWidthRight-R.minComponentWidth)/2-R.marginWidthLeft};
_.RR.Object.defineProperties(bl.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var R=_.EB("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(R==-1)R=this.JSC$14309_cachedViewportHeight,R=R>1320?5:R>1020?4:R>730?3:R>430?2:1;else if(R==0)return 0;_.kB("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",R-1);R=_.EB("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;_.kB("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
R);return R},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.f("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
bl.prototype.observeShownItems_=bl.prototype.observeShownItems_;bl.prototype.onChildElementFocus_=bl.prototype.onChildElementFocus_;bl.prototype.onItemsTransitionEnd_=bl.prototype.onItemsTransitionEnd_;bl.prototype.onIronResize_=bl.prototype.onIronResize_;bl.prototype.prevClick_=bl.prototype.prevClick_;bl.prototype.nextClick_=bl.prototype.nextClick_;bl.prototype.setButtonsState_=bl.prototype.setButtonsState_;bl.prototype.requestButtonsStateUpdate_=bl.prototype.requestButtonsStateUpdate_;
bl.prototype.reposition_=bl.prototype.reposition_;bl.prototype.reset=bl.prototype.reset;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],bl.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.K_.YtLazyListBehavior),_.p("design:type",Object)],bl.prototype,"ytLazyListBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],bl.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bl.prototype,"atStart",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bl.prototype,"atEnd",void 0);_.A([_.r(),_.p("design:type",Object)],bl.prototype,"startIndex",void 0);_.A([_.r(),_.p("design:type",Object)],bl.prototype,"endIndex",void 0);_.A([_.r({value:6}),_.p("design:type",Number)],bl.prototype,"initialCount",void 0);_.A([_.r(),_.p("design:type",Object)],bl.prototype,"scrollCount",void 0);_.A([_.r(),_.p("design:type",Object)],bl.prototype,"initialStartIndex",void 0);
_.A([_.r(),_.p("design:type",Object)],bl.prototype,"disableScrollEventListener",void 0);_.A([_.r(),_.p("design:type",Object)],bl.prototype,"supportComponentResize",void 0);_.A([_.r({value:function(){var R=this;return function(){return R.prevClick_()}}}),
_.p("design:type",Function)],bl.prototype,"boundPrevClick",void 0);_.A([_.r({value:function(){var R=this;return function(){return R.nextClick_()}}}),
_.p("design:type",Function)],bl.prototype,"boundNextClick",void 0);_.A([_.r(),_.p("design:type",Object)],bl.prototype,"useFloorScrolling",void 0);_.A([_.r(),_.p("design:type",Object)],bl.prototype,"isSearch",void 0);_.A([_.r(),_.p("design:type",Object)],bl.prototype,"dragging",void 0);_.A([_.r(),_.p("design:type",Object)],bl.prototype,"dragMouseStart",void 0);_.A([_.r(),_.p("design:type",Object)],bl.prototype,"dragOffsetStart",void 0);
_.A([_.r(),_.p("design:type",Object)],bl.prototype,"disableWheelScroll",void 0);_.A([_.r(),_.p("design:type",Object)],bl.prototype,"centerListItems",void 0);_.A([_.fu("iron-resize"),_.e0("guideOpened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bl.prototype,"onIronResize_",null);_.A([_.fu("transitionend"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],bl.prototype,"onItemsTransitionEnd_",null);
_.A([_.fu("focusin"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],bl.prototype,"onChildElementFocus_",null);_.A([_.e0("shownItems"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bl.prototype,"observeShownItems_",null);_.A([_.nu()],bl);_.Ia.YtdHorizontalListBehavior=[];_.Ia.YtdHorizontalListBehavior.push(_.qv,_.S.YtRendererBehavior,_.K_.YtLazyListBehavior,_.L6.YtdGuideStateAwareBehavior,bl.prototype);var wXT=["APP_STATE","PI"];var SGw=_.RE(["about:blank"]),YG8={pushState:window.history.pushState,replaceState:window.history.replaceState};var FJ=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)};
FJ.prototype.init=function(){this.initialized=!0};
FJ.prototype.pushState=function(R,y){this.initialized||this.init();this.internalPushState&&this.internalPushState(R,"",y)};
FJ.prototype.replaceState=function(R,y){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(R,"",y)};
FJ.prototype.getState=function(){return this.history&&this.history.state};var Lpc=function(R){var y=function(){var u=R.apply(this,arguments)||this;u.boundHistoryPushState=!1;u.boundHistoryReplaceState=!1;u.debugInfo={};return u};
_.O(y,R);y.prototype.init=function(){var u=_.o_("IFRAME");_.cg(u,_.M1(SGw));u.sandbox="allow-same-origin";u.style.display="none";this.iframe=u;document.body.appendChild(u);this.bindHistoryStateFunctions();R.prototype.init.call(this)};
y.prototype.bindHistoryStateFunctions=function(){var u=this,v=[],Q;this.iframe&&((Q=this.iframe.contentWindow)==null?0:Q.history)&&(Q=this.iframe.contentWindow.history)&&(v.push(Q),Object.getPrototypeOf(Q)&&v.push(Object.getPrototypeOf(Q)));window.history&&v.push(window.history);Q=window.history;Object.getPrototypeOf(Q)&&v.push(Object.getPrototypeOf(Q));v.push(YG8);Q=function(K){for(var h=null,b=0;b<v.length;b++){var N=v[b][K];if(typeof N==="function"){h=N.bind(window.history);u.debugInfo[K]=b;break}}return h};
if(!this.boundHistoryReplaceState){var M=Q("replaceState");M&&(this.internalReplaceState=M,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(Q=Q("pushState"))&&(this.internalPushState=Q,this.boundHistoryPushState=!0)};
return y}(FJ),sv8=function(){return Lpc.call(this,window.history)||this};
_.O(sv8,Lpc);sv8.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var w0=function(R){this.browserHistory=R;this.initialized=!1};
w0.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
w0.prototype.pushState=function(R,y){this.initialized||this.init();this.browserHistory.pushState(R,y)};
w0.prototype.replaceState=function(R,y){this.initialized||this.init();this.browserHistory.replaceState(R,y)};
w0.prototype.handlePopstate=function(R){return R.state};_.z95=function(R,y,u,v,Q){this.endpoint=R;this.forward=y;this.historyEntry=u;this.JSC$29960_savedComponentState=v;this.legacyBorder=Q===void 0?!1:Q};var ggw=function(R,y){this.rootData=R;this.scrollTop=y};var dX=new _.Jx("PAGE_REQUEST_TOKEN"),JKc=new _.Jx("FETCH_PBJ_TOKEN");_.N$=new _.Jx("EPHEMERAL_STORE_TOKEN");_.Td=function(R){this.data=Object.assign({},R);var y;(y=this.data.innertubeResponse)==null||delete y.frameworkUpdates};
_.Td.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.uQ)()};
_.KR=function(R){return Object.assign({},R.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var CgY=function(){this.maxSize=100;this.timeToDataCache=new Map};
CgY.prototype.get=function(R){var y=this.timeToDataCache.get(R);y&&(this.timeToDataCache.delete(R),this.timeToDataCache.set(R,y));if(y&&y.rootData&&(_.f("web_use_response_store_for_history_cache")||_.f("mweb_use_new_history_manager"))){var u=_.ua().resolve(_.N$),v=RkK(y),Q=!!v;if(v){if(v.content){var M=oa(u,v.content);Q&&M?y.rootData.response=_.KR(M):Q=!1}v.player&&(M=oa(u,v.player),Q&&M?y.rootData.playerResponse=_.KR(M):Q=!1);v.reelSequence&&(u=oa(u,v.reelSequence),Q&&u?y.rootData.reelWatchSequenceResponse=
_.KR(u):Q=!1)}Q||(this.timeToDataCache.delete(R),y=void 0)}return y};
CgY.prototype.set=function(R,y){if(y.rootData&&(_.f("web_use_response_store_for_history_cache")||_.f("mweb_use_new_history_manager"))){var u=RkK(y),v=Object.assign({},y.rootData);u&&(u.content&&y.rootData.response&&(yiY(this,u.content,y.rootData.response),v.response=null),u.player&&y.rootData.playerResponse&&(yiY(this,u.player,y.rootData.playerResponse),v.playerResponse=null),u.reelSequence&&y.rootData.reelWatchSequenceResponse&&(yiY(this,u.reelSequence,y.rootData.reelWatchSequenceResponse),v.reelWatchSequenceResponse=
null));y=new ggw(v,y.scrollTop)}this.timeToDataCache.has(R)?this.timeToDataCache.delete(R):this.timeToDataCache.size>=this.maxSize&&(u=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(u.value));this.maxSize!==0&&this.timeToDataCache.set(R,y)};
CgY.prototype.clear=function(){this.timeToDataCache.clear()};
var RkK=function(R){var y=_.ua().resolve(_.yN(dX)),u;if((u=R.rootData)==null?0:u.endpoint)return y==null?void 0:rPU(y,R.rootData.endpoint);var v;_.kT(new _.OL("History snapshot response data does not contain endpoint",(v=R.rootData)==null?void 0:v.url));return null},yiY=function(R,y,u){if(R.maxSize>0){var v;
(R=(v=u.responseContext)==null?void 0:v.maxAgeSeconds)&&Number(R)>0&&(v=_.ua().resolve(_.N$),u=o8(u,R),v.put(y,new _.Td(u)))}};var uyG=function(R,y,u){this.endpoint=y;this.JSC$29965_savedComponentState=u===void 0?null:u;this.entryTime=R};var fG4=1;var xx=function(R){var y=function(){var u=R.apply(this,[].concat(_.P$(_.qy.apply(0,arguments))))||this;u.historyEntryTime=0;u.historySnapshotCache=u.createHistoryCache();return u};
_.O(y,R);y.prototype.createHistoryCache=function(){return new CgY};
y.prototype.saveAndReplace=function(u,v,Q){var M=window.location.href;var K=K===void 0?{}:K;var h=(h=this.browserHistory.getState())&&h.entryTime?h.entryTime:e98();u=this.createNewHistoryEntry(u,K,h);this.saveSnapshot(h,v,Q);this.replaceState(u,M||window.location.href)};
y.prototype.saveAndPush=function(u,v,Q,M,K){K=K===void 0?{}:K;this.saveSnapshot(this.historyEntryTime,Q,M);Q=this.historySnapshotCache;M=this.historyEntryTime;var h=Q.timeToDataCache.keys();h=_.V(h);for(var b=h.next();!b.done;b=h.next())b=b.value,b>M&&Q.timeToDataCache.delete(b);v=this.createNewHistoryEntry(v,K);this.pushState(v,u)};
y.prototype.saveSnapshot=function(u,v,Q){this.historySnapshotCache.set(u,new ggw(v,Q))};
y.prototype.createNewHistoryEntry=function(u,v,Q){Q=Q===void 0?e98():Q;return new uyG(Q,u,v)};
y.prototype.handlePopstate=function(u){var v=R.prototype.handlePopstate.call(this,u),Q=null,M=null,K=!1,h=null;v&&v.entryTime&&(h=this.historySnapshotCache.get(v.entryTime)||null,K=v.entryTime>this.historyEntryTime,this.historyEntryTime=v.entryTime,Q=v.endpoint,M=v.JSC$29965_savedComponentState);this.handleHistoryCacheLoad(new _.z95(Q,K,h,M),u);return v};
y.prototype.pushState=function(u,v){Number(u==null?void 0:u.entryTime)>=0&&(this.historyEntryTime=u.entryTime);R.prototype.pushState.call(this,u,v)};
y.prototype.replaceState=function(u,v){Number(u==null?void 0:u.entryTime)>=0&&(this.historyEntryTime=u.entryTime);R.prototype.replaceState.call(this,u,v)};
y.prototype.handleHistoryCacheLoad=function(){};
return y}(w0),vwc=function(){var R=xx.call(this,new sv8)||this;
R.dispatchElement=null;R.entryIndex=0;return R};
_.O(vwc,xx);_.J=vwc.prototype;_.J.init=function(R){R=R===void 0?!0:R;xx.prototype.init.call(this);this.initialized||(R||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.J.handlePopstate=function(R){var y=null;R.state||(y="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return xx.prototype.handlePopstate.call(this,R);var u=new CustomEvent("yt-history-pop",{cancelable:!0});_.Ik(this.dispatchElement,"yt-history-pop",[u,{errorMsg:y}]);_.h_(this.dispatchElement,"yt-close-all-popups-action");if(!u.defaultPrevented){u=_.ua().resolve(_.iD);y=u.getCurrentData();var v=u.getCurrentPage();u=0;v?(v=_.Ik(this.dispatchElement,"yt-get-page-offset",
[v]),v.length>0&&(u=v[0])):_.kT(new _.OL("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:y?y.page:"undefined"}));y&&(y.csn=_.$I());this.saveSnapshot(this.historyEntryTime,y,u)}return xx.prototype.handlePopstate.call(this,R)};
_.J.handleHistoryCacheLoad=function(R,y){R.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.V(_.h_(this.dispatchElement,"yt-history-will-navigate",[y])).next().value||_.Ik(this.dispatchElement,"yt-history-load",[y,R]))};
_.J.pushState=function(R,y){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var u=new _.OL("history.pushState is not a function",this.getDebugString());_.dI(u)}xx.prototype.pushState.call(this,R,y)};
_.J.replaceState=function(R,y){if(!this.browserHistory.boundHistoryReplaceState){var u=new _.OL("history.replaceState is not a function",this.getDebugString());_.dI(u)}xx.prototype.replaceState.call(this,R,y)};
_.J.saveAndPush=function(R,y,u,v,Q){Q=Q===void 0?{}:Q;u&&(u.csn=_.$I());xx.prototype.saveAndPush.call(this,R,y,u,v,Q)};
_.J.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(",")};
_.BC=function(R,y){R.init(!0);var u=R.browserHistory.getState();R.replaceState(u,Tw(y))};
vwc.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.f_=new _.Jx("DESKTOP_HISTORY_MANAGER_TOKEN");var Q5g=[10,20,30,40,50,60],eh=function(){this.currentPartitionIndex=0},j5G=function(R){hgV({mainAppWeb:_.gw(),
survivalSli:{partitionMinute:R,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},MJG=function(R){hgV({mainAppWeb:_.gw(),
survivalSli:{partitionMinute:R,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},JiK=function(R){return R.currentPartitionIndex>=0&&R.currentPartitionIndex<Q5g.length?Q5g[R.currentPartitionIndex]:-1},VJG=function(R){return R.currentPartitionIndex>0&&R.currentPartitionIndex-1<Q5g.length?Q5g[R.currentPartitionIndex-1]:-1};
eh.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var R=VJG(this);R>0&&MJG(R);R=JiK(this);R>0&&j5G(R);iHL(this)}};
var iHL=function(R){var y=JiK(R);if(y>0){var u=VJG(R);u<0&&(u=0);R.intervalId=_.WG.addJob(function(){var v=VJG(R);v>0&&MJG(v);v=JiK(R);v>0&&j5G(v);iHL(R)},3,(y-u)*6E4);
R.currentPartitionIndex+=1}else R.currentPartitionIndex=-1};var KlL=function(){this.skipNextNavigation=!1},Igw=function(R,y,u){if(!y)return!1;
if(R.skipNextNavigation)return R.skipNextNavigation=!1;if(_.e(u,_.tc))return!1;var v,Q,M;if((v=_.e(u,_.HV))==null?0:(Q=v.browseEndpointContextSupportedConfigs)==null?0:(M=Q.browseEndpointContextMainConfig)==null?0:M.skipConfirmation)return!1;var K;return((K=_.e(y.commandMetadata,_.QL))==null?void 0:K.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
KlL.prototype.showConfirmationDialog=function(R,y){this.navigateParams=y;this.customConfirmationCommand?_.ua().resolve(_.jX).resolveCommand(this.customConfirmationCommand):(y={openPopupAction:{popup:{confirmDialogRenderer:{title:_.ye(_.fo("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.ye(_.fo("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.ye(_.fo("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.ye(_.fo("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.c3.getInstance().triggerAction("yt-open-popup-action",y,R))};
KlL.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 hk8=function(){},FlT=function(R,y,u,v,Q,M,K){u=u===void 0?{}:u;
K=K===void 0?{}:K;var h=_.P1.instance,b,N=(b=_.e(y,_.tc))==null?void 0:b.url;return N?KJO(h,N,u,window.location.href,function(T,x){bHL(R,T,x,!1,!0,u,M,v)},function(){return!1}):Yl(h,y,u,window.location.href,G2(y),function(T,x){bHL(R,T,x,!1,!0,u,M,v)},Q,K)},bHL=function(R,y,u,v,Q,M,K,h){if(!R.JSC$14367_chunkHandler)if(u.page==="watch"||u.page==="learning_journey_watch")if(Q||v){if(_.f("kevlar_continue_playback_without_player_response")){var b;
var N=(b=_.e(h,_.zM))==null?void 0:b.videoId}R.JSC$14367_chunkHandler=new dMY(_.I8,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:v,previousVideoId:N},tempData:M},K)}else R.JSC$14367_chunkHandler=new nZ5(_.I8);else u.page==="shorts"&&Q&&!v?R.JSC$14367_chunkHandler=new WX5(_.I8,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:M},K):R.JSC$14367_chunkHandler=new GHY(K);R.JSC$14367_chunkHandler.processChunk({endpoint:y,data:u});return R.JSC$14367_chunkHandler.qG.promise},
w9c=function(R,y,u,v,Q){(u=_.fWc(u))&&bHL(R,y,u,!1,!0,v,void 0,Q)};var NFg=function(){this.pendingNavigationPromise=null};
_.J=NFg.prototype;_.J.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.J.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.J.addEventListener=function(){throw Error("yh");};
_.J.dispatchEvent=function(){throw Error("yh");};
_.J.removeEventListener=function(){throw Error("yh");};var TFg=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],ll=function(){_.nT.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];owc(this)};
_.O(ll,_.nT);ll.prototype.verifyUser=function(){var R=owc(this),y=R.logout;if(!R.sessionChange)return!0;this.dispatchEvent("ytsessionchange");y&&this.dispatchEvent("ytuserinvalid");return!1};
var owc=function(R){var y=TFg.map(function(Q){var M;return(M=_.xz.get(Q))!=null?M:""}),u=y.some(function(Q,M){return R.sessionCookies&&R.sessionCookies[M]!==""&&Q===""}),v=y.some(function(Q,M){return R.sessionCookies&&R.sessionCookies[M]!==Q});
R.sessionCookies=y;return{logout:u,sessionChange:v}};
ll.prototype.clearTimeout=function(){this.scheduledJobId&&(_.WG.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var ngU=new _.Jx("POSTMESSAGE_TUNNEL_TOKEN");var OqO=["/parent_tools","/file_download","/artist_roster"],PgO=[qPG,XWc,mUi,DUL,AzV,$Uc,pWc,tvL];var xFT=new _.Jx("APP_ROOT");var OM=new _.Jx("NAVIGATION_CONFIRMATION_SERVICE");var BFY="/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(" "),fgK=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
ZN=function(R,y){this.pendingNavigationPromise=null;this.JSC$14385_clientRoot=R;this.historyManager=y;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 hk8;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};_.aN(_.c3.getInstance(),R,this.JSC$14385_clientRoot)},HH5,nwg,Gmc,ri5,ZH5;
_.O(ZN,NFg);ZN.prototype.reload=function(){_.z2(window.location.href)};
var OsL=function(R){R.currentEndpoint&&_.e(R.currentEndpoint,_.PV)?R.reload():R.currentEndpoint&&R.navigate(R.currentEndpoint,!0,void 0,{disableCache:!0})};
ZN.prototype.navigate=function(R,y,u,v,Q,M,K,h){y=y===void 0?!1:y;u=u===void 0?{}:u;v=v===void 0?{}:v;var b=_.ua().resolve(OM),N;if(!K&&Igw(b,(N=this.currentEndpoint)!=null?N:void 0,R))return b.showConfirmationDialog(this.JSC$14385_clientRoot.parentElement,{endpoint:R,reload:y,params:u,tempData:v,requestType:Q,createScreenConfig:M}),!1;var T=_.Lx();_.sT(T,"eocs")||T.parkOrScheduleJob(function(){T.processSignal("eocs")},10,"eor");
K=G2(R);b=v.autonav==="1";N=_.$I();ll.instance||(ll.instance=new ll);var x=ll.instance.verifyUser(),B;if(_.f("enable_dark_theme_only_on_shorts")){var l=document.documentElement.hasAttribute("dark"),Z=_.EZ(!0)==="USER_INTERFACE_THEME_DARK";if(K==="shorts"){if(!l)if(_.f("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var P;_.z2((P=_.e(R==null?void 0:R.commandMetadata,_.QL))==null?void 0:P.url,void 0,void 0,window.top)}}else{var k;_.z2(_.YB((k=_.e(R==null?
void 0:R.commandMetadata,_.QL))==null?void 0:k.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.f("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!l){var E;_.z2(_.YB((E=_.e(R==null?void 0:R.commandMetadata,_.QL))==null?void 0:E.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(Z!==l){var D;_.z2(_.YB((D=_.e(R==null?void 0:R.commandMetadata,_.QL))==null?void 0:D.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(K==="watch"){if(ekY(_.ua().resolve(_.cZ),
R)&&(x||_.f("fix_miniplayer_navigation_killswitch")))return!1;_.f("block_all_player_prefetch_requests")||(B=ePG(_.Vz(_.W1),R,b))}else{var z,c=(z=_.e(this.currentEndpoint,_.zM))==null?void 0:z.videoId;c&&_.ET.getInstance().then(function(Zc){Zc&&Zc.set("yt-miniplayer-shown-video-id",c)})}B&&(u.frags=B.missingFragments_.join(","));
P=null;var a;k=(a=_.e(R==null?void 0:R.commandMetadata,_.QL))==null?void 0:a.ignoreNavigation;if(!k)if(_.f("kevlar_command_url")){var L;P=(L=_.e(R==null?void 0:R.commandMetadata,_.QL))==null?void 0:L.url}else P=_.ZAU(R,u);if(P&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&P==this.lastNavigationUrl)return _.E9({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.o2(pv(),"CANCELLED")}P&&(this.lastNavigationUrl=P);sSP();_.kB("IS_HOMEPAGE_COLD",
!1);_.kB("IS_RESULTS_PAGE_COLD",!1);_.kB("IS_WATCH_PAGE_COLD",!1);R.loggingUrls&&R.loggingUrls.forEach(function(Zc){Zc.baseUrl&&_.D1(Zc.baseUrl)});
_.kEz(R,M?M.layer:0)&&_.f("kevlar_flush_logs_on_away_navigation")&&_.W3();if(WpO(R))return!1;u6V(K,Q);if(!P)return k||_.kT(new _.OL("Can't construct url for endpoint",R)),_.o2(pv(),"FAILURE"),!1;_.lGP();a=R&&_.e(R,_.HV)&&_.e(R,_.HV).browseId.startsWith("UC");u=(L=_.f("enable_dark_theme_only_on_shorts")&&K==="shorts"?!1:_.$v()&&document.documentElement.hasAttribute("dark")!==_.kv())?{themeRefresh:1}:{};L&&!_.fJ()&&_.EZ()==="USER_INTERFACE_THEME_DARK"&&(u.theme="dark");a=L||lg5(P)&&!a&&!_.f("kevlar_disable_url_allowlist");
x||(a=!0);if(a||_.EB("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var QG;var hz=(QG=window.top)==null?void 0:QG.location.href}catch(Zc){var bO;hz=(bO=Zc)==null?void 0:bO.message}_.kT(new _.OL("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:hz}))}R=_.f("kevlar_redirect_on_window_killswitch")?window.top:window;sZ(P);_.z2(_.YB(P,u),void 0,void 0,R);_.o2(pv(),"ABORTED");return!1}_.f("kevlar_early_popup_close")&&_.Ik(this.JSC$14385_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14367_chunkHandler=void 0;var BW;hz=G2((BW=this.currentEndpoint)!=null?BW:void 0);(BW=K==="shorts"&&hz==="shorts")||_.R$L();_.A7(mdP)("nr",void 0);b&&_.E9({webInfo:{navigationReason:"an"}});R.clickTrackingParams&&(v.itct=R.clickTrackingParams,v.csn=N);Jpv(v);v.endpoint=JSON.stringify(R);_.f("enable_unknown_lact_fix_on_html5")&&(_.ua().resolve(_.Xj),v.lact=_.QF());_.Ps.isEmpty(v)||_.uh(P,v);!_.f("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(M=Object.assign({},{layer:0},M,{parentLayer:3}));this.pendingNavigationPromise=M=FlT(this.pageFetcher,R,v,this.currentEndpoint,this.JSC$14385_isNetworkPromiseStale.bind(this),M,h);M=M.then(this.handleNavigateSuccess.bind(this,M,R,B,v),this.handleNavigateFail.bind(this,M,R));_.Hr().navigationFinishPromise=M;y={endpoint:R,pageType:K,url:Tw(P),reload:!!y,noProgressBar:BW};Q&&(y.type=Q);this.fireEvent("yt-navigate-start",y);B&&w9c(this.pageFetcher,R,B,v,this.currentEndpoint);
return!0};
ZN.prototype.JSC$14385_isNetworkPromiseStale=function(R){return R!=this.pendingNavigationPromise};
var OHi=function(R,y,u,v,Q){var M=G2(y);y={endpoint:y,pageType:M};Q&&(y.errorMessage=Q);_.kT(u);y.navigationDoneMs=_.qQ("nd");y.navigationErrorReason=v;R.fireEvent("yt-navigate-error",y)};
ZN.prototype.handleNavigateFail=function(R,y,u){var v=void 0;u instanceof _.LX&&(v=u,lOT(u));if(this.JSC$14385_isNetworkPromiseStale(R))return _.qk(v);_.o2(pv(),"FAILURE");OHi(this,y,u,"101");return _.qk(u)};
ZN.prototype.handleNavigateSuccess=function(R,y,u,v,Q){if(this.JSC$14385_isNetworkPromiseStale(R))return _.NQ();this.pendingNavigationPromise=null;if(!Q)return y=new _.OL("Missing data in response for navigation endpoint",y),_.qk(y);if(Q.reload)return window.location.reload(!0),_.NQ();u&&(R={},_.Ps.extend(R,_.fWc(u),Q),Q=R);var M,K;u=(M=Q)==null?void 0:(K=M.timing)==null?void 0:K.responseStart;u!=null&&_.qQ("srt",u);_.qQ("pdc");var h,b;M=(h=Q)==null?void 0:(b=h.timing)==null?void 0:b.info;M!=null&&
(h=_.A7(_.tHU)(M),_.E9(h));_.o2(pv(),"SUCCESS");ZH5(this,y,Q,1,v);return _.NQ()};
var lg5=function(R){var y=R;_.f("kevlar_no_redirect_to_classic_2_ks")||(y=(new _.Cv(R)).getPath());if(y==="/"||y==="/red")return!1;var u=!0;BFY.forEach(function(v){R.indexOf(v)===0&&(u=!1)});
fgK.forEach(function(v){var Q=v.url;_.f(v.expFlag)&&R.indexOf(Q)===0&&(u=!1)});
return u};
ZN.prototype.publishPageData=function(R){this.fireEvent("yt-page-data-fetched",{pageData:R})};
HH5=function(R,y,u,v,Q,M){var K=null;y.page!=="watch"&&y.page!=="learning_journey_watch"||v?y.filler||_.Ik(R.JSC$14385_clientRoot,"yt-stop-old-player",[y]):K=bHL(R.pageFetcher,Q,y,u,!1,M,void 0,R.currentEndpoint);if(K)return K.then(R.publishPageData.bind(R,y));R.publishPageData(y);return _.NQ()};
nwg=function(R,y,u){var v=null;if(!u)return v=new _.OL("Empty data",R.debugString,y);var Q=u.response;if(!Q)return v;var M={endpointType:G2(y)||"unknown"};Q.responseContext?(Q=Q.responseContext.errors)&&(v=new _.OL("Errors in response context",R.debugString,y,Q,M)):v=Q.error||Q.errorMetadata?new _.OL("Errors in response",R.debugString,y,Q.error,Q.errorMetadata,M):new _.OL("responseContext missing",R.debugString,y,Object.keys(Q).sort().join(","),M);var K,h,b,N;if(R=u==null?void 0:(K=u.response)==null?
void 0:(h=K.responseContext)==null?void 0:(b=h.webResponseContextExtensionData)==null?void 0:(N=b.webResponseContextDebugData)==null?void 0:N.debugErrorMessages)for(K=0;K<R.length;K++);return v};
Gmc=function(R){var y,u,v,Q;return R==null?void 0:(y=R.response)==null?void 0:(u=y.responseContext)==null?void 0:(v=u.errors)==null?void 0:(Q=v.error)==null?void 0:Q["0"]};
ri5=function(R,y){var u;if(u=y.url&&!y.url.startsWith("/clip"))u=y.url,u=!_.f("webfe_parse_debug_param_in_resolveurl_service")&&R.searchDebugUrlMatcher.test(u)||dQW(u)?!0:!1;if(u)dQW(y.url)&&_.SS(window.location.href).themeRefresh?(y=_.vo(y.url,"themeRefresh"),_.BC(R.historyManager,y)):y.url&&!xmS(y.url)&&_.BC(R.historyManager,y.url);else if(y.endpoint){var v,Q,M;(u=(v=y.endpoint)==null?void 0:(Q=v.commandMetadata)==null?void 0:(M=Q.webCommandMetadata)==null?void 0:M.url)&&!xmS(u)&&_.BC(R.historyManager,
u);u&&y.url&&u!=y.url&&!y.url.match("playnext=1")&&new _.OL("Response url mismatch in response data",R.debugString,u,y.url)}};
_.Pyb=function(R,y,u,v,Q,M,K,h){M=M===void 0?!1:M;var b=_.ua().resolve(OM),N;if(!h&&Igw(b,(N=R.currentEndpoint)!=null?N:void 0,y))return b.showConfirmationDialog(R.JSC$14385_clientRoot.parentElement,{endpoint:y,data:u,navigationType:v,tempData:Q,isMiniplayer:M,isForwardHistoryNavigation:K==null?void 0:K.forward}),_.NQ();R.pageFetcher.JSC$14367_chunkHandler=void 0;return ZH5(R,y,u,v,Q,M)};
ZH5=function(R,y,u,v,Q,M){M=M===void 0?!1:M;R.isMiniplayerExpansion=M;var K=v===2;R.currentEndpoint=y;R.numNavigations++;R.numNavigations&&(YMO.navigationCount=R.numNavigations);_.kB("NUM_NAV",R.numNavigations);var h=nwg(R,y,u);if(h)return OHi(R,y,h,"102",Gmc(u)),_.qk(h);var b,N,T,x;h=u.rootVe||(u==null?void 0:(b=u.response)==null?void 0:(N=b.responseContext)==null?void 0:(T=N.webResponseContextExtensionData)==null?void 0:(x=T.ytConfigData)==null?void 0:x.rootVisualElementType);!K&&u&&ri5(R,u);var B,
l;b=u==null?void 0:(B=u.response)==null?void 0:(l=B.responseContext)==null?void 0:l.maxAgeSeconds;if(!K&&!isNaN(b)){var Z;_.f("kevlar_use_response_ttl_to_invalidate_cache")?Z=(0,_.uQ)()+1E3*b:_.f("kevlar_always_invalidate_cache")&&(Z=0);isNaN(Z)||(u.expirationTime=Z)}_.Vz(_.W1).prefetchCache_.clear();K||u.page!=="watch"||u.type!=="reduced"&&v!==1?v=HH5(R,u,K,!!M,y,Q):(R.publishPageData(u),v=_.NQ());Q=v.then(function(){var P=G2(y);P={endpoint:y,pageType:P,fromHistory:K,response:u};P.navigationDoneMs=
_.qQ("nd");R.fireEvent("yt-navigate-finish",P)});
u.csn&&h&&u.clientSideGrafts&&v.then(R.attachClientSideGrafts.bind(R,u,_.Ef()));return Q};
_.J=ZN.prototype;_.J.attachClientSideGrafts=function(R,y){R.clientSideGrafts&&y&&R.clientSideGrafts.forEach(function(u){if(y&&u){var v=_.U4(u);_.f("combine_ve_grafts")?_.GN().graftServerVe(u,y):_.ak(R.csn,y,v)}})};
_.J.handleSignalActionHistoryBack=function(){window.history.back()};
_.J.handleSignalActionCloseWindow=function(){window.close()};
_.J.handleSignalActionReloadPage=function(){this.reload()};
_.J.handleSignalActionSoftReloadPage=function(){OsL(this)};
_.J.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.J.fireEvent=function(R,y){R=new CustomEvent(R,{bubbles:!0,cancelable:!1,composed:!0,detail:y});this.dispatchEvent(R)};
_.J.addEventListener=function(R,y){this.JSC$14385_clientRoot.addEventListener(R,y)};
_.J.dispatchEvent=function(R){return this.JSC$14385_clientRoot.dispatchEvent(R)};
_.J.removeEventListener=function(R,y){this.JSC$14385_clientRoot.removeEventListener(R,y)};
ZN[Mn]=[xFT,_.f_];_.Fwv=new Fw("browse","h8y2qb");_.wJO=new Fw("search","JzFVk");_.NpG=new Fw("shorts","xwEKAe");_.TpT=new Fw("watchFixie","nmfa2d");_.ooO=new Fw("watchFlexy","CF909");_.xIW=new Fw("watchGrid","Tm0L3c");_.Bp8=new Fw("watchLearningJourney","L3n37");var WlY;var dFc=function(){return _.W.apply(this,arguments)||this};
_.O(dFc,_.W);_.RR.Object.defineProperties(dFc,{template:{configurable:!0,enumerable:!0,get:function(){if(WlY===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);WlY=R}R=WlY;return R}}});
_.A([_.n(dm5.YtPlayerBehavior),_.p("design:type",Object)],dFc.prototype,"ytPlayerBehavior",void 0);_.A([_.q({is:"ytd-player"})],dFc);var UF5;var kmc;var Ew5;var HC=function(){var R=_.W.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};
_.O(HC,_.W);HC.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]]"}}}}}};
HC.prototype.handleAccountLinkingStateChangedCommand=function(R){if(R=_.e(R,OVT)){var y,u=(y=this.data)==null?void 0:y.providerKey;y=R.providerKey;u&&y&&u.id===y.id&&u.subject===y.subject&&(R=R.linked,R!==void 0&&(this.set("data.linked",R),this.notifyPath("data.linked"),_.f("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(R)))}};
HC.prototype.setPlayerAccountLinkState=function(R){var y=new T5c;ou8(y,wbV(new Fjc,R));var u=_.I8();u&&u.getPlayerPromise().then(function(v){v.setAccountLinkState(_.nZ(y.JSC$12086_serializeBinary(),4));v.updateAccountLinkingConfig(R)})};
HC.prototype.handleShowAccountLinkDialog=function(){var R=this.get("button.buttonRenderer.command");R&&_.ok([R],this.hostElement)};
_.RR.Object.defineProperties(HC.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([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],HC.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],HC.prototype,"ytRendererBehavior",void 0);_.A([_.n([_.bW.YtActionHandlerBehavior]),_.p("design:type",Object)],HC.prototype,"actionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],HC.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],HC.prototype,"overrides",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],HC.prototype,"forceModernIconButton",void 0);_.A([_.r({value:"bottom"}),_.p("design:type",String)],HC.prototype,"buttonTooltipPosition",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],HC.prototype,"forceIconButton",void 0);_.A([_.r(),_.p("design:type",Boolean)],HC.prototype,"disableTextTransform",void 0);
_.A([_.G("data","data.linked","data.isWarning"),_.p("design:type",Object),_.p("design:paramtypes",[])],HC.prototype,"button",null);_.A([_.q({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],HC);
_.m(HC,"ytd-account-link-button-renderer",function(){if(Ew5!==void 0)return Ew5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return Ew5=R},{mode:1});var $F8;var qFG=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],n_=function(){return _.W.apply(this,arguments)||this};
_.O(n_,_.W);n_.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
n_.prototype.updateButtonActiveState=function(){var R=this,y=!!qFG.find(function(u){return R.currentState===u});
this.button&&(this.button.isPressed=y)};
_.RR.Object.defineProperties(n_.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var R,y;return((R=this.playlistLoopStateEntity)==null?void 0:R.state)||((y=this.data)==null?void 0:y.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var R=void 0,y;if(this.currentState&&((y=this.data)==null?0:y.states)){y=_.V(this.data.states);for(var u=y.next();!u.done;u=y.next()){u=_.e(u.value,_.tYL);var v=void 0;if(((v=u)==null?void 0:v.state)===this.currentState){R=u;break}}}return R}}});
n_.prototype.updateButtonActiveState=n_.prototype.updateButtonActiveState;_.A([_.n(_.p6),_.p("design:type",Object)],n_.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],n_.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],n_.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.r({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.DmL}),_.p("design:type",Object)],n_.prototype,"playlistLoopStateEntity",void 0);_.A([_.r(),_.p("design:type",Object)],n_.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Boolean)],n_.prototype,"forceIconOnly",void 0);_.A([_.O7("ytd-button-renderer"),_.p("design:type",_.J3)],n_.prototype,"button",void 0);
_.A([_.G("data","playlistLoopStateEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],n_.prototype,"currentState",null);_.A([_.e0("currentButtonStateRenderer"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],n_.prototype,"updateButtonActiveState",null);_.A([_.G("currentState"),_.p("design:type",Object),_.p("design:paramtypes",[])],n_.prototype,"currentButtonStateRenderer",null);
_.A([_.q({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],n_);
_.m(n_,"ytd-playlist-loop-button-renderer",function(){if($F8!==void 0)return $F8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return $F8=R},
{mode:1});var X9g;var mFg=_.fo("DOWNLOAD",{},"Download"),Aig=_.fo("DOWNLOADING",{},"Downloading"),DFT=_.fo("DOWNLOADED",{},"Downloaded"),p9T=_.fo("RETRY",{},"Retry"),Gd=function(){var R=_.W.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};
_.O(Gd,_.W);_.J=Gd.prototype;_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.J.dataChanged=function(){var R;(R=this.data)!=null&&R.text||(R=_.pz(_.Qe().getState(),this.videoId),this.updateButtonState(R))};
_.J.computeVideoId=function(R){return R};
_.J.showHideButton=function(){this.updateButtonVisibility()};
_.J.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};
_.J.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.J.updateButtonState=function(R){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==Aig||!_.Hd(R))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(R){case "TRANSFER_STATE_UNKNOWN":R=mFg;var y="OFFLINE_DOWNLOAD";var u="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":R=p9T;y="OFFLINE_DOWNLOAD";u="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":R=DFT;y="OFFLINE_PIN";u="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":R=
Aig;y="OFFLINE_DOWNLOADING_ZERO";u="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":R=p9T;y="OFFLINE_DOWNLOAD";u="ACTION_RETRY";break;default:R=mFg,y="OFFLINE_DOWNLOAD",u="ACTION_ADD"}this.isVideoDeletedByUser&&(R=mFg,y="OFFLINE_DOWNLOAD",u="ACTION_ADD");var v=Object.assign({},this.data);v.text=_.ye(R);v.tooltip=R;v.icon={iconType:y};v.size="SIZE_DEFAULT";v.style="STYLE_DEFAULT";_.e(v.command,_.OC)&&(_.e(v.command,_.OC).action=u);this.set("data",v)}};
_.J.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 y;R!==((y=this.data.icon)==null?void 0:y.iconType)&&(y=Object.assign({},this.data),y.text=_.ye(Aig),y.tooltip=Aig,y.icon={iconType:R},_.e(y.command,_.OC)&&(_.e(y.command,_.OC).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",y))}};
Gd.prototype.updateProgress=Gd.prototype.updateProgress;Gd.prototype.onTransferStateChanged=Gd.prototype.onTransferStateChanged;Gd.prototype.showHideButton=Gd.prototype.showHideButton;Gd.prototype.dataChanged=Gd.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Gd.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],Gd.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Gd.prototype,"forceIconButton",void 0);
_.A([_.r(),_.p("design:type",Object)],Gd.prototype,"forceIconOnly",void 0);_.A([_.r(),_.p("design:type",Object)],Gd.prototype,"overrides",void 0);_.A([_.r(),_.p("design:type",Object)],Gd.prototype,"buttonTooltipPosition",void 0);_.A([_.r(),_.p("design:type",Object)],Gd.prototype,"styleActionButton",void 0);_.A([_.r(),_.p("design:type",Object)],Gd.prototype,"disableTextTransform",void 0);
_.A([_.r({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.p("design:type",String)],Gd.prototype,"videoId",void 0);_.A([_.r(),_.p("design:type",Object)],Gd.prototype,"data",void 0);_.A([_.r({selector:cd,selectorArgs:["videoId"]}),_.p("design:type",Object)],Gd.prototype,"downloadProgress",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Gd.prototype,"isDownloadComplete",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Gd.prototype,"isHidden",void 0);_.A([_.r({selector:_.pz,selectorArgs:["videoId"]}),_.p("design:type",String)],Gd.prototype,"transferState",void 0);_.A([_.r({selector:_.ynE,selectorArgs:["videoId"]}),_.p("design:type",Object)],Gd.prototype,"isVideoDeletedByUser",void 0);_.A([_.r({selector:LIL,selectorArgs:["videoId"]}),_.p("design:type",Object)],Gd.prototype,"offlineabilityState",void 0);
_.A([_.r({value:!0}),_.p("design:type",Boolean)],Gd.prototype,"showTooltips",void 0);_.A([_.r({value:!0}),_.p("design:type",Boolean)],Gd.prototype,"sendCommandWhenDisabled",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],Gd.prototype,"disabled",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Gd.prototype,"dataChanged",null);
_.A([_.GJ("offlineabilityState"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Gd.prototype,"showHideButton",null);_.A([_.GJ("transferState","isVideoDeletedByUser"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Gd.prototype,"onTransferStateChanged",null);_.A([_.GJ("downloadProgress"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Gd.prototype,"updateProgress",null);
_.A([_.q({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],Gd);
_.m(Gd,"ytd-download-button-renderer",function(){if(X9g!==void 0)return X9g;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return X9g=R},{mode:2});var tJV;var cig,ag8=function(){if(cig!==void 0)return cig;var R=document.createElement("template");_.H(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 cig=R};var SFw=_.f("web_button_rework")&&_.$B("BUTTON_REWORK")||_.f("web_button_rework_with_live"),YFg=_.JT("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,r0=function(){var R=_.W.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$14422_browserSupportsAnimation=_.f("web_supports_animations_api");R.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};R.onTap=function(){var y;if((y=R.data)==null||!y.defaultNavigationEndpoint){var u;y=!((u=R.data)==null?0:u.isToggled);var v;if((v=R.data)==null||!v.preventAutoToggle){R.shouldAnimate=!1;R.disableTextUpdateJobId&&_.WG.cancelJob(R.disableTextUpdateJobId);R.disableTextUpdateJobId=_.WG.addLowPriorityJob(function(){R.disableTextUpdateJobId=void 0},YFg);
var Q;R.set("data.isToggled",!((Q=R.data)==null?0:Q.isToggled));u=R.getInnertubeIcon();v={toggled:y,actions:{}};u&&(v.actions[u.toLowerCase()]=y);_.Ko(R.hostElement,"yt-toggle-button",v)}}};
return R};
_.O(r0,_.W);_.J=r0.prototype;_.J.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.WG.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.J.toggle=function(R){var y;this.set("data.isToggled",R!==void 0?R:!((y=this.data)==null?0:y.isToggled))};
_.J.handleUpdateToggleButtonStateCommand=function(R){if(this.data){R=_.e(R,kQi);var y,u,v,Q=(y=this.data)==null?void 0:(u=y.toggleButtonSupportedData)==null?void 0:(v=u.toggleButtonIdData)==null?void 0:v.id;Q&&R&&Q===(R==null?void 0:R.buttonId)&&this.set("data.isToggled",R.toggled)}};
_.J.handleUpdateToggleButtonTextAction=function(R){if(this.data){R=_.e(R,Bjg);var y,u,v,Q=(y=this.data)==null?void 0:(u=y.toggleButtonSupportedData)==null?void 0:(v=u.toggleButtonIdData)==null?void 0:v.id;Q&&R&&Q===(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)}};
_.J.getInnertubeIcon=function(){var R=this.data;if(R){var y,u,v=((y=R.defaultIcon)==null?0:y.iconType)?(u=R.defaultIcon)==null?void 0:u.iconType:null,Q,M;y=((Q=R.toggledIcon)==null?0:Q.iconType)?(M=R.toggledIcon)==null?void 0:M.iconType:v;return R.isToggled?y:v}};
_.J.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.RR.Object.defineProperties(r0.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$14422_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var y=R.renderer;var u=R.element;var v=R.toggled;var Q=R.onTapCallback;var M=R.commandClientArgs;var K=R.overrides;var h=R.forceIcon;var b=R.forceModernIconButton;var N=R.forceDisabled;var T=R.useAnimatedText;var x=R.animatedTextProps;R=aGc(y,v);h=!y.defaultIcon||!h&&y.defaultText?y.defaultIcon?"leading":void 0:b?"icon-only":"icon-only-40";h==="icon-only-40"&&(R.type="text");var B;b=Object;var l=b.assign,Z;a:switch((Z=
y.style)==null?void 0:Z.styleType){case "STYLE_COMPACT_GRAY":Z={size:"S"};break a;default:Z={size:"M"}}var P=!!v;var k=(k=v&&y.toggledText||y.defaultText)?_.pk(k):void 0;T?(T=_.u7(v&&y.toggledText||y.defaultText))&&x&&!isNaN(Number(x.numberValue))?(x.numberText=T,v&&(x.numberValue+=1),T=x):T=void 0:T=void 0;var E,D,z,c;var a=(x=((D=v?y.toggledAccessibilityData||((a=y.toggledText)==null?void 0:a.accessibility):y.accessibilityData||((E=y.defaultText)==null?void 0:E.accessibility))==null?void 0:(z=D.accessibilityData)==
null?void 0:z.label)||((c=y.accessibility)==null?void 0:c.label))?x:_.u7(v&&y.toggledText||y.defaultText);N=N===void 0?y.isDisabled:N;u=cVE(y,v,Q,u,M);v=tDT(y,v);v!=null&&v.length?(v=_.Lk({innertubeCommand:luc(v),forceNewState:!0}),v=s4(v)?v:void 0):v=void 0;y=l.call(b,{},R,Z,{iconPosition:h},K,{focused:!1,toggled:P,toggleable:!0,formattedButtonText:k,animatedTextProps:T,accessibilityLabel:a,disabled:N,onTap:u,aTagConfig:v},uOS((B=y.colorData)==null?void 0:B.basicColorPaletteData));y.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(y.type="filled");return y}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var R=this.getInnertubeIcon();if(R)return _.fk(R)}}});
r0.prototype.resetAnimation=r0.prototype.resetAnimation;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],r0.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],r0.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],r0.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],r0.prototype,"data",void 0);
_.A([_.r(),_.p("design:type",Object)],r0.prototype,"isPressed",void 0);_.A([_.r(),_.p("design:type",Object)],r0.prototype,"forceIconButton",void 0);_.A([_.r(),_.p("design:type",Object)],r0.prototype,"forceIconOnly",void 0);_.A([_.r(),_.p("design:type",Object)],r0.prototype,"forceModernIconButton",void 0);_.A([_.r(),_.p("design:type",Object)],r0.prototype,"alignByText",void 0);_.A([_.r(),_.p("design:type",Object)],r0.prototype,"overrides",void 0);
_.A([_.r(),_.p("design:type",Boolean)],r0.prototype,"disabled",void 0);_.A([_.r(),_.p("design:type",Object)],r0.prototype,"isShorts",void 0);_.A([_.r(),_.p("design:type",Object)],r0.prototype,"buttonTooltipPosition",void 0);_.A([_.r(),_.p("design:type",Object)],r0.prototype,"animatedText",void 0);_.A([_.r(),_.p("design:type",String)],r0.prototype,"textNumberValue",void 0);_.A([_.r({computed:"computeTooltip(data, data.isToggled)"}),_.p("design:type",Object)],r0.prototype,"tooltip",void 0);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],r0.prototype,"resetAnimation",null);_.A([_.G("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.p("design:type",Object),_.p("design:paramtypes",[])],r0.prototype,"computedButtonShape",null);_.A([_.G("data.*"),_.p("design:type",Object),_.p("design:paramtypes",[])],r0.prototype,"computedIcon",null);
_.A([_.q({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],r0);SFw&&_.m(r0,"ytd-toggle-button-renderer",ag8,{mode:_.TN("kevlar_poly_si_batch_j081")?1:2});var ZOc=_.Jd(function(R){function y(N){var T;return _.I(function(x){if(x.nextAddress==1)return(T=!YGS(N,h())||!h().enabled)?x.jumpTo(2):x.yield(Cg8(),3);x.nextAddress!=2&&(T=x.yieldResult);if(T)return x.return();u();setTimeout(function(){K(!1)},1500);
_.f$(x)})}
function u(){setTimeout(function(){K(!0);var N;(N=v.lottieEl)==null||N.goToAndPlay(0)},150)}
var v=_.eo(),Q=_.V(_.In(!1,void 0,"JJXzp")),M=Q.next().value,K=Q.next().value,h=_.Qj(R.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.rB(function(){var N,T;((N=R.settings)==null?void 0:(T=N.call(R))==null?void 0:T.uniqueId)==="this is not intended behavior"&&_.kT(new _.OL("Smartimation Settings is undefined"))});
_.ny(function(){h().experimentEnabled&&(h().enabled?LpG(y):(K(!1),svS(y)),_.GF(function(){svS(y)}))},"FRiAUe");
_.ny(function(){h().timings.join("");h().experimentEnabled&&(z9U(h()),_.GF(function(){ggc(h())}))},"VKiJOe");
var b=_.N8(function(){var N=v,T=h().uniqueId+"-border",x,B;var l="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((B=(x=_.ua().resolve(_.yN(_.u0)))==null?void 0:x())!=null&&B?"dark":"light")+"_v2.json";return{animationRef:N,animationConfig:{name:T,autoplay:!1,loop:!1,path:l}}},void 0,"tgykab");
Q={};return _.F("yt-smartimation",{class:_.Oy(R.className,"smartimation",(Q["smartimation--experiment-enabled"]=function(){return h().experimentEnabled},Q["smartimation--active-border"]=M,Q["smartimation--enable-masking"]=RkW(),Q))},_.F(_.w,{cond:function(){return h().experimentEnabled},
then:function(){return _.F("div",{class:"smartimation__border"},_.F(_.F2,{className:"smartimation__border-gradient",data:b,animationName:function(){return b().animationConfig.name}}))}}),_.F("div",{class:"smartimation__content"},R.children))},"E");
ZOc.idomCompat=!0;_.h6(ZOc,"yt-smartimation",{props:{className:_.vR,settings:_.vR}});var PC=function(){var R=_.W.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};
_.O(PC,_.W);PC.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
PC.prototype.onDataChanged=function(){var R,y;this.shouldEnableSmartimation=(((R=this.data)==null?void 0:(y=R.timedAnimationData)==null?void 0:y.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
PC.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var R=_.e(this.data.likeButton,_.SE),y=_.e(this.data.dislikeButton,_.SE);return!!((R==null?0:R.isToggled)||(y==null?0:y.isToggled))};
PC.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]]"}}}}}};
_.RR.Object.defineProperties(PC.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var R,y,u=((R=this.data)==null?void 0:(y=R.timedAnimationData)==null?void 0:y.animationTiming)||[];return{uniqueId:"like-dislike",timings:u,enabled:this.shouldEnableSmartimation,experimentEnabled:u.length>0}}}});
PC.prototype.onDataChanged=PC.prototype.onDataChanged;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],PC.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],PC.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],PC.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],PC.prototype,"likeButtonOverride",void 0);_.A([_.r(),_.p("design:type",Object)],PC.prototype,"dislikeButtonOverride",void 0);
_.A([_.G("shouldEnableSmartimation"),_.p("design:type",Object),_.p("design:paramtypes",[])],PC.prototype,"smartimationSettings",null);_.A([_.e0("data"),_.fu("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],PC.prototype,"onDataChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],PC);
_.m(PC,"ytd-segmented-like-dislike-button-renderer",function(){if(tJV!==void 0)return tJV;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return tJV=R},{mode:1});var Ll8;var s5g;(s5g=document.body)==null||s5g.setAttribute("rounded-container","");var zkg={};zkg.YtToggleButtonBehavior=[_.bW.YtActionHandlerBehavior,rj.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 y={toggled:this.data.isToggled,actions:{}};y.actions[this.buttonIcon]=this.data.isToggled;_.Ko(this.hostElement,"yt-toggle-button",y)}y=this.data.defaultServiceEndpoint||null;var u=this.data.toggledServiceEndpoint||null;if(y&&u||y&&this.data.preventAutoToggle)R=R?u:y,y=this.disableCommandHandlerOverride,_.f("killswitch_toggle_button_behavior_resolve_command")||y?_.Fh(this.hostElement,
[R]):_.O4(R,this.hostElement),_.Ko(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:R})}},
stateChanged_:function(){var R=this.data;if(R){var y=R.isToggled;this._setEndpoint(this.computeEndpoint_(R));this._setServiceEndpoint(this.computeServiceEndpoint_(R));this._setButtonIcon(this.computeButtonIcon_(R,y));this._setButtonText(this.computeButtonText_(R,y));this._setButtonAccessibility(this.computeAccessibility_(R,y));this._setButtonTooltip(this.computeTooltip_(R,y));this._setButtonClass(this.computeButtonClass_(R,y));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=y):this.elements_.button.setAttribute("aria-pressed",y));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=y)}},
shouldSetIconActiveState_:function(){return _.f("kevlar_system_icons")},
toggle:function(R){this.set("data.isToggled",R!==void 0?R:!this.data.isToggled);_.f("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(R){if(R){var y,u;return!!((y=this.data)==null?0:(u=y.toggledServiceEndpoint)==null?0:u.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(R){return R&&R.defaultNavigationEndpoint||null},
computeButtonIcon_:function(R,y){var u=R&&R.defaultIcon?_.fk(R.defaultIcon.iconType):null;R=R&&R.toggledIcon?_.fk(R.toggledIcon.iconType):u;return y?R:u},
handleUpdateToggleButtonStateCommand_:function(R){R=R.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==R.buttonId&&this.toggle(R.toggled)},
computeButtonText_:function(R,y){return R?y&&R.toggledText||R.defaultText||null:null},
computeAccessibility_:function(R,y){return R?(y?this.get("toggledAccessibilityData.accessibilityData",R):this.get("accessibilityData.accessibilityData",R))||R.accessibility||null:null},
computeTooltip_:function(R,y){return R?y&&R.toggledTooltip||R.defaultTooltip||null:null},
computeButtonClass_:function(R,y){if(!R)return"";var u="",v=R.toggledStyle||R.style;if(y=y?v:R.style){y.styleType&&(y=y.styleType);try{u+=y.toLowerCase().replace(/_/g,"-")+" "}catch(Q){_.Eh(Q,y,typeof y),_.kT(Q)}}if(R=R.size){R.sizeType&&(R=R.sizeType);try{u+=R.toLowerCase().replace(/_/g,"-")+" "}catch(Q){_.Eh(Q,R,typeof R),_.kT(Q)}}return u.trim()},
computeIconPositionType_:function(R){return R&&R.iconPosition||null},
computeServiceEndpoint_:function(R){var y=R&&R.serviceEndpoint,u=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return y?y:u&&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"))}}];_.Dl("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var gwg=_.f("web_button_rework")&&_.$B("BUTTON_REWORK")||_.f("web_button_rework_with_live"),WC=function(){var R=_.W.apply(this,arguments)||this;R.systemIcons=_.f("kevlar_system_icons");R.roundedContainer=!0;return R};
_.O(WC,_.W);WC.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
WC.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var R=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var y={toggled:!!this.data.isToggled,actions:{}};y.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var u,v;y.actions.playlistId=(u=this.data.defaultServiceEndpoint)==null?void 0:(v=u.playlistEditEndpoint)==null?void 0:v.playlistId;_.Ko(this.hostElement,"yt-toggle-button",y)}(R=R?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(R)}};
WC.prototype.onYtNavigate=function(R){var y=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(R.detail.endpoint);y&&(R.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(y))};
_.RR.Object.defineProperties(WC,{template:{configurable:!0,enumerable:!0,get:function(){if(Ll8===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);Ll8=R}R=Ll8;return R}}});
WC.prototype.onYtNavigate=WC.prototype.onYtNavigate;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],WC.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],WC.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.jc),_.p("design:type",Object)],WC.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.n(zkg.YtToggleButtonBehavior),_.p("design:type",Object)],WC.prototype,"ytToggleButtonBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],WC.prototype,"data",void 0);_.A([_.r({value:!0}),_.p("design:type",Boolean)],WC.prototype,"showTooltips",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],WC.prototype,"systemIcons",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],WC.prototype,"roundedContainer",void 0);_.A([_.fu("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],WC.prototype,"onYtNavigate",null);
_.A([_.q({is:"ytd-toggle-button-renderer",disableElementRegistration:gwg})],WC);var CyK;_.d0=new _.Jx("PANEL_CONTROLLER_TOKEN");_.UM=new _.Jx("SHEET_CONTROLLER_TOKEN");_.kx=new _.Jx("DIALOG_CONTROLLER_TOKEN");CyK=new _.Jx("DIALOG_CONTAINER_TOKEN");var iHz=_.fo("DOWNLOAD",{},"Download"),Klz=_.fo("DOWNLOADING",{},"Downloading"),Igc=_.fo("DOWNLOADED",{},"Downloaded"),hkS=_.fo("RETRY",{},"Retry");var FlO=[],w9G=!1;var Rjg=_.Jd(function(R){var y=fgW,u=function(){return""},v=TFE(R.data),Q=owG(R.data),M=xFO(R.data),K=BF8(R.data);
y=function(){var h=R.data(),b=JiW(h,v(),Q(),M(),K()),N=!!h.videoId,T=b.text;return{title:N?T:void 0,tooltip:N?void 0:T,accessibilityText:T,onTap:b.onTap,iconName:b.iconType,style:h.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:b.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:h.buttonSize}};
u={};u=_.Oy("ytDownloadButtonViewModelHost",(u.ytDownloadButtonViewModelIsHidden=function(){var h=R.data(),b=K();return h.playlistId||b()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||b()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},u));
return _.F("download-button-view-model",{class:u},_.F(_.fQ,{data:y}))},"F");
Rjg.idomCompat=!0;var uAY=_.Jd(function(R){var y=R.backgroundLottieRef;var u=R.foregroundLottieRef;var v=R.children;var Q=R.wrapperClass;var M=R.disableAnimation;R=function(){return(_.f("web_animated_actions")||_.f("web_animated_actions_v2"))&&!(M==null?0:M())};
return _.F("yt-animated-action",{class:_.Oy("animated-action__container",Q)},_.F("div",{class:"animated-action__content-with-background"},_.F(_.w,{cond:R,then:function(){return _.F(ygi,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:y==null?void 0:y(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(ek8()?"dark":"light")+"_v5.json"}}}})}}),v),_.F(_.w,{cond:R,
then:function(){return _.F(ygi,{lottiePlayerProps:function(){return{animationRef:u==null?void 0:u(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(ek8()?"dark":"light")+"_v4.json"}}}})}}))},"G");
uAY.idomCompat=!0;var ygi=_.Jd(function(R){var y=R.wrapperClass;var u=R.lottieClass;var v=R.lottiePlayerProps;return _.F("div",{class:_.Oy("animated-action__lottie",y),"aria-hidden":"true"},_.F(_.F2,{className:u,data:v,animationName:function(){return v().animationConfig.name}}))},"H");var lgT={isOpen:!1};var ZHT={isAllowed:!1};var nwE={errorMessage:"",title:"",privacy:"",isDisabled:!0};var riT={isOpen:!1};var Wl8={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var vtb={response:void 0};var UFU=function(R,y){R=R===void 0?vtb:R;switch(y.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},R,{response:y.payload});default:return R}};var QFi={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var kmG=function(R,y){R=R===void 0?QFi:R;switch(y.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},R,{nextDisabled:y.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},R,{nextCommand:y.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},R,{footerSubmissionData:y.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},R,{isImpersonationValid:y.payload});default:return R}};var jFc={reportFormData:void 0,reportDetailsFormData:void 0};var EwT=function(R,y){R=R===void 0?jFc:R;switch(y.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},R,{reportFormData:y.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},R,{reportDetailsFormData:y.payload});default:return R}};var MIT=void 0;_.f("mweb_enable_redux_store_on_demand")||(MIT=new vV($FS()));var EM=_.f("enable_web_delhi_icons");var Jgi=_.Jd(function(R){R=_.jb(R,{themeOverride:void 0,animationRef:{}});var y=R.animatedIconType,u=R.active,v=R.themeOverride,Q=R.animationRef;R=R.staticIconFn;var M=_.V(_.In(void 0,void 0,"P5a72b")),K=M.next().value,h=M.next().value,b=function(){a:{var k=y();var E=v==null?void 0:v();var D;E=(E==null?void 0:E.useDarkTheme)||((D=_.ua().resolve(_.yN(_.u0)))==null?void 0:D());switch(k){case "LIKE":MIT||(MIT=new vV($FS()));k=(k=WYU(MIT.getState()))&&k.animationLightUrl&&k.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:E?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:E?k.animationDarkUrl:k.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(k){E=k;break a}E="animated_like_icon_"+(E?"dark":"light")+"_"+(EM?"v5":"v4");E={lottiePlayerProps:{animationConfig:{name:E,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+E+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(EM?" animated-like-icon-delhi":"")}}},totalFrames:EM?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":E={lottiePlayerProps:{animationConfig:{name:E?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(E?"dark":"light")+(EM?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(EM?" animated-subscribe-icon-delhi":"")}}},totalFrames:EM?120:79,lazyLoad:!1};break a}E=
void 0}return E},N=function(){var k,E;
return(E=(k=b())==null?void 0:k.lottiePlayerProps.animationConfig.name)!=null?E:""},T=function(){if(b()){var k=b().lottiePlayerProps.animationConfig.path;
return l0.get(k)||K()}};
M=_.V(_.In(!1,void 0,"h6xR3c"));var x=M.next().value;M=M.next().value;var B=X9v(M),l=function(){var k=b(),E,D,z;return(z=k==null?void 0:(E=k.lottiePlayerProps.animationConfig)==null?void 0:(D=E.rendererSettings)==null?void 0:D.className)!=null?z:""},Z=void 0,P=void 0;
_.ny(function(){var k=b(),E=N(),D=T(),z=x(),c=u();if(k&&(P!==E&&(P=E,Z=c,E=Q(),B.animationConfig=k.lottiePlayerProps.animationConfig,B.animationRef=E,D&&(B.animationConfig.animationData=D,B.animationConfig.path=void 0),E=k.lottiePlayerProps.animationConfig.path,!l0.get(E)&&k.lazyLoad&&E&&qFU(E,h)),!(z||k.lazyLoad&&!D))){if(D=!Q().lottieEl)c?(z=k.totalFrames,B.animationConfig.initialSegment=[z-1,z]):B.animationConfig.initialSegment=void 0;if(Z!==c&&!D)if(D=Q(),c){var a;(a=D.lottieEl)==null||a.playSegments([0,
k.totalFrames],!0)}else{var L;(L=D.lottieEl)==null||L.playSegments([0,1],!0)}Z=c}},"YCYOCe");
return _.F("animated-icon",{class:"ytAnimatedIconHost"},_.F(_.w,{cond:function(){var k,E;return!((k=b())==null||!k.lottiePlayerProps.animationConfig.path||((E=b())==null?0:E.lazyLoad)&&!T()||x())},
then:function(){return _.F(_.F2,{data:B,animationName:N,className:l,animationRef:Q})},
else:R}))},"I");_.$x=_.Jd(function(R){var y=_.sh("yt-subscribe-button-view-model"),u=_.sh("div"),v=_.sh("div"),Q=_.eo(),M=_.eo(),K=_.eo(),h=_.nA(EgT,function(){return R.data().stateEntityStoreKey}),b=_.nA($mc,function(){var sP,wg;
return(wg=(sP=R.data().notificationStateEntityStoreKeys)==null?void 0:sP.subsNotificationStateKey)!=null?wg:""}),N=function(){return!R.data().enableSubscribeButtonPostClickAnimation},T=_.V(_.In(0,void 0,"eTsWvc")),x=T.next().value,B=T.next().value;
T=_.V(_.In(0,void 0,"dniDQ"));var l=T.next().value,Z=T.next().value;T=_.V(_.In(!1,void 0,"EluPic"));var P=T.next().value,k=T.next().value;T=_.V(_.In(!1,void 0,"r0jnre"));var E=T.next().value,D=T.next().value;T=_.V(_.In(!1,void 0,"KMvoQe"));var z=T.next().value,c=T.next().value,a;T=_.V(_.In(!1,void 0,"aSENce"));var L=T.next().value,QG=T.next().value,hz=function(){D(!0);_.Wm(_.WG,function(){D(!1)},1500)};
_.ny(function(){var sP=E();Ky(function(){sP&&!N()&&h()&&LlS(Q,M,K)})},"LgmX6c");
_.ny(function(){var sP=h();Ky(function(){if(!N()&&sP){var wg;((wg=R.animateWidth)==null?0:wg.call(R))&&YFv(y.value,!!sP.subscribed,x(),l());var bT,HK;((bT=a)==null?0:bT.subscribed)||!sP.subscribed||sP.key!==((HK=a)==null?void 0:HK.key)||hz();a=sP}})},"iZzoUb");
T=_.N8(function(){var sP,wg,bT,HK=R.data(),Ta=!((sP=h())==null||!sP.subscribed);sP=!((wg=R.isOverlay)==null||!wg.call(R));wg=P()?y:void 0;var Sg=(bT=b())==null?void 0:bT.state;bT=L();SFc(HK,Sg);return DFO({model:HK,subscribed:Ta,isOverlay:sP,element:wg,notificationState:Sg,disableTextEllipsis:!0,focused:bT})},void 0,"yGQGue");
var bO=function(){var sP;if(!N()&&((sP=R.animateWidth)==null?0:sP.call(R))&&(u==null?0:u.value)&&(v==null?0:v.value)&&!z()){sP=h();var wg=_.V((sP==null?0:sP.subscribed)?[u,v]:[v,u]),bT=wg.next().value;wg=wg.next().value;bT=Math.ceil(bT.value.getBoundingClientRect().width);wg=Math.ceil(wg.value.getBoundingClientRect().width);B(bT);Z(wg);YFv(y.value,!(sP==null||!sP.subscribed),bT,wg);c(!0)}},BW=_.nh(function(sP){bO();
var wg=h();wg&&(sP.detail.endpoint.subscribeEndpoint||sP.detail.endpoint.unsubscribeEndpoint)&&tJ4(y.value,!wg.subscribed,wg)}),Zc=function(){var sP=_.ua().resolve(_.yN(_.Ti));
sP&&QG(sP.isKeyBoardInUse())},xS=function(){QG(!1)};
_.Li("yt-player-subscribe",function(sP){var wg=h();wg&&sP===R.data().channelId&&tJ4(y.value,!0,wg)});
_.Li("yt-player-unsubscribe",function(sP){var wg=h();wg&&sP===R.data().channelId&&tJ4(y.value,!1,wg)});
_.Li("yt-update-subscribe-button-action",function(sP){sP=_.e(sP,oD5);var wg=h();wg&&sP&&sP.channelId===R.data().channelId&&tJ4(y.value,!!sP.subscribed,wg)});
_.rB(function(){y.value&&(y.value.addEventListener("focusin",Zc),y.value.addEventListener("focusout",xS));var sP=_.Oh(_.WG,function(){bO()});
k(!0);_.GF(function(){_.WG.cancelJob(sP);y.value&&(y.value.removeEventListener("focusin",Zc),y.value.removeEventListener("focusout",xS))})});
var Dc=function(){var sP,wg,bT;if(bT=!((sP=h())==null||!sP.subscribed))sP=!!R.data().disableNotificationBell,bT=(wg=b())==null?void 0:wg.state,bT=!sP&&!!bT;return bT},$S=function(){var sP;
return!((sP=h())==null?0:sP.subscribed)},hL=function(){var sP,wg;
if(wg=$S()){wg=!!R.data().disableNotificationBell;var bT=(sP=b())==null?void 0:sP.state;wg=!wg&&!!bT}return wg},WK={},JL={};
return _.F("yt-subscribe-button-view-model",{class:_.Oy(R.className,"yt-subscribe-button-view-model-wiz",(WK["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var sP,wg;return!((sP=h())==null||!sP.subscribed)&&((wg=R.animateWidth)==null?void 0:wg.call(R))&&E()},WK["yt-subscribe-button-view-model-wiz--hidden"]=function(){var sP;
return!((sP=h())==null?0:sP.subscribed)&&R.data().hideWhenUnsubscribed},WK)),
el:y,"on:yt-service-request-sent":BW},_.F(uAY,{backgroundLottieRef:Q,foregroundLottieRef:M,wrapperClass:_.Oy("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(JL["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var sP;return((sP=R.animateWidth)==null?void 0:sP.call(R))&&E()},JL["yt-subscribe-button-view-model-wiz__static-width"]=function(){var sP;
return!((sP=R.animateWidth)==null?0:sP.call(R))},JL)),
disableAnimation:N},_.F("div",{el:u,class:"yt-subscribe-button-view-model-wiz__container"},_.F(_.j8,{data:T,icon:function(){return _.F(_.w,{cond:Dc,then:function(){var sP=function(){var wg;return p9O((wg=b())==null?void 0:wg.state)};
return _.F(_.w,{cond:function(){return N()||sP()!=="NOTIFICATIONS_NONE"},
then:function(){return _.F(_.W_,{icon:sP})},
else:function(){return _.F(Jgi,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:K})}})}})},
secondaryIconName:function(){return Dc()?"EXPAND":void 0}}))),_.F("div",{el:v,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.F(_.w,{cond:function(){var sP;return((sP=R.animateWidth)==null?void 0:sP.call(R))&&!N()&&!z()},
then:function(){return _.F(_.j8,{data:_.N8(function(){var sP;return DFO({model:R.data(),subscribed:$S(),isOverlay:!((sP=R.isOverlay)==null||!sP.call(R)),element:y,disableTextEllipsis:!0})},void 0,"lwPlub"),
iconName:function(){var sP;return hL()?p9O((sP=b())==null?void 0:sP.state):void 0},
secondaryIconName:function(){return hL()?"EXPAND":void 0}})}})))},"J");
_.$x.idomCompat=!0;var s5v=new _.Jx("RENDERER_STAMPER_OPTIONS_TOKEN");var VIc=_.Jd(function(R){var y=R.data;var u=_.nA(EgT,function(){return y().subscriptionStateEntityKey});
return _.F(_.w,{cond:function(){var v=y(),Q=u();return!v.hideWhenUnsubscribed||(Q==null?0:Q.subscribed)?_.e(y().button,_.k9):void 0},
then:function(v){return _.F("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.F(_.fQ,{data:v,buttonOverrides:function(){return{toggled:!0}}}))}})},"K");
VIc.idomCompat=!0;var MIO=_.UC({buttonViewModel:_.fQ,subscribeButtonViewModel:_.$x,downloadButtonViewModel:Rjg,toggleButtonViewModel:_.$1,subscribePlusButtonViewModel:VIc});_.Qn(VIG);var ffv=new _.Jx("RENDERER_LOGGER_TOKEN");var qp;_.$9=new v6V;qp=new Map;var ot8="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),B8U=["notificationTextRenderer","notificationMultiActionRenderer"],xlT="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
T8U=imE(function(R){return _.PT(R==null?void 0:R.targetId)}).useUpdatableData;var N8W=0;_.mk.debugName="EjJbCe";var img,q$,KUb;img=_.Jd(function(R){return _.F(_.mk,{data:function(){return R.actionRow().actions}},{buttonViewModel:function(y){var u=y.data;
return _.F(q$,{isRow:R.isRow,isIconOnlyButton:function(){return ejP(u())},
useIntrinsicWidth:R.useIntrinsicWidth},_.F(_.fQ,{data:u}))},
subscribeButtonViewModel:function(y){return _.F(q$,{isRow:R.isRow},_.F(_.$x,{data:y.data,isOverlay:!1,animateWidth:function(){return!R.isRow()}}))},
downloadButtonViewModel:function(y){var u=y.data;return _.F(q$,{isRow:R.isRow,isIconOnlyButton:function(){return!!u().playlistId}},_.F(Rjg,{data:u}))},
toggleButtonViewModel:function(y){var u=y.data;return _.F(q$,{isRow:R.isRow,isIconOnlyButton:function(){var v=u();return ejP(_.e(v.isToggled?v.toggledButtonViewModel:v.defaultButtonViewModel,_.k9))}},_.F(_.$1,{data:u}))},
subscribePlusButtonViewModel:function(y){return _.F(q$,{isRow:R.isRow},_.F(VIc,{data:y.data}))}})},"L");
q$=_.Jd(function(R){var y={};return _.F("div",{class:_.Oy("yt-flexible-actions-view-model-wiz__action",(y["yt-flexible-actions-view-model-wiz__action--row-action"]=R.isRow,y["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=R.useIntrinsicWidth,y["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,y["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=R.isIconOnlyButton,y))},R.children)},"M");
KUb=_.Jd(function(R){var y=function(){var v;return((v=R.layout)==null?void 0:v.call(R))===1},u={};
return _.F("yt-flexible-actions-view-model",{class:_.Oy("yt-flexible-actions-view-model-wiz",R.className,(u["yt-flexible-actions-view-model-wiz--inline"]=function(){return!y()},u["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return R.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},u))},_.F(_.eS,{each:function(){return R.data().actionsRows||[]}},function(v){return _.F(_.w,{cond:y,
then:function(){return _.F("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.F(img,{actionRow:v,isRow:y,useIntrinsicWidth:function(){return!!R.data().respectActionIntrinsicWidth}}))},
else:function(){return _.F(img,{actionRow:v,isRow:y})}})}))},"N");
_.XJ=_.f("web_enable_sink_yt_flexible_actions_view_model")?KUb:_.H_(VIG);KUb.idomCompat=!0;_.h6(_.XJ,"yt-flexible-actions-view-model",{props:{data:_.vR,layout:_.vR,justifyContentOverride:_.vR,className:_.vR}});_.m2=_.Jd(function(R){var y=_.nA(Y6,function(){var Q;return(Q=R.data().dislikeEntityKey)!=null?Q:""}),u=_.N8(function(){var Q=y();
return Q?Q.likeStatus==="DISLIKE":_.e(R.data().toggleButtonViewModel,_.EC).isToggled},void 0,"B2tgKf"),v=_.N8(function(){return Object.assign({},_.e(R.data().toggleButtonViewModel,_.EC),{isToggled:u()})},void 0,"otfIbf");
return _.F("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.F(_.$1,{data:v,buttonShapeOverrides:R.buttonShapeOverrideables,onToggle:function(Q){var M=y();M&&Q!==(M.likeStatus==="DISLIKE")&&M.key&&_.vy(_.DT("likeStatusEntity",M.key,{likeStatus:Q?"DISLIKE":"INDIFFERENT",hadUserInteraction:Q}))}}))},"O");
_.m2.idomCompat=!0;_.AO=_.Jd(function(R){var y=_.f("web_supports_animations_api"),u=i0(function(B){var l=N();if(!B){var Z,P;return{numberText:(P=l==null?void 0:(Z=l.likeCountIfIndifferent)==null?void 0:Z.content)!=null?P:"",numberValue:Number(l==null?void 0:l.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var k;Z=(l==null?void 0:(k=l.likeCountIfIndifferent)==null?void 0:k.content)!==B.numberText;if(h()||!Z)return B;var E;return{numberText:(l==null?void 0:(E=l.likeCountIfIndifferent)==null?void 0:E.content)||
"",numberValue:Number(l==null?void 0:l.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!l}}),v=i0(function(B){var l=N();
if(!B){var Z,P;return{numberText:(P=l==null?void 0:(Z=l.likeCountIfLiked)==null?void 0:Z.content)!=null?P:"",numberValue:Number(l==null?void 0:l.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var k;Z=(l==null?void 0:(k=l.likeCountIfIndifferent)==null?void 0:k.content)!==B.numberText;if(h()||!Z)return B;var E;return{numberText:(l==null?void 0:(E=l.likeCountIfLiked)==null?void 0:E.content)||"",numberValue:Number(l==null?void 0:l.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!l}}),Q=_.V(_.In(void 0,
void 0,"xYSlUe")),M=Q.next().value,K=Q.next().value,h=M,b=_.nA(Y6,function(){var B,l;
return(l=(B=R.data())==null?void 0:B.likeStatusEntityKey)!=null?l:""}),N=_.nA(hAU,function(){var B,l;
return((B=R.likeCountEntity)==null?void 0:(l=B.call(R))==null?void 0:l.key)||""}),T=_.N8(function(){var B;
return((B=b())==null?void 0:B.likeStatus)==="LIKE"},void 0,"DG5Osd"),x=function(){var B;
return y&&!((B=R.likeCountEntity)==null||!B.call(R))};
return _.F("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.F(_.$1,{data:function(){var B=Object,l=B.assign,Z;var P=_.e((Z=R.data())==null?void 0:Z.toggleButtonViewModel,_.EC);return l.call(B,{},P||{},{isToggled:T()})},
buttonShapeOverrides:R.buttonShapeOverrideables,animatedTextPropsDefault:function(){return x()?u():void 0},
animatedTextPropsToggled:function(){return x()?v():void 0},
onToggle:function(B){lfS(B,b(),h(),K)},
style:function(){var B;return((B=R.disableIconAnimation)==null?0:B.call(R))?void 0:{animateIcon:"true"}}}))},"P");
_.AO.idomCompat=!0;var Ifg=_.Jd(function(R){var y=function(){return _.e(R.data().likeButtonViewModel,_.A4)},u=function(){var Q;
return((Q=y())==null?void 0:Q.likeStatusEntityKey)||""},v=_.N8(function(){var Q,M;
var K=(M=_.nA(Y6,u)())!=null?M:(Q=y())==null?void 0:Q.likeStatusEntity;Q=R.data();var h;Q=(Q==null?void 0:(h=Q.timedAnimationData)==null?void 0:h.animationTiming)||[];return{uniqueId:"like-dislike",timings:Q,enabled:(K==null?void 0:K.likeStatus)==="INDIFFERENT"&&Q.length>0,experimentEnabled:Q.length>0}},void 0,"hGh9Td");
return _.F("segmented-like-dislike-button-view-model",{class:_.Oy("ytSegmentedLikeDislikeButtonViewModelHost",R.className),"button-renderer":!0},_.F(ZOc,{settings:v},_.F("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.F(_.w,{cond:y,then:function(Q){return _.F(_.AO,{data:Q,likeCountEntity:function(){return R.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.F(_.w,{cond:function(){return _.e(R.data().dislikeButtonViewModel,_.mE)},
then:function(Q){return _.F(_.m2,{data:Q,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"Q");
Ifg.idomCompat=!0;_.h6(Ifg,"segmented-like-dislike-button-view-model",{props:{data:_.vR,className:_.vR}});var hjY=_.Jd(function(R){var y=R.data;var u=R.className;var v=R.setMinWidth;var Q=R.forceIconOnly;var M=_.sh("account-link-button-view-model"),K=_.nA(_.OmS,function(){var B;return(B=y().accountLinkStatusEntityKey)!=null?B:""}),h=_.nA(_.OmS,function(){var B;
return(B=y().accountLinkStatusSecondaryEntityKey)!=null?B:""}),b=function(){if(!_.f("web_account_link_secondary_killswitch")){var B,l;
return((B=K())==null?void 0:B.linked)||((l=h())==null?void 0:l.linked)}var Z;return(Z=K())==null?void 0:Z.linked};
_.ny(function(){var B=K();if(B){var l=ou8(new T5c,wbV(new Fjc,!!B.linked));_.Bm().then(function(Z){Z&&(Z.setAccountLinkState(_.nZ(l.JSC$12086_serializeBinary(),4)),Z.updateAccountLinkingConfig(!!B.linked))})}},"b9pSsf");
var N=function(){return _.e(y().toggleButtonViewModel,_.EC)};
_.Li("yt-signal-action-show-account-link-dialog",function(){if(N()){var B=b()?N().toggledButtonViewModel:N().defaultButtonViewModel;B=_.e(B,_.k9);var l;if((l=K())==null?0:l.isWarning){l=_.e(y().warningButtonViewModel,_.k9);if(!l){_.pG(Error("Ah"));return}B=l}var Z;(l=_.Sb((Z=B)==null?void 0:Z.onTap))&&_.ok([l],M.value)}else _.pG(Error("Bh"))});
var T=function(){var B=N();return Object.assign({},B,{isToggled:b()})},x=function(){return(Q==null?0:Q())?{iconPosition:"icon-only"}:{}};
return _.F("account-link-button-view-model",{class:_.Oy("ytwAccountLinkButtonViewModelHost",u,function(){return(v==null?0:v())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:M,"button-renderer":!0},_.F("div",null,_.F(_.w,{cond:function(){var B;if((B=K())==null?0:B.isWarning)return(B=_.e(y().warningButtonViewModel,_.k9))||_.pG(Error("Ah")),B},
then:function(B){return _.F(_.fQ,{data:B,buttonOverrides:x})},
else:function(){return _.F(_.$1,{data:T,buttonShapeOverrides:x})}})))},"R");_.h6(hjY,"account-link-button-view-model",{props:{data:_.vR,className:_.IC,setMinWidth:_.IC,forceIconOnly:_.IC}});_.Dl("menuRenderer","menuRenderer","ytd-menu-renderer");
var bm5={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"}},
FUc=_.f("web_fix_missing_action_buttons")?100:200,DN=function(){var R=_.W.apply(this,arguments)||this;R.safeArea=!_.f("kevlar_flex_menu_safe_area_killswitch");R.tonalOverride=!1;R.threeDotSize="M";R.isOverlay=!1;R.useOverlayDark=!1;R.topLevelIconsOnly=!1;R.JSC$14556_lastWidth=0;R.maybeUpdateFlexibleMenu=function(){_.f("web_fix_missing_action_buttons")?requestAnimationFrame(R.maybeUpdateFlexibleMenuImpl):R.maybeUpdateFlexibleMenuImpl()};
R.maybeUpdateFlexibleMenuImpl=function(){var y;if((y=R.data)!=null&&y.flexibleItems){R.maybeFlushDebouncer();y=R.hostElement.clientWidth;var u=y>R.JSC$14556_lastWidth,v,Q=((v=R.topLevelButtonsContainer)==null?void 0:v.scrollHeight)||0,M;v=((M=R.flexibleItemButtonsContainer)==null?void 0:M.scrollHeight)||0;M=R.hostElement.scrollHeight>Math.max(Q,v)+8;u?(R.resetFlexibleItems(),R.JSC$14556_lastWidth=R.hostElement.clientWidth,R.maybeUpdateFlexibleMenu()):M&&(R.shrinkFlexibleMenu(),R.JSC$14556_lastWidth=
y)}};
R.computeThreeDotButtonShape=function(){if(R.tonalOverride)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)_.ua().resolve(_.jX).resolveCommand(R.data.fetchMenuCommand,{form:{element:R.hostElement}});else if(R.data.isDisabled&&R.data.disabledCommand)_.O4(R.data.disabledCommand,R.hostElement);else{var y=R.createMenuRendererVe(),u={items:R.items};R.data.menuPopupAccessibility&&(u.menuPopupAccessibility=R.data.menuPopupAccessibility);R.data.footer&&(u.footer=R.data.footer);y={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:u},veData:y}};
_.ua().resolve(_.UM).openSheet({openPopupActionCommand:y},R.hostElement)}};
return R};
_.O(DN,_.W);_.J=DN.prototype;_.J.updateButtonOverrides=function(){if(!_.f("menu_renderer_label_update_upkillswitch")){var R=_.hw(this.hostElement).querySelector("yt-button-view-model");R&&(R.buttonOverrides=this.buttonOverrides)}};
_.J.computeHasItems=function(){var R;return((R=this.topLevelButtonData)==null?void 0:R.length)||this.hasFlexibleItems};
_.J.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.J.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.oX(this.hostElement,{"--ytd-menu-renderer-button-color":_.aH(this.data.iconColor)}))};
_.J.onStamperFinished=function(){this.JSC$14556_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.J.setupFlexibleMenu=function(){var R=this,y;(y=this.data)!=null&&y.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.v2(this.maybeUpdateFlexibleMenu,FUc,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))};
_.J.maybeFlushDebouncer=function(){if(_.f("web_replace_formatted_with_attributed_string")){var R;(R=this.topLevelButtons)==null||R.forEach(function(u){var v;(u=(v=u.getElementsByTagName("yt-attributed-string"))==null?void 0:v[0])&&ZsE(u)});
var y;(y=this.flexibleItemButtons)==null||y.forEach(function(u){var v;(u=(v=u.getElementsByTagName("yt-attributed-string"))==null?void 0:v[0])&&ZsE(u)})}};
_.J.resetFlexibleItems=function(){var R;if((R=this.data)!=null&&R.flexibleItems){_.f("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var y;this.flexAsTopLevelButtons=(y=this.data.flexibleItems)==null?void 0:y.map(function(u){return _.e(u,_.c4g).topLevelButton});
_.f("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.J.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.J.shrinkFlexibleMenu=function(){var R;(R=this.flexAsTopLevelButtons)!=null&&R.length&&(this.flexAsTopLevelButtons=[].concat(_.P$(this.flexAsTopLevelButtons.slice(0,-1))))};
_.J.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:bm5,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:bm5,events:!0}}};
_.J.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.J.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.J.detached=function(){this.icon="MORE_VERT"};
_.J.computeTopLevelButtonData=function(R){if(!R)return[];var y;R=(y=R==null?void 0:R.topLevelButtons)!=null?y:[];return _.Ps.unsafeClone([].concat(_.P$(R)))};
_.J.computeItems=function(R,y){if(!R)return[];var u=[];if(y){var v=(R.flexibleItems||[]).map(function(K){return _.e(K,_.c4g)});
v=_.V(v);for(var Q=v.next();!Q.done;Q=v.next())Q=Q.value,y.includes(Q.topLevelButton)||(Q=Q.menuItem)&&u.push(Q)}var M;R=(M=R==null?void 0:R.items)!=null?M:[];return[].concat(_.P$(u),_.P$(R))};
_.J.computeMenuActive=function(R,y){return R||y};
_.J.onPopupOpened=function(){this.overlayOpen=!0;_.Ko(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.J.onPopupClosed=function(){this.overlayOpen=!1;_.Ko(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.J.onPopupCanceled=function(){this.overlayOpen=!1;_.Ko(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.J.computeAccessibilityLabel=function(R){return this.get("accessibility.accessibilityData.label",R)};
_.J.isHidden=function(R,y){return this.tonalOverride||!R?!0:R.fetchMenuCommand||R.isDisabled&&R.disabledCommand?!1:!(y==null?0:y.length)};
_.J.isModernOverflowHidden=function(R,y){return this.tonalOverride&&R?R.fetchMenuCommand?!1:!(y==null?0:y.length):!0};
_.J.createMenuRendererVe=function(){var R=this.data.trackingParams,y=_.$I(),u=_.Ef();return R&&y&&u?(R=_.U4(R),u=_.$6(7591),_.f("combine_ve_grafts")?_.x0(_.GN(),u,R):_.ak(y,R,u),u):null};
_.RR.Object.defineProperties(DN.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"}}}});
DN.prototype.onPopupCanceled=DN.prototype.onPopupCanceled;DN.prototype.onPopupClosed=DN.prototype.onPopupClosed;DN.prototype.onPopupOpened=DN.prototype.onPopupOpened;DN.prototype.tonalOverrideChanged=DN.prototype.tonalOverrideChanged;DN.prototype.resetFlexibleItems=DN.prototype.resetFlexibleItems;DN.prototype.setupFlexibleMenu=DN.prototype.setupFlexibleMenu;DN.prototype.iconButtonColorChanged=DN.prototype.iconButtonColorChanged;DN.prototype.updateButtonOverrides=DN.prototype.updateButtonOverrides;
_.A([_.n(_.jc),_.p("design:type",Object)],DN.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],DN.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],DN.prototype,"ytRendererstamperBehavior",void 0);_.A([_.O7("#button-shape"),_.p("design:type",HTMLElement)],DN.prototype,"buttonShape",void 0);_.A([_.O7("#button"),_.p("design:type",Object)],DN.prototype,"button",void 0);
_.A([_.r(),_.p("design:type",Object)],DN.prototype,"data",void 0);_.A([_.r({computed:"computeTopLevelButtonData(data)"}),_.p("design:type",Array)],DN.prototype,"topLevelButtonData",void 0);_.A([_.r(),_.p("design:type",Array)],DN.prototype,"flexAsTopLevelButtons",void 0);_.A([_.r({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.p("design:type",Array)],DN.prototype,"items",void 0);_.A([_.r({value:"MORE_VERT"}),_.p("design:type",String)],DN.prototype,"icon",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],DN.prototype,"safeArea",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.p("design:type",Boolean)],DN.prototype,"menuActive",void 0);_.A([_.r(),_.p("design:type",Boolean)],DN.prototype,"menuFocused",void 0);_.A([_.r({value:"bottom"}),_.p("design:type",String)],DN.prototype,"buttonTooltipPosition",void 0);_.A([_.r(),_.p("design:type",Boolean)],DN.prototype,"overlayOpen",void 0);
_.A([_.r({value:!0}),_.p("design:type",Boolean)],DN.prototype,"forceIconButton",void 0);_.A([_.r(),_.p("design:type",Boolean)],DN.prototype,"styleActionButton",void 0);_.A([_.r(),_.p("design:type",Boolean)],DN.prototype,"disableTextTransformOnButtons",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],DN.prototype,"tonalOverride",void 0);_.A([_.r(),_.p("design:type",Object)],DN.prototype,"threeDotSize",void 0);
_.A([_.r(),_.p("design:type",Object)],DN.prototype,"threeDotButtonOverride",void 0);_.A([_.r(),_.p("design:type",Object)],DN.prototype,"isOverlay",void 0);_.A([_.r(),_.p("design:type",Object)],DN.prototype,"useOverlayDark",void 0);_.A([_.r({computed:"computeButtonOverride(tonalOverride)"}),_.p("design:type",Object)],DN.prototype,"buttonOverride",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],DN.prototype,"hasCustomIconColor",void 0);
_.A([_.r({reflectToAttribute:!0}),_.G("flexAsTopLevelButtons"),_.p("design:type",Object),_.p("design:paramtypes",[])],DN.prototype,"hasFlexibleItems",null);_.A([_.r({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.p("design:type",Boolean)],DN.prototype,"hasItems",void 0);_.A([_.r(),_.p("design:type",Object)],DN.prototype,"topLevelIconsOnly",void 0);
_.A([_.e0("topLevelIconsOnly"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DN.prototype,"updateButtonOverrides",null);_.A([_.G("topLevelIconsOnly"),_.p("design:type",Object),_.p("design:paramtypes",[])],DN.prototype,"buttonOverrides",null);_.A([_.O7("#top-level-buttons-computed"),_.p("design:type",HTMLElement)],DN.prototype,"topLevelButtonsContainer",void 0);_.A([_.ZV(".top-level-buttons > *"),_.p("design:type",Array)],DN.prototype,"topLevelButtons",void 0);
_.A([_.O7("#flexible-item-buttons"),_.p("design:type",HTMLElement)],DN.prototype,"flexibleItemButtonsContainer",void 0);_.A([_.ZV("#flexible-item-buttons > *"),_.p("design:type",Array)],DN.prototype,"flexibleItemButtons",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DN.prototype,"iconButtonColorChanged",null);
_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DN.prototype,"setupFlexibleMenu",null);_.A([_.GJ("topLevelIconsOnly"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DN.prototype,"resetFlexibleItems",null);_.A([_.e0("tonalOverride"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DN.prototype,"tonalOverrideChanged",null);
_.A([_.fu("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DN.prototype,"onPopupOpened",null);_.A([_.fu("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DN.prototype,"onPopupClosed",null);_.A([_.fu("yt-popup-canceled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DN.prototype,"onPopupCanceled",null);
_.m(DN,"ytd-menu-renderer",function(){if(kmc===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);kmc=R}R=kmc;return R},{mode:2});var wzg;var N8K;_.p_=_.Jd(function(R){var y=R.data;var u=function(){if(y().icon)a:{var v={iconName:y().icon};for(var Q=_.ua().resolve(_.eb),M=_.V([12,24]),K=M.next();!K.done;K=M.next()){var h=K.value;K=Object.assign({},v,{iconStyle:"youtube_fill",iconSize:h});h=Object.assign({},v,{iconStyle:"youtube_outline",iconSize:h});if(Q.resolveIcon(K)){v=K;break a}if(Q.resolveIcon(h)){v=h;break a}}v=void 0}else v=void 0;return v};
R={};return _.F("badge-shape",{class:_.Oy("badge-shape-wiz",function(){return PKS(y().type)},(R["badge-shape-wiz--overlay"]=function(){return y().isOverlay},R["badge-shape-wiz--ads-include-dot"]=function(){return y().adsIncludeDot},R["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(y().type){case 17:case 18:case 19:var v=!0;
break a;default:v=!1}return v},R["badge-shape-wiz--status-badge"]=function(){a:switch(y().type){case 12:case 13:case 14:case 15:case 16:var v=!0;
break a;default:v=!1}return v},R["badge-shape-wiz--no-text"]=function(){return!y().text},R["badge-shape-wiz--modern"]=function(){return y().modern||_.f("web_modern_badge_shape")},R)),
style:_.P_({"background-color":function(){var v;return(v=y().customColors)==null?void 0:v.backgroundColor}}),
role:function(){return y().accessibilityText?"img":void 0},
"aria-label":function(){return y().accessibilityText}},_.F(_.w,{cond:function(){return y().animation},
then:function(v){return _.F(_.F2,{className:"badge-shape-wiz__icon",data:v,animationName:function(){return v().animationConfig.name||""}})}}),_.F(_.w,{cond:function(){var v;
return u()&&!((v=y())==null?0:v.animation)},
then:function(){return _.F("div",{class:"badge-shape-wiz__icon"},_.F(pIS,{data:function(){return u()}}))}}),_.F("div",{class:"badge-shape-wiz__text"},function(){var v;
return(v=y())==null?void 0:v.text}))},"S");
_.p_.idomCompat=!0;_.h6(_.p_,"badge-shape",{props:{data:_.vR}});var tO=function(){var R=_.W.apply(this,arguments)||this;R.systemIcons=_.f("kevlar_system_icons");R.animated=_.f("animated_live_badge_icon");R.useBadgeShape=_.f("web_badge_shape_defrag");return R};
_.O(tO,_.W);_.J=tO.prototype;_.J.addTooltips=function(){for(var R=_.hw(this.hostElement).querySelectorAll(".badge"),y=0,u;u=R[y++];){var v=this.repeatElement.itemForElement(u);u=_.hw(u);u.lastChild&&u.lastChild.is==="tp-yt-paper-tooltip"&&u.removeChild(u.lastChild);if(v=v.metadataBadgeRenderer&&v.metadataBadgeRenderer.tooltip){var Q=_.iW("tp-yt-paper-tooltip");(0,_.Nz)(Q).textContent=v;Q.setAttribute("position","top");Q.setAttribute("aria-hidden","true");u.appendChild(Q)}}};
_.J.badgesChanged=function(){var R=this;_.Lx().parkOrScheduleJob(function(){R.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.J.standaloneRoundedBadgeChanged=function(){var R=this.useRoundedBadge?this.useRoundedBadge:void 0;R&&(this.useRoundedBadge=R)};
_.J.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.J.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.J.computeStyle=function(R){_.f("enable_html5_teal_ad_badge")&&R==="BADGE_STYLE_TYPE_AD"&&(R="badge-style-type-ad-alternate");_.f("kevlar_ytb_live_badges")&&R==="BADGE_STYLE_TYPE_LIVE_NOW"&&(R="badge-style-type-live-now-alternate");return R?R.toLowerCase().replace(/_/g,"-"):""};
_.J.computeRole=function(R){return this.computeAriaLabel(R)?"img":"status"};
_.J.computeAriaLabel=function(R){var y;return(R==null?void 0:(y=R.accessibilityData)==null?void 0:y.label)||(R==null?void 0:R.label)};
_.J.computeBadgeShape=function(R){var y;if(R){var u,v=GGO(R.style),Q=rgv(R.style),M=R.label,K=((u=R.accessibilityData)==null?void 0:u.label)||R.label;R=(y=R.icon)==null?void 0:y.iconType;y={type:v,brNzRatingBadgeType:Q,text:M,accessibilityText:K,icon:R!=="PREMIUM"?R:void 0}}else y={};return y};
_.J.updateComputedBadges=function(R,y,u){var v=this;(y=y?[y]:u?[u]:void 0)?this.computedBadges=y:this.computedBadges=R==null?void 0:R.filter(function(Q){var M;if((M=Q.metadataBadgeRenderer)==null?0:M.groups){M=!1;Q=_.V(Q.metadataBadgeRenderer.groups);for(var K=Q.next();!K.done;K=Q.next()){K=K.value;var h=void 0;M=M||((h=v.hiddenBadgeGroups)==null?void 0:h.includes(K))}return!M}return!0})};
_.J.useFilledIcons=function(R){return _.f("kevlar_system_icons")&&(R==="AUDIO_BADGE"||R==="CHECK_CIRCLE_THICK"||R==="OFFICIAL_ARTIST_BADGE"||R==="SPONSORSHIP_STAR"||R==="PERSON_RADAR_FILLED"||R==="PERSON_RADAR")};
_.J.computeBadgeShapeStyle=function(R){return this.useBadgeShape?R==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||R==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":"":""};
_.J.computeIcon=function(R){var y,u;R=R==null?void 0:(y=R.metadataBadgeRenderer)==null?void 0:(u=y.icon)==null?void 0:u.iconType;if(R!=="PREMIUM"&&R)return _.fk(R)};
_.J.computeStandaloneBadge=function(R){var y;R=R==null?void 0:(y=R.icon)==null?void 0:y.iconType;return R==="PREMIUM_STANDALONE"||R==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
tO.prototype.hiddenBadgeGroupsChanged=tO.prototype.hiddenBadgeGroupsChanged;tO.prototype.standaloneBadgeChanged=tO.prototype.standaloneBadgeChanged;tO.prototype.standaloneRoundedBadgeChanged=tO.prototype.standaloneRoundedBadgeChanged;tO.prototype.badgesChanged=tO.prototype.badgesChanged;_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],tO.prototype,"hidden",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],tO.prototype,"componentBehavior",void 0);
_.A([_.r(),_.p("design:type",Array)],tO.prototype,"badges",void 0);_.A([_.r(),_.p("design:type",Object)],tO.prototype,"topStandaloneBadge",void 0);_.A([_.r(),_.p("design:type",Object)],tO.prototype,"bottomStandaloneBadge",void 0);_.A([_.r(),_.p("design:type",Object)],tO.prototype,"computedBadges",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],tO.prototype,"mediumFontAdBadge",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],tO.prototype,"useRoundedBadge",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],tO.prototype,"largeFontAdBadge",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],tO.prototype,"overlayAd",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],tO.prototype,"overlayPremium",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],tO.prototype,"noDotAdBadge",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],tO.prototype,"collectionTruncate",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],tO.prototype,"isThumbnailBadge",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],tO.prototype,"wrapBadges",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],tO.prototype,"systemIcons",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],tO.prototype,"animated",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],tO.prototype,"useBadgeShape",void 0);_.A([_.r({value:[]}),_.p("design:type",Array)],tO.prototype,"hiddenBadgeGroups",void 0);_.A([_.O7("#repeat"),_.p("design:type",XN)],tO.prototype,"repeatElement",void 0);_.A([_.GJ("badges"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tO.prototype,"badgesChanged",null);
_.A([_.GJ("useRoundedBadge"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tO.prototype,"standaloneRoundedBadgeChanged",null);_.A([_.GJ("topStandaloneBadge","bottomStandaloneBadge"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tO.prototype,"standaloneBadgeChanged",null);_.A([_.GJ("hiddenBadgeGroups"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tO.prototype,"hiddenBadgeGroupsChanged",null);
_.A([_.q({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],tO);
var T85=_.Nk()(tO,"ytd-badge-supported-renderer",function(){if(N8K===void 0){var R=document.createElement("template");_.H(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"><div class$="badge-shape [[computeBadgeShapeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></div></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');R.content.insertBefore(_.t().content.cloneNode(!0),
R.content.firstChild);N8K=R}R=N8K;return R},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.TN("kevlar_poly_si_batch_j053")?1:2});var cC=function(){var R=_.W.apply(this,arguments)||this;R.iconType="STAR";R.standardizeIconSize=_.f("kevlar_system_icons");R.mediaHoverOverlayInitialVisibility=_.f("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};
_.O(cC,_.W);_.J=cC.prototype;
_.J.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"}}}};
_.J.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",cC.JSC$14568_DEFAULT_CLICK_LOCATION_BEHAVIOR,cC.JSC$14568_CLICK_LOCATION_ID_MAP))};
_.J.onTap=function(R){if(!_.f("use_on_click_for_desktop_display_ad"))this.onTapOrClick(R)};
_.J.onClick=function(R){if(_.f("use_on_click_for_desktop_display_ad"))this.onTapOrClick(R)};
_.J.onTapOrClick=function(R){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,R,!1)};
_.J.updateMediaBackgroundImage=function(){var R=this.get("data.image.thumbnail.thumbnails");R&&(R=_.b0(R,0))&&_.oX(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+R+")"})};
_.J.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 y=this.data.impressionEndpoints[R];y.clickTrackingParams&&delete y.clickTrackingParams;_.ua().resolve(_.jX).resolveCommand(y,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var u;((u=this.data)==null?0:u.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.J.handleMuteAd=function(){};
_.J.attached=function(){var R=this;_.f("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&R.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.J.detached=function(){_.f("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.RR.Object.defineProperties(cC.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.data)==null||!R.titleText)return"";var y;return _.fo("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((y=this.data)==null?void 0:y.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"}}});
cC.prototype.onClick=cC.prototype.onClick;cC.prototype.onTap=cC.prototype.onTap;cC.prototype.dataChanged=cC.prototype.dataChanged;
cC.JSC$14568_CLICK_LOCATION_ID_MAP=_.f("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"]]);
cC.JSC$14568_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.f("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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],cC.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],cC.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.n(_.c4),_.p("design:type",Object)],cC.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],cC.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.il.YtSparklesClickLocationBehavior),_.p("design:type",Object)],cC.prototype,"ytSparklesClickLocationBehavior",void 0);_.A([_.n(DY),_.p("design:type",Object)],cC.prototype,"ytdActiveViewBehavior",void 0);_.A([_.n([_.bW.YtActionHandlerBehavior]),_.p("design:type",Object)],cC.prototype,"actionHandlerBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],cC.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],cC.prototype,"clickCommand",void 0);_.A([_.r({reflectToAttribute:!0,selector:_.$s}),_.p("design:type",Boolean)],cC.prototype,"miniMode",void 0);_.A([_.r(),_.p("design:type",String)],cC.prototype,"iconType",void 0);_.A([_.G("data.titleText"),_.p("design:type",String),_.p("design:paramtypes",[])],cC.prototype,"titleAriaLabel",null);
_.A([_.G("data.rating"),_.p("design:type",Object),_.p("design:paramtypes",[])],cC.prototype,"getRating",null);_.A([_.G("data.price"),_.p("design:type",Object),_.p("design:paramtypes",[])],cC.prototype,"getPrice",null);_.A([_.G("data.thirdLine"),_.p("design:type",Object),_.p("design:paramtypes",[])],cC.prototype,"getThirdLine",null);_.A([_.G("data.fourthLine"),_.p("design:type",Object),_.p("design:paramtypes",[])],cC.prototype,"getFourthLine",null);
_.A([_.G("data.fifthLine"),_.p("design:type",Object),_.p("design:paramtypes",[])],cC.prototype,"getFifthLine",null);_.A([_.G("getRating"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cC.prototype,"computeRatingHidden",null);_.A([_.G("getPrice"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cC.prototype,"computePriceHidden",null);_.A([_.G("getThirdLine"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cC.prototype,"computeThirdLineHidden",null);
_.A([_.G("getFourthLine"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cC.prototype,"computeFourthLineHidden",null);_.A([_.G("getFifthLine"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cC.prototype,"computeFifthLineHidden",null);_.A([_.r({reflectToAttribute:!0}),_.G("data.energyIcon"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cC.prototype,"hasEnergyIcon",null);
_.A([_.G("computePriceHidden","computeRatingHidden"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cC.prototype,"computeSecondaryTextHidden",null);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],cC.prototype,"standardizeIconSize",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],cC.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],cC.prototype,"noBottomMargin",void 0);
_.A([_.r({reflectToAttribute:!0}),_.G("data.layout"),_.p("design:type",String),_.p("design:paramtypes",[])],cC.prototype,"layout",null);_.A([_.G("data.layout"),_.p("design:type",Object),_.p("design:paramtypes",[])],cC.prototype,"mediaThumbnailWidth",null);_.A([_.G("layout"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cC.prototype,"useRoundedBadge",null);_.A([_.r(),_.p("design:type",String)],cC.prototype,"thumbnailObjectFit",void 0);
_.A([_.r(),_.p("design:type",Object)],cC.prototype,"thumbnailFitHeight",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],cC.prototype,"dataChanged",null);_.A([_.fu("tap"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],cC.prototype,"onTap",null);_.A([_.fu("click"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],cC.prototype,"onClick",null);
_.A([_.q({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],cC);
_.m(cC,"ytd-display-ad-renderer",function(){if(wzg!==void 0)return wzg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return wzg=R},{mode:1});var otY;var xlc;var B8G;var WUW=new Map;var ffg=!1;var aa=function(){var R=_.W.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};
_.O(aa,_.W);_.J=aa.prototype;_.J.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.J.attached=function(){var R=this;this.observer=new MutationObserver(function(y,u){R.handleResized();u.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.J.detached=function(){this.observer&&this.observer.disconnect()};
_.J.logTooltipEvent=function(){_.f("kevlar_wiz_tooltip_event_killswitch")||ffg||(_.dlW("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),ffg=!0)};
_.J.handleWindowResized=function(){this.handleResized()};
_.J.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")))};
_.J.onHeightChanged=function(){if(this.verified){var R=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.EB("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=R:this.textContainerEl.style.marginRight=R}};
_.J.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.EB("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.J.handleResized=function(){var R=this;this.verified&&_.WG.addLowPriorityJob(function(){R.fitBackgroundToText();var y=getComputedStyle(R.hostElement).lineHeight;y&&(y=y.match(/\d+/))&&y.length&&(R.lineHeight=Number(y[0]));R.height=R.lineHeight&&!R.wrapText?R.lineHeight:R.textEl.offsetHeight})};
_.J.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var R=document.createRange(),y=_.hw(this.textEl).children;y.length>0?R.selectNodeContents(y[0]):R.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(R.getBoundingClientRect().width)+"px"}};
_.J.computeChannelBadgeStyle=function(R){var y;if((R==null?0:(y=R.runs)==null?0:y.length)&&R.runs[0].textColor)return"--ytd-badge-icon-color:"+_.aH(R.runs[0].textColor)+";"};
_.RR.Object.defineProperties(aa.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"?_.ye(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 _.u7(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
aa.prototype.onLineHeightChanged=aa.prototype.onLineHeightChanged;aa.prototype.onHeightChanged=aa.prototype.onHeightChanged;aa.prototype.onChannelNameChanged=aa.prototype.onChannelNameChanged;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],aa.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],aa.prototype,"badges",void 0);_.A([_.r(),_.p("design:type",Object)],aa.prototype,"channelName",void 0);
_.A([_.r(),_.p("design:type",Object)],aa.prototype,"noEndpoints",void 0);_.A([_.r(),_.p("design:type",Object)],aa.prototype,"wrapText",void 0);_.A([_.r(),_.p("design:type",Object)],aa.prototype,"forceVerified",void 0);_.A([_.r(),_.p("design:type",Object)],aa.prototype,"tooltipPosition",void 0);_.A([_.r(),_.p("design:type",String)],aa.prototype,"tooltip",void 0);_.A([_.r(),_.p("design:type",Boolean)],aa.prototype,"hasChannelArt",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],aa.prototype,"compactStyle",void 0);_.A([_.O7("#text-container"),_.p("design:type",HTMLElement)],aa.prototype,"textContainerEl",void 0);_.A([_.O7("#text"),_.p("design:type",Object)],aa.prototype,"textEl",void 0);_.A([_.O7("#verified-tooltip"),_.p("design:type",HTMLElement)],aa.prototype,"verifiedTooltip",void 0);_.A([_.r(),_.p("design:type",Object)],aa.prototype,"height",void 0);
_.A([_.r(),_.p("design:type",Object)],aa.prototype,"lineHeight",void 0);_.A([_.r({reflectToAttribute:!0}),_.G("badges","forceVerified"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],aa.prototype,"verified",null);_.A([_.G("badges","verified"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],aa.prototype,"hideBadges",null);_.A([_.G("channelName"),_.p("design:type",Object),_.p("design:paramtypes",[])],aa.prototype,"formattedName",null);
_.A([_.G("badges","verified","formattedName"),_.p("design:type",String),_.p("design:paramtypes",[])],aa.prototype,"tooltipText",null);_.A([_.G("hasChannelArt"),_.p("design:type",String),_.p("design:paramtypes",[])],aa.prototype,"tooltipOffset",null);_.A([_.e0("channelName"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],aa.prototype,"onChannelNameChanged",null);
_.A([_.e0("height"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],aa.prototype,"onHeightChanged",null);_.A([_.e0("lineHeight","height"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],aa.prototype,"onLineHeightChanged",null);_.A([_.q({is:"ytd-channel-name",disableElementRegistration:!0})],aa);
_.m(aa,"ytd-channel-name",function(){if(B8G!==void 0)return B8G;var R=document.createElement("template");_.H(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 aria-hidden="true" fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');R.content.insertBefore(_.t().content.cloneNode(!0),
R.content.firstChild);return B8G=R},{mode:_.TN("kevlar_poly_si_batch_j036")?1:2});var Sh=function(){var R=_.W.apply(this,arguments)||this;R.standardizeIconSize=_.f("kevlar_system_icons");return R};
_.O(Sh,_.W);Sh.prototype.basicPaletteChanged=function(){var R;(R=this.data.color)!=null&&R.basicColorPaletteData&&_.mx(this.hostElement,this.data.color.basicColorPaletteData)};
Sh.prototype.useFilledIcons=function(R){return _.f("kevlar_system_icons")&&(R==="CHECK_CIRCLE_THICK"||R==="OFFICIAL_ARTIST_BADGE")};
_.RR.Object.defineProperties(Sh.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var R,y,u;return this.data.authorCreator||((R=this.data)==null?void 0:(y=R.color)==null?void 0:(u=y.basicColorPaletteData)==null?void 0:u.backgroundColor)}}});
Sh.prototype.basicPaletteChanged=Sh.prototype.basicPaletteChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Sh.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Sh.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Sh.prototype,"standardizeIconSize",void 0);_.A([_.r({reflectToAttribute:!0}),_.G("data.authorUnifiedVerified"),_.p("design:type",Object),_.p("design:paramtypes",[])],Sh.prototype,"verified",null);
_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Sh.prototype,"creator",null);_.A([_.e0("data.color.basicColorPaletteData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sh.prototype,"basicPaletteChanged",null);_.A([_.q({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],Sh);
_.m(Sh,"ytd-author-comment-badge-renderer",function(){if(xlc!==void 0)return xlc;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return xlc=R},{mode:1});var eji;var Yx=function(){return _.W.apply(this,arguments)||this};
_.O(Yx,_.W);Yx.prototype.computeThumbnailWidth=function(R){if(R==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Yx.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Yx.prototype,"data",void 0);_.A([_.r({computed:"computeIcon_(data.icon)"}),_.p("design:type",String)],Yx.prototype,"icon",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],Yx.prototype,"surface",void 0);
_.A([_.r({reflectToAttribute:!0,value:_.f("enable_shrink_image_size_on_web_posts_singleton")}),_.p("design:type",Boolean)],Yx.prototype,"searchSxsUx",void 0);_.A([_.q({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],Yx);
_.m(Yx,"ytd-backstage-image-renderer",function(){if(eji!==void 0)return eji;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return eji=R},{mode:1});var lf8;var L_=function(){var R=_.W.apply(this,arguments)||this;R.isLoading=!1;R.selectedItemIndex=-1;return R};
_.O(L_,_.W);_.J=L_.prototype;_.J.computeIsChannelOwner=function(R){if(!R)return!0;R=R[0];return!(R&&(R.signinEndpoint||R.selectServiceEndpoint))};
_.J.computeIsImagePoll=function(R){return(R==null?void 0:R.type)==="POLL_TYPE_IMAGE"};
_.J.computeIsTotalVotesDisabled=function(R){return!(R==null?0:R.totalVotes)};
_.J.thumbnailSrc=function(R){var y,u,v,Q;return(R==null?0:(y=R.thumbnails)==null?0:(u=y[0])==null?0:u.url)?_.Eo((v=R.thumbnails)==null?void 0:(Q=v[0])==null?void 0:Q.url):void 0};
_.J.progressWidth=function(R){return"width:"+(R?R*100:0)+"%;"};
_.J.textAreaWidth=function(R){return this.isImagePoll?null:"width:"+(R?R*100:0)+"%;"};
_.J.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.J.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var R=this.data.choices,y=0;y<R.length;y++)if(R[y].selected){this.selectedItemIndex=y;break}};
_.J.onPopupClosed=function(R,y){R=Number(this.pollVotes.selected);y.confirmed&&(this.selectChoice(R,!1),_.Ik(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.J.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.J.onYtCommentPollRevert=function(R,y){y&&(this.selectChoice(y.selectedChoiceIndex,!0),this.set("data.totalVotes",y.totalVotes))};
_.J.onYtServiceRequestSent=function(R,y){if(y.actions)for(R=0;R<y.actions.length;R++){var u=y.actions[R];_.e(u,Uc)&&this.set("data.totalVotes",_.e(u,Uc).totalVotes)}};
_.J.onYtServiceRequestCompleted=function(R){var y=this.get("detail.data.actionResults.0.feedback",R);R=this.get("detail.data.actionResults.0.status",R);if(y==="FEEDBACK_DESELECT"||y==="FEEDBACK_SELECT")this.isLoading=!1,R==="STATUS_FAILED"?_.Ko(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.J.getEndpoint=function(R,y){return y===R?this.data.choices[y].deselectServiceEndpoint||null:this.data.choices[R].selectServiceEndpoint||null};
_.J.selectChoice=function(R,y){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var u=0;u<this.data.choices.length;u++){var v;if(R===this.selectedItemIndex){var Q=!1;var M=v=null}else v=(Q=u===R)?this.data.choices[u].voteRatioIfSelected:this.data.choices[u].voteRatioIfNotSelected,M=Q?this.data.choices[u].votePercentageIfSelected:this.data.choices[u].votePercentageIfNotSelected;this.set("data.choices."+u+".voteRatio",v);
this.set("data.choices."+u+".votePercentage",M);this.set("data.choices."+u+".selected",Q)}y||(this.isLoading=!0,(y=this.getEndpoint(R,this.selectedItemIndex))&&_.ua().resolve(_.jX).resolveCommand(y,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===R?-1:R};
_.RR.Object.defineProperties(L_.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
L_.prototype.onYtServiceRequestCompleted=L_.prototype.onYtServiceRequestCompleted;L_.prototype.onYtServiceRequestSent=L_.prototype.onYtServiceRequestSent;L_.prototype.onYtCommentPollRevert=L_.prototype.onYtCommentPollRevert;L_.prototype.onPopupClosed=L_.prototype.onPopupClosed;L_.prototype.dataChanged=L_.prototype.dataChanged;_.A([_.n(_.uu),_.p("design:type",Object)],L_.prototype,"paperItemBehavior",void 0);
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],L_.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.jc),_.p("design:type",Object)],L_.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],L_.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],L_.prototype,"isLoading",void 0);_.A([_.r({computed:"computeIsChannelOwner(data.choices)"}),_.p("design:type",Boolean)],L_.prototype,"isChannelOwner",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.p("design:type",Boolean)],L_.prototype,"isImagePoll",void 0);_.A([_.r({computed:"computeIsTotalVotesDisabled(data)"}),_.p("design:type",Boolean)],L_.prototype,"isTotalVotesDisabled",void 0);_.A([_.r(),_.p("design:type",Object)],L_.prototype,"previousPollInfo",void 0);_.A([_.r(),_.p("design:type",Object)],L_.prototype,"selectedItemIndex",void 0);_.A([_.O7("#poll-votes"),_.p("design:type",Object)],L_.prototype,"pollVotes",void 0);
_.A([_.G("isChannelOwner"),_.p("design:type",Object),_.p("design:paramtypes",[])],L_.prototype,"endpointStyle",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],L_.prototype,"dataChanged",null);_.A([_.fu("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],L_.prototype,"onPopupClosed",null);
_.A([_.fu("yt-comment-poll-revert"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],L_.prototype,"onYtCommentPollRevert",null);_.A([_.fu("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.z3]),_.p("design:returntype")],L_.prototype,"onYtServiceRequestSent",null);
_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],L_.prototype,"onYtServiceRequestCompleted",null);_.A([_.q({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],L_);
_.m(L_,"ytd-backstage-poll-renderer",function(){if(lf8!==void 0)return lf8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return lf8=R},{mode:2});var Om8;var Zm5={autoplay:!1,loop:!1},HmV={simpleText:""},sM=function(){var R=_.W.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"},Zm5,{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"},Zm5,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});R.correctnessAnimationProps=[];R.correctnessAnimationRefs=[];return R};
_.O(sM,_.W);_.J=sM.prototype;_.J.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.J.computeIsChannelOwner=function(R){if(!R)return!0;R=R[0];return!(R&&(R.signinEndpoint||R.selectServiceEndpoint))};
_.J.computeIsTotalVotesDisabled=function(R){return!(R==null?0:R.totalVotes)};
_.J.computeIsImageQuiz=function(R){return(R==null?void 0:R.type)==="POLL_TYPE_IMAGE"};
_.J.onExplanationChanged=function(){this.expander.reset()};
_.J.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var R=this.data.choices;if(R){this.maybeInitializeQuizLotties(R);for(var y=0;y<R.length;y++)if(R[y].isSelected||this.isChannelOwner&&R[y].isCorrect){this.selectedItemIndex=y;return}this.selectedItemIndex=-1}}};
_.J.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var R=this.selectedItemIndex,y=Number(this.quizVotes.selected);this.selectChoice(y);this.sendVoteAction(y,R);this.quizVotes.selected=-1;var u;R=!((u=this.data)==null?0:u.enableAnimation);this.maybePlayAnswerAnimations(R)}};
_.J.onYtCommentPollRevert=function(R,y){y&&(this.selectChoice(y.selectedChoiceIndex),this.set("data.totalVotes",y.totalVotes))};
_.J.onYtServiceRequestSent=function(R,y){if(y.actions)for(R=_.V(y.actions),y=R.next();!y.done;y=R.next())(y=_.e(y.value,Uc))&&this.set("data.totalVotes",y.totalVotes)};
_.J.onYtServiceRequestCompleted=function(R){var y=this.get("detail.data.actionResults.0.feedback",R);R=this.get("detail.data.actionResults.0.status",R);if(y==="FEEDBACK_DESELECT"||y==="FEEDBACK_SELECT")this.isLoading=!1,R==="STATUS_FAILED"?_.Ko(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.J.getAnimationPropsForChoiceIndex=function(R,y){return y[R]};
_.J.maybePlayAnswerAnimations=function(R){R=R===void 0?!1:R;var y;if((y=this.data)!=null&&y.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){y=_.V(this.correctnessAnimationRefs);for(var u=y.next();!u.done;u=y.next()){var v=void 0,Q=void 0;(v=u.value)==null||(Q=v.lottieEl)==null||Q.stop()}if(!(this.selectedItemIndex<0)){y=0;R&&(y=this.isCorrect?37:25);var M,K;(M=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(K=M.lottieEl)==null||K.goToAndPlay(R?y:0,!0);if(!(this.isCorrect||
(M=this.data.choices.findIndex(function(T){return T.isCorrect}),M<0))){var h,b;
(b=(h=this.correctnessAnimationRefs[M])==null?void 0:h.lottieEl)==null||b.goToAndPlay(37,!0);var N;h=(N=this.fadeContainers)==null?void 0:N.item(M);!R&&h&&this.fadeIn(h)}}}};
_.J.thumbnailSrc=function(R){var y,u,v,Q;return(R==null?0:(y=R.thumbnails)==null?0:(u=y[0])==null?0:u.url)?_.Eo((v=R.thumbnails)==null?void 0:(Q=v[0])==null?void 0:Q.url):void 0};
_.J.a11yVotedText=function(R,y){var u,v,Q=((u=this.data)==null?void 0:(v=u.correctVotedText)==null?void 0:v.simpleText)||"",M,K;u=((M=this.data)==null?void 0:(K=M.votedText)==null?void 0:K.simpleText)||"";if(!y)return"";var h,b;if((h=this.data)==null?0:(b=h.choices)==null?0:b[R].isCorrect)return Q;var N,T;return((N=this.data)==null?0:(T=N.choices)==null?0:T[R].isSelected)?u:""};
_.J.getEndpoint=function(R,y){return y===R?this.data.choices[R].deselectServiceEndpoint||null:this.data.choices[R].selectServiceEndpoint||null};
_.J.sendVoteAction=function(R,y){if(R=this.getEndpoint(R,y))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(R)};
_.J.selectChoice=function(R){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var y=0;y<this.data.choices.length;y++)this.set("data.choices."+y+".isSelected",R===this.selectedItemIndex?!1:y===R);this.selectedItemIndex=this.selectedItemIndex===R?-1:R};
_.J.maybeInitializeQuizLotties=function(R){var y=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(u){return{animationConfig:u.isCorrect?y.baseCorrectLottiePlayerAnimationConfig:y.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){y.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(u){return u.animationRef||{}})};
_.J.fadeIn=function(R){R.classList.add("fade-in");_.T3(_.WG,function(){R.classList.remove("fade-in")},900)};
_.RR.Object.defineProperties(sM.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.f("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.u7(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,y;return((R=this.data)==null?void 0:(y=R.choices)==null?void 0:y.some(function(u){return u.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?HmV:this.data.choices[this.selectedItemIndex].explanation||HmV}},
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}}});
sM.prototype.onYtServiceRequestCompleted=sM.prototype.onYtServiceRequestCompleted;sM.prototype.onYtServiceRequestSent=sM.prototype.onYtServiceRequestSent;sM.prototype.onYtCommentPollRevert=sM.prototype.onYtCommentPollRevert;sM.prototype.dataChanged=sM.prototype.dataChanged;sM.prototype.onExplanationChanged=sM.prototype.onExplanationChanged;_.A([_.n(_.uu),_.p("design:type",Object)],sM.prototype,"paperItemBehavior",void 0);
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],sM.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],sM.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.VE.YtTaskEmitterBehavior),_.p("design:type",Object)],sM.prototype,"ytTaskEmitterBehavior",void 0);_.A([_.n(_.jc),_.p("design:type",Object)],sM.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],sM.prototype,"data",void 0);
_.A([_.r(),_.p("design:type",Object)],sM.prototype,"isLoading",void 0);_.A([_.r(),_.p("design:type",Object)],sM.prototype,"usesPanelLockup",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.p("design:type",Boolean)],sM.prototype,"isChannelOwner",void 0);_.A([_.r({computed:"computeIsTotalVotesDisabled(data)"}),_.p("design:type",Boolean)],sM.prototype,"isTotalVotesDisabled",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.p("design:type",Boolean)],sM.prototype,"isImageQuiz",void 0);_.A([_.r(),_.p("design:type",Object)],sM.prototype,"previousQuizInfo",void 0);_.A([_.r(),_.p("design:type",Object)],sM.prototype,"selectedItemIndex",void 0);_.A([_.r({reflectToAttribute:!0}),_.G("data","usesPanelLockup"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],sM.prototype,"shouldUseModernUi",null);
_.A([_.ZV(".fade-container"),_.p("design:type",Object)],sM.prototype,"fadeContainers",void 0);_.A([_.r(),_.p("design:type",Array)],sM.prototype,"correctnessAnimationProps",void 0);_.A([_.G("explanation","showCorrectAnswer"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],sM.prototype,"showExplanation",null);_.A([_.G("isChannelOwner","isAttempted"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],sM.prototype,"showCorrectAnswer",null);
_.A([_.G("isChannelOwner","isAttempted","data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],sM.prototype,"isQuizAnsweringDisabled",null);_.A([_.G("isQuizAnsweringDisabled"),_.p("design:type",Object),_.p("design:paramtypes",[])],sM.prototype,"endpointStyle",null);_.A([_.G("data","selectedItemIndex"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],sM.prototype,"isAttempted",null);
_.A([_.G("data","selectedItemIndex"),_.p("design:type",Object),_.p("design:paramtypes",[])],sM.prototype,"explanation",null);_.A([_.G("data","selectedItemIndex"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],sM.prototype,"isCorrect",null);_.A([_.O7("ytd-expander"),_.p("design:type",Object)],sM.prototype,"expander",void 0);_.A([_.O7("#quiz-votes"),_.p("design:type",Object)],sM.prototype,"quizVotes",void 0);
_.A([_.e0("explanation"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sM.prototype,"onExplanationChanged",null);_.A([_.e0("data","isChannelOwner"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sM.prototype,"dataChanged",null);_.A([_.fu("yt-comment-quiz-revert"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],sM.prototype,"onYtCommentPollRevert",null);
_.A([_.fu("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.z3]),_.p("design:returntype")],sM.prototype,"onYtServiceRequestSent",null);_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],sM.prototype,"onYtServiceRequestCompleted",null);_.A([_.q({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],sM);
_.m(sM,"ytd-backstage-quiz-renderer",function(){if(Om8!==void 0)return Om8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return Om8=R},{mode:1});var nt8;var zd=function(){return _.W.apply(this,arguments)||this};
_.O(zd,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],zd.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],zd.prototype,"data",void 0);_.A([_.q({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],zd);
_.m(zd,"ytd-post-uploaded-video-renderer",function(){if(nt8!==void 0)return nt8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return nt8=R},{mode:1});var GGT;var g0=function(){return _.W.apply(this,arguments)||this};
_.O(g0,_.W);g0.prototype.useFilledIcons=function(R){return R==="SPONSORSHIP_STAR"};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],g0.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],g0.prototype,"data",void 0);_.A([_.q({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],g0);
var rgg=_.Nk()(g0,"ytd-sponsors-only-badge-renderer",function(){if(GGT===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);GGT=R}R=GGT;return R},{allowedProps:["data"],
mode:1});var PK8;var C_=function(){return _.W.apply(this,arguments)||this};
_.O(C_,_.W);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],C_.prototype,"componentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],C_.prototype,"data",void 0);_.A([_.q({is:"ytd-child-video-renderer",disableElementRegistration:!0})],C_);
_.m(C_,"ytd-child-video-renderer",function(){if(PK8!==void 0)return PK8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return PK8=R},{mode:1});var WUK;var dlK;var Rs=function(){var R=_.W.apply(this,arguments)||this;R.size=0;R.enableWebModernCollectionsV2=_.f("web_modern_collections_v2");R.fallbackImageSize={height:void 0,width:9999};R.webModernCollections=!1;return R};
_.O(Rs,_.W);_.J=Rs.prototype;_.J.computeBlurredImageSize=function(R){return R?{height:R*2,width:R*2}:this.fallbackImageSize};
_.J.computeImageSize=function(R){return R?{height:R,width:R}:this.fallbackImageSize};
_.J.computeObjectFit=function(R){return R?"FILL":"CONTAIN"};
_.J.computePreserve=function(R){return R?!0:!1};
_.J.setBackground=function(){var R,y;_.f("web_modern_collections_v2")&&((R=this.data)==null?0:(y=R.thumbnail)==null?0:y.sampledThumbnailColor)&&(R=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+R.red+","+R.green+","+R.blue+",1)")};
Rs.prototype.setBackground=Rs.prototype.setBackground;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Rs.prototype,"ytRendererBehavior",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Rs.prototype,"watchFeedThumbnail",void 0);_.A([_.r(),_.p("design:type",Object)],Rs.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],Rs.prototype,"size",void 0);
_.A([_.r({computed:"computeBlurredImageSize(size)"}),_.p("design:type",Object)],Rs.prototype,"blurredImageSize",void 0);_.A([_.r({computed:"computeImageSize(size)"}),_.p("design:type",Object)],Rs.prototype,"imageSize",void 0);_.A([_.r({computed:"computePreserve(size)"}),_.p("design:type",String)],Rs.prototype,"preserve",void 0);_.A([_.r({computed:"computeObjectFit(size)"}),_.p("design:type",String)],Rs.prototype,"objectFit",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Rs.prototype,"enableWebModernCollectionsV2",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Rs.prototype,"webModernCollections",void 0);_.A([_.e0("data.thumbnail.sampledThumbnailColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Rs.prototype,"setBackground",null);_.A([_.q({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],Rs);
_.m(Rs,"ytd-playlist-custom-thumbnail-renderer",function(){if(dlK!==void 0)return dlK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return dlK=R},{mode:1});var Ulb;var yQ=function(){return _.W.apply(this,arguments)||this};
_.O(yQ,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],yQ.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],yQ.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Number)],yQ.prototype,"width",void 0);_.A([_.q({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],yQ);
_.m(yQ,"ytd-playlist-video-thumbnail-renderer",function(){if(Ulb!==void 0)return Ulb;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Ulb=R},{mode:1});var kG5;var uH=function(){return _.W.apply(this,arguments)||this};
_.O(uH,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],uH.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],uH.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Number)],uH.prototype,"width",void 0);_.A([_.q({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],uH);
_.m(uH,"ytd-show-custom-thumbnail-renderer",function(){if(kG5!==void 0)return kG5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return kG5=R},{mode:1});var Etc;var vE=function(){return _.W.apply(this,arguments)||this};
_.O(vE,_.W);vE.prototype.useFilledIcons=function(R){return R==="MUSIC"||R==="COURSE"};
vE.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=Yv(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)"}};
_.RR.Object.defineProperties(vE.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)}}});
vE.prototype.overlayColorChanged=vE.prototype.overlayColorChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],vE.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],vE.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],vE.prototype,"overlayColor",void 0);_.A([_.r({reflectToAttribute:!0}),_.G("data.icon","data.text"),_.p("design:type",Object),_.p("design:paramtypes",[])],vE.prototype,"overlayStyle",null);
_.A([_.r({reflectToAttribute:!0}),_.G("data.icon","data.text"),_.p("design:type",Object),_.p("design:paramtypes",[])],vE.prototype,"overlayTextStyle",null);_.A([_.e0("overlayColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vE.prototype,"overlayColorChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],vE);
_.m(vE,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(Etc!==void 0)return Etc;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return Etc=R},{mode:1});var $lc;var QQ=function(){var R=_.W.apply(this,arguments)||this;R.active=!1;return R};
_.O(QQ,_.W);QQ.prototype.computeIsSpinnerHidden=function(R){return(R==null?void 0:R.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
QQ.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],QQ.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],QQ.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],QQ.prototype,"active",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],QQ);
_.m(QQ,"ytd-thumbnail-overlay-downloading-renderer",function(){if($lc!==void 0)return $lc;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return $lc=R},{mode:1});var qET;var j1=function(){return _.W.apply(this,arguments)||this};
_.O(j1,_.W);_.RR.Object.defineProperties(j1.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],j1.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],j1.prototype,"data",void 0);_.A([_.G("data.text"),_.p("design:type",Object),_.p("design:paramtypes",[])],j1.prototype,"text",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],j1);
_.m(j1,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(qET!==void 0)return qET;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return qET=R},{mode:1});var Xz5,mlG=function(){if(Xz5!==void 0)return Xz5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return Xz5=R};var MH=function(){return _.W.apply(this,arguments)||this};
_.O(MH,_.W);_.RR.Object.defineProperties(MH,{template:{configurable:!0,enumerable:!0,get:function(){return mlG()}}});
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],MH.prototype,"animateEqualizer",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],MH);_.Nk()(MH,"ytd-thumbnail-overlay-equalizer",function(){return mlG()},{allowedProps:["animateEqualizer"],
mode:1});var Agb;var Jp=function(){var R=_.W.apply(this,arguments)||this;R.nowPlayingBadge=_.f("web_now_playing_badge");R.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return R};
_.O(Jp,_.W);Jp.prototype.activeChanged=function(){var R=this;_.f("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.gn(this,function(){_.Ko(R.hostElement,"yt-playlist-lockup-now-playing-active",R)})};
Jp.prototype.onMiniplayerPlayStateChanged=function(R){var y,u=(y=_.e(_.Hr().currentEndpoint,_.zM))==null?void 0:y.videoId;this.isVideoPlaying=R&&(_.f("web_limit_now_playing_animation_killswitch")||this.videoId===u)};
Jp.prototype.activeChanged=Jp.prototype.activeChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Jp.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Jp.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Jp.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Boolean)],Jp.prototype,"isVideoPlaying",void 0);_.A([_.r(),_.p("design:type",String)],Jp.prototype,"videoId",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Jp.prototype,"equalizerOnly",void 0);_.A([_.r(),_.p("design:type",Boolean)],Jp.prototype,"isActive",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Jp.prototype,"nowPlayingBadge",void 0);_.A([_.e0("isActive"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jp.prototype,"activeChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],Jp);
_.m(Jp,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(Agb!==void 0)return Agb;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return Agb=R},{mode:1});var Dlg;var VQ=function(){return _.W.apply(this,arguments)||this};
_.O(VQ,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],VQ.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],VQ.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],VQ);
_.m(VQ,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(Dlg!==void 0)return Dlg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Dlg=R},{mode:_.TN("kevlar_poly_si_batch_j025")?1:2});var pz5;var iH=function(){return _.W.apply(this,arguments)||this};
_.O(iH,_.W);iH.prototype.onDurationChanged=function(){var R,y;_.hw(this.hostElement).querySelector("#progress").style.width=((y=(R=this.data)==null?void 0:R.percentDurationWatched)!=null?y:0)+"%"};
iH.prototype.onDurationChanged=iH.prototype.onDurationChanged;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],iH.prototype,"componentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],iH.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],iH.prototype,"isLive",void 0);_.A([_.e0("data.percentDurationWatched"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],iH.prototype,"onDurationChanged",null);
_.A([_.q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],iH);
_.m(iH,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(pz5!==void 0)return pz5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return pz5=R},{mode:1});var tIY;var KW=function(){var R=_.W.apply(this,arguments)||this;R.bottomPanel=!1;R.richGridOverlay=!1;R.watchFeedOverlay=!1;R.isCompact=!1;return R};
_.O(KW,_.W);KW.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.RR.Object.defineProperties(KW.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var R,y;return((R=this.data)==null?void 0:(y=R.icon)==null?void 0:y.iconType)==="PLAY_ALL"&&_.f("kevlar_system_icons")}}});
KW.prototype.widthChanged=KW.prototype.widthChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],KW.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],KW.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Number)],KW.prototype,"width",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],KW.prototype,"bottomPanel",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],KW.prototype,"richGridOverlay",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],KW.prototype,"watchFeedOverlay",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],KW.prototype,"isCompact",void 0);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],KW.prototype,"isIconFilled",null);_.A([_.e0("width","watchFeedOverlay"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],KW.prototype,"widthChanged",null);
_.A([_.q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],KW);
_.m(KW,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(tIY!==void 0)return tIY;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return tIY=R},{mode:1});var cg5;var afY=["CLIP","SHORTS"],Is=function(){var R=_.W.apply(this,arguments)||this;R.animated=_.f("animated_live_badge_icon");R.hasIcon=!1;R.updateTimerIntervalId=0;R.timeSinceLive=0;return R};
_.O(Is,_.W);_.J=Is.prototype;_.J.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.J.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.J.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.J.hasIconOrText=function(){var R,y;return!!(((R=this.data)==null?0:R.icon)||((y=this.data)==null?0:y.text))};
_.J.initializeLiveBadgeTimer=function(){var R=this,y,u=(y=this.liveBadgeData)==null?void 0:y.startTimestampSec;if(u&&this.canShowLiveBadgeTimer()){var v;y=Number((v=this.liveBadgeData)==null?void 0:v.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(u);this.updateTimerIntervalId=_.hT(function(){R.canShowLiveBadgeTimer()?R.timeSinceLive++:(R.timeSinceLive=0,window.clearInterval(R.updateTimerIntervalId))},y)}else this.timeSinceLive=0};
_.J.canShowLiveBadgeTimer=function(){var R=Date.now(),y,u;return R<(Number((y=this.liveBadgeData)==null?void 0:y.endTimestampSec)-1)*1E3&&R>Number((u=this.liveBadgeData)==null?void 0:u.startTimestampSec)*1E3};
_.RR.Object.defineProperties(Is.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var R=this.data;var y=this.timeSinceLive;var u,v,Q,M;a:{var K=R.style;if(K===void 0)K=17;else switch(K){case "LIVE":K=18;break a;default:K=17}}y={type:K,text:y?M5U({seconds:y}):_.u7(R.text),accessibilityText:(u=R.text)==null?void 0:(v=u.accessibility)==null?void 0:(Q=v.accessibilityData)==null?void 0:Q.label,icon:(M=R.icon)==null?void 0:M.iconType}}else y={};return y}},
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 afY.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
Is.prototype.initializeLiveBadgeTimer=Is.prototype.initializeLiveBadgeTimer;Is.prototype.dataChanged=Is.prototype.dataChanged;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Is.prototype,"componentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Is.prototype,"data",void 0);_.A([_.r({computed:"computeIcon_(data.icon)"}),_.p("design:type",String)],Is.prototype,"icon",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Is.prototype,"animated",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.p("design:type",Boolean)],Is.prototype,"hideTimeStatus",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Is.prototype,"hasIcon",void 0);_.A([_.r(),_.p("design:type",Object)],Is.prototype,"timeSinceLive",void 0);_.A([_.G("data","timeSinceLive"),_.p("design:type",Object),_.p("design:paramtypes",[])],Is.prototype,"badgeShapeData",null);
_.A([_.G("data","overlayType"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Is.prototype,"hideBadgeShape",null);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Is.prototype,"dataChanged",null);_.A([_.r({reflectToAttribute:!0}),_.G("data.style"),_.p("design:type",Object),_.p("design:paramtypes",[])],Is.prototype,"overlayStyle",null);
_.A([_.G("data.liveBadgeData"),_.p("design:type",Object),_.p("design:paramtypes",[])],Is.prototype,"liveBadgeData",null);_.A([_.r({reflectToAttribute:!0}),_.G("data.type"),_.p("design:type",Object),_.p("design:paramtypes",[])],Is.prototype,"overlayType",null);_.A([_.G("overlayType","overlayStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Is.prototype,"useFilledIcon",null);
_.A([_.GJ("liveBadgeData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Is.prototype,"initializeLiveBadgeTimer",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],Is);
_.m(Is,"ytd-thumbnail-overlay-time-status-renderer",function(){if(cg5!==void 0)return cg5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return cg5=R},{mode:_.TN("kevlar_poly_si_batch_j035")?1:2});var SEi;var hp=function(){return _.W.apply(this,arguments)||this};
_.O(hp,_.W);hp.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"}}}}};
hp.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(R){if(this.hasPlaybackProgressBar)return{percentDurationWatched:R.percentDurationWatched}};
hp.prototype.computeHasPlaybackProgressBar=function(R){return!!R.percentDurationWatched&&R.percentDurationWatched>0};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],hp.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],hp.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],hp.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.p("design:type",Boolean)],hp.prototype,"hasPlaybackProgressBar",void 0);
_.A([_.q({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],hp);
_.m(hp,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(SEi!==void 0)return SEi;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return SEi=R},{mode:1});var YEc;var LUg=_.Jd(function(R){var y=R.data;var u=R.children;var v=function(){return!!y().doubleStack},Q=function(){return!!y().includeStackHeight};
return _.F("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!y().experimentEnabled}},_.F(_.w,{cond:y,
then:function(){var M={};return _.F(_.vu,null,_.F(_.w,{cond:Q,then:function(){var K={};return _.F("div",{class:_.Oy("collections-stack-wiz__spacer",(K["collections-stack-wiz__spacer--double-stack"]=v,K))})}}),_.F("div",{class:_.Oy((M["collections-stack-wiz__relative-stack"]=Q,M))},_.F(_.w,{cond:v,
then:function(){var K={};return _.F("div",{class:_.Oy("collections-stack-wiz__collection-stack2",function(){return y().customClassName2ndStack},(K["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return y().enableResponsiveMode},K)),
style:_.P_({"background-color":function(){return kGU(y())}})})}}),_.F("div",{class:_.Oy("collections-stack-wiz__collection-stack1",function(){return y().customClassName1stStack},function(){return UlL(y().thumbnailSize?y().thumbnailSize:"medium")}),
style:_.P_({"background-color":function(){return kGU(y())}})}),u))}}))},"T");_.h6(LUg,"yt-collections-stack",{props:{data:_.vR}});var bH=function(){var R=_.W.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=_.f("web_modern_collections_v2");return R};
_.O(bH,_.W);_.J=bH.prototype;
_.J.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]]"}}}}}};
_.J.getThumbnailDetails=function(R){if(R!=null&&R.thumbnailRenderer){var y=R.thumbnailRenderer,u;if((u=y.playlistVideoThumbnailRenderer)==null?0:u.thumbnail)return y.playlistVideoThumbnailRenderer.thumbnail;var v;if((v=y.playlistCustomThumbnailRenderer)==null?0:v.thumbnail)return y.playlistCustomThumbnailRenderer.thumbnail;R=R.thumbnailRenderer;var Q;if((Q=R.showCustomThumbnailRenderer)==null?0:Q.thumbnail)return R.showCustomThumbnailRenderer.thumbnail}};
_.J.computeOverlayColor=function(R){var y,u;if((y=this.getThumbnailDetails(R))==null?0:(u=y.darkColorPalette)==null?0:u.section2Color)return this.getThumbnailDetails(R).darkColorPalette.section2Color;var v;return(v=this.getThumbnailDetails(R))==null?void 0:v.sampledThumbnailColor};
_.J.computeWebModernCollections=function(R){if(R==null||!R.thumbnailOverlays)return!1;R=_.V(R.thumbnailOverlays);for(var y=R.next();!y.done;y=R.next()){var u=void 0;if((u=y.value)==null?0:u.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.J.computeNavigationEndpoint=function(R){return mvG(R==null?void 0:R.navigationEndpoint)};
_.RR.Object.defineProperties(bH.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([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],bH.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],bH.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(jvc),_.p("design:type",Object)],bH.prototype,"ytdThumbnailBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],bH.prototype,"componentBehavior",void 0);
_.A([_.r({value:!1}),_.p("design:type",Boolean)],bH.prototype,"watchFeedThumbnail",void 0);_.A([_.r(),_.p("design:type",Number)],bH.prototype,"customThumbnailSize",void 0);_.A([_.r({value:!0}),_.p("design:type",Boolean)],bH.prototype,"hideAria",void 0);_.A([_.r(),_.p("design:type",Object)],bH.prototype,"data",void 0);_.A([_.r({computed:"computeOverlayColor(data)"}),_.p("design:type",Object)],bH.prototype,"overlayColor",void 0);
_.A([_.r({computed:"computeWebModernCollections(data)"}),_.p("design:type",Object)],bH.prototype,"webModernCollections",void 0);_.A([_.r({computed:"computeNavigationEndpoint(data)"}),_.p("design:type",Object)],bH.prototype,"computedNavigationEndpoint",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bH.prototype,"isSearch",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bH.prototype,"isDoubleStack",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],bH.prototype,"thumbnailSize",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],bH.prototype,"enableWebModernCollectionsV2",void 0);_.A([_.G("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.p("design:type",Object),_.p("design:paramtypes",[])],bH.prototype,"collectionStack",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],bH);
_.m(bH,"ytd-playlist-thumbnail",function(){if(YEc!==void 0)return YEc;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return YEc=R},{mode:_.TN("kevlar_poly_si_batch_j025")?1:2});var sFc;var FS=function(){var R=_.W.apply(this,arguments)||this;R.noEndpoints=!1;R.amsterdamPostMvp=_.f("web_amsterdam_post_mvp_playlists");R.badges=[];R.transferState="TRANSFER_STATE_UNKNOWN";return R};
_.O(FS,_.W);_.J=FS.prototype;_.J.getMetadata=function(R){if(!R)return[];var y=[],u=R.shortViewCountText||R.viewCountText;u&&y.push(_.u7(u));R.publishedTimeText&&y.push(_.u7(R.publishedTimeText));R.upcomingEventData&&R.upcomingEventData.upcomingEventText&&y.push(_.DO(_.u7(R.upcomingEventData.upcomingEventText),Number(R.upcomingEventData.startTime)));return y};
_.J.observeDataForBylineSeparator=function(){this.data&&_.FN(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.J.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.aH(this.metadataColor)};
_.J.getSimpleString=function(R){return _.u7(R)};
_.J.isBylineHidden=function(R){return this.noByline||!((R==null?0:R.longBylineText)||(R==null?0:R.shortBylineText))};
_.J.isMetadataHidden=function(R){var y;return((y=this.getMetadata(R))==null?void 0:y.length)===0};
_.J.isBylineMetadataSeparatorHidden=function(R){return this.isMetadataHidden(R)||!this.shouldShowVideoInfo};
_.J.isLongByline=function(R,y){return y&&!(R==null||!R.longBylineText)};
_.RR.Object.defineProperties(FS.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 _.f("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
FS.prototype.metadataColorChanged=FS.prototype.metadataColorChanged;FS.prototype.observeDataForBylineSeparator=FS.prototype.observeDataForBylineSeparator;_.A([_.n(_.p6),_.p("design:type",Object)],FS.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],FS.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],FS.prototype,"noEndpoints",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],FS.prototype,"isSlimShort",void 0);
_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],FS.prototype,"radioMeta",void 0);_.A([_.r({selector:_.aC}),_.p("design:type",Object)],FS.prototype,"isGridViewEnabled",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],FS.prototype,"richMeta",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],FS.prototype,"amsterdamPostMvp",void 0);_.A([_.r(),_.p("design:type",Boolean)],FS.prototype,"noByline",void 0);
_.A([_.r({computed:"isLongByline(data, radioMeta)"}),_.p("design:type",Boolean)],FS.prototype,"longByline",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],FS.prototype,"truncateMetadataLine",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],FS.prototype,"miniMode",void 0);_.A([_.r(),_.p("design:type",Number)],FS.prototype,"metadataColor",void 0);_.A([_.r(),_.p("design:type",Array)],FS.prototype,"badges",void 0);
_.A([_.r({selector:_.pz,selectorArgs:["data.videoId"]}),_.p("design:type",String)],FS.prototype,"transferState",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],FS.prototype,"isDownloading",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],FS.prototype,"typographyBump",void 0);_.A([_.O7("#metadata-line"),_.p("design:type",HTMLElement)],FS.prototype,"metadataLine",void 0);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FS.prototype,"observeDataForBylineSeparator",null);_.A([_.e0("metadataColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FS.prototype,"metadataColorChanged",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],FS.prototype,"shouldShowVideoInfo",null);
_.A([_.G("badges"),_.p("design:type",String),_.p("design:paramtypes",[])],FS.prototype,"inlineBadgeClass",null);_.A([_.G("longByline"),_.p("design:type",String),_.p("design:paramtypes",[])],FS.prototype,"longBylineClass",null);_.A([_.G("data","longByline"),_.p("design:type",Object),_.p("design:paramtypes",[])],FS.prototype,"bylineText",null);_.A([_.G("isGridViewEnabled","data"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],FS.prototype,"watchFeedBigThumbs",null);
_.A([_.q({is:"ytd-video-meta-block",disableElementRegistration:!0})],FS);
_.m(FS,"ytd-video-meta-block",function(){if(sFc!==void 0)return sFc;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return sFc=R},{mode:_.TN("kevlar_poly_si_batch_j080")?1:2});_.Dl("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var wo=function(){var R=_.W.apply(this,arguments)||this;R.displayItemCount=2;R.isBackstagePlaylist=!1;R.isPostCompactPlaylist=!1;R.shouldShowChannelThumbnail=!1;R.useModernCollectionsV2=_.f("web_modern_collections_v2");return R};
_.O(wo,_.W);_.J=wo.prototype;_.J.computeFirstVideos=function(R,y){return R===void 0||y===void 0?[]:R.slice(0,y)};
_.J.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)}};
_.J.computeThumbnailHeight=function(R,y,u,v,Q){return v?Q==="BIG"?280:Q==="MASSIVE"?337:234:u?240:y?72:R?118:138};
_.J.computeThumbnailWidth=function(R,y,u,v,Q){return v?Q==="MEDIUM"?450:Q==="BIG"?500:Q==="MASSIVE"?600:420:u?360:y?128:R?210:246};
_.J.computeUseBiggerThumbs=function(R){return R&&_.f("enable_desktop_search_bigger_thumbs")};
_.J.computeShouldShowChannelThumbnail=function(R,y){return R&&!(y==null||!y.channelThumbnail)};
_.RR.Object.defineProperties(wo.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
wo.prototype.dataChanged=wo.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],wo.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.gT),_.p("design:type",Object)],wo.prototype,"ytdLockupBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],wo.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],wo.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],wo.prototype,"displayItemCount",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],wo.prototype,"isBackstagePlaylist",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],wo.prototype,"isPostCompactPlaylist",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],wo.prototype,"isSearch",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.p("design:type",Boolean)],wo.prototype,"useBiggerThumbs",void 0);_.A([_.r({reflectToAttribute:!0,value:function(){return _.VN("desktop_search_bigger_thumbs_style")}}),
_.p("design:type",String)],wo.prototype,"biggerThumbsStyle",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],wo.prototype,"isDownloads",void 0);_.A([_.r({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.p("design:type",Object)],wo.prototype,"shouldShowChannelThumbnail",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],wo.prototype,"useModernCollectionsV2",void 0);
_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wo.prototype,"dataChanged",null);_.A([_.G("isSearch"),_.p("design:type",String),_.p("design:paramtypes",[])],wo.prototype,"stackThumbnailSize",null);_.A([_.q({is:"ytd-playlist-renderer",disableElementRegistration:!0})],wo);
_.m(wo,"ytd-playlist-renderer",function(){if(WUK===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);WUK=R}R=WUK;return R},{mode:1});var zjw;var gtc;var NH=function(){var R=_.W.apply(this,arguments)||this;R.collections=!!_.f("web_modern_collections_v2");R.startX=0;return R};
_.O(NH,_.W);NH.prototype.onEndpointMouseDown=function(R){this.startX=R.clientX};
NH.prototype.onEndpointClick=function(R){this.startX!==R.clientX&&(R.preventDefault(),R.stopPropagation())};
NH.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"};
NH.prototype.computeCardStyle=function(R){return R?R.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.RR.Object.defineProperties(NH.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var R,y;return this.collections&&((R=this.data)==null?void 0:(y=R.searchRefinementCardRendererStyle)==null?void 0:y.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],NH.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],NH.prototype,"data",void 0);_.A([_.r({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.p("design:type",Number)],NH.prototype,"objectFit",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.p("design:type",String)],NH.prototype,"cardStyle",void 0);
_.A([_.r({reflectToAttribute:!0,value:!0}),_.p("design:type",Boolean)],NH.prototype,"roundContainer",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],NH.prototype,"collections",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],NH.prototype,"isAlbumCard",null);_.A([_.G("data","collections","isAlbumCard"),_.p("design:type",Object),_.p("design:paramtypes",[])],NH.prototype,"collectionStack",null);
_.A([_.q({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],NH);
_.m(NH,"ytd-search-refinement-card-renderer",function(){if(gtc!==void 0)return gtc;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return gtc=R},{mode:1});var CKg;var TZ=function(){var R=_.W.apply(this,arguments)||this;R.isRichGrid=!1;return R};
_.O(TZ,_.W);_.A([_.r(),_.p("design:type",Object)],TZ.prototype,"data",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],TZ.prototype,"componentBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],TZ.prototype,"ytdReduxBehavior",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],TZ.prototype,"isRichGrid",void 0);_.A([_.r({reflectToAttribute:!0,selector:_.$s}),_.p("design:type",Boolean)],TZ.prototype,"miniMode",void 0);
_.A([_.q({is:"ytd-game-details-renderer",disableElementRegistration:!0})],TZ);
_.m(TZ,"ytd-game-details-renderer",function(){if(CKg!==void 0)return CKg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return CKg=R},{mode:1});var RVV;var yYw;var xO=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return R};
_.O(xO,_.W);_.J=xO.prototype;_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.J.currentStateData=function(R){var y=R||this.data;return y&&y.states&&y.currentStateId!=null?y.states.find(function(u){return u.stateId===y.currentStateId})||null:null};
_.J.currentStateRendererData=function(R){return(R=this.currentStateData(R))&&R.state&&R.state.buttonRenderer?R.state.buttonRenderer:null};
_.J.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())};
_.J.computeButtonIcon=function(R){R=this.currentStateRendererData(R);var y;return(R==null?0:(y=R.icon)==null?0:y.iconType)?R.icon.iconType.toLowerCase():null};
_.J.computeAccessibility=function(R){return(R=this.currentStateRendererData(R))&&R.accessibilityData?R.accessibilityData.accessibilityData||null:null};
_.J.computeButtonClass=function(R){var y=this.currentStateRendererData(R);if(!y)return"";R="";var u=y.style;u&&(R+=u.toLowerCase().replace(/_/g,"-")+" ");(y=y.size)&&(R+=y.toLowerCase().replace(/_/g,"-")+" ");return R.trim()};
_.J.computeServiceEndpoint=function(R){if(!R)return null;var y=R&&R.serviceEndpoint,u=this.get("command.commandMetadata.webCommandMetadata.sendPost",R);return y?y:u&&R.command?R.command:null};
_.J.computeBellMenuItemParams=function(R){var y;R=(y=_.e(R==null?void 0:R.command,_.TP))==null?void 0:y.commands;if(!R||R.length===0)return null;y=_.e(R[0],_.kW);var u,v;return(y==null?0:(u=y.popup)==null?0:(v=u.menuPopupRenderer)==null?0:v.items)?y.popup.menuPopupRenderer.items.map(function(Q){return Q.menuServiceItemRenderer.trackingParams}):null};
_.J.handleBellMenuOpenSelectedAction=function(R){var y=R.trackingParams,u=this.computeBellMenuItemParams(this.data);this.data&&y&&u&&u.includes(y)&&this.ytRenderButtonBehavior._setButtonIcon(R.icon.iconType.toLowerCase())};
_.J.onYtServiceRequestCompleted=function(R,y){(R=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",y))&&this.set("data",R)};
_.J.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.J.resetState=function(){this.set("data.currentStateId",3)};
_.J.onYtButtonTapHandler=function(){if(this.data){var R=this.currentStateRendererData(this.data);R&&this.ytRendererBehavior.logExplicitClick(R)}};
xO.prototype.onYtServiceRequestError=xO.prototype.onYtServiceRequestError;xO.prototype.onYtServiceRequestCompleted=xO.prototype.onYtServiceRequestCompleted;xO.prototype.stateChanged=xO.prototype.stateChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],xO.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],xO.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.n(rj.YtRenderButtonBehavior),_.p("design:type",Object)],xO.prototype,"ytRenderButtonBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],xO.prototype,"data",void 0);_.A([_.GJ("data","data.currentStateId"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xO.prototype,"stateChanged",null);
_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Mp]),_.p("design:returntype")],xO.prototype,"onYtServiceRequestCompleted",null);_.A([_.fu("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],xO.prototype,"onYtServiceRequestError",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],xO);
_.m(xO,"ytd-subscription-notification-toggle-button-renderer",function(){if(yYw!==void 0)return yYw;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return yYw=R},{mode:1});var uZ5;var BE=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};R.tapHandler=function(){if(R.data){var y=R.currentStateRendererData();y&&R.ytRendererBehavior.logExplicitClick(y)}};
return R};
_.O(BE,_.W);_.J=BE.prototype;_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.J.currentStateData=function(){var R=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(y){return y.stateId===R.data.currentStateId})||null:null};
_.J.currentStateRendererData=function(){var R=this.currentStateData();return R&&R.state&&R.state.buttonRenderer?R.state.buttonRenderer:null};
_.J.computeAccessibilityLabel=function(){var R,y,u;return(R=this.currentStateRendererData())==null?void 0:(y=R.accessibilityData)==null?void 0:(u=y.accessibilityData)==null?void 0:u.label};
_.J.computeBellMenuItemParams=function(){var R,y,u=(y=_.e((R=this.data)==null?void 0:R.command,_.TP))==null?void 0:y.commands;if(!u||u.length===0)return null;R=_.e(u[0],_.kW);var v,Q;return(R==null?0:(v=R.popup)==null?0:(Q=v.menuPopupRenderer)==null?0:Q.items)?R.popup.menuPopupRenderer.items.map(function(M){return M.menuServiceItemRenderer.trackingParams}):null};
_.J.handleBellMenuOpenSelectedAction=function(R){var y=R.trackingParams,u=this.computeBellMenuItemParams();if(this.data&&y&&u&&u.includes(y)&&(R==null||!R.isDisabled)){var v;((v=_.e(R.serviceEndpoint,_.xF))==null?void 0:v.signal)!=="CLIENT_SIGNAL"&&(this.icon=R.icon.iconType)}};
_.J.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.J.onYtServiceRequestCompleted=function(R,y){if(R=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",y))this.icon=void 0,this.set("data",R)};
_.J.onYtServiceRequestError=function(){this.icon=void 0};
_.RR.Object.defineProperties(BE.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var R=this.data,y=this.textLabel,u=this.hostElement,v=this.computeAccessibilityLabel(),Q=this.tapHandler,M=this.isOverlay?"overlay":"mono",K=(R==null?0:R.disableButton)?"disabled":"active";y=y?_.pk(y):void 0;return{style:M,type:"tonal",state:K,size:"M",focused:!1,formattedButtonText:y,iconPosition:"leading-trailing",onTap:$lG(R,Q,u),accessibilityLabel:v}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var R=this.currentStateRendererData(),y,u,v=(u=this.icon)!=null?u:R==null?void 0:(y=R.icon)==null?void 0:y.iconType;if(v)return _.fk(v)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var R,y,u=(R=this.data)==null?void 0:(y=R.secondaryIcon)==null?void 0:y.iconType;if(u)return _.fk(u)}}});
BE.prototype.onYtServiceRequestError=BE.prototype.onYtServiceRequestError;BE.prototype.onYtServiceRequestCompleted=BE.prototype.onYtServiceRequestCompleted;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],BE.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],BE.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],BE.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],BE.prototype,"textLabel",void 0);
_.A([_.r(),_.p("design:type",String)],BE.prototype,"icon",void 0);_.A([_.r(),_.p("design:type",Boolean)],BE.prototype,"isOverlay",void 0);_.A([_.G("data.*","textLabel"),_.p("design:type",Object),_.p("design:paramtypes",[])],BE.prototype,"computedButtonShape",null);_.A([_.G("data.*","icon"),_.p("design:type",Object),_.p("design:paramtypes",[])],BE.prototype,"computedIcon",null);_.A([_.G("data.*"),_.p("design:type",Object),_.p("design:paramtypes",[])],BE.prototype,"computedSecondaryIcon",null);
_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Mp]),_.p("design:returntype")],BE.prototype,"onYtServiceRequestCompleted",null);_.A([_.fu("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],BE.prototype,"onYtServiceRequestError",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],BE);
_.m(BE,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(uZ5!==void 0)return uZ5;var R=document.createElement("template");_.H(R,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return uZ5=R},{mode:_.TN("kevlar_poly_si_batch_j081")?1:2});var v3L;_.h6(uAY,"yt-animated-action",{props:{backgroundLottieRef:_.vR,foregroundLottieRef:_.vR,wrapperClass:_.vR,disableAnimation:_.vR},unsafeExternallySettableAttributes:new Set(["key"])});var fW=function(){var R=_.W.apply(this,arguments)||this;R.animatedActionEnabled=_.f("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};
_.O(fW,_.W);_.J=fW.prototype;_.J.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.J.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]]"}}}}}};
_.J.attached=function(){this.keyboardFocused=!1};
_.J.onYtServiceRequestSent=function(R,y){(this.get("endpoint.subscribeEndpoint",y)||this.get("endpoint.unsubscribeEndpoint",y))&&this.updateSubscriptionState(!this.subscribed)};
_.J.onYtServiceRequestCompleted=function(R,y){(R=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",y.data))&&this.bellButton&&(this.bellButton.data=R)};
_.J.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.oX(this.hostElement)};
_.J.onPlayerSubscribe=function(R){this.isCompactRed()||R!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.J.onPlayerUnsubscribe=function(R){this.isCompactRed()||R!==this.data.channelId||this.updateSubscriptionState(!1)};
_.J.handleUpdateSubscribeButtonAction=function(R){R=_.e(R,oD5);var y;R&&R.channelId===((y=this.data)==null?void 0:y.channelId)&&this.updateSubscriptionState(!!R.subscribed)};
_.J.computeButtonStyle=function(R){return this.get("style.styleType",R)||null};
_.J.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.J.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.J.updateSubscriptionState=function(R){if(R!==this.subscribed){this.set("data.subscribed",R);var y,u=(y=this.data)==null?void 0:y.subscribedEntityKey;u&&this.ytdReduxBehavior.dispatch(_.Gw("subscriptionStateEntity",u,{key:u,subscribed:R}));this.isCompactRed()||_.Ko(this.hostElement,"yt-subscription-changed",R);R||(_.Ik(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!R),R&&this.hasBellButton&&this.startAnimation())}};
_.J.startAnimation=function(){var R=this;if(!this.isAnimating){var y=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var u;(u=this.backgroundLottieRef.lottieEl)==null||u.goToAndPlay(0);var v;(v=this.foregroundLottieRef.lottieEl)==null||v.goToAndPlay(0);_.WG.addJob(function(){R.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.WG.addJob(function(){R.updateContainerToFitContent(!!R.subscribed,!0)},2,1500);
_.WG.addJob(function(){R.isAnimating=!1},2,y)}};
_.J.maybeAnimateBellIcon=function(){var R=_.b8(this.hostElement).querySelector("yt-animated-icon");if(R){var y;(y=R.animationRef.lottieEl)==null||y.goToAndPlay(0)}};
_.J.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.J.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.J.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var R;this.unsubscribedWidth=(R=this.subscribeButtonShape)==null?void 0:R.getBoundingClientRect().width}var y;this.subscribedWidth=(y=this.bellButton)==null?void 0:y.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.J.updateContainerToFitContent=function(R,y){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(R?(R=this.subscribedWidth,y=this.isAnimating&&!y,this.subscribedIconOnlyWidth===void 0||y||(R=this.subscribedIconOnlyWidth),this.hostElement.style.width=R+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.J.clearContainerSize=function(){this.hostElement.style.width=""};
_.J.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.J.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 y;R.subscribedIconOnlyWidth=(y=R.bellButton)==null?void 0:y.getBoundingClientRect().width;requestAnimationFrame(function(){if(R.bellButton){var u;R.bellButton.textLabel=
(u=R.data)==null?void 0:u.subscribedButtonText}})})))};
_.RR.Object.defineProperties(fW.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 y;return this.forceIconOnly?void 0:(y=this.data)==null?void 0:y.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var R,y,u=((R=this.data)==null?void 0:(y=R.timedAnimationData)==null?void 0:y.animationTiming)||[];return{uniqueId:"subscribe",timings:u,enabled:u.length>0&&!this.subscribed,experimentEnabled:u.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 y=R.renderer;var u=R.element;var v=R.subscribed;var Q=R.commandController;var M=R.isOverlay;R=R.stopPropagation;var K=AgL(y,v);M&&(K.style="overlay");M=Object;var h=M.assign,b;a:switch((b=y.style)==null?void 0:b.styleType){case "COMPACT_GRAY":case "COMPACT_RED":b={size:"S"};break a;default:b={size:"M"}}var N=mlU(y,
v);var T=(T=v?y.subscribedButtonText:y.unsubscribedButtonText)?_.pk(T):void 0;return h.call(M,{},K,b,{focused:!1,toggled:v,accessibilityLabel:N,formattedButtonText:T,onTap:XzU(y,v,u,Q,R)})}}}});
fW.prototype.onMouseDown=fW.prototype.onMouseDown;fW.prototype.onDataChanged=fW.prototype.onDataChanged;fW.prototype.observedSubscribed=fW.prototype.observedSubscribed;fW.prototype.onYtServiceRequestCompleted=fW.prototype.onYtServiceRequestCompleted;fW.prototype.onYtServiceRequestSent=fW.prototype.onYtServiceRequestSent;fW.prototype.maybeUpdateBellButtonText=fW.prototype.maybeUpdateBellButtonText;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],fW.prototype,"ytComponentBehavior",void 0);
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],fW.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],fW.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],fW.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],fW.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],fW.prototype,"data",void 0);
_.A([_.r({selectorArgs:["data.subscribedEntityKey"],selector:EgT}),_.p("design:type",Object)],fW.prototype,"subscriptionStateEntity",void 0);_.A([_.r({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.p("design:type",Boolean)],fW.prototype,"subscribed",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],fW.prototype,"branded",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],fW.prototype,"animatedActionEnabled",void 0);
_.A([_.r(),_.p("design:type",Object)],fW.prototype,"foregroundLottieRef",void 0);_.A([_.r(),_.p("design:type",Object)],fW.prototype,"backgroundLottieRef",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],fW.prototype,"overlayButton",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.p("design:type",Object)],fW.prototype,"buttonStyle",void 0);_.A([_.r(),_.p("design:type",Object)],fW.prototype,"forceIconOnly",void 0);
_.A([_.r(),_.p("design:type",Object)],fW.prototype,"showTextWhileAnimating",void 0);_.A([_.r({value:function(){return!!_.ua().resolve(_.yN(_.Ti))&&_.f("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.p("design:type",Boolean)],fW.prototype,"useKeyboardFocused",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],fW.prototype,"keyboardFocused",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],fW.prototype,"isAnimating",void 0);_.A([_.G("data.notificationPreferenceButton.*"),_.p("design:type",Object),_.p("design:paramtypes",[])],fW.prototype,"hasBellButton",null);
_.A([_.e0("subscribedButtonText"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],fW.prototype,"maybeUpdateBellButtonText",null);_.A([_.G("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.p("design:type",Object),_.p("design:paramtypes",[])],fW.prototype,"subscribedButtonText",null);_.A([_.G("data.timedAnimationData.animationTiming","subscribed"),_.p("design:type",Object),_.p("design:paramtypes",[])],fW.prototype,"smartimationSettings",null);
_.A([_.r({reflectToAttribute:!0}),_.G("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.p("design:type",Object),_.p("design:paramtypes",[])],fW.prototype,"subscribeButtonHidden",null);_.A([_.r({reflectToAttribute:!0}),_.G("subscribed","hasBellButton"),_.p("design:type",Object),_.p("design:paramtypes",[])],fW.prototype,"subscribeButtonInvisible",null);
_.A([_.r({reflectToAttribute:!0}),_.G("subscribed"),_.p("design:type",Object),_.p("design:paramtypes",[])],fW.prototype,"unsubscribeButtonHidden",null);_.A([_.O7("ytd-subscription-notification-toggle-button-renderer-next"),_.p("design:type",Object)],fW.prototype,"bellButton",void 0);_.A([_.O7("#subscribe-button-shape"),_.p("design:type",HTMLElement)],fW.prototype,"subscribeButtonShape",void 0);
_.A([_.G("overlayButton","subscribed","data"),_.p("design:type",Object),_.p("design:paramtypes",[])],fW.prototype,"buttonShape",null);_.A([_.fu("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.z3]),_.p("design:returntype")],fW.prototype,"onYtServiceRequestSent",null);_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Mp]),_.p("design:returntype")],fW.prototype,"onYtServiceRequestCompleted",null);
_.A([_.e0("subscribed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],fW.prototype,"observedSubscribed",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],fW.prototype,"onDataChanged",null);_.A([_.fu("mousedown"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],fW.prototype,"onMouseDown",null);
_.A([_.q({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],fW);
_.m(fW,"ytd-subscribe-button-renderer",function(){if(v3L!==void 0)return v3L;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return v3L=R},{mode:1});var e1=function(){var R=_.W.apply(this,arguments)||this;R.isRichGrid=!1;return R};
_.O(e1,_.W);e1.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],e1.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],e1.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],e1.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],e1.prototype,"isRichGrid",void 0);_.A([_.q({is:"ytd-game-card-renderer",disableElementRegistration:!0})],e1);
_.m(e1,"ytd-game-card-renderer",function(){if(RVV!==void 0)return RVV;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return RVV=R},{mode:1});var lH={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.f("defer_menus")&&!m6i?0:void 0,waitForSignal:"eocs"};var Qt5;var jtG;var O$=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return R};
_.O(O$,_.W);_.J=O$.prototype;_.J.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.J.onSeriesReminderStateEntityChange=function(){var R,y,u;((R=this.eventReminderStateEntity)==null?0:R.key)&&((y=this.seriesReminderStateEntity)==null?void 0:y.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((u=this.eventReminderStateEntity)==null?void 0:u.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.Gw("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.J.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.J.onYtServiceRequestError=function(){var R;this.updateReminderStateEntitiesFromButtonState((R=this.data)==null?void 0:R.currentState)};
_.J.handleUpdateUpcomingEventReminderButtonStateCommand=function(R){if(R=_.e(R,X1G)){var y,u=(y=this.data)==null?void 0:y.targetId;u&&R.targetId===u&&_.s7(this.updateReminderStateEntitiesFromButtonState.bind(this,R.state))}};
_.J.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 y;if(((y=this.eventReminderStateEntity)==null?void 0:y.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var u,v;if(((u=this.seriesReminderStateEntity)==null?void 0:u.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((v=this.eventReminderStateEntity)==
null?void 0:v.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var Q;return(Q=this.data)==null?void 0:Q.currentState};
_.J.updateReminderStateEntitiesFromButtonState=function(R){if(R){switch(R){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":R="UPCOMING_EVENT_REMINDER_STATE_NONE";var y="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":R="UPCOMING_EVENT_REMINDER_STATE_SINGLE";y="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":R="UPCOMING_EVENT_REMINDER_STATE_NONE";y="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var u;
((u=this.eventReminderStateEntity)==null?0:u.key)&&this.ytdReduxBehavior.dispatch(_.Gw("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:R})));var v;((v=this.seriesReminderStateEntity)==null?0:v.key)&&this.ytdReduxBehavior.dispatch(_.Gw("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:y})))}};
_.RR.Object.defineProperties(O$.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var R=this.getButtonStateFromReminderState(),y,u;if(R&&((y=this.data)==null?0:(u=y.states)==null?0:u.length))for(y=_.V(this.data.states),u=y.next();!u.done;u=y.next()){u=u.value;var v=void 0;if(((v=_.e(u,mL8))==null?void 0:v.state)===R)return _.e(u,mL8)}}}});
O$.prototype.onYtServiceRequestError=O$.prototype.onYtServiceRequestError;O$.prototype.onYtServiceRequestCompleted=O$.prototype.onYtServiceRequestCompleted;O$.prototype.onSeriesReminderStateEntityChange=O$.prototype.onSeriesReminderStateEntityChange;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],O$.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],O$.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],O$.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],O$.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],O$.prototype,"data",void 0);_.A([_.r({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:qGv}),_.p("design:type",Object)],O$.prototype,"eventReminderStateEntity",void 0);
_.A([_.r({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(R,y){return _.TI(R.entities,"sportsSeriesReminderStateEntity",y)}}),
_.p("design:type",Object)],O$.prototype,"seriesReminderStateEntity",void 0);_.A([_.G("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],O$.prototype,"currentButtonStateRenderer",null);_.A([_.e0("seriesReminderStateEntity"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],O$.prototype,"onSeriesReminderStateEntityChange",null);
_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],O$.prototype,"onYtServiceRequestCompleted",null);_.A([_.fu("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],O$.prototype,"onYtServiceRequestError",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],O$);
_.m(O$,"ytd-upcoming-event-reminder-button-renderer",function(){if(jtG!==void 0)return jtG;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);
return jtG=R},{mode:1});var Mkc;var ZH=function(){return _.W.apply(this,arguments)||this};
_.O(ZH,_.W);ZH.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.RR.Object.defineProperties(ZH.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(_.f("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],ZH.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ZH.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ZH.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],ZH.prototype,"shelfDismissal",void 0);_.A([_.G("data.responseText"),_.p("design:type",Object),_.p("design:paramtypes",[])],ZH.prototype,"text",null);
_.A([_.G("data.responseText"),_.p("design:type",Object),_.p("design:paramtypes",[])],ZH.prototype,"textAriaLabel",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],ZH);
_.m(ZH,"ytd-notification-multi-action-renderer",function(){if(Mkc!==void 0)return Mkc;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Mkc=R},{mode:1});var JY5;var HE=function(){return _.W.apply(this,arguments)||this};
_.O(HE,_.W);HE.prototype.ready=function(){var R=this;_.hw(this.hostElement).querySelector("#undo").addEventListener("tap",function(){R.onUndoTap()})};
HE.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.ua().resolve(_.jX).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],HE.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],HE.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],HE);
_.m(HE,"ytd-notification-text-renderer",function(){if(JY5!==void 0)return JY5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return JY5=R},{mode:1});var Vki;var nW=function(){var R=_.W.apply(this,arguments)||this;R.mouseOverDelayJobId=0;R.fadeInImageDelayJobId=0;R.startTimeMs=-1;R.loadingStartTimeMs=-1;R.loadingEndTimeMs=-1;R.hasVideoPreview=!1;return R};
_.O(nW,_.W);_.J=nW.prototype;_.J.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.J.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.J.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.J.showThumbnail=function(){var R=this;this.csn=_.$I();_.Xh("fmth");_.WG.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.T3(_.WG,function(){R.loadingStartTimeMs=(0,_.uQ)();var y=_.hw(R.hostElement).querySelector("#thumbnail");y.complete?R.displayMouseOverImage():y.addEventListener("load",_.BN(R,R.displayMouseOverImage))},150):_.FN(_.hw(this.hostElement).querySelector("#play"),"show",!0)};
_.J.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.J.onTap=function(){this.removeVideoPreview()};
_.J.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var R=this.videoId,y=this.csn,u=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,v=this.startTimeMs,Q=this.hasVideoPreview,M=_.U4(this.trackingParams),K={isMovingThumbnail:Q};Q&&v>0&&(u>0&&(K.movingThumbnailLoadingDurationMs=Math.round(u)),K.durationHoveredMs=Math.round((0,_.uQ)()-v));R&&(K.videoId=R);_.Co(y,M,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:K});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.J.removeVideoPreview=function(){_.WG.cancelJob(this.mouseOverDelayJobId);_.WG.cancelJob(this.fadeInImageDelayJobId);var R=_.hw(this.hostElement).querySelector("#thumbnail");_.FN(R,"fade-in",!1);R.removeEventListener("load",_.BN(this,this.displayMouseOverImage));R=_.hw(this.hostElement).querySelector("#play");_.FN(R,"fade-in",!1);_.FN(R,"show",!1)};
_.J.displayMouseOverImage=function(){var R=_.hw(this.hostElement).querySelector("#thumbnail"),y=_.hw(this.hostElement).querySelector("#play");this.isImageAvailable(R)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.uQ)(),this.startTimeMs=(0,_.uQ)(),this.fadeInImageDelayJobId=_.T3(_.WG,function(){_.FN(R,"fade-in",!0)},50)):_.FN(y,"fade-in",!0)};
_.J.computeThumbnail=function(R,y){var u;R&&R.movingThumbnailDetails&&R.movingThumbnailDetails.thumbnails&&y?u=_.b0(R.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):u=y?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(u)return _.Eo(u)};
_.J.isImageAvailable=function(R){return!(!R.src||R.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||R.naturalWidth===120)};
nW.prototype.onTap=nW.prototype.onTap;nW.prototype.dataChanged=nW.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],nW.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],nW.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],nW.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],nW.prototype,"csn",void 0);_.A([_.r(),_.p("design:type",Object)],nW.prototype,"trackingParams",void 0);
_.A([_.r(),_.p("design:type",String)],nW.prototype,"videoId",void 0);_.A([_.r(),_.p("design:type",Boolean)],nW.prototype,"isAttachedAndDataSet",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],nW.prototype,"dataChanged",null);_.A([_.fu("click"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],nW.prototype,"onTap",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],nW);
_.m(nW,"ytd-moving-thumbnail-renderer",function(){if(Vki!==void 0)return Vki;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return Vki=R},{mode:1});var i1L;_.F1=function(R){this.hostElement=R;this.eventSink=null;this.eventList=[]};
_.F1.prototype.shouldForward=function(){var R,y;return(y=(R=this.eventSink)==null?void 0:R.isConnected)!=null?y:document.body.contains(this.eventSink)};
_.F1.prototype.start=function(R,y){this.eventSink&&this.stop();for(var u=0;u<R.length;u++)this.hostElement.addEventListener(R[u],_.BN(this,this.forwardEvent));var v;this.eventSink=(v=y.hostElement)!=null?v:y;this.eventList=R};
_.F1.prototype.stop=function(){for(var R=0;R<this.eventList.length;R++)this.hostElement.removeEventListener(this.eventList[R],_.BN(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.F1.prototype.forwardEvent=function(R,y){this.shouldForward()&&(R.stopPropagation(),this.eventSink instanceof Element?_.Ko(this.eventSink,R.type,y):_.kT(new _.OL("eventSink is not an element")))};_.GZ={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.F1(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(R,y){this.forwarder_.start(R,y)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var ro=function(){return _.W.apply(this,arguments)||this};
_.O(ro,_.W);_.J=ro.prototype;_.J.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=_.EB("HTML_DIR")==="rtl"?"right":"left"};
_.J.dataChanged=function(){this.popupOpen=!1};
_.J.computeAriaLabel=function(R){return _.e(R,Akc).label};
_.J.onTap=function(R){R.stopPropagation();R.preventDefault();this.data.command&&_.ua().resolve(_.jX).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.J.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.J.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
ro.prototype.onPopupClosed=ro.prototype.onPopupClosed;ro.prototype.onPopupOpened=ro.prototype.onPopupOpened;ro.prototype.onTap=ro.prototype.onTap;ro.prototype.dataChanged=ro.prototype.dataChanged;_.A([_.n(_.GZ.YtEventForwardingBehavior),_.p("design:type",Object)],ro.prototype,"eventForwardingBehavior",void 0);_.A([_.n(_.mf),_.p("design:type",Object)],ro.prototype,"ironButtonState",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],ro.prototype,"componentBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],ro.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,value:-1}),_.p("design:type",Number)],ro.prototype,"tabindex",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.p("design:type",Object)],ro.prototype,"ariaLabel",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],ro.prototype,"disableTooltips",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],ro.prototype,"popupOpen",void 0);
_.A([_.r(),_.p("design:type",Element)],ro.prototype,"eventSink",void 0);_.A([_.O7("#tooltip"),_.p("design:type",Object)],ro.prototype,"tooltip",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ro.prototype,"dataChanged",null);_.A([_.fu("tap"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],ro.prototype,"onTap",null);
_.A([_.fu("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ro.prototype,"onPopupOpened",null);_.A([_.fu("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ro.prototype,"onPopupClosed",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],ro);
_.m(ro,"ytd-thumbnail-overlay-button-renderer",function(){if(i1L!==void 0)return i1L;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return i1L=R},{mode:1});var KDw;var PE=function(){return _.W.apply(this,arguments)||this};
_.O(PE,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],PE.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],PE.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],PE.prototype,"disableAnimation",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],PE.prototype,"rounded",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],PE.prototype,"transparentBackground",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],PE.prototype,"noPadding",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],PE);
_.m(PE,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(KDw!==void 0)return KDw;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return KDw=R},{mode:1});var IC5;var WE=function(){return _.W.apply(this,arguments)||this};
_.O(WE,_.W);WE.prototype.computeIconPosition=function(R){return this.get("iconPosition",R)||null};
WE.prototype.computeIconStyle=function(R){return this.get("iconStyle",R)||null};
WE.prototype.computeIsIconStyleFilled=function(R){if(!R)return!1;var y;return R.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((y=R.icon)==null?void 0:y.iconType)==="ERROR_BLACK"};
_.A([_.r(),_.p("design:type",Object)],WE.prototype,"data",void 0);_.A([_.r({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.p("design:type",Object)],WE.prototype,"iconPosition",void 0);_.A([_.r({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.p("design:type",Object)],WE.prototype,"iconStyle",void 0);_.A([_.r({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],WE.prototype,"iconStyleFilled",void 0);
_.A([_.q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],WE);
_.m(WE,"ytd-thumbnail-overlay-icon-renderer",function(){if(IC5!==void 0)return IC5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return IC5=R},{mode:1});var hVb;var U$=function(){return _.W.apply(this,arguments)||this};
_.O(U$,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],U$.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],U$.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],U$);
_.m(U$,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(hVb!==void 0)return hVb;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return hVb=R},{mode:1});var b15;var kO=function(){var R=_.W.apply(this,arguments)||this;R.isPreviewLoading=!1;return R};
_.O(kO,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],kO.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],kO.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],kO.prototype,"isPreviewLoading",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],kO);
_.m(kO,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(b15!==void 0)return b15;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return b15=R},{mode:1});var FD5;var E$=function(){return _.W.apply(this,arguments)||this};
_.O(E$,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],E$.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],E$.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],E$);
_.m(E$,"ytd-thumbnail-overlay-pinking-renderer",function(){if(FD5!==void 0)return FD5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return FD5=R},{mode:1});var wjc;var $O=function(){var R=_.W.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};
_.O($O,_.W);_.J=$O.prototype;_.J.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");_.hw(this.hostElement).querySelector("#tooltip").position=_.EB("HTML_DIR")==="rtl"?"right":"left"};
_.J.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.WG.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.WG.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.WG.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.J.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.WG.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.WG.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.WG.cancelJob(this.expandAnimationDelayJobId)};
_.J.computeIcon=function(R,y,u){return(R=u?y:R)&&R.iconType?_.fk(R.iconType):void 0};
_.J.computeAriaLabel=function(R,y,u){return _.e(u?y:R,Akc).label};
_.J.computeTooltip=function(R,y,u){return u?y:R};
_.J.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.J.computeIconOnHover=function(R,y){if((R==null?0:R.iconType)&&!y)return _.fk(R.iconType)};
_.J.onTap=function(R){var y=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=_.T3(_.WG,function(){y.hovered=!1;y.data&&!y.data.toggledServiceEndpoint&&(y.expandAnimationDelayJobId=_.T3(_.WG,function(){y.set("data.isToggled",
!1)},200))},2E3))};
_.J.onMouseenter=function(){var R=this;this.mouseoverDelayJobId=_.T3(_.WG,function(){R.hovered=!0},300)};
_.J.onMouseleave=function(){_.WG.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.J.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.J.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.J.onServiceRequestCompleted=function(R,y){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(y)||this.set("data.isToggled",!this.data.isToggled)};
_.J.serviceRequestWasSuccessful=function(R){return _.e(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.pt)?R.data.status==="STATUS_SUCCEEDED":!0};
$O.prototype.onServiceRequestCompleted=$O.prototype.onServiceRequestCompleted;$O.prototype.onPopupClosed=$O.prototype.onPopupClosed;$O.prototype.onPopupOpened=$O.prototype.onPopupOpened;$O.prototype.onMouseleave=$O.prototype.onMouseleave;$O.prototype.dataChanged=$O.prototype.dataChanged;_.A([_.n(_.mf),_.p("design:type",Object)],$O.prototype,"ironButtonState",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],$O.prototype,"ytComponentBehavior",void 0);
_.A([_.n(_.GZ.YtEventForwardingBehavior),_.p("design:type",Object)],$O.prototype,"ytEventForwardingBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],$O.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.p("design:type",Object)],$O.prototype,"ariaLabel",void 0);_.A([_.r(),_.p("design:type",Object)],$O.prototype,"disableTooltips",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],$O.prototype,"popupOpen",void 0);_.A([_.r(),_.p("design:type",Object)],$O.prototype,"isLoading",void 0);_.A([_.r(),_.p("design:type",Element)],$O.prototype,"eventSink",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],$O.prototype,"useExpandableTooltip",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.p("design:type",Object)],$O.prototype,"toggled",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],$O.prototype,"hovered",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.p("design:type",Object)],$O.prototype,"iconOnHover",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$O.prototype,"dataChanged",null);
_.A([_.fu("mouseleave"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$O.prototype,"onMouseleave",null);_.A([_.fu("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$O.prototype,"onPopupOpened",null);_.A([_.fu("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$O.prototype,"onPopupClosed",null);
_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Mp]),_.p("design:returntype")],$O.prototype,"onServiceRequestCompleted",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],$O);
_.m($O,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(wjc!==void 0)return wjc;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return wjc=R},{mode:_.TN("kevlar_poly_si_batch_j053")?1:2});var NO8;var TOi=_.Jd(function(R){var y=R.data;var u=R.thumbnailSize;var v=function(){return y().enableSegmentView};
return _.F("yt-thumbnail-overlay-progress-bar-view-model",{class:_.Oy("ytThumbnailOverlayProgressBarHost",function(){return Dlv(u==null?void 0:u())})},_.F(_.w,{cond:v,
then:function(){return _.F("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.F("div",{class:_.Zl("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+y().startPercent+"%"}}),_.F("div",{class:_.Zl("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+y().segmentDurationPercent+"%"}},_.F("div",{class:_.Zl("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.F("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.F("div",null," ",function(){return y().segmentLabel})),_.F("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.F("div",{class:_.Zl("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.F(_.w,{cond:function(){return!v()&&y().startPercent},
then:function(){var Q={};return _.F("div",{class:_.Zl("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(Q.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.f("web_enable_modern_progress_bar_overlay"),Q))},_.F("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+y().startPercent+"%"}}))}}))},"U");
TOi.idomCompat=!0;var o35=_.Jd(function(R){var y=_.eo(),u=_.Sp(function(Q){var M,K,h;a:{var b=(M=R.data())==null?void 0:M.animationActivationTargetId;M=((K=R.data())==null?void 0:K.animationActivationEntityKey)||"";K=(h=R.data())==null?void 0:h.animationActivationEntitySelectorType;if(M&&b)switch(K){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":Q=_.TI(Q.entities,"playerStateEntity",M);h=_.ua().resolve(_.yN(_.cZ));b=!!(Q&&Q.videoId===b&&(h==null?0:h.isMiniplayerActive()));b={activated:b,playAnimation:b&&
Q.playerState==="PLAYER_STATE_PLAYING"};break a}b=void 0}return b});
_.ny(function(){var Q;if((Q=u())==null?0:Q.activated){var M;if((M=u())==null?0:M.playAnimation){var K;(K=y.lottieEl)==null||K.goToAndPlay(0)}else{var h;(h=y.lottieEl)==null||h.goToAndStop(0)}}},"MDTl2e");
var v=function(){var Q,M=!((Q=u())==null||!Q.activated);if(R.data()){Q=R.data();var K=void 0;Q.icon&&(K=_.hdc(Q.icon),K=x0L(K));var h=void 0,b;if((b=Q.backgroundColor)==null?0:b.lightTheme){var N;h={backgroundColor:Yv((N=Q.backgroundColor)==null?void 0:N.lightTheme,"0.8")}}if(Q.text||K||M){if(M&&Q.lottieData&&y){N=Q.lottieData;var T,x,B;b={animationConfig:{name:N.url,path:N.url,autoplay:(T=N.settings)==null?void 0:T.autoplay,loop:(B=(x=N.settings)==null?void 0:x.loop)!=null?B:!0},animationRef:y}}else b=
void 0;if(M)T=17;else b:switch(Q.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":T=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":T=19;break b;default:T=17}M={type:T,text:M&&Q.animatedText?Q.animatedText:Q.text,icon:K,customColors:h,animation:b}}else M=void 0}else M=void 0;return M};
return _.F("yt-thumbnail-badge-view-model",{class:_.Oy("yt-thumbnail-badge-view-model-wiz",R.class)},_.F(_.w,{cond:v,then:function(){return _.F(_.p_,{data:function(){return v()}})}}))},"V");var xxc=_.Jd(function(R){var y={},u={};return _.F("yt-thumbnail-bottom-overlay-view-model",{class:_.Oy("ytThumbnailBottomOverlayViewModelHost",(y.ytThumbnailBottomOverlayViewModelHostBackground=function(){return R.data().enableGradientBackground},y))},_.F(_.mk,{data:function(){return R.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(v){return _.F(TOi,{data:v.data,
thumbnailSize:R.thumbnailSize})}}),_.F("div",{class:_.Oy("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var v;
return pzU((v=R.thumbnailSize)==null?void 0:v.call(R))},(u.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var v;
return(v=R.isClip)==null?void 0:v.call(R)},u.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var v;
return!_.f("web_enable_modern_progress_bar_overlay")&&((v=R.thumbnailSize)==null?void 0:v.call(R))==="small"},u))},_.F(_.mk,{data:function(){return R.data().badge}},{thumbnailBadgeViewModel:function(v){return _.F(o35,{data:v.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.F(_.mk,{data:function(){return R.data().badges}},{thumbnailBadgeViewModel:function(v){return _.F(o35,{data:v.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"W");
xxc.idomCompat=!0;_.h6(xxc,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.IC,thumbnailSize:_.IC,isClip:_.IC}});var CKv={calledOnce:!1,state:"visible"},RV4={calledOnce:!1,state:"hidden"};var qH=_.Jd(function(R){var y=R.data;var u=R.className;R=R.alwaysShow;var v=_.af8(),Q={};return _.F("thumbnail-hover-overlay-view-model",{el:_.VX(_.Y9(function(){return y().rendererContext})),
class:_.Oy("ytThumbnailHoverOverlayViewModelHost",u,(Q.ytThumbnailHoverOverlayViewModelHostForceHover=R,Q)),"aria-label":function(){var M;return(M=_.e(y().rendererContext,_.GC))==null?void 0:M.label},
role:function(){return _.a8(y().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.a8(y().rendererContext)!==void 0?0:void 0},
"on:keypress":v},_.F("div",{class:_.Oy("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(y().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var M="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:M="ytThumbnailHoverOverlayViewModelStyleCover"}return M})},_.F(_.w,{cond:function(){return y().icon},
then:function(M){return _.F(_.MR,{data:M,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.F(_.w,{cond:function(){return y().text},
then:function(M){return _.F(_.QM,{text:M,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"X");
qH.idomCompat=!0;var BOg=_.Jd(function(R){var y=R.data;return _.F(_.mk,{data:function(){return y==null?void 0:y().overlays}},{thumbnailHoverOverlayViewModel:qH})},"Y");
BOg.idomCompat=!0;var fCi={};var eVg=_.Jd(function(R){var y=R.data;var u=R.image;var v=R.state;var Q=R.iconType;var M=R.overlays;var K=R.isOverlay;var h=_.zp("div");R=_.V(_.In(!0,void 0,"sUzEZ"));var b=R.next().value,N=R.next().value,T=function(){return!!y().onTap},x=_.Qj(Q,"LIVE");
_.ny(function(){var l=y();requestAnimationFrame(function(){if(h.value===null)var Z=!0;else{var P=h.value;Z=l.badgeText;var k=v3z(l.size);Z in fCi?P=fCi[Z]:(P=P.clientWidth,fCi[Z]=P);(Z=P>k)?h.value.style.display="none":h.value.style.visibility="visible"}N(Z)})},"SpVcNb");
var B=function(){var l={};return l["yt-spec-avatar-shape__image"]=!0,l["yt-spec-avatar-shape__image--ads-app"]=y().type===1,l};
return _.F("yt-avatar-shape",null,_.F("div",{el:_.VX(jtU(T,{keydown:function(l){if(l.key==="Enter"){var Z;(Z=l.currentTarget)==null||Z.click()}},
click:function(l){var Z,P;return void((P=(Z=y()).onTap)==null?void 0:P.call(Z,l))}})),
class:function(){var l={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},Z=y();l=(l[Z.clusterLayoutConfig?VkP(Z.clusterLayoutConfig):i1z(Z.size)]=!0,l["yt-spec-avatar-shape__button--tappable"]=T(),l);(Z=y().avatarButtonCustomClassName)&&(l[Z]=!0);return _.Zl(l)},
"aria-label":function(){return T()?y().accessibilityText:""},
role:function(){return T()?"button":void 0},
tabindex:function(){return T()?0:void 0}},_.F("div",{class:function(){var l,Z=y(),P=v==null?void 0:v(),k=K==null?void 0:K(),E=!((l=Z.decorations)==null||!l.includes(2)||Z.size!=="medium"&&Z.size!=="large"),D=Z.size==="tiny"||Z.size==="extra-small",z,c,a,L,QG={};
l=(QG["yt-spec-avatar-shape--live-ring"]=!!(((z=Z.decorations)==null?0:z.includes(0))&&ICU(Z.size)),QG["yt-spec-avatar-shape--stories-watched"]=E&&!(P==null||!P.storiesWatched),QG["yt-spec-avatar-shape--stories-unwatched"]=E&&!(P==null?0:P.storiesWatched),QG["yt-spec-avatar-shape--background-border"]=hVL(Z.decorations)&&!D,QG["yt-spec-avatar-shape--background-border-thin"]=hVL(Z.decorations)&&D,QG["yt-spec-avatar-shape__on-select-border"]=!((c=Z.decorations)==null||!c.includes(4)),QG["yt-spec-avatar-shape__white-border"]=
!((a=Z.decorations)==null||!a.includes(5)),QG["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((L=Z.decorations)==null?0:L.includes(5))&&D),QG["yt-spec-avatar-shape--is-overlay"]=!!k,QG);return _.Zl(l)},
style:function(){a:{var l=y().clusterLayoutConfig;if(l){b:{var Z=l.numAvatarsInCluster;var P=l.avatarIndex;if(P!==Z-1){switch(l.clusterSize){case "small":l="32";break;case "medium":l="36";break;case "40":l="40";break;default:Z=void 0;break b}Z="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+l+"x"+l+"_avatars_"+Z+"_index_"+P+".svg"}else Z=void 0}if(Z){Z=_.P_({"-webkit-mask-image":"url("+Z+")","mask-image":"url("+Z+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}Z=void 0}return Z}},_.F("div",{class:function(){var l={};
var Z=y();l=(l[Z.clusterLayoutConfig?MkT(Z.clusterLayoutConfig):JYT(Z.size)]=!0,l["yt-spec-avatar-shape--no-margin"]=hVL(y().decorations),l);return _.Zl(l)}},_.F(_.MR,{data:u,
alt:function(){return!T()&&y().accessibilityText?y().accessibilityText:""},
targetWidth:function(){return KDc(y().size)},
targetHeight:function(){return KDc(y().size)},
className:function(){return _.Zl(B())}}),_.F(_.w,{cond:function(){var l;
return((l=y().decorations)==null?void 0:l.includes(0))&&ICU(y().size)},
then:function(){return _.F("div",{class:function(){var l={};l=(l["yt-spec-avatar-shape__live-badge"]=!0,l["yt-spec-avatar-shape__live-badge--badge-small"]=y().size==="small",l["yt-spec-avatar-shape__live-badge--badge-medium"]=y().size==="medium"||y().size==="48",l["yt-spec-avatar-shape__live-badge--badge-large"]=y().size==="large",l["yt-spec-avatar-shape__live-badge--badge-extra-large"]=y().size==="extra-large"||y().size==="extra-extra-large"||y().size==="giant",l);return _.Zl(l)}},_.F(_.w,{cond:function(){return y().badgeText},
then:function(l){return _.F("div",{class:"yt-spec-avatar-shape__badge-text",el:h},l)}}),_.F(_.w,{cond:b,
then:function(){return _.F("div",{class:"yt-spec-avatar-shape__badge-icon"},_.F(_.W_,{icon:x,size:function(){a:switch(y().size){case "extra-large":var l=16;break a;default:l=13}return l}}))}}))}}),_.F(_.w,{cond:function(){var l,Z;
return((l=y().decorations)==null?void 0:l.includes(1))||((Z=y().decorations)==null?void 0:Z.includes(0))&&!ICU(y().size)},
then:function(){return _.F("div",{class:function(){var l=y(),Z,P,k={};var E=(k["yt-spec-avatar-shape__live-dot"]=!((Z=l.decorations)==null||!Z.includes(0)||ICU(l.size)),k["yt-spec-avatar-shape__new-content"]=!((P=l.decorations)==null||!P.includes(1)),k);return _.Zl(E)}})}}),_.F(_.w,{cond:function(){return!!M},
then:function(){return _.F("div",{class:function(){var l={};l=Object.assign((l["yt-spec-avatar-shape__image-overlays"]=!0,l),B());return _.Zl(l)}},M==null?void 0:M())}})))))},"Z");
eVg.idomCompat={callbacks:{overlays:!0}};_.XS=_.Jd(function(R){function y(){u().endpoint&&_.zN(u().endpoint)}
var u=R.data;var v=R.decorations;var Q=R.avatarButtonCustomClassName;var M=R.isOverlay;var K=R.clusterLayoutConfig;return _.F("avatar-view-model",null,_.F(_.w,{cond:function(){return u().image},
then:function(h){return _.F(eVg,{data:function(){return FDT({data:u(),onTap:u().endpoint?y:void 0,decorations:v==null?void 0:v(),badgeText:void 0,accessibilityText:u().accessibilityText,avatarButtonCustomClassName:Q==null?void 0:Q(),clusterLayoutConfig:K==null?void 0:K()})},
image:h,iconType:"RADAR_LIVE",overlays:function(){return _.F(BOg,{data:u})},
isOverlay:M})}}))},"$");
_.XS.idomCompat=!0;_.mG=_.Jd(function(R){var y=R.data;R=R.className;var u=_.zp("yt-decorated-avatar-view-model"),v=function(){return _.e(y().avatar,_.LA)},Q=_.N8(function(){var M,K=y(),h=v(),b=_.a8(y().rendererContext),N=(M=u.value)!=null?M:void 0,T;
if(h){N={data:K,avatar:h,onTap:b,element:N};M=N.data;K=N.avatar;h=N.onTap;b=N.element;N=N.commandController;h=h?o3T(h,b,N):void 0;b=[];M.liveData&&b.push(0);var x;N=(x=M.liveData)==null?void 0:x.liveBadgeText;x=(T=_.e(M.rendererContext,_.GC))==null?void 0:T.label;T=FDT({data:K,onTap:h,decorations:b,badgeText:N,accessibilityText:x?x:M.a11yLabel})}else T={size:"medium"};return T},void 0,"H8tk9d");
return _.F("yt-decorated-avatar-view-model",{class:_.Oy("yt-decorated-avatar-view-model-wiz",R),el:u},_.F(_.w,{cond:function(){var M;return(M=v())==null?void 0:M.image},
then:function(M){return _.F(eVg,{data:Q,image:M,iconType:"RADAR_LIVE",overlays:function(){return _.F(BOg,{data:v})}})}}))},"aa");
_.mG.idomCompat=!0;_.Ap=_.Jd(function(R){var y=function(){var h;return Object.assign({},R.data(),(h=R.overrides)==null?void 0:h.call(R))},u=function(){return _.So(y().rendererContext)},v=function(){var h=y().avatars,b,N;
return(N=(b=(h==null?0:h[0])?_.e(h[0],_.LA):void 0)==null?void 0:b.avatarImageSize)!=null?N:"AVATAR_SIZE_UNKNOWN"},Q=function(){return TOP(y())},M=function(){if(y().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var h=void 0;
else if((h=R.decorations)==null?0:h.call(R))h=R.decorations();else{h=y();var b=0;h.avatars&&(b+=h.avatars.length);h.decoratedText&&(b+=1);h=b>1?[3]:[]}return h},K={};
return _.F("yt-avatar-stack-view-model",{el:_.VX(_.Y9(function(){return y().rendererContext})),
class:_.Oy("yt-avatar-stack-view-model-wiz",R.className,(K["yt-avatar-stack-view-model-wiz--tappable"]=u,K["yt-avatar-stack-view-model-wiz--is-overlay"]=R.isOverlay,K["yt-avatar-stack-view-model-wiz--medium-text"]=R.useMediumText,K)),tabindex:function(){return u()?0:void 0},
role:function(){return u()?"link":void 0},
"aria-label":function(){var h,b;return(b=(h=_.e(y().rendererContext,_.GC))==null?void 0:h.label)!=null?b:""}},_.F(_.w,{cond:function(){var h;
return y().avatars&&!((h=R.hideAvatar)==null?0:h.call(R))},
then:function(){return _.F("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.F(_.w,{cond:function(){return y().decoratedText},
then:function(h){var b={};return _.F("div",{class:_.Oy("yt-avatar-stack-view-model-wiz__text-container",(b["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return v()==="AVATAR_SIZE_XXS"||v()==="AVATAR_SIZE_XS"},b["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var N;
return((N=R.isOverlay)==null?void 0:N.call(R))&&(v()==="AVATAR_SIZE_XXS"||v()==="AVATAR_SIZE_XS")},b)),
style:_.P_({width:function(){return Q().avatarSizeInPx+"px"},
height:function(){return Q().avatarSizeInPx+"px"}})},_.F(_.QM,{text:h,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.F("div",{style:function(){return _.P_(Q().avatarStackStyle)()},
class:function(){return Q().avatarStackClass}},_.F(_.mk,{data:function(){return Q().avatars.reverse()}},{avatarViewModel:function(h,b){return _.F("div",{style:function(){var N,T;
return _.P_((T=(N=Q()).avatarStyle)==null?void 0:T.call(N,b()))()},
class:function(){return Q().avatarClass}},_.F(_.XS,{data:h.data,
decorations:M,avatarButtonCustomClassName:function(){return Q().avatarButtonCustomClassName},
isOverlay:R.isOverlay,clusterLayoutConfig:function(){var N,T;return(T=(N=Q()).clusterLayoutConfig)==null?void 0:T.call(N,b())}}))},
decoratedAvatarViewModel:function(h,b){return _.F("div",{style:function(){var N,T;return _.P_((T=(N=Q()).avatarStyle)==null?void 0:T.call(N,b()))()},
class:function(){return Q().avatarClass}},_.F(_.mG,{data:h.data}))}})))}}),_.F(_.w,{cond:function(){return y().text},
then:function(h){return _.F(_.QM,{text:h,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"ba");
_.Ap.idomCompat=!0;_.h6(_.Jd(function(R){var y=R.data;var u=R.thumbnailSize;return _.F("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.F("div",{class:_.Oy("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return xxG(u==null?void 0:u())})},_.F(_.mk,{data:function(){return y().avatarStack}},{avatarStackViewModel:function(v){return _.F(_.Ap,{data:v.data,
decorations:[5]})}})))},"ca"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.vR,
thumbnailSize:_.vR}});var lCg=_.Jd(function(R){R=_.jb(R,{hidden:!1});var y=R.data;return _.F("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:R.hidden},_.F(_.QM,{text:function(){return y().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.F(_.w,{cond:function(){return y().subtitle},
then:function(){return _.F(_.QM,{text:function(){return y().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"da");
lCg.idomCompat=!0;_.h6(lCg,"yt-thumbnail-overlay-title-view-model",{props:{data:_.vR,hidden:_.vR}});var O1L=_.Jd(function(R){R=_.jb(R,{isClip:!1});var y=R.data,u=R.thumbnailSize,v={};return _.F("yt-thumbnail-overlay-badge-view-model",{class:_.Oy("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(y().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var Q="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:Q="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return Q},function(){return BOE(u==null?void 0:u())},(v["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
R.isClip,v))},_.F(_.mk,{data:function(){return y().thumbnailBadges}},{thumbnailBadgeViewModel:function(Q){return _.F(o35,{data:Q.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"ea");
O1L.idomCompat=!0;_.h6(O1L,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.vR,thumbnailSize:_.vR,isClip:_.vR}});_.Qn(fCP);_.B_(fCP,"yt-page-indicator-view-model",{propNames:["data"]});var DH=function(){var R=_.W.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};
_.O(DH,_.W);_.J=DH.prototype;
_.J.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:_.f("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"}}};
_.J.onImageLoaded=function(){this.loaded=!0};
_.J.onImageUnloaded=function(){this.loaded=!1};
_.J.computeRichThumbnail=function(R,y,u,v){if(R&&y&&!v&&!_.f("disable_moving_thumbs_handling")&&!u)return y};
_.J.computeImageWidth=function(R,y){return y||9999};
_.J.computeIsOriginalAspectRatio=function(R){return R};
_.J.computeIsLive=function(R){if(R==null?0:R.badges)for(var y=0;y<R.badges.length;y++){var u=R.badges[y];if(u.metadataBadgeRenderer&&u.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(R==null?0:R.thumbnailOverlays)for(y=0;y<R.thumbnailOverlays.length;y++)if(u=R.thumbnailOverlays[y],u.thumbnailOverlayTimeStatusRenderer&&u.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.J.computeObjectFit=function(R,y){return y||(R?"CONTAIN":"")};
_.J.computeNavigationEndpoint=function(R,y,u){return R?y:u};
_.J.computeHasClip=function(R){R=_.V(R||[]);for(var y=R.next();!y.done;y=R.next())if(y.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.J.computeOverlayColor=function(R){var y;return(R==null?0:(y=R.darkColorPalette)==null?0:y.section2Color)?R.darkColorPalette.section2Color:R==null?void 0:R.sampledThumbnailColor};
_.RR.Object.defineProperties(DH.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return asW(this.width)}}});
DH.prototype.onImageUnloaded=DH.prototype.onImageUnloaded;DH.prototype.onImageLoaded=DH.prototype.onImageLoaded;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],DH.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],DH.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(jvc),_.p("design:type",Object)],DH.prototype,"ytdThumbnailBehavior",void 0);
_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],DH.prototype,"componentBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],DH.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],DH.prototype,"data",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],DH.prototype,"circular",void 0);
_.A([_.r({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.p("design:type",Object)],DH.prototype,"richThumbnail",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.p("design:type",Boolean)],DH.prototype,"hasClip",void 0);_.A([_.r(),_.p("design:type",Object)],DH.prototype,"eventSink",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],DH.prototype,"queued",void 0);
_.A([_.r({value:!1}),_.p("design:type",Boolean)],DH.prototype,"richGridThumbnail",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],DH.prototype,"useExpandableTooltip",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],DH.prototype,"useUntranslatedNavigationEndpoint",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],DH.prototype,"disableInteraction",void 0);
_.A([_.r({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.p("design:type",Object)],DH.prototype,"computedNavigationEndpoint",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],DH.prototype,"nowPlayingEqualizerOnly",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],DH.prototype,"hidePlaybackStatus",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],DH.prototype,"objectFit",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],DH.prototype,"noRoundedCorners",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],DH.prototype,"watchFeedThumbnail",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],DH.prototype,"isPreviewLoading",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.p("design:type",Object)],DH.prototype,"isOriginalAspectRatio",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.p("design:type",Object)],DH.prototype,"computedObjectFit",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.p("design:type",Boolean)],DH.prototype,"isLiveVideo",void 0);
_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],DH.prototype,"loaded",void 0);_.A([_.r({computed:"computeOverlayColor(data.thumbnail)"}),_.p("design:type",Object)],DH.prototype,"overlayColor",void 0);_.A([_.r({selector:_.qT4}),_.p("design:type",Boolean)],DH.prototype,"inlinePreviewIsEnabled",void 0);_.A([_.r(),_.p("design:type",Number)],DH.prototype,"width",void 0);
_.A([_.G("inlinePreviewIsEnabled"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],DH.prototype,"isPreviewDisabled",null);_.A([_.G("width"),_.p("design:type",String),_.p("design:paramtypes",[])],DH.prototype,"thumbnailSize",null);_.A([_.fu("image-loaded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DH.prototype,"onImageLoaded",null);
_.A([_.fu("image-unloaded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DH.prototype,"onImageUnloaded",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-thumbnail"})],DH);
var Z1c=_.Nk()(DH,"ytd-thumbnail",function(){if(NO8===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);NO8=R}R=NO8;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 Z1G=function(R){var y=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$14831_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$14831_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(u){H1b(y,u)};
this.onLockupMouseLeaveFn=function(u){u=u.relatedTarget;var v,Q;((v=document.getElementsByTagName("ytd-video-preview"))==null?0:(Q=v.item(0))==null?0:Q.contains(u))||(y.terminateVideoPreview(),pW(y))};
this.onThumbnailMouseDownFn=function(){y.terminateVideoPreview();pW(y)};
this.onTouchStart=function(){y.JSC$14831_touched=!0};
this.mediaRenderer=R.mediaRenderer;this.thumbnailElement=R.thumbnailElement;this.lockupElement=R.lockupElement;this.videoPreviewOptsInput=R.videoPreviewOpts;n38(this);tp(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)):
_.kT(Error("Ch")):_.kT(Error("Dh")):G1V(this)},Mr=function(R){G1V(R);
var y;(y=R.lockupElement)==null||y.removeEventListener("mouseenter",R.onMouseMoveFn);var u;(u=R.lockupElement)==null||u.removeEventListener("mouseleave",R.onLockupMouseLeaveFn);var v;(v=R.lockupElement)==null||v.removeEventListener("touchstart",R.onTouchStart);var Q;(Q=R.thumbnailElement)==null||Q.removeEventListener("mousedown",R.onThumbnailMouseDownFn);pW(R)},n38=function(R){R.inlinePreviewIsEnabledForUser=_.Qe().getState().ui.inlinePreviewIsEnabled;
R.unsubscribeFromInlinePreviewIsEnabled=_.GD(_.Qe(),_.qT4,function(y){(R.inlinePreviewIsEnabledForUser=y)||pW(R)});
R.JSC$14831_unsubscribeFromInlinePreviewIsActive=_.GD(_.Qe(),_.$iO,function(y){(R.inlinePreviewIsActive=y)||pW(R)})},G1V=function(R){R.unsubscribeFromInlinePreviewIsEnabled();
R.unsubscribeFromInlinePreviewIsEnabled=function(){};
R.JSC$14831_unsubscribeFromInlinePreviewIsActive();R.JSC$14831_unsubscribeFromInlinePreviewIsActive=function(){}},H1b=function(R,y){y.buttons>0||(y=_.JT("kevlar_lockup_hover_delay",-1),R.JSC$14831_touched&&y>=0?(_.WG.cancelJob(R.videoPreviewJobId),R.videoPreviewJobId=_.T3(_.WG,function(){rYg(R)},y),R.JSC$14831_touched=!1):rYg(R))},EyS=function(R){R.videoPreviewJobId=_.T3(_.WG,function(){var y,u,v,Q;
return _.I(function(M){if(M.nextAddress==1){if(!tp(R))return M.return();y=R.getVideoPreviewOpts();if(!y)return M.return();y.isAutoplay=!0;return(v=(u=_.h_(R.mediaRenderer.hostElement,"yt-open-video-preview-action",[y]))&&u[0])?M.yield(u[0],3):M.jumpTo(2)}M.nextAddress!=2&&(v=M.yieldResult===1);v&&lCv((Q=R.mediaRenderer)==null?void 0:Q.data);_.f$(M)})})},rYg=function(R){!R.previewTriggered&&tp(R)&&(R.inlinePreviewIsActive&&R.terminateVideoPreview(),R.previewTriggered=!0,R.mediaRenderer.isInlinePreviewTriggered=
!0,_.WG.cancelJob(R.videoPreviewJobId),R.videoPreviewJobId=_.T3(_.WG,function(){var y,u,v,Q;
return _.I(function(M){if(M.nextAddress==1){if(!tp(R))return M.return();y=R.getVideoPreviewOpts();return y?(v=(u=_.h_(R.mediaRenderer.hostElement,"yt-open-video-preview-action",[y]))&&u[0])?M.yield(u[0],3):M.jumpTo(2):M.return()}M.nextAddress!=2&&(v=M.yieldResult===1);v&&lCv((Q=R.mediaRenderer)==null?void 0:Q.data);_.f$(M)})}))};
Z1G.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var R,y;if((y=(R=this.videoPreviewOptsInput)==null?void 0:R.videoPreviewData)!=null)R=y;else if(R=this.mediaRenderer.data)if(eVv(R))R={inlinePlaybackEndpoint:_.Sb(R.inlinePlayerData.onVisible),navigationEndpoint:_.Sb(R.onTap),thumbnail:"image"in R?R.image:R.thumbnail,thumbnailOverlays:void 0,accessibilityText:O1z(R)};else if("multipleInlinePlaybackEndpoint"in R){var u=_.e(_.e(R.multipleInlinePlaybackEndpoint,CA5),RsT);if(u!=
null&&u.playerDescriptors){y=[];u=_.V(u.playerDescriptors);for(var v=u.next();!v.done;v=u.next())v=v.value,y.push({inlinePlaybackEndpoint:v.inlinePlaybackEndpoint,navigationEndpoint:v.navigationEndpoint,thumbnail:v.thumbnail,thumbnailOverlays:v.thumbnailOverlays,accessibilityText:O1z(R)});R=y}else R=void 0}else R={inlinePlaybackEndpoint:R.inlinePlaybackEndpoint,navigationEndpoint:R.navigationEndpoint,thumbnail:R.thumbnail,thumbnailOverlays:R.thumbnailOverlays,accessibilityText:O1z(R)};else R=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:R,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var tp=function(R){var y;if(y=R.inlinePreviewIsEnabledForUser)y=(R=R.mediaRenderer.data)?"inlinePlaybackEndpoint"in R&&R.inlinePlaybackEndpoint||eVv(R)&&R.inlinePlayerData||"multipleInlinePlaybackEndpoint"in R&&R.multipleInlinePlaybackEndpoint?!0:!1:!1;return y};
Z1G.prototype.terminateVideoPreview=function(){_.Ik(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var pW=function(R){_.WG.cancelJob(R.videoPreviewJobId);R.inlinePreviewIsActive=!1;R.previewTriggered=!1;R.mediaRenderer.isInlinePreviewTriggered=!1};var PS8=_.RE(["#"]),cE=function(){var R=_.W.apply(this,arguments)||this;R.isDisabled=!1;return R};
_.O(cE,_.W);_.J=cE.prototype;_.J.configureRendererStamper=function(){return{"data.menu":lH,"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"}}}};
_.J.attached=function(){this.updateInlinePreviewHoverListeners()};
_.J.detached=function(){this.clearInlinePreviewHoverListeners()};
_.J.getMetadata=function(R){var y=[];if(R.metadataText&&Object.keys(R.metadataText).length>0){var u=this.ytRendererBehavior.getSimpleString(R.metadataText);R.upcomingEventData&&R.upcomingEventData.upcomingEventText&&(u=_.DO(u,Number(R.upcomingEventData.startTime)));y.push(u)}else R.shortViewCountText&&y.push(this.ytRendererBehavior.getSimpleString(R.shortViewCountText)),R.publishedTimeText&&y.push(this.ytRendererBehavior.getSimpleString(R.publishedTimeText)),R.upcomingEventData&&R.upcomingEventData.upcomingEventText&&
(u=this.ytRendererBehavior.getSimpleString(R.upcomingEventData.upcomingEventText),y.push(_.DO(u,Number(R.upcomingEventData.startTime))));return y};
_.J.calculateBylineText=function(R){return R.shortBylineText?R.shortBylineText:R.bylineText?R.bylineText:null};
_.J.calculateIsDisabled=function(R){return!!R.isDisabled};
_.J.computeHrefWithDefault=function(R){return this.ytComponentBehavior.computeHref_(R)||_.gEP(PS8)};
_.J.onDetailsTap=function(R){var y=this.data&&this.data.navigationEndpoint;y&&!_.JF(_.u8(R)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.f("kevlar_grid_video_renderer_killswitch")?_.Ko(this.hostElement,"yt-navigate",{endpoint:y}):this.ytComponentBehavior.resolveCommand(y))};
_.J.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14836_inlinePreviewHoverListener=sC({mediaRenderer:this,lockupElement:_.hw(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.hw(this.hostElement).querySelector("ytd-thumbnail")})};
_.J.clearInlinePreviewHoverListeners=function(){var R;(R=this.JSC$14836_inlinePreviewHoverListener)==null||Mr(R)};
_.J.computeThumbnailWidth=function(R,y){return y&&y>0?y:R?360:210};
_.J.computeShowChannelThumbnail=function(R,y){var u;return y&&!!(R==null?0:(u=R.channelThumbnailSupportedRenderers)==null?0:u.channelThumbnailWithLinkRenderer)};
_.RR.Object.defineProperties(cE.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.JSC$14836_inlinePreviewHoverListener)==null?0:tp(R))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
cE.prototype.dataChanged=cE.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],cE.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],cE.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],cE.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.c4),_.p("design:type",Object)],cE.prototype,"ytdDismissibleItemBehavior",void 0);
_.A([_.n(_.gT),_.p("design:type",Object)],cE.prototype,"ytdLockupBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],cE.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],cE.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Boolean)],cE.prototype,"noEndpoints",void 0);_.A([_.r({computed:"calculateBylineText(data)"}),_.p("design:type",Object)],cE.prototype,"bylineText",void 0);
_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],cE.prototype,"isSearch",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],cE.prototype,"isDownloading",void 0);_.A([_.r({reflectToAttribute:!0,value:0}),_.p("design:type",Number)],cE.prototype,"width",void 0);_.A([_.r({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.p("design:type",Object)],cE.prototype,"isDisabled",void 0);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],cE.prototype,"dataChanged",null);_.A([_.G("lockupIsHovered"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],cE.prototype,"isHovered",null);_.A([_.q({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],cE);
_.m(cE,"ytd-grid-video-renderer",function(){if(Qt5!==void 0)return Qt5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Qt5=R},{mode:_.TN("kevlar_poly_si_batch_j047")?1:2});var WDb;var as=function(){var R=_.W.apply(this,arguments)||this;R.roundedContainer=!0;R.skipRoundingTop=!1;R.disableTopPadding=!1;R.amsterdamEnabled=_.f("enable_desktop_amsterdam_info_panels");return R};
_.O(as,_.W);as.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
as.prototype.onClick=function(R){var y,u=(y=this.data)==null?void 0:y.sourceEndpoint;!_.JF(_.u8(R),this.hostElement,["A".toString()])&&u&&_.Ko(this.hostElement,"yt-navigate",{endpoint:u})};
_.RR.Object.defineProperties(as.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,y;return(y=(R=this.data)==null?void 0:R.paragraphMaxLines)!=null?y:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],as.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],as.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],as.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],as.prototype,"showVerticalDividers",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],as.prototype,"roundedContainer",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],as.prototype,"skipRoundingTop",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],as.prototype,"disableTopPadding",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],as.prototype,"amsterdamEnabled",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],as.prototype,"showMetadataAtTop",null);
_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],as.prototype,"showMetadataBelowTitle",null);_.A([_.r({reflectToAttribute:!0}),_.G("data.menu"),_.p("design:type",Object),_.p("design:paramtypes",[])],as.prototype,"hasMenu",null);_.A([_.r({reflectToAttribute:!0}),_.G("data.truncateParagraphs"),_.p("design:type",Object),_.p("design:paramtypes",[])],as.prototype,"truncateParagraphs",null);
_.A([_.r({reflectToAttribute:!0}),_.G("data.paragraphMaxLines"),_.p("design:type",Number),_.p("design:paramtypes",[])],as.prototype,"paragraphMaxLines",null);_.A([_.r({type:_.f("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.G("data.background"),_.p("design:type",Object),_.p("design:paramtypes",[])],as.prototype,"background",null);_.A([_.q({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],as);
_.m(as,"ytd-info-panel-content-renderer",function(){if(WDb!==void 0)return WDb;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return WDb=R},{mode:_.TN("kevlar_poly_si_batch_j076")?1:2});var dxG;var Uxc;var k1L;var E3Y;var S1=function(){return _.W.apply(this,arguments)||this};
_.O(S1,_.W);S1.prototype.computeStyle=function(R){return R};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],S1.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],S1.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.p("design:type",String)],S1.prototype,"style_",void 0);_.A([_.pu({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],S1);
_.m(S1,"yt-channel-thumbnail-with-link-renderer",function(){if(E3Y===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;k1L===void 0&&(k1L=document.createElement("template"));var v=k1L;u.call(y,v.content.cloneNode(!0),R.content.firstChild);E3Y=R}R=E3Y;return R},{mode:2});var YO=function(){var R=_.W.apply(this,arguments)||this;R.modernTypography=_.f("web_modern_typography");return R};
_.O(YO,_.W);YO.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"}}}};
YO.prototype.computeTitleStyle=function(R){return R||null};
YO.prototype.computeAvatarStyle=function(R){return R||null};
YO.prototype.computeShowNavigationButton=function(R,y){return!(R==null||!R.navigationButton||y)};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],YO.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],YO.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],YO.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.p("design:type",String)],YO.prototype,"titleStyle",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.p("design:type",String)],YO.prototype,"avatarStyle",void 0);_.A([_.r(),_.p("design:type",Boolean)],YO.prototype,"hideNavigationButton",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],YO.prototype,"isModernSd",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],YO.prototype,"modernTypography",void 0);
_.A([_.q({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],YO);
_.m(YO,"ytd-rich-list-header-renderer",function(){if(Uxc!==void 0)return Uxc;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Uxc=R},{mode:_.TN("kevlar_poly_si_batch_j058")?1:2});var LW=function(){return _.W.apply(this,arguments)||this};
_.O(LW,_.W);LW.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],LW.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],LW.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],LW.prototype,"data",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],LW.prototype,"isSearch",void 0);_.A([_.q({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],LW);
_.m(LW,"ytd-preview-card-renderer",function(){if(dxG!==void 0)return dxG;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return dxG=R},{mode:1});var $x5;var s$=function(){return _.W.apply(this,arguments)||this};
_.O(s$,_.W);s$.prototype.configureRendererStamper=function(){return{"data.menu":lH}};
s$.prototype.dataChanged=function(){var R=this.get("colorExtractionPalette.section1Color",this.data);R=_.aH(R);_.oX(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":R})};
s$.prototype.computeCardStyle=function(R){return this.get("style.value",R)||null};
s$.prototype.dataChanged=s$.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],s$.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],s$.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.c4),_.p("design:type",Object)],s$.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],s$.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.p("design:type",String)],s$.prototype,"cardStyle",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],s$.prototype,"dataChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],s$);
_.m(s$,"ytd-compact-channel-recommendation-card-renderer",function(){if($x5!==void 0)return $x5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return $x5=R},{mode:1});var q1g;var XjT;var zZ=function(){var R=_.W.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};
_.O(zZ,_.W);_.J=zZ.prototype;_.J.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.J.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.J.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var R=_.hw(this.hostElement),y=R.childNodes,u=document.createDocumentFragment(),v=R.childNodes.length-1;v>=0;v--)_.hw(u).appendChild(y[v]);_.f("enable_shadydom_free_scoped_node_methods")?_.b8(this.hostElement).appendChild(u):R.appendChild(u)}};
_.J.ready=function(){var R=this;_.s7(function(){R.initChildrenObserver()},1)};
_.J.attached=function(){var R;(R=this.resizeObserver)==null||R.observe(this.content)};
_.J.detached=function(){this.detachObserver()};
_.J.toggle=function(R,y){this.canToggle&&(this.isToggled=y,_.Ko(this.hostElement,"yt-refit"),R&&R.stopPropagation())};
_.J.reset=function(){this.childrenChanged()};
_.J.onIronResize=function(){this.recomputeOnResize&&!_.f("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.J.computeIsMoreVisible=function(R,y){return R&&!y};
_.J.computeShouldUseNumberOfLines=function(R){try{return!!R&&window.CSS.supports("-webkit-line-clamp","1")}catch(y){}return!1};
_.J.computeIsLessVisible=function(R,y){return R&&y};
_.J.observeCollapsedHeightAndMaxLines=function(){var R=this.collapsedHeight,y=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.oX(this.hostElement,{"--ytd-expander-max-lines":""+y,"--ytd-expander-collapsed-height":""}):_.oX(this.hostElement,{"--ytd-expander-collapsed-height":R+"px","--ytd-expander-max-lines":""})};
_.J.handleMoreTap=function(R){this.disableToggle||(_.Ko(this.hostElement,"yt-expander-more-tapped"),this.toggle(R,!0))};
_.J.handleLessTap=function(R){_.Ko(this.hostElement,"yt-expander-less-tapped");this.toggle(R,!1)};
_.J.initChildrenObserver=function(){var R=this;this.observer=new MutationObserver(function(){R.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.f("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.v2(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var y;(y=R.resizeThrottle)==null||y.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.J.childrenChanged=function(){var R=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){NR(function(){R.canToggleJobId=0;R.calculateCanCollapse()})}))};
_.J.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};
_.J.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.J.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.CQ("collapsed-changed",this.collapsed))};
_.J.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.CQ("is-toggled-changed",this.isToggled))};
_.J.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.CQ("can-toggle-changed",this.canToggle))};
_.RR.Object.defineProperties(zZ.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
zZ.prototype.canToggleChangedForBinding=zZ.prototype.canToggleChangedForBinding;zZ.prototype.isToggledChangedForBinding=zZ.prototype.isToggledChangedForBinding;zZ.prototype.collapsedChangedForBinding=zZ.prototype.collapsedChangedForBinding;zZ.prototype.observeCollapsedHeightAndMaxLines=zZ.prototype.observeCollapsedHeightAndMaxLines;zZ.prototype.onIronResize=zZ.prototype.onIronResize;zZ.prototype.reversedChanged=zZ.prototype.reversedChanged;zZ.prototype.toggledChanged=zZ.prototype.toggledChanged;
zZ.prototype.alwaysToggleableChanged=zZ.prototype.alwaysToggleableChanged;_.A([_.n(_.qv),_.p("design:type",Object)],zZ.prototype,"ironResizableBehavior",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],zZ.prototype,"alignAuto",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],zZ.prototype,"collapsed",void 0);_.A([_.r(),_.p("design:type",Object)],zZ.prototype,"isToggled",void 0);_.A([_.r(),_.p("design:type",Object)],zZ.prototype,"alwaysCollapsed",void 0);
_.A([_.r(),_.p("design:type",Object)],zZ.prototype,"canToggle",void 0);_.A([_.r(),_.p("design:type",Object)],zZ.prototype,"collapsedHeight",void 0);_.A([_.r(),_.p("design:type",Object)],zZ.prototype,"disableToggle",void 0);_.A([_.r(),_.p("design:type",Object)],zZ.prototype,"alwaysToggleable",void 0);_.A([_.r(),_.p("design:type",Object)],zZ.prototype,"reversed",void 0);_.A([_.r(),_.p("design:type",Number)],zZ.prototype,"maxNumberOfLines",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.p("design:type",Object)],zZ.prototype,"shouldUseNumberOfLines",void 0);_.A([_.r(),_.p("design:type",Object)],zZ.prototype,"recomputeOnResize",void 0);_.A([_.O7("#content"),_.p("design:type",HTMLDivElement)],zZ.prototype,"content",void 0);_.A([_.GJ("alwaysToggleable"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zZ.prototype,"alwaysToggleableChanged",null);
_.A([_.GJ("isToggled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zZ.prototype,"toggledChanged",null);_.A([_.G("canToggleJobId"),_.p("design:type",Object),_.p("design:paramtypes",[])],zZ.prototype,"isResetting",null);_.A([_.e0("reversed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zZ.prototype,"reversedChanged",null);
_.A([_.fu("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zZ.prototype,"onIronResize",null);_.A([_.e0("maxNumberOfLines","collapsedHeight"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zZ.prototype,"observeCollapsedHeightAndMaxLines",null);_.A([_.e0("collapsed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zZ.prototype,"collapsedChangedForBinding",null);
_.A([_.e0("isToggled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zZ.prototype,"isToggledChangedForBinding",null);_.A([_.e0("canToggle"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zZ.prototype,"canToggleChangedForBinding",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-expander"})],zZ);
_.m(zZ,"ytd-expander",function(){if(XjT!==void 0)return XjT;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return XjT=R},{mode:1});var go=function(){return _.W.apply(this,arguments)||this};
_.O(go,_.W);go.prototype.computeIsCarousel=function(R){return!!R.isCarousel};
go.prototype.observeLightsourcePalette=function(){var R,y=(R=this.data)==null?void 0:R.vibrantsourceColorPaletteData;y&&_.mx(this.hostElement,y)};
go.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
go.prototype.observeLightsourcePalette=go.prototype.observeLightsourcePalette;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],go.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],go.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],go.prototype,"data",void 0);_.A([_.r({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],go.prototype,"isCarousel",void 0);
_.A([_.e0("data.vibrantsourceColorPaletteData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],go.prototype,"observeLightsourcePalette",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],go);
_.m(go,"ytd-media-upsell-renderer",function(){if(q1g!==void 0)return q1g;var R=document.createElement("template");_.H(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="EXPAND" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="COLLAPSE" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');R.content.insertBefore(_.t().content.cloneNode(!0),
R.content.firstChild);return q1g=R},{mode:2});var mxc;var CW=function(){var R=_.W.apply(this,arguments)||this;R.JSC$14864_playerEvents=new Map;R.listeningToPlayer=!1;R.startX=0;R.active=!1;R.shouldShowButtons=_.f("web_buttons_hidden_killswitch");R.isHighlighted=!1;R.useHighlightStyling=_.f("web_enable_deeper_metadata_highlight_styling");R.modern=_.f("kevlar_modern_sd");R.enableProblemWalkthrough=_.f("problem_walkthrough_sd");return R};
_.O(CW,_.W);_.J=CW.prototype;
_.J.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}}}}}};
_.J.created=function(){this.JSC$14864_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.J.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.BN(this,this.onRepeatButtonToggle));_.f("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.BN(this,this.onActiveUpdate))};
_.J.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.BN(this,this.onRepeatButtonToggle));_.f("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.BN(this,this.onActiveUpdate))};
_.J.onDataChanged=function(){this.removePlayerListeners()};
_.J.onColorPaletteChange=function(){var R={},y;if(_.EZ()==="USER_INTERFACE_THEME_DARK"&&((y=this.data)==null?0:y.darkColorPalette)){var u=this.data.darkColorPalette;R["--ytd-macro-markers-list-item-background-color"]=_.Sq(this.get("section2Color",u))}else{var v;_.EZ()==="USER_INTERFACE_THEME_LIGHT"&&((v=this.data)==null?0:v.lightColorPalette)&&(u=this.data.lightColorPalette,R["--ytd-macro-markers-list-item-background-color"]=_.Sq(this.get("section3Color",u)))}u?(R["--ytd-macro-markers-list-item-title-color"]=
_.Sq(this.get("primaryTitleColor",u)),R["--ytd-macro-markers-list-item-secondary-color"]=_.Sq(this.get("secondaryTitleColor",u)),R["--ytd-macro-markers-list-item-timestamp-background-color"]=_.Sq(this.get("section1Color",u)),this.customButtonProperties={customColors:{color:_.Sq(this.get("primaryTitleColor",u))}},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);_.oX(this.hostElement,R)};
_.J.onEndpointMouseDown=function(R){this.startX=R.clientX};
_.J.onEndpointClick=function(R){var y=this,u,v,Q;return _.I(function(M){if(M.nextAddress==1){if(y.startX!==R.clientX)return R.preventDefault(),M.return();y.data&&y.ytRendererBehavior.logExplicitClick(y.data);if(!y.seekWithAnimationOnClick)return M.jumpTo(0);if(R.button!==0||R.shiftKey||R.altKey||R.metaKey||R.ctrlKey||_.JF(_.u8(R),y.hostElement,["BUTTON".toString()]))return M.return();R.stopPropagation();R.preventDefault();return y.data?M.yield(_.hF().getPlayerPromise(),3):M.return()}u=M.yieldResult;
Q=(v=_.e(y.data.onTap,_.zM))==null?void 0:v.startTimeSeconds;Q!==void 0&&u.seekToTimeWithAnimation(Q*1E3,_.u7(y.data.title));_.f$(M)})};
_.J.computeLayout=function(R){return R};
_.J.computeIsHighlighted=function(R){return!!R};
_.J.computeCarouselType=function(R){return R};
_.J.hideModernCarousel=function(R){return this.modern&&this.hideThumbnail(R)};
_.J.hideThumbnail=function(R){return this.enableProblemWalkthrough&&R!==null&&R==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.J.onRepeatButtonToggle=function(R){var y=this;R.detail.toggled&&_.hF().getPlayerPromise().then(function(u){y.ytPlayerListenerBehavior.listenToPlayerEvents(u,y.JSC$14864_playerEvents);y.listeningToPlayer=!0})};
_.J.onLoopRangeChange=function(R){var y=_.hw(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(y){var u=y.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",y.polymerController.data);if(u){var v=Number(u.endTimeMs);if(Number(u.startTimeMs)!==(R==null?void 0:R.startTimeMs)||v!==(R==null?void 0:R.endTimeMs))y.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.J.removePlayerListeners=function(){var R=this;this.listeningToPlayer&&_.hF().getPlayerPromise().then(function(y){R.ytPlayerListenerBehavior.unlistenFromPlayerEvents(y,R.JSC$14864_playerEvents);R.listeningToPlayer=!1})};
_.J.onActiveUpdate=function(R){this.active=R.detail.active};
CW.prototype.onColorPaletteChange=CW.prototype.onColorPaletteChange;CW.prototype.onDataChanged=CW.prototype.onDataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],CW.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],CW.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.Ra.YtPlayerListenerBehavior),_.p("design:type",_.yH)],CW.prototype,"ytPlayerListenerBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],CW.prototype,"data",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],CW.prototype,"useCustomColors",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],CW.prototype,"active",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],CW.prototype,"shouldShowButtons",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.p("design:type",String)],CW.prototype,"layout",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.p("design:type",Object)],CW.prototype,"isHighlighted",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],CW.prototype,"useHighlightStyling",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],CW.prototype,"modern",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],CW.prototype,"enableProblemWalkthrough",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.p("design:type",String)],CW.prototype,"carouselType",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],CW.prototype,"useColorSampling",void 0);_.A([_.r(),_.p("design:type",Boolean)],CW.prototype,"seekWithAnimationOnClick",void 0);_.A([_.r(),_.p("design:type",Object)],CW.prototype,"customButtonProperties",void 0);
_.A([_.O7("#repeat-button"),_.p("design:type",HTMLElement)],CW.prototype,"repeatButton",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],CW.prototype,"onDataChanged",null);_.A([_.e0("data.lightColorPalette","data.darkColorPalette"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],CW.prototype,"onColorPaletteChange",null);_.A([_.q({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],CW);
_.m(CW,"ytd-macro-markers-list-item-renderer",function(){if(mxc!==void 0)return mxc;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return mxc=R},{mode:1});var AYT;var DxV;var Rp=function(){var R=_.W.apply(this,arguments)||this;R.modernTypography=_.f("web_modern_typography");return R};
_.O(Rp,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Rp.prototype,"ytRendererBehavior",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Rp.prototype,"modernTypography",void 0);_.A([_.r(),_.p("design:type",Object)],Rp.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],Rp);
_.m(Rp,"ytd-title-and-button-list-header-renderer",function(){if(DxV!==void 0)return DxV;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return DxV=R},{mode:1});var pjK;var tkw=new _.Jx("BUTTON_RENDERER_WIZ_TOKEN"),cYG=new _.Jx("BUTTON_RENDERER_TOKEN");_.yZ=_.Jd(function(R){var y=_.ua().resolve(_.yN(tkw));if(y)return _.F(y,Object.assign({},R));var u=_.ua().resolve(cYG);return u?_.F(IT8,null,function(){return _.F(gI,null,function(){var v,Q,M,K,h,b,N,T,x,B,l,Z;return void u(R.data(),{onButtonClickCallback:R.onButtonClickCallback,shouldShowIcons:(v=R.shouldShowIcons)==null?void 0:v.call(R),icon:(Q=R.icon)==null?void 0:Q.call(R),processAllEndpoints:(M=R.processAllEndpoints)==null?void 0:M.call(R),preventDefault:(K=R.preventDefault)==null?void 0:K.call(R),
stopPropagation:(h=R.stopPropagation)==null?void 0:h.call(R),disableButtonRendererClickHandling:(b=R.disableButtonRendererClickHandling)==null?void 0:b.call(R),className:(N=R.className)==null?void 0:N.call(R),buttonOverrides:(T=R.buttonOverrides)==null?void 0:T.call(R),forceModernIconButton:(x=R.forceModernIconButton)==null?void 0:x.call(R),isSubscribe:(B=R.isSubscribe)==null?void 0:B.call(R),alignByText:(l=R.alignByText)==null?void 0:l.call(R),forceDisabled:(Z=R.forceDisabled)==null?void 0:Z.call(R)})})}):
_.F(_.vu,null)},"fa");
_.yZ.idomCompat=!0;var aCc=_.Jd(function(R){var y=R.data,u=_.Qj(R.useSquareAspectRatio,!1);return _.F("dismissed-mini-game-card-view-model",null,_.F(_.w,{cond:function(){var v,Q;return(v=y().responseText)==null?void 0:(Q=v.runs)==null?void 0:Q.length},
then:function(){var v={};return _.F("div",{class:_.Oy("yt-mini-game-card-view-model__dismissed-card",(v["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!u()},v["yt-mini-game-card-view-model--dismissed-square-card"]=u,v))},_.F("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.F(_.w,{cond:function(){return y().responseText.runs[0].text},
then:function(Q){return _.F("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:Q},Q)}}),_.F(_.mk,{data:function(){return y().buttons}},{buttonRenderer:_.yZ,
buttonViewModel:_.fQ})))}}))},"ga");var CSc=_.Jd(function(R){R=_.jb(R,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var y=R.data,u=R.useFullWidth,v=R.isDesktopWeb,Q=R.addSearchResultTopMargin,M=function(){return y().layout},K=function(){return y().title},h=function(){return y().metadataText?y().metadataText:y().genre},b=function(){return y().channelName},N=function(){return y().image},T=function(){return y().colorPalette},x=function(){return y().actionButton},B=function(){return y().overflowButton},
l=function(){return y().avatar},Z=function(){var D={};
D=_.Oy("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(D["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return v()},D));
return _.F("div",{class:D},_.F(S1c,{imageData:N,colorPalette:T}),_.F(Y1g,{onTap:function(){return y().onTap},
imageData:N,accessibilityText:function(){return y().accessibilityText},
overlayBadgeText:function(){return y().overlayBadgeText},
iconName:function(){return y().iconName},
unplayableInlinePlaybackIconName:function(){return y().unplayableInlinePlaybackIconName},
isDesktopWeb:v}),_.F(_.w,{cond:function(){return!v()},
then:function(){return _.F(_.vu,null,_.F(LDK,{layout:M,colorPalette:T,isDesktopWeb:v,overflowButton:B,avatar:l,onTap:function(){return y().onTap},
genre:h,title:K,channelName:b}),_.F(stT,{actionButton:x}))}}))},P=function(){var D={};
D=_.Oy((D["yt-mini-game-card-view-model--search-result-desktop"]=function(){return v()},D["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!v()},D["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return Q()},D));
return _.F("div",{class:D},Z(),_.F(zVG,{description:function(){return y().description},
isDesktopWeb:v,title:K,genre:h,onTap:function(){return y().onTap},
actionButton:x,overflowButton:B,avatar:l,channelName:b}))},k=function(){var D={};
D=_.Oy("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(D["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return v()},D["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return v()&&y().width===135},D["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return v()},D["yt-mini-game-card-view-model--big-metadata-font"]=function(){return y().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},D["yt-mini-game-card-view-model--use-full-width"]=
function(){return u()},D["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!x()},D));
return _.F("div",{class:D},_.F(g3g,{colorPalette:T,isDesktopWeb:v,onTap:function(){return y().onTap},
accessibilityText:function(){return y().accessibilityText},
overlayBadgeText:function(){return y().overlayBadgeText},
iconName:function(){return y().iconName},
unplayableInlinePlaybackIconName:function(){return y().unplayableInlinePlaybackIconName},
actionButton:x,imageData:N}),_.F(LDK,{layout:M,colorPalette:T,isDesktopWeb:v,overflowButton:B,avatar:l,onTap:function(){return y().onTap},
genre:h,title:K,channelName:b}))},E=function(){var D={};
D=_.Oy("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(D["yt-mini-game-card-view-model--square-card-desktop"]=function(){return v()},D["yt-mini-game-card-view-model--use-full-width"]=function(){return u()},D));
return _.F("div",{class:D},_.F(Y1g,{onTap:function(){return y().onTap},
imageData:N,accessibilityText:function(){return y().accessibilityText},
overlayBadgeText:function(){return y().overlayBadgeText},
iconName:function(){return y().iconName},
unplayableInlinePlaybackIconName:function(){return y().unplayableInlinePlaybackIconName},
isDesktopWeb:v}),_.F(LDK,{layout:M,colorPalette:T,isDesktopWeb:v,overflowButton:B,avatar:l,onTap:function(){return y().onTap},
genre:h,title:K,channelName:b}))};
return _.F("mini-game-card-view-model",{class:R.className},_.F(_.Z6,null,_.F(_.lr,{when:function(){return M()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return k()}),_.F(_.lr,{when:function(){return M()==="MINI_APP_LAYOUT_SQUARE"}},function(){return E()}),_.F(_.lr,{when:function(){return M()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return P()})))},"ha");
CSc.idomCompat=!0;var stT=_.Jd(function(R){var y=_.Qj(R.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.F(_.mk,{data:R.actionButton},{buttonViewModel:function(u){return _.F("div",{class:y},_.F(_.fQ,{data:u.data}))}})},"ia"),Y1g=_.Jd(function(R){var y=R.onTap;
var u=R.imageData;var v=R.accessibilityText;var Q=R.overlayBadgeText;var M=R.iconName;var K=R.unplayableInlinePlaybackIconName;R=R.isDesktopWeb;return _.F(_.zw,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:y},_.F(_.MR,{data:u,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(v==null?void 0:v())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.F(RZ5,{overlayBadgeText:Q,iconName:M,unplayableInlinePlaybackIconName:K,isDesktopWeb:R}))},"ja"),RZ5=_.Jd(function(R){var y=R.overlayBadgeText;
var u=R.iconName;var v=R.unplayableInlinePlaybackIconName;var Q=R.isDesktopWeb;return _.F("div",{class:"yt-mini-game-card-view-model__badge-container"},_.F(_.w,{cond:u,then:function(M){return _.F("div",{class:"yt-mini-game-card-view-model__badge"},_.F("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.F(_.W_,{icon:M,className:"yt-mini-game-card-view-model__icon",size:12}),_.F("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},y)))}}),_.F(_.w,{cond:function(){return!u()&&
y()},
then:function(){return _.F("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},y)}}),_.F(_.w,{cond:function(){return v()&&Q()},
then:function(){return _.F("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.F(_.W_,{icon:v,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ka"),S1c=_.Jd(function(R){var y=R.colorPalette;
var u=R.imageData;var v=function(){return y().vibrantColorPalette?y().vibrantColorPalette.section2Color:y().sectionTwoColor};
return _.F(_.vu,null,_.F("div",{class:"yt-mini-game-card-view-model__background-base",style:_.P_({"background-color":function(){return Yv(v(),"1")}})}),_.F("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.P_({"background-image":function(){return"url("+u().sources[0].url+")"}})}),_.F("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.P_({background:function(){return"linear-gradient(180deg,\n    "+Yv(v(),".8")+" 0%,\n    "+Yv(v(),".4")+" 25%,\n    "+Yv(y().vibrantColorPalette?y().vibrantColorPalette.section4Color:y().sectionFourColor,".8")+" 100%)"}})}))},"la"),LDK=_.Jd(function(R){var y=R.layout;
var u=R.colorPalette;var v=R.overflowButton;var Q=R.avatar;var M=R.onTap;var K=R.title;var h=R.channelName;var b=R.genre;var N=function(){var T;return y()!=="MINI_APP_LAYOUT_SQUARE"&&((T=u())==null?0:T.textPrimaryColor)?"color: "+Yv(u().textPrimaryColor,".7"):""};
return _.F("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.F(_.w,{cond:Q,then:function(){return _.F("div",{class:"yt-mini-game-card-view-model__avatar"},_.F(_.mk,{data:Q},{avatarViewModel:_.XS}))}}),_.F(_.zw,{command:M,
className:"yt-mini-game-card-view-model__metadata-details"},_.F("h3",{class:"yt-mini-game-card-view-model__title",title:K},K),_.F(_.w,{cond:Q,then:function(){return _.F("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.F("span",{class:"yt-mini-game-card-view-model__genre",title:h,style:N},h),_.F("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:N},b))},
else:function(){return _.F("span",{class:"yt-mini-game-card-view-model__genre",title:b},b)}})),_.F("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.F(_.mk,{data:v},{buttonViewModel:function(T){var x=T.data;
return _.F(_.fQ,{data:function(){return Object.assign({},x(),{customFontColor:y()==="MINI_APP_LAYOUT_SINGLETON"?x().customFontColor:void 0})}})}})))},"ma"),g3g=_.Jd(function(R){var y=R.colorPalette;
var u=R.isDesktopWeb;var v=R.onTap;var Q=R.accessibilityText;var M=R.overlayBadgeText;var K=R.iconName;var h=R.unplayableInlinePlaybackIconName;var b=R.actionButton;R=R.imageData;return _.F("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.F(S1c,{imageData:R,colorPalette:y}),_.F(Y1g,{onTap:v,imageData:R,accessibilityText:Q,overlayBadgeText:M,iconName:K,unplayableInlinePlaybackIconName:h,isDesktopWeb:u}),_.F(_.w,{cond:function(){return b==null?void 0:b()},
then:function(){return _.F(stT,{actionButton:b})}}))},"na"),zVG=_.Jd(function(R){var y=R.description;
var u=R.isDesktopWeb;var v=R.title;var Q=R.genre;var M=R.onTap;var K=R.actionButton;var h=R.overflowButton;var b=R.avatar;R=R.channelName;var N={};N=_.Oy("yt-mini-game-card-view-model--search-result-metadata-wrapper",(N["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=u,N["yt-mini-game-card-view-model--show-unplayable-on-hover"]=u,N["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!u()},N));
var T={};T=_.Oy("yt-mini-game-card-view-model__search-result-info-row",(T["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!u()},T));
return _.F("div",{class:N},_.F("div",{class:T},_.F(_.zw,{command:M,className:"yt-mini-game-card-view-model__metadata-details"},_.F("h3",{class:"yt-mini-game-card-view-model__title",title:v},v),_.F("span",{class:"yt-mini-game-card-view-model__genre",title:Q},Q)),_.F(stT,{actionButton:K,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.F("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.F(_.mk,{data:h},{buttonViewModel:_.fQ}))),_.F("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.F("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.F("div",{class:"yt-mini-game-card-view-model__avatar"},_.F(_.mk,{data:b},{avatarViewModel:function(x){var B=x.data;return _.F(_.XS,{data:function(){return Object.assign({},B(),{avatarImageSize:u()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.F(_.zw,{command:M,
className:"yt-mini-game-card-view-model__description"},_.F("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},R)),_.F(_.zw,{command:M,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.F("div",null)))),_.F(_.w,{cond:u,then:function(){return _.F(_.zw,{command:M,className:"yt-mini-game-card-view-model__description"},y)}}))},"oa");_.h6(CSc,"mini-game-card-view-model",{props:{data:_.vR,className:_.vR,useFullWidth:_.vR,isDesktopWeb:_.vR,addSearchResultTopMargin:_.vR}});_.h6(aCc,"dismissed-mini-game-card-view-model",{props:{data:_.vR,useSquareAspectRatio:_.vR}});var u2=function(){var R=_.W.apply(this,arguments)||this;R.isSearch=!1;R.isRichGrid=!1;return R};
_.O(u2,_.W);_.J=u2.prototype;_.J.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.J.dismissibleItemOnYtServiceRequestSent=function(R,y){y.actions&&this.dismissibleItemProcessActions(R,y.actions)};
_.J.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.J.dataChanged=function(){this.dismissibleItemReset()};
_.J.dismissibleItemProcessActions=function(R,y){for(var u=0;u<y.length;u++){var v=y[u];_.e(v,_.Pe)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.e(v,_.Pe)),R.stopPropagation())}};
_.J.dismissibleItemHandleReplaceEnclosingAction=function(R){this.dismissedRenderer=R.item;this.isDismissed=!0};
_.RR.Object.defineProperties(u2.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(){var R;return!!this.data&&!((R=this.dismissedRenderer)==null?0:R.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.dismissedRenderer)==null||!R.notificationMultiActionRenderer)}}});
u2.prototype.dataChanged=u2.prototype.dataChanged;u2.prototype.dismissibleItemOnRequestSent=u2.prototype.dismissibleItemOnRequestSent;u2.prototype.dismissibleItemOnYtServiceRequestSent=u2.prototype.dismissibleItemOnYtServiceRequestSent;_.A([_.r(),_.p("design:type",Object)],u2.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],u2.prototype,"isSearch",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],u2.prototype,"isDismissed",void 0);
_.A([_.r(),_.p("design:type",Object)],u2.prototype,"dismissedRenderer",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],u2.prototype,"isRichGrid",void 0);_.A([_.G("data.layout"),_.p("design:type",Object),_.p("design:paramtypes",[])],u2.prototype,"useSquareAspectRatio",null);_.A([_.G("data","dismissedRenderer"),_.p("design:type",Object),_.p("design:paramtypes",[])],u2.prototype,"showCard",null);
_.A([_.G("data","dismissedRenderer"),_.p("design:type",Object),_.p("design:paramtypes",[])],u2.prototype,"showDismissed",null);_.A([_.fu("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.z3]),_.p("design:returntype")],u2.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.A([_.fu("yt-service-request-sent-button-renderer"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],u2.prototype,"dismissibleItemOnRequestSent",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],u2.prototype,"dataChanged",null);_.A([_.pu({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],u2);
_.m(u2,"ytd-mini-game-card-view-model",function(){if(pjK!==void 0)return pjK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return pjK=R},{mode:_.TN("kevlar_poly_si_batch_j081")?1:2});var yJV;var uzT;var vx=function(){return _.y9.apply(this,arguments)||this};
_.O(vx,_.y9);vx.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
vx.prototype.getContinuationUrl=function(R){var y={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(y.itct=this.data.clickTrackingParams);return _.LG(R,y)};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],vx.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],vx.prototype,"data",void 0);_.A([_.pu({is:"yt-reload-continuation",noInjection:!0})],vx);var vrV;var QWc;var QZ=function(){var R=_.W.apply(this,arguments)||this;R.notificationData={};return R};
_.O(QZ,_.W);_.J=QZ.prototype;_.J.isMenuExpanded=function(R){return R&&R.length<=1?"undefined":"false"};
_.J.dataChanged_=function(){this.selected=void 0;var R=this.computeSelectedIndex_(this.data);R>=0&&(this.selected=R);R=this.data&&this.data.length>1;_.FN(this.hostElement,"has-items",R);_.hw(this.hostElement).querySelector("#label").tabIndex=R?0:-1};
_.J.onDropdownOpen=function(){var R=_.$I();if(this.parentTrackingParams&&this.data){var y=_.U4(this.parentTrackingParams);this.data.forEach(function(u){R&&y&&u.trackingParams&&(u=_.U4(u.trackingParams),_.ak(R,y,u),_.Lo(R,[u]))})}else this.parentTrackingParams||_.kT(new _.OL("No parent tracking params passed in for yt-dropdown-menu."))};
_.J.hasNotification=function(R){var y;if(R.targetId&&((y=this.notificationData)==null?0:y.targetId)){var u;return R.targetId===((u=this.notificationData)==null?void 0:u.targetId)}};
_.J.computeSelectedIndex_=function(R){if(R)for(var y=0,u=R.length;y<u;y++)if(R[y].selected)return y;return-1};
_.J.computeLabel_=function(R){return this.data&&R!=void 0?this.data[R].title:""};
_.J.computeShowIcon_=function(R,y){return!y&&!!R};
_.J.computeVerticalOffset_=function(R){return R?36:0};
_.J.computeEndpoint_=function(R){return R.endpoint||R.navigationEndpoint};
_.J.onLabelClick_=function(R){this.data&&this.data.length<=1?R.stopPropagation():this.menuExpanded="true"};
_.J.onIronActivate_=function(R){R=R.detail.item;var y=_.hw(this.hostElement).querySelector("#repeat").itemForElement(R);if(y&&y.trackingParams){var u=_.$I(),v=_.U4(y.trackingParams);u&&_.zP(u,v)}if(y&&y.serviceEndpoint)_.f("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(y.serviceEndpoint):_.Fh(this.hostElement,[y.serviceEndpoint]),_.Ko(this.hostElement,"yt-playlist-reloading");else a:{if((y=R.querySelector("yt-supported-renderers"))&&
(y=y.rendererElement)&&y.is=="yt-reload-continuation"){y.trigger();break a}(R=R.querySelector("yt-reload-continuation"))&&R.trigger()}};
_.J.onTap_=function(R){R.preventDefault()};
_.J.onItemTap_=function(R){this.ytEndpointBehavior.onEndpointTap_(R)};
_.J.onLinkFocus_=function(R){try{var y=R.target}catch(v){}if(y){var u=y.querySelector("tp-yt-paper-item");u&&_.zJ(this,"focus",function(){u.focus()})}};
_.J.onMenuClose_=function(){this.menuExpanded="false"};
_.J.isLabelIconActive_=function(R){return R==="true"};
_.J.computeHasSubtitle_=function(R){return!!R};
_.J.computeHrefForItem_=function(R){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(R))};
_.J.updateSelectedFromBinding=function(R){this.selected=R.detail.value};
_.RR.Object.defineProperties(QZ.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
QZ.prototype.onMenuClose_=QZ.prototype.onMenuClose_;QZ.prototype.onTap_=QZ.prototype.onTap_;QZ.prototype.onIronActivate_=QZ.prototype.onIronActivate_;QZ.prototype.onDropdownOpen=QZ.prototype.onDropdownOpen;QZ.prototype.dataChanged_=QZ.prototype.dataChanged_;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],QZ.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.ZL.YtEndpointBehavior),_.p("design:type",Object)],QZ.prototype,"ytEndpointBehavior",void 0);
_.A([_.r(),_.p("design:type",Array)],QZ.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],QZ.prototype,"parentTrackingParams",void 0);_.A([_.r(),_.p("design:type",Object)],QZ.prototype,"selected",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],QZ.prototype,"useLabel",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],QZ.prototype,"useComputedAriaLabel",void 0);_.A([_.r(),_.p("design:type",String)],QZ.prototype,"icon",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],QZ.prototype,"iconLabel",void 0);_.A([_.r(),_.p("design:type",String)],QZ.prototype,"ariaLabel",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],QZ.prototype,"disabled",void 0);_.A([_.r({computed:"isMenuExpanded(data)"}),_.p("design:type",String)],QZ.prototype,"menuExpanded",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],QZ.prototype,"closeOnActivate",void 0);
_.A([_.r({reflectToAttribute:!0,value:_.f("web_modern_buttons")}),_.p("design:type",Boolean)],QZ.prototype,"modernButtons",void 0);_.A([_.r(),_.p("design:type",Object)],QZ.prototype,"notificationData",void 0);_.A([_.G("ariaLabel, selected"),_.r(),_.p("design:type",String),_.p("design:paramtypes",[])],QZ.prototype,"computedAriaLabel",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],QZ.prototype,"dataChanged_",null);
_.A([_.fu("paper-dropdown-open"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],QZ.prototype,"onDropdownOpen",null);_.A([_.fu("iron-activate"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],QZ.prototype,"onIronActivate_",null);_.A([_.fu("tap"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],QZ.prototype,"onTap_",null);
_.A([_.fu("iron-overlay-closed"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],QZ.prototype,"onMenuClose_",null);_.A([_.pu({is:"yt-dropdown-menu",disableElementRegistration:!0})],QZ);
_.m(QZ,"yt-dropdown-menu",function(){if(QWc===void 0){var R=document.createElement("template");_.H(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$="[[computedAriaLabel]]" on-tap="onLabelClick_">\n    <template is="dom-if" if="[[computeShowIcon_(icon, useLabel)]]" class="style-scope yt-dropdown-menu">\n      <yt-icon id="label-icon" active="[[isLabelIconActive_(menuExpanded)]]" icon="[[icon]]" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n      <div id="icon-label" class="style-scope yt-dropdown-menu">[[iconLabel]]</div>\n    </template>\n    <template is="dom-if" if="[[useLabel]]" class="style-scope yt-dropdown-menu">\n      <div id="label-text" style-target="label-text" class="style-scope yt-dropdown-menu">[[computeLabel_(selected)]]</div>\n      <yt-icon id="label-icon" icon="expand" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n    </template>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="menu" class="dropdown-content style-scope yt-dropdown-menu" slot="dropdown-content" selected="[[selected]]" on-selected-changed="updateSelectedFromBinding">\n    <template id="repeat" is="dom-repeat" items="[[data]]" class="style-scope yt-dropdown-menu">\n      <a class="yt-simple-endpoint style-scope yt-dropdown-menu" href$="[[computeHrefForItem_(item)]]" data="[[computeEndpoint_(item)]]" on-focus="onLinkFocus_" on-tap="onItemTap_">\n        <tp-yt-paper-item class="style-scope yt-dropdown-menu">\n          <tp-yt-paper-item-body two-line$="[[computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n            <div id="item-with-badge" class="style-scope yt-dropdown-menu">\n              <div class="item style-scope yt-dropdown-menu">[[item.title]]\n                <span class="notification style-scope yt-dropdown-menu" hidden$="[[!hasNotification(item,notificationData)]]"></span>\n              </div>\n              <ytd-badge-supported-renderer hidden="[[!item.badge]]" top-standalone-badge="[[item.badge]]" class="style-scope yt-dropdown-menu">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div secondary="" id="subtitle" hidden="[[!computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n              [[item.subtitle]]\n            </div>\n          </tp-yt-paper-item-body>\n          <yt-reload-continuation data="[[item.continuation.reloadContinuationData]]" class="style-scope yt-dropdown-menu">\n          </yt-reload-continuation>\n        </tp-yt-paper-item>\n      </a>\n    </template>\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');R.content.insertBefore(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;vrV===void 0&&(vrV=document.createElement("template"));var v=vrV;u.call(y,v.content.cloneNode(!0),R.content.firstChild);QWc=R}R=QWc;return R},{mode:2});var ja=function(){var R=_.W.apply(this,arguments)||this;R.hasNotification=!1;return R};
_.O(ja,_.W);ja.prototype.computeId=function(R){return R};
ja.prototype.computeHorizontalAlign=function(R){return R?"right":"left"};
ja.prototype.computeAccessibilityLabel=function(R){var y,u;return((y=R.accessibility)==null?void 0:(u=y.accessibilityData)==null?void 0:u.label)||null};
ja.prototype.notificationDataChanged=function(){var R;this.hasNotification=!!this.notificationData&&!((R=this.data)==null?0:R.icon)};
ja.prototype.notificationDataChanged=ja.prototype.notificationDataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ja.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.Ll.YtLiveChatTooltipTargetingBehavior),_.p("design:type",Object)],ja.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ja.prototype,"data",void 0);_.A([_.r({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.p("design:type",String)],ja.prototype,"id",void 0);
_.A([_.r({value:!1}),_.p("design:type",Boolean)],ja.prototype,"isRightAligned",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],ja.prototype,"disabled",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],ja.prototype,"closeOnActivate",void 0);_.A([_.r(),_.p("design:type",Object)],ja.prototype,"notificationData",void 0);_.A([_.r(),_.p("design:type",Object)],ja.prototype,"hasNotification",void 0);
_.A([_.r({value:!1}),_.p("design:type",Boolean)],ja.prototype,"useComputedAriaLabel",void 0);_.A([_.e0("notificationData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ja.prototype,"notificationDataChanged",null);_.A([_.pu({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],ja);
_.m(ja,"yt-sort-filter-sub-menu-renderer",function(){if(uzT===void 0){var R=document.createElement("template");_.H(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-computed-aria-label="[[useComputedAriaLabel]]" use-label="[[!data.icon.iconType]]" class="style-scope yt-sort-filter-sub-menu-renderer">\n</yt-dropdown-menu>\n<div id="notification" hidden$="[[!hasNotification]]" class="style-scope yt-sort-filter-sub-menu-renderer"></div>');R.content.insertBefore(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;yJV===void 0&&(yJV=document.createElement("template"));var v=yJV;u.call(y,v.content.cloneNode(!0),R.content.firstChild);uzT=R}R=uzT;return R},{mode:2});var jWV=_.H_(H1L);_.Qn(H1L);_.h6(jWV,"place-data-view-model",{props:{data:_.vR}});var MTT=new _.Jx("INLINE_PLAYBACK_HOOK_TOKEN");var JJw=function(R){this.setActiveSlideIndex=R;this.jobIds=[];this.isSlideshowPlaying=!1},K0g=function(R,y){R.isSlideshowPlaying||(R.isSlideshowPlaying=!0,VTb(R),ibg(R,y,0))},VTb=function(R){_.T3(_.WG,function(){R.setActiveSlideIndex(0)},1)},ibg=function(R,y,u){R.jobIds.push(_.T3(_.WG,function(){var v=u<y-1?u+1:0;
R.setActiveSlideIndex(v);ibg(R,y,v)},1800))};var Ipb=new _.Jx("IMAGE_ON_LOAD_HANDLER_TOKEN");var hZg=_.Jd(function(R){return _.F("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.F(_.w,{cond:function(){var y;return(y=R.data())==null?void 0:y.thumbnail},
then:function(y){return _.F(_.MR,{data:y,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"pa");_.bbK=_.Jd(function(R){var y=R.data;var u=R.lockupExperiments;R={};return _.F("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.F("div",{class:_.Oy("ytThumbnailOverlayButtonViewModelButton",(R.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var v;return u&&((v=u())==null?void 0:v.useLegacySizedIconButton)},R))},_.F(_.mk,{data:function(){return y().overlayButton}},{buttonViewModel:function(v){return _.F(_.fQ,{data:v.data,
buttonOverrides:function(){var Q;return u&&((Q=u())==null?0:Q.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0}:void 0}})}})))},"qa");
_.bbK.idomCompat=!0;var F0c=_.Jd(function(R){return _.F("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.nh(function(y){y.preventDefault();return!1})},_.F(_.mk,{data:function(){return R.data().buttons}},{toggleButtonViewModel:function(y){return _.F("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.F(_.$1,{data:y.data}))}}))},"ra");
F0c.idomCompat=!0;var wkY=_.Jd(function(R){var y=function(){var u;return((u=_.e(R.data().rendererContext,_.GC))==null?void 0:u.label)||""};
return _.F("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.F(_.w,{cond:function(){return R.data().image},
then:function(){return _.F("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.F(_.MR,{data:function(){return R.data().image},
alt:y}))}}),_.F(_.w,{cond:function(){return R.data().text},
then:function(){return _.F("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return R.data().text})}}))},"sa");_.Mo=_.Jd(function(R){var y=[],u=function(){var B,l;return asW((B=R.width)==null?void 0:B.call(R),(l=R.height)==null?void 0:l.call(R))},v=_.ua().resolve(_.yN(Ipb)),Q=_.sh("yt-thumbnail-view-model",function(){y.push("elRef.value set");
var B;(B=R.playbackRef)==null||B.call(R,{thumbnailElRef:Q,thumbnail:R.data().image,thumbnailOverlays:R.data().overlays,thumbnailSize:u()})});
_.rB(function(){y.push("onInit");_.GF(function(){y.push("onCleanup")})});
var M=_.Sp(G14),K=function(){var B,l;return(l=(B=R.aspectRatio)==null?void 0:B.call(R))!=null?l:0},h=function(){return(R.data().image?_.Ih4(R.data().image):K())<=1&&K()===0},b=function(){return h()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},N=function(){Q.value||_.kT(new _.OL("Thumbnail elRef.value is null",y.join("\n")));
v&&Q.value&&v(Q.value)},T=function(){var B,l;
return((B=R.hovered)==null?void 0:B.call(R))&&u()!=="large"&&((l=R.data().overlays)==null?void 0:l.some(function(Z){return _.e(Z,Mub)}))},x={};
return _.F("yt-thumbnail-view-model",{class:_.Oy("yt-thumbnail-view-model",R.className,function(){return WDL(K())},function(){var B,l;
a:{var Z=u(),P=(B=R.disableRounding)==null?void 0:B.call(R);B=(l=R.isClip)==null?void 0:l.call(R);if(!P&&!B)switch(Z){case "large":l="yt-thumbnail-view-model--large";break a;case "small":l="yt-thumbnail-view-model--small";break a;default:l="yt-thumbnail-view-model--medium";break a}l=void 0}return l},(x["yt-thumbnail-view-model--cinematic"]=h,x)),
style:_.P_({"background-color":function(){var B,l=h()?(B=R.data().backgroundColor)==null?void 0:B.lightTheme:void 0;return l?Yv(l,"1"):void 0}}),
el:Q},_.F(_.w,{cond:h,then:function(){return _.F("div",{class:"yt-thumbnail-view-model__blurred-image"},_.F(_.MR,{data:function(){return R.data().image},
alt:"",contentMode:b,targetWidth:R.width,onload:N}))}}),_.F("div",{class:"yt-thumbnail-view-model__image"},_.F(_.MR,{data:function(){return R.data().image},
alt:"",contentMode:b,targetWidth:R.width,onload:N}),null),_.F(_.mk,{data:function(){return T()?void 0:R.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:lCg,thumbnailOverlayBadgeViewModel:function(B){return _.F(O1L,{data:B.data,thumbnailSize:u,isClip:R.isClip})},
thumbnailBottomOverlayViewModel:function(B){return _.F(xxc,{data:B.data,thumbnailSize:u,isClip:R.isClip})},
thumbnailOverlayFullViewModel:wkY,thumbnailOverlayButtonViewModel:function(B){return _.F(_.bbK,{data:B.data,lockupExperiments:R.lockupExperiments})}}),_.F(_.mk,{data:function(){var B;
return((B=R.hovered)==null?0:B.call(R))?R.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(B){return _.F(qH,{data:B.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:F0c}),_.F(_.mk,{data:function(){var B;return((B=R.hovered)==null?0:B.call(R))&&M()?R.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:hZg}),_.F(_.w,{cond:R.isClip,then:function(){return _.F("div",{class:"yt-pinking"},_.F("svg",{class:"yt-pinking__pinking-left"},_.F("defs",null,_.F("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.F("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.F("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.F("svg",{class:"yt-pinking__pinking-right"},_.F("defs",null,_.F("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.F("polygon",{class:"yt-pinking__pinking",points:"4,0 0,4 4,8"}))),_.F("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"ta");
_.Mo.idomCompat={callbacks:{playbackRef:!0}};var NDV=_.Jd(function(R){var y=_.V(_.In(-1,void 0,"IOLZ0b")),u=y.next().value,v=y.next().value;_.rB(function(){var Q=new JJw(v);K0g(Q,R.data().thumbnails.length);_.GF(function(){if(Q.isSlideshowPlaying){Q.isSlideshowPlaying=!1;for(var M=Q.jobIds,K=0,h=M.length;K<h;K++)_.WG.cancelJob(M[K]);Q.jobIds.length=0}})});
return _.F("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.F(_.mk,{data:function(){return R.data().thumbnails}},{thumbnailViewModel:function(Q,M){return _.F("div",{class:function(){var K=!R.data().primaryThumbnail,h=M(),b=u(),N=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
K&&h===0&&N.push("yt-collection-thumbnail-slideshow--first-slide");h<=b&&N.push("yt-collection-thumbnail-slideshow--show-slide");return N.join(" ")}},_.F(_.Mo,{data:Q.data,
disableRounding:R.disableRounding}))}}))},"ua");
NDV.idomCompat=!0;var dxU=new _.Jx("DWELL_DETECTOR_REGISTRY_TOKEN");var org=_.Jd(function(R){var y=UxG(R.triggeringElement),u=function(){return!!R.data().primaryThumbnail},v=function(){var M,K=(M=R.data())==null?void 0:M.maxHeight,h;
M=(h=R.maxHeight)==null?void 0:h.call(R);return K!=null&&M!=null?Math.min(K,M):M!=null?M:K},Q=function(){var M=v();
if(M){var K;if(u()&&(K=R.includeStackHeight)!=null&&K.call(R)){var h;K=((h=R.doubleStack)==null?0:h.call(R))?8:4}else K=0;M=M-K-1;if(!(M<0)){h=Math;K=h.ceil;var b,N;var T=c9T((N=(b=R.aspectRatio)==null?void 0:b.call(R))!=null?N:0);return K.call(h,M*T)}}};
return _.F("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true",style:_.P_({height:function(){return v()?v()+"px":void 0},
width:function(){return Q()?Q()+"px":void 0}})},_.F(TDw,{stackEnabled:u,
thumbnailSize:function(){var M,K;return asW((M=R.width)==null?void 0:M.call(R),(K=R.height)==null?void 0:K.call(R))},
doubleStack:R.doubleStack,stackColor:function(){return R.data().stackColor},
includeStackHeight:R.includeStackHeight},_.F(_.mk,{data:function(){return R.data().primaryThumbnail}},{thumbnailViewModel:function(M){var K={};
return _.F(_.Mo,{data:M.data,width:R.width,height:R.height,aspectRatio:R.aspectRatio,disableRounding:R.disableRounding,className:_.Oy((K["yt-collection-thumbnail-view-model--has-stacks"]=u,K)),hovered:R.hovered,playbackRef:R.playbackRef})}}),_.F(_.w,{cond:function(){var M;
return y()&&((M=R.data().thumbnails)==null?void 0:M.length)},
then:function(){return _.F("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.F(NDV,{data:R.data,disableRounding:function(){return!u()}}))}})))},"va");
org.idomCompat={callbacks:{playbackRef:!0}};
var TDw=_.Jd(function(R){var y=R.children;var u=R.stackEnabled;var v=R.thumbnailSize;var Q=R.doubleStack;var M=R.stackColor;var K=R.includeStackHeight;var h,b=(h=_.ua().resolve(_.yN(_.u0)))==null?void 0:h();return _.F(_.w,{cond:u,then:function(){return _.F(LUg,{data:function(){var N,T;return{experimentEnabled:!0,thumbnailSize:v(),doubleStack:Q==null?void 0:Q(),color:b?M==null?void 0:(N=M())==null?void 0:N.darkTheme:M==null?void 0:(T=M())==null?void 0:T.lightTheme,enableResponsiveMode:!1,includeStackHeight:K==
null?void 0:K()}}},y)},
else:function(){return y}})},"wa");var xjc=new _.Jx("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var Kw;_.i2={calledOnce:!0,state:"visible"};Kw={calledOnce:!0,state:"hidden"};_.Ip=_.Jd(function(R){var y=R.data;var u=R.customCommandResolver;var v=R.className;var Q=R.delayedClassName;var M=R.animationEntityKey;var K=R.isCompactWidth;R=_.V(_.In(!1,void 0,"aSkCmb"));var h=R.next().value,b=R.next().value,N=_.Qj(M,""),T=_.nA(roE,N),x=function(){var BW,Zc;return(Zc=(BW=T())==null?void 0:BW.value)!=null?Zc:!1},B=function(){_.vy(_.Gw("booleanEntity",N(),{key:N(),
value:!0}));c=void 0};
M=_.V(_.rW(x));var l=M.next().value,Z=M.next().value;M=_.V(_.rW(x));var P=M.next().value,k=M.next().value;M=_.V(_.rW(function(){var BW;return x()?(BW=y().styleTransitionConfig)==null?void 0:BW.destinationStyle:void 0}));
var E=M.next().value,D=M.next().value,z=function(){var BW=Object.assign({},y(),E()&&{style:E()});var Zc,xS,Dc=BW.label,$S=(Zc=BW.interaction)==null?void 0:(xS=Zc.accessibility)==null?void 0:xS.label;Zc=BW.iconImage?BW.label&&BW.label.content?BW.iconLeading?"leading":"trailing":"icon-only":void 0;BW={formattedButtonText:Dc,accessibilityLabel:$S,style:q1v(BW.style),type:XjO(BW.style),state:"active",size:$xU(BW.size),iconPosition:Zc,disabled:!1,aTagConfig:E38(BW,u)};_.f("enable_desktop_vdcbg_components")&&
(BW.focused=h());return BW},c;
M=_.vA({visibilityCallback:function(BW){var Zc,xS=(Zc=y().interaction)==null?void 0:Zc.onFirstVisible;BW&&xS&&_.zN(xS)},
showOption:_.i2});var a=function(){return dW(z(),!!y().iconImage)};
R={};v=_.Oy(function(){return"ytwAdButtonViewModelHost"},function(){return y().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var BW=!!y().delayedAppearanceConfig,Zc=l();
return BW?Zc?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var BW=!!y().delayedAppearanceConfig,Zc=P();
return BW?Zc?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!y().delayedAppearanceConfig||l()?Q==null?void 0:Q():""},(R.ytwAdButtonViewModelHostCompactWidth=function(){return K==null?void 0:K()},R),v!=null?v:"");
var L=function(){var BW,Zc=(BW=y().delayedAppearanceConfig)==null?void 0:BW.delayedInvisibleSeconds;Zc&&(c=_.Wm(_.WG,function(){Z(!0);QG()},Zc*1E3))},QG=function(){var BW,Zc=(BW=y().delayedAppearanceConfig)==null?void 0:BW.delayedVisibleSeconds;
Zc&&(c=_.Wm(_.WG,function(){k(!0);hz()},Zc*1E3))},hz=function(){var BW,Zc=(BW=y().styleTransitionConfig)==null?void 0:BW.styleTransitionSeconds,xS,Dc=(xS=y().styleTransitionConfig)==null?void 0:xS.destinationStyle;
Zc&&Dc?c=_.Wm(_.WG,function(){D(Dc);B()},Zc*1E3):B()},bO=function(){var BW;
return(BW=y().delayedAppearanceConfig)==null?void 0:BW.transitionDurationSeconds};
_.rB(function(){L()});
_.GF(function(){c&&_.WG.cancelJob(c)});
return _.F("ad-button-view-model",{"on:focusin":_.nh(_.f("enable_desktop_vdcbg_components")?function(){var BW=_.ua().resolve(_.yN(_.Ti));BW&&b(BW.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.nh(_.f("enable_desktop_vdcbg_components")?function(){b(!1);return!1}:void 0),
class:v,el:_.VX(M),style:_.P_({"transition-duration":function(){return bO()?bO()+"s":void 0}})},_.F(_.w,{cond:z,
then:function(){return _.F(_.j8,{data:z,icon:function(){return _.F(_.w,{cond:function(){return y().iconImage},
then:function(BW){return _.F(_.MR,{data:BW,alt:"",targetWidth:a,targetHeight:a,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"xa");var BDc=_.Jd(function(R){var y=R.data;R=_.vA({visibilityCallback:function(v){var Q,M=(Q=y().interaction)==null?void 0:Q.onFirstVisible;v&&M&&_.zN(M)},
showOption:_.i2});var u={};return _.F("ad-button-group-view-model",{class:_.Oy("ytwAdButtonGroupViewModelHost",(u.ytwAdButtonGroupViewModelHostCompactWidth=function(){return y().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"},u)),
el:_.VX(R)},_.F("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.F(_.mk,{data:function(){return y().secondaryAdButton}},{adButtonViewModel:function(v){return _.F(_.Ip,{data:v.data})}})),_.F("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.F(_.mk,{data:function(){return y().primaryAdButton}},{adButtonViewModel:function(v){return _.F(_.Ip,{data:v.data})}})))},"ya");var fpL=_.Jd(function(R){var y=function(){var u;return((u=R.data())==null?void 0:u.answers)||[]};
return _.F("yt-survey-icons",{class:"ytSurveyIconsHost"},_.F("div",{class:"ytSurveyIconsHeader"},_.F("div",{class:"ytSurveyIconsTitle"},function(){var u;return(u=R.data())==null?void 0:u.text}),_.F("div",null,_.F(_.j8,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var u;(u=R.onDismiss)==null||u.call(R)}}},
iconName:"DISMISSAL"}))),_.F("div",null,_.F("div",{class:"ytSurveyIconsAnswers"},_.F(_.eS,{each:function(){return y()},
keyBy:"INDEX"},function(u,v){return _.F("div",null,_.F(_.j8,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var Q;(Q=R.onSelect)==null||Q.call(R,u(),v)}}},
icon:function(){return _.F(_.W_,{icon:function(){var Q,M;return(Q=u())==null?void 0:(M=Q.icon)==null?void 0:M.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.F("div",{class:"ytSurveyIconsAnswersText"},_.F("div",null,function(){return y().length?y()[0].text:""}),_.F("div",null,function(){return y().length?y()[y().length-1].text:""}))))},"za");var eZY=_.Jd(function(R){var y=_.VX(_.Y9(function(){var b;return(b=R.data())==null?void 0:b.rendererContext},void 0,void 0,void 0,!0)),u=_.V(_.In(!1,void 0,"YxWRNc")),v=u.next().value,Q=u.next().value,M=_.nA(ZmU,function(){var b;
return(b=R.data().keys)==null?void 0:b.surveyEntityKey}),K=_.nA(Hm4,function(){var b;
return(b=R.data().keys)==null?void 0:b.surveyStateEntityKey});
_.Li("ytd-slimline-survey-show-action",function(){Q(!1)});
var h=function(){var b,N;var T=(b=K())==null?void 0:(N=b.questionStack)==null?void 0:N[0];if(T!==void 0){var x,B;return(x=M())==null?void 0:(B=x.questions)==null?void 0:B[T]}};
u={};return _.F("yt-slimline-survey-view-model",{el:y,class:_.Oy("ytSlimlineSurveyViewModelHost",(u.ytSlimlineSurveyViewModelCollapsed=function(){return v()},u))},_.F("div",{class:"ytSlimlineSurveyViewModelContainer"},_.F(_.w,{cond:function(){var b;
return((b=h())==null?void 0:b.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.F(fpL,{data:function(){return h()},
onSelect:function(b,N){var T,x;return _.I(function(B){Q(!0);if(x=(T=R.data())==null?void 0:T.onSelectRating)_.zN(x),_.vy(Hw5(N));_.f$(B)})},
onDismiss:function(){Q(!0);var b;var N=(b=M())==null?void 0:b.dismissalFeedbackToken;b=N?{feedbackEndpoint:{feedbackToken:N}}:void 0;b&&_.Yi(b,{form:{element:y.value}})}})}})))},"Aa");var lp8=_.Jd(function(R){return _.F("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.F(_.mk,{data:function(){var y;return(y=R.data())==null?void 0:y.attachments}},{flexibleActionsViewModel:function(y){return _.F("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.F(KUb,{data:y.data,
layout:function(){var u;return((u=R.lockupStyle())==null?void 0:u.arrangement)===1?0:1},
justifyContentOverride:function(){var u;return((u=R.lockupStyle())==null?void 0:u.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(y){return _.F("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.F(eZY,{data:y.data}))},
expandableMetadataViewModel:function(y){y=y.data;var u;return _.F("div",{class:_.Oy("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(u=_.ua().resolve(_.yN(xjc)))==null?void 0:u({data:y}))},
adButtonGroupViewModel:function(y){return _.F("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.F(BDc,{data:y.data}))},
adButtonViewModel:function(y){return _.F("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.F(_.Ip,{data:y.data,isCompactWidth:!0}))}}))},"Ba");var cYU=_.JT("rich_grid_min_item_width",310),pjW=_.JT("rich_grid_max_item_width",500);var Obw=_.Jd(function(R){var y=R.data;return _.F("br-nz-badge-shape",{class:_.Oy(function(){return CSG(y().brNzRatingBadgeType)}),
role:function(){return y().accessibilityText?"img":void 0},
"aria-label":function(){return y().accessibilityText}},function(){var u;
return(u=y())==null?void 0:u.text})},"Ca");_.hr=_.Jd(function(R){var y=function(){var u=R.data(),v,Q;if(u){var M=!((v=R.workaroundShortsIsThumbnailBadge)==null||!v.call(R));v=(Q=R.modern)==null?void 0:Q.call(R);a:switch(u.badgeStyle){case "BADGE_OVERLAY":Q=!0;break a;default:Q=!1}u={type:M?17:RZU(u.badgeStyle),brNzRatingBadgeType:yJ4(u.badgeStyle),text:u.badgeText,icon:u.iconName,isOverlay:Q,modern:v||_.f("web_modern_badge_view_model"),accessibilityText:u.accessibilityLabel}}else u=void 0;return u};
return _.F("yt-badge-view-model",{class:_.Oy("yt-badge-view-model-wiz",R.class)},_.F(_.Z6,null,_.F(_.lr,{when:function(){var u;return!((u=y())==null||!u.brNzRatingBadgeType)}},function(){return _.F(Obw,{data:function(){return y()}})}),_.F(_.lr,{when:function(){return!!y()&&!y().brNzRatingBadgeType}},function(){return _.F(_.p_,{data:function(){return y()}})})))},"Da");
_.hr.idomCompat=!0;var vr4,uzO;vr4=16/9;uzO=2/3;_.b2=_.Jd(function(R){var y=R.data;var u=R.className;var v=R.imageSizeConfig;var Q=R.notifyOnLoaded;var M=function(){return y().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},K=function(){var B;
return _.So((B=y())==null?void 0:B.rendererContext)};
R={};R=(R["yt-content-preview-image-view-model-wiz"]=!0,R["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return M()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},R["yt-content-preview-image-view-model-wiz--tappable"]=function(){return K()},R);
var h=function(){var B,l;return(l=(B=_.e(y().rendererContext,_.GC))==null?void 0:B.label)!=null?l:""},b=function(){return jW4(y())},N=function(){var B=QWT(M(),y().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",v==null?void 0:v(),MTO(b()),y().layoutWidth,y().layoutHeight),l=Object.assign({},B);
B.width&&(l.width=Math.round(B.width));B.height&&(l.height=Math.round(B.height));B.maxWidth&&(l.maxWidth=Math.round(B.maxWidth));B.maxHeight&&(l.maxHeight=Math.round(B.maxHeight));return l},T=_.N8(function(){return N().height},void 0,"Cn10Ce"),x=_.N8(function(){return N().width},void 0,"laoove");
return _.F("yt-content-preview-image-view-model",{el:_.VX(_.Y9(function(){var B;return(B=y())==null?void 0:B.rendererContext})),
role:function(){return K()?"link":void 0},
tabindex:function(){return K()?0:void 0},
class:_.Oy(u,R,function(){var B=M();var l=v==null?void 0:v();B=B==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||B==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||B==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||B==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(l==null?void 0:l.size)!=null&&l.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(l==null?void 0:l.size)!=null&&l.size<=24?"yt-content-preview-image-view-model-wiz--small-rounded-image":"yt-content-preview-image-view-model-wiz--large-rounded-image":
void 0;return B}),
style:function(){var B=N(),l=[];B.width&&l.push("width: "+B.width+"px");B.height&&l.push("height: "+B.height+"px");B.maxWidth&&l.push("max-width: "+B.maxWidth+"px");B.maxHeight&&l.push("max-height: "+B.maxHeight+"px");B.fullWidth&&l.push("width: 100%");return l.join(";")}},_.F(_.w,{cond:b,
then:function(B){return _.F(_.MR,{data:B,alt:h,"data-disabled$":function(){return!h()},
notifyOnLoaded:Q,targetWidth:x,targetHeight:T,preserveWidth:function(){return!!x()},
preserveHeight:function(){return!!T()}})}}),_.F(_.mk,{data:function(){var B;
return(B=y())==null?void 0:B.overlays}},{thumbnailHoverOverlayViewModel:qH,
thumbnailOverlayButtonViewModel:_.bbK}))},"Ea");
_.b2.idomCompat=!0;var HbV=_.Jd(function(R){var y=R.data;var u=R.className;var v=R.useSmallLayout;R=R.useMediumText;var Q={};R=(Q["yt-attribution-view-model-wiz"]=!0,Q["yt-attribution-view-model-wiz--medium-text"]=R,Q);return _.F("yt-attribution-view-model",{el:_.VX(_.Y9(function(){var M;return(M=y())==null?void 0:M.rendererContext})),
class:_.Oy(u,R)},_.F(_.w,{cond:function(){return _.So(y().rendererContext)},
then:function(){return _.F("button",{class:"yt-attribution-view-model-wiz--tappable"},_.F(Zb5,{data:y,useSmallLayout:v}))},
else:function(){return _.F(Zb5,{data:y,useSmallLayout:v})}}))},"Fa"),Zb5=_.Jd(function(R){var y=R.data;
var u=R.useSmallLayout;var v=function(){return{size:(u==null?0:u())?16:24}};
return _.F(_.vu,null,_.F(_.mk,{data:function(){return y().contentPreviewImage}},{contentPreviewImageViewModel:function(Q){return _.F(_.b2,{data:Q.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:v})}}),_.F(_.mk,{data:function(){return y().badge}},{badgeViewModel:function(Q){return _.F(_.hr,{data:Q.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.F(_.w,{cond:function(){return y().text},
then:function(){return _.F(_.QM,{text:function(){return y().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.F(_.w,{cond:function(){return y().suffix},
then:function(){return _.F(_.QM,{text:function(){return y().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"Ga");
HbV.idomCompat=!0;var nrb,Gfg,rJ5,PwT,W0w;nrb=_.Jd(function(R){var y=R.delimiter;var u=R.max;var v=R.index;var Q=R.isStandalone;return _.F(_.w,{cond:function(){return u()-1>v()},
then:function(){var M={};return _.F("span",{class:_.Oy("yt-content-metadata-view-model-wiz__delimiter",(M["yt-content-metadata-view-model-wiz__delimiter--standalone"]=Q,M)),"aria-hidden":!0},y)}})},"Ha");
Gfg=_.Jd(function(R){var y=R.metadataPart;var u=R.maxLines;return _.F(_.QM,{text:function(){return y().text},
linkInheritColor:!0,className:function(){return JJc(u())},
userInput:!0})},"Ia");
rJ5=_.Jd(function(R){var y=R.metadataPart;var u=R.maxLines;return _.F(_.w,{cond:function(){return y().tooltip},
then:function(v){return _.F("span",{title:v,role:"tooltip"},_.F(Gfg,{metadataPart:y,maxLines:u}))},
else:function(){return _.F(Gfg,{metadataPart:y,maxLines:u})}})},"Ja");
PwT=_.Jd(function(R){var y=R.metadataPart;var u=R.isOverlay;var v=R.useMediumText;var Q=R.hideAvatar;var M=function(){return y().maxLines!==void 0?y().maxLines:1};
return _.F(_.vu,null,_.F(_.mk,{data:function(){return y().avatarStack}},{avatarStackViewModel:function(K){return _.F(_.Ap,{data:K.data,
isOverlay:u,useMediumText:v,hideAvatar:Q})},
badgeViewModel:_.hr}),_.F(_.w,{cond:function(){return y().leadingIcon},
then:function(K){return _.F(_.W_,{className:"yt-content-metadata-view-model-wiz__leading-icon",icon:function(){return K().name},
size:function(){return K().width}})}}),_.F(_.w,{cond:function(){return y().text},
then:function(){return _.F(rJ5,{metadataPart:y,maxLines:M})}}),_.F(_.w,{cond:function(){return y().icon},
then:function(K){return _.F(_.W_,{className:"yt-content-metadata-view-model-wiz__icon",icon:function(){return K().name},
size:function(){return K().width}})}}))},"Ka");
W0w=_.Jd(function(R){var y=R.metadataRow;var u=R.isInline;var v=R.delimiter;var Q=R.isOverlay;var M=R.useMediumText;var K=R.extensions;var h=function(){var N,T=K==null?void 0:(N=K())==null?void 0:N.lockupMetadata;N=y();var x,B;return!!((T==null?0:(x=T.byline)==null?0:x.hideAvatar)&&((B=_.e(N,gXg))==null?void 0:B.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},b=function(){return y().metadataParts||[]};
R={};return _.F("div",{class:_.Oy("yt-content-metadata-view-model-wiz__metadata-row",(R["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=u,R["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var N,T=K==null?void 0:(N=K())==null?void 0:N.lockupMetadata;N=y();var x,B;return!!((T==null?0:(x=T.byline)==null?0:x.addPadding)&&((B=_.e(N,gXg))==null?void 0:B.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},R["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
function(){var N;
return!!(K==null?0:(N=K())==null?0:N.lockupMetadata)&&y().badges&&!y().metadataParts},R))},_.F(_.mk,{data:function(){return y().badges}},{badgeViewModel:function(N){return _.F("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.F(_.hr,{data:N.data}))}}),_.F(_.eS,{each:b},function(N,T){return _.F(_.vu,null,_.F(PwT,{metadataPart:N,
isOverlay:Q,useMediumText:M,hideAvatar:h}),_.F(nrb,{delimiter:v,max:function(){return b().length},
index:T,isStandalone:!1}))}),_.F(_.w,{cond:function(){return y().isSpacerRow&&!u()},
then:function(){return _.F("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"La");
_.Fx=_.Jd(function(R){R=_.jb(R,{layout:0,isOverlay:!1});var y=R.data,u=R.layout,v=R.isOverlay,Q=R.useMediumText,M=R.extensions,K=function(){return u()===0},h=function(){var N;
return((N=y().metadataRows)==null?void 0:N.filter(function(T){var x,B=M==null?void 0:(x=M())==null?void 0:x.lockupMetadata,l,Z;x=!!((B==null?0:(l=B.description)==null?0:l.hideDescription)&&((Z=_.e(T,gXg))==null?void 0:Z.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var P,k;return!((B==null?0:(P=B.spacer)==null?0:P.hideSpacer)&&((k=_.e(T,gXg))==null?void 0:k.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||x)}))||[]},b={};
return _.F("yt-content-metadata-view-model",{class:_.Oy(R.className,"yt-content-metadata-view-model-wiz",(b["yt-content-metadata-view-model-wiz--inline"]=K,b["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.So(y().rendererContext)},b["yt-content-metadata-view-model-wiz--medium-text"]=Q,b)),
el:_.VX(_.Y9(function(){return y().rendererContext}))},_.F(_.eS,{each:h},function(N,T){return _.F(_.vu,null,_.F(W0w,{metadataRow:N,
isInline:K,delimiter:function(){return y().delimiter},
isOverlay:v,useMediumText:Q,extensions:M}),_.F(_.w,{cond:function(){return K()&&!N.isSpacerRow},
then:function(){return _.F(nrb,{delimiter:function(){return y().delimiter},
max:function(){return h().length},
index:T,isStandalone:!0})}}))}))},"Ma");
_.Fx.idomCompat=!0;var djg=_.Jd(function(R){var y={};return _.F("yt-lockup-metadata-view-model",{class:_.Oy("yt-lockup-metadata-view-model-wiz",function(){a:{var u=R.lockupStyle();if(u==null?0:u.isOverlay)u="yt-lockup-metadata-view-model-wiz--overlay";else switch(u==null?void 0:u.arrangement){case 1:u="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:u="yt-lockup-metadata-view-model-wiz--vertical"}}return u},function(){a:{var u=R.lockupStyle();
if(u==null?0:u.isTiny)u="yt-lockup-metadata-view-model-wiz--tiny";else switch(u==null?void 0:u.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":u="yt-lockup-metadata-view-model-wiz--compact";break a;default:u="yt-lockup-metadata-view-model-wiz--standard"}}return u},(y["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var u;
return(u=R.lockupStyle())==null?void 0:u.isOverlay},y["yt-lockup-metadata-view-model-wiz--card"]=function(){var u;
return(u=R.lockupStyle())==null?void 0:u.isCard},y["yt-lockup-metadata-view-model-wiz--centered"]=function(){var u;
return(u=R.lockupStyle())==null?void 0:u.isCentered},y["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var u;
return(u=R.lockupStyle())==null?void 0:u.typographyBump},y["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var u;
return(u=R.lockupStyle())==null?void 0:u.useLegacyTypography},y["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var u;
return(u=R.lockupStyle())==null?void 0:u.useRichGridLegacyTypography},y))},_.F(_.mk,{data:function(){return R.data().image}},{avatarStackViewModel:function(u){return _.F("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.F(_.Ap,{data:u.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(u){return _.F("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.F(_.XS,{data:u.data}))},
decoratedAvatarViewModel:function(u){return _.F("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.F(_.mG,{data:u.data}))}}),_.F("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.F("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var u;return(u=R.data().title)==null?void 0:u.content}},_.F(_.w,{cond:function(){return R.data().title},
then:function(u){return _.F(_.zw,{command:R.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:R.lockupAccessibilityLabel},_.F(_.QM,{text:u,userInput:!0}))}})),_.F("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.F(_.mk,{data:function(){return R.data().metadata}},{contentMetadataViewModel:function(u){return _.F(_.Fx,{data:u.data,
layout:1,useMediumText:function(){var v,Q;return((v=R.lockupStyle())==null?void 0:v.typographyBump)||((Q=R.lockupStyle())==null?void 0:Q.useRichGridLegacyTypography)},
extensions:function(){var v,Q,M,K;return{lockupMetadata:{byline:{hideAvatar:((v=R.lockupStyle())==null?void 0:v.arrangement)===0,addPadding:((Q=R.lockupStyle())==null?void 0:Q.arrangement)===1},description:{hideDescription:!((M=R.lockupStyle())==null||!M.compactMetadata)},spacer:{hideSpacer:!((K=R.lockupStyle())==null||!K.compactMetadata)}}}}})}})),_.F(_.mk,{data:function(){return R.data().attribution}},{attributionViewModel:function(u){return _.F("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},
_.F(HbV,{data:u.data,
useSmallLayout:!0}))}})),_.F("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.F(_.mk,{data:function(){return R.data().menuButton}},{buttonViewModel:function(u){return _.F(_.fQ,{data:u.data,
buttonOverrides:function(){var v;return((v=R.lockupStyle())==null?0:v.isOverlay)?{style:"overlay"}:void 0}})}})))},"Na");
djg.idomCompat=!0;var Uji=_.Jd(function(R){var y=_.sh("notification-multi-action-renderer");_.nG(function(){requestAnimationFrame(function(){_.Y2(y.value)})});
var u={},v={},Q={};return _.F("notification-multi-action-renderer",{class:_.Oy("ytNotificationMultiActionRendererHost",(u.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var M;return(M=R.useLegacyShelfStyle)==null?void 0:M.call(R)},u)),
el:y},_.F("span",{"aria-live":"polite",class:_.Oy("ytNotificationMultiActionRendererTextContainer",(v.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var M;return(M=R.useLegacyShelfStyle)==null?void 0:M.call(R)},v))},_.F(_.QM,{text:function(){return R.data().responseText}})),_.F("div",{class:_.Oy("ytNotificationMultiActionRendererButtonContainer",(Q.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var M;
return(M=R.useLegacyShelfStyle)==null?void 0:M.call(R)},Q))},_.F(_.mk,{data:function(){var M;
return(M=R.data().buttons)==null?void 0:M.map(function(K){if(K=K.buttonRenderer){var h,b=Object,N=b.assign,T=(h=K.icon)==null?void 0:h.iconType;h=(h=K.command||K.serviceEndpoint||K.navigationEndpoint)?{innertubeCommand:h}:void 0;K={buttonViewModel:N.call(b,{},{iconName:T,onTap:h,trackingParams:K.trackingParams,titleFormatted:K.text?_.pk(K.text):void 0},ibv(K))}}else K=void 0;return K}).filter(function(K){return!!K})}},{buttonViewModel:function(M,K){return _.F("div",null,_.F(_.fQ,{data:M.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var h;return((h=R.useModernStyles)==null?0:h.call(R))?{type:K()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Oa");var kfi=_.Jd(function(R){var y=_.sh("notification-text-renderer");_.nG(function(){requestAnimationFrame(function(){_.Y2(y.value)})});
return _.F("notification-text-renderer",{el:y,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.F(_.QM,{text:function(){return R.data().successResponseText}}))},"Pa");_.wb=_.Jd(function(R){var y=_.nA(pXE,function(){var v;return K0E((v=R.contentId)==null?void 0:v.call(R))}),u=function(){var v;
return _.e((v=y())==null?void 0:v.command,_.Pe)};
return _.F(_.w,{cond:function(){var v;if(!(v=u())){var Q;v=_.e((Q=y())==null?void 0:Q.command,YOT)}return v},
then:function(){return _.F(_.w,{cond:u,then:function(){var v={};return _.F("div",{class:_.Oy("ytDismissibleItemReplacedContent",function(){var Q;return IpL((Q=R.aspectRatio)==null?void 0:Q.call(R))})},_.F("div",{class:_.Oy((v.ytDismissibleItemAspectRatioContainer=function(){var Q;
return((Q=R.aspectRatio)==null?void 0:Q.call(R))!==void 0},v))},_.F(_.mk,{data:function(){var Q;
return(Q=u())==null?void 0:Q.item}},{notificationMultiActionRenderer:function(Q){return _.F(Uji,{data:Q.data,
useModernStyles:R.useModernStyle,useLegacyShelfStyle:R.useLegacyShelfStyle})},
notificationTextRenderer:kfi})))}})},
else:R.children})},"Qa");_.ErL=_.Jd(function(R){var y=R.data;var u=R.customCommandResolver;R=_.VX(_.vA({visibilityCallback:function(M){var K,h=(K=y().interaction)==null?void 0:K.onFirstVisible;M&&h&&_.zN(h)},
showOption:_.i2}));var v=function(){var M;return((M=y().interaction)==null?0:M.onTap)?function(K){var h;k1z(K,(h=y().interaction)==null?void 0:h.onTap,u)}:void 0},Q=function(){var M,K=y(),h=v(),b=(M=_.e(y().rendererContext,_.GC))==null?void 0:M.label;
a:switch(K.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":M=1;break a;default:M=0}return{size:F0T(K.size),type:M,onTap:h,accessibilityText:b}};
return _.F("ad-avatar-view-model",{class:function(){var M;return((M=y().interaction)==null?0:M.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:R},_.F(_.w,{cond:function(){return y().image},
then:function(M){return _.F(eVg,{data:Q,image:M})}}))},"Ra");_.No=_.Jd(function(R){var y=_.jb(R,{hasDot:!1});R=Object.assign({},y);var u=y.data,v=y.hasDot;y=y.customCommandResolver;var Q=(delete R.data,delete R.hasDot,delete R.customCommandResolver,R);R=function(){return u().style};
R!==void 0&&R!==null||_.pG(Error("Eh"));R=_.CA(function(){return u().interaction},y);
return _.F("ad-badge-view-model",{class:_.Oy(function(){var M;return((M=u().interaction)==null?0:M.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var M=Q.adRenderingContextType();
u();return M==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:_.VX(R)},_.F(_.p_,{data:function(){var M;u();return{type:2,text:(M=u().label)==null?void 0:M.content,adsIncludeDot:v(),isOverlay:u().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Sa");var $jK;_.Tt=_.Jd(function(R){var y=R.data;var u=R.customCommandResolver;var v=R.adRenderingContextType;return _.F("ad-details-line-view-model",{class:function(){var Q;return((Q=y().interaction)==null?0:Q.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.VX(_.vA({visibilityCallback:function(Q){var M,K=(M=y().interaction)==null?void 0:M.onFirstVisible;Q&&K&&_.zN(K)},
showOption:_.i2}),_.CA(function(){return y().interaction},u))},_.F(_.w,{cond:function(){return y().style},
then:function(Q){return _.F(_.eS,{each:function(){var M;return((M=y())==null?void 0:M.attributes)||[]},
keyBy:"INDEX"},function(M){return _.F($jK,{attribute:M,style:Q,adRenderingContextType:function(){return v()}})})}}))},"Ta");
$jK=_.Jd(function(R){var y=R.attribute;var u=R.style;var v=R.adRenderingContextType;return _.F(_.w,{cond:function(){return y().text},
then:function(Q){return _.F(_.QM,{text:Q,className:function(){var M=v();u();return M==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Ua");var qnL=_.Jd(function(R){var y=R.data;var u=R.typographyBump;var v=function(){return y().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
R={};return _.F(_.vu,null,_.F("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.F(_.QM,{text:function(){return y().headline},
className:_.Oy("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(R.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return v==null?void 0:v()},R.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(u==null?void 0:u())&&!(v==null?0:v())},R)),
linkInheritColor:!0}),_.F(_.w,{cond:function(){return y().description},
then:function(Q){var M={};return _.F(_.QM,{text:Q,className:_.Oy("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(M.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return v==null?void 0:v()},M.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(u==null?void 0:u())&&!(v==null?0:v())},M)),
linkInheritColor:!0})}}),_.F(_.w,{cond:function(){return y().secondaryDescription},
then:function(Q){var M={};return _.F(_.QM,{text:Q,className:_.Oy("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(M.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return u==null?void 0:u()},M)),
linkInheritColor:!0})}}),_.F("div",{class:function(){return v()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.F(_.w,{cond:function(){return y().adAvatar},
then:function(){return _.F("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.F(_.mk,{data:function(){return y().adAvatar}},{adAvatarViewModel:_.ErL}))}}),_.F(_.mk,{data:function(){return y().adBadge}},{adBadgeViewModel:function(Q){return _.F(_.No,{data:Q.data,
hasDot:function(){return!!y().adDetailsLine},
adRenderingContextType:function(){return y().adRenderingContextType}})}}),_.F(_.mk,{data:function(){return y().adDetailsLine}},{adDetailsLineViewModel:function(Q){return _.F(_.Tt,{data:Q.data,
adRenderingContextType:function(){return y().adRenderingContextType}})}}))),_.F("div",{class:function(){return v()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.F(_.mk,{data:function(){return y().menu}},{buttonViewModel:function(Q){return _.F(_.fQ,{data:Q.data,
buttonOverrides:function(){a:switch(y().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var M="S";break a;default:M="M"}return{size:M}}})}})))},"Va"),Xk5=_.Jd(function(R){var y=R.data;
var u=R.noBottomMargin;var v=R.useVideoLockupTopPadding;var Q=R.typographyBump;R={};R=_.Oy("ytwFeedAdMetadataViewModelHostMetadata",(R.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return u==null?void 0:u()},R.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return v==null?void 0:v()},R));
var M=function(){return y().adBadge};
M!==void 0&&M!==null||_.pG(Error("Fh"));M={};var K={};return _.F(_.vu,null,_.F(_.w,{cond:function(){return y().adAvatar},
then:function(){return _.F("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.F(_.mk,{data:function(){return y().adAvatar}},{adAvatarViewModel:function(h){return _.F(_.ErL,{data:h.data})}}))}}),_.F("div",{class:R},_.F("div",{class:_.Oy("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(M.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return Q==null?void 0:Q()},M.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(Q==
null?void 0:Q())&&_.f("web_enable_typography_bump_v2")},M))},_.F(_.QM,{text:function(){return y().headline},
linkInheritColor:!0})),_.F(_.w,{cond:function(){return y().description},
then:function(h){return _.F(_.QM,{text:h,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.F("div",{class:function(){return y().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.f("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.F(_.mk,{data:function(){return y().adBadge}},
{adBadgeViewModel:function(h){return _.F(_.No,{data:h.data,
hasDot:function(){return!!y().adDetailsLine},
adRenderingContextType:function(){return y().adRenderingContextType}})}}),_.F(_.mk,{data:function(){return y().adDetailsLine}},{adDetailsLineViewModel:function(h){return _.F(_.Tt,{data:h.data,
adRenderingContextType:function(){return y().adRenderingContextType}})}})),_.F(_.w,{cond:function(){return y().secondaryDescription},
then:function(h){return _.F(_.QM,{text:h,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.F("div",{class:_.Oy("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(K.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return v==null?void 0:v()},K))},_.F(_.mk,{data:function(){return y().menu}},{buttonViewModel:_.fQ})))},"Wa"),mjY=_.Jd(function(R){var y=R.data;
var u=R.noBottomMargin;var v=R.listenToTapEvent;var Q=R.setTouchEndHandler;var M=R.useVideoLockupTopPadding;var K=R.typographyBump;R=_.vA({visibilityCallback:function(x){var B,l=(B=y().interaction)==null?void 0:B.onFirstVisible;x&&l&&_.zN(l)},
showOption:_.i2});var h=_.CA(function(){return y().interaction},void 0,function(){return v==null?void 0:v()}),b=_.V(_.In(!1,void 0,"p7Js8e")),N=b.next().value,T=b.next().value;
b=_.nh(function(x){(Q==null?0:Q())&&!N()&&(x.currentTarget.click(),T(!0),setTimeout(function(){T(!1)},100));
return!1});
return _.F("feed-ad-metadata-view-model",{class:function(){var x;return((x=y().interaction)==null?0:x.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.VX(R,h),"on:touchend":b},_.F(_.Z6,null,_.F(_.lr,{when:function(){return y().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.F(qnL,{data:y,
typographyBump:K})}),_.F(_.lr,{when:function(){return y().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.F(Xk5,{data:y,
noBottomMargin:u,useVideoLockupTopPadding:M,typographyBump:K})})))},"Xa");var AJL;_.op=_.Jd(function(R){return _.F("yt-lockup-view-model",{class:_.Oy(R.className)},_.F(_.wb,{contentId:function(){return R.data().contentId},
useModernStyle:!0,aspectRatio:function(){var y,u;return((y=R.containerType)==null?void 0:y.call(R))!==3?zVU(R.data().contentType,(u=R.force16By9ThumbnailAspectRatio)==null?void 0:u.call(R)):void 0}},function(){return _.F(AJL,Object.assign({},R))}))},"Ya");
AJL=_.Jd(function(R){R=_.jb(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 y=R.data,u=R.containerLayoutConfig,v=R.containerType,Q=R.sizing,M=R.protectBackground,K=R.typographyBump,h=R.force16By9ThumbnailAspectRatio,b=R.thumbnailFixedWidth,N=R.thumbnailTargetWidth,T=R.lockupExperiments,x=R.elementsPerRow;
R=_.VX(_.Y9(function(){var xS;return(xS=y())==null?void 0:xS.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL","YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0));var B=_.Sp(rYE),l=_.ua().resolve(_.yN(MTT)),Z=l?{}:void 0,P=function(){var xS,Dc,$S;return($S=(Dc=_.e((xS=y())==null?void 0:xS.rendererContext,_.GC))==null?void 0:Dc.label)!=null?$S:void 0},k=function(){var xS=u==null?void 0:u(),Dc;
if(xS==null?0:xS.containerType){var $S=(Dc=y())==null?void 0:Dc.contentType;Dc=T();var hL=K(),WK=N(),JL=M();xS=Object.assign({},g3v(Y1v(xS),aCG(xS.responsiveSize),hL,$S,xS.force16By9ThumbnailAspectRatio,WK,JL,Dc),{thumbnailFixedWidth:xS.contentPreviewWidth})}else xS=g3v(v(),Q(),K(),($S=y())==null?void 0:$S.contentType,h(),N(),M(),T());return xS};
l&&Z&&l({enabled:function(){return B()},
itemPlaybackModel:function(){return y().itemPlayback},
thumbnailElRef:function(){return Z.thumbnailElRef},
containerElRef:R,options:function(){var xS,Dc=(xS=_.e(y().metadata,CLG))==null?void 0:xS.endorsement;xS=Z.thumbnailOverlays||[];Dc&&xS.push(Dc);var $S,hL;return{thumbnail:Z.thumbnail,thumbnailOverlays:xS,accessibilityText:P(),thumbnailSize:Z.thumbnailSize,enableRounding:k().isCollection,containPlayerWithinThumbnail:k().isCollection,trackingParams:($S=_.e(y().rendererContext,_.rZ))==null?void 0:(hL=$S.loggingDirectives)==null?void 0:hL.trackingParams}}});
var E=0;l=_.V(_.In(!1,void 0,"HzAs3"));var D=l.next().value,z=l.next().value;l=_.V(_.In(!1,void 0,"ujOXud"));var c=l.next().value,a=l.next().value;l=_.nh(function(){var xS=B()&&y().itemPlayback;c()?(_.WG.cancelJob(E),E=_.WG.addJob(function(){z(!xS)},8,32)):z(!xS);
return!0});
var L=_.nh(function(){E&&(_.WG.cancelJob(E),E=0);z(!1)});
_.GF(function(){E&&(_.WG.cancelJob(E),E=0)});
var QG=bbW(function(){a(!0)}),hz=QG.touchFeedbackEvents,bO=QG.touchFeedbackOnPointerUp,BW=QG.touchFeedbackOnPointerDown;
QG=QG.touchFeedbackOnPointerLeave;var Zc={};return _.F("div",{el:R,class:_.Oy("yt-lockup-view-model-wiz",function(){a:{var xS=k();if(xS.isOverlay)xS="yt-lockup-view-model-wiz--overlay";else switch(xS.arrangement){case 1:xS="yt-lockup-view-model-wiz--horizontal";break a;default:xS="yt-lockup-view-model-wiz--vertical"}}return xS},function(){a:{var xS=k();
if(xS.isOverlay)xS="yt-lockup-view-model-wiz--overlay";else{switch(xS.collectionStackNumber){case 1:xS="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:xS="yt-lockup-view-model-wiz--collection-stack-2";break a}xS=void 0}}return xS},function(){var xS;
return _.VTL((xS=y())==null?void 0:xS.contentId)},(Zc["yt-lockup-view-model-wiz--card"]=function(){return k().isCard},Zc["yt-lockup-view-model-wiz--compact"]=function(){return k().isTiny||k().sizing!=="STANDARD"},Zc["yt-lockup-view-model-wiz--protect-background"]=M,Zc["yt-lockup-view-model-wiz--add-margins"]=function(){return k().addMarginForFullbleed},Zc["yt-lockup-view-model-wiz--centered"]=function(){return k().isCentered},Zc["yt-lockup-view-model-wiz--fullbleed"]=function(){return k().fullbleed},
Zc["yt-lockup-view-model-wiz--single-column-grid"]=function(){return x()===1&&v()===2},Zc["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var xS;
return(xS=T())==null?void 0:xS.useRichGridLegacyMargin},Zc)),
"on:mousedown":BW,"on:mouseleave":L,"on:mouseup":bO,"on:mouseover":l,"on:touchstart":BW,"on:touchend":bO,"on:pointerleave":QG},_.F(_.zw,{command:function(){var xS;return _.a8((xS=y())==null?void 0:xS.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return b()&&k().arrangement===1?"width: "+b():""}},_.F(_.mk,{data:function(){var xS;
return(xS=y())==null?void 0:xS.contentImage}},{thumbnailViewModel:function(xS){return _.F(_.Mo,{data:xS.data,
aspectRatio:function(){return k().aspectRatio},
disableRounding:function(){return k().disableRounding},
width:N,hovered:D,isClip:function(){var Dc;return((Dc=y())==null?void 0:Dc.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:n3S(Z),lockupExperiments:function(){return T()}})},
collectionThumbnailViewModel:function(xS){return _.F(org,{data:xS.data,aspectRatio:function(){return k().aspectRatio},
disableRounding:function(){return k().disableRounding},
width:N,doubleStack:function(){return k().collectionStackNumber===2},
hovered:D,playbackRef:n3S(Z)})},
decoratedAvatarViewModel:_.mG})),_.F("div",{class:"yt-lockup-view-model-wiz__metadata"},_.F(_.mk,{data:function(){var xS;return(xS=y())==null?void 0:xS.metadata}},{lockupMetadataViewModel:function(xS){return _.F(djg,{data:xS.data,
lockupStyle:k,lockupCommand:function(){var Dc;return _.a8((Dc=y())==null?void 0:Dc.rendererContext)},
lockupAccessibilityLabel:function(){return P()}})},
feedAdMetadataViewModel:function(xS){return _.F(mjY,{data:xS.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:K})}}),_.F(_.mk,{data:function(){var xS;
return(xS=y())==null?void 0:xS.attachmentSlot}},{lockupAttachmentsViewModel:function(xS){return _.F(lp8,{data:xS.data,
lockupStyle:k})}})),_.F(_.k6,{model:function(){a:{switch(k().collectionStackNumber){case 1:var xS=8;
break a;case 2:xS=12;break a}xS=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:xS}},
pointerDownEvent:hz.pointerDownEvent,pointerUpEvent:hz.pointerUpEvent,pointerLeaveEvent:hz.pointerLeaveEvent}))},"Za");
_.op.idomCompat=!0;_.h6(_.op,"yt-lockup-view-model",{props:{data:_.vR,containerLayoutConfig:_.vR,containerType:_.vR,sizing:_.vR,protectBackground:_.vR,typographyBump:_.vR,thumbnailFixedWidth:_.vR,thumbnailTargetWidth:_.vR,force16By9ThumbnailAspectRatio:_.vR,className:_.vR,lockupExperiments:_.vR,elementsPerRow:_.vR}});var orE;_.Qn(lpS);var nrL,Dj8=_.Jd(function(R){var y=_.jb(R,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),u=y.text,v=y.alwaysShowTruncationText;R=y.truncationText;var Q=y.onTextClick,M=y.maxLines,K=y.disableTextMask,h=y.textStyle,b=y.accessibilityLabel,N=y.textSize,T=y.alwaysTruncateAtMaxLines,x=y.expandOnClick;y=_.V(_.In(!1,void 0,"Qz8MWe"));var B=y.next().value,l=y.next().value;y=_.nh(function(){x()&&l(!B());Q==null||Q()});
var Z=function(){a:switch(N()){case "medium":var L=2;break a;case "large":L=2.2;break a;default:L=1.8}return L},P=W0c(u,function(){return B()?Infinity:M()},Z,K,T),k=P.isTruncated;
u=P.displayText;T=P.contentRef;var E=P.hiddenRef,D=P.placeholderTruncationTextRef,z=P.hiddenTruncationTextRef;P=P.truncationTextRef;var c={},a={};return _.F("truncated-text",{class:_.Oy((c["truncated-text-wiz"]=!0,c["truncated-text-wiz--overlay"]=function(){return h()==="overlay"},c["truncated-text-wiz--medium-text"]=function(){return N()==="medium"},c["truncated-text-wiz--large-text"]=function(){return N()==="large"},c["truncated-text-wiz--primary-text"]=function(){return h()==="primary-text"},c)),
"on:click":y,style:function(){return"line-height: "+Z()+"rem;"}},_.F("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",
el:T,style:function(){return B()?"":"max-height: "+M()*Z()+"rem;"}},_.F(_.QM,{text:u}),_.F("button",{"aria-disabled":!0,
disabled:!0,class:"truncated-text-wiz__inline-button",el:D,style:function(){return"line-height: "+Z()+"rem;"}},_.F(_.QM,{text:R}))),_.F("truncated-text-content",{class:_.Oy("truncated-text-wiz__truncated-text-content","truncated-text-wiz__truncated-text-content--hidden-text-content"),
el:E,style:function(){return B()?"":"max-height: "+M()*Z()+"rem;"},
"aria-hidden":"true"},_.F(_.QM,{text:u}),_.F("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:z,style:function(){return"line-height: "+Z()+"rem;"}},_.F(_.QM,{text:R}))),_.F("button",{"aria-label":b,
class:_.Oy((a["truncated-text-wiz__absolute-button"]=function(){return!K()},a["truncated-text-wiz__bottom-button"]=function(){return K()},a["truncated-text-wiz--hidden"]=function(){return!(!B()&&(v!=null&&v()||k()))},a)),
el:P,style:function(){return"line-height: "+Z()+"rem;"}},_.F(_.QM,{text:R})))},"$a"),AJz=_.f("web_enable_sink_truncated_text")?Dj8:lpS,pk5=_.f("web_enable_sink_truncated_text")?Dj8:_.H_(AJz,{callbacks:{onTextClick:!0}});
Dj8.idomCompat={callbacks:{onTextClick:!0}};_.Qn(UjP);var DjS=_.UC({buttonViewModel:_.fQ});_.Qn(XkT);_.Qn($jW);_.Qn(qnz);var apT=_.Jd(function(R){var y=R.data;R=R.className;var u=_.N8(function(){return tTP(y())},void 0,"Db3J3e");
return _.F("yt-video-attribute-view-model",{class:R},_.F("div",{class:function(){var v=y();a:switch(v.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var Q="yt-video-attribute-view-model--vertical";break a;default:Q="yt-video-attribute-view-model--horizontal"}a:switch(v.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var M="yt-video-attribute-view-model--image-small";break a;default:M="yt-video-attribute-view-model--image-large"}a:switch(v.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var K=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":K="yt-video-attribute-view-model--image-avatar";break a;default:K=""}a:switch(v.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var h="yt-video-attribute-view-model--metadata-header";break a;default:h=""}a:switch(v.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var b="yt-video-attribute-view-model--container-card";break a;default:b=""}return["yt-video-attribute-view-model",Q,M,
K,h,b,tTP(v)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.P_({"background-color":function(){var v=y();if(v.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var Q="";else{Q=v.lightColorPalette;v=v.darkColorPalette;var M,K=((M=_.ua().resolve(_.yN(_.u0)))==null?0:M())&&v?v:Q;Q=(Q=K==null?void 0:K.section2Color)?_.Sq(Q):""}return Q}})},_.F(_.w,{cond:function(){return u()||!_.f("web_video_attribute_view_model_a11y_fix")},
then:function(){return _.F(_.zw,{className:"yt-video-attribute-view-model__content-container",command:u,role:"group",ariaLabel:function(){return y().title}},_.F(_.w,{cond:function(){return y().heroText||y().image},
then:function(){return _.F(tTi,{data:y})}}),_.F(cJK,{data:y,
sizeSmall:function(){return y().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))},
else:function(){return _.F("div",{class:"yt-video-attribute-view-model__content-container"},_.F(_.w,{cond:function(){return y().heroText||y().image},
then:function(){return _.F(tTi,{data:y})}}),_.F(cJK,{data:y,
sizeSmall:function(){return y().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))}})))},"bb");
apT.idomCompat=!0;var Snc=_.f("web_enable_sink_yt_video_attribute_view_model")?apT:_.H_(XkT),tTi=_.Jd(function(R){var y=R.data;var u,v=(u=_.ua().resolve(_.yN(_.u0)))==null?void 0:u(),Q=function(){return v&&y().darkThemeImage?y().darkThemeImage:y().image},M=_.N8(function(){return cJW(y())},void 0,"Mkm2tb");
return _.F("div",{class:"yt-video-attribute-view-model__hero-section"},_.F(_.Z6,null,_.F(_.lr,{when:Q},function(){return _.F(_.MR,{data:function(){return Q()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.F(_.lr,{when:function(){return y().heroText}},function(){return _.F("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.F("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return y().heroText}))})),_.F(_.w,{cond:function(){return y().overflowMenuOnTap},
then:function(){return _.F("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.F(_.j8,{data:M,iconName:"MORE_VERT"}))}}))},"cb");
tTi.idomCompat=!0;var cJK=_.Jd(function(R){var y=R.data;R=R.sizeSmall;var u=function(){return y().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},v=_.N8(function(){return s4(_.Lk({innertubeCommand:tTP(y())}))?"link":"group"},void 0,"tvI7S"),Q={};
return _.F("div",{class:_.Oy("yt-video-attribute-view-model__metadata",(Q["yt-video-attribute-view-model--small-font"]=R,Q)),role:v},_.F("h1",{class:"yt-video-attribute-view-model__title"},function(){return y().title}),_.F(_.w,{cond:function(){return y().subtitle},
then:function(){return _.F("h4",{class:"yt-video-attribute-view-model__subtitle"},_.F(_.w,{cond:u,then:function(){return _.F(pk5,{text:function(){return pkU(y().subtitle)},
truncationText:function(){return pkU(y().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.F("span",null,function(){return y().subtitle})}}))}}),_.F(_.w,{cond:function(){return y().secondarySubtitle},
then:function(M){return _.F("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.F(_.QM,{text:function(){var K=M();if(K!=null&&K.attachmentRuns){for(var h=[],b=_.V(K.attachmentRuns),N=b.next();!N.done;N=b.next())N=N.value,N.element&&h.push(Object.assign({},N,{element:Object.assign({},N.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));K=Object.assign({},K,{attachmentRuns:h})}return K}}))}}),_.F(_.mk,
{data:function(){return y().buttonViewModel}},{buttonViewModel:function(M){return _.F(_.fQ,{data:M.data,
className:"yt-video-attribute-view-model__button"})}}))},"db");
cJK.idomCompat=!0;_.h6(Snc,"yt-video-attribute-view-model",{props:{data:_.vR,className:_.vR}});var xQ=function(){var R=_.W.apply(this,arguments)||this;R.useHighlightStyling=_.f("web_enable_deeper_metadata_highlight_styling");R.isSearch=!1;R.JSC$15075_lastScrollContainerWidth=NaN;R.pageLoadingFromNavigation=!1;R.currentIndex=0;R.supportComponentResize=!1;return R};
_.O(xQ,_.W);_.J=xQ.prototype;
_.J.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}}}}}};
_.J.attached=function(){document.addEventListener("yt-page-type-changed",_.BN(this,this.onPageChange))};
_.J.detached=function(){document.removeEventListener("yt-page-type-changed",_.BN(this,this.onPageChange))};
_.J.getItemsPath=function(){return"data.cards"};
_.J.onIronResize=function(){this.updateListStyles()};
_.J.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=_.f("problem_walkthrough_sd")&&!!this.centerItems};
_.J.computeCardListStyle=function(R){return R||null};
_.J.computeEmpty=function(R){return!this.get("cards.length",R)};
_.J.computeThumbnailStyle=function(R){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",R)||null};
_.J.computeHasSubtitle=function(R){return!!this.get("header.richListHeaderRenderer.subtitle",R)};
_.J.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};
_.J.computeUseFloorScrolling=function(R){return R==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.J.computeHasGameCard=function(R){return(R=this.get("cards",R))?R.some(function(y){return y.gameCardRenderer}):!1};
_.J.computeCenterHeaderTitle=function(R){return!(R==null||!R.centerHeaderTitle)};
_.J.computeHasPortraitMiniApp=function(R){return(R=R==null?void 0:R.cards)?R.some(function(y){return y.miniGameCardViewModel&&y.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.J.computeHasSquareMiniApp=function(R){return(R=R==null?void 0:R.cards)?R.some(function(y){return y.miniGameCardViewModel&&y.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.J.computeHasSkinnyWidthPortraitMiniApp=function(R){return(R=R==null?void 0:R.cards)?R.some(function(y){return y.miniGameCardViewModel&&y.miniGameCardViewModel.width===135}):!1};
_.J.computeCenterItems=function(R){return!!R};
_.J.computeHasInfoPanel=function(R){var y;return R==null?void 0:(y=R.cards)==null?void 0:y.some(function(u){return u.infoPanelContentRenderer})};
_.J.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.J.getItemByIndex=function(R){var y=this.items.children;return y&&y.length>R?y[R]:void 0};
_.J.onPageChange=function(){var R=this;this.pageLoadingFromNavigation=!0;_.WG.addJob(function(){R.pageLoadingFromNavigation=!1;_.h_(R.hostElement,"yt-terminate-video-preview-action")},8)};
_.J.updateListStyles=function(){if(_.f("problem_walkthrough_sd")&&this.JSC$15075_scrollContainer!==void 0){var R=this.JSC$15075_scrollContainer.clientWidth;R!==this.JSC$15075_lastScrollContainerWidth&&(this.JSC$15075_lastScrollContainerWidth=R,_.oX(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(R*.8,415)+"px"}),_.Ko(this.hostElement,"iron-resize"))}};
_.RR.Object.defineProperties(xQ.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.f("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var R,y,u;return!!((R=this.data)==null?0:(y=R.cards)==null?0:(u=y[0])==null?0:u.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var R,y,u;return!!((R=this.data)==null?0:(y=R.cards)==null?0:(u=y[0])==null?0:u.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var R,y,u;return _.f("enable_desktop_amsterdam_info_panels")&&!!((R=this.data)==null?0:(y=R.cards)==null?0:(u=y[0])==null?0:u.infoPanelContentRenderer)}}});
xQ.prototype.dataChanged=xQ.prototype.dataChanged;xQ.prototype.onIronResize=xQ.prototype.onIronResize;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],xQ.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],xQ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.Ia.YtdHorizontalListBehavior),_.p("design:type",Object)],xQ.prototype,"ytdHorizontalListBehavior",void 0);
_.A([_.n(_.c4),_.p("design:type",Object)],xQ.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],xQ.prototype,"data",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],xQ.prototype,"useCustomColors",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],xQ.prototype,"useHighlightStyling",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.p("design:type",Object)],xQ.prototype,"cardListStyle",void 0);_.A([_.r({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.p("design:type",Boolean)],xQ.prototype,"empty",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.p("design:type",Boolean)],xQ.prototype,"hasSubtitle",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.p("design:type",Boolean)],xQ.prototype,"thumbnailStyle",void 0);_.A([_.r({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.p("design:type",Boolean)],xQ.prototype,"hasGameCard",void 0);_.A([_.r({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.p("design:type",Boolean)],xQ.prototype,"centerHeaderTitle",void 0);
_.A([_.r({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.p("design:type",Boolean)],xQ.prototype,"hasPortraitMiniApp",void 0);_.A([_.r({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.p("design:type",Boolean)],xQ.prototype,"hasSquareMiniApp",void 0);_.A([_.r({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.p("design:type",Boolean)],xQ.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.A([_.r({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.p("design:type",Boolean)],xQ.prototype,"hasInfoPanel",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],xQ.prototype,"isSearch",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],xQ.prototype,"inlineStructuredDescription",void 0);_.A([_.O7("#scroll-container"),_.p("design:type",HTMLDivElement)],xQ.prototype,"JSC$15075_scrollContainer",void 0);
_.A([_.r({computed:"computeInitialCountNumber(data.style.type)"}),_.p("design:type",Number)],xQ.prototype,"initialCount",void 0);_.A([_.r({computed:"computeUseFloorScrolling(data.style.type)"}),_.p("design:type",Boolean)],xQ.prototype,"useFloorScrolling",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.p("design:type",Boolean)],xQ.prototype,"centerItems",void 0);_.A([_.r(),_.p("design:type",Object)],xQ.prototype,"pageLoadingFromNavigation",void 0);
_.A([_.r(),_.p("design:type",Object)],xQ.prototype,"currentIndex",void 0);_.A([_.r(),_.p("design:type",Number)],xQ.prototype,"scrollCount",void 0);_.A([_.r(),_.p("design:type",Object)],xQ.prototype,"supportComponentResize",void 0);_.A([_.O7("#items"),_.p("design:type",HTMLDivElement)],xQ.prototype,"items",void 0);_.A([_.fu("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xQ.prototype,"onIronResize",null);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xQ.prototype,"dataChanged",null);_.A([_.r({reflectToAttribute:!0}),_.G("inlineStructuredDescription"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],xQ.prototype,"hideNavigationButton",null);_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],xQ.prototype,"modernChapters",null);
_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],xQ.prototype,"hasVideoAttributeViewModels",null);_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],xQ.prototype,"modernInfoPanels",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],xQ);
_.m(xQ,"ytd-horizontal-card-list-renderer",function(){if(AYT!==void 0)return AYT;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return AYT=R},{mode:_.TN("kevlar_poly_si_batch_j072")?1:2});var Ync=_.Jd(function(R){var y=R.data;var u={};return _.F("video-summary-content-view-model",{class:_.Oy("video-summary-content-view-model-wiz",R.className,(u["video-summary-content-view-model-wiz--is-search"]=R.isSearch,u))},_.F(_.eS,{each:function(){var v=[],Q=y().paragraphs;if(Q==null||!Q.length)return[];for(var M=0;M<Q.length;M++){var K=_.e(Q[M],vRi),h=void 0;M>0&&(h=_.e(Q[M-1],vRi));h&&!!h.marker===!!K.marker?v[v.length-1].paragraphs.push(K):v.push({isList:!!K.marker,paragraphs:[K]})}return v},
keyBy:"INDEX"},function(v){return _.F(_.w,{cond:function(){return v().isList},
then:function(){return _.F("ul",{class:"video-summary-content-view-model-wiz__list"},_.F(_.eS,{each:function(){return v().paragraphs},
keyBy:"INDEX"},function(Q){return _.F("li",{class:"video-summary-content-view-model-wiz__list-item"},_.F(_.QM,{text:function(){return Q().text}}))}))},
else:function(){return _.F(_.eS,{each:function(){return v().paragraphs},
keyBy:"INDEX"},function(Q){return _.F("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.F(_.QM,{text:function(){return Q().text}}))})}})}),_.F(_.w,{cond:function(){return!!_.e(y().likeButtonViewModel,_.A4)&&!!_.e(y().dislikeButtonViewModel,_.mE)},
then:function(){return _.F("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.F("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.F(_.AO,{data:function(){return _.e(y().likeButtonViewModel,_.A4)},
disableIconAnimation:!0})),_.F(_.m2,{data:function(){return _.e(y().dislikeButtonViewModel,_.mE)}}))}}))},"eb");
Ync.idomCompat=!0;_.h6(Ync,"video-summary-content-view-model",{props:{data:_.vR,isSearch:_.vR,className:_.vR}});var Bx=function(){var R=_.W.apply(this,arguments)||this;var y,u;R.isExpanded=(u=(y=R.data)==null?void 0:y.isExpanded)!=null?u:!1;R.disableExpand=!1;R.showProminentLabel=!1;R.showRightSideLabel=!0;R.toggleExpandableContent=function(v){R.disableExpand||(v.stopPropagation(),_.VB(_.u8(v),R.hostElement,["info","expanded-subtitle"])||(R.isExpanded=!R.isExpanded,R.ytRendererBehavior.logExplicitClick(R.data),R.JSC$15086_cardList&&!_.f("expandable_metadata_a11y_fix_ks")&&_.gn(R,function(){_.S_(R.hostElement)})))};
R.useSquareThumbnail=!1;R.contentHiddenWithDisplayNone=_.f("web_expandable_metadata_content_hidden_with_display_none");R.startX=0;return R};
_.O(Bx,_.W);_.J=Bx.prototype;_.J.computeUseSquareThumbnail=function(){var R;return(R=this.data)==null?void 0:R.useSquareThumbnail};
_.J.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"}}}}};
_.J.dataChanged=function(){if(this.data){var R,y;this.isExpanded=(y=(R=this.data)==null?void 0:R.isExpanded)!=null?y:!1;var u,v,Q,M;if(R=this.isDarkTheme()?(u=this.data)==null?void 0:(v=u.colorData)==null?void 0:v.darkColorPalette:(Q=this.data)==null?void 0:(M=Q.colorData)==null?void 0:M.lightColorPalette){var K,h;if((K=this.data)==null?0:(h=K.colorData)==null?0:h.vibrantColorPalette)R.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.mx(this.hostElement,R)}}};
_.J.isExpandedChanged=function(){this.isExpanded&&this.JSC$15086_cardList&&_.Ko(this.JSC$15086_cardList,"iron-resize")};
_.J.computeIsExpanded=function(R){return!!R.isExpanded};
_.J.computeShowProminentLabel=function(R,y){var u;return!!(R==null?0:(u=R.header)==null?0:u.showLeadingCollapsedLabel)&&!y};
_.J.computeShowRightSideLabel=function(R,y){var u;return!(R==null?0:(u=R.header)==null?0:u.showLeadingCollapsedLabel)&&!y};
_.J.captureContentClick=function(R){if(!this.disableExpand)if(_.f("expandable_metadata_fix_killswitch")){var y=R.target;_.Gag(y,"ytd-macro-markers-list-item-renderer")||R.stopPropagation();(y==null?void 0:y.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.VB(_.u8(R),this.hostElement,["items"])||_.JF(_.u8(R),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.J.timestampClick=function(R){R.stopPropagation();var y,u;(R=(y=this.data)==null?void 0:(u=y.header)==null?void 0:u.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(R)};
_.J.onDown=function(R){R.stopPropagation();this.startX=R.detail?R.detail.x:0};
_.J.onUp=function(R){this.skipKeyInteraction(R)&&R.stopPropagation()};
_.J.skipKeyInteraction=function(R){var y=R.target;if((y==null?void 0:y.id)==="scroll-container"||(y==null?void 0:y.id)==="items"||R.detail&&R.detail.x!==this.startX)return!0;R=_.u8(R);R=_.V(R);for(y=R.next();!y.done;y=R.next()){y=y.value;if(y===this.hostElement)break;if(y.hasAttribute&&y.hasAttribute("skip-key-interaction"))return!0}return!1};
_.J.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.RR.Object.defineProperties(Bx.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var R;return!!_.e((R=this.data)==null?void 0:R.expandedContent,u85)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var R;return!!_.e((R=this.data)==null?void 0:R.expandedContent,_.RN5)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var R,y;return!((R=this.data)==null||!R.useCustomColors)&&!((y=this.data)==null||!y.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,y;return!!((R=this.data)==null?0:(y=R.header)==null?0:y.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var R,y;return!!((R=this.data)==null?0:(y=R.header)==null?0:y.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var R,y;return!!((R=this.data)==null?0:(y=R.header)==null?0:y.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"}},
contentHidden:{configurable:!0,enumerable:!0,get:function(){return _.f("web_expandable_metadata_content_hidden_with_display_none")&&!this.isExpanded}}});
Bx.prototype.onUp=Bx.prototype.onUp;Bx.prototype.onDown=Bx.prototype.onDown;Bx.prototype.isExpandedChanged=Bx.prototype.isExpandedChanged;Bx.prototype.dataChanged=Bx.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Bx.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Bx.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Bx.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Bx.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Bx.prototype,"isExpanded",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Bx.prototype,"disableExpand",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],Bx.prototype,"isSearch",void 0);
_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],Bx.prototype,"isWatch",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.p("design:type",Object)],Bx.prototype,"showProminentLabel",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.p("design:type",Object)],Bx.prototype,"showRightSideLabel",void 0);
_.A([_.r({value:!1,reflectToAttribute:!0}),_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Bx.prototype,"hasVideoSummary",null);_.A([_.r({value:!1,reflectToAttribute:!0}),_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Bx.prototype,"hasLockupViewModel",null);_.A([_.r({reflectToAttribute:!0}),_.G("data","isWatch"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Bx.prototype,"useCustomColors",null);
_.A([_.r({reflectToAttribute:!0}),_.G("data","isExpanded"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Bx.prototype,"showInfoButton",null);_.A([_.G("data","isExpanded"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Bx.prototype,"showTimestamp",null);_.A([_.G("data","isExpanded"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Bx.prototype,"showExpandedSubtitle",null);
_.A([_.G("data","isExpanded"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Bx.prototype,"showThumbnail",null);_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Bx.prototype,"useVppShoppingDestinationStyle",null);_.A([_.r(),_.p("design:type",Object)],Bx.prototype,"toggleExpandableContent",void 0);_.A([_.O7("ytd-horizontal-card-list-renderer"),_.p("design:type",Object)],Bx.prototype,"JSC$15086_cardList",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.p("design:type",Object)],Bx.prototype,"useSquareThumbnail",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Bx.prototype,"contentHiddenWithDisplayNone",void 0);_.A([_.G("isExpanded"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Bx.prototype,"contentHidden",null);
_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Bx.prototype,"dataChanged",null);_.A([_.e0("isExpanded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Bx.prototype,"isExpandedChanged",null);_.A([_.fu("down"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Bx.prototype,"onDown",null);
_.A([_.fu("up"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Bx.prototype,"onUp",null);_.A([_.q({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],Bx);
_.m(Bx,"ytd-expandable-metadata-renderer",function(){if(zjw!==void 0)return zjw;var R=document.createElement("template");_.H(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" hidden="[[contentHidden]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');R.content.insertBefore(_.t().content.cloneNode(!0),
R.content.firstChild);return zjw=R},{mode:1});var L0L,sW5=function(){if(L0L!==void 0)return L0L;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return L0L=R};_.h6(_.Ap,"yt-avatar-stack-view-model",{props:{className:_.vR,data:_.vR,overrides:_.vR,isOverlay:_.vR,useMediumText:_.vR,decorations:_.vR,hideAvatar:_.vR}});_.Dl("itemSectionRenderer","videoRenderer","ytd-video-renderer");var fw=function(){var R=_.W.apply(this,arguments)||this;R.disableExpand=!1;R.shouldShowChannelInfo=!1;R.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return R};
_.O(fw,_.W);_.J=fw.prototype;_.J.computeUseSearchUi=function(){var R,y;return this.isSearch||((R=this.data)==null?void 0:(y=R.style)==null?void 0:y.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.J.computeUseThreeLineTitle=function(){var R;return((R=this.data)==null?void 0:R.maxTitleLines)===3};
_.J.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.f("polymer_video_renderer_defer_menu")&&!m6i?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"}}}};
_.J.attached=function(){_.FN(this.hostElement,"blue-links",_.f("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.J.detached=function(){this.clearInlinePreviewHoverListeners()};
_.J.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.w2(_.hw(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var R=this.get("data.buttons.buttonRenderer.serviceEndpoint"),y;R&&((y=_.e(R.commandMetadata,_.Ec))==null?0:y.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(R);this.updateInlinePreviewHoverListeners()};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15091_inlinePreviewHoverListener=sC({mediaRenderer:this,lockupElement:this.JSC$15091_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.J.clearInlinePreviewHoverListeners=function(){var R;(R=this.JSC$15091_inlinePreviewHoverListener)==null||Mr(R)};
_.J.onTextWrapperClick=function(R){var y,u,v=this.hideTranslation?(y=this.data)==null?void 0:y.untranslatedNavigationEndpoint:(u=this.data)==null?void 0:u.navigationEndpoint;y=_.VB(_.u8(R),this.hostElement,["expandable-metadata"]);!v||y&&!_.f("expandable_metadata_fix_killswitch")||_.JF(_.u8(R),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.Ko(this.hostElement,"yt-navigate",{endpoint:v})};
_.J.computeThumbnailWidth=function(R,y,u,v,Q){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:v?Q==="MASSIVE"?600:Q==="BIG"?500:Q==="MEDIUM"?450:420:u?360:y?128:R?210:246};
_.J.computeUseBiggerThumbs=function(R){return R&&_.f("enable_desktop_search_bigger_thumbs")};
_.J.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.J.computeVideoStyle=function(){if(_.f("enable_video_style")){var R,y;return(R=this.data)==null?void 0:(y=R.style)==null?void 0:y.value}};
_.J.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.J.handleHideItemSectionVideosByIdCommand=function(R){var y;R=(y=_.e(R,OjL))==null?void 0:y.videoId;this.data&&this.data.videoId===R&&(this.isHidden=!0)};
_.J.getMetadataSnippetContainerClass=function(R){return R?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.J.computeTitleText=function(R,y,u){return R?u:y};
_.J.computeDescriptionSnippet=function(R,y,u){return R?u:y};
_.J.computeSnippetText=function(R,y,u){return R?u:y};
_.J.computeNavigationEndpoint=function(R,y){return R?y==null?void 0:y.untranslatedNavigationEndpoint:y==null?void 0:y.navigationEndpoint};
_.J.hideInlineTitleIcon=function(R,y){return R||!y};
_.RR.Object.defineProperties(fw.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,y,u;return!!(this==null?0:(R=this.data)==null?0:(y=R.channelThumbnailSupportedRenderers)==null?0:(u=y.channelThumbnailWithLinkRenderer)==null?0:u.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var R;return!!_.e((R=this.data)==null?void 0:R.avatar,yXc)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.JSC$15091_inlinePreviewHoverListener)==null?0:tp(R))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.RR.Object.defineProperties(fw,{template:{configurable:!0,enumerable:!0,get:function(){return sW5()}}});
fw.prototype.dataChanged=fw.prototype.dataChanged;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],fw.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],fw.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],fw.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.c4),_.p("design:type",Object)],fw.prototype,"ytdDismissibleItemBehavior",void 0);
_.A([_.n(_.gT),_.p("design:type",Object)],fw.prototype,"ytdLockupBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],fw.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],fw.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],fw.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],fw.prototype,"isBackstageVideo",void 0);
_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],fw.prototype,"isPostCompactVideo",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],fw.prototype,"isHistory",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],fw.prototype,"isRichGridVideoPost",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],fw.prototype,"isHidden",void 0);
_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],fw.prototype,"isSearch",void 0);_.A([_.r({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.p("design:type",Boolean)],fw.prototype,"useSearchUi",void 0);_.A([_.r({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.p("design:type",Boolean)],fw.prototype,"useThreeLineTitle",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.p("design:type",Boolean)],fw.prototype,"useBiggerThumbs",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.p("design:type",Object)],fw.prototype,"videoStyle",void 0);_.A([_.r({computed:"computeDisableExpand(videoStyle)"}),_.p("design:type",Object)],fw.prototype,"disableExpand",void 0);
_.A([_.r({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.p("design:type",Object)],fw.prototype,"shouldShowChannelInfo",void 0);_.A([_.r({reflectToAttribute:!0,value:function(){return _.VN("desktop_search_bigger_thumbs_style")}}),
_.p("design:type",String)],fw.prototype,"biggerThumbsStyle",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.p("design:type",String)],fw.prototype,"inlineTitleIcon",void 0);_.A([_.r({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.p("design:type",Object)],fw.prototype,"computedNavigationEndpoint",void 0);_.A([_.r({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(R,y){return _.TI(R.entities,"searchVideoResultEntity",y)}}),
_.p("design:type",Object)],fw.prototype,"searchVideoResultEntity",void 0);_.A([_.O7("ytd-thumbnail"),_.p("design:type",HTMLElement)],fw.prototype,"thumbnail",void 0);_.A([_.O7("#dismissible"),_.p("design:type",HTMLElement)],fw.prototype,"JSC$15091_dismissibleMedia",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],fw.prototype,"dataChanged",null);
_.A([_.G("searchVideoResultEntity"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],fw.prototype,"hideTranslation",null);_.A([_.G("searchVideoResultEntity"),_.p("design:type",Array),_.p("design:paramtypes",[])],fw.prototype,"hiddenBadgeGroups",null);_.A([_.G("data","useAvatar"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],fw.prototype,"shouldShowChannelThumbnail",null);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],fw.prototype,"useAvatar",null);
_.A([_.G("lockupIsHovered"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],fw.prototype,"isHovered",null);_.A([_.q({is:"ytd-video-renderer",disableElementRegistration:!0})],fw);_.m(fw,"ytd-video-renderer",function(){return sW5()},{mode:_.TN("kevlar_poly_si_batch_j047")?1:2});var ea=function(){var R=_.W.apply(this,arguments)||this;R.editDialog=null;R.roundedContainer=!0;R.isLoading=!1;R.isRichGrid=!1;R.isRichGridRepost=!1;R.reduceSidePaddings=_.f("reduce_side_paddings_in_shelf");R.JSC$15098_spinnerEl=null;return R};
_.O(ea,_.W);_.J=ea.prototype;
_.J.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"}}}};
_.J.contentTextChanged=function(){this.expander.reset()};
_.J.dataChanged=function(){var R=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var y=0,u=this.data.actions&&this.data.actions.length;y<u;y++)this.openEditDialog(_.e(this.data.actions[y],Xcc));if((y=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(y=this.get("buttonRenderer.hint.hintRenderer.hintId",y))&&y.startsWith("share-post-hint")){var v=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(v){_.Ii.getInstance();var Q=hn(_.ye(_.fo("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.WG.addLowPriorityJob(function(){_.wr(R.hostElement,Q,v)})}}}};
_.J.updatePoll=function(R){R>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.J.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15098_spinnerEl||(this.JSC$15098_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.hw(this.hostElement).appendChild(this.JSC$15098_spinnerEl));this.JSC$15098_spinnerEl&&(this.JSC$15098_spinnerEl.active=this.isLoading)};
_.J.onYtNavigate=function(R){var y=this.get("updateCommentDialogEndpoint",R.detail.endpoint);y&&(this.openEditDialog(y),R.stopPropagation())};
_.J.onYtCommentboxDismiss=function(){this.editDialog=null};
_.J.onYtCommentPollRevert=function(R,y){y&&this.updatePoll(y.selectedChoiceIndex)};
_.J.onYtServiceRequestSent=function(R,y){var u;y.endpoint&&(_.e(y.endpoint,hxi)||_.e(y.endpoint,IXw)&&((u=_.e(y.endpoint,IXw))==null||!u.clientActions))&&(this.isLoading=!0);if(y.actions)for(R=0;R<y.actions.length;R++)u=y.actions[R],_.e(u,Uc)&&(u=this.get("updateBackstagePollAction.selectedChoiceIndex",u),u==void 0&&(u=-1),this.updatePoll(u))};
_.J.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.J.openEditDialog=function(R){R&&R.dialog&&(this.editDialog=R.dialog,R=this.editDialogEl.firstElementChild)&&(R.focus(),R.openDialog&&R.openDialog())};
_.J.computeIsPostHidden=function(R,y){return!!R||y};
_.J.computeSurfaceType=function(R){return R?R.toLowerCase().replace(/_/g,"-"):""};
_.J.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"};
_.J.computeShowWithoutToolbar=function(R){return!R.actionButtons&&!R.actionMenu};
_.J.computePostAttachment=function(R){if(R.backstageAttachment){if(_.e(R.backstageAttachment,aEi))return"poll";if(_.e(R.backstageAttachment,r48))return"quiz";if(_.e(R.backstageAttachment,_.YW))return"video";if(_.e(R.backstageAttachment,Pub))return"uploaded-videos";if(_.e(R.backstageAttachment,iTT))return R.contentText?"image":"image-only";if(_.e(R.backstageAttachment,ZtK))return"playlist"}return"none"};
_.J.computePostTabIndex=function(R){return R?0:-1};
_.J.computeButtonTooltipPosition=function(R){return this.computeUsesCompactLockup(R)?"top":"bottom"};
_.J.computeHasText=function(R){return!(R==null||!R.contentText)};
_.J.onTap=function(R){var y,u;if(((y=this.data)==null?0:y.navigationEndpoint)&&((u=this.data)==null?void 0:u.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var v;((v=this.data)==null?0:v.navigationEndpoint)&&!_.JF(_.u8(R)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.Ko(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.RR.Object.defineProperties(ea.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.voteCount)||_.ye("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||!_.e(this.data.backstageAttachment,aEi))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.e(this.data.backstageAttachment,Pub))}}});
ea.prototype.onYtServiceRequestCompleted=ea.prototype.onYtServiceRequestCompleted;ea.prototype.onYtServiceRequestSent=ea.prototype.onYtServiceRequestSent;ea.prototype.onYtCommentPollRevert=ea.prototype.onYtCommentPollRevert;ea.prototype.onYtCommentboxDismiss=ea.prototype.onYtCommentboxDismiss;ea.prototype.onYtNavigate=ea.prototype.onYtNavigate;ea.prototype.isLoadingChanged=ea.prototype.isLoadingChanged;ea.prototype.dataChanged=ea.prototype.dataChanged;ea.prototype.contentTextChanged=ea.prototype.contentTextChanged;
_.A([_.n(_.c4),_.p("design:type",Object)],ea.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ea.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],ea.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],ea.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ea.prototype,"data",void 0);
_.A([_.r(),_.p("design:type",Object)],ea.prototype,"editDialog",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ea.prototype,"roundedContainer",void 0);_.A([_.r(),_.p("design:type",Object)],ea.prototype,"isLoading",void 0);_.A([_.r({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.p("design:type",String)],ea.prototype,"surface",void 0);
_.A([_.r({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.p("design:type",Boolean)],ea.prototype,"usesCompactLockup",void 0);_.A([_.r({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],ea.prototype,"showWithoutToolbar",void 0);_.A([_.r({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.p("design:type",String)],ea.prototype,"attachment",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ea.prototype,"isRichGrid",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ea.prototype,"isRichGridRepost",void 0);_.A([_.r({reflectToAttribute:!0,value:_.f("use_better_post_dismissals")}),_.p("design:type",Boolean)],ea.prototype,"useBetterPostDismissals",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ea.prototype,"reduceSidePaddings",void 0);
_.A([_.r({computed:"computeHasText(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],ea.prototype,"hasText",void 0);_.A([_.O7("#expander"),_.p("design:type",Object)],ea.prototype,"expander",void 0);_.A([_.O7("#action-buttons"),_.p("design:type",Object)],ea.prototype,"actionButtons",void 0);_.A([_.O7("#edit-dialog"),_.p("design:type",HTMLElement)],ea.prototype,"editDialogEl",void 0);
_.A([_.e0("data.contentText"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ea.prototype,"contentTextChanged",null);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ea.prototype,"dataChanged",null);_.A([_.e0("isLoading"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ea.prototype,"isLoadingChanged",null);
_.A([_.fu("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],ea.prototype,"onYtNavigate",null);_.A([_.fu("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ea.prototype,"onYtCommentboxDismiss",null);_.A([_.fu("yt-comment-poll-revert"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],ea.prototype,"onYtCommentPollRevert",null);
_.A([_.fu("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.z3]),_.p("design:returntype")],ea.prototype,"onYtServiceRequestSent",null);_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Mp]),_.p("design:returntype")],ea.prototype,"onYtServiceRequestCompleted",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],ea.prototype,"voteCount",null);
_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],ea.prototype,"commentCount",null);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ea.prototype,"hasPoll",null);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ea.prototype,"hasUploadedVideo",null);_.A([_.q({is:"ytd-post-renderer",disableElementRegistration:!0})],ea);
_.m(ea,"ytd-post-renderer",function(){if(otY!==void 0)return otY;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return otY=R},{mode:1});var zZc;var grb;var l2=function(){return _.W.apply(this,arguments)||this};
_.O(l2,_.W);l2.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],l2.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],l2.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.Ia.YtdHorizontalListBehavior),_.p("design:type",Object)],l2.prototype,"ytdHorizontalListBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],l2.prototype,"componentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],l2.prototype,"data",void 0);
_.A([_.r({value:"$.items.children"}),_.p("design:type",String)],l2.prototype,"itemsPath",void 0);_.A([_.r({value:1}),_.p("design:type",Number)],l2.prototype,"initialCount",void 0);_.A([_.r(),_.p("design:type",String)],l2.prototype,"surface",void 0);_.A([_.q({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],l2);
_.m(l2,"ytd-post-multi-image-renderer",function(){if(grb!==void 0)return grb;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return grb=R},{mode:_.TN("kevlar_poly_si_batch_j079")?1:2});var Cwg={"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"}}},Ou=function(){var R=_.W.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$15114_spinnerEl=null;R.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return R};
_.O(Ou,_.W);_.J=Ou.prototype;_.J.configureRendererStamper=function(){return Cwg};
_.J.computeIsPollHeaderEnabled=function(R){return(R==null?void 0:R.pollMetadataIcon)!=null};
_.J.getPublishTimeStampString=function(R,y){y=new Date((Number(y)-60*((new Date).getTimezoneOffset()-(new Date(Number(y)*1E3)).getTimezoneOffset()))*1E3);y=(new gN(10)).format(y);if(R&&R.runs&&R.runs.length)for(var u=0;u<R.runs.length;u++)R.runs[u].text&&(R.runs[u].text=R.runs[u].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",y));return R};
_.J.created=function(){this.JSC$15114_spinnerEl=null};
_.J.contentTextChanged=function(){this.expander.reset()};
_.J.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var R;if((R=this.data)==null?0:R.actions){R=_.V(this.data.actions);for(var y=R.next();!y.done;y=R.next())this.openEditDialog(_.e(y.value,Xcc))}};
_.J.handleSignalActionOpenPostCommentDialogAction=function(){_.hw(this.hostElement).querySelector("#action-buttons").reply()};
_.J.updatePoll=function(R,y){y&&this.set("data.pollMetadataVoteCountText",y);this.hasInlineCommentSection&&(R=R>=0,y=_.hw(this.hostElement).querySelector("#action-buttons"),R?y.reply():y.hideReplyDialog())};
_.J.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15114_spinnerEl||(this.JSC$15114_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.hw(this.hostElement).appendChild(this.JSC$15114_spinnerEl));this.JSC$15114_spinnerEl&&(this.JSC$15114_spinnerEl.active=this.isLoading)};
_.J.onYtNavigate=function(R){var y=this.get("updateCommentDialogEndpoint",R.detail.endpoint);y&&(this.openEditDialog(y),R.stopPropagation())};
_.J.onYtCommentboxDismiss=function(){this.editDialog=null};
_.J.onYtCommentPollRevert=function(R,y){y&&this.updatePoll(y.selectedChoiceIndex,y.totalVotes)};
_.J.onYtServiceRequestSent=function(R,y){R.stopPropagation();R=_.e(y.endpoint,IXw);if(_.e(y.endpoint,hxi)||R&&!R.clientActions)this.isLoading=!0;if(y.actions)for(R=0;R<y.actions.length;R++){var u=y.actions[R],v=_.e(u,Uc);v&&(u=this.get("updateBackstagePollAction.selectedChoiceIndex",u),u===void 0&&(u=-1),this.updatePoll(u,v.totalVotes))}};
_.J.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.J.openEditDialog=function(R){R&&R.dialog&&(this.editDialog=R.dialog,R=this.editDialogElement.firstElementChild)&&(R.focus(),R.openDialog&&R.openDialog())};
_.J.computeIsBodyHidden=function(R,y){return!!R||y};
_.RR.Object.defineProperties(Ou.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var R,y;if((R=this.data)==null?0:(y=R.pollMetadataIcon)==null?0:y.iconType)return _.fk(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.voteCount)||_.ye("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||!_.e(this.data.backstageAttachment,aEi))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.e(this.data.backstageAttachment,r48))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.e(this.data.backstageAttachment,Pub))}}});
Ou.prototype.onYtServiceRequestCompleted=Ou.prototype.onYtServiceRequestCompleted;Ou.prototype.onYtServiceRequestSent=Ou.prototype.onYtServiceRequestSent;Ou.prototype.onYtCommentPollRevert=Ou.prototype.onYtCommentPollRevert;Ou.prototype.onYtCommentboxDismiss=Ou.prototype.onYtCommentboxDismiss;Ou.prototype.onYtNavigate=Ou.prototype.onYtNavigate;Ou.prototype.isLoadingChanged=Ou.prototype.isLoadingChanged;Ou.prototype.dataChanged=Ou.prototype.dataChanged;Ou.prototype.contentTextChanged=Ou.prototype.contentTextChanged;
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Ou.prototype,"actionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Ou.prototype,"rendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Ou.prototype,"rendererstamperBehavior",void 0);_.A([_.O7("#contentTextExpander"),_.p("design:type",Object)],Ou.prototype,"expander",void 0);
_.A([_.O7("#edit-dialog"),_.p("design:type",Element)],Ou.prototype,"editDialogElement",void 0);_.A([_.r(),_.p("design:type",Object)],Ou.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],Ou.prototype,"hasInlineCommentSection",void 0);_.A([_.r(),_.p("design:type",Object)],Ou.prototype,"editDialog",void 0);_.A([_.r(),_.p("design:type",Object)],Ou.prototype,"isLoading",void 0);
_.A([_.r({computed:"computeIsPollHeaderEnabled(data)"}),_.p("design:type",Boolean)],Ou.prototype,"isPollHeaderEnabled",void 0);_.A([_.r(),_.p("design:type",Object)],Ou.prototype,"shouldHideAuthor",void 0);_.A([_.r(),_.p("design:type",Object)],Ou.prototype,"shouldShowVideoTime",void 0);_.A([_.r(),_.p("design:type",Object)],Ou.prototype,"isInEngagementPanel",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Ou.prototype,"hideBorder",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Ou.prototype,"usesFullLockup",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Ou.prototype,"shouldShowMenuInCompactView",void 0);_.A([_.G("isInEngagementPanel"),_.p("design:type",Number),_.p("design:paramtypes",[])],Ou.prototype,"postTextMaxLines",null);_.A([_.G("data.icon.iconType"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ou.prototype,"pollIcon",null);
_.A([_.e0("data.contentText"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ou.prototype,"contentTextChanged",null);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ou.prototype,"dataChanged",null);_.A([_.e0("isLoading"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ou.prototype,"isLoadingChanged",null);
_.A([_.fu("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Ou.prototype,"onYtNavigate",null);_.A([_.fu("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ou.prototype,"onYtCommentboxDismiss",null);_.A([_.fu("yt-comment-poll-revert"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],Ou.prototype,"onYtCommentPollRevert",null);
_.A([_.fu("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.z3]),_.p("design:returntype")],Ou.prototype,"onYtServiceRequestSent",null);_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Ou.prototype,"onYtServiceRequestCompleted",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ou.prototype,"voteCount",null);
_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ou.prototype,"commentCount",null);_.A([_.G("data.backstageAttachment"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Ou.prototype,"hasPoll",null);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Ou.prototype,"hasQuiz",null);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Ou.prototype,"hasUploadedVideo",null);
_.A([_.q({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],Ou);
_.m(Ou,"ytd-backstage-post-renderer",function(){if(zZc!==void 0)return zZc;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return zZc=R},{mode:1});var RIc;var Z8=function(){var R=_.W.apply(this,arguments)||this;R.editDialog=null;R.showExpandButton=!1;R.isRichGrid=!1;R.usesFullLockup=!1;return R};
_.O(Z8,_.W);_.J=Z8.prototype;_.J.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"}}}};
_.J.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.J.computeShowExpandButton=function(R){return this.usesCompactLockup||R&&R.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.J.computeUsesCompactLockup=function(R){return!!R.condensedContent};
_.J.computeShowFullContentText=function(R){return!R};
_.J.onYtNavigate=function(R){R=this.get("updateCommentDialogEndpoint",R.detail.endpoint);this.openEditDialog(R)};
_.J.onYtCommentboxDismiss=function(){this.editDialog=null};
_.J.openEditDialog=function(R){R&&R.dialog&&(this.editDialog=R.dialog,R=this.repostEditDialogEl.firstElementChild)&&(R.focus(),R.openDialog&&R.openDialog())};
_.J.onTap=function(R){if(this.data){var y=null;this.usesCompactLockup&&!_.JF(_.u8(R)||[],this.hostElement,["YT-IMG-SHADOW"])?y=this.get("navigationEndpoint",this.data):R.target===this.moreButtonEl&&(y=this.get("navigationEndpoint",R.target.data));y&&_.Ko(this.hostElement,"yt-navigate",{endpoint:y})}};
Z8.prototype.onYtCommentboxDismiss=Z8.prototype.onYtCommentboxDismiss;Z8.prototype.onYtNavigate=Z8.prototype.onYtNavigate;Z8.prototype.dataChanged=Z8.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Z8.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Z8.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Z8.prototype,"data",void 0);
_.A([_.r(),_.p("design:type",Object)],Z8.prototype,"editDialog",void 0);_.A([_.r({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],Z8.prototype,"usesCompactLockup",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Z8.prototype,"showExpandButton",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Z8.prototype,"isRichGrid",void 0);
_.A([_.r({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.p("design:type",Boolean)],Z8.prototype,"showFullContentText",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Z8.prototype,"usesFullLockup",void 0);_.A([_.O7("#more"),_.p("design:type",Object)],Z8.prototype,"moreButtonEl",void 0);_.A([_.O7("#repost-content-text"),_.p("design:type",HTMLElement)],Z8.prototype,"repostContentTextEl",void 0);
_.A([_.O7("#repost-edit-dialog"),_.p("design:type",HTMLElement)],Z8.prototype,"repostEditDialogEl",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Z8.prototype,"dataChanged",null);_.A([_.fu("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Z8.prototype,"onYtNavigate",null);
_.A([_.fu("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Z8.prototype,"onYtCommentboxDismiss",null);_.A([_.q({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],Z8);
_.m(Z8,"ytd-shared-post-renderer",function(){if(RIc!==void 0)return RIc;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return RIc=R},{mode:1});var y05;var uTL;var Hx=function(){return _.W.apply(this,arguments)||this};
_.O(Hx,_.W);Hx.prototype.attached=function(){var R=this;this.networkStatusManager||(this.networkStatusManager=new _.tv,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){R.onlineHandler()}))};
Hx.prototype.detached=function(){var R=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){R.onlineHandler()}),delete this.networkStatusManager)};
Hx.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Hx.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Hx.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Hx.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],Hx);
_.m(Hx,"ytd-reload-page-button-renderer",function(){if(uTL!==void 0)return uTL;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);
return uTL=R},{mode:1});var vNY={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"},nw=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return R};
_.O(nw,_.W);_.J=nw.prototype;_.J.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.J.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.J.computeHasBodyText=function(R){return!!R.bodyText};
_.J.computeButtons=function(R){var y=[];R.ctaButton&&y.push(R.ctaButton);R.secondaryButton&&y.push(R.secondaryButton);return y};
_.J.computeRendererStyle=function(R){return R.style?R.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():R.icon?"":"no-icon"};
_.J.getIconName=function(R,y){y=y===void 0?!1:y;if(R===void 0)return"";R=this.get("icon.iconType",R);var u;_.f("enable_hlp_client_icon_pick")?u=this.getThemedIcon(R,y):u=R;(y=vNY[u])||(y="yt-icons");return[y,u].join(":")};
_.J.getThemedIcon=function(R,y){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(R)?y?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(R)?y?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":R};
_.J.isThumbnail=function(R){return!!R.thumbnail};
_.J.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.J.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],nw.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],nw.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],nw.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],nw.prototype,"data",void 0);
_.A([_.r({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.p("design:type",String)],nw.prototype,"rendererStyle",void 0);_.A([_.r({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.p("design:type",String)],nw.prototype,"iconName",void 0);_.A([_.r({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],nw.prototype,"thumbnail",void 0);_.A([_.r({computed:"computeButtons(data)"}),_.p("design:type",Array)],nw.prototype,"buttons",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],nw.prototype,"isDarkTheme",void 0);_.A([_.r({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],nw.prototype,"hasBodyText",void 0);_.A([_.q({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],nw);
_.m(nw,"ytd-background-promo-renderer",function(){if(y05!==void 0)return y05;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return y05=R},{mode:1});var QgG;var Gt=function(){var R=_.W.apply(this,arguments)||this;R.collections=_.f("web_modern_collections_v2");return R};
_.O(Gt,_.W);_.RR.Object.defineProperties(Gt.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var R,y,u,v,Q,M;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(R=this.data)==null?void 0:(y=R.thumbnail)==null?void 0:y.sampledThumbnailColor,vibrantColorPalette:(u=this.data)==null?void 0:(v=u.thumbnail)==null?void 0:v.vibrantColorPalette,darkColorPalette:(Q=this.data)==null?void 0:(M=Q.thumbnail)==null?void 0:M.darkColorPalette,experimentEnabled:this.collections}}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Gt.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Gt.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Gt.prototype,"collections",void 0);_.A([_.G("data","collections"),_.p("design:type",Object),_.p("design:paramtypes",[])],Gt.prototype,"collectionStack",null);_.A([_.q({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],Gt);
_.m(Gt,"ytd-compact-station-renderer",function(){if(QgG!==void 0)return QgG;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return QgG=R},{mode:1});var jg5;var rb=function(){var R=_.W.apply(this,arguments)||this;R.isRichGrid=!1;return R};
_.O(rb,_.W);rb.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],rb.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],rb.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],rb.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],rb.prototype,"isRichGrid",void 0);_.A([_.q({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],rb);
_.m(rb,"ytd-grid-channel-renderer",function(){if(jg5!==void 0)return jg5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return jg5=R},{mode:1});var Mn5;var Px=function(){return _.W.apply(this,arguments)||this};
_.O(Px,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Px.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Px.prototype,"data",void 0);_.A([_.q({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],Px);
_.m(Px,"ytd-grid-movie-playlist-renderer",function(){if(Mn5!==void 0)return Mn5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Mn5=R},{mode:1});var J0b;var Wx=function(){var R=_.W.apply(this,arguments)||this;R.downloadProgress=0;R.transferState="TRANSFER_STATE_UNKNOWN";R.modernButtons=_.f("web_modern_buttons");R.useModernCollectionsV2=_.f("web_modern_collections_v2");return R};
_.O(Wx,_.W);Wx.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
Wx.prototype.configureRendererStamper=function(){return{"data.menu":lH}};
Wx.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
Wx.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.f("woffle_playlist_renderer_killswitch")){var R,y=W$G(this.entityInfo,this.transferState,this.downloadProgress,(R=this.data)==null?void 0:R.playlistId,this.isOnline);R=y.viewPlaylistText;var u=y.badges;y=y.thumbnailOverlays;this.isDownloads=!!R||!!u;this.set("data.viewPlaylistText",R);u&&u.length>0&&this.set("data.badges",u);y&&y.length>0&&this.set("data.thumbnailOverlays",
y)}};
_.RR.Object.defineProperties(Wx.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)}}});
Wx.prototype.transferStateChanged=Wx.prototype.transferStateChanged;Wx.prototype.dataChanged=Wx.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Wx.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.gT),_.p("design:type",Object)],Wx.prototype,"ytdLockupBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],Wx.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Wx.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.r({selector:_.aXL,selectorArgs:["data.playlistId"]}),_.p("design:type",Object)],Wx.prototype,"downloadProgress",void 0);_.A([_.r({selector:_.tN,selectorArgs:["data.playlistId"]}),_.p("design:type",Object)],Wx.prototype,"transferState",void 0);_.A([_.r({selector:csE,selectorArgs:["data.playlistId"]}),_.p("design:type",Object)],Wx.prototype,"entityInfo",void 0);_.A([_.r({selector:_.Dn}),_.p("design:type",Boolean)],Wx.prototype,"isOnline",void 0);
_.A([_.r(),_.p("design:type",Object)],Wx.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],Wx.prototype,"downloadRenderData",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Wx.prototype,"modernButtons",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],Wx.prototype,"isDownloads",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Wx.prototype,"useModernCollectionsV2",void 0);
_.A([_.G("transferState"),_.r({reflectToAttribute:!0}),_.p("design:type",String),_.p("design:paramtypes",[])],Wx.prototype,"downloadState",null);_.A([_.G("data"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Wx.prototype,"menuHidden",null);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Wx.prototype,"dataChanged",null);
_.A([_.GJ("transferState","downloadProgress","isOnline"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Wx.prototype,"transferStateChanged",null);_.A([_.q({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],Wx);
_.m(Wx,"ytd-grid-playlist-renderer",function(){if(J0b!==void 0)return J0b;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return J0b=R},{mode:1});var VnG;var db=function(){var R=_.W.apply(this,arguments)||this;R.collections=_.f("web_modern_collections_v2");return R};
_.O(db,_.W);db.prototype.configureRendererStamper=function(){return{"data.menu":lH,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.RR.Object.defineProperties(db.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var R,y,u,v,Q,M;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(R=this.data)==null?void 0:(y=R.thumbnail)==null?void 0:y.sampledThumbnailColor,vibrantColorPalette:(u=this.data)==null?void 0:(v=u.thumbnail)==null?void 0:v.vibrantColorPalette,darkColorPalette:(Q=this.data)==null?void 0:(M=Q.thumbnail)==null?void 0:M.darkColorPalette,experimentEnabled:this.collections}}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],db.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.c4),_.p("design:type",Object)],db.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.n(_.gT),_.p("design:type",Object)],db.prototype,"ytdLockupBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],db.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],db.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],db.prototype,"collections",void 0);_.A([_.G("data","collections"),_.p("design:type",Object),_.p("design:paramtypes",[])],db.prototype,"collectionStack",null);_.A([_.q({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],db);
_.m(db,"ytd-grid-radio-renderer",function(){if(VnG!==void 0)return VnG;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return VnG=R},{mode:1});var ini;var Uu=function(){var R=_.W.apply(this,arguments)||this;R.useModernCollectionsV2=_.f("web_modern_collections_v2");return R};
_.O(Uu,_.W);Uu.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
Uu.prototype.computeNavigationEndpoint=function(R){return mvG(R==null?void 0:R.navigationEndpoint)};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Uu.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Uu.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.gT),_.p("design:type",Object)],Uu.prototype,"ytdLockupBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Uu.prototype,"data",void 0);_.A([_.r({computed:"computeNavigationEndpoint(data)"}),_.p("design:type",Object)],Uu.prototype,"computedNavigationEndpoint",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Uu.prototype,"useModernCollectionsV2",void 0);_.A([_.q({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],Uu);
_.m(Uu,"ytd-grid-show-renderer",function(){if(ini!==void 0)return ini;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return ini=R},{mode:1});var KLK;_.kQ=function(R){this.playerClient=R};
_.I98=function(R,y,u){u=u===void 0?{}:u;return R.playerClient.setOption("ad",y,u)};
_.kQ.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.kQ.prototype.executeCommand=function(R,y){this.getOptions().includes("executeCommand")?_.I98(this,"executeCommand",{command:R,layoutId:y}):_.M5("Calling executeCommand when adModule is not loaded")};var Eu=function(){return _.W.apply(this,arguments)||this};
_.O(Eu,_.W);Eu.prototype.getLayoutId=function(){var R=_.D6("yt.www.ads.eventcache.getLastCompanionData");return R?(R=R())&&R.layoutId:null};
Eu.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var R=_.I8(),y=this.getLayoutId(),u=this.data.clickthroughEndpoint;R&&y&&_.f("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?R.getPlayerPromise().then(function(v){(new _.kQ(v)).executeCommand(u,y)}):_.Ko(this.hostElement,"yt-navigate",{endpoint:u})}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Eu.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Eu.prototype,"data",void 0);_.A([_.q({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],Eu);
_.m(Eu,"ytd-shopping-companion-item-renderer",function(){if(KLK!==void 0)return KLK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return KLK=R},{mode:1});var hIT;var $Q=function(){var R=_.W.apply(this,arguments)||this;R.isExpandableContent=!1;return R};
_.O($Q,_.W);_.RR.Object.defineProperties($Q.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,y,u;return((R=this.data)==null?void 0:R.price)||((y=this.data)==null?void 0:(u=y.dealsData)==null?void 0:u.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var R,y;if((R=this.data)!=null&&R.dealsData&&((y=this.data)==null||!y.priceReplacementText)){R=this.data.dealsData;var u,v,Q;return((u=R.salesData)==null?void 0:u.originalPrice)||((v=R.priceDropData)==null?void 0:v.referencePrice)||((Q=R.promotionData)==null?void 0:Q.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,y;return(R=this.data)==null?void 0:(y=R.dealsData)==null?void 0:y.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],$Q.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],$Q.prototype,"componentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],$Q.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],$Q.prototype,"isExpandableContent",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],$Q.prototype,"showCta",null);
_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],$Q.prototype,"ctaText",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],$Q.prototype,"hasPriceTopPosition",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],$Q.prototype,"hasPriceBottomPosition",null);_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],$Q.prototype,"useNewStyle",null);
_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],$Q.prototype,"showPriceReplacementText",null);_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],$Q.prototype,"priceValue",null);_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],$Q.prototype,"showDeal",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],$Q.prototype,"showAffiliateDisclaimer",null);
_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],$Q.prototype,"useSaleStyle",null);_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],$Q.prototype,"useFromBrandCtaStyle",null);_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],$Q.prototype,"useFromVendorCtaStyle",null);
_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],$Q.prototype,"useShoppingCollectionCtaStyle",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],$Q);
_.m($Q,"ytd-vertical-product-card-renderer",function(){if(hIT!==void 0)return hIT;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return hIT=R},{mode:1});var bn8;var qo=function(){return _.W.apply(this,arguments)||this};
_.O(qo,_.W);qo.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],qo.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],qo.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.gT),_.p("design:type",Object)],qo.prototype,"ytdLockupBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],qo.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],qo);
_.m(qo,"ytd-grid-movie-renderer",function(){if(bn8!==void 0)return bn8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return bn8=R},{mode:1});var FLg;var Xx=function(){var R=_.W.apply(this,arguments)||this;R.rounded=!0;R.itemStyle="small-item";return R};
_.O(Xx,_.W);Xx.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var R,y,u,v,Q=(y=_.e((R=this.data)==null?void 0:R.buttonCommand,_.ru))==null?void 0:(u=y.item)==null?void 0:(v=u.notificationTextRenderer)==null?void 0:v.successResponseText;Q&&_.apO(this.hostElement,Q)}};
_.RR.Object.defineProperties(Xx.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,y;return((R=this.data)==null?void 0:R.isProductPlaceholder)!==void 0&&((y=this.data)==null?void 0:y.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Xx.prototype,"ytRendererBehavior",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Xx.prototype,"rounded",void 0);_.A([_.r(),_.p("design:type",Object)],Xx.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],Xx.prototype,"itemStyle",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Xx.prototype,"hasPrice",null);
_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Xx.prototype,"hasPriceReplacementText",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Xx.prototype,"hasAdditionalFeesText",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Xx.prototype,"hasAffiliateDisclaimer",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Xx.prototype,"isProductPlaceholder",null);
_.A([_.r(),_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Xx.prototype,"hideOpenInNewIcon",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Xx.prototype,"ariaLabel",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],Xx);
_.m(Xx,"ytd-merch-shelf-item-renderer",function(){if(FLg!==void 0)return FLg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return FLg=R},{mode:1});var whg=_.Jd(function(R){return _.F("button-card-view-model",{el:_.VX(_.Y9(function(){return R.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return R.data().title},
role:"button"},_.F(_.k6,{model:{}}),_.F("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.F("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.F(_.w,{cond:function(){return R.data().image},
then:function(y){return _.F(_.MR,{data:y,alt:function(){var u;return(u=R.data().title)!=null?u:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.F("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return R.data().title})))},"fb");_.f("web_button_view_model_wcw_registration_killswitch")||_.h6(whg,"button-card-view-model",{props:{data:_.vR}});_.h6(_.Jd(function(R){R=_.jb(R,{className:void 0});var y=R.data;R=R.className;var u=_.N8(function(){return y().onTapCommand},void 0,"NprDr");
return _.F("ytd-shopping-item-card",{class:_.Oy("ytdShoppingItemCardHost",R)},_.F(_.zw,{command:u,className:"ytdShoppingItemCardHostLink"},_.F("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.F(_.mk,{data:function(){return y().thumbnailViewModel}},{thumbnailViewModel:function(v){return _.F(_.Mo,{data:v.data,
aspectRatio:3})}})),_.F("div",null,_.F("p",{class:"ytdShoppingItemCardHostItemTitle"},_.F(_.QM,{text:function(){return y().itemTitle}})),_.F("p",{class:"ytdShoppingItemCardHostPrice"},_.F(_.QM,{text:function(){return y().priceOrStatus}})))))},"gb"),"ytd-shopping-item-card",{props:{data:_.vR,
className:_.vR}});var N6i={isAdsVideo:!0},T6w={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},oNG={showPlayerControls:!1,videoPreviewDurationMs:15E3},x9c={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.f("web_shorts_imp_fullwidth_killswitch")};var VM=null,SnG={};var sWT="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(" "),m6={},zZG=(m6.FEwhat_to_watch="home",m6.FEhashtag="hashtag",m6.FEtrending="trending",m6.FEhistory="history",m6.SPunlimited="premium",m6.FEmemberships_and_purchases="paid_memberships",m6.SPredeem_code="redeem",m6.SPverify_location="locate",m6.SPminor_moment="minor_moment",
m6.FEmini_app_container="mini_app",m6.FEnews_destination="news",m6.SPopen_in_app="open_in_app",m6.FEexplore="explore",m6.FEsubscriptions="subscriptions",m6.FEsfv_audio_pivot="sfv_audio_pivot",m6.FEplaylist_aggregation="playlist_aggregation",m6);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");_.NQ("init");var B65=function(){},OnY=_.Jd(function(R){var y=R.data;
var u=R.inlineMetadata;var v=R.aspectRatio;var Q=R.scrimStyle;var M=R.className;var K=R.useDefaultStyle;var h=new B65,b=_.f("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",N=_.N8(function(){return(K==null?0:K())?b==="SHORTS_LOCKUP_STYLE_SLIM":y().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"gDCMs"),T=_.N8(function(){return _.PT(u)||N()||!1},void 0,"x8cr8b"),x=function(){return(Q==null?void 0:Q())!==void 0?Q==null?void 0:Q():1},B=_.N8(function(){return y().belowThumbnailMetadata||
!T()},void 0,"Q84Mmb");
R=_.vA({visibilityCallback:function(a){var L=y().onFirstVisible;a&&L&&_.zN(L)},
showOption:{calledOnce:!0,state:"visible"}});var l=_.VX(),Z={};Z=_.Oy(function(){return N(),"shortsLockupViewModelHostThumbnailContainer"},(Z.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.PT(v)===1},Z.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.PT(v)===2},Z.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!N()},Z.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.f("web_shorts_2_by_3_lockups_study")&&
!_.f("desktop_search_enable_two_by_three_shorts_aspect_ratio")},Z));
var P,k=function(){if(h){var a;(a=P)==null||Mr(a);var L;h.hostElement&&((L=h.data)==null?0:L.inlinePlayerData)&&(P=sC({mediaRenderer:h,lockupElement:h.hostElement,thumbnailElement:l.value,videoPreviewOpts:x9c}))}};
_.ny(function(){h&&(h.data=y(),k())},"RII9Hf");
var E=_.N8(function(){return y().thumbnail},void 0,"QlEII"),D=_.N8(function(){return y().badge},void 0,"ODd68c"),z=_.N8(function(){return y().onTap},void 0,"lgNBIc"),c={};
return _.F("ytm-shorts-lockup-view-model",{el:_.VX(function(a){h&&(h.hostElement=a)},k,R),
class:_.Oy("shortsLockupViewModelHost",M)},_.F(_.vu,null,_.F(_.zw,{command:z,className:_.Oy("shortsLockupViewModelHostEndpoint",(c.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!B()},c),"reel-item-endpoint",""),
ariaHidden:function(){return!T()},
tabIndex:function(){return T()?0:-1}},_.F("div",{el:l,
class:Z},_.F(_.w,{cond:E,then:function(){return _.F(_.MR,{data:function(){var a;return(a=E==null?void 0:E())!=null?a:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.F(_.w,{cond:T,
then:function(){return _.F(f9L,{data:y,scrimStyle:x,useDefaultStyle:K})}}),_.F(_.mk,{data:D},{badgeViewModel:function(a){return _.F(_.hr,{data:a.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.F(_.w,{cond:function(){return T()&&y().menuOnTap},
then:function(){return _.F(eIY,{data:y,inlineMetadata:!0})}}),_.F(_.w,{cond:B,
then:function(){return _.F(l9G,{data:y,useDefaultStyle:K,inlineMetadata:T})}})))},"hb"),f9L=_.Jd(function(R){var y=R.data;
var u=R.scrimStyle;var v=R.useDefaultStyle;var Q=_.f("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",M=v&&_.f("web_hide_primary_text_for_pivot_panel"),K=_.N8(function(){return(v==null?0:v())?Q==="SHORTS_LOCKUP_STYLE_SLIM":y().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"cCbMlb");
R={};R=_.Oy("shortsLockupViewModelHostInlineMetadata",(R.shortsLockupViewModelHostMetadataRounded=function(){return!K()},R.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(u==null?void 0:u())===3&&!_.f("enable_shorts_lockup_new_scrim")},R.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(u==null?void 0:u())===3&&_.f("enable_shorts_lockup_new_scrim")},R.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(u==null?void 0:u())===2||(u==null?void 0:
u())===4},R.shortsLockupViewModelHostShowOverPlayer=function(){return!0},R),"image-overlay-text");
var h={};return _.F("div",{class:R},_.F("h3",{class:_.Oy("shortsLockupViewModelHostMetadataTitle",(h.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(u==null?void 0:u())===4},h.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return y().belowThumbnailMetadata},h)),
"aria-label":function(){return y().accessibilityText}},_.F(_.w,{cond:function(){var b;
return!((b=y().overlayMetadata)==null||!b.primaryText)&&!M},
then:function(){return _.F(_.QM,{text:function(){var b;return(b=y().overlayMetadata)==null?void 0:b.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.F(_.w,{cond:function(){var b;
return(b=y().overlayMetadata)==null?void 0:b.secondaryText},
then:function(){return _.F(ZnG,{data:y,scrimStyle:u,className:void 0})}}))},"ib"),l9G=_.Jd(function(R){var y=R.data;
var u=R.useDefaultStyle;var v=R.inlineMetadata;var Q=_.f("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",M=_.N8(function(){return(u==null?0:u())?Q==="SHORTS_LOCKUP_STYLE_SLIM":y().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"gneem");
R=_.Oy(function(){return M()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text");
var K=_.VX(),h,b=_.nh(function(Z){if(_.cm(_.tF(Z),K.value,["AVATAR-VIEW-MODEL"]))return!1;var P;(P=h)==null||P.click();return!1}),N=_.N8(function(){return y().belowThumbnailMetadata||y().overlayMetadata},void 0,"YkIPad"),T=function(){return y().menuOnTap&&!v()},x=function(){var Z;
return(Z=N())==null?void 0:Z.avatar},B={},l={};
return _.F("div",{class:_.Oy(R,(B.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!x()},B.shortsLockupViewModelHostOutsideMetadataHasMenu=T,B)),
"on:click":b,el:K},_.F(_.mk,{data:x},{avatarViewModel:function(Z){return _.F("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.F(_.XS,{data:Z.data}))}}),_.F("div",null,_.F("h3",{class:_.Oy("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(l.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var Z,P;
return!((Z=N())==null?0:(P=Z.primaryText)==null?0:P.content)},l.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=v,l)),
"aria-label":function(){return y().accessibilityText}},_.F(_.zw,{ref:function(Z){return void(h=Z)},
command:function(){return y().onTap},
className:_.Oy("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var Z,P;return(Z=N())==null?void 0:(P=Z.primaryText)==null?void 0:P.content}},_.F(_.w,{cond:function(){var Z;
return(Z=N())==null?void 0:Z.primaryText},
then:function(Z){return _.F(_.QM,{text:Z,noEndpoints:!0,noStyleRuns:!0})}}))),_.F(_.w,{cond:function(){var Z;
return(Z=N())==null?void 0:Z.secondaryText},
then:function(Z){return _.F("div",{class:_.Oy("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead"),"aria-hidden":"true"},_.F(_.QM,{text:Z,noStyleRuns:!0}))}})),_.F(_.w,{cond:T,
then:function(){return _.F(eIY,{data:y,inlineMetadata:!1})}}))},"jb"),ZnG=_.Jd(function(R){var y=R.data;
var u=R.scrimStyle;R=R.className;var v={};return _.F("div",{class:_.Oy((v.shortsLockupViewModelHostMetadataSubhead=function(){return(u==null?void 0:u())!==4},v.shortsLockupViewModelHostMetadataSubheadNew=_.f("enable_shorts_lockup_new_scrim"),v.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(u==null?void 0:u())===4},v),R),
"aria-hidden":"true"},_.F(_.QM,{text:function(){var Q;return(Q=y().overlayMetadata)==null?void 0:Q.secondaryText},
noStyleRuns:!0}))},"kb"),eIY=_.Jd(function(R){var y=R.data;
var u=R.inlineMetadata;R={};R=_.Oy((R.shortsLockupViewModelHostInlineMetadataMenu=function(){return u()},R.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!u()},R.shortsLockupViewModelHostShowOverPlayer=function(){return!0},R),"image-overlay-text");
return _.F("div",{class:R},_.F(_.j8,{data:function(){return{style:u()?"overlay":"mono",accessibilityLabel:y().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(v){v.preventDefault();v.stopPropagation();var Q=_.Lk({elementsCommand:y().menuOnTap,forceNewState:!0});if(Q==null?0:Q.onclick)Q.onclick(v)}}},
iconName:"MORE_VERT"}))},"lb");var Hng=_.Jd(function(R){var y=R.data;var u=R.inlineMetadata;var v=R.aspectRatio;var Q=R.scrimStyle;var M=R.className;var K=R.useDefaultStyle;R=_.N8(function(){var h=y().entityId;return h?h.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"W3Tlke");
return _.F("ytm-shorts-lockup-view-model-v2",{class:_.Oy("shortsLockupViewModelHost",M)},_.F(_.wb,{contentId:R,aspectRatio:function(){return(v==null?void 0:v())===1?1:(v==null?void 0:v())===2?2:4}},function(){return _.F(OnY,{data:y,
inlineMetadata:u,aspectRatio:v,scrimStyle:Q,className:M,useDefaultStyle:K})}))},"mb");_.h6(Hng,"ytm-shorts-lockup-view-model-v2",{props:{data:_.IC,inlineMetadata:_.IC,aspectRatio:_.IC,scrimStyle:_.IC,className:_.IC,useDefaultStyle:_.IC}});var nN8=16/9*210,Ar=function(){var R=_.W.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};
_.O(Ar,_.W);_.J=Ar.prototype;
_.J.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]]"}}}}};
_.J.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.f("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.J.computeInitialCountNumber=function(R){if(!R)return 6;var y=R.items.some(function(M){return!!M.topicRecommendationsChipRenderer}),u=R.items.some(function(M){return!!M.displayAdRenderer}),v=this.computeShouldListItemsHaveEqualHeight(R),Q=R.items.some(function(M){return!!M.gridPlaylistRenderer});
R=R.items.some(function(M){return!!M.shoppingItemCardViewModel});
return y?9:u?8:Q||v?10:R?7:6};
_.J.computeContainsPost=function(R){return!!R&&!!R.items&&R.items.some(function(y){return!!y.postRenderer})};
_.J.computeContainsLockup=function(){if(_.f("web_horizontal_list_lockup_arrow_killswitch"))return!1;var R,y;return(R=this.data)==null?void 0:(y=R.items)==null?void 0:y.some(function(u){return!!u.lockupViewModel})};
_.J.maybeUpdateLockupAspectRatio=function(){var R,y;if(this.computeContainsLockup()&&((R=this.data)==null?0:(y=R.items)==null?0:y.length)){var u;R=zVU((u=this.data.items[0].lockupViewModel)==null?void 0:u.contentType,this.data.force16By9ThumbnailAspectRatio);u=Sec(R);u=this.computeLockupWidth()/u;_.oX(this.hostElement,{"--yt-horizontal-list-content-height":u+"px"})}};
_.J.computeOverrideArrowPositionForProductCard=function(R){if(this.isExpandableContent)return!1;var y;return!!(R==null?0:(y=R.items)==null?0:y.some(function(u){return!!u.verticalProductCardRenderer}))};
_.J.computeOverrideArrowPositionForShoppingItemCard=function(R){var y;return!!(R==null?0:(y=R.items)==null?0:y.some(function(u){return!!u.shoppingItemCardViewModel}))};
_.J.computeOverrideArrowPositionForReelItemRenderer=function(R){return this.containsReelItemRenderer(R)};
_.J.computeHasBigThumbsReelItems=function(R,y){return R&&this.containsReelItemRenderer(y)};
_.J.computeShouldListItemsHaveEqualHeight=function(R){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(R==null?void 0:R.itemSizeConstraint)};
_.J.computeShouldListItemsHaveShortsHeight=function(R){return this.computeShouldListItemsHaveEqualHeight(R)&&!this.containsGridVideoRenderer(R)};
_.J.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.J.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.J.containsReelItemRenderer=function(R){var y;return!!(R==null?0:(y=R.items)==null?0:y.some(function(u){return!(!u.reelItemRenderer&&!u.shortsLockupViewModel)}))};
_.J.containsGridVideoRenderer=function(R){var y;return!!(R==null?0:(y=R.items)==null?0:y.some(function(u){return!!u.gridVideoRenderer||!!u.lockupViewModel}))};
_.J.computeContainsGridMovieRenderer=function(R){var y;return!!(R==null?0:(y=R.items)==null?0:y.some(function(u){return!!u.gridMovieRenderer}))};
_.J.computeOverrideArrowPositionToCenter=function(R){return this.computeIsSearchPostShelf(R)};
_.J.computeIsSearchPostShelf=function(R){var y;return!!(R==null?0:(y=R.items)==null?0:y.some(function(u){var v,Q;return((Q=(v=u.postRenderer)==null?void 0:v.surface)!=null?Q:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.J.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(R){var y;return!!(R==null?0:(y=R.items)==null?0:y.some(function(u){var v,Q,M;return((M=(v=u.backgroundPromoRenderer)==null?void 0:(Q=v.style)==null?void 0:Q.value)!=null?M:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.J.computeIsSearchVodShelf=function(R,y){return R&&this.containsGridVideoRenderer(y)};
_.J.computeDisableWheelScroll=function(R,y){return this.computeIsSearchVodShelf(R,y)};
_.J.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.J.computeShortsLockupAspectRatio=function(){return 1};
_.J.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.oX(this.hostElement,{"--ytd-reel-item-thumbnail-height":nN8+"px"})};
Ar.prototype.dataChanged=Ar.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Ar.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Ar.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.Ia.YtdHorizontalListBehavior),_.p("design:type",Object)],Ar.prototype,"ytdHorizontalListBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Ar.prototype,"data",void 0);
_.A([_.r(),_.p("design:type",Object)],Ar.prototype,"isExpandableContent",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Ar.prototype,"hideShelfHeader",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Ar.prototype,"engagementPanel",void 0);_.A([_.r(),_.p("design:type",Array)],Ar.prototype,"buttonClasses",void 0);_.A([_.r(),_.p("design:type",Object)],Ar.prototype,"isSearch",void 0);
_.A([_.r(),_.p("design:type",Object)],Ar.prototype,"disableScrollEventListener",void 0);_.A([_.r({computed:"computeInitialCountNumber(data)"}),_.p("design:type",Number)],Ar.prototype,"initialCount",void 0);_.A([_.r({computed:"computeContainsPost(data)"}),_.p("design:type",Boolean)],Ar.prototype,"supportComponentResize",void 0);_.A([_.r({computed:"computeContainsPost(data)"}),_.p("design:type",Boolean)],Ar.prototype,"containsPost",void 0);
_.A([_.r({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.p("design:type",Object)],Ar.prototype,"containsLockup",void 0);_.A([_.r({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],Ar.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.A([_.r({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.p("design:type",Object)],Ar.prototype,"overrideArrowPositionForProductCard",void 0);_.A([_.r({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.p("design:type",Object)],Ar.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.A([_.r({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.p("design:type",Object)],Ar.prototype,"overrideArrowPositionForReelItems",void 0);_.A([_.r({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.p("design:type",Object)],Ar.prototype,"overrideArrowPositionForGridMovie",void 0);
_.A([_.r({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.p("design:type",Object)],Ar.prototype,"overrideArrowPositionToCenter",void 0);_.A([_.r({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.p("design:type",Object)],Ar.prototype,"isSearchPostShelf",void 0);_.A([_.r({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.p("design:type",Object)],Ar.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.A([_.r({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.p("design:type",Object)],Ar.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.A([_.r({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.p("design:type",Object)],Ar.prototype,"hasBigThumbsReelItems",void 0);
_.A([_.r({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.p("design:type",Object)],Ar.prototype,"shouldUseMixedListHeight",void 0);_.A([_.r({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.p("design:type",Object)],Ar.prototype,"shouldUseShortsListHeight",void 0);_.A([_.r({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.p("design:type",Object)],Ar.prototype,"gridVideoWidth",void 0);
_.A([_.r({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.p("design:type",Object)],Ar.prototype,"isSearchVodShelf",void 0);_.A([_.r({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.p("design:type",Object)],Ar.prototype,"disableWheelScroll",void 0);_.A([_.r({computed:"computeSizing(isSearch)"}),_.p("design:type",Object)],Ar.prototype,"sizing",void 0);
_.A([_.r({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.p("design:type",Object)],Ar.prototype,"shortsLockupAspectRatio",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ar.prototype,"dataChanged",null);
_.m(Ar,"yt-horizontal-list-renderer",function(){if(UF5===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);UF5=R}R=UF5;return R},{mode:1});var GyY;var r08=[10,12,14,16,18,20,24,28,32,36],P4c=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],D8=function(){var R=_.W.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};
_.O(D8,_.W);_.J=D8.prototype;
_.J.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();_.gn(this,function(){R.resize()});
if(!_.wV){var y,u,v;(y=document)==null||(u=y.fonts)==null||(v=u.ready)==null||v.then(function(){R.resize()})}};
_.J.dataChanged=function(){this.resize()};
_.J.guideIsExpandedChanged=function(){this.resize()};
_.J.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(),y=this.getMinFont(),u=this.getMaxFont(),v=this.useRoboto?r08:P4c;for(v=v.filter(function(M){return M<=u&&M>=y});v.length>1;){var Q=Math.floor(v.length/2);
this.updateFontSize(v[Q]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=R)v=v.slice(Q,v.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>R)v=v.slice(0,Q);else break}this.updateFontSize(v[v.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(R)}};
_.J.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()))};
_.J.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)};
_.J.getMaxFont=function(){var R=this.useRoboto?r08:P4c;R=R[R.length-1];return this.maxFontSize&&this.maxFontSize<=R?this.maxFontSize:R};
_.J.getMinFont=function(){var R=(this.useRoboto?r08:P4c)[0];return this.minFontSize&&this.minFontSize>=R?this.minFontSize:R};
_.J.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.J.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.J.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.u7(this.text).split("\n").length-1:Infinity};
_.J.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("Gh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
D8.prototype.guideIsExpandedChanged=D8.prototype.guideIsExpandedChanged;D8.prototype.dataChanged=D8.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],D8.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],D8.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],D8.prototype,"actionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],D8.prototype,"text",void 0);
_.A([_.r(),_.p("design:type",String)],D8.prototype,"fontFamily",void 0);_.A([_.r(),_.p("design:type",Number)],D8.prototype,"maxWidth",void 0);_.A([_.r(),_.p("design:type",Number)],D8.prototype,"maxHeight",void 0);_.A([_.r(),_.p("design:type",Number)],D8.prototype,"maxFontSize",void 0);_.A([_.r(),_.p("design:type",Number)],D8.prototype,"minFontSize",void 0);_.A([_.r(),_.p("design:type",Number)],D8.prototype,"maxLines",void 0);_.A([_.r(),_.p("design:type",Object)],D8.prototype,"hideOverflow",void 0);
_.A([_.r({selector:_.UiP}),_.p("design:type",Boolean)],D8.prototype,"guideIsExpanded",void 0);_.A([_.O7("#container"),_.p("design:type",HTMLElement)],D8.prototype,"containerNode",void 0);_.A([_.O7("#text"),_.p("design:type",HTMLElement)],D8.prototype,"textNode",void 0);_.A([_.GJ("text"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],D8.prototype,"dataChanged",null);
_.A([_.GJ("guideIsExpanded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],D8.prototype,"guideIsExpandedChanged",null);_.A([_.q({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],D8);
_.m(D8,"yt-dynamic-sizing-formatted-string",function(){if(GyY!==void 0)return GyY;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return GyY=R},{mode:1});var WLg;_.d9Y=function(R){_.RL.call(this,R)};
_.O(_.d9Y,_.RL);var U9V=function(R){_.RL.call(this,R)};
_.O(U9V,_.d9Y);var pw=function(){return _.W.apply(this,arguments)||this};
_.O(pw,_.W);pw.prototype.onTapSuspendedChannel=function(){var R;if((R=this.data)!=null&&R.serviceEndpoint){var y,u;(R=(u=_.e((y=this.data)==null?void 0:y.serviceEndpoint,_.tc))==null?void 0:u.url)?_.z2(R,void 0,void 0,window.top):(y=new U9V("Did not handle suspended account tap. No appealUrl."),_.dI(y))}else y=new U9V("Did not handle suspended account tap. No serviceEndpoint."),_.dI(y)};
pw.prototype.onTap=function(){var R=this,y=_.GN(),u,v=(u=_.nk(y,{veType:7116}))!=null?u:void 0;_.gW(y,{visualElement:v});_.Lc();this.saveRoleText();var Q;if((Q=this.data)==null?0:Q.youtubeSuspended)this.onTapSuspendedChannel();else{var M=!1,K,h;(y=(h=_.e((K=this.data)==null?void 0:K.serviceEndpoint,_.o0L))==null?void 0:h.supportedTokens)&&y.forEach(function(b){if(b.accountSigninToken)if(M=!0,R.onAccountItemTap)R.onAccountItemTap(b.accountSigninToken.signinUrl);else _.z2(b.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!M){if(K=this.get("serviceEndpoint",this.data))M=!0,this.ytComponentBehavior.resolveCommand(K);M||_.Uh(new U9V("Did not handle account switch tap. No token."))}}};
pw.prototype.saveRoleText=function(){if(this.data){var R=this.data,y=R.channelDelegationRole;if(y){var u,v=(u=_.e(R==null?void 0:R.serviceEndpoint,_.o0L))==null?void 0:u.supportedTokens;if(!v){var Q,M,K,h;v=(Q=_.e(R==null?void 0:R.serviceEndpoint,_.kW))==null?void 0:(M=Q.popup)==null?void 0:(K=M.confirmDialogRenderer)==null?void 0:(h=K.confirmButton)==null?void 0:h.buttonRenderer;var b;v=(b=_.e(v==null?void 0:v.command,_.TP))==null?void 0:b.commands;if(!v)return;var N;v=(N=_.e(v[1],_.o0L))==null?
void 0:N.supportedTokens}if(v){b=void 0;N=_.V(v);for(v=N.next();!v.done;v=N.next())if(v=v.value,v.datasyncIdToken){b=v.datasyncIdToken.datasyncIdToken;break}if(b){var T;a:{if(_.R_T()&&(N=_.bz8(b+"::pom"))){N=new Ex(N);break a}N=void 0}(T=N)==null||T.set("role_text",y);if((bWW?bWW:window.location).href.indexOf("studio")!==-1&&(T=ypT())){N=T.src?(new URL(T.src)).origin:"*";var x;(x=T.contentWindow)==null||x.postMessage({action:"save_pom_role",datasyncId:b,roleText:y},N)}}}}}};
_.RR.Object.defineProperties(pw.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,y,u=(R=this.data)==null?void 0:(y=R.accountPhoto)==null?void 0:y.thumbnails;return u&&u.length>0&&(u[0].height===36||u[0].height===48)?u[0].height:40}}});
pw.prototype.onTap=pw.prototype.onTap;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],pw.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],pw.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],pw.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!1}),_.p("design:type",Function)],pw.prototype,"onAccountItemTap",void 0);
_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],pw.prototype,"enableRingForActiveAccount",null);_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Number),_.p("design:paramtypes",[])],pw.prototype,"thumbnailSize",null);_.A([_.fu("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],pw.prototype,"onTap",null);_.A([_.q({is:"ytd-account-item-renderer",disableElementRegistration:!0})],pw);
_.m(pw,"ytd-account-item-renderer",function(){if(WLg!==void 0)return WLg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return WLg=R},{mode:1});var kyg;var tr=function(){return _.W.apply(this,arguments)||this};
_.O(tr,_.W);tr.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.ua().resolve(_.jX).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],tr.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],tr.prototype,"data",void 0);_.A([_.q({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],tr);
_.m(tr,"ytd-identity-chip-renderer",function(){if(kyg!==void 0)return kyg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return kyg=R},{mode:1});var ENT;var $9c;var qQc;var XhV;var cx=function(){var R=_.W.apply(this,arguments)||this;R.richItemMinWidth=_.JT("wn_grid_min_item_width",310);R.isShorts=!1;R.isWatchNext=!1;R.isExploreHub=!1;return R};
_.O(cx,_.W);_.RR.Object.defineProperties(cx.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var R=[],y=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.oX(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var u;if(((u=this.data)==null?0:u.rows)&&y)for(y*=this.data.rows,u=0;u<y;u++)R.push({});return R}}});
_.A([_.n(_.p6),_.p("design:type",Object)],cx.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],cx.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],cx.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,selector:_.qq,value:3}),_.p("design:type",Number)],cx.prototype,"itemsPerRow",void 0);_.A([_.r({selector:_.div,value:6}),_.p("design:type",Number)],cx.prototype,"slimItemsPerRow",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Number)],cx.prototype,"richItemMinWidth",void 0);_.A([_.r({reflectToAttribute:!0,selector:_.$s}),_.p("design:type",Boolean)],cx.prototype,"miniMode",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],cx.prototype,"isShorts",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],cx.prototype,"isWatchNext",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],cx.prototype,"isExploreHub",void 0);
_.A([_.G("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.p("design:type",Array),_.p("design:paramtypes",[])],cx.prototype,"cardItems",null);_.A([_.q({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],cx);
_.m9T=_.Nk()(cx,"ytd-ghost-grid-renderer",function(){if(XhV===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);XhV=R}R=XhV;return R},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.h6(_.Jd(function(R){var y=_.jb(R,{numberOfComments:3}).numberOfComments,u=_.jb(R,{isInitialLoad:!1}).isInitialLoad,v=_.jb(R,{engagementPanel:!1}).engagementPanel,Q=function(){return Math.min(Number(y==null?void 0:y())||20,20)};
return _.F("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.F(_.w,{cond:function(){return!(v==null?0:v())&&(u==null?void 0:u())},
then:function(){return _.F("div",{class:"ytGhostCommentsComments"},_.F("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.F("div",{class:_.Oy("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.F("div",{class:_.Oy("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.F("div",{class:"ytGhostCommentsGhostCard"},_.F("div",{class:"ytGhostCommentsAvatar"},_.F("div",{class:"ytGhostCommentsCircle"})),_.F("div",{class:"ytGhostCommentsComments"},_.F("div",{class:"ytGhostCommentsMeta"},
_.F("div",{class:_.Oy("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.F("div",{class:_.Oy("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.F("div",{class:"ytGhostCommentsComments"},_.F(_.eS,{each:function(){return Array((Q==null?void 0:Q())||3)}},function(){return _.F("div",{class:"ytGhostCommentsGhostCard"},_.F("div",{class:"ytGhostCommentsAvatar"},_.F("div",{class:"ytGhostCommentsCircle"})),_.F("div",{class:"ytGhostCommentsHost"},_.F("div",{class:"ytGhostCommentsMeta"},
_.F("div",{class:_.Oy("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.F("div",{class:_.Oy("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.F("div",{class:_.Oy("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.F("div",{class:"ytGhostCommentsGhostLikeDislike"},_.F("div",{class:_.Oy("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.F("div",{class:_.Oy("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"nb"),"yt-ghost-comments",{props:{numberOfComments:_.vR,
isInitialLoad:_.vR,engagementPanel:_.vR}});_.Dl("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var ap=function(){var R=_.W.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=_.f("show_ghost_comments_shorts_watch")||_.f("show_ghost_comments_desktop_watch");R.originalShowButton=!1;R.endOfList=!1;return R};
_.O(ap,_.W);_.J=ap.prototype;_.J.resetIntersectionObserver=function(){var R;(R=this.observer)==null||R.disconnect();this.observer=void 0};
_.J.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var R,y;((R=this.data)==null?void 0:R.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((y=this.data)==null?0:y.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.J.initializeIntersectionObserver=function(){var R=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(y){y=_.V(y);for(var u=y.next();!u.done;u=y.next())u.value.isIntersecting&&(R.triggerContinuation(),R.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.J.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]]"}}}}}};
_.J.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var R;((R=this.data)==null?0:R.continuationEndpoint)&&(R=_.e(this.data.continuationEndpoint,_.Lh))&&this.ytdReduxBehavior.dispatch(_.iE({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:R}}))};
_.J.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.J.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.J.onServiceRequestCompleted=function(R,y){if(!_.f("kevlar_hide_spinner_on_empty_continuation_killswitch")){var u;(u=y.actions)!=null&&u.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.J.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.J.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.J.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.J.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var R=3;if(this.engagementPanel){var y,u,v;R=Math.floor(((((y=this.hostElement)==null?void 0:(u=y.parentElement)==null?void 0:(v=u.parentElement)==null?void 0:v.scrollHeight)||108)-108)/108);R=this.isInitialLoad?Math.max(R,3):3}y=[].concat(_.P$(this.hostElement.querySelectorAll("yt-ghost-comments")));y=_.V(y);for(u=y.next();!u.done;u=y.next())u=u.value,u.numberOfComments=R,u.isInitialLoad=this.isInitialLoad,u.engagementPanel=
this.engagementPanel}};
_.J.detached=function(){this.resetIntersectionObserver()};
_.RR.Object.defineProperties(ap.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.f("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.f("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
ap.prototype.numberOfGhostCommentsChanged=ap.prototype.numberOfGhostCommentsChanged;ap.prototype.continuationTriggerOffsetChanged=ap.prototype.continuationTriggerOffsetChanged;ap.prototype.showButtonChanged=ap.prototype.showButtonChanged;ap.prototype.onYtServiceRequestCompletedForButtonRenderer=ap.prototype.onYtServiceRequestCompletedForButtonRenderer;ap.prototype.onServiceRequestCompleted=ap.prototype.onServiceRequestCompleted;ap.prototype.onYtServiceRequestSentForButtonRenderer=ap.prototype.onYtServiceRequestSentForButtonRenderer;
ap.prototype.observeData=ap.prototype.observeData;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],ap.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ap.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.Cl.YtVisibilityBehavior),_.p("design:type",Object)],ap.prototype,"ytVisibilityBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],ap.prototype,"ytComponentBehavior",void 0);
_.A([_.n(_.p6),_.p("design:type",Object)],ap.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ap.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],ap.prototype,"isOverridable",void 0);_.A([_.r(),_.p("design:type",Object)],ap.prototype,"spinnerActive",void 0);_.A([_.r(),_.p("design:type",Object)],ap.prototype,"showButton",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ap.prototype,"isCommentsSection",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ap.prototype,"engagementPanel",void 0);_.A([_.r(),_.p("design:type",Object)],ap.prototype,"isShortsGrid",void 0);_.A([_.r({reflectToAttribute:!0,selector:_.E0U}),_.p("design:type",Object)],ap.prototype,"isShortsPage",void 0);_.A([_.r({reflectToAttribute:!0,selector:_.AN}),_.p("design:type",Object)],ap.prototype,"isWatchPage",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ap.prototype,"ghostCardExperimentEnabled",void 0);
_.A([_.r(),_.p("design:type",Number)],ap.prototype,"continuationTriggerOffset",void 0);_.A([_.r(),_.p("design:type",Object)],ap.prototype,"endOfList",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],ap.prototype,"isInitialLoad",void 0);_.A([_.O7("ytd-button-renderer"),_.p("design:type",_.J3)],ap.prototype,"buttonRenderer",void 0);_.A([_.r(),_.p("design:type",Object)],ap.prototype,"buttonOverrides",void 0);
_.A([_.r(),_.G("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.p("design:type",Object),_.p("design:paramtypes",[])],ap.prototype,"isShortsCommentsSection",null);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ap.prototype,"observeData",null);
_.A([_.fu("yt-service-request-sent-button-renderer"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ap.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Mp]),_.p("design:returntype")],ap.prototype,"onServiceRequestCompleted",null);
_.A([_.fu("yt-service-request-completed-button-renderer"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ap.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.A([_.GJ("showButton"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ap.prototype,"showButtonChanged",null);
_.A([_.GJ("continuationTriggerOffset"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ap.prototype,"continuationTriggerOffsetChanged",null);_.A([_.e0("isInitialLoad","engagementPanel"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ap.prototype,"numberOfGhostCommentsChanged",null);_.A([_.q({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],ap);
_.m(ap,"ytd-continuation-item-renderer",function(){if(qQc!==void 0)return qQc;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return qQc=R},{mode:1});var A0c;var Sa=function(){var R=_.W.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};
_.O(Sa,_.W);Sa.prototype.dataChanged=function(){var R;this.videoData=_.e((R=this.data)==null?void 0:R.renderer,zlg);this.transferStateChanged()};
Sa.prototype.downloadProgressChanged=function(){if(this.entityInfo){var R=Object.assign({},this.videoData),y=dLz(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),u=y.publishedTimeText,v=y.badges;R.shortViewCountText=y.shortViewCountText;R.publishedTimeText=u;R.badges=v;this.set("videoData",R)}};
Sa.prototype.transferStateChanged=function(){if(this.entityInfo){var R=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",y=_.Hd(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Zn(this.entityInfo.policyEntity),u=Object.assign({},this.videoData),v=dLz(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),Q=v.publishedTimeText,M=v.badges;u.shortViewCountText=
v.shortViewCountText;u.publishedTimeText=Q;u.badges=M;u.isDisabled=y;u.isWatched=this.downloadedVideoPlaybackPosition>0;u.navigationEndpoint=y?void 0:qD4(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var K;R&&((K=this.videoData)==null?0:K.videoId)&&!_.f("dl_resume_click_killswitch")&&(u.isDisabled=!1,u.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});u.thumbnailOverlays=PLE(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",u)}};
Sa.prototype.transferStateChanged=Sa.prototype.transferStateChanged;Sa.prototype.downloadProgressChanged=Sa.prototype.downloadProgressChanged;Sa.prototype.dataChanged=Sa.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Sa.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],Sa.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Sa.prototype,"data",void 0);
_.A([_.r(),_.p("design:type",Object)],Sa.prototype,"videoData",void 0);_.A([_.r({selector:cd,selectorArgs:["videoData.videoId"]}),_.p("design:type",Object)],Sa.prototype,"downloadProgress",void 0);_.A([_.r(),_.p("design:type",Number)],Sa.prototype,"relativeDateReference",void 0);_.A([_.r({selector:_.pz,selectorArgs:["videoData.videoId"]}),_.p("design:type",Object)],Sa.prototype,"transferState",void 0);
_.A([_.r({selector:uwT,selectorArgs:["videoData.videoId"]}),_.p("design:type",Object)],Sa.prototype,"downloadState",void 0);_.A([_.r({selector:Asv,selectorArgs:["videoData.videoId"]}),_.p("design:type",Object)],Sa.prototype,"offlinePolicyAction",void 0);_.A([_.r({selector:DiO,selectorArgs:["videoData.videoId"]}),_.p("design:type",Object)],Sa.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.A([_.r({selector:a3,selectorArgs:["videoData.videoId"]}),_.p("design:type",Object)],Sa.prototype,"downloadedVideoPlaybackPosition",void 0);_.A([_.r({selector:t2U,selectorArgs:["videoData.videoId"]}),_.p("design:type",Object)],Sa.prototype,"entityInfo",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Sa.prototype,"isDownloading",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sa.prototype,"dataChanged",null);
_.A([_.GJ("downloadProgress"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sa.prototype,"downloadProgressChanged",null);_.A([_.GJ("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sa.prototype,"transferStateChanged",null);
_.A([_.q({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],Sa);
_.m(Sa,"ytd-downloaded-video-grid-video-renderer",function(){if(A0c!==void 0)return A0c;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return A0c=R},{mode:_.TN("kevlar_poly_si_batch_j025")?1:2});var D9i;var YQ=function(){};
YQ.prototype.resolve=function(R,y){var u=this;return _.I(function(v){return v.yield(u.resolveCommand(R,y),0)})};var phY,Lw;phY=imE(function(R){return R.targetId},{shouldPersist:!1});
Lw=phY.updateData;_.tng=phY.useUpdatableData;var c05,a9g;c05=imE(function(R){return R.targetId});
a9g=c05.updateData;_.SQc=c05.useUpdatableData;var YQc=RIT.bind(null,Lw),LL8=RIT.bind(null,a9g);(function(R,y,u){var v=_.e(u==null?void 0:u.updatedRenderer,_.Htg);return v?R({targetId:y},function(){return v}):!1}).bind(null,Lw);var su=function(){};
_.O(su,YQ);su.prototype.resolveCommand=function(R){var y;return _.I(function(u){y=_.e(R,_.EHU);if(!y)return u.return();YQc(y.targetId,y);_.f$(u)})};var zt=function(){var R=_.HN.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};
_.O(zt,_.HN);_.J=zt.prototype;_.J.configureContinuationPathMap=function(){return{}};
_.J.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.J.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.J.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.J.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.J.handleAppendContinuationItemsAction=function(R){var y=_.e(R,_.RRg);if(this.data&&this.data.targetId&&y&&this.continuationPathMap&&y.targetId===this.data.targetId){var u=rF8(R),v=u&&this.continuationPathMap[u];if(v&&u)if(R=this.get(v,this.data)){a:{for(u=0;u<R.length;u++){var Q=R[u],M=void 0,K=!!_.e((M=_.e(Q,mEi))==null?void 0:M.content,_.ScY);if(_.e(Q,_.Je)||K)break a}u=R.length}v="data."+v;y.continuationItems?u===R.length-1?(this.pop(v),this.push.apply(this,[v].concat(_.P$(y.continuationItems)))):
u===R.length?this.push.apply(this,[v].concat(_.P$(y.continuationItems))):this.splice.apply(this,[v,u,1].concat(_.P$(y.continuationItems))):this.splice(v,u,1);(_.f("web_enable_voting_animation")||_.f("enable_music_web_cairo_voting_animation"))&&_.Ko(this.hostElement,"yt-append-continuation-items-action-finished");_.Ko(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.kT(new _.OL("append continuation items does not exist",u));else _.kT(new _.OL("append continuation path does not exist",
u))}};
_.J.handleReloadContinuationItemsCommand=function(R){var y=_.e(R,_.EHU);if(this.data&&y){if(_.f("web_client_explore_hub")||_.f("web_explore_hub_on_hover")||_.f("web_client_explore_hub_on_hover"))try{_.ua().resolve(su).resolveCommand(R)}catch(M){}if(this.data.targetId&&this.continuationPathMap&&y.targetId===this.data.targetId&&(!_.f("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||y.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var u,v=(u=y.slot)==null?void 0:
u.replace("RELOAD_CONTINUATION_SLOT_","");u=(R=rF8(R)+"-"+(v==null?void 0:v.toLowerCase()))&&this.continuationPathMap[R];if(!u||!R||!v)_.kT(new _.OL("reload continuation path does not exist",R));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(y)){if(y.replaceWithFirstItem){var Q;this.set("data."+u,((Q=y.continuationItems)==null?0:Q.length)?y.continuationItems[0]:{})}else this.set("data."+u,y.continuationItems?y.continuationItems:[]);this.continuationIsReloading=
!1;_.Ko(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.J.handleShowReloadUiCommand=function(R){R=_.e(R,w05);var y;((y=this.data)==null?0:y.targetId)&&(R==null?0:R.targetId)&&R.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
zt.prototype.observeData=zt.prototype.observeData;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],zt.prototype,"actionHandlerBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],zt.prototype,"componentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],zt.prototype,"data",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],zt.prototype,"continuationIsReloading",void 0);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zt.prototype,"observeData",null);_.A([_.nu()],zt);_.gb=[_.sx.YtComponentBehavior,_.bW.YtActionHandlerBehavior,zt.prototype];_.Cw={};_.Cw.YtNextContinuationBehavior=[_.VE.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",_.BN(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.BN(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(R,y){R.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,y,{}):(R={locationRetrieved:function(u){this.makeNextContinuationRequest_(u,y,{})}.bind(this)},_.Ko(this.hostElement,"yt-retrieve-location",R))},
makeNextContinuationRequest_:function(R,y,u){_.Xh("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();R=y(R);var v;this.canUseContextualNetworkManager_()&&(v=this.getNetworkManager());v||(v=_.ua().resolve(_.AU));y=_.Ch.instance;if(_.EB("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&y){v=_.jq([R.startsWith("/")?R.substr(1):R]);var Q,M;u=_.am(y,{},v,u==null?void 0:(Q=u.context)==null?void 0:(M=Q.clickTracking)==null?void 0:M.clickTrackingParams).then(function(K){return{response:K}})}else u=
this.nextContinuation.usePost?v.postData(R,u):v.fetchData(R);
u.then(this.updateNextContinuationData_.bind(this,R));this.pendingContinuationRequest_=u;this.startListeningForNavigate_()},
updateNextContinuationData_:function(R,y){var u=this;_.Xh("ncl");this.pendingContinuationRequest_=void 0;if(y){var v={};this.nextContinuation&&(v=this.nextContinuation);if(y.response&&y.response.continuationContents&&y.response.continuationContents[v.continuationType]){R=y.response.continuationContents[v.continuationType];var Q=v.header||"data.header",M=R[v.responseHeaderKey||"header"];M&&this.set(Q,M);Q=v.contentsArray||"data.contents";M=this.getContents_(R,v.responseContentsKey||"contents")||[];
this.pathExists_(Q)?(M.unshift(Q),this.push.apply(this,M)):this.set(Q,M);M&&(y0U(_.GN(),y.response,this.hostElement,function(K){_.Ik(u.hostElement,"yt-store-grafted-ve-action",[K])}),_.Ko(this.hostElement,"yt-next-continuation-data-updated",{continuationData:y,
page:this,contentsArray:Q}));this.set(v.continuationsArray||"data.continuations",R[v.responseContinuationsKey||"continuations"]||[])}else y.reload?_.kT(new _.OL("Reloading from continuation is unsupported")):y.responseContext&&y.responseContext.errors||(delete y.xsrf_token,delete y.timing,delete y.endpoint,delete y.csn,y.responseContext&&delete y.responseContext.serviceTrackingParams,Q={request:_.YB(R,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(y).sort()},y.response&&(Q.responseContentKeys=
Object.keys(y.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(Q.continuationType=this.nextContinuation.continuationType.substr(0,256)),y=new _.OL("Malformed continuation",Q),R.indexOf("/comment_service_ajax")==0?_.kT(y):_.dI(y)),this.set(v.continuationsArray||"data.continuations",[])}else _.Uh(new _.OL("Missing continuation response",R))},
getContents_:function(R,y){y=y.split(".");return _.Ps.getValueByKeys(R,y)},
pathExists_:function(R){var y=this;R=R.toString().split(".");for(var u=0;u<R.length;u++)if(y=y[R[u]],y===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var sgi;var zIG;var RO=function(){var R=_.W.apply(this,arguments)||this;R.triggered_=!1;return R};
_.O(RO,_.W);_.J=RO.prototype;_.J.attached=function(){this.maybeTriggerAutoload()};
_.J.detached=function(){this.hasBeenTriggered_=!1};
_.J.onPrescanVisible=function(){this.onShow()};
_.J.onShow=function(){this.showButton||this.trigger()};
_.J.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.Ko(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.J.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.J.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.J.computeLabel_=function(R,y){return R===void 0?null:R.label||!y?R.label:this.showMoreText_};
_.J.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.J.getContinuationUrl=function(R){var y={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(y.itct=this.data.clickTrackingParams);return _.LG(R,y)};
_.J.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
RO.prototype.showButtonChanged_=RO.prototype.showButtonChanged_;RO.prototype.observeData_=RO.prototype.observeData_;_.A([_.n(_.Cl.YtVisibilityBehavior),_.p("design:type",Object)],RO.prototype,"ytVisibilityBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],RO.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],RO.prototype,"data",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],RO.prototype,"showButton",void 0);
_.A([_.r({value:!1}),_.p("design:type",Boolean)],RO.prototype,"showIcon",void 0);_.A([_.r({computed:"computeLabel_(data, showButton)"}),_.p("design:type",Object)],RO.prototype,"label",void 0);_.A([_.r({value:_.ye(_.fo("SHOW_MORE",void 0,"Show More"))}),_.p("design:type",Object)],RO.prototype,"showMoreText_",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],RO.prototype,"spinnerActive_",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],RO.prototype,"hasBeenTriggered_",void 0);
_.A([_.r({value:void 0}),_.p("design:type",String)],RO.prototype,"observeVisibleOption",void 0);_.A([_.r({value:void 0}),_.p("design:type",String)],RO.prototype,"observeHiddenOption",void 0);_.A([_.r({value:"observe_once"}),_.p("design:type",Object)],RO.prototype,"observePrescanOption",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],RO.prototype,"observeData_",null);
_.A([_.e0("showButton"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],RO.prototype,"showButtonChanged_",null);_.A([_.pu({is:"yt-next-continuation",disableElementRegistration:!0})],RO);
_.m(RO,"yt-next-continuation",function(){if(zIG===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;sgi===void 0&&(sgi=document.createElement("template"));var v=sgi;u.call(y,v.content.cloneNode(!0),R.content.firstChild);zIG=R}R=zIG;return R},{mode:2});var gNg;var C4i;var ym=function(){return _.W.apply(this,arguments)||this};
_.O(ym,_.W);ym.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ym.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ym.prototype,"data",void 0);_.A([_.pu({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],ym);
_.m(ym,"yt-music-pass-small-feature-info-renderer",function(){if(C4i===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;gNg===void 0&&(gNg=document.createElement("template"));var v=gNg;u.call(y,v.content.cloneNode(!0),R.content.firstChild);C4i=R}R=C4i;return R},{mode:2});_.Dl("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var uz=function(){var R=_.W.apply(this,arguments)||this;R.isCollapsible=!1;R.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return R};
_.O(uz,_.W);_.J=uz.prototype;_.J.computeIsCollapsible=function(R){return!!(((R==null?0:R.showMoreText)||(R==null?0:R.visibleRowCount))&&(R==null?0:R.isCollapsible))};
_.J.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"}}}};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.J.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.J.onIronResize=function(){var R=this;_.zJ(this,"updateGridInitItems",function(){R.maybeUpdateInitialItemsDisplayed()})};
_.J.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)))}};
_.J.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.J.computeExpandVisible=function(R,y,u,v){return R&&y&&u&&!!v&&!!v.showMoreText};
_.J.computeShowMoreButton=function(R){return{text:R,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.J.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.J.initCollapsed=function(){var R=this;this.ytLazyListBehavior.canShowMore=!1;var y;(this.collapsed=!((y=this.data)==null||!y.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.gn(this,function(){_.h_(R.hostElement,"yt-refit-popups-action")})};
_.J.fillRestIfNotCollapsible=function(){var R=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!R||this.ytLazyListBehavior.fillRemainingListItems()};
_.J.computeViewAllHidden=function(R,y){return R||!y.viewAllEndpoint};
uz.prototype.fillRestIfNotCollapsible=uz.prototype.fillRestIfNotCollapsible;uz.prototype.initCollapsed=uz.prototype.initCollapsed;uz.prototype.onIronResize=uz.prototype.onIronResize;uz.prototype.persistentGuideChanged=uz.prototype.persistentGuideChanged;_.A([_.n(_.qv),_.p("design:type",Object)],uz.prototype,"ironResizableBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],uz.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],uz.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.K_.YtLazyListBehavior),_.p("design:type",Object)],uz.prototype,"ytLazyListBehavior",void 0);_.A([_.n(_.Cw.YtNextContinuationBehavior),_.p("design:type",Object)],uz.prototype,"ytNextContinuationBehavior",void 0);_.A([_.n(_.L6.YtdGuideStateAwareBehavior),_.p("design:type",Object)],uz.prototype,"ytdGuideStateAwareBehavior",void 0);
_.A([_.n(_.gb),_.p("design:type",Object)],uz.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],uz.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Boolean)],uz.prototype,"collapsed",void 0);_.A([_.r(),_.p("design:type",Number)],uz.prototype,"initialCount",void 0);_.A([_.r({computed:"computeShowMoreButton(data.showMoreText)"}),_.p("design:type",Object)],uz.prototype,"showMoreButton",void 0);
_.A([_.r({computed:"computeIsCollapsible(data)"}),_.p("design:type",Object)],uz.prototype,"isCollapsible",void 0);_.A([_.O7("#items"),_.p("design:type",HTMLElement)],uz.prototype,"items",void 0);_.A([_.GJ("guidePersistentAndVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uz.prototype,"persistentGuideChanged",null);_.A([_.fu("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uz.prototype,"onIronResize",null);
_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uz.prototype,"initCollapsed",null);_.A([_.GJ("canShowMore"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uz.prototype,"fillRestIfNotCollapsible",null);_.A([_.q({is:"ytd-grid-renderer",disableElementRegistration:!0})],uz);
_.m(uz,"ytd-grid-renderer",function(){if(D9i!==void 0)return D9i;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return D9i=R},{mode:_.TN("kevlar_poly_si_batch_j025")?1:2});var vS=function(){return _.W.apply(this,arguments)||this};
_.O(vS,_.W);
vS.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([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],vS.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],vS.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],vS.prototype,"data",void 0);_.A([_.q({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],vS);
_.m(vS,"ytd-carousel-ad-renderer",function(){if($9c!==void 0)return $9c;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return $9c=R},{mode:1});var RKi;var Qm=function(){return _.W.apply(this,arguments)||this};
_.O(Qm,_.W);_.J=Qm.prototype;_.J.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"}}}};
_.J.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Qm.JSC$15288_CLICK_LOCATION_ID_MAP))};
_.J.onSitelinkTap=function(R){R.stopPropagation();var y,u,v=R==null?void 0:(y=R.model)==null?void 0:(u=y.item)==null?void 0:u.onTap;v&&this.ytSparklesClickLocationBehavior.handleClick(v,R,!1)};
_.J.onTap=function(R){var y=this.data&&this.data.content&&this.data.content.navigationEndpoint;y&&this.ytSparklesClickLocationBehavior.handleClick(y,R,!1)};
_.J.sendImpression=function(){if(this.data&&this.data.content)for(var R=_.V(this.data.content.impressionEndpoints||[]),y=R.next();!y.done;y=R.next()){y=_.V(y.value.loggingUrls||[]);for(var u=y.next();!u.done;u=y.next())u=u.value,u.baseUrl&&p9(u.baseUrl,u.attributionSrcMode)}};
Qm.prototype.onTap=Qm.prototype.onTap;Qm.prototype.dataChanged=Qm.prototype.dataChanged;Qm.JSC$15288_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([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Qm.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Qm.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.il.YtSparklesClickLocationBehavior),_.p("design:type",Object)],Qm.prototype,"ytSparklesClickLocationBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Qm.prototype,"data",void 0);
_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Qm.prototype,"dataChanged",null);_.A([_.fu("tap"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Qm.prototype,"onTap",null);_.A([_.q({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],Qm);
_.m(Qm,"ytd-promoted-sparkles-text-search-renderer",function(){if(RKi!==void 0)return RKi;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return RKi=R},{mode:1});var y15;var j7=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-mute-ad-action":"handleMuteAd"};return R};
_.O(j7,_.W);_.J=j7.prototype;
_.J.configureRendererStamper=function(){return{"data.menu":{id:_.f("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]]"}}}}}};
_.J.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.J.computeHasAdBadge=function(R){return!(R==null||!R.adBadge)};
_.J.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",j7.JSC$15297_DEFAULT_AD_BADGE_RENDERER),_.FN(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,j7.JSC$15297_CLICK_LOCATION_ID_MAP))};
_.J.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var R;(((R=this.data)==null?void 0:R.impressionCommands)||[]).forEach(function(y){y=_.V(y.loggingUrls||[]);for(var u=y.next();!u.done;u=y.next())u=u.value,u.baseUrl&&p9(u.baseUrl,u.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.J.onTap=function(R){var y,u=(y=this.data)==null?void 0:y.navigationEndpoint,v;(y=(v=this.data)==null?void 0:v.thumbnailNavigationEndpoint)&&_.VB(_.u8(R),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(y,R,!1):u&&this.ytSparklesClickLocationBehavior.handleClick(u,R,!1)};
_.J.handleMuteAd=function(){this.collapsed=!0};
_.J.attached=function(){var R=this;_.f("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&R.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.J.detached=function(){_.f("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.RR.Object.defineProperties(j7.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}}});
j7.prototype.dataChanged=j7.prototype.dataChanged;
j7.JSC$15297_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"]]);
j7.JSC$15297_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.fo("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],j7.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],j7.prototype,"ytRendererBehavior",void 0);_.A([_.n(DY),_.p("design:type",Object)],j7.prototype,"ytdActiveViewBehavior",void 0);
_.A([_.n([_.bW.YtActionHandlerBehavior]),_.p("design:type",Object)],j7.prototype,"actionHandlerBehavior",void 0);_.A([_.n(_.il.YtSparklesClickLocationBehavior),_.p("design:type",Object)],j7.prototype,"ytSparklesClickLocationBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],j7.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],j7.prototype,"collapsed",void 0);_.A([_.r({reflectToAttribute:!0,value:function(){return _.f("enable_desktop_search_bigger_thumbs")}}),
_.p("design:type",Boolean)],j7.prototype,"useBiggerThumbs",void 0);_.A([_.r({reflectToAttribute:!0,value:function(){return _.VN("desktop_search_bigger_thumbs_style")}}),
_.p("design:type",String)],j7.prototype,"biggerThumbsStyle",void 0);_.A([_.r({reflectToAttribute:!0,value:function(){return _.f("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.p("design:type",Boolean)],j7.prototype,"fixAlignmentSmallScreens",void 0);_.A([_.r({reflectToAttribute:!0,value:function(){return _.f("enable_desktop_search_bigger_thumbs_square")}}),
_.p("design:type",Boolean)],j7.prototype,"useBiggerThumbsSquare",void 0);_.A([_.r({reflectToAttribute:!0}),_.G("data.mediaHoverOverlay"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],j7.prototype,"hideHoverOverlay",null);_.A([_.r({reflectToAttribute:!0}),_.G("data.promotedSparklesWebStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],j7.prototype,"webSearchLayout",null);
_.A([_.r({reflectToAttribute:!0}),_.G("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],j7.prototype,"webSearchLayoutLandscape",null);_.A([_.r({reflectToAttribute:!0}),_.G("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],j7.prototype,"webSearchLayoutSquare",null);
_.A([_.r({reflectToAttribute:!0}),_.G("data.promotedSparklesWebStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],j7.prototype,"sparklesCtaNoBackground",null);_.A([_.r({reflectToAttribute:!0}),_.G("data.actionButton"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],j7.prototype,"hideActionButton",null);_.A([_.r({computed:"computeButtonOverride(uiUpdate)"}),_.p("design:type",Object)],j7.prototype,"buttonOverride",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.p("design:type",Boolean)],j7.prototype,"hasNewAdBadge",void 0);_.A([_.G("data.promotedSparklesWebStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],j7.prototype,"useRoundedBadge",null);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],j7.prototype,"dataChanged",null);_.A([_.q({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],j7);
_.m(j7,"ytd-promoted-sparkles-web-renderer",function(){if(y15!==void 0)return y15;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return y15=R},{mode:1});var uI5;var MM=function(){var R=_.W.apply(this,arguments)||this;R.isInlinePreviewTriggered=!1;R.enableMonoStyle=_.f("enable_default_mono_cta_migration_web_client");return R};
_.O(MM,_.W);_.J=MM.prototype;_.J.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]]"}}}}}};
_.J.computeShowCta=function(R){return!(R==null||!R.ctaRenderer)};
_.J.onCtaClick=function(){var R,y,u,v=(R=this.data)==null?void 0:(y=R.ctaRenderer)==null?void 0:(u=y.buttonRenderer)==null?void 0:u.command;v&&this.ytComponentBehavior.resolveCommand(v)};
_.J.onWatchButtonClick=function(){var R,y,u,v=(R=this.data)==null?void 0:(y=R.watchButtonRenderer)==null?void 0:(u=y.buttonRenderer)==null?void 0:u.command;v&&this.ytComponentBehavior.resolveCommand(v)};
_.J.onTap=function(){};
_.J.dataChanged=function(){if(this.data){var R;_.f("enable_inline_muted_playback_on_web_search")&&((R=this.data)==null?0:R.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",MM.JSC$15301_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",MM.JSC$15301_DEFAULT_CLICK_LOCATION_BEHAVIOR,MM.JSC$15301_CLICK_LOCATION_ID_MAP);
this.thumbnail&&(R=this.thumbnail.getElementsByTagName("a"),R.length>0&&(R=R.namedItem("thumbnail"))&&R.removeAttribute("href"))}};
_.J.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var R=_.V(this.data.impressionUrls),y=R.next();!y.done;y=R.next())y=y.value,FNO(y,NZz(y));this.data.impressionsFired=!0}};
_.J.maybeComputeHref=function(){return null};
_.J.computeIsShortDR=function(R){return!(R==null||!R.watchButtonRenderer)&&!(R==null||!R.ctaRenderer)&&!!this.enableShortDR};
_.J.computeIsNewUiOrShortDr=function(R){return!!this.enableUiUpdate||this.computeIsShortDR(R)};
_.J.computeIsNewUiAndNotShortDr=function(R){return!!this.enableUiUpdate&&!this.computeIsShortDR(R)};
_.J.computeHideAvatar=function(R){return!((R==null?0:R.channelThumbnail)&&this.computeIsNewUiOrShortDr(R))};
_.J.onClick=function(R){var y,u=(y=this.data)==null?void 0:y.navigationEndpoint;if(this.enableShortDR&&u&&(_.e(u,_.zM)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(u,R,!!_.e(u,_.zM)),R.stopPropagation();else if(u&&_.e(u,_.zM))this.ytSparklesClickLocationBehavior.handleClick(u,R,!0),R.stopPropagation();else if(u){var v,Q;((v=this.data)==null?0:v.navigationEndpoint)&&((Q=this.data)==null?0:Q.adPlaybackContextParams)&&jUv(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(u)}};
_.J.computeButtonOverride=function(R){if(this.computeIsNewUiOrShortDr(R))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.J.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.J.onThumbnailContainerClick=function(R){this.onClick(R)};
_.J.computeThumbnailWidth=function(R,y){return R?y==="MASSIVE"?600:y==="BIG"?500:y==="MEDIUM"?450:420:360};
_.J.attached=function(){var R=this,y;_.f("enable_inline_muted_playback_on_web_search")&&((y=this.data)==null?0:y.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.f("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&R.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.J.detached=function(){var R;_.f("enable_inline_muted_playback_on_web_search")&&((R=this.data)==null?0:R.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.f("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15302_inlinePreviewHoverListener=sC({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:N6i})};
_.J.clearInlinePreviewHoverListeners=function(){var R;(R=this.JSC$15302_inlinePreviewHoverListener)==null||Mr(R)};
MM.prototype.dataChanged=MM.prototype.dataChanged;MM.prototype.onTap=MM.prototype.onTap;MM.JSC$15301_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.fo("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};MM.JSC$15301_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
MM.JSC$15301_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([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],MM.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],MM.prototype,"ytRendererBehavior",void 0);_.A([_.n(DY),_.p("design:type",Object)],MM.prototype,"ytdActiveViewBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],MM.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.il.YtSparklesClickLocationBehavior),_.p("design:type",Object)],MM.prototype,"ytSparklesClickLocationBehavior",void 0);
_.A([_.O7("#main-container"),_.p("design:type",HTMLElement)],MM.prototype,"mainContainer",void 0);_.A([_.r(),_.p("design:type",Object)],MM.prototype,"isInlinePreviewTriggered",void 0);_.A([_.r(),_.p("design:type",Object)],MM.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,value:function(){return _.f("enable_desktop_search_bigger_thumbs")}}),
_.p("design:type",Boolean)],MM.prototype,"useBiggerThumbs",void 0);_.A([_.r({reflectToAttribute:!0,value:function(){return _.f("enable_video_display_compact_button_group_for_desktop_search")}}),
_.p("design:type",Boolean)],MM.prototype,"enableShortDR",void 0);_.A([_.r({reflectToAttribute:!0,value:function(){return _.f("enable_vac_ui_update_for_desktop_search")}}),
_.p("design:type",Boolean)],MM.prototype,"enableUiUpdate",void 0);_.A([_.r({reflectToAttribute:!0,value:function(){return _.VN("desktop_search_bigger_thumbs_style")}}),
_.p("design:type",String)],MM.prototype,"biggerThumbsStyle",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.p("design:type",Boolean)],MM.prototype,"showCta",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.p("design:type",Boolean)],MM.prototype,"isShortDr",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.p("design:type",Boolean)],MM.prototype,"isShortDrOrNewUi",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.p("design:type",Boolean)],MM.prototype,"isNewUiAndNotShortDr",void 0);_.A([_.r({computed:"computeButtonOverride(data)"}),_.p("design:type",Object)],MM.prototype,"buttonOverride",void 0);_.A([_.r({computed:"computeSecondaryButtonOverride(data)"}),_.p("design:type",Object)],MM.prototype,"secondaryButtonOverride",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],MM.prototype,"enableMonoStyle",void 0);
_.A([_.O7("ytd-thumbnail"),_.p("design:type",HTMLElement)],MM.prototype,"thumbnail",void 0);_.A([_.fu("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],MM.prototype,"onTap",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],MM.prototype,"dataChanged",null);_.A([_.q({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],MM);
_.m(MM,"ytd-promoted-video-renderer",function(){if(uI5!==void 0)return uI5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return uI5=R},{mode:1});var vGg;var JZ=function(){var R=_.W.apply(this,arguments)||this;R.useRoundedBadge=!0;R.sitelinkIds=[];return R};
_.O(JZ,_.W);_.J=JZ.prototype;
_.J.configureRendererStamper=function(){return{"data.menu":{id:_.f("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]]"}}}}}};
_.J.dataChanged=function(){var R;(R=this.data)!=null&&R.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,JZ.JSC$15307_CLICK_LOCATION_ID_MAP)};
_.J.onTap=function(R){var y,u=(y=this.data)==null?void 0:y.navigationCommand;u&&!_.VB(_.u8(R),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(u,R,!1)};
_.J.onSitelinkTap=function(R){var y,u,v=R==null?void 0:(y=R.model)==null?void 0:(u=y.item)==null?void 0:u.onTap;v&&this.ytSparklesClickLocationBehavior.handleClick(v,R,!1)};
_.J.configureSitelinkClickTargets=function(){var R=this,y,u,v=(y=this.data)==null?void 0:(u=y.clickLocationTargets)==null?void 0:u.find(function(Q){return Q.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
v&&_.hw(this.hostElement).querySelectorAll(".sitelink").forEach(function(Q){_.FN(Q,"yt-simple-endpoint",!0);R.sitelinkIds.push(Q.id);var M,K;(M=R.ytSparklesClickLocationBehavior)==null||(K=M.clickTargetMap)==null||K.set(Q.id,v)})};
_.J.sendImpression=function(){var R,y,u=((R=this.data)==null?void 0:(y=R.impressionCommand)==null?void 0:y.loggingUrls)||[];R=_.V(u);for(y=R.next();!y.done;y=R.next())y=y.value,y.baseUrl&&p9(y.baseUrl,y.attributionSrcMode)};
_.J.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.RR.Object.defineProperties(JZ.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
JZ.prototype.onTap=JZ.prototype.onTap;JZ.prototype.dataChanged=JZ.prototype.dataChanged;JZ.JSC$15307_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([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],JZ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],JZ.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.il.YtSparklesClickLocationBehavior),_.p("design:type",Object)],JZ.prototype,"ytSparklesClickLocationBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],JZ.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],JZ.prototype,"showFavicon",null);_.A([_.r({reflectToAttribute:!0,value:function(){return _.f("enable_desktop_search_bigger_thumbs")}}),
_.p("design:type",Boolean)],JZ.prototype,"useBiggerThumbs",void 0);_.A([_.r({reflectToAttribute:!0,value:function(){return _.VN("desktop_search_bigger_thumbs_style")}}),
_.p("design:type",String)],JZ.prototype,"biggerThumbsStyle",void 0);_.A([_.r({reflectToAttribute:!0,value:function(){return _.f("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.p("design:type",Boolean)],JZ.prototype,"enableThumbnailScalingFix",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],JZ.prototype,"dataChanged",null);_.A([_.fu("tap"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],JZ.prototype,"onTap",null);_.A([_.q({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],JZ);
_.m(JZ,"ytd-text-image-no-button-layout-renderer",function(){if(vGg!==void 0)return vGg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return vGg=R},{mode:_.TN("kevlar_poly_si_batch_j028")?1:2});var Q4g;var Vm=function(){var R=_.W.apply(this,arguments)||this;R.isInlinePlaybackState=!1;R.uiUpdate=_.f("web_modern_buttons");R.hideCta=_.f("hide_cta_for_home_web_video_ads");R.noBottomMargin=!1;R.animateInTimeStamp=_.JT("hide_cta_for_home_web_video_ads_animate_in_time");R.animateInCta=!1;R.isHovered=!1;R.enableMonoStyle=_.f("enable_default_mono_cta_migration_web_client");R.player=null;R.JSC$15314_playerEvents=new Map;R.JSC$15314_preventProgressSaveTimer=null;R.delayedCtaJobId=null;return R};
_.O(Vm,_.W);_.J=Vm.prototype;_.J.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]]"}}}}}};
_.J.attached=function(){this.JSC$15314_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15314_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.f("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.J.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15314_playerEvents)};
_.J.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",Vm.JSC$15313_DEFAULT_CLICK_LOCATION_BEHAVIOR,Vm.JSC$15313_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.J.hoverChanged=function(){var R=this;this.delayedCtaJobId&&(_.WG.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.f("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.Wm(_.WG,function(){R.buttonContainer.classList.add("show-delayed-buttons")},_.JT("delayed_cta_on_web_delay_milliseconds")))};
_.J.setPlayer=function(){var R=this,y;return _.I(function(u){if(u.nextAddress==1)return(y=_.h_(R.hostElement,"yt-get-inline-preview-player-action"))&&y[0]?u.yield(y[0].getPlayerPromise(),3):u.jumpTo(0);R.player=u.yieldResult;R.ytPlayerListenerBehavior.listenToPlayerEvents(R.player,R.JSC$15314_playerEvents);_.f$(u)})};
_.J.onPlaybackStart=function(){var R=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15314_preventProgressSaveTimer=_.T3(_.WG,function(){R.JSC$15314_preventProgressSaveTimer=null},1E4))};
_.J.onVideoProgress=function(R){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&R>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.J.resetPreventProgressSaveTimer=function(){_.WG.cancelJob(this.JSC$15314_preventProgressSaveTimer);this.JSC$15314_preventProgressSaveTimer=null};
_.J.getSimpleString=function(R){return _.u7(R)};
_.J.onClick=function(R){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var y,u=(y=this.data)==null?void 0:y.navigationEndpoint,v;y=(v=this.data)==null?void 0:v.channelEndpoint;var Q,M;(v=(M=_.e((Q=this.data)==null?void 0:Q.adCtaButton,_.aG))==null?void 0:M.command)&&_.VB(_.u8(R),this.hostElement,["call-to-action"])?_.f("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(v,R,!1):y&&_.VB(_.u8(R),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(y,R,!1):!_.VB(_.u8(R),this.hostElement,["secondary-button"])&&u&&(_.f("enable_short_dr_for_desktop_launchable")?(Q=!!_.e(u,_.zM),this.isInlinePlaybackState&&Q&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(u,R,Q)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(u,R,!0)))}};
_.J.updateWatchEndpointStartTime=function(){var R,y;this.player&&((R=this.data)==null?0:R.inlinePlaybackEndpoint)&&((y=this.data)==null?0:y.navigationEndpoint)&&!this.JSC$15314_preventProgressSaveTimer&&(R=Math.floor(this.player.getCurrentTime()),_.e(this.data.navigationEndpoint,_.zM).startTimeSeconds=R,_.e(this.data.inlinePlaybackEndpoint,_.zM).startTimeSeconds=R)};
_.J.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.J.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.RR.Object.defineProperties(Vm.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.f("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var R,y;return!((R=this.data)==null||!R.watchButton)&&!((y=this.data)==null||!y.adCtaButton)}}});
Vm.prototype.hoverChanged=Vm.prototype.hoverChanged;Vm.prototype.dataChanged=Vm.prototype.dataChanged;
Vm.JSC$15313_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"]]);
Vm.JSC$15313_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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Vm.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Vm.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],Vm.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.il.YtSparklesClickLocationBehavior),_.p("design:type",Object)],Vm.prototype,"ytSparklesClickLocationBehavior",void 0);
_.A([_.n(_.Ra.YtPlayerListenerBehavior),_.p("design:type",_.yH)],Vm.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Vm.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Vm.prototype,"isInlinePlaybackState",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Vm.prototype,"miniMode",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Vm.prototype,"uiUpdate",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Vm.prototype,"hideCta",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Vm.prototype,"noBottomMargin",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Vm.prototype,"animateInCta",void 0);_.A([_.r({computed:"computeButtonOverride(uiUpdate)"}),_.p("design:type",Object)],Vm.prototype,"buttonOverride",void 0);
_.A([_.r({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.p("design:type",Object)],Vm.prototype,"secondaryButtonOverride",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Vm.prototype,"isHovered",void 0);_.A([_.O7("#button-container"),_.p("design:type",HTMLElement)],Vm.prototype,"buttonContainer",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Vm.prototype,"typographyBump",void 0);
_.A([_.r({reflectToAttribute:!0}),_.G("typographyBump"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Vm.prototype,"typographyBumpV2",null);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Vm.prototype,"enableMonoStyle",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Vm.prototype,"dataChanged",null);
_.A([_.e0("isHovered"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Vm.prototype,"hoverChanged",null);_.A([_.G("data"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Vm.prototype,"isButtonGroup",null);_.A([_.q({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],Vm);
_.m(Vm,"ytd-ad-inline-playback-meta-block",function(){if(Q4g!==void 0)return Q4g;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Q4g=R},{mode:_.TN("kevlar_poly_si_batch_j065")?1:2});var j4K;var iz=function(){var R=_.W.apply(this,arguments)||this;R.noBottomMargin=!1;R.isInlinePreviewTriggered=!1;R.JSC$15319_activeViewMeasurementDataResolver=_.uD();return R};
_.O(iz,_.W);_.J=iz.prototype;_.J.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.J.attached=function(){var R=this;this.updateInlinePreviewHoverListeners();this.JSC$15319_activeViewMeasurementDataResolver.promise.then(function(y){R.ytdActiveViewBehavior.enableActiveViewMeasurement(y,15)});
_.f("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&R.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.J.detached=function(){this.clearInlinePreviewHoverListeners();_.f("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15319_inlinePreviewHoverListener=sC({mediaRenderer:this,lockupElement:this.JSC$15319_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:N6i})};
_.J.clearInlinePreviewHoverListeners=function(){var R;(R=this.JSC$15319_inlinePreviewHoverListener)==null||Mr(R)};
_.J.onDataChanged=function(){var R;((R=this.data)==null?0:R.activeView)&&this.JSC$15319_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",iz.JSC$15318_DEFAULT_CLICK_LOCATION_BEHAVIOR,iz.JSC$15318_CLICK_LOCATION_ID_MAP);this.thumbnail&&(R=this.thumbnail.getElementsByTagName("a"),R.length>0&&(R=R.namedItem("thumbnail"))&&R.removeAttribute("href"));var y;if((y=this.data)==
null?0:y.forceImpAutoplay){var u;(u=this.JSC$15319_inlinePreviewHoverListener)==null||EyS(u)}};
_.J.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.J.onThumbnailContainerClick=function(R){if(this.data&&this.data.navigationEndpoint){var y,u=(y=this.data)==null?void 0:y.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(u,R,!!_.e(u,_.zM));R.stopPropagation()}};
_.J.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.J.impressionLog=function(){var R=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var y,u,v=(u=_.e((y=this.data)==null?void 0:y.onImpression,_.TP))==null?void 0:u.commands;v&&(v.forEach(function(Q){Q.clickTrackingParams&&delete Q.clickTrackingParams;R.ytComponentBehavior.resolveCommand(Q)}),this.data.impressionsFired=!0)}};
_.RR.Object.defineProperties(iz.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.JSC$15319_inlinePreviewHoverListener)==null?0:tp(R))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
iz.prototype.onTypographyBumpChanged=iz.prototype.onTypographyBumpChanged;iz.prototype.onDataChanged=iz.prototype.onDataChanged;iz.JSC$15318_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);iz.JSC$15318_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([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],iz.prototype,"ytComponentBehavior",void 0);_.A([_.n(DY),_.p("design:type",Object)],iz.prototype,"ytdActiveViewBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],iz.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],iz.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.c4),_.p("design:type",Object)],iz.prototype,"ytdDismissibleItemBehavior",void 0);
_.A([_.n(_.gT),_.p("design:type",Object)],iz.prototype,"ytdLockupBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],iz.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.il.YtSparklesClickLocationBehavior),_.p("design:type",Object)],iz.prototype,"ytSparklesClickLocationBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],iz.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],iz.prototype,"noBottomMargin",void 0);
_.A([_.r(),_.p("design:type",Object)],iz.prototype,"isInlinePreviewTriggered",void 0);_.A([_.r({reflectToAttribute:!0,selector:_.$s}),_.p("design:type",Boolean)],iz.prototype,"miniMode",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],iz.prototype,"typographyBump",void 0);_.A([_.O7("ytd-thumbnail"),_.p("design:type",HTMLElement)],iz.prototype,"thumbnail",void 0);_.A([_.O7("#dismissible"),_.p("design:type",HTMLElement)],iz.prototype,"JSC$15319_dismissibleMedia",void 0);
_.A([_.O7("ytd-ad-inline-playback-meta-block"),_.p("design:type",HTMLElement)],iz.prototype,"adInlinePlaybackMetaBlock",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],iz.prototype,"onDataChanged",null);_.A([_.GJ("typographyBump"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],iz.prototype,"onTypographyBumpChanged",null);
_.A([_.G("lockupIsHovered"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],iz.prototype,"isHovered",null);_.A([_.q({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],iz);
_.m(iz,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(j4K!==void 0)return j4K;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return j4K=R},{mode:1});var MGV;var KE=function(){var R=_.W.apply(this,arguments)||this;R.isInlinePreviewTriggered=!1;R.JSC$15322_activeViewMeasurementDataResolver=_.uD();return R};
_.O(KE,_.W);_.J=KE.prototype;_.J.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.J.attached=function(){var R=this;this.updateInlinePreviewHoverListeners();this.JSC$15322_activeViewMeasurementDataResolver.promise.then(function(y){R.ytdActiveViewBehavior.enableActiveViewMeasurement(y,15)})};
_.J.detached=function(){this.clearInlinePreviewHoverListeners()};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15322_inlinePreviewHoverListener=sC({mediaRenderer:this,lockupElement:this.JSC$15322_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:N6i})};
_.J.clearInlinePreviewHoverListeners=function(){var R;(R=this.JSC$15322_inlinePreviewHoverListener)==null||Mr(R)};
_.J.onDataChanged=function(){var R;((R=this.data)==null?0:R.activeView)&&this.JSC$15322_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",KE.JSC$15321_DEFAULT_CLICK_LOCATION_BEHAVIOR,KE.JSC$15321_CLICK_LOCATION_ID_MAP);this.thumbnail&&(R=this.thumbnail.getElementsByTagName("a"),R.length>0&&(R=R.namedItem("thumbnail"))&&R.removeAttribute("href"))};
_.J.onThumbnailContainerClick=function(R){if(this.data&&this.data.navigationEndpoint){var y,u=(y=this.data)==null?void 0:y.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(u,R,!0);R.stopPropagation()}};
_.J.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.J.impressionLog=function(){var R=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var y,u,v=(u=_.e((y=this.data)==null?void 0:y.onImpression,_.TP))==null?void 0:u.commands;v&&(v.forEach(function(Q){Q.clickTrackingParams&&delete Q.clickTrackingParams;_.ua().resolve(_.jX).resolveCommand(Q,{form:{element:R.hostElement}})}),this.data.impressionsFired=!0)}};
_.RR.Object.defineProperties(KE.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.JSC$15322_inlinePreviewHoverListener)==null?0:tp(R))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
KE.prototype.onDataChanged=KE.prototype.onDataChanged;KE.JSC$15321_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);KE.JSC$15321_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([_.n(DY),_.p("design:type",Object)],KE.prototype,"ytdActiveViewBehavior",void 0);
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],KE.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],KE.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.c4),_.p("design:type",Object)],KE.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.n(_.gT),_.p("design:type",Object)],KE.prototype,"ytdLockupBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],KE.prototype,"ytdReduxBehavior",void 0);
_.A([_.n(_.il.YtSparklesClickLocationBehavior),_.p("design:type",Object)],KE.prototype,"ytSparklesClickLocationBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],KE.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],KE.prototype,"isInlinePreviewTriggered",void 0);_.A([_.r({reflectToAttribute:!0,selector:_.$s}),_.p("design:type",Boolean)],KE.prototype,"miniMode",void 0);_.A([_.O7("ytd-thumbnail"),_.p("design:type",HTMLElement)],KE.prototype,"thumbnail",void 0);
_.A([_.O7("#dismissible"),_.p("design:type",HTMLElement)],KE.prototype,"JSC$15322_dismissibleMedia",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],KE.prototype,"onDataChanged",null);_.A([_.G("lockupIsHovered"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],KE.prototype,"isHovered",null);_.A([_.q({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],KE);
_.m(KE,"ytd-video-display-full-buttoned-renderer",function(){if(MGV!==void 0)return MGV;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return MGV=R},{mode:1});var w$=function(R,y,u,v){v=v===void 0?!1:v;_.RL.call(this,R);this.adsClientErrorMessage=u;this.aggressivelySample=v;this.args=[];y&&this.args.push(y)};
_.O(w$,_.RL);var bG=function(R,y,u,v){v=v===void 0?!1:v;_.RL.call(this,R);this.adsClientErrorMessage=u;this.aggressivelySample=v;this.args=[];y&&this.args.push(y)};
_.O(bG,_.RL);var J1K=function(R){_.Z0.call(this);var y=this;this.initializationFunction=R;this.instance=null;this.addOnDisposeCallback(function(){_.R_(y.instance);y.instance=null})};
_.O(J1K,_.Z0);J1K.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.M5("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var inP=function(){var R=new Map;[].forEach(function(y){R.set(y.JSC$30270_getType(),y)});
this.getters=R};new Promise(function(){});var QgU=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"]]),uTz=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"}]]),VG5=function(R){this.experimentApiProvider=R;R=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=R<.1};var IO=function(R,y,u,v){_.Z0.call(this);this.adsControlFlowEventListeners=y;this.adEventLogger=u;this.experimentApiProvider=v;this.adsControlFlowManagerHelper=R(this,this,this,this,this);_.bx(this,this.adsControlFlowManagerHelper);R=_.V(y);for(y=R.next();!y.done;y=R.next())_.bx(this,y.value)};
_.O(IO,_.Z0);var iDV=function(R,y,u,v){hZ(R.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",y,u,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,v);R=_.V(R.adsControlFlowEventListeners);for(v=R.next();!v.done;v=R.next())iDV(v.value,y,u)};
_.J=IO.prototype;_.J.onOpportunityProcessedExternallyManaged=function(R,y,u,v){hZ(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",R,u,y,void 0,void 0,void 0,void 0,void 0,void 0,void 0,v)};
_.J.onSlotReceivedExternallyManaged=function(R,y){bz(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",R,y)};
_.J.onSlotEntered=function(R){if(FB(this.adsControlFlowManagerHelper,R)!=null){bz(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",R);this.adsControlFlowManagerHelper.onSlotEntered(R);for(var y=_.V(this.adsControlFlowEventListeners),u=y.next();!u.done;u=y.next())u.value.onSlotEntered(R);if(FB(this.adsControlFlowManagerHelper,R)!=null&&FB(this.adsControlFlowManagerHelper,R).isOccupyingSlotType()&&wJ(this.adsControlFlowManagerHelper,R)&&!Kzb(this.adsControlFlowManagerHelper,R)){var v;NM(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",R,(v=wJ(this.adsControlFlowManagerHelper,R))!=null?v:void 0);R=FB(this.adsControlFlowManagerHelper,R);R.slotLifecycleStage!=="entered"&&TH(R.slot,R.slotLifecycleStage,"enterLayoutForSlot");R.slotLifecycleStage="rendering";R.registeredLayoutRenderingAdapter.startRendering(R.layout)}}};
_.J.onSlotExited=function(R){if(FB(this.adsControlFlowManagerHelper,R)!=null){bz(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",R);this.adsControlFlowManagerHelper.onSlotExited(R);for(var y=_.V(this.adsControlFlowEventListeners),u=y.next();!u.done;u=y.next())u.value.onSlotExited(R);FB(this.adsControlFlowManagerHelper,R)!=null&&FB(this.adsControlFlowManagerHelper,R).markedForUnscheduleAfterOutboundAdapterRequests&&I_i(this,R)}};
_.J.onLayoutReceivedExternallyManaged=function(R,y,u){R.managerLayer!=="core"&&NM(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",R,y,u)};
var hKg=function(R,y,u){if(FB(R.adsControlFlowManagerHelper,y)!=null){NM(R.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",y,u);R=_.V(R.adsControlFlowEventListeners);for(var v=R.next();!v.done;v=R.next())hKg(v.value,y,u)}};
IO.prototype.onLayoutExited=function(R,y,u){if(FB(this.adsControlFlowManagerHelper,R)!=null){NM(this.adEventLogger,vN8(u),R,y);this.adsControlFlowManagerHelper.onLayoutExited(R,y);for(var v=_.V(this.adsControlFlowEventListeners),Q=v.next();!Q.done;Q=v.next())Q.value.onLayoutExited(R,y,u);(u=wJ(this.adsControlFlowManagerHelper,R))&&y.layoutId===u.layoutId&&bDb(this,R)}};
IO.prototype.disposeInternal=function(){var R=Fzg(this.adsControlFlowManagerHelper);R=_.V(R);for(var y=R.next();!y.done;y=R.next())I_i(this,y.value);_.Z0.prototype.disposeInternal.call(this)};
var I_i=function(R,y){if(FB(R.adsControlFlowManagerHelper,y)!=null)if(FB(R.adsControlFlowManagerHelper,y).JSC$30300_isSlotExitRequested()||FB(R.adsControlFlowManagerHelper,y).JSC$30300_isLayoutExitRequested())FB(R.adsControlFlowManagerHelper,y).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(FB(R.adsControlFlowManagerHelper,y).isOccupyingSlotType())FB(R.adsControlFlowManagerHelper,y).markedForUnscheduleAfterOutboundAdapterRequests=!0,bDb(R,y);else if(FB(R.adsControlFlowManagerHelper,y).JSC$30300_isSlotFillRequested())FB(R.adsControlFlowManagerHelper,
y).markedForUnscheduleAfterOutboundAdapterRequests=!0,FB(R.adsControlFlowManagerHelper,y)!=null&&(bz(R.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",y),y=FB(R.adsControlFlowManagerHelper,y),y.fulfillmentLifecycleStage="fill_cancel_requested",y.registeredFulfillmentAdapter.cancelSlotFilling());else{var u=wJ(R.adsControlFlowManagerHelper,y),v;R.experimentApiProvider.get();(v=_.f("h5_enable_layout_unscheduling_events"))&&(u?wlc(R,y,u):_.M5(Error("Ih"),y,u,void 0,!1));bz(R.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",y);var Q=FB(R.adsControlFlowManagerHelper,y),M=y.slotEntryTrigger,K=Q.registeredSlotEntryTriggerAdapters.get(M.triggerId);K&&(K.unregisterTrigger(M),Q.registeredSlotEntryTriggerAdapters.delete(M.triggerId));M=_.V(y.slotFulfillmentTriggers);for(K=M.next();!K.done;K=M.next()){K=K.value;var h=Q.registeredFulfillmentTriggerAdapters.get(K.triggerId);h&&(h.unregisterTrigger(K),Q.registeredFulfillmentTriggerAdapters.delete(K.triggerId))}M=_.V(y.slotExpirationTriggers);
for(K=M.next();!K.done;K=M.next())if(K=K.value,h=Q.registeredExpirationTriggerAdapters.get(K.triggerId))h.unregisterTrigger(K),Q.registeredExpirationTriggerAdapters.delete(K.triggerId);Q.hasLayout()&&(M=Q.layout,oO(Q,M.layoutExitNormalTriggers),oO(Q,M.layoutExitSkipTriggers),oO(Q,M.layoutExitMuteTriggers),oO(Q,M.layoutExitUserInputSubmittedTriggers),oO(Q,M.layoutExitUserCancelledTriggers));Q.registeredFulfillmentAdapter=void 0;Q.registeredSlotAdapter!=null&&(Q.registeredSlotAdapter.release(),Q.registeredSlotAdapter=
void 0);Q.registeredLayoutRenderingAdapter!=null&&(Q.registeredLayoutRenderingAdapter.release(),Q.registeredLayoutRenderingAdapter=void 0);Q=R.adsControlFlowManagerHelper;FB(Q,y)&&(Q=NLY(Q,y.slotType+"_"+y.slotPhysicalPosition))&&Q.delete(y.slotId);bz(R.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",y);R=_.V(R.adsControlFlowEventListeners);for(Q=R.next();!Q.done;Q=R.next())Q=Q.value,Q.onSlotUnscheduled(y),u&&!v&&wlc(Q,y,u)}},wlc=function(R,y,u){NM(R.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
y,u);
NM(R.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",y,u);R=_.V(R.adsControlFlowEventListeners);for(var v=R.next();!v.done;v=R.next())v=v.value,u&&wlc(v,y,u)},bDb=function(R,y){if(FB(R.adsControlFlowManagerHelper,y)!=null&&FB(R.adsControlFlowManagerHelper,y).isOccupyingSlotType()){var u=wJ(R.adsControlFlowManagerHelper,y);
if(u&&Kzb(R.adsControlFlowManagerHelper,y)){if(FB(R.adsControlFlowManagerHelper,y)!=null){var v=R.adEventLogger,Q;var M=((Q=uTz.get("abandoned"))==null?void 0:Q.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";NM(v,M,y,u);R=FB(R.adsControlFlowManagerHelper,y);R.slotLifecycleStage!=="rendering"&&TH(R.slot,R.slotLifecycleStage,"exitLayout");R.slotLifecycleStage="rendering_stop_requested";R.registeredLayoutRenderingAdapter.stopRendering(u,"abandoned")}}else{bz(R.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
y);try{v=FB(R.adsControlFlowManagerHelper,y);if(!v)throw new bG("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");v.slotLifecycleStage!=="enter_requested"&&v.slotLifecycleStage!=="entered"&&v.slotLifecycleStage!=="rendering"&&TH(v.slot,v.slotLifecycleStage,"exitSlot");v.slotLifecycleStage="exit_requested";if(v.registeredSlotAdapter===void 0)throw v.slotLifecycleStage="scheduled",new bG("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
v.registeredSlotAdapter.exit()}catch(K){K instanceof bG&&K.adsClientErrorMessage?(TLi(R.adEventLogger,K.adsClientErrorMessage,y),_.M5(K,y,void 0,void 0,K.aggressivelySample)):(TLi(R.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",y),_.M5(K,y))}}}};var xZ=function(R,y,u,v,Q,M){_.Z0.call(this);this.registry=R;this.experimentApiProvider=M;this.slotMap=new Map};
_.O(xZ,_.Z0);var NLY=function(R,y){return(R=R.slotMap.get(y))?R:new Map},FB=function(R,y){return NLY(R,y.slotType+"_"+y.slotPhysicalPosition).get(y.slotId)},Fzg=function(R){var y=[];
R.slotMap.forEach(function(u){u=_.V(u.values());for(var v=u.next();!v.done;v=u.next())y.push(v.value.slot)});
return y};
xZ.prototype.onSlotEntered=function(R){R=FB(this,R);R.slotLifecycleStage!=="enter_requested"&&TH(R.slot,R.slotLifecycleStage,"onSlotEntered");R.slotLifecycleStage="entered"};
var Kzb=function(R,y){R=FB(R,y);return R.hasLayout()&&R.isRendering()},wJ=function(R,y){(R=FB(R,y))?R.hasLayout()&&!R.layout&&_.M5("Unexpected empty layout",y):_.M5("Unexpected undefined slotState",y);
return(R==null?void 0:R.layout)||null};
xZ.prototype.onSlotExited=function(R){R=FB(this,R);R.slotLifecycleStage!=="exit_requested"&&TH(R.slot,R.slotLifecycleStage,"onSlotExited");R.slotLifecycleStage="scheduled"};
xZ.prototype.onLayoutExited=function(R,y){R=FB(this,R);R.isPrimaryLayout(y)&&(R.slotLifecycleStage!=="rendering_stop_requested"&&TH(R.slot,R.slotLifecycleStage,"onLayoutExited"),R.slotLifecycleStage="entered")};
var oO=function(R,y){y=_.V(y);for(var u=y.next();!u.done;u=y.next()){u=u.value;var v=R.registeredLayoutExitTriggerAdapters.get(u.triggerId);v&&(v.unregisterTrigger(u),R.registeredLayoutExitTriggerAdapters.delete(u.triggerId))}},TH=function(R,y,u){_.M5("Slot stage was "+y+" when calling method "+u,R)};var xuG=function(R){_.Z0.call(this);this.deps=R;this.JSC$15372_adsControlFlowManager=oGi(this)};
_.O(xuG,_.Z0);var oGi=function(R){var y=new IO(function(u,v,Q,M){return new xZ(R.deps.registry,u,v,Q,M,R.deps.experimentApiProvider)},new Set(VnU(R.deps.registry).concat(R.deps.listeners)),R.deps.adEventLogger,R.deps.experimentApiProvider);
_.bx(R,y);return y};var BLK=function(){};var f_T=function(R,y){_.Z0.call(this);this.experimentApiProvider=R;this.eventLoggingSettingsProvider=y;this.eventCount=0;this.premiumAdSeenEventLogger=_.ua().resolve(_.yN(BLK))};
_.O(f_T,_.Z0);f_T.prototype.logEvent=function(R){hZ(this,R)};
var bz=function(R,y,u,v){hZ(R,y,void 0,void 0,void 0,u,void 0,void 0,void 0,u.adSlotLoggingData,void 0,void 0,v)},NM=function(R,y,u,v,Q){hZ(R,y,void 0,void 0,void 0,u,v?v:void 0,void 0,void 0,u.adSlotLoggingData,v?v.adLayoutLoggingData:void 0,void 0,Q);
u=_.ua().resolve(_.yN(Zz))==null?void 0:H3();y=u==null?void 0:u.adsSeenHotConfig;u=u==null?void 0:u.adsHotConfig;(y==null?0:y.logOnAdsSeen)&&(u==null?0:u.webEnablePremiumAdsSeenLogging)&&eKc(R,v?v:void 0,Q)},TLi=function(R,y,u){hZ(R,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,u,void 0,void 0,void 0,u.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:y})},hZ=function(R,y,u,v,Q,M,K,h,b,N,T,x,B){B=B===void 0?0:B;
l_K(R.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+y,"slot:",M,"layout:",K,"ping:",h,"Opportunity:",{opportunityType:u,associatedSlotId:v,slotsFromOpportunity:Q,triggerBundle:b,adSlotLoggingData:N,adLayoutLoggingData:T});try{var l=function(){R.experimentApiProvider.get();if(y!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){y||_.M5("Empty PACF event type",M,K);var Z=R.eventLoggingSettingsProvider.get();var P;(P=Z.alwaysIncludeDebugData)||(Z.experimentApiProvider.get(),P=
!1);Z=P;P={eventType:y,eventOrder:++R.eventCount};var k={};M&&(k.slotData=MnU(Z,M));if(K){var E={type:K.layoutType,controlFlowManagerLayer:QgU.get(K.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};Z&&(E.debugData={layoutId:K.layoutId});k.layoutData=E}h&&(k.pingData={pingDispatchStatus:h.dispatchStatus,serializedAdPingMetadata:h.ping.serializedAdPingMetadata,pingIndex:h.index});b&&(k.triggerData=jgU(b.trigger,b.category));u&&(k.opportunityData=J0L(Z,u,v,Q));P.adClientData=k;N&&(P.serializedSlotAdServingData=
N.serializedSlotAdServingDataEntry);T&&(P.serializedAdServingData=T.serializedAdServingDataEntry);x&&(P.errorInfo=x);_.P3("adsClientStateChange",{adsClientEvent:P})}};
B&&B>0?_.Oh(_.EJ(),function(){return l()},B):l()}catch(Z){l_K(R.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.Oh(_.EJ(),function(){_.M5(Z instanceof Error?Z:String(Z),M,K,{pacf_message:"exception during pacf logging"})})}},eKc=function(R,y,u){if(y){var v=y.adLayoutLoggingData;
_.Oh(_.EJ(),function(){if(R.premiumAdSeenEventLogger!=null){var Q=Date.now().toString();v&&_.P3("adsSeenClientLogging",{adsSeenClientLogging:{serializedAdServingDataEntry:v.serializedAdServingDataEntry},eventTimeMs:Q})}},u!=null?u:0)}};var ODT=function(R,y){f_T.call(this,R,y)};
_.O(ODT,f_T);var ZDc=function(){},l_K=function(R,y){return _.f(y)};var nGV=function(){var R=new HD5;this.JSC$15398_adsControlFlowManager=(new xuG(R)).JSC$15372_adsControlFlowManager},HD5=function(){_.Z0.call(this);
var R=this;this.experimentApiProvider=new J1K(function(){return new ZDc});
var y=new J1K(function(){return new VG5(R.experimentApiProvider)});
this.adEventLogger=new ODT(this.experimentApiProvider,y);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.O(HD5,_.Z0);var Gcb=function(){},r1g,BS=function(){r1g||(r1g=new Gcb);
return r1g},fE=function(R){if(!R.JSC$15409_externallyManagedSlotAdapterCallback){var y=(new nGV).JSC$15398_adsControlFlowManager;
R.JSC$15409_externallyManagedSlotAdapterCallback=y}return R.JSC$15409_externallyManagedSlotAdapterCallback},PMc=function(R,y,u){var v=y.opportunityType,Q=Error("Jh");
if(v!==void 0){var M=fE(R);iDV(M,v,void 0,u)}else _.M5(Q,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});M=[];if(y.adSlotAndLayoutMetadata!==void 0){y=_.V(y.adSlotAndLayoutMetadata);for(var K=y.next();!K.done;K=y.next()){var h=K.value;if(K=h.adSlotMetadata)if(M.push(K),R.onSlotReceivedExternallyManaged(K,u),h.adLayoutMetadata){h=_.V(h.adLayoutMetadata);for(var b=h.next();!b.done;b=h.next())R.onLayoutReceivedExternallyManaged(K,b.value,u)}else u>0&&_.M5("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
v,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else u>0&&_.M5("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+v,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else u>0&&_.M5("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+v,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(v!==void 0)R.onOpportunityProcessedExternallyManaged(v,M,void 0,u);else _.M5(Q,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
Gcb.prototype.onSlotReceivedExternallyManaged=function(R,y){R=Fd(R);if(R instanceof bG)_.M5(R,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else fE(this).onSlotReceivedExternallyManaged(R,y)};
Gcb.prototype.onLayoutReceivedExternallyManaged=function(R,y,u){R=Fd(R);y=KLW(y);if(R instanceof bG)_.M5(R,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(y instanceof w$)_.M5(y,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else fE(this).onLayoutReceivedExternallyManaged(R,y,u)};
Gcb.prototype.onOpportunityProcessedExternallyManaged=function(R,y,u,v){var Q=[];y=_.V(y);for(var M=y.next();!M.done;M=y.next())M=Fd(M.value),M instanceof bG?_.M5(M,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):Q.push(M);fE(this).onOpportunityProcessedExternallyManaged(R,Q,u,v)};
var Wz5=function(R,y){y=Fd(y);if(y instanceof bG)_.M5(y,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var u=fE(R);bz(u.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",y);u=_.V(u.adsControlFlowEventListeners);for(var v=u.next();!v.done;v=u.next())v=FB(v.value,y),v.slotLifecycleStage!=="not_scheduled"&&TH(v.slot,v.slotLifecycleStage,"onSlotScheduled"),v.slotLifecycleStage="scheduled";R=fE(R);bz(R.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",y);R=_.V(R.adsControlFlowEventListeners);
for(u=R.next();!u.done;u=R.next())u.value.onSlotEntered(y)}},duT=function(R,y){y=Fd(y);
if(y instanceof bG)_.M5(y,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var u=fE(R);bz(u.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",y);u=_.V(u.adsControlFlowEventListeners);for(var v=u.next();!v.done;v=u.next())v.value.onSlotExited(y);R=fE(R);bz(R.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",y);R=_.V(R.adsControlFlowEventListeners);for(u=R.next();!u.done;u=R.next())u.value.onSlotUnscheduled(y)}},Uu5=function(R,y,u){y=Fd(y);
u=KLW(u);if(y instanceof bG)_.M5(y,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(u instanceof w$)_.M5(u,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var v=fE(R);NM(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",y,u);v=_.V(v.adsControlFlowEventListeners);for(var Q=v.next();!Q.done;Q=v.next())Q.value.onLayoutScheduled(y,u);R=fE(R);NM(R.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",y,u);R=_.V(R.adsControlFlowEventListeners);
for(v=R.next();!v.done;v=R.next())hKg(v.value,y,u)}},e7=function(R,y,u){y=Fd(y);
u=KLW(u);if(y instanceof bG)_.M5(y,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(u instanceof w$)_.M5(u,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var v=fE(R);NM(v.adEventLogger,vN8("normal"),y,u);v=_.V(v.adsControlFlowEventListeners);for(var Q=v.next();!Q.done;Q=v.next())Q.value.onLayoutExited(y,u,"normal");R=fE(R);R=_.V(R.adsControlFlowEventListeners);for(v=R.next();!v.done;v=R.next())wlc(v.value,y,u)}};_.lz=_.Jd(function(R){var y=_.jb(R,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});R=Object.assign({},y);var u=y.data;y=y.customCommandResolver;var v=(delete R.data,delete R.customCommandResolver,R);R=_.vA({visibilityCallback:function(h,b){var N,T=(N=u().interaction)==null?void 0:N.onFirstVisible;h&&(T&&_.zN(T),v.setOnErrorHandler()&&I9S(b))},
showOption:_.i2});y=_.CA(function(){return u().interaction},y,function(){var h;
return(h=v.listenToTapEvent)==null?void 0:h.call(v)});
var Q=_.V(_.In(!1,void 0,"nqIeMd")),M=Q.next().value,K=Q.next().value;Q=_.nh(function(h){var b;((b=v.setTouchEndHandler)==null?0:b.call(v))&&!M()&&(h.currentTarget.click(),K(!0),setTimeout(function(){K(!1)},100));
return!1});
return _.F("ad-image-view-model",{class:function(){var h,b=[((h=u().interaction)==null?0:h.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],N;((N=v.isGridViewEnabled)==null?0:N.call(v))&&b.push("ytwAdImageViewModelHostInGridView");return b.join(" ")},
el:_.VX(R,y),"on:touchend":Q},_.F("div",{class:"ytwAdImageViewModelHostImageContainer"},_.F(_.MR,{data:function(){var h;return{sources:u().imageSources,contentMode:(h=u().imageProperties)==null?void 0:h.contentMode}},
alt:function(){var h,b;return((h=u().interaction)==null?void 0:(b=h.accessibility)==null?void 0:b.label)||""},
targetHeight:v.targetHeight,targetWidth:v.targetWidth,preserveHeight:v.preserveHeight,preserveWidth:v.preserveWidth,useWidth:v.useWidth,style:function(){var h,b;return"vertical-align: bottom;"+(((h=u().background)==null?0:h.color)?"background-color:"+_.aH((b=u().background)==null?void 0:b.color)+";":"")},
className:function(){return v.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var h,b;return(b=(h=v.setDraggable)==null?void 0:h.call(v))!=null?b:void 0}})))},"ob");var kc5=_.Jd(function(R){var y=R.data,u=R.listenToTapEvent,v=function(){};
return _.F("ad-button-hover-overlay-view-model",{"on:click":_.nh(function(Q){if(_.f("enable_web_home_top_landscape_image_layout_legacy_click_command")){var M,K=(M=y().interaction)==null?void 0:M.onTap;K&&_.Ko(Q.currentTarget,"yt-navigate",{endpoint:_.Sb(K)})}}),
class:function(){var Q;return((Q=y().interaction)==null?0:Q.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.VX(_.vA({visibilityCallback:function(Q){var M,K=(M=y().interaction)==null?void 0:M.onFirstVisible;Q&&K&&_.zN(K)},
showOption:_.i2}),_.CA(function(){return y().interaction},void 0,function(){return!_.f("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(u==null?void 0:u())}))},function(){return _.f("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.F(_.mk,{data:function(){return y().button}},{adButtonViewModel:function(Q){return _.F(_.Ip,{data:Q.data,
customCommandResolver:v})}}):_.F(_.mk,{data:function(){return y().button}},{adButtonViewModel:_.Ip})}())},"pb");var N5;_.h6(_.Jd(function(R){var y=R.data;R=_.vA({visibilityCallback:function(h,b){if(h){var N;(h=(N=y().interaction)==null?void 0:N.onFirstVisible)&&_.zN(h);var T;if(N=(T=y().adLayoutData)==null?void 0:T.activeViewData)Tx(b,N),_.f("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&oy(b)})}else _.f("stop_av_measurement_on_detach")&&oy(b)},
showOption:_.i2,hideOption:Kw});var u=_.CA(function(){return y().interaction},void 0,function(){return!0}),v=_.V(_.In(!1,void 0,"K1MNM")),Q=v.next().value,M=v.next().value;
v=_.nh(function(){M(!0)});
var K=_.nh(function(){M(!1)});
return _.F("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.VX(R,oNU,u),"on:mouseenter":v,"on:mouseleave":K},_.F("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.P_({"max-width":function(){return _.f("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.F("div",{class:function(){var h;
a:{var b;switch((h=_.e(y().thumbnailImage,jeT))==null?void 0:(b=h.imageProperties)==null?void 0:b.renderingAspect){case "RENDERING_ASPECT_SQUARE":h="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":h="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}h=void 0}return h}},_.F(_.mk,{data:function(){return y().thumbnailImage}},{adImageViewModel:function(h){return _.F(_.lz,
{data:h.data,
listenToTapEvent:!0,setTouchEndHandler:_.f("enable_top_landscape_image_experiment_dom_id_web")})}})),_.F("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.F(_.w,{cond:function(){var h,b,N;
return(h=_.e(y().thumbnailImage,jeT))==null?void 0:(b=h.imageProperties)==null?void 0:(N=b.overlayIcon)==null?void 0:N.iconImage},
then:function(h){return _.F(_.MR,{data:h,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.F("div",{class:function(){return Q()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.F(_.mk,{data:function(){return y().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(h){return _.F(kc5,
{data:h.data,
listenToTapEvent:!0})}}))),_.F("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.F(_.mk,{data:function(){return y().feedAdMetadata}},{feedAdMetadataViewModel:function(h){return _.F(mjY,{data:h.data,
listenToTapEvent:!0,setTouchEndHandler:_.f("enable_top_landscape_image_experiment_dom_id_web")})}})))},"qb"),"compact-landscape-no-button-layout-view-model",{props:{data:_.vR}});_.h6(_.Jd(function(R){var y=R.data;R=_.vA({visibilityCallback:function(h,b){if(h){var N;(h=(N=y().interaction)==null?void 0:N.onFirstVisible)&&_.zN(h);var T;if(N=(T=y().adLayoutData)==null?void 0:T.activeViewData)Tx(b,N),_.f("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&oy(b)})}else _.f("stop_av_measurement_on_detach")&&oy(b)},
showOption:_.i2,hideOption:Kw});var u=_.Sp(_.aC),v=_.CA(function(){return y().interaction}),Q={},M={},K={};
return _.F("square-image-layout-view-model",{class:_.Oy("ytwSquareImageLayoutViewModelHost",(Q.ytwSquareImageLayoutViewModelHostColumn=u,Q)),el:_.VX(R,x9G,v)},_.F("div",{class:_.Oy("ytwSquareImageLayoutViewModelHostImage",(M.ytwSquareImageLayoutViewModelHostColumnImage=u,M))},function(){return _.F(_.mk,{data:function(){return y().adImage}},{adImageViewModel:function(h){return _.F(_.lz,{data:h.data,
isGridViewEnabled:u,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.F("div",{class:_.Oy("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(K.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=u,K))},_.F(_.mk,{data:function(){return y().feedAdMetadata}},{feedAdMetadataViewModel:mjY}),function(){return _.F(_.mk,{data:function(){return y().adButton}},{adButtonViewModel:function(h){var b={};
return _.F(_.Ip,{data:h.data,className:_.Oy((b.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,b.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=u,b))})}})}()))},"rb"),"square-image-layout-view-model",{props:{data:_.vR}});_.h6(_.Jd(function(R){var y=R.data;var u=R.noBottomMargin;var v=R.typographyBump;R=_.vA({visibilityCallback:function(x,B){if(x){var l;(x=(l=y().interaction)==null?void 0:l.onFirstVisible)&&_.zN(x);var Z;if(l=(Z=y().adLayoutData)==null?void 0:Z.activeViewData)Tx(B,l),_.f("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&oy(B)})}else _.f("stop_av_measurement_on_detach")&&oy(B)},
showOption:_.i2,hideOption:Kw});var Q=_.CA(function(){return y().interaction},void 0,function(){return _.f("enable_web_home_top_landscape_image_layout_level_click")}),M=function(){return y().interaction};
M!==void 0&&M!==null||_.pG(Error("Kh"));var K=function(){var x,B,l;return(x=_.e(y().thumbnailImage,jeT))==null?void 0:(B=x.background)==null?void 0:(l=B.backgroundImageSource)==null?void 0:l.imageSources};
M=_.V(_.In(!1,void 0,"pZPLOd"));var h=M.next().value,b=M.next().value;M=_.nh(function(){b(!0)});
var N=_.nh(function(){b(!1)}),T=function(){return h()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.F("top-landscape-image-layout-view-model",{class:function(){var x;return((x=y().interaction)==null?0:x.onTap)&&_.f("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.VX(R,B6U,Q),"on:mouseenter":M,"on:mouseleave":N},_.F("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.F(_.w,{cond:function(){return K()&&K().length>0},
then:function(){return _.F("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.P_({top:"0","background-image":function(){return"url("+String(K()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.F(_.w,{cond:function(){return!!y().adButtonHoverOverlay},
then:function(){return _.F("div",{class:T},_.F(_.mk,{data:function(){return y().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:kc5}))}}),_.F("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.F(_.mk,{data:function(){return y().thumbnailImage}},{adImageViewModel:function(x){return _.F(_.lz,{data:x.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.f("enable_web_home_top_landscape_image_layout_level_click")})}})),_.F("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.F(_.MR,{data:{sources:[{clientResource:{imageName:_.f("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.F("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.F(_.mk,{data:function(){return y().feedAdMetadata}},{feedAdMetadataViewModel:function(x){return _.F(mjY,{data:x.data,
noBottomMargin:function(){return u==null?void 0:u()},
listenToTapEvent:function(){return _.f("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return v==null?void 0:v()}})}})))},"sb"),"top-landscape-image-layout-view-model",{props:{data:_.vR,
noBottomMargin:_.vR,typographyBump:_.vR}});_.h6(_.Jd(function(R){var y=R.data;var u=R.typographyBump;return _.F("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.VX(_.vA({visibilityCallback:function(v,Q){if(v){var M;(v=(M=y().interaction)==null?void 0:M.onFirstVisible)&&_.zN(v);var K;M=(K=y().adLayoutData)==null?void 0:K.activeViewData;!_.f("ablate_desktop_short_dr_video_ads_components_ui_active_view")&&M&&Tx(Q,M)}},
showOption:_.i2,hideOption:Kw}))},_.F("div",null,_.F(_.mk,{data:function(){return y().videoLockup}},{lockupViewModel:function(v){return _.F(_.op,{data:v.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:u})}})))},"tb"),"video-display-button-group-layout-view-model",{props:{data:_.vR,
noBottomMargin:_.vR,typographyBump:_.vR}});_.h6(_.Jd(function(R){var y=R.data;var u=R.className;var v=R.typographyBump;return _.F("video-display-compact-button-group-layout-view-model",{el:_.VX(_.vA({visibilityCallback:function(Q,M){if(Q){var K;(Q=(K=y().interaction)==null?void 0:K.onFirstVisible)&&_.zN(Q);var h;(K=(h=y().adLayoutData)==null?void 0:h.activeViewData)&&Tx(M,K)}},
showOption:_.i2})),class:_.Oy("videoDisplayCompactButtonGroupLayoutViewModelHost",u)},_.F(_.mk,{data:function(){return y().videoLockup}},{lockupViewModel:function(Q){return _.F(_.op,{data:Q.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:v})}}))},"ub"),"video-display-compact-button-group-layout-view-model",{props:{data:_.vR,
className:_.vR,typographyBump:_.vR}});_.h6(_.Jd(function(R){var y=R.data;var u=R.className;var v=R.typographyBump;return _.F("video-display-compact-buttoned-layout-view-model",{el:_.VX(_.vA({visibilityCallback:function(Q,M){if(Q){var K;(Q=(K=y().interaction)==null?void 0:K.onFirstVisible)&&_.zN(Q);var h;(K=(h=y().adLayoutData)==null?void 0:h.activeViewData)&&Tx(M,K)}},
showOption:_.i2})),class:_.Oy("videoDisplayCompactButtonedLayoutViewModelHost",u)},_.F(_.mk,{data:function(){return y().videoLockup}},{lockupViewModel:function(Q){return _.F(_.op,{data:Q.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:v})}}))},"vb"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.vR,
className:_.vR,typographyBump:_.vR}});_.h6(_.Jd(function(R){var y=R.data;var u=R.className;var v=R.typographyBump;var Q=function(){return y().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},M=_.Sp(_.aC);
R=_.vA({visibilityCallback:function(N,T){if(N){var x=y();N=x.adLayoutData;var B;(x=(B=x.interaction)==null?void 0:B.onFirstVisible)&&_.zN(x);(B=N==null?void 0:N.activeViewData)&&Tx(T,B)}},
showOption:_.i2});var K=_.N8(function(){return{containerType:Q()&&M()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST"}},void 0,"BXJVJ"),h=_.N8(function(){return Q()&&M()?"":Q()?"168px":"50%"},void 0,"ikSkm"),b=_.N8(function(){return Q()&&M()?9999:void 0},void 0,"M8rucc");
return _.F("video-display-compact-layout-view-model",{el:_.VX(R),class:_.Oy("videoDisplayCompactLayoutViewModelHost",u)},_.F(_.mk,{data:function(){return y().videoLockup}},{lockupViewModel:function(N){return _.F(_.op,{data:N.data,
containerLayoutConfig:K,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:h,thumbnailTargetWidth:b,typographyBump:v})}}))},"wb"),"video-display-compact-layout-view-model",{props:{data:_.vR,
className:_.vR,typographyBump:_.vR}});_.h6(_.Jd(function(R){var y=R.data;var u=R.typographyBump;return _.F("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.VX(_.vA({visibilityCallback:function(v,Q){if(v){var M;(v=(M=y().interaction)==null?void 0:M.onFirstVisible)&&_.zN(v);var K;M=(K=y().adLayoutData)==null?void 0:K.activeViewData;!_.f("ablate_desktop_short_dr_video_ads_components_ui_active_view")&&M&&Tx(Q,M)}},
showOption:_.i2,hideOption:Kw}))},_.F("div",null,_.F(_.mk,{data:function(){return y().videoLockup}},{lockupViewModel:function(v){return _.F(_.op,{data:v.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:u})}})))},"xb"),"video-display-full-layout-view-model",{props:{data:_.vR,
noBottomMargin:_.vR,typographyBump:_.vR}});_.EGb=_.Jd(function(R){var y=R.data;R=_.sh("ad-card-badge-view-model");return _.F("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:R},_.F(_.w,{cond:function(){return y().imageBadge},
then:function(u){return _.F(_.MR,{data:u,alt:""})}}))},"yb");var $u5=_.Jd(function(R){var y=R.data;var u=R.customCommandResolver;return _.F("carousel-ad-card-image-view-model",{class:function(){var v;return((v=y().interaction)==null?0:v.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.VX(_.vA({visibilityCallback:function(v){var Q,M=(Q=y().interaction)==null?void 0:Q.onFirstVisible;v&&M&&_.zN(M)},
showOption:_.i2}),_.CA(function(){return y().interaction},u)),
"aria-label":function(){var v,Q;return(v=y().interaction)==null?void 0:(Q=v.accessibility)==null?void 0:Q.label}},_.F(_.mk,{data:function(){return y().adImage}},{adImageViewModel:function(v){return _.F(_.lz,{data:v.data,
customCommandResolver:u})}}),_.F("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.F(_.mk,{data:function(){return y().badge}},{adCardBadgeViewModel:_.EGb})),_.F(_.k6,{model:{color:4}}))},"zb");var qgi=_.Jd(function(R){var y=_.V(_.In(0,void 0,"o9Bzd")),u=y.next().value;y.next();var v=y.next().value,Q=_.V(_.In(!1,void 0,"KLdzYe"));y=Q.next().value;var M=Q.next().value,K;_.GF(function(){clearTimeout(K)});
Q=_.nh(function(){var N;((N=R.animate)==null?0:N.call(R))?(M(!0),K=setTimeout(function(){M(!1);h()},200)):h();
return!1});
var h=function(){v(function(N){return(N+R.numShownItems())%R.data().length})},b={};
return _.F("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.F("div",{class:_.Oy("ytwHorizontalCarouselCarouselWrapper")},_.F("div",{class:_.Oy("ytwHorizontalCarouselCarouselInnerWrapper",(b.ytwHorizontalCarouselAnimating=y,b))},_.F(_.eS,{each:R.data,keyBy:"INDEX"},function(N,T){return _.F("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.P_({"flex-basis":function(){return"calc((100% - (8px * "+(R.numShownItems()-1)+")) / "+R.numShownItems()+")"},
order:function(){var x=T-u();x<0&&(x+=R.data().length);return x}})},R.children(N,T))}))),_.F("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":Q},R.nextButton()))},"Ab");var Xli=_.Jd(function(R){var y=R.data;var u=R.customCommandResolver;var v=R.expansive;return _.F("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.VX(_.vA({visibilityCallback:function(Q){var M,K=(M=y().interaction)==null?void 0:M.onFirstVisible;Q&&K&&_.zN(K)},
showOption:_.i2}))},_.F(qgi,{data:function(){var Q;return((Q=y())==null?void 0:Q.carouselAdCards)||[]},
nextButton:function(){return _.F(_.mk,{data:function(){return y().nextButton}},{buttonViewModel:function(Q){var M=Q.data;
return _.F(_.fQ,{data:function(){return(v==null?0:v())?Object.assign({},M(),{style:"mono"}):M()},
className:_.f("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(Q){return _.F(_.mk,{data:Q},{carouselAdCardImageViewModel:function(M){return _.F($u5,{data:M.data,customCommandResolver:u})}})}))},"Bb");var mub=_.Jd(function(R){var y=R.data;var u=R.customCommandResolver;var v=R.className;var Q=R.buttonClassName;var M=R.animationEntityKey;var K=R.expansive;return _.F("carousel-button-view-model",{class:_.Oy("ytwCarouselButtonViewModelHost",v)},_.F(_.mk,{data:function(){return y().carousel}},{carouselAdCardCollectionViewModel:function(h){return _.F(Xli,{data:h.data,
customCommandResolver:u,expansive:K})}}),_.F(_.mk,{data:function(){return y().button}},{adButtonViewModel:function(h){var b=h.data;
return _.F(_.Ip,{data:function(){return(K==null?0:K())?Object.assign({},b(),{style:"AD_BUTTON_STYLE_TONAL"}):b()},
className:Q,customCommandResolver:u,animationEntityKey:M})}}))},"Cb");_.A1w=_.Jd(function(R){var y=R.data;R=R.className;var u=_.sh("pivot-button-view-model");_.rB(function(){var v;((v=y())==null?0:v.backgroundColor)&&u.value.setAttribute("data-background-color",String(y().backgroundColor))});
return _.F("pivot-button-view-model",{el:u,class:_.Oy("ytwPivotButtonViewModelHost",R)},_.F(_.zw,{command:function(){var v=y();v=v.onClickCommand?_.Sb(v.onClickCommand):v.contentDescription?_.JU(v.contentDescription):void 0;return v},
ariaLabel:function(){return y().contentDescription}},_.F(_.w,{cond:function(){return y().thumbnail},
then:function(v){return _.F(_.MR,{data:v,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.F(_.w,{cond:function(){return y().icon},
then:function(v){return _.F(_.W_,{icon:function(){return v().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Db");_.Du5=_.Jd(function(R){var y=R.data;var u=R.buttonShapeOverrideables;return _.F("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.F(_.mk,{data:function(){return y().buttonViewModels}},{buttonViewModel:function(v){return _.F(_.fQ,{data:v.data,
buttonOverrides:u})},
likeButtonViewModel:function(v){return _.F(_.AO,{data:v.data,buttonShapeOverrideables:u})},
dislikeButtonViewModel:function(v){return _.F(_.m2,{data:v.data,buttonShapeOverrideables:u})},
toggleButtonViewModel:function(v){return _.F(_.$1,{data:v.data,buttonShapeOverrides:u})}}))},"Eb");var plG=_.Jd(function(R){var y=R.avatar;var u=R.headline;var v=R.badge;var Q=R.description;var M=R.expansive;R={};return _.F("yt-ad-metadata-shape",{class:_.Oy("ytAdMetadataShapeHost",(R.ytAdMetadataShapeHostLarge=M,R))},_.F("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.F(_.w,{cond:y,then:function(K){return _.F(_.ErL,{data:function(){return(M==null?0:M())?Object.assign({},K(),{size:"AD_AVATAR_SIZE_MPLUS"}):K()}})}}),_.F("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.F(_.QM,{text:u,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.F(_.w,{cond:v,then:function(K){return _.F(_.No,{data:function(){return(M==null?0:M())?Object.assign({},K(),{style:"AD_BADGE_STYLE_STARK"}):K()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.F("h2",{class:"ytAdMetadataShapeHostDescription"},_.F(_.QM,{text:Q,
linkInheritColor:!0})))},"Fb");var tGY=_.Jd(function(R){var y=R.data;var u=R.onShow;var v=R.expansive;R=_.CA(function(){return y().interaction});
_.rB(function(){var M,K=(M=y().animatedRenderingConfig)==null?void 0:M.delayedSecondsToVisible;if(K){var h=setTimeout(u,K*1E3);_.GF(function(){clearTimeout(h)})}});
var Q={};return _.F("reels-ad-card-buttoned-view-model",{class:_.Oy(function(){var M;return((M=y().interaction)==null?0:M.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(Q.ytwReelsAdCardButtonedViewModelHostExpansive=v,Q)),
el:_.VX(R)},_.F(plG,{avatar:function(){return _.e(y().avatar,vji)},
headline:function(){return y().headline},
badge:function(){return _.e(y().adBadge,QeG)},
description:function(){return y().description},
expansive:v}),_.F(_.mk,{data:function(){return y().ctaButton}},{adButtonViewModel:function(M){var K=M.data;
return _.F(_.Ip,{data:function(){return(v==null?0:v())?Object.assign({},K(),{style:"AD_BUTTON_STYLE_FILLED"}):K()}})}}))},"Gb");var c1b=_.Jd(function(R){var y=R.data;R=R.expansive;var u=_.f("web_ad_metadata_clickable")?_.CA(function(){return y().interaction},void 0,function(){return _.f("web_ad_metadata_clickable")}):void 0,v={};
v=_.Zl("ytwReelsAdMetadataViewModelHost",(v.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.f("web_ad_metadata_clickable"),v));return _.F("reels-ad-metadata-view-model",{class:v,el:_.VX(u)},_.F(plG,{avatar:function(){return _.e(y().avatar,vji)},
headline:function(){return y().headline},
badge:function(){return _.e(y().adBadge,QeG)},
description:function(){return y().description},
expansive:R}))},"Hb");var a_c={iconPosition:"icon-with-label",size:"L"},Sg8=_.Jd(function(R){var y=R.data;var u=R.overlayDensity;R=_.sh("reels-player-overlay-layout-view-model");var v=_.Qj(u,0),Q=function(){var x;return(x=y().reelsAdCardButtonedEntityKey)!=null?x:""},M=function(){return Q()+"/ad_button"},K=_.nA(roE,Q),h=function(){var x,B;
return(B=(x=K())==null?void 0:x.value)!=null?B:!1},b=_.Sp(f9z),N=function(){return Object.assign({},a_c,(b()||v()===2)&&{style:"overlay-dark"})};
u={};var T={};return _.F("reels-player-overlay-layout-view-model",{class:_.Oy("ytwReelsPlayerOverlayLayoutViewModelHost",(u.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!y().extension},u.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},u)),
"overlay-density":function(){return String(v())},
el:R},_.F("div",{class:_.Oy("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(T.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},T))},_.F("div",{"aria-hidden":function(){return h()},
class:_.Oy("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return h()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.P_({"transition-duration":function(){return ZnU(y())}})},_.F(_.mk,{data:function(){return y().adMetadata}},{reelsAdMetadataViewModel:function(x){return _.F(c1b,{data:x.data,
expansive:function(){return v()===1}})}}),_.F(_.w,{cond:function(){return y().extension},
then:function(x){return _.F("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.F(_.mk,{data:x},{adButtonViewModel:function(B){return _.F(_.Ip,{data:B.data,animationEntityKey:M,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(B){return _.F(mub,{data:B.data,animationEntityKey:M,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return v()===1}})}}))}})),_.F("div",{"aria-hidden":function(){return!h()},
class:_.Oy("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return h()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.P_({"transition-duration":function(){return ZnU(y())}})},_.F(_.mk,{data:function(){return y().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(x){return _.F(tGY,{data:x.data,
onShow:function(){_.vy(_.Gw("booleanEntity",Q(),{key:Q(),value:!0}))},
expansive:function(){return v()===1}})}}))),_.F("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.F(_.mk,{data:function(){return y().actions}},{reelActionBarViewModel:function(x){return _.F(_.Du5,{data:x.data,
buttonShapeOverrideables:N})}}),_.F(_.mk,{data:function(){return y().menu}},{buttonViewModel:function(x){return _.F(_.fQ,{data:x.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},N(),{type:"tonal"})}})}}),_.F(_.mk,{data:function(){return y().pivotButton}},{pivotButtonViewModel:function(x){return _.F(_.A1w,{data:x.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Ib");_.h6(Sg8,"reels-player-overlay-layout-view-model",{props:{data:_.vR,overlayDensity:_.vR}});var OK=function(){var R=_.W.apply(this,arguments)||this;R.noBottomMargin=!1;R.overlayDensity=0;return R};
_.O(OK,_.W);_.J=OK.prototype;
_.J.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.f("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]]"}}}}}};
_.J.ready=function(){var R=this;bqv(function(){R.isAttached&&Iy(R.JSC$15452_storedAdSlotMetadata,R.JSC$15452_storedAdLayoutMetadata,R.adSlotMetadata,R.adLayoutMetadata)&&e7(BS(),R.JSC$15452_storedAdSlotMetadata,R.JSC$15452_storedAdLayoutMetadata)})};
_.J.attached=function(){Iy(this.JSC$15452_storedAdSlotMetadata,this.JSC$15452_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Uu5(BS(),this.JSC$15452_storedAdSlotMetadata,this.JSC$15452_storedAdLayoutMetadata)};
_.J.detached=function(){Iy(this.JSC$15452_storedAdSlotMetadata,this.JSC$15452_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&e7(BS(),this.JSC$15452_storedAdSlotMetadata,this.JSC$15452_storedAdLayoutMetadata)};
_.J.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.J.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15452_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15452_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15452_storedAdLayoutMetadata!==void 0&&this.JSC$15452_storedAdSlotMetadata!==void 0&&e7(BS(),this.JSC$15452_storedAdSlotMetadata,this.JSC$15452_storedAdLayoutMetadata),Uu5(BS(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15452_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15452_storedAdSlotMetadata=this.adSlotMetadata)};
_.RR.Object.defineProperties(OK.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.adLayoutMetadata}}});
OK.prototype.onAdMetadataChanged=OK.prototype.onAdMetadataChanged;OK.prototype.onTypographyBumpChanged=OK.prototype.onTypographyBumpChanged;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],OK.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],OK.prototype,"rendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],OK.prototype,"ytComponentBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],OK.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],OK.prototype,"noBottomMargin",void 0);_.A([_.r(),_.p("design:type",Object)],OK.prototype,"overlayDensity",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],OK.prototype,"typographyBump",void 0);_.A([_.G("data.adLayoutMetadata"),_.p("design:type",Object),_.p("design:paramtypes",[])],OK.prototype,"adLayoutMetadata",null);_.A([_.r(),_.p("design:type",Object)],OK.prototype,"adSlotMetadata",void 0);
_.A([_.O7("ytd-video-display-full-buttoned-and-button-group-renderer"),_.p("design:type",HTMLElement)],OK.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.A([_.e0("typographyBump"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],OK.prototype,"onTypographyBumpChanged",null);_.A([_.e0("adLayoutMetadata","adSlotMetadata"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],OK.prototype,"onAdMetadataChanged",null);
_.A([_.q({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],OK);
_.m(OK,"ytd-in-feed-ad-layout-renderer",function(){if(ENT!==void 0)return ENT;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return ENT=R},
{mode:_.TN("kevlar_poly_si_batch_j028")?1:2});var Ygc;var LzG;_.h6(_.No,"ad-badge-view-model",{props:{data:_.vR,hasDot:_.vR,customCommandResolver:_.IC,adRenderingContextType:_.IC}});var ZP=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return R};
_.O(ZP,_.W);_.J=ZP.prototype;_.J.computeHasLiveDescription=function(R){return!(R==null||!R.liveDescription)};
_.J.computeHasByline=function(R){return!(R==null||!R.byline)};
_.J.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]"}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.J.onYtToggleButton=function(R){var y,u=(y=this.data)==null?void 0:y.videoReminderEntityKey;u&&this.ytdReduxBehavior.dispatch(_.Gw("upcomingEventReminderStateEntity",u,{key:u,state:R.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.J.attached=function(){this.updateChannelBanner()};
_.J.dataChanged=function(){this.updateChannelBanner()};
_.J.videoReminderStateChanged=function(){var R;this.videoReminderState&&_.e((R=this.data)==null?void 0:R.cta,_.SE)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.J.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var R=_.b0(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);R&&(R.startsWith("//")&&(R="https:"+R),this.hostElement.classList.add("channel-banner"),_.oX(this.hostElement,{"--ytvmh-channel-banner":"url("+R+")"}))}else _.f("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.J.onPlayerReady=function(){this.onIronResize()};
_.J.maybeFlushDebouncer=function(){_.f("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(R){var y;R=(y=R.getElementsByTagName("yt-attributed-string"))==null?void 0:y[0];ZsE(R==null?void 0:R.polymerController)})};
_.J.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var R=_.hw(this.hostElement).querySelector("#live-description"),y;R&&((y=this.data)==null?0:y.shortLiveDescription)&&R.clientWidth<R.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
ZP.prototype.onIronResize=ZP.prototype.onIronResize;ZP.prototype.videoReminderStateChanged=ZP.prototype.videoReminderStateChanged;ZP.prototype.dataChanged=ZP.prototype.dataChanged;ZP.prototype.onYtToggleButton=ZP.prototype.onYtToggleButton;_.A([_.n(_.qv),_.p("design:type",Object)],ZP.prototype,"ironResizableBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],ZP.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ZP.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],ZP.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],ZP.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ZP.prototype,"data",void 0);_.A([_.r({selectorArgs:["data.videoReminderEntityKey"],selector:qGv}),_.p("design:type",Object)],ZP.prototype,"videoReminderState",void 0);
_.A([_.r({reflectToAttribute:!0,value:_.f("web_modern_buttons")}),_.p("design:type",Boolean)],ZP.prototype,"rounded",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.p("design:type",Boolean)],ZP.prototype,"hasLiveDescription",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.p("design:type",Boolean)],ZP.prototype,"hasByline",void 0);
_.A([_.r({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.p("design:type",String)],ZP.prototype,"adRenderingContextType",void 0);_.A([_.r({reflectToAttribute:!0,value:_.f("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.p("design:type",Boolean)],ZP.prototype,"resizableAdBannerSafariFix",void 0);_.A([_.r({reflectToAttribute:!0,value:_.f("align_three_dot_menu_with_title_description")}),_.p("design:type",Boolean)],ZP.prototype,"menuFix",void 0);
_.A([_.ZV("yt-formatted-string"),_.p("design:type",Array)],ZP.prototype,"formattedStrings",void 0);_.A([_.O7("#cta-button"),_.p("design:type",HTMLElement)],ZP.prototype,"ctaButton",void 0);_.A([_.fu("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],ZP.prototype,"onYtToggleButton",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ZP.prototype,"dataChanged",null);
_.A([_.e0("videoReminderState"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ZP.prototype,"videoReminderStateChanged",null);_.A([_.fu("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ZP.prototype,"onIronResize",null);_.A([_.q({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],ZP);
_.m(ZP,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(LzG!==void 0)return LzG;var R=document.createElement("template");_.H(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      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n    </div>\n  </div>\n</div>\n');
R.content.insertBefore(_.t().content.cloneNode(!0),R.content.firstChild);return LzG=R},{mode:1});var s4Y;var HS=function(){var R=_.W.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};
_.O(HS,_.W);_.J=HS.prototype;_.J.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.J.onExpandedChanged=function(){this.expanded&&_.h_(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.J.onMouseOver=function(){this.maybeExpand()};
_.J.onTap=function(){this.maybeExpand()};
_.J.onExpandableTileExpanding=function(R){R!==this&&(this.expanded=!1)};
_.J.onExpandableTileLockAndCollapse=function(R){this.isLocked=!0;R!==this&&(this.expanded=!1)};
_.J.onExpandableTileUnlock=function(){this.isLocked=!1};
HS.prototype.onTap=HS.prototype.onTap;HS.prototype.onMouseOver=HS.prototype.onMouseOver;HS.prototype.onExpandedChanged=HS.prototype.onExpandedChanged;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],HS.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],HS.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],HS.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],HS.prototype,"expanded",void 0);_.A([_.GJ("expanded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],HS.prototype,"onExpandedChanged",null);_.A([_.fu("mouseover"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],HS.prototype,"onMouseOver",null);_.A([_.fu("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],HS.prototype,"onTap",null);
_.A([_.q({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],HS);
_.m(HS,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(s4Y!==void 0)return s4Y;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return s4Y=R},{mode:1});var zK5;var nE=function(){var R=_.W.apply(this,arguments)||this;R.buttonOverrides={style:"overlay"};R.useYtdPlayer=_.f("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$15465_playerManager=null;R.JSC$15465_mastheadCounter=new RCg;return R};
_.O(nE,_.W);_.J=nE.prototype;_.J.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"}}}};
_.J.created=function(){this.JSC$15465_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15465_playerManager=new $X)};
_.J.ready=function(){var R=this;this.JSC$15465_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var y=_.hw(this.hostElement).querySelector("#player");this.useYtdPlayer?y.style.display="none":(this.ytdPlayer.style.display="none",CZ5(this.JSC$15465_playerManager,y,function(){R.onPlaybackEnded()}),_.hw(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var u;
((u=R.data)==null?0:u.navigationEndpoint)&&_.Ko(R.hostElement,"yt-navigate",{endpoint:R.data.navigationEndpoint})}))};
_.J.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15465_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.J.attached=function(){var R=this;_.s7(function(){R.maybePlayVideo()})};
_.J.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$15465_playerManager.playVideo(),this.getPlayerPromise().then(function(){R.JSC$15465_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.J.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15465_playerManager.stopVideo()};
_.J.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var R,y={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(y);this.setupYtdPlayer()}else yMV(this.JSC$15465_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(RQg(this.JSC$15465_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.J.getPlayerPromise=function(){return this.JSC$15465_playerManager.getPlayerPromise()};
_.J.onYtToggleButton=function(R){this.useYtdPlayer?this.toggleMute(R.detail.toggled):R.detail.toggled?this.JSC$15465_playerManager.mute():this.JSC$15465_playerManager.unMute()};
_.J.onYtNavigate=function(R){var y=NoL(R.detail.endpoint),u=Toz(this.data.clickthroughReportingData);y&&u&&(R.detail.endpoint.watchEndpoint?R.detail.tempData=u:_.uh(y,u,30))};
_.J.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.J.onExpandedChanged=function(){this.expanded?(_.h_(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.J.onMouseOver=function(){this.maybeExpand()};
_.J.onTap=function(){this.maybeExpand()};
_.J.onExpandableTileExpanding=function(R){R!==this&&(this.stopVideo(),this.expanded=!1)};
_.J.onExpandableTileLockAndCollapse=function(R){R!==this&&(this.isLocked=!0,this.expanded=!1)};
_.J.onExpandableTileUnlock=function(){this.isLocked=!1};
_.J.lockAndCollapseExpandableTiles=function(){_.Ik(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.J.unlockExpandableTiles=function(){_.Ik(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.J.setupYtdPlayer=function(){var R=this,y;return _.I(function(u){if(u.nextAddress==1)return u.yield(R.ytdPlayer.getPlayerPromise(),2);y=u.yieldResult;y.addEventListener("onStateChange",function(v){R.onPlayerStateChange(v)});
y.addEventListener("onCueRangeExit",function(v){R.onCueRangeExit(v)});
_.f$(u)})};
_.J.onPlayerStateChange=function(R){if(R===1&&(R=this.ytdPlayer.getPlayer())){var y=R.getCurrentTime(),u,v,Q=y+((v=(u=this.data)==null?void 0:u.playbackDurationMs)!=null?v:0)/1E3;R.addCueRange("playback",y,Q);this.JSC$15465_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.J.onCueRangeExit=function(R){R==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.J.toggleMute=function(R){var y=this,u;return _.I(function(v){if(v.nextAddress==1)return v.yield(y.ytdPlayer.getPlayerPromise(),2);u=v.yieldResult;R?u.mute():u.unMute();_.f$(v)})};
nE.prototype.onTap=nE.prototype.onTap;nE.prototype.onMouseOver=nE.prototype.onMouseOver;nE.prototype.onExpandedChanged=nE.prototype.onExpandedChanged;nE.prototype.onYtNavigate=nE.prototype.onYtNavigate;nE.prototype.onYtToggleButton=nE.prototype.onYtToggleButton;nE.prototype.dataChanged=nE.prototype.dataChanged;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],nE.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],nE.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],nE.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],nE.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],nE.prototype,"expanded",void 0);_.A([_.r(),_.p("design:type",Object)],nE.prototype,"buttonOverrides",void 0);
_.A([_.r(),_.p("design:type",Object)],nE.prototype,"useYtdPlayer",void 0);_.A([_.O7("#ytd-player"),_.p("design:type",Object)],nE.prototype,"ytdPlayer",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],nE.prototype,"dataChanged",null);_.A([_.fu("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],nE.prototype,"onYtToggleButton",null);
_.A([_.fu("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],nE.prototype,"onYtNavigate",null);_.A([_.GJ("expanded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],nE.prototype,"onExpandedChanged",null);_.A([_.fu("mouseover"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],nE.prototype,"onMouseOver",null);
_.A([_.fu("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],nE.prototype,"onTap",null);_.A([_.q({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],nE);
_.m(nE,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(zK5!==void 0)return zK5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return zK5=R},{mode:1});var gGg;var GH=function(){return _.W.apply(this,arguments)||this};
_.O(GH,_.W);GH.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
GH.prototype.onShow=function(){var R=_.hw(this.hostElement).querySelector("#live-description"),y;R&&((y=this.data)==null?0:y.shortLiveDescription)&&R.clientWidth<R.scrollWidth&&this.hostElement.classList.add("short-live-description")};
GH.prototype.onYtToggleButton=function(R){var y,u=(y=this.data)==null?void 0:y.videoReminderEntityKey;u&&this.ytdReduxBehavior.dispatch(_.Gw("upcomingEventReminderStateEntity",u,{key:u,state:R.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
GH.prototype.videoReminderStateChanged=function(){var R;this.videoReminderState&&_.e((R=this.data)==null?void 0:R.cta,_.SE)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
GH.prototype.videoReminderStateChanged=GH.prototype.videoReminderStateChanged;GH.prototype.onYtToggleButton=GH.prototype.onYtToggleButton;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],GH.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],GH.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],GH.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],GH.prototype,"data",void 0);
_.A([_.r({selectorArgs:["data.videoReminderEntityKey"],selector:qGv}),_.p("design:type",Object)],GH.prototype,"videoReminderState",void 0);_.A([_.fu("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],GH.prototype,"onYtToggleButton",null);_.A([_.e0("videoReminderState"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],GH.prototype,"videoReminderStateChanged",null);
_.A([_.q({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],GH);
_.m(GH,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(gGg!==void 0)return gGg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return gGg=R},{mode:_.TN("kevlar_poly_si_batch_j065")?1:2});var CMT;var rJ=function(){var R=_.W.apply(this,arguments)||this;R.useYtdPlayer=_.f("use_ytd_player_for_desktop_masthead");R.buttonOverrides={style:"overlay"};R.JSC$15473_playerManager=null;R.JSC$15473_mastheadCounter=new RCg;R.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return R};
_.O(rJ,_.W);_.J=rJ.prototype;_.J.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"}}}};
_.J.created=function(){this.JSC$15473_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15473_playerManager=new $X)};
_.J.ready=function(){var R=this;this.JSC$15473_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var y;(y=this.embeddedPlayer)==null||y.remove()}else{var u;(u=this.ytdPlayer)==null||u.remove();CZ5(this.JSC$15473_playerManager,this.embeddedPlayer,function(){R.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){R.data&&R.data.navigationEndpoint&&_.Ko(R.hostElement,"yt-navigate",{endpoint:R.data.navigationEndpoint})})}};
_.J.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15473_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.J.dataChanged=function(){var R=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var y=!this.data.disableAutoPlayback,u,v={autoplay:y,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((u=this.data.playbackStartMs)!=null?u:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(y?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(v);this.setupYtdPlayer()}else yMV(this.JSC$15473_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(RQg(this.JSC$15473_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15473_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.Ik(R.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");R.JSC$15473_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.J.getPlayerPromise=function(){return this.JSC$15473_playerManager.getPlayerPromise()};
_.J.onYtToggleButton=function(R){this.useYtdPlayer?this.toggleMute(R.detail.toggled):R.detail.toggled?this.JSC$15473_playerManager.mute():this.JSC$15473_playerManager.unMute()};
_.J.onYtNavigate=function(R){var y=NoL(R.detail.endpoint),u=Toz(this.data.clickthroughReportingData);y&&u&&(R.detail.endpoint.watchEndpoint?R.detail.tempData=u:_.uh(y,u,30))};
_.J.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15473_playerManager.stopVideo()};
_.J.setupYtdPlayer=function(){var R=this,y;return _.I(function(u){if(u.nextAddress==1)return u.yield(R.ytdPlayer.getPlayerPromise(),2);y=u.yieldResult;y.addEventListener("onStateChange",function(v){R.onPlayerStateChange(v)});
y.addEventListener("onCueRangeExit",function(v){R.onCueRangeExit(v)});
_.f$(u)})};
_.J.onPlayerStateChange=function(R){if(R===1&&(R=this.ytdPlayer.getPlayer())){var y=R.getCurrentTime(),u,v,Q=y+((v=(u=this.data)==null?void 0:u.playbackDurationMs)!=null?v:0)/1E3;R.addCueRange("playback",y,Q);_.Ik(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15473_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.J.onCueRangeExit=function(R){R==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.J.toggleMute=function(R){var y=this,u;return _.I(function(v){if(v.nextAddress==1)return v.yield(y.ytdPlayer.getPlayerPromise(),2);u=v.yieldResult;R?u.mute():u.unMute();_.f$(v)})};
_.RR.Object.defineProperties(rJ.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var R,y;if(!((R=this.data)==null?0:(y=R.accessibilityData)==null?0:y.label))return"Ad primary link";var u,v;return _.fo("AD_TITLE",{title:(u=this.data)==null?void 0:(v=u.accessibilityData)==null?void 0:v.label})}}});
rJ.prototype.onYtMastheadHidden=rJ.prototype.onYtMastheadHidden;rJ.prototype.onYtNavigate=rJ.prototype.onYtNavigate;rJ.prototype.onYtToggleButton=rJ.prototype.onYtToggleButton;rJ.prototype.dataChanged=rJ.prototype.dataChanged;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],rJ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],rJ.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],rJ.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],rJ.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],rJ.prototype,"useYtdPlayer",void 0);_.A([_.O7("ytd-toggle-button-renderer"),_.p("design:type",Object)],rJ.prototype,"muteButton",void 0);_.A([_.r(),_.p("design:type",Object)],rJ.prototype,"buttonOverrides",void 0);
_.A([_.G("data.accessibilityData.label"),_.p("design:type",String),_.p("design:paramtypes",[])],rJ.prototype,"titleAriaLabel",null);_.A([_.O7("#replay-button"),_.p("design:type",Object)],rJ.prototype,"replayButton",void 0);_.A([_.O7("#player-container"),_.p("design:type",Object)],rJ.prototype,"playerContainer",void 0);_.A([_.O7("#player"),_.p("design:type",Object)],rJ.prototype,"embeddedPlayer",void 0);_.A([_.O7("#ytd-player"),_.p("design:type",Object)],rJ.prototype,"ytdPlayer",void 0);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],rJ.prototype,"dataChanged",null);_.A([_.fu("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],rJ.prototype,"onYtToggleButton",null);_.A([_.fu("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],rJ.prototype,"onYtNavigate",null);
_.A([_.fu("yt-masthead-hidden"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],rJ.prototype,"onYtMastheadHidden",null);_.A([_.q({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],rJ);
_.m(rJ,"ytd-video-masthead-ad-primary-video-renderer",function(){if(CMT!==void 0)return CMT;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return CMT=R},{mode:2});var ROw;var EK=function(){var R=_.W.apply(this,arguments)||this;R.collapsed=!1;R.impressionResolver=_.uD();R.JSC$15477_activeViewMeasurementDataResolver=_.uD();R.actionMap={"yt-mute-ad-action":"handleMuteAd"};return R};
_.O(EK,_.W);_.J=EK.prototype;_.J.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"}}}};
_.J.ready=function(){var R=this;_.hw(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){R.expandAd()});
this.hostElement.addEventListener("yt-action",function(y){if(y.detail.actionName==="yt-service-request"){var u=y.detail.args[1];u.videoMastheadAdMuteCommand&&(R.collapseAd(u.videoMastheadAdMuteCommand.encryptedMastheadId),y.stopPropagation())}})};
_.J.attached=function(){var R=this;_.s7(function(){R.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(y){if(!R.collapsed){y=_.V(y);for(var u=y.next();!u.done;u=y.next())u=u.value,p9(u.baseUrl,u.attributionSrcMode);R.data.impressionCommand=void 0}});
this.JSC$15477_activeViewMeasurementDataResolver.promise.then(function(y){R.ytdActiveViewBehavior.enableActiveViewMeasurement(y,15)});
_.f("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&R.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.J.dataChanged=function(){var R;((R=this.data.impressionCommand)==null?0:R.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var y;((y=this.data)==null?0:y.activeView)&&this.JSC$15477_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))};
_.J.computeWidescreen=function(R){var y;return!!(R&&((y=_.e(R,g$V))==null?0:y.isWidescreen))};
_.J.computeExpandable=function(R){return!!(R&&R.length>0)};
_.J.onIronResize=function(){if(this.expandable){var R=_.hw(this.hostElement).querySelector("#expandable-tile-container :first-child");R&&!R.expanded&&(R.expanded=!0)}};
_.J.handleMuteAd=function(){this.collapseAd(null)};
_.J.restoreCollapsedState=function(R){this.collapsed=_.O9().get("HIDDEN_MASTHEAD_ID")===R};
_.J.collapseAd=function(R){if(R){var y=_.O9();y.set("HIDDEN_MASTHEAD_ID",R);y.save()}(R=_.hw(this.hostElement).querySelector("#video"))&&_.Ko(R,"yt-masthead-hidden");this.collapsed=!0};
_.J.expandAd=function(){var R=_.O9();R.set("HIDDEN_MASTHEAD_ID",!1);R.save();location.reload()};
_.J.detached=function(){_.f("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
EK.prototype.onIronResize=EK.prototype.onIronResize;EK.prototype.dataChanged=EK.prototype.dataChanged;_.A([_.n(_.qv),_.p("design:type",Object)],EK.prototype,"ironResizableBehavior",void 0);_.A([_.n(DY),_.p("design:type",Object)],EK.prototype,"ytdActiveViewBehavior",void 0);_.A([_.n(_.Sc),_.p("design:type",Object)],EK.prototype,"ytdGridStateAwareBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],EK.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],EK.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],EK.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],EK.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.p("design:type",Boolean)],EK.prototype,"widescreen",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.p("design:type",Boolean)],EK.prototype,"expandable",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],EK.prototype,"collapsed",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],EK.prototype,"dataChanged",null);
_.A([_.fu("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],EK.prototype,"onIronResize",null);_.A([_.q({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],EK);
_.m(EK,"ytd-video-masthead-ad-v3-renderer",function(){if(ROw!==void 0)return ROw;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return ROw=R},{mode:2});var $Z=function(){return _.W.apply(this,arguments)||this};
_.O($Z,_.W);_.J=$Z.prototype;_.J.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.J.ready=function(){var R=this;bqv(function(){R.isAttached&&Iy(R.JSC$15482_storedAdSlotMetadata,R.JSC$15482_storedAdLayoutMetadata,R.adSlotMetadata,R.adLayoutMetadata)&&e7(BS(),R.JSC$15482_storedAdSlotMetadata,R.JSC$15482_storedAdLayoutMetadata)})};
_.J.attached=function(){Iy(this.JSC$15482_storedAdSlotMetadata,this.JSC$15482_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Uu5(BS(),this.JSC$15482_storedAdSlotMetadata,this.JSC$15482_storedAdLayoutMetadata)};
_.J.detached=function(){Iy(this.JSC$15482_storedAdSlotMetadata,this.JSC$15482_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&e7(BS(),this.JSC$15482_storedAdSlotMetadata,this.JSC$15482_storedAdLayoutMetadata)};
_.J.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15482_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15482_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15482_storedAdLayoutMetadata!==void 0&&this.JSC$15482_storedAdSlotMetadata!==void 0&&e7(BS(),this.JSC$15482_storedAdSlotMetadata,this.JSC$15482_storedAdLayoutMetadata),Uu5(BS(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15482_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15482_storedAdSlotMetadata=this.adSlotMetadata)};
_.RR.Object.defineProperties($Z.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.adLayoutMetadata}}});
$Z.prototype.onAdMetadataChanged=$Z.prototype.onAdMetadataChanged;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],$Z.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],$Z.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],$Z.prototype,"data",void 0);_.A([_.G("data.adLayoutMetadata"),_.p("design:type",Object),_.p("design:paramtypes",[])],$Z.prototype,"adLayoutMetadata",null);
_.A([_.r(),_.p("design:type",Object)],$Z.prototype,"adSlotMetadata",void 0);_.A([_.e0("adLayoutMetadata","adSlotMetadata"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$Z.prototype,"onAdMetadataChanged",null);_.A([_.q({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],$Z);
_.m($Z,"ytd-page-top-ad-layout-renderer",function(){if(Ygc!==void 0)return Ygc;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return Ygc=
R},{mode:_.TN("kevlar_poly_si_batch_j070")?1:2});var ybi;var qM=function(){var R=_.W.apply(this,arguments)||this;R.noBottomMargin=!1;R.overlayDensity=0;R.typographyBump=!1;return R};
_.O(qM,_.W);_.J=qM.prototype;
_.J.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]]"}}}}}};
_.J.ready=function(){var R=this;bqv(function(){R.isAttached&&R.adSlotMetadata&&duT(BS(),R.adSlotMetadata)})};
_.J.attached=function(){if(this.adSlotMetadata){var R;if(this.adSlotMetadata===((R=this.data)==null?void 0:R.adSlotMetadata))Wz5(BS(),this.adSlotMetadata);else{var y;_.kT(Error("Lh`"+this.adSlotMetadata+"`"+((y=this.data)==null?void 0:y.adSlotMetadata)))}}};
_.J.detached=function(){this.adSlotMetadata&&duT(BS(),this.adSlotMetadata)};
_.J.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.J.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&duT(BS(),this.adSlotMetadata),Wz5(BS(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.RR.Object.defineProperties(qM.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var R,y,u=_.e((R=this.data)==null?void 0:(y=R.fulfillmentContent)==null?void 0:y.fulfilledLayout,_.REL),v;return(R=(v=_.e(u==null?void 0:u.renderingContent,Cj8))==null?void 0:v.layout)?R.toLowerCase().replace(/_/g,"-"):""}}});
qM.prototype.onAdSlotMetadataChanged=qM.prototype.onAdSlotMetadataChanged;qM.prototype.onTypographyBumpChanged=qM.prototype.onTypographyBumpChanged;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],qM.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],qM.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],qM.prototype,"rendererBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],qM.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],qM.prototype,"noBottomMargin",void 0);_.A([_.r(),_.p("design:type",Object)],qM.prototype,"overlayDensity",void 0);_.A([_.r(),_.p("design:type",Object)],qM.prototype,"typographyBump",void 0);_.A([_.O7("ytd-in-feed-ad-layout-renderer"),_.p("design:type",HTMLElement)],qM.prototype,"inFeedAdLayoutRenderer",void 0);
_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",String),_.p("design:paramtypes",[])],qM.prototype,"layout",null);_.A([_.e0("typographyBump"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qM.prototype,"onTypographyBumpChanged",null);_.A([_.e0("data.adSlotMetadata"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qM.prototype,"onAdSlotMetadataChanged",null);
_.A([_.q({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],qM);
_.m(qM,"ytd-ad-slot-renderer",function(){if(ybi!==void 0)return ybi;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return ybi=R},{mode:_.TN("kevlar_poly_si_batch_j077")?
1:2});var u3T;var XB=function(){return _.W.apply(this,arguments)||this};
_.O(XB,_.W);_.J=XB.prototype;_.J.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"}}}};
_.J.maybeComputeHref=function(R){return _.f("enable_handle_watch_endpoint_click_for_vdc")?null:this.ytComponentBehavior.computeOptionalHref_(R)};
_.J.onTap=function(){_.f("enable_handle_watch_endpoint_click_for_vdc")||this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&jUv(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.J.onThumbnailContainerClick=function(R){this.onClick(R)};
_.J.onClick=function(R){if(_.f("enable_handle_watch_endpoint_click_for_vdc")){var y,u=(y=this.data)==null?void 0:y.navigationEndpoint;u&&_.e(u,_.zM)&&(this.ytSparklesClickLocationBehavior.handleClick(u,R,!1),R.stopPropagation())}};
_.J.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var R=_.V(this.data.impressionUrls),y=R.next();!y.done;y=R.next())y=y.value,FNO(y,NZz(y));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);_.f("enable_handle_watch_endpoint_click_for_vdc")&&(this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",XB.JSC$15490_DEFAULT_CLICK_LOCATION_BEHAVIOR,XB.JSC$15490_CLICK_LOCATION_ID_MAP),this.thumbnail&&(R=this.thumbnail.getElementsByTagName("a"),
R.length>0&&(R=R.namedItem("thumbnail"))&&R.removeAttribute("href")))}};
_.J.attached=function(){var R=this;_.f("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&R.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.J.detached=function(){_.f("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.RR.Object.defineProperties(XB.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.f("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.f("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
XB.prototype.dataChanged=XB.prototype.dataChanged;XB.prototype.onTap=XB.prototype.onTap;XB.JSC$15490_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
XB.JSC$15490_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([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],XB.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],XB.prototype,"ytRendererBehavior",void 0);_.A([_.n(DY),_.p("design:type",Object)],XB.prototype,"ytdActiveViewBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],XB.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],XB.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.il.YtSparklesClickLocationBehavior),_.p("design:type",Object)],XB.prototype,"ytSparklesClickLocationBehavior",void 0);
_.A([_.r({selector:_.aC}),_.p("design:type",Object)],XB.prototype,"isGridViewEnabled",void 0);_.A([_.G("isGridViewEnabled"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],XB.prototype,"watchFeedBigThumbs",null);_.A([_.G("isGridViewEnabled"),_.r({reflectToAttribute:!0}),_.p("design:type",String),_.p("design:paramtypes",[])],XB.prototype,"thumbnailWidth",null);_.A([_.r(),_.p("design:type",Object)],XB.prototype,"data",void 0);
_.A([_.O7("ytd-thumbnail"),_.p("design:type",HTMLElement)],XB.prototype,"thumbnail",void 0);_.A([_.fu("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],XB.prototype,"onTap",null);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],XB.prototype,"dataChanged",null);_.A([_.q({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],XB);
_.m(XB,"ytd-compact-promoted-video-renderer",function(){if(u3T!==void 0)return u3T;var R=document.createElement("template");_.H(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<div id="main-container" class="style-scope ytd-compact-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[thumbnailWidth]]" on-click="onThumbnailContainerClick" class="style-scope ytd-compact-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-promoted-video-renderer">\n    <a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-compact-promoted-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n        </ytd-video-meta-block>\n        <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n          <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n        </div>\n      </div>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n  </div>\n</div>');
R.content.insertBefore(_.t().content.cloneNode(!0),R.content.firstChild);return u3T=R},{mode:1});var v4T;_.Dl("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var mX=function(){return _.W.apply(this,arguments)||this};
_.O(mX,_.W);mX.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],mX.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],mX.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],mX.prototype,"data",void 0);_.A([_.q({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],mX);
_.m(mX,"ytd-search-pyv-renderer",function(){if(v4T!==void 0)return v4T;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return v4T=R},{mode:1});var QjK;_.Dl("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var AZ=function(){var R=_.W.apply(this,arguments)||this;R.roundedContainer=!0;R.JSC$15498_handleOpenPostCommentDialogActionAfterStamp=!1;R.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return R};
_.O(AZ,_.W);_.J=AZ.prototype;
_.J.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}}};
_.J.onStampFinished=function(){this.JSC$15498_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.J.handleSignalActionOpenPostCommentDialogAction=function(){var R=_.hw(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");R?R.openDialog():this.JSC$15498_handleOpenPostCommentDialogActionAfterStamp=!0};
_.J.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.J.computeHideBorder=function(){return this.isInEngagementPanel};
_.J.computeIsCompact=function(){return this.isInEngagementPanel};
_.J.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"};
_.J.computeUsesFullLockup=function(){var R,y=(R=this.data)==null?void 0:R.post,u;R=(u=_.e(y,KFg))==null?void 0:u.surface;var v;u=(v=_.e(y,bTi))==null?void 0:v.originalPost;var Q;if(v=R||((Q=_.e(u,KFg))==null?void 0:Q.surface))return!this.computeUsesCompactLockup(v)&&this.useUpdatedRepostUi;var M;return((M=_.e(y,bTi))==null?void 0:M.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.RR.Object.defineProperties(AZ.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var R,y;return((y=_.e((R=this.data)==null?void 0:R.post,KFg))==null?void 0:y.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.useUpdatedRepostUi}}});
AZ.prototype.onYtCommentModerationPanelEmpty=AZ.prototype.onYtCommentModerationPanelEmpty;AZ.prototype.onStampFinished=AZ.prototype.onStampFinished;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],AZ.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],AZ.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],AZ.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],AZ.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],AZ.prototype,"roundedContainer",void 0);_.A([_.r({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.p("design:type",Boolean)],AZ.prototype,"hideBorder",void 0);_.A([_.r({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.p("design:type",Boolean)],AZ.prototype,"isCompact",void 0);
_.A([_.r({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.p("design:type",Boolean)],AZ.prototype,"usesFullLockup",void 0);_.A([_.fu("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],AZ.prototype,"onStampFinished",null);
_.A([_.fu("ytd-comment-moderation-panel-empty"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],AZ.prototype,"onYtCommentModerationPanelEmpty",null);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],AZ.prototype,"isInEngagementPanel",null);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],AZ.prototype,"useUpdatedRepostUi",null);
_.A([_.q({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],AZ);
_.m(AZ,"ytd-backstage-post-thread-renderer",function(){if(QjK!==void 0)return QjK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return QjK=R},{mode:1});var jjT;var DP=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return R};
_.O(DP,_.W);DP.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
DP.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var R=this.data.thumbnail.thumbnails;this.isDarkTheme&&(R=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(R=_.b0(R,24,void 0,"height"))?R:void 0}};
DP.prototype.onDarkModeToggledAction=function(R){this.isDarkTheme=R};
DP.prototype.computeHasText=function(){var R;return!((R=this.data)==null||!R.text)};
_.RR.Object.defineProperties(DP.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.Eo(this.bannerImageUrl))+'");'}}});
DP.prototype.computeHasText=DP.prototype.computeHasText;DP.prototype.computeBannerImageUrl=DP.prototype.computeBannerImageUrl;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],DP.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],DP.prototype,"actionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],DP.prototype,"ytRendererBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],DP.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Boolean)],DP.prototype,"isDarkTheme",void 0);_.A([_.r(),_.p("design:type",String)],DP.prototype,"bannerImageUrl",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.p("design:type",Boolean)],DP.prototype,"hasText",void 0);_.A([_.e0("data","isDarkTheme"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DP.prototype,"computeBannerImageUrl",null);
_.A([_.e0("data.text"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DP.prototype,"computeHasText",null);_.A([_.G("bannerImageUrl"),_.p("design:type",Object),_.p("design:paramtypes",[])],DP.prototype,"bannerStyle",null);_.A([_.q({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],DP);
_.m(DP,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(jjT!==void 0)return jjT;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return jjT=R},{mode:1});var MPi;var pE=function(){return _.W.apply(this,arguments)||this};
_.O(pE,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],pE.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],pE.prototype,"data",void 0);_.A([_.q({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],pE);
_.m(pE,"ytd-backstage-zero-state-renderer",function(){if(MPi!==void 0)return MPi;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return MPi=R},{mode:1});var JbT;var tZ=function(){return _.W.apply(this,arguments)||this};
_.O(tZ,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],tZ.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],tZ.prototype,"data",void 0);_.A([_.r({computed:"computeIcon_(data.icon)"}),_.p("design:type",String)],tZ.prototype,"icon",void 0);_.A([_.q({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],tZ);
_.m(tZ,"ytd-post-filter-zero-state-renderer",function(){if(JbT!==void 0)return JbT;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return JbT=R},{mode:1});var VPg;var iSL={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},cS=function(){return _.W.apply(this,arguments)||this};
_.O(cS,_.W);cS.prototype.configureRendererStamper=function(){return iSL};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],cS.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],cS.prototype,"rendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],cS.prototype,"data",void 0);_.A([_.r({computed:"computeIcon_(data.icon)"}),_.p("design:type",String)],cS.prototype,"icon",void 0);_.A([_.q({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],cS);
_.m(cS,"ytd-post-scheduling-zero-state-renderer",function(){if(VPg!==void 0)return VPg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return VPg=R},{mode:1});var Kog;var aO=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return R};
_.O(aO,_.W);aO.prototype.onTabsActivate=function(R){this.data&&this.data.tabs&&_.Ko(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[R.detail.selected].navigationEndpoint})};
aO.prototype.shouldShowTotalCount=function(R){return R&&R.totalCount!==void 0};
aO.prototype.handleUpdatePostsTotalCountAction=function(R){var y=this.get(["data.tabs",1,"totalCount"]),u=this.get("updatePostsTotalCountAction.updateType",R);R=this.get("updatePostsTotalCountAction.number",R);y!==void 0&&u!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&R&&(u==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(y)+R):u==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(y)-R))};
_.RR.Object.defineProperties(aO.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var R=0,y=this.data.tabs.length;R<y;R++)if(this.data.tabs[R].selected)return R;return 0}}});
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],aO.prototype,"actionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],aO.prototype,"rendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],aO.prototype,"data",void 0);_.A([_.G("data.tabs"),_.p("design:type",Number),_.p("design:paramtypes",[])],aO.prototype,"selected",null);_.A([_.q({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],aO);
_.m(aO,"ytd-post-stream-filter-renderer",function(){if(Kog!==void 0)return Kog;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return Kog=R},{mode:1});var I$i;var S7=function(){return _.W.apply(this,arguments)||this};
_.O(S7,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],S7.prototype,"kevlarBehaviors",void 0);_.A([_.r(),_.p("design:type",Object)],S7.prototype,"data",void 0);_.A([_.q({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],S7);
_.m(S7,"ytd-channel-age-gate-renderer",function(){if(I$i!==void 0)return I$i;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return I$i=R},{mode:1});var hOY;_.Dl("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var YZ=function(){var R=_.W.apply(this,arguments)||this;R.data=null;return R};
_.O(YZ,_.W);YZ.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.RR.Object.defineProperties(YZ.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var R,y,u;return((R=this.data)==null?0:(y=R.title)==null?0:(u=y.runs)==null?0:u.length)?147:160}}});
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],YZ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],YZ.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Number),_.p("design:paramtypes",[])],YZ.prototype,"imageSizePx",null);_.A([_.q({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],YZ);
_.m(YZ,"ytd-channel-owner-empty-state-renderer",function(){if(hOY!==void 0)return hOY;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return hOY=R},{mode:1});var bSV;var FoT;var LE=function(){var R=_.W.apply(this,arguments)||this;R.boundSubmitSearch=function(){R.submitSearch()};
R.boundClearSearch=function(){R.clearSearch()};
return R};
_.O(LE,_.W);_.J=LE.prototype;_.J.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]]"}}}}}};
_.J.toggleClearButton=function(){this.hideClearButton=mTL||!this.input.value};
_.J.submitOnEnterKeyUp=function(R){R.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.J.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.J.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.J.submit=function(){_.Ko(this.hostElement,"search-query-changed",this.input.value)};
LE.prototype.toggleClearButton=LE.prototype.toggleClearButton;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],LE.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],LE.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],LE.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],LE.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],LE.prototype,"hideClearButton",void 0);_.A([_.r(),_.p("design:type",Object)],LE.prototype,"boundSubmitSearch",void 0);_.A([_.r(),_.p("design:type",Object)],LE.prototype,"boundClearSearch",void 0);_.A([_.O7("#input"),_.p("design:type",Object)],LE.prototype,"input",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],LE.prototype,"toggleClearButton",null);
_.A([_.q({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],LE);
_.m(LE,"ytd-channel-switcher-search-box-renderer",function(){if(FoT!==void 0)return FoT;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return FoT=R},{mode:1});var wf8;var sK=function(){var R=_.W.apply(this,arguments)||this;R.boundSubmit=function(){R.submit()};
return R};
_.O(sK,_.W);_.J=sK.prototype;_.J.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"}}}}};
_.J.ready=function(){var R=this;this.form.addEventListener("submit",function(y){return R.onSubmit(y)})};
_.J.onSubmit=function(R){R.preventDefault();return!1};
_.J.toggleClearButton=function(){this.hideClearButton=mTL||!this.input.value};
_.J.submitOnEnterKeyUp=function(R){R.keyCode===13&&this.submit()};
_.J.submit=function(){var R=this.data.endpoint,y=(0,_.Ps.unsafeClone)(R);_.e(y,_.HV)?_.e(y,_.HV).query=this.input.value:_.e(y,_.nc)&&(_.e(y,_.nc).query=this.input.value);var u=_.e(y.commandMetadata,_.QL);(u==null?0:u.url)?(u.url=_.mW(u.url,"query",this.input.value),_.Ko(this.hostElement,"yt-navigate",{endpoint:y})):_.e(y,SO8)?(_.e(y,SO8).channelSwitcherQuery=this.input.value,_.ua().resolve(_.jX).resolveCommand(y,{form:{element:this.hostElement}})):(R=Error("Mh`"+JSON.stringify(R)),_.dI(R))};
_.J.getUrl=function(R){return this.get("commandMetadata.webCommandMetadata.url",R)};
sK.prototype.toggleClearButton=sK.prototype.toggleClearButton;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],sK.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],sK.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],sK.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],sK.prototype,"hideClearButton",void 0);
_.A([_.r(),_.p("design:type",Object)],sK.prototype,"boundSubmit",void 0);_.A([_.O7("#form"),_.p("design:type",HTMLFormElement)],sK.prototype,"form",void 0);_.A([_.O7("#input"),_.p("design:type",Object)],sK.prototype,"input",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sK.prototype,"toggleClearButton",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],sK);
_.m(sK,"ytd-search-box-renderer",function(){if(wf8!==void 0)return wf8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return wf8=R},{mode:2});var zH=function(){var R=_.W.apply(this,arguments)||this;R.showSearchBox=!0;return R};
_.O(zH,_.W);zH.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],zH.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],zH.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],zH.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],zH.prototype,"showSearchBox",void 0);_.A([_.q({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],zH);
_.m(zH,"ytd-channel-switcher-header-renderer",function(){if(bSV!==void 0)return bSV;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return bSV=R},{mode:1});var NA8;var TAw;var gJ=function(){var R=_.W.apply(this,arguments)||this;R.isDisplayed=!0;return R};
_.O(gJ,_.W);_.J=gJ.prototype;_.J.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.dataChanged=function(){this.isDisplayed=!0};
_.J.computeType=function(R){return R||"UNKNOWN"};
_.J.onYtServiceRequestCompleted=function(R){R.stopPropagation();this.isDisplayed=!1};
_.J.onClose=function(){this.isDisplayed=!1};
gJ.prototype.onYtServiceRequestCompleted=gJ.prototype.onYtServiceRequestCompleted;gJ.prototype.dataChanged=gJ.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],gJ.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],gJ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],gJ.prototype,"data",void 0);
_.A([_.r({computed:"computeType(data.type)",reflectToAttribute:!0}),_.p("design:type",String)],gJ.prototype,"type",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],gJ.prototype,"isDisplayed",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gJ.prototype,"dataChanged",null);
_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],gJ.prototype,"onYtServiceRequestCompleted",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],gJ);
_.m(gJ,"ytd-alert-with-button-renderer",function(){if(TAw!==void 0)return TAw;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return TAw=R},{mode:1});var CE=function(){var R=_.W.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};
_.O(CE,_.W);_.J=CE.prototype;_.J.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.J.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.J.updateChannelSwitcherAction=function(R){var y;R=(y=_.e(R,X0Y))==null?void 0:y.page;_.e(R,qRg)!==void 0&&(this.data=_.e(R,qRg))};
_.J.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]]"}}}}}};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.J.searchQueryChanged=function(R,y){if(this.data&&this.data.contents&&this.data.contents.length){R=[];var u=[];this.hideCreateChannelButton=this.noResult=!1;for(var v=document.querySelectorAll("ytd-account-item-renderer"),Q=_.V(v),M=Q.next();!M.done;M=Q.next())M=M.value,u.push(M),M.style.display="block";this.resetRightBorder(u);if(y){this.hideCreateChannelButton=!0;for(u=1;u<this.data.contents.length;u++)if(M=this.data.contents[u],_.e(M,tzY)){var K=void 0,h=void 0;Q=(K=_.e(M,tzY))==null?void 0:(h=
K.accountName)==null?void 0:h.simpleText;h=K=void 0;M=(K=_.e(M,tzY))==null?void 0:(h=K.channelHandle)==null?void 0:h.simpleText;(K=v[u-1])&&Q&&_.IL(Q,y)?R.push(K):_.f("enable_handle_search_on_channel_switcher")&&K&&M&&_.IL(M.toString(),y.toString())?R.push(K):K.style.display="none"}R.length===0&&(this.noResult=!0);this.resetRightBorder(R)}}};
_.J.resetRightBorder=function(R){for(var y=0;y<R.length;y++)R[y].style.borderRight=!this.hideCreateChannelButton&&(y+2)%3===0||this.hideCreateChannelButton&&(y+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.J.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.J.setShowSearchBox=function(R){if(R&&R.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var y=0;y<R.contents.length;y++)_.e(R.contents[y],_.Je)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.J.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.RR.Object.defineProperties(CE.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null?0:R.contents)}}});
CE.prototype.onContinuationItemsUpdated=CE.prototype.onContinuationItemsUpdated;CE.prototype.searchQueryChanged=CE.prototype.searchQueryChanged;CE.prototype.onDataChanged=CE.prototype.onDataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],CE.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],CE.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],CE.prototype,"actionHandlerBehavior",void 0);_.A([_.n(_.gb),_.p("design:type",Object)],CE.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],CE.prototype,"data",void 0);_.A([_.O7("ytd-channel-switcher-header-renderer"),_.p("design:type",Object)],CE.prototype,"channelSwitcherHeaderRenderer",void 0);_.A([_.r(),_.p("design:type",Object)],CE.prototype,"noResult",void 0);
_.A([_.r(),_.p("design:type",Object)],CE.prototype,"enableAlertBanner",void 0);_.A([_.r(),_.p("design:type",Object)],CE.prototype,"dismissedAlertBanner",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],CE.prototype,"hideCreateChannelButton",void 0);_.A([_.G("data.contents"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],CE.prototype,"isLoading",null);_.A([_.r(),_.p("design:type",Object)],CE.prototype,"boundDismissAlertBanner",void 0);
_.A([_.r({computed:"computeButtonOverride()"}),_.p("design:type",Object)],CE.prototype,"buttonOverride",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],CE.prototype,"onDataChanged",null);_.A([_.fu("search-query-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,String]),_.p("design:returntype")],CE.prototype,"searchQueryChanged",null);
_.A([_.fu("yt-next-continuation-data-updated"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],CE.prototype,"onContinuationItemsUpdated",null);_.A([_.q({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],CE);
_.m(CE,"ytd-channel-switcher-page-renderer",function(){if(NA8!==void 0)return NA8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return NA8=R},{mode:1});var o4V;var xDK;var Rd=function(){var R=_.W.apply(this,arguments)||this;R.images=[];R.selectedImageIndex=0;return R};
_.O(Rd,_.W);_.J=Rd.prototype;
_.J.ready=function(){_.E4(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.E4(this.JSC$15543_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.E4(this.JSC$15543_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.E4(this.JSC$15543_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.J.onThumbnailClick=function(R){if(R=R.event_.detail)this.selectedImageIndex=this.images.indexOf(R)};
_.J.updateImageThumbnails=function(R){R=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:R.event_.detail});this.images.splice(this.selectedImageIndex,1,R);this.images=[].concat(_.P$(this.images))};
_.J.cancelImageRepositions=function(){this.selectedImageIndex=0;_.Ko(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.J.saveImageRepositions=function(){this.selectedImageIndex=0;_.Ko(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.RR.Object.defineProperties(Rd.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var R=this;return(this.images||[]).map(function(y,u){return{image:y,selected:u===R.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Rd.prototype,"ytRendererstamperBehavior",void 0);_.A([_.O7("ytd-backstage-image-preview-renderer"),_.p("design:type",Object)],Rd.prototype,"JSC$15543_imagePreviewContainer",void 0);_.A([_.O7(".thumbnail-images-container"),_.p("design:type",HTMLElement)],Rd.prototype,"thumbnailImagesContainer",void 0);_.A([_.r(),_.p("design:type",Array)],Rd.prototype,"images",void 0);
_.A([_.r(),_.p("design:type",Object)],Rd.prototype,"repositionInstructions",void 0);_.A([_.r(),_.p("design:type",Object)],Rd.prototype,"selectedImageIndex",void 0);_.A([_.G("images","selectedImageIndex"),_.p("design:type",Array),_.p("design:paramtypes",[])],Rd.prototype,"thumbnailRendererDatas",null);_.A([_.G("images","selectedImageIndex"),_.p("design:type",Object),_.p("design:paramtypes",[])],Rd.prototype,"selectedImageData",null);
_.A([_.q({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],Rd);
_.m(Rd,"ytd-backstage-multi-image-reposition-renderer",function(){if(xDK!==void 0)return xDK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return xDK=R},{mode:1});var yD=function(R,y){_.nT.call(this);this.uploadUrl=R;this.channelId=y;this.imagesUploadData=[]};
_.O(yD,_.nT);yD.prototype.getAllUploadStatuses=function(){var R=this,y,u,v;return _.I(function(Q){if(Q.nextAddress==1)return Q.yield(BAg(R),2);y=Q.yieldResult;u=y.get("succeed");v=y.get("failed");return Q.return(u.concat(v))})};
var eOg=function(R){var y,u;return _.I(function(v){if(v.nextAddress==1)return v.yield(BAg(R),2);y=v.yieldResult;u=y.get("failed");u.length>0&&f$g(R,u);return v.return(R.getAllUploadStatuses())})},BAg=function(R){var y,u,v,Q,M,K,h;
return _.I(function(b){if(b.nextAddress==1)return y=new Map,b.yield(Promise.allSettled(R.imagesUploadData.map(function(N){return N.uploadPromise})),2);
u=b.yieldResult;v=[];Q=_.V(u);for(M=Q.next();!M.done;M=Q.next())K=M.value,K.status==="fulfilled"&&v.push(K.value);h=R.imagesUploadData.map(function(N){return N.image}).filter(function(N){return v.every(function(T){return T.id!==N.id})});
y.set("succeed",v);y.set("failed",h);return b.return(y)})},f$g=function(R,y){y=_.V(y);
for(var u=y.next();!u.done;u=y.next()){var v=R;u=u.value;l$g(v,u.id)>=0&&v.cancel(u.id);var Q=new OSi(u),M=_.Wni(v.uploadUrl,{"X-YouTube-ChannelId":v.channelId},u.imageBlob);Q.transfer=M;Q.uploadPromise=ZS5(M,u);v.imagesUploadData.push(Q);M.run()}};
yD.prototype.cancel=function(R){var y=l$g(this,R);y!==-1&&((y=this.imagesUploadData[y].transfer)&&y.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(u){return u.image.id!==R}))};
var l$g=function(R,y){return R.imagesUploadData.findIndex(function(u){return u.image.id===y})},ZS5=function(R,y){return new Promise(function(u,v){R.listen("l",function(){var Q=R.getResponseText();
Q?(Q=JSON.parse(Q).encryptedBlobId,y.encryptedBlobId=Q,u(y)):v("upload failed")});
R.listen("n",function(){v("upload failed")})})},OSi=function(R){this.image=R};var HnE=function(R,y,u,v,Q){this.id=R;this.imageBlob=y;this.localImageSrc=u;this.naturalWidth=v;this.naturalHeight=Q;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 HSb=[".jpeg",".jpg",".png"],uZ=function(){var R=_.W.apply(this,arguments)||this;R.showImagesPreview=!1;R.pollOptions=[];R.errorMessage="";R.optionPlaceholderText="";R.optionDefaultText="";R.JSC$15554_imageId=0;R.maxFileSizeMb=0;R.maxAspectRatio=0;R.invalidFileSizeError="";R.invalidAspectRatioError="";R.invalidFileTypeError="";R.imageSelector=new Be(null,"single_file",HSb);return R};
_.O(uZ,_.W);_.J=uZ.prototype;_.J.ready=function(){_.E4(this.imageSelector,"j",this.onImageSelect,!1,this);_.E4(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.E4(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.J.dataChanged=function(){var R,y,u=_.e((R=this.data)==null?void 0:(y=R.cellTemplate)==null?void 0:y.onEmptyCellTap,mvc);if(u&&u.uploadUrl&&u.channelId){var v;this.maxFileSizeMb=((v=u.imageValidationInfo)==null?void 0:v.maxFileSizeMb)||0;var Q;this.maxAspectRatio=((Q=u.imageValidationInfo)==null?void 0:Q.allowedMaxAspectRatio)||0;var M;this.invalidFileSizeError=this.getSimpleString((M=this.data)==null?void 0:M.invalidFileSizeError);var K;this.invalidAspectRatioError=this.getSimpleString((K=this.data)==
null?void 0:K.invalidAspectRatioError);var h;this.invalidFileTypeError=this.getSimpleString((h=this.data)==null?void 0:h.invalidFileTypeError);this.uploadManager=new yD(u.uploadUrl,u.channelId)}};
_.J.onEditorInfoChange=function(){this.optionPlaceholderText=_.u7(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.u7(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.J.observeAddImageError=function(){this.errorMessage!==""&&_.Ko(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.J.onPollOptionsChange=function(){for(var R=!1,y=[],u=0;u<this.pollOptions.length;u++){var v=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(u+1);this.pollOptions[u].placeholderText!==v?(R=!0,y.push(Object.assign({},this.pollOptions[u],{placeholderText:v}))):y.push(this.pollOptions[u])}R&&(this.pollOptions=y);this.isValid()?_.Ko(this.hostElement,"yt-commentbox-post-enable"):_.Ko(this.hostElement,"yt-commentbox-post-disable")};
_.J.createPollOptions=function(R){var y=[],u;R=(u=R==null?void 0:R.minPollOptions)!=null?u:0;for(u=0;u<R;u++)y.push(this.createPollOption());return y};
_.J.onImageSelect=function(R){var y=this,u,v,Q,M,K,h;return _.I(function(b){if(b.nextAddress==1){if(y.selectedImageIndex===void 0)return b.jumpTo(0);u=R.files[0];y.errorMessage="";v=y.validateImage(u);if(v!=="")return y.errorMessage=v,b.return();Q=new ut(y.maxAspectRatio,!1,!0);return b.yield(Q.transform(u),3)}if(b.nextAddress!=4)return M=b.yieldResult,M.transformedData?M.invalidAspectRatio?(y.errorMessage=y.invalidAspectRatioError,b.return()):b.yield(nNS(y.JSC$15554_imageId,R.files[0],M.transformedData),
4):(y.errorMessage=y.invalidFileTypeError,b.return());K=b.yieldResult;y.JSC$15554_imageId++;f$g(y.uploadManager,[K]);h=Object.assign({},y.pollOptions[y.selectedImageIndex],{image:K});y.pollOptions.splice(y.selectedImageIndex,1,h);y.refreshPollOptions();_.Ko(y.hostElement,"yt-backstage-poll-image-select");_.f$(b)})};
_.J.validateImage=function(R){return R.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.J.refreshPollOptions=function(){this.pollOptions=[].concat(_.P$(this.pollOptions))};
_.J.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.P$(this.pollOptions),[this.createPollOption()]))};
_.J.onRemovePollOption=function(R){var y=this.pollOptions[R.model.index];y&&y.image&&this.uploadManager.cancel(y.image.id);this.pollOptions.splice(R.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.Ko(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.J.onTextInput=function(){this.refreshPollOptions()};
_.J.onImageButtonClick=function(R){this.selectedImageIndex=R.model.index;this.imageSelector.click()};
_.J.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.J.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.J.saveImageRepositions=function(R){R=R.event_.detail;for(var y=0,u=[],v=_.V(this.pollOptions),Q=v.next();!Q.done;Q=v.next())Q=Q.value,Q.image!==void 0?(Q=Object.assign({},Q,{image:R[y]}),u.push(Q),y++):u.push(Q);this.showImagesPreview=!1;this.pollOptions=[].concat(_.P$(u))};
_.J.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,y=_.V(this.pollOptions),u=y.next();!u.done;u=y.next())if(u=u.value,u.optionText.trim()!==""||u.image!==void 0){if(!u.image||this.hasCustomOptionText&&u.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;R++}return R>=Number(this.editorInfo.minPollOptions)};
_.J.getAllUploadStatuses=function(){var R=this,y,u,v,Q;return _.I(function(M){if(M.nextAddress==1)return M.yield(R.uploadManager.getAllUploadStatuses(),2);y=M.yieldResult;u=_.V(y);for(v=u.next();!v.done;v=u.next())if(Q=v.value,Q.encryptedBlobId===void 0)return M.return(eOg(R.uploadManager));return M.return(y)})};
_.J.getPostCreateOptions=function(){for(var R=[],y=_.V(this.pollOptions),u=y.next();!u.done;u=y.next())u=u.value,u.image!==void 0&&R.push({text:this.hasCustomOptionText?u.optionText:u.placeholderText,image:u.image});return R};
_.J.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.J.createButtonRenderer=function(R,y){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:R,accessibilityData:{accessibilityData:{label:this.getSimpleString(R)}},isDisabled:y}};
_.J.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.J.computeThumbnailRendererData=function(R){return R?{image:R,selected:!1}:void 0};
_.J.getSimpleString=function(R){return _.u7(R)};
_.J.updateOptionTextFromBinding=function(R){if(R.target){var y=Array.from(_.hw(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(R.target);if(y>=0){var u;this.pollOptions[y].optionText=(u=R.detail.value)!=null?u:""}}};
_.RR.Object.defineProperties(uZ.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var R,y;return this.pollOptions.length<((y=(R=this.editorInfo)==null?void 0:R.maxPollOptions)!=null?y: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,y=(R=this.data)==null?void 0:R.addOptionButtonText;return y?this.createButtonRenderer(y,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var R,y=(R=this.data)==null?void 0:R.repositionImagesButtonLabel;return y?this.createButtonRenderer(y,!this.hasImages):void 0}}});
uZ.prototype.onPollOptionsChange=uZ.prototype.onPollOptionsChange;uZ.prototype.observeAddImageError=uZ.prototype.observeAddImageError;uZ.prototype.onEditorInfoChange=uZ.prototype.onEditorInfoChange;uZ.prototype.dataChanged=uZ.prototype.dataChanged;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],uZ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.O7("ytd-backstage-multi-image-reposition-renderer"),_.p("design:type",Object)],uZ.prototype,"imageRepositionContainer",void 0);
_.A([_.r(),_.p("design:type",Object)],uZ.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],uZ.prototype,"editorInfo",void 0);_.A([_.r(),_.p("design:type",yD)],uZ.prototype,"uploadManager",void 0);_.A([_.r(),_.p("design:type",Object)],uZ.prototype,"showImagesPreview",void 0);_.A([_.r(),_.p("design:type",Array)],uZ.prototype,"pollOptions",void 0);_.A([_.r(),_.p("design:type",Object)],uZ.prototype,"errorMessage",void 0);
_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uZ.prototype,"dataChanged",null);_.A([_.GJ("editorInfo"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uZ.prototype,"onEditorInfoChange",null);_.A([_.e0("errorMessage"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uZ.prototype,"observeAddImageError",null);
_.A([_.GJ("pollOptions"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uZ.prototype,"onPollOptionsChange",null);_.A([_.G("pollOptions","editorInfo"),_.p("design:type",Object),_.p("design:paramtypes",[])],uZ.prototype,"isAllowedToAddOption",null);_.A([_.G("pollOptions"),_.p("design:type",Object),_.p("design:paramtypes",[])],uZ.prototype,"hasImages",null);
_.A([_.G("pollOptions"),_.p("design:type",Object),_.p("design:paramtypes",[])],uZ.prototype,"imagesToReposition",null);_.A([_.G("pollOptions"),_.p("design:type",Object),_.p("design:paramtypes",[])],uZ.prototype,"hasCustomOptionText",null);_.A([_.G("data","isAllowedToAddOption"),_.p("design:type",Object),_.p("design:paramtypes",[])],uZ.prototype,"addOptionButton",null);_.A([_.G("data","hasImages"),_.p("design:type",Object),_.p("design:paramtypes",[])],uZ.prototype,"repositionImagesButton",null);
_.A([_.q({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],uZ);
_.m(uZ,"ytd-backstage-image-poll-editor-renderer",function(){if(o4V!==void 0)return o4V;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return o4V=R},{mode:2});var n4Y={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 GkG;var vv=function(){var R=_.W.apply(this,arguments)||this;R.a11yConfig=n4Y;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};
_.O(vv,_.W);_.J=vv.prototype;_.J.created=function(){_.St.requestAvailability()};
_.J.ready=function(){};
_.J.onArrowKeysDown=function(R){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){R.detail.keyboardEvent.preventDefault();var y=0,u=0,v="";switch(R.detail.keyboardEvent.key){case "ArrowUp":Gy8(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?v=this.a11yConfig.reachBottomOfImage:y=this.imageHeight*.05*-1;break;case "ArrowDown":Gy8(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?v=this.a11yConfig.reachTopOfImage:
y=this.imageHeight*.05;break;case "ArrowLeft":Gy8(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?v=this.a11yConfig.reachRightOfImage:u=this.imageWidth*.05*-1;break;case "ArrowRight":Gy8(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?v=this.a11yConfig.reachLeftOfImage:u=this.imageWidth*.05}v&&_.fo(v)&&_.Ko(this.hostElement,"iron-announce",{text:_.fo(v)});if(u||y)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+y)),R=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),R=_.fo(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+u)),R=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),R=_.fo(this.a11yConfig.imageHorizontalPosition,{x_percent:""+R,y_percent:""+(100-R)})),R&&_.Ko(this.hostElement,"iron-announce",{text:R})}};
_.J.getPreviewPosition=function(R,y,u,v){return Math.round(100*(R+y*.5-u)/v)};
_.J.calculateDisplayPosition=function(){var R=this.imageData.naturalWidth,y=this.imageData.naturalHeight;this.displayScale=Math.max(200/R,200/y);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var u=R*this.displayScale*this.imageData.previewCoordinates.left,v=y*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=y>R?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-u;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=R>y?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-v;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=R*this.displayScale;this.imageHeight=y*this.displayScale};
_.J.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.J.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.J.getSignedPosition=function(R,y,u){return y==="X"&&_.EB("HTML_DIR")==="rtl"?u==="-"?R+"px":R*-1+"px":u==="-"?R*-1+"px":R+"px"};
_.J.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 y=this.pickerOffsetX-R.clientX,u=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-
u)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-y))}};
_.J.pickerMoveStart=function(R){this.startPicker=!0;this.pickerOffsetX=R.clientX;this.pickerOffsetY=R.clientY};
_.J.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var R=this.generateCropPreview();R&&_.Ko(this.hostElement,"ytd-backstage-image-preview-coordinates-update",R)};
_.J.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.Ko(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.J.deleteImage=function(){_.Ko(this.hostElement,"ytd-backstage-image-preview-delete")};
_.J.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.J.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var R=this.generateCropPreview();R&&_.Ko(this.hostElement,"ytd-backstage-image-preview-coordinates-save",R)};
_.J.getPreviewOffset=function(R,y,u){return y&&R?(u==="X"&&_.EB("HTML_DIR")==="rtl"?300/y*R:300/y*R*-1)+"px":"0px"};
_.J.getSimpleText=function(R){return R?_.u7(R):""};
_.J.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}};
_.RR.Object.defineProperties(vv.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 _.fo(this.a11yConfig.imageVerticalPosition,{x_percent:""+R,y_percent:""+(100-R)})+"\n"+_.fo(this.a11yConfig.verticalRepositionInstruction)}R=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.fo(this.a11yConfig.imageHorizontalPosition,{x_percent:""+R,y_percent:""+(100-R)})+"\n"+_.fo(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,y,u=(R=this.instruction)==null?void 0:(y=R.previewInstruction)==null?void 0:y.editButtonLabel;return u?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:u,accessibilityData:{accessibilityData:{label:this.getSimpleText(u)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var R,y,u,v,Q=this.editOnlyMode?(R=this.instruction)==null?void 0:(y=R.editInstruction)==null?void 0:y.saveImagesButtonLabel:(u=this.instruction)==null?void 0:(v=u.editInstruction)==null?void 0:v.saveButtonLabel;return Q?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:Q,accessibilityData:{accessibilityData:{label:this.getSimpleText(Q)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var R,y,u=(R=this.instruction)==null?void 0:(y=R.previewInstruction)==null?void 0:y.deleteButtonLabel;return u?{size:"SIZE_SMALL",text:u,accessibilityData:{accessibilityData:{label:this.getSimpleText(u)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var R,y,u=(R=this.instruction)==null?void 0:(y=R.editInstruction)==null?void 0:y.cancelButtonLabel;R=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return u?{style:R,size:"SIZE_SMALL",text:u,accessibilityData:{accessibilityData:{label:this.getSimpleText(u)}}}:void 0}},
cropOffsetTop:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetTop===void 0||this.pickerDisplayOffsetTop===void 0?0:this.pickerDisplayOffsetTop-this.imageDisplayOffsetTop}},
cropOffsetLeft:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetLeft===void 0||this.pickerDisplayOffsetLeft===void 0?0:this.pickerDisplayOffsetLeft-this.imageDisplayOffsetLeft}},
pickerBackgroundStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.imageDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.imageDisplayOffsetTop,"Y",void 0)+");"}},
pickerDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return"width:"+this.pickerSize+"px;height:"+this.pickerSize+"px;transform:translateX("+this.getSignedPosition(this.pickerDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.pickerDisplayOffsetTop,"Y",void 0)+");"}},
imageInPickerStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.cropOffsetLeft,"X","-")+") translateY("+this.getSignedPosition(this.cropOffsetTop,"Y","-")+");"}},
previewClipperStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getPreviewOffset(this.cropOffsetLeft,this.pickerSize,"X")+") translateY("+this.getPreviewOffset(this.cropOffsetTop,this.pickerSize,"Y")+");"}},
pickerModeStyle:{configurable:!0,enumerable:!0,get:function(){return this.showPreviewContainer?"preview":"edit"}}});
vv.prototype.onEditOnlyModeUpdate=vv.prototype.onEditOnlyModeUpdate;vv.prototype.onImageChange=vv.prototype.onImageChange;_.A([_.r(),_.p("design:type",HnE)],vv.prototype,"imageData",void 0);_.A([_.r(),_.p("design:type",Object)],vv.prototype,"instruction",void 0);_.A([_.r(),_.p("design:type",Object)],vv.prototype,"a11yConfig",void 0);_.A([_.r(),_.p("design:type",Number)],vv.prototype,"imageWidth",void 0);_.A([_.r(),_.p("design:type",Number)],vv.prototype,"imageHeight",void 0);
_.A([_.r(),_.p("design:type",Number)],vv.prototype,"displayScale",void 0);_.A([_.r(),_.p("design:type",Object)],vv.prototype,"imageDisplayOffsetTop",void 0);_.A([_.r(),_.p("design:type",Object)],vv.prototype,"imageDisplayOffsetLeft",void 0);_.A([_.r(),_.p("design:type",Object)],vv.prototype,"pickerDisplayOffsetTop",void 0);_.A([_.r(),_.p("design:type",Object)],vv.prototype,"pickerDisplayOffsetLeft",void 0);_.A([_.r(),_.p("design:type",Object)],vv.prototype,"showPreviewContainer",void 0);
_.A([_.r(),_.p("design:type",Object)],vv.prototype,"startPicker",void 0);_.A([_.r(),_.p("design:type",Number)],vv.prototype,"pickerOffsetX",void 0);_.A([_.r(),_.p("design:type",Number)],vv.prototype,"pickerOffsetY",void 0);_.A([_.r(),_.p("design:type",Object)],vv.prototype,"repositionOptional",void 0);_.A([_.r(),_.p("design:type",Object)],vv.prototype,"editOnlyMode",void 0);_.A([_.O7("#picker-container"),_.p("design:type",HTMLElement)],vv.prototype,"JSC$15567_pickerContainer",void 0);
_.A([_.O7("#picker"),_.p("design:type",HTMLElement)],vv.prototype,"picker",void 0);_.A([_.O7("#preview-clipper"),_.p("design:type",HTMLElement)],vv.prototype,"previewClipper",void 0);_.A([_.O7("#image-in-picker-background"),_.p("design:type",HTMLImageElement)],vv.prototype,"JSC$15567_imageInBackground",void 0);_.A([_.O7("#image-in-picker"),_.p("design:type",HTMLImageElement)],vv.prototype,"JSC$15567_imageInPicker",void 0);
_.A([_.O7("#image-in-preview-clipper"),_.p("design:type",HTMLImageElement)],vv.prototype,"JSC$15567_imageInPreviewClipper",void 0);_.A([_.G("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.p("design:type",String),_.p("design:paramtypes",[])],vv.prototype,"altLabelForImage",null);_.A([_.G("imageHeight","imageWidth"),_.p("design:type",Number),_.p("design:paramtypes",[])],vv.prototype,"pickerSize",null);
_.A([_.G("imageHeight","imageWidth"),_.p("design:type",Object),_.p("design:paramtypes",[])],vv.prototype,"imageOrientationStyle",null);_.A([_.G("instruction"),_.p("design:type",Object),_.p("design:paramtypes",[])],vv.prototype,"editButton",null);_.A([_.G("instruction","editOnlyMode"),_.p("design:type",Object),_.p("design:paramtypes",[])],vv.prototype,"saveButton",null);_.A([_.G("instruction"),_.p("design:type",Object),_.p("design:paramtypes",[])],vv.prototype,"deleteButton",null);
_.A([_.G("instruction","editOnlyMode"),_.p("design:type",Object),_.p("design:paramtypes",[])],vv.prototype,"cancelButton",null);_.A([_.G("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.p("design:type",Number),_.p("design:paramtypes",[])],vv.prototype,"cropOffsetTop",null);_.A([_.G("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.p("design:type",Number),_.p("design:paramtypes",[])],vv.prototype,"cropOffsetLeft",null);
_.A([_.G("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.p("design:type",String),_.p("design:paramtypes",[])],vv.prototype,"pickerBackgroundStyle",null);_.A([_.G("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.p("design:type",String),_.p("design:paramtypes",[])],vv.prototype,"pickerDisplayStyle",null);_.A([_.G("cropOffsetLeft","cropOffsetTop"),_.p("design:type",String),_.p("design:paramtypes",[])],vv.prototype,"imageInPickerStyle",null);
_.A([_.G("cropOffsetLeft","cropOffsetTop","pickerSize"),_.p("design:type",String),_.p("design:paramtypes",[])],vv.prototype,"previewClipperStyle",null);_.A([_.GJ("imageData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vv.prototype,"onImageChange",null);_.A([_.GJ("editOnlyMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vv.prototype,"onEditOnlyModeUpdate",null);
_.A([_.G("showPreviewContainer"),_.p("design:type",String),_.p("design:paramtypes",[])],vv.prototype,"pickerModeStyle",null);_.A([_.q({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],vv);
_.m(vv,"ytd-backstage-image-preview-renderer",function(){if(GkG!==void 0)return GkG;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return GkG=R},{mode:1});var rbG;var PC8={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 Wo5;var dD5;var QD=function(){var R=_.W.apply(this,arguments)||this;R.a11yConfig=PC8;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};
_.O(QD,_.W);_.J=QD.prototype;_.J.created=function(){_.St.requestAvailability()};
_.J.ready=function(){};
_.J.onArrowKeysDown=function(R){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){R.detail.keyboardEvent.preventDefault();var y=0,u=0,v="";switch(R.detail.keyboardEvent.key){case "ArrowUp":r0S(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?v=this.a11yConfig.reachBottomOfImage:y=this.imageHeight*.05*-1;break;case "ArrowDown":r0S(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?v=this.a11yConfig.reachTopOfImage:
y=this.imageHeight*.05;break;case "ArrowLeft":r0S(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?v=this.a11yConfig.reachRightOfImage:u=this.imageWidth*.05*-1;break;case "ArrowRight":r0S(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?v=this.a11yConfig.reachLeftOfImage:u=this.imageWidth*.05}v&&_.fo(v)&&_.Ko(this.hostElement,"iron-announce",{text:_.fo(v)});if(u||y)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+y)),R=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),R=_.fo(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+u)),R=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),R=_.fo(this.a11yConfig.imageHorizontalPosition,{x_percent:""+R,y_percent:""+(100-R)})),R&&_.Ko(this.hostElement,"iron-announce",{text:R})}};
_.J.getPreviewPosition=function(R,y,u,v){return Math.round(100*(R+y*.5-u)/v)};
_.J.displayImage=function(){var R=this.JSC$15578_pickerContainer.getBoundingClientRect().width,y=this.JSC$15578_pickerContainer.getBoundingClientRect().height,u=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),v=this.JSC$15578_imageInBackground.naturalWidth,Q=this.JSC$15578_imageInBackground.naturalHeight;this.displayScale=Math.max(u/v,u/Q);this.imageWidth=v*this.displayScale;this.imageHeight=Q*this.displayScale;this.pickerDisplayOffsetLeft=(R-u)/2;this.pickerDisplayOffsetTop=
(y-u)/2;this.imageDisplayOffsetLeft=Q>v?this.pickerDisplayOffsetLeft:(R-this.imageWidth)/2;this.imageDisplayOffsetTop=v>Q?this.pickerDisplayOffsetTop:(y-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.J.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15578_imageInBackground.src=this.imageData.toString(),this.JSC$15578_imageInPicker.src=this.imageData.toString(),this.JSC$15578_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.J.getSignedPosition=function(R,y,u){return y==="X"&&_.EB("HTML_DIR")==="rtl"?u==="-"?R+"px":R*-1+"px":u==="-"?R*-1+"px":R+"px"};
_.J.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 y=this.pickerOffsetX-R.clientX,u=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-
u)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-y))}};
_.J.pickerMoveStart=function(R){this.startPicker=!0;this.pickerOffsetX=R.clientX;this.pickerOffsetY=R.clientY};
_.J.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.J.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.Ko(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.J.getPreviewOffset=function(R,y,u,v){return y&&R&&u?(v==="X"&&_.EB("HTML_DIR")==="rtl"?u/y*R:u/y*R*-1)+"px":"0px"};
_.J.getSimpleText=function(R){return R?_.u7(R):""};
_.J.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var R=this.cropOffsetTop/this.imageHeight,y=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,u=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,v=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.hw(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.Ko(this.hostElement,"yt-img-crop-coordinates-update",{top:R,right:y,bottom:u,left:v})}};
_.RR.Object.defineProperties(QD.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 _.fo(this.a11yConfig.imageVerticalPosition,{x_percent:""+R,y_percent:""+(100-R)})+"\n"+_.fo(this.a11yConfig.verticalRepositionInstruction)}R=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.fo(this.a11yConfig.imageHorizontalPosition,{x_percent:""+R,y_percent:""+(100-R)})+"\n"+_.fo(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,y=(R=this.learnMore.runs[0])==null?void 0:R.navigationEndpoint,u;return((u=_.e(y,_.tc))==null?void 0:u.url)||void 0}}}});
QD.prototype.onImageDataChange=QD.prototype.onImageDataChange;_.A([_.r(),_.p("design:type",Object)],QD.prototype,"imageData",void 0);_.A([_.r(),_.p("design:type",Object)],QD.prototype,"instruction",void 0);_.A([_.r(),_.p("design:type",Object)],QD.prototype,"a11yConfig",void 0);_.A([_.r(),_.p("design:type",Number)],QD.prototype,"imageWidth",void 0);_.A([_.r(),_.p("design:type",Number)],QD.prototype,"imageHeight",void 0);_.A([_.r(),_.p("design:type",Number)],QD.prototype,"displayScale",void 0);
_.A([_.r(),_.p("design:type",Object)],QD.prototype,"imageDisplayOffsetTop",void 0);_.A([_.r(),_.p("design:type",Object)],QD.prototype,"imageDisplayOffsetLeft",void 0);_.A([_.r(),_.p("design:type",Object)],QD.prototype,"pickerDisplayOffsetTop",void 0);_.A([_.r(),_.p("design:type",Object)],QD.prototype,"pickerDisplayOffsetLeft",void 0);_.A([_.r(),_.p("design:type",Object)],QD.prototype,"cropCoordinatesSaved",void 0);_.A([_.r(),_.p("design:type",Object)],QD.prototype,"previewSize",void 0);
_.A([_.r(),_.p("design:type",Object)],QD.prototype,"startPicker",void 0);_.A([_.r(),_.p("design:type",Number)],QD.prototype,"pickerOffsetX",void 0);_.A([_.r(),_.p("design:type",Number)],QD.prototype,"pickerOffsetY",void 0);_.A([_.r(),_.p("design:type",Object)],QD.prototype,"repositionOptional",void 0);_.A([_.O7("#picker-container"),_.p("design:type",HTMLElement)],QD.prototype,"JSC$15578_pickerContainer",void 0);_.A([_.O7("#picker"),_.p("design:type",HTMLElement)],QD.prototype,"picker",void 0);
_.A([_.O7("#image-in-picker-background"),_.p("design:type",HTMLImageElement)],QD.prototype,"JSC$15578_imageInBackground",void 0);_.A([_.O7("#image-in-picker"),_.p("design:type",HTMLImageElement)],QD.prototype,"JSC$15578_imageInPicker",void 0);_.A([_.O7("#image-in-preview-clipper"),_.p("design:type",HTMLImageElement)],QD.prototype,"JSC$15578_imageInPreviewClipper",void 0);_.A([_.O7("#full-image-as-preview"),_.p("design:type",HTMLImageElement)],QD.prototype,"imageAsPreview",void 0);
_.A([_.G("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.p("design:type",String),_.p("design:paramtypes",[])],QD.prototype,"altLabelForImage",null);_.A([_.G("imageHeight","imageWidth"),_.p("design:type",Number),_.p("design:paramtypes",[])],QD.prototype,"pickerSize",null);_.A([_.G("imageHeight","imageWidth"),_.p("design:type",Object),_.p("design:paramtypes",[])],QD.prototype,"imageOrientationStyle",null);
_.A([_.G("instruction.previewInstruction.editButtonLabel"),_.p("design:type",Object),_.p("design:paramtypes",[])],QD.prototype,"editButton",null);_.A([_.G("instruction.editInstruction.saveButtonLabel"),_.p("design:type",Object),_.p("design:paramtypes",[])],QD.prototype,"saveButton",null);_.A([_.G("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.p("design:type",Number),_.p("design:paramtypes",[])],QD.prototype,"cropOffsetTop",null);
_.A([_.G("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.p("design:type",Number),_.p("design:paramtypes",[])],QD.prototype,"cropOffsetLeft",null);_.A([_.G("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.p("design:type",String),_.p("design:paramtypes",[])],QD.prototype,"pickerBackgroundStyle",null);_.A([_.G("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.p("design:type",String),_.p("design:paramtypes",[])],QD.prototype,"pickerDisplayStyle",null);
_.A([_.G("cropOffsetLeft","cropOffsetTop"),_.p("design:type",String),_.p("design:paramtypes",[])],QD.prototype,"imageInPickerStyle",null);_.A([_.G("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.p("design:type",String),_.p("design:paramtypes",[])],QD.prototype,"previewClipperStyle",null);_.A([_.e0("imageData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],QD.prototype,"onImageDataChange",null);
_.A([_.G("cropCoordinatesSaved"),_.p("design:type",String),_.p("design:paramtypes",[])],QD.prototype,"pickerModeStyle",null);_.A([_.G("instruction.editInstruction.learnMore"),_.p("design:type",Object),_.p("design:paramtypes",[])],QD.prototype,"learnMore",null);_.A([_.G("learnMore"),_.p("design:type",Object),_.p("design:paramtypes",[])],QD.prototype,"learnMoreUrl",null);_.A([_.pu({is:"yt-img-crop-picker",disableElementRegistration:!0})],QD);
_.m(QD,"yt-img-crop-picker",function(){if(dD5===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;Wo5===void 0&&(Wo5=document.createElement("template"));var v=Wo5;u.call(y,v.content.cloneNode(!0),R.content.firstChild);dD5=R}R=dD5;return R},{mode:2});var jA=function(){var R=_.W.apply(this,arguments)||this;R.errorMessage="";R.hasPreview=!1;R.isBackstagePost=!1;R.dismissButtonOverrides={size:"XS"};return R};
_.O(jA,_.W);_.J=jA.prototype;_.J.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"}}}};
_.J.detached=function(){this.removeOverlay()};
_.J.setPreview=function(R){_.hw(this.hostElement).querySelector("#preview-picker").imageData=R;this.hasPreview=!0;_.Ko(this.hostElement,"yt-backstage-image-select-preview")};
_.J.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var R=_.hw(this.hostElement).querySelector("#dropzone");R.classList.remove("dragover");R.classList.remove("error");_.Ko(this.hostElement,"yt-backstage-image-select-cancel")};
_.J.setupOverlay=function(){var R=this.imageUploadEndpoint;this.removeOverlay();if(R&&R.imageValidationInfo){var y=_.hw(this.hostElement).querySelector("#dropzone"),u=_.hw(this.hostElement).querySelector("#select");this.overlay=new QA(R.uploadUrl,R.channelId,R.imageValidationInfo.maxFileSizeMb,R.imageValidationInfo.allowedMaxAspectRatio,y,u,!0);_.E4(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.E4(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.E4(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.E4(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.E4(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.J.removeOverlay=function(){this.overlay&&(_.Hc(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.Hc(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.Hc(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.Hc(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.Hc(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.J.onDragOver=function(R){var y=_.hw(this.hostElement).querySelector("#dropzone");_.FN(y,"dragover",R.value)};
_.J.onPreview=function(R){this.setPreview(R.value)};
_.J.onImageError=function(R){if(R.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var y;R=(y=this.data)==null?void 0:y.fileSizeError}else if(R.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var u;R=(u=this.data)==null?void 0:u.invalidError}else if(R.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var v;R=(v=this.data)==null?void 0:v.invalidAspectRatioError}else return;this.errorMessage=_.u7(R);_.hw(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.J.onImageAlert=function(R){this.onImageError(R)};
_.J.uploadPromise=function(){var R=this,y=this.overlay&&this.overlay.uploadPromise();if(y)return y.catch(function(){throw Error(R.data?_.u7(R.data.uploadFailureError):"");})};
_.RR.Object.defineProperties(jA.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,y;if((R=this.data)==null?0:(y=R.icon)==null?0:y.iconType)return _.fk(this.data.icon.iconType)}}});
jA.prototype.setupOverlay=jA.prototype.setupOverlay;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],jA.prototype,"rendererStamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],jA.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],jA.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],jA.prototype,"imageUploadEndpoint",void 0);_.A([_.r(),_.p("design:type",Object)],jA.prototype,"errorMessage",void 0);
_.A([_.r(),_.p("design:type",QA)],jA.prototype,"overlay",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],jA.prototype,"hasPreview",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],jA.prototype,"isBackstagePost",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],jA.prototype,"selectionCancel",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],jA.prototype,"previewCancel",null);
_.A([_.G("data.icon.iconType"),_.p("design:type",Object),_.p("design:paramtypes",[])],jA.prototype,"icon",null);_.A([_.r(),_.p("design:type",Object)],jA.prototype,"dismissButtonOverrides",void 0);_.A([_.e0("imageUploadEndpoint"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jA.prototype,"setupOverlay",null);_.A([_.q({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],jA);
_.m(jA,"ytd-backstage-image-select-renderer",function(){if(rbG!==void 0)return rbG;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return rbG=R},{mode:1});var UD8;var kki;var M6=function(){var R=_.W.apply(this,arguments)||this;R.selected=!1;return R};
_.O(M6,_.W);_.J=M6.prototype;_.J.computeSelected=function(R){return R==null?void 0:R.selected};
_.J.computeTransform=function(R,y,u){var v,Q,M=(Q=(v=this.imageContainer)==null?void 0:v.getBoundingClientRect())!=null?Q:{width:0,height:0};v=Math.max(M.width/y,M.height/u);u=u*v*R.top;return"translateX("+this.getSignedPosition(y*v*R.left,"X","-")+") translateY("+this.getSignedPosition(u,"Y","-")+")"};
_.J.getSignedPosition=function(R,y,u){return y==="X"&&_.EB("HTML_DIR")==="rtl"?u==="-"?R+"px":R*-1+"px":u==="-"?R*-1+"px":R+"px"};
_.J.onClick=function(){var R;_.Ko(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(R=this.data)==null?void 0:R.image)};
_.J.onKeyPress=function(R){if(R.keyCode===13)this.onClick()};
_.RR.Object.defineProperties(M6.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var R,y;return((R=this.data)==null?void 0:(y=R.image)==null?void 0:y.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.data)!=null&&R.image){var y;R=(y=this.data)==null?void 0:y.image;return R.previewCoordinates.top!==0||R.previewCoordinates.left!==0?(y=this.computeTransform(R.previewCoordinates,R.naturalWidth,R.naturalHeight),R.naturalHeight>=R.naturalWidth?"width:inherit;transform:"+y+";":"height:inherit;transform:"+y+";"):R.naturalHeight>=R.naturalWidth?"width:inherit;":"height:inherit;"}}}});
M6.prototype.onKeyPress=M6.prototype.onKeyPress;_.A([_.O7(".image-container"),_.p("design:type",HTMLElement)],M6.prototype,"imageContainer",void 0);_.A([_.r(),_.p("design:type",Object)],M6.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.p("design:type",Object)],M6.prototype,"selected",void 0);_.A([_.G("data.image"),_.p("design:type",Object),_.p("design:paramtypes",[])],M6.prototype,"thumbnailUrl",null);
_.A([_.G("data.image","data.image.previewCoordinates"),_.p("design:type",Object),_.p("design:paramtypes",[])],M6.prototype,"thumbnailStyle",null);_.A([_.fu("keypress"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],M6.prototype,"onKeyPress",null);_.A([_.q({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],M6);
_.m(M6,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(kki!==void 0)return kki;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return kki=R},{mode:2});var JK=function(R,y,u){u=u===void 0?!1:u;_.nT.call(this);var v=this;this.dropZoneOverlay=new xW(R);this.selectOverlay=u?new Be(y,"multiple_file",["image/*"]):new Be(y,"single_file",["image/*"]);this.handler=new _.V9(this);_.bx(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(y,"click",function(){v.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.O(JK,_.nT);JK.prototype.onChange=function(R){var y;(y=R.files)!=null&&y.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:R.files}))};var VD=function(){var R=_.W.apply(this,arguments)||this;R.addImageErrorMessage="";R.errorMessage="";R.images=[];R.selectedImageIndex=0;R.modern=_.f("web_modern_buttons");R.maxNumImagesPerPost=_.JT("max_num_images_per_post_web_ui");R.JSC$15593_imageId=0;return R};
_.O(VD,_.W);_.J=VD.prototype;_.J.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.Ko(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.J.observeDragToReorder=function(){var R=this;if(this.showImagesPreview){var y,u=pSV(_.Ii.getInstance(),(y=this.data)==null?void 0:y.dragToReorderTooltip);_.WG.addLowPriorityJob(function(){_.wr(R.hostElement,u,R.thumbnailDragDropArea)})}};
_.J.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}}};
_.J.computeThumbnail=function(R){return(R==null?void 0:R.localImageSrc)||void 0};
_.J.onRendererstamperFinished=function(){_.$mw(this.ytReorderableBehavior,_.hw(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.hw(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.J.handleDrop=function(R){var y=R.currDragItem;if(y!=null&&y.data){R=this.images[this.selectedImageIndex];var u=y.data.image,v=this.images.indexOf(u)||0;y=_.EP(y.parentNode.children,y);this.images.splice(v,1);this.images.splice(y,0,u);this.images=[].concat(_.P$(this.images));this.selectedImageIndex=this.images.indexOf(R)}};
_.J.setUpImagePicker=function(){var R=this.imageUploadEndpoint;R&&R.imageValidationInfo&&(this.uploadManager=new yD(R.uploadUrl,R.channelId),this.initialPicker||(this.initialPicker=new JK(this.dropzone,this.selectLink,!0),_.E4(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new JK(this.addImageButtonContainer,this.addImageSelectButton),_.E4(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.E4(this.JSC$15593_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.E4(this.JSC$15593_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.E4(_.hw(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.J.detached=function(){this.initialPicker&&(_.Hc(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.Hc(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.J.onInitialSelectImages=function(R){var y=this;return _.I(function(u){return u.yield(y.onSelectImages(R,!1),0)})};
_.J.onAddImage=function(R){var y=this;return _.I(function(u){return u.yield(y.onSelectImages(R,!0),0)})};
_.J.onSelectImages=function(R,y){var u=this,v,Q,M,K,h,b,N,T,x,B,l,Z,P,k,E,D,z,c,a,L;return _.I(function(QG){switch(QG.nextAddress){case 1:y?u.addImageErrorMessage="":(u.images=[],u.errorMessage="");v=R.detail;Q=u.validateImages([].concat(_.P$(v)));if(Q!=="")return y?u.addImageErrorMessage=Q:u.errorMessage=Q,QG.return();M=[].concat(_.P$(v)).map(function(hz){return(new ut(u.maxAspectRatio,!1,!0)).transform(hz)});
return QG.yield(Promise.allSettled(M),2);case 2:K=QG.yieldResult,h=_.V(K.entries()),b=h.next();case 3:if(b.done){QG.jumpTo(5);break}N=b.value;T=_.V(N);x=T.next().value;B=T.next().value;l=x;Z=B;if(Z.status!=="fulfilled"){E=k=P=void 0;y?u.addImageErrorMessage=_.u7((P=u.data)==null?void 0:P.invalidError):u.errorMessage=u.errorMessage===""?_.u7((k=u.data)==null?void 0:k.invalidError):_.u7((E=u.data)==null?void 0:E.multiFileError);QG.jumpTo(4);break}D=Z.value;D.cropped&&_.Ko(u.hostElement,"yt-backstage-multi-image-cropped");
if(D.invalidAspectRatio){a=c=z=void 0;y?u.addImageErrorMessage=_.u7((z=u.data)==null?void 0:z.invalidAspectRatioError):u.errorMessage=u.errorMessage===""?_.u7((c=u.data)==null?void 0:c.invalidAspectRatioError):_.u7((a=u.data)==null?void 0:a.multiFileError);QG.jumpTo(4);break}return QG.yield(nNS(u.JSC$15593_imageId,R.detail[l],D.transformedData),8);case 8:L=QG.yieldResult,u.images.push(L),u.JSC$15593_imageId++;case 4:b=h.next();QG.jumpTo(3);break;case 5:if(u.errorMessage!==""||u.addImageErrorMessage!==
"")return QG.return();y?f$g(u.uploadManager,[u.images[u.images.length-1]]):f$g(u.uploadManager,u.images);u.images=[].concat(_.P$(u.images));u.selectedImageIndex=y?Math.max(u.images.length-1,0):0;_.Ko(u.hostElement,"yt-backstage-multi-image-select");_.f$(QG)}})};
_.J.onThumbnailClick=function(R){if(R=R.event_.detail)this.selectedImageIndex=this.images.indexOf(R)};
_.J.validateImages=function(R){if(R.length>this.maxNumImagesPerPost){var y;return _.u7((y=this.data)==null?void 0:y.multiImageExceedMaxImageCountError)}var u=1048576*this.maxFileSizeMb;R=R.filter(function(M){return M.size>u}).length;
if(R===0)return"";var v,Q;R=R>1?(v=this.data)==null?void 0:v.multiFileError:(Q=this.data)==null?void 0:Q.fileSizeError;return _.u7(R)};
_.J.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.P$(this.images));this.selectedImageIndex=0};
_.J.repositionImage=function(R){this.images[this.selectedImageIndex].previewCoordinates=R.event_.detail;this.images=[].concat(_.P$(this.images))};
_.J.getAllUploadStatuses=function(){var R=this,y,u,v,Q;return _.I(function(M){if(M.nextAddress==1)return M.yield(R.uploadManager.getAllUploadStatuses(),2);y=M.yieldResult;u=_.V(y);for(v=u.next();!v.done;v=u.next())if(Q=v.value,Q.encryptedBlobId===void 0)return M.return(eOg(R.uploadManager));return M.return(y)})};
_.J.hasImages=function(){return this.images.length>0};
_.J.cancel=function(){for(var R=this.uploadManager,y=_.V(R.imagesUploadData),u=y.next();!u.done;u=y.next())R.cancel(u.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.Ko(this.hostElement,"yt-backstage-multi-image-cancel")};
_.RR.Object.defineProperties(VD.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var R,y;return((R=this.imageUploadEndpoint)==null?void 0:(y=R.imageValidationInfo)==null?void 0:y.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var R,y;return((R=this.imageUploadEndpoint)==null?void 0:(y=R.imageValidationInfo)==null?void 0:y.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var R,y;if((R=this.data)==null?0:(y=R.icon)==null?0:y.iconType)return _.fk(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(y,u){return{renderer:{image:y,selected:u===R.selectedImageIndex}}})}}});
VD.prototype.setUpImagePicker=VD.prototype.setUpImagePicker;VD.prototype.onRendererstamperFinished=VD.prototype.onRendererstamperFinished;VD.prototype.observeDragToReorder=VD.prototype.observeDragToReorder;VD.prototype.observeAddImageError=VD.prototype.observeAddImageError;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],VD.prototype,"rendererStamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],VD.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.qGg),_.p("design:type",Object)],VD.prototype,"ytReorderableBehavior",void 0);_.A([_.O7("#dropzone"),_.p("design:type",HTMLElement)],VD.prototype,"dropzone",void 0);_.A([_.O7("#select-link"),_.p("design:type",HTMLElement)],VD.prototype,"selectLink",void 0);_.A([_.O7("#thumbnail-drag-drop-area"),_.p("design:type",HTMLElement)],VD.prototype,"thumbnailDragDropArea",void 0);_.A([_.O7("#add-image-button-container"),_.p("design:type",HTMLElement)],VD.prototype,"addImageButtonContainer",void 0);
_.A([_.O7("#add-image-button"),_.p("design:type",HTMLElement)],VD.prototype,"addImageSelectButton",void 0);_.A([_.O7("#image-preview-container"),_.p("design:type",Object)],VD.prototype,"JSC$15593_imagePreviewContainer",void 0);_.A([_.r(),_.p("design:type",Object)],VD.prototype,"addImageErrorMessage",void 0);_.A([_.r(),_.p("design:type",Object)],VD.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],VD.prototype,"errorMessage",void 0);
_.A([_.r(),_.p("design:type",Object)],VD.prototype,"imageUploadEndpoint",void 0);_.A([_.r(),_.p("design:type",Array)],VD.prototype,"images",void 0);_.A([_.r(),_.p("design:type",JK)],VD.prototype,"initialPicker",void 0);_.A([_.r(),_.p("design:type",JK)],VD.prototype,"addImagePicker",void 0);_.A([_.r(),_.p("design:type",yD)],VD.prototype,"uploadManager",void 0);_.A([_.r(),_.p("design:type",Object)],VD.prototype,"selectedImageIndex",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],VD.prototype,"modern",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],VD.prototype,"maxNumImagesPerPost",void 0);_.A([_.G("imageUploadEndpoint"),_.p("design:type",Number),_.p("design:paramtypes",[])],VD.prototype,"maxAspectRatio",null);_.A([_.G("imageUploadEndpoint"),_.p("design:type",Number),_.p("design:paramtypes",[])],VD.prototype,"maxFileSizeMb",null);
_.A([_.G("data.icon.iconType"),_.p("design:type",Object),_.p("design:paramtypes",[])],VD.prototype,"dropIcon",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],VD.prototype,"selectionCancel",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],VD.prototype,"previewCancel",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],VD.prototype,"dataForAddImageButton",null);
_.A([_.G("errorMessage"),_.p("design:type",String),_.p("design:paramtypes",[])],VD.prototype,"dropzoneClass",null);_.A([_.G("images"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],VD.prototype,"showImagesPreview",null);_.A([_.G("images"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],VD.prototype,"containMaxImages",null);_.A([_.e0("addImageErrorMessage"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],VD.prototype,"observeAddImageError",null);
_.A([_.e0("showImagesPreview"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],VD.prototype,"observeDragToReorder",null);_.A([_.G("images","selectedImageIndex"),_.p("design:type",Object),_.p("design:paramtypes",[])],VD.prototype,"selectedImageData",null);_.A([_.G("images","selectedImageIndex"),_.p("design:type",Array),_.p("design:paramtypes",[])],VD.prototype,"thumbnailRenderers",null);
_.A([_.fu("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],VD.prototype,"onRendererstamperFinished",null);_.A([_.e0("imageUploadEndpoint"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],VD.prototype,"setUpImagePicker",null);_.A([_.q({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],VD);
_.m(VD,"ytd-backstage-multi-image-select-renderer",function(){if(UD8!==void 0)return UD8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return UD8=R},{mode:1});var E45;var $Dw;var qSi;var iZ=function(){var R=_.W.apply(this,arguments)||this;R.boundCaptureFocus=function(y){R.onCaptureFocus(y)};
return R};
_.O(iZ,_.W);_.J=iZ.prototype;_.J.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.J.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.J.onCaptureFocus=function(R){_.u8(R).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.J.getIconType=function(R){return R?"yt-icons:"+R.toLowerCase():null};
_.J.onSelect=function(){var R;if((R=this.data)==null?0:R.onSelectCommand)if(_.f("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var y;((y=_.e(this.data.onSelectCommand.commandMetadata,_.QL))==null?0:y.url)?_.Ko(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.ua().resolve(_.jX).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.RR.Object.defineProperties(iZ.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.u7(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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],iZ.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],iZ.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],iZ.prototype,"data",void 0);_.A([_.O7("#item"),_.p("design:type",HTMLElement)],iZ.prototype,"item",void 0);_.A([_.G("data.label"),_.p("design:type",String),_.p("design:paramtypes",[])],iZ.prototype,"label",null);
_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],iZ.prototype,"value",null);_.A([_.q({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],iZ);
_.m(iZ,"ytd-privacy-dropdown-item-renderer",function(){if(qSi!==void 0)return qSi;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return qSi=R},{mode:1});var Ks=function(){var R=_.W.apply(this,arguments)||this;R.value="";R.label="";R.disabled=!1;return R};
_.O(Ks,_.W);_.J=Ks.prototype;_.J.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"}}}};
_.J.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.J.dataChanged=function(){this.reset()};
_.J.valueChanged=function(){var R;if(this.value&&(R=this.data)!=null&&R.entries){R=_.V(this.data.entries);for(var y=R.next();!y.done;y=R.next())if((y=this.getRendererForEntry(y.value))&&this.getItemRendererValue(y)===this.value){this.label=this.ytComponentBehavior.getSimpleString(y.label);break}}};
_.J.setInitialLabel=function(){if(this.data&&this.data.entries)for(var R=_.V(this.data.entries),y=R.next();!y.done;y=R.next())if(y=this.getRendererForEntry(y.value)){if(y.isSelected){this.label=this.ytComponentBehavior.getSimpleString(y.label);break}this.data.label&&(this.label=this.data.label)}};
_.J.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var R=_.V(this.data.entries),y=R.next();!y.done;y=R.next()){y=this.getRendererForEntry(y.value);var u=void 0;if((u=y)==null?0:u.isSelected)return this.getItemRendererValue(y)||-1}return-1};
_.J.getItemRendererValue=function(R){return"stringValue"in R||"int32Value"in R?R.stringValue||R.int32Value||null:null};
_.J.getRendererForEntry=function(R){return R.dropdownItemRenderer||R.privacyDropdownItemRenderer||R.navigationDropdownItemRenderer||null};
_.J.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.CQ("value-changed",this.value))};
_.J.updateValueFromBinding=function(R){this.value=R.detail.value};
Ks.prototype.valueChangedForBinding=Ks.prototype.valueChangedForBinding;Ks.prototype.valueChanged=Ks.prototype.valueChanged;Ks.prototype.dataChanged=Ks.prototype.dataChanged;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Ks.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Ks.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Ks.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],Ks.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],Ks.prototype,"value",void 0);_.A([_.r(),_.p("design:type",Object)],Ks.prototype,"label",void 0);_.A([_.O7("#entries"),_.p("design:type",Object)],Ks.prototype,"entries",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Ks.prototype,"disabled",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ks.prototype,"dataChanged",null);
_.A([_.GJ("value"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ks.prototype,"valueChanged",null);_.A([_.e0("value"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ks.prototype,"valueChangedForBinding",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],Ks);
_.m(Ks,"ytd-flat-dropdown-renderer",function(){if($Dw!==void 0)return $Dw;var R=document.createElement("template");_.H(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="EXPAND" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');R.content.insertBefore(_.t().content.cloneNode(!0),
R.content.firstChild);return $Dw=R},{mode:1});var XfV;var Id=function(){var R=_.W.apply(this,arguments)||this;R.quizOptions=[];R.explanationPlaceholderText="";R.optionPlaceholderText="";R.correctAnswerIndex=-1;R.isMarkAnswerTooltipShown=!1;R.timer=0;return R};
_.O(Id,_.W);_.J=Id.prototype;_.J.dataChanged=function(){this.optionPlaceholderText=_.u7(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.u7(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.J.onMarkCorrectAnswer=function(R){var y,u=((y=this.quizOptions[this.correctAnswerIndex])==null?void 0:y.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:u,isCorrect:!0});this.correctAnswerIndex=R.model.index;this.quizOptions=[].concat(_.P$(this.quizOptions))};
_.J.updatePlaceholderTexts=function(){for(var R=!1,y=[],u=0;u<this.quizOptions.length;u++){var v=this.optionPlaceholderText+" "+(u+1),Q=void 0;((Q=this.quizOptions[u])==null?void 0:Q.placeholderText)!==v?(R=!0,y.push(Object.assign({},this.quizOptions[u],{placeholderText:v}))):y.push(this.quizOptions[u])}R&&(this.quizOptions=y);this.isValid()?_.Ko(this.hostElement,"yt-commentbox-post-enable"):_.Ko(this.hostElement,"yt-commentbox-post-disable")};
_.J.getSimpleString=function(R){return _.u7(R)};
_.J.createQuizOptions=function(R){var y=[],u;R=(u=R==null?void 0:R.minQuizOptions)!=null?u:0;for(u=0;u<R;u++)y.push(this.createQuizOption());return y};
_.J.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.P$(this.quizOptions),[this.createQuizOption()]))};
_.J.onInput=function(){this.quizOptions=[].concat(_.P$(this.quizOptions))};
_.J.onExplanationInput=function(){_.Ko(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.J.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(_.P$(this.quizOptions));this.quizOptions.length===0&&_.Ko(this.hostElement,"yt-quiz-attachment-dismiss")};
_.J.updateHintRenderer=function(){var R=this;clearTimeout(this.timer);this.timer=setTimeout(function(){R.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.J.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,y=0,u=_.V(this.quizOptions),v=u.next();!v.done;v=u.next()){v=v.value;var Q=void 0;if(((Q=v.optionText)==null?void 0:Q.trim())!==""||v.isCorrect){v.isCorrect&&y++;Q=void 0;if(this.hasCustomOptionText&&((Q=v.optionText)==null?void 0:Q.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;R++}}return R>=
Number(this.editorInfo.minQuizOptions)&&y===1};
_.J.getPostCreateOptions=function(){for(var R=[],y=_.V(this.quizOptions),u=y.next();!u.done;u=y.next()){u=u.value;var v=void 0;((v=u.optionText)==null?void 0:v.trim())!==""&&R.push({pollOption:{text:u.optionText,explanation:u.explanationText},isCorrect:u.isCorrect})}return R};
_.J.getExplanationText=function(){var R;return((R=this.quizOptions[this.correctAnswerIndex])==null?void 0:R.explanationText)||""};
_.J.maybeDisplayMarkAnswerEduToolTip=function(){var R,y,u,v,Q,M,K;this.shouldShowMarkAnswerTooltip()&&((R=this.editorInfo)==null?0:(y=R.markAnswerButton)==null?0:(u=y.buttonRenderer)==null?0:(v=u.hint)==null?0:(Q=v.hintRenderer)==null?0:(M=Q.content)==null?0:(K=M.bubbleHintRenderer)==null?0:K.text)&&(_.Ii.getInstance(),R=hn(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&&_.O4(R[0],this.optionSelectors[0]))};
_.J.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var R=0,y=_.V(this.quizOptions),u=y.next();!u.done;u=y.next()){u=u.value;var v=void 0;((v=u.optionText)==null?void 0:v.trim())!==""&&R++;if(u.isCorrect)return!1}return R<2?!1:!0};
_.J.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.J.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.J.updateOptionTextFromBinding=function(R){if(R.target){var y=Array.from(_.hw(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(R.target);if(y>=0){var u;this.quizOptions[y].optionText=(u=R.detail.value)!=null?u:""}}};
_.RR.Object.defineProperties(Id.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var R,y,u=(R=this.editorInfo)==null?void 0:(y=R.addOptionButton)==null?void 0:y.buttonRenderer;u&&(u.style="STYLE_SUGGESTIVE",u.size="SIZE_SMALL",u.isDisabled=!this.isAllowedToAddOption);return(u==null?0:u.text)?u:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var R,y;return this.quizOptions.length<((y=(R=this.editorInfo)==null?void 0:R.maxQuizOptions)!=null?y:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(R){var y;return(y=R.optionText)==null?void 0:y.trim()})}}});
Id.prototype.updatePlaceholderTexts=Id.prototype.updatePlaceholderTexts;Id.prototype.dataChanged=Id.prototype.dataChanged;_.A([_.r(),_.p("design:type",Object)],Id.prototype,"editorInfo",void 0);_.A([_.r(),_.p("design:type",Array)],Id.prototype,"quizOptions",void 0);_.A([_.r(),_.p("design:type",Object)],Id.prototype,"explanationPlaceholderText",void 0);_.A([_.ZV(".option-selector-button"),_.p("design:type",Array)],Id.prototype,"optionSelectors",void 0);
_.A([_.GJ("editorInfo"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Id.prototype,"dataChanged",null);_.A([_.G("editorInfo","isAllowedToAddOption","quizOptions"),_.p("design:type",Object),_.p("design:paramtypes",[])],Id.prototype,"addAnswerButton",null);_.A([_.G("editorInfo","quizOptions"),_.p("design:type",Object),_.p("design:paramtypes",[])],Id.prototype,"isAllowedToAddOption",null);
_.A([_.GJ("quizOptions"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Id.prototype,"updatePlaceholderTexts",null);_.A([_.G("quizOptions"),_.p("design:type",Object),_.p("design:paramtypes",[])],Id.prototype,"hasCustomOptionText",null);_.A([_.q({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],Id);
_.m(Id,"ytd-backstage-quiz-editor-renderer",function(){if(XfV!==void 0)return XfV;var R=document.createElement("template");_.H(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-checked="[[item.isCorrect]]" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" role="radio" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');R.content.insertBefore(_.t().content.cloneNode(!0),
R.content.firstChild);return XfV=R},{mode:2});var mD5;var AbV=(r$.FIRSTDAYOFWEEK+1)%7;var DDK;var pfb=[],tPg=0,cbK=0;tPg=0;cbK=24;if(.25*(cbK-tPg)<0)DDK=[];else{for(var a$G=tPg;a$G<cbK;a$G+=.25)pfb.push(a$G);DDK=pfb}var SS5=DDK.map(function(R){R=R*60*60;return{secondsSinceMidnight:R,text:(new gN(7)).format(new Date(0,0,0,0,0,R))}});var YS5;var hK=function(){var R=_.W.apply(this,arguments)||this;R.skipNextOpenDialog=!1;R.errorMessage="";R.previousMonthLabel=_.fo("PREVIOUS_MONTH_LABEL");R.nextMonthLabel=_.fo("NEXT_MONTH_LABEL");return R};
_.O(hK,_.W);_.J=hK.prototype;_.J.attached=function(){var R=this,y=new MutationObserver(function(){R.JSC$15636_calendarMain.scrollHeight>0&&(y.disconnect(),R.calendarConfig&&R.calendarConfig.selectedDate&&R.scrollToDate())});
y.observe(this.JSC$15636_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){y.disconnect()},1E3)};
_.J.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.J.onDateTextChange=function(){if(this.calendarConfig){var R=this.validateDateText();R.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(R.details)):this.textbox.setAttribute("invalid","")}};
_.J.handleDayClick=function(R){R.model.day.date&&(this.commitDate(R.model.day.date),this.dialog.close())};
_.J.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var R=Xh4(this.calendarConfig.selectedDate,this.renderData);R!==void 0&&this.JSC$15636_calendarMain.scrollToIndex(R)}};
_.J.scrollToNextMonth=function(){this.JSC$15636_calendarMain.scrollToIndex(this.JSC$15636_calendarMain.firstVisibleIndex+1)};
_.J.scrollToPrevMonth=function(){this.JSC$15636_calendarMain.firstVisibleIndex===0&&this.JSC$15636_calendarMain.scrollTo(0,0);this.JSC$15636_calendarMain.scrollToIndex(this.JSC$15636_calendarMain.firstVisibleIndex-1)};
_.J.onFormSubmit=function(R){R.preventDefault();this.calendarConfig&&(R=this.validateDateText(),R.isValid&&(this.commitDate(R.details),this.dialog.close()))};
_.J.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 y=0;y<this.dropdownButton.children.length;y++)this.dropdownButton.children[y]===R&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}R=this.textbox.value!==this.dateText;y=this.validateDateText();R&&y.isValid&&this.commitDate(y.details);this.dialog.close();this.textbox.value=
this.dateText};
_.J.commitDate=function(R){this.calendarConfig&&(this.set("calendarConfig.selectedDate",R),_.Ko(this.hostElement,"ytd-calendar-date-selected",R))};
_.J.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var R=this.textbox.value;var y=new Date;R=(new Q4E(2)).parse(R,y,{validate:!0})===R.length?$9G(y):void 0;if(!R)return this.errorMessage=_.fo("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};y=this.calendarConfig.start;var u=this.calendarConfig.end;if(WLE(R,y))return this.errorMessage=_.fo("ENTER_DATE_OR_LATER",{allowed_date:ENO(y)}),{isValid:!1,details:void 0};if(WLE(u,R))return this.errorMessage=
_.fo("ENTER_DATE_OR_EARLIER",{allowed_date:ENO(u)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:R}};
_.RR.Object.defineProperties(hK.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?ENO(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var R=this.calendarConfig,y=[],u=0;u<7;u++)y.push(r$.NARROWWEEKDAYS[(u+AbV)%7]);u=[];for(var v=new Date(R.start.year,R.start.month);v.getFullYear()<R.end.year||v.getFullYear()===R.end.year&&v.getMonth()<=R.end.month;){var Q=u,M=Q.push,K=v.getFullYear(),h=v.getMonth(),b=R,N=void 0,T=[],x=Object.freeze({extraCssClass:"invisible",debugClass:""}),B=new Date(K,h),l=$9G(B);B=B.getDay();for(var Z=$9G(new Date);l.month===
h;){B!==AbV&&N||(N=Array.from({length:7}).fill(x),T.push(N));var P={date:{year:K,month:h,day:l.day},extraCssClass:"",debugClass:""};b.selectedDate&&P.date&&P4T(P.date,b.selectedDate)&&(P.extraCssClass+=" selected");if(WLE(l,b.start)||WLE(b.end,l))P.extraCssClass+=" disabled";P4T(l,Z)&&(P.extraCssClass+=" today");P.extraCssClass=P.extraCssClass.trim();N[(B-AbV+7)%7]=P;l=U94(l);B=(B+1)%7}M.call(Q,{weeks:T,monthLabel:r$.SHORTMONTHS[h]+" "+K,year:K,month:h,monthLabelExtraCssClass:T[0][2]===x?"shift-down-label":
""});v.setMonth(v.getMonth()+1)}return{months:u,daysOfWeekLabel:y}}}}});
hK.prototype.onEscOrClickingOutside=hK.prototype.onEscOrClickingOutside;hK.prototype.scrollToDate=hK.prototype.scrollToDate;_.A([_.r(),_.p("design:type",Object)],hK.prototype,"calendarConfig",void 0);_.A([_.r(),_.p("design:type",Object)],hK.prototype,"skipNextOpenDialog",void 0);_.A([_.r(),_.p("design:type",Object)],hK.prototype,"errorMessage",void 0);_.A([_.r(),_.p("design:type",Object)],hK.prototype,"previousMonthLabel",void 0);
_.A([_.r(),_.p("design:type",Object)],hK.prototype,"nextMonthLabel",void 0);_.A([_.O7("#textbox"),_.p("design:type",HTMLInputElement)],hK.prototype,"textbox",void 0);_.A([_.O7("#calendar-dialog"),_.p("design:type",Object)],hK.prototype,"dialog",void 0);_.A([_.O7("#calendar-main"),_.p("design:type",Object)],hK.prototype,"JSC$15636_calendarMain",void 0);_.A([_.O7("#date-picker"),_.p("design:type",HTMLElement)],hK.prototype,"dropdownButton",void 0);
_.A([_.G("calendarConfig.selectedDate"),_.p("design:type",String),_.p("design:paramtypes",[])],hK.prototype,"dateText",null);_.A([_.G("calendarConfig","calendarConfig.selectedDate"),_.p("design:type",Object),_.p("design:paramtypes",[])],hK.prototype,"renderData",null);_.A([_.e0("renderData","calendarConfig.selectedDate"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hK.prototype,"scrollToDate",null);
_.A([_.fu("iron-overlay-canceled"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],hK.prototype,"onEscOrClickingOutside",null);_.A([_.pu({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],hK);
_.m(hK,"ytd-calendar-date-picker",function(){if(YS5!==void 0)return YS5;var R=document.createElement("template");_.H(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="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" label="[[previousMonthLabel]]" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" label="[[nextMonthLabel]]" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');R.content.insertBefore(_.t().content.cloneNode(!0),
R.content.firstChild);return YS5=R},{mode:2});var LoV=_.fo("UTC_OFFSET_FORMAT",{utc_offset:(new gN("Z")).format(new Date)}),sjV=(new Date).getTimezoneOffset()*-60,zOi=new Date,g4c,CCc=zI(zOi.getTimezoneOffset());g4c=q75(mz5(CCc,zOi));var RrL=_.fo("LOCAL_TIME_GMT_LABEL",{gmt_text:g4c.replace("+0","+").replace("-0","-").replace(":00","")}),bZ=function(){var R=_.W.apply(this,arguments)||this;R.selectedTimeIndex=0;R.selectedTimezoneIndex=0;R.timeOfDayOptions=SS5;return R};
_.O(bZ,_.W);_.J=bZ.prototype;_.J.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var R=kyv();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=R,this.selectedTimeIndex=0;else{var y=qQG(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},R,{selectedDate:y.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(u){return u.secondsSinceMidnight===y.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.J.onDatePicked=function(R){this.selectedDate=R.detail};
_.J.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.Ko(this.hostElement,"ytd-date-time-selection-cancelled")};
_.J.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var R=this.selectedDate;R=new Date(R.year,R.month,R.day);_.Ko(this.hostElement,"ytd-date-time-selection-update",Math.floor(R.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+R.getTimezoneOffset()*60))}};
_.J.getTimezoneFormat=function(R){return R.localizedDisplayText?R.localizedDisplayText:_.fo("TIMEZONE_FORMAT",{utc_offset_text:""+R.localizedUtcOffset,city_name:""+R.localizedName})};
_.J.updateSelectedTimeIndexFromBinding=function(R){this.selectedTimeIndex=R.detail.value};
_.J.updateSelectedTimezoneIndexFromBinding=function(R){this.selectedTimezoneIndex=R.detail.value};
_.RR.Object.defineProperties(bZ.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var R=this.data.timezoneOptions;var y={name:"Etc/Unknown",localizedName:_.fo("LOCAL_TIME_LABEL"),localizedUtcOffset:LoV,utcOffsetSec:""+sjV,localizedDisplayText:RrL};R?R.length&&R[0].name!==y.name&&(R[0].localizedDisplayText||(y.localizedDisplayText=""),R.unshift(y)):R=[y];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]}}});
bZ.prototype.onDateTimeTimezoneChange=bZ.prototype.onDateTimeTimezoneChange;bZ.prototype.onDatePicked=bZ.prototype.onDatePicked;bZ.prototype.updateDefaultSelectedValue=bZ.prototype.updateDefaultSelectedValue;_.A([_.r(),_.p("design:type",Object)],bZ.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],bZ.prototype,"calendarConfig",void 0);_.A([_.r(),_.p("design:type",Object)],bZ.prototype,"selectedDate",void 0);_.A([_.r(),_.p("design:type",Object)],bZ.prototype,"selectedTimeIndex",void 0);
_.A([_.r(),_.p("design:type",Object)],bZ.prototype,"selectedTimezoneIndex",void 0);_.A([_.O7("#time-listbox"),_.p("design:type",Object)],bZ.prototype,"timeListBox",void 0);_.A([_.O7("#timezone-listbox"),_.p("design:type",Object)],bZ.prototype,"timezoneListBox",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],bZ.prototype,"rendererStamperBehavior",void 0);_.A([_.G("data.timezoneOptions"),_.p("design:type",Object),_.p("design:paramtypes",[])],bZ.prototype,"timeZones",null);
_.A([_.GJ("data","timeZones"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bZ.prototype,"updateDefaultSelectedValue",null);_.A([_.G("selectedTimezoneIndex","timeZones"),_.p("design:type",Object),_.p("design:paramtypes",[])],bZ.prototype,"selectedTimezone",null);_.A([_.G("selectedTimeIndex"),_.p("design:type",Object),_.p("design:paramtypes",[])],bZ.prototype,"selectedTime",null);
_.A([_.fu("ytd-calendar-date-selected"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],bZ.prototype,"onDatePicked",null);_.A([_.e0("selectedTimezone","selectedTime","selectedDate"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bZ.prototype,"onDateTimeTimezoneChange",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],bZ);
_.m(bZ,"ytd-date-time-picker-renderer",function(){if(mD5!==void 0)return mD5;var R=document.createElement("template");_.H(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="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
R.content.insertBefore(_.t().content.cloneNode(!0),R.content.firstChild);return mD5=R},{mode:1});var yC5;var FX=function(){var R=_.W.apply(this,arguments)||this;R.boundOnTapDismissButton=function(){R.dismissTapHandler()};
R.dismissButtonOverrides={size:"XS"};return R};
_.O(FX,_.W);FX.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}}}}}};
FX.prototype.dismissTapHandler=function(){_.Ko(this.hostElement,"yt-backstage-attachment-dismissed")};
FX.prototype.computeAttachmentType=function(R){return R?R.backstageImageRenderer?"image":R.videoRenderer?"video":"none":"none"};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],FX.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],FX.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],FX.prototype,"attachmentPreview",void 0);_.A([_.r(),_.p("design:type",Object)],FX.prototype,"dismissButton",void 0);_.A([_.r(),_.p("design:type",Object)],FX.prototype,"boundOnTapDismissButton",void 0);
_.A([_.r(),_.p("design:type",Object)],FX.prototype,"dismissButtonOverrides",void 0);_.A([_.r({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.p("design:type",String)],FX.prototype,"attachmentType",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],FX);
_.m(FX,"ytd-backstage-dismissable-attachment",function(){if(yC5!==void 0)return yC5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return yC5=R},{mode:1});var uG5;var w_=function(){var R=_.W.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};
_.O(w_,_.W);_.J=w_.prototype;_.J.onServiceRequestCompleted=function(R){R.stopPropagation()};
_.J.handleAddVideoPreviewAction=function(R){R=this.get("addVideoPreviewAction",R);this.onGetVideoPreviewSuccess(R)};
_.J.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}}}}}};
_.J.onLaunchVideoPicker=function(R){var y=this,u=_.u7(this.get("addVideoLinkAction.title",R)),v=this.get("addVideoLinkAction.onePickHostId",R);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",R);v&&(this.picker||(u=_.WiK(_.x$W(v).setTitle(u).addView(nz5()).addView(HJK()),function(Q){y.onPickVideo(Q)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",R)||u.addView("youtube"),this.picker=u.build()),this.picker.setVisible(!0))};
_.J.onPickVideo=function(R){if(R)if(R.action==="cancel")_.Ko(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()}};
_.J.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.")};
_.J.onGetVideoPreviewSuccess=function(R){if(R&&R.videoPreview&&R.cancelButton)this.videoPreview=R.videoPreview,this.cancelButton=R.cancelButton,_.Ko(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.J.onGetVideoPreviewError=function(){this.cancel()};
_.J.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.Ko(this.hostElement,"yt-video-link-cancel")};
_.J.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
w_.prototype.onServiceRequestCompleted=w_.prototype.onServiceRequestCompleted;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],w_.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],w_.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],w_.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],w_.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],w_.prototype,"videoPreview",void 0);_.A([_.r(),_.p("design:type",Object)],w_.prototype,"cancelButton",void 0);_.A([_.r(),_.p("design:type",Object)],w_.prototype,"getVideoPreviewCommand",void 0);_.A([_.r(),_.p("design:type",Object)],w_.prototype,"dismissButtonOverrides",void 0);
_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],w_.prototype,"onServiceRequestCompleted",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],w_);
_.m(w_,"ytd-backstage-video-link-attachment",function(){if(uG5!==void 0)return uG5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return uG5=R},{mode:1});var vpc;var Qoc;var joL;var N6=function(){return _.W.apply(this,arguments)||this};
_.O(N6,_.W);N6.prototype.dataChanged=function(){this.active=!1};
N6.prototype.onTap=function(){_.Ko(this.hostElement,"yt-select-emoji-suggestion",this.data)};
N6.prototype.identity=function(R){return R};
_.RR.Object.defineProperties(N6.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var R,y,u,v;if((R=this.data)==null?0:(y=R.image)==null?0:(u=y.thumbnails)==null?0:(v=u[0])==null?0:v.url)return R=this.data.image.thumbnails[0].url,R.startsWith("data:image/svg+xml")?nK(R):_.Eo(R)}}});
N6.prototype.dataChanged=N6.prototype.dataChanged;_.A([_.r(),_.p("design:type",Object)],N6.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],N6.prototype,"active",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],N6.prototype,"dataChanged",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],N6.prototype,"imageSrc",null);
_.A([_.q({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],N6);
_.m(N6,"ytd-emoji-suggestion",function(){if(joL!==void 0)return joL;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return joL=R},{mode:1});var MRY=/.*([:@#].*?)$/,T4=function(){var R=_.W.apply(this,arguments)||this;R.suggestions=[];R.suggestionIndex=-1;R.JSC$15664_lastSuggestionRange=null;return R};
_.O(T4,_.W);_.J=T4.prototype;_.J.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.J.getSuggestions=function(R){var y=[],u=XIK(this.emojiManager,R.substr(0,3));if(u)for(var v in u)if(v.toLocaleLowerCase().indexOf(R)===0){var Q=u[v];if(Q&&Q.emojiId){Q=Y1(this.emojiManager,Q.emojiId);var M=void 0,K=void 0,h=void 0,b=void 0,N=((M=Q)==null?0:M.isCustomEmoji)?(K=Q)==null?void 0:(h=K.shortcuts)==null?void 0:h[0]:(b=Q)==null?void 0:b.emojiId;M=void 0;y.push({suggestion:{image:(M=Q)==null?void 0:M.image,alt:N,text:v}});if(y.length>=64)break}}return y?y.sort(function(T,x){return x.suggestion.text<
T.suggestion.text?-1:x.suggestion.text===T.suggestion.text?0:1}):null};
_.J.insertSuggestion=function(R){_.Ko(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15664_lastSuggestionRange,text:R.alt});this.dropdown.opened=!1};
_.J.updateSuggestionsAtCaret=function(R){this.updateSuggestions(R,this.retrieveTextBeforeRange(R))};
_.J.offsetStartOfRangeBy=function(R,y){R.startOffset>=y&&R.setStart(R.startContainer,R.startOffset-y)};
_.J.updateSuggestions=function(R,y){var u=this;this.JSC$15664_lastSuggestionRange&&(this.JSC$15664_lastSuggestionRange.detach(),this.JSC$15664_lastSuggestionRange=null);if((y=MRY.exec(y))&&y.length&&(y=y[y.length-1].toLocaleLowerCase(),y.length>2||y===":_")&&(this.offsetStartOfRangeBy(R,y.length),this.JSC$15664_lastSuggestionRange=R,(R=this.getSuggestions(y))&&R.length)){this.suggestions=R;_.gn(this,function(){u.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};
_.J.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()}};
_.J.onKeyUp=function(R,y){switch(R.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(y);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(y)}};
_.J.onKeyPress=function(R){R.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),R.preventDefault())};
_.J.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)};
_.J.retrieveTextBeforeRange=function(R){var y=R.startContainer;return y&&y.nodeType===Node.TEXT_NODE?y.textContent.substr(0,R.startOffset):""};
T4.prototype.onKeyPress=T4.prototype.onKeyPress;T4.prototype.onKeyUp=T4.prototype.onKeyUp;T4.prototype.onKeyDown=T4.prototype.onKeyDown;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],T4.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Array)],T4.prototype,"suggestions",void 0);_.A([_.r(),_.p("design:type",_.aJ)],T4.prototype,"emojiManager",void 0);_.A([_.r(),_.p("design:type",Number)],T4.prototype,"verticalSuggestionsOffset",void 0);
_.A([_.O7("#dropdown"),_.p("design:type",Object)],T4.prototype,"dropdown",void 0);_.A([_.O7("#dropdown-content"),_.p("design:type",HTMLDivElement)],T4.prototype,"dropdownContent",void 0);_.A([_.fu("keydown"),_.p("design:type",Function),_.p("design:paramtypes",[KeyboardEvent]),_.p("design:returntype")],T4.prototype,"onKeyDown",null);_.A([_.fu("keyup"),_.p("design:type",Function),_.p("design:paramtypes",[KeyboardEvent,Range]),_.p("design:returntype")],T4.prototype,"onKeyUp",null);
_.A([_.fu("keypress"),_.p("design:type",Function),_.p("design:paramtypes",[KeyboardEvent]),_.p("design:returntype")],T4.prototype,"onKeyPress",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-emoji-input"})],T4);
_.m(T4,"ytd-emoji-input",function(){if(Qoc!==void 0)return Qoc;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Qoc=R},{mode:2});var JC5;var od=function(){var R=_.W.apply(this,arguments)||this;R.hasMaxOptions=!1;return R};
_.O(od,_.W);_.J=od.prototype;_.J.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.J.setPrefilledChoices=function(R){var y=this;this.set("pollOptions",[]);var u;for(u=0;u<Math.min(R.length,this.data.maxPollOptions);u++)this.push("pollOptions",R[u].substring(0,this.data.maxPollOptionChars));for(;u<this.data.minPollOptions;u++)this.push("pollOptions","");this.hasMaxOptions=u>=this.data.maxPollOptions;_.gn(this,function(){for(var v=y.pollOptions,Q=_.hw(y.hostElement).querySelectorAll(".poll-option-input"),M=0;M<Q.length;M++)Q[M].value=v[M]})};
_.J.focusChanged=function(){_.oX(this.hostElement)};
_.J.onInput=function(){var R=this;_.zJ(this,"onInput",function(){R.isValid()?_.Ko(R.hostElement,"yt-commentbox-post-enable"):_.Ko(R.hostElement,"yt-commentbox-post-disable")},300)};
_.J.setPollOptions=function(){var R=[],y,u=((y=this.data)==null?0:y.minPollOptions)?this.data.minPollOptions:0;for(y=0;y<u;y++)R.push("");return R};
_.J.addPollOption=function(){var R=this;_.Ko(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.WG.addLowPriorityJob(function(){var y;(y=_.hw(R.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||y.focus()})};
_.J.onRemovePollOption=function(R){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.Ko(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(),_.Ko(this.hostElement,"yt-commentbox-post-enable"))))};
_.J.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.J.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var R=0,y=this.pollOptions.length;R<y;R++)if(this.pollOptions[R].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.J.getPollOptions=function(){return this.pollOptions};
_.J.setPollOptionsFromInputs=function(){for(var R=_.hw(this.hostElement).querySelectorAll(".poll-option-input"),y=0;y<R.length;y++)this.pollOptions[y]=R[y].value.trim()};
_.J.clearPollOptions=function(){var R=_.hw(this.hostElement).querySelectorAll(".poll-option-input");R=_.V(R);for(var y=R.next();!y.done;y=R.next())y.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.J.getSimpleString=function(R){return _.u7(R)};
_.J.updateValueFromBinding=function(R){if(R.target&&this.pollOptions){var y=Array.from(_.hw(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(R.target);if(y>=0){var u;this.pollOptions[y]=(u=R.detail.value)!=null?u:"";this.notifyPath("pollOptions."+y)}}};
od.prototype.dataChanged=od.prototype.dataChanged;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],od.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],od.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Array)],od.prototype,"pollOptions",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],od.prototype,"hasMaxOptions",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],od.prototype,"enableCreationBox",void 0);
_.A([_.O7("#repeat"),_.p("design:type",XN)],od.prototype,"repeat",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],od.prototype,"dataChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-poll-attachment"})],od);
_.m(od,"ytd-poll-attachment",function(){if(JC5!==void 0)return JC5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return JC5=R},{mode:2});var VRc;var iOw;var KAG;var IS8;var xq=function(){return _.W.apply(this,arguments)||this};
_.O(xq,_.W);_.RR.Object.defineProperties(xq.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],xq.prototype,"rendererBehaviors",void 0);_.A([_.r(),_.p("design:type",Object)],xq.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],xq.prototype,"focused",void 0);_.A([_.r({reflectToAttribute:!0}),_.G("focused"),_.p("design:type",Object),_.p("design:paramtypes",[])],xq.prototype,"ariaSelected",null);_.A([_.pu({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],xq);
_.m(xq,"yt-user-mention-suggestion-renderer",function(){if(IS8===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;KAG===void 0&&(KAG=document.createElement("template"));var v=KAG;u.call(y,v.content.cloneNode(!0),R.content.firstChild);IS8=R}R=IS8;return R},{mode:2});var hr8;var bOb;var Bv=function(){var R=_.W.apply(this,arguments)||this;R.focusedSuggestionIndex=-1;return R};
_.O(Bv,_.W);_.J=Bv.prototype;_.J.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.J.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.J.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))};
_.J.advanceSuggestion=function(R){this.focusedSuggestionIndex===-1||R!==-1&&R!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+R),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.J.ensureSuggestionVisible=function(R){R=this.getSuggestionId(R);R=_.hw(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))};
_.J.getSuggestionId=function(R){return"user-mention-suggestion-"+R};
_.J.onSuggestionTap=function(R){var y=_.e(R.model.item,PtV);this.ytRendererBehavior.logExplicitClick(y);_.Ko(this.hostElement,"yt-user-mention-suggestion-selected",{data:y,index:R.model.index})};
_.J.onSuggestionMouseMove=function(R){R.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(R.model.index)};
_.J.isSuggestionFocused=function(R,y){return R===y};
_.J.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.J.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.CQ("focused-suggestion-id-changed",this.focusedSuggestionId))};
Bv.prototype.focusedSuggestionIdChangedForBinding=Bv.prototype.focusedSuggestionIdChangedForBinding;Bv.prototype.onDomChange=Bv.prototype.onDomChange;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Bv.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Bv.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],Bv.prototype,"focusedSuggestionIndex",void 0);_.A([_.r({readOnly:!0}),_.p("design:type",String)],Bv.prototype,"focusedSuggestionId",void 0);
_.A([_.fu("dom-change"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Bv.prototype,"onDomChange",null);_.A([_.e0("focusedSuggestionId"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Bv.prototype,"focusedSuggestionIdChangedForBinding",null);_.A([_.pu({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],Bv);
_.m(Bv,"yt-user-mention-suggestions-dropdown",function(){if(bOb===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;hr8===void 0&&(hr8=document.createElement("template"));var v=hr8;u.call(y,v.content.cloneNode(!0),R.content.firstChild);bOb=R}R=bOb;return R},{mode:2});var eA=function(){var R=_.W.apply(this,arguments)||this;R.suggestionsResponse=null;R.activeMention=null;R.selectionChangeListener=R.onSelectionChange.bind(R);R.handlesEnabled=_.f("enable_handles_in_mention_suggest_posts");R.handlesInMentionSuggestionsEnabled=_.f("handles_in_mention_suggest_posts");R.zeroPrefixMentionSuggestionEnabled=_.f("enable_zero_prefix_mention_suggestion_web");R.pendingQuery=null;R.flowNonce=null;return R};
_.O(eA,_.W);_.J=eA.prototype;_.J.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.J.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.J.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.J.hasSuggestions=function(R){return!!(R&&R.suggestions&&R.suggestions.length>0)};
_.J.onInput=function(){var R=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var y=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),u=this.activeMention.JSC$11263_getText().slice(-1)===" ",v=this.activeMention.JSC$11263_getText().slice(-2,-1)===" ",Q="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11263_getText().slice(-2,
-1))>=0;Q=this.zeroPrefixMentionSuggestionEnabled&&Q;if(this.activeMention.isCollapsed()||(y||v||Q)&&u)this.cancelActiveMention();else{var M=this.activeMention.JSC$11263_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.zJ(this,"requestSuggestions",function(){R.requestSuggestions(M)},100)}}}};
_.J.onServiceRequestSent=function(R){R.stopPropagation()};
_.J.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))};
_.J.onServiceRequestError=function(R){R.stopPropagation()};
_.J.onUserMentionSuggestionSelected=function(R){this.selectSuggestion(R.detail.data,R.detail.index)};
_.J.onSelectionChange=function(){if(this.activeMention){var R=_.Oz(),y=this.activeMention.JSC$11263_containsRange(R);R=R&&this.containsHelper(this.dropdown,R.getContainer());y||R||this.cancelActiveMention()}};
_.J.containsHelper=function(R,y){var u;if(((u=window.ShadyDOM)==null?void 0:u.noPatch)===!0)return R.contains(y);for(;y;){if(y===R)return!0;y=y instanceof ShadowRoot?y.host:y.parentNode}return!1};
_.J.maybeStartSuggest=function(){var R=_.Oz();if(R&&R.isCollapsed()){var y=R.JSC$11263_getStartNode(),u=R.JSC$11263_getStartOffset();if(y instanceof Text&&!(u<1)){var v=y.textContent;!(v=v&&v.charAt(u-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(v)<0||(this.activeMention=_.cb(y,u-1,R.JSC$11263_getEndNode(),R.JSC$11263_getEndOffset()),this.flowNonce=Uf(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.J.updateActiveMention=function(){if(this.activeMention){var R=_.Oz();R&&R.isCollapsed()&&(this.activeMention=_.cb(this.activeMention.JSC$11263_getStartNode(),this.activeMention.JSC$11263_getStartOffset(),R.JSC$11263_getEndNode(),R.JSC$11263_getEndOffset()))}};
_.J.requestSuggestions=function(R){if(this.activeMention){var y={suggestions_query:R};this.pendingQuery=R;_.Fh(this.hostElement,[this.suggestionsEndpoint,y])}};
_.J.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()};
_.J.focusPreviousSuggestion=function(R){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),R.preventDefault())};
_.J.focusNextSuggestion=function(R){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),R.preventDefault())};
_.J.selectFocusedSuggestion=function(R){if(this.hasSuggestions(this.suggestionsResponse)){var y=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.e(y,PtV)&&(this.selectSuggestion(_.e(y,PtV),this.dropdown.focusedSuggestionIndex),R.preventDefault())}};
_.J.selectSuggestion=function(R,y){if(R){var u=this.activeMention;if(u){var v=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&R.handle?_.Ak(v,"\u00a0\u2068@"+R.handle+"\u2069\u00a0"):this.handlesEnabled?_.Ak(v,"\u00a0"+R.displayName+"\u00a0"):_.Ak(v,"\u00a0@"+R.displayName+"\u00a0");Aq(v,"/channel/"+R.channelId);v.classList.add("yt-formatted-string","yt-simple-endpoint");v.setAttribute("spellcheck","false");u.isCollapsed()||u.JSC$11263_removeContents();u.insertNode(v,!0);R=document.createTextNode(" ");
v.parentNode.insertBefore(R,v.nextSibling);window.getSelection().collapse(R,1);y={suggestionSelected:{suggestionIndex:y}};if(this.zeroPrefixMentionSuggestionEnabled){var Q;y.suggestionSelected.isZeroPrefix=((Q=this.suggestionsResponse)==null?void 0:Q.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",y);this.cancelActiveMention();_.Ko(this.hostElement,"yt-mention-inserted")}}};
_.J.getPositionTarget=function(R){return R&&R.getBrowserRangeObject()};
_.J.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.J.onFocusedSuggestionIdChanged=function(R){var y=_.l88(this.hostElement)[0];y&&(R.detail.value?y.setAttribute("aria-activedescendant",R.detail.value):y.removeAttribute("aria-activedescendant"))};
_.J.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.J.logGELEvent=function(R,y){R={eventType:R,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};y&&(R=Object.assign(R,y));_.P3("userMentionAutoCompleteBoxEvent",R)};
eA.prototype.onDomChange=eA.prototype.onDomChange;eA.prototype.onUserMentionSuggestionSelected=eA.prototype.onUserMentionSuggestionSelected;eA.prototype.onServiceRequestError=eA.prototype.onServiceRequestError;eA.prototype.onServiceRequestCompleted=eA.prototype.onServiceRequestCompleted;eA.prototype.onServiceRequestSent=eA.prototype.onServiceRequestSent;eA.prototype.onInput=eA.prototype.onInput;_.A([_.n(_.Gh),_.p("design:type",Object)],eA.prototype,"ironA11yKeysBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],eA.prototype,"suggestionsEndpoint",void 0);_.A([_.r(),_.p("design:type",Object)],eA.prototype,"suggestionsResponse",void 0);_.A([_.r(),_.p("design:type",Object)],eA.prototype,"activeMention",void 0);_.A([_.O7("#dropdown"),_.p("design:type",Object)],eA.prototype,"dropdown",void 0);_.A([_.O7("#iron-dropdown"),_.p("design:type",Object)],eA.prototype,"ironDropdown",void 0);
_.A([_.fu("input"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],eA.prototype,"onInput",null);_.A([_.fu("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],eA.prototype,"onServiceRequestSent",null);_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],eA.prototype,"onServiceRequestCompleted",null);
_.A([_.fu("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],eA.prototype,"onServiceRequestError",null);_.A([_.fu("yt-user-mention-suggestion-selected"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],eA.prototype,"onUserMentionSuggestionSelected",null);
_.A([_.fu("dom-change"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],eA.prototype,"onDomChange",null);_.A([_.pu({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],eA);
_.m(eA,"yt-user-mention-autosuggest-input",function(){if(iOw===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;VRc===void 0&&(VRc=document.createElement("template"));var v=VRc;u.call(y,v.content.cloneNode(!0),R.content.firstChild);iOw=R}R=iOw;return R},{mode:2});var lZ=null;
_.qz({is:"ytd-commentbox",_template:function(){if(vpc!==void 0)return vpc;var R=document.createElement("template");_.H(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="EXPAND" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');R.content.insertBefore(_.t().content.cloneNode(!0),
R.content.firstChild);return vpc=R},
behaviors:[_.yZU.YtHostElementBehavior,_.Gh,_.bW.YtActionHandlerBehavior,_.sx.YtComponentBehavior,_.hX.YtRendererstamperBehavior,_.QvL.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,y){return _.TI(R.entities,"aadcGuidelinesStateEntityPayload",y)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(R,y){return _.TI(R.entities,"commentboxStateEntity",y)},
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 _.LQ}},
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:_.f("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.f("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",_.BN(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,y,u){this.isValidPrefilledImage_(R,y,u)&&(this.prefilledAttachment_="image",this.prefilledImageData_=y,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(R,y){this.isValidPrefilledVideo_(R,y)&&(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;_.Bb();this.focus()},
detached:function(){document.removeEventListener("tap",_.BN(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 y=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(y,R);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var R=_.Oz();if(R){R=R.getBrowserRangeObject();for(var y=R.commonAncestorContainer;y;){if(y===this.getEditableTextArea_())return R;y=y.parentNode}}R=this.getEditableTextArea_();R=_.tA(R,R.childNodes.length);R.select();return R.getBrowserRangeObject()},
insertTextWithEmojis_:function(R,y,u){(y=this.emojiManager.createDocumentFragment(y,!0,!1,u===void 0?!0:u))&&y.childNodes.length!==0&&(R.collapsed||R.deleteContents(),u=y.lastChild,R.insertNode(y),_.jXb(u).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var R=_.Oz();if(R){var y=R.JSC$11263_getStartNode(),u=R.JSC$11263_getEndNode();if(m9O(y)&&m9O(u)){var v=R.JSC$11263_getStartOffset(),Q;if(_.xU&&y.nodeType===Node.ELEMENT_NODE&&(Q=_.jPb(y)))_.tA(Q,0).select();else{Q=fX(y)?y:_.$h(y,fX);var M=fX(u)?u:_.$h(u,fX);if(Q||M)if(R.isCollapsed()){if(y.nodeType===Node.TEXT_NODE){R=!0;v===y.length&&(R=!1);if(lZ==="end"||lZ==="right")R=!1;y=y.parentNode;R=[].concat(_.P$(y.parentNode.childNodes)).indexOf(y)+(R?0:1);_.tA(y.parentNode,
R).select()}}else Q?Q.previousSibling&&Q.previousSibling.length>0?_.cb(u,R.JSC$11263_getEndOffset(),Q.previousSibling,Q.previousSibling.length-1).select():(y=document.createTextNode("\u200b"),Q.parentNode.insertBefore(y,Q),_.cb(u,R.JSC$11263_getEndOffset(),y,0).select()):M&&(M.nextSibling&&M.nextSibling.length>0?_.cb(y,R.JSC$11263_getStartOffset(),M.nextSibling,1).select():(u=document.createTextNode("\u200b"),M.parentNode.insertBefore(u,M.nextSibling),_.cb(y,R.JSC$11263_getStartOffset(),u,u.length).select()));
lZ=null}}else lZ=null}else lZ=null},
leftKeyPressed_:function(){lZ="left"},
rightKeyPressed_:function(){lZ="right"},
endKeyPressed_:function(){lZ="end"},
maybeDeleteChip_:function(){var R=a9E(!0);if(R){var y=_.Oz(),u=y.JSC$11263_getStartNode();y=y.JSC$11263_getStartOffset();_.XL(u,y,R,R.childNodes.length).select()}},
maybeBackspaceChip_:function(){var R=a9E(!1);if(R){var y=_.Oz(),u=y.JSC$11263_getStartNode();y=y.JSC$11263_getStartOffset();_.XL(u,y,R,0).select()}},
maybeBackspaceChipWordMode_:function(R){var y=_.Oz();if(y.isCollapsed()){var u=y.JSC$11263_getStartNode();y=y.JSC$11263_getStartOffset();var v=SQT(u,y,!0);v&&(_.XL(u,y,v,0).select(),document.execCommand("delete"),R.preventDefault(),R.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(R){var y=_.Oz();if(y.isCollapsed()){var u=y.JSC$11263_getStartNode();y=y.JSC$11263_getStartOffset();var v=SQT(u,y,!1);v&&(_.XL(u,y,v,v.childNodes.length).select(),document.execCommand("delete"),R.preventDefault(),R.stopImmediatePropagation())}},
onTap_:function(R){if(!R.defaultPrevented&&(R.currentTarget.tagName==="YTD-COMMENTBOX"&&fX(R.target)&&R.preventDefault(),this.isEmojiPickerDisplayed)){var y=this.$$("#emojis"),u=this.$$("#emoji-button"),v=this.getEditableTextArea_();if((R=R.path?R.path:R.composedPath&&R.composedPath())&&!R.includes(y)&&!R.includes(v)&&!R.includes(u))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(R,y,u){return R==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&y!==void 0&&y.encryptedBlobId!==null&&y.sourceExternalVideoId!==null&&u!==void 0&&u.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(R,y){return R==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!y&&!!y.videoRenderer&&!!y.videoRenderer.videoId},
isValidPrefilledAttachment_:function(R,y,u){return this.isValidPrefilledImage_(R,y,u)||this.isValidPrefilledVideo_(R,u)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.f("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 _.hw(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.hw(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,y){R=D9P(R,this.emojiManager,y).cloneNode(!0);for(y=R.firstChild;y;)if(y.nodeType!==1)y=y.nextSibling;else switch(y.tagName){case "BR":var u=_.k$();_.bZi(u,y);y=u.nextSibling;break;case "DIV":(u=y.lastChild)&&y.nextSibling&&_.Xi(_.k$(),u);y.previousSibling&&(y.previousSibling.nodeType===1||y.previousSibling.nodeType===3&&!y.previousSibling.textContent.endsWith("\n"))&&_.qW(_.k$(),y);u&&u.nodeName==="BR"&&_.BY(u);u=y;y.hasChildNodes()?(y=y.firstChild,
_.Fg5(u)):(y=y.nextSibling,_.BY(u));break;default:y=y.nextSibling}return YQG(R)},
onAddImageError_:function(R){R.stopPropagation();this.errorMessage_=_.ye(R.detail)},
setTextAreaValue_:function(R){R||(R="");var y=this.getEditableFormattedString_();y.text="";this.getEditableTextArea_().innerText="";typeof R==="string"&&(R={runs:[{text:R}]});y.text=R},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();lZ=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var R=this.getEditableTextArea_();R&&(_.tA(R,R.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.EB("HTML_DIR")==="rtl"){var R=this.getEditableTextArea_(),y=this.getTextAreaValue()!==""?"auto":"rtl";R.setAttribute("dir",y)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var R;return MFO((R=this.$["quiz-attachment"])==null?void 0:R.getExplanationText())||MFO(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var R=null;if(this.isEmojiButtonDisplayed){var y=this.getInputRange_();y&&(R=this.emojiInput.retrieveTextBeforeRange(y))}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,y,u){y=y===void 0?!1:y;u=u===void 0?!0:u;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&R){var v=this.getInputRange_().cloneRange();this.emojiManager&&v&&(y&&this.emojiInput.offsetStartOfRangeBy(v,R.length),this.insertTextWithEmojis_(v,R,u),A0G(this.getEditableTextArea_().lastChild)||(v=this.getInputRange_().cloneRange()),v&&(this.emojiInput.updateSuggestions(v,R),this.updateSuggestionOffset_(v)))}},
setSubmitButton_:function(){if(this.data){var R=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",y=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(R||y){var u=this.getTextAreaValue().trim();y=u===this.previousText_;u=!u||this.aboveCharLimit_;R&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(u=this.aboveCharLimit_);this.submitButtonDisabled=
y||u||!this.getTextLength();R&&_.f("enable_post_scheduling")&&(this.submitButtonDisabled=y&&!this.scheduledPublishTimeSec_||u)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.u7,computeCreationBoxClass_:function(R){return R?"focused":"not-focused"},
computeFooterMessageClass_:function(R,y){return y?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(R,y){return y?y:R},
computeFooterMessageHidden_:function(R,y){return!y&&!R},
computePlaceholderText_:function(R,y,u){return(u==="video"||u==="image")&&(R==null?0:R.prefilledPlaceholderText)?R==null?void 0:R.prefilledPlaceholderText:y==="poll"||y==="image-poll"?R==null?void 0:R.pollPostPlaceholderText:y==="quiz"?R==null?void 0:R.quizPostPlaceholderText:y==="image"?R==null?void 0:R.imagePostPlaceholderText:R==null?void 0:R.placeholderText},
computeHideAttachmentButtons_:function(R,y,u,v){return R===void 0?!1:v&&this.getSimpleString(v)===this.getSimpleString(R.rateLimitErrorMessage)?!0:y!=="none"||u!=="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,y){return R&&!y?24:40},
computeImageUploadEndpoint_:function(R){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",R)},
computeRateLimitErrorCommands_:function(R){var y,u;return R==null?void 0:(y=R.advancedTierFeatures)==null?void 0:(u=y.rateLimit)==null?void 0:u.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(_.f("web_modern_buttons")){var R,y;return{segmentedPosition:this.dropdownSchedulePanel_||!((R=this.data)==null?0:(y=R.postOptionsMenu)==null?0:y.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.f("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(R,y){R=this.get("submitButton.buttonRenderer",R)||this.get("replyButton.buttonRenderer",R)||this.get("postButton.buttonRenderer",R);y&&(R=y);R&&(R=Object.assign({},R),R.serviceEndpoint=void 0,R.isDisabled=this.submitButtonDisabled);return R},
computeHasExternalLinksAccess_:function(R){if(_.f("enable_rfa_external_links")){var y,u,v;return(v=R==null?void 0:(y=R.advancedTierFeatures)==null?void 0:(u=y.externalLinks)==null?void 0:u.allowExternalLinks)!=null?v:!0}return!0},
computeIsEmojiButtonDisplayed_:function(R){return R.emojiButton&&R.emojiPicker&&R.emojiPicker.emojiPickerRenderer&&R.emojiPicker.emojiPickerRenderer.categories?R.emojiPicker.emojiPickerRenderer.categories.find(function(y){return y.emojiPickerCategoryRenderer?y.emojiPickerCategoryRenderer.emojiIds&&y.emojiPickerCategoryRenderer.emojiIds.length>0:y.emojiPickerUpsellCategoryRenderer?y.emojiPickerUpsellCategoryRenderer.emojis&&y.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(R){return R.charLimit?R.charLimit:null},
computeDropdownSchedulingPanel_:function(R,y){if(R==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&y)return y},
computeInlineSchedulingPanel_:function(R,y){if(R==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&y)return y},
computeHideAuthorThumbnail_:function(R,y){return R||this.computeUseIdentityChip_(y)},
computeHideIdentityChipRenderer_:function(R,y){return R||!this.computeUseIdentityChip_(y)},
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 y,u,v,Q;(R==null?0:(y=R.detail)==null?0:(u=y.endpoint)==null?0:u.ypcGetOffersEndpoint)||(R==null?0:(v=R.detail)==null?0:(Q=v.endpoint)==null?0:Q.ypcOffersEndpoint)?(R.stopPropagation(),_.Fh(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 y=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(){y.focus()})},
onYtServiceRequestSent_:function(R,y){if(y.actions)for(R=_.V(y.actions),y=R.next();!y.done;y=R.next())y.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(R){this.isLoading=!1;var y=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",R),u,v,Q,M=R==null?void 0:(u=R.detail)==null?void 0:(v=u.data)==null?void 0:(Q=v.actionResult)==null?void 0:Q.commentboxStateEntityKey;if(y)this.errorMessage_=y;else if(M){var K;this.dismissData_=R==null?void 0:(K=R.detail)==null?void 0:K.data;this.commentboxStateKey_=M}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 y,u;if(((y=this.data)==null?void 0:y.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((u=this.data)==null?void 0:u.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(y=this.get("detail.error.args",R)||[],y.length>1&&y[1].message){this.handlePostsServiceRequestError_(y[1].message);return}(R=this.get("detail.error.message",R))?this.errorMessage_=this.data.errorMessage||_.ye(R):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(R){if(_.f("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var y=_.V(this.rateLimitErrorCommands),u=y.next();!u.done;u=y.next())if(u=u.value,u.errorLabel===R){_.O4(u.command,this.hostElement);return}this.errorMessage_=_.ye(R)},
submitIfNotBackstagePost_:function(R){if(!this.isBackstagePost)this.onSubmit_(R)},
onSubmit_:function(R){var y=this,u,v,Q,M,K,h,b,N,T,x,B,l,Z,P,k;return _.I(function(E){switch(E.nextAddress){case 1:R.stopPropagation();if(!y.serviceEndpoint||!y.isValidInput_())return E.return();if(y.shouldShowPostAadcNotice_())return y.showPostAadcNotice_(),E.return();if(y.shouldShowCommentAadcNotice_())return y.showCommentAadcNotice_(),E.return();if(!(y.$$("ytd-backstage-multi-image-select-renderer")&&y.hasImage_&&_.f("enable_multi_image_post_creation"))){E.jumpTo(2);break}u=y.$$("ytd-backstage-multi-image-select-renderer");
return E.yield(u.getAllUploadStatuses(),3);case 3:v=E.yieldResult;if(!v)return E.return();Q=_.V(v);for(M=Q.next();!M.done;M=Q.next())if(K=M.value,K.encryptedBlobId===void 0)return y.isLoading=!1,b=h=void 0,y.errorMessage_=(b=(h=y.imageUploadEndpoint_)==null?void 0:h.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?b:null,E.return();return E.return(y.submitForm_(void 0,void 0,void 0,void 0,u.images,y.taggedVideoId_));case 2:if(!y.hasImagePoll_||!y.$["image-poll-attachment"]){E.jumpTo(4);
break}return E.yield(y.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:N=E.yieldResult;if(!N)return E.return();T=_.V(N);for(x=T.next();!x.done;x=T.next())if(B=x.value,!B.encryptedBlobId)return y.isLoading=!1,l=void 0,y.errorMessage_=(l=y.data.errorMessage)!=null?l:null,E.return();case 4:P=(Z=y.$$("ytd-backstage-image-select-renderer"))&&Z.uploadPromise(),k=y.getSharedPostId_(),P?P.then(function(){y.submitForm_.apply(y,_.P$(_.qy.apply(0,arguments)))}).catch(function(D){y.isLoading=!1;
y.errorMessage_=_.ye(D.message)}):y.selectedVideoId_?y.submitForm_(void 0,y.selectedVideoId_):y.prefilledAttachment_==="image"?y.submitForm_(y.prefilledImageData_.encryptedBlobId,void 0,void 0,y.prefilledImageData_.sourceExternalVideoId,void 0,y.taggedVideoId_):y.prefilledAttachment_==="video"?y.submitForm_(void 0,y.data.backstageAttachment.videoRenderer.videoId):k?y.submitForm_(void 0,void 0,k):y.taggedVideoId_!==void 0?y.submitForm_(void 0,void 0,void 0,void 0,void 0,y.taggedVideoId_):y.submitForm_(),
_.f$(E)}})},
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 y=this.$["video-link-attachment"];y&&y.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"&&_.f("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.f("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 y;if(this.addedAttachment==="quiz"&&((y=this.$["quiz-attachment"])==null||!y.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,y,u,v,Q,M){var K=this.getTextAreaValue().trim(),h={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&K===this.previousText_&&(K=void 0);K!==void 0&&(h.comment_text=K);this.isLoading=!0;M!=void 0&&(h.tagged_video_id=M);R?(h.image_blob_id=R,this.imagePreviewCoordinates_&&(h.image_preview_coordinates=this.imagePreviewCoordinates_)):y?h.attached_video_id=y:u?h.shared_post_id=u:Q&&Q.length>0&&(h.images_data=Q.map(function(b){return{encryptedBlobId:b.encryptedBlobId,
previewCoordinates:b.previewCoordinates}}));
v&&(h.source_video_id=v);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());_.f("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(h.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.f("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(h.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.Fh(this,[this.serviceEndpoint,h])},
onIsInputFocusChanged_:function(R,y){R?this.fire("yt-autonav-pause-focus"):y!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(R){var y=this.getEditableTextArea_();[].concat(_.P$(R.dataTransfer.items)).forEach(function(u){u.kind==="string"&&u.type.match("^text/plain")&&u.getAsString(function(v){y.appendChild(document.createTextNode(v))})});
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,y){return!y||R?"":"with-options"},
updateSuggestionOffset_:function(R){if(this.emojiInput&&_.hw(this.emojiInput).querySelector("#dropdown")){var y=this.getEditableTextArea_().getBoundingClientRect().bottom,u=R.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(y-u)+5;y=this.getEditableTextArea_().getBoundingClientRect().left;R=R.getBoundingClientRect().left-y;_.hw(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(_.f("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 y=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(y)||y!==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"];_.f("enable_quiz_creation")&&R.push("quiz-button");_.f("auto_convert_posts_video_tag")||R.push("video-link-button");return R},
getButtonRenderer:function(R,y){if(R)switch(y){case "video-link-button":var u;return((u=R.videoLinkButton)==null?void 0:u.buttonRenderer)||void 0;case "image-button":var v;return((v=R.imageButton)==null?void 0:v.buttonRenderer)||void 0;case "poll-button":var Q;return((Q=R.pollButton)==null?void 0:Q.buttonRenderer)||void 0;case "image-poll-button":var M;return((M=R.imagePollButton)==null?void 0:M.buttonRenderer)||void 0;case "quiz-button":var K;return((K=R.quizButton)==null?void 0:K.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,y;return!((R=this.data)==null||!R.openAadcDialog)&&!((y=this.aadcGuidelinesState_)==null||!y.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.EB("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 _.$2("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(R){R.clickTrackingParams&&_.GN().clickCommand(R);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.Ik(this,"yt-close-popup-action")},
onHideIdentityChip:function(R){var y;this.set("data.placeholderText",(y=R.hideIdentityChipAction)==null?void 0:y.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var OU=function(){var R=_.W.apply(this,arguments)||this;R.isOpen=!1;R.modern=_.f("web_modern_buttons");R.roundedContainer=!0;R.dropdownButtonOverride=_.f("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;R.inPopupContainer=!1;R.isCommentboxLoading=!1;var y=["image-button","image-poll-button","poll-button"];_.f("enable_quiz_creation")&&y.push("quiz-button");_.f("auto_convert_posts_video_tag")||y.push("video-link-button");R.attachmentButtonIds=y;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};
_.O(OU,_.W);_.J=OU.prototype;_.J.computeButtonOverride=function(){var R;return((R=this.data)==null?0:R.postOptionsMenu)&&_.f("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.J.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:"EXPAND"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.f("auto_convert_posts_video_tag")||(R["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return R};
_.J.ready=function(){var R=this,y=_.hw(this.hostElement).querySelector("#placeholder-area"),u=function(v){R.onOpen(v)};
y.addEventListener("tap",u);y.addEventListener("keypress",u)};
_.J.showButtonEduTooltip=function(){var R,y,u,v,Q,M,K;if(_.f("enable_quiz_creation")&&((R=this.data)==null?0:(y=R.quizButton)==null?0:(u=y.buttonRenderer)==null?0:(v=u.hint)==null?0:(Q=v.hintRenderer)==null?0:(M=Q.content)==null?0:(K=M.bubbleHintRenderer)==null?0:K.text)&&(_.Ii.getInstance(),R=hn(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(_.Ii.getInstance(),h=hn(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 b;_.f("enable_multi_image_post_creation")&&
((b=this.data)==null?0:b.multiImageButtonTooltip)&&(_.Ii.getInstance(),b=hn(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(b==null?void 0:b.length)>0&&this.ytComponentBehavior.resolveCommand(b[0],{form:{element:this.imageButton}}))};
_.J.onCreatePollAction=function(R){_.e(R,$gb)&&(this.JSC$15719_commentbox.addedAttachment="poll",this.openDialog())};
_.J.onAddVideoLinkAction=function(R){if(_.e(R,dgi))this.JSC$15719_commentbox.onAddVideoLink(R)};
_.J.onShowSchedulingPanelCommand=function(R){(R=_.e(R,J8c))&&this.openSchedulingPanel(R)};
_.J.onCreateImagePollCommand=function(R){_.e(R,nW8)&&(this.JSC$15719_commentbox.openImagePollComponent(),this.openDialog())};
_.J.onCreateQuizCommand=function(R){_.e(R,GC8)&&(this.JSC$15719_commentbox.openQuizComponent(),this.openDialog())};
_.J.openSchedulingPanel=function(R){_.f("enable_post_scheduling")&&(this.openDialog(),this.JSC$15719_commentbox.openSchedulingPanel(R))};
_.J.onCreateCommentAction=function(R){this.get("createCommentAction.contents",R)&&(this.JSC$15719_commentbox.clear(),this.closeDialog())};
_.J.onOpen=function(R){R instanceof KeyboardEvent&&R.type==="keypress"&&R.keyCode!==13&&R.keyCode!==32||(this.data.prepareAccountEndpoint?_.Ko(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.J.onYtCommentboxDismiss=function(){this.closeDialog()};
_.J.onYtCommentboxLoadingStart=function(R){R.stopPropagation();this.isCommentboxLoading=!0};
_.J.onYtCommentboxLoadingEnd=function(R){R.stopPropagation();this.isCommentboxLoading=!1};
_.J.onYtVideoLinkButtonCancel=function(R){R.stopPropagation();this.onOpen(R)};
_.J.onYtVideoLinkSelected=function(R){R.stopPropagation();this.onOpen(R)};
_.J.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)};
_.J.onYtNavigate=function(R){this.get("detail.endpoint.backstageImageUploadEndpoint",R)&&(this.JSC$15719_commentbox.addedAttachment="image",this.JSC$15719_commentbox.submitButtonDisabled=!0,this.onOpen(R))};
_.J.onRequestSent=function(R){if(_.f("web_button_rework"))for(var y=_.V(R.detail),u=y.next();!u.done;u=y.next())_.e(u.value,mvc)&&(this.JSC$15719_commentbox.addedAttachment="image",this.JSC$15719_commentbox.submitButtonDisabled=!0,this.onOpen(R))};
_.J.openDialog=function(){this.JSC$15719_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$15719_commentbox.focus()};
_.J.onPopupClosed=function(){_.Ii.getInstance()};
_.J.computeCreationDisabled=function(R){return!!R};
_.J.computeIsCreationDialog=function(R){return!!R&&R==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.J.computeDisabledPostButton=function(R){if(!R)return null;R.isDisabled=!0;return R};
_.J.computeIsCreationDialogWithHeader=function(R){return!this.inPopupContainer&&!!R&&!!R.authorText&&R.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.J.computeIsHeaderHidden=function(R,y){return!R||y};
_.J.computeDropdownRendererClasses=function(R){return R?["text-secondary-style"]:[]};
_.J.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var R=_.hw(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;R&&R.reset()};
OU.prototype.onPopupClosed=OU.prototype.onPopupClosed;OU.prototype.onRequestSent=OU.prototype.onRequestSent;OU.prototype.onYtNavigate=OU.prototype.onYtNavigate;OU.prototype.onIronSelect=OU.prototype.onIronSelect;OU.prototype.onYtVideoLinkSelected=OU.prototype.onYtVideoLinkSelected;OU.prototype.onYtVideoLinkButtonCancel=OU.prototype.onYtVideoLinkButtonCancel;OU.prototype.onYtCommentboxLoadingEnd=OU.prototype.onYtCommentboxLoadingEnd;OU.prototype.onYtCommentboxLoadingStart=OU.prototype.onYtCommentboxLoadingStart;
OU.prototype.onYtCommentboxDismiss=OU.prototype.onYtCommentboxDismiss;OU.prototype.showButtonEduTooltip=OU.prototype.showButtonEduTooltip;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],OU.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],OU.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],OU.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],OU.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],OU.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],OU.prototype,"isOpen",void 0);_.A([_.r({computed:"computeButtonOverride(data)"}),_.p("design:type",Object)],OU.prototype,"buttonOverride",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],OU.prototype,"modern",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],OU.prototype,"roundedContainer",void 0);_.A([_.r(),_.p("design:type",Object)],OU.prototype,"dropdownButtonOverride",void 0);_.A([_.r({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.p("design:type",Boolean)],OU.prototype,"creationDisabled",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],OU.prototype,"enableCreationBox",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.p("design:type",Boolean)],OU.prototype,"isCreationDialog",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],OU.prototype,"inPopupContainer",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.p("design:type",Boolean)],OU.prototype,"isCreationDialogWithHeader",void 0);_.A([_.r(),_.p("design:type",Object)],OU.prototype,"accessRestriction",void 0);
_.A([_.r({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.p("design:type",Array)],OU.prototype,"dropdownRendererClasses",void 0);_.A([_.r(),_.p("design:type",Object)],OU.prototype,"isCommentboxLoading",void 0);_.A([_.r(),_.p("design:type",Array)],OU.prototype,"attachmentButtonIds",void 0);_.A([_.O7("#image-button"),_.p("design:type",HTMLElement)],OU.prototype,"imageButton",void 0);
_.A([_.O7("#image-poll-button"),_.p("design:type",HTMLElement)],OU.prototype,"imagePollButton",void 0);_.A([_.O7("#quiz-button"),_.p("design:type",HTMLElement)],OU.prototype,"quizButton",void 0);_.A([_.O7("#commentbox"),_.p("design:type",Object)],OU.prototype,"JSC$15719_commentbox",void 0);_.A([_.e0("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],OU.prototype,"showButtonEduTooltip",null);
_.A([_.fu("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],OU.prototype,"onYtCommentboxDismiss",null);_.A([_.fu("yt-commentbox-loading-start"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],OU.prototype,"onYtCommentboxLoadingStart",null);
_.A([_.fu("yt-commentbox-loading-end"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],OU.prototype,"onYtCommentboxLoadingEnd",null);_.A([_.fu("yt-video-link-button-cancel"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],OU.prototype,"onYtVideoLinkButtonCancel",null);
_.A([_.fu("yt-video-link-selected"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],OU.prototype,"onYtVideoLinkSelected",null);_.A([_.fu("iron-select"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],OU.prototype,"onIronSelect",null);_.A([_.fu("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],OU.prototype,"onYtNavigate",null);
_.A([_.fu("yt-service-request-sent-button-renderer"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],OU.prototype,"onRequestSent",null);_.A([_.fu("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],OU.prototype,"onPopupClosed",null);_.A([_.q({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],OU);
_.m(OU,"ytd-backstage-post-dialog-renderer",function(){if(E45!==void 0)return E45;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return E45=R},{mode:1});var FAi;var wPw;var ZW=function(){return _.W.apply(this,arguments)||this};
_.O(ZW,_.W);_.J=ZW.prototype;_.J.computeHeartButtonStyle=function(R){return(R==null?0:R.styleType)?R.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.J.onYtButtonTap=function(){if(this.data.isEnabled){var R=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(R=this.getEndpoint(R))&&_.ua().resolve(_.jX).resolveCommand(R,{form:{element:this.hostElement}})}else(R=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(R)};
_.J.toggle=function(R){this.set("data.isHearted",R!==void 0?R:!this.data.isHearted)};
_.J.getEndpoint=function(R){var y,u=(y=this.data)==null?void 0:y.heartEndpoint,v;y=(v=this.data)==null?void 0:v.unheartEndpoint;if(u&&y)return R?y:u};
_.J.computeButtonAccessibility=function(R,y){var u,v,Q=R==null?void 0:(u=R.heartedAccessibility)==null?void 0:(v=u.accessibilityData)==null?void 0:v.label,M,K;R=R==null?void 0:(M=R.unheartedAccessibility)==null?void 0:(K=M.accessibilityData)==null?void 0:K.label;return y?Q:R};
_.RR.Object.defineProperties(ZW.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 _.f("kevlar_system_icons")&&!((R=this.data)==null||!R.isHearted)}}});
ZW.prototype.onYtButtonTap=ZW.prototype.onYtButtonTap;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ZW.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.jc),_.p("design:type",Object)],ZW.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ZW.prototype,"data",void 0);_.A([_.G("data.isHearted"),_.p("design:type",Object),_.p("design:paramtypes",[])],ZW.prototype,"heartTooltip",null);
_.A([_.G("data.isHearted"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ZW.prototype,"iconFilled",null);_.A([_.r({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.p("design:type",String)],ZW.prototype,"buttonAccessibility",void 0);_.A([_.r({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.p("design:type",String)],ZW.prototype,"heartButtonStyle",void 0);
_.A([_.fu("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ZW.prototype,"onYtButtonTap",null);_.A([_.q({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],ZW);
_.m(ZW,"ytd-creator-heart-renderer",function(){if(wPw!==void 0)return wPw;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return wPw=R},{mode:1});var Hv=function(){var R=_.W.apply(this,arguments)||this;R.hasCreatorReply=!1;R.buttonOverrides={size:"S",iconPosition:"icon-only"};R.replyButtonOverrides={size:"S",type:"text"};R.forceIconButton=!_.f("web_modern_buttons");R.modern=_.f("web_modern_buttons");R.buttonTooltipPosition="bottom";R.systemIcons=_.f("kevlar_system_icons");R.replyDialog=null;return R};
_.O(Hv,_.W);_.J=Hv.prototype;
_.J.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]]"}}}}}};
_.J.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.J.dataChange=function(){this.replyDialog&&_.hw(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var R,y,u;this.isLiked=this.systemIcons&&!!((R=this.data)==null?0:(y=R.likeButton)==null?0:(u=y.toggleButtonRenderer)==null?0:u.isToggled)};
_.J.computeShowVoteCountBeginning=function(R,y){return R===void 0||y===void 0?!0:R.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!y&&this.ytRendererBehavior.getSimpleString(y)!=="0"};
_.J.computeShowVoteCountEnd=function(R,y){return R===void 0||y===void 0?!0:R.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!y&&this.ytRendererBehavior.getSimpleString(y)!=="0"};
_.J.computeShowCommentCount=function(R,y){return R===void 0||y===void 0?!0:R.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!y&&this.ytRendererBehavior.getSimpleString(y)!=="0"};
_.J.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.J.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.J.showReplyDialog=function(R){R&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.hw(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=R,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.J.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.J.onRequestSent=function(R){if(_.f("web_button_rework")){R=_.V(R.detail);for(var y=R.next();!y.done;y=R.next())(y=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",y.value))&&this.showReplyDialog(y)}};
_.J.onYtNavigate=function(R){var y,u;(R=(y=_.e(R.detail.endpoint,_.DvL))==null?void 0:(u=y.dialog)==null?void 0:u.commentReplyDialogRenderer)&&this.showReplyDialog(R)};
_.J.onYtServiceRequestSent=function(R,y){R.stopPropagation();if(y.actions)for(R=0;R<y.actions.length;R++){var u=_.e(y.actions[R],pcg);u&&this.handleUpdateCommentVoteAction(u)}};
_.J.handleUpdateCommentVoteAction=function(R){this.voteCount=R.voteCount||_.ye("0");R.voteStatus==="LIKE"?this.JSC$15730_ytdDislikeToggleButtonRenderer.toggle(!1):R.voteStatus==="DISLIKE"?this.JSC$15730_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15730_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15730_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.J.computeReplyButtonHidden=function(R){return R};
_.J.computeReplyButtonBeginning=function(R){return(R==null?0:R.replyButton)&&R.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?R.replyButton:void 0};
_.J.computeReplyButtonEnd=function(R){return(R==null?0:R.replyButton)&&R.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?R.replyButton:void 0};
_.J.computeActionButtonStyle=function(R){return(R==null?0:R.style)?R.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.J.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.J.onYtToggleButton=function(R){var y,u;this.isLiked=this.systemIcons&&!!((y=R.detail)==null?0:(u=y.actions)==null?0:u.like)};
Hv.prototype.onYtToggleButton=Hv.prototype.onYtToggleButton;Hv.prototype.onButtonTooltipPositionChanged=Hv.prototype.onButtonTooltipPositionChanged;Hv.prototype.onYtServiceRequestSent=Hv.prototype.onYtServiceRequestSent;Hv.prototype.onYtNavigate=Hv.prototype.onYtNavigate;Hv.prototype.onRequestSent=Hv.prototype.onRequestSent;Hv.prototype.onYtCommentboxDismiss=Hv.prototype.onYtCommentboxDismiss;Hv.prototype.dataChange=Hv.prototype.dataChange;
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Hv.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Hv.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Hv.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],Hv.prototype,"voteCount",void 0);_.A([_.r(),_.p("design:type",Object)],Hv.prototype,"commentCount",void 0);_.A([_.r(),_.p("design:type",Object)],Hv.prototype,"replyThumbnail",void 0);
_.A([_.r(),_.p("design:type",Object)],Hv.prototype,"hasCreatorReply",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Hv.prototype,"enableCreationBox",void 0);_.A([_.r({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.p("design:type",String)],Hv.prototype,"actionButtonsStyle",void 0);_.A([_.r({computed:"computeReplyButtonBeginning(data)"}),_.p("design:type",Object)],Hv.prototype,"replyButtonBeginning",void 0);
_.A([_.r({computed:"computeReplyButtonEnd(data)"}),_.p("design:type",Object)],Hv.prototype,"replyButtonEnd",void 0);_.A([_.r(),_.p("design:type",Object)],Hv.prototype,"buttonOverrides",void 0);_.A([_.r(),_.p("design:type",Object)],Hv.prototype,"replyButtonOverrides",void 0);_.A([_.r(),_.p("design:type",Object)],Hv.prototype,"forceIconButton",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Hv.prototype,"useCommentIcon",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Hv.prototype,"modern",void 0);_.A([_.r(),_.p("design:type",Object)],Hv.prototype,"buttonTooltipPosition",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Hv.prototype,"systemIcons",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Hv.prototype,"isLiked",void 0);_.A([_.O7("ytd-button-renderer"),_.p("design:type",Object)],Hv.prototype,"ytdReplyButtonRenderer",void 0);
_.A([_.O7("#like-button"),_.p("design:type",Object)],Hv.prototype,"JSC$15730_ytdLikeToggleButtonRenderer",void 0);_.A([_.O7("#dislike-button"),_.p("design:type",Object)],Hv.prototype,"JSC$15730_ytdDislikeToggleButtonRenderer",void 0);_.A([_.O7("#reply-dialog"),_.p("design:type",HTMLElement)],Hv.prototype,"replyDialogElement",void 0);_.A([_.O7("#reply-button"),_.p("design:type",HTMLElement)],Hv.prototype,"replyButtonElement",void 0);
_.A([_.O7("#reply-button-end"),_.p("design:type",HTMLElement)],Hv.prototype,"replyButtonEndElement",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Hv.prototype,"dataChange",null);_.A([_.fu("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Hv.prototype,"onYtCommentboxDismiss",null);
_.A([_.fu("yt-service-request-sent-button-renderer"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Hv.prototype,"onRequestSent",null);_.A([_.fu("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Hv.prototype,"onYtNavigate",null);
_.A([_.fu("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.z3]),_.p("design:returntype")],Hv.prototype,"onYtServiceRequestSent",null);_.A([_.e0("buttonTooltipPosition"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Hv.prototype,"onButtonTooltipPositionChanged",null);
_.A([_.fu("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Hv.prototype,"onYtToggleButton",null);_.A([_.q({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],Hv);
_.m(Hv,"ytd-comment-action-buttons-renderer",function(){if(FAi!==void 0)return FAi;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return FAi=R},{mode:1});var NkV;var ns=function(){return _.W.apply(this,arguments)||this};
_.O(ns,_.W);ns.prototype.focus=function(){_.hw(this.hostElement).querySelector("#commentbox").focus()};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ns.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ns.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],ns.prototype,"zeroStepChannelCreationRenderer",void 0);_.A([_.q({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],ns);
_.m(ns,"ytd-comment-dialog-renderer",function(){if(NkV!==void 0)return NkV;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return NkV=R},{mode:1});var Tki;var G4=function(){var R=_.W.apply(this,arguments)||this;R.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.f("enable_web_delhi_icons")};R.replyButtonOverrides={size:"S",type:"text"};return R};
_.O(G4,_.W);_.J=G4.prototype;_.J.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.J.detached=function(){this.replyBox&&this.replyBox.remove()};
_.J.showReplyDialog=function(R){if(R){var y=this.replyBox;y||(y=document.createElement("ytd-comment-reply-dialog-renderer"),y.id="replybox",_.hw(this.replyDialogDiv).appendChild(y));y.data=R;this.replyDialogDiv.hidden=!1;y.openDialog()}};
_.J.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.J.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var R,y=_.e((R=this.toolbarSurface)==null?void 0:R.subscribersOnlyDisclaimerSnackbarCommand,_.ac);y&&_.Ko(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:y})}};
_.J.onYtServiceRequestSent=function(R,y){R.stopPropagation();if(y.actions)for(var u=0;u<y.actions.length;u++){var v=_.e(y.actions[u],pcg);v?this.handleUpdateCommentVoteAction(v):R.target===this.heartButton&&this.toggleHeartState()}};
_.J.handleUpdateCommentVoteAction=function(R){var y;(y=this.toolbarState)!=null&&y.key&&this.ytdReduxBehavior.dispatch(_.DT("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:R.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":R.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.J.toggleHeartState=function(){var R;(R=this.toolbarState)!=null&&R.key&&this.ytdReduxBehavior.dispatch(_.DT("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.RR.Object.defineProperties(G4.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var R,y,u;return(((R=this.toolbarState)==null?void 0:R.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(y=this.toolbarData)==null?void 0:y.likeCountLiked:(u=this.toolbarData)==null?void 0:u.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.toolbarSurface)==null?void 0:R.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.toolbarSurface)==null?void 0:R.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.toolbarSurface)==null?void 0:R.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.toolbarSurface)==null?void 0:R.prepareAccountCommand)!==void 0&&!_.f("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var R,y=_.e((R=this.toolbarSurface)==null?void 0:R.prepareAccountCommand,_.ac),u,v,Q,M,K,h,b,N,T;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((u=this.toolbarSharedData)==null||!u.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((v=this.toolbarState)==null?void 0:v.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:y!=null?y:_.e((Q=this.toolbarSurface)==null?void 0:Q.likeCommand,_.ac),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:y!=null?y:_.e((M=this.toolbarSurface)==null?void 0:M.unlikeCommand,_.ac),defaultCommand:this.isVisiblyDisabled?_.e((K=this.toolbarSurface)==null?void 0:K.commentDisabledActionCommand,_.ac):void 0,defaultTooltip:(h=this.toolbarData)==null?void 0:h.likeInactiveTooltip,toggledTooltip:(b=this.toolbarData)==null?void 0:b.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:(T=this.toolbarSharedData)==null?void 0:T.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var R,y=_.e((R=this.toolbarSurface)==null?void 0:R.prepareAccountCommand,_.ac),u,v,Q,M,K,h,b,N,T,x;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((u=this.toolbarSharedData)==null||!u.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((v=this.toolbarState)==null?void 0:v.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:y!=null?y:_.e((Q=this.toolbarSurface)==null?void 0:Q.dislikeCommand,_.ac),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:y!=null?y:_.e((M=this.toolbarSurface)==null?void 0:M.undislikeCommand,_.ac),defaultCommand:this.isVisiblyDisabled?_.e((K=this.toolbarSurface)==null?void 0:K.commentDisabledActionCommand,_.ac):void 0,defaultTooltip:(h=this.toolbarData)==null?void 0:h.dislikeInactiveTooltip,toggledTooltip:(b=this.toolbarData)==null?void 0:
b.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(N=this.toolbarSharedData)==null?void 0:N.dislikeReplyButtonA11y:(T=this.toolbarSharedData)==null?void 0:T.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(x=this.toolbarSharedData)==null?void 0:x.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var R,y,u;if(((R=this.toolbarState)==null?void 0:R.heartState)!==void 0&&((y=this.toolbarState)==null?void 0:y.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((u=this.toolbarState)==null?void 0:u.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var v,Q,M,K,h,b,N,T,x,B,l,Z,P,k;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(v=this.toolbarData)==null?void 0:v.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((Q=this.toolbarState)==null?void 0:Q.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((M=this.toolbarState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((K=this.toolbarState)==null?void 0:K.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((h=this.toolbarState)==null?void 0:h.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.e((b=this.toolbarSurface)==null?void 0:b.heartCommand,
_.ac),unheartEndpoint:this.isVisiblyDisabled?void 0:_.e((N=this.toolbarSurface)==null?void 0:N.unheartCommand,_.ac),disabledEndpoint:this.isVisiblyDisabled?_.e((T=this.toolbarSurface)==null?void 0:T.commentDisabledActionCommand,_.ac):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(x=this.toolbarData)==null?void 0:x.heartActiveTooltip,unheartedTooltip:(B=this.toolbarData)==null?void 0:B.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((l=
this.toolbarState)==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(Z=this.toolbarSharedData)==null?void 0:Z.unheartButtonA11y:(P=this.toolbarSharedData)==null?void 0:P.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(k=this.toolbarSharedData)==null?void 0:k.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,y,u,v;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(R=this.commentStrings)==null?void 0:R.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.e((y=this.toolbarSurface)==null?void 0:y.replyCommand,_.ac),command:this.isVisiblyDisabled?_.e((u=this.toolbarSurface)==null?
void 0:u.commentDisabledActionCommand,_.ac):this.isSubsOnlyCommentsIneligibleUser?_.e((v=this.toolbarSurface)==null?void 0:v.subscribersOnlySnackbarCommand,_.ac):void 0}}}});
G4.prototype.onYtServiceRequestSent=G4.prototype.onYtServiceRequestSent;G4.prototype.hideReplyDialogDiv=G4.prototype.hideReplyDialogDiv;_.A([_.r(),_.p("design:type",Object)],G4.prototype,"commentStrings",void 0);_.A([_.r(),_.p("design:type",Boolean)],G4.prototype,"isReply",void 0);_.A([_.r(),_.p("design:type",Object)],G4.prototype,"toolbarData",void 0);_.A([_.r(),_.p("design:type",Object)],G4.prototype,"toolbarSharedData",void 0);
_.A([_.r(),_.p("design:type",String)],G4.prototype,"toolbarStateKey",void 0);_.A([_.r(),_.p("design:type",String)],G4.prototype,"toolbarSurfaceKey",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],G4.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],G4.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],G4.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.n(_.jc),_.p("design:type",Object)],G4.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.O7("#reply-dialog"),_.p("design:type",HTMLElement)],G4.prototype,"replyDialogDiv",void 0);_.A([_.O7("#replybox"),_.p("design:type",Object)],G4.prototype,"replyBox",void 0);_.A([_.O7("ytd-creator-heart-renderer"),_.p("design:type",Object)],G4.prototype,"heartButton",void 0);_.A([_.r({selector:function(R,y){return _.TI(R.entities,"engagementToolbarStateEntityPayload",y)},
selectorArgs:["toolbarStateKey"]}),_.p("design:type",Object)],G4.prototype,"toolbarState",void 0);_.A([_.r({selector:XXU,selectorArgs:["toolbarSurfaceKey"]}),_.p("design:type",Object)],G4.prototype,"toolbarSurface",void 0);_.A([_.r(),_.p("design:type",Object)],G4.prototype,"buttonOverrides",void 0);_.A([_.fu("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],G4.prototype,"hideReplyDialogDiv",null);
_.A([_.G("toolbarData","toolbarState"),_.p("design:type",String),_.p("design:paramtypes",[])],G4.prototype,"likeCount",null);_.A([_.G("likeCount"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],G4.prototype,"showLikeCount",null);_.A([_.G("toolbarSurface"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],G4.prototype,"isVisiblyDisabled",null);_.A([_.G("toolbarSurface"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],G4.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.A([_.G("toolbarSurface"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],G4.prototype,"isSubsOnlyCommentsEligibleUser",null);_.A([_.G("toolbarSurface"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],G4.prototype,"hasPrepareAccountCommand",null);_.A([_.G("toolbarData","toolbarState","toolbarSurface"),_.p("design:type",Object),_.p("design:paramtypes",[])],G4.prototype,"likeToggleButtonRenderer",null);
_.A([_.G("isReply","toolbarData","toolbarState","toolbarSurface"),_.p("design:type",Object),_.p("design:paramtypes",[])],G4.prototype,"dislikeToggleButtonRenderer",null);_.A([_.G("toolbarData","toolbarState","toolbarSurface"),_.p("design:type",Object),_.p("design:paramtypes",[])],G4.prototype,"creatorHeartSupportedRenderer",null);_.A([_.G("toolbarSurface"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],G4.prototype,"hasReplyCommand",null);
_.A([_.G("toolbarSurface","commentStrings","isVisiblyDisabled"),_.p("design:type",Object),_.p("design:paramtypes",[])],G4.prototype,"replyButtonRenderer",null);_.A([_.r(),_.p("design:type",Object)],G4.prototype,"replyButtonOverrides",void 0);_.A([_.fu("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.z3]),_.p("design:returntype")],G4.prototype,"onYtServiceRequestSent",null);_.A([_.q({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],G4);
_.m(G4,"ytd-comment-engagement-bar",function(){if(Tki!==void 0)return Tki;var R=document.createElement("template");_.H(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]]" on-click="handleReplyButtonClick" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');
R.content.insertBefore(_.t().content.cloneNode(!0),R.content.firstChild);return Tki=R},{mode:1});var opg;var r_=function(){return _.W.apply(this,arguments)||this};
_.O(r_,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],r_.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],r_.prototype,"data",void 0);_.A([_.q({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],r_);
_.m(r_,"ytd-comment-inline-thumbnail-renderer",function(){if(opg!==void 0)return opg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return opg=R},{mode:1});var xKw;var Pv=function(){return _.W.apply(this,arguments)||this};
_.O(Pv,_.W);Pv.prototype.onMessageTap=function(){if(this.onTapCommand){var R=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);R&&this.ytdOpenPopupBehavior.openPopup(R)}};
_.RR.Object.defineProperties(Pv.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var R,y,u;return(R=this.data)==null?void 0:(y=R.button)==null?void 0:(u=y.buttonRenderer)==null?void 0:u.command}}});
_.A([_.n(_.jc),_.p("design:type",Object)],Pv.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Pv.prototype,"data",void 0);_.A([_.G("data.button.buttonRenderer.command"),_.p("design:type",Object),_.p("design:paramtypes",[])],Pv.prototype,"onTapCommand",null);_.A([_.q({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],Pv);
_.m(Pv,"ytd-comment-pause-composer-renderer",function(){if(xKw!==void 0)return xKw;var R=document.createElement("template");_.H(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" on-click="onMessageTap" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');
R.content.insertBefore(_.t().content.cloneNode(!0),R.content.firstChild);return xKw=R},{mode:1});var Bki;var fSw;var Wv=function(){var R=_.W.apply(this,arguments)||this;R.isOpen=!1;return R};
_.O(Wv,_.W);_.J=Wv.prototype;_.J.dataChanged=function(){this.isOpen=!1};
_.J.onTap=function(){this.data&&(this.data.navigationEndpoint?_.Ko(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.J.focus=function(){this.JSC$15760_commentbox.focus()};
_.J.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.J.openDialog=function(){this.isOpen=!0;this.JSC$15760_commentbox.focus();this.JSC$15760_commentbox.maybeHeightChanged()};
Wv.prototype.onYtCommentboxDismiss=Wv.prototype.onYtCommentboxDismiss;Wv.prototype.dataChanged=Wv.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Wv.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Wv.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],Wv.prototype,"isOpen",void 0);_.A([_.O7("#commentbox"),_.p("design:type",Object)],Wv.prototype,"JSC$15760_commentbox",void 0);
_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Wv.prototype,"dataChanged",null);_.A([_.fu("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Wv.prototype,"onYtCommentboxDismiss",null);_.A([_.q({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],Wv);
_.m(Wv,"ytd-comment-reply-dialog-renderer",function(){if(fSw!==void 0)return fSw;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return fSw=R},{mode:1});var erw;var d_=function(){return _.W.apply(this,arguments)||this};
_.O(d_,_.W);_.RR.Object.defineProperties(d_.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var R,y,u=(R=this.data)==null?void 0:(y=R.icon)==null?void 0:y.iconType;return u?"yt-icons:"+u.toLowerCase():null}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],d_.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],d_.prototype,"data",void 0);_.A([_.r(),_.G("data.icon"),_.p("design:type",Object),_.p("design:paramtypes",[])],d_.prototype,"icon",null);_.A([_.q({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],d_);
_.m(d_,"ytd-pinned-comment-badge-renderer",function(){if(erw!==void 0)return erw;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return erw=R},{mode:1});var lSL;var OOY={},ZOw={input:!0,meta:!0,br:!0,link:!0,img:!0},UU=null;OOY.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(){UU==null&&(UU=document.createElement("tp-yt-paper-tooltip"),UU.offset=8,UU.fitToVisibleBounds=!0)},
onMouseOver_:function(R){if(R=_.$h(R.target,function(Q){return Q==this||Q.getAttribute&&Q.getAttribute("shared-tooltip-text")}.bind(this),!0)){var y=R.getAttribute("shared-tooltip-text");
if(y){var u=this,v=null;R!=this&&(R.tagName.toLowerCase()in ZOw?u=R.parentElement:u=R,R.id&&(v=R.id));this.polymerController.createTooltipIfRequired_();if(UU.parentElement!=u||UU.for!=v)(0,_.Nz)(UU).textContent=y,_.hw(u).appendChild(UU),UU.for=v,UU.animationDelay=this.polymerController.sharedTooltipAnimationDelay,UU.position=this.polymerController.sharedTooltipPosition}}}};var kq=function(){return _.W.apply(this,arguments)||this};
_.O(kq,_.W);kq.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]]"}}}}}};
kq.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
kq.prototype.colorChanged=function(){var R,y,u,v=(R=this.data)==null?void 0:(y=R.color)==null?void 0:(u=y.basicColorPaletteData)==null?void 0:u.foregroundBodyColor;v&&(this.rgbBadgeColor=_.aH(v));_.hw(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
kq.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")};
kq.prototype.tooltipChanged=kq.prototype.tooltipChanged;kq.prototype.colorChanged=kq.prototype.colorChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],kq.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],kq.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(OOY.YtSharedTooltipBehavior),_.p("design:type",Object)],kq.prototype,"ytSharedTooltipBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],kq.prototype,"data",void 0);
_.A([_.r({value:"#4285F4"}),_.p("design:type",String)],kq.prototype,"rgbBadgeColor",void 0);_.A([_.e0("data.color"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],kq.prototype,"colorChanged",null);_.A([_.e0("data.tooltip"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],kq.prototype,"tooltipChanged",null);_.A([_.q({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],kq);
_.m(kq,"ytd-sponsor-comment-badge-renderer",function(){if(lSL!==void 0)return lSL;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return lSL=R},{mode:1});var HOg;var np8;var EU=function(){return _.W.apply(this,arguments)||this};
_.O(EU,_.W);EU.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"}};
EU.prototype.updateStateIdentifier=function(R){if(this.viewModel.triStateKey){var y=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.DT("triStateButtonStateEntityPayload",y,{key:y,stateIdentifier:R}))}};
EU.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")}};
_.RR.Object.defineProperties(EU.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([_.r(),_.p("design:type",Object)],EU.prototype,"viewModel",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],EU.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],EU.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],EU.prototype,"ytRendererBehavior",void 0);_.A([_.r({selector:mmv,selectorArgs:["viewModel.triStateKey"]}),_.p("design:type",Object)],EU.prototype,"triStateButtonStateEntity",void 0);
_.A([_.r({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.p("design:type",String)],EU.prototype,"state",void 0);_.A([_.G("viewModel","state"),_.p("design:type",Object),_.p("design:paramtypes",[])],EU.prototype,"data",null);_.A([_.G("data"),_.p("design:type",String),_.p("design:paramtypes",[])],EU.prototype,"buttonText",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],EU);
_.m(EU,"ytd-tri-state-button-view-model",function(){if(np8!==void 0)return np8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return np8=R},{mode:1});var GVG;var rCV;var $q=function(){var R=_.W.apply(this,arguments)||this;R.defaultIconToFilled=!_.f("kevlar_fill_comment_chip_icon_killswitch");return R};
_.O($q,_.W);$q.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
$q.prototype.dataChanged=function(){if(this.data){var R,y;((R=this.data.chipColorPalette)==null?0:R.backgroundColor)&&((y=this.data.chipColorPalette)==null?0:y.foregroundTitleColor)&&_.oX(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.Sq(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.Sq(this.data.chipColorPalette.foregroundTitleColor)});var u;((u=this.data)==null?0:u.command)?(_.oX(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.oX(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}};
$q.prototype.onTap=function(){var R;if(this.data&&(R=this.data)!=null&&R.command){var y;this.ytComponentBehavior.resolveCommand((y=this.data)==null?void 0:y.command)}};
$q.prototype.getIconSize=function(){return _.f("kevlar_fill_comment_chip_icon_killswitch")?24:12};
$q.prototype.onTap=$q.prototype.onTap;$q.prototype.dataChanged=$q.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],$q.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],$q.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.Gh),_.p("design:type",Object)],$q.prototype,"ironA11yKeysBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],$q.prototype,"data",void 0);
_.A([_.r(),_.p("design:type",Object)],$q.prototype,"basePriceText",void 0);_.A([_.r(),_.p("design:type",Object)],$q.prototype,"chipIcon",void 0);_.A([_.r(),_.p("design:type",Object)],$q.prototype,"defaultIconToFilled",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$q.prototype,"dataChanged",null);_.A([_.fu("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$q.prototype,"onTap",null);
_.A([_.pu({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],$q);
_.m($q,"yt-pdg-comment-chip-renderer",function(){if(rCV===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;GVG===void 0&&(GVG=document.createElement("template"));var v=GVG;u.call(y,v.content.cloneNode(!0),R.content.firstChild);rCV=R}R=rCV;return R},{mode:2});var q6=function(){var R=_.W.apply(this,arguments)||this;R.useSmallAvatars=_.f("small_avatars_for_comments");R.webWatchCompactComments=_.f("web_watch_compact_comments");R.editDialog=null;return R};
_.O(q6,_.W);_.J=q6.prototype;_.J.onShow=function(){_.Xh("cmv",void 0,"wn_comments")};
_.J.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"}}}};
_.J.detached=function(){this.editDialog=null;this.expander.reset()};
_.J.updateBackgroundColor=function(){if(this.backgroundColor){var R={"--ytd-comment-paid-background-color":_.Sq(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.oX(this.hostElement,R)}else _.oX(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.J.resetExpander=function(){var R;(R=this.expander)==null||R.reset()};
_.J.openEditDialog=function(R){R.dialog&&(this.editDialog=R.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.J.onYtNavigate=function(R){var y=R.detail.endpoint;if(y=_.e(y,_.pOG)||_.e(y,_.tti))R.stopPropagation(),this.openEditDialog(y)};
_.J.onYtCommentboxDismiss=function(){this.editDialog=null;_.oX(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.J.onAuthorThumbnailClicked=function(){_.f("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.J.onYtCommentboxResize=function(R){var y;(R==null?0:(y=R.detail)==null?0:y.height)&&_.oX(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":R.detail.height+"px"})};
_.RR.Object.defineProperties(q6.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,y=(R=this.commentEntity)==null?void 0:R.author;return y&&(y.isCreator||y.isVerified||y.isArtist)?{renderer:{authorEndpoint:y.channelPageEndpoint?_.e(y.channelPageEndpoint,_.ac):_.e(y.channelCommand,_.ac),authorText:{runs:[{text:y.displayName}]},color:y.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:y.isArtist?{iconType:"AUDIO_BADGE"}:
y.isVerified?{iconType:y.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:y.isArtist||y.isVerified?y.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var R,y=(R=this.commentEntity)==null?void 0:R.author;return y!=null&&y.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:y.sponsorBadgeUrl}]},tooltip:y.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var R;return _.e((R=this.commentSurfaceEntity)==null?void 0:R.pdgCommentChip,_.oW8)||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 _.e((R=this.commentSurfaceEntity)==null?void 0:R.voiceReplyContainerViewModel,gjw)||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,y;return(y=(R=this.commentSurfaceEntity)==null?void 0:R.commentBackgroundColor)!=null?y:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.f("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var R,y;return(((R=this.commentEntity)==null?void 0:(y=R.properties)==null?void 0:y.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var R,y;if(_.f("enable_profile_cards_on_comments")&&((R=this.commentEntity)==null?0:(y=R.author)==null?0:y.profileCardEndpoint)&&this.viewModel.allowProfileCard){var u,v;return _.e((u=this.commentEntity)==null?void 0:(v=u.author)==null?void 0:v.profileCardEndpoint,_.ac)}var Q,M;return _.e((Q=this.commentEntity)==null?void 0:(M=Q.avatar)==null?void 0:M.endpoint,_.ac)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var R,y;if(_.f("enable_profile_cards_on_comments")&&((R=this.commentEntity)==null?0:(y=R.author)==null?0:y.channelPageEndpoint)){var u,v;return _.e((u=this.commentEntity)==null?void 0:(v=u.author)==null?void 0:v.channelPageEndpoint,_.ac)}var Q,M;return _.e((Q=this.commentEntity)==null?void 0:(M=Q.avatar)==null?void 0:M.endpoint,_.ac)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var R,y,u,v,Q=(R=this.commentEntity)==null?void 0:(y=R.avatar)==null?void 0:(u=y.image)==null?void 0:(v=u.sources)==null?void 0:v[0];return Q?{thumbnails:[{url:Q.url,width:Q.width,height:Q.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var R,y;return((R=this.commentEntity)==null?0:(y=R.author)==null?0:y.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var R,y;return((R=this.commentEntity)==null?void 0:(y=R.author)==null?void 0:y.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var R,y;return((R=this.commentEntity)==null?void 0:(y=R.properties)==null?void 0:y.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var R;return _.e((R=this.commentSurfaceEntity)==null?void 0:R.publishedTimeCommand,_.ac)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var R,y;if(((R=this.commentEntity)==null?0:R.translatedContent)&&((y=this.translateButtonState)==null?void 0:y.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var u;if((u=this.voiceReplyContainerViewModel)==null?0:u.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var v,Q;return((v=this.commentEntity)==null?void 0:(Q=v.properties)==null?void 0:Q.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var R,y;return((R=this.commentSharedEntity)==null?void 0:(y=R.strings)==null?void 0:y.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var R,y;return((R=this.commentSharedEntity)==null?void 0:(y=R.strings)==null?void 0:y.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,y,u=(y=_.e((R=this.viewModel)==null?void 0:R.translateButton,zE5))!=null?y:{},v,Q,M,K,h,b,N,T,x,B,l;return Object.assign({},u,{untoggledStateData:Object.assign({},u.untoggledStateData,{buttonText:(v=this.commentEntity)==null?void 0:(Q=v.translateData)==null?void 0:Q.text}),togglingStateData:Object.assign({},u.togglingStateData,{buttonText:(M=this.commentSharedEntity)==null?
void 0:(K=M.strings)==null?void 0:K.translatingText}),toggledStateData:Object.assign({},u.toggledStateData,{buttonText:(h=this.commentSharedEntity)==null?void 0:(b=h.strings)==null?void 0:b.seeOriginalText}),transitionCommand:((N=this.commentEntity)==null?0:N.translatedContent)?void 0:_.e((T=this.commentEntity)==null?void 0:(x=T.translateData)==null?void 0:x.translateComment,_.ac),triStateKey:(B=this.commentEntity)==null?void 0:(l=B.properties)==null?void 0:l.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var R,y,u;return((y=_.e(_.e((R=this.toolbarSurface)==null?void 0:R.menuCommand,_.ac),cjT))==null?void 0:(u=y.menu)==null?void 0:u.menuRenderer)||null}}});
q6.prototype.onYtCommentboxResize=q6.prototype.onYtCommentboxResize;q6.prototype.onYtCommentboxDismiss=q6.prototype.onYtCommentboxDismiss;q6.prototype.onYtNavigate=q6.prototype.onYtNavigate;q6.prototype.resetExpander=q6.prototype.resetExpander;q6.prototype.updateBackgroundColor=q6.prototype.updateBackgroundColor;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],q6.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],q6.prototype,"ytdReduxBehavior",void 0);
_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],q6.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],q6.prototype,"ytRendererstamperBehavior",void 0);_.A([_.O7("#author-thumbnail > button"),_.p("design:type",HTMLElement)],q6.prototype,"authorThumbnailAnchor",void 0);_.A([_.r({reflectToAttribute:!0}),_.G("viewModel"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],q6.prototype,"linked",null);
_.A([_.G("viewModel","linked"),_.p("design:type",Object),_.p("design:paramtypes",[])],q6.prototype,"linkedCommentBadge",null);_.A([_.r({reflectToAttribute:!0}),_.G("viewModel"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],q6.prototype,"pinned",null);_.A([_.G("viewModel","pinned"),_.p("design:type",Object),_.p("design:paramtypes",[])],q6.prototype,"pinnedCommentBadge",null);
_.A([_.G("commentEntity","commentSharedEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],q6.prototype,"authorCommentBadge",null);_.A([_.r({reflectToAttribute:!0}),_.G("authorCommentBadge"),_.p("design:type",Object),_.p("design:paramtypes",[])],q6.prototype,"hasAuthorBadge",null);_.A([_.G("commentEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],q6.prototype,"sponsorCommentBadge",null);
_.A([_.r({reflectToAttribute:!0}),_.G("sponsorCommentBadge"),_.p("design:type",Object),_.p("design:paramtypes",[])],q6.prototype,"hasSponsorBadge",null);_.A([_.G("commentSurfaceEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],q6.prototype,"pdgCommentChipRenderer",null);_.A([_.r({reflectToAttribute:!0}),_.G("voiceReplyContainerViewModel"),_.p("design:type",Object),_.p("design:paramtypes",[])],q6.prototype,"hasVoiceReply",null);
_.A([_.G("commentSurfaceEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],q6.prototype,"voiceReplyContainerViewModel",null);_.A([_.G("voiceReplyContainerViewModel"),_.p("design:type",Object),_.p("design:paramtypes",[])],q6.prototype,"voiceReplyUnavailableText",null);_.A([_.r(),_.p("design:type",Object)],q6.prototype,"data",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],q6.prototype,"viewModel",null);
_.A([_.r({selector:function(R,y){return _.TI(R.entities,"commentSharedEntityPayload",y)},
selectorArgs:["viewModel.sharedKey"]}),_.p("design:type",Object)],q6.prototype,"commentSharedEntity",void 0);_.A([_.r({selector:function(R,y){return _.TI(R.entities,"commentEntityPayload",y)},
selectorArgs:["viewModel.commentKey"]}),_.p("design:type",Object)],q6.prototype,"commentEntity",void 0);_.A([_.r({selector:function(R,y){return _.TI(R.entities,"commentSurfaceEntityPayload",y)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.p("design:type",Object)],q6.prototype,"commentSurfaceEntity",void 0);_.A([_.r({selector:XXU,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.p("design:type",Object)],q6.prototype,"toolbarSurface",void 0);_.A([_.r({selector:mmv,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.p("design:type",Object)],q6.prototype,"translateButtonState",void 0);
_.A([_.G("commentSurfaceEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],q6.prototype,"backgroundColor",null);_.A([_.r({reflectToAttribute:!0}),_.G("viewModel"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],q6.prototype,"optimalReadingWidthComments",null);_.A([_.O7("ytd-expander"),_.p("design:type",Object)],q6.prototype,"expander",void 0);
_.A([_.e0("backgroundColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],q6.prototype,"updateBackgroundColor",null);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],q6.prototype,"useSmallAvatars",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],q6.prototype,"webWatchCompactComments",void 0);_.A([_.r({reflectToAttribute:!0}),_.G("commentEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],q6.prototype,"isReply",null);
_.A([_.G("commentEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],q6.prototype,"authorThumbnailEndpoint",null);_.A([_.G("commentEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],q6.prototype,"authorNameEndpoint",null);_.A([_.G("commentEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],q6.prototype,"authorThumbnail",null);_.A([_.G("commentEntity"),_.p("design:type",String),_.p("design:paramtypes",[])],q6.prototype,"authorTextClass",null);
_.A([_.G("commentEntity"),_.p("design:type",String),_.p("design:paramtypes",[])],q6.prototype,"authorChannelName",null);_.A([_.G("commentEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],q6.prototype,"publishedTime",null);_.A([_.G("commentSurfaceEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],q6.prototype,"publishedTimeCommand",null);
_.A([_.G("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.p("design:type",Object),_.p("design:paramtypes",[])],q6.prototype,"contentText",null);_.A([_.e0("contentText"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],q6.prototype,"resetExpander",null);_.A([_.G("commentEntity"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],q6.prototype,"shouldShowReadMoreInitially",null);
_.A([_.G("commentSharedEntity"),_.p("design:type",String),_.p("design:paramtypes",[])],q6.prototype,"expandText",null);_.A([_.G("commentSharedEntity"),_.p("design:type",String),_.p("design:paramtypes",[])],q6.prototype,"collapseText",null);_.A([_.G("commentEntity"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],q6.prototype,"shouldShowTranslateButton",null);
_.A([_.G("commentEntity","commentSharedEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],q6.prototype,"translateButton",null);_.A([_.G("toolbarSurface"),_.p("design:type",Object),_.p("design:paramtypes",[])],q6.prototype,"overflowMenuRenderer",null);_.A([_.r(),_.p("design:type",Object)],q6.prototype,"editDialog",void 0);_.A([_.O7("ytd-comment-dialog-renderer"),_.p("design:type",Object)],q6.prototype,"editCommentDialogContainer",void 0);
_.A([_.O7("ytd-comment-reply-dialog-renderer"),_.p("design:type",Object)],q6.prototype,"editReplyDialogContainer",void 0);_.A([_.fu("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],q6.prototype,"onYtNavigate",null);_.A([_.fu("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],q6.prototype,"onYtCommentboxDismiss",null);
_.A([_.fu("yt-commentbox-resize"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],q6.prototype,"onYtCommentboxResize",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-comment-view-model"})],q6);
_.m(q6,"ytd-comment-view-model",function(){if(HOg!==void 0)return HOg;var R=document.createElement("template");_.H(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"> </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model">\n          \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model"> [[authorChannelName]] </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" recompute-on-resize="[[webWatchCompactComments]]" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n');R.content.insertBefore(_.t().content.cloneNode(!0),
R.content.firstChild);return HOg=R},{mode:_.TN("kevlar_poly_si_batch_j025")?1:2});var XX=function(){var R=_.W.apply(this,arguments)||this;R.modern=_.f("web_modern_buttons");R.commentThreadingEnabled=_.f("web_delhi_comment_threads");R.isWatchGrid=_.f("kevlar_watch_grid");R.buttonOverrides=R.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};R.JSC$15806_spinnerEl=null;return R};
_.O(XX,_.W);_.J=XX.prototype;_.J.configureContinuationPathMap=function(){return _.f("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.J.shouldShowExpandedThreads=function(R,y){return this.commentThreadingEnabled&&!y&&(R==null?void 0:R.length)>0};
_.J.shouldShowCollapsedThreads=function(R,y){return this.commentThreadingEnabled&&y&&R};
_.J.computeThreadRenderer=function(R){return _.e(R,twc)};
_.J.computeIsContinuationItem=function(R){return!!this.computeContinuationItemRenderer(R)};
_.J.computeButtonRenderer=function(R){return _.e(R,_.aG)};
_.J.computeContinuationItemRenderer=function(R){return _.e(R,_.Je)};
_.J.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]]"}}}}}};
_.J.attached=function(){this.isShowRepliesVisible=!0};
_.J.dataChanged=function(){var R=this.expanderContents;R&&(R.hidden=!0);this.isLoading=!1};
_.J.endsInContinuation=function(R){return!!R&&R.length>0&&!!this.computeContinuationItemRenderer(R[R.length-1])};
_.J.computeShouldShowHideRepliesButton=function(R,y){return!R&&y};
_.J.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.J.isLoadingChanged=function(){this.isLoading&&!this.JSC$15806_spinnerEl&&(this.JSC$15806_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.hw(this.expanderContents).appendChild(this.JSC$15806_spinnerEl));this.JSC$15806_spinnerEl&&(this.JSC$15806_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var R;(R=this.contents)==null||R.classList.remove("reloading")}};
_.J.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var R=_.e(this.data.viewReplies,_.aG);R&&this.ytRendererBehavior.logExplicitClick(R);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.J.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var R=_.e(this.data.hideReplies,_.aG);R&&this.ytRendererBehavior.logExplicitClick(R);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.J.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var R=_.hw(this.hostElement).querySelector("#expander-contents");R&&(R.hidden=this.isShowRepliesVisible)}};
_.J.computeAlign=function(){if(this.modern){var R;return!((R=this.data)==null?0:R.viewRepliesCreatorThumbnail)}};
_.RR.Object.defineProperties(XX.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var R,y;return this.endsInContinuation((R=this.data)==null?void 0:R.contents)||this.commentThreadingEnabled&&this.endsInContinuation((y=this.data)==null?void 0:y.subThreads)}}});
XX.prototype.isShowMoreChanged=XX.prototype.isShowMoreChanged;XX.prototype.isLoadingChanged=XX.prototype.isLoadingChanged;XX.prototype.triggerFirstContinuation=XX.prototype.triggerFirstContinuation;XX.prototype.dataChanged=XX.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],XX.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],XX.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.n(_.gb),_.p("design:type",Object)],XX.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],XX.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],XX.prototype,"modern",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],XX.prototype,"commentThreadingEnabled",void 0);_.A([_.r(),_.p("design:type",Boolean)],XX.prototype,"collapsed",void 0);
_.A([_.r(),_.p("design:type",Function)],XX.prototype,"toggleCollapsed",void 0);_.A([_.r(),_.p("design:type",Boolean)],XX.prototype,"isLoading",void 0);_.A([_.r({value:!0}),_.p("design:type",Boolean)],XX.prototype,"isShowRepliesVisible",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],XX.prototype,"useNewFormatting",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],XX.prototype,"isWatchGrid",void 0);_.A([_.r(),_.p("design:type",Object)],XX.prototype,"buttonOverrides",void 0);
_.A([_.O7("#expander-contents"),_.p("design:type",HTMLElement)],XX.prototype,"expanderContents",void 0);_.A([_.O7("ytd-continuation-item-renderer"),_.p("design:type",Object)],XX.prototype,"continuationItemRenderer",void 0);_.A([_.O7("#contents"),_.p("design:type",HTMLElement)],XX.prototype,"contents",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],XX.prototype,"dataChanged",null);
_.A([_.G("data.contents","data.subThreads.*"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],XX.prototype,"hasContinuation",null);_.A([_.fu("yt-expander-more-tapped"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],XX.prototype,"triggerFirstContinuation",null);_.A([_.e0("isLoading"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],XX.prototype,"isLoadingChanged",null);
_.A([_.e0("isShowRepliesVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],XX.prototype,"isShowMoreChanged",null);_.A([_.q({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],XX);
_.m(XX,"ytd-comment-replies-renderer",function(){if(Bki!==void 0)return Bki;var R=document.createElement("template");_.H(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="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div hidden="[[!shouldShowCollapsedThreads(data.viewReplies, collapsed)]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n    <div class="threadline style-scope ytd-comment-replies-renderer">\n      <div class="connection style-scope ytd-comment-replies-renderer"></div>\n      <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n      <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n    </div>\n    <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="more-replies-sub-thread" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowMoreTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div hidden="[[!shouldShowExpandedThreads(data.subThreads, collapsed)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button$="[[computeIsContinuationItem(item)]]">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n          <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n          </ytd-comment-thread-renderer>\n        </template>\n        <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n          <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="" class="style-scope ytd-comment-replies-renderer">\n          </ytd-continuation-item-renderer>\n        </template>\n      </div>\n    </div>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-sub-thread" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </template>\n</div>\n');R.content.insertBefore(_.t().content.cloneNode(!0),
R.content.firstChild);return Bki=R},{mode:1});var P9g;var m7=function(){var R=_.W.apply(this,arguments)||this;R.isOpen=!1;R.commentDialog=null;R.useSmallAvatars=_.f("small_avatars_for_comments");R.useSmallAvatarsEngagementPanelOnly=_.f("small_avatars_for_comments_ep");R.placeholderFocusListener=null;R.hasOpenedDialog=!1;R.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return R};
_.O(m7,_.W);_.J=m7.prototype;_.J.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]]"}}}}}};
_.J.ready=function(){var R=this,y=_.hw(this.hostElement).querySelector("#placeholder-area"),u=_.hw(this.hostElement).querySelector("#simplebox-placeholder"),v=function(Q){Q.stopPropagation();Q instanceof KeyboardEvent&&Q.type==="keypress"&&Q.keyCode!==13&&Q.keyCode!==32||R.openDialog()};
this.placeholderFocusListener=v;u.addEventListener("focus",this.placeholderFocusListener);y.addEventListener("tap",v);y.addEventListener("keypress",v)};
_.J.maybeRemoveFocusEventListener=function(){var R;(R=this.data)!=null&&R.prepareAccountEndpoint&&!_.f("web_comments_simplebox_modal_focus_on_tap_ks")&&(R=_.hw(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(R.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.J.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.J.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.f("web_comment_simplebox_resolve_polymer_command_ks")?_.lX.instance.resolveCommand(this.data.prepareAccountEndpoint):_.O4(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var R=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);R&&this.ytdOpenPopupBehavior.openPopup(R);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.hw(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.J.onYtCommentboxDismiss=function(R){R.stopPropagation();this.isOpen=!1};
_.J.onCreateCommentAction=function(R){this.get("createCommentAction.contents",R)&&(this.isOpen=!1)};
_.J.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}};
_.J.onHideIdentityChip=function(R){_.e(R,q8b)&&this.set("data.placeholderText",_.e(R,q8b).placeholderText)};
m7.prototype.onYtCommentboxDismiss=m7.prototype.onYtCommentboxDismiss;m7.prototype.dataChanged=m7.prototype.dataChanged;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],m7.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.jc),_.p("design:type",Object)],m7.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],m7.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],m7.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],m7.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],m7.prototype,"isOpen",void 0);_.A([_.r(),_.p("design:type",Object)],m7.prototype,"commentDialog",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],m7.prototype,"engagementPanel",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],m7.prototype,"useSmallAvatars",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],m7.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],m7.prototype,"enableCreationBox",void 0);_.A([_.r(),_.p("design:type",Boolean)],m7.prototype,"showCreateDialog",void 0);
_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],m7.prototype,"dataChanged",null);_.A([_.fu("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],m7.prototype,"onYtCommentboxDismiss",null);_.A([_.q({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],m7);
_.m(m7,"ytd-comment-simplebox-renderer",function(){if(P9g!==void 0)return P9g;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return P9g=R},{mode:1});var WA5;_.Dl("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var AK=function(){var R=_.W.apply(this,arguments)||this;R.addHoverEffect=_.f("swatcheroo_comments_hover_effect");R.useSmallAvatars=_.f("small_avatars_for_comments");R.threadHovered=!1;R.collapsed=!1;R.toggleCollapsed=function(){R.collapsed=!R.collapsed;R.collapsed&&_.f("web_comment_threading_scroll_on_collapse")&&_.Ik(R.hostElement,"yt-scroll-to-watch-element",[R.commentElement])};
return R};
_.O(AK,_.W);AK.prototype.onTap=function(R){if(this.addHoverEffect&&!this.engagementPanel&&!_.JF(_.u8(R)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var y;((y=window.getSelection())==null?0:y.toString().length)||_.O4({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
AK.prototype.attached=function(){var R=this,y;(y=this.commentThreadHitbox)==null||y.addEventListener("mouseover",function(){R.threadHovered=!0});
var u;(u=this.commentThreadHitbox)==null||u.addEventListener("mouseout",function(){R.threadHovered=!1});
var v;(v=this.commentThreadHitbox)==null||v.addEventListener("click",function(){R.maybeToggleCollapsed()})};
AK.prototype.maybeToggleCollapsed=function(){var R,y,u,v=(R=this.data)==null?void 0:(y=R.replies)==null?void 0:(u=y.commentRepliesRenderer)==null?void 0:u.subThreads;v&&(v.length===1&&_.e(v[0],_.Je)||this.toggleCollapsed())};
_.RR.Object.defineProperties(AK.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.data)!=null&&R.commentViewModel)return _.e(this.data.commentViewModel,sew)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var R,y,u;return _.f("web_delhi_comment_threads")&&!!((R=this.data)==null?0:(y=R.replies)==null?0:(u=y.commentRepliesRenderer)==null?0:u.subThreads)}}});
AK.prototype.onTap=AK.prototype.onTap;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],AK.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],AK.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],AK.prototype,"addHoverEffect",void 0);_.A([_.r(),_.p("design:type",Object)],AK.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],AK.prototype,"useSmallAvatars",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],AK.prototype,"isSubThread",void 0);_.A([_.O7(".thread-hitbox"),_.p("design:type",HTMLElement)],AK.prototype,"commentThreadHitbox",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],AK.prototype,"threadHovered",void 0);_.A([_.O7("#comment"),_.p("design:type",HTMLElement)],AK.prototype,"commentElement",void 0);
_.A([_.r(),_.p("design:type",Object)],AK.prototype,"collapsed",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],AK.prototype,"commentViewModel",null);_.A([_.G("data.replies"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],AK.prototype,"hasSubThreading",null);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],AK.prototype,"engagementPanel",void 0);
_.A([_.fu("tap"),_.fu("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],AK.prototype,"onTap",null);_.A([_.q({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],AK);
_.m(AK,"ytd-comment-thread-renderer",function(){if(WA5!==void 0)return WA5;var R=document.createElement("template");_.H(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<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer"> </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer collapsed="[[collapsed]]" data="[[data.replies.commentRepliesRenderer]]" toggle-collapsed="[[toggleCollapsed]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');R.content.insertBefore(_.t().content.cloneNode(!0),
R.content.firstChild);return WA5=R},{mode:_.TN("kevlar_poly_si_batch_j025")?1:2});var dK5;var DW=function(){var R=_.W.apply(this,arguments)||this;R.modernTypography=_.f("web_modern_typography");R.compactHeader=_.f("web_watch_compact_comments_header");R.hidePanelButton=!1;R.isPostSchedulingEnabled=_.f("enable_post_scheduling");R.hasFinishedStamping=!1;R.JSC$15824_handleOpenPostCommentDialogActionAfterStamp=!1;R.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return R};
_.O(DW,_.W);_.J=DW.prototype;
_.J.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"}}}};
_.J.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.J.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$15824_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.J.onYtServiceRequestSent=function(R,y){if(!_.f("kevlar_command_handler")&&y.actions)for(R=0;R<y.actions.length;R++){var u=y.actions[R];_.e(u,J8c)&&_.hw(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.e(u,J8c))}};
_.J.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var R;if(this.getPrefilledBackstagePostDialog((R=this.data)==null?void 0:R.actions)){_.hw(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var y=_.hw(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;y&&_.gn(this,function(){y.focus();y.openDialog&&y.openDialog()})}}else this.hasActionsChange=!0};
_.J.computeIsBackstage=function(R){return R};
_.J.onYtCommentboxDismiss=function(){_.hw(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.J.removePrefilledDialog=function(R){if(R==null?0:R.actions){for(var y=R.actions.length-1;y>=0;y--){var u=void 0;((u=_.e(R.actions[y],Ajc))==null?0:u.dialog)&&delete R.actions[y]}this.set("data",void 0);this.set("data",R)}};
_.J.getPrefilledBackstagePostDialog=function(R){if(R)for(var y=0;y<R.length;y++){var u=R[y],v=void 0;if((v=_.e(u,Ajc))==null?0:v.dialog)return _.e(u,Ajc).dialog}return null};
_.J.computeBackstagePostDialog=function(R){return R&&(this.getPrefilledBackstagePostDialog(R.actions)||R.createRenderer)};
_.J.dataChanged=function(){if(this.data){var R=this.data.customEmojis,y=this.data.unicodeEmojisUrl;_.LQ.clear();y&&_.U3Y(_.LQ,y);R&&_.LQ.load(R)}};
_.J.handleSignalActionOpenPostCommentDialogAction=function(){var R=_.hw(this.hostElement).querySelector("ytd-comment-simplebox-renderer");R?R.openDialog():this.JSC$15824_handleOpenPostCommentDialogActionAfterStamp=!0};
_.RR.Object.defineProperties(DW.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.f("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var R,y,u,v,Q,M,K;return!this.hidePanelButton&&_.f("kevlar_watch_comments_panel_button")&&((K=_.e((R=this.data)==null?void 0:(y=R.sortMenu)==null?void 0:(u=y.sortFilterSubMenuRenderer)==null?void 0:(v=u.subMenuItems)==null?void 0:(Q=v[0])==null?void 0:(M=Q.serviceEndpoint)==null?void 0:M.commandMetadata,_.QL))==null?void 0:K.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.fo("MINIPLAYER_EXPAND_LABEL"),text:_.ye(_.fo("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
DW.prototype.dataChanged=DW.prototype.dataChanged;DW.prototype.onYtCommentboxDismiss=DW.prototype.onYtCommentboxDismiss;DW.prototype.observePrefilledBackstagePostDialog=DW.prototype.observePrefilledBackstagePostDialog;DW.prototype.onYtServiceRequestSent=DW.prototype.onYtServiceRequestSent;DW.prototype.onStampFinished=DW.prototype.onStampFinished;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],DW.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],DW.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],DW.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],DW.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],DW.prototype,"modernTypography",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],DW.prototype,"compactHeader",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],DW.prototype,"engagementPanel",void 0);_.A([_.r(),_.p("design:type",Object)],DW.prototype,"hidePanelButton",void 0);_.A([_.r({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.p("design:type",Boolean)],DW.prototype,"isBackstage",void 0);_.A([_.r({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.p("design:type",Object)],DW.prototype,"backstagePostDialog",void 0);
_.A([_.r(),_.p("design:type",Object)],DW.prototype,"isPostSchedulingEnabled",void 0);_.A([_.r({reflectToAttribute:!0}),_.G("data","showCommentsPanelButton"),_.p("design:type",Object),_.p("design:paramtypes",[])],DW.prototype,"useSpaceBetween",null);_.A([_.r({reflectToAttribute:!0}),_.G("data","hidePanelButton"),_.p("design:type",Object),_.p("design:paramtypes",[])],DW.prototype,"showCommentsPanelButton",null);
_.A([_.G("data","showCommentsPanelButton"),_.p("design:type",Object),_.p("design:paramtypes",[])],DW.prototype,"commentsPanelButtonData",null);_.A([_.fu("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DW.prototype,"onStampFinished",null);_.A([_.fu("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.z3]),_.p("design:returntype")],DW.prototype,"onYtServiceRequestSent",null);
_.A([_.e0("data.actions"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DW.prototype,"observePrefilledBackstagePostDialog",null);_.A([_.fu("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],DW.prototype,"onYtCommentboxDismiss",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DW.prototype,"dataChanged",null);
_.A([_.q({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],DW);
_.m(DW,"ytd-comments-header-renderer",function(){if(dK5!==void 0)return dK5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return dK5=R},{mode:1});var UKT;var ps=function(){return _.W.apply(this,arguments)||this};
_.O(ps,_.W);_.A([_.r(),_.p("design:type",Object)],ps.prototype,"data",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ps.prototype,"ytRendererBehavior",void 0);_.A([_.q({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],ps);
_.m(ps,"ytd-destination-button-renderer",function(){if(UKT!==void 0)return UKT;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return UKT=R},{mode:1});var kV5;var tK=function(){var R=_.W.apply(this,arguments)||this;R.isRichGrid=!1;R.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};R.modernTypography=_.f("web_modern_typography");return R};
_.O(tK,_.W);_.J=tK.prototype;_.J.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.J.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.J.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.J.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var R;if((R=this.data)==null||!R.isExpanded){R=this.hostElement.clientWidth;var y;if(R&&(y=this.data)!=null&&y.destinationButtons){y=Math.floor((R+4)/214);R=this.data.destinationButtons.length;var u=Math.ceil(R/y);this.fullyVisibleRows=R%y===1&&u===2?1:Math.min(u,2);this.isShowMoreVisible=this.fullyVisibleRows<u}}}};
_.J.updateRichGridDestinationButtonsVisibility=function(){var R,y;if(this.isRichGrid&&((R=this.data)==null||!R.isExpanded)&&(y=this.data)!=null&&y.destinationButtons){R=this.richGridItemsPerRow+1;y=this.data.destinationButtons.length;var u=Math.ceil(y/R);this.fullyVisibleRows=y%R===1&&u===2?1:Math.min(u,2);this.isShowMoreVisible=this.fullyVisibleRows<u}};
_.J.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
tK.prototype.updateRichGridDestinationButtonsVisibility=tK.prototype.updateRichGridDestinationButtonsVisibility;_.A([_.r(),_.p("design:type",Object)],tK.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Number)],tK.prototype,"fullyVisibleRows",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],tK.prototype,"isShowMoreVisible",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],tK.prototype,"isRichGrid",void 0);
_.A([_.r({selector:_.qq,value:0}),_.p("design:type",Number)],tK.prototype,"richGridItemsPerRow",void 0);_.A([_.r(),_.p("design:type",Object)],tK.prototype,"gridStateActionMap",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],tK.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],tK.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],tK.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],tK.prototype,"ytdReduxBehavior",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],tK.prototype,"modernTypography",void 0);_.A([_.e0("data","richGridItemsPerRow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tK.prototype,"updateRichGridDestinationButtonsVisibility",null);
_.A([_.q({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],tK);
_.m(tK,"ytd-destination-shelf-renderer",function(){if(kV5!==void 0)return kV5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return kV5=R},{mode:1});var Epc;var cv=function(){return _.W.apply(this,arguments)||this};
_.O(cv,_.W);cv.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],cv.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],cv.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],cv.prototype,"data",void 0);_.A([_.q({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],cv);
_.m(cv,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(Epc!==void 0)return Epc;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return Epc=R},{mode:1});var $K8;var ad=function(){var R=_.W.apply(this,arguments)||this;R.disableAnimation=!1;R.isSlimlineSurvey=!1;R.isSlimlineSurveyFollowUp=!1;R.isShortsStyle=!1;return R};
_.O(ad,_.W);ad.prototype.onTap=function(R){R.preventDefault();this.data&&_.Ko(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.RR.Object.defineProperties(ad.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,y,u,v,Q;return((R=this.data)==null?0:R.checked)?(y=this.data)==null?void 0:(u=y.onStateIcon)==null?void 0:u.iconType:(v=this.data)==null?void 0:(Q=v.defaultStateIcon)==null?void 0:Q.iconType}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ad.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],ad.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ad.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],ad.prototype,"disableAnimation",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ad.prototype,"isSlimlineSurvey",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ad.prototype,"isSlimlineSurveyFollowUp",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ad.prototype,"isShortsStyle",void 0);_.A([_.G("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ad.prototype,"isAnimatedIcon",null);
_.A([_.G("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.p("design:type",Number),_.p("design:paramtypes",[])],ad.prototype,"iconSize",null);_.A([_.G("isShortsStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ad.prototype,"isDarkTheme",null);_.A([_.G("data.checked"),_.p("design:type",Object),_.p("design:paramtypes",[])],ad.prototype,"icon",null);_.A([_.q({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],ad);
_.m(ad,"ytd-rating-survey-option-renderer",function(){if($K8!==void 0)return $K8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return $K8=R},{mode:2});var qag;var SA=function(){var R=_.W.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};
_.O(SA,_.W);_.J=SA.prototype;_.J.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.J.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.J.onOptionChange=function(R,y){var u=this;R=y.onStateIcon&&y.defaultStateIcon&&y.onStateIcon.iconType===y.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(K,h){K.responseText===y.responseText?u.isSlimlineSurvey?(u.selectedRatingIndex=h,u.ytdReduxBehavior.dispatch(Hw5(h))):(u.setSurveyOptionValue(h,!0,"checked"),u.setSurveyOptionValue(h,!0,"selected")):(u.setSurveyOptionValue(h,!1,"checked"),u.setSurveyOptionValue(h,
!1,"selected"))});
else if(R)this.selectedNonStarOption=y,this.hideOptions=!0;else{var v=this.ytRendererBehavior.getSimpleString(y.responseText),Q=!0;this.getOptionRenderers().forEach(function(K,h){u.setSurveyOptionValue(h,Q,"checked");u.setSurveyOptionValue(h,!1,"selected");u.ytRendererBehavior.getSimpleString(K.responseText)===v&&(Q=!1,u.setSurveyOptionValue(h,!0,"selected"))})}R=y.responseEndpoint;
var M;y.followUpCommand&&(M=_.e(y.followUpCommand,hsi));this.isSlimlineSurvey?(this.resetComponent(),_.Ik(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.Ik(this.hostElement,"ytd-inline-survey-rating-select-action",[R,M])};
_.J.showSelectedOption=function(){var R=this;_.WG.addJob(function(){var y=R.getOptionRenderers()[R.slimlineSurveyRatingSelectedIndex];R.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),y)},8,100)};
_.J.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(R){var y;return(y=_.e(R,FBg))!=null?y:{}}):[]};
_.J.onUndoClick=function(){this.resetComponent();_.Ik(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.J.setSurveyOptionValue=function(R,y,u){this.notifyPath("data.ratings."+R+".ratingSurveyOptionRenderer."+u);this.set("data.ratings."+R+".ratingSurveyOptionRenderer."+u,y)};
_.J.resetComponent=function(){var R=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var y=this.getOptionRenderers(),u,v;this.firstResponseText=(v=(u=y[0])==null?void 0:u.responseText)!=null?v:null;var Q,M;this.lastResponseText=(M=(Q=y[y.length-1])==null?void 0:Q.responseText)!=null?M:null;y.forEach(function(K,h){R.setSurveyOptionValue(h,!1,"checked");R.setSurveyOptionValue(h,!1,"selected")})};
_.RR.Object.defineProperties(SA.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
SA.prototype.onOptionChange=SA.prototype.onOptionChange;SA.prototype.dataChanged=SA.prototype.dataChanged;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],SA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],SA.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],SA.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],SA.prototype,"data",void 0);
_.A([_.r(),_.p("design:type",Object)],SA.prototype,"firstResponseText",void 0);_.A([_.r(),_.p("design:type",Object)],SA.prototype,"lastResponseText",void 0);_.A([_.r(),_.p("design:type",Object)],SA.prototype,"selectedNonStarOption",void 0);_.A([_.r(),_.p("design:type",Object)],SA.prototype,"hideOptions",void 0);_.A([_.r(),_.p("design:type",Object)],SA.prototype,"hideUndoButton",void 0);_.A([_.r(),_.p("design:type",Object)],SA.prototype,"disableAnimation",void 0);
_.A([_.r(),_.p("design:type",Object)],SA.prototype,"showResponseRangeText",void 0);_.A([_.r(),_.p("design:type",Object)],SA.prototype,"selectedRatingIndex",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],SA.prototype,"isSlimlineSurvey",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],SA.prototype,"isSlimlineSurveyFollowUp",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],SA.prototype,"isShortsStyle",void 0);_.A([_.r({selector:function(R){return R.ui.slimlineSurveyRatingSelectedIndex}}),
_.p("design:type",Object)],SA.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.A([_.G("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],SA.prototype,"isSingleSelect",null);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],SA.prototype,"dataChanged",null);
_.A([_.fu("ytd-rating-survey-option-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],SA.prototype,"onOptionChange",null);_.A([_.q({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],SA);
_.m(SA,"ytd-rating-survey-renderer",function(){if(qag!==void 0)return qag;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return qag=R},{mode:1});var XPL;var mKc;var ACg;var y1U=(r$.FIRSTDAYOFWEEK+1)%7,DKc=function(R,y,u,v){var Q="";if(v.selection&&zIU(v.selection))H2(R,v.selection)&&(Q+=" selected");else if(v.selection&&gNE(v.selection)){var M=v.selection.selectionState||"START_DATE";H2(R,v.selection.start)&&(Q+=" period-start ",M==="START_DATE"&&(Q+="selected"));H2(R,v.selection.end)&&(Q+=" period-end ",M==="END_DATE"&&(Q+="selected"));nX(R,v.selection.start)||nX(v.selection.end,R)||(Q+=" highlighted")}if(nX(y,v.start)||nX(v.end,y))Q+=" disabled";v.circleToday&&
H2(y,u)&&(Q+=" today");return Q};var Yq=function(){return _.W.apply(this,arguments)||this};
_.O(Yq,_.W);_.J=Yq.prototype;_.J.attached=function(){var R=this;_.gn(this,function(){R.JSC$15858_calendarMain.scrollHeight>0&&(R.calendarConfig.selection?R.scrollToDate(C4P(R.calendarConfig.selection)):R.scrollToDate(R.calendarConfig.end))})};
_.J.updateSelection=function(R){R=uIU(Object.assign({},this.calendarConfig,{selection:R}),DKc);this.splice.apply(this,["renderData.months",0,R.length].concat(_.P$(R)))};
_.J.scrollToDate=function(R){this.renderData&&(R=vGv(R,this.renderData),R!==void 0&&this.JSC$15858_calendarMain.scrollToIndex(R))};
_.J.scrollToNextMonth=function(){this.JSC$15858_calendarMain.scrollToIndex(this.JSC$15858_calendarMain.firstVisibleIndex+1)};
_.J.scrollToPrevMonth=function(){this.JSC$15858_calendarMain.firstVisibleIndex===0&&this.JSC$15858_calendarMain.scrollTo(0,0);this.JSC$15858_calendarMain.scrollToIndex(this.JSC$15858_calendarMain.firstVisibleIndex-1)};
_.J.handleDayClick=function(R){_.Ik(this.hostElement,"ytd-calendar-date-clicked",[R.model.day.date])};
_.J.handleDayMouseDown=function(R){R.preventDefault();_.Ik(this.hostElement,"ytd-calendar-date-mousedown",[R.model.day.date])};
_.J.handleDayMouseUp=function(R){_.Ik(this.hostElement,"ytd-calendar-date-mouseup",[R.model.day.date])};
_.J.handleDayMouseEnter=function(R){R.preventDefault();_.Ik(this.hostElement,"ytd-calendar-date-mouseenter",[R.model.day.date])};
_.J.handleDayMouseLeave=function(R){_.Ik(this.hostElement,"ytd-calendar-date-mouseleave",[R.model.day.date])};
_.RR.Object.defineProperties(Yq.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var R=this.calendarConfig,y=DKc;y=y===void 0?DKc:y;for(var u=[],v=0;v<7;v++)u.push(r$.NARROWWEEKDAYS[(v+y1U)%7]);return{months:uIU(R,y),daysOfWeekLabel:u}}}});
_.A([_.r(),_.p("design:type",Object)],Yq.prototype,"calendarConfig",void 0);_.A([_.O7("#calendar-main"),_.p("design:type",Object)],Yq.prototype,"JSC$15858_calendarMain",void 0);_.A([_.G("calendarConfig"),_.p("design:type",Object),_.p("design:paramtypes",[])],Yq.prototype,"renderData",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],Yq);
_.m(Yq,"ytd-scrollable-calendar",function(){if(ACg!==void 0)return ACg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return ACg=R},{mode:2});var pPc;var tR5;var Ls=function(){var R=_.W.apply(this,arguments)||this;R.hideCharCounter=!1;R.hideLabel=!1;R.noLabelFloat=!1;R.autoValidate=!0;R.invalid=!1;R.disabled=!1;R.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return R};
_.O(Ls,_.W);_.J=Ls.prototype;_.J.reset=function(R){this.value=R&&this.data?this.data.value=R:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.J.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.J.focusTextInput=function(){this.input.focus()};
_.J.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()};
_.J.valueChanged=function(){var R,y;if(((R=this.data)==null?0:R.value)||((y=this.data)==null?void 0:y.value)==="")this.value=this.data.value;else{var u;((u=this.data)==null?void 0:u.value)!==void 0||this.value||(this.value="")}};
_.J.computeLabel=function(R,y){return y?"":_.u7(R)};
_.J.computeAriaLabel=function(R,y){return y?_.u7(R):""};
_.J.computeErrorMessage=function(R,y,u,v){!R&&y?R=u||this.strings.REQUIRED_LABEL:(R=_.u7(v),R=_.K8(R,"&")?"document"in _.uO?zTc(R):gSi(R):R);return R};
_.J.computeType=function(R){return R==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.J.onTextValueChanged=function(R){this.value=R.detail.value;var y;(y=this.onValueChanged)==null||y.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.J.handleUpdateTextInputFormFieldRendererCommand=function(R){(R=_.e(R,UEi))&&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))};
_.J.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.CQ("value-changed",this.value))};
_.J.updateInvalidFromBinding=function(R){this.invalid=R.detail.value};
_.RR.Object.defineProperties(Ls.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)}}});
Ls.prototype.valueChangedForBinding=Ls.prototype.valueChangedForBinding;Ls.prototype.valueChanged=Ls.prototype.valueChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Ls.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Ls.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Ls.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],Ls.prototype,"data",void 0);_.A([_.r(),_.p("design:type",String)],Ls.prototype,"value",void 0);_.A([_.r(),_.p("design:type",String)],Ls.prototype,"pattern",void 0);_.A([_.r(),_.p("design:type",String)],Ls.prototype,"errorMessage",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],Ls.prototype,"componentStyle",void 0);_.A([_.r(),_.p("design:type",Object)],Ls.prototype,"hideCharCounter",void 0);
_.A([_.r(),_.p("design:type",Object)],Ls.prototype,"hideLabel",void 0);_.A([_.r(),_.p("design:type",Object)],Ls.prototype,"noLabelFloat",void 0);_.A([_.r(),_.p("design:type",Function)],Ls.prototype,"onValueChanged",void 0);_.A([_.r(),_.p("design:type",Boolean)],Ls.prototype,"isMultilineOverride",void 0);_.A([_.r(),_.p("design:type",Object)],Ls.prototype,"autoValidate",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Ls.prototype,"invalid",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Ls.prototype,"disabled",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Ls.prototype,"enableOverlayTheme",void 0);_.A([_.r({value:{REQUIRED_LABEL:_.fo("REQUIRED_LABEL",void 0,"Required")}}),_.p("design:type",Object)],Ls.prototype,"strings",void 0);_.A([_.O7("#input"),_.p("design:type",Object)],Ls.prototype,"input",void 0);
_.A([_.G("data","isMultilineOverride"),_.p("design:type",Object),_.p("design:paramtypes",[])],Ls.prototype,"isMultiline",null);_.A([_.GJ("data.value"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ls.prototype,"valueChanged",null);_.A([_.e0("value"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ls.prototype,"valueChangedForBinding",null);_.A([_.pu({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],Ls);
_.m(Ls,"yt-text-input-form-field-renderer",function(){if(tR5===void 0){var R=document.createElement("template");_.H(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="" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" max-rows="5" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" rows="[[data.rows]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-textarea>\n</template>\n<template is="dom-if" if="[[!isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-input id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="[[!data.hideCharCounter]]" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" type="[[computeType(data.type)]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-input>\n</template>\n');
R.content.insertBefore(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;pPc===void 0&&(pPc=document.createElement("template"));var v=pPc;u.call(y,v.content.cloneNode(!0),R.content.firstChild);tR5=R}R=tR5;return R},{mode:2});var sU=function(){var R=_.W.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};
_.O(sU,_.W);_.J=sU.prototype;_.J.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"}}}}};
_.J.focus=function(){this.startDateInput.focus()};
_.J.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:Gx(this.data.selection.start),end:Gx(this.data.selection.end)})};
_.J.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.J.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.AL(this.selectionState)}};
_.J.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.J.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.J.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.J.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var R=this.calendar.calendarConfig,y=R.end;R=j4W({start:R.start,end:this.endDate||y},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()}};
_.J.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var R=this.calendar.calendarConfig,y=R.start;R=j4W({start:this.startDate||y,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()}};
_.J.handleCalendarDateClicked=function(R){var y=this.selection&&C4P(this.selection),u=this.selection&&RKP(this.selection);y&&!nX(R,y)&&this.selectionState==="END_DATE"?(this.selection={start:y,end:R},this.selectionState="START_DATE"):(u&&!nX(u,R)?this.selection={start:R,end:u}:this.selection=R,this.selectionState="END_DATE")};
_.J.handleCalendarDateMouseDown=function(R){this.selection&&!zIU(this.selection)&&(this.dragPivot=H2(R,this.selection.start)?this.selection.end:H2(R,this.selection.end)?this.selection.start:R)};
_.J.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.J.handleCalendarDateMouseEnter=function(R){this.dragPivot&&(this.selection={start:function(y,u){return nX(y,u)?y:u}(this.dragPivot,R),
end:function(y,u){return nX(y,u)?u:y}(this.dragPivot,R)},this.dragPivot||(this.selectionState="START_DATE"))};
_.J.handleCalendarDateMouseLeave=function(){};
_.J.handleCalendarSubmitDateRange=function(){this.selection&&!zIU(this.selection)&&_.Ik(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.J.updateInvalidState=function(){var R=function(y,u){u?y.setAttribute("invalid",""):y.removeAttribute("invalid")};
R(this.startDateInput,this.isStartDateInvalid);R(this.endDateInput,this.isEndDateInvalid)};
_.J.updateDateStrings=function(){this.selection&&(zIU(this.selection)?sgP(this.selection):(sgP(this.selection.start),sgP(this.selection.end)))};
_.J.updateCalendarSelection=function(R){this.calendar.updateSelection(Object.assign({},R,{selectionState:this.selectionState}))};
_.J.updateIsStartDateInvalidFromBinding=function(R){this.isStartDateInvalid=R.detail.value};
_.J.updateIsEndDateInvalidFromBinding=function(R){this.isEndDateInvalid=R.detail.value};
_.J.updateStartDateStringFromBinding=function(){};
_.J.updateEndDateStringFromBinding=function(){};
_.RR.Object.defineProperties(sU.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:Gx(this.data.dateRangeStart),end:Gx(this.data.dateRangeEnd),selection:{start:Gx(this.data.selection.start),end:Gx(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&&C4P(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&RKP(this.selection)}}});
sU.prototype.resetTextboxes=sU.prototype.resetTextboxes;sU.prototype.observeSelection=sU.prototype.observeSelection;sU.prototype.dataChanged=sU.prototype.dataChanged;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],sU.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],sU.prototype,"ytRendererstamperBehavior",void 0);_.A([_.O7("#calendar"),_.p("design:type",Object)],sU.prototype,"calendar",void 0);
_.A([_.O7("#start-date"),_.p("design:type",Object)],sU.prototype,"startDateInput",void 0);_.A([_.O7("#end-date"),_.p("design:type",Object)],sU.prototype,"endDateInput",void 0);_.A([_.r(),_.p("design:type",Object)],sU.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],sU.prototype,"selection",void 0);_.A([_.r(),_.p("design:type",String)],sU.prototype,"selectionState",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],sU.prototype,"calendarConfig",null);
_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],sU.prototype,"errorMessage",null);_.A([_.G("selection"),_.p("design:type",Object),_.p("design:paramtypes",[])],sU.prototype,"startDate",null);_.A([_.G("selection"),_.p("design:type",Object),_.p("design:paramtypes",[])],sU.prototype,"endDate",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sU.prototype,"dataChanged",null);
_.A([_.e0("selection","selectionState"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sU.prototype,"observeSelection",null);_.A([_.e0("selectionState"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sU.prototype,"resetTextboxes",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],sU);
_.m(sU,"ytd-date-period-picker-renderer",function(){if(mKc!==void 0)return mKc;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return mKc=R},{mode:1});var z4=function(){var R=_.W.apply(this,arguments)||this;var y={};R.actionMap=(y["ytd-date-period-picker-apply"]="handleDateRangeUpdated",y);return R};
_.O(z4,_.W);z4.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
z4.prototype.handleDateRangeUpdated=function(){};
_.A([_.r(),_.p("design:type",Object)],z4.prototype,"data",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],z4.prototype,"actionHandlerBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],z4.prototype,"rendererstamperBehavior",void 0);_.A([_.q({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],z4);
_.m(z4,"ytd-report-history-section-header-renderer",function(){if(XPL!==void 0)return XPL;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return XPL=R},{mode:1});var cCV;var aSc;var Sac;var g_=function(){return _.W.apply(this,arguments)||this};
_.O(g_,_.W);_.RR.Object.defineProperties(g_.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var R,y;return((R=this.data)==null?0:(y=R.icon)==null?0:y.iconType)?_.fk(this.data.icon.iconType):""}}});
_.A([_.r(),_.p("design:type",Object)],g_.prototype,"data",void 0);_.A([_.G("data"),_.p("design:type",String),_.p("design:paramtypes",[])],g_.prototype,"icon",null);_.A([_.q({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],g_);
_.m(g_,"ytd-report-history-table-text-cell-renderer",function(){if(Sac!==void 0)return Sac;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Sac=R},{mode:1});var Cs=function(){return _.W.apply(this,arguments)||this};
_.O(Cs,_.W);Cs.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Cs.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Cs.prototype,"data",void 0);_.A([_.q({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],Cs);
_.m(Cs,"ytd-report-history-table-reason-cell-renderer",function(){if(aSc!==void 0)return aSc;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return aSc=R},{mode:1});var RA=function(){return _.W.apply(this,arguments)||this};
_.O(RA,_.W);RA.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([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],RA.prototype,"rendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],RA.prototype,"data",void 0);_.A([_.q({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],RA);
_.m(RA,"ytd-report-history-table-cell-renderer",function(){if(cCV!==void 0)return cCV;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);
return cCV=R},{mode:1});var Yag;var y3=function(){var R=_.W.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};
_.O(y3,_.W);y3.prototype.onDataChanged=function(){var R;if((R=this.data)==null?0:R.style)this.componentStyle=this.getStyleName(this.data.style)};
y3.prototype.getCellForColumn=function(R){return this.cells.find(function(y){var u;return((u=_.e(y==null?void 0:y.cell,T1K)||_.e(y==null?void 0:y.cell,N15))==null?void 0:u.columnId)===R.type})};
y3.prototype.getClassForColumn=function(R){switch(R){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
y3.prototype.getStyleName=function(R){switch(R){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.RR.Object.defineProperties(y3.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var R;return(((R=this.data)==null?void 0:R.cells)||[]).map(function(y){return _.e(y,wt5)})}}});
y3.prototype.onDataChanged=y3.prototype.onDataChanged;_.A([_.r(),_.p("design:type",Object)],y3.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Array)],y3.prototype,"columnRenderData",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],y3.prototype,"componentStyle",void 0);_.A([_.G("data"),_.p("design:type",Array),_.p("design:paramtypes",[])],y3.prototype,"cells",null);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],y3.prototype,"onDataChanged",null);_.A([_.q({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],y3);
_.m(y3,"ytd-report-history-table-row-renderer",function(){if(Yag!==void 0)return Yag;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Yag=R},{mode:1});var LAK;var so5;var MG4={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},J1W={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var uI=function(){return _.W.apply(this,arguments)||this};
_.O(uI,_.W);uI.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"}}}}}};
uI.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.RR.Object.defineProperties(uI.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?0:R.columns)?hKE(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return KzL(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var R=this.tableSpec,y=MG4;y=y===void 0?J1W:y;y=I_P(R.columnDimensions,R.columnsToShow||[],y);R=0;y=_.V(y);for(var u=y.next();!u.done;u=y.next())u=u.value,R+=u.minWidth+u.paddingLeft+u.paddingRight;return R}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.A([_.n(_.gb),_.p("design:type",Object)],uI.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],uI.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],uI.prototype,"data",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],uI.prototype,"tableSpec",null);_.A([_.G("tableSpec"),_.p("design:type",Array),_.p("design:paramtypes",[])],uI.prototype,"columnRenderData",null);
_.A([_.G("tableSpec"),_.p("design:type",Number),_.p("design:paramtypes",[])],uI.prototype,"totalMinWidth",null);_.A([_.G("totalMinWidth"),_.p("design:type",String),_.p("design:paramtypes",[])],uI.prototype,"tableWidthStyle",null);_.A([_.q({is:"ytd-table-renderer",disableElementRegistration:!0})],uI);
_.m(uI,"ytd-table-renderer",function(){if(so5!==void 0)return so5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return so5=R},{mode:1});var vM=function(){return _.W.apply(this,arguments)||this};
_.O(vM,_.W);vM.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([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],vM.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],vM.prototype,"data",void 0);_.A([_.q({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],vM);
_.m(vM,"ytd-report-reason-history-modal-renderer",function(){if(LAK!==void 0)return LAK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return LAK=R},{mode:1});var zr5;var gpi;var C9T;var Q3=function(){return _.W.apply(this,arguments)||this};
_.O(Q3,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Q3.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Q3.prototype,"data",void 0);_.A([_.q({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],Q3);
_.m(Q3,"ytd-profile-column-stats-entry-renderer",function(){if(C9T!==void 0)return C9T;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return C9T=R},{mode:1});var Rmc;var jl=function(){return _.W.apply(this,arguments)||this};
_.O(jl,_.W);jl.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],jl.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],jl.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],jl.prototype,"data",void 0);_.A([_.q({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],jl);
_.m(jl,"ytd-profile-column-stats-renderer",function(){if(Rmc!==void 0)return Rmc;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return Rmc=R},{mode:1});var y$c;var M7=function(){return _.W.apply(this,arguments)||this};
_.O(M7,_.W);_.RR.Object.defineProperties(M7.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.data)==null||!R.useThumbnailSize)return 80;var y,u;R=(y=this.data)==null?void 0:(u=y.thumbnail)==null?void 0:u.thumbnails;var v;return R&&((v=R[0])==null?void 0:v.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.data)==null||!R.useThumbnailSize)return 80;var y,u;R=(y=this.data)==null?void 0:(u=y.thumbnail)==null?void 0:u.thumbnails;var v;return R&&((v=R[0])==null?void 0:v.height)||80}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],M7.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],M7.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],M7.prototype,"componentStyle",void 0);_.A([_.G("data.useThumbnailSize"),_.p("design:type",Object),_.p("design:paramtypes",[])],M7.prototype,"thumbnailWidth",null);
_.A([_.G("data.useThumbnailSize"),_.p("design:type",Object),_.p("design:paramtypes",[])],M7.prototype,"thumbnailHeight",null);_.A([_.q({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],M7);
_.m(M7,"ytd-profile-column-user-info-renderer",function(){if(y$c!==void 0)return y$c;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return y$c=R},{mode:1});var JM=function(){return _.W.apply(this,arguments)||this};
_.O(JM,_.W);JM.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],JM.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],JM.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],JM.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],JM.prototype,"componentStyle",void 0);_.A([_.q({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],JM);
_.m(JM,"ytd-profile-column-renderer",function(){if(gpi!==void 0)return gpi;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return gpi=R},{mode:1});var V3=function(){var R=_.W.apply(this,arguments)||this;R.componentStyle="NON_CENTERED_PROFILE";return R};
_.O(V3,_.W);V3.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
V3.prototype.getIcon=function(R){return R?"settings:"+R.toLowerCase():null};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],V3.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],V3.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],V3.prototype,"data",void 0);_.A([_.q({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],V3);
_.m(V3,"ytd-page-introduction-renderer",function(){if(zr5!==void 0)return zr5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return zr5=R},{mode:1});var ut8;var iI=function(){return _.W.apply(this,arguments)||this};
_.O(iI,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],iI.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],iI.prototype,"data",void 0);_.A([_.q({is:"ytd-report-description-renderer",disableElementRegistration:!0})],iI);
_.m(iI,"ytd-report-description-renderer",function(){if(ut8!==void 0)return ut8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return ut8=R},{mode:1});var vyc;var QT5;var KC=function(){return _.W.apply(this,arguments)||this};
_.O(KC,_.W);KC.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],KC.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],KC.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],KC.prototype,"data",void 0);_.A([_.q({is:"ytd-video-report-renderer",disableElementRegistration:!0})],KC);
_.m(KC,"ytd-video-report-renderer",function(){if(QT5!==void 0)return QT5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return QT5=R},{mode:1});var jTV;_.Dl("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.Dl("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var IA=function(){return _.W.apply(this,arguments)||this};
_.O(IA,_.W);IA.prototype.configureRendererStamper=function(){return{"data.button":{id:"message-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.icon":{id:"icon",mapping:{iconType:{component:"yt-icon",properties:{icon:"[[data.icon.iconType]]"}}}},"data.thumbnail":{id:"thumbnail",mapping:{messageThumbnailRenderer:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail.messageThumbnailRenderer.thumbnailDetails]]"}}}}}};
IA.prototype.computeMessageStyle=function(R){return R};
IA.prototype.computeButtonOverride=function(R){var y;if((R==null?0:(y=R.style)==null?0:y.value)&&R.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],IA.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],IA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],IA.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],IA.prototype,"shelf",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],IA.prototype,"panel",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.p("design:type",Boolean)],IA.prototype,"componentStyle",void 0);_.A([_.r({computed:"computeButtonOverride(data)"}),_.p("design:type",Object)],IA.prototype,"buttonOverride",void 0);_.A([_.q({is:"ytd-message-renderer",disableElementRegistration:!0})],IA);
_.m(IA,"ytd-message-renderer",function(){if(jTV!==void 0)return jTV;var R=document.createElement("template");_.H(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<div id="thumbnail" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');R.content.insertBefore(_.t().content.cloneNode(!0),
R.content.firstChild);return jTV=R},{mode:1});var hM=function(){return _.W.apply(this,arguments)||this};
_.O(hM,_.W);hM.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"}}}};
hM.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
hM.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.RR.Object.defineProperties(hM.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var R,y;return!!(((R=this.data)==null?0:R.header)&&((y=this.data)==null?0:y.table))}}});
hM.prototype.onRequestError=hM.prototype.onRequestError;_.A([_.n(_.gb),_.p("design:type",Object)],hM.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],hM.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],hM.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],hM.prototype,"data",void 0);
_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],hM.prototype,"isUnifiedReportHistory",null);_.A([_.fu("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hM.prototype,"onRequestError",null);_.A([_.q({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],hM);
_.m(hM,"ytd-report-history-section-renderer",function(){if(vyc!==void 0)return vyc;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return vyc=R},{mode:1});var Meg;var bI=function(){var R=_.W.apply(this,arguments)||this;R.answerExpanded=!1;return R};
_.O(bI,_.W);bI.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],bI.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],bI.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],bI.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bI.prototype,"answerExpanded",void 0);_.A([_.q({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],bI);
_.m(bI,"ytd-handles-claiming-faq-renderer",function(){if(Meg!==void 0)return Meg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return Meg=R},{mode:1});var J$g;var Vei=function(){return _.W.apply(this,arguments)||this};
_.O(Vei,_.W);_.A([_.r(),_.p("design:type",Object)],Vei.prototype,"data",void 0);_.A([_.q({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],Vei);
_.m(Vei,"ytd-handles-claiming-faq-section-renderer",function(){if(J$g!==void 0)return J$g;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return J$g=R},{mode:1});var i7b;var F6=function(){var R=_.W.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};
_.O(F6,_.W);_.J=F6.prototype;_.J.updateLeftSquigglyStyle=function(){_.oX(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.J.updateRightSquigglyStyle=function(){_.oX(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.J.ready=function(){var R=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(R)};
_.J.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))};
_.J.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
F6.prototype.updateRightSquigglyStyle=F6.prototype.updateRightSquigglyStyle;F6.prototype.updateLeftSquigglyStyle=F6.prototype.updateLeftSquigglyStyle;_.A([_.r(),_.p("design:type",Object)],F6.prototype,"data",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],F6.prototype,"isDarkTheme",void 0);_.A([_.r(),_.p("design:type",String)],F6.prototype,"leftSquiggly",void 0);_.A([_.r(),_.p("design:type",String)],F6.prototype,"rightSquiggly",void 0);
_.A([_.e0("leftSquiggly"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],F6.prototype,"updateLeftSquigglyStyle",null);_.A([_.e0("rightSquiggly"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],F6.prototype,"updateRightSquigglyStyle",null);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],F6.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],F6.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],F6.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],F6.prototype,"actionButtonOverride",void 0);_.A([_.q({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],F6);
_.m(F6,"ytd-handles-claiming-header-renderer",function(){if(i7b!==void 0)return i7b;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return i7b=R},{mode:1});var Kyg;var wy=function(){var R=_.W.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};
_.O(wy,_.W);_.J=wy.prototype;_.J.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.J.onDataChanged=function(){this.updateTitleAndImages()};
_.J.onThemeChanged=function(){this.updateTitleAndImages()};
_.J.onDarkModeToggledAction=function(R){R!==this.isDarkTheme&&(this.isDarkTheme=R)};
_.J.updateImage0SquigglyBackground=function(){_.oX(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.J.updateImage1SquigglyBackground=function(){_.oX(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.J.updateImage3SquigglyBackground=function(){_.oX(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.J.updateTitleAndImages=function(){var R,y;((R=this.data)==null?void 0:(y=R.titleImages)==null?void 0:y.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))};
wy.prototype.updateImage3SquigglyBackground=wy.prototype.updateImage3SquigglyBackground;wy.prototype.updateImage1SquigglyBackground=wy.prototype.updateImage1SquigglyBackground;wy.prototype.updateImage0SquigglyBackground=wy.prototype.updateImage0SquigglyBackground;wy.prototype.onThemeChanged=wy.prototype.onThemeChanged;wy.prototype.onDataChanged=wy.prototype.onDataChanged;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],wy.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],wy.prototype,"isDarkTheme",void 0);_.A([_.r(),_.p("design:type",Object)],wy.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],wy.prototype,"title0",void 0);_.A([_.r(),_.p("design:type",Object)],wy.prototype,"title1",void 0);_.A([_.r(),_.p("design:type",Object)],wy.prototype,"title2",void 0);_.A([_.r(),_.p("design:type",Object)],wy.prototype,"title3",void 0);
_.A([_.r(),_.p("design:type",Object)],wy.prototype,"title4",void 0);_.A([_.r(),_.p("design:type",Object)],wy.prototype,"image0",void 0);_.A([_.r(),_.p("design:type",Object)],wy.prototype,"image1",void 0);_.A([_.r(),_.p("design:type",Object)],wy.prototype,"image2",void 0);_.A([_.r(),_.p("design:type",Object)],wy.prototype,"image3",void 0);_.A([_.r(),_.p("design:type",Object)],wy.prototype,"image4",void 0);_.A([_.r(),_.p("design:type",String)],wy.prototype,"image0SquigglyBackground",void 0);
_.A([_.r(),_.p("design:type",String)],wy.prototype,"image1SquigglyBackground",void 0);_.A([_.r(),_.p("design:type",String)],wy.prototype,"image3SquigglyBackground",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wy.prototype,"onDataChanged",null);_.A([_.e0("isDarkTheme"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wy.prototype,"onThemeChanged",null);
_.A([_.e0("image0SquigglyBackground"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wy.prototype,"updateImage0SquigglyBackground",null);_.A([_.e0("image1SquigglyBackground"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wy.prototype,"updateImage1SquigglyBackground",null);
_.A([_.e0("image3SquigglyBackground"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wy.prototype,"updateImage3SquigglyBackground",null);_.A([_.q({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],wy);
_.m(wy,"ytd-handles-claiming-title-images-section-renderer",function(){if(Kyg!==void 0)return Kyg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Kyg=R},{mode:1});var IUi;var N7=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return R};
_.O(N7,_.W);N7.prototype.ready=function(){var R=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(R)};
N7.prototype.onDarkModeToggledAction=function(R){R!==this.isDarkTheme&&this.set("isDarkTheme",R)};
N7.prototype.onCopyButtonClick=function(){var R=this,y,u,v;return _.I(function(Q){return(y=R.data)!=null&&y.primaryChannelUrl?Q.yield(navigator.clipboard.writeText(((u=R.data)==null?0:u.encodedChannelUrl)?R.data.encodedChannelUrl:"https://"+_.u7((v=R.data)==null?void 0:v.primaryChannelUrl)),0):Q.jumpTo(0)})};
_.A([_.r(),_.p("design:type",Object)],N7.prototype,"data",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],N7.prototype,"ytComponentBehavior",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],N7.prototype,"isDarkTheme",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],N7.prototype,"ytActionHandlerBehavior",void 0);_.A([_.q({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],N7);
_.m(N7,"ytd-handles-claiming-update-social-renderer",function(){if(IUi!==void 0)return IUi;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return IUi=R},{mode:1});var hmV;var Tb=function(){var R=_.W.apply(this,arguments)||this;R.JSC$15952_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";R.JSC$15952_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$15952_squigglyBackgroundLight;return R};
_.O(Tb,_.W);Tb.prototype.updateSquigglyBackgroundStyle=function(){_.oX(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
Tb.prototype.ready=function(){var R=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",R);this.squigglyBackground=R?this.JSC$15952_squigglyBackgroundDark:this.JSC$15952_squigglyBackgroundLight};
Tb.prototype.onDarkModeToggledAction=function(R){R!==this.isDarkTheme&&(this.set("isDarkTheme",R),this.squigglyBackground=R?this.JSC$15952_squigglyBackgroundDark:this.JSC$15952_squigglyBackgroundLight)};
Tb.prototype.updateSquigglyBackgroundStyle=Tb.prototype.updateSquigglyBackgroundStyle;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Tb.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Tb.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Tb.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Tb.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Tb.prototype,"isDarkTheme",void 0);_.A([_.r(),_.p("design:type",String)],Tb.prototype,"squigglyBackground",void 0);_.A([_.e0("squigglyBackground"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Tb.prototype,"updateSquigglyBackgroundStyle",null);_.A([_.q({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],Tb);
_.m(Tb,"ytd-handles-claiming-vanity-info-renderer",function(){if(hmV!==void 0)return hmV;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return hmV=R},{mode:1});var b7G;var oA=function(){var R=_.W.apply(this,arguments)||this;R.JSC$15955_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";R.JSC$15955_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";R.squigglyBackground=R.JSC$15955_squigglyBackgroundLight;R.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return R};
_.O(oA,_.W);_.J=oA.prototype;_.J.ready=function(){var R=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(R)};
_.J.onDarkModeToggledAction=function(R){R!==this.isDarkTheme&&(this.set("isDarkTheme",R),this.squigglyBackground=R?this.JSC$15955_squigglyBackgroundDark:this.JSC$15955_squigglyBackgroundLight)};
_.J.updateSquigglyBackgroundStyle=function(){_.oX(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.J.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.J.detached=function(){this.stop()};
_.J.stop=function(){this.playerElement.stop()};
_.J.setupVideoPlayer=function(){var R=this,y,u;return _.I(function(v){y=R.data.videoId;u="http://i1.ytimg.com/vi/"+y+"/maxresdefault.jpg";R.playerElement.loadVideoWithPlayerVars({video_id:y,iurlhq:u});_.f$(v)})};
oA.prototype.onDataChanged=oA.prototype.onDataChanged;oA.prototype.updateSquigglyBackgroundStyle=oA.prototype.updateSquigglyBackgroundStyle;_.A([_.r({value:!1}),_.p("design:type",Boolean)],oA.prototype,"isDarkTheme",void 0);_.A([_.r(),_.p("design:type",String)],oA.prototype,"squigglyBackground",void 0);_.A([_.O7("#player"),_.p("design:type",Object)],oA.prototype,"playerElement",void 0);_.A([_.r(),_.p("design:type",Object)],oA.prototype,"data",void 0);
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],oA.prototype,"ytActionHandlerBehavior",void 0);_.A([_.e0("squigglyBackground"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],oA.prototype,"updateSquigglyBackgroundStyle",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],oA.prototype,"onDataChanged",null);
_.A([_.q({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],oA);
_.m(oA,"ytd-handles-claiming-video-item-renderer",function(){if(b7G!==void 0)return b7G;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return b7G=R},{mode:1});var Fy5;var BM=function(){var R=_.HN.apply(this,arguments)||this;R.dragging=!1;R.dragMouseStart=0;R.dragOffsetStart=0;R.containerWidthDiff=0;R.boundPrevClick=function(){R.set("offset",xn(R,R.offset-(R.scrollDistance||320)))};
R.boundNextClick=function(){R.set("offset",xn(R,R.offset+(R.scrollDistance||320)))};
R.boundScrollContainerMouseDown=function(y){R.dragMouseStart=y.clientX;R.dragOffsetStart=R.offset;R.dragging=!0};
R.boundScrollContainerDrag=function(y){R.dragging&&R.set("offset",xn(R,R.dragOffsetStart-(y.clientX-R.dragMouseStart)))};
R.boundMouseUp=function(){R.onMouseUp()};
R.boundWheelScroll=function(y){var u=0;Math.abs(y.deltaX)>=Math.abs(y.deltaY)?u=y.deltaX:y.shiftKey&&(u=y.deltaY);u!==0&&(R.offset+=u,y.stopPropagation(),y.preventDefault())};
R.boundChipCloudChipScrollIntoView=function(y){(y=y.detail)&&R.scrollChipIntoView(y)};
return R};
_.O(BM,_.HN);BM.prototype.attached=function(){var R=_.hw(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)};
BM.prototype.detached=function(){var R=_.hw(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)};
BM.prototype.reset=function(){this.set("offset",0);_.gn(this,this.setContainerWidthDiff);fC(this)};
var xn=function(R,y){return Math.min(Math.max(y,0),R.containerWidthDiff)};
BM.prototype.onMouseUp=function(){this.dragging=!1};
BM.prototype.transformContainer=function(){this.offset=xn(this,this.offset);var R=_.EB("HTML_DIR")==="rtl"?"":"-";_.hw(this.hostElement).querySelector("#chips").style.transform="translateX("+R+this.offset+"px)";fC(this)};
var fC=function(R){_.gn(R,R.setButtonsState)};
BM.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=xn(this,this.offset));this.atStart=this.offset<=0};
BM.prototype.setContainerWidthDiff=function(){var R=_.hw(this.hostElement).querySelector("#scroll-container"),y=_.hw(this.hostElement).querySelector("#chips");R&&y&&(this.containerWidthDiff=y.clientWidth-R.clientWidth)};
BM.prototype.scrollChipIntoView=function(R){var y=_.hw(this.hostElement).querySelector("#scroll-container");if(y){var u=this.atStart?0:106,v=this.atEnd?0:106;R.offsetLeft<this.offset+u?this.offset=xn(this,R.offsetLeft-u):R.offsetLeft+R.clientWidth>this.offset+y.clientWidth-v&&(this.offset=xn(this,R.offsetLeft+R.clientWidth+v-y.clientWidth))}};
BM.prototype.transformContainer=BM.prototype.transformContainer;_.A([_.r({value:0}),_.p("design:type",Number)],BM.prototype,"offset",void 0);_.A([_.r({value:!0,reflectToAttribute:!0}),_.p("design:type",Boolean)],BM.prototype,"atStart",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],BM.prototype,"atEnd",void 0);_.A([_.r(),_.p("design:type",Number)],BM.prototype,"scrollDistance",void 0);
_.A([_.e0("offset"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],BM.prototype,"transformContainer",null);_.A([_.nu()],BM);var wBT;var Nzg;var x2i=_.Jd(function(R){var y=R.data;R=_.V(_.In(!1,void 0,"HDMMr"));var u=R.next().value,v=R.next().value;R={};R=_.Oy("ytChipShapeChip",function(){a:switch(y==null?void 0:y().state){case 0:var M="ytChipShapeActive";break a;case 1:M="ytChipShapeDisabled";break a;default:M="ytChipShapeInactive"}return M},function(){var M=y().type===1||y().type===2,K=y();
return M||K!=null&&K.startIcon?K==null||!K.startIcon||K!=null&&K.text?M?"ytChipShapeEndIconPadding":(K==null?0:K.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(R.ytChipShapeFocused=function(){var M;
return u()&&((M=y())==null?void 0:M.state)!==1},R));
var Q=function(M){if((y==null?void 0:y().state)!==1){var K,h;(h=(K=y()).onTap)==null||h.call(K,M)}};
return _.F("chip-shape",{class:"ytChipShapeHost","on:focusin":_.nh(function(){var M=_.ua().resolve(_.yN(_.Ti));if(M){v(M.isKeyBoardInUse());var K,h;(h=(K=y()).onFocusIn)==null||h.call(K)}return!1}),
"on:focusout":_.nh(function(){v(!1);return!1})},_.F(Tzg,{shouldWrapInButton:function(){return y().type!==2},
selected:function(){return y().state===0},
onClick:Q,isDropdown:function(){return y().type===1},
accessibilityLabel:function(){return y().accessibilityLabel}},_.F("div",{class:R},_.F(_.w,{cond:function(){return y().startIcon},
then:function(){return _.F(_.W_,{icon:function(){var M;return(M=y())==null?void 0:M.startIcon},
className:function(){return y().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return y().text},_.F(oy5,{shape:y,
onClick:Q}),_.F(_.k6,{model:{borderRadius:"8px"}}))))},"Jb");
x2i.idomCompat=!0;var Tzg=_.Jd(function(R){var y=_.nh(function(u){R.onClick(u);return!1});
return _.F(_.w,{cond:R.shouldWrapInButton,then:function(){return _.F("button",{class:"ytChipShapeButtonReset","on:click":y,role:function(){return R.isDropdown()?"combobox":"tab"},
"aria-label":R.accessibilityLabel,"aria-selected":R.selected},R.children)},
else:function(){return R.children}})},"Kb"),oy5=_.Jd(function(R){var y=R.shape;
var u=R.onClick;var v=_.nh(function(Q){u(Q);return!1});
return _.F(_.Z6,null,_.F(_.lr,{when:function(){return y().type===1}},function(){return _.F(_.W_,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.F(_.lr,{when:function(){return y().type===2}},function(){return _.F("button",{class:"ytChipShapeButtonReset",
"on:click":v},_.F(_.W_,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.F(_.lr,{when:function(){return y().type===0}},function(){return _.F(_.vu,null)}))},"Lb");_.h6(x2i,"chip-shape",{props:{data:_.vR}});var el=function(){var R=_.W.apply(this,arguments)||this;R.disableDeselectEvent=!1;R.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return R};
_.O(el,_.W);_.J=el.prototype;_.J.onSelectChipCommand=function(R){if(!this.selected&&this.data&&(R=_.e(R,OIc),R.targetId&&R.targetId===this.data.targetId))this.onTap()};
_.J.onFilterChipTransformCommand=function(R){if(!this.selected&&this.data){var y;(R=(y=_.e(R,TKi))==null?void 0:y.chipUniqueId)&&R===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.J.dataChanged=function(){var R=this;_.gn(this,function(){R.data&&R.data.isSelected&&!R.selected&&(R.scrollChipIntoView(),R.onTap())})};
_.J.computeChipStyle=function(R){return R!=null?R:"STYLE_DEFAULT"};
_.J.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.Ik(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.Ik(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.J.onFocus=function(){var R=_.ua().resolve(_.yN(_.Ti));R&&R.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.J.scrollChipIntoView=function(){_.Ko(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.RR.Object.defineProperties(el.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 oGP({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
el.prototype.onFocus=el.prototype.onFocus;el.prototype.onTap=el.prototype.onTap;el.prototype.dataChanged=el.prototype.dataChanged;_.A([_.n(_.WO),_.p("design:type",Object)],el.prototype,"ironButtonState",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],el.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],el.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],el.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.Gh),_.p("design:type",Object)],el.prototype,"ironA11yKeysBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],el.prototype,"disableDeselectEvent",void 0);_.A([_.r(),_.p("design:type",Object)],el.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.G("data.icon"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],el.prototype,"hasIcon",null);
_.A([_.r({reflectToAttribute:!0}),_.G("data.uniqueId"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],el.prototype,"isGnomeChip",null);_.A([_.r({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.p("design:type",String)],el.prototype,"chipStyle",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],el.prototype,"selected",void 0);
_.A([_.G("data","selected"),_.p("design:type",Object),_.p("design:paramtypes",[])],el.prototype,"chipShapeData",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],el.prototype,"dataChanged",null);_.A([_.fu("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],el.prototype,"onTap",null);
_.A([_.fu("focus"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],el.prototype,"onFocus",null);_.A([_.pu({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],el);
_.m(el,"yt-chip-cloud-chip-renderer",function(){if(Nzg===void 0){var R=document.createElement("template");_.H(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');R.content.insertBefore(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;wBT===void 0&&(wBT=document.createElement("template"));var v=wBT;u.call(y,v.content.cloneNode(!0),R.content.firstChild);Nzg=R}R=Nzg;return R},{mode:2});var lI=function(){var R=_.W.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=_.f("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};
_.O(lI,_.W);_.J=lI.prototype;
_.J.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}}}}}};
_.J.attached=function(){var R=this;document.addEventListener("scroll",_.BN(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var y;this.toolbarHeight=((y=document.querySelector("ytd-masthead"))==null?void 0:y.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(u){R.handleIntersect(u)},{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))};
_.J.detached=function(){var R;(R=this.intersectionObserver)==null||R.disconnect();var y;(y=this.resizeObserver)==null||y.disconnect();document.removeEventListener("scroll",_.BN(this,this.updateChipBarWidthAndTop))};
_.J.dataChanged=function(){var R=this,y,u,v;((v=_.e((y=this.data)==null?void 0:(u=y.contents)==null?void 0:u[0],LEg))==null?void 0:v.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var Q=this.findSelectedChipIndex();this.selectedIndex!==Q&&(this.selectedIndex=-1);_.gn(this,function(){R.selectedIndex=Q;R.updating=!1;R.ytScrollableChipCloudBehavior.reset()})};
_.J.findSelectedChipIndex=function(){var R;if((R=this.data)==null||!R.contents)return 0;R=this.data.contents;for(var y=0;y<R.length;y++){var u=void 0;if((u=_.e(R[y],LEg))==null?0:u.isSelected)return y}return 0};
_.J.computeStyle=function(R){return R};
_.J.handleChipCloudChipSelectAction=function(R){R=this.JSC$15976_chipsSelector.indexOf(R);R>-1&&this.JSC$15976_chipsSelector.selectIndex(R)};
_.J.handleChipCloudChipDeselectAction=function(){if(_.f("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var R,y,u,v=(u=_.e((R=this.data)==null?void 0:(y=R.contents)==null?void 0:y[0],LEg))==null?void 0:u.navigationEndpoint;v&&_.Ik(this.hostElement,"yt-browse-section-list-reload-endpoint",[v]);this.JSC$15976_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.J.onGuideIsExpandedChanged=function(){var R=this.ytScrollableChipCloudBehavior;_.gn(R,R.setContainerWidthDiff);fC(this.ytScrollableChipCloudBehavior)};
_.J.onResize=function(){var R=this.ytScrollableChipCloudBehavior;_.gn(R,R.setContainerWidthDiff);fC(this.ytScrollableChipCloudBehavior)};
_.J.onDarkModeToggledAction=function(R){this.isDarkTheme=R};
_.J.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.J.handleIntersect=function(R){this.notSticky=this.isChannelPageGrid||this.disableSticky||R[0].intersectionRatio===1};
_.J.updateDimensions=function(){var R=this.ytRendererBehavior.parentComponent;if(R){var y,u=(y=R.headerElement)!=null?y:R;_.oX(this.hostElement,{"--ytd-rich-grid-chips-bar-width":u.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.J.updateSelectedIndexFromBinding=function(R){this.selectedIndex=R.detail.value};
_.J.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var R;(R=this.sortFilterHeaderRendererElement)==null||R.setAttribute("is-playlist-page-with-filters","")}};
_.J.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(rrK(!this.notSticky))};
_.RR.Object.defineProperties(lI.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,y,u=(R=this.data)==null?void 0:(y=R.contents)==null?void 0:y.find(function(v){return _.e(v,Rxc)});
return{sortFilterHeaderRenderer:_.e(u,Rxc)}}}});
lI.prototype.dispatchChipBarIsSticky=lI.prototype.dispatchChipBarIsSticky;lI.prototype.isPlaylistPageChanged=lI.prototype.isPlaylistPageChanged;lI.prototype.updateChipBarWidthAndTop=lI.prototype.updateChipBarWidthAndTop;lI.prototype.onResize=lI.prototype.onResize;lI.prototype.onGuideIsExpandedChanged=lI.prototype.onGuideIsExpandedChanged;lI.prototype.dataChanged=lI.prototype.dataChanged;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],lI.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],lI.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],lI.prototype,"actionHandlerBehavior",void 0);_.A([_.n(_.qv),_.p("design:type",Object)],lI.prototype,"ironResizableBehavior",void 0);_.A([_.n(),_.p("design:type",BM)],lI.prototype,"ytScrollableChipCloudBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],lI.prototype,"ytdReduxBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],lI.prototype,"data",void 0);_.A([_.r({value:0}),_.p("design:type",Number)],lI.prototype,"selectedIndex",void 0);_.A([_.r({value:320}),_.p("design:type",Number)],lI.prototype,"scrollDistance",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],lI.prototype,"isDarkTheme",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],lI.prototype,"notSticky",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],lI.prototype,"transparentBackground",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.p("design:type",String)],lI.prototype,"componentStyle",void 0);_.A([_.r({selector:_.UiP}),_.p("design:type",Boolean)],lI.prototype,"guideIsExpanded",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],lI.prototype,"shouldHide",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],lI.prototype,"disableSticky",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],lI.prototype,"fluidWidth",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],lI.prototype,"isClipList",void 0);_.A([_.r(),_.p("design:type",Object)],lI.prototype,"defaultChipIndex",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],lI.prototype,"isPlaylist",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],lI.prototype,"playlistVotingAnimationEnabled",void 0);_.A([_.O7("#chips"),_.p("design:type",Object)],lI.prototype,"JSC$15976_chipsSelector",void 0);_.A([_.O7("ytd-sort-filter-header-renderer"),_.p("design:type",HTMLElement)],lI.prototype,"sortFilterHeaderRendererElement",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],lI.prototype,"updating",void 0);
_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lI.prototype,"dataChanged",null);_.A([_.e0("guideIsExpanded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lI.prototype,"onGuideIsExpandedChanged",null);_.A([_.fu("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lI.prototype,"onResize",null);
_.A([_.GJ("isChannelPageGrid","disableSticky","data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lI.prototype,"updateChipBarWidthAndTop",null);_.A([_.G("componentStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],lI.prototype,"isChannelPageGrid",null);_.A([_.G("componentStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],lI.prototype,"isHashtagLandingPage",null);
_.A([_.e0("isPlaylistPage"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lI.prototype,"isPlaylistPageChanged",null);_.A([_.G("componentStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],lI.prototype,"isPlaylistPage",null);_.A([_.G("componentStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],lI.prototype,"isDisableDeselectEvent",null);
_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],lI.prototype,"sortFilterHeaderRendererData",null);_.A([_.r({reflectToAttribute:!0,selector:_.mic}),_.p("design:type",String)],lI.prototype,"frostedGlassMode",void 0);_.A([_.e0("notSticky"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lI.prototype,"dispatchChipBarIsSticky",null);_.A([_.q({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],lI);
_.m(lI,"ytd-feed-filter-chip-bar-renderer",function(){if(Fy5!==void 0)return Fy5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return Fy5=R},{mode:1});var BzL;var fU5=_.Jd(function(R){var y=R.data;var u=R.buttonIndex;var v=R.selectedIndex;var Q=R.onSelect;var M=function(){return u()===v()},K=function(){var h,b;
return(b=(h=y().text)==null?void 0:h.content)!=null?b:""};
R=_.cgU();return _.F("yt-toggleable-image-button-view-model",{class:function(){var h={};h=(h["toggleable-image-button-view-model-wiz"]=!0,h[""]=!0,h["toggleable-image-button-view-model-wiz__semi-transparent"]=v()!==-1&&!M(),h);return _.Zl(h)},
tabindex:0,"aria-label":K,"aria-pressed":M,role:"button","on:keydown":R,"on:click":_.nh(function(){Q(y().onSubmitCommand);return!1})},_.F(_.w,{cond:function(){return y().logo},
then:function(h){return _.F(_.MR,{data:h,className:function(){var b={};b=(b["toggleable-image-button-view-model-wiz__image"]=!0,b["toggleable-image-button-view-model-wiz__circular-radius"]=!(!y().backgroundColor||!y().backgroundColorDarkMode),b["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(M()&&y().backgroundColor&&y().backgroundColorDarkMode),b);return _.Zl(b)},
alt:K,useWidth:!1,style:function(){if(M()&&y().backgroundColor&&y().backgroundColorDarkMode){var b=Yv(Number(y().backgroundColorDarkMode),"1");var N=Yv(Number(y().backgroundColor),"1");b="background: linear-gradient(180deg,"+b+","+N+") border-box;"}else b="";return b}})}}),_.F(_.k6,{model:{borderRadius:"16px"}}),_.F("p",{class:function(){var h={};
h=(h["toggleable-image-button-view-model-wiz__label"]=!0,h["toggleable-image-button-view-model-wiz__bold-text"]=M(),h);return _.Zl(h)}},_.F(_.QM,{text:function(){return y().text}})))},"Mb");
fU5.idomCompat=!0;var lUg=_.Jd(function(R){var y=R.data;R=_.V(_.In({index:-1,command:{}},void 0,"Zcqtsb"));var u=R.next().value,v=R.next().value;return _.F("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.F("div",{class:"nudge-form-view-model-wiz__form-options"},_.F(_.mk,{data:function(){return y().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(Q,M){return _.F(fU5,{data:Q.data,buttonIndex:M,selectedIndex:function(){return u().index},
onSelect:function(K){v({index:M(),command:K})}})}})),_.F(_.QM,{text:function(){return y().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.F("div",{class:"nudge-form-view-model-wiz__submit"},_.F(_.mk,{data:function(){return y().submitButton}},{buttonViewModel:function(Q){return _.F(emV,{data:Q.data,
isDisabled:function(){return u().index===-1},
onClick:function(){_.zN(u().command)}})}})))},"Nb");
lUg.idomCompat=!0;var emV=_.Jd(function(R){var y=_.N8(function(){return Object.assign({},R.data(),{state:R.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.F(_.fQ,{data:y,onClick:R.onClick})},"Ob");_.h6(lUg,"yt-nudge-form-view-model",{props:{data:_.vR}});var ON=function(){var R=_.W.apply(this,arguments)||this;R.roundedContainer=!0;R.buttonUpdate=_.f("web_modern_buttons");R.isDarkMode=!1;R.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return R};
_.O(ON,_.W);_.J=ON.prototype;_.J.computeNudgeStyle=function(R){return R?"modernized-nudge":""};
_.J.handleDarkModeToggledAction=function(R){this.isDarkMode=R};
_.J.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.J.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"}}}};
_.J.computeIsHorizontalButtons=function(R){return R?!!R.applyModernizedStyle&&!!R.enableHorizontalButtons&&!!R.secondaryButton:!1};
_.RR.Object.defineProperties(ON.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,y;return(y=(R=this.data)==null?void 0:R.backgroundStyle)!=null?y:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var R,y;return(y=(R=this.data)==null?void 0:R.contentsLocation)!=null?y:"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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ON.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],ON.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.c4),_.p("design:type",Object)],ON.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],ON.prototype,"actionHandlerBehavior",void 0);
_.A([_.r({reflectToAttribute:!0}),_.G("isHideEnclosingAction"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ON.prototype,"isHidden",null);_.A([_.r(),_.p("design:type",Object)],ON.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ON.prototype,"roundedContainer",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ON.prototype,"buttonUpdate",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.p("design:type",String)],ON.prototype,"nudgeStyle",void 0);_.A([_.r({reflectToAttribute:!0}),_.G("data.trimStyle"),_.p("design:type",String),_.p("design:paramtypes",[])],ON.prototype,"trimStyle",null);_.A([_.r({reflectToAttribute:!0}),_.G("data.backgroundStyle"),_.p("design:type",String),_.p("design:paramtypes",[])],ON.prototype,"backgroundStyle",null);
_.A([_.r({reflectToAttribute:!0}),_.G("data.contentsLocation"),_.p("design:type",String),_.p("design:paramtypes",[])],ON.prototype,"contentsLocation",null);_.A([_.r({reflectToAttribute:!0}),_.G("data.disableDropShadow"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ON.prototype,"noShadow",null);_.A([_.r({reflectToAttribute:!0}),_.G("data.lightIconImage"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ON.prototype,"noIcon",null);
_.A([_.r({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.p("design:type",Boolean)],ON.prototype,"isHorizontalButtons",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Object)],ON.prototype,"isDarkMode",void 0);_.A([_.q({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],ON);
_.m(ON,"ytd-feed-nudge-renderer",function(){if(BzL!==void 0)return BzL;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return BzL=R},{mode:_.TN("kevlar_poly_si_batch_j028")?1:2});var O7w;var Z7g;var Ze=function(){var R=_.W.apply(this,arguments)||this;R.collapsed=!1;R.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return R};
_.O(Ze,_.W);Ze.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"}}}};
Ze.prototype.handleRatingSelect=function(){var R;((R=this.data)==null?0:R.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
Ze.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Ze.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Ze.prototype,"actionHandlerBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Ze.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Ze.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.c4),_.p("design:type",Object)],Ze.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Ze.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Ze.prototype,"collapsed",void 0);_.A([_.q({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],Ze);
_.m(Ze,"ytd-slimline-survey-renderer",function(){if(Z7g!==void 0)return Z7g;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Z7g=R},{mode:1});var H7c;var HM=function(){return _.W.apply(this,arguments)||this};
_.O(HM,_.W);HM.prototype.maybeGetBackgroundColor=function(R){return this.isDarkMode?R.section2Color:R.section3Color};
HM.prototype.colorPaletteChanged=function(){var R=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;R&&(R==null?0:R.secondaryTitleColor)&&this.maybeGetBackgroundColor(R)?(this.hostElement.style.backgroundColor=_.aH(this.maybeGetBackgroundColor(R)),this.hostElement.style.color=_.aH(R.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
HM.prototype.colorPaletteChanged=HM.prototype.colorPaletteChanged;_.A([_.n(_.p6),_.p("design:type",Object)],HM.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],HM.prototype,"data",void 0);_.A([_.r({selector:function(R){return R.ui.darkModeIsEnabled}}),
_.p("design:type",Boolean)],HM.prototype,"isDarkMode",void 0);_.A([_.r(),_.p("design:type",Object)],HM.prototype,"lightColorPalette",void 0);_.A([_.r(),_.p("design:type",Object)],HM.prototype,"darkColorPalette",void 0);_.A([_.e0("darkColorPalette","lightColorPalette","data","isDarkMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],HM.prototype,"colorPaletteChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],HM);
_.m(HM,"ytd-endorsement-header-renderer",function(){if(H7c!==void 0)return H7c;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return H7c=R},{mode:1});_.h6(_.mG,"yt-decorated-avatar-view-model",{props:{data:_.vR,className:_.vR}});_.nC=new _.Jx("VIEW_TRANSITION_MANAGER_TOKEN");var Gb=function(){var R=_.W.apply(this,arguments)||this;R.fullHeight=_.f("web_rich_grid_media_full_height");R.showChannelAvatar=!0;R.hasPlaylistThumbnail=!1;R.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};R.registerThumbnailForPageTransition=function(){_.f("web_thumbnail_to_watch_transition")&&_.nyi(_.ua().resolve(_.nC),R.thumbnail)};
return R};
_.O(Gb,_.W);_.J=Gb.prototype;
_.J.configureRendererStamper=function(){return{lazyLoadMenu:lH,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"}}}};
_.J.attached=function(){this.updateInlinePreviewHoverListeners()};
_.J.detached=function(){this.clearInlinePreviewHoverListeners()};
_.J.shouldLazyLoadMenu=function(){var R=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.f("kevlar_modern_downloads_page")||!R};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16001_inlinePreviewHoverListener=sC({mediaRenderer:this,lockupElement:this.JSC$16001_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.J.getVideoPreviewOpts=function(){var R={},y;if((y=this.data)==null?0:y.multipleInlinePlaybackEndpoint)R=oNG;this.isRadio&&(R=T6w);return R};
_.J.clearInlinePreviewHoverListeners=function(){var R;(R=this.JSC$16001_inlinePreviewHoverListener)==null||Mr(R)};
_.J.getOwner=function(){var R,y,u;return((R=this.data)==null?void 0:(y=R.channelThumbnailSupportedRenderers)==null?void 0:y.channelThumbnailWithLinkRenderer)||_.e((u=this.data)==null?void 0:u.showProviderChannelThumbnail,G0c)};
_.J.updateLockupSize=function(){var R;((R=this.getOwner())==null?0:R.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.J.getFeedbackEndpoint=function(R){if(_.e(R,_.mr))return R;var y,u;R=(u=(y=_.e(R,_.TP))==null?void 0:y.commands)!=null?u:[];y=_.V(R);for(u=y.next();!u.done;u=y.next())if(u=this.getFeedbackEndpoint(u.value))return u;return null};
_.J.computeNavigationEndpoint=function(R){return mvG(R==null?void 0:R.navigationEndpoint)};
_.J.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var R=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(R)!==JSON.stringify(this.data)&&this.set("data",R)}};
_.J.onDataChanged=function(){var R=this,y=this.getOwner();if(y){this.set("data.owner",y);var u,v,Q,M,K,h=((u=this.data)==null?void 0:(v=u.shortBylineText)==null?void 0:(Q=v.runs)==null?void 0:(M=Q[0])==null?void 0:M.text)||((K=y.name)==null?void 0:K.simpleText);this.set("data.owner.title",h)}var b,N,T,x,B,l;y=((b=this.data)==null?void 0:(N=b.thumbnailRenderer)==null?void 0:N.playlistVideoThumbnailRenderer)||((T=this.data)==null?void 0:(x=T.thumbnailRenderer)==null?void 0:x.playlistCustomThumbnailRenderer)||
((B=this.data)==null?void 0:(l=B.thumbnailRenderer)==null?void 0:l.showCustomThumbnailRenderer);var Z;((Z=this.data)==null?0:Z.thumbnail)||!y||this.set("data.thumbnail",y.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){R.updateLockupSize()});
var P;if(b=((P=this.data)==null?void 0:P.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(b);var k;((k=this.dismissActionToReplayEntity)==null?0:k.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.J.onHiddenChanged=function(){this.updateLockupSize()};
_.J.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.Ik(this.hostElement,"yt-terminate-video-preview-action");else{var R;(R=this.videoTitleLink)==null||R.focus()}};
_.J.metadataColorChanged=function(){var R;if(this.metadataColor&&((R=this.videoTitle)==null?0:R.style))this.videoTitle.style.color=_.aH(this.metadataColor);else{var y,u;!this.metadataColor&&((y=this.videoTitle)==null?0:(u=y.style)==null?0:u.color)&&(this.videoTitle.style.color="")}};
_.J.onDetailsClick=function(R){var y=this.computedNavigationEndpoint;y&&(_.JF(_.u8(R),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.Ko(this.hostElement,"yt-navigate",{endpoint:y}))};
_.J.onRendererTap=function(){this.registerThumbnailForPageTransition();var R,y,u=((R=this.data)==null?void 0:R.serviceEndpoint)||this.getFeedbackEndpoint((y=this.data)==null?void 0:y.navigationEndpoint);u&&_.e(u,_.mr)&&this.ytComponentBehavior.resolveCommand(u)};
_.J.onMouseDown=function(R){var y=R.target,u=this.computedNavigationEndpoint,v;R=y.href||((v=_.e(u==null?void 0:u.commandMetadata,_.QL))==null?void 0:v.url);v=y.data||u;R&&v&&zn8(R,v)};
_.J.computeVideoTitleText=function(){var R;if((R=this.data)==null?0:R.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.J.computeHasPlaylistThumbnail=function(R){var y,u,v,Q,M;if((((y=R.thumbnailRenderer)==null?0:y.playlistVideoThumbnailRenderer)||((u=R.thumbnailRenderer)==null?0:u.playlistCustomThumbnailRenderer)||((v=R.thumbnailRenderer)==null?0:v.showCustomThumbnailRenderer)||((Q=R.thumbnailRenderer)==null?0:Q.playlistVideoThumbnailRenderer)||((M=R.thumbnailRenderer)==null?0:M.playlistCustomThumbnailRenderer))&&R.thumbnailOverlays)for(y=0;y<R.thumbnailOverlays.length;y++)if(u=void 0,(u=R.thumbnailOverlays[y])==
null?0:u.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.RR.Object.defineProperties(Gb.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.f("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$16001_inlinePreviewHoverListener)==null?0:tp(R))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.OZ(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,y;return((R=this.data)==null?void 0:R.videoId)||((y=this.data)==null?void 0:y.playlistId)||""}}});
Gb.prototype.onMouseDown=Gb.prototype.onMouseDown;Gb.prototype.metadataColorChanged=Gb.prototype.metadataColorChanged;Gb.prototype.onIsDismissedChanged=Gb.prototype.onIsDismissedChanged;Gb.prototype.onHiddenChanged=Gb.prototype.onHiddenChanged;Gb.prototype.onDataChanged=Gb.prototype.onDataChanged;Gb.prototype.handleReloadDownloadsInfo=Gb.prototype.handleReloadDownloadsInfo;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Gb.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Gb.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Gb.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.c4),_.p("design:type",Object)],Gb.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.n(_.gT),_.p("design:type",Object)],Gb.prototype,"ytdLockupBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],Gb.prototype,"ytdReduxBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],Gb.prototype,"data",void 0);_.A([_.r(),_.p("design:type",String)],Gb.prototype,"entitySelectorType",void 0);_.A([_.r(),_.p("design:type",Boolean)],Gb.prototype,"noEndpoints",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],Gb.prototype,"isRadio",void 0);_.A([_.r({reflectToAttribute:!0,selector:_.$s}),_.p("design:type",Boolean)],Gb.prototype,"miniMode",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Gb.prototype,"fullHeight",void 0);
_.A([_.r(),_.p("design:type",Boolean)],Gb.prototype,"showDarkVideoMetadata",void 0);_.A([_.r(),_.p("design:type",Boolean)],Gb.prototype,"showLightVideoMetadata",void 0);_.A([_.r(),_.p("design:type",Number)],Gb.prototype,"metadataColor",void 0);_.A([_.r(),_.p("design:type",Object)],Gb.prototype,"showChannelAvatar",void 0);_.A([_.r(),_.p("design:type",Boolean)],Gb.prototype,"hidden",void 0);_.A([_.r({value:!0}),_.p("design:type",Boolean)],Gb.prototype,"showYtInteraction",void 0);
_.A([_.r(),_.p("design:type",String)],Gb.prototype,"dismissedContentId",void 0);_.A([_.r({selectorArgs:["dismissedContentId"],selector:pXE}),_.p("design:type",Object)],Gb.prototype,"dismissActionToReplayEntity",void 0);
_.A([_.r({selectorArgs:["entitySelectorType","mediaId"],selector:function(R,y,u){if(_.f("kevlar_modern_downloads_page")&&u&&y&&y!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(y){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var v=t2U(R,u);if(v){y=_.pz(R,u);var Q=cd(R,u),M=uwT(R,u);R=a3(R,u);var K=dLz(v,y,Q,M);Q=K.shortViewCountText;var h=K.publishedTimeText;K=K.badges;var b=R>0;M=PLE(v,y,M,R);v=_.Hd(y)||y==="TRANSFER_STATE_FAILED"||y==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Zn(v.policyEntity)?
void 0:qD4(u,R,v.videoEntity.lengthSeconds);y==="TRANSFER_STATE_PAUSED_BY_USER"&&u&&!_.f("dl_resume_click_killswitch")&&(v={offlineVideoEndpoint:{videoId:u,action:"ACTION_RESUME"}});u={shortViewCountText:Q,publishedTimeText:h,badges:K,isWatched:b,navigationEndpoint:v,thumbnailOverlays:M}}else u=void 0;return u;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(y=csE(R,u))if(v=_.tN(R,u),M=_.aXL(R,u),v!=="TRANSFER_STATE_UNKNOWN"){u=W$G(y,v,M,u,_.Dn(R));break a}u=void 0}return u;default:_.kT(new _.OL("Error: entitySelectorType defined but not matched in selector.",
R,y))}}}),
_.p("design:type",Object)],Gb.prototype,"entityDrivenState",void 0);_.A([_.r({computed:"computeVideoTitleText(data)"}),_.p("design:type",Object)],Gb.prototype,"videoTitleText",void 0);_.A([_.r({computed:"computeHasPlaylistThumbnail(data)"}),_.p("design:type",Object)],Gb.prototype,"hasPlaylistThumbnail",void 0);_.A([_.r({computed:"computeNavigationEndpoint(data)"}),_.p("design:type",Object)],Gb.prototype,"computedNavigationEndpoint",void 0);
_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Gb.prototype,"typographyBump",void 0);_.A([_.r({reflectToAttribute:!0}),_.G("typographyBump"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Gb.prototype,"typographyBumpV2",null);_.A([_.O7("#video-title"),_.p("design:type",HTMLElement)],Gb.prototype,"videoTitle",void 0);_.A([_.O7("#video-title-link"),_.p("design:type",HTMLElement)],Gb.prototype,"videoTitleLink",void 0);
_.A([_.O7("#thumbnail"),_.p("design:type",HTMLElement)],Gb.prototype,"thumbnail",void 0);_.A([_.O7("#dismissible"),_.p("design:type",HTMLElement)],Gb.prototype,"JSC$16001_dismissibleMedia",void 0);_.A([_.G("data.menu"),_.p("design:type",Object),_.p("design:paramtypes",[])],Gb.prototype,"lazyLoadMenu",null);_.A([_.G("data.menu"),_.p("design:type",Object),_.p("design:paramtypes",[])],Gb.prototype,"immediateLoadMenu",null);
_.A([_.GJ("entityDrivenState"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Gb.prototype,"handleReloadDownloadsInfo",null);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Gb.prototype,"onDataChanged",null);_.A([_.GJ("hidden"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Gb.prototype,"onHiddenChanged",null);
_.A([_.e0("isDismissed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Gb.prototype,"onIsDismissedChanged",null);_.A([_.e0("metadataColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Gb.prototype,"metadataColorChanged",null);_.A([_.fu("mousedown"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Gb.prototype,"onMouseDown",null);
_.A([_.G("lockupIsHovered"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Gb.prototype,"isHovered",null);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Gb.prototype,"useAvatar",null);_.A([_.G("data","entitySelectorType"),_.p("design:type",String),_.p("design:paramtypes",[])],Gb.prototype,"mediaId",null);_.A([_.q({is:"ytd-rich-grid-media",disableElementRegistration:!0})],Gb);
var GO5=_.Nk()(Gb,"ytd-rich-grid-media",function(){if(O7w!==void 0)return O7w;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return O7w=R},{mode:_.TN("kevlar_poly_si_batch_j072")?1:2});var r$T;var ry=function(){var R=_.W.apply(this,arguments)||this;R.removeMaxWidth=!0;R.insetMetadata=!1;return R};
_.O(ry,_.W);_.J=ry.prototype;_.J.configureRendererStamper=function(){return{innerMenu:lH,outerMenu:Object.assign({},lH,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.J.onDataChanged=function(){var R,y=((R=this.data)==null?void 0:R.trackingParams)||"";y&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(y));var u;((u=this.dismissActionToReplayEntity)==null?0:u.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.J.attached=function(){this.updateInlinePreviewHoverListeners()};
_.J.detached=function(){this.clearInlinePreviewHoverListeners()};
_.J.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16006_inlinePreviewHoverListener=sC({mediaRenderer:this,lockupElement:this.JSC$16006_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:x9c})};
_.J.clearInlinePreviewHoverListeners=function(){var R;(R=this.JSC$16006_inlinePreviewHoverListener)==null||Mr(R)};
_.J.onRendererTap=function(){var R,y,u=(R=this.data)==null?void 0:(y=R.serviceEndpoints)==null?void 0:y[0];_.e(u,_.mr)&&this.componentBehavior.resolveCommand(u)};
_.J.onDetailsClick=function(R){var y,u=(y=this.data)==null?void 0:y.navigationEndpoint;u&&(_.JF(_.u8(R),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(u))};
_.J.onShow=function(){var R=this.data;R.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(R.onFirstVisibleCommand),delete R.onFirstVisibleCommand)};
_.RR.Object.defineProperties(ry.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=_.e(R.badge,Dwg))){var y,u,v;return[{metadataBadgeRenderer:{label:((y=R.label)==null?void 0:(u=y.runs)==null?void 0:u[0].text)||((v=R.label)==null?void 0:v.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,y,u;return this.isSlimShort?(R=this.computedTitle)==null?void 0:(y=R.accessibility)==null?void 0:(u=y.accessibilityData)==null?void 0:u.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.f("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.JSC$16006_inlinePreviewHoverListener)==null?0:tp(R))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
ry.prototype.onDataChanged=ry.prototype.onDataChanged;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],ry.prototype,"componentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ry.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.gT),_.p("design:type",Object)],ry.prototype,"ytdLockupBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],ry.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.n(_.c4),_.p("design:type",Object)],ry.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],ry.prototype,"ytdReduxBehavior",void 0);_.A([_.O7("ytd-thumbnail"),_.p("design:type",HTMLElement)],ry.prototype,"thumbnail",void 0);_.A([_.O7("#dismissible"),_.p("design:type",HTMLElement)],ry.prototype,"JSC$16006_dismissibleMedia",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ry.prototype,"removeMaxWidth",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ry.prototype,"insetMetadata",void 0);_.A([_.r(),_.p("design:type",String)],ry.prototype,"dismissedContentId",void 0);_.A([_.r({selectorArgs:["dismissedContentId"],selector:pXE}),_.p("design:type",Object)],ry.prototype,"dismissActionToReplayEntity",void 0);_.A([_.G("insetMetadata"),_.p("design:type",Object),_.p("design:paramtypes",[])],ry.prototype,"thumbnailObjectFit",null);
_.A([_.G("data","insetMetadata"),_.p("design:type",Object),_.p("design:paramtypes",[])],ry.prototype,"innerMenu",null);_.A([_.G("data","insetMetadata"),_.p("design:type",Object),_.p("design:paramtypes",[])],ry.prototype,"outerMenu",null);_.A([_.r(),_.p("design:type",Object)],ry.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,selector:_.$s}),_.p("design:type",Boolean)],ry.prototype,"miniMode",void 0);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ry.prototype,"onDataChanged",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],ry.prototype,"shortsBadges",null);_.A([_.G("data"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ry.prototype,"isShort",null);
_.A([_.G("data"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ry.prototype,"isSlimShort",null);_.A([_.G("data","isShort"),_.p("design:type",Object),_.p("design:paramtypes",[])],ry.prototype,"computedTitle",null);_.A([_.G("isSlimShort","computedTitle"),_.p("design:type",Object),_.p("design:paramtypes",[])],ry.prototype,"computedAccessibilityLabel",null);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ry.prototype,"shouldForce2By3",null);_.A([_.G("lockupIsHovered"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ry.prototype,"isHovered",null);_.A([_.q({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],ry);
_.m(ry,"ytd-rich-grid-slim-media",function(){if(r$T!==void 0)return r$T;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return r$T=R},{mode:_.TN("kevlar_poly_si_batch_j063")?1:2});var Piw;var Wyc;var PM=function(){var R=_.W.apply(this,arguments)||this;R.darkerDarkTheme=_.f("web_darker_dark_theme");return R};
_.O(PM,_.W);PM.prototype.computeIcon=function(R){return R&&R.iconType?"yt-sys-icons:"+R.iconType.toLowerCase():""};
PM.prototype.onMouseEnter=function(){this.isHovered=!0};
PM.prototype.onMouseLeave=function(){this.isHovered=!1};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],PM.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],PM.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],PM.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],PM.prototype,"data",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],PM.prototype,"isHovered",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],PM.prototype,"darkerDarkTheme",void 0);_.A([_.q({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],PM);
_.m(PM,"ytd-expand-on-hover-card-renderer",function(){if(Wyc!==void 0)return Wyc;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Wyc=R},{mode:1});var d25,U2G=function(){if(d25!==void 0)return d25;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return d25=R};_.Dl("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var WM=function(){var R=_.W.apply(this,arguments)||this;R.compactStyle=!1;R.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return R};
_.O(WM,_.W);_.J=WM.prototype;_.J.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.J.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"}}}};
_.J.computeHideDot=function(R){return!(R&&R.subscriberCountText&&R.videoCountText)||this.compactStyle};
_.J.hasDualButtons=function(R){return R&&R.purchaseButton&&R.subscribeButton};
_.J.backgroundColorChanged=function(){if(this.data!==void 0){var R=this.data.backgroundColor;this.isDarkTheme&&(R=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=R!=null?_.aH(R):"transparent"}};
_.J.onDarkModeToggledAction=function(R){this.isDarkTheme=R};
_.J.onTap=function(R){var y,u,v=((y=this.data)==null?void 0:y.navigationEndpoint)||((u=this.data)==null?void 0:u.serviceEndpoint);_.e(v,_.KX)&&(v&&_.ua().resolve(_.jX).resolveCommand(v,{form:{element:this.hostElement}}),R.preventDefault())};
_.J.computeChannelEndpoint=function(R){return _.e(R,_.KX)?null:R};
_.J.computeHrefEndpoint=function(R){return _.e(R,_.KX)?null:this.componentBehavior.computeHref_(R)};
_.J.computeChannelRendererStyle=function(R){return R};
_.J.computeIconSize=function(R){return R?108:136};
_.RR.Object.defineProperties(WM,{template:{configurable:!0,enumerable:!0,get:function(){return U2G()}}});
WM.prototype.backgroundColorChanged=WM.prototype.backgroundColorChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],WM.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],WM.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.jc),_.p("design:type",Object)],WM.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],WM.prototype,"componentBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],WM.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Boolean)],WM.prototype,"isDarkTheme",void 0);_.A([_.r({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.p("design:type",String)],WM.prototype,"channelRendererStyle",void 0);_.A([_.r({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],WM.prototype,"dualButtons",void 0);_.A([_.r({reflectToAttribute:!0,value:function(){return _.f("enable_desktop_search_bigger_thumbs")}}),
_.p("design:type",Boolean)],WM.prototype,"useBiggerThumbs",void 0);_.A([_.r({reflectToAttribute:!0,value:function(){return _.VN("desktop_search_bigger_thumbs_style")}}),
_.p("design:type",String)],WM.prototype,"biggerThumbStyle",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],WM.prototype,"compactStyle",void 0);_.A([_.e0("data","isDarkTheme"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],WM.prototype,"backgroundColorChanged",null);_.A([_.q({is:"ytd-channel-renderer",disableElementRegistration:!0})],WM);_.m(WM,"ytd-channel-renderer",function(){return U2G()},{mode:1});var kOG;var Ey8;_.Dl("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var dy=function(){var R=_.W.apply(this,arguments)||this;R.displayItemCount=2;R.collections=_.f("web_modern_collections_v2");R.hasPlaylistThumbnail=!1;R.stackThumbnailSize="large";return R};
_.O(dy,_.W);_.J=dy.prototype;_.J.attached=function(){this.updateInlinePreviewHoverListeners()};
_.J.detached=function(){this.clearInlinePreviewHoverListeners()};
_.J.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.J.computeFirstVideos=function(R,y){return R&&y?R.slice(0,y):[]};
_.J.computeThumbnailWidth=function(R,y){return R?y==="BIG"?500:y==="MASSIVE"?600:y==="MEDIUM"?450:420:360};
_.J.computeThumbnailHeight=function(R,y){return R?y==="BIG"?280:y==="MASSIVE"?337:234:202};
_.J.clearInlinePreviewHoverListeners=function(){var R;(R=this.JSC$16019_inlinePreviewHoverListener)==null||Mr(R)};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16019_inlinePreviewHoverListener=sC({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:oNG,thumbnailElement:this.thumbnail})};
_.J.computeHasPlaylistThumbnail=function(R){var y,u;if((((y=R.thumbnailRenderer)==null?0:y.playlistVideoThumbnailRenderer)||((u=R.thumbnailRenderer)==null?0:u.playlistCustomThumbnailRenderer))&&R.thumbnailOverlays)for(y=0;y<R.thumbnailOverlays.length;y++)if(u=void 0,(u=R.thumbnailOverlays[y])==null?0:u.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.RR.Object.defineProperties(dy.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.JSC$16019_inlinePreviewHoverListener)==null?0:tp(R))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
dy.prototype.dataChanged=dy.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],dy.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.gT),_.p("design:type",Object)],dy.prototype,"ytdLockupBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],dy.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],dy.prototype,"displayItemCount",void 0);_.A([_.r({reflectToAttribute:!0,value:function(){return _.f("enable_desktop_search_bigger_thumbs")}}),
_.p("design:type",Boolean)],dy.prototype,"useBiggerThumbs",void 0);_.A([_.r({reflectToAttribute:!0,value:function(){return _.VN("desktop_search_bigger_thumbs_style")}}),
_.p("design:type",String)],dy.prototype,"biggerThumbsStyle",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],dy.prototype,"collections",void 0);_.A([_.r({computed:"computeHasPlaylistThumbnail(data)"}),_.p("design:type",Object)],dy.prototype,"hasPlaylistThumbnail",void 0);_.A([_.r(),_.p("design:type",String)],dy.prototype,"stackThumbnailSize",void 0);_.A([_.O7("ytd-thumbnail"),_.p("design:type",HTMLElement)],dy.prototype,"thumbnail",void 0);
_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dy.prototype,"dataChanged",null);_.A([_.G("lockupIsHovered"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],dy.prototype,"isHovered",null);_.A([_.q({is:"ytd-radio-renderer",disableElementRegistration:!0})],dy);
_.m(dy,"ytd-radio-renderer",function(){if(Ey8!==void 0)return Ey8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Ey8=R},{mode:_.TN("kevlar_poly_si_batch_j058")?1:2});var $2L;_.Dl("itemSectionRenderer","showRenderer","ytd-show-renderer");var UN=function(){return _.W.apply(this,arguments)||this};
_.O(UN,_.W);UN.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
UN.prototype.computeThumbnailWidth=function(R){return R?360:246};
UN.prototype.computeUseProminentThumbs=function(R){return R};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],UN.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],UN.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],UN.prototype,"data",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],UN.prototype,"isSearch",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.p("design:type",Boolean)],UN.prototype,"useProminentThumbs",void 0);_.A([_.q({is:"ytd-show-renderer",disableElementRegistration:!0})],UN);
_.m(UN,"ytd-show-renderer",function(){if($2L!==void 0)return $2L;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return $2L=R},{mode:1});_.Dl("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var kn=function(){var R=_.W.apply(this,arguments)||this;R.isRichGrid=!1;return R};
_.O(kn,_.W);kn.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],kn.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],kn.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],kn.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],kn.prototype,"isRichGrid",void 0);_.A([_.q({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],kn);
_.m(kn,"ytd-feed-entry-renderer",function(){if(kOG!==void 0)return kOG;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return kOG=R},{mode:1});var qt5;var EN=function(){return _.W.apply(this,arguments)||this};
_.O(EN,_.W);EN.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.A([_.n(_.p6),_.p("design:type",Object)],EN.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],EN.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],EN.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],EN.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,selector:_.qq,value:3}),_.p("design:type",Number)],EN.prototype,"itemsPerRow",void 0);
_.A([_.q({is:"ytd-link-card-renderer",disableElementRegistration:!0})],EN);
_.m(EN,"ytd-link-card-renderer",function(){if(qt5!==void 0)return qt5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return qt5=R},{mode:1});var XBi;var $n=function(){return _.W.apply(this,arguments)||this};
_.O($n,_.W);_.J=$n.prototype;_.J.configureRendererStamper=function(){return{"data.menu":lH,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.J.onRendererTap=function(R){if(!this.ytdDismissibleItemBehavior.isDismissed){var y,u=(y=this.data)==null?void 0:y.navigationEndpoint;u&&!_.JF(_.u8(R),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(u)?_.JF(_.u8(R),this.hostElement,["A"])||_.Ko(this.hostElement,"yt-navigate",{endpoint:u}):this.ytComponentBehavior.resolveCommand(u,{}))}};
_.J.maybeComputeHref=function(R){return this.ytComponentBehavior.computeHref_(R,!0)};
_.J.getNavigationCommand=function(R){return this.isNavigationCommand(R)?R:null};
_.J.isNavigationCommand=function(R){return R?_.e(R,_.HV)||_.e(R,_.zM)||_.e(R,_.tc)?!0:!1:!1};
$n.prototype.onRendererTap=$n.prototype.onRendererTap;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],$n.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],$n.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.c4),_.p("design:type",Object)],$n.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],$n.prototype,"ytComponentBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],$n.prototype,"data",void 0);_.A([_.fu("tap"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],$n.prototype,"onRendererTap",null);_.A([_.q({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],$n);
_.m($n,"ytd-lumiere-promo-item-image-renderer",function(){if(XBi!==void 0)return XBi;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return XBi=R},{mode:1});var m2G;var q7=function(){return _.W.apply(this,arguments)||this};
_.O(q7,_.W);q7.prototype.computeLandscapeThumbnail=function(){var R;return((R=this.data)==null?void 0:R.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],q7.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],q7.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],q7.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,selector:_.$s}),_.p("design:type",Boolean)],q7.prototype,"miniMode",void 0);_.A([_.r({reflectToAttribute:!0,selector:_.qq}),_.p("design:type",Number)],q7.prototype,"itemsPerRow",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.p("design:type",Boolean)],q7.prototype,"landscapeThumbnail",void 0);_.A([_.q({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],q7);
_.m(q7,"ytd-lumiere-shelf-details-renderer",function(){if(m2G!==void 0)return m2G;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return m2G=R},{mode:_.TN("kevlar_poly_si_batch_j076")?1:2});var A$G;var X6=function(){return _.W.apply(this,arguments)||this};
_.O(X6,_.W);X6.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],X6.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],X6.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],X6.prototype,"data",void 0);_.A([_.q({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],X6);
_.m(X6,"ytd-primetime-promo-details-renderer",function(){if(A$G!==void 0)return A$G;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return A$G=R},{mode:1});var D2K;var m3=function(){return _.W.apply(this,arguments)||this};
_.O(m3,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],m3.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],m3.prototype,"data",void 0);_.A([_.q({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],m3);
_.m(m3,"ytd-panel-show-style-metadata-renderer",function(){if(D2K!==void 0)return D2K;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return D2K=R},{mode:1});var pBT;var AM=function(){return _.W.apply(this,arguments)||this};
_.O(AM,_.W);_.J=AM.prototype;_.J.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.J.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.J.computeThumbnail=function(R){if(R)return R.smallFormFactorBackgroundThumbnail||R.largeFormFactorBackgroundThumbnail};
_.J.maybeComputeHref=function(R){return this.ytComponentBehavior.computeHref_(R,!0)};
_.J.isNavigationCommand=function(R){return R?_.e(R,_.HV)||_.e(R,_.zM)||_.e(R,_.tc)?!0:!1:!1};
_.J.getNavigationCommand=function(R){return this.isNavigationCommand(R)?R:null};
AM.prototype.onPanelTap=AM.prototype.onPanelTap;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],AM.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],AM.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],AM.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],AM.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0,value:!0}),_.p("design:type",Boolean)],AM.prototype,"roundedContainer",void 0);_.A([_.r({reflectToAttribute:!0,value:_.f("web_modern_buttons")}),_.p("design:type",Boolean)],AM.prototype,"modernButtons",void 0);_.A([_.fu("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],AM.prototype,"onPanelTap",null);_.A([_.q({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],AM);
_.m(AM,"ytd-primetime-promo-panel-renderer",function(){if(pBT!==void 0)return pBT;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return pBT=R},{mode:1});_.h6(_.Jd(function(R){R=_.jb(R,{data:{},useFullWidth:!1});var y=R.data,u=R.useFullWidth;R={};return _.F("teaser-card-view-model",{class:_.Oy("ytTeaserCardViewModelHost",(R.ytTeaserCardViewModelUseFullWidth=function(){return u()},R))},_.F(_.w,{cond:function(){return y().onTap},
then:function(v){return _.F(_.zw,{className:"ytTeaserCardViewModelLink",command:v},_.F("div",{class:"ytTeaserCardViewModelImageContainer"},_.F(_.w,{cond:function(){return y().image},
then:function(Q){return _.F(_.MR,{data:Q,className:"ytTeaserCardViewModelImage",alt:""})}})),_.F("p",{class:"ytTeaserCardViewModelCaption"},function(){return y().caption}))}}))},"Pb"),"teaser-card-view-model",{props:{data:_.vR,
useFullWidth:_.vR}});var teK=new _.Jx("RICH_GRID_VIDEO_RENDERER_TOKEN");_.h6(_.Jd(function(R){var y=R.data;var u=R.showYtInteractionInContent;var v=function(){return!!y().selectableFeedback};
R=_.V(_.In(!1,void 0,"nblDw"));var Q=R.next().value,M=R.next().value;_.rB(function(){var B=_.e(y().primaryButton,_.EC);(B==null?0:B.isToggled)&&M(B.isToggled)});
R=_.nh(function(B){if(!v())return!1;if(Q()){var l;var Z=(l=y().selectableFeedback)==null?void 0:l.onDeselect}else{var P;Z=(P=y().selectableFeedback)==null?void 0:P.onSelect}Z&&_.zN(Z,{form:{element:B.target}});M(!Q());if(B=_.e(y().primaryButton,_.EC))B.isToggled=Q();return!1});
var K=function(){if(!v()){var B,l=(B=y().loggingDirectives)==null?void 0:B.trackingParams;l&&_.e2(_.ua().resolve(_.Ej),l)}},h=_.af8(),b=function(){var B;
return v()?(B=y().selectableFeedback)==null?void 0:B.a11yLabel:void 0},N=function(){return v()?{toggled:Q()}:{}},T=_.ua().resolve(_.yN(teK)),x={};
return _.F("yt-feedback-item-renderer",{class:_.Oy("ytFeedbackItemRendererHost",(x.ytFeedbackItemRendererSelectableFeedback=v,x)),"on:click":R,"on:keydown":h,title:b,"aria-label":b,"aria-pressed":function(){return v()?Q():void 0},
tabindex:function(){return v()?0:void 0},
role:function(){return v()?"button":void 0}},_.F("div",{class:"ytFeedbackItemRendererContentContainer"},_.F(_.mk,{data:function(){return y().content}},{videoRenderer:function(B){return _.F(T,{data:B.data,
showYtInteraction:u})},
lockupViewModel:function(B){return _.F(_.op,{data:B.data,containerType:2})}})),_.F("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.F(_.mk,{data:function(){return y().primaryButton}},{toggleButtonViewModel:function(B){return _.F(_.$1,{data:B.data,
buttonShapeOverrides:N,disableExplicitClickLogging:!0,onToggle:K})}})))},"Qb"),"yt-feedback-item-renderer",{props:{data:_.vR,
showYtInteractionInContent:_.vR}});var De=function(){var R=_.W.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=_.f("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$16054_unsubscribeFromInlinePreviewIsActive=function(){};
return R};
_.O(De,_.W);_.J=De.prototype;_.J.computeContainerType=function(){return this.useCompactList?3:2};
_.J.computeThumbnailTargetWidth=function(){var R;return(R=this.itemWidth)!=null?R:9999};
_.J.updateIsInFirstColumn=function(){var R;this.isInFirstColumn=((R=this.data)==null?void 0:R.colIndex)===0};
_.J.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&&_.f("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.f("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.J.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]]"}}}}}};
_.J.leave=function(R){R=R.relatedTarget;var y=document.querySelector("ytd-video-preview");R&&y&&_.b8(y).contains(R)||this.removeAndCleanupHighlight()};
_.J.hover=function(){var R;if(!this.highlighted&&(!_.f("web_enable_rich_item_on_focus_effect")||(R=this.data)!=null&&R.onFocusEffect)){var y,u;((y=this.data)==null?void 0:(u=y.onFocusEffect)==null?void 0:u.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 v,Q;((v=this.data)==null?void 0:(Q=v.onFocusEffect)==null?void 0:
Q.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.J.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};
_.J.registerHoverHighlightListeners=function(){var R=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16054_unsubscribeFromInlinePreviewIsActive=_.GD(_.Qe(),_.$iO,function(y){R.highlighted&&!y&&R.removeAndCleanupHighlight()})};
_.J.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16054_unsubscribeFromInlinePreviewIsActive()};
_.J.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.J.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.J.getBackgroundColor=function(){var R,y,u=(R=this.data)==null?void 0:(y=R.onFocusEffect)==null?void 0:y.onFocusColor;if(u){if(document.documentElement.hasAttribute("dark")&&(u==null?0:u.darkTheme))return _.aH(u==null?void 0:u.darkTheme);if(u==null?0:u.lightTheme)return _.aH(u==null?void 0:u.lightTheme)}};
_.J.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var R=_.$I(),y,u,v;R&&((y=this.data)==null?0:y.trackingParams)&&((u=this.data)==null?void 0:u.colIndex)!=null&&((v=this.data)==null?void 0:v.rowIndex)!=null&&_.R3(R,_.U4(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.J.isSlimMediaRenderer=function(R){return!!_.e(R==null?void 0:R.content,_.oRY)||!!_.e(R==null?void 0:R.content,T9i)||!!_.e(R==null?void 0:R.content,_.ce)||!!_.e(R==null?void 0:R.content,Xec)};
_.J.isPostRenderer=function(){var R,y;return!!_.e((R=this.data)==null?void 0:R.content,hEV)||!!_.e((y=this.data)==null?void 0:y.content,bTi)};
_.J.computeIsGameCardShelf=function(){var R;return!!_.e((R=this.data)==null?void 0:R.content,lRb)};
_.J.computeIsMiniGameCardShelf=function(){var R,y;return!!_.e((R=this.data)==null?void 0:R.content,qvb)||!!_.e((y=this.data)==null?void 0:y.content,Xtg)};
_.J.computeIsTeaserCard=function(){var R;return!!_.e((R=this.data)==null?void 0:R.content,Xtg)};
_.J.computeIsSelectableFeedbackItem=function(){var R,y;return!((y=_.e((R=this.data)==null?void 0:R.content,_.Axg))==null||!y.selectableFeedback)};
_.J.computeContainsLumierePosters=function(){var R,y;return((y=_.e((R=this.data)==null?void 0:R.content,ld5))==null?void 0:y.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.J.computeIsExpandOnHoverCardShelf=function(){var R;return!!_.e((R=this.data)==null?void 0:R.content,eEG)};
_.J.computeIsLinkCardShelf=function(){var R;return!!_.e((R=this.data)==null?void 0:R.content,YjK)};
_.J.computeIsReelItemStyleAvatarCircle=function(R){var y;return((y=_.e(R==null?void 0:R.content,_.ce))==null?void 0:y.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.J.computeIsLinkCardFullWidth=function(R,y){var u;return((u=_.e(R==null?void 0:R.content,YjK))==null?void 0:u.useFullWidth)||y<=2};
_.RR.Object.defineProperties(De.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&&_.f("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.f("web_enable_rich_item_on_focus_effect")||_.f("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
De.prototype.richGridHoverHighlightChanged=De.prototype.richGridHoverHighlightChanged;De.prototype.observerContainerType=De.prototype.observerContainerType;De.prototype.updateIsInFirstColumn=De.prototype.updateIsInFirstColumn;_.A([_.n(_.p6),_.p("design:type",Object)],De.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],De.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],De.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],De.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.gT),_.p("design:type",Object)],De.prototype,"ytdLockupBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],De.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.p("design:type",Boolean)],De.prototype,"isPost",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.p("design:type",Boolean)],De.prototype,"containsLumierePosters",void 0);_.A([_.r({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.p("design:type",Boolean)],De.prototype,"isSlimMedia",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.p("design:type",Boolean)],De.prototype,"isGameCardShelf",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.p("design:type",Boolean)],De.prototype,"isMiniGameCardShelf",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.p("design:type",Boolean)],De.prototype,"isTeaserCard",void 0);_.A([_.r({computed:"computeIsSelectableFeedbackItem(data)"}),_.p("design:type",Boolean)],De.prototype,"isSelectableFeedbackItem",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],De.prototype,"isShortsGrid",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],De.prototype,"isSlimGrid",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],De.prototype,"isCompactGrid",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],De.prototype,"isShortsPanelGrid",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.p("design:type",Boolean)],De.prototype,"isExpandOnHoverCardShelf",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.p("design:type",Boolean)],De.prototype,"isLinkCardShelf",void 0);_.A([_.r({reflectToAttribute:!0,selector:_.qq,value:3}),_.p("design:type",Number)],De.prototype,"itemsPerRow",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],De.prototype,"renderedFromRichGrid",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],De.prototype,"isInFirstColumn",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],De.prototype,"noGutterMargins",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],De.prototype,"isInlineGroupItem",void 0);_.A([_.r(),_.p("design:type",Object)],De.prototype,"insetMetadata",void 0);
_.A([_.r(),_.p("design:type",Object)],De.prototype,"noBottomMarginInAds",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],De.prototype,"isShelfItem",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.p("design:type",Boolean)],De.prototype,"isReelItemStyleAvatarCircle",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.p("design:type",Boolean)],De.prototype,"isLinkCardFullWidth",void 0);
_.A([_.r(),_.p("design:type",Object)],De.prototype,"force16By9ThumbnailAspectRatio",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],De.prototype,"useCompactList",void 0);_.A([_.r(),_.p("design:type",String)],De.prototype,"sizing",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],De.prototype,"typographyBump",void 0);_.A([_.r(),_.p("design:type",Number)],De.prototype,"itemWidth",void 0);_.A([_.r(),_.p("design:type",Boolean)],De.prototype,"isHomeShelf",void 0);
_.A([_.r(),_.p("design:type",Boolean)],De.prototype,"isHomeGrid",void 0);_.A([_.O7("yt-lockup-view-model"),_.p("design:type",HTMLElement)],De.prototype,"lockup",void 0);_.A([_.O7("ytd-rich-grid-media"),_.p("design:type",HTMLElement)],De.prototype,"richGridMedia",void 0);_.A([_.O7("ytd-ad-slot-renderer"),_.p("design:type",HTMLElement)],De.prototype,"adSlotRenderer",void 0);_.A([_.r({computed:"computeContainerType(useCompactList)"}),_.p("design:type",Object)],De.prototype,"containerType",void 0);
_.A([_.r({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.p("design:type",Object)],De.prototype,"thumbnailTargetWidth",void 0);_.A([_.G("showYtInteractionOnRichItem"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],De.prototype,"showYtInteractionOnRichGridMedia",null);_.A([_.G("isSelectableFeedbackItem","richGridHoverHighlight"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],De.prototype,"showYtInteractionOnRichItem",null);
_.A([_.G("typographyBump","isHomeGrid"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],De.prototype,"richTypographyBump",null);_.A([_.r({reflectToAttribute:!0}),_.G("isShortsGrid","isCompactGrid"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],De.prototype,"richGridHoverHighlight",null);_.A([_.G("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.p("design:type",Number),_.p("design:paramtypes",[])],De.prototype,"shortsLockupViewModelAspectRatio",null);
_.A([_.G("isInlineGroupItem"),_.p("design:type",Number),_.p("design:paramtypes",[])],De.prototype,"shortsLockupViewModelScrimStyle",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],De.prototype,"updateIsInFirstColumn",null);_.A([_.e0("containerType","sizing","typographyBump"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],De.prototype,"observerContainerType",null);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],De.prototype,"isResponsiveGrid",void 0);_.A([_.r(),_.p("design:type",Object)],De.prototype,"lockupExperiments",void 0);_.A([_.e0("richGridHoverHighlight"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],De.prototype,"richGridHoverHighlightChanged",null);_.A([_.q({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],De);
_.c$Y=_.Nk()(De,"ytd-rich-item-renderer",function(){if(Piw===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);Piw=R}R=Piw;return R},{mode:_.TN("kevlar_poly_si_batch_j028")?1:2});var HDU={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var muL=_.ye(_.fo("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var GcL={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},PMG={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},WzT={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var aUc;var pC=function(){var R=_.W.apply(this,arguments)||this;R.useResponsiveGrid=!1;R.hidden=!1;R.standardShelfMargins=_.f("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 y;(y=R.data)!=null&&y.contents&&(R.firstShownIndex+=R.currentElementsPerRow,R.updateHorizontalOffset(),R.updateHorizontalItemVisibility())};
R.previousClick=function(){var y;(y=R.data)!=null&&y.contents&&(R.firstShownIndex-=R.currentElementsPerRow,R.updateHorizontalOffset(),R.updateHorizontalItemVisibility())};
return R};
_.O(pC,_.W);_.J=pC.prototype;
_.J.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:_.EB("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.J.attached=function(){this.requestElementsPerRow()};
_.J.refreshGridLayoutNew=function(){var R;if((R=this.data)!=null&&R.contents&&this.containerWidth){var y;((y=this.data.responsiveContainerConfiguration)==null?0:y.responsiveSize)?(R=_.plU(this.data.responsiveContainerConfiguration,this.containerWidth),R=_.Ry(Object.assign({},R,{standardUnitMinWidth:this.standardUnitMinWidth}))):R=_.Ry({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,_.oX(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":R.gutter+"px"})}};
_.J.computeSizing=function(){if(!this.isLumiere){var R=_.S1T(this.data);if(R)return R;if(_.f("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.J.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.J.computeButton=function(R){var y=_.e(R,_.aG);R=Object.assign({},_.e(R,_.aG));return y?(R.text||(R.text={simpleText:R.tooltip}),R.style="STYLE_MONO_OUTLINE",R.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",R):y};
_.J.onRowIndexChange=function(){var R=_.$I(),y,u;((y=this.data)==null?0:y.trackingParams)&&((u=this.data)==null?void 0:u.rowIndex)!=null&&R&&_.R3(R,_.U4(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.J.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var R,y=((R=this.getRichItemRenderers()[0])==null?void 0:R.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*y;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.J.requestElementsPerRow=function(){_.Ko(this.hostElement,"yt-request-elements-per-row")};
_.J.onUpdateElementsPerRowAction=function(R,y,u,v,Q,M){if(this.containerWidth!==M&&(this.containerWidth=M,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&R&&y&&u&&v&&Q&&(this.elementsPerRow!==R||this.postsPerRow!==y||this.slimItemsPerRow!==u||this.gameCardsPerRow!==v||this.miniGameCardsPerRow!==Q)&&(this.elementsPerRow=R,this.postsPerRow=y,this.slimItemsPerRow=u,this.gameCardsPerRow=v,this.miniGameCardsPerRow=Q,this.updateItemVisibility())};
_.J.getRichItemRenderers=function(){return _.hw(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.J.updateItemVisibility=function(){var R=this;if(this.data&&this.data.contents){var y=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(v,Q){var M;((M=R.data)==null?0:M.isExpanded)?(v.hidden=Q>y-1,v.ytRendererBehavior.markDirty()):v.hidden=Q>R.currentElementsPerRow-1||Q>y-1});
var u=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||u||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||u||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.J.setHeightToSingleRow=function(){var R=this.getRichItemRenderers(),y=Number.parseInt(getComputedStyle(R[0]).marginBottom,10)||0;R=R.slice(0,this.currentElementsPerRow).reduce(function(u,v){return Math.max(u,v.getBoundingClientRect().height+y)},0);
this.contents.style.height=R+"px"};
_.J.focusNextExpandedItem=function(){var R;((R=this.data)==null?0:R.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.J.focusItem=function(R,y){var u=this.getRichItemRenderers();if(u[R]&&(R=u[R].querySelector(".focus-on-expand"))){if(y){var v;(v=u[this.currentElementsPerRow])==null||v.scrollIntoView({behavior:"smooth",block:"center"})}R.focus({preventScroll:!0})}};
_.J.onDataChange=function(){var R=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var y;if((y=this.data)==null?0:y.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.gn(this,function(){R.updateItemVisibility()});
var u;if((u=this.data)==null?0:u.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.oX(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),y=0;y<this.data.contents.length;y++)u=_.e(this.data.contents[y],_.$W)||{},u.colIndex=y,u.rowIndex=this.data.rowIndex};
_.J.handleRerenderDownloadsData=function(){_.f("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())};
_.J.blockInlinePreview=function(R){var y=this,u;return _.I(function(v){(u=y.inlinePreviewIsEnabled)&&y.ytdReduxBehavior.dispatch(_.GtG(!1));return v.return(new Promise(function(Q){R(function(){u&&y.ytdReduxBehavior.dispatch(_.GtG(!0));Q()})}))})};
_.J.expandShelf=function(){var R=this;if(this.data){var y,u=(y=_.e(this.data.showMoreButton,_.aG))==null?void 0:y.trackingParams;u&&_.e2(_.GN(),u);this.data.isExpanded=!0;this.blockInlinePreview(function(v){R.setHeightToSingleRow();R.updateItemVisibility();R.contents.style.height=R.contents.scrollHeight+"px";_.WG.addJob(function(){R.contents.style.height="auto";R.focusNextExpandedItem();v()},2,200)})}};
_.J.collapseShelf=function(){var R=this;return _.I(function(y){if(y.nextAddress==1){if(!R.data)return y.return();R.data.isExpanded=!1;return y.yield(R.blockInlinePreview(function(u){R.contents.style.height=R.contents.scrollHeight+"px";R.setHeightToSingleRow();_.WG.addJob(function(){R.updateItemVisibility();R.contents.style.height="auto";u()},2,200)}),2)}_.Ko(R.hostElement,"yt-rich-shelf-renderer-collapse",R.data.trackingParams);
R.focusItem(0,!1);_.f$(y)})};
_.J.updateArrowButtonStatus=function(){var R=this.getRichItemRenderers().length;if(!_.f("web_rich_shelf_renderer_use_data_contents_killswitch")){var y,u;R=((y=this.data)==null?void 0:(u=y.contents)==null?void 0:u.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=R};
_.J.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())))};
_.J.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.EB("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.J.updateHorizontalOffset=function(){var R=this.getRichItemRenderers(),y=R.length;if(!_.f("web_rich_shelf_renderer_use_data_contents_killswitch")){var u,v;y=((u=this.data)==null?void 0:(v=u.contents)==null?void 0:v.length)||0}var Q;R=((Q=R[0])==null?void 0:Q.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>y?this.firstShownIndex=y-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*R};
_.J.isSlimMediaShelfRenderer=function(){var R,y,u,v=(u=_.e((R=this.data)==null?void 0:(y=R.contents)==null?void 0:y[0],_.$W))==null?void 0:u.content;return!!(_.e(v,_.oRY)||_.e(v,T9i)||_.e(v,_.ce)||_.e(v,Xec))};
_.J.isGameCardShelf=function(){var R,y,u,v=(u=_.e((R=this.data)==null?void 0:(y=R.contents)==null?void 0:y[0],_.$W))==null?void 0:u.content;return!!_.e(v,lRb)};
_.J.isGnomeShelf=function(){var R,y,u,v=(u=_.e((R=this.data)==null?void 0:(y=R.contents)==null?void 0:y[0],_.$W))==null?void 0:u.content;return!!_.e(v,_.Axg)};
_.J.isMiniGameCardShelf=function(){var R,y,u,v=(u=_.e((R=this.data)==null?void 0:(y=R.contents)==null?void 0:y[0],_.$W))==null?void 0:u.content;return!!_.e(v,qvb)||!!_.e(v,Xtg)};
_.J.hasGameBoxArtAvatarStyle=function(){var R;return((R=this.data)==null?void 0:R.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.J.hasRoundedGameBoxArtAvatarStyle=function(){var R;return((R=this.data)==null?void 0:R.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.J.isShortsShelf=function(){var R,y,u,v=(u=_.e((R=this.data)==null?void 0:(y=R.contents)==null?void 0:y[0],_.$W))==null?void 0:u.content;return!!_.e(v,_.ce)||!!_.e(v,Xec)};
_.J.isPostShelfRenderer=function(){var R,y,u,v=(u=_.e((R=this.data)==null?void 0:(y=R.contents)==null?void 0:y[0],_.$W))==null?void 0:u.content;return!(!_.e(v,hEV)&&!_.e(v,bTi))};
_.J.isLumiereShelf=function(){var R,y,u=_.e((R=this.data)==null?void 0:(y=R.contents)==null?void 0:y[0],_.$W);return!!_.e(u==null?void 0:u.content,ld5)};
_.J.isLumiereShelfWithPosters=function(){var R,y,u=_.e((R=this.data)==null?void 0:(y=R.contents)==null?void 0:y[0],_.$W),v;return((v=_.e(u==null?void 0:u.content,ld5))==null?void 0:v.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.J.isExpandOnHoverCardShelf=function(){var R,y,u,v=(u=_.e((R=this.data)==null?void 0:(y=R.contents)==null?void 0:y[0],_.$W))==null?void 0:u.content;return!!_.e(v,eEG)};
_.J.computeHasFeaturedBadge=function(){var R,y,u=_.e((R=this.data)==null?void 0:(y=R.badges)==null?void 0:y[0],_.DET);return u?u.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.J.computeHasPaygatedFeaturedBadge=function(){var R,y,u=_.e((R=this.data)==null?void 0:(y=R.badges)==null?void 0:y[0],_.DET);return u?(u==null?void 0:u.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.J.computeHeaderHidden=function(){var R,y,u,v,Q,M;return!((R=this.data)==null?0:R.icon)&&!((y=this.data)==null?0:y.title)&&!((u=this.data)==null?0:u.subtitle)&&!((v=this.data)==null?0:v.thumbnail)&&!((Q=this.data)==null?0:Q.badges)&&!((M=this.data)==null?0:M.menu)};
_.J.showCtaButton=function(){var R;return!((R=this.data)==null||!R.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.J.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.J.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.J.computeForce16By9ThumbnailAspectRatio=function(){var R,y;return((R=this.data)==null?void 0:(y=R.responsiveContainerConfiguration)==null?void 0:y.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.J.onSectionReactiveDismissal=function(R,y,u){var v,Q;var M=(v=this.data)==null?void 0:(Q=v.targetingContext)==null?void 0:Q.targetGroupId;this&&M&&y.targetGroupId&&M.includes(y.targetGroupId)?(v=this.rowIndex,R=v===void 0?!1:!(y.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&v<=R)):R=!1;R&&(this.hidden=u)};
_.RR.Object.defineProperties(pC.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()&&_.f("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,y;return!((R=this.data)==null||!R.previousButton)&&!((y=this.data)==null||!y.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=_.ua().resolve(_.iD).getCurrentPage())==null?void 0:R.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var R,y,u,v;return!((R=this.data)==null?0:(y=R.thumbnail)==null?0:(u=y.accessibility)==null?0:(v=u.accessibilityData)==null?0:v.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}}});
pC.prototype.onChildElementFocus=pC.prototype.onChildElementFocus;pC.prototype.handleRerenderDownloadsData=pC.prototype.handleRerenderDownloadsData;pC.prototype.onDataChange=pC.prototype.onDataChange;pC.prototype.onRowIndexChange=pC.prototype.onRowIndexChange;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],pC.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],pC.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.c4),_.p("design:type",Object)],pC.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],pC.prototype,"actionHandlerBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],pC.prototype,"ytdReduxBehavior",void 0);_.A([_.r({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.p("design:type",Object)],pC.prototype,"useResponsiveGrid",void 0);_.A([_.r(),_.p("design:type",Object)],pC.prototype,"data",void 0);
_.A([_.r(),_.p("design:type",Number)],pC.prototype,"standardUnitMinWidth",void 0);_.A([_.r({reflectToAttribute:!0,value:3}),_.p("design:type",Number)],pC.prototype,"elementsPerRow",void 0);_.A([_.r({value:3}),_.p("design:type",Number)],pC.prototype,"postsPerRow",void 0);_.A([_.r({value:6}),_.p("design:type",Number)],pC.prototype,"slimItemsPerRow",void 0);_.A([_.r({value:6}),_.p("design:type",Number)],pC.prototype,"gameCardsPerRow",void 0);
_.A([_.r({value:6}),_.p("design:type",Number)],pC.prototype,"miniGameCardsPerRow",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],pC.prototype,"hidden",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],pC.prototype,"standardShelfMargins",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],pC.prototype,"isShowMoreHidden",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],pC.prototype,"isExpanded",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],pC.prototype,"isInnerShelf",void 0);_.A([_.r({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.p("design:type",Boolean)],pC.prototype,"isShorts",void 0);_.A([_.r({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.p("design:type",Boolean)],pC.prototype,"isLumiere",void 0);_.A([_.r({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.p("design:type",Boolean)],pC.prototype,"hasBoxArtThumbnailStyle",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.p("design:type",Boolean)],pC.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.p("design:type",Boolean)],pC.prototype,"hasFeaturedBadge",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.p("design:type",Boolean)],pC.prototype,"hasPaygatedFeaturedBadge",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.p("design:type",Boolean)],pC.prototype,"isHeaderHidden",void 0);_.A([_.r({selector:_.prv}),_.p("design:type",Object)],pC.prototype,"allVideosCount",void 0);_.A([_.r({selector:DuU}),_.p("design:type",Object)],pC.prototype,"allPlaylistCount",void 0);_.A([_.r({selector:CtG}),_.p("design:type",Object)],pC.prototype,"haveSmartDownloadsCompleted",void 0);
_.A([_.r({selectorArgs:["entitySelectorType"],selector:function(R,y){if(_.f("kevlar_modern_downloads_page")&&y&&y!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var u=R.entities;switch(y){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":y=_.Uq(u);R=W2(y);var v=_.nz(y);u=_.Eq(u);u=_.Mq(UuU(v,u,y.length));return{contents:R,subtitle:u};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return u=_.Uq(u),{contents:W2(u)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return u=
_.ks(u),{contents:W2(u)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return u=_.BQP(u),{contents:W2(u)};default:_.kT(new _.OL("Error: entitySelectorType defined but not matched in selector.",R,y))}}}}),
_.p("design:type",Object)],pC.prototype,"entityDrivenRichShelfData",void 0);_.A([_.r({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.p("design:type",Boolean)],pC.prototype,"hasTopCtaButton",void 0);_.A([_.r({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.p("design:type",Boolean)],pC.prototype,"hasBottomCtaButton",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.p("design:type",Boolean)],pC.prototype,"force16By9ThumbnailAspectRatio",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],pC.prototype,"isShowLessHidden",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],pC.prototype,"restrictContentsOverflow",void 0);_.A([_.r({selector:_.qT4}),_.p("design:type",Boolean)],pC.prototype,"inlinePreviewIsEnabled",void 0);
_.A([_.r({computed:"computeSizing(data)"}),_.p("design:type",String)],pC.prototype,"sizing",void 0);_.A([_.r(),_.p("design:type",Boolean)],pC.prototype,"typographyBump",void 0);_.A([_.r(),_.p("design:type",Number)],pC.prototype,"itemWidth",void 0);_.A([_.r(),_.p("design:type",Object)],pC.prototype,"firstShownIndex",void 0);_.A([_.r(),_.p("design:type",Object)],pC.prototype,"horizontalOffset",void 0);_.A([_.r(),_.p("design:type",Object)],pC.prototype,"atEnd",void 0);
_.A([_.O7("#contents"),_.p("design:type",HTMLElement)],pC.prototype,"contents",void 0);_.A([_.e0("data.rowIndex"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],pC.prototype,"onRowIndexChange",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],pC.prototype,"onDataChange",null);
_.A([_.e0("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],pC.prototype,"handleRerenderDownloadsData",null);_.A([_.fu("focusin"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],pC.prototype,"onChildElementFocus",null);_.A([_.r({reflectToAttribute:!0}),_.G("data","isHomePage"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],pC.prototype,"isTruncated",null);
_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],pC.prototype,"hideBottomDivider",null);_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],pC.prototype,"hasChevronButtons",null);_.A([_.G("firstShownIndex"),_.p("design:type",Object),_.p("design:paramtypes",[])],pC.prototype,"previousButtonOverride",null);
_.A([_.G("atEnd"),_.p("design:type",Object),_.p("design:paramtypes",[])],pC.prototype,"nextButtonOverride",null);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],pC.prototype,"isHomePage",null);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],pC.prototype,"thumbnailAriaHidden",null);_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],pC.prototype,"initiallyIsExpanded",null);
_.A([_.G("data"),_.p("design:type",String),_.p("design:paramtypes",[])],pC.prototype,"entitySelectorType",null);_.A([_.q({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],pC);
_.Stc=_.Nk()(pC,"ytd-rich-shelf-renderer",function(){if(aUc===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);aUc=R}R=aUc;return R},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.TN("kevlar_poly_si_batch_j028")?1:2});var Ytg;_.h6(_.hr,"yt-badge-view-model",{props:{data:_.vR,class:_.vR,workaroundShortsIsThumbnailBadge:_.vR,modern:_.vR}});_.h6(eZY,"yt-slimline-survey-view-model",{props:{data:_.vR}});var tM=function(){var R=_.W.apply(this,arguments)||this;R.tileLottieAnimationRef={};R.backgroundLottieAnimationRef={};R.isOnHoverBehaviorForLottieEnabled=!0;R.useBiggerShowcaseImage=_.f("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};
_.O(tM,_.W);_.J=tM.prototype;_.J.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.J.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",
params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.J.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()}};
_.J.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.J.currentColorChanged=function(){this.updateButtonPalette()};
_.J.computeBackgroundStyle=function(R){if(R&&this.data){var y=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var u=_.Fj((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);u&&y.push('background-image: url("'+u+'");')}var v;((v=R.basicColorData)==null?void 0:v.backgroundColor)!==void 0&&y.push("background-color: "+_.Sq(R.basicColorData.backgroundColor)+";");return y.join("")}};
_.J.onDarkModeToggledAction=function(R){R!==this.isDarkTheme&&this.set("isDarkTheme",R)};
_.J.getCurrentLogo=function(R,y){if(R)return y?R.darkLogoImage:R.lightLogoImage};
_.J.getCurrentStaticTileImage=function(R,y){if(this.hasStaticTile(R))return R.darkTileImage?y?R.darkTileImage:R.tileImage:R.tileImage};
_.J.computeTitleStyle=function(R){if(this.data&&this.data.title&&R&&R.basicColorData&&R.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.aH(R.basicColorData.foregroundTitleColor)+";"};
_.J.computeSubtitleStyle=function(R){if(this.data&&this.data.subtitle&&R&&R.basicColorData&&R.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.aH(R.basicColorData.foregroundBodyColor)+";"};
_.J.computeSupplementalStyle=function(R){if(this.data&&this.data.supplementalText&&R&&R.supplementalTextColor!==void 0)return R=_.aH(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;"};
_.J.computeDismissIconStyle=function(R){var y,u;if((R==null?0:(y=R.dismissButtonColorData)==null?0:y.foregroundTitleColor)&&(R==null?0:(u=R.dismissButtonColorData)==null?0:u.backgroundColor))return"--yt-button-color:"+_.Sq(R.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Sq(R.dismissButtonColorData.backgroundColor)+";"};
_.J.computeOverflowIconStyle=function(R){var y,u;if((R==null?0:(y=R.dismissButtonColorData)==null?0:y.foregroundTitleColor)&&(R==null?0:(u=R.dismissButtonColorData)==null?0:u.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.Sq(R.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Sq(R.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.Sq(R.dismissButtonColorData.foregroundTitleColor)+";"};
_.J.computeBannerStyle=function(R){return R?R.toLowerCase().replace(/_/g,"-"):""};
_.J.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"}};
_.J.shouldShowTileSection=function(R,y,u){return!this.shouldExpandLogo(R,y,u)&&y};
_.J.shouldShowExpandedLogoSection=function(R,y,u){return this.shouldExpandLogo(R,y,u)&&R!==void 0&&this.hasLogo(R)};
_.J.shouldExpandLogo=function(R,y,u){return R&&y?!1:u>=2};
_.J.hasStaticTile=function(R){return!(R==null||!R.tileImage)};
_.J.hasTileLottie=function(R){var y;return!!(R==null?0:(y=R.tileLottie)==null?0:y.url)};
_.J.hasLogo=function(R){return this.getCurrentLogo(R,this.isDarkTheme)!==void 0};
_.J.getLogoHeight=function(R){return this.logoWithPadding(R)?"26":"20"};
_.J.getExpandedLogoHeight=function(R){return this.logoWithPadding(R)?"31":"24"};
_.J.getLogoImageId=function(R){return this.logoWithPadding(R)?"logo-image-with-padding":"logo-image"};
_.J.getMaxTitleFontSize=function(R){return R.overrideTitleMaxFontSize?String(R.overrideTitleMaxFontSize):"36"};
_.J.hasBackgroundLottie=function(R){var y;return!!(R==null?0:(y=R.backgroundLottie)==null?0:y.url)};
_.J.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var R,y;(R=this.tileLottieAnimationRef)==null||(y=R.lottieEl)==null||y.play();var u,v;(u=this.backgroundLottieAnimationRef)==null||(v=u.lottieEl)==null||v.play()}};
_.J.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var R,y;(R=this.tileLottieAnimationRef)==null||(y=R.lottieEl)==null||y.pause();var u,v;(u=this.backgroundLottieAnimationRef)==null||(v=u.lottieEl)==null||v.pause()}};
_.J.pauseLottie=function(){var R,y;(R=this.tileLottieAnimationRef)==null||(y=R.lottieEl)==null||y.pause();var u,v;(u=this.backgroundLottieAnimationRef)==null||(v=u.lottieEl)==null||v.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.J.performPrimaryButtonAction=function(){var R,y,u;((R=this.data)==null?0:(y=R.primaryButton)==null?0:(u=y.buttonRenderer)==null?0:u.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.J.requestElementsPerRow=function(){_.Ko(this.hostElement,"yt-request-elements-per-row")};
_.J.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 y;if((y=this.data.primaryButton)==null?0:y.buttonRenderer)this.currentColorData.primaryButtonColorData?
(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorData.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorData.primaryButtonStyleType,this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)});var u;if((u=this.data.secondaryButton)==
null?0:u.buttonRenderer)this.currentColorData.secondaryButtonColorData?(this.data.secondaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.secondaryButtonColorData},this.data.secondaryButton.buttonRenderer.style=void 0):this.currentColorData.secondaryButtonStyleType&&(this.data.secondaryButton.buttonRenderer.style=this.currentColorData.secondaryButtonStyleType,this.data.secondaryButton.buttonRenderer.colorData=void 0),this.set("secondaryButton",{buttonRenderer:Object.assign({},
this.data.secondaryButton.buttonRenderer)});var v;((v=this.data.primaryButton)==null?0:v.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var Q;((Q=this.data.secondaryButton)==null?0:Q.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.J.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var R=this.getTileLottieDataBasedOnTheme(),y,u;if(R.url!==((y=this.tileLottiePlayerProps)==null?void 0:(u=y.animationConfig)==null?void 0:u.path)){var v,Q;(v=this.tileLottieAnimationRef)==null||(Q=v.lottieEl)==null||Q.destroy();var M;this.isOnHoverBehaviorForLottieEnabled=!((M=R.settings)==null?0:M.autoplay);var K,h;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(h=(K=R.settings)==null?void 0:K.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}}};
_.J.getOverflowButton=function(R){return _.e(R.overflowButton,tET)};
_.J.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var R=this.getBackgroundLottieDataBasedOnTheme(),y,u;if(R.url!==((y=this.backgroundLottiePlayerProps)==null?void 0:(u=y.animationConfig)==null?void 0:u.path)){var v,Q;(v=this.backgroundLottieAnimationRef)==null||(Q=v.lottieEl)==null||Q.destroy();var M;this.isOnHoverBehaviorForLottieEnabled=!((M=R.settings)==null?0:M.autoplay);var K,h;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(h=(K=R.settings)==null?void 0:K.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}}};
_.J.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var R;((R=this.tileLottieAnimationRef)==null?void 0:R.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var y;((y=this.backgroundLottieAnimationRef)==null?void 0:y.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.J.getTileLottieDataBasedOnTheme=function(){var R;if(this.isDarkTheme&&((R=this.data)==null?0:R.darkThemeTileLottie))return this.data.darkThemeTileLottie;var y;return((y=this.data)==null?0:y.tileLottie)?this.data.tileLottie:{}};
_.J.getBackgroundLottieDataBasedOnTheme=function(){var R;if(this.isDarkTheme&&((R=this.data)==null?0:R.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var y;return((y=this.data)==null?0:y.backgroundLottie)?this.data.backgroundLottie:{}};
_.J.onUpdateElementsPerRowAction=function(R){R&&this.elementsPerRow!==R&&(this.elementsPerRow=R)};
_.J.getLottieLoopValue=function(R){return R?R.loop!==void 0?R.loop:R.loopCount?R.loopCount-1:!0:!0};
_.J.logoWithPadding=function(R){var y,u,v;return(R=(y=this.getCurrentLogo(R,this.isDarkTheme))==null?void 0:(u=y.thumbnails)==null?void 0:(v=u[0])==null?void 0:v.height)&&R%31===0?!0:!1};
tM.prototype.currentColorChanged=tM.prototype.currentColorChanged;tM.prototype.themeChanged=tM.prototype.themeChanged;tM.prototype.dataChanged=tM.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],tM.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],tM.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.c4),_.p("design:type",Object)],tM.prototype,"ytdDismissibleItemBehavior",void 0);
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],tM.prototype,"actionHandlerBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],tM.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],tM.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],tM.prototype,"primaryButton",void 0);_.A([_.r(),_.p("design:type",Object)],tM.prototype,"secondaryButton",void 0);
_.A([_.r({reflectToAttribute:!0,value:3}),_.p("design:type",Number)],tM.prototype,"elementsPerRow",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],tM.prototype,"isDarkTheme",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],tM.prototype,"hasTile",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],tM.prototype,"hasMetadata",void 0);
_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],tM.prototype,"showLogoImage",void 0);_.A([_.r(),_.p("design:type",Object)],tM.prototype,"currentColorData",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.p("design:type",String)],tM.prototype,"bannerStyle",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.p("design:type",String)],tM.prototype,"location",void 0);
_.A([_.r(),_.p("design:type",Object)],tM.prototype,"tileLottiePlayerProps",void 0);_.A([_.r(),_.p("design:type",Object)],tM.prototype,"tileLottieAnimationRef",void 0);_.A([_.r(),_.p("design:type",Object)],tM.prototype,"backgroundLottiePlayerProps",void 0);_.A([_.r(),_.p("design:type",Object)],tM.prototype,"backgroundLottieAnimationRef",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],tM.prototype,"useBiggerShowcaseImage",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],tM.prototype,"isHideEnclosingAction",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tM.prototype,"dataChanged",null);_.A([_.GJ("isDarkTheme"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tM.prototype,"themeChanged",null);
_.A([_.GJ("currentColorData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tM.prototype,"currentColorChanged",null);_.A([_.q({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],tM);
_.m(tM,"ytd-statement-banner-renderer",function(){if(Ytg!==void 0)return Ytg;var R=document.createElement("template");_.H(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="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[data.badge]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n            <div id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');R.content.insertBefore(_.t().content.cloneNode(!0),
R.content.firstChild);return Ytg=R},{mode:1});var LyL;var cM=function(){var R=_.W.apply(this,arguments)||this;R.isSearch=!1;R.hideShelfHeader=!1;R.engagementPanel=!1;R.disableMouseScroll=!0;R.useFloorScrolling=!0;R.modernTypography=_.f("web_modern_typography");return R};
_.O(cM,_.W);cM.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.fo("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.fo("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
cM.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
cM.prototype.onDataChanged=cM.prototype.onDataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],cM.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],cM.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],cM.prototype,"isSearch",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],cM.prototype,"hideShelfHeader",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],cM.prototype,"engagementPanel",void 0);_.A([_.r(),_.p("design:type",Object)],cM.prototype,"disableMouseScroll",void 0);_.A([_.r(),_.p("design:type",Object)],cM.prototype,"useFloorScrolling",void 0);_.A([_.r(),_.p("design:type",Object)],cM.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],cM.prototype,"modernTypography",void 0);
_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],cM.prototype,"onDataChanged",null);_.A([_.q({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],cM);
_.m(cM,"ytd-reel-shelf-renderer",function(){if(LyL!==void 0)return LyL;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return LyL=R},{mode:_.TN("kevlar_poly_si_batch_j028")?1:2});var sT5;var zmg;zmg=_.RE(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.gyw=_.M1(zmg);var Ci5=_.Jd(function(R){var y=R.data;R=R.useSmallFont;var u={},v={};return _.F("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.F(_.w,{cond:function(){return y().favicon},
then:function(Q){return _.F(_.MR,{data:Q,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.F("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.F(_.QM,{text:function(){return y().title},
className:_.Oy("yt-channel-external-link-view-model-wiz__title",(u["yt-channel-external-link-view-model-wiz__title--title-small-font"]=R,u)),ellipsisTruncate:!0,userInput:!0}),_.F(_.QM,{text:function(){return y().link},
className:_.Oy("yt-channel-external-link-view-model-wiz__link",(v["yt-channel-external-link-view-model-wiz__link--link-small-font"]=R,v)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Rb");
Ci5.idomCompat=!0;_.h6(Ci5,"yt-channel-external-link-view-model",{props:{data:_.vR,useSmallFont:_.vR}});_.Dl("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var aA=function(){var R=_.W.apply(this,arguments)||this;R.revealButtonClass="button";R.businessEmailDisplayState="HIDE_SECTION";return R};
_.O(aA,_.W);_.J=aA.prototype;_.J.refit=function(){var R=this;_.s7(function(){_.h_(R.hostElement,"yt-refit-popups-action")});
_.gn(this,function(){_.h_(R.hostElement,"yt-refit-popups-action")})};
_.J.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.tl(_.gyw),this.businessEmailDisplayState="CAPTCHA")};
_.J.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"};
_.J.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.J.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"}}}};
_.J.computeEmailHref=function(R){return"mailto:"+R};
_.J.computeSafeUrl=function(R){if(R)return _.Eo(R)};
_.J.linkEndpoint=function(R){return _.e(R.onTap,_.ac)};
_.J.linkEndpointToHref=function(R){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(R))};
_.J.onYtServiceRequestCompleted=function(R){var y;if((y=R.detail.data)==null?0:y.businessEmail)this.businessEmail=R.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var u;if((u=R.detail.data)==null?0:u.errorMessage)this.businessEmailErrorMessage=R.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.J.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var R=this.JSC$16166_captchaTextarea.value;if(R){R={recaptcha_response_token:R,channel_id:this.metadata.channelId};var y=_.e(this.metadata.onBusinessEmailRevealClickCommand,_.ac);y&&this.ytComponentBehavior.resolveCommand(y,{form:R})}}};
_.J.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.RR.Object.defineProperties(aA.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var R;return _.e((R=this.data)==null?void 0:R.metadata,njw)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.e(this.metadata.businessEmailRevealButton,_.k9)}},
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 _.e(this.metadata.learnMoreOnTap,_.ac)}}});
aA.prototype.onYtServiceRequestCompleted=aA.prototype.onYtServiceRequestCompleted;aA.prototype.businessEmailMetadataChanged=aA.prototype.businessEmailMetadataChanged;aA.prototype.refit=aA.prototype.refit;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],aA.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],aA.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],aA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.O7("#g-recaptcha-response"),_.p("design:type",HTMLTextAreaElement)],aA.prototype,"JSC$16166_captchaTextarea",void 0);_.A([_.r(),_.p("design:type",Object)],aA.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],aA.prototype,"revealButtonClass",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],aA.prototype,"metadata",null);
_.A([_.G("metadata"),_.p("design:type",Object),_.p("design:paramtypes",[])],aA.prototype,"revealButton",null);_.A([_.G("metadata"),_.p("design:type",Object),_.p("design:paramtypes",[])],aA.prototype,"channelDisplayUrl",null);_.A([_.GJ("metadata"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],aA.prototype,"refit",null);_.A([_.G("metadata"),_.p("design:type",Object),_.p("design:paramtypes",[])],aA.prototype,"formattedDescription",null);
_.A([_.G("metadata","learnMoreCommand"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],aA.prototype,"shouldRendereVerifiedPhoneStatus",null);_.A([_.G("metadata"),_.p("design:type",Object),_.p("design:paramtypes",[])],aA.prototype,"learnMoreCommand",null);_.A([_.r(),_.p("design:type",String)],aA.prototype,"businessEmailDisplayState",void 0);_.A([_.r(),_.p("design:type",String)],aA.prototype,"businessEmail",void 0);
_.A([_.r(),_.p("design:type",String)],aA.prototype,"businessEmailErrorMessage",void 0);_.A([_.GJ("metadata"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],aA.prototype,"businessEmailMetadataChanged",null);_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],aA.prototype,"onYtServiceRequestCompleted",null);_.A([_.q({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],aA);
_.m(aA,"ytd-about-channel-renderer",function(){if(sT5!==void 0)return sT5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return sT5=R},{mode:1});var R0G;var Sl=function(){return _.W.apply(this,arguments)||this};
_.O(Sl,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Sl.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Sl.prototype,"data",void 0);_.A([_.q({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],Sl);
_.m(Sl,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(R0G!==void 0)return R0G;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return R0G=R},{mode:1});var yBc;var Yn=function(){return _.W.apply(this,arguments)||this};
_.O(Yn,_.W);Yn.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Yn.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Yn.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],Yn.prototype,"aligment",void 0);_.A([_.q({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],Yn);
_.m(Yn,"ytd-channel-list-sub-menu-renderer",function(){if(yBc!==void 0)return yBc;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return yBc=
R},{mode:1});var uYT;var LC=function(){return _.W.apply(this,arguments)||this};
_.O(LC,_.W);LC.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],LC.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],LC.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],LC.prototype,"data",void 0);_.A([_.q({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],LC);
_.m(LC,"ytd-channel-sub-menu-renderer",function(){if(uYT!==void 0)return uYT;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return uYT=R},{mode:1});var vbL;var QDV;var sN=function(){var R=_.W.apply(this,arguments)||this;R.isCompact=!1;return R};
_.O(sN,_.W);_.RR.Object.defineProperties(sN.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var R,y;return((y=_.e((R=this.data)==null?void 0:R.endpoint,_.tc))==null?void 0:y.target)==="TARGET_NEW_WINDOW"}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],sN.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],sN.prototype,"componentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],sN.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],sN.prototype,"isCompact",void 0);_.A([_.G("isCompact"),_.p("design:type",Number),_.p("design:paramtypes",[])],sN.prototype,"thumbnailWidth",null);
_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],sN.prototype,"openNewWindow",null);_.A([_.q({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],sN);
_.m(sN,"ytd-media-lockup-renderer",function(){if(QDV!==void 0)return QDV;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return QDV=R},{mode:1});var jD8;var zb=function(){return _.W.apply(this,arguments)||this};
_.O(zb,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],zb.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],zb.prototype,"componentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],zb.prototype,"data",void 0);_.A([_.q({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],zb);
_.m(zb,"ytd-structured-description-channel-lockup-renderer",function(){if(jD8!==void 0)return jD8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return jD8=R},{mode:1});var M95;var gy=function(){var R=_.W.apply(this,arguments)||this;R.isCompact=!1;R.collections=_.f("web_modern_collections_v2");R.collectionsStackColor=_.f("modernize_structured_description_playlist_lockups_v2");return R};
_.O(gy,_.W);gy.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:_.f("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.RR.Object.defineProperties(gy.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,y,u,v,Q,M;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(R=this.data)==null?void 0:(y=R.thumbnail)==null?void 0:y.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(u=this.data)==null?void 0:(v=u.thumbnail)==null?void 0:v.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(Q=this.data)==null?void 0:(M=Q.thumbnail)==
null?void 0:M.vibrantColorPalette:void 0}}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],gy.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],gy.prototype,"componentBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],gy.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],gy.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],gy.prototype,"showSidePanelThumbnailOverlay",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],gy.prototype,"isCompact",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],gy.prototype,"collections",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],gy.prototype,"collectionsStackColor",void 0);_.A([_.G("data"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],gy.prototype,"twoLineTitle",null);
_.A([_.G("data","collections","collectionsStackColor"),_.p("design:type",Object),_.p("design:paramtypes",[])],gy.prototype,"collectionStack",null);_.A([_.q({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],gy);
_.m(gy,"ytd-structured-description-playlist-lockup-renderer",function(){if(M95!==void 0)return M95;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return M95=R},{mode:1});var JBY;var CC=function(){return _.W.apply(this,arguments)||this};
_.O(CC,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],CC.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],CC.prototype,"componentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],CC.prototype,"data",void 0);_.A([_.q({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],CC);
_.m(CC,"ytd-structured-description-video-lockup-renderer",function(){if(JBY!==void 0)return JBY;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return JBY=R},{mode:2});var RY=function(){return _.W.apply(this,arguments)||this};
_.O(RY,_.W);
RY.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],RY.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],RY.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],RY.prototype,"data",void 0);_.A([_.q({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],RY);
_.m(RY,"ytd-compact-infocard-renderer",function(){if(vbL!==void 0)return vbL;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return vbL=R},{mode:1});var V9L;var ue=function(){var R=_.W.apply(this,arguments)||this;R.useModernCollectionsV2=_.f("web_modern_collections_v2");return R};
_.O(ue,_.W);ue.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.RR.Object.defineProperties(ue.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.f("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.f("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.f("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ue.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],ue.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.c4),_.p("design:type",Object)],ue.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],ue.prototype,"ytdReduxBehavior",void 0);_.A([_.r({selector:_.aC}),_.p("design:type",Object)],ue.prototype,"isGridViewEnabled",void 0);
_.A([_.G("isGridViewEnabled"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ue.prototype,"watchFeedBigThumbs",null);_.A([_.G("isGridViewEnabled","data"),_.r({reflectToAttribute:!0,value:"168"}),_.p("design:type",String),_.p("design:paramtypes",[])],ue.prototype,"thumbnailWidth",null);_.A([_.G("isGridViewEnabled","data"),_.r({reflectToAttribute:!0,value:"94"}),_.p("design:type",String),_.p("design:paramtypes",[])],ue.prototype,"customThumbnailSize",null);
_.A([_.r(),_.p("design:type",Object)],ue.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ue.prototype,"useModernCollectionsV2",void 0);_.A([_.q({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],ue);
_.m(ue,"ytd-compact-playlist-renderer",function(){if(V9L!==void 0)return V9L;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return V9L=R},{mode:1});var iPV;var vw=function(){var R=_.W.apply(this,arguments)||this;R.darkerDarkTheme=_.f("web_darker_dark_theme");R.roundedContainer=!0;R.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return R};
_.O(vw,_.W);_.J=vw.prototype;_.J.attached=function(){this.requestElementsPerRow()};
_.J.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"}}}};
_.J.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.J.computeViewStyle=function(R){return R.style?R.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.J.onUpdateElementsPerRowAction=function(R){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&R===1};
_.J.requestElementsPerRow=function(){_.Ko(this.hostElement,"yt-request-elements-per-row")};
vw.prototype.dataChanged=vw.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],vw.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],vw.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.c4),_.p("design:type",Object)],vw.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],vw.prototype,"actionHandlerBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],vw.prototype,"data",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],vw.prototype,"hideThumbnail",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.p("design:type",String)],vw.prototype,"viewStyle",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],vw.prototype,"darkerDarkTheme",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],vw.prototype,"roundedContainer",void 0);
_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vw.prototype,"dataChanged",null);_.A([_.q({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],vw);
_.m(vw,"ytd-compact-promoted-item-renderer",function(){if(iPV!==void 0)return iPV;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return iPV=R},{mode:1});var K1g;var Qt=function(){var R=_.W.apply(this,arguments)||this;R.collections=_.f("web_modern_collections_v2");return R};
_.O(Qt,_.W);Qt.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
Qt.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
Qt.prototype.onYtNavigate=function(R,y){var u=this;if(y.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",y)){var v=this.get("watchEndpoint.videoId",y.endpoint),Q=_.h_(this.hostElement,"yt-get-current-video-id-action")[0];_.f("kevlar_mix_handle_first_endpoint_different")&&v&&Q&&v!==Q||(R.stopPropagation(),_.hF().getPlayerPromise().then(function(M){if(M.getPlayerState()===0&&u.data.secondaryNavigationEndpoint)var K=u.data.secondaryNavigationEndpoint;else{K=
Object.assign({},y.endpoint);var h=_.e(K.commandMetadata,_.QL);h&&(M=Math.floor(M.getCurrentTime()),h.url=_.LG(h.url,{t:M}),!_.f("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(h=_.e(K,_.zM)))&&(h.startTimeSeconds=M)}_.Ko(u.hostElement,"yt-navigate",{endpoint:K})}))}};
_.RR.Object.defineProperties(Qt.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.f("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.f("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var R,y,u,v,Q,M;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(R=this.data)==null?void 0:(y=R.thumbnail)==null?void 0:y.sampledThumbnailColor,vibrantColorPalette:(u=this.data)==null?void 0:(v=u.thumbnail)==null?void 0:v.vibrantColorPalette,darkColorPalette:(Q=this.data)==null?void 0:(M=Q.thumbnail)==null?void 0:M.darkColorPalette,experimentEnabled:this.collections}}}});
Qt.prototype.onYtNavigate=Qt.prototype.onYtNavigate;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Qt.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.ZL.YtEndpointBehavior),_.p("design:type",Object)],Qt.prototype,"ytEndpointBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Qt.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.c4),_.p("design:type",Object)],Qt.prototype,"ytdDismissibleItemBehavior",void 0);
_.A([_.n(_.gT),_.p("design:type",Object)],Qt.prototype,"ytdLockupBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],Qt.prototype,"ytdReduxBehavior",void 0);_.A([_.r({selector:_.aC}),_.p("design:type",Object)],Qt.prototype,"isGridViewEnabled",void 0);_.A([_.G("isGridViewEnabled"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Qt.prototype,"watchFeedBigThumbs",null);
_.A([_.G("isGridViewEnabled"),_.r({reflectToAttribute:!0}),_.p("design:type",String),_.p("design:paramtypes",[])],Qt.prototype,"thumbnailWidth",null);_.A([_.r(),_.p("design:type",Object)],Qt.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Qt.prototype,"collections",void 0);_.A([_.G("data","collections"),_.p("design:type",Object),_.p("design:paramtypes",[])],Qt.prototype,"collectionStack",null);
_.A([_.fu("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],Qt.prototype,"onYtNavigate",null);_.A([_.q({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],Qt);
_.m(Qt,"ytd-compact-radio-renderer",function(){if(K1g!==void 0)return K1g;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return K1g=R},{mode:1});var IJg;var jO=function(){return _.W.apply(this,arguments)||this};
_.O(jO,_.W);jO.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
jO.prototype.computeRendererStyle=function(R){return R.style?R.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.A([_.r(),_.p("design:type",Object)],jO.prototype,"data",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],jO.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],jO.prototype,"rendererBehavior",void 0);_.A([_.r({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.p("design:type",String)],jO.prototype,"rendererStyle",void 0);_.A([_.q({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],jO);
_.m(jO,"ytd-compact-text-promo-renderer",function(){if(IJg!==void 0)return IJg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return IJg=R},{mode:1});var h0K;var Mh=function(){var R=_.W.apply(this,arguments)||this;R.isShortsStyle=!1;return R};
_.O(Mh,_.W);_.J=Mh.prototype;_.J.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"}}}};
_.J.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.Ko(this.hostElement,"yt-disable-lockup-interaction"):_.Ko(this.hostElement,"yt-enable-lockup-interaction"))};
_.J.isMetaBlockEmpty=function(R){return!R||!R.longBylineText&&!R.shortBylineText&&!R.shortViewCountText&&!R.viewCountText};
_.J.computeHasOneLineTitle=function(R){return this.forceOneLineTitle||!(R==null||!R.buttons)};
_.J.computeDisableInteraction=function(){var R;return!((R=this.data)==null?0:R.navigationEndpoint)};
_.J.hasSingularTopStandaloneBadge=function(){var R;return!((R=this.data)==null||!R.topStandaloneBadge)};
_.RR.Object.defineProperties(Mh.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.f("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.f("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":""}}});
Mh.prototype.disableInteractionChanged=Mh.prototype.disableInteractionChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Mh.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Mh.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.c4),_.p("design:type",Object)],Mh.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.n(_.gT),_.p("design:type",Object)],Mh.prototype,"ytdLockupBehavior",void 0);
_.A([_.n(_.p6),_.p("design:type",Object)],Mh.prototype,"ytdReduxBehavior",void 0);_.A([_.r({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.p("design:type",Boolean)],Mh.prototype,"metaBlockEmpty",void 0);_.A([_.r({selector:_.aC}),_.p("design:type",Object)],Mh.prototype,"isGridViewEnabled",void 0);_.A([_.G("isGridViewEnabled"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Mh.prototype,"watchFeedBigThumbs",null);
_.A([_.G("isGridViewEnabled"),_.r({reflectToAttribute:!0}),_.p("design:type",String),_.p("design:paramtypes",[])],Mh.prototype,"thumbnailWidth",null);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Mh.prototype,"isShortsStyle",void 0);_.A([_.r(),_.p("design:type",Object)],Mh.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.p("design:type",Boolean)],Mh.prototype,"hasOneLineTitle",void 0);
_.A([_.r(),_.p("design:type",Boolean)],Mh.prototype,"hideThumbnail",void 0);_.A([_.r(),_.p("design:type",Boolean)],Mh.prototype,"forceOneLineTitle",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.p("design:type",Boolean)],Mh.prototype,"disableInteraction",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Mh.prototype,"musicMetadataVideoLockup",void 0);
_.A([_.e0("disableInteraction"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Mh.prototype,"disableInteractionChanged",null);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Mh.prototype,"shouldShowTopBadges",null);_.A([_.G("data"),_.p("design:type",Array),_.p("design:paramtypes",[])],Mh.prototype,"topBadges",null);
_.A([_.G("shouldShowTopBadges","data"),_.p("design:type",Array),_.p("design:paramtypes",[])],Mh.prototype,"inlineMetadataBadges",null);_.A([_.G("shouldShowTopBadges"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Mh.prototype,"shouldShowBadgesBelowMetadata",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Mh.prototype,"compactTitleClass",null);_.A([_.q({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],Mh);
_.m(Mh,"ytd-compact-video-renderer",function(){if(h0K!==void 0)return h0K;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return h0K=R},{mode:_.TN("kevlar_poly_si_batch_j067")?1:2});var bPV;_.Dl("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var Ju=function(){return _.W.apply(this,arguments)||this};
_.O(Ju,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Ju.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Ju.prototype,"data",void 0);_.A([_.q({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],Ju);
_.m(Ju,"ytd-counterfactual-renderer",function(){if(bPV!==void 0)return bPV;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return bPV=R},{mode:1});var F1i;var Vt=function(){var R=_.W.apply(this,arguments)||this;R.hidden=!1;return R};
_.O(Vt,_.W);Vt.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.ua().resolve(_.jX).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
Vt.prototype.computeHidden=function(R){return!!R};
_.RR.Object.defineProperties(Vt.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Vt.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Vt.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.p("design:type",Object)],Vt.prototype,"hidden",void 0);_.A([_.G("data.label"),_.p("design:type",String),_.p("design:paramtypes",[])],Vt.prototype,"label",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Vt.prototype,"value",null);
_.A([_.q({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],Vt);
_.m(Vt,"ytd-dropdown-item-renderer",function(){if(F1i!==void 0)return F1i;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return F1i=R},{mode:1});var wFK;var NiV;var ie=function(){return _.W.apply(this,arguments)||this};
_.O(ie,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ie.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ie.prototype,"data",void 0);_.A([_.r({computed:"getSimpleString(data.label)"}),_.p("design:type",String)],ie.prototype,"label",void 0);_.A([_.q({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],ie);
_.m(ie,"ytd-navigation-dropdown-item-renderer",function(){if(NiV!==void 0)return NiV;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return NiV=R},{mode:1});var K5=function(){var R=_.W.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};
_.O(K5,_.W);_.J=K5.prototype;_.J.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"}}}};
_.J.open=function(){this.inputEl.open()};
_.J.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.J.dataChanged=function(){this.reset()};
_.J.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.CQ("value-changed",this.value))};
_.J.stopPropagation=function(R){R.stopPropagation()};
_.J.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")}};
_.J.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var R=0,y=this.data.entries.length;R<y;R++){var u=this.data.entries[R],v;for(v in u)if(u.hasOwnProperty(v)){var Q=u[v];if("isSelected"in Q&&Q.isSelected)return"stringValue"in Q?Q.stringValue||"":"int32Value"in Q?Q.int32Value||0:0}}return null};
_.J.updateValueFromBinding=function(R){this.value=R.detail.value};
_.RR.Object.defineProperties(K5.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,y=this.data.entries.length;R<y;R++){var u=this.data.entries[R],v;for(v in u)if(u.hasOwnProperty(v)){var Q=u[v];if("isSelected"in Q&&Q.isSelected&&"label"in Q)return this.ytRendererBehavior.getSimpleString(Q.label)}}return null}}});
K5.prototype.autoSizeLabel=K5.prototype.autoSizeLabel;K5.prototype.stopPropagation=K5.prototype.stopPropagation;K5.prototype.valueChangedForBinding=K5.prototype.valueChangedForBinding;K5.prototype.dataChanged=K5.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],K5.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],K5.prototype,"ytRendererStamperBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],K5.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],K5.prototype,"disabled",void 0);_.A([_.r(),_.p("design:type",Object)],K5.prototype,"value",void 0);_.A([_.r(),_.p("design:type",Object)],K5.prototype,"noLabelFloat",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],K5.prototype,"noUnderline",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],K5.prototype,"theme",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],K5.prototype,"usePrimaryColor",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],K5.prototype,"hasBackground",void 0);_.A([_.r(),_.p("design:type",Object)],K5.prototype,"verticalAlign",void 0);_.A([_.r(),_.p("design:type",Object)],K5.prototype,"autosize",void 0);_.A([_.r(),_.p("design:type",Object)],K5.prototype,"minAutosizeWidth",void 0);_.A([_.r(),_.p("design:type",Object)],K5.prototype,"autosizeFont",void 0);
_.A([_.O7("#entries"),_.p("design:type",Object)],K5.prototype,"entries",void 0);_.A([_.O7("#input"),_.p("design:type",Object)],K5.prototype,"inputEl",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],K5.prototype,"dataChanged",null);_.A([_.GJ("value"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],K5.prototype,"valueChangedForBinding",null);
_.A([_.fu("iron-overlay-opened"),_.fu("iron-overlay-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],K5.prototype,"stopPropagation",null);_.A([_.fu("iron-select"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],K5.prototype,"autoSizeLabel",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],K5.prototype,"label",null);
_.A([_.q({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],K5);
_.m(K5,"ytd-dropdown-renderer",function(){if(wFK!==void 0)return wFK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return wFK=R},{mode:1});var Ti8;var IY=function(){var R=_.W.apply(this,arguments)||this;R.isConstrainedList=!1;return R};
_.O(IY,_.W);IY.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"}}}};
IY.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
IY.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
IY.prototype.computeViewAllHidden=function(R,y){return R||!y.viewAllEndpoint};
IY.prototype.fillRestIfNoShowMore=IY.prototype.fillRestIfNoShowMore;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],IY.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],IY.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.K_.YtLazyListBehavior),_.p("design:type",Object)],IY.prototype,"ytLazyListBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],IY.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],IY.prototype,"isConstrainedList",void 0);_.A([_.GJ("data","canShowMore"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],IY.prototype,"fillRestIfNoShowMore",null);_.A([_.q({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],IY);
_.m(IY,"ytd-expanded-shelf-contents-renderer",function(){if(Ti8!==void 0)return Ti8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Ti8=R},{mode:_.TN("kevlar_poly_si_batch_j025")?1:2});var obT;var hu=function(){return _.W.apply(this,arguments)||this};
_.O(hu,_.W);hu.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],hu.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],hu.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],hu.prototype,"data",void 0);_.A([_.q({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],hu);
_.m(hu,"ytd-feed-channel-filter-header-renderer",function(){if(obT!==void 0)return obT;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return obT=R},{mode:1});var xNY;var Big;var fJg;var be=function(){return _.W.apply(this,arguments)||this};
_.O(be,_.W);_.J=be.prototype;_.J.onClick=function(R){var y,u=(y=this.data)==null?void 0:y.sectionEndpoint;!_.JF(_.u8(R),this.hostElement,["A".toString()])&&u&&_.Ko(this.hostElement,"yt-navigate",{endpoint:u})};
_.J.computeHasSectionEndpoint=function(R){return(R==null?void 0:R.sectionEndpoint)!==void 0};
_.J.computeShowHeaderAsLink=function(R){return(R==null?void 0:R.header)!==void 0&&(R==null?void 0:R.sectionEndpoint)!==void 0};
_.J.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};
_.J.getHeaderAsLinkClass=function(R){var y=[],u;(R==null?0:(u=R.headerIcon)==null?0:u.iconType)&&y.push("header-link-active");return y.join(" ")};
_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],be.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],be.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],be.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],be.prototype,"data",void 0);
_.A([_.r({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],be.prototype,"hasSectionEndpoint",void 0);_.A([_.r({computed:"computeShowHeaderAsLink(data)"}),_.p("design:type",Boolean)],be.prototype,"showHeaderAsLink",void 0);_.A([_.r({computed:"computeShowSubheaderAsLink(data)"}),_.p("design:type",Boolean)],be.prototype,"showSubheaderAsLink",void 0);_.A([_.q({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],be);
_.m(be,"ytd-medical-panel-section-renderer",function(){if(fJg!==void 0)return fJg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return fJg=R},{mode:1});var FF=function(){var R=_.W.apply(this,arguments)||this;R.isExpanded=!1;R.roundedContainer=!0;R.skipRoundingTop=!1;R.toggleExpandableSection=function(){R.isExpanded=!R.isExpanded};
return R};
_.O(FF,_.W);
FF.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]]"}}}}}};
FF.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
FF.prototype.dataChanged=FF.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],FF.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],FF.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],FF.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],FF.prototype,"isExpanded",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],FF.prototype,"roundedContainer",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],FF.prototype,"skipRoundingTop",void 0);_.A([_.r(),_.p("design:type",Object)],FF.prototype,"toggleExpandableSection",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FF.prototype,"dataChanged",null);_.A([_.q({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],FF);
_.m(FF,"ytd-medical-panel-content-renderer",function(){if(Big!==void 0)return Big;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return Big=R},{mode:1});_.Dl("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var wM=function(){var R=_.W.apply(this,arguments)||this;R.roundedContainer=!0;R.amsterdamEnabled=_.f("enable_desktop_amsterdam_info_panels");R.hasTitle=!1;R.linkIcon="OPEN_IN_NEW";R.isDismissed=!1;return R};
_.O(wM,_.W);
wM.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"}}}};
wM.prototype.computeHasTitle=function(R){return!(R==null||!R.title)};
wM.prototype.onClick=function(R){var y,u=(y=this.data)==null?void 0:y.headerEndpoint;!_.JF(_.u8(R),this.hostElement,["BUTTON".toString()])&&u&&this.ytComponentBehavior.resolveCommand(u)};
_.RR.Object.defineProperties(wM.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,y;return((R=this.data)==null?void 0:R.disableBottomDivider)||!((y=this.data)==null?0:y.title)}}});
_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],wM.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],wM.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],wM.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],wM.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],wM.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],wM.prototype,"roundedContainer",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],wM.prototype,"amsterdamEnabled",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.p("design:type",Object)],wM.prototype,"hasTitle",void 0);
_.A([_.r({type:_.f("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.G("data.background"),_.p("design:type",Object),_.p("design:paramtypes",[])],wM.prototype,"background",null);_.A([_.r({type:_.f("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.G("data.titleStyle"),_.p("design:type",Object),_.p("design:paramtypes",[])],wM.prototype,"titleStyle",null);
_.A([_.r({type:_.f("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.G("data.titleStyle"),_.p("design:type",Object),_.p("design:paramtypes",[])],wM.prototype,"showLinkIcon",null);_.A([_.r(),_.p("design:type",String)],wM.prototype,"linkIcon",void 0);_.A([_.r({type:_.f("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],wM.prototype,"hideDivider",null);
_.A([_.r({selectorArgs:["data.dismissStateEntityKey"],selector:function(R,y){R=_.TI(R.entities,"dismissState",y);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"}}),
_.p("design:type",Object)],wM.prototype,"isDismissed",void 0);_.A([_.q({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],wM);
_.m(wM,"ytd-info-panel-container-renderer",function(){if(xNY!==void 0)return xNY;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return xNY=R},{mode:1});var e0b;_.Dl("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var Nh=function(){var R=_.W.apply(this,arguments)||this;R.modernTypography=_.f("web_modern_typography");return R};
_.O(Nh,_.W);Nh.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Nh.prototype.computeStyle=function(R){return R?R:""};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Nh.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Nh.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Nh.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.p("design:type",String)],Nh.prototype,"titleStyle",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Nh.prototype,"modernTypography",void 0);_.A([_.q({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],Nh);
_.m(Nh,"ytd-item-section-header-renderer",function(){if(e0b!==void 0)return e0b;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return e0b=R},{mode:1});var lJ8;var OP8,ZPc=function(){return OP8!==void 0?OP8:OP8=document.createElement("template")};
document.head.appendChild(ZPc().content);var HP5;_.TU=new _.Jx("VOTING_ANIMATION_CONTROLLER_TOKEN");var GAV=_.Jd(function(R){var y=R.data;var u=_.sh("div"),v=_.sh("div");R=_.V(_.In("VOTE_STATUS_NONE",void 0,"FVF7mc"));var Q=R.next().value,M=R.next().value,K=_.nA(tG8,function(){var B;return(B=y())==null?void 0:B.entityKey}),h=_.f("web_enable_voting_animation")||_.f("enable_music_web_cairo_voting_animation");
_.rB(function(){var B;((B=y().initialState)==null?0:B.status)&&M(y().initialState.status)});
var b=function(){var B,l,Z=(l=(B=y().initialState)==null?void 0:B.votes)!=null?l:0,P;B=(P=y().initialState)==null?void 0:P.status;return B==="VOTE_STATUS_UPVOTED"?Z-1:B==="VOTE_STATUS_DOWNVOTED"?Z+1:Z},N=function(){return Q()==="VOTE_STATUS_UPVOTED"?b()+1:Q()==="VOTE_STATUS_DOWNVOTED"?b()-1:b()},T=function(B){var l=B?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
M(l);var Z=N(),P=_.ua().resolve(_.yN(_.TU)),k=K();k&&(B&&(k==null?0:k.upvoteDefaultButtonOnTap)?_.zN(k.upvoteDefaultButtonOnTap,{form:{element:u.value},disableClickTracking:!0}):(k==null?0:k.upvoteToggledButtonOnTap)&&_.zN(k.upvoteToggledButtonOnTap,{form:{element:u.value},disableClickTracking:!0}));var E;B=(E=k==null?void 0:k.enableOptimisticReordering)!=null?E:y().enableOptimisticReordering;h&&P&&y().itemId&&B&&nbT(P,y().itemId,Z,l)},x=function(B){var l=B?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
M(l);var Z=N(),P=_.ua().resolve(_.yN(_.TU)),k=K();k&&(B&&(k==null?0:k.downvoteDefaultButtonOnTap)?_.zN(k.downvoteDefaultButtonOnTap,{form:{element:v.value},disableClickTracking:!0}):(k==null?0:k.downvoteToggledButtonOnTap)&&_.zN(k.downvoteToggledButtonOnTap,{form:{element:v.value},disableClickTracking:!0}));var E;B=(E=k==null?void 0:k.enableOptimisticReordering)!=null?E:y().enableOptimisticReordering;h&&P&&y().itemId&&B&&nbT(P,y().itemId,Z,l)};
R={};R=_.Oy("ytVotingViewModelVoteCount",(R.ytVotingViewModelVoteCountDisabled=function(){return y().isDisabled},R));
return _.F("voting-view-model",{class:"ytVotingViewModelHost"},_.F("div",{el:u},_.F(_.mk,{data:function(){var B=_.e(y().upvoteButton,_.EC);return{toggleButtonViewModel:Object.assign({},B,{isToggled:Q()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(B){return _.F(_.$1,{data:B.data,
onToggle:T})}})),_.F("div",{class:R},function(){var B,l,Z;
return Q()==="VOTE_STATUS_UPVOTED"?(B=y().initialState)==null?void 0:B.compactVotesUpvoted:Q()==="VOTE_STATUS_DOWNVOTED"?(l=y().initialState)==null?void 0:l.compactVotesDownvoted:(Z=y().initialState)==null?void 0:Z.compactVotes}),_.F("div",{el:v},_.F(_.mk,{data:function(){var B=_.e(y().downvoteButton,_.EC);
return{toggleButtonViewModel:Object.assign({},B,{isToggled:Q()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(B){return _.F(_.$1,{data:B.data,
onToggle:x})}})))},"Sb");_.h6(_.Jd(function(R){var y=R.data;return _.F("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.F("div",{class:_.Oy("ytEngagementBarViewModelEngagementBarWrapper",R.className)},_.F(_.mk,{data:function(){return y().actions}},{votingViewModel:GAV})))},"Tb"),"engagement-bar-view-model",{props:{data:_.vR,
className:_.vR}});var oY=function(){var R=_.W.apply(this,arguments)||this;R.playlistVotingAnimationEnabled=_.f("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};
_.O(oY,_.W);_.J=oY.prototype;_.J.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"}}}};
_.J.canReorderChanged=function(){this.persistentDragHandle=_.f("kevlar_playlist_drag_handles")&&this.canReorder};
_.J.onDrag=function(){if(this.thumbnail){var R=_.hw(this.thumbnail).querySelector("yt-image");R&&(R.shouldRenderLazy=!1)}};
_.J.onMenuOverlayChanged=function(R,y){this.menuOpened=y};
_.J.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.J.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.J.onContentsTap=function(R){var y,u=(y=this.data)==null?void 0:y.serviceEndpoints;if(u&&u.length===1&&_.e(u[0],grL)&&!_.JF(_.u8(R),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(u[0]);else{var v;(y=(v=this.data)==null?void 0:v.navigationEndpoint)&&_.f("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?rBg(_.ua().resolve(_.cZ),y):(_.Hr().playlistSuggestionsShelfActivation=
!0,_.PPw(_.ua().resolve(_.cZ),y)):y&&!_.JF(_.u8(R),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.f("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.Ko(this.hostElement,"yt-navigate",{endpoint:y}):this.ytComponentBehavior.resolveCommand(y))}};
_.J.computeStyle=function(R){return R?R.toLowerCase().replace(/_/g,"-"):""};
_.J.computeThumbnailWidth=function(R){return R==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.J.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=dLz(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))}};
_.J.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.J.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.J.dataChanged=function(){if(this.data){var R,y,u,v=((R=this.downloadRenderData)==null?void 0:R.badges)&&((y=this.downloadRenderData)==null?void 0:y.badges)!==((u=this.data)==null?void 0:u.badges),Q,M,K;R=((Q=this.downloadRenderData)==null?void 0:Q.thumbnailOverlays)&&((M=this.downloadRenderData)==null?void 0:M.thumbnailOverlays)!==((K=this.data)==null?void 0:K.thumbnailOverlays);(!this.downloadRenderData||v||R)&&this.downloadStateChanged()}};
_.J.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var R,y,u=(R=this.data.menu)==null?void 0:(y=R.menuRenderer)==null?void 0:y.items;if(u)for(R=_.V(u),y=R.next();!y.done;y=R.next())if(y=y.value,u=void 0,_.e((u=y.menuServiceItemRenderer)==null?void 0:u.serviceEndpoint,_.pt)){var v=u=void 0,Q=void 0;y=(u=y)==null?void 0:(v=u.menuServiceItemRenderer)==null?void 0:(Q=v.serviceEndpoint)==null?void 0:Q.playlistEditEndpoint;Q=v=void 0;if(u=(v=y)==null?void 0:(Q=v.actions)==null?void 0:
Q[0])v=void 0,u.setVideoId=(v=this.data)==null?void 0:v.setVideoId;Q=v=u=void 0;if(y=(u=y)==null?void 0:(v=u.clientActions)==null?void 0:(Q=v[0])==null?void 0:Q.playlistRemoveVideosAction)u=void 0,y.setVideoIds=[(u=this.data)==null?void 0:u.setVideoId]}}};
_.RR.Object.defineProperties(oY.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
oY.prototype.setVideoIdChanged=oY.prototype.setVideoIdChanged;oY.prototype.dataChanged=oY.prototype.dataChanged;oY.prototype.downloadStateChanged=oY.prototype.downloadStateChanged;oY.prototype.onMenuOverlayChanged=oY.prototype.onMenuOverlayChanged;oY.prototype.canReorderChanged=oY.prototype.canReorderChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],oY.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],oY.prototype,"ytdReduxBehavior",void 0);
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],oY.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.gT),_.p("design:type",Object)],oY.prototype,"ytdLockupBehavior",void 0);_.A([_.n(_.c4),_.p("design:type",Object)],oY.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],oY.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],oY.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],oY.prototype,"canReorder",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],oY.prototype,"menuOpened",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],oY.prototype,"handleIsHovered",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],oY.prototype,"persistentDragHandle",void 0);_.A([_.r(),_.p("design:type",Object)],oY.prototype,"downloadRenderData",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.p("design:type",String)],oY.prototype,"styleType",void 0);_.A([_.r({computed:"computeThumbnailWidth(data.style)"}),_.p("design:type",Number)],oY.prototype,"thumbnailWidth",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],oY.prototype,"isDownloads",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],oY.prototype,"playlistVotingAnimationEnabled",void 0);
_.A([_.r({selector:cd,selectorArgs:["data.videoId"]}),_.p("design:type",Object)],oY.prototype,"downloadProgress",void 0);_.A([_.r(),_.p("design:type",Number)],oY.prototype,"relativeDateReference",void 0);_.A([_.r({selector:_.pz,selectorArgs:["data.videoId"]}),_.p("design:type",Object)],oY.prototype,"transferState",void 0);_.A([_.r({selector:uwT,selectorArgs:["data.videoId"]}),_.p("design:type",Object)],oY.prototype,"downloadState",void 0);
_.A([_.r({selector:Asv,selectorArgs:["data.videoId"]}),_.p("design:type",Object)],oY.prototype,"offlinePolicyAction",void 0);_.A([_.r({selector:DiO,selectorArgs:["data.videoId"]}),_.p("design:type",Object)],oY.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.A([_.r({selector:t2U,selectorArgs:["data.videoId"]}),_.p("design:type",Object)],oY.prototype,"entityInfo",void 0);_.A([_.r({selector:_.X9}),_.p("design:type",Boolean)],oY.prototype,"miniplayerIsActive",void 0);
_.A([_.G("data"),_.p("design:type",String),_.p("design:paramtypes",[])],oY.prototype,"playlistVideoId",null);_.A([_.O7("#thumbnail"),_.p("design:type",Object)],oY.prototype,"thumbnail",void 0);_.A([_.GJ("canReorder"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],oY.prototype,"canReorderChanged",null);
_.A([_.fu("yt-menu-overlay-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Boolean]),_.p("design:returntype")],oY.prototype,"onMenuOverlayChanged",null);_.A([_.GJ("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],oY.prototype,"downloadStateChanged",null);
_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],oY.prototype,"dataChanged",null);_.A([_.GJ("data.setVideoId"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],oY.prototype,"setVideoIdChanged",null);_.A([_.q({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],oY);
_.m(oY,"ytd-playlist-video-renderer",function(){if(HP5!==void 0)return HP5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);R.content.insertBefore(ZPc().content.cloneNode(!0),R.content.firstChild);return HP5=R},{mode:1});var W1L;var x5=function(){return _.W.apply(this,arguments)||this};
_.O(x5,_.W);_.A([_.r(),_.p("design:type",Object)],x5.prototype,"data",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],x5.prototype,"rendererBehavior",void 0);_.A([_.q({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],x5);
_.m(x5,"ytd-premium-browse-footer-renderer",function(){if(W1L!==void 0)return W1L;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return W1L=R},{mode:1});var dN5;var Bw=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return R};
_.O(Bw,_.W);_.J=Bw.prototype;_.J.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.J.handleDarkModeToggledAction=function(R){this.isDarkTheme=R};
_.J.computeHeaderLogoThumbnail=function(R,y){if(R)return y?R.darkLogo:R.lightLogo};
_.J.computeHeaderLogoHeight=function(R,y){var u,v,Q;return(R=(u=this.computeHeaderLogoThumbnail(R,y))==null?void 0:(v=u.thumbnails)==null?void 0:(Q=v[0])==null?void 0:Q.height)&&R%31===0?"31":"24"};
_.J.computeHeaderLogoMarginBottom=function(R,y){return this.computeHeaderLogoHeight(R,y)==="24"?"0":"-7"};
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Bw.prototype,"actionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Bw.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Bw.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Boolean)],Bw.prototype,"isDarkTheme",void 0);_.A([_.r({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.p("design:type",Object)],Bw.prototype,"themeLogo",void 0);
_.A([_.r({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.p("design:type",String)],Bw.prototype,"logoHeight",void 0);_.A([_.r({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.p("design:type",String)],Bw.prototype,"logoMarginBottom",void 0);_.A([_.q({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],Bw);
_.m(Bw,"ytd-primetime-promo-header-renderer",function(){if(dN5!==void 0)return dN5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return dN5=R},{mode:1});var UN5;var Eb8=_.Jd(function(R){var y=_.nh(function(Q){var M;(M=R.onClick)==null||M.call(R,Q)}),u={},v={};
return _.F("yt-shelf-header-layout",{class:_.Oy("shelf-header-layout-wiz",(u["shelf-header-layout-wiz--disable-horizontal-padding"]=R.disableHorizontalPadding,u["shelf-header-layout-wiz--disable-vertical-padding"]=R.disableVerticalPadding,u["shelf-header-layout-wiz--responsive"]=R.useResponsiveLayout,u["shelf-header-layout-wiz--narrow"]=function(){var Q,M;return((Q=R.useResponsiveLayout)==null?void 0:Q.call(R))&&((M=R.forceSmallLayout)==null?void 0:M.call(R))},u["shelf-header-layout-wiz--is-overlay"]=
R.isOverlay,u["shelf-header-layout-wiz--tappable"]=!!R.onClick,u)),
"on:click":y,tabindex:function(){var Q;return((Q=R.isInteractive)==null?0:Q.call(R))?0:void 0}},_.F(_.w,{cond:R.leadingIcon,
then:function(Q){return _.F("div",{class:"shelf-header-layout-wiz__leading-icon"},_.F(_.W_,{icon:Q}))},
else:function(){return _.F(_.w,{cond:R.hasLeadingImage,then:function(){var Q,M={};return _.F("div",{class:_.Oy("shelf-header-layout-wiz__leading-image",(M["shelf-header-layout-wiz__leading-image--circular-image"]=R.circularImage,M))},(Q=R.leadingImage)==null?void 0:Q.call(R))}})}}),_.F("div",{class:"shelf-header-layout-wiz__label-container"},_.F(_.w,{cond:R.hasSuperlabel,
then:function(){var Q;return _.F("div",{class:"shelf-header-layout-wiz__superlabel"},(Q=R.superlabel)==null?void 0:Q.call(R))}}),_.F("div",{class:"shelf-header-layout-wiz__title-row"},_.F(kAg,{text:R.title,
className:_.Oy("shelf-header-layout-wiz__title",(v["shelf-header-layout-wiz__title--small-title"]=R.forceSmallLayout,v)),tagLevel:R.tagLevel}),_.F(_.w,{cond:R.hasDetail,then:function(){var Q;return _.F("div",{class:"shelf-header-layout-wiz__detail"},(Q=R.detail)==null?void 0:Q.call(R))}})),_.F(_.w,{cond:R.hasSublabel,
then:function(){var Q;return _.F("div",{class:"shelf-header-layout-wiz__sublabel"},(Q=R.sublabel)==null?void 0:Q.call(R))}})),_.F(_.w,{cond:R.hasTrailingActions,
then:function(){var Q;return _.F("div",{class:"shelf-header-layout-wiz__trailing-actions"},(Q=R.trailingActions)==null?void 0:Q.call(R))}}))},"Ub");
Eb8.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var kAg=_.Jd(function(R){var y=R.text;var u=R.className;var v=R.tagLevel;return _.F(_.Z6,null,_.F(_.lr,{when:function(){return(v==null?void 0:v())===0}},function(){return _.F("h2",{class:u},y())}),_.F(_.lr,{when:function(){return(v==null?void 0:v())===1}},function(){return _.F("h3",{class:u},y())}),_.F(_.lr,{when:function(){return(v==null?void 0:v())===2}},function(){return _.F("h4",{class:u},y())}),_.F(_.OB,null,function(){return _.F("h2",{class:u},y())}))},"Vb");var XFY,$Nc,q_8;_.f5=_.Jd(function(R){var y=R.className;var u=R.data;var v=R.disableHorizontalPadding;var Q=R.disableVerticalPadding;var M=R.forceSmallLayout;var K=R.useResponsiveLayout;R=R.isOverlay;return _.F("yt-section-header-view-model",{class:_.Oy("ytSectionHeaderViewModelHost",y),style:_.P_({"background-color":function(){return c1L(u().backgroundColor)?_.Sq(c1L(u().backgroundColor)):void 0}})},_.F(Eb8,{hasDetail:!1,
title:function(){return _.F(_.QM,{text:function(){return u().headline}})},
hasTitle:!0,sublabel:function(){return _.F($Nc,{data:u})},
hasSublabel:function(){return!!u().sublabel||!!u().bottomBadge},
superlabel:function(){return _.F(q_8,{data:u})},
hasSuperlabel:function(){return!!u().superlabel||!!u().topBadge},
leadingImage:function(){return _.F(XFY,{leadingAccessory:function(){return u().leadingAccessory}})},
hasLeadingImage:function(){return!!u().leadingAccessory},
trailingActions:function(){return _.F(_.mk,{data:function(){return u().trailingActions}},{flexibleActionsViewModel:_.XJ})},
hasTrailingActions:function(){return!!u().trailingActions},
disableHorizontalPadding:v,disableVerticalPadding:Q,forceSmallLayout:M,useResponsiveLayout:K,isOverlay:R,isInteractive:function(){return!!_.a8(u().rendererContext)},
onClick:function(h){if(_.So(u().rendererContext)){var b=_.a8(u().rendererContext);b&&_.Yi(b,{form:{element:h.target,event:h}})}}}))},"Wb");
XFY=_.Jd(function(R){var y=R.leadingAccessory;return _.F(_.vu,null,_.F(_.w,{cond:function(){var u;return(u=y().image)!=null?u:_.yM(y().themedImage)},
then:function(u){return _.F(_.MR,{data:u,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.F(_.w,{cond:function(){return _.e(y().avatar,_.LA)},
then:function(u){return _.F(_.XS,{data:u})}}))},"Xb");
$Nc=_.Jd(function(R){var y=R.data;return _.F(_.vu,null,_.F(_.w,{cond:function(){return _.e(y().bottomBadge,Yxg)},
then:function(u){var v={};return _.F(_.hr,{data:u,class:_.Oy((v.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!u()&&!!y().sublabel},v))})}}),_.F(_.w,{cond:function(){return y().sublabel},
then:function(u){return _.F(_.QM,{text:u})}}))},"Yb");
q_8=_.Jd(function(R){var y=R.data;return _.F(_.vu,null,_.F(_.w,{cond:function(){return _.e(y().topBadge,Yxg)},
then:function(u){var v={};return _.F(_.hr,{data:u,class:_.Oy((v.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!u()&&!!y().superlabel},v))})}}),_.F(_.w,{cond:function(){return y().superlabel},
then:function(u){return _.F(_.QM,{text:u})}}))},"Zb");_.h6(_.f5,"yt-section-header-view-model",{props:{data:_.vR,className:_.vR,disableHorizontalPadding:_.vR,disableVerticalPadding:_.vR,forceSmallLayout:_.vR,useResponsiveLayout:_.vR,isOverlay:_.vR}});_.Dl("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var eO=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return R};
_.O(eO,_.W);_.J=eO.prototype;_.J.attached=function(){this.requestElementsPerRow()};
_.J.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"}}}};
_.J.onDataChange=function(){var R=this;_.gn(this,function(){R.updateItemVisibility()})};
_.J.onUpdateElementsPerRowAction=function(R){R&&this.elementsPerRow!==R&&(this.elementsPerRow=R,this.updateItemVisibility())};
_.J.updateItemVisibility=function(){var R=this;this.data&&this.data.panels&&_.hw(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(y,u){y.hidden=u>R.elementsPerRow-1})};
_.J.requestElementsPerRow=function(){_.Ko(this.hostElement,"yt-request-elements-per-row")};
eO.prototype.onDataChange=eO.prototype.onDataChange;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],eO.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.c4),_.p("design:type",Object)],eO.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],eO.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],eO.prototype,"actionHandlerBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],eO.prototype,"data",void 0);_.A([_.r({value:3}),_.p("design:type",Number)],eO.prototype,"elementsPerRow",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],eO.prototype,"onDataChange",null);_.A([_.q({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],eO);
_.m(eO,"ytd-primetime-promo-renderer",function(){if(UN5!==void 0)return UN5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return UN5=R},{mode:1});var mNg;var le=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return R};
_.O(le,_.W);le.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
le.prototype.handleButtonRefreshAction=function(R){if(R=_.e(R,LnG))this.set("data.button",R.membershipButton),this.notifyPath("data.button")};
_.RR.Object.defineProperties(le.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var R,y;return((R=this.data)==null?void 0:(y=R.avatars)==null?void 0:y.slice(0,8))||[]}}});
_.A([_.r(),_.p("design:type",Object)],le.prototype,"data",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],le.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],le.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],le.prototype,"rendererBehavior",void 0);_.A([_.G("data"),_.p("design:type",Array),_.p("design:paramtypes",[])],le.prototype,"avatars",null);
_.A([_.q({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],le);
_.m(le,"ytd-recognition-shelf-renderer",function(){if(mNg!==void 0)return mNg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return mNg=R},{mode:1});var AB5;var DNw;var OH=function(){var R=_.W.apply(this,arguments)||this;R.modernButtons=_.f("web_modern_buttons");return R};
_.O(OH,_.W);_.J=OH.prototype;
_.J.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]",lockupExperiments:"[[lockupExperiments]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",
showRenderer:"ytd-show-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.J.dataChanged=function(){this.collapsed=!0};
_.J.computeVisibleItems=function(R,y){return R!==void 0&&R.items?y?R.items.slice(0,this.data.collapsedItemCount):R.items:[]};
_.J.computeHideShowMore=function(R,y,u){return R>=y||!u};
_.J.computeHideShowAll=function(R,y,u){return!(R&&y)||u};
_.J.onMoreClick=function(){this.collapsed=!1};
_.RR.Object.defineProperties(OH.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.f("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.VN("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.f("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
OH.prototype.dataChanged=OH.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],OH.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],OH.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],OH.prototype,"data",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],OH.prototype,"isSearch",void 0);
_.A([_.r({computed:"computeVisibleItems(data,collapsed)"}),_.p("design:type",Array)],OH.prototype,"visibleItems",void 0);_.A([_.r({value:!0}),_.p("design:type",Boolean)],OH.prototype,"collapsed",void 0);_.A([_.r({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.p("design:type",Boolean)],OH.prototype,"hideShowMore",void 0);
_.A([_.r({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.p("design:type",Boolean)],OH.prototype,"hideShowAll",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],OH.prototype,"modernButtons",void 0);_.A([_.G("isSearch"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],OH.prototype,"typographyBump",null);
_.A([_.G("isSearch"),_.p("design:type",Object),_.p("design:paramtypes",[])],OH.prototype,"lockupExperiments",null);_.A([_.G("isSearch"),_.p("design:type",String),_.p("design:paramtypes",[])],OH.prototype,"thumbnailWidth",null);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],OH.prototype,"dataChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],OH);
_.m(OH,"ytd-vertical-list-renderer",function(){if(DNw!==void 0)return DNw;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return DNw=R},{mode:1});var pFL=_.RE(["#"]);_.Dl("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var ZZ=function(){var R=_.W.apply(this,arguments)||this;R.isConstrainedList=!1;R.modernTypography=_.f("web_modern_typography");return R};
_.O(ZZ,_.W);_.J=ZZ.prototype;
_.J.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"}}}};
_.J.computeThumbnailStyle=function(R){return R||""};
_.J.computePlaceAnnotationUnderTitle=function(){var R;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((R=this.data)==null?void 0:R.thumbnailStyle)||"")};
_.J.computeHrefWithDefault=function(R){return this.ytComponentBehavior.computeHref_(R)||_.gEP(pFL)};
_.J.computeIsPromoShelf=function(R){var y;return(R=R==null?void 0:(y=R[0])==null?void 0:y.metadataBadgeRenderer)?R.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.J.computePlaceBadgeBesideTitle=function(R){var y;return(R==null?0:(y=R[0])==null?0:y.metadataBadgeRenderer)?!this.computeIsPromoShelf(R):!1};
_.J.computeMenuIcon=function(R){return this.computeIsPromoShelf(R)?"yt-icons:more_vert":"yt-icons:more"};
_.J.onDataChange=function(){var R,y;((R=this.data)==null?0:(y=R.content)==null?0:y.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.J.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 y=this.data.content.gridRenderer.items,u=new Set,v=_.V(R.detail.videoIds),Q=v.next();!Q.done;Q=v.next())u.add(Q.value);R.detail.returnValue=y.filter(function(M){return M.gridVideoRenderer&&M.gridVideoRenderer.videoId&&u.has(M.gridVideoRenderer.videoId)}).map(function(M){return M.gridVideoRenderer})}};
_.J.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
ZZ.prototype.onLockupRequested=ZZ.prototype.onLockupRequested;ZZ.prototype.onDataChange=ZZ.prototype.onDataChange;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],ZZ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.c4),_.p("design:type",Object)],ZZ.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ZZ.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],ZZ.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.qv),_.p("design:type",Object)],ZZ.prototype,"ironResizableBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ZZ.prototype,"data",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],ZZ.prototype,"isSearch",void 0);_.A([_.r(),_.p("design:type",Object)],ZZ.prototype,"isConstrainedList",void 0);_.A([_.r({reflectToAttribute:!0,value:function(){return _.f("kevlar_fluid_dismiss")}}),
_.p("design:type",Boolean)],ZZ.prototype,"enableFluidDismiss",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.p("design:type",String)],ZZ.prototype,"thumbnailStyle",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ZZ.prototype,"modernTypography",void 0);_.A([_.r({computed:"computeMenuIcon(data.badges)"}),_.p("design:type",String)],ZZ.prototype,"menuIcon",void 0);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ZZ.prototype,"onDataChange",null);_.A([_.fu("yt-lockup-requested"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],ZZ.prototype,"onLockupRequested",null);_.A([_.q({is:"ytd-shelf-renderer",disableElementRegistration:!0})],ZZ);
_.m(ZZ,"ytd-shelf-renderer",function(){if(AB5!==void 0)return AB5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return AB5=R},{mode:1});var t95;var Hw=function(){return _.W.apply(this,arguments)||this};
_.O(Hw,_.W);Hw.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.RR.Object.defineProperties(Hw.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([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Hw.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Hw.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Hw.prototype,"data",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],Hw.prototype,"isPlaylist",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],Hw.prototype,"isClipList",void 0);
_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],Hw.prototype,"isPlaylistPageWithFilters",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Hw.prototype,"hasTitle",null);_.A([_.r(),_.G("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.p("design:type",Object),_.p("design:paramtypes",[])],Hw.prototype,"isRightAligned",null);
_.A([_.q({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],Hw);
_.m(Hw,"ytd-sort-filter-header-renderer",function(){if(t95!==void 0)return t95;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return t95=R},{mode:1});var cBG;var n5=function(){var R=_.W.apply(this,arguments)||this;R.enableRightArrowHidden=_.f("channel_details_shelf_resize_observer");return R};
_.O(n5,_.W);n5.prototype.attached=function(){var R=this;this.enableRightArrowHidden&&(this.JSC$16297_throttledOnResize=new _.v2(function(){var y;(y=R.ytdHorizontalListBehavior)==null||y.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var y;
(y=R.JSC$16297_throttledOnResize)==null||y.fire()}),this.resizeObserver.observe(this.hostElement))};
n5.prototype.detached=function(){if(this.enableRightArrowHidden){var R;(R=this.resizeObserver)==null||R.disconnect();var y;(y=this.JSC$16297_throttledOnResize)==null||y.dispose()}};
n5.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]]"}}}}}};
n5.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.RR.Object.defineProperties(n5.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.f("enable_creator_details_shelf_m2")){var R=[],y;((y=this.data)==null?0:y.creatorVideosButton)&&R.push(this.data.creatorVideosButton);var u;((u=this.data)==null?0:u.creatorAboutButton)&&R.push(this.data.creatorAboutButton);y=_.V(this.data.creatorCustomUrlButtons||[]);for(u=y.next();!u.done;u=y.next())R.push(u.value);return R}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.f("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],n5.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],n5.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.Ia.YtdHorizontalListBehavior),_.p("design:type",Object)],n5.prototype,"ytdHorizontalListBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],n5.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],n5.prototype,"engagementPanel",void 0);
_.A([_.r(),_.p("design:type",Object)],n5.prototype,"enableRightArrowHidden",void 0);_.A([_.G("enableRightArrowHidden","atEnd"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],n5.prototype,"hideRightArrow",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],n5.prototype,"creatorCustomUrlButtons",null);
_.A([_.r({reflectToAttribute:!0}),_.G("data","creatorCustomUrlButtons"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],n5.prototype,"showCreatorCustomUrlButtons",null);_.A([_.G("showCreatorCustomUrlButtons"),_.p("design:type",Number),_.p("design:paramtypes",[])],n5.prototype,"channelAvatarSize",null);_.A([_.q({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],n5);
_.m(n5,"ytd-video-description-infocards-section-renderer",function(){if(cBG!==void 0)return cBG;var R=document.createElement("template");_.H(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_" hidden="[[hideRightArrow]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');
R.content.insertBefore(_.t().content.cloneNode(!0),R.content.firstChild);return cBG=R},{mode:_.TN("kevlar_poly_si_batch_j067")?1:2});var aJi;var GU=function(){return _.W.apply(this,arguments)||this};
_.O(GU,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],GU.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],GU.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],GU.prototype,"data",void 0);_.A([_.r({computed:"computeIcon_(data.infoIcon)"}),_.p("design:type",Object)],GU.prototype,"infoIcon",void 0);_.A([_.q({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],GU);
_.m(GU,"ytd-eom-settings-disclaimer-renderer",function(){if(aJi!==void 0)return aJi;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return aJi=R},{mode:1});var S_K;var rM=function(){return _.W.apply(this,arguments)||this};
_.O(rM,_.W);_.RR.Object.defineProperties(rM.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.suppressPaddingDisclaimer)}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],rM.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],rM.prototype,"componentBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],rM.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],rM.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],rM.prototype,"suppressPaddingDisclaimer",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],rM);
_.m(rM,"ytd-product-list-header-renderer",function(){if(S_K!==void 0)return S_K;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return S_K=R},{mode:1});var Y_g;var Pw=function(){return _.W.apply(this,arguments)||this};
_.O(Pw,_.W);Pw.prototype.computeThumbnailStyle=function(R){if(R&&(R=_.aH(R)))return"background-color:"+R+";"};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Pw.prototype,"rendererBehaviors",void 0);_.A([_.r(),_.p("design:type",Object)],Pw.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],Pw);
_.m(Pw,"ytd-hashtag-tile-renderer",function(){if(Y_g!==void 0)return Y_g;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Y_g=R},{mode:1});var L15;var Ww=function(){return _.W.apply(this,arguments)||this};
_.O(Ww,_.W);Ww.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Ww.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Ww.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Ww.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],Ww);
_.m(Ww,"ytd-sponsorships-alert-renderer",function(){if(L15!==void 0)return L15;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return L15=R},{mode:1});var sDL;var dM=function(){return _.W.apply(this,arguments)||this};
_.O(dM,_.W);dM.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.RR.Object.defineProperties(dM.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.f("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.f("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.A([_.n(_.c4),_.p("design:type",Object)],dM.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.n(_.gT),_.p("design:type",Object)],dM.prototype,"ytdLockupBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],dM.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],dM.prototype,"ytRendererBehavior",void 0);_.A([_.r({selector:_.aC}),_.p("design:type",Object)],dM.prototype,"isGridViewEnabled",void 0);
_.A([_.G("isGridViewEnabled"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],dM.prototype,"watchFeedBigThumbs",null);_.A([_.G("isGridViewEnabled"),_.r({reflectToAttribute:!0}),_.p("design:type",String),_.p("design:paramtypes",[])],dM.prototype,"thumbnailWidth",null);_.A([_.r(),_.p("design:type",Object)],dM.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],dM);
_.m(dM,"ytd-compact-movie-renderer",function(){if(sDL!==void 0)return sDL;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return sDL=R},{mode:1});var z0G;var gbg;var CPi=_.EB("HTML_DIR")==="rtl",UH=function(){var R=_.W.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$16314_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};
_.O(UH,_.W);_.J=UH.prototype;_.J.onClick=function(R){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.JF(_.u8(R)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var y;if((y=window.getSelection())==null||!y.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.J.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.J.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.J.updateTextOnSnippetTypeChange=function(){_.f("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.J.setUpBinarySearch=function(R){R=R*this.maxLines/8;this.left=0;var y,u;this.right=Math.min(R*2,(u=(y=this.simpleText)==null?void 0:y.length)!=null?u:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.J.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.J.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.kT(new _.OL("AttributedSnippet is empty when the description is not empty",this.text))};
_.J.mutationCallback=function(){if(this.observer!=null){var R=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var y=Math.floor(R*this.maxLines/8);this.setSnippetText(this.text,y);y!==0||this.attributedTextIsEmpty()||_.kT(new _.OL("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 u;this.right=Math.min(R*2,(u=(y=this.simpleText)==null?void 0:y.length)!=null?u:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=
0;this.setSnippetText(this.text,this.mid);this.isFirstMutation=!1}else this.isTruncated=!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset()),this.isFinalSnippet=!0,this.isFirstMutation=!1,this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else{this.isOverflowing()?this.right=this.mid-1:(this.left=this.mid+1,this.longestSnippetLength=this.mid);if(this.left>this.right){if(this.mid===this.longestSnippetLength){this.expandButtonOffset=this.computeExpandButtonOffset();
this.observer.disconnect();this.maybeLogWarningForEmptyAttributedSnippet();return}this.setSnippetText(this.text,this.longestSnippetLength);this.isFinalSnippet=!0}this.mid=Math.floor(this.left+(this.right-this.left)/2);this.setSnippetText(this.text,this.mid)}}};
_.J.mutationObserve=function(R){var y=this;this.observer||(this.observer=new MutationObserver(function(){y.mutationCallback()}));
this.observer.observe(R,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.J.attached=function(){var R=this;_.gn(this,function(){R.resize()})};
_.J.isExpandedChanged=function(){_.Ko(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.J.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)};
_.J.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 "+((CPi?"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(CPi?"right":"left",this.expandButtonOffset+"px")};
_.J.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.J.setSnippetText=function(R,y){R||(R={});if(_.v_(R)){var u=yX(R,y);u.attachmentRuns||u.commandRuns||u.decorationRuns||u.styleRuns||u.alignment||u.lineBreakMode?this.attributedSnippetTextEl?(_.f("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=yX(R,y),this.attributedSnippetTextEl.headerRuns=Df4(y,this.headerRuns)):this.attributedSnippetText={data:yX(R,y),headerRuns:Df4(y,this.headerRuns)},this.currentSnippetType=0):_.kT(new _.OL("Tried to set snippet text when HTML element was null",
R)):(this.plainSnippetText.textContent=Ck(R.content||"",y),this.currentSnippetType=2)}else{a:{u=a_G(R,y);if(u.runs){u=_.V(u.runs);for(var v=u.next();!v.done;v=u.next())if(v=v.value,v.bold||v.deemphasize||v.italics||v.strikethrough||v.textColor||v.navigationEndpoint||_.e(v,td)){u=!0;break a}}u=!1}u?this.formattedSnippetText?(this.formattedSnippetText.text=a_G(R,y),this.currentSnippetType=1):_.kT(new _.OL("Tried to set snippet text when HTML element was null",R)):(this.plainSnippetText.textContent=
Ck(_.u7(R),y),this.currentSnippetType=2)}};
_.J.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.J.attributedTextIsEmpty=function(){var R=this.text;if(!_.v_(R))return!0;var y;return((y=R.content)==null?void 0:y.length)===0?!0:!1};
_.J.resize=function(R){if(this.snippetText){if(R===void 0?0:R)this.JSC$16314_lastWidth=NaN;var y=this.hostElement.offsetWidth;if(y!==this.JSC$16314_lastWidth&&!this.isExpanded)if(this.JSC$16314_lastWidth=y,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 u,v;y=Math.min(y*this.maxLines/8*2,(v=(u=this.simpleText)==null?void 0:u.length)!=null?v:0)-1;for(u=0;R<=y;)v=Math.floor(R+(y-R)/2),this.setSnippetText(this.text,v),this.isOverflowing()?y=v-1:(R=v+1,u=v);this.setSnippetText(this.text,u);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.J.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.J.onExpandClick=function(){var R=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.f("inline_expander_reset_focus_killswitch")||_.gn(this,function(){var y;((y=_.ua().resolve(_.yN(_.Ti)))==null?0:y.isKeyBoardInUse())&&_.S_(R.hostElement)});
_.Ko(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.J.onCollapseClick=function(){this.collapse();_.Ko(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.J.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.J.computeExpandButtonOffset=function(){var R=this.expandSizer;return R?CPi?R.offsetParent?R.offsetParent.offsetWidth-R.offsetWidth-R.offsetLeft:0:R.offsetLeft:0};
_.RR.Object.defineProperties(UH.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.v_(this.text)?this.text.content||"":_.u7(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 _.v_(this.text)?!0:this.text&&_.f("web_replace_formatted_with_attributed_string")&&KSc(this.text)?(this.text=_.pk(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}}});
UH.prototype.onTextChanged=UH.prototype.onTextChanged;UH.prototype.updateMaskAndExpandButtonOffset=UH.prototype.updateMaskAndExpandButtonOffset;UH.prototype.updateSnippetContainerMaxHeight=UH.prototype.updateSnippetContainerMaxHeight;UH.prototype.isExpandedChanged=UH.prototype.isExpandedChanged;UH.prototype.updateTextOnSnippetTypeChange=UH.prototype.updateTextOnSnippetTypeChange;UH.prototype.updateIsFormattedExpanded=UH.prototype.updateIsFormattedExpanded;UH.prototype.updateIsAttributedExpanded=UH.prototype.updateIsAttributedExpanded;
UH.prototype.onClick=UH.prototype.onClick;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],UH.prototype,"componentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],UH.prototype,"text",void 0);_.A([_.r(),_.p("design:type",Array)],UH.prototype,"headerRuns",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],UH.prototype,"engagementPanel",void 0);_.A([_.r(),_.p("design:type",Object)],UH.prototype,"maxLines",void 0);
_.A([_.r(),_.p("design:type",String)],UH.prototype,"expandLabel",void 0);_.A([_.r(),_.p("design:type",String)],UH.prototype,"collapseLabel",void 0);_.A([_.r(),_.p("design:type",Object)],UH.prototype,"expandCommand",void 0);_.A([_.r(),_.p("design:type",Object)],UH.prototype,"expandButtonOffset",void 0);_.A([_.G("text"),_.p("design:type",String),_.p("design:paramtypes",[])],UH.prototype,"simpleText",null);
_.A([_.fu("click"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],UH.prototype,"onClick",null);_.A([_.G("text","isExpanded"),_.p("design:type",Object),_.p("design:paramtypes",[])],UH.prototype,"expandedText",null);_.A([_.G("headerRuns","isExpanded"),_.p("design:type",Object),_.p("design:paramtypes",[])],UH.prototype,"expandedHeaderRuns",null);
_.A([_.G("text"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],UH.prototype,"hasAttributedStringText",null);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],UH.prototype,"showExpandButton",void 0);_.A([_.G("collapseLabel","isExpanded"),_.p("design:type",Object),_.p("design:paramtypes",[])],UH.prototype,"showCollapseButton",null);_.A([_.r(),_.p("design:type",Object)],UH.prototype,"isTruncated",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],UH.prototype,"isExpanded",void 0);_.A([_.r(),_.p("design:type",Boolean)],UH.prototype,"isAttributedExpanded",void 0);_.A([_.e0("isExpanded","hasAttributedStringText"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],UH.prototype,"updateIsAttributedExpanded",null);_.A([_.r(),_.p("design:type",Boolean)],UH.prototype,"isFormattedExpanded",void 0);
_.A([_.e0("isExpanded","hasAttributedStringText"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],UH.prototype,"updateIsFormattedExpanded",null);_.A([_.r(),_.p("design:type",Number)],UH.prototype,"currentSnippetType",void 0);_.A([_.G("currentSnippetType"),_.p("design:type",Object),_.p("design:paramtypes",[])],UH.prototype,"useAttributedSnippet",null);
_.A([_.G("currentSnippetType"),_.p("design:type",Object),_.p("design:paramtypes",[])],UH.prototype,"useFormattedSnippet",null);_.A([_.G("currentSnippetType"),_.p("design:type",Object),_.p("design:paramtypes",[])],UH.prototype,"usePlainSnippet",null);_.A([_.r(),_.p("design:type",Object)],UH.prototype,"alwaysShowExpandButton",void 0);_.A([_.e0("currentSnippetType"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],UH.prototype,"updateTextOnSnippetTypeChange",null);
_.A([_.r(),_.p("design:type",Object)],UH.prototype,"attributedSnippetText",void 0);_.A([_.O7("#snippet"),_.p("design:type",HTMLElement)],UH.prototype,"snippetContainer",void 0);_.A([_.O7("#snippet-text"),_.p("design:type",HTMLElement)],UH.prototype,"snippetText",void 0);_.A([_.O7("#plain-snippet-text"),_.p("design:type",HTMLElement)],UH.prototype,"plainSnippetText",void 0);_.A([_.O7("#formatted-snippet-text"),_.p("design:type",Object)],UH.prototype,"formattedSnippetText",void 0);
_.A([_.O7("#attributed-snippet-text"),_.p("design:type",Object)],UH.prototype,"attributedSnippetTextEl",void 0);_.A([_.O7("#expand"),_.p("design:type",HTMLElement)],UH.prototype,"expandButton",void 0);_.A([_.O7("#expand-sizer"),_.p("design:type",HTMLElement)],UH.prototype,"expandSizer",void 0);_.A([_.GJ("isExpanded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],UH.prototype,"isExpandedChanged",null);
_.A([_.e0("isExpanded","maxLines"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],UH.prototype,"updateSnippetContainerMaxHeight",null);_.A([_.e0("isTruncated","showExpandButton","expandButtonOffset"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],UH.prototype,"updateMaskAndExpandButtonOffset",null);
_.A([_.GJ("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],UH.prototype,"onTextChanged",null);_.A([_.q({is:"ytd-text-inline-expander",disableElementRegistration:!0})],UH);
_.m(UH,"ytd-text-inline-expander",function(){if(gbg===void 0){var R=document.createElement("template");_.H(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<div id="expanded" class="style-scope ytd-text-inline-expander"><yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></div><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');R.content.insertBefore(_.t().content.cloneNode(!0),
R.content.firstChild);gbg=R}R=gbg;return R},{mode:2});var k5=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return R};
_.O(k5,_.W);k5.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
k5.prototype.handleUpdateDescriptionAction=function(R){if(R=_.e(R,_.xJ5))if(R.attributedDescription)this.set("data.attributedDescriptionBodyText",R.attributedDescription);else if(R.description){var y;((y=this.data)==null?0:y.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.pk(R.description)):this.set("data.descriptionBodyText",R.description)}};
_.RR.Object.defineProperties(k5.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var R,y;return!((R=this.data)==null||!R.attributedDescriptionBodyText)||!((y=this.data)==null||!y.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.data)==null?0:R.collapsedLineCount){var y;return(y=this.data)==null?void 0:y.collapsedLineCount}R=_.JT("web_watch_description_collapsed_default_lines",12);if(_.f("ww_desc_line_page_size_ks"))return R;y=Math.round(_.rw().height*_.JT("web_watch_description_screen_height_percentage",.5)/20);return Math.max(y,R)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var R,y,u;return(u=(R=this.data)==null?void 0:R.descriptionBodyText)!=null?u:(y=this.data)==null?void 0:y.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}}});
k5.prototype.panelContentVisibleChanged=k5.prototype.panelContentVisibleChanged;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],k5.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],k5.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],k5.prototype,"componentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],k5.prototype,"data",void 0);
_.A([_.r(),_.p("design:type",Boolean)],k5.prototype,"panelContentVisible",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],k5.prototype,"engagementPanel",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],k5.prototype,"shortsPanel",void 0);_.A([_.O7("#inline-expander"),_.p("design:type",Object)],k5.prototype,"inlineExpander",void 0);
_.A([_.e0("panelContentVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],k5.prototype,"panelContentVisibleChanged",null);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],k5.prototype,"hasDescriptionText",null);_.A([_.G("data"),_.p("design:type",Number),_.p("design:paramtypes",[])],k5.prototype,"collapsedLines",null);
_.A([_.G("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.p("design:type",Object),_.p("design:paramtypes",[])],k5.prototype,"descriptionText",null);_.A([_.G("data","data.headerRuns"),_.p("design:type",Object),_.p("design:paramtypes",[])],k5.prototype,"headerRuns",null);_.A([_.G("data","data.sourceAttributions"),_.p("design:type",Object),_.p("design:paramtypes",[])],k5.prototype,"sourceAttributions",null);
_.A([_.q({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],k5);
_.m(k5,"ytd-expandable-video-description-body-renderer",function(){if(z0G!==void 0)return z0G;var R=document.createElement("template");_.H(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]]" hidden="[[!hasDescriptionText]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');R.content.insertBefore(_.t().content.cloneNode(!0),
R.content.firstChild);return z0G=R},{mode:_.TN("kevlar_poly_si_batch_j028")?1:2});var RyL;var yE8=_.Jd(function(R){var y=R.data;return _.F("factoid-renderer",{class:"ytwFactoidRendererHost"},_.F("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return y().accessibilityText}},_.F("span",{class:"ytwFactoidRendererValue"},_.F(_.QM,{text:function(){return y().value}})),_.F("span",{class:"ytwFactoidRendererLabel"},_.F(_.QM,{text:function(){return y().label}}))))},"$b");_.h6(yE8,"factoid-renderer",{props:{data:_.vR}});_.h6(_.Jd(function(R){var y=R.data;return _.F("upload-time-factoid-renderer",null,_.F(_.mk,{data:function(){return y().factoid}},{factoidRenderer:yE8}))},"ac"),"upload-time-factoid-renderer",{props:{data:_.IC}});_.h6(_.Jd(function(R){var y=R.data;return _.F("view-count-factoid-renderer",null,_.F(_.mk,{data:function(){return y().factoid}},{factoidRenderer:yE8}))},"bc"),"view-count-factoid-renderer",{props:{data:_.IC}});var EH=function(){var R=_.W.apply(this,arguments)||this;R.shortsPanel=!1;R.engagementPanel=!1;R.watchWhileSdp=_.f("shorts_desktop_watch_while_sdp");return R};
_.O(EH,_.W);EH.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"}}}}};
_.RR.Object.defineProperties(EH.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([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],EH.prototype,"componentBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],EH.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],EH.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],EH.prototype,"shortsPanel",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],EH.prototype,"engagementPanel",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],EH.prototype,"watchWhileSdp",void 0);_.A([_.G("shortsPanel","engagementPanel","data.channel"),_.p("design:type",Object),_.p("design:paramtypes",[])],EH.prototype,"showChannelInfo",null);_.A([_.q({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],EH);
_.m(EH,"ytd-video-description-header-renderer",function(){if(RyL!==void 0)return RyL;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return RyL=R},{mode:1});var uu5;var $5=function(){return _.W.apply(this,arguments)||this};
_.O($5,_.W);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],$5.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],$5.prototype,"ytRendererBehavior",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],$5.prototype,"noPadding",void 0);_.A([_.r(),_.p("design:type",Object)],$5.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],$5);
_.m($5,"ytd-list-item-view-model",function(){if(uu5!==void 0)return uu5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return uu5=R},{mode:1});var vV8;var Q95;var j9b;var Msb;var qh=function(){var R=_.W.apply(this,arguments)||this;R.adaptiveFullWidth=!1;R.modernButtons=_.f("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};
_.O(qh,_.W);qh.prototype.handleSetTimestamp_=function(R){this.data&&this.data.shortUrl&&(_.hw(this.hostElement).querySelector("#share-url").value=R.isSet?_.Lp(this.data.shortUrl,"t",R.timestamp):this.data.shortUrl)};
qh.prototype.handleSignalActionCopyShareUrl_=function(R,y){(_.f("killswitch_copy_link_target_check")||_.hw(this.hostElement).querySelector("#copy-button")===y)&&this.copyUrlToClipboard()};
qh.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.hw(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
qh.prototype.computeStyle_=function(R){return R?R.toLowerCase().replace(/_/g,"-"):""};
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],qh.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],qh.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],qh.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.p("design:type",String)],qh.prototype,"rendererStyle",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],qh.prototype,"adaptiveFullWidth",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],qh.prototype,"modernButtons",void 0);_.A([_.r(),_.p("design:type",Object)],qh.prototype,"buttonOverrides",void 0);_.A([_.pu({is:"yt-copy-link-renderer",disableElementRegistration:!0})],qh);
_.m(qh,"yt-copy-link-renderer",function(){if(Msb===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;j9b===void 0&&(j9b=document.createElement("template"));var v=j9b;u.call(y,v.content.cloneNode(!0),R.content.firstChild);Msb=R}R=Msb;return R},{mode:2});_.Dl("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var XF=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return R};
_.O(XF,_.W);_.J=XF.prototype;_.J.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.J.attached=function(){this.keyboardFocused=!1};
_.J.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var R=_.ua().resolve(_.yN(_.Ti));R&&(this.keyboardFocused=R.isKeyBoardInUse())}};
_.J.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.J.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}};
_.J.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)}};
_.J.handleUpdateToggleAction_=function(R){(R=_.e(R,xEi))&&this.data&&R.targetId==this.data.targetId&&this.set("data.toggled",R.toggled)};
_.J.toBoolean_=function(R){return!!R};
_.J.reset=function(){};
_.J.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.CQ("data-changed",this.data))};
_.J.updateDataToggledFromBinding=function(R){this.set("data.toggled",R.detail.value)};
XF.prototype.dataChangedForBinding=XF.prototype.dataChangedForBinding;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],XF.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],XF.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],XF.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],XF.prototype,"ytRendererBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],XF.prototype,"data",void 0);_.A([_.r({computed:"computeDescription_(data.*)"}),_.p("design:type",Object)],XF.prototype,"description_",void 0);_.A([_.r({value:function(){return!!_.ua().resolve(_.yN(_.Ti))&&_.f("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.p("design:type",Boolean)],XF.prototype,"useKeyboardFocused",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],XF.prototype,"keyboardFocused",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],XF.prototype,"dataChangedForBinding",null);_.A([_.pu({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],XF);
_.m(XF,"yt-toggle-form-field-renderer",function(){if(Q95===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;vV8===void 0&&(vV8=document.createElement("template"));var v=vV8;u.call(y,v.content.cloneNode(!0),R.content.firstChild);Q95=R}R=Q95;return R},{mode:2});var JE5;var Vsb;var mt=function(){var R=_.W.apply(this,arguments)||this;R.isDarkTheme=!1;R.isSearch=!1;R.darkerDarkTheme=_.f("web_darker_dark_theme");R.noTopMargin=_.f("kevlar_watch_no_top_margin");R.maskFade=_.f("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};
_.O(mt,_.W);_.J=mt.prototype;_.J.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}}}}}};
_.J.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.J.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.J.dataChanged=function(){var R=this.getSelectedIndex();if(R>0)this.selected=R;else{this.selected=0;var y,u;(y=this.ytScrollableChipCloudBehavior)==null||(u=y.reset)==null||u.call(y)}};
_.J.getSelectedIndex=function(){var R;if((R=this.data)==null||!R.chips)return-1;R=-1;for(var y,u=0;u<((y=this.data)==null?void 0:y.chips.length);u++){var v=void 0,Q=void 0;if((v=this.data)==null?0:(Q=v.chips[u].chipCloudChipRenderer)==null?0:Q.isSelected){R=u;break}}return R};
_.J.onResize=function(){var R=this.ytScrollableChipCloudBehavior;_.gn(R,R.setContainerWidthDiff);fC(this.ytScrollableChipCloudBehavior)};
_.J.onDarkModeToggledAction=function(R){this.isDarkTheme=R};
_.J.handleRelatedChipCommand=function(R,y){R=this.JSC$16341_chipsSelector.indexOf(y);R!==-1&&this.JSC$16341_chipsSelector.selectIndex(R)};
_.J.handleChipCloudChipSelectAction=function(R){R=this.JSC$16341_chipsSelector.indexOf(R);R>-1&&this.JSC$16341_chipsSelector.selectIndex(R)};
_.J.handleChipCloudChipDeselectAction=function(){var R=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16341_chipsSelector&&((R==null?0:R.continuationCommand)?_.Fh(this.hostElement,[R]):(R==null?0:R.searchEndpoint)?this.ytComponentBehavior.resolveCommand(R):R&&_.wr(this.hostElement,[R],this.hostElement),this.JSC$16341_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.J.updateSelectedFromBinding=function(R){this.selected=R.detail.value};
mt.prototype.onResize=mt.prototype.onResize;mt.prototype.dataChanged=mt.prototype.dataChanged;mt.prototype.isSearchChanged=mt.prototype.isSearchChanged;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],mt.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],mt.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],mt.prototype,"actionHandlerBehavior",void 0);
_.A([_.n(_.qv),_.p("design:type",Object)],mt.prototype,"ironResizableBehavior",void 0);_.A([_.n(),_.p("design:type",BM)],mt.prototype,"ytScrollableChipCloudBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],mt.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],mt.prototype,"data",void 0);_.A([_.r({value:0}),_.p("design:type",Number)],mt.prototype,"selected",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],mt.prototype,"isDarkTheme",void 0);_.A([_.r({value:160}),_.p("design:type",Number)],mt.prototype,"scrollDistance",void 0);_.A([_.r(),_.p("design:type",Object)],mt.prototype,"isSearch",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],mt.prototype,"darkerDarkTheme",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],mt.prototype,"noTopMargin",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],mt.prototype,"maskFade",void 0);_.A([_.O7("#chips"),_.p("design:type",Object)],mt.prototype,"JSC$16341_chipsSelector",void 0);_.A([_.e0("isSearch"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],mt.prototype,"isSearchChanged",null);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],mt.prototype,"dataChanged",null);
_.A([_.fu("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],mt.prototype,"onResize",null);_.A([_.pu({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],mt);
_.m(mt,"yt-chip-cloud-renderer",function(){if(Vsb===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;JE5===void 0&&(JE5=document.createElement("template"));var v=JE5;u.call(y,v.content.cloneNode(!0),R.content.firstChild);Vsb=R}R=Vsb;return R},{mode:2});var i05,KZi=function(){return i05!==void 0?i05:i05=document.createElement("template")};
document.head.appendChild(KZi().content);var ImG;var hyL=document.head,b0T=hyL.appendChild,FZw;if(ImG===void 0){var wDG=document.createElement("template");_.H(wDG,"");wDG.content.insertBefore(KZi().content.cloneNode(!0),wDG.content.firstChild);ImG=wDG}FZw=ImG;b0T.call(hyL,FZw.content);var N7V=_.Jd(function(R){var y=R.data;return _.F("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.F("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.F("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.F(_.w,{cond:function(){return _.yM(y().image)},
then:function(u){return _.F("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.F(_.MR,{data:u,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.F("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.F(_.QM,{text:function(){return y().title}})),_.F("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.F(_.QM,{text:function(){return y().subtitle}})))),_.F(_.w,{cond:function(){var u;
return(u=y())==null?void 0:u.hasBottomDivider},
then:function(){return _.F("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"cc");var T75=_.Jd(function(R){var y=R.data;return _.F("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.F("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.F(_.mk,{data:function(){var u;return(u=y().offerPlanDetailsItem)!=null?u:[]}},{offerPlanDetailsItemViewModel:function(u){return _.F("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.F(N7V,{data:u.data}))}})),_.F("div",null,_.F(_.w,{cond:function(){return y().hasBottomDivider},
then:function(){return _.F("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.F("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.F("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.F("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.F("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"dc");var oV8=_.Jd(function(R){var y=R.data;R=_.V(_.In(!1,void 0,"SpEGQd"));var u=R.next().value,v=R.next().value,Q=_.nh(function(){v(!u());return!1}),M=function(){var K;
return(K=y().offerPlanDetailsContainer)!=null?K:[]};
return _.F("lp-complex-offer-card-details-view-model",null,_.F("div",null,_.F(_.w,{cond:function(){return u()},
then:function(){return _.F("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.F("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":Q,"aria-expanded":u},_.F(_.QM,{text:function(){return y().expandedTitle}})),_.F("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.F(_.mk,{data:M},{offerPlanDetailsContainerViewModel:function(K){return _.F("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.F(T75,{data:K.data}))}})),_.F("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.F(_.QM,{text:function(){return y().legalText}})))},
else:function(){return _.F("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":Q,"aria-expanded":u},_.F(_.QM,{text:function(){return y().collapsedTitle}}),_.F("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.F(_.W_,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"ec");var xXb=_.Jd(function(R){var y=R.data;return _.F("lp-complex-offer-card-option-view-model",null,_.F("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.F(_.w,{cond:function(){return y().topDividerText},
then:function(){return _.F("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.F("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.F("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.F("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.F(_.QM,{text:function(){return y().topDividerText}}))))}}),_.F(_.w,{cond:function(){return y().description},
then:function(){return _.F("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.F(_.QM,{text:function(){return y().description}}))}}),_.F(_.w,{cond:function(){return y().planPricingPrimary},
then:function(){return _.F("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.F(_.QM,{text:function(){return y().planPricingPrimary}}))}}),_.F(_.w,{cond:function(){return y().planPricingSecondary},
then:function(){return _.F("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.F(_.QM,{text:function(){return y().planPricingSecondary}}))}}),_.F(_.w,{cond:function(){return y().primaryButton},
then:function(){return _.F("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.F(_.mk,{data:function(){return y().primaryButton}},{buttonViewModel:function(u){return _.F(_.fQ,{data:u.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"fc");var B75=_.Jd(function(R){var y=R.data;var u=function(){var M;return((M=y())==null?void 0:M.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
R={};var v={},Q={};return _.F("ytm-lp-complex-offer-card-view-model",null,_.F("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.F("div",{class:_.Oy((R.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=u,R),"ytmLpComplexOfferCardViewModelCardContainer")},_.F(_.w,{cond:function(){var M;return(M=y())==null?void 0:M.bannerText},
then:function(){return _.F("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.F("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.F(_.QM,{text:function(){return y().bannerText}})))}}),_.F(_.w,{cond:function(){return _.yM(y().logo)},
then:function(M){var K={};return _.F("div",{class:_.Oy((K.ytmLpComplexOfferCardViewModelLogoAlignLeft=u,K),"ytmLpComplexOfferCardViewModelLogo")},_.F(_.MR,{data:M,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.F("div",{class:_.Oy((v.ytmLpComplexOfferCardViewModelTitleAlignLeft=u,v),"ytmLpComplexOfferCardViewModelTitle")},_.F(_.QM,{text:function(){return y().title}})),_.F(_.w,{cond:function(){var M;
return(M=y())==null?void 0:M.subtitle},
then:function(){var M={};return _.F("div",{class:_.Oy((M.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=u,M),"ytmLpComplexOfferCardViewModelSubtitle")},_.F(_.QM,{text:function(){return y().subtitle}}))}}),_.F(_.w,{cond:function(){return y().planPricingPrimary},
then:function(){return _.F("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.F(_.QM,{text:function(){return y().planPricingPrimary}}))}}),_.F(_.w,{cond:function(){return y().planPricingSecondary},
then:function(){return _.F("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.F(_.QM,{text:function(){return y().planPricingSecondary}}))}}),_.F(_.w,{cond:function(){return y().purchaseButton},
then:function(){return _.F("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.F(_.mk,{data:function(){return y().purchaseButton}},{buttonViewModel:function(M){return _.F(_.fQ,{data:M.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.F(_.w,{cond:function(){var M;
return(M=y())==null?void 0:M.offerOptions},
then:function(){return _.F("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.F(_.mk,{data:function(){return y().offerOptions}},{lpComplexOfferCardOptionViewModel:xXb}))}}),_.F("div",{class:_.Oy((Q.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=u,Q),"ytmLpComplexOfferCardViewModelLegalText")},_.F(_.QM,{text:function(){return y().legalText}})),_.F(_.w,{cond:function(){var M;
return(M=y())==null?void 0:M.offerCardDetails},
then:function(){return _.F("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.F(_.mk,{data:function(){return y().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:oV8}))}}))))},"gc");var fmT=_.Jd(function(R){var y=R.data;var u=function(){var K;return((K=y())==null?void 0:K.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
R={};var v={},Q={},M={};return _.F("ytm-lp-complex-offer-card-section-view-model",null,_.F("div",{class:_.Oy("ytmLpComplexOfferCardSectionViewModelHost")},_.F("div",{class:_.Oy((R.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=u,R),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.F("div",{class:_.Oy((v.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=u,v),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.F("h2",{class:_.Oy((Q.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
u,Q),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.F(_.QM,{text:function(){return y().title}}))),_.F(_.w,{cond:function(){var K;
return(K=y())==null?void 0:K.subtitle},
then:function(){var K={},h={};return _.F("div",{class:_.Oy((K.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=u,K),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.F("div",{class:_.Oy((h.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=u,h),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.F(_.QM,{text:function(){return y().subtitle}})))}}),_.F("div",{class:_.Oy((M.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=u,M),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.F(_.mk,{data:function(){var K;
return(K=y().offerPlans)!=null?K:[]}},{lpComplexOfferCardViewModel:function(K){return _.F("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.F(B75,{data:K.data}))}})))))},"hc");var eyc=_.Jd(function(R){return _.F("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.F("div",{class:"ytLpCouponBannerViewModelIcon"},_.F(_.W_,{icon:function(){return"price_tag"}})),_.F("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.F("div",{class:"ytLpCouponBannerViewModelContent"},_.F("div",{class:"ytLpCouponBannerViewModelHeading"},_.F(_.QM,{text:function(){var y;
return(y=R.data())==null?void 0:y.title}})),_.F("div",{class:"ytLpCouponBannerViewModelBody"},_.F(_.QM,{text:function(){var y;
return(y=R.data())==null?void 0:y.subtitle}})))))},"ic");
eyc.idomCompat=!0;_.Au=B3T.getInstance();var lmg;lmg=_.Jd(function(R){return _.F("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":R.shouldAriaHideContent},_.F("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:R.questionId},_.F(_.QM,{text:R.question})))},"jc");
_.O0L=_.Jd(function(R){var y=R.data;var u=R.themeOverride;R=_.V(_.In(!1,void 0,"ljTVPd"));var v=R.next().value,Q=R.next().value;R=_.nh(function(){Q(!v());return!1});
var M=function(){return v()?"EXPAND_LESS":"EXPAND_MORE"},K=("faq-container"+_.mR(_.Au)).toString(),h="faq-question-and-answers-section-question"+_.mR(_.Au),b={},N={};
return _.F("faq-entry-view-model-c3",null,_.F("div",{class:_.Oy("yt-lp-faq-entry-view-model",(b["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return u==null?void 0:u().useDarkTheme},b))},_.F("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":R,role:"button","aria-expanded":v,"aria-labelledby":h.toString(),"tab-index":"0"},_.F(lmg,{question:function(){return y().question},
questionId:h,shouldAriaHideContent:!0}),_.F(_.w,{cond:function(){return v()!==void 0},
then:function(){return _.F("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.F(_.W_,{icon:M,ariaHidden:!0}),_.F("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.F("div",{class:_.Oy("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!v()},N))},_.F("div",{id:K},_.F(_.eS,{each:function(){return y().answers||[]}},function(T){return _.F("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.F(_.QM,{text:T}))})))))},"kc");
_.O0L.idomCompat=!0;var Z0i=_.Jd(function(R){var y=R.data;var u=R.themeOverride;R={};return _.F("lp-faq-section-view-model-c3",null,_.F("div",{class:_.Oy("yt-lp-faq-section-view-model",(R["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return y().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},R["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(u==null||!u().useDarkTheme)},R))},_.F("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.F(_.w,{cond:function(){return y().header},
then:function(v){return _.F("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.F(_.QM,{text:v}))}}),_.F("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.F(_.mk,{data:function(){return y().faqs}},{faqEntryViewModel:function(v){return _.F(_.O0L,{data:v.data,
themeOverride:u})}})),_.F("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.F(_.eS,{each:function(){return y().footers||[]}},function(v){return _.F(_.QM,{text:v})})),_.F(_.w,{cond:function(){return y().legal},
then:function(v){return _.F("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.F(_.QM,{text:v}))}}))))},"lc");
Z0i.idomCompat=!0;var H0L=_.Jd(function(R){var y=R.data;var u=R.themeOverride;_.rB(function(){var K=y().gtmId;K&&_.qL(K,_.EB("GL",""))});
var v={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var K,h,b;return(b=(K=y().logo)==null?void 0:(h=K.accessibilityData)==null?void 0:h.label)!=null?b:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},Q=_.ua().resolve(_.yN(_.u0)),M=function(){return Q&&Q()||(u==null?void 0:u().useDarkTheme)};
return _.F("lp-header-section-view-model",null,_.F("div",{class:function(){var K=y().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",h=y().marginType==="LP_SECTION_MARGIN_TYPE_TOP",b=u==null?void 0:u().useDarkTheme,N=["lp-header-section-view-model"];K&&N.push("lp-header-section-view-model--ptc-layout-type");h&&N.push("lp-header-section-view-model__lp-header-section-margin");b&&N.push("lp-header-section-view-model--premium-force-dark-mode");return N.join(" ")}},_.F(_.w,{cond:function(){return y().logo},
then:function(){return _.F("div",null,_.F(_.w,{cond:M,then:function(){return _.F(_.w,{cond:function(){var K;return(K=y().logo)==null?void 0:K.imageDark},
then:function(K){return _.F(_.MR,Object.assign({},{data:K},v))}})},
else:function(){return _.F(_.w,{cond:function(){var K;return(K=y().logo)==null?void 0:K.imageLight},
then:function(K){return _.F(_.MR,Object.assign({},{data:K},v))}})}}))}}),_.F(_.w,{cond:function(){return y().title},
then:function(K){return _.F("div",{class:"lp-header-section-view-model__lp-header-title"},_.F(_.QM,{text:K}))}}),_.F("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.F(_.w,{cond:function(){return y().subtitles},
then:function(K){return _.F(_.eS,{each:K},function(h){return _.F("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.F(_.QM,{text:h}))})}})),_.F(_.w,{cond:function(){return y().additionalInfo},
then:function(K){return _.F("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.F(_.QM,{text:K}))}}),_.F("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.F(_.w,{cond:function(){return y().primaryButton},
then:function(K){return _.F("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.F(_.mk,{data:K},{buttonViewModel:_.fQ}))}}),_.F(_.w,{cond:function(){return y().secondaryButton},
then:function(K){return _.F("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.F(_.mk,{data:K},{buttonViewModel:_.fQ}))}})),_.F(_.w,{cond:function(){return y().otherOffersInfo},
then:function(K){return _.F("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.F(_.QM,{text:K}))}}),_.F("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.F(_.w,{cond:function(){return y().billingInfo},
then:function(K){return _.F(_.eS,{each:K},function(h){return _.F("div",null,_.F(_.QM,{text:h}))})}}))))},"mc");
H0L.idomCompat=!0;var nVg=_.Jd(function(R){var y=R.data;var u=_.Qj(R.themeOverride,{useDarkTheme:!1});R={};R=_.Oy("ytm-lp-headline-section-view-model",(R["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return u().useDarkTheme},R));
return _.F("lp-headline-section-view-model",null,_.F("div",{class:R},_.F("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.F(_.QM,{text:function(){return y().title}})),_.F(_.w,{cond:function(){return y().subtitle},
then:function(v){return _.F("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.F(_.QM,{text:v}))}})))},"nc");var Gvg=_.Jd(function(R){var y=R.data;var u=R.themeOverride;var v=_.ua().resolve(_.yN(_.u0)),Q=function(){return v&&v()||(u==null?void 0:u().useDarkTheme)},M=function(){var N,T;
var x=Q()?(N=y().textBackgroundImage)==null?void 0:N.imageDark:(T=y().textBackgroundImage)==null?void 0:T.imageLight;return KCc((x==null?void 0:x.sources)||[])},K=function(){var N,T;
return Q()?(N=y().featureImage)==null?void 0:N.imageDark:(T=y().featureImage)==null?void 0:T.imageLight},h=function(){return y().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},b=function(){var N,T;
return Q()?(N=y().logo)==null?void 0:N.imageDark:(T=y().logo)==null?void 0:T.imageLight};
return _.F("ytm-lp-large-feature-section-view-model",null,_.F("div",{class:function(){var N=y().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",T=y().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",x=(y().index||0)%2===1,B=u==null?void 0:u().useDarkTheme,l=["yt-lp-large-feature-section-view-model"];N?l.push("yt-lp-large-feature-section-view-model--music-feature-type"):T?l.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):x||l.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
B&&l.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return l.join(" ")}},_.F("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.F(_.w,{cond:K,
then:function(){return _.F(_.MR,{data:function(){return K()},
alt:function(){var N,T,x;return(x=(N=y().featureImage)==null?void 0:(T=N.accessibilityData)==null?void 0:T.label)!=null?x:""},
contentMode:h})}})),_.F("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var N;return((N=M())==null?0:N.url)?"background-image: url("+_.Eo(M().url)+");":""}},_.F("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.F(_.w,{cond:b,
then:function(){return _.F(_.MR,{data:function(){return b()},
alt:function(){var N,T,x;return(x=(N=y().logo)==null?void 0:(T=N.accessibilityData)==null?void 0:T.label)!=null?x:""},
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"})}}),_.F(_.w,{cond:function(){return y().eyebrowText},
then:function(){return _.F("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.F(_.QM,{text:function(){return y().eyebrowText}}))}}),_.F(_.w,{cond:function(){return y().title},
then:function(){return _.F("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.F(_.QM,{text:function(){return y().title}}))}}),_.F(_.w,{cond:function(){return y().subtitles},
then:function(){return _.F("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.F(_.eS,{each:function(){return y().subtitles||[]}},function(N){return _.F(_.QM,{text:N})}))}})))))},"oc");
Gvg.idomCompat=!0;var rEV=_.Jd(function(R){return _.F("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.F("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.F(_.W_,{icon:function(){var y;return(y=R.data())==null?void 0:y.iconType},
className:function(){var y;switch((y=R.data())==null?void 0:y.style){case "LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconGreen";case "LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconSmall";default:return"ytLpFeatureListItemViewModelFeatureListIconDefault"}},
active:function(){var y;return((y=R.data())==null?void 0:y.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.F("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.F(_.QM,{text:function(){var y;
return(y=R.data())==null?void 0:y.text},
className:function(){var y;return((y=R.data())==null?void 0:y.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"pc");var PUL=_.Jd(function(R){R=_.jb(R,{config:void 0,themeOverride:void 0});var y=R.data,u=R.config,v=R.themeOverride;R={};R=_.Oy("ytm-lp-offer-card-option-view-model",(R["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var h;return(h=v())==null?void 0:h.useDarkTheme},R));
var Q=_.nh(function(){var h,b;(h=u())==null||(b=h.handleRadioButtonClick)==null||b.call(h,y());return!1}),M=function(){var h;
return(h=u())==null?void 0:h.shouldDisplayRadioButton},K=function(){var h;
return(h=y().featureListItems)!=null?h:[]};
return _.F("ytm-lp-offer-card-option-view-model",null,_.F("div",{class:R,"on:click":_.nh(function(){if(M()){var h,b;(h=u())==null||(b=h.handleRadioButtonClick)==null||b.call(h,y())}return!1})},_.F(_.w,{cond:M,
then:function(){return _.F("div",null,_.F("input",{type:"radio","on:click":Q,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var h;return!((h=u())==null||!h.isOptionSelected)}}))}}),_.F("div",null,_.F("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.F(_.QM,{text:function(){return y().eyebrowText}})),_.F("div",{class:"ytm-lp-offer-card-option-view-model__title"},_.F(_.QM,{text:function(){return y().title}})),_.F("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},
_.F(_.QM,{text:function(){return y().subtitle}})),_.F(_.w,{cond:function(){return K().length>0},
then:function(){return _.F("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.F(_.mk,{data:K},{lpFeatureListItemViewModel:rEV}))}}),_.F("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.F(_.QM,{text:function(){return y().description}})))))},"qc");
PUL.idomCompat=!0;var WZc=_.Jd(function(R){var y=R.data;var u=R.themeOverride;R=_.V(_.rW(function(){var M,K=(M=y().offerOptions)==null?void 0:M[0];return _.e(K,dwY)||{}}));
var v=R.next().value,Q=R.next().value;R={};return _.F("ytm-lp-offer-card-view-model",null,_.F("div",{class:_.Oy("ytm-lp-offer-card-view-model",(R["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(u==null||!u().useDarkTheme)},R))},_.F("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.F(_.w,{cond:function(){return y().titleIconType},
then:function(){return _.F("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.F(_.W_,{icon:function(){var M;return((M=y().titleIconType)==null?void 0:M.toString())||""}}))}}),_.F("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.F(_.QM,{text:function(){return y().title}})),_.F(_.mk,{data:function(){return y().titleBadge}},{badgeViewModel:function(M){return _.F("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.F(_.hr,{data:M.data}))}})),_.F("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.F(_.mk,{data:function(){return y().offerOptions}},{lpOfferCardOptionViewModel:function(M){var K=M.data;
return _.F(_.vu,null,_.F("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.F(PUL,{data:K,config:function(){var h;return{shouldDisplayRadioButton:(y().offerOptions||[]).length>1,isOptionSelected:K().id===((h=v())==null?void 0:h.id),handleRadioButtonClick:function(b){return void Q(b)}}},
themeOverride:u}))}})),_.F("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.F(_.mk,{data:function(){var M;
return(M=v())==null?void 0:M.purchaseButtonOverride}},{buttonViewModel:_.fQ}))))},"rc");
WZc.idomCompat=!0;var dXc=_.Jd(function(R){var y=R.data;var u=R.themeOverride;R={};R=_.Oy("ytm-lp-offer-card-section-view-model",(R["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var v;return u==null?void 0:(v=u())==null?void 0:v.useDarkTheme},R));
return _.F("ytm-lp-offer-card-section-view-model",null,_.F("div",{class:R},_.F(_.w,{cond:function(){return y().title!==void 0},
then:function(){return _.F("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.F("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.F(_.QM,{text:function(){return y().title}})),_.F(_.w,{cond:function(){return y().subtitle},
then:function(){return _.F("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.F(_.QM,{text:function(){return y().subtitle}}))}}))}}),_.F("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.F(_.mk,{data:function(){return y().offerCards}},{lpOfferCardViewModel:function(v){return _.F("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.F(WZc,{data:v.data,
themeOverride:u}))}})),_.F(_.w,{cond:function(){return y().footer},
then:function(){return _.F("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.F(_.QM,{text:function(){return y().footer}}))}})))},"sc");var UXK=_.Jd(function(R){var y=R.data;return _.F("lp-offer-table-cell-content-view-model",null,_.F("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.F(_.Z6,null,_.F(_.lr,{when:function(){return y().title}},function(){return _.F(_.QM,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return y().title}})}),_.F(_.lr,{when:function(){return y().subTitle}},function(){return _.F(_.QM,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return y().subTitle}})}),_.F(_.lr,{when:function(){return y().featureDescription}},function(){return _.F(_.QM,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return y().featureDescription}})}),_.F(_.lr,{when:function(){return y().description}},function(){return _.F(_.QM,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return y().description}})}),_.F(_.lr,{when:function(){return y().iconType}},function(){return _.F("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.F(_.W_,{icon:function(){return y().iconType.toString()}}))}),_.F(_.lr,{when:function(){return y().purchaseButton}},function(){return _.F(_.mk,{data:function(){return y().purchaseButton}},{buttonViewModel:function(u){return _.F("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.F(_.fQ,{data:u.data}))}})}),_.F(_.lr,{when:function(){return y().note}},function(){return _.F(_.QM,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return y().note}})}),_.F(_.lr,{when:function(){return y().featureDetail}},function(){return _.F(_.QM,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return y().featureDetail}})}),_.F(_.lr,{when:function(){return y().badge}},function(){return _.F(_.mk,{data:function(){return y().badge}},{badgeViewModel:_.hr})}))))},"tc");
UXK.idomCompat=!0;var kvc=_.Jd(function(R){var y=R.data;return _.F("lp-offer-table-cell-view-model",null,_.F("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(y().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;"}}},_.F(_.mk,{data:function(){return y().contents}},{lpOfferTableCellContentViewModel:UXK})))},
"uc");
kvc.idomCompat=!0;var EV5=_.Jd(function(R){var y=R.data;var u=R.lpTableIsFirstRow;var v=R.lpTableIsLastRow;var Q=function(){return(u==null?0:u())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-header-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-header-cell"},M=function(){return(u==null?0:u())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(v==null?0:v())?"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 _.F("ytm-lp-offer-table-row-view-model",null,_.F("div",{class:"yt-lp-offer-table-row-view-model"},_.F(_.mk,{data:function(){return y().rowHeaderCell}},{lpOfferTableCellViewModel:function(K){return _.F("div",{class:Q},_.F(kvc,{data:K.data}))}}),_.F(_.mk,{data:function(){return y().contentCells}},{lpOfferTableCellViewModel:function(K){return _.F("div",{class:M},_.F(kvc,{data:K.data}))}})))},"vc");
EV5.idomCompat=!0;var $Xw=_.Jd(function(R){var y=R.data;var u=R.themeOverride;var v=_.ua().resolve(_.yN(_.u0)),Q=function(){return _.e(y().logo,sJ5)||{}};
R={};return _.F("ytm-lp-offer-table-section-view-model",null,_.F("div",{class:"yt-lp-offer-table-view-model"},_.F(_.w,{cond:function(){var M,K;return v&&v()||(u==null?0:u().useDarkTheme)?(M=Q())==null?void 0:M.imageDark:(K=Q())==null?void 0:K.imageLight},
then:function(M){return _.F(_.MR,{data:M,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var K,h,b;return(b=(K=Q())==null?void 0:(h=K.accessibilityData)==null?void 0:h.label)!=null?b:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.F("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.F(_.QM,{text:function(){return y().title}})),_.F("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.F(_.QM,{text:function(){return y().subtitle}})),_.F(_.w,{cond:function(){return y().disclaimers},
then:function(M){return _.F("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.F(_.eS,{each:M},function(K){return _.F("div",null,_.F(_.QM,{text:K}))}))}}),_.F("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.F(_.mk,{data:function(){return y().rows}},{lpOfferTableRowViewModel:function(M,K){return _.F(EV5,{data:M.data,
lpTableIsFirstRow:function(){return K()===0},
lpTableIsLastRow:function(){return K()===y().rows.length-1}})}})),_.F("div",{class:_.Oy((R["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return y().hasFooterBackground},R))},_.F(_.w,{cond:function(){return y().footer},
then:function(){return _.F("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.F(_.QM,{text:function(){return y().footer}}))}}),_.F(_.w,{cond:function(){return y().footerTitle},
then:function(){return _.F("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.F(_.QM,{text:function(){return y().footerTitle}}))}}),_.F(_.w,{cond:function(){return y().footerDescription},
then:function(){return _.F("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.F(_.QM,{text:function(){return y().footerDescription}}))}}))))},"wc");
$Xw.idomCompat=!0;var q2b=_.Jd(function(R){var y=R.data;var u=R.themeOverride;var v=_.ua().resolve(_.yN(_.u0)),Q=function(){var h;return u==null?void 0:(h=u())==null?void 0:h.useDarkTheme},M=function(){var h,b;
return v&&v()||Q()?(h=y().image)==null?void 0:h.imageDark:(b=y().image)==null?void 0:b.imageLight};
R={};R=_.Oy("ytm-lp-small-feature-section-view-model",(R["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=Q,R));var K=function(){var h,b,N;return(N=(h=y().image)==null?void 0:(b=h.accessibilityData)==null?void 0:b.label)!=null?N:""};
return _.F("ytm-lp-small-feature-section-view-model",{class:R},_.F(_.w,{cond:function(){return M()&&!uG},
then:function(){return _.F("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.F(_.MR,{data:function(){return M()},
alt:K,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.F("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.F("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.F(_.w,{cond:function(){return y().title},
then:function(h){return _.F(_.QM,{text:h})}})),_.F("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.F(_.QM,{text:function(){return y().description}}))))},"xc");
q2b.idomCompat=!0;var XDG=_.Jd(function(R){var y=R.data;var u=R.themeOverride;R={};return _.F("ytm-lp-small-feature-section-group-view-model",null,_.F("div",{class:_.Oy("ytm-lp-small-feature-section-group-view-model",(R["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(u==null||!u().useDarkTheme)},R))},_.F("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.F(_.mk,{data:function(){return y().smallFeatures}},{lpSmallFeatureSectionViewModel:function(v){return _.F("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.F(q2b,{data:v.data,
themeOverride:u}))}}))))},"yc");
XDG.idomCompat=!0;_.h6(_.Jd(function(R){var y=R.data;var u=function(){return y().forcedTheme==="USER_INTERFACE_THEME_DARK"},v=function(){return y().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},Q=function(){var K="",h,b;
var N=_.ua().resolve(_.yN(_.u0));N=u()||(N==null?0:N())?(h=y().themedImageViewModel)==null?void 0:h.imageDark:(b=y().themedImageViewModel)==null?void 0:b.imageLight;(h=KCc((N==null?void 0:N.sources)||[]))&&h.url&&(K=v()?"background-image: linear-gradient(to bottom, transparent, "+(y().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.Eo(h.url)+");":"background-image: url("+_.Eo(h.url)+");");return K},M=function(){return{useDarkTheme:u()}};
R={};return _.F("yt-section-group-view-model",null,_.F("div",{class:_.Oy("yt-lp-section-group-view-model",(R["yt-lp-section-group-view-model--premium-force-dark-mode"]=u,R["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return y().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},R))},_.F(_.w,{cond:function(){return Q().length},
then:function(){var K={};return _.F("div",{class:_.Oy("yt-lp-section-group-view-model__bg-image",(K["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=v,K)),style:Q})}}),_.F("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.F(_.mk,{data:function(){return y().sections}},{lpFaqSectionViewModel:function(K){return _.F(Z0i,{data:K.data,
themeOverride:M})},
lpHeaderSectionViewModel:function(K){return _.F(H0L,{data:K.data,themeOverride:M})},
lpHeadlineSectionViewModel:function(K){return _.F(nVg,{data:K.data,themeOverride:M})},
lpLargeFeatureSectionViewModel:function(K){return _.F(Gvg,{data:K.data,themeOverride:M})},
lpOfferCardSectionViewModel:function(K){return _.F(dXc,{data:K.data,themeOverride:M})},
lpComplexOfferCardSectionViewModel:function(K){return _.F(fmT,{data:K.data})},
lpOfferTableSectionViewModel:function(K){return _.F($Xw,{data:K.data,themeOverride:M})},
lpSmallFeatureSectionGroupViewModel:function(K){return _.F(XDG,{data:K.data,themeOverride:M})},
lpCouponBannerViewModel:function(K){return _.F(eyc,{data:K.data})}}))))},"zc"),"yt-section-group-view-model",{props:{data:_.vR}});var LzU=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.DZ=_.Jd(function(R){function y(){if(LzU.has(R.data().displayType)){var N=!v(),T;if((T=R.disableDeselection)==null||!T.call(R)||N){R.data().selected=N;T=Object.assign({},K(),{selected:N});h(T);var x;(x=R.callback)==null||x.call(R,T,N)}}}
var u=_.sh("chip-view-model"),v=function(){var N,T;return!!(((N=R.selected)==null?void 0:N.call(R))!==void 0?(T=R.selected)==null?0:T.call(R):K().selected)},Q=_.V(_.rW(R.data)),M=Q.next().value;
Q=Q.next().value;var K=M,h=Q,b=_.nA(YgG,function(){return R.data().chipEntityKey||""});
return _.F("chip-view-model",{class:"ytChipViewModelHost",el:u},_.F(x2i,{data:function(){var N,T=Object.assign({},K(),{selected:v()}),x=b(),B=(N=R.disableDeselection)==null?void 0:N.call(R);a:switch(T.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":N=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":N=3;break a;default:N=0}return{text:(x==null?void 0:x.text)||T.text,state:T.disabled?1:T.selected?0:2,type:N,onTap:s48(T,u,y,B),
accessibilityLabel:T.accessibilityLabel||T.text}}}))},"Ac");
_.DZ.idomCompat={callbacks:{callback:!0}};_.mX5=_.Jd(function(R){var y=_.nA(SgS,function(){var K;return(K=R.data())==null?void 0:K.chipBarStateEntityKey}),u=function(){return R.data().disableDeselection},v=_.V(_.rW(function(){var K;
if(((K=y())==null?void 0:K.selectedIndex)!=void 0)return y().selectedIndex;var h,b;K=_.V(((h=R.data())==null?void 0:(b=h.chips)==null?void 0:b.entries())||[]);for(h=K.next();!h.done;h=K.next()){h=_.V(h.value);b=h.next().value;h=h.next().value;var N=void 0;if((N=_.e(h,_.sc))==null?0:N.selected)return b}return-1})),Q=v.next().value,M=v.next().value;
return _.F("chip-bar-view-model",{class:_.Oy("ytChipBarViewModelHost",R.className),role:"tablist"},_.F(_.mk,{data:function(){return R.data().chips}},{chipViewModel:function(K,h){return _.F("div",{class:"ytChipBarViewModelChipWrapper"},_.F(_.DZ,{data:K.data,
selected:function(){return h()===Q()},
callback:function(b,N){b=!!N;N=h();M(b?N:-1);var T,x=(T=R.data())==null?void 0:T.chipBarStateEntityKey;x&&b&&_.vy(_.Gw("chipBarStateEntity",x,{key:x,selectedIndex:N}))},
disableDeselection:R.disableDeselection||u}))}}))},"Bc");_.h6(_.mX5,"chip-bar-view-model",{props:{data:_.IC,className:_.IC,disableDeselection:_.IC}});_.AEG=_.Jd(function(R){var y=R.data;R={};return _.F("divider-view-model",{class:_.Oy("divider-view-model-wiz",(R["divider-view-model-wiz__inset-thin-padding"]=function(){return y().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},R))},_.F("div",{class:_.Oy("divider-view-model-wiz__base-divider",function(){return zKT(y().dividerStyle)}),
style:_.P_({"background-color":function(){return y().backgroundColor?_.aH(y().backgroundColor):void 0}})}))},"Cc");
_.AEG.idomCompat=!0;_.h6(_.AEG,"divider-view-model",{props:{data:_.vR}});var Uz=new Map,d$=new Map,ROc=0,kY;var JbO=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],Kov={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var DX8,pDc;DX8=function(R){return function(y){return function(){return String(y())+R}}};
_.p5=DX8("px");pDc=DX8("s");var cEg=_.Jd(function(R){function y(a){return function(){var L=l().numItemsPerGridRow,QG=a()*L;L=QG+L;var hz,bO;return(bO=(hz=v().contents)==null?void 0:hz.slice(QG,L))!=null?bO:[]}}
var u=_.jb(R,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),v=u.data,Q=u.layoutContainerWidth,M=u.shouldUseOwnContainerSize,K=u.marginSettings;u=_.V(_.In(!0,void 0,"qgr2Je"));var h=u.next().value,b=u.next().value,N=function(){var a,L=(a=_.e(v().showMoreButton,_.k9))==null?void 0:a.trackingParams;L&&_.e2(_.GN(),L);b(!1)},T=function(){var a,L=(a=_.e(v().showLessButton,_.k9))==null?void 0:a.trackingParams;
L&&_.e2(_.GN(),L);b(!0)};
u=_.sh("grid-shelf-view-model");var x=_.hO8(u,{canHaveZeroSize:!1}),B=function(){var a;return(a=v().contentAspectRatio)!=null?a:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},l=_.N8(function(){var a=_.Ry({containerWidth:M()&&x.width()>0?x.width()||Q():Q(),
sizing:"EXTRA_COMPACT",marginSettings:K(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:a.maxContainerWidth,numItemsPerGridRow:a.numItems,contentPadding:M()?a.margin:a.contentMargin,itemWidth:a.itemWidth,itemMargin:a.gutter/2}},void 0,"pqVdjc"),Z=function(){if(v().enableVerticalExpansion){if(h())return P();
var a,L,QG=(L=(a=v().contents)==null?void 0:a.length)!=null?L:0;return Math.ceil(QG/l().numItemsPerGridRow)}return l().numItemsPerGridRow<=2?2:1},P=function(){var a;
return Math.ceil(((a=v().minCollapsedItemCount)!=null?a:1)/l().numItemsPerGridRow)},k=function(){return v().enableVerticalExpansion&&v().showLessButton&&!h()&&Z()>P()},E=function(){var a,L;
return v().enableVerticalExpansion&&v().showMoreButton&&h()&&((L=(a=v().contents)==null?void 0:a.length)!=null?L:0)>l().numItemsPerGridRow*P()},D=function(){return!k()},z=function(){return!E()},c={};
return _.F("grid-shelf-view-model",{class:_.Oy("ytGridShelfViewModelHost",R.className,(c.ytGridShelfViewModelHostHasBottomButton=function(){return k()||E()},c)),
el:u,style:_.P_({"margin-left":(0,_.p5)(function(){return l().contentPadding}),
"margin-right":(0,_.p5)(function(){return l().contentPadding})})},_.F(_.w,{cond:function(){return _.e(v().header,Vu5)},
then:function(a){return _.F(_.f5,{data:a,disableHorizontalPadding:!0})}}),_.F("div",null,_.F(_.eS,{each:function(){return Array(Z())}},function(a,L){return _.F(tsc,{className:R.className,
items:y(L),responsiveGridShelfLayout:l,contentAspectRatio:B})})),_.F("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.F(_.mk,{data:function(){return v().showMoreButton}},{buttonViewModel:function(a){return _.F("div",{hidden:z},_.F(_.fQ,{data:a.data,
onClick:N}))}}),_.F(_.mk,{data:function(){return v().showLessButton}},{buttonViewModel:function(a){return _.F("div",{hidden:D},_.F(_.fQ,{data:a.data,
onClick:T}))}})))},"Dc");
cEg.idomCompat=!0;var tsc=_.Jd(function(R){var y=R.items;var u=R.responsiveGridShelfLayout;var v=R.contentAspectRatio;R=R.className;var Q=_.sh("div");CMO(Q,function(){a:{var K=Q.value;for(var h=y(),b=[],N=0;N<h.length;N++){var T=_.e(h[N],Xec);if(!T||T==null||!T.inlinePlayerData){K=null;break a}var x=K.children.item(N);if(!x){K=null;break a}b.push({thumbnailElement:x,videoData:T})}K={gridVideoPreviewData:{gridItems:b}}}return K});
var M=(0,_.p5)(function(){return-u().itemMargin});
return _.F("div",{el:Q,class:_.Oy("ytGridShelfViewModelGridShelfRow",R),style:_.P_({"margin-left":M,"margin-right":M})},_.F(_.mk,{data:y,replacementWrapper:function(K){return _.F(amg,{responsiveGridShelfLayout:u},K)}},{shortsLockupViewModel:function(K){return _.F(amg,{responsiveGridShelfLayout:u},_.F(Hng,{data:K.data,
aspectRatio:function(){return v()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"Ec"),amg=_.Jd(function(R){return _.F("div",{style:_.P_({width:(0,_.p5)(function(){return R.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+R.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},R.children)},"Fc");
cEg.idomCompat=!0;_.h6(cEg,"grid-shelf-view-model",{props:{data:_.vR,layoutContainerWidth:_.vR,shouldUseOwnContainerSize:_.vR,marginSettings:_.vR,className:_.vR}});_.S25=_.Jd(function(R){var y=_.V(_.In(!1,void 0,"YYtxR")),u=y.next().value,v=y.next().value;y={};return _.F("yt-alert-banner-view-model",{class:_.Oy("ytAlertBannerViewModelHost",R.className,function(){var Q;a:switch((Q=R.data())==null?void 0:Q.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":Q="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":Q="ytAlertBannerViewModelWarning";break a;default:Q="ytAlertBannerViewModelInformational"}return Q},(y.ytAlertBannerViewModelDismissed=
u,y.ytAlertBannerViewModelFullbleed=R.fullbleed,y.ytAlertBannerViewModelNarrow=R.narrow,y.ytAlertBannerViewModelIsInRichGrid=R.isInRichGrid,y))},_.F(_.w,{cond:function(){var Q;
return!((Q=R.data())==null?0:Q.hideIcon)},
then:function(){return _.F("div",{class:"ytAlertBannerViewModelIcon"},_.F(_.W_,{icon:function(){return"info_circle"}}))}}),_.F("div",{class:"ytAlertBannerViewModelOuterContainer"},_.F("div",{class:"ytAlertBannerViewModelContainer"},_.F("div",{class:"ytAlertBannerViewModelContent"},_.F("div",{class:"ytAlertBannerViewModelHeading"},_.F(_.QM,{text:function(){var Q;
return(Q=R.data())==null?void 0:Q.heading}})),_.F("div",{class:"ytAlertBannerViewModelBody"},_.F(_.QM,{text:function(){var Q;
return(Q=R.data())==null?void 0:Q.body}})))),_.F(_.mk,{data:function(){var Q;
return(Q=R.data())==null?void 0:Q.actionButton}},{buttonViewModel:function(Q){return _.F(_.fQ,{data:Q.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.F(_.mk,{data:function(){var Q;
return(Q=R.data())==null?void 0:Q.dismissButton}},{buttonViewModel:function(Q){return _.F(_.fQ,{data:Q.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var M;((M=R.data())==null?0:M.disableLocalDismissBehavior)||v(!0)}})}}))},"Gc");_.h6(_.S25,"yt-alert-banner-view-model",{props:{data:_.vR,fullbleed:_.vR,narrow:_.vR,isInRichGrid:_.vR,className:_.vR}});var bS4=_.UC({chipViewModel:_.DZ,buttonViewModel:_.fQ});_.Qn(FoO);var Y2V;Y2V=_.Jd(function(R){var y=R.data;var u=R.callback;var v=R.enableSingleChipSelection;var Q=R.disableChipsScrollAnimation;var M=_.zp("div");R=_.V(_.In(!0,void 0,"ULL8g"));var K=R.next().value,h=R.next().value;R=_.V(_.In(!1,void 0,"cWhQn"));var b=R.next().value,N=R.next().value,T=!1,x=0;_.nG(function(){h(Z());N(P())});
R=_.V(_.rW(function(){var QG={};return y().autoselectedChipIndex!=null?(QG[y().autoselectedChipIndex]=!0,QG):{}}));
var B=R.next().value,l=R.next().value,Z=function(){var QG=M.value;return QG==null||QG.scrollLeft-1<=0},P=function(){var QG=M.value;
return QG==null?!1:QG.scrollLeft+1>=(QG==null?NaN:QG.scrollWidth)-(QG==null?NaN:QG.clientWidth)},k=function(){return y().isHorizontallyScrollable},E=function(QG){M.value!=null&&(_.EB("HTML_DIR")==="rtl"&&(QG=-QG),M.value.scrollBy({left:QG,
behavior:(Q==null?0:Q())?"instant":"smooth"}))},D=function(){E(-320)},z=function(){E(320)},c=_.nh(function(QG){T=!0;
x=QG.clientX}),a=_.nh(function(QG){if(T){QG=QG.clientX;
var hz=QG-x;x=QG;var bO;(bO=M.value)==null||bO.scrollBy({left:-hz})}}),L=_.nh(function(){var QG=Z(),hz=P();
QG!==K()&&h(QG);hz!==b()&&N(hz)});
yn("pointerup",function(){T&&(T=!1)});
return _.F("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.F(_.wb,{contentId:function(){return y().contentId},
useModernStyle:!0},function(){var QG={},hz={};return _.F("div",null,_.F(_.w,{cond:function(){return y().title},
then:function(){return _.F("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.F("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return y().title}),_.F(_.mk,{data:function(){return y().overflowButton}},{buttonViewModel:_.fQ}))}}),_.F("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.F(_.w,{cond:function(){return y().previousButton},
then:function(){var bO={};return _.F("div",{class:_.Oy("ytChipsShelfViewModelLeftArrowContainer",(bO.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return K()},bO))},_.F(_.mk,{data:function(){return y().previousButton}},{buttonViewModel:function(BW){return _.F(_.fQ,{data:BW.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:D})}}))}}),_.F("div",{el:M,
"on:pointerdown":c,"on:pointermove":a,"on:scroll":L,class:_.Oy("ytChipsShelfViewModelChipsScrollContainer",(QG.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=k,QG))},_.F("div",{class:_.Oy("ytChipsShelfViewModelChipsContainer",(hz.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=k,hz.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,hz)),role:"tablist"},_.F(_.mk,{data:function(){return y().contents}},{chipViewModel:function(bO,BW){return _.F("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.F(_.DZ,{data:bO.data,
callback:function(Zc,xS){var Dc=BW();if(v==null?0:v()){var $S={};l(($S[Dc]=xS,$S))}else $S={},l(Object.assign({},B(),($S[Dc]=xS,$S)));u==null||u(Zc,xS,Dc)},
disableDeselection:v,selected:function(){return!!B()[BW()]}}))}}))),_.F(_.w,{cond:function(){return y().nextButton},
then:function(){var bO={};return _.F("div",{class:_.Oy("ytChipsShelfViewModelRightArrowContainer",(bO.ytChipsShelfViewModelRightArrowContainerIsHidden=b,bO))},_.F(_.mk,{data:function(){return y().nextButton}},{buttonViewModel:function(BW){return _.F(_.fQ,{data:BW.data,
className:"ytChipsShelfViewModelRightArrow",onClick:z})}}))}})))}))},"Hc");
_.LZ5=_.f("enable_chips_shelf_view_model_fully_reactive")?Y2V:_.H_(FoO,{callbacks:{callback:!0}});Y2V.idomCompat={callbacks:{callback:!0}};_.h6(_.LZ5,"chips-shelf-view-model",{props:{data:_.vR,callback:_.IC,enableSingleChipSelection:_.vR,disableChipsScrollAnimation:_.vR}});var s9b=_.Jd(function(R){R=_.jb(R,{disabled:!1});var y=R.active,u=R.disabled;R={};R=_.Oy("ytSwitchShapeTrack",(R.ytSwitchShapeTrackActive=function(){return y()},R.ytSwitchShapeTrackDisabled=function(){return u()},R));
var v={};v=_.Oy("ytSwitchShapeKnob",(v.ytSwitchShapeKnobActive=function(){return y()},v));
return _.F("switch-shape",{class:"ytSwitchShapeHost"},_.F("div",{class:R}),_.F("div",{class:v}))},"Ic");var zyw=_.Jd(function(R){var y=_.jb(R,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),u=y.data;R=y.className;var v=y.handleOnTapEventInParent,Q=y.parentActive;y=_.V(_.rW(function(){var x;return(x=Q())!=null?x:u().switchedOnByDefault||!1}));
var M=y.next().value,K=y.next().value,h=function(){return u().isDisabled},b=_.sh("button");
y=_.nh(function(x){return x.key==="Enter"?(x.preventDefault(),b.value.click(),!1):!0});
var N=_.nh(function(x){if(u().handleOnTapEventInParent||v())return!0;if(h())return!1;NAS(u(),M(),x);K(!M());return!1}),T={};
T=_.Oy("ytSwitchButtonViewModelButton",(T.ytSwitchButtonViewModelTappable=function(){return!h()},T));
return _.F("switch-button-view-model",{class:_.Oy("ytSwitchButtonViewModelHost",R)},_.F("button",{el:b,class:T,"on:click":N,"on:keydown":y,"aria-label":function(){return M()?u().a11yLabelSwitchedOn:u().a11yLabelSwitchedOff},
"aria-checked":M,"aria-disabled":h,role:"switch"},_.F(s9b,{active:M,disabled:h})))},"Jc");var gV5=_.Jd(function(R){var y=R.data;var u=R.isLeading;var v=R.hideSelectionTextChevron;var Q=R.isToggled;var M=function(){return u()?y().leadingImage:y().trailingImage},K=function(){a:switch(y().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var T="expand_more";
break a;default:T="chevron_right"}return T};
R={};var h=_.Oy("yt-list-item-view-model-wiz__image-container",(R["yt-list-item-view-model-wiz__leading"]=u,R["yt-list-item-view-model-wiz__trailing"]=function(){return!u()},R)),b=_.Oy("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
R={};var N=_.Oy("yt-list-item-view-model-wiz__accessory",(R["yt-list-item-view-model-wiz__leading"]=u,R["yt-list-item-view-model-wiz__trailing"]=function(){return!u()},R));
return _.F(_.w,{cond:function(){var T=y(),x=u();return!!(x&&(T.leadingImage||T.leadingAccessory)||!x&&(T.trailingImage||T.trailingButton||T.trailingButtons||T.selectionText))},
then:function(){return _.F(_.vu,null,_.F(_.w,{cond:M,then:function(T){return _.F("div",{class:h,"aria-hidden":"true"},_.F(_.MR,{data:T,alt:"",preserveWidth:!0,preserveHeight:!0,className:b,isToggled:Q}))}}),_.F(_.w,{cond:function(){return u()&&y().leadingAccessory},
then:function(){return _.F("div",{class:h},_.F(_.mk,{data:function(){return y().leadingAccessory}},{avatarViewModel:function(T){return _.F(_.XS,{data:T.data,
avatarButtonCustomClassName:b})},
collectionThumbnailViewModel:function(T){return _.F(org,{data:T.data,maxHeight:36,includeStackHeight:!0})}}))}}),_.F(_.w,{cond:function(){return!u()&&y().trailingButton},
then:function(){return _.F("div",{class:"yt-list-item-view-model-wiz__button-container"},_.F(_.mk,{data:function(){return y().trailingButton}},{buttonViewModel:function(T){return _.F(_.fQ,{data:T.data,
className:N})}}))}}),_.F(_.w,{cond:function(){var T;
return!u()&&((T=y().trailingButtons)==null?void 0:T.buttons)},
then:function(){return _.F("div",{class:"yt-list-item-view-model-wiz__button-container"},_.F(_.mk,{data:function(){var T;return(T=y().trailingButtons)==null?void 0:T.buttons}},{buttonViewModel:function(T){return _.F(_.fQ,{data:T.data,
className:N})},
accountLinkButtonViewModel:function(T){return _.F(hjY,{data:T.data,className:N})},
switchButtonViewModel:function(T){return _.F(zyw,{data:T.data,className:N})},
subscribeButtonViewModel:function(T){return _.F(_.$x,{data:T.data,isOverlay:!1,animateWidth:!1,className:N})},
toggleButtonViewModel:function(T){return _.F(_.$1,{data:T.data,className:N})}}))}}),_.F(_.w,{cond:function(){return!u()&&!!y().selectionText},
then:function(){return _.F(_.vu,null,_.F(_.QM,{text:function(){return y().selectionText},
className:_.Oy("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.F(_.w,{cond:function(){return!(v==null?0:v())},
then:function(){return _.F(_.W_,{icon:K,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Kc");var CU8=_.Jd(function(R){var y=R.data;return _.F(_.w,{cond:function(){return y().title||y().subtitle},
then:function(){return _.F("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.F(_.w,{cond:function(){return y().title},
then:function(u){return _.F("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.F(_.QM,{text:u,className:"yt-list-item-view-model-wiz__title"}))}}),_.F(_.w,{cond:function(){return y().subtitle},
then:function(u){return _.F(_.QM,{text:u,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Lc");var tu=_.Jd(function(R){var y=R.data;var u=R.hideSelectionTextChevron;var v=R.TrailingAccessory;var Q=R.isToggled;var M=R.disabled;var K=R.isSelectItem;var h=R.isCompact;var b=R.inPopup;var N=R.disableHorizontalPadding;R=R.isTappableWithoutSelect;var T={};return _.F("div",{class:_.Oy("yt-list-item-view-model-wiz__label",(T["yt-list-item-view-model-wiz__container"]=function(){return!(K==null?0:K())},T["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!y().isDisabled||!(M==null||
!M())},T["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!y().subtitle},T["yt-list-item-view-model-wiz__container--compact"]=h,T["yt-list-item-view-model-wiz__container--tappable"]=R,T["yt-list-item-view-model-wiz__container--in-popup"]=b,T["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(N==null?void 0:N())&&!(K==null?0:K())},T))},_.F(gV5,{data:y,
isLeading:!0,hideSelectionTextChevron:u,isToggled:Q}),_.F(CU8,{data:y}),_.F(_.w,{cond:function(){return!!v},
then:function(){return _.F("div",{class:"yt-list-item-view-model-wiz__trailing"},v&&_.F(v,null))},
else:function(){return _.F(gV5,{data:y,isLeading:!1,hideSelectionTextChevron:u,isToggled:Q})}}))},"Mc");var yHg=_.Jd(function(R){var y=_.jb(R,{checked:!1});R=y.name;var u=y.onChange,v=y.onClick,Q=y.checked,M=y.labelRenderable,K=y.hasLeadingLabel,h=y.labelClass,b=y.isCompact,N=y.selectElementClass;y=y.disableHorizontalPadding;var T="checkbox"+_.mR(_.Au),x=_.nh(function(Z){v==null||v(Z);return!1}),B=_.nh(function(Z){u==null||u(Z);
return!1}),l={};
return _.F("checkbox-shape",null,_.F("label",{class:_.Oy("checkbox-shape-wiz",h,(l["checkbox-shape-wiz--compact"]=b,l["checkbox-shape-wiz--disable-horizontal-padding"]=y,l))},_.F("input",{class:"checkbox-shape-wiz__input",id:T,checked:Q,name:R,type:"checkbox","prop:checked":Q,"on:change":B,"on:click":x}),_.F(_.w,{cond:function(){return!(K==null?0:K())},
then:function(){return _.F(RGg,{isLeading:!0,selectElementClass:N})}}),_.F(_.w,{cond:function(){return!!M},
then:function(){return _.F("div",{class:"checkbox-shape-wiz__label"},M==null?void 0:M())}}),_.F(_.w,{cond:K,
then:function(){return _.F(RGg,{isLeading:!1,selectElementClass:N})}})))},"Nc");
yHg.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var RGg=_.Jd(function(R){var y=R.selectElementClass;R={};return _.F("div",{class:_.Oy("checkbox-shape-wiz__checkbox",y,(R["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(y==null?0:y())},R)),
"aria-hidden":"true"},_.F(_.W_,{icon:_.f("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.F(_.W_,{icon:_.f("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Oc");_.cw=_.Jd(function(R){var y=R.name;var u=R.onChange;var v=R.onClick;var Q=R.checked;var M=R.labelRenderable;var K=R.useCheckIcon;var h=R.hasLeadingLabel;var b=R.labelClass;var N=R.isCompact;var T=R.selectElementClass;var x=R.ariaLabel;R=R.className;var B="radio"+_.mR(_.Au),l=_.sh("input"),Z=_.nh(function(a){l.value.checked=!(Q==null||!Q());u==null||u(a);return!1}),P=_.nh(function(a){v==null||v(a);
return!1}),k=_.V(_.In(!1,void 0,"v5AMrb")),E=k.next().value,D=k.next().value;
k=_.nh(function(){var a;((a=_.ua().resolve(_.yN(_.Ti)))==null?0:a.isKeyBoardInUse())&&D(!0)});
var z=_.nh(function(){D(!1)}),c={};
return _.F("radio-shape",{class:_.Oy("radio-shape-wiz",R)},_.F("input",{el:l,class:"radio-shape-wiz__input",id:B,"prop:checked":Q,name:y,type:"radio","on:change":Z,"on:click":P,"aria-label":x,"on:focusin":k,"on:focusout":z}),_.F("label",{class:_.Oy("radio-shape-wiz__label-container",b,(c["radio-shape-wiz--compact"]=N,c["radio-shape-wiz__label-container--keyboard-focused"]=E,c)),for:B},_.F(_.w,{cond:function(){return!(h==null?0:h())},
then:function(){return _.F(u7Y,{checked:Q,useCheckIcon:K,isLeading:!0,selectElementClass:T})}}),_.F(_.w,{cond:function(){return!!M},
then:function(){return _.F("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(x==null?0:x())?"true":"false"}},M==null?void 0:M())}}),_.F(_.w,{cond:h,
then:function(){return _.F(u7Y,{checked:Q,useCheckIcon:K,isLeading:!1,selectElementClass:T})}})))},"Pc");
_.cw.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var u7Y=_.Jd(function(R){var y=R.useCheckIcon;var u=R.selectElementClass;R=function(){return(y==null?0:y())?"CHECK":_.f("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var v={};return _.F("div",{class:_.Oy("radio-shape-wiz__radio",u,(v["radio-shape-wiz__radio--check-icon"]=y,v["radio-shape-wiz__radio--radio-default-style"]=function(){return!(u==null?0:u())},v)),
"aria-hidden":"true"},_.F(_.W_,{icon:R}),_.F(_.W_,{icon:R,active:function(){return!(y==null?0:y())}}))},"Qc");_.aY=_.Jd(function(R){var y=R.data;var u=R.isMenuItem;var v=R.isCompact;var Q=R.onTap;var M=R.trailingAccessory;var K=R.hideSelectionTextChevron;var h=R.disabled;var b=R.inPopup;var N=R.disableHorizontalPadding;var T=R.isOverlay;R=R.isToggled;var x=_.Sp(function(hz){a:{var bO=y();if((bO==null?0:bO.entitySelectorType)&&(bO==null?0:bO.entityKey))switch(bO.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":hz=_.b3T(hz,bO.entityKey);hz=hz==null?void 0:
hz.value;bO=!1;hz==="CAPTIONS_UNAVAILABLE"&&(bO=!0,hz="");hz=Object.assign({},!!hz&&{selectionText:{content:hz}},!!hz&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:bO});break a;default:hz={}}else hz={}}return hz}),B=function(){return _.f("enable_web_shorts_captions_language_command")?Object.assign({},y(),x()):y()},l=function(){return!(B().isSelected===void 0||!B().selectionStyle||B().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},Z=function(){return(_.So(B().rendererContext)||
Q)&&!l()},P={},k=_.Oy("yt-list-item-view-model-wiz__container",(P["yt-list-item-view-model-wiz__container--tappable"]=function(){return _.So(B().rendererContext)||l()},P["yt-list-item-view-model-wiz__container--compact"]=v,P["yt-list-item-view-model-wiz__container--in-popup"]=b,P["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(N==null?void 0:N())&&l()},P)),E=function(){return B().leadingImage||B().leadingAccessory},D=_.Oy("yt-list-item-view-model-wiz__image-container",
function(){return E()?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"});
P=_.nh(function(hz){return void(Q==null?void 0:Q(hz))});
var z=_.cgU(),c=_.V(_.In(!1,void 0,"iQppzc")),a=c.next().value,L=c.next().value,QG={data:B,hideSelectionTextChevron:K,TrailingAccessory:M,isToggled:R,disabled:h,isSelectItem:l,isCompact:v,inPopup:b,disableHorizontalPadding:N,isTappableWithoutSelect:Z};M={};return _.F("yt-list-item-view-model",{el:_.VX(_.Y9(function(){return B().rendererContext}),jtU(function(){return Z==null?void 0:Z()},{focusin:function(){var hz;
((hz=_.ua().resolve(_.yN(_.Ti)))==null?0:hz.isKeyBoardInUse())&&L(!0)},
focusout:function(){L(!1)}})),
class:_.Oy("yt-list-item-view-model-wiz",(M["yt-list-item-view-model-wiz--is-overlay"]=T,M["yt-list-item-view-model-wiz--keyboard-focused"]=a,M)),role:function(){return(u==null?0:u())?"menuitem":"listitem"},
tabindex:function(){var hz=Z();return Q||hz?0:void 0},
"on:keydown":z,"on:click":P},_.F(_.w,{cond:l,then:function(){return _.F(_.Z6,null,_.F(_.lr,{when:function(){return B().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.F(yHg,{labelRenderable:function(){return _.F(tu,Object.assign({},QG))},
isCompact:v,checked:function(){return B().isSelected},
hasLeadingLabel:function(){return!!E()},
labelClass:k,selectElementClass:D,disableHorizontalPadding:N})}),_.F(_.lr,{when:function(){return B().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.F(_.cw,{labelRenderable:function(){return _.F(tu,Object.assign({},QG))},
isCompact:v,checked:function(){return B().isSelected},
hasLeadingLabel:function(){return!!E()},
labelClass:k,selectElementClass:D})}),_.F(_.lr,{when:function(){return B().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.F(_.cw,{labelRenderable:function(){return _.F(tu,Object.assign({},QG))},
isCompact:v,checked:function(){return B().isSelected},
hasLeadingLabel:function(){return!!E()},
labelClass:k,selectElementClass:D,useCheckIcon:!0})}),_.F(_.OB,null,function(){return _.F(tu,Object.assign({},QG))}))},
else:function(){return _.F(tu,Object.assign({},QG))}}))},"Rc");
_.aY.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.vAc=_.Jd(function(R){var y=R.data;var u=R.onTap;var v=R.onSwitch;var Q=R.overrideDisabled;R=R.disableHorizontalPadding;var M=_.V(_.rW(function(){var x;return((x=o44(T()))==null?void 0:x.switchedOnByDefault)||!1})),K=M.next().value,h=M.next().value;
M=_.V(_.In(!1,void 0,"ZHBkbb"));var b=M.next().value,N=M.next().value,T=function(){var x;if(!(x=y().switchButton)){var B=y();x=Q==null?void 0:Q();B={switchOnCommand:B.switchOnCommand,switchOffCommand:B.switchOffCommand,switchedOnByDefault:B.switchedOnByDefault,isDisabled:B.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:B.a11yLabelSwitchedOn,a11yLabelSwitchedOff:B.a11yLabelSwitchedOff};x!==void 0&&(B.isDisabled=x);x={switchButtonViewModel:B}}return x};
return _.F("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.F(_.aY,{data:function(){return{title:y().title,subtitle:y().attributedSubtitle,leadingImage:y().leadingImage,leadingAccessory:y().leadingAccessory,isDisabled:y().isDisabled}},
onTap:function(x){var B=o44(T());!B||B.isDisabled||y().ignoreTapUntilCommandCompletes&&b()||(u==null||u(x),NAS(B,K(),x,y().ignoreTapUntilCommandCompletes,N),h(!K()),v==null||v(K()))},
trailingAccessory:function(){return _.F(_.mk,{data:T},{switchButtonViewModel:function(x){return _.F(zyw,{data:x.data,parentActive:K,handleOnTapEventInParent:!!u})}})},
disableHorizontalPadding:R}))},"Sc");var Qli=_.Jd(function(R){var y=_.V(_.rW(function(){var Q,M;return!!((Q=R.data())==null?0:(M=Q.initialState)==null?0:M.isToggled)})),u=y.next().value,v=y.next().value;
y=_.nh(function(){v(!u())});
return _.F("toggleable-list-item-view-model",{el:_.VX(_.Y9(function(){return R.data().rendererContext})),
class:_.Oy("toggleableListItemViewModelHost",R.className),"on:click":y},_.F(_.w,{cond:function(){if(u()){var Q=R.data().toggledListItem;Q=_.e(Q,_.Pm)}else Q=R.data().defaultListItem,Q=_.e(Q,_.Pm);return Q},
then:function(Q){return _.F(_.aY,{data:Q,isToggled:u,ariaLabel:function(){var M=u()?R.data().toggledListItem:R.data().defaultListItem,K;M=(K=_.e(M,_.Pm))==null?void 0:K.rendererContext;var h;return(h=_.e(M,_.GC))==null?void 0:h.label},
ariaPressed:function(){return u()}})}}))},"Tc");var jlY=_.fo("DOWNLOAD",{},"Download"),MNG=_.fo("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),JHg=_.fo("RETRY",{},"Retry"),VNK=_.fo("PAUSE_DOWNLOADING",{},"Pause downloading"),iag=_.fo("RESUME_DOWNLOAD",{},"Resume download"),xDW={text:jlY,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},Ez={text:MNG,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},eOE={text:JHg,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
BAv={text:VNK,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},f$E={text:iag,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var KJT=_.Jd(function(R){var y=function(){var h=R.data();h=_.a8(h.rendererContext);var b;return(b=_.e(h,_.OC))==null?void 0:b.videoId},u=_.Sp(function(h){var b=y(),N=ZST(R.data());
return b?_.pz(h,b):N?_.tN(h,N):"TRANSFER_STATE_UNKNOWN"}),v=_.nA(_.ynE,y),Q=_.Sp(function(h){return _.YTv(h,y(),ZST(R.data()))}),M=function(){return OSP(u(),v(),_.a8(R.data().rendererContext),!!ZST(R.data()))},K=function(){return Q()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.F("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:K},_.F(_.w,{cond:function(){return!K()},
then:function(){return _.F(_.w,{cond:M,then:function(h){return _.F(_.eS,{each:h},function(b){return _.F(_.aY,{data:b,isCompact:R.isCompact,isMenuItem:R.isMenuItem,inPopup:R.inPopup,disableHorizontalPadding:R.disableHorizontalPadding})})}})}}))},"Uc");
KJT.idomCompat=!0;_.Ik8=_.Jd(function(R){var y=R.data;var u=R.isCompact;var v=R.hideSelectionTextChevron;var Q=R.inPopup;var M=R.isOverlay;var K=R.disableHorizontalPadding;var h=function(){return HSL(y())&&(Q==null?void 0:Q())};
R={};return _.F("yt-list-view-model",{class:_.Oy("yt-list-view-model-wiz",(R["yt-list-view-model-wiz--kaios-spat-nav"]=uG&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",R["yt-list-view-model-wiz__collection-thumbnail-class"]=function(){return rbU(y())},R)),
role:function(){return h()?"menu":"list"},
style:_.P_({"max-height":function(){var b,N=(b=y())==null?void 0:b.visibleElementCount;if(N)return rbU(y())?(N+.5)*48+"px":(N+.5)*40+"px"}})},_.F(_.mk,{data:function(){return y().listItems}},{listItemViewModel:function(b){return _.F(_.aY,{data:b.data,
isMenuItem:h,isCompact:u,hideSelectionTextChevron:v,inPopup:Q,isOverlay:M,disableHorizontalPadding:K})},
toggleableListItemViewModel:function(b){return _.F(Qli,{data:b.data})},
downloadListItemViewModel:function(b){return _.F(KJT,{data:b.data,isMenuItem:h,isCompact:u,inPopup:Q,disableHorizontalPadding:K})},
switchListItemViewModel:function(b){return _.F(_.vAc,{data:b.data,disableHorizontalPadding:K})}}))},"Vc");
_.Ik8.idomCompat=!0;var hGi=_.Jd(function(R){var y=R.data;var u=R.isOverlay;R={};return _.F("yt-course-perks-view-model",{class:_.Oy("ytwCoursePerksViewModelHost",(R.ytwCoursePerksViewModelHostOverlay=u,R))},_.F("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.F(_.QM,{text:function(){return y().title}})),_.F("div",null,_.F(_.w,{cond:function(){return y().perks},
then:function(v){return _.F(_.Ik8,{data:function(){return{listItems:v()}},
isCompact:!0,isOverlay:u})}})))},"Wc");_.h6(hGi,"yt-course-perks-view-model",{props:{data:_.IC,isOverlay:_.IC}});_.h6(_.Jd(function(R){var y=R.data;return _.F("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.F("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.F(_.QM,{text:function(){return y().title}})),_.F("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.F(_.QM,{text:function(){return y().progressSummary}})),_.F("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.F("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.P_({width:function(){return y().progressPercentage*100+"%"}})})))},"Xc"),"yt-course-progress-view-model",{props:{data:_.vR}});var baV=_.Jd(function(R){var y={};return _.F("yt-progress-view-model",{class:_.Oy("ytwProgressViewModelHost",(y.ytwProgressViewModelHostOverlay=_.Qj(R.isOverlay,!1),y))},_.F(_.w,{cond:function(){return R.data().progressSummary},
then:function(u){return _.F("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.F(_.QM,{text:u}))}}),_.F("div",{class:"ytwProgressViewModelHostProgressContainer"},_.F(_.w,{cond:function(){return R.data().leadingLabel},
then:function(u){return _.F("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.F(_.QM,{text:u}))}}),_.F("div",{class:"ytwProgressViewModelHostProgressBar"},_.F("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(R.data().progressPercentage||0)*100+"%"}}))))},"Yc");var SO=_.Jd(function(R){var y=R.starNumber;var u=R.data;var v=function(){var Q;return((Q=u())==null?void 0:Q.rating)||0};
return _.F(_.w,{cond:function(){return y()},
then:function(Q){return _.F(_.Z6,null,_.F(_.lr,{when:function(){return v()>=Q()-.25}},function(){return _.F("div",{class:"ytStarRatingViewModelHostStar"},_.F(_.W_,{icon:"STAR_FILLED"}))}),_.F(_.lr,{when:function(){return v()>=Q()-.75}},function(){return _.F("div",{class:"ytStarRatingViewModelHostStar"},_.F(_.W_,{icon:"STAR_HALF"}))}),_.F(_.OB,null,function(){return _.F("div",{class:"ytStarRatingViewModelHostStar"},_.F(_.W_,{icon:"STAR_BORDER"}))}))}})},"Zc"),FJi=_.Jd(function(R){R=R.data;
return _.F("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.F(SO,{starNumber:1,data:R}),_.F(SO,{starNumber:2,data:R}),_.F(SO,{starNumber:3,data:R}),_.F(SO,{starNumber:4,data:R}),_.F(SO,{starNumber:5,data:R}))},"$c");_.h6(_.Jd(function(R){var y=_.jb(R,{}).data;return _.F("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.F("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.F(_.QM,{text:function(){var u;return(u=y())==null?void 0:u.title}})),_.F("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.F(_.w,{cond:function(){return y().starProgressViewModels},
then:function(u){return _.F("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.F(_.mk,{data:u},{progressViewModel:baV}))}}),_.F("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.F("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.F(_.QM,{text:function(){var u;
return(u=y())==null?void 0:u.averageRatingLabel}})),_.F(_.w,{cond:function(){return y().zeroStateText},
then:function(u){return _.F("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.F(_.QM,{text:u}))}}),_.F(_.w,{cond:function(){return y().starRatingViewModel},
then:function(u){return _.F("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.F(_.mk,{data:u},{starRatingViewModel:FJi}))}}),_.F("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.F(_.QM,{text:function(){var u;
return(u=y())==null?void 0:u.totalRatingsCountLabel}})))))},"ad"),"yt-course-ratings-view-model",{props:{data:_.IC}});var w6Y;w6Y={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"}};_.Ne8=_.Jd(function(R){var y=_.sh("yt-learning-journey-loader-view-model"),u=_.eo();_.nG(function(){requestAnimationFrame(function(){var Q;(Q=u.lottieEl)==null||Q.addEventListener("DOMLoaded",function(){var M;(M=R.onLottieLoaded)==null||M.call(R)})});
var v=R.data().browseEndpoint;v&&_.zN(v)});
return _.F("yt-learning-journey-loader-view-model",{class:_.Oy("learningJourneyLoaderViewModelHost",R.className),"data-target-id":function(){var v;return((v=R.data)==null?void 0:v.call(R).targetId)||""},
el:y},_.F(_.F2,{className:_.Oy("learningJourneyLoaderViewModelLoader",R.className),animationName:function(){return w6Y.animationConfig.name},
data:w6Y,animationRef:u}))},"bd");_.h6(_.Ne8,"yt-learning-journey-loader-view-model",{props:{data:_.vR,className:_.IC,onLottieLoaded:_.IC}});var WoU=new Set,PCS=null;_.Te5=_.Jd(function(R){var y=null,u=null,v=null,Q=function(){return R.data()},M=function(){var E=Q();
var D=_.ua().resolve(_.yN(_.u0));E=D!=null&&D()?E.darkThemeColorPalette:E.lightThemeColorPalette;return{primaryTextColor:q5(E,0),secondaryTextColor:q5(E,1),optionColor:q5(E,2),backgroundColor:q5(E,3),videoBackgroundColor:q5(E,4)}},K=function(){return!!M().optionColor},h=_.V(_.In(-1,void 0,"KCCUDb")),b=h.next().value,N=h.next().value,T=function(E){return b()===E},x=function(E){return Q().correctAnswerIndex===E},B=function(){return b()!==-1},l=function(){return b()===Q().correctAnswerIndex},Z=_.nh(function(){N(-1);
return!1}),P=function(){var E=B(),D=l();
return E?D?264685:264684:264683},k=function(E){return l()&&x(E)};
return _.F("learning-journey-quiz-view-model",{class:_.Oy("learningJourneyQuizViewModelHost",R.className),style:_.P_({background:function(){return M().backgroundColor}})},_.F(_.w,{cond:function(){return!!Q().video},
then:function(){return _.F("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.P_({background:function(){return M().videoBackgroundColor}})},_.F(_.mk,{data:function(){return Q().video}},{lockupViewModel:function(E){return _.F(_.op,{data:E.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.F("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.F("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.F("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.F(_.w,{cond:function(){return!!Q().aiGeneratedQuizLabel},
then:function(){return _.F("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.F(_.QM,{text:function(){return Q().aiGeneratedQuizLabel}}))}}),_.F("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.P_({"align-items":function(){return Q().overflowMenu?"start":"center"}})},_.F("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.P_({"min-height":function(){return Q().overflowMenu?"48px":"26px"}})},_.F("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.VX(function(E){_.$Y(P(),E,y,function(D){y=D})}),
style:_.P_({color:function(){return M().primaryTextColor}}),
"client-ve-type":P},_.F(_.QM,{text:function(){var E=Q(),D=B(),z=l();return D?z?E.successTitle:E.failureTitle:E.questionHeaderText}}))),_.F("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.F(_.w,{cond:B,
then:function(){return _.F("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.VX(function(E){_.$Y(264687,E,u,function(D){u=D})}),
"on:click":Z,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.F("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.P_({fill:function(){return M().primaryTextColor}})},_.F("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"})))}}),
_.F(_.mk,{data:function(){return Q().overflowMenu}},{buttonViewModel:function(E){return _.F(_.fQ,{data:E.data})}}))),_.F("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.VX(function(E){_.$Y(264688,E,v,function(D){v=D})}),
style:_.P_({color:function(){return M().secondaryTextColor}}),
"client-ve-type":264688},_.F(_.QM,{text:function(){var E=Q();return B()?E.explanationText:E.questionSubheaderText}}))),_.F("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.F(_.eS,{each:function(){return Q().optionsData||[]}},function(E,D){var z={};
return _.F("div",{class:_.Oy("learningJourneyQuizViewModelHostQuizOptions",(z.learningJourneyQuizViewModelHostQuizHover=function(){return!B()},z.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return k(D())},z.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!l()&&T(D())},z.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return B()&&!T(D())},z.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=K,z)),
"on:click":_.nh(function(){if(B())return!1;N(D());return!1}),
style:_.P_({background:function(){var c=D();return B()&&T(c)?"":K()?M().optionColor:"transparent"}}),
role:"button","aria-disabled":B,"tab-index":"0","client-ve-type":264686},_.F(_.w,{cond:B,then:function(){var c={};return _.F("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var a=D();return x(a)?"0 0 24 24":"0 -960 960 960"},
class:_.Oy("learningJourneyQuizViewModelHostQuizOptionIcon",(c.learningJourneyQuizViewModelHostQuizOptionIconPulse=function(){return k(D())},c)),
style:_.P_({fill:function(){return M().primaryTextColor}})},_.F("path",{d:function(){var a=D();
return x(a)?"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"}}))}}),_.F(_.QM,{text:E.optionText}))})))))},"cd");
_.Te5.idomCompat=!0;_.h6(_.Te5,"learning-journey-quiz-view-model",{props:{data:_.vR,className:_.vR}});var oAY=_.Jd(function(R){var y=R.data;return _.F("yt-suspense-view-model",{class:_.Oy("ytSuspenseViewModelHost")},_.F(_.mk,{data:function(){var u;return(u=y().config)==null?void 0:u.contents}},{lockupViewModel:_.op}))},"dd");var xbc=_.Jd(function(R){var y=_.jb(R,{palette:void 0,isLastItem:!1}),u=y.palette,v=y.isLastItem,Q=function(){return R.data().isHighlighted},M=function(){var b;
return UDS((b=u())==null?void 0:b.iconDisabledColor)},K=function(){var b;
return UDS((b=u())==null?void 0:b.primaryTitleColor)},h=function(){var b;
return UDS((b=u())==null?void 0:b.secondaryTitleColor)};
y={};return _.F("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.VX(_.Y9(function(){return R.data().rendererContext}))},_.F(_.mk,{data:function(){return R.data().thumbnail}},{thumbnailViewModel:_.Mo}),_.F("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.F("div",{class:_.Oy("ytMacroMarkerListItemViewModelTimeDescription",(y.ytMacroMarkerListItemViewModelHighlighted=Q,y)),
style:_.P_({"background-color":function(){return Q()?K():M()},
color:function(){return Q()?"":h()}})},_.F(_.QM,{text:function(){return R.data().timestamp}})),_.F("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.P_({"background-color":function(){return v()?"transparent":M()}})}),_.F("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(Q()?K():h())}},_.F(_.QM,{text:function(){return R.data().title}}))))},"ed");_.Y5=_.Jd(function(R){function y(MU){D("transform:translateX("+(_.EB("HTML_DIR")==="rtl"?"":"-")+MU+"px)")}
function u(MU){return Math.min(Math.max(MU,0),E()-QG())}
function v(){var MU=a()+Zc();return Q()?(Math.round(QG()/MU)||1)*MU:0}
var Q=function(){return R.data().items||[]},M=function(){return R.data().previousButton},K=function(){return R.data().nextButton},h=function(){var MU,vK;
return(vK=(MU=R.disableArrows)==null?void 0:MU.call(R))!=null?vK:!1},b=function(){var MU;
return!((MU=R.forceNarrowLayout)==null||!MU.call(R))},N=_.N8(function(){var MU;
return!((MU=R.centerAlignItems)==null||!MU.call(R))&&E()<=QG()},void 0,"DL81uf"),T=_.sh("horizontal-shelf-view-model"),x=_.sh("div"),B=_.V(_.In(0,void 0,"xZFppf")),l=B.next().value,Z=B.next().value;
B=_.V(_.In(0,void 0,"pH9gvd"));var P=B.next().value,k=B.next().value,E=P;P=_.V(_.In("",void 0,"oYcWy"));B=P.next().value;var D=P.next().value;P=_.V(_.In(0,void 0,"lI6NJb"));var z=P.next().value,c=P.next().value,a=z;P=_.V(_.In(0,void 0,"yPqhW"));z=P.next().value;var L=P.next().value,QG=z;P=_.V(_.In(!1,void 0,"u4CvOe"));var hz=P.next().value,bO=P.next().value;P=_.V(_.In(0,void 0,"oQOBbe"));z=P.next().value;var BW=P.next().value,Zc=z;P=_.V(_.In(0,void 0,"fCqgxd"));var xS=P.next().value,Dc=P.next().value;
P=_.V(_.In("50%",void 0,"kjP5ke"));var $S=P.next().value,hL=P.next().value,WK=function(){var MU,vK=(MU=R.data())==null?void 0:MU.responsiveContainerConfiguration,eg,oP;return vK?aCG(vK==null?void 0:vK.responsiveSize):(oP=(eg=R.sizing)==null?void 0:eg.call(R))!=null?oP:"STANDARD"};
P=_.N8(function(){return!h()&&l()>0},void 0,"oVCO3d");
z=_.N8(function(){return!h()&&l()<E()-QG()},void 0,"MQ6Gb");
var JL=function(){Z(u(l()-v()));y(l())},sP=function(){Z(u(l()+v()));
y(l())},wg=function(){T.value!==null&&HK()},bT;
_.rB(function(){HK();window.ResizeObserver?(bT=new ResizeObserver(_.np(wg,0)),bT.observe(T.value)):window.addEventListener("resize",wg)});
_.GF(function(){if(window.ResizeObserver){var MU;(MU=bT)==null||MU.disconnect()}else window.removeEventListener("resize",wg)});
var HK=function(){var MU=T.value.clientWidth,vK=R.includeMargin!==void 0?R.includeMargin():!1,eg;var oP=R.hasPeek!==void 0?R.hasPeek():!((eg=R.data())==null||!eg.hasPeek);MU=_.Ry({containerWidth:MU,hasPeek:oP,sizing:WK(),marginSettings:vK?b()?4:1:0});BW(MU.gutter);Dc(MU.margin);c(MU.itemWidth);bO(MU.maxContainerWidth<528||b());L(MU.maxContainerWidth);Q()&&k((MU.itemWidth+MU.gutter)*Q().length-MU.gutter);if(Q()){var BK;if(((BK=R.thumbnailAspectRatio)==null?void 0:BK.call(R))!==void 0){var pY;hL(a()/
c9T((pY=R.thumbnailAspectRatio)==null?void 0:pY.call(R))/2+"px")}else hL("50%")}},Ta={},Sg={};
return _.F("horizontal-shelf-view-model",{class:_.Oy("ytwHorizontalShelfViewModelHost",R.className),el:T},_.F(_.w,{cond:function(){var MU;return R.data().header&&!((MU=R.horizontalShelfExperiments)==null?0:MU.call(R).hideHeader)},
then:function(){return _.F("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.P_({width:function(){return QG()+"px"},
padding:function(){return"0 "+xS()+"px"}})},_.F(_.mk,{data:function(){return R.data().header}},{sectionHeaderViewModel:function(MU){return _.F(_.f5,{data:MU.data,
disableHorizontalPadding:!0,forceSmallLayout:hz,useResponsiveLayout:!0})}}))}}),_.F("div",{class:_.Oy("ytwHorizontalShelfViewModelOuterContainer",(Ta.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return N()},Ta)),
style:_.P_({"margin-top":function(){var MU,vK=R.data().header&&!((MU=R.horizontalShelfExperiments)==null?0:MU.call(R).hideHeader),eg;return(((eg=R.ensureMarginTop)==null?0:eg.call(R))&&!vK?12:0)+"px"}})},_.F("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.P_({width:function(){return QG()+"px"},
padding:function(){return"0 "+xS()+"px"},
overflow:function(){return h()?"auto":"hidden"}})},_.F("div",{class:_.Oy("ytwHorizontalShelfViewModelItems",(Sg.ytwHorizontalShelfViewModelCenterAlignItems=function(){return N()},Sg)),
el:x,style:B},_.F(_.mk,{data:Q},{macroMarkerListItemViewModel:function(MU,vK){return _.F("div",{style:_.P_({width:function(){return a()+"px"},
"margin-right":function(){return(vK()===Q().length-1?0:Zc())+"px"}})},_.F(xbc,{data:MU.data,
palette:_.Qj(R.palette),isLastItem:function(){return vK()===Q().length-1}}))},
lockupViewModel:function(MU,vK){var eg=MU.data;return _.F("div",{style:_.P_({width:function(){return a()+"px"},
"margin-right":function(){return(vK()===Q().length-1?0:Zc())+"px"}})},_.F(_.op,{data:eg,
containerType:4,sizing:WK,protectBackground:R.protectBackground,thumbnailFixedWidth:function(){return kkP(eg())+"px"},
thumbnailTargetWidth:function(){return kkP(eg())}}))},
suspenseViewModel:function(MU,vK){return _.F("div",{style:_.P_({width:function(){return a()+"px"},
"margin-right":function(){return(vK()===Q().length-1?0:Zc())+"px"}})},_.F(oAY,{data:MU.data}))}}))),_.F(_.w,{cond:P,
then:function(){return _.F("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.P_({top:function(){return $S()}})},_.F(_.mk,{data:M},{buttonViewModel:function(MU){return _.F(_.fQ,{data:MU.data,
onClick:JL})}}))}}),_.F(_.w,{cond:z,
then:function(){return _.F("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.P_({top:function(){return $S()}})},_.F(_.mk,{data:K},{buttonViewModel:function(MU){return _.F(_.fQ,{data:MU.data,
onClick:sP})}}))}})))},"fd");
_.Y5.idomCompat=!0;var BeV=_.Jd(function(R){var y=function(){return R.data().targetId||""},u=function(){var P;
return((P=R.data())==null?void 0:P.expansionEntityKey)||""},v=_.nA(_.b3T,u),Q=!0,M=function(){var P;
return((P=v())==null?void 0:P.value)===y()},K=function(P){_.vy(_.Gw("stringEntity",u(),{key:u(),
value:P?y():""}))};
_.nG(function(){Q=!1;R.data().isExpanded&&K(!0)});
var h=function(){if(M()){var P=!0;R.onCollapse!==void 0&&(P=R.onCollapse());P&&K(!1)}else K(!0)},b=_.nh(h),N=function(){var P;
return(((P=R.accordionStyle)==null?void 0:P.call(R))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},T=_.sh("div"),x=function(){var P,k;
return(k=(P=_.e(R.data().rendererContext,_.GC))==null?void 0:P.label)!=null?k:""},B=function(){var P,k;
return{disabled:(P=R.hideIfNotExpanded)==null?void 0:P.call(R),ariaHidden:(k=R.hideIfNotExpanded)==null?void 0:k.call(R)}},l={},Z={};
return _.F("yt-accordion-item-view-model",{class:_.Oy("ytAccordionItemViewModelHost",R.className,(l.ytAccordionItemViewModelExpanded=function(){return M()},l.ytAccordionItemViewModelHidden=function(){var P;
return(P=R.hideIfNotExpanded)==null?void 0:P.call(R)},l.ytAccordionItemViewModelMini=N,l)),
"data-target-id":y},_.F("div",{class:"ytAccordionItemViewModelContainer"},_.F("div",{class:"ytAccordionItemViewModelLeftSection","on:click":b,title:x,"aria-hidden":function(){var P;return(P=R.hideIfNotExpanded)==null?void 0:P.call(R)}},_.F(_.QM,{text:function(){return R.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:x})),_.F("div",{class:"ytAccordionItemViewModelRightSection"},_.F(_.mk,{data:function(){return M()?R.data().expandButton:R.data().collapseButton}},{buttonViewModel:function(P){return _.F(_.fQ,{data:P.data,
className:"ytAccordionItemViewModelToggleButton",onClick:h,buttonOverrides:B})}}))),_.F("div",{class:"ytAccordionItemViewModelContainer"},_.F("div",{class:_.Oy("ytAccordionItemViewModelContent",(Z.ytAccordionItemViewModelExpandedSubtitle=function(){return M()},Z)),
el:T,style:_.P_({"max-height":function(){return Q?"auto":M()?T.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!M()}},_.F(_.w,{cond:function(){return!N()},
then:function(){return _.F(_.QM,{text:function(){return R.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.F(_.mk,{data:function(){return R.data().content}},{horizontalShelfViewModel:function(P){return _.F(_.Y5,{data:P.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"gd");_.fki=_.Jd(function(R){var y=_.V((0,_.tng)(R.data)).next().value,u=function(){return R.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},v=function(){return u()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},Q=_.V(_.In(!0,void 0,"FVec2e")),M=Q.next().value,K=Q.next().value,h=function(){return v()&&M()},b=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){K(!M())}}},N=_.nh(function(){y().onTitleTap&&_.zN(y().onTitleTap||{})});
Q={};return _.F("yt-accordion-view-model",{class:_.Oy("ytAccordionViewModelHost",(Q.ytAccordionViewModelMinimized=function(){return h()},Q)),
"data-target-id":function(){return R.data().targetId||""}},_.F(_.w,{cond:function(){return v()||!!y().title},
then:function(){return _.F("div",{class:"ytAccordionViewModelHeader"},_.F("div",{class:"ytAccordionViewModelTitleSection"},_.F("div",{class:"ytAccordionViewModelTitleWrapper"},_.F(_.w,{cond:function(){return!!R.data().headerIcon},
then:function(){return _.F(_.W_,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var T;return(T=R.data().headerIcon)==null?void 0:T.iconType}})}}),_.F("div",{class:"ytAccordionViewModelTitle",
"on:click":N},_.F(_.QM,{className:"ytAccordionViewModelTitleText",text:function(){return y().title}})))),_.F("div",{class:"ytAccordionViewModelButtonSection"},_.F(_.w,{cond:v,
then:function(){return _.F(_.j8,{data:b,iconName:function(){return h()?"chevron_down":"chevron_collapse"}})}})))}}),_.F("div",{class:"ytAccordionViewModelContent"},_.F(_.mk,{data:function(){return y().contents}},{accordionItemViewModel:function(T){return _.F(BeV,{data:T.data,
className:"ytAccordionViewModelRow",accordionStyle:u,hideIfNotExpanded:h,onCollapse:function(){return v()?(K(!0),!1):!0}})}})),_.F("div",null,_.F(_.w,{cond:function(){return!v()&&(!!y().disclaimerFooter||!!y().footer)},
then:function(){return _.F("div",{class:"ytAccordionViewModelFooter"},_.F(_.QM,{text:function(){return y().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.F(_.mk,{data:function(){return R.data().footer}},{flexibleActionsViewModel:function(T){return _.F(_.XJ,{data:T.data,
layout:0})}}))}})))},"hd");_.h6(_.fki,"yt-accordion-view-model",{props:{data:_.vR}});_.h6(_.Jd(function(R){var y=null,u=null,v,Q=(v=_.ua().resolve(_.yN(_.u0)))==null?void 0:v(),M=_.V(_.In(!1,void 0,"EVXQGb"));v=M.next().value;var K=M.next().value;M=_.V(_.In(!0,void 0,"W9FIJf"));var h=M.next().value,b=M.next().value,N=_.sh("textarea",function(k){_.$Y(264503,k,y,function(E){y=E})}),T=function(k){K(!0);
k={learningJourneyFormData:{query:k}};_.zN(R.data().searchEndpoint||{},{form:{formData:k}});return!1},x=_.nh(function(k){k.target.closest("button-view-model")&&K(!0)});
M=_.nh(function(){b(N.value.value.length===0)});
var B=_.nh(function(k){if(k.key==="Enter"&&!k.shiftKey&&!h()){var E=k.target;k.preventDefault();T(E.value)}}),l={},Z={},P={};
return _.F("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.F("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.F(_.MR,{data:function(){return R.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.F("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.F("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.F("div",{class:_.Oy("ytLearningJourneyZeroStateSearchBar",(l.ytLearningJourneyZeroStateSearchBarDark=Q,l))},_.F("textarea",{class:_.Oy("ytLearningJourneyZeroStateTextInput",(Z.ytLearningJourneyZeroStateTextInputDark=Q,Z)),el:N,"on:keyup":M,"on:keydown":B,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.F("div",{class:_.Oy("ytLearningJourneyZeroStateSearchButtonContainer",(P.ytLearningJourneyZeroStateSearchButtonContainerDark=Q,P))},_.F(_.fQ,{data:function(){return _.e(R.data().searchButton,_.k9)},
className:"search-button",onClick:function(){return T(N.value.value)},
buttonOverrides:function(){return{disabled:h(),style:Q?"mono-inverse":"mono",size:"XL"}}}))),_.F(_.w,{cond:function(){return!!R.data().errorBanner},
then:function(){return _.F("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.VX(function(k){_.$Y(264617,k,u,function(E){u=E})})},_.F(_.mk,{data:function(){return R.data().errorBanner}},{alertBannerViewModel:function(k){return _.F(_.S25,{data:k.data,
"client-ve-type":264617})}}))}})),_.F(_.w,{cond:v,
then:function(){return _.F("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.F(_.mk,{data:function(){return R.data().loader}},{learningJourneyLoaderViewModel:function(k){return _.F(_.Ne8,{data:k.data})}}))},
else:function(){return _.F("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.F(_.w,{cond:function(){return!!R.data().learningJourneyShelf},
then:function(){return _.F("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.F("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return R.data().learningJourneySectionTitle}),_.F(_.mk,{data:function(){return R.data().learningJourneyShelf}},{horizontalShelfViewModel:function(k){return _.F(_.Y5,{data:k.data,
centerAlignItems:!0})}}))}}),_.F("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.F("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return R.data().suggestedJourneySectionTitle}),_.F("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":x},_.F(_.mk,{data:function(){return R.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(k){return _.F(_.XJ,{data:k.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"id"),"yt-learning-journey-zero-state",{props:{data:_.vR}});var eGT=_.Jd(function(R){var y=R.data;return _.F("ytvl-live-leaderboard-item-action-content-view-model",{class:_.Oy("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.F(_.QM,{text:function(){var u;return(u=y())==null?void 0:u.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.F(_.mk,{data:function(){return y().actionButton}},{buttonViewModel:function(u){return _.F(_.fQ,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:u.data})}}))},"jd");var lk8=_.Jd(function(R){var y=R.data;return _.F("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.Oy("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.F(_.QM,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var u;return(u=y())==null?void 0:u.displayName},
ellipsisTruncate:!0}),_.F(_.mk,{data:function(){return y().badge}},{buttonViewModel:function(u){return _.F(_.fQ,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:u.data})}}))},"kd");_.h6(_.Jd(function(R){var y=R.data;return _.F("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.F("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.F(_.QM,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var u;return(u=y())==null?void 0:u.rank}})),_.F("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.F(_.mk,{data:function(){return y().avatar}},{avatarViewModel:_.XS})),_.F("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.F(_.mk,{data:function(){return y().content}},{liveLeaderboardItemChannelContentViewModel:lk8,
liveLeaderboardItemActionContentViewModel:eGT})),_.F(_.QM,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var u;return(u=y())==null?void 0:u.points}}))},"ld"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.vR}});_.h6(_.Jd(function(R){var y=R.data;return _.F("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.F(_.QM,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var u,v;return(u=y())==null?void 0:(v=u.ranking)==null?void 0:v.rank}}),_.F("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.F(_.mk,{data:function(){return y().avatar}},{avatarViewModel:_.XS})),_.F(_.QM,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var u,v;return(u=y())==null?void 0:(v=u.channelContent)==null?void 0:v.channelName}}),_.F(_.QM,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var u;return(u=y())==null?void 0:u.points}}))},"md"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.vR}});var OaY=_.Jd(function(R){R=_.jb(R,{wrapper:!1}).wrapper;return _.F(_.w,{cond:R,then:function(){return _.F("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.F("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.F("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"nd");
OaY.idomCompat=!0;var Zag=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],HaT=_.Jd(function(R){var y=R.data;var u=_.VX(),v=_.N8(function(){return y().command},void 0,"o6t5Yb");
_.ny(function(){v()&&_.Yi(v(),{form:{element:u.value}})},"qIHWLc");
return _.F("div",{el:u,class:"YtQrCodeRendererHostContainer"},_.F(_.w,{cond:function(){return y().qrCodeImage},
then:function(Q){return _.F(_.MR,{data:Q,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.F(_.w,{cond:function(){return y().spinner},
then:function(){return _.F(OaY,null)}})}}),_.F(_.w,{cond:function(){return y().label},
then:function(Q){return _.F(_.QM,{text:Q,className:"YtQrCodeRendererHostLabel"})}}),_.F(_.w,{cond:function(){return y().labels},
then:function(Q){return _.F("div",{class:"YtQrCodeRendererHostLabels"},_.F(_.eS,{each:Q},function(M){return _.F(_.QM,{text:M})}))}}))},"pd");_.h6(_.Jd(function(R){var y=R.data;var u=_.N8(function(){return y().qrEntityKey},void 0,"joYCxd"),v=_.N8(function(){return y().deleteEntityOnDismiss},void 0,"x3yAde"),Q=_.N8(function(){return y().command},void 0,"dJe1Re"),M=_.nA(PFU,u);
R=_.N8(function(){return y().qrCodeImage},void 0,"qM5dZe");
var K=_.N8(function(){return y().style&&Zag.includes(y().style)},void 0,"CaNEkf"),h=_.vA({visibilityCallback:function(b){b&&Q()&&_.Yi(Q())},
showOption:{calledOnce:!0,state:"visible"}});_.rB(function(){_.GF(function(){v()&&u()&&_.uX().dispatch(_.Gw("qrCodeEntity",u()))})});
return _.F("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.VX(h)},_.F(_.w,{cond:K,then:function(){return _.F(_.w,{cond:M,then:function(b){return _.F(HaT,{data:b})}})}}),_.F(_.w,{cond:R,
then:function(b){return _.F(_.MR,{data:b,alt:""})}}))},"od"),"yt-qr-code-renderer",{props:{data:_.vR}});_.nAT=_.Jd(function(R){var y=R.data;var u=R.topbarOffset;var v,Q=((v=_.ua().resolve(_.yN(_.u0)))==null?void 0:v())||!1;return _.F("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var M=y();var K,h,b=Q?(K=M.config)==null?void 0:K.darkThemeBackgroundColor:(h=M.config)==null?void 0:h.lightThemeBackgroundColor;M=b?_.aH(b):void 0;M="background-color: "+M+";";u!==void 0&&(M+="top: -"+u()+"px;");return M},
"aria-hidden":!0},_.F(_.w,{cond:function(){var M,K,h;return!!((M=y().backgroundImageConfig)==null?0:(K=M.image)==null?0:(h=K.sources)==null?0:h.length)},
then:function(){return _.F(_.MR,{data:function(){var M;return(M=y().backgroundImageConfig)==null?void 0:M.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.F("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+E4T(Q,y().gradientColorConfig)+";"}}))},"qd");
_.nAT.idomCompat=!0;var L5=_.Jd(function(R){var y=R.className;var u=R.data;var v=R.isOverlay;var Q=R.maxLinesOverride;var M=R.useMediumText;var K=function(){return u().alwaysShowTruncationText},h=function(){return u().truncationText},b=function(){return M!==void 0&&M()?"medium":"small"},N=function(){return v!==void 0&&v()?"overlay":"default"},T=function(){var Z,P;
return(P=(Z=_.e(u().rendererContext,_.GC))==null?void 0:Z.label)!=null?P:""};
R=_.V(_.In(!1,void 0,"xVwzHf"));var x=R.next().value,B=R.next().value;R=_.nh(function(){u().expandOnTap&&B(!x());return!1});
var l={};return _.F("yt-description-preview-view-model",{el:_.VX(_.Y9(function(){return u().rendererContext})),
class:_.Oy("yt-description-preview-view-model-wiz",y,(l["yt-description-preview-view-model-wiz--clickable"]=function(){var Z;return!((Z=_.e(u().rendererContext,uZT))==null||!Z.onTap)},l["yt-description-preview-view-model-wiz--is-overlay"]=v,l)),
"on:click":R},_.F(_.w,{cond:function(){return u().description},
then:function(Z){return _.F(_.w,{cond:x,then:function(){var P={};return _.F("div",{class:_.Oy("yt-description-preview-view-model-wiz__description",(P["yt-description-preview-view-model-wiz__description--medium-text"]=M,P))},_.F(_.QM,{text:Z}))},
else:function(){return _.F(pk5,{text:Z,alwaysShowTruncationText:K,truncationText:h,maxLines:function(){var P;return(P=Q==null?void 0:Q())!=null?P:u().maxLines},
textStyle:N,accessibilityLabel:T,textSize:b})}})}}))},"rd");
L5.idomCompat=!0;var Goc=_.Jd(function(R){var y=R.data;var u=R.isOverlay;return _.F("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.F("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.F(_.mk,{data:function(){return y().header}},{sectionHeaderViewModel:function(v){return _.F(_.f5,{data:v.data,
isOverlay:u})}})),_.F("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.F(_.mk,{data:function(){return y().channelInfoButtons}},{flexibleActionsViewModel:_.XJ})),_.F("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.F(_.mk,{data:function(){return y().description}},{descriptionPreviewViewModel:function(v){return _.F(L5,{data:v.data,
isOverlay:u})}})))},"sd");
Goc.idomCompat=!0;var rHL=_.Jd(function(R){var y=R.data;var u={};return _.F("factoid-view-model",{class:_.Oy("ytwFactoidViewModelHost",(u.ytwFactoidViewModelHostOverlay=R.isOverlay,u))},_.F(_.QM,{text:function(){return y().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.F(_.QM,{text:function(){return y().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"td");
rHL.idomCompat=!0;var P5T=_.Jd(function(R){var y=R.data;var u=R.isOverlay;return _.F("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.F(_.mk,{data:function(){return y().factoids}},{factoidViewModel:function(v){return _.F(rHL,{data:v.data,
isOverlay:u})}}))},"ud");
P5T.idomCompat=!0;_.WJV=_.Jd(function(R){var y=R.data;var u=R.isOverlay;return _.F("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.F(_.mk,{data:function(){return y().items}},{channelInfoViewModel:function(v){return _.F("div",{class:"ytwCourseMetadataViewModelHostItem"},_.F(Goc,{data:v.data,
isOverlay:u}))},
coursePerksViewModel:function(v){return _.F("div",{class:"ytwCourseMetadataViewModelHostItem"},_.F(hGi,{data:v.data,isOverlay:u}))},
descriptionPreviewViewModel:function(v){return _.F("div",{class:"ytwCourseMetadataViewModelHostItem"},_.F(L5,{data:v.data,isOverlay:u}))},
factoidsRowViewModel:function(v){return _.F("div",{class:"ytwCourseMetadataViewModelHostItem"},_.F(P5T,{data:v.data,isOverlay:u}))},
progressViewModel:function(v){return _.F("div",{class:"ytwCourseMetadataViewModelHostItem"},_.F(baV,{data:v.data,isOverlay:u}))}}))},"vd");var dbV=_.Jd(function(R){return _.F("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.F(_.mk,{data:function(){return R.data().content}},{courseMetadataViewModel:function(y){return _.F(_.WJV,{data:y.data,
isOverlay:R.isOverlay})},
progressViewModel:function(y){return _.F(baV,{data:y.data})}}))},"wd");var UbV=_.Jd(function(R){var y=R.data;R=R.className;var u=function(){var Q;return _.So((Q=y())==null?void 0:Q.rendererContext)},v={};
v=(v["dynamic-text-view-model-wiz"]=!0,v["dynamic-text-view-model-wiz--tappable"]=function(){return u()},v);
return _.F("yt-dynamic-text-view-model",{el:_.VX(_.Y9(function(){var Q;return(Q=y())==null?void 0:Q.rendererContext})),
role:function(){return u()?"link":void 0},
tabindex:function(){return u()?0:void 0},
class:_.Oy(R,v)},_.F("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var Q,M,K;return(K=(M=_.e((Q=y())==null?void 0:Q.rendererContext,_.GC))==null?void 0:M.label)!=null?K:""}},_.F(_.QM,{text:function(){return y().text},
userInput:!0})))},"xd");
UbV.idomCompat=!0;_.sH=_.Jd(function(R){var y=R.data;var u=R.isPositionRelative;var v=_.qSP("(max-width: 527.9px)"),Q=function(){var M,K;return(K=(M=y())==null?void 0:M.style)!=null?K:"IMAGE_BANNER_STYLE_FULL_BLEED"};
R={};return _.F("yt-image-banner-view-model",{el:_.VX(_.Y9(function(){var M;return(M=y())==null?void 0:M.rendererContext})),
class:_.Oy((R["yt-image-banner-view-model-wiz"]=!0,R["yt-image-banner-view-model-wiz--inset"]=function(){return Xf4(Q())},R["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.PT(!0)&&!(u==null?0:u())},R["yt-image-banner-view-model-wiz--small-inset"]=function(){return Xf4(Q())&&v()},R["yt-image-banner-view-model-wiz--tappable"]=function(){var M;
return _.So((M=y())==null?void 0:M.rendererContext)},R))},_.F(_.w,{cond:function(){var M;
return(M=y())==null?void 0:M.image},
then:function(){return _.F(_.MR,{data:function(){return y().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.F(_.mk,{data:function(){var M;
return(M=y())==null?void 0:M.overlays}},{thumbnailHoverOverlayViewModel:qH}))},"yd");
_.sH.idomCompat=!0;var kog;kog=_.Jd(function(R){var y=R.condition;var u=R.content;return _.F(_.w,{cond:y,then:function(){return _.F("div",{class:"page-header-view-model-wiz__scroll-container"},u())},
else:function(){return u()}})},"zd");
_.EAb=_.Jd(function(R){var y=R.data;var u=R.noPadding;var v=R.enableBanner;var Q=R.cinematicContainerTopbarOffset;var M=R.allowCinematicContainerOverflow;var K=R.displayAsSidebar;var h=R.displayAsPanel;var b=R.alwaysUseMediumTextMetadata;var N=mDU(),T=function(){return!!y().image||!!y().animatedImage},x=function(){return!!y().background},B=function(){return(K==null?0:K())||(h==null?0:h())?1:N()},l=function(){return B()===1},Z=function(){return l()||B()===2},P=function(){return B()===4},k=function(){var xS=
y();
var Dc=!!y().heroImage;var $S=B(),hL=Ab4(y()),WK=K==null?void 0:K(),JL=!xS.metadata,sP;if(sP=Dc?_.e(xS.heroImage,L$8):_.e(xS.animatedImage||xS.image,L$8)){xS=sP.style;var wg=sP.layoutMode;if(wg!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(sP=MTO(jW4(sP)),Dc)Dc=$Dc($S,xS,wg,sP,WK);else b:if(JL)Dc=$S===1?{size:48}:{size:72};else switch($S){case 1:Dc={size:72};break b;case 2:Dc={size:120};break b;default:Dc=hL<4?{size:120}:{size:160}}else Dc=void 0}else Dc={size:0};return Dc};
R={};R=_.Oy((R["page-header-view-model-wiz"]=!0,R["page-header-view-model-wiz--no-padding"]=function(){return!(u==null||!u())},R["page-header-view-model-wiz--small-top-padding"]=function(){return l()&&!y().actions&&!(h==null?0:h())||B()===2&&!(T()||y().heroImage)},R["page-header-view-model-wiz--small-bottom-padding"]=function(){return Z()&&!y().actions&&!(h==null?0:h())},R["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(M==null?0:M())},R["page-header-view-model-wiz--display-as-sidebar"]=
K,R));
var E={},D=_.Oy((E["page-header-view-model-wiz__page-header-headline"]=!0,E["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){var xS;return(xS=k())==null?void 0:xS.allowFullWidth},E)),z=function(){var xS;
return Z()&&!((xS=k())==null?0:xS.allowFullWidth)},c=function(){return l()&&(!!y().heroImage||T())&&Ab4(y())>0},a=function(){return c()&&(h==null?void 0:h())};
E={};var L=_.Oy((E["page-header-view-model-wiz__page-header-title"]=!0,E["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!c()},E["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return c()&&!a()},E["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=a,E["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=x,E));
E={};var QG=_.Oy((E["page-header-view-model-wiz__page-header-headline-image"]=!0,E["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!y().heroImage&&Z()},E));
E={};var hz=_.Oy((E["page-header-view-model-wiz__page-header-banner-container"]=v,E["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var xS;return(v==null?void 0:v())&&((xS=_.e(y().banner,_.zJ5))==null?void 0:xS.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},E));
E={};var bO=_.Oy((E["page-header-view-model-wiz__page-header-content-metadata"]=!0,E["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=x,E));E={};var BW=_.Oy((E["page-header-view-model-wiz__page-header-flexible-actions"]=!0,E["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!y().metadata||Z()},E["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!Z()},E));
E={};var Zc=_.Oy((E["page-header-view-model-wiz__page-header-attribution"]=!0,E["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=x,E));return _.F("yt-page-header-view-model",{class:R},_.F(_.w,{cond:x,then:function(){return _.F("div",{class:"page-header-view-model-wiz__page-header-background"},_.F(_.mk,{data:function(){return y().background}},{cinematicContainerViewModel:function(xS){return _.F(_.nAT,{data:xS.data,
topbarOffset:Q})}}))}}),_.F(kog,{condition:function(){return!(K==null||!K())},
content:function(){return _.F("div",{class:"page-header-view-model-wiz__page-header-content"},_.F(_.w,{cond:function(){return(v==null?void 0:v())&&y().banner},
then:function(){return _.F("div",{class:hz},_.F(_.mk,{data:function(){return y().banner}},{imageBannerViewModel:_.sH}))}}),_.F("div",{class:D},_.F(_.w,{cond:T,
then:function(){return _.F(_.mk,{data:function(){var xS;if(!(xS=y().animatedImage)){xS=y();if(T()){var Dc=xS=Object.assign({},xS),$S=B(),hL=Ab4(y()),WK=Dc.image,JL=_.e(WK,sig),sP=JL==null?void 0:JL.avatar,wg=_.e(sP,_.LA);if(WK&&sP&&wg){switch($S){case 1:wg.avatarImageSize="AVATAR_SIZE_XL";break;case 2:wg.avatarImageSize="AVATAR_SIZE_XXL";break;default:hL<4?wg.avatarImageSize="AVATAR_SIZE_XXL":wg.avatarImageSize="AVATAR_SIZE_XXXL"}_.f("web_enable_sink_page_header_view_model")&&(_.Dr(sP,_.LA,Object.assign({},
wg)),JL.avatar=Object.assign({},sP),_.Dr(WK,sig,Object.assign({},JL)),Dc.image=Object.assign({},WK))}}xS=xS.image}return xS}},{contentPreviewImageViewModel:function(xS){return _.F(_.b2,{data:xS.data,
className:QG,imageSizeConfig:k})},
decoratedAvatarViewModel:function(xS){return _.F(_.mG,{data:xS.data,className:QG})}})}}),_.F(_.w,{cond:function(){return!!y().heroImage&&!z()},
then:function(){return _.F(_.mk,{data:function(){return y().heroImage}},{contentPreviewImageViewModel:function(xS){return _.F(_.b2,{data:xS.data,
className:QG,imageSizeConfig:k})}})}}),_.F("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.F(_.w,{cond:function(){return!!y().heroImage&&z()},
then:function(){return _.F("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.F(_.mk,{data:function(){return y().heroImage}},{contentPreviewImageViewModel:function(xS){return _.F(_.b2,{data:xS.data,
className:QG,imageSizeConfig:k})}}))}}),_.F(_.mk,{data:function(){return y().title}},{dynamicTextViewModel:function(xS){return _.F(UbV,{data:xS.data,
className:L})}}),_.F(_.mk,{data:function(){return y().metadata}},{contentMetadataViewModel:function(xS){return _.F(_.Fx,{data:xS.data,
layout:function(){return l()?1:0},
className:bO,isOverlay:x,useMediumText:function(){return(b==null?void 0:b())||P()}})}}),_.F(_.w,{cond:function(){return y().description&&!l()},
then:function(){return _.F(_.mk,{data:function(){return y().description}},{descriptionPreviewViewModel:function(xS){return _.F(L5,{data:xS.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:x,maxLinesOverride:function(){return l()?void 0:1},
useMediumText:P})}})}}),_.F(_.w,{cond:function(){return y().attribution&&!Z()},
then:function(){return _.F(_.mk,{data:function(){return y().attribution}},{attributionViewModel:function(xS){return _.F(HbV,{data:xS.data,
className:Zc,useMediumText:P})}})}}),_.F(_.w,{cond:function(){return y().actions&&!Z()},
then:function(){return _.F(_.mk,{data:function(){return y().actions}},{flexibleActionsViewModel:function(xS){return _.F(_.XJ,{data:xS.data,
layout:function(){return DDW(B())},
className:BW})}})}}))),_.F("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.F(_.w,{cond:function(){return y().description&&l()},
then:function(){return _.F(_.mk,{data:function(){return y().description}},{descriptionPreviewViewModel:function(xS){return _.F(L5,{data:xS.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:x,maxLinesOverride:function(){return l()?void 0:1},
useMediumText:P})}})}}),_.F(_.w,{cond:function(){return y().attribution&&Z()},
then:function(){return _.F(_.mk,{data:function(){return y().attribution}},{attributionViewModel:function(xS){return _.F(HbV,{data:xS.data,
className:Zc,useMediumText:P})}})}}),_.F(_.w,{cond:function(){return y().actions&&Z()},
then:function(){return _.F(_.mk,{data:function(){return y().actions}},{flexibleActionsViewModel:function(xS){return _.F(_.XJ,{data:xS.data,
layout:function(){return DDW(B())},
className:BW})}})}})),_.F("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.F(_.mk,{data:function(){return y().bottomMetadataFlexibleContainer}},{flexibleContainer:function(xS){return _.F(dbV,{data:xS.data,
isOverlay:x})}})))}}))},"Ad");
_.EAb.idomCompat=!0;_.h6(_.Jd(function(R){var y=_.V(_.In(!1,void 0,"j5qbkc")),u=y.next().value,v=y.next().value;return _.F("yt-official-card-view-model",{class:_.Oy("ytOfficialCardViewModelHost",R.className),style:_.P_({"background-color":function(){var Q,M=c1L((Q=R.data())==null?void 0:Q.backgroundColor);return M?_.Sq(M):void 0}})},_.F(_.mk,{data:function(){return R.data().header}},{pageHeaderViewModel:function(Q){return _.F(_.EAb,{data:Q.data,
noPadding:!0})}}),_.F(_.mk,{data:function(){return R.data().contents}},{horizontalShelfViewModel:function(Q){return _.F(_.Y5,{data:Q.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.F(_.w,{cond:u,
then:function(){return _.F("div",{class:"ytOfficialCardViewModelExpandedContent"},_.F(_.mk,{data:function(){return R.data().expandedContents}},{horizontalShelfViewModel:function(Q){return _.F(_.Y5,{data:Q.data,
sizing:"MINI"})}}),_.F("div",{class:"ytOfficialCardViewModelCollapseButton"},_.F(_.mk,{data:function(){return R.data().collapseButton}},{buttonViewModel:function(Q){return _.F(_.fQ,{data:Q.data,
onClick:function(){v(!u())}})}})))},
else:function(){return _.F("div",{class:"ytOfficialCardViewModelExpandButton"},_.F(_.mk,{data:function(){return R.data().expandButton}},{buttonViewModel:function(Q){return _.F(_.fQ,{data:Q.data,
onClick:function(){v(!u())}})}}))}}))},"Bd"),"yt-official-card-view-model",{props:{data:_.vR,
className:_.vR}});var pfL=_.UC({buttonViewModel:_.fQ});_.Qn(tPv);_.B_(tPv,"ytw-search-friction-view-model",{propNames:["data"]});_.$bK=_.Jd(function(R){var y=_.sh("markdown-div"),u,v=(u=_.ua().resolve(_.yN(_.u0)))==null?void 0:u();_.ny(function(){var Q=y.value;var M=new Yic,K=new Map(M.JSC$9268_sanitizerTable.globalAttributePolicies);K.set("style",{policyAction:4});M.JSC$9268_sanitizerTable=new Gq(M.JSC$9268_sanitizerTable.allowedElements,M.JSC$9268_sanitizerTable.elementPolicies,M.JSC$9268_sanitizerTable.allowedGlobalAttributes,K,M.JSC$9268_sanitizerTable.globallyAllowedAttributePrefixes);var h=["data-time"];if(h===void 0)K=
new Set(M.JSC$9268_sanitizerTable.globallyAllowedAttributePrefixes),K.add("data-"),M.JSC$9268_sanitizerTable=new Gq(M.JSC$9268_sanitizerTable.allowedElements,M.JSC$9268_sanitizerTable.elementPolicies,M.JSC$9268_sanitizerTable.allowedGlobalAttributes,M.JSC$9268_sanitizerTable.globalAttributePolicies,K);else{K=new Set(M.JSC$9268_sanitizerTable.allowedGlobalAttributes);h=_.V(h);for(var b=h.next();!b.done;b=h.next()){b=b.value;if(b.indexOf("data-")!==0)throw Error("ma`"+b);K.add(b)}M.JSC$9268_sanitizerTable=
new Gq(M.JSC$9268_sanitizerTable.allowedElements,M.JSC$9268_sanitizerTable.elementPolicies,K,M.JSC$9268_sanitizerTable.globalAttributePolicies,M.JSC$9268_sanitizerTable.globallyAllowedAttributePrefixes)}K=new Set(M.JSC$9268_sanitizerTable.allowedGlobalAttributes);K.add("class");M.JSC$9268_sanitizerTable=new Gq(M.JSC$9268_sanitizerTable.allowedElements,M.JSC$9268_sanitizerTable.elementPolicies,K,M.JSC$9268_sanitizerTable.globalAttributePolicies,M.JSC$9268_sanitizerTable.globallyAllowedAttributePrefixes);
_.CK(Q,_.pKg(M.build(),a$U(R.text())));SSU(y.value)},"CUInJc");
u={};return _.F("div",null,_.F("markdown-div",{class:_.Oy("ytwMarkdownDivHost",(u.ytwMarkdownDivDark=v,u.ytwMarkdownDivHostSmall=function(){var Q;return((Q=R.isSmallText)==null?void 0:Q.call(R))||!1},u.ytwMarkdownDivHostWrapCodeBlocks=function(){var Q;
return((Q=R.wrapCodeBlocks)==null?void 0:Q.call(R))||!1},u)),
el:y}))},"Cd");
_.$bK.idomCompat=!0;var qAY=_.Jd(function(R){var y=R.imageData;var u=_.Qj(R.isInList,!1),v=function(){return u()?{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:52,targetHeight:52,className:"ytwGenAiRichTextViewModelContentImage"}:{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:80,targetHeight:80,className:"ytwGenAiRichTextViewModelContentImage"}};
return _.F("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.F(_.w,{cond:function(){return y().image},
then:function(Q){return _.F(_.MR,{data:Q,alt:function(){return v().alt},
contentMode:function(){return v().contentMode},
targetWidth:function(){return v().targetWidth},
targetHeight:function(){return v().targetHeight},
className:function(){return v().className}})}}),_.F("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.F("div",{class:_.Oy("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.F(_.QM,{text:function(){return y().title}})),_.F(_.eS,{each:function(){var Q;
return(Q=y().description)!=null?Q:[]}},function(Q){return _.F("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.F(zU,{content:Q}))})))},"Dd"),X6c=_.Jd(function(R){var y=R.list;
var u=function(){var v;return(v=y().items)!=null?v:[]};
return _.F("div",{class:"ytwGenAiRichTextViewModelListContent"},_.F(_.w,{cond:function(){return y().title},
then:function(v){return _.F("div",{class:_.Oy("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.F(_.QM,{text:v}))}}),_.F(_.w,{cond:function(){return y().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.F("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.F(_.eS,{each:u},function(v){return _.F("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.F(zU,{content:v,isInList:!0}))}))}}),_.F(_.w,{cond:function(){return y().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.F("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.F(_.eS,{each:u},function(v){return _.F("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.F(zU,{content:v,isInList:!0}))}))}}),_.F(_.w,{cond:function(){return y().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.F("div",{class:"ytwGenAiRichTextViewModelImageList"},_.F(_.eS,{each:u},function(v){return _.F("div",{class:"ytwGenAiRichTextViewModelListItem"},_.F(zU,{content:v,isInList:!0}))}))}}))},"Ed"),mbc=_.Jd(function(R){var y=R.table;
return _.F("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.F("thead",null,_.F("tr",null,_.F(_.eS,{each:function(){var u,v;return(v=(u=y().header)==null?void 0:u.cells)!=null?v:[]}},function(u){return _.F("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.F(_.eS,{each:function(){return u.contents}},function(v){return _.F(zU,{content:v})}))}))),_.F("tbody",null,_.F(_.eS,{each:function(){var u;
return(u=y().rows)!=null?u:[]}},function(u){return _.F("tr",null,_.F(_.eS,{each:function(){return u.cells}},function(v){return _.F("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.F(_.eS,{each:function(){return v.contents}},function(Q){return _.F(zU,{content:Q})}))}))})))},"Fd"),zU=_.Jd(function(R){var y=R.content;
var u=_.Qj(R.isInList,!1),v=function(){var Q,M;return(M=(Q=y().contentBlock)==null?void 0:Q.contents)!=null?M:[]};
return _.F("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.F(_.w,{cond:function(){return y().text},
then:function(Q){return _.F(_.QM,{className:"ytwGenAiRichTextViewModelText",text:Q})}}),_.F(_.w,{cond:function(){return y().image},
then:function(Q){return _.F(qAY,{imageData:Q,isInList:u})}}),_.F(_.w,{cond:function(){return y().list},
then:function(Q){return _.F(X6c,{list:Q})}}),_.F(_.w,{cond:function(){return y().contentBlock},
then:function(){return _.F("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.F(_.eS,{each:v},function(Q){return _.F(zU,{content:Q,isInList:!1})}))}}),_.F(_.w,{cond:function(){return y().table},
then:function(Q){return _.F(mbc,{table:Q})}}))},"Gd"),AHV=_.Jd(function(R){var y={};
y=_.Zl("ytwGenAiRichTextViewModelHost",(y.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.VN("search_overview_link_style")),y));return _.F("gen-ai-rich-text-view-model",{class:y},_.F(zU,{content:function(){return R.data().content}}))},"Hd");_.Qn(YST);_.Qn(Xd);_.Dbc=_.Jd(function(R){var y=R.data;var u=function(){var P;return((P=y().loadingUi)!=null?P:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},v=function(){return y().isLoading&&(u()==="UNSPECIFIED"||u()==="GHOST_CARD")},Q=function(){return!y().isLoading},M=function(){return!!y().content&&!y().contents},K=function(){return!!y().contents},h=function(){return!!y().nextQueryButtons},b=function(){return y().isLoading&&u()==="INVISIBLE"},N=function(){var P,k;
return(k=(P=y().headerIcon)==null?void 0:P.iconType)!=null?k:""},T=function(){var P;
return(P=y().content)!=null?P:""},x=function(){return!!y().sourcesSection},B,l=!((B=_.ua().resolve(_.yN(_.u0)))==null||!B()),Z=_.N8(function(){var P=[],k=y().contents;
if(k)for(var E=0;E<k.length;E++){var D=_.e(k&&k[E],Qmc);D&&P.push(D)}return P},void 0,"ycU97e");
_.rB(function(){y().isLoading||_.qQ("so_re",void 0,"search_overview_answer")});
return _.F("ytd-overview-answer-view-model",{class:function(){var P={};P=(P.ytdOverviewAnswerViewModelHost=!0,P.ytdOverviewAnswerViewModelDarkBackground=l&&!b(),P.ytdOverviewAnswerViewModelLightBackground=!l&&!b(),P);return _.Zl(P)}},_.F(_.w,{cond:function(){return!b()},
then:function(){return _.F(_.vu,null,_.F("h2",null,_.F("div",{class:"ytdOverviewAnswerViewModelHeader"},_.F(_.w,{cond:N,then:function(P){return _.F("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.F(_.W_,{icon:P}))}}),_.F("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.F("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return y().headerText}),_.F("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.F(_.QM,{text:function(){return y().headerSubtext}}))))),_.F(_.w,{cond:v,
then:function(){return YST()}}),_.F(_.w,{cond:Q,
then:function(){return _.F(_.vu,null,_.F(_.w,{cond:M,then:function(){return _.F("div",{class:"ytdOverviewAnswerViewModelText"},_.F(_.$bK,{text:T,isSmallText:!0}))}}),_.F(_.w,{cond:K,
then:function(){return _.F("div",{class:"ytdOverviewAnswerViewModelRichText"},_.F(_.eS,{each:Z},function(P){return _.F(AHV,{data:P})}))}}),_.F(_.w,{cond:h,
then:function(){return _.F("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.F(_.mk,{data:function(){return y().nextQueryButtons}},{buttonViewModel:function(P){return _.F(_.fQ,{data:P.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.Y5}))}}),_.F("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.F("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.F(_.w,{cond:function(){return!!_.e(y().likeButtonViewModel,_.A4)&&!!_.e(y().dislikeButtonViewModel,_.mE)},
then:function(){return _.F("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.F(_.AO,{data:function(){return _.e(y().likeButtonViewModel,_.A4)},
disableIconAnimation:!0}),_.F(_.m2,{data:function(){return _.e(y().dislikeButtonViewModel,_.mE)}}))}})),_.F(_.w,{cond:function(){var P;
return(P=y().sourcesSection)==null?void 0:P.headerText},
then:function(P){return _.F("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.F(_.QM,{text:P}))}})),_.F(_.w,{cond:x,
then:function(){return _.F("div",{class:"ytdOverviewAnswerViewModelSources"},_.F(_.mk,{data:function(){var P;return(P=y().sourcesSection)==null?void 0:P.sourcesShelf}},{buttonViewModel:_.fQ,
horizontalShelfViewModel:function(P){return _.F(_.Y5,{data:P.data,includeMargin:!0,hasPeek:!0})}}))}}),_.F(_.w,{cond:function(){return y().disclaimerText},
then:function(){return _.F("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.F(_.QM,{text:function(){return y().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"Id");var p6c=_.Jd(function(R){var y=R.data;var u=R.active;var v=_.sh("transcript-segment-view-model");_.ny(function(){var Q,M,K,h=((Q=_.ua().resolve(_.yN(_.u0)))==null?0:Q())?(M=y())==null?void 0:M.darkThemeColorPalette:(K=y())==null?void 0:K.lightThemeColorPalette;h&&(h.additiveBackground&&v.value.style.setProperty("--timestamp-active-background-color",_.Sq(h.additiveBackground)),h.textSecondary&&v.value.style.setProperty("--timestamp-active-color",_.aH(h.textSecondary)))},"KHcbwb");
R={};return _.F("transcript-segment-view-model",{class:_.Oy("ytwTranscriptSegmentViewModelHost",(R.ytwTranscriptSegmentViewModelHostActive=u,R.ytwTranscriptSegmentViewModelHostModern=_.f("enable_timeline_view_modern_transcript")||_.f("enable_timeline_view_modern_transcript_fe"),R)),el:v},_.F(_.w,{cond:function(){var Q;return(Q=y())==null?void 0:Q.timestamp},
then:function(Q){var M={};return _.F("div",{class:_.Oy("ytwTranscriptSegmentViewModelTimestamp",(M.ytwTranscriptSegmentViewModelTimestampActive=u,M))},Q)}}),_.F(_.QM,{text:function(){var Q,M,K;
return(K=(Q=y())==null?void 0:Q.attributedText)!=null?K:{content:(M=y())==null?void 0:M.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"Jd");var tNc=_.Jd(function(R){var y=R.data;return _.F("div",{class:"yt-video-attributes-section-view-model__header"},_.F("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return y().headerTitle}),_.F(_.w,{cond:function(){return y().headerSubtitle},
then:function(){return _.F("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return y().headerSubtitle})}}))},"Kd"),cHc=_.Jd(function(R){function y(P){return Math.max(Math.min(P,0),N()-h())}
var u=R.data;var v,Q=_.sh("div",function(P){if(_.f("web_metadata_carousel_elref_bugfix")){var k=function(){T(P.clientWidth)};
k();window.ResizeObserver&&(v=new ResizeObserver(k),v.observe(P))}}),M=_.sh("div",function(P){b(P.scrollWidth)}),K=_.V(_.In(0,void 0,"I9GbH"));
R=K.next().value;K=K.next().value;var h=R,b=K;K=_.V(_.In(0,void 0,"eQAn5b"));R=K.next().value;K=K.next().value;var N=R,T=K;R=_.V(_.In(0,void 0,"VU3lg"));var x=R.next().value,B=R.next().value;_.rB(function(){if(!_.f("web_metadata_carousel_elref_bugfix")){var P=function(){b(M.value.scrollWidth);T(Q.value.clientWidth)};
P();if(window.ResizeObserver){var k=new ResizeObserver(P);k.observe(Q.value);_.GF(function(){k.disconnect()})}}});
_.GF(function(){if(_.f("web_metadata_carousel_elref_bugfix")){var P;(P=v)==null||P.disconnect()}});
var l=function(){B(y(x()+N()))},Z=function(){B(y(x()-N()))};
return _.F("yt-video-attributes-section-view-model",null,_.F("div",{class:"yt-video-attributes-section-view-model"},_.F(_.w,{cond:function(){return u().headerTitle},
then:function(){return _.F(tNc,{data:u})}}),_.F("div",{class:_.Oy("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:Q},_.F("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.P_({transform:function(){var P=x();_.EB("HTML_DIR")==="rtl"&&(P*=-1);return"translateX("+P+"px)"}}),
el:M},_.F(_.mk,{data:function(){return u().videoAttributeViewModels}},{videoAttributeViewModel:Snc}))),_.F(_.mk,{data:function(){return u().footerButton}},{buttonViewModel:function(P){return _.F(_.fQ,{data:P.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.F(_.w,{cond:function(){return x()<0&&u().previousButton},
then:function(){return _.F("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.F(_.mk,{data:function(){return u().previousButton}},{buttonViewModel:function(P){return _.F(_.fQ,{data:P.data,
onClick:l})}}))}}),_.F(_.w,{cond:function(){return x()>N()-h()&&u().nextButton},
then:function(){return _.F("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.F(_.mk,{data:function(){return u().nextButton}},{buttonViewModel:function(P){return _.F(_.fQ,{data:P.data,
onClick:Z})}}))}})))},"Ld");
cHc.idomCompat=!0;var akg=_.Jd(function(R){var y=R.data;var u=R.active;var v={},Q={};return _.F("timeline-item-view-model",{class:_.Oy("ytwTimelineItemViewModelHost",(v.ytwTimelineItemViewModelHostChapterChild=R.chapterChild,v.ytwTimelineItemViewModelModern=_.f("enable_timeline_view_modern_transcript")||_.f("enable_timeline_view_modern_transcript_fe"),v))},_.F("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.F("div",{class:_.Oy("ytwTimelineItemViewModelTimestamp",(Q.ytwTimelineItemViewModelTimestampActive=
u,Q))},function(){return y().timestamp})),_.F("div",{class:"ytwTimelineItemViewModelContentItems"},_.F(_.mk,{data:function(){return y().contentItems}},{transcriptSegmentViewModel:function(M){return _.F(p6c,{data:M.data,
active:u})},
videoAttributesSectionViewModel:cHc})))},"Md");var SAw=_.Jd(function(R){var y=R.data;R={};return _.F("timeline-chapter-view-model",{class:_.Oy("ytwTimelineChapterViewModelHost")},_.F("div",{class:_.Oy("ytwTimelineChapterViewModelTitle",(R.ytwTimelineChapterViewModelModern=_.f("enable_timeline_view_modern_transcript")||_.f("enable_timeline_view_modern_transcript_fe"),R))},function(){return y().title}),_.F(_.mk,{data:function(){return y().contents}},{timelineItemViewModel:function(u){return _.F(akg,{data:u.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(u){return _.F(cHc,{data:u.data})}}))},"Nd");var YAw=_.Jd(function(R){var y=R.data;var u=_.sh("macro-markers-panel-item-view-model"),v=_.nA(_.ZdE,function(){var M;return(M=y().markersEngagementPanelSyncEntityKey)!=null?M:""}),Q=function(){var M;
return((M=v())==null?void 0:M.activeItemIndex)===y().index};
R=_.nh(function(M){var K,h,b,N,T;return _.I(function(x){if(x.nextAddress==1)return M.stopPropagation(),_.cm(_.tF(M),u.value,["A".toString(),"BUTTON".toString()])?x.return():(K=_.Sb(y().onTap))?x.yield(_.Bm(),2):x.return();h=x.yieldResult;N=(b=_.e(K,_.zM))==null?void 0:b.startTimeSeconds;N===void 0||(T=h)!=null&&T.seekTo(N,!0);_.f$(x)})});
return _.F("macro-markers-panel-item-view-model",{class:_.Oy("ytwMacroMarkersPanelItemViewModelHost",{"is-active":Q}),el:u,"on:click":R,tabindex:0},_.F(_.mk,{data:function(){var M;return(M=y())==null?void 0:M.item}},{timelineChapterViewModel:function(M){return _.F(SAw,{data:M.data,
active:Q})},
timelineItemViewModel:function(M){return _.F(akg,{data:M.data,active:Q})},
videoAttributeViewModel:Snc}))},"Od");
YAw.idomCompat=!0;_.h6(YAw,"macro-markers-panel-item-view-model",{props:{data:_.vR}});_.h6(cHc,"yt-video-attributes-section-view-model",{props:{data:_.vR}});var LJc=_.Jd(function(R){var y=function(){var u,v,Q;return(Q=(u=R.data().leadingLogoAccessibility)==null?void 0:(v=u.accessibilityData)==null?void 0:v.label)!=null?Q:""};
return _.F("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.F(_.w,{cond:function(){return R.data().leadingLogo},
then:function(u){return _.F(_.MR,{className:"ytwFantasySectionHeaderViewModelLogo",data:u,alt:y})}}),_.F("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.F(_.QM,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return R.data().title}}),_.F(_.QM,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return R.data().subtitle}})),_.F(_.mk,{data:function(){return R.data().trailingButton}},{buttonViewModel:function(u){return _.F(_.fQ,{data:u.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Pd");var sl8=_.Jd(function(R){var y={};y=_.Oy("ytwFantasyTeamViewModelHost",(y.ytwFantasyTeamViewModelCompact=function(){var Q;return!((Q=R.compact)==null||!Q.call(R))},y.ytwFantasyTeamViewModelUser=function(){return R.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},y.ytwFantasyTeamViewModelOpponent=function(){return R.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},y));
var u=function(){var Q,M,K;return(K=(Q=R.data().teamLogoAccessibility)==null?void 0:(M=Q.accessibilityData)==null?void 0:M.label)!=null?K:""},v=_.nA(nfO,function(){return R.data().teamEntityKey});
return _.F("ytw-fantasy-team-view-model",{class:y},_.F(_.w,{cond:function(){return R.data().teamLogo},
then:function(Q){return _.F(_.MR,{className:"ytwFantasyTeamViewModelLogo",data:Q,alt:u})}}),_.F("div",{class:"ytwFantasyTeamViewModelMetadata"},_.F("div",{class:"ytwFantasyTeamViewModelHeader"},_.F(_.QM,{className:"ytwFantasyTeamViewModelScore",
text:function(){var Q;return(Q=v())==null?void 0:Q.score}}),_.F(_.W_,{icon:function(){var Q;
return(Q=v())==null?void 0:Q.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.F(_.QM,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var Q;return(Q=v())==null?void 0:Q.projectedScore}})),_.F(_.QM,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return R.data().primaryText}}),_.F(_.QM,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return R.data().secondaryText}}),_.F(_.QM,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return R.data().tertiaryText}})),_.F(_.QM,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var Q;return(Q=v())==null?void 0:Q.score}}))},"Qd");_.h6(_.Jd(function(R){return _.F("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.F("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.F(_.mk,{data:function(){return R.data().summaryHeader}},{fantasySectionHeaderViewModel:LJc})),_.F(_.mk,{data:function(){return R.data().userTeam}},{fantasyTeamViewModel:sl8}),_.F(_.mk,{data:function(){return R.data().opponentTeam}},{fantasyTeamViewModel:sl8}))},"Rd"),"fantasy-league-summary-view-model",{props:{data:_.vR}});var zGK=_.Jd(function(R){var y=_.jb(R,{shape:{},useCustomTabRenderable:!1}),u=y.shape;y=y.useCustomTabRenderable;var v=R.customTabRenderable,Q=function(){return u().disabled},M=function(){return u().selected},K=function(){return u().title},h=function(){return u().icon},b=_.sh("yt-tab-shape");
R=_.nh(function(x){var B;if(!Q()&&((B=u().aTagConfig)==null?0:B.onclick))u().aTagConfig.onclick(x);return!1});
var N=_.nh(function(x){if(x.key==="Enter"||x.key==="ArrowUp"||x.key==="ArrowDown")x.preventDefault(),b.value.click();return!1}),T={};
return _.F("yt-tab-shape",{class:_.Oy("yt-tab-shape-wiz",function(){return u().className},(T["yt-tab-shape-wiz__tab--last-tab"]=function(){return u().isLastTab},T["yt-tab-shape-wiz--host-disabled"]=Q,T["yt-tab-shape-wiz--host-clickable"]=!v,T)),
role:v?void 0:"tab","aria-selected":M!=null?M:!1,"aria-disabled":Q,tabindex:v?void 0:0,"on:click":R,"on:keydown":N,el:b,"tab-identifier":function(){return u().identifier},
"tab-title":K},_.F(_.w,{cond:y,then:function(){return v()},
else:function(){var x={},B={};return _.F(_.vu,null,_.F("div",{class:_.Oy("yt-tab-shape-wiz__tab",(x["yt-tab-shape-wiz__tab--tab-selected"]=M,x))},_.F(_.w,{cond:h,then:function(l){return _.F(_.W_,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return l().iconType}})}}),K),_.F("div",{class:_.Oy("yt-tab-shape-wiz__tab-bar",(B["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=M,B))}))}}))},"Sd");
zGK.idomCompat={callbacks:{customTabRenderable:!0}};_.C5g=_.Jd(function(R){var y=R.shape;R=_.V(_.In(48,void 0,"r9IBlb"));var u=R.next().value,v=R.next().value;R=_.V(_.In(0,void 0,"Bd7rmd"));var Q=R.next().value,M=R.next().value,K=function(){return y().tabs},h=_.sh("yt-tab-group-shape"),b=function(){var N,T;
return(T=(N=K())==null?void 0:N.findIndex(function(x){return x.selected}))!=null?T:-1};
_.rB(function(){var N=h.value.querySelectorAll("yt-tab-shape"),T=b()>-1?N[b()]:void 0;_.WG.addJob(function(){v((T==null?void 0:T.getBoundingClientRect().width)||0)},8,0)});
_.ny(function(){var N=b(),T=_.WG.addJob(function(){var x,B=((x=h.value)==null?void 0:x.querySelectorAll("yt-tab-shape"))||[],l;v(((l=N>-1?B[N]:void 0)==null?void 0:l.getBoundingClientRect().width)||0);for(l=x=0;l<N;l++)x+=B[l].offsetWidth+24;_.EB("HTML_DIR")==="rtl"&&(x=-x);M(x)},8,0);
_.GF(function(){_.WG.cancelJob(T)})},"EHixkc");
R={};return _.F("yt-tab-group-shape",{class:_.Oy("yt-tab-group-shape-wiz",(R["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return y().isOverflowHidden},R)),
el:h},_.F(_.w,{cond:K,then:function(N){return _.F(_.vu,null,_.F("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.F(_.eS,{each:N},function(T,x){return _.F(zGK,{shape:function(){return Object.assign({},T,{isLastTab:x()===N().length-1})},
customTabRenderable:T.customTabRenderable,useCustomTabRenderable:!!T.customTabRenderable})})),_.F(gAG,{width:u,
sliderOffset:Q}))}}))},"Td");
_.C5g.idomCompat=!0;var gAG=_.Jd(function(R){var y=_.Qj(R.sliderOffset,0),u=R.width;return _.F("div",{class:"yt-tab-group-shape-wiz__slider",style:_.P_({width:function(){return u()+"px"},
transform:function(){return"translateX("+y()+"px)"}})})},"Ud");var Rfb=_.Jd(function(R){var y=function(){var M,K,h;return(h=(M=R.data().playerLogoAccessibility)==null?void 0:(K=M.accessibilityData)==null?void 0:K.label)!=null?h:""},u=_.nA(G_E,function(){return R.data().playerEntityKey}),v={};
v=_.Oy("ytwFantasyPlayerViewModelHost",(v.ytwFantasyPlayerViewModelPlaying=function(){var M;return!((M=u())==null||!M.isPlayerPlaying)},v.ytwFantasyPlayerViewModelOnField=function(){var M;
return((M=u())==null?void 0:M.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},v.ytwFantasyPlayerViewModelRedZone=function(){var M;
return((M=u())==null?void 0:M.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},v));
var Q=function(){var M,K,h,b=((M=_.ua().resolve(_.yN(_.u0)))==null?0:M())?(K=R.data().playerLogoBackgroundColor)==null?void 0:K.darkTheme:(h=R.data().playerLogoBackgroundColor)==null?void 0:h.lightTheme;return b===void 0?"":_.Sq(b)};
return _.F("ytw-fantasy-player-view-model",{class:v},_.F(_.w,{cond:function(){return R.data().playerLogo},
then:function(M){return _.F("div",{class:"ytwFantasyPlayerViewModelLogo"},_.F("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.F(_.MR,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.P_({"background-color":Q}),data:M,alt:y})),_.F("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.F(_.W_,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.F("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.F("div",{class:"ytwFantasyPlayerViewModelHeader"},_.F(_.QM,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var M;return(M=R.data())==null?void 0:M.playerNameText}}),_.F(_.QM,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var M;return(M=R.data())==null?void 0:M.playerDescriptionText}})),_.F("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.F(_.QM,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var M;return(M=u())==null?void 0:M.gamePeriodText}}),_.F(_.QM,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var M;return(M=R.data())==null?void 0:M.opponentTeamText}}),_.F(_.QM,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var M;return(M=u())==null?void 0:M.gameStatusText}}),_.F(_.QM,{className:_.Oy("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var M;return(M=u())==null?void 0:M.playerStatusText}})),_.F("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.F(_.QM,{text:function(){var M;
return(M=u())==null?void 0:M.playerStatsText}}))),_.F(_.QM,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var M;return(M=u())==null?void 0:M.fantasyScore}}))},"Vd");var yPc=_.Jd(function(R){return _.F("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.F(_.w,{cond:function(){return R.data().players},
then:function(y){return _.F(_.mk,{data:y},{fantasyPlayerViewModel:Rfb})}}))},"Wd");var uPg=_.Jd(function(R){var y=_.V(_.rW(function(){var Q;return(Q=R.data().selectedTabIdentifierKey)!=null?Q:""})),u=y.next().value,v=y.next().value;
_.nG(function(){var Q;(Q=R.setSelectedTabSignal)==null||Q.call(R,u)});
return _.F("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.F("div",{class:"ytTabbedViewModelTabGroup"},_.F(_.C5g,{shape:function(){var Q=R.data(),M=[],K={tabs:M};if(!Q.tabs)return K;Q=_.V(Q.tabs);for(var h=Q.next(),b={};!h.done;b={tabViewModel:void 0},h=Q.next())if(b.tabViewModel=_.e(h.value,NjY),b.tabViewModel){var N=h=void 0;M.push({aTagConfig:{onclick:function(T){return function(){var x;v((x=T.tabViewModel.tabIdentifier)!=null?x:"")}}(b)},
identifier:b.tabViewModel.tabIdentifier,selected:u()===b.tabViewModel.tabIdentifier,title:(N=(h=b.tabViewModel.title)==null?void 0:h.content)!=null?N:""})}return K}})),_.F(_.mk,{data:function(){var Q,M=_.V((Q=R.data().tabs)!=null?Q:[]);
for(Q=M.next();!Q.done;Q=M.next())if((Q=_.e(Q.value,NjY))&&Q.tabIdentifier===u())return Q.content}},{fantasyRosterViewModel:yPc}))},"Xd");_.h6(_.Jd(function(R){var y=_.V(Lo4()),u=y.next().value,v=y.next().value;return _.F("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.F(_.QM,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return R.data().title}}),_.F(_.w,{cond:function(){return R.data().tabbedViewModel},
then:function(Q){return _.F(_.mk,{data:Q},{tabbedViewModel:function(M){return _.F(uPg,{data:M.data,setSelectedTabSignal:v})}})}}),_.F(_.w,{cond:function(){var Q,M=(Q=_.e(R.data().tabbedViewModel,Tjb))==null?void 0:Q.tabs;
Q=_.e(M==null?void 0:M[0],NjY);M=_.e(M==null?void 0:M[1],NjY);var K=Q==null?void 0:Q.tabIdentifier;if(u()===K){var h,b;if(!((h=_.e(Q==null?void 0:Q.content,IRw))==null?0:(b=h.players)==null?0:b.length))return R.data().noUserTeamPlayersText}else{var N,T;if(!((N=_.e(M==null?void 0:M.content,IRw))==null?0:(T=N.players)==null?0:T.length))return R.data().noOpponentTeamPlayersText}},
then:function(Q){return _.F(_.QM,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:Q})}}))},"Yd"),"ytw-fantasy-matchup-view-model",{props:{data:_.vR}});_.h6(_.Jd(function(R){return _.F("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.F(_.QM,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return R.data().title}}),_.F(_.w,{cond:function(){return R.data().matchupTeamPairs},
then:function(y){return _.F(_.eS,{each:y,keyBy:"INDEX"},function(u){return _.F("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.F(_.mk,{data:function(){return[u().firstTeam,u().secondTeam]}},{fantasyTeamViewModel:function(v){return _.F(sl8,{data:v.data,
compact:!0})}}))})}}))},"Zd"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.vR}});_.h6(_.Jd(function(R){var y=function(){var Q,M,K;return(K=(Q=R.data().userLogoAccessibility)==null?void 0:(M=Q.accessibilityData)==null?void 0:M.label)!=null?K:""},u=function(){var Q,M,K;
return(K=(Q=R.data().opponentLogoAccessibility)==null?void 0:(M=Q.accessibilityData)==null?void 0:M.label)!=null?K:""},v=_.nA(HdO,function(){return R.data().entityKey});
return _.F("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.F("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.F(_.w,{cond:function(){return R.data().userLogo},
then:function(Q){return _.F(_.MR,{className:"ytwFantasyWinProbabilityViewModelLogo",data:Q,alt:y})}}),_.F("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.F(_.QM,{text:function(){return R.data().title}})),_.F(_.w,{cond:function(){return R.data().opponentLogo},
then:function(Q){return _.F(_.MR,{className:"ytwFantasyWinProbabilityViewModelLogo",data:Q,alt:u})}})),_.F("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.F("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.F(_.QM,{text:function(){var Q;
return(Q=v())==null?void 0:Q.userWinNumberLabel}})),_.F("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.F("div",{class:_.Oy("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.P_({flex:function(){var Q,M;return(M=(Q=v())==null?void 0:Q.userWinNumber)!=null?M:50}})}),_.F("div",{class:_.Oy("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.P_({flex:function(){var Q,M;return(M=(Q=v())==null?void 0:Q.opponentWinNumber)!=null?M:50}})})),_.F("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.F(_.QM,{text:function(){var Q;
return(Q=v())==null?void 0:Q.opponentWinNumberLabel}}))))},"$d"),"fantasy-win-probability-view-model",{props:{data:_.vR}});var voc={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},QV5=_.Jd(function(R){return _.F(_.mk,{data:R.button},{buttonViewModel:function(y){return _.F(_.fQ,{data:y.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"ae"),jVw=_.Jd(function(R){return _.F("ytd-backstage-locked-post-view-model",{class:_.Oy("ytdBackstageLockedPostViewModelHost",R.className)},_.F("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.F("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.F(_.mk,
{data:function(){return R.data().authorAvatar}},{decoratedAvatarViewModel:_.mG})),_.F("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.F("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.F(_.QM,{text:function(){return R.data().authorText}})),_.F("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.F(_.QM,{text:function(){return R.data().publishedTimeText}}),_.F(_.mk,{data:function(){return R.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(y){return _.F(rgg,
{data:y.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.F("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.F(_.QM,{text:function(){return R.data().contentText}})),_.F(_.Z6,null,_.F(_.lr,{when:function(){return R.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.F("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.F(_.MR,{data:voc,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.F(_.QM,{text:function(){return R.data().lockedText}}))}),_.F(_.lr,{when:function(){return R.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.F("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.F("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.F(_.MR,{data:voc,
alt:""})),_.F(_.QM,{text:function(){return R.data().lockedText}}))})),_.F("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.F(QV5,{button:function(){return R.data().likeButton}}),_.F("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return R.data().voteCountA11y}},_.F(_.QM,{text:function(){return R.data().voteCount}})),_.F(QV5,{button:function(){return R.data().dislikeButton}}),_.F(QV5,{button:function(){return R.data().commentButton}}),_.F("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return R.data().commentCountA11y}},_.F(_.QM,{text:function(){return R.data().commentCount}}))))},"be");
jVw.idomCompat=!0;_.h6(jVw,"ytd-backstage-locked-post-view-model",{props:{data:_.vR,className:_.vR}});_.Dl("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var gM=function(){var R=_.W.apply(this,arguments)||this;R.darkerPanels=_.f("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.useBigThumbs=!1;R.notSticky=!1;R.epRestyle=!1;R.isCarouselInFeed=!0;R.topSpacingZero=!1;R.continuationIsInitialLoad=!0;R.enableSqueezebackPanels=_.f("web_shorts_enable_squeezeback_panels");R.enableAnchoredPanel=_.f("desktop_shorts_v2_anchored_panel");
R.mastheadHeight=0;R.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};R.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return R};
_.O(gM,_.W);_.J=gM.prototype;_.J.updateLockupContainerTypes=function(R){if(this.eligibleToSwitchToGrid){var y;(y=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||y.forEach(function(u){u.containerType=R})}};
_.J.getItemsPath=function(){return"data.contents"};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.J.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",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",
carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",lockupContainerType:"[[lockupContainerType]]"}},
channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",
properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",
connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",
fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",
handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",
properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",
properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",
offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",
productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",
properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",
searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",
properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",
unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",
properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",
courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",
liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},
"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.f("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.f("kevlar_low_priority_continuation")}}};
_.J.created=function(){};
_.J.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.J.handleIntersect=function(R){this.notSticky=R[0].intersectionRatio===1};
_.J.attached=function(){var R=this;document.addEventListener("scroll",_.BN(this,this.updateHeaderState));var y;this.mastheadHeight=((y=document.querySelector("ytd-masthead"))==null?void 0:y.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(u){R.handleIntersect(u)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){R.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.J.detached=function(){document.removeEventListener("scroll",_.BN(this,this.updateHeaderState));var R;(R=this.intersectionObserver)==null||R.disconnect();var y;(y=this.resizeObserver)==null||y.disconnect()};
_.J.updated=function(R){R.has("data")&&this.updateHeaderState()};
_.J.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(rrK(!this.notSticky))};
_.J.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var R=_.hw(this.hostElement).querySelector("ytd-comments-header-renderer");R&&(R.hidePanelButton=this.commentsHidePanelButton)}};
_.J.onRetrieveLocation=function(R,y){this.containsComments()&&(this.firstCommentsLoaded=y.hasComments=!0)};
_.J.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.J.onLoadReloadContinuation=function(R,y){var u=this;R.stopPropagation();this.isReloading=!0;_.Ko(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(v){var Q=_.ua().resolve(_.AU);v=y(v);Q.postData(v).then(function(M){u.onReloadContinuationData(M)})}})};
_.J.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};
_.J.computeContentsClass=function(R){return R?"reloading":""};
_.J.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.J.computeSectionIdentifier=function(R){return R==null?void 0:R.sectionIdentifier};
_.J.computeFitContainer=function(R){return(R==null?void 0:R.sectionIdentifier)==="youchat-item-section"};
_.J.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.f("kevlar_disable_comments_auto_load")};
_.J.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.J.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.J.computeHasDestinationShelfRenderer=function(R){var y,u;return!!(R==null?0:(y=R.contents)==null?0:(u=y[0])==null?0:u.destinationShelfRenderer)};
_.J.computeHasSectionGroupViewModel=function(R){var y,u;return!!(R==null?0:(y=R.contents)==null?0:(u=y[0])==null?0:u.sectionGroupViewModel)};
_.J.computeHasQrCodeRenderer=function(R){var y,u;return!!(R==null?0:(y=R.contents)==null?0:(u=y[0])==null?0:u.qrCodeRenderer)};
_.J.computeStaticCommentsHeader=function(R){return R&&this.containsComments()};
_.J.computeEpRestyle=function(R){return _.f("web_ep_restyling")&&R&&this.containsComments()};
_.J.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"};
_.J.computeSuppressPaddingDisclaimer=function(){var R,y,u,v;return!!((R=this.data)==null?0:(y=R.contents)==null?0:(u=y[0])==null?0:(v=u.productListHeaderRenderer)==null?0:v.suppressPaddingDisclaimer)};
_.J.computeHeaderStyle=function(R){switch(R==null?void 0:R.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.J.dataChanged=function(){this.firstCommentsLoaded=!1};
_.J.observeDataContentsLength=function(){var R,y;((R=this.data)==null?0:(y=R.contents)==null?0:y.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.J.onYtDismissibleItemDismissedChange=function(R){this._setItemDismissed(R.type==="yt-dismissible-item-dismissed")};
_.J.triggerContinuations=function(){for(var R=_.hw(this.hostElement).querySelector("#continuations").children,y=0;y<R.length;y++)R[y].trigger()};
_.J.triggerInitialContinuations=function(){for(var R=_.hw(this.hostElement).querySelector("#continuations").children,y=0;y<R.length;y++)R[y].triggerIfNotPreviouslyTriggered()};
_.J.handleYtItemSectionContinuation=function(R,y){var u;y&&((u=this.data)==null?void 0:u.sectionIdentifier)!==y||(this.set("data.continuations",[R]),this.triggerContinuations())};
_.J.handleYtItemSectionReplace=function(R,y){var u;y&&((u=this.data)==null?void 0:u.sectionIdentifier)!==y||(this.set("data.contents",R),this.set("data.continuations",[]))};
_.J.computeUseHeightHack=function(R){return R&&!_.f("kevlar_disable_height_hack")};
_.J.computeTopSpacingZero=function(R){return R};
_.J.continuationShowButtonChanged=function(){var R=_.hw(this.hostElement).querySelector("ytd-continuation-item-renderer");R&&(R.showButton=this.continuationShowButton)};
_.J.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.CQ("data-changed",this.data))};
_.RR.Object.defineProperties(gM.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.f("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.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var R,y,u;return!!((R=this.data)==null?0:(y=R.contents)==null?0:(u=y[0])==null?0:u.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var R,y,u,v,Q,M,K;return!!((R=this.data)==null?0:(y=R.contents)==null?0:(u=y[0])==null?0:(v=u.shelfRenderer)==null?0:(Q=v.content)==null?0:(M=Q.gridRenderer)==null?0:(K=M.targetId)==null?0:K.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var R,y,u;return!!((R=this.data)==null?0:(y=R.contents)==null?0:(u=y[0])==null?0:u.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var R,y,u;return!!((R=this.data)==null?0:(y=R.contents)==null?0:(u=y[0])==null?0:u.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.VN("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.f("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.f("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
gM.prototype.dataChangedForBinding=gM.prototype.dataChangedForBinding;gM.prototype.continuationShowButtonChanged=gM.prototype.continuationShowButtonChanged;gM.prototype.onYtDismissibleItemDismissedChange=gM.prototype.onYtDismissibleItemDismissedChange;gM.prototype.observeDataContentsLength=gM.prototype.observeDataContentsLength;gM.prototype.dataChanged=gM.prototype.dataChanged;gM.prototype.onServiceRequestCompleted=gM.prototype.onServiceRequestCompleted;gM.prototype.onLoadReloadContinuation=gM.prototype.onLoadReloadContinuation;
gM.prototype.onRetrieveLocation=gM.prototype.onRetrieveLocation;gM.prototype.commentsHidePanelButtonChanged=gM.prototype.commentsHidePanelButtonChanged;gM.prototype.dispatchChipBarIsSticky=gM.prototype.dispatchChipBarIsSticky;gM.prototype.updateLockupContainerTypes=gM.prototype.updateLockupContainerTypes;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],gM.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],gM.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],gM.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.K_.YtLazyListBehavior),_.p("design:type",Object)],gM.prototype,"ytLazyListBehavior",void 0);_.A([_.n(_.Cw.YtNextContinuationBehavior),_.p("design:type",Object)],gM.prototype,"ytNextContinuationBehavior",void 0);
_.A([_.n(_.gb),_.p("design:type",Object)],gM.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],gM.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],gM.prototype,"ytdReduxBehavior",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],gM.prototype,"darkerPanels",void 0);_.A([_.r(),_.p("design:type",Object)],gM.prototype,"data",void 0);
_.A([_.r(),_.p("design:type",Boolean)],gM.prototype,"engagementPanel",void 0);_.A([_.r(),_.p("design:type",Object)],gM.prototype,"commentsHidePanelButton",void 0);_.A([_.r(),_.p("design:type",Object)],gM.prototype,"isWatchGrid",void 0);_.A([_.r(),_.p("design:type",Object)],gM.prototype,"continuationShowButton",void 0);_.A([_.r({computed:"computeIsContinuationCommentSection(data)"}),_.p("design:type",Boolean)],gM.prototype,"continuationIsCommentsSection",void 0);
_.A([_.r({value:!0}),_.p("design:type",Boolean)],gM.prototype,"autoFill",void 0);_.A([_.r(),_.p("design:type",Boolean)],gM.prototype,"continuationDisablePrescanVisibility",void 0);_.A([_.r(),_.p("design:type",Boolean)],gM.prototype,"isReloading",void 0);_.A([_.r(),_.p("design:type",Object)],gM.prototype,"isSearch",void 0);_.A([_.r(),_.p("design:type",Object)],gM.prototype,"isConstrainedList",void 0);_.A([_.r(),_.p("design:type",Object)],gM.prototype,"isWatch",void 0);
_.A([_.r(),_.p("design:type",Object)],gM.prototype,"eligibleToSwitchToGrid",void 0);_.A([_.r(),_.p("design:type",Object)],gM.prototype,"useBigThumbs",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],gM.prototype,"notSticky",void 0);_.A([_.r({selector:_.aC}),_.p("design:type",Object)],gM.prototype,"isGridViewEnabled",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.p("design:type",Object)],gM.prototype,"epRestyle",void 0);_.A([_.G("isWatch"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],gM.prototype,"hideShortsShelfHeader",null);_.A([_.G("isSearch","isWatch"),_.p("design:type",String),_.p("design:paramtypes",[])],gM.prototype,"thumbnailWidth",null);
_.A([_.G("isSearch","isWatch"),_.p("design:type",String),_.p("design:paramtypes",[])],gM.prototype,"sizing",null);_.A([_.G("isWatch","isGridViewEnabled","useBigThumbs","data"),_.r({reflectToAttribute:!0}),_.p("design:type",Number),_.p("design:paramtypes",[])],gM.prototype,"lockupContainerType",null);_.A([_.e0("lockupContainerType","data"),_.p("design:type",Function),_.p("design:paramtypes",[Number]),_.p("design:returntype")],gM.prototype,"updateLockupContainerTypes",null);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],gM.prototype,"pageSubtype",void 0);_.A([_.r({computed:"computeContainerWidth()"}),_.p("design:type",Number)],gM.prototype,"containerWidth",void 0);_.A([_.r(),_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],gM.prototype,"isPlaylist",null);_.A([_.r(),_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],gM.prototype,"isClipList",null);_.A([_.r(),_.p("design:type",Object)],gM.prototype,"isCarouselInFeed",void 0);
_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],gM.prototype,"isPlaylistVideoContainer",null);_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],gM.prototype,"isSearchFrictionPage",null);_.A([_.r({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.p("design:type",Boolean)],gM.prototype,"useHeightHack",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.p("design:type",Object)],gM.prototype,"topSpacingZero",void 0);_.A([_.r({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.p("design:type",Boolean)],gM.prototype,"showButton",void 0);_.A([_.r(),_.p("design:type",Boolean)],gM.prototype,"firstCommentsLoaded",void 0);_.A([_.r(),_.p("design:type",Object)],gM.prototype,"continuationIsInitialLoad",void 0);
_.A([_.r({reflectToAttribute:!0,readOnly:!0}),_.p("design:type",Boolean)],gM.prototype,"itemDismissed",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.p("design:type",String)],gM.prototype,"sectionIdentifier",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.p("design:type",String)],gM.prototype,"fitContainer",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.p("design:type",Boolean)],gM.prototype,"hasDestinationShelfRenderer",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.p("design:type",Boolean)],gM.prototype,"staticCommentsHeader",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],gM.prototype,"enableSqueezebackPanels",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],gM.prototype,"enableAnchoredPanel",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.p("design:type",Boolean)],gM.prototype,"hasSectionGroupViewModel",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.p("design:type",Boolean)],gM.prototype,"hasQrCodeRenderer",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.p("design:type",Boolean)],gM.prototype,"suppressDisclaimerSeparator",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.p("design:type",String)],gM.prototype,"headerStyle",void 0);_.A([_.G("isSearch"),_.p("design:type",Object),_.p("design:paramtypes",[])],gM.prototype,"lockupExperiments",null);
_.A([_.G("isSearch"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],gM.prototype,"typographyBump",null);_.A([_.O7("#header"),_.p("design:type",HTMLElement)],gM.prototype,"header",void 0);_.A([_.e0("notSticky"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gM.prototype,"dispatchChipBarIsSticky",null);
_.A([_.e0("commentsHidePanelButton"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gM.prototype,"commentsHidePanelButtonChanged",null);_.A([_.fu("yt-retrieve-location"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],gM.prototype,"onRetrieveLocation",null);
_.A([_.fu("yt-load-reload-continuation"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Function]),_.p("design:returntype")],gM.prototype,"onLoadReloadContinuation",null);_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gM.prototype,"onServiceRequestCompleted",null);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gM.prototype,"dataChanged",null);
_.A([_.GJ("data.contents.length"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gM.prototype,"observeDataContentsLength",null);_.A([_.fu("yt-dismissible-item-dismissed"),_.fu("yt-dismissible-item-undismissed"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],gM.prototype,"onYtDismissibleItemDismissedChange",null);
_.A([_.e0("continuationShowButton"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gM.prototype,"continuationShowButtonChanged",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gM.prototype,"dataChangedForBinding",null);_.A([_.q({is:"ytd-item-section-renderer",disableElementRegistration:!0})],gM);
_.m(gM,"ytd-item-section-renderer",function(){if(lJ8!==void 0)return lJ8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return lJ8=R},{mode:1});var MUG;var g4G=_.ye(_.fo("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var JPc={},zOP=(JPc[0]={title:_.Mq(_.fo("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Mq(_.fo("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:Qw("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},JPc[1]={title:_.Mq(_.fo("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:Qw("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},JPc);_.Dl("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var C5=function(){var R=_.W.apply(this,arguments)||this;R.allVideosCount=0;R.allPlaylistCount=0;R.isOnline=!1;R.shouldRenderDownloadsBanner=!1;R.shouldRenderDownloadsBannerUpsell=!1;R.hasOptedIntoSmartDownloads=!1;R.areAllSmartDownloadsDeleted=!1;R.smartDownloadsCompleted=!1;return R};
_.O(C5,_.W);C5.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
C5.prototype.attached=function(){this.downloadsToRenderChanged()};
C5.prototype.detached=function(){this.set("renderableData",{})};
C5.prototype.downloadsToRenderChanged=function(){var R=_.Qe().getState().entities,y=_.Uq(R),u=_.f("kevlar_playlist_dl_page_killswitch")?Pt4(R):_.ks(R),v=_.lXE(R),Q=_.n0O(R),M=_.nz(y);R=_.Eq(R);this.set("renderableData",Rrz(u,y,v,Q,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,M,R))};
C5.prototype.downloadsToRenderChanged=C5.prototype.downloadsToRenderChanged;_.A([_.n(_.p6),_.p("design:type",Object)],C5.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],C5.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],C5.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],C5.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],C5.prototype,"renderableData",void 0);_.A([_.r({selector:_.prv}),_.p("design:type",Object)],C5.prototype,"allVideosCount",void 0);_.A([_.r({selector:DuU}),_.p("design:type",Object)],C5.prototype,"allPlaylistCount",void 0);_.A([_.r({selector:_.Dn}),_.p("design:type",Object)],C5.prototype,"isOnline",void 0);_.A([_.r({selector:_.smO}),_.p("design:type",Object)],C5.prototype,"shouldRenderDownloadsBanner",void 0);
_.A([_.r({selector:_.RJL}),_.p("design:type",Object)],C5.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.A([_.r({selector:_.zx4}),_.p("design:type",Object)],C5.prototype,"hasOptedIntoSmartDownloads",void 0);_.A([_.r({selector:_.g0U}),_.p("design:type",Object)],C5.prototype,"areAllSmartDownloadsDeleted",void 0);_.A([_.r({selector:CtG}),_.p("design:type",Object)],C5.prototype,"smartDownloadsCompleted",void 0);
_.A([_.GJ("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],C5.prototype,"downloadsToRenderChanged",null);_.A([_.q({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],C5);
_.m(C5,"ytd-offline-item-section-renderer",function(){if(MUG!==void 0)return MUG;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return MUG=R},
{mode:1});var VUV;var igY;var R$=function(){return _.W.apply(this,arguments)||this};
_.O(R$,_.W);
R$.prototype.onDataChanged=function(){if(this.JSC$16579_lastData){var R=this.getFilterClass(this.JSC$16579_lastData.status);R&&this.hostElement.classList.remove(R)}var y;(R=this.getFilterClass((y=this.data)==null?void 0:y.status))&&this.hostElement.classList.add(R);R==="selected"?_.hw(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.hw(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");R==="disabled"?_.hw(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.hw(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16579_lastData=this.data};
R$.prototype.getFilterClass=function(R){switch(R){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
R$.prototype.onDataChanged=R$.prototype.onDataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],R$.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],R$.prototype,"data",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],R$.prototype,"onDataChanged",null);_.A([_.q({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],R$);
_.m(R$,"ytd-search-filter-renderer",function(){if(igY!==void 0)return igY;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return igY=R},{mode:_.TN("kevlar_poly_si_batch_j075")?1:2});var yS=function(){return _.W.apply(this,arguments)||this};
_.O(yS,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],yS.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],yS.prototype,"data",void 0);_.A([_.q({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],yS);
_.m(yS,"ytd-search-filter-group-renderer",function(){if(VUV!==void 0)return VUV;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return VUV=R},{mode:_.TN("kevlar_poly_si_batch_j075")?1:2});var Kwi;var u6=function(){return _.W.apply(this,arguments)||this};
_.O(u6,_.W);u6.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.Bb());this.isCollapsed=!this.isCollapsed};
u6.prototype.navigateToAboutTheseResultsPage=function(){var R=Uo("https://www.youtube.com/howyoutubeworks/product-features/search/");R?_.aK(window,R,"_blank"):_.mq(Error("Rh"))};
u6.prototype.dataChanged=function(){this.isCollapsed=!0};
u6.prototype.computeShowBottomBorder=function(){var R,y,u;return!!((R=this.data)==null?0:(y=R.button)==null?0:y.toggleButtonRenderer)||!((u=this.data)==null||!u.aboutTheseResultsButton)};
u6.prototype.dataChanged=u6.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],u6.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],u6.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.p("design:type",Boolean)],u6.prototype,"showBottomBorder",void 0);_.A([_.r(),_.p("design:type",Boolean)],u6.prototype,"renderCollapsibleMenu",void 0);
_.A([_.r(),_.p("design:type",Boolean)],u6.prototype,"isCollapsed",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],u6.prototype,"dataChanged",null);_.A([_.q({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],u6);
_.m(u6,"ytd-search-sub-menu-renderer",function(){if(Kwi!==void 0)return Kwi;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Kwi=R},{mode:1});var Iv5;var hfb=new _.Jx("SECTION_LIST_RENDERER_TOKEN");var bgG;var vq=function(){return _.W.apply(this,arguments)||this};
_.O(vq,_.W);vq.prototype.computeStyle=function(R){return R?R.toLowerCase().replace(/_/g,"-"):""};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],vq.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],vq.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.p("design:type",String)],vq.prototype,"headerStyle",void 0);_.A([_.q({is:"ytd-text-header-renderer",disableElementRegistration:!0})],vq);
_.m(vq,"ytd-text-header-renderer",function(){if(bgG!==void 0)return bgG;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return bgG=R},{mode:1});var Fwg;var QS=function(){return _.W.apply(this,arguments)||this};
_.O(QS,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],QS.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],QS.prototype,"data",void 0);_.A([_.q({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],QS);
_.m(QS,"ytd-minor-moment-header-renderer",function(){if(Fwg!==void 0)return Fwg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Fwg=R},{mode:1});var wJT;var jW=function(){return _.W.apply(this,arguments)||this};
_.O(jW,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],jW.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],jW.prototype,"data",void 0);_.A([_.q({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],jW);
_.m(jW,"ytd-minor-moment-setting-alert-renderer",function(){if(wJT!==void 0)return wJT;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return wJT=R},{mode:1});var Npc;var Tp5;var Mf=function(){var R=_.W.apply(this,arguments)||this;R.booleanSettingById=!1;R.smartDownloadsEnabledVE=_.$6(128287);R.smartDownloadsDisabledVE=_.$6(128286);R.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return R};
_.O(Mf,_.W);_.J=Mf.prototype;_.J.attachSmartDownloadsSettingVes=function(){var R;this.activeVeForLogging||((R=this.data)==null?void 0:R.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.x0(_.GN(),this.smartDownloadsEnabledVE),_.x0(_.GN(),this.smartDownloadsDisabledVE))};
_.J.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.Ko(this.hostElement,"yt-settings-switch-ready")};
_.J.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.J.onSwitchChange=function(R){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(R=_.vN(R).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.f("kevlar_settings_switch_resolve_command_killswitch")?_.ua().resolve(_.jX).resolveCommand(R,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(R)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.J.handleUpdateSettingsSwitch=function(R){(R=_.e(R,WRT))&&this.data&&this.data.id===R.id&&this.set("data.enabled",!!R.enabled)};
_.J.onToggleSettingsSwitch=function(R,y){this.data&&this.data.id===R&&this.set("data.enabled",y!=null?y:!this.data.enabled)};
_.J.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.Js.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.J.maybeLogSmartDownloadsSettingVisibility=function(){var R=_.$I(),y;R&&((y=this.data)==null?void 0:y.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.Lo(R,[this.smartDownloadsEnabledVE]),_.s9(R,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.Lo(R,[this.smartDownloadsDisabledVE]),_.s9(R,[this.smartDownloadsEnabledVE])))};
_.J.maybeLogSmartDownloadsSettingClick=function(){var R;((R=this.data)==null?void 0:R.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.fx(_.GN(),this.activeVeForLogging)};
_.J.updateDataEnabledFromBinding=function(R){this.set("data.enabled",R.detail.value)};
_.RR.Object.defineProperties(Mf.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}}});
Mf.prototype.dataChanged=Mf.prototype.dataChanged;_.A([_.n(_.p6),_.p("design:type",Object)],Mf.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Mf.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Mf.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Mf.prototype,"ytComponentBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],Mf.prototype,"data",void 0);_.A([_.r({selector:function(R,y){if(Object.keys(R==null?void 0:R.entities).length)switch(y){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return WIT(R.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.p("design:type",Object)],Mf.prototype,"booleanSettingById",void 0);_.A([_.r(),_.p("design:type",_.kI)],Mf.prototype,"activeVeForLogging",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Mf.prototype,"toggleAriaLabel",null);_.A([_.GJ("data"),_.GJ("booleanSettingById"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Mf.prototype,"dataChanged",null);
_.A([_.q({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],Mf);
_.m(Mf,"ytd-settings-switch-renderer",function(){if(Tp5!==void 0)return Tp5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Tp5=R},{mode:1});var Jf=function(){return _.W.apply(this,arguments)||this};
_.O(Jf,_.W);Jf.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}}}}};
_.RR.Object.defineProperties(Jf.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Jf.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Jf.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Jf.prototype,"data",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Jf.prototype,"contentsClassName",null);_.A([_.q({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],Jf);
_.m(Jf,"ytd-minor-moment-setting-section-renderer",function(){if(Npc!==void 0)return Npc;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return Npc=R},{mode:1});var ooT;var VS=function(){return _.W.apply(this,arguments)||this};
_.O(VS,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],VS.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],VS.prototype,"componentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],VS.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],VS);
_.m(VS,"ytd-empty-product-details-renderer",function(){if(ooT!==void 0)return ooT;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return ooT=R},{mode:1});var xIK;var BpY;var i6=function(){var R=_.W.apply(this,arguments)||this;R.expanded=!0;return R};
_.O(i6,_.W);i6.prototype.getBadgeRowClass=function(R,y,u){for(var v=_.V(this.hostElement.querySelectorAll("yt-img-shadow")),Q=v.next();!Q.done;Q=v.next())Q.value.onShow();R=R.selected;return u?R!==-1?R===y?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(R!==void 0?R:0)===y?"badge-line":"badge-hidden"};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],i6.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],i6.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],i6.prototype,"expanded",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],i6);
_.m(i6,"ytd-sponsorships-loyalty-badges-renderer",function(){if(BpY!==void 0)return BpY;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return BpY=R},{mode:1});var fvL;var Kr=function(){var R=_.W.apply(this,arguments)||this;R.expanded=!0;return R};
_.O(Kr,_.W);Kr.prototype.getContainerClasses=function(R,y){R=R?"expanded":"collapsed";y&&(R+=" item");return R};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Kr.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Kr.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],Kr.prototype,"expanded",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],Kr);
_.m(Kr,"ytd-sponsorships-perk-renderer",function(){if(fvL!==void 0)return fvL;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return fvL=R},{mode:1});var efL;var I$=function(){var R=_.W.apply(this,arguments)||this;R.expanded=!0;return R};
_.O(I$,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],I$.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],I$.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],I$.prototype,"expanded",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],I$);
_.m(I$,"ytd-sponsorships-perks-renderer",function(){if(efL!==void 0)return efL;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return efL=R},{mode:1});var hf=function(){var R=_.W.apply(this,arguments)||this;R.isCollapsed=!1;return R};
_.O(hf,_.W);hf.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
hf.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
hf.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var R;this.expandCollapseButton=_.e((R=this.data)==null?void 0:R.expandButton,_.aG)}else{var y;this.expandCollapseButton=_.e((y=this.data)==null?void 0:y.collapseButton,_.aG)}};
hf.prototype.updateExpandCollapseButton=hf.prototype.updateExpandCollapseButton;hf.prototype.onDataChanged=hf.prototype.onDataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],hf.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],hf.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],hf.prototype,"isCollapsed",void 0);_.A([_.r(),_.p("design:type",Object)],hf.prototype,"expandCollapseButton",void 0);
_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hf.prototype,"onDataChanged",null);_.A([_.GJ("data","isCollapsed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hf.prototype,"updateExpandCollapseButton",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],hf);
_.m(hf,"ytd-sponsorships-expandable-perks-renderer",function(){if(xIK!==void 0)return xIK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return xIK=R},{mode:1});var lvi;var b6=function(){return _.W.apply(this,arguments)||this};
_.O(b6,_.W);b6.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],b6.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],b6.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],b6.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],b6);
_.m(b6,"ytd-sponsorships-actionable-message-renderer",function(){if(lvi!==void 0)return lvi;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return lvi=R},{mode:1});var Og8;var Ff=function(){return _.W.apply(this,arguments)||this};
_.O(Ff,_.W);_.J=Ff.prototype;_.J.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.J.getExpansionIcon=function(R){return R?"COLLAPSE":"EXPAND"};
_.J.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.J.computeMessageContainerStyle=function(R){var y=R.expandableItems?" style-clickable":"";return R.messageContainerStyle?R.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+y:"style-unspecified"+y};
_.J.isSinglePerk=function(R){return!!R.messageContainerStyle&&(R.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||R.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.J.onExpandedChanged=function(){var R=this;if(this.expanded)for(var y=_.V(this.hostElement.querySelectorAll("yt-img-shadow")),u=y.next();!u.done;u=y.next())u.value.onShow();_.gn(this,function(){_.Ko(R.hostElement,"yt-refit")})};
_.J.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
Ff.prototype.onDataChanged=Ff.prototype.onDataChanged;Ff.prototype.onExpandedChanged=Ff.prototype.onExpandedChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Ff.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Ff.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Ff.prototype,"data",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],Ff.prototype,"expanded",void 0);
_.A([_.e0("expanded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ff.prototype,"onExpandedChanged",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ff.prototype,"onDataChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],Ff);
_.m(Ff,"ytd-sponsorships-expandable-message-renderer",function(){if(Og8!==void 0)return Og8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return Og8=R},{mode:_.TN("kevlar_poly_si_batch_j028")?1:2});var Zgc;var wl=function(){return _.W.apply(this,arguments)||this};
_.O(wl,_.W);wl.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"}}}}};
wl.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.e(this.data.endButton,_.aG).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
wl.prototype.onDataChanged=wl.prototype.onDataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],wl.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],wl.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],wl.prototype,"data",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wl.prototype,"onDataChanged",null);
_.A([_.q({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],wl);
_.m(wl,"ytd-sponsorships-heading-renderer",function(){if(Zgc!==void 0)return Zgc;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Zgc=R},{mode:1});var HgK;var Nf=function(){return _.W.apply(this,arguments)||this};
_.O(Nf,_.W);_.A([_.r(),_.p("design:type",Object)],Nf.prototype,"data",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Nf.prototype,"ytRendererBehavior",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],Nf);
_.m(Nf,"ytd-sponsorships-links-renderer",function(){if(HgK!==void 0)return HgK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return HgK=R},{mode:1});var nog;var Ts=function(){return _.W.apply(this,arguments)||this};
_.O(Ts,_.W);_.J=Ts.prototype;_.J.onDataChanged=function(){if(this.data&&this.data.expandableItems){var R;(R=_.hw(this.hostElement).querySelector("tp-yt-paper-button"))==null||R.setAttribute("role","button")}else{var y;(y=_.hw(this.hostElement).querySelector("tp-yt-paper-button"))==null||y.removeAttribute("role")}};
_.J.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.J.getExpansionIcon=function(R){return R?"COLLAPSE":"EXPAND"};
_.J.getTileClasses=function(R){return R?"tile expandable-tile":"tile"};
_.J.getButtonDisabled=function(R){return R?void 0:""};
Ts.prototype.onDataChanged=Ts.prototype.onDataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Ts.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Ts.prototype,"data",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],Ts.prototype,"expanded",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ts.prototype,"onDataChanged",null);
_.A([_.q({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],Ts);
_.m(Ts,"ytd-sponsorships-list-tile-renderer",function(){if(nog!==void 0)return nog;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return nog=R},{mode:1});var Grw;var rP5;var o$=function(){return _.W.apply(this,arguments)||this};
_.O(o$,_.W);o$.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],o$.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],o$.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],o$.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],o$);
_.m(o$,"ytd-sponsorships-promotion-renderer",function(){if(rP5!==void 0)return rP5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return rP5=R},{mode:1});var PYg;var xP=function(){return _.W.apply(this,arguments)||this};
_.O(xP,_.W);xP.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],xP.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],xP.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],xP.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],xP);
_.m(xP,"ytd-sponsorships-purchase-option-renderer",function(){if(PYg!==void 0)return PYg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return PYg=R},{mode:1});var Www;var dIT;var UIK=function(){return _.W.apply(this,arguments)||this};
_.O(UIK,_.W);_.A([_.r(),_.p("design:type",Object)],UIK.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],UIK);
_.m(UIK,"ytd-ypc-offer-promo-renderer",function(){if(dIT!==void 0)return dIT;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return dIT=R},{mode:1});var Bq=function(){return _.W.apply(this,arguments)||this};
_.O(Bq,_.W);_.J=Bq.prototype;
_.J.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"}}}}};
_.J.expansionCTA=function(R,y){return R&&(y?R.collapseCallToAction:R.expansionCallToAction)};
_.J.getExpansionIcon=function(R){return R?"COLLAPSE":"EXPAND"};
_.J.expansionCallToActionTap=function(){var R=this;this.expanded=!this.expanded;_.gn(this,function(){_.Ko(R.hostElement,"yt-refit")})};
_.J.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var R,y=(R=this.data)==null?void 0:R.onVisible;y&&this.ytComponentBehavior.resolveCommand(y)};
_.J.computeDisplayTitle=function(R){return!(!R||this.titledisplaystatus!=="show")};
_.J.computeDisplaySeparator=function(){return!1};
_.J.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
Bq.prototype.onDataChanged=Bq.prototype.onDataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Bq.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Bq.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Bq.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Bq.prototype,"data",void 0);
_.A([_.r({value:!1}),_.p("design:type",Boolean)],Bq.prototype,"expanded",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],Bq.prototype,"purchaseButtonClicked",void 0);_.A([_.r({reflectToAttribute:!0,value:"show"}),_.p("design:type",String)],Bq.prototype,"titledisplaystatus",void 0);_.A([_.r({computed:"computeDisplayTitle(data.title)"}),_.p("design:type",Boolean)],Bq.prototype,"displayTitle",void 0);
_.A([_.r({computed:"computeDisplaySeparator(data)"}),_.p("design:type",Boolean)],Bq.prototype,"displaySeparator",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Bq.prototype,"onDataChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],Bq);
_.m(Bq,"ytd-sponsorships-tier-renderer",function(){if(Www!==void 0)return Www;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Www=R},{mode:2});var fr=function(){return _.W.apply(this,arguments)||this};
_.O(fr,_.W);
fr.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],fr.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],fr.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],fr.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],fr);
_.m(fr,"ytd-sponsorships-management-renderer",function(){if(Grw!==void 0)return Grw;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return Grw=R},{mode:1});var krK;var eW=function(){return _.W.apply(this,arguments)||this};
_.O(eW,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],eW.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],eW.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],eW);
_.m(eW,"ytd-open-in-native-app-view-model",function(){if(krK!==void 0)return krK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return krK=R},{mode:_.TN("kevlar_poly_si_batch_j028")?1:2});var EoG;var $Ic;var qwY=_.RE(["top-"]),XJL=_.RE(["bottom-"]),mI5=_.RE(["left-"]),AP8=_.RE(["right-"]),DIw={},pJ5=function(R,y,u){R.removeAttribute("top-"+u);R.removeAttribute("bottom-"+u);R.removeAttribute("left-"+u);R.removeAttribute("right-"+u);y&&(y.top&&_.R1([_.QW(qwY)],R,"top-"+u,y.top),y.bottom&&_.R1([_.QW(XJL)],R,"bottom-"+u,y.bottom),y.left&&_.R1([_.QW(mI5)],R,"left-"+u,y.left),y.right&&_.R1([_.QW(AP8)],R,"right-"+u,y.right))};
DIw.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(R){var y,u=_.hw((y=this.hostElement)!=null?y:this),v;y=this.cardItemBoxBehaviorMarginTargetId&&u?u.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(v=this.hostElement)!=null?v:this;pJ5(y,R,"margin")},
cardItemContainerPaddingChanged_:function(R){var y,u=_.hw((y=this.hostElement)!=null?y:this),v;y=this.cardItemBoxBehaviorPaddingTargetId&&u?u.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(v=this.hostElement)!=null?v:this;pJ5(y,R,"padding")}}];var l6={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 tU5;var cP5;var OV=function(){return _.W.apply(this,arguments)||this};
_.O(OV,_.W);OV.prototype.textColorChanged_=function(){this.hostElement.style.color=l6[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
OV.prototype.textColorChanged_=OV.prototype.textColorChanged_;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],OV.prototype,"ytRendererBehavior",void 0);_.A([_.n(DIw.YtCardItemBoxBehavior),_.p("design:type",Object)],OV.prototype,"ytCardItemBoxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],OV.prototype,"data",void 0);_.A([_.e0("data.textColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],OV.prototype,"textColorChanged_",null);
_.A([_.pu({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],OV);
_.m(OV,"yt-card-item-text-renderer",function(){if(cP5===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;tU5===void 0&&(tU5=document.createElement("template"));var v=tU5;u.call(y,v.content.cloneNode(!0),R.content.firstChild);cP5=R}R=cP5;return R},{mode:2});var avK;var Sw5;var Zu=function(){return _.W.apply(this,arguments)||this};
_.O(Zu,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Zu.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Zu.prototype,"data",void 0);_.A([_.pu({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],Zu);
_.m(Zu,"yt-card-item-badge-renderer",function(){if(Sw5===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;avK===void 0&&(avK=document.createElement("template"));var v=avK;u.call(y,v.content.cloneNode(!0),R.content.firstChild);Sw5=R}R=Sw5;return R},{mode:2});var YwG;var LwK;var Hq=function(){return _.W.apply(this,arguments)||this};
_.O(Hq,_.W);Hq.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Hq.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Hq.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Hq.prototype,"data",void 0);_.A([_.pu({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],Hq);
_.m(Hq,"yt-card-item-text-collection-renderer",function(){if(LwK===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;YwG===void 0&&(YwG=document.createElement("template"));var v=YwG;u.call(y,v.content.cloneNode(!0),R.content.firstChild);LwK=R}R=LwK;return R},{mode:2});var sVK;var zfL;var nr=function(){return _.W.apply(this,arguments)||this};
_.O(nr,_.W);nr.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],nr.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],nr.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],nr.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Number)],nr.prototype,"iconSize",void 0);_.A([_.pu({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],nr);
_.m(nr,"yt-card-item-text-with-button-renderer",function(){if(zfL===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;sVK===void 0&&(sVK=document.createElement("template"));var v=sVK;u.call(y,v.content.cloneNode(!0),R.content.firstChild);zfL=R}R=zfL;return R},{mode:2});var Gs=function(){return _.W.apply(this,arguments)||this};
_.O(Gs,_.W);Gs.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Gs.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Gs.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Gs.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Gs.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],Gs);
_.m(Gs,"ytd-commerce-cart-summary-line-item-renderer",function(){if($Ic!==void 0)return $Ic;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return $Ic=R},{mode:1});_.Dl("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var rl=function(){var R=_.W.apply(this,arguments)||this;R.hidden=!1;return R};
_.O(rl,_.W);_.J=rl.prototype;_.J.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"}}}}};
_.J.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.J.updateSummary=function(){var R=this.commerceCartCheckoutButtonEntity,y;if(((y=this.data)==null?0:y.cartButton)&&R.checkoutSummaryText){var u,v=mh((u=this.data)==null?void 0:u.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+v+".cardItemTextRenderer.text",AG(R.checkoutSummaryText));if(R.checkoutDetailText){var Q;u=mh((Q=this.data)==null?void 0:Q.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+u+".cardItemTextRenderer.text",AG(R.checkoutDetailText))}if(R.checkoutAdditionalMetadataText){var M;
Q=mh((M=this.data)==null?void 0:M.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+Q+".cardItemTextRenderer.text",AG(R.checkoutAdditionalMetadataText))}}else R.estimatedTotalPrice&&(M=mh((v=this.data)==null?void 0:v.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+M+".cardItemTextRenderer.text",AG(R.estimatedTotalPrice)))};
_.J.updateIsHidden=function(){var R,y=(R=this.commerceCartCheckoutButtonEntity)==null?void 0:R.isHidden;y!==void 0&&(this.hidden=y)};
_.J.updateCheckoutButton=function(){var R,y=(R=this.commerceCartCheckoutButtonEntity)==null?void 0:R.isDisabled;y!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",y);var u;R=(u=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:u.innertubeCommand;R!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",R);var v;u=(v=this.commerceCartCheckoutButtonEntity)==null?void 0:v.checkoutButtonText;u!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:u})};
rl.prototype.entityChanged=rl.prototype.entityChanged;_.A([_.n(_.p6),_.p("design:type",Object)],rl.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],rl.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],rl.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],rl.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],rl.prototype,"fullWidth",void 0);_.A([_.r(),_.p("design:type",Object)],rl.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],rl.prototype,"compact",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],rl.prototype,"hidden",void 0);
_.A([_.r({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:AVT}),_.p("design:type",Object)],rl.prototype,"commerceCartCheckoutButtonEntity",void 0);_.A([_.e0("commerceCartCheckoutButtonEntity","data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],rl.prototype,"entityChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],rl);
_.m(rl,"ytd-commerce-cart-checkout-button-renderer",function(){if(EoG!==void 0)return EoG;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return EoG=R},{mode:2});var go5;_.CYL={};
_.CYL.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",_.BN(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.BN(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?(_.Fh(this.hostElement,[R]),this.tappableItemBehaviorTapEnabled=!1):R.ypcOffersEndpoint?_.Fh(this.hostElement,[R]):_.wr(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 RbT;var yhL;var Pq=function(){return _.W.apply(this,arguments)||this};
_.O(Pq,_.W);Pq.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.ph("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.ph("sharingToggleButtonAndDefaultButton")}}};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Pq.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Pq.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Pq.prototype,"data",void 0);_.A([_.pu({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],Pq);
_.m(Pq,"yt-card-item-actions-renderer",function(){if(yhL===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;RbT===void 0&&(RbT=document.createElement("template"));var v=RbT;u.call(y,v.content.cloneNode(!0),R.content.firstChild);yhL=R}R=yhL;return R},{mode:2});var uKL;var vK5;var Quc;var juV;var MjK;var Jhg;var Wq=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return R};
_.O(Wq,_.W);Wq.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
Wq.prototype.handleDarkModeToggledAction_=function(R){this.isDarkTheme_=R};
Wq.prototype.computeThemeImage_=function(R,y){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=_.Sq(R.borderColor));return y&&R.imageDark?R.imageDark:R.imageLight};
Wq.prototype.computeThemeIcon_=function(R){var y,u;if(!(R==null?0:(y=R.themedIcon)==null?0:(u=y.icon)==null?0:u.iconType))return!1;this.icon.style.color=l6[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 _.fk(R.themedIcon.icon.iconType)};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Wq.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Wq.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(DIw.YtCardItemBoxBehavior),_.p("design:type",Object)],Wq.prototype,"ytCardItemBoxBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Wq.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Wq.prototype,"data",void 0);
_.A([_.r({value:!1}),_.p("design:type",Boolean)],Wq.prototype,"fit",void 0);_.A([_.r(),_.p("design:type",Boolean)],Wq.prototype,"isDarkTheme_",void 0);_.A([_.r({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.p("design:type",Object)],Wq.prototype,"themeImage_",void 0);_.A([_.r({computed:"computeThemeIcon_(data)"}),_.p("design:type",Object)],Wq.prototype,"themeIcon_",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Object)],Wq.prototype,"isCircular_",void 0);
_.A([_.O7("#image"),_.p("design:type",Object)],Wq.prototype,"image",void 0);_.A([_.O7("#icon"),_.p("design:type",Object)],Wq.prototype,"icon",void 0);_.A([_.pu({is:"yt-themed-image-renderer",disableElementRegistration:!0})],Wq);
_.m(Wq,"yt-themed-image-renderer",function(){if(Jhg===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;MjK===void 0&&(MjK=document.createElement("template"));var v=MjK;u.call(y,v.content.cloneNode(!0),R.content.firstChild);Jhg=R}R=Jhg;return R},{mode:2});var dl=function(){return _.W.apply(this,arguments)||this};
_.O(dl,_.W);dl.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"}}}}};
dl.prototype.computeImagePlacement_=function(R){return R||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],dl.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],dl.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],dl.prototype,"data",void 0);_.A([_.r({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.p("design:type",String)],dl.prototype,"imagePlacement",void 0);
_.A([_.pu({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],dl);
_.m(dl,"yt-card-item-text-with-image-renderer",function(){if(juV===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;Quc===void 0&&(Quc=document.createElement("template"));var v=Quc;u.call(y,v.content.cloneNode(!0),R.content.firstChild);juV=R}R=juV;return R},{mode:2});var UV=function(){return _.W.apply(this,arguments)||this};
_.O(UV,_.W);UV.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([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],UV.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],UV.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],UV.prototype,"data",void 0);_.A([_.pu({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],UV);
_.m(UV,"yt-card-item-error-renderer",function(){if(vK5===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;uKL===void 0&&(uKL=document.createElement("template"));var v=uKL;u.call(y,v.content.cloneNode(!0),R.content.firstChild);vK5=R}R=vK5;return R},{mode:2});var VjY;var ifb;_.Dl("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var kP=function(){return _.W.apply(this,arguments)||this};
_.O(kP,_.W);_.J=kP.prototype;
_.J.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"}}}}};
_.J.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.J.backgroundColorChanged_=function(){var R,y=(R=this.data)==null?void 0:R.backgroundColor;R=l6[y||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.hw(this.hostElement).querySelector("#main-content").style.backgroundColor=R};
_.J.headerPromoBackgroundColorChanged_=function(){var R,y=(R=this.data)==null?void 0:R.headerPromoBackgroundColor;R=l6[y||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.hw(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=R};
_.J.errorRendererVisibilityChanged_=function(){var R=this.isExpanded_,y;this.isErrorRendererVisible_=!((y=this.data)==null||!y.errorRenderer)&&!R};
_.J.onYtToggleButton_=function(R,y){this.isExpanded_=y.toggled};
kP.prototype.onYtToggleButton_=kP.prototype.onYtToggleButton_;kP.prototype.errorRendererVisibilityChanged_=kP.prototype.errorRendererVisibilityChanged_;kP.prototype.headerPromoBackgroundColorChanged_=kP.prototype.headerPromoBackgroundColorChanged_;kP.prototype.backgroundColorChanged_=kP.prototype.backgroundColorChanged_;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],kP.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],kP.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(DIw.YtCardItemBoxBehavior),_.p("design:type",Object)],kP.prototype,"ytCardItemBoxBehavior",void 0);_.A([_.n(_.CYL.YtTappableItemBehavior),_.p("design:type",Object)],kP.prototype,"ytTappableItemBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],kP.prototype,"data",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],kP.prototype,"isExpanded_",void 0);
_.A([_.r({value:!1}),_.p("design:type",Boolean)],kP.prototype,"isErrorRendererVisible_",void 0);_.A([_.e0("data.backgroundColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],kP.prototype,"backgroundColorChanged_",null);_.A([_.e0("data.headerPromoBackgroundColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],kP.prototype,"headerPromoBackgroundColorChanged_",null);
_.A([_.e0("data.errorRenderer","isExpanded_"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],kP.prototype,"errorRendererVisibilityChanged_",null);_.A([_.fu("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[Event,Object]),_.p("design:returntype")],kP.prototype,"onYtToggleButton_",null);_.A([_.pu({is:"yt-card-item-renderer",disableElementRegistration:!0})],kP);
_.m(kP,"yt-card-item-renderer",function(){if(ifb===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;VjY===void 0&&(VjY=document.createElement("template"));var v=VjY;u.call(y,v.content.cloneNode(!0),R.content.firstChild);ifb=R}R=ifb;return R},{mode:2});_.Dl("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var EV=function(){var R=_.W.apply(this,arguments)||this;R.hidden=!1;return R};
_.O(EV,_.W);_.J=EV.prototype;_.J.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.J.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.J.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var R,y=(R=this.commerceCartHeaderEntity)==null?void 0:R.isHidden;y!==void 0&&(this.hidden=y)}};
_.J.updateTitle=function(){var R=this.commerceCartHeaderEntity.isDisabled,y,u,v=(u=_.e((y=this.data)==null?void 0:y.item,cXb))==null?void 0:u.headingRenderer;v&&(y=mh(v,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+y+".0.cardItemTextRenderer.textColor",R?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.J.updateSummaryText=function(){var R=this.commerceCartHeaderEntity;if(this.compact){var y,u,v=(u=_.e((y=this.data)==null?void 0:y.item,cXb))==null?void 0:u.headingRenderer;v&&(y=mh(v,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+y+".1.cardItemTextRenderer.text",R.shortHeaderSummaryText?AG(R.shortHeaderSummaryText):R.headerSummaryText?AG(R.headerSummaryText):""))}else{var Q;if(y=(Q=_.e((v=this.data)==null?void 0:v.item,cXb))==null?void 0:Q.additionalInfoRenderer)y=mh(y,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+y+".text",R.headerSummaryText?AG(R.headerSummaryText):"")}};
_.J.updateCheckoutButton=function(){var R=this.commerceCartHeaderEntity,y,u,v=(u=_.e((y=this.data)==null?void 0:y.item,cXb))==null?void 0:u.additionalInfoRenderer;y=mh(v,"buttonRenderer");var Q;u=(Q=this.commerceCartHeaderEntity)==null?void 0:Q.isButtonDisabled;var M;Q=(M=this.commerceCartHeaderEntity)==null?void 0:M.isButtonHidden;u!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+y+".buttonRenderer.isDisabled",u);Q!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
Q);var K;R=(K=R.checkoutButtonCommand)==null?void 0:K.innertubeCommand;R!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+y+".buttonRenderer.command",R)};
EV.prototype.entityChanged=EV.prototype.entityChanged;_.A([_.n(_.p6),_.p("design:type",Object)],EV.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],EV.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],EV.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],EV.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],EV.prototype,"compact",void 0);_.A([_.r({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(R,y){return _.TI(R.entities,"commerceCartHeaderEntity",y)}}),
_.p("design:type",Object)],EV.prototype,"commerceCartHeaderEntity",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],EV.prototype,"hidden",void 0);_.A([_.e0("commerceCartHeaderEntity","data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],EV.prototype,"entityChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],EV);
_.m(EV,"ytd-commerce-cart-header-renderer",function(){if(go5!==void 0)return go5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return go5=R},{mode:1});var Kd8;var I3g=_.np(function(R,y){var u;return(u=R.onChangeCallback)==null?void 0:u.call(R,y)},1E3),hbc=_.Jd(function(R){var y=R.data;
var u=R.iconMinus;R=R.iconPlus;var v=function(){return!!y().disabled},Q=_.V(_.In(0,void 0,"r56zNb")),M=Q.next().value,K=Q.next().value;
Q={};Q=_.Oy("yt-spec-quantity-incrementer-shape__icon",(Q["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return v()||M()===(y().onRemoveCommand?0:1)},Q));
var h={};h=_.Oy("yt-spec-quantity-incrementer-shape__icon",(h["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return M()>=y().maxValue||v()},h));
var b={};b=_.Oy("yt-spec-quantity-incrementer-shape__text",(b["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return M()>y().maxValue},b["yt-spec-quantity-incrementer-shape__text--text-disabled"]=v,b));
var N=_.nh(function(){if(M()===1){var x,B;(B=(x=y()).onRemoveCommand)==null||B.call(x)}x=M()>y().maxValue?y().maxValue:M()-1;K(x);I3g(y(),x);return!1}),T=_.nh(function(){if(M()===y().maxValue)return!1;
var x=M()+1;K(x);I3g(y(),x);return!1});
_.nG(function(){K(y().value)});
return _.F("quantity-incrementer-shape",null,_.F("div",{class:"yt-spec-quantity-incrementer-shape"},_.F("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return M()===(y().onRemoveCommand?0:1)||v()},
"aria-label":function(){return M()!==1?y().minusLabel:y().minimumReachedLabel},
"on:click":N},_.F(_.k6,{model:{circular:!0}}),_.F("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.F("div",{class:Q},u()))),_.F("div",{class:b},M),_.F("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return M()>=y().maxValue||v()},
"aria-label":function(){return M()!==y().maxValue?y().plusLabel:y().maximumReachedLabel},
"on:click":T},_.F(_.k6,{model:{circular:!0}}),_.F("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.F("div",{class:h},R())))))},"ce");_.h6(_.Jd(function(R){function y(){u().onRemoveCommand&&_.zN(u().onRemoveCommand)}
var u=R.data;var v=_.nA(ntS,function(){return u().quantityIncrementerEntityKey});
return _.F("yt-quantity-incrementer-view-model",null,_.F(hbc,{data:function(){var Q=u(),M;var K=v()?!((M=v())==null||!M.disabled):!1;var h;M=v()?(h=v())==null?void 0:h.quantity:u().quantity;return vpG(Q,K,y,M)},
iconMinus:function(){return _.F(_.W_,{icon:"BAR_HORIZONTAL",className:_.Zl("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.F(_.W_,{icon:"ADD",className:_.Zl("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"de"),"yt-quantity-incrementer-view-model",{props:{data:_.vR}});var $P=function(){var R=_.W.apply(this,arguments)||this;R.compact=!1;R.hasQuantityIncrementer=!1;return R};
_.O($P,_.W);$P.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"}}}};
$P.prototype.computeHasQuantityIncrementer=function(){var R;return!!_.e((R=this.data)==null?void 0:R.picker,Ls5)};
$P.prototype.onLabelClick=function(){var R;(R=this.dropdownEl)==null||R.open()};
_.A([_.O7("ytd-dropdown-renderer"),_.p("design:type",Object)],$P.prototype,"dropdownEl",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],$P.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],$P.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],$P.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],$P.prototype,"quantityColor",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],$P.prototype,"compact",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.p("design:type",Object)],$P.prototype,"hasQuantityIncrementer",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],$P);
_.m($P,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(Kd8!==void 0)return Kd8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Kd8=R},{mode:1});var bfT;var FdK;var qf=function(){return _.W.apply(this,arguments)||this};
_.O(qf,_.W);qf.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
qf.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
qf.prototype.updateTitle=function(){var R=this.disabledCartItemEntity;R.disableActionName&&this.set("data.title",AG(R.disableActionName))};
qf.prototype.updateButton=function(){var R,y=(R=this.disabledCartItemEntity.undoCommand)==null?void 0:R.innertubeCommand;y!==void 0&&(this.set("data.actionButton.buttonRenderer.command",y),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
qf.prototype.entityChanged=qf.prototype.entityChanged;_.A([_.n(_.p6),_.p("design:type",Object)],qf.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],qf.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],qf.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(R,y){return _.TI(R.entities,"disabledCartItemEntity",y)}}),
_.p("design:type",Object)],qf.prototype,"disabledCartItemEntity",void 0);_.A([_.r(),_.p("design:type",Object)],qf.prototype,"data",void 0);_.A([_.e0("disabledCartItemEntity","data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qf.prototype,"entityChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],qf);
_.m(qf,"ytd-disabled-cart-item-renderer",function(){if(FdK!==void 0)return FdK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return FdK=R},{mode:1});_.Dl("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Xf=function(){var R=_.W.apply(this,arguments)||this;R.compact=!1;R.hidden=!1;R.errorHidden=!1;R.noOnTap=!1;return R};
_.O(Xf,_.W);_.J=Xf.prototype;
_.J.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"}}}};
_.J.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.J.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var R=this.firstButtonElement;R.alignByText=!0;R.iconAlignByText=!0}};
_.J.computeNoOnTap=function(R){return!R};
_.J.updateQuantityColor=function(){if(this.pickerElement){var R,y=(R=this.commerceCartItemEntity)==null?void 0:R.quantityColor;this.pickerElement.quantityColor=y}};
_.J.updateTotalPriceColor=function(){var R,y=(R=this.commerceCartItemEntity)==null?void 0:R.totalPriceColor;if(y){var u;R=_.e((u=this.data)==null?void 0:u.quantityPicker,Sjg);if(u=_.e(R==null?void 0:R.price,aLV))u.textColor=y}};
_.J.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var R,y=(R=this.commerceCartItemEntity)==null?void 0:R.isHidden;y!==void 0&&(this.hidden=y)}};
_.J.updateHideErrorMessage=function(){var R,y=(R=this.commerceCartItemEntity)==null?void 0:R.hideErrorMessage;y!==void 0&&(this.errorHidden=y)};
_.J.updateQuantity=function(){var R=this,y,u=(y=this.commerceCartItemEntity)==null?void 0:y.quantity,v;y=(v=this.commerceCartItemEntity)==null?void 0:v.totalPrice;if(u){this.updateTotalPriceColor();this.updateQuantityColor();var Q;v=_.e((Q=this.data)==null?void 0:Q.quantityPicker,Sjg);if(Q=_.e(v==null?void 0:v.price,aLV))Q.text=y?{simpleText:y.content}:void 0;if(y=_.e(v==null?void 0:v.picker,Ls5))y.quantity=u;var M;if(Q=(M=_.e(v==null?void 0:v.picker,sGL))==null?void 0:M.entries){M=!1;y=void 0;Q=
_.V(Q);for(v=Q.next();!v.done;v=Q.next())v=v.value,v.dropdownItemRenderer&&(y||(y=v.dropdownItemRenderer),v.dropdownItemRenderer.isSelected=!1,u===v.dropdownItemRenderer.int32Value&&(M=!0,v.dropdownItemRenderer.isSelected=!0));!M&&y&&(y.isSelected=!0)}_.gn(this,function(){var K;R.set("data.quantityPicker",_.Ps.unsafeClone((K=R.data)==null?void 0:K.quantityPicker))})}};
Xf.prototype.onYtRendererstamperFinished=Xf.prototype.onYtRendererstamperFinished;Xf.prototype.entityChanged=Xf.prototype.entityChanged;_.A([_.r(),_.p("design:type",Object)],Xf.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Xf.prototype,"compact",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],Xf.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Xf.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Xf.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Xf.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(R,y){return _.TI(R.entities,"commerceCartItemEntity",y)}}),
_.p("design:type",Object)],Xf.prototype,"commerceCartItemEntity",void 0);_.A([_.r(),_.p("design:type",Object)],Xf.prototype,"quantityPicker",void 0);_.A([_.r(),_.p("design:type",Object)],Xf.prototype,"compactQuantityPicker",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Xf.prototype,"hidden",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Xf.prototype,"errorHidden",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.p("design:type",Object)],Xf.prototype,"noOnTap",void 0);_.A([_.O7("ytd-commerce-cart-item-quantity-picker-renderer"),_.p("design:type",Object)],Xf.prototype,"pickerElement",void 0);_.A([_.O7("yt-button-renderer"),_.p("design:type",Element)],Xf.prototype,"firstButtonElement",void 0);
_.A([_.e0("commerceCartItemEntity","data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Xf.prototype,"entityChanged",null);_.A([_.fu("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Xf.prototype,"onYtRendererstamperFinished",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],Xf);
_.m(Xf,"ytd-commerce-cart-item-renderer",function(){if(bfT!==void 0)return bfT;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return bfT=R},{mode:_.TN("kevlar_poly_si_batch_j028")?1:2});var wn8;var NfL;var mS=function(){return _.W.apply(this,arguments)||this};
_.O(mS,_.W);mS.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}}}}}};
mS.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
mS.prototype.updateCheckoutLineItems=function(){var R,y=(R=this.commerceCartCheckoutButtonEntity)==null?void 0:R.checkoutLineItems;y&&(R=y.map(function(u){a:{var v=u.price,Q=u.description;switch(u.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":u={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:AG(Q),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:AG(v),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}};break a;default:u={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:AG(Q),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:AG(v),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}}}}return u}),this.set("data.summaryLineItems",R))};
mS.prototype.updateIsHidden=function(){var R,y=(R=this.commerceCartCheckoutButtonEntity)==null?void 0:R.isHidden;y!==void 0&&(this.hostElement.hidden=y)};
mS.prototype.entityChanged=mS.prototype.entityChanged;_.A([_.n(_.p6),_.p("design:type",Object)],mS.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],mS.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],mS.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],mS.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],mS.prototype,"data",void 0);_.A([_.r({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:AVT}),_.p("design:type",Object)],mS.prototype,"commerceCartCheckoutButtonEntity",void 0);_.A([_.e0("commerceCartCheckoutButtonEntity","data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],mS.prototype,"entityChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],mS);
_.m(mS,"ytd-commerce-cart-summary-renderer",function(){if(NfL!==void 0)return NfL;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return NfL=R},{mode:1});var Tfb={};Tfb.InjectBehavior=[gQP.InjectBehavior];var oKG;var xTg;var Af=function(){return _.W.apply(this,arguments)||this};
_.O(Af,_.W);
Af.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:_.ph("menuRenderer")}}};
Af.prototype.onMenuTap=function(R){R.stopPropagation()};
_.RR.Object.defineProperties(Af.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,y;return!(((R=this.data)==null||!R.sectionHeading)&&((y=this.data)==null?void 0:y.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var R,y;return!(((R=this.data)==null||!R.image)&&((y=this.data)==null?void 0:y.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var R,y;return!(((R=this.data)==null||!R.menu)&&((y=this.data)==null?void 0:y.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Af.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Af.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.CYL.YtTappableItemBehavior),_.p("design:type",Object)],Af.prototype,"ytTappableItemBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Af.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0}),_.G("data.accessibilityData"),_.p("design:type",String),_.p("design:paramtypes",[])],Af.prototype,"ariaLabel",null);_.A([_.G("data.sectionHeading","data.layout"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Af.prototype,"sectionHeadingVisible",null);_.A([_.G("data.image","data.layout"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Af.prototype,"imageVisible",null);
_.A([_.G("data.menu","data.layout"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Af.prototype,"menuVisible",null);_.A([_.pu({is:"yt-activity-item-renderer",disableElementRegistration:!0})],Af);
_.m(Af,"yt-activity-item-renderer",function(){if(xTg===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;oKG===void 0&&(oKG=document.createElement("template"));var v=oKG;u.call(y,v.content.cloneNode(!0),R.content.firstChild);xTg=R}R=xTg;return R},{mode:2});var Bf8;var f3i;var ebg;var l38;var Du=function(){return _.W.apply(this,arguments)||this};
_.O(Du,_.W);
Du.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"}}}}};
Du.prototype.backgroundColorChanged_=function(){var R,y=(R=this.data)==null?void 0:R.backgroundColor;this.hostElement.style.backgroundColor=l6[y||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Du.prototype.backgroundColorChanged_=Du.prototype.backgroundColorChanged_;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Du.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Du.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Du.prototype,"data",void 0);
_.A([_.e0("data.backgroundColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Du.prototype,"backgroundColorChanged_",null);_.A([_.pu({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],Du);
_.m(Du,"yt-offer-item-upsell-renderer",function(){if(l38===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;ebg===void 0&&(ebg=document.createElement("template"));var v=ebg;u.call(y,v.content.cloneNode(!0),R.content.firstChild);l38=R}R=l38;return R},{mode:2});_.Dl("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var pr=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};R.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return R};
_.O(pr,_.W);_.J=pr.prototype;
_.J.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:_.ph("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.J.computeContainerStyle_=function(R){return R};
_.J.computeContainerIsHidden_=function(R){return R&&!!R.isHidden};
_.J.computeShowSpinner_=function(R,y){return R&&y==="in-progress"};
_.J.computeShowMoreContentsButton_=function(R,y,u,v,Q){return!(!(v&&v.length||Q&&Q.length&&u)||!R||y)};
_.J.onToggleButton_=function(R){var y=this;R.stopPropagation();this.isExpanded_=R.detail&&R.detail.toggled;var u,v;this.isExpanded_&&!this.data.continuationSection.length&&((u=this.data)==null?0:(v=u.continuation)==null?0:v.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.Ko(this.hostElement,"yt-load-next-continuation",function(Q){return y.getContinuationUrl_(y.data.continuation.onClickContinuationData,Q)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.Fh(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.J.onShowMoreContentsButtonClicked_=function(R){var y=this;R.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.Ko(this.hostElement,"yt-load-next-continuation",function(u){return y.getContinuationUrl_(y.data.continuations[0].nextContinuationData,u)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.Fh(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.J.getContinuationUrl_=function(R,y){var u=R.continuation;R=R.clickTrackingParams;var v=_.$I();R&&v&&_.zP(v,_.U4(R));return _.LG(y,{continuation:u})};
_.J.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var R=_.hw(this.hostElement).querySelector("#continuation-section");R&&(R=R.querySelectorAll("ytmusic-item-section-renderer"))&&R.forEach(function(y){return y.classList.add("memberships-and-purchases")})};
_.J.dataChanged_=function(){var R;this.isExpanded_=!((R=this.data)==null||!R.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.J.updateCardOnClickCommand_=function(R){R=_.e(R,$JL);var y,u;this.data&&((y=this.data)==null?0:y.targetId)&&R&&R.targetId===((u=this.data)==null?void 0:u.targetId)&&R.onClickCommand&&(this.data.onClickCommand=R.onClickCommand,this.isOnClickCommand_=!0)};
_.J.backgroundColorChanged_=function(){var R,y=(R=this.data)==null?void 0:R.backgroundColor;this.hostElement.style.backgroundColor=l6[y||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
pr.prototype.backgroundColorChanged_=pr.prototype.backgroundColorChanged_;pr.prototype.dataChanged_=pr.prototype.dataChanged_;pr.prototype.nextContinuationDataUpdated_=pr.prototype.nextContinuationDataUpdated_;pr.prototype.onToggleButton_=pr.prototype.onToggleButton_;_.A([_.n(_.gb),_.p("design:type",Object)],pr.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],pr.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],pr.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.Cw.YtNextContinuationBehavior),_.p("design:type",Object)],pr.prototype,"ytNextContinuationBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],pr.prototype,"ytRendererBehavior",void 0);_.A([_.n(Tfb.InjectBehavior),_.p("design:type",Object)],pr.prototype,"injectBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],pr.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],pr.prototype,"compact",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],pr.prototype,"isExpanded_",void 0);_.A([_.r({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.p("design:type",String)],pr.prototype,"containerStyle_",void 0);_.A([_.r({value:"not-started"}),_.p("design:type",String)],pr.prototype,"continuationStatus_",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.p("design:type",Boolean)],pr.prototype,"showSpinner_",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],pr.prototype,"isOnClickCommand_",void 0);_.A([_.r({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.p("design:type",Boolean)],pr.prototype,"showMoreContentsButton_",void 0);
_.A([_.r({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(R,y){return!y||R.entities?null:_.TI(R.entities,"cardItemContainerEntity",y)}}),
_.p("design:type",Object)],pr.prototype,"cardItemContainerEntity_",void 0);_.A([_.fu("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],pr.prototype,"onToggleButton_",null);_.A([_.fu("yt-next-continuation-data-updated"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],pr.prototype,"nextContinuationDataUpdated_",null);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],pr.prototype,"dataChanged_",null);_.A([_.e0("data.backgroundColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],pr.prototype,"backgroundColorChanged_",null);_.A([_.pu({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],pr);
_.m(pr,"yt-card-item-container-renderer",function(){if(f3i===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;Bf8===void 0&&(Bf8=document.createElement("template"));var v=Bf8;u.call(y,v.content.cloneNode(!0),R.content.firstChild);f3i=R}R=f3i;return R},{mode:2});var tf=function(){return _.W.apply(this,arguments)||this};
_.O(tf,_.W);tf.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"}}}};
tf.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
tf.prototype.computeLoadingHidden=function(){var R;return!((R=this.commerceCartPageStateEntity)==null?0:R.cartActionInProgress)};
tf.prototype.updateNotification=function(){var R,y=(R=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:R.summaryText;y&&this.set("data.cartNotification",AG(y))};
tf.prototype.notificationEntityChanged=tf.prototype.notificationEntityChanged;_.A([_.n(_.p6),_.p("design:type",Object)],tf.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],tf.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],tf.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],tf.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],tf.prototype,"data",void 0);_.A([_.r({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(R,y){return _.TI(R.entities,"commerceCartExpandableNotificationEntity",y)}}),
_.p("design:type",Object)],tf.prototype,"commerceCartExpandableNotificationEntity",void 0);_.A([_.r({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(R,y){return _.TI(R.entities,"commerceCartPageStateEntity",y)}}),
_.p("design:type",Object)],tf.prototype,"commerceCartPageStateEntity",void 0);_.A([_.O7("#spinner"),_.p("design:type",HTMLElement)],tf.prototype,"spinner",void 0);_.A([_.e0("commerceCartExpandableNotificationEntity","data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tf.prototype,"notificationEntityChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],tf);
_.m(tf,"ytd-commerce-cart-renderer",function(){if(wn8!==void 0)return wn8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return wn8=R},{mode:1});var OfY;var cq=function(){var R=_.W.apply(this,arguments)||this;R.bigImage=!1;return R};
_.O(cq,_.W);_.RR.Object.defineProperties(cq.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.placeholderImageUrl}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],cq.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],cq.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],cq.prototype,"bigImage",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],cq.prototype,"placeholderImageUrl",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],cq);
_.m(cq,"ytd-empty-product-shelf-renderer",function(){if(OfY!==void 0)return OfY;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return OfY=R},{mode:1});var Zfi;var a$=function(){var R=_.W.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};
_.O(a$,_.W);_.J=a$.prototype;_.J.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.J.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"}}}}};
_.J.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.J.attachVEs=function(R){R.trackingParams&&_.GN().graftServerVe(R.trackingParams)};
_.J.handleUpdateMerchShelfAction=function(R){var y=this,u=_.e(R.updateMerchandiseShelfAction.merchandiseShelf,_.N9b);u&&(u.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){y.attachVEs(u);y.data=u},Number(u.renderDelayMs))):(this.attachVEs(u),this.data=u))};
_.J.updateOnResize=function(){if(this.JSC$16747_scrollContainer!==void 0&&this.JSC$16747_scrollContainer.clientWidth!==0&&this.items!==void 0){var R=this.JSC$16747_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-R));this.ytdHorizontalListBehavior.reposition_();var y;switch((y=this.data)==null?void 0:y.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var u,
v;((u=this.data)==null?void 0:(v=u.items)==null?void 0:v.length)===1?this.itemStyle="cta-item":this.itemStyle=R>=740?"large-item":"small-item"}}};
_.J.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.w5(this.updateOnResizeDebouncer,_.vb.after(100),this.updateOnResize)};
a$.prototype.debouncedUpdateOnResize=a$.prototype.debouncedUpdateOnResize;a$.prototype.dataChanged=a$.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],a$.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],a$.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.Ia.YtdHorizontalListBehavior),_.p("design:type",Object)],a$.prototype,"ytdHorizontalListBehavior",void 0);
_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],a$.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],a$.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],a$.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],a$.prototype,"itemStyle",void 0);_.A([_.r({value:6}),_.p("design:type",Number)],a$.prototype,"initialCount",void 0);
_.A([_.r({value:"data.items"}),_.p("design:type",String)],a$.prototype,"itemsPath",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],a$.prototype,"watchMetadataRefresh",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],a$.prototype,"skinnyMode",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],a$.prototype,"metaPanel",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],a$.prototype,"inStructuredDescription",void 0);
_.A([_.O7("#items"),_.p("design:type",HTMLDivElement)],a$.prototype,"items",void 0);_.A([_.O7("#scroll-container"),_.p("design:type",HTMLDivElement)],a$.prototype,"JSC$16747_scrollContainer",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],a$.prototype,"dataChanged",null);_.A([_.fu("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],a$.prototype,"debouncedUpdateOnResize",null);
_.A([_.q({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],a$);
_.m(a$,"ytd-merch-shelf-renderer",function(){if(Zfi!==void 0)return Zfi;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Zfi=R},{mode:2});var HfT;var SW=function(){var R=_.W.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};
_.O(SW,_.W);_.J=SW.prototype;
_.J.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}]))};
_.J.addBackstageCommentAction=function(R){var y=this.get("addBackstageCommentAction.parentId",R);R=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",R);if(y&&R){y=this.postIdToIndices(y);for(var u=0;u<y.length;u++){var v=y[u];if(v<0)break;v="data.contents."+v+".backstagePostThreadRenderer.comments";this.get(v)&&(this.get(v+".backstageCommentsRenderer.contents")&&this.push(v+".backstageCommentsRenderer.contents",{commentThreadRenderer:R}),this.get(v+".backstageCommentsRenderer.teaserContents")?
this.push(v+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:R}):this.set(v+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:R}]))}}};
_.J.addBackstageReplyAction=function(R){var y=this.get("addBackstageReplyAction.parentId",R);R=this.get("addBackstageReplyAction.renderer.commentRenderer",R);y&&R&&this.setCreatorReply(y,R)};
_.J.banAuthorAction=function(R){var y=this.get("banAuthorAction.commentId",R);y&&(R=this.get("banAuthorAction.parentCommentId",R)||this.getParentPostId(y),this.removeFromStream(y,R))};
_.J.hideReportedCommentAction=function(R){var y=this.get("hideReportedCommentAction.commentId",R);y&&((R=this.get("hideReportedCommentAction.parentCommentId",R))||(R=this.getParentPostId(y)),this.removeFromStream(y,R))};
_.J.replaceBackstageCommentAction=function(R){var y=this.get("replaceBackstageCommentAction.commentId",R),u=this.get("replaceBackstageCommentAction.parentId",R);R=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",R);if(y&&u&&R){u=this.postIdToIndices(u);for(var v=0;v<u.length;v++){var Q=u[v];if(Q<0)break;var M=this.commentIdToIndex(y,Q,!1);if(M>=0){var K=this.get("data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+M+".commentThreadRenderer.replies.commentRepliesRenderer");
K&&(R.replies={commentRepliesRenderer:K});this.splice("data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",M,1,{commentThreadRenderer:R})}M=this.commentIdToIndex(y,Q,!0);if(M>=0){if(K=this.get("data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(M+".commentThreadRenderer.replies.commentRepliesRenderer")))R.replies={commentRepliesRenderer:K};this.splice("data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
M,1,{commentThreadRenderer:R})}}}};
_.J.replaceBackstagePostAction=function(R){var y=this.get("replaceBackstagePostAction.itemId",R);if(y){y=this.postIdToIndices(y);for(var u=0;u<y.length;u++){var v=y[u];if(v<0)break;var Q=this.getPostRendererType(v),M=this.get("replaceBackstagePostAction.renderer."+Q,R);if(!M&&Q!=="sharedPostRenderer")break;var K=!1;M||(K=!0,M=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",R));if(!M)break;var h={};K?(_.Dr(h,KFg,M),this.set("data.contents."+v+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
h)):(_.Dr(h,new _.jF(Q),M),this.set("data.contents."+v+".backstagePostThreadRenderer.post",h))}}};
_.J.replaceBackstageReplyAction=function(R){var y=this.get("replaceBackstageReplyAction.replyId",R),u=this.get("replaceBackstageReplyAction.parentId",R);R=this.get("replaceBackstageReplyAction.renderer.commentRenderer",R);y&&R&&u&&this.setCreatorReply(u,R)};
_.J.removeCommentAction=function(R){var y=this.get("removeCommentAction.commentId",R);if(y){var u=this.get("removeCommentAction.parentCommentId",R);u&&this.get("removeCommentAction.isCreatorReply",R)?this.setCreatorReply(u,void 0):(u||(u=this.getParentPostId(y)),this.removeFromStream(y,u))}};
_.J.setCreatorReply=function(R,y){var u=this.getParentPostId(R);if(u){u=this.postIdToIndices(u);for(var v=0;v<u.length;v++){var Q=u[v];if(Q<0)break;var M=this.commentIdToIndex(R,Q,!1);if(M>=0){var K="data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+M;M=K+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";K+=".commentThreadRenderer.replies";y==void 0?(this.set(K,{}),this.set(M,!1)):(this.set(K,{commentRepliesRenderer:{teaserContents:[{commentRenderer:y}]}}),
this.set(K+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(M,!0))}M=this.commentIdToIndex(R,Q,!0);M>=0&&(M="data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+M,Q=M+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",M+=".commentThreadRenderer.replies",y==void 0?(this.set(M,{}),this.set(Q,!1)):(this.set(M,{commentRepliesRenderer:{teaserContents:[{commentRenderer:y}]}}),this.set(Q,!0)))}}};
_.J.removeFromStream=function(R,y){if(y){y=this.postIdToIndices(y);for(var u=0;u<y.length;u++){var v=y[u];if(v<0)break;var Q=this.commentIdToIndex(R,v,!1);Q>=0&&this.splice("data.contents."+v+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",Q,1);Q=this.commentIdToIndex(R,v,!0);Q>=0&&this.splice("data.contents."+v+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",Q,1);v="data.contents."+v+".backstagePostThreadRenderer.post.backstagePostRenderer";
Q=v+".backstageAttachment.pollRenderer.votedCommentId";this.get(Q)===R&&(this.set(Q,null),this.set(v+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(y=this.postIdToIndices(R).reverse(),u=0;u<y.length;u++){v=y[u];if(v<0)break;Q=this.getPostRendererType(v);var M=this.get("backstagePostThreadRenderer.post."+Q,this.data.contents[v]);M.postId===R?this.splice("data.contents",v,1):Q==="sharedPostRenderer"&&this.set("data.contents."+v+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);M.scheduledPublishTimeSec&&_.Ik(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.J.postIdToIndices=function(R){for(var y=[],u=0;u<this.data.contents.length;u++){var v=this.getPostRendererType(u);this.get("backstagePostThreadRenderer.post."+v+".postId",this.data.contents[u])===R&&y.push(u);if(v==="sharedPostRenderer"){var Q=this.get("backstagePostThreadRenderer.post."+v+".originalPost.backstagePostRenderer.postId",this.data.contents[u]);v=this.get("backstagePostThreadRenderer.post."+v+".originalPost.postRenderer.postId",this.data.contents[u]);Q!==R&&v!==R||y.push(u)}}return y};
_.J.commentIdToIndex=function(R,y,u){if(y<0)return-1;var v,Q,M,K,h=_.e((v=this.data)==null?void 0:(Q=v.contents)==null?void 0:(M=Q[y])==null?void 0:(K=M.backstagePostThreadRenderer)==null?void 0:K.comments,Vwc);return(y=u?h==null?void 0:h.teaserContents:h==null?void 0:h.contents)&&y.length?y.findIndex(function(b){return _.e(b,twc).comment.commentRenderer.commentId===R}):-1};
_.J.getParentPostId=function(R){R=R.split(".");if(R[1])return R[0]};
_.J.getPostRendererType=function(R){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[R])?"sharedPostRenderer":"backstagePostRenderer"};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],SW.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],SW.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],SW.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-backstage-items"})],SW);
_.m(SW,"ytd-backstage-items",function(){if(HfT!==void 0)return HfT;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return HfT=
R},{mode:1});var nKG;var Ge8={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},YP=function(){var R=_.W.apply(this,arguments)||this;R.disablePrescanVisibility=!0;R.canScheduleJobs=!0;R.engagementPanel=!1;R.hidePanelButton=!1;R.isWatchGrid=!1;R.hasShownSubscribersOnlyDisclaimer=!1;R.actionMap=
{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};return R};
_.O(YP,_.W);_.J=YP.prototype;_.J.created=function(){this.initCommentsCsi_()};
_.J.contentsChanged_=function(){var R;(R=this.data)!=null&&R.contents&&this.tickForCommentsTimer_("cml")};
_.J.headerChanged_=function(){var R;(R=this.data)!=null&&R.header&&this.tickForCommentsTimer_("cmhl")};
_.J.initCommentsCsi_=function(){_.$F("wn_comments");var R=_.$I();R&&_.E9({clientScreenNonce:R},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.J.createCommentAction_=function(R){R=_.Ps.unsafeClone(R);var y,u;if(R=(y=_.e(R,k0c))==null?void 0:(u=y.contents)==null?void 0:u.commentThreadRenderer){var v,Q,M,K,h,b;!this.isBackstage&&((v=this.data)==null?0:(Q=v.header)==null?0:(M=Q.commentsHeaderRenderer)==null?0:(K=M.createRenderer)==null?0:(h=K.commentSimpleboxRenderer)==null?0:(b=h.zeroStep)==null?0:b.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var N,
T,x;this.isBackstage&&_.e((N=this.data)==null?void 0:(T=N.header)==null?void 0:(x=T.commentsHeaderRenderer)==null?void 0:x.zeroStateMessage,Id8)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(R)}};
_.J.doReplyInsert_=function(R,y,u,v){v?this.splice(R,v,0,y):this.push(R,y)};
_.J.getRepliesPath_=function(R){return"data.contents."+R+".commentThreadRenderer.replies"};
_.J.getRepliesContentsPath_=function(R,y){R=this.getRepliesPath_(R);return y?R+".commentRepliesRenderer.teaserContents":R+".commentRepliesRenderer.contents"};
_.J.showSubscribersOnlyDisclaimer_=function(R){(R=R.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(R=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(R))&&(_.Ik(this.hostElement,"yt-open-popup-action",[R,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.J.createCommentReplyAction_=function(R){R=_.Ps.unsafeClone(R);var y=_.e(R,EjK);if(R=y==null?void 0:y.contents){var u=this.commentIdToIndex_(y==null?void 0:y.parentCommentId);if(!(u<0)){var v=this.getRepliesPath_(u);if(this.get(v)){y=y.replyToCommentId;v=this.getRepliesContentsPath_(u,!1);if(this.get(v)){var Q=this.get(v).length,M=v+"."+(Q-1)+".continuationItemRenderer";this.get(M+".button")?(M=this.replyIdToIndex_(y,u,!1),this.doReplyInsert_(v,R,M,Q-1)):this.get(M)||(Q=this.replyIdToIndex_(y,u,
!1),this.doReplyInsert_(v,R,Q,null))}v=this.getRepliesContentsPath_(u,!0);this.get(v)?(u=this.replyIdToIndex_(y,u,!0),(!y||u>=0)&&this.doReplyInsert_(v,R,u,null)):this.set(v,[R])}else this.set(v,{commentRepliesRenderer:{teaserContents:[R]}})}}};
_.J.hideReportedCommentAction_=function(R){var y=_.e(R,uWg);if(R=y==null?void 0:y.commentId)y=this.get("parentCommentId",y),R=R.replace("#","."),y||(y=this.getParentCommentId_(R)),this.remove_(R,y)};
_.J.getParentCommentId_=function(R){R=R.split(".");if(R[1])return R[0]};
_.J.removeCommentAction_=function(R){var y=_.e(R,A8g);if(R=y==null?void 0:y.commentId)y=y==null?void 0:y.parentCommentId,R=R.replace("#","."),y||(y=this.getParentCommentId_(R)),this.remove_(R,y)};
_.J.pinCommentAction_=function(R){R=_.Ps.unsafeClone(R);var y=_.e(R,mg5);y!=null&&y.commentId&&(R=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",R))&&(this.remove_(y.commentId),this.insert_(R,!0))};
_.J.unpinCommentAction_=function(R){R=_.Ps.unsafeClone(R);R=_.e(R,Dgb);if(R!=null&&R.commentId){var y,u,v=(y=R.actionResult)==null?void 0:(u=y.update)==null?void 0:u.commentThreadRenderer;v&&(this.remove_(R.commentId),this.insert_(v))}};
_.J.banAuthorAction_=function(R){var y=_.e(R,Ug8);y!=null&&y.commentId&&(R=y.parentCommentId,y=y.commentId.replace("#","."),R||(R=this.getParentCommentId_(y)),this.remove_(y,R))};
_.J.commentIdToIndex_=function(R){var y;return R&&(y=this.data)!=null&&y.contents?this.data.contents.findIndex(function(u){u=u.commentThreadRenderer;var v;return R===((u==null?void 0:u.commentViewModel)&&((v=_.e(u.commentViewModel,sew))==null?void 0:v.commentId))}):-1};
_.J.insert_=function(R,y){y=y===void 0?!1:y;var u,v;if((u=this.data)==null?0:(v=u.contents)==null?0:v.some(function(M){return!!M.commentThreadRenderer}))for(u=0,v=this.data.contents.length;u<v;u++){var Q=this.data.contents[u].commentThreadRenderer;
if(Ge8[R.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=Ge8[Q.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){y&&Ge8[R.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===Ge8[Q.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",u,1,{commentThreadRenderer:R}):this.splice("data.contents",u,0,{commentThreadRenderer:R});break}}else this.set("data.contents",[{commentThreadRenderer:R}])};
_.J.doReplyRemove_=function(R,y,u){R=this.replyIdToIndex_(R,y,u);R<0||(y=this.getRepliesContentsPath_(y,u),this.splice(y,R,1))};
_.J.remove_=function(R,y){y=this.commentIdToIndex_(y);y<0?(y=this.commentIdToIndex_(R),y<0||this.splice("data.contents",y,1)):(this.doReplyRemove_(R,y,!1),this.doReplyRemove_(R,y,!0))};
_.J.replyIdToIndex_=function(R,y,u){if(y<0)return-1;y=this.getRepliesContentsPath_(y,u);y=this.get(y);if(!y||!y.length)return-1;u=0;for(var v=y.length;u<v;u++){var Q=void 0,M=void 0;if(((Q=y[u])==null?void 0:(M=Q.commentViewModel)==null?void 0:M.commentId)===R)return u}return-1};
_.J.tickForCommentsTimer_=function(R){_.Xh(R,void 0,"wn_comments")};
_.J.reloadComments_=function(R){R=_.e(R,Y88);_.e(R==null?void 0:R.command,_.Lh)&&_.Fh(this.hostElement,[R==null?void 0:R.command])};
_.RR.Object.defineProperties(YP.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var R,y,u;return!!((R=this.data)==null?0:(y=R.header)==null?0:(u=y.commentsHeaderRenderer)==null?0:u.isBackstageContent)}}});
_.RR.Object.defineProperties(YP,{template:{configurable:!0,enumerable:!0,get:function(){if(nKG===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);nKG=R}R=nKG;return R}}});
YP.prototype.showSubscribersOnlyDisclaimer_=YP.prototype.showSubscribersOnlyDisclaimer_;YP.prototype.headerChanged_=YP.prototype.headerChanged_;YP.prototype.contentsChanged_=YP.prototype.contentsChanged_;_.A([_.n(_.jc),_.p("design:type",Object)],YP.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.n(_.yZU.YtHostElementBehavior),_.p("design:type",Object)],YP.prototype,"ytHostElementBehavior",void 0);
_.A([_.n(_.Ra.YtPlayerListenerBehavior),_.p("design:type",Function)],YP.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],YP.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],YP.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],YP.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0}),_.G("data.header.commentsHeaderRenderer.isBackstageContent"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],YP.prototype,"isBackstage",null);_.A([_.r(),_.p("design:type",Object)],YP.prototype,"disablePrescanVisibility",void 0);_.A([_.r(),_.p("design:type",Object)],YP.prototype,"canScheduleJobs",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],YP.prototype,"engagementPanel",void 0);
_.A([_.r(),_.p("design:type",Object)],YP.prototype,"hidePanelButton",void 0);_.A([_.r(),_.p("design:type",Object)],YP.prototype,"isWatchGrid",void 0);_.A([_.r(),_.p("design:type",Object)],YP.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.A([_.e0("data.contents"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],YP.prototype,"contentsChanged_",null);
_.A([_.e0("data.header"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],YP.prototype,"headerChanged_",null);_.A([_.fu("yt-show-subscribers-only-disclaimer"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],YP.prototype,"showSubscribersOnlyDisclaimer_",null);_.A([_.q({is:"ytd-comments"})],YP);var Lr=function(){return _.HN.apply(this,arguments)||this};
_.O(Lr,_.HN);_.J=Lr.prototype;_.J.bindIf=function(R,y,u){return R?y:u};
_.J.bindIfDefined=function(R,y){return R!==void 0?R:y};
_.J.booleanString=function(R){return(!!R).toString()};
_.J.equals=function(){for(var R=_.qy.apply(0,arguments),y=R[0],u=1;u<R.length;u++)if(y!=R[u])return!1;return!0};
_.J.isGreaterThan=function(R,y){return R>y};
_.J.isLessThan=function(R,y){return R<y};
_.J.logicalAND=function(){for(var R=_.qy.apply(0,arguments),y=!!R[0],u=1;u<R.length;u++)y=y&&!!R[u];return y};
_.J.logicalOR=function(){for(var R=_.qy.apply(0,arguments),y=!!R[0],u=1;u<R.length;u++)y=y||!!R[u];return y};
_.J.toBool=function(R){return!!R};
Lr.prototype.toBool=Lr.prototype.toBool;Lr.prototype.logicalOR=Lr.prototype.logicalOR;Lr.prototype.logicalAND=Lr.prototype.logicalAND;Lr.prototype.isLessThan=Lr.prototype.isLessThan;Lr.prototype.isGreaterThan=Lr.prototype.isGreaterThan;Lr.prototype.equals=Lr.prototype.equals;Lr.prototype.booleanString=Lr.prototype.booleanString;Lr.prototype.bindIfDefined=Lr.prototype.bindIfDefined;Lr.prototype.bindIf=Lr.prototype.bindIf;_.A([_.nu()],Lr);_.rhc=[Lr.prototype];var Psc;var WdL;var sV=function(){return _.W.apply(this,arguments)||this};
_.O(sV,_.W);sV.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
sV.prototype.onBackIconTap_=function(){window.history.back()};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],sV.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],sV.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],sV.prototype,"data",void 0);_.A([_.pu({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],sV);
_.m(sV,"yt-header-with-back-renderer",function(){if(WdL===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;Psc===void 0&&(Psc=document.createElement("template"));var v=Psc;u.call(y,v.content.cloneNode(!0),R.content.firstChild);WdL=R}R=WdL;return R},{mode:2});var dTT;var UTi;var zs=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return R};
_.O(zs,_.W);_.J=zs.prototype;_.J.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.J.onDarkModeToggledAction=function(R){R!==this.isDarkTheme&&(this.isDarkTheme=R,this.setUrl())};
_.J.dataChanged=function(){var R=this;if(this.data){var y=this.setUrl();y&&_.MW({destination:window,iframe:this.iframe,origin:_.CJL(y.toString()),channelName:"yt-iframe",onMessage:function(u){(u=R.getCommunicationCommand(u.data))&&R.ytComponentBehavior.resolveCommand(u)},
onEstablished:function(){}})}};
_.J.setUrl=function(){if(this.data&&this.data.iframeUrl){var R=_.d3(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(R)return _.cg(this.iframe,R),R}};
_.J.getCommunicationCommand=function(R){var y;if((y=this.data)!=null&&y.onCommunicationCommandsMap){y=this.data.onCommunicationCommandsMap.find(function(Q){return Q.key===R});
if(y==null?0:y.value)return y==null?void 0:y.value;try{var u=n1K(_.zT(R)),v=this.data.onCommunicationCommandsMap.find(function(Q){return Q.key===(u==null?void 0:u.getMethodName())});
if(v==null?0:v.value)return v==null?void 0:v.value}catch(Q){}}};
zs.prototype.dataChanged=zs.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],zs.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],zs.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],zs.prototype,"actionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],zs.prototype,"data",void 0);
_.A([_.r({value:!1}),_.p("design:type",Boolean)],zs.prototype,"isDarkTheme",void 0);_.A([_.O7("#iframe"),_.p("design:type",HTMLIFrameElement)],zs.prototype,"iframe",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zs.prototype,"dataChanged",null);_.A([_.pu({is:"yt-iframe-renderer",disableElementRegistration:!0})],zs);
_.m(zs,"yt-iframe-renderer",function(){if(UTi===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;dTT===void 0&&(dTT=document.createElement("template"));var v=dTT;u.call(y,v.content.cloneNode(!0),R.content.firstChild);UTi=R}R=UTi;return R},{mode:2});_.gl=function(R){_.Z0.call(this);this.callback=R;this.bezier=new tbK(0,0,.4,0,.2,1,1,1);this.delay=new _.Q9(this.next,window,this);this.JSC$16791_animating=!1;_.bx(this,this.delay)};
_.O(_.gl,_.Z0);_.gl.prototype.isAnimating=function(){return this.JSC$16791_animating};
_.gl.prototype.start=function(R,y,u){this.config={from:R,to:y,duration:u,startTime:(0,_.uQ)()};this.JSC$16791_animating=!0;this.next()};
_.gl.prototype.stop=function(){this.delay.stop();this.JSC$16791_animating=!1;this.config=void 0};
_.gl.prototype.next=function(){if(this.config){var R=this.config,y=R.from,u=R.to,v=R.duration;R=R.startTime;var Q=(0,_.uQ)()-R;R=this.bezier;v=arT(R,Q/v);if(v==0)R=R.y0;else if(v==1)R=R.y3;else{Q=rx(R.y0,R.y1,v);var M=rx(R.y1,R.y2,v);R=rx(R.y2,R.y3,v);Q=rx(Q,M,v);M=rx(M,R,v);R=rx(Q,M,v)}R=_.Ae(R,0,1);this.callback(y+(u-y)*R);R<1?this.delay.start():this.JSC$16791_animating=!1}};_.Cr=new _.Jx("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var keT={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},$T5=function(R,y,u,v){_.Z0.call(this);this.JSC$16802_miniAppId=R;this.localReleaseId=y;this.derivedDeviceInterface=u;this.isForeground=v;this.JSC$16802_playNonceResolver=new _.xv;this.playPingTimerId=NaN;this.playPingIntervalMs=_.JT("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.JT("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.f("enable_displaying_ppn");this.JSC$16802_miniAppClientDataProvider=_.ua().resolve(_.Cr);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;EKb(this);var Q=setTimeout(function(){_.kT(new _.OL("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$16802_playNonceResolver.promise.then(function(){clearTimeout(Q)})};
_.O($T5,_.Z0);var Xnb=function(R,y){R.JSC$16802_playNonceResolver.resolve(y!=null?y:Uf(8));R.enableDisplayingPpn&&qYV(R).then(function(u){R.JSC$16802_miniAppClientDataProvider.clientData.set("post_play_nonce",u)})},qYV=function(R){return _.I(function(y){return y.nextAddress==1?y.yield(R.JSC$16802_playNonceResolver.promise,2):y.return(y.yieldResult)})},EKb=function(R){var y,u;
_.I(function(v){if(v.nextAddress==1)return v.yield(R.JSC$16802_playNonceResolver.promise,2);y=v.yieldResult;u={miniAppInfo:{externalPostId:R.JSC$16802_miniAppId,localReleaseId:R.localReleaseId,postPlayNonce:y,derivedDeviceInterface:R.derivedDeviceInterface}};_.E9(u);_.f$(v)})},Ahc=function(R){R.state!==0?_.kT(new _.OL("[MiniAppPlayLogger] recordPlayStart failed with state "+keT[R.state])):(R.state=1,R7(R,"ma_cl"),yd(R,"PLAY_EVENT_TYPE_PLAY_START"),mTb(R))},DT8=function(R){R.isForeground=!1;
yd(R,"PLAY_EVENT_TYPE_PLAY_PAUSE")},pnT=function(R){R.state!==1&&R.state!==2?_.kT(new _.OL("[MiniAppPlayLogger] recordPlayEnd failed with state "+keT[R.state])):(R.state=3,window.clearInterval(R.playPingTimerId),R.playPingTimerId=NaN,u8T(),yd(R,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},tjg=function(R,y){R.state===2&&R.gameReady&&(R.firstClickRecorded?Date.now()-R.clickRecordedMs<R.playClickIntervalMs||(R.clickRecordedMs=Date.now(),yd(R,"PLAY_EVENT_TYPE_PLAY_CLICK")):y&&(R7(R,"ma_fua"),yd(R,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),R.firstClickRecorded=!0,R.clickRecordedMs=Date.now()))};
$T5.prototype.logError=function(R){var y=this,u;_.I(function(v){if(v.nextAddress==1)return R.metadata.externalPostId=y.JSC$16802_miniAppId,u=R.metadata,v.yield(Promise.race([y.JSC$16802_playNonceResolver.promise,new Promise(function(Q){setTimeout(function(){Q("")},3E4)})]),2);
u.postPlayNonce=v.yieldResult;R.metadata.localReleaseId=y.localReleaseId;R.loggingError.level="WARNING";_.dI(R.loggingError,R.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:R.metadata});_.f$(v)})};
var chL=function(R,y,u,v){var Q,M,K,h,b,N;_.I(function(T){if(T.nextAddress==1)return T.yield(R.JSC$16802_playNonceResolver.promise,2);Q=T.yieldResult;M={externalPostId:R.JSC$16802_miniAppId,localReleaseId:R.localReleaseId,postPlayNonce:Q,sdkVersion:u,api:y};v!==void 0&&(M.networkRequestsMeasurement={networkRequests:_.jZ(v,1),cachedRequests:_.jZ(v,2),transferredBytes:_.jZ(v,3)},(K=v)==null?0:_.ZF(K,jE,6))&&(M.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((h=_.Ne(v,
jE,6))==null?void 0:XD(h,1))||"0",cacheHits:((b=_.Ne(v,jE,6))==null?void 0:XD(b,2))||"0",cachedBytes:((N=_.Ne(v,jE,6))==null?void 0:XD(N,3))||"0"});_.P3("miniAppSdkUsage",M);_.f$(T)})},SYi=function(R,y,u){var v,Q,M,K,h,b,N,T,x,B,l,Z,P,k,E,D;
_.I(function(z){if(z.nextAddress==1)return z.yield(R.JSC$16802_playNonceResolver.promise,2);v=z.yieldResult;Q={externalPostId:R.JSC$16802_miniAppId,localReleaseId:R.localReleaseId,postPlayNonce:v,sdkVersion:u,measurementWindow:{startTimestampMs:String(kU(y,1)),endTimestampMs:String(kU(y,2))},frameRate:{averageFrameTimeDeltaMs:Ek(y,3),averageFrameIdleTimeMs:Ek(y,4)}};_.ZF(y,Mw,5)&&(Q.networkRequests={networkRequests:(M=bu(y))==null?void 0:_.jZ(M,1),cachedRequests:(K=bu(y))==null?void 0:_.jZ(K,2),transferredBytes:(h=
bu(y))==null?void 0:_.jZ(h,3),sameOriginStatusCodeToCounts:a3i((b=bu(y))==null?void 0:HZU(b,4)),crossOriginStatusCodeToCounts:a3i((N=bu(y))==null?void 0:HZU(N,5))},(T=bu(y))==null?0:_.ZF(T,jE,6))&&(Q.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((x=bu(y))==null?void 0:(B=_.Ne(x,jE,6))==null?void 0:XD(B,1))||"0",cacheHits:((l=bu(y))==null?void 0:(Z=_.Ne(l,jE,6))==null?void 0:XD(Z,2))||"0",cachedBytes:((P=bu(y))==null?void 0:(k=_.Ne(P,jE,6))==null?void 0:XD(k,3))||"0"});_.ZF(y,
jfi,7)&&(Q.gameCapture={averageFrameTimeDeltaMs:(E=_.Ne(y,jfi,7))==null?void 0:Ek(E,1),averageFrameIdleTimeMs:(D=_.Ne(y,jfi,7))==null?void 0:Ek(D,2)});_.P3("miniAppPerformanceMetrics",Q);_.f$(z)})},YYg=function(R,y){var u,v;
return _.I(function(Q){if(Q.nextAddress==1)return Q.yield(R.JSC$16802_playNonceResolver.promise,2);u=Q.yieldResult;v={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:R.JSC$16802_miniAppId,postPlayNonce:u,miniAppReleaseId:R.localReleaseId},derivedDeviceInterface:R.derivedDeviceInterface,adTriggerType:y,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.P3("miniAppAdEvent",v);_.f$(Q)})};
$T5.prototype.disposeInternal=function(){_.Z0.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var yd=function(R,y,u,v){u=u===void 0?{}:u;v=v===void 0?!1:v;var Q,M,K,h;_.I(function(b){if(b.nextAddress==1)return Q=R.isForeground,M=R.beforeReady,b.yield(R.JSC$16802_playNonceResolver.promise,2);K=b.yieldResult;h={externalPostId:R.JSC$16802_miniAppId,localReleaseId:R.localReleaseId,derivedDeviceInterface:R.derivedDeviceInterface,postPlayNonce:K,type:y};u.sequenceGroup=K;h.playState=M?"PLAY_STATE_NOT_READY":Q?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.P3("miniAppPlayEvent",h,
u);v&&_.W3();_.f$(b)})},R7=function(R,y){var u;
_.I(function(v){if(v.nextAddress==1)return u=(0,_.uQ)(),v.yield(R.JSC$16802_playNonceResolver.promise,2);_.qQ(y,u);_.f$(v)})},mTb=function(R){isNaN(R.playPingTimerId)&&(R.playPingTimerId=_.hT(function(){R.state!==1&&R.state!==2?_.kT(new _.OL("[MiniAppPlayLogger] reportPlayPing failed with state "+keT[R.state])):yd(R,"PLAY_EVENT_TYPE_PLAY_PING")},R.playPingIntervalMs))},a3i=function(R){return Array.from(R.entries()).map(function(y){var u=_.V(y);
y=u.next().value;u=u.next().value;return{key:y,value:u}})};var LdT=function(){},sub=function(R,y){R.showMiniAppAdCommand=y.showMiniAppAdCommand;
R.isEmbeddedInWebview=y.isEmbeddedInWebview;R.playLogger=y.playLogger},gKY=function(R,y){var u;
return _.I(function(v){if(v.nextAddress==1){if(!R.showMiniAppAdCommand||!R.isEmbeddedInWebview)return v.return(zbg(R,y));R.adResolver=new _.xv;var Q=new Xa;u=_.j_(Q,3,y);c2(R.showMiniAppAdCommand,Ecc(u));return v.yield(R.adResolver.promise,2)}return v.return(v.yieldResult)})};
LdT.prototype.onAdFinished=function(R){R=$OK(R);var y;(y=this.adResolver)==null||y.resolve(R)};
var zbg=function(R,y){var u;return _.I(function(v){if(v.nextAddress==1)v=v.yield((u=R.playLogger)==null?void 0:YYg(u,KAU(y)),2);else{var Q=v.return;var M=new EUV;M=_.j_(M,1,2);v=Q.call(v,M)}return v})};var Csb=new _.Jx("INNERTUBE_MANAGER_TOKEN");var Re5=function(){this.callbacks={}};
Re5.prototype.initialize=function(R){var y=this;this.callbacks=R;window.youtubewebview?window.youtubewebview.onmessage=function(u){yQw(y,u)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(u){yQw(y,u)})};
var yQw=function(R,y){if(y.data)try{var u=n1K(y.data);if(_.wa(_.Ok(u,1))!=null){var v=rx8(_.$U(u,2));switch(u.getMethodName()){case "yt-mini-app-load-audio-state":var Q,M;(M=(Q=R.callbacks).onAudioStateLoaded)==null||M.call(Q,_.Uk(v,B3(v,qw,1)));break;case "yt-mute-mini-app":var K,h;(h=(K=R.callbacks).onMuteMiniApp)==null||h.call(K);break;case "yt-unmute-mini-app":var b,N;(N=(b=R.callbacks).onUnmuteMiniApp)==null||N.call(b);break;case "yt-playable-exit":var T,x;(x=(T=R.callbacks).onExit)==null||x.call(T);
break;case "yt-post-play-nonce":var B,l;(l=(B=R.callbacks).onPostPlayNonceReceived)==null||l.call(B,m9(v,2,qw));break;case "yt-confirm-exit-mini-app":var Z,P;(P=(Z=R.callbacks).confirmExitMiniApp)==null||P.call(Z);break;case "yt-confirm-exit-mini-app-edu":var k,E;(E=(k=R.callbacks).confirmExitMiniAppEdu)==null||E.call(k);break;case "yt-benchmarking-response":var D,z;(z=(D=R.callbacks).onNativeBenchmarkingMessageReceived)==null||z.call(D,m9(v,2,qw));break;case "yt-mini-app-load-3p-consent-state":var c,
a;(a=(c=R.callbacks).multiplayer3pAckStateLoaded)==null||a.call(c,_.Uk(v,B3(v,qw,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var L,QG;(QG=(L=R.callbacks).exitMiniAppSeenStateLoaded)==null||QG.call(L,_.Uk(v,B3(v,qw,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var hz,bO;(bO=(hz=R.callbacks).onNavigateToNewMiniApp)==null||bO.call(hz);break;case "yt-game-data-available":var BW,Zc;(Zc=(BW=R.callbacks).onGameDataAvailable)==null||Zc.call(BW,m9(v,2,qw));break;case "yt-pause-mini-app":var xS,
Dc;(Dc=(xS=R.callbacks).onPauseMiniApp)==null||Dc.call(xS);break;case "yt-resume-mini-app":var $S,hL;(hL=($S=R.callbacks).onResumeMiniApp)==null||hL.call($S);break;case "yt-playable-ad-finished":var WK,JL;(JL=(WK=R.callbacks).onAdFinished)==null||JL.call(WK,m9(v,2,qw))}}else _.kT(Error("Sh"))}catch(sP){_.dI(Error("Th"))}else _.kT(Error("Uh"))};var hrS=function(R){this.rpcErrorCode=R};var uf=function(R,y,u){this.intervalMs=R;this.apiFunc=y;this.type=u;this.schedulerReady=!0};
uf.prototype.call=function(R){var y=this,u;return _.I(function(v){if(v.nextAddress==1){if(y.type!==1&&R===y.cachedValue)return v.return();y.pendingApiRequestResolver||(y.pendingApiRequestResolver=new _.xv);u=y.pendingApiRequestResolver.promise;y.cachedValue=R;return v.yield(uRg(y),2)}return v.return(u)})};
uf.prototype.flush=function(R){R=R===void 0?!1:R;var y=this;return _.I(function(u){return y.cachedValue===void 0?u.return():u.yield(y.apiFunc(y.cachedValue,R),0)})};
var uRg=function(R){var y,u,v;return _.I(function(Q){switch(Q.nextAddress){case 1:if(!R.schedulerReady||!R.pendingApiRequestResolver)return Q.return();R.schedulerReady=!1;y=R.pendingApiRequestResolver;R.pendingApiRequestResolver=void 0;_.wY(Q,2);if(R.cachedValue===void 0){Q.jumpTo(4);break}return Q.yield(R.apiFunc(R.cachedValue),5);case 5:u=Q.yieldResult,y.resolve(u);case 4:_.c5(Q,3);break;case 2:v=_.B$(Q),y.reject(v);case 3:setTimeout(function(){return _.I(function(M){R.schedulerReady=!0;return M.yield(uRg(R),
0)})},R.intervalMs),_.f$(Q)}})};var wPc=window.location.origin+"/miniapp_cloudsaves",bOL=[400,401],v_w=_.JT("cloud_save_game_data_rate_limit_ms",3E3),MBi=function(R){var y=this;this.JSC$16846_miniAppId=R;this.loadAttempts=0;this.cloudSaveIntervalMs=v_w;this.initialDownloadDataSucceeded=!1;this.JSC$16846_playNonceResolver=new _.xv;this.scottyUploadRateLimiter=new uf(this.cloudSaveIntervalMs,function(u,v){return QBg(y,u,v)},2);
this.downloadDataPromise=jBL(this);this.downloadDataPromise.then(function(){y.initialDownloadDataSucceeded=!0}).catch(function(){})},JQw=function(R,y){y.then(function(u){return R.JSC$16846_playNonceResolver.resolve(u)})},VBc=function(R){return _.I(function(y){return R.cachedData===void 0?y.return(R.downloadDataPromise):y.return(R.cachedData)})},iBV=function(R,y){return _.I(function(u){R.cachedData=y;
if(!R.initialDownloadDataSucceeded)throw Error("Vh");return u.yield(R.scottyUploadRateLimiter.call(y),0)})},KTG=function(){return new Promise(function(R){setTimeout(R,1E3,"")})},I4V=function(R,y){var u,v;
return _.I(function(Q){if(Q.nextAddress==1)return u=R.JSC$16846_miniAppId,Q.yield(Promise.race([R.JSC$16846_playNonceResolver.promise,KTG()]),2);v={"X-YouTube-MiniAppId":u,"X-YouTube-PostPlayNonce":Q.yieldResult};"DELEGATED_SESSION_ID"in _.UB&&kPE(y,v);return Q.return(v)})},QBg=function(R,y,u){u=u===void 0?!1:u;
return _.I(function(v){return ISS()?_.f("enable_cloud_save_error_popup_after_retry")?v.return(new Promise(function(Q,M){var K,h,b,N,T;return _.I(function(x){switch(x.nextAddress){case 1:K=0,h=!0,N=b=null;case 2:if(!(h&&K++<2)){x.jumpTo(4);break}_.wY(x,5);return x.yield(heb(R,y,u),7);case 7:b=x.yieldResult;h=b.ok?!1:!bOL.includes(b.status);_.c5(x,2);break;case 5:N=T=_.B$(x);h=FAP(N);x.jumpTo(2);break;case 4:b?b.ok?(vp(R,v_w),Q()):(vp(R,R.cloudSaveIntervalMs*2),M(Error("Wh`"+String(b.status),{cause:{rpcErrorCode:b.status}}))):
(vp(R,R.cloudSaveIntervalMs*2),M(N||Error("Xh"))),_.f$(x)}})})):v.return(new Promise(function(Q,M){var K,h;
return _.I(function(b){if(b.nextAddress==1){if(R.JSC$16846_miniAppId==="")return M(Error("Yh")),b.return();_.wY(b,2);return b.yield(heb(R,y,u),4)}if(b.nextAddress!=2)return K=b.yieldResult,K.ok?(vp(R,v_w),Q()):(vp(R,R.cloudSaveIntervalMs*2),M(Error("Wh`"+String(K.status),{cause:{rpcErrorCode:K.status}}))),_.c5(b,0);h=_.B$(b);vp(R,R.cloudSaveIntervalMs*2);M(h);_.f$(b)})})):v.return()})},heb=function(R,y,u){u=u===void 0?!1:u;
var v,Q,M;return _.I(function(K){if(K.nextAddress==1)return v=_.nZ((new TextEncoder).encode(y)),Q=Nk4(),K.yield(I4V(R,Q),2);M=K.yieldResult;return K.return(fetch(Q,{method:"POST",body:new Blob([v]),headers:M,keepalive:u}))})},jBL=function(R){var y,u;
return _.I(function(v){if(v.nextAddress==1){if(!ISS())return v.return("");if(R.JSC$16846_miniAppId==="")throw Error("Yh");if(R.loadAttempts>2)return v.return(R.downloadDataPromise);_.wY(v,2);return v.yield(bBT(R),4)}if(v.nextAddress!=2)return y=v.yieldResult,v.return(y);u=_.B$(v);if(FAP(u)&&++R.loadAttempts<2)return v.return(jBL(R));throw u;})},bBT=function(R){var y,u,v,Q,M;
return _.I(function(K){switch(K.nextAddress){case 1:return _.wY(K,2),y=Nk4(),K.yield(I4V(R,y),4);case 4:return u=K.yieldResult,K.yield(fetch(y,{method:"GET",headers:u}),5);case 5:return v=K.yieldResult,v.ok?K.yield(v.text(),6):K.return(Promise.reject(Error("Zh`"+String(v.status),{cause:new hrS(v.status)})));case 6:return Q=K.yieldResult,K.return((new TextDecoder).decode(_.zT(Q)));case 2:return M=_.B$(K),K.return(Promise.reject(M))}})},vp=function(R,y){R.cloudSaveIntervalMs=y;
R.scottyUploadRateLimiter.intervalMs=R.cloudSaveIntervalMs};
MBi.prototype.flush=function(){var R=this;return _.I(function(y){return R.initialDownloadDataSucceeded?y.yield(R.scottyUploadRateLimiter.flush(!0),0):y.return()})};var FTY=IG(Kt(1),Vr(1)),wi8=IG(Kt(1),Vr(3)),Qd=function(R){this.callbacks=R};
_.J=Qd.prototype;_.J.onAudioToggled=function(R,y){(y===void 0||y)&&_.B1("yt-mini-app-is-audio-enabled",R,2592E3)};
_.J.onPause=function(){this.onAudioToggled(!1,!1)};
_.J.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.J.returnNativeBenchmarkingMessage=function(){};
_.J.sendGameData=function(){};
_.J.sendStartGameFrameCapture=function(){};
var TkP=function(R,y,u){this.callbacks=R;var v=this;this.sdkVersion=new _.xv;this.channel=new vSY(_.MW({destination:window,iframe:y,origin:(new URL(u.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var Q=jM;var M=Kt(5);var K=new aF5;K=_.DF(K,1,1E4);M=_.Ny(M,4,Rhc,K);Q(v,M);v.onAudioToggled(v.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){v.sdkVersion.resolve("")},1E4)};
_.O(TkP,Qd);_.J=TkP.prototype;_.J.onAudioToggled=function(R,y){Qd.prototype.onAudioToggled.call(this,R,y===void 0?!0:y);y=jM;var u=Kt(2),v=new tdc;R=_.ix(v,1,R);R=_.Ny(u,3,Rhc,R);y(this,R)};
_.J.onPause=function(){Qd.prototype.onPause.call(this);jM(this,Kt(3))};
_.J.onResume=function(){Qd.prototype.onResume.call(this);jM(this,Kt(4))};
_.J.returnNativeBenchmarkingMessage=function(R){var y=jM,u=Kt(6);var v=Vr(_.ZF(R,Cp,1)?1:2);R=_.ZF(R,Cp,1)?R:null;v=_.Ny(v,5,iu,R);y(this,IG(u,v))};
_.J.sendGameData=function(R){var y=jM,u=Kt(7);R=_.Ny(u,5,Rhc,R);y(this,R)};
_.J.sendStartGameFrameCapture=function(){jM(this,Kt(9))};
var M0=function(R,y,u){var v,Q,M;return _.I(function(K){if(K.nextAddress==1)return v=R.callbacks,Q=v.onSdkCalled,M=y,K.yield(R.sdkVersion.promise,2);Q.call(v,M,K.yieldResult,u);_.f$(K)})};
TkP.prototype.onMessage=function(){var R=this;return MvV(Fa,function(y){var u,v,Q,M,K,h,b,N,T,x,B,l,Z,P,k,E,D,z,c,a,L,QG,hz,bO,BW,Zc,xS,Dc,$S,hL,WK,JL,sP,wg,bT,HK,Ta,Sg,MU,vK,eg,oP,BK,pY,v$,RP;return _.I(function(KY){switch(KY.nextAddress){case 1:if(!ipg(y.data))return _.kT(Error("$h")),KY.return();u=_.qO(y.data,1);_.f("enable_iframe_message_get_type_via_fields")&&(v=y.data,u=Q=_.qO(v,1));switch(u){case 8:if(y.data.hasMetadata()){var si=R.sdkVersion,Fp=si.resolve;var Oi=y.data.getMetadata();Oi=_.$U(Oi,
1);Fp.call(si,Oi);clearTimeout(R.sdkVersionTimeoutId)}break;case 6:return KY.jumpTo(2);case 16:if(!_.HQ(y.data,v$5,14,wu))return KY.return();M=_.AR(y.data,v$5,14,wu);(h=(K=R.callbacks).onGameFrameReceived)==null||h.call(K,M);return KY.return();case 17:if(!_.HQ(y.data,uic,15,wu))return KY.return();(N=(b=R.callbacks).onGameAudioReceived)==null||N.call(b,_.AR(y.data,uic,15,wu));return KY.return();case 1:if(si=_.AR(y.data,L9T,2,wu))switch(_.qO(si,1)){case 1:R.callbacks.onFirstFrameReady();if(_.f("enable_network_request_logging_on_game_events")&&
_.ZF(si,Mw,4)){M0(R,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.Ne(si,Mw,4));break}M0(R,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(Oi=(Fp=R.callbacks).onGameReady)==null||Oi.call(Fp);if(_.f("enable_network_request_logging_on_game_events")&&_.ZF(si,Mw,4)){M0(R,"MINI_APP_SDK_API_GAME_READY",_.Ne(si,Mw,4));break}M0(R,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.HQ(si,J4,3,sEK))R.callbacks.onResourceLoaded(_.AR(si,J4,3,sEK))}return KY.return();case 3:return KY.jumpTo(3);case 4:return KY.jumpTo(4);
case 2:return KY.jumpTo(5);case 9:return KY.jumpTo(6);case 10:return R.callbacks.onClick(),KY.return();case 5:return KY.jumpTo(7);case 11:if(!_.HQ(y.data,ve,9,wu))return KY.return();T=_.AR(y.data,ve,9,wu);(B=(x=R.callbacks).onBenchmarkingMessageReceived)==null||B.call(x,T);si=y.reply;Fp=Kt(1);Oi=Vr(1);var rg=new ve;var fZ=new Uint8Array(n_G(T,B3(T,XQT,6))|0);rg=wI(rg,5,XQT,_.G5(fZ,!1));Oi=_.Ny(Oi,5,iu,rg);si.call(y,IG(Fp,Oi));return KY.return();case 12:return KY.jumpTo(8);case 13:return KY.jumpTo(9);
case 15:if(!_.f("enable_open_yt_content"))return y.reply(wi8),KY.return();if(!_.HQ(y.data,ykg,12,wu))return y.reply(IG(Kt(1),Vr(2))),KY.return();si=_.AR(y.data,ykg,12,wu);l=_.$U(si,1);R.callbacks.onOpenYTContent(l);y.reply(FTY);return KY.return();case 14:return KY.jumpTo(10);default:return KY.return()}KY.jumpTo(0);break;case 2:if(!_.HQ(y.data,h4,5,wu))return KY.return();Fp=y.data;si=B3(Fp,wu,5);Fp=Fp.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(si=WgS(Fp,Fp[_.jg]|0,h4,si))||(si=h4[k5W])||
(si=new h4,Vc(si.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),si=h4[k5W]=si);Z=si;si=_.vY(Z,Qr,1,_.Q7());P=_.V(si);k=P.next();case 12:if(k.done){KY.jumpTo(14);break}E=k.value;D=new _.OL;D.level=_.qO(E,2)===1?"WARNING":"ERROR";z=xKc(E.getSource());return KY.yield(R.sdkVersion.promise,15);case 15:c={source:z,sdkVersion:KY.yieldResult};_.gg(_.Ok(E,6))!=null?(D.message=E.getMessage(),D.stack=_.$U(E,5),c.sdkErrorType=BkP(_.qO(E,6)),_.gg(_.Ok(E,7))!=null&&(c.sdkApi=fSc(_.qO(E,7)))):D.stack=void 0;
L=a=void 0;(L=(a=R.callbacks).onError)==null||L.call(a,{loggingError:D,metadata:c});k=P.next();KY.jumpTo(12);break;case 14:return KY.return();case 3:return _.wY(KY,16),si=KY.yield,Fp=R.callbacks,Oi=Fp.onSave,rg=_.AR(y.data,cR5,4,wu),rg=_.$U(rg,1),si.call(KY,Oi.call(Fp,rg),18);case 18:y.reply(FTY);_.c5(KY,17);break;case 16:return QG=_.B$(KY),hz=ay,bO=QG,BW=R.callbacks,Zc="MINI_APP_SDK_API_SAVE_DATA",KY.yield(R.sdkVersion.promise,19);case 19:hz(bO,BW,Zc,KY.yieldResult),y.reply(wi8);case 17:return KY.yield(M0(R,
"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return KY.return();case 4:return _.wY(KY,21),KY.yield(R.callbacks.onLoad(),23);case 23:xS=KY.yieldResult;si=y.reply;Fp=Kt(1);Oi=Vr(1);rg=new cR5;rg=_.eQ(rg,1,xS);Oi=_.Ny(Oi,3,iu,rg);si.call(y,IG(Fp,Oi));_.c5(KY,22);break;case 21:return Dc=_.B$(KY),$S=ay,hL=Dc,WK=R.callbacks,JL="MINI_APP_SDK_API_LOAD_DATA",KY.yield(R.sdkVersion.promise,24);case 24:$S(hL,WK,JL,KY.yieldResult),y.reply(wi8);case 22:return KY.yield(M0(R,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return KY.return();
case 5:_.wY(KY,26);R.callbacks.onSendHighScore(k7(_.AR(y.data,Jkb,3,wu).getValue()));y.reply(IG(Kt(1),Vr(1)));_.c5(KY,27);break;case 26:return sP=_.B$(KY),wg=ay,bT=sP,HK=R.callbacks,Ta="MINI_APP_SDK_API_SEND_SCORE",KY.yield(R.sdkVersion.promise,28);case 28:wg(bT,HK,Ta,KY.yieldResult),y.reply(wi8);case 27:return KY.yield(M0(R,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return KY.return();case 6:if(!_.HQ(y.data,VzV,8,wu)){KY.jumpTo(30);break}si=KY.yield;Fp=_.AR(y.data,VzV,8,wu);Fp=_.qO(Fp,1);return si.call(KY,
M0(R,fSc(Fp)),30);case 30:return KY.return();case 7:return si=y.reply,Fp=Kt(1),Oi=Vr(1),rg=R.callbacks.getLanguage(),Oi=wI(Oi,4,iu,bJ(rg)),si.call(y,IG(Fp,Oi)),KY.yield(M0(R,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return KY.return();case 8:if(!_.HQ(y.data,MzL,10,wu))return KY.return();Sg=_.AR(y.data,MzL,10,wu);MU=R.callbacks;vK=MU.onSdkPerformanceUpdate;return KY.yield(R.sdkVersion.promise,33);case 33:return vK.call(MU,Sg,KY.yieldResult),KY.return();case 9:si=y.data;Fp=B3(si,wu,11);if(_.wa(_.Ok(si,
Fp))==null)return y.reply(IG(Kt(1),Vr(2))),KY.return();eg=m9(y.data,11,wu);R.callbacks.onShareInviteCode(eg);y.reply(FTY);return KY.yield(M0(R,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return KY.return();case 10:if(_.HQ(y.data,pQc,13,wu)){KY.jumpTo(35);break}return KY.yield(R.callbacks.onShowMiniAppAd(2),36);case 36:return oP=KY.yieldResult,y.reply(IG(Kt(1),gUg(oP))),KY.yield(M0(R,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return KY.return();case 35:si=_.AR(y.data,pQc,13,wu);a:switch(_.qO(si,
1)){case 1:si={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};break a;case 2:si={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:si={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}BK=si;pY=BK.adType;v$=BK.sdkApi;si=KY.yield;Fp=R.callbacks;Oi=Fp.onShowMiniAppAd;rg=_.AR(y.data,pQc,13,wu);rg=_.$U(rg,2);return si.call(KY,Oi.call(Fp,pY,rg||void 0),38);case 38:return RP=KY.yieldResult,y.reply(IG(Kt(1),gUg(RP))),KY.yield(M0(R,v$),39);case 39:return KY.return()}})})};
var jM=function(R,y){_.I(function(u){R.channel.send(y);_.f$(u)})},S8=function(R,y,u){this.callbacks=R;
var v=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;R=Dyz(y,(new URL(u.toString())).origin);this.gameSnacks=new xUc(R);this.gameSnacks.page.onReady(function(){v.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){v.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var Q,M;(M=(Q=v.callbacks).onGameReady)==null||M.call(Q)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(Q,M){try{v.callbacks.onSendHighScore(M)}catch(K){ay(K,v.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(Q,M){var K;return _.I(function(h){if(h.nextAddress==1)return _.wY(h,2),h.yield(v.callbacks.onSave(v.decoder.decode(M)),4);if(h.nextAddress!=2)return _.c5(h,0);K=_.B$(h);ay(K,v.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return h.return()})});
this.gameSnacks.storage.onLoad(function(){var Q,M;return _.I(function(K){if(K.nextAddress==1)return _.wY(K,2),K.yield(v.callbacks.onLoad(),4);if(K.nextAddress!=2)return Q=K.yieldResult,K.return(v.encoder.encode(Q));M=_.B$(K);ay(M,v.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return K.return(v.encoder.encode(""))})});
this.gameSnacks.init()};
_.O(S8,Qd);S8.prototype.onAudioToggled=function(R,y){Qd.prototype.onAudioToggled.call(this,R,y===void 0?!0:y);var u;(u=this.gameSnacks)==null||u.audio.update(R)};
S8.prototype.onPause=function(){Qd.prototype.onPause.call(this);var R;(R=this.gameSnacks)==null||R.game.pause()};
S8.prototype.onResume=function(){Qd.prototype.onResume.call(this);var R;(R=this.gameSnacks)==null||R.game.resume()};var NHb=erc,THw=_.Jd(function(R){var y=R.data;var u=R.loadingProgress;R=_.V(_.In("",void 0,"LYYTdd"));var v=R.next().value,Q=R.next().value;R=_.V(_.In(!1,void 0,"K0waae"));var M=R.next().value,K=R.next().value,h=[],b=function(){return"transform: scaleX("+(_.PT(u)||0)+")"},N=null,T=function(){return y()&&N!==null&&N!==void 0?N:N=y().showAnniversaryAnimation?6:NHb()};
_.ny(function(){var Z;if(y().timeOutMessages&&((Z=y().timeOutMessages)==null?0:Z.length)){N=null;Z=_.V(h);for(var P=Z.next();!P.done;P=Z.next())clearTimeout(P.value);h.length=0;lSz(y().timeOutMessages,h,Q,K)}},"BNu9j");
var x=function(){return!!y().persistentErrorMessageTitle},B=function(){return u!==void 0},l=function(){return y().title};
return _.F("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.F("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.F("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.F("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var Z,P=(Z=y().backgroundImage)==null?void 0:Z.sources,k;return(P==null?0:P.length)?"background-image: url("+((k=P[0])==null?void 0:k.url)+")":
""}}),_.F("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.F(_.w,{cond:function(){return!x()},
then:function(){var Z={};return _.F("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.F("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.F(_.F2,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+T()},
data:function(){var P="loading_animation_"+T();return{animationConfig:{name:P,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+P+".json",loop:!0,autoplay:!0}}}})),_.F("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.F(_.w,{cond:l,
then:function(){return _.F("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},l)}}),_.F("p",{class:_.Oy("mini-app-splash-screen-view-model-wiz__timeout-message",(Z["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return M()},Z)),
"aria-live":"polite"},v),_.F(_.w,{cond:B,then:function(){return _.F("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.F("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:b}))}})))}}),_.F(_.w,{cond:x,
then:function(){return _.F("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.F("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return y().persistentErrorMessageTitle}),_.F(_.w,{cond:function(){return!!y().persistentErrorMessageDescription},
then:function(){return _.F("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return y().persistentErrorMessageDescription})}}))}})))},"ee");var o_5=new _.Jx("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var xZc=sp;sp=function(R){function y(u){if(u){var v,Q;(v=u.__spec)==null||(Q=v.didUnmount)==null||Q.call(v);for(v=0;v<u.childNodes.length;v++)y(u.childNodes[v])}}
xZc==null||xZc(R);Xg(function(){for(var u=0;u<R.length;u++)y(R[u])})};var BH5=_.Jd(function(R){var y=R.data;var u=R.score;var v=R.formattedScore;var Q=R.onScoreChanged;var M=R.isEmbeddedInWebview;var K=_.zp("yt-mini-app-score-button-view-model"),h=function(){var l;return _.e(y==null?void 0:(l=y())==null?void 0:l.buttonViewModel,_.k9)},b=function(){var l;
return(u==null?void 0:u())||Number(y==null?void 0:(l=y())==null?void 0:l.lastScore)||0},N=function(){var l;
return(v==null?void 0:v())||((l=h())==null?void 0:l.title)||""},T,x=1;
if(R=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))R=Number(R),x=isNaN(R)?1:R/100;_.ny(function(){Q==null||Q(b());var l;var Z=_.Sb((l=h())==null?void 0:l.onTap);if(Z){l=_.e(Z,t5G);var P,k,E;l=_.e(l==null?void 0:(P=l.panelLoadingStrategy)==null?void 0:(k=P.inlineContent)==null?void 0:(E=k.dialogViewModel)==null?void 0:E.customContent,$n5)}else l=void 0;if(P=l)P.score=N()},"KZFi5e");
R=_.nh(function(){var l,Z,P=y==null?void 0:(l=y())==null?void 0:(Z=l.loggingDirectives)==null?void 0:Z.trackingParams;P&&_.e2(_.ua().resolve(_.Ej),P);return!1});
_.rB(function(){if(K.value){var l=K.value.querySelector("button"),Z=h();l&&Z&&OO8(l,Z);yn("yt-share-playable-with-high-score",function(){var P=b().toString(),k=y==null?void 0:y().onShareHighScoreCommand,E=y==null?void 0:y().highScoreShareClientParamIdentifier,D=M==null?void 0:M();k&&(D?(E=new n0T,P=_.eQ(E,2,P),c2(k,P.JSC$12287_serializeBinary())):E&&(_.ua().resolve(o_5).clientParams.set(E,{miniAppClientParams:{highScore:P}}),MR8(k,!1)))})}});
var B=function(){var l=h();l&&(u==null?0:u())&&l.accessibilityText&&(l.accessibilityText=l.accessibilityText.replace(T,N()));T=N();return{numberValue:b(),numberText:N(),heightPx:36,fontSizeMultiplier:x,shouldAnimate:!(u==null||!u())&&!0}};
return _.F("yt-mini-app-score-button-view-model",{class:function(){var l={};return _.Zl("mini-app-score-button-view-model-wiz",(l["mini-app-score-button-view-model-wiz--is-visible"]=b()!==0,l))},
el:K,"on:click":R},sX(!1,function(){return _.F("span",{style:"display:none;"},b)}),_.F(_.mk,{data:function(){var l;
return y==null?void 0:(l=y())==null?void 0:l.buttonViewModel}},{buttonViewModel:function(l){return _.F(_.fQ,{data:l.data,
animatedTextProps:B})}}))},"fe");var ZBc=_.Jd(function(R){var y,u=(y=_.fl("yt-mini-app-is-theater-mode-enabled"))!=null?y:!1,v=_.f("enable_playable_container_save_button"),Q=_.f("enable_play_next_destination_page_in_toolbar");y={};return _.F("ytm-mini-app-top-bar-view-model",null,_.F("div",{class:_.Oy("yt-mini-app-top-bar-view-model",(y["yt-mini-app-top-bar-view-model--mobile"]=!1,y["yt-mini-app-top-bar-view-model--desktop"]=!0,y))},_.F("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.F(_.w,{cond:function(){var M;
return!!R.data().backButtonEdu&&!((M=R.isExitMiniAppSeen)==null?0:M.call(R))},
then:function(){return _.F(_.mk,{data:function(){return R.data().backButtonEdu}},{buttonViewModel:_.fQ})},
else:function(){return _.F(_.mk,{data:function(){return R.data().backButton}},{buttonViewModel:_.fQ})}}),_.F(_.w,{cond:function(){return R.data().viewAllButton&&!0},
then:function(){return _.F(_.mk,{data:function(){return R.data().viewAllButton}},{buttonViewModel:_.fQ})}}),_.F(_.w,{cond:function(){return R.data().title&&!0},
then:function(){return _.F("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return R.data().title})}})),_.F("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.F(_.w,{cond:function(){var M;
return(M=R.isDesktopPlayPage)==null?void 0:M.call(R)},
then:function(){return _.F(_.vu,null,_.F(f48,{highScoreButton:function(){return R.data().highScoreButton},
score:R.score,formattedScore:R.formattedScore,onScoreChanged:R.onScoreChanged,isEmbeddedInWebview:R.isEmbeddedInWebview}),_.F(eeb,{enableSaveButton:function(){return _.PT(v)},
saveButton:function(){return R.data().saveButton},
isSaved:R.isSaved,onSaveToggled:function(){return R.onSaveToggled}}),_.F(l4c,{menuButton:function(){return R.data().menuButton}}))},
else:function(){return _.F(_.w,{cond:function(){return!1},
then:function(){return _.F(_.mk,{data:function(){return R.data().playPageButton}},{buttonViewModel:function(M){return _.F(_.fQ,{data:M.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.F(f48,{highScoreButton:function(){return R.data().highScoreButton},
score:R.score,formattedScore:R.formattedScore,onScoreChanged:R.onScoreChanged,isEmbeddedInWebview:R.isEmbeddedInWebview})}})}})),_.F("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.F(_.mk,{data:function(){return R.data().muteButton}},{toggleButtonViewModel:function(M){var K=M.data;
return _.F(_.$1,{data:function(){var h,b;return Object.assign({},K(),{isToggled:(b=(h=R.isAudioEnabled)==null?void 0:h.call(R))!=null?b:!0})},
onToggle:R.onAudioToggled,useOutlinedIcon:!0})}}),_.F(_.mk,{data:function(){return R.data().theatreModeButton}},{toggleButtonViewModel:function(M){var K=M.data;
return _.F("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.F(_.$1,{data:function(){return Object.assign({},K(),{isToggled:u})},
useOutlinedIcon:!0}))}}),_.F(OBc,{fullscreenButton:function(){return R.data().fullscreenButton}}),_.F(_.w,{cond:function(){return _.PT(Q)&&R.data().viewAllButton&&!1},
then:function(){return _.F(_.mk,{data:function(){return R.data().viewAllButton}},{buttonViewModel:_.fQ})}}),_.F(_.w,{cond:function(){var M;
return!((M=R.isDesktopPlayPage)==null?0:M.call(R))},
then:function(){return _.F(_.vu,null,_.F(eeb,{enableSaveButton:function(){return _.PT(v)},
saveButton:function(){return R.data().saveButton},
isSaved:R.isSaved,onSaveToggled:function(){return R.onSaveToggled}}),_.F(l4c,{menuButton:function(){return R.data().menuButton}}))}}))))},"ge");
ZBc.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var l4c=_.Jd(function(R){return _.F(_.mk,{data:R.menuButton},{buttonViewModel:_.fQ})},"he"),eeb=_.Jd(function(R){var y=R.enableSaveButton;
var u=R.saveButton;var v=R.isSaved;var Q=R.onSaveToggled;return _.F(_.w,{cond:function(){return y()&&!(u==null||!u())},
then:function(){return _.F(_.mk,{data:function(){var M=_.e(u==null?void 0:u(),_.EC),K;return{toggleButtonViewModel:Object.assign({},M,{isToggled:(K=v==null?void 0:v())!=null?K:!(M==null||!M.isToggled)})}}},{toggleButtonViewModel:function(M){return _.F(_.$1,{data:M.data,
onToggle:Q})}})}})},"ie"),f48=_.Jd(function(R){var y=R.highScoreButton;
var u=R.score;var v=R.formattedScore;var Q=R.onScoreChanged;var M=R.isEmbeddedInWebview;return _.F(_.mk,{data:y},{miniAppScoreButtonViewModel:function(K){return _.F(BH5,{data:K.data,score:u,formattedScore:v,onScoreChanged:Q,isEmbeddedInWebview:M})}})},"je"),OBc=_.Jd(function(R){R=R.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.F(_.vu,null):_.F(_.mk,{data:R},{buttonViewModel:_.fQ})},"ke");_.HBi=new _.Jx("DESKTOP_CURRENT_PAGE");var dZw=_.Jd(function(R){var y=R.data;var u=_.f("force_active_time_logging_webview"),v=!1,Q=new Re5,M=void 0,K=void 0,h=_.ua().resolve(Csb),b=new LdT,N=void 0,T=void 0,x=[],B=void 0,l=void 0,Z=!1,P=!1,k=!1,E=!1,D=new _.xv,z=_.ua().resolve(o_5),c=_.ua().resolve(_.Cr),a=_.ua().resolve(_.yN(OM)),L,QG=(L=_.ua().resolve(_.yN(_.HBi)))==null?void 0:L.getCurrentPage(),hz=!1,bO=0,BW=function(aL){aL.preventDefault();return aL.returnValue=""},Zc;
R=_.V(_.In(!((Zc=_.fl("yt-mini-app-is-audio-enabled"))!=null&&!Zc),void 0,"cGaEvf"));var xS=R.next().value,Dc=R.next().value,$S;Zc=_.V(_.In(!(($S=_.fl("exit-mini-app-seen-state"))==null||!$S),void 0,"DctXGe"));var hL=Zc.next().value,WK=Zc.next().value;$S=_.V(_.In(!1,void 0,"pU1jdd"));var JL=$S.next().value,sP=$S.next().value;$S=_.V(_.In(void 0,void 0,"ldLqDf"));var wg=$S.next().value,bT=$S.next().value;$S=_.V(_.In(void 0,void 0,"mdofE"));var HK=$S.next().value,Ta=$S.next().value;$S=_.V(_.In(!0,void 0,
"T1gxCf"));var Sg=$S.next().value,MU=$S.next().value;$S=_.V(_.In(!1,void 0,"gxt7wf"));var vK=$S.next().value,eg=$S.next().value;$S=_.V(_.In(void 0,void 0,"yqLV6d"));var oP=$S.next().value,BK=$S.next().value;$S=_.V(_.In(0,void 0,"l6CrGf"));var pY=$S.next().value,v$=$S.next().value,RP=_.sh("mini-app-container-view-model"),KY=function(){return y().isEmbeddedInWebview},si=function(){return y().hasPlayNextShelf};
yn("yt-page-type-changed",function(aL){if(_.f("enable_is_mini_app_page_active_bugfix"))aL.detail.newPageSubtype==="mini_app"&&aL.detail.newPageType==="ytd-browse"||!Sg()||rg();else if(aL=_.Cwv()==="mini_app",aL!==Sg())if(MU(aL),aL){var KZ;aL=(KZ=y().playableId)==null?void 0:KZ.toString();aL!==void 0&&window.location.href.includes(aL)&&!P&&(E=!0,Fp(),x8.value&&rC(x8.value))}else aL||rg()});
yn("yt-action",function(aL){aL.detail.actionName==="yt-engagement-panel-visible-changed"&&aL.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&aL.detail.args[2]==="PAmini_app_panel"&&rg();_.f("enable_is_mini_app_page_active_bugfix")?aL.detail.actionName==="yt-history-load"&&!Sg()&&(QG==null?0:QG.active)?(MU(!0),Fp(),x8.value&&rC(x8.value)):aL.detail.actionName==="yt-history-load"&&Sg()&&!y().isEmbeddedInWebview&&Zi():Sg()&&aL.detail.actionName==="yt-history-load"&&(E?E=!1:y().isEmbeddedInWebview||
Zi())});
_.GF(function(){Oi()});
_.ny(function(){Fp()},"PiwKsd");
var Fp=function(){var aL=y().playableId,KZ=y().localReleaseId,pZ=y().derivedDeviceInterface;if(P)_.kT(new _.OL("[MiniAppContainerViewModel] onEnter was called more than once"));else{P=!0;M=new $T5(aL,KZ,pZ,document.visibilityState==="visible");Ahc(M);K=new MBi(aL);n_c(h,aL);sub(b,{showMiniAppAdCommand:y().showMiniAppAdCommand,isEmbeddedInWebview:y().isEmbeddedInWebview,playLogger:M});BNT()&&(l=document.body.style.backgroundColor,_.pp(document.body,"background-color","black"));v5();lT();D=new _.xv;
if(y().isEmbeddedInWebview){if(aL=(new URLSearchParams(window.location.search)).get("postPlayNonce"))Xnb(M,aL),hz=!0;Q.initialize({onAudioStateLoaded:function(za){IP(za)},
onMuteMiniApp:function(){IP(!1)},
onUnmuteMiniApp:function(){IP(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(za){hz||(Xnb(M,za),hz=!0)},
confirmExitMiniApp:function(){var za,hS,JS;return _.I(function(xE){if(xE.nextAddress==1)return y().confirmExitMiniAppCommand?xE.yield(Promise.race([D.promise,Promise.resolve(!1)]),2):xE.return();(za=xE.yieldResult)?!y().confirmExitMiniAppCommandEdu||(JS=(hS=hL)==null?void 0:hS())!=null&&JS?Hs(y().confirmExitMiniAppCommand):(Hs(y().confirmExitMiniAppCommandEdu),_.B1("exit-mini-app-seen-state","true",2592E6)):Hs(y().closeMiniAppCommand);_.f$(xE)})},
onNativeBenchmarkingMessageReceived:function(za){za=ARc(_.J$v(za));if(_.HQ(za,_.pX,3,qkg)){var hS=_.AR(za,_.pX,3,qkg),JS=JCU();var xE=k7(JS.getSeconds())-k7(hS.getSeconds());hS=_.jZ(JS,2)-_.jZ(hS,2);xE<0&&hS>0?(xE+=1,hS-=1E9):xE>0&&hS<0&&(--xE,hS+=1E9);xE=(new Cp).setSeconds(xE);xE=_.SK(xE,2,_.CY(hS),0);_.wC(za,1,xE)}var TJ;(TJ=T)==null||TJ.returnNativeBenchmarkingMessage(za)},
multiplayer3pAckStateLoaded:function(za){Zi(za)},
exitMiniAppSeenStateLoaded:function(za){y().confirmExitMiniAppCommandEdu&&WK(za)},
onNavigateToNewMiniApp:function(){Hs(y().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(za){za=new URLSearchParams(za);var hS=void 0;za.has("invite_code")&&(hS=new YkV,za=za.get("invite_code"),hS=_.eQ(hS,1,za));if(za=hS){var JS;(JS=T)==null||JS.sendGameData(za)}},
onPauseMiniApp:function(){v=!0;fZ()},
onResumeMiniApp:function(){v=!0;ha()},
onAdFinished:function(za){b.onAdFinished(za)}});
y().showMultiplayer3pConsentDialogCommand||D.resolve(!0);Hs(y().onContainerReadyCommand)}else Xnb(M),D.resolve(!0);JQw(K,qYV(M));qYV(M).then(function(za){za={miniAppPlayData:{postPlayNonce:za}};var hS,JS=(hS=y().loggingDirectives)==null?void 0:hS.trackingParams;JS&&_.GN().stateChanged(JS,za)});
aL=y().showSignInDialogCommand;!ISS()&&aL&&(_.B1("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),Hs(aL));y().confirmExitMiniAppCommand&&a&&(aL=QoT(y().confirmExitMiniAppCommand))&&(a.customConfirmationCommand=aL)}},Oi=function(){l&&_.pp(document.body,"background-color",l);
Z=!1;B&&B.release();K.flush().catch(function(aL){_.kT(aL)});
h.flush().catch(function(aL){_.kT(aL)});
pnT(M);Xr();T=void 0;Gz5(z)},rg=function(){MU(!1);
Oi();sP(!1);BK(void 0);bT(void 0);Ta(void 0);bO=0;v$(0);P=!1},fZ=function(){var aL;
(aL=T)==null||aL.onPause();B&&B.release();K.flush().catch(function(KZ){_.kT(KZ)});
h.flush().catch(function(KZ){_.kT(KZ)});
DT8(M)},ha=function(){var aL;
(aL=T)==null||aL.onResume();lT();aL=M;aL.isForeground=!0;yd(aL,"PLAY_EVENT_TYPE_PLAY_RESUME")},IP=function(aL){var KZ;
(KZ=T)==null||KZ.onAudioToggled(aL);Dc(aL)},Zi=function(aL){y().showMultiplayer3pConsentDialogCommand&&(y().isEmbeddedInWebview&&aL!==void 0&&D.resolve(aL),!aL&&_.Cwv()==="mini_app"&&Hs(y().showMultiplayer3pConsentDialogCommand))},gr=function(){var aL,KZ,pZ,za;
return _.I(function(hS){if(hS.nextAddress==1){!y().isLivestream||y().disableVideoCapture||(aL=T)!=null&&aL.sendStartGameFrameCapture();KZ=(new URL(window.location.href)).searchParams;if(KZ.has("invite_code")){var JS=new YkV,xE=KZ.get("invite_code");pZ=_.eQ(JS,1,xE);(za=T)==null||za.sendGameData(pZ)}JL()||(sP(!0),JS=M,JS.state!==1?_.kT(new _.OL("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+keT[JS.state])):(_.ia("mini_app_ids_without_game_ready").includes(JS.JSC$16802_miniAppId)&&(JS.gameReady=
!0),JS.state=2,JS.beforeReady=!1,R7(JS,"ma_ffr"),yd(JS,"PLAY_EVENT_TYPE_PLAY_READY")));return hS.yield(D.promise,2)}Hs(y().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();y().isEmbeddedInWebview||Zi();_.f$(hS)})},Y8=function(){var aL=M;
aL.gameReady=!0;R7(aL,"ma_gr")},WH=function(aL){var KZ;
return _.I(function(pZ){if(pZ.nextAddress==1)return _.wY(pZ,2),pZ.yield(iBV(K,aL),4);if(pZ.nextAddress!=2)return _.c5(pZ,0);KZ=_.B$(pZ);Hs(y().showSavingErrorPopupCommand);throw KZ;})},vg=function(){var aL,KZ;
return _.I(function(pZ){if(pZ.nextAddress==1)return _.wY(pZ,2),pZ.yield(VBc(K),4);if(pZ.nextAddress!=2)return aL=pZ.yieldResult,pZ.return(aL);KZ=_.B$(pZ);Hs(y().showLoadingErrorDialogCommand);throw KZ;})},Fr=function(aL){M.logError(aL)},e_=function(aL,KZ,pZ){chL(M,aL,KZ,pZ)},SQ=function(aL,KZ){SYi(M,aL,KZ)},NS=function(){!u&&y().isEmbeddedInWebview||_.v3();
tjg(M,!0);Z||(window.addEventListener("beforeunload",BW,{capture:!0}),Z=!0)},sW=function(aL){var KZ,pZ,za,hS,JS,xE,TJ;
return _.I(function(YU){if(YU.nextAddress==1)return h&&(!N||N<aL)&&aL>0?YU.yield(rQg(h,aL),3):YU.jumpTo(0);KZ=YU.yieldResult;pZ=_.V(KZ);za=pZ.next().value;hS=pZ.next().value;JS=za;xE=hS;((TJ=JS)==null?0:TJ.displayString)&&xE&&(bT(xE),Ta(JS.displayString));_.f$(YU)})},m_=function(aL){var KZ=y().onBenchmarkingMessageReceivedCommand;
if(KZ){var pZ=JCU();_.Ny(aL,3,qkg,pZ);c2(KZ,DOG(aL))}},gG=function(aL){var KZ=y().onGameFrameReceivedCommand;
if(KZ){var pZ=new Xa;var za=new WBc;var hS=kU(aL,1);za=_.ex(za,1,hS);aL=_.$U(aL,2);aL=_.eQ(za,2,aL);pZ=_.wC(pZ,2,aL);c2(KZ,Ecc(pZ))}},HW=function(aL){var KZ=y().onGameAudioDataReceivedCommand;
if(KZ){var pZ=new Xa;var za=new Un5;aL=_.$U(aL,1);za=_.eQ(za,1,aL);pZ=_.wC(pZ,4,za);c2(KZ,Ecc(pZ))}},qU=function(){var aL=new URLSearchParams(window.location.search);
if(y().isEmbeddedInWebview&&aL&&aL.get("override_hl")==="true"&&aL.get("hl"))return aL.get("hl");aL=document.documentElement.lang;return aL!==""?aL:_.S6},cW=function(aL){var KZ=y().onShareInviteCodeCommand;
if(KZ)if(y().isEmbeddedInWebview){var pZ=new n0T;aL=_.eQ(pZ,1,aL);c2(KZ,rsi(aL))}else pZ=y().inviteCodeShareClientParamIdentifier,z.clientParams.set(pZ,{miniAppClientParams:{inviteCode:aL}}),Hs(KZ)},ob=function(aL){var KZ,pZ,za;
return _.I(function(hS){if(hS.nextAddress==1)return KZ=y().onMiniAppOpenYtContentRequested,h&&_.f("enable_open_yt_content")&&KZ?hS.yield(Pcg(h,aL),3):hS.jumpTo(0);pZ=hS.yieldResult;if(pZ==="OK")if(y().isEmbeddedInWebview){var JS=new ncc;za=wI(JS,2,qw,bJ(aL));c2(KZ,Pmg(za))}else c.clientData.set("video_id",aL),Hs(KZ);_.f$(hS)})},iJ=function(aL){bO+=_.jZ(aL,3);
aL=Math.min(Math.log(1+bO/15E6*9)/Math.log(10),.99);v$(aL);dC(aL)},dC=_.np(function(aL){var KZ=y().updateLoadingProgressCommand;
if(KZ){var pZ=new ncc;aL=wI(pZ,3,qw,_.Dw(aL));c2(KZ,Pmg(aL))}},100),eK=function(aL){return gKY(b,aL)},lT=function(){var aL,KZ;
((aL=_.XF8())==null?void 0:(KZ=aL.wakeLock)==null?void 0:KZ.request)!=null&&_.XF8().wakeLock.request("screen").then(function(pZ){B=pZ}).catch(function(){})},x8=_.zp("iframe");
_.ny(function(){y().isSupportedCountry&&(ISS()||_.f("enable_sign_in_promo")||!y().showSignInDialogCommand?x8.value&&rC(x8.value):Hs(y().onMiniAppReadyCommand))},"XK60ib");
var da=function(){return _.F("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return JL()?0:-1},
el:x8})},rC=function(aL,KZ){KZ=KZ===void 0?!1:KZ;
var pZ=T5();pZ&&(KZ||pZ.toString()!==aL.getAttribute("src"))&&(T=opv(y().source,{isAudioEnabled:xS,onFirstFrameReady:gr,onGameReady:Y8,onSave:WH,onLoad:vg,onError:Fr,onSdkCalled:e_,onSdkPerformanceUpdate:SQ,onClick:NS,onSendHighScore:sW,onBenchmarkingMessageReceived:m_,getLanguage:qU,onShareInviteCode:cW,onResourceLoaded:iJ,onOpenYTContent:ob,onShowMiniAppAd:eK,onGameFrameReceived:gG,onGameAudioReceived:HW},aL,pZ),Wy(aL,"load",function(){R7(M,"ma_il");Wy(aL,"load",function(){rC(aL,!0)})}),_.cg(aL,
pZ))},T5=function(){var aL=y().url;
if(aL&&(aL=_.d3(aL),aL!==null)){if(y().source&&y().source==="MINI_APP_SOURCE_GAMESNACKS")aL=_.VW(aL,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.f("enable_origin_query_parameter_bugfix")){var KZ=_.kl(_.BSc(aL.toString()));KZ=new URLSearchParams(KZ||"");KZ.set("origin",window.location.origin);KZ=KZ.toString();aL=_.Oo(aL).toString();aL=_.lb(LV5.exec(aL)[0]+(KZ.trim()?"#"+KZ:""))}return aL}},Yh=function(){var aL={};
aL=_.Oy("yt-mini-app-container-view-model__loading-screen",(aL["yt-mini-app-container-view-model__loading-screen--fade-out"]=JL,aL));var KZ=function(){return JL()?1:pY()};
return _.F("div",{class:aL},_.F(_.mk,{data:function(){return y().splashScreen}},{miniAppSplashScreenViewModel:function(pZ){return _.F(THw,{data:pZ.data,
loadingProgress:KZ})}}))},v5=function(){x=[];
x.push(_.E4(window,"visibilitychange",function(){k||v&&KY()||(document.visibilityState==="visible"?ha():fZ())}));
x.push(_.E4(window,"pagehide",function(){Oi()}));
x.push(_.E4(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&RP.value.dispatchEvent(new Event("tap"))},0)}));
x.push(_.E4(RP.value,"pointerdown",function(){tjg(M,!1)},!0));
x.push(_.E4(RP.value,"pause",function(){k=!0;fZ()}));
x.push(_.E4(RP.value,"play",function(){k=!1;ha()}));
x.push(_.E4(RP.value,"exit",function(){Oi()}));
var aL=navigator.keyboard,KZ=aL&&aL.lock;x.push(_.E4(window,V0g,function(){eg(K8i());K8i()?(y().hasPlayNextShelf&&RH("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),zg("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),KZ&&aL.lock(["Escape"])):(y().hasPlayNextShelf&&zg("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),RH("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),KZ&&aL.unlock())}));
y().showMultiplayer3pConsentDialogCommand&&x.push(_.E4(window,"yt-playables-ack-3p-data-usage",function(){WT5(h)}));
y().confirmExitMiniAppCommandEdu&&x.push(_.E4(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.B1("exit-mini-app-seen-state","true",2592E6)}));
y().onGameAudioDataReceivedCommand&&x.push(_.E4(window,"message",function(pZ){pZ=pZ.event_;var za,hS=(za=x8.value)==null?void 0:za.src;if(hS&&pZ.origin===(new URL(hS)).origin&&pZ.data&&pZ.data.type==="GAME_AUDIO"&&pZ.data.audio&&pZ.data.audio.length>0)if(_.f("enable_sending_unwrapped_game_audio_as_serialized_metadata"))iOc(y().onGameAudioDataReceivedCommand,pZ.data.audio);else{var JS=new FileReader;JS.onload=function(){var xE=new Xa;var TJ=new Un5;TJ=_.eQ(TJ,1,JS.result);xE=_.wC(xE,4,TJ);c2(y().onGameAudioDataReceivedCommand,
Ecc(xE))};
JS.readAsDataURL(new Blob([pZ.data.audio]))}}))},Xr=function(){x.forEach(function(aL){dZ(aL)});
window.removeEventListener("beforeunload",BW,{capture:!0})},Hs=function(aL){aL&&MR8(aL,y().isEmbeddedInWebview||!1)},zg=function(aL,KZ){aL=_.V(RP.value.getElementsByClassName(aL));
for(var pZ=aL.next();!pZ.done;pZ=aL.next())pZ.value.classList.add(KZ)},RH=function(aL,KZ){aL=_.V(RP.value.getElementsByClassName(aL));
for(var pZ=aL.next();!pZ.done;pZ=aL.next())pZ.value.classList.remove(KZ)};
return function(){var aL={};aL=_.Oy("yt-mini-app-container-view-model",(aL["yt-mini-app-container-view-model--desktop"]=!0,aL["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return y().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},aL["yt-mini-app-container-view-model--ios-web-view"]=BNT(),aL["yt-mini-app-container-view-model--no-top-bar"]=function(){return!y().topBar},aL["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return y().hasPlayNextShelf},aL["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return y().hasPlayNextShelf},aL["yt-mini-app-container-view-model--show-peek-below"]=function(){return!vK()&&y().hasPlayNextShelf},aL));
var KZ={};KZ=_.Oy("yt-mini-app-container-view-model__content",(KZ["yt-mini-app-container-view-model__content--desktop-content"]=!0,KZ["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return y().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},KZ["yt-mini-app-container-view-model--desktop-play-page"]=function(){return y().hasPlayNextShelf},KZ));
return _.F("mini-app-container-view-model",{el:RP},_.F("div",{class:aL},_.F(_.w,{cond:function(){return y().topBar&&!vK()},
then:function(){return _.F(_.mk,{data:function(){return y().topBar}},{miniAppTopBarViewModel:function(pZ){return _.F(ZBc,{data:pZ.data,
isAudioEnabled:xS,onAudioToggled:function(za){IP(za)},
score:wg,formattedScore:HK,onScoreChanged:function(za){N=za},
isEmbeddedInWebview:KY,isSaved:oP,onSaveToggled:function(za){BK(za)},
isExitMiniAppSeen:hL,isDesktopPlayPage:si})}})}}),_.F("div",{class:KZ},_.F(_.w,{cond:Sg,
then:function(){return da()}}),_.F(_.w,{cond:function(){return!y().isEmbeddedInWebview},
then:function(){return Yh()}}))))}()},"le");
dZw.idomCompat=!0;_.h6(dZw,"mini-app-container-view-model",{props:{data:_.vR}});var UZb=_.Jd(function(R){var y=R.data;return _.F("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.F("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.nh(function(){var u=y().onTap;u&&_.zN(u)})},_.F(_.w,{cond:function(){return y().icon},
then:function(u){return _.F(_.W_,{icon:function(){return u().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.F("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return y().title})))},"me");
UZb.idomCompat=!0;var kzL=_.Jd(function(R){var y=_.sh("div"),u=_.V(_.In(void 0,void 0,"kFCJ0c")),v=u.next().value,Q=u.next().value;u=_.V(_.In(void 0,void 0,"PIPgWd"));var M=u.next().value,K=u.next().value;u=_.V(_.In(void 0,void 0,"rV66ob"));var h=u.next().value,b=u.next().value,N=function(){var E=v();return E!==void 0?Math.abs(E):void 0},T=function(){var E=N();
return E===void 0||E<=3},x=function(){var E=N();
var D=M(),z=h();E=E!==void 0&&D!==void 0&&z!==void 0?D-z-E:void 0;return E===void 0||E<=3},B=function(E){y.value&&y.value.scrollBy({top:0,
left:(_.EB("HTML_DIR")==="rtl"?-1:1)*E*y.value.clientWidth,behavior:"smooth"})},l=function(){var E;
Q((E=y.value)==null?void 0:E.scrollLeft);var D;K((D=y.value)==null?void 0:D.scrollWidth);var z;b((z=y.value)==null?void 0:z.clientWidth)},Z=function(){B(-.5)},P=function(){B(.5)};
u=_.nh(function(){l()});
_.nG(function(){l();if(y.value){var E=new ResizeObserver(l);E.observe(y.value);_.GF(function(){E.disconnect()})}});
var k={};return _.F("yt-sponsorships-scrollable-shelf",{class:_.Oy("ytdSponsorshipsScrollableShelfHost",R.className)},_.F("div",{class:_.Oy("ytdSponsorshipsScrollableShelfContent",(k.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return R.data().previousButton&&R.data().nextButton&&!T()&&!x()},k.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return R.data().previousButton&&!T()&&x()},k.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return R.data().nextButton&&
T()&&!x()},k)),
el:y,"on:scroll":u},R.children),_.F(_.w,{cond:function(){return!T()},
then:function(){return _.F(_.mk,{data:function(){return R.data().previousButton}},{buttonViewModel:function(E){return _.F(_.fQ,{data:E.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:Z})}})}}),_.F(_.w,{cond:function(){return!x()},
then:function(){return _.F(_.mk,{data:function(){return R.data().nextButton}},{buttonViewModel:function(E){return _.F(_.fQ,{data:E.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:P})}})}}))},"ne");
kzL.idomCompat=!0;var $Zc=_.Jd(function(R){var y=R.data;R={};return _.F("yt-sponsorships-hub",{class:_.Oy("ytdSponsorshipsHubHost",(R.ytdSponsorshipsHubHostIndented=function(){return y().indented},R))},_.F("div",{class:"ytdSponsorshipsHubHeader"},_.F("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.F("div",{class:"ytdSponsorshipsHubAvatar"},_.F(_.mk,{data:function(){return y().avatar}},{avatarViewModel:_.XS})),_.F(_.w,{cond:function(){return y().badgeImage},
then:function(u){return _.F("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.F("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.F("div",{class:"ytdSponsorshipsHubBadge"},_.F(_.MR,{data:u,targetWidth:24,targetHeight:24,alt:""}))))}})),_.F("div",{class:"ytdSponsorshipsHubDetails"},_.F("div",{class:"ytdSponsorshipsHubTierName"},function(){return y().tierName}),_.F("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return y().membershipType}),_.F("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return y().membershipDurationOrExpiry})),_.F("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.F(_.mk,{data:function(){return y().manageButton}},{buttonViewModel:function(u){return _.F(_.fQ,{data:u.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.F(_.mk,{data:function(){return y().actionMenuButton}},{buttonViewModel:function(u){return _.F(_.fQ,{data:u.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.F("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return y().perksTitle}),_.F(kzL,{data:function(){return{previousButton:y().previousPerkButton,
nextButton:y().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.F("div",{class:"ytdSponsorshipsHubPerkCards"},_.F(_.mk,{data:function(){return y().perkCards}},{sponsorshipsHubPerkCardViewModel:UZb}),_.F(_.w,{cond:function(){return y().viewAllPerksButton},
then:function(u){return _.F(E_g,{data:u})}}))))},"oe");
$Zc.idomCompat=!0;var E_g=_.Jd(function(R){var y=R.data;return _.F("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.F(_.mk,{data:function(){return y().button}},{buttonViewModel:_.fQ}),_.F("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.F("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return y().title}),_.F("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return y().subtitle})))},"pe");
E_g.idomCompat=!0;_.h6($Zc,"yt-sponsorships-hub",{props:{data:_.vR}});_.qsg=_.Jd(function(R){var y=R.data;return _.F("yt-dual-avatar-view-model",{class:_.Oy("ytDualAvatarViewModelHost",R.className),style:_.P_({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var u;return((u=y().badgeCutoutRadius)!=null?u:14)+"px"}})},_.F("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.F(_.mk,{data:function(){return y().startAvatar}},{avatarViewModel:_.XS}),_.F(_.mk,{data:function(){return y().endAvatar}},{avatarViewModel:_.XS})),_.F(_.mk,{data:function(){return y().badge}},
{contentPreviewImageViewModel:function(u){return _.F("div",{class:"ytDualAvatarViewModelBadge"},_.F(_.b2,{data:u.data}))}}))},"qe");
_.qsg.idomCompat=!0;var mZ5=_.Jd(function(R){var y=R.data;var u,v=!((u=_.ua().resolve(_.yN(_.u0)))==null||!u());R=_.N8(function(){var T,x,B=v?(T=y().header)==null?void 0:T.backgroundColorDarkMode:(x=y().header)==null?void 0:x.backgroundColorLightMode;if(B!==void 0)return _.Sq(B)},void 0,"UX2G6c");
u=_.N8(function(){var T,x;return v?(T=y().header)==null?void 0:T.backgroundImagePart1Dark:(x=y().header)==null?void 0:x.backgroundImagePart1Light},void 0,"GPAi1d");
var Q=_.N8(function(){var T,x;return v?(T=y().header)==null?void 0:T.backgroundImagePart2Dark:(x=y().header)==null?void 0:x.backgroundImagePart2Light},void 0,"nboJld"),M=_.N8(function(){return _.EB("HTML_DIR")==="rtl"},void 0,"LGJceb"),K=_.sh("yt-sponsorships-perks-list"),h=!1,b=function(){var T=K.value;
if(T&&!h){var x,B=(x=T.parentElement)==null?void 0:x.parentElement;if(B)for(T=T.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),x=0;x<T.length;++x){var l=T[x];if(l instanceof HTMLElement){B.scrollTo({top:l.offsetTop+l.clientHeight/2-B.clientHeight/2,behavior:"smooth"});h=!0;break}}}};
_.rB(function(){var T=K.value;if(T){var x=new ResizeObserver(b);x.observe(T);_.GF(function(){x.disconnect()})}});
var N={};return _.F("yt-sponsorships-perks-list",{el:K,class:_.Oy("ytdSponsorshipsPerksListHost",(N.ytdSponsorshipsPerksListHorizontalPadding=function(){return y().horizontalPaddingEnabled},N))},_.F("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.F("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.P_({"background-color":R})},_.F("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.F(_.w,{cond:u,then:function(T){var x={};return _.F("div",{class:_.Oy((x.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=v,x.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!v,x.ytdSponsorshipsPerksListFlipped=M,x))},_.F(_.MR,{data:T,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.F("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.F(_.w,{cond:Q,
then:function(T){var x={};return _.F("div",{class:_.Oy((x.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=v,x.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!v,x.ytdSponsorshipsPerksListFlipped=M,x))},_.F(_.MR,{data:T,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.F("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.F(_.mk,{data:function(){var T;
return(T=y().header)==null?void 0:T.dualAvatar}},{dualAvatarViewModel:_.qsg})))),_.F("div",{class:"ytdSponsorshipsPerksListBody"},_.F("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return y().title}),_.F(_.w,{cond:function(){return y().perks},
then:function(T){return _.F(_.eS,{each:T},function(x,B){var l={};return _.F("div",{class:_.Oy("ytdSponsorshipsPerksListPerkContainer",(l.ytdSponsorshipsPerksListSelectedPerk=function(){var Z=B(),P=y().selectedPerkIndex;return Z===P},l))},_.F(_.w,{cond:function(){return B()>0},
then:function(){return _.F("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.F("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.F(_.w,{cond:function(){return x.icon},
then:function(Z){return _.F(_.W_,{icon:function(){return Z().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.F("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.F("div",{class:"ytdSponsorshipsPerksListPerkTitle"},x.title),_.F("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.F(_.QM,{text:x.description})),_.F(_.w,{cond:function(){return x.instructions},
then:function(){var Z,P;return _.F("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.F("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(Z=x.instructions)==null?void 0:Z.title),_.F("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.F(_.QM,{text:(P=x.instructions)==null?void 0:P.text})))}}))),_.F(_.w,{cond:function(){return x.emoji},
then:function(Z){return _.F("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.F(_.eS,{each:function(){return Z()}},function(P){return _.F(_.MR,{data:P,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.F(XiL,{data:x}))})}})))},"re");
mZ5.idomCompat=!0;var XiL=_.Jd(function(R){var y=R.data;var u=function(K,h){return K===h},v=function(){var K=y();
K=_.e(K==null?void 0:K.badgesShelf,qx5);return K!==void 0&&K!==null?K:{previousButton:{},nextButton:{}}},Q=_.zp("div"),M=function(){var K=Q.value;
if(K){var h=K.parentElement;if(h){K=K.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var b=0;b<K.length;++b){var N=K[b];if(N instanceof HTMLElement){h.scrollTo({left:N.offsetLeft+N.clientWidth/2-h.clientWidth/2,behavior:"instant"});break}}}}};
_.rB(function(){var K=Q.value;if(K){var h=new ResizeObserver(M);h.observe(K);_.GF(function(){h.disconnect()})}});
return _.F("div",null,_.F(_.w,{cond:function(){return y().badges},
then:function(K){return _.F(kzL,{data:v},_.F("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:Q},_.F(_.eS,{each:function(){return K()}},function(h,b){var N={},T={},x={};
return _.F("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.F(_.w,{cond:function(){return b()>0},
then:function(){return _.F("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.F("div",{class:_.Oy("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(N.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return u(b(),y().currentBadgeIndex)},N.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!u(b(),y().currentBadgeIndex)},N))},_.F("div",{class:_.Oy("ytdSponsorshipsPerksListLoyaltyBadge",(T.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return u(b(),
y().currentBadgeIndex)},T.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!u(b(),y().currentBadgeIndex)},T))},_.F(_.w,{cond:function(){return h.image},
then:function(B){var l={};return _.F("div",{class:_.Oy((l.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return u(b(),y().currentBadgeIndex)},l.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!u(b(),y().currentBadgeIndex)},l))},_.F(_.MR,{data:B,
alt:""}))}})),_.F("div",{class:_.Oy("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(x.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return u(b(),y().currentBadgeIndex)},x))},h.title)))})))}}))},"se");
XiL.idomCompat=!0;_.h6(mZ5,"yt-sponsorships-perks-list",{props:{data:_.vR}});_.h6(_.Jd(function(R){return _.F("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.F(_.w,{cond:function(){return R.data().image},
then:function(y){return _.F(_.MR,{className:"ytwFantasyEmptyStateViewModelImage",data:y,ariaHidden:!0,alt:""})}}),_.F(_.QM,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return R.data().title}}),_.F(_.QM,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return R.data().subtitle}}),_.F(_.mk,{data:function(){return R.data().primaryButton}},{buttonViewModel:function(y){return _.F(_.fQ,{data:y.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"te"),"ytw-fantasy-empty-state-view-model",{props:{data:_.vR}});var AQL;var HOE=_.UC({buttonRenderer:_.yZ});_.Qn(npS);_.B_(npS,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var Jm=function(){var R=_.W.apply(this,arguments)||this;R.hideJoinButtonBeforeSubscribed=_.f("hide_join_button_before_subscribed");R.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return R};
_.O(Jm,_.W);_.J=Jm.prototype;_.J.hasShowDialogCommand=function(R){return!!_.e(R,t5G)};
_.J.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"}}}};
_.J.updateJoinButtonOverrides=function(){var R,y;(R=_.hw(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(y=R.polymerController)==null||y.set("overrides",this.joinButtonOverrides);if(R=_.hw(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))R.overrides=this.joinButtonOverrides};
_.J.handleButtonRefreshAction=function(R){if(R=_.e(R,LnG))this.set("data.membershipButton",R.membershipButton),this.notifyPath("data.membershipButton")};
_.J.onYtServiceRequestError=function(R){_.JG(this.hostElement,R.detail.error.message)};
_.J.onKeydown=function(R){if(R.key==="Enter"){var y;(y=this.data)!=null&&y.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.J.handleUnsubscribeAction=function(){var R,y,u;((R=this.data)==null?void 0:(y=R.membershipButton)==null?void 0:(u=y.buttonRenderer)==null?void 0:u.style)==="STYLE_PRIMARY"&&_.hw(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.RR.Object.defineProperties(Jm.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,y=(R=this.data)==null?void 0:R.membershipButton,u;R=(y==null?void 0:y.buttonRenderer)||_.e(y==null?void 0:(u=y.timedAnimationButtonRenderer)==null?void 0:u.buttonRenderer,_.aG);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"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var R;if(this.hasShowDialogCommand((R=this.data)==null?void 0:R.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var R;if(this.hasShowDialogCommand((R=this.data)==null?void 0:R.navigationEndpoint))return"button"}}});
Jm.prototype.onYtServiceRequestError=Jm.prototype.onYtServiceRequestError;Jm.prototype.updateJoinButtonOverrides=Jm.prototype.updateJoinButtonOverrides;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Jm.prototype,"actionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Jm.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Jm.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.n(_.p6),_.p("design:type",Object)],Jm.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Jm.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.mf),_.p("design:type",Object)],Jm.prototype,"ironButtonState",void 0);_.A([_.r(),_.p("design:type",Object)],Jm.prototype,"data",void 0);_.A([_.G("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.p("design:type",Object),_.p("design:paramtypes",[])],Jm.prototype,"hideJoin",null);
_.A([_.r(),_.p("design:type",String)],Jm.prototype,"subscribeKey",void 0);_.A([_.r({selectorArgs:["subscribeKey"],selector:EgT}),_.p("design:type",Object)],Jm.prototype,"subscriptionStateEntity",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Jm.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.A([_.G("subscriptionStateEntity"),_.r({reflectToAttribute:!0}),_.p("design:type",Object),_.p("design:paramtypes",[])],Jm.prototype,"subscribed",null);
_.A([_.G("subscribed","data.membershipButton"),_.p("design:type",Object),_.p("design:paramtypes",[])],Jm.prototype,"joinButtonOverrides",null);_.A([_.G("data.navigationEndpoint"),_.p("design:type",Object),_.p("design:paramtypes",[])],Jm.prototype,"channelNameTabIndex",null);_.A([_.G("data.navigationEndpoint"),_.p("design:type",Object),_.p("design:paramtypes",[])],Jm.prototype,"channelNameRole",null);
_.A([_.e0("joinButtonOverrides"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jm.prototype,"updateJoinButtonOverrides",null);_.A([_.fu("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Jm.prototype,"onYtServiceRequestError",null);_.A([_.q({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],Jm);
var DZb=_.Nk()(Jm,"ytd-video-owner-renderer",function(){if(AQL===void 0){var R=document.createElement("template");_.H(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]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');
R.content.insertBefore(_.t().content.cloneNode(!0),R.content.firstChild);AQL=R}R=AQL;return R},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.h6(_.Jd(function(R){var y=R.data;var u;R=_.V(_.In(!((u=_.fl("yt-mini-app-is-theater-mode-enabled"))==null||!u),void 0,"CtFFDf"));var v=R.next().value,Q=R.next().value;u=_.V(_.In(!1,void 0,"pRgDfb"));var M=u.next().value,K=u.next().value;_.rB(function(){var N=_.E4(window,V0g,function(){K(K8i())});
_.GF(function(){dZ(N)})});
var h;u=(h=_.ua().resolve(_.yN(hfb)))!=null?h:function(){return _.F("div",null)};
_.Li("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){Q(!0);_.B1("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.Li("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){Q(!1);_.B1("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
h={};R={};var b={};return _.F("mini-app-play-page-renderer",{class:_.Oy("miniAppPlayPageRendererHost",(h.miniAppPlayPageRendererHostDetailsView=function(){return!v()},h))},_.F("div",{class:_.Oy("miniAppPlayPageRendererGameContainer",(R.miniAppPlayPageRendererGameContainerDetailsView=function(){return!v()},R))},_.F(_.mk,{data:function(){return y().containerViewModel}},{miniAppContainerViewModel:dZw}),_.F(_.w,{cond:function(){return y().channel&&y().subscribeButton},
then:function(){var N={};return _.F("div",{class:_.Oy("miniAppPlayPageRendererChannelContainer",(N.miniAppPlayPageRendererHideVisibility=function(){return M()},N))},_.F(_.mk,{data:function(){return y().channel}},{videoOwnerRenderer:function(T){return _.F(DZb,{data:T.data})}}),_.F(_.mk,{data:function(){return y().subscribeButton}},{subscribeButtonViewModel:function(T){return _.F(_.$x,{data:T.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.F(_.w,{cond:function(){return!v()&&y().description},
then:function(){var N={};return _.F("div",{class:_.Oy("miniAppPlayPageRendererMiniAppDescriptionWrapper",(N.miniAppPlayPageRendererHideVisibility=function(){return M()},N))},_.F("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return y().description}))}})),_.F("div",{class:_.Oy("miniAppPlayPageRendererPlayNextContainer",(b.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!v()},b.miniAppPlayPageRendererHideVisibility=function(){return M()},b))},_.F(_.mk,{data:function(){return y().sectionList}},
{sectionListRenderer:u})))},"ue"),"mini-app-play-page-renderer",{props:{data:_.vR}});var Vd=function(){var R=_.W.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};
_.O(Vd,_.W);_.J=Vd.prototype;
_.J.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:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},flowRootRenderer:{component:"ytd-flow-root-renderer",
noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",
noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",
noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},
liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},
creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.f("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.f("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.J.created=function(){var R=this;this.JSC$16941_scrollAnimation=new _.gl(function(y){R.hostElement.scrollTop=y})};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.J.getItemsPath=function(){return"data.contents"};
_.J.replacePrimaryContent=function(R){this.set("data.contents",R)};
_.J.computeHasSortFilter=function(R){return!!R&&!!R.sortFilterSubMenuRenderer};
_.J.computeShouldScrollInPanel=function(R){var y;return!!(R==null?0:(y=R.scrollPaneStyle)==null?0:y.scrollable)};
_.J.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.FN(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.J.scrollToTop=function(){this.hostElement.scrollTop=0};
_.J.scrollToItemSection=function(R){if(R=this.getItemByIdentifier(R))R=this.getScrollPositionForItem(R),this.hostElement.scrollTop!==R&&this.JSC$16941_scrollAnimation.start(this.hostElement.scrollTop,R,this.SCROLL_ANIMATION_DURATION_MS)};
_.J.getItemByIdentifier=function(R){var y=this.contents.querySelectorAll("ytd-item-section-renderer");if(y&&y.length!==0){var u=Array.from(y).findIndex(function(v){return v.sectionIdentifier===R});
return y[u===-1?0:u]}};
_.J.getScrollPositionForItem=function(R){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===R)return 0;R=_.E6(R).y+this.hostElement.scrollTop-_.E6(this.hostElement).y;return Math.min(R,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.RR.Object.defineProperties(Vd.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.targetId)==="browse-feedFEclips"}}});
Vd.prototype.onScroll=Vd.prototype.onScroll;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Vd.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Vd.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.K_.YtLazyListBehavior),_.p("design:type",Object)],Vd.prototype,"ytLazyListBehavior",void 0);_.A([_.n(_.Cw.YtNextContinuationBehavior),_.p("design:type",Object)],Vd.prototype,"ytNextContinuationBehavior",void 0);
_.A([_.n(_.rhc),_.p("design:type",Object)],Vd.prototype,"ytBooleanLogicBehavior",void 0);_.A([_.n(_.gb),_.p("design:type",Object)],Vd.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Vd.prototype,"data",void 0);_.A([_.r({value:2}),_.p("design:type",Number)],Vd.prototype,"initialCount",void 0);_.A([_.r({value:!0}),_.p("design:type",Boolean)],Vd.prototype,"autoFill",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.p("design:type",Boolean)],Vd.prototype,"hasSortFilter",void 0);_.A([_.r({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.p("design:type",Boolean)],Vd.prototype,"hideBottomSeparator",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.p("design:type",Boolean)],Vd.prototype,"shouldScrollInPanel",void 0);
_.A([_.r(),_.p("design:type",Object)],Vd.prototype,"isSearch",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Vd.prototype,"isConstrainedList",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],Vd.prototype,"responsiveSizing",void 0);_.A([_.r(),_.p("design:type",Object)],Vd.prototype,"hasChipsBar",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],Vd.prototype,"pageSubtype",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Vd.prototype,"engagementPanel",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Vd.prototype,"liveChatEngagementPanel",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Vd.prototype,"inReplyPanel",void 0);_.A([_.O7("#action-button"),_.p("design:type",HTMLElement)],Vd.prototype,"actionButton",void 0);_.A([_.r(),_.p("design:type",Object)],Vd.prototype,"scrollUpButtonData",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Vd.prototype,"engagementPanelDropdown",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Vd.prototype,"engagementPanelDialog",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Vd.prototype,"isClipList",null);_.A([_.O7("#contents"),_.p("design:type",HTMLElement)],Vd.prototype,"monitorScrollElement",void 0);_.A([_.O7("#contents"),_.p("design:type",HTMLElement)],Vd.prototype,"contents",void 0);
_.A([_.fu("scroll"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Vd.prototype,"onScroll",null);_.A([_.q({is:"ytd-section-list-renderer",disableElementRegistration:!0})],Vd);
var piK=_.Nk()(Vd,"ytd-section-list-renderer",function(){if(Iv5===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);Iv5=R}R=Iv5;return R},{mode:1});var tBg;var cQ5;var a4c;var SsK;var K4=function(){return _.W.apply(this,arguments)||this};
_.O(K4,_.W);K4.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
K4.prototype.onLikeButtonClick=function(R){R.stopPropagation();R.preventDefault()};
_.RR.Object.defineProperties(K4.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],K4.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],K4.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],K4.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],K4.prototype,"ytRendererStamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],K4.prototype,"data",void 0);
_.A([_.r({selectorArgs:["data.likeStatusEntityKey"],selector:Y6}),_.p("design:type",Object)],K4.prototype,"likeStatusEntity",void 0);_.A([_.G("data","likeStatusEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],K4.prototype,"likeButtonRenderer",null);_.A([_.q({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],K4);
_.m(K4,"ytd-slim-metadata-toggle-button-renderer",function(){if(SsK!==void 0)return SsK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);
return SsK=R},{mode:1});var I7=function(){var R=_.W.apply(this,arguments)||this;R.minimizePipBreakages=_.f("web_pip_minimize_breakages");R.showEqualizer=_.f("web_enable_playlist_video_lockup_equalizer");R.watchColorUpdate=_.f("kevlar_watch_color_update");R.actionMap={};return R};
_.O(I7,_.W);_.J=I7.prototype;_.J.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"}}}};
_.J.computeEditableClass=function(R){return R&&R.menu?"editable":""};
_.J.computeSelected=function(R){return!(R==null||!R.selected)};
_.J.computeUseColorPalette=function(R){return!!((R==null?0:R.lightColorPalette)&&(R==null?0:R.darkColorPalette))};
_.J.computeLargerPlaylistThumbs=function(R,y){return _.f("web_enable_playlist_bigger_thumbnails")&&!y};
_.J.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.J.onYtServiceRequestSent=function(R,y){y.endpoint&&this.isHideEnclosingAction(y.endpoint)&&!this.selected&&V7V(_.gQ(),this.data.videoId)};
_.J.isHideEnclosingAction=function(R){var y=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",R);R=this.get("likeEndpoint.status",R)==="INDIFFERENT";return y||R};
_.J.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.J.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.RR.Object.defineProperties(I7.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.f("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var R;return!!(this.withinMiniplayer&&((R=this.data)==null?0:R.actionButtons))}}});
I7.prototype.onYtServiceRequestSent=I7.prototype.onYtServiceRequestSent;I7.prototype.canReorderChanged=I7.prototype.canReorderChanged;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],I7.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],I7.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],I7.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.gT),_.p("design:type",Object)],I7.prototype,"ytdLockupBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],I7.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],I7.prototype,"withinMiniplayer",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],I7.prototype,"minimizePipBreakages",void 0);_.A([_.r({computed:"computeSelected(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],I7.prototype,"selected",void 0);
_.A([_.r({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],I7.prototype,"useColorPalette",void 0);_.A([_.r({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.p("design:type",Boolean)],I7.prototype,"largerPlaylistThumbs",void 0);_.A([_.r(),_.p("design:type",Object)],I7.prototype,"showEqualizer",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],I7.prototype,"canReorder",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],I7.prototype,"touchPersistentDragHandle",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],I7.prototype,"handleIsHovered",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],I7.prototype,"watchColorUpdate",void 0);_.A([_.r(),_.p("design:type",String),_.p("design:paramtypes",[])],I7.prototype,"reorderIcon",null);
_.A([_.G("largerPlaylistThumbs"),_.p("design:type",Number),_.p("design:paramtypes",[])],I7.prototype,"thumbnailWidth",null);_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],I7.prototype,"showActionButtons",null);_.A([_.GJ("canReorder"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],I7.prototype,"canReorderChanged",null);
_.A([_.fu("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.z3]),_.p("design:returntype")],I7.prototype,"onYtServiceRequestSent",null);_.A([_.q({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],I7);
_.m(I7,"ytd-playlist-panel-video-renderer",function(){if(a4c!==void 0)return a4c;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return a4c=R},{mode:2});var hm=function(){return _.W.apply(this,arguments)||this};
_.O(hm,_.W);hm.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([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],hm.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],hm.prototype,"data",void 0);_.A([_.q({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],hm);
_.m(hm,"ytd-playlist-panel-supported-items",function(){if(cQ5!==void 0)return cQ5;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return cQ5=
R},{mode:1});ikK=!0;ZX5("\\P{N}");var GVU;var Ysc=_.fo("END_OF_PLAYLIST",void 0,"End of playlist"),LT5=_.fo("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),bf=function(){var R=_.W.apply(this,arguments)||this;R.minimizePipBreakages=_.f("web_pip_minimize_breakages");R.updatedCoursePanel=_.f("move_three_dot_menu_to_playlist_panel_header_for_courses");R.hideHeaderText=!1;R.useColorPalette=!1;R.collapsed=!1;R.collapsedPreServerOverride="not_tracked";R.isHovered=!1;R.modernPanels=_.f("kevlar_watch_modern_panels");
R.expandLabel=_.fo("MINIPLAYER_EXPAND_LABEL");R.collapseLabel=_.fo("MINIPLAYER_COLLAPSE_LABEL");R.isFloating=!1;R.metaPanel=!1;R.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};R.currentIndex=void 0;return R};
_.O(bf,_.W);_.J=bf.prototype;
_.J.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"}}}};
_.J.created=function(){this.scrollThrottle=new _.v2(this.onThrottledScroll,1E3,this)};
_.J.onMouseEnter=function(){this.isHovered=!0};
_.J.onMouseLeave=function(){this.isHovered=!1};
_.J.computeOverflowMenuData=function(R){return R&&R.menu?R.menu:null};
_.J.computeCollapsible=function(R){return!R};
_.J.computeHasPlaylistButtons=function(R){return!(!R||!R.playlistButtons)};
_.J.computeHasSeparateSaveButton=function(R){return!(!R||!R.saveButton)};
_.J.computeHasToolbarButton=function(R,y){return!(!R||!(y||R.saveButton||R.menu))};
_.J.computePlaylistType=function(R){if(R&&R.playlistId)return R.playlistId.substring(0,4)};
_.J.computeCanReorder=function(R){return R?R.playlistId&&R.playlistId.startsWith("TLPQ")?!0:!!R.isEditable&&!R.isInfinite:!1};
_.J.attached=function(){var R=this;try{_.ua().resolve(_.S2).setPlaylistComponent(this.hostElement)}catch(y){if(_.f("kevlar_park_on_playlist_token_killswitch"))throw y;_.Lx().parkOrScheduleJob(function(){_.ua().resolve(_.S2).setPlaylistComponent(R.hostElement)},2,"ci")}_.VL(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.J.detached=function(){_.ih(this.hostElement)};
_.J.computeTrailingIcon=function(R,y,u){return u?y?"yt-icons:collapse":"yt-icons:close":y?"yt-icons:expand":_.f("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.J.computeIndexMessage=function(R,y){return WAT(R+1)+" / "+WAT(y)};
_.J.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()};
_.J.collapseChanged=function(){var R=this;this.collapsed||(_.Xs(this.ytTaskEmitterBehavior.getTaskManager(),function(){R.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.J.hiddenChanged=function(){var R=this;this.hidden||_.Xs(this.ytTaskEmitterBehavior.getTaskManager(),function(){R.scrollToCurrentVideo()})};
_.J.setupReordering=function(){var R=_.hw(this.hostElement).querySelector("#items");m6i?_.$mw(this.ytReorderableBehavior,R,R,"playlist-drag-handle"):_.$mw(this.ytReorderableBehavior,R,R)};
_.J.scrollToCurrentVideo=function(){var R=this;_.WG.addJob(function(){var y=_.hw(R.hostElement).querySelector("#items");if(y){y.style.setProperty("padding-bottom","");var u=_.hw(R.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(u){y=u.parentElement||_.dx(document);var v=y||_.dx(document);var Q=_.E6(u),M=_.E6(v),K=_.mVV(v);if(v==_.dx(document)){var h=Q.x-v.scrollLeft;Q=Q.y-v.scrollTop}else h=Q.x-M.x-K.left,Q=Q.y-M.y-K.top;u=EMc(u);M=v.clientHeight-
u.height;K=v.scrollLeft;var b=v.scrollTop;K+=h-(v.clientWidth-u.width)/2;v=new _.dc(K,b+(Q-M/2));y.scrollLeft=v.x;y.scrollTop=v.y}}},8)};
_.J.dataChanged=function(){var R=this;_.Eg5(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.gn(this,function(){_.Oh(R.ytTaskEmitterBehavior.getTaskManager(),function(){R.ytRendererBehavior.markDirty();R.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.J.onFullBleedPlayerChanged=function(){_.f("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.J.onFullscreenChanged=function(){_.f("web_watch_imax_theater_mode")||_.f("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.J.updateNowPlayingOverlay=function(){_.f("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.J.onPlaylistLockupNowPlaying=function(R,y){y&&(this.activeNowPlayingRenderer=y);this.updateNowPlayingOverlay()};
_.J.onScroll=function(){this.scrollThrottle.fire()};
_.J.onThrottledScroll=function(){var R=this;_.Oh(this.ytTaskEmitterBehavior.getTaskManager(),function(){R.ytRendererBehavior.markDirty()})};
_.J.onToggleExpanded=function(R){!this.collapsible||R&&(_.vN(R).tagName==="A"||_.JF(_.u8(R),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.J.setCollapsed=function(R){this.collapsible&&(this.collapsed=R,_.h_(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.J.handleCollapsedFromData=function(R){if(R){var y=R.playlistPanelCollapseState;y==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||y==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),y=y==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==y&&this.setCollapsed(y)):this.currentPlaylistId!==R.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(y=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==y&&this.setCollapsed(y),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=R.playlistId}};
_.J.handleDrop=function(R){var y=R.currDragItem;R=y.data.playlistSetVideoId;var u=_.EP(y.parentNode.childNodes,y),v=void 0;u>0&&(v=y.parentNode.childNodes[u-1].data.playlistSetVideoId);y=_.gQ();if(y.responsePlaylistData&&y.responsePlaylistData.contents){var Q=LsU(R,y.responsePlaylistData);y.responsePlaylistData=(0,_.Ps.unsafeClone)(y.responsePlaylistData);PO8(y.responsePlaylistData.contents,Q,u);y.queueProxy?quc(y.queueProxy,Q,u,R,v):y.playlistProxy&&quc(y.playlistProxy,Q,u,R,v);_.Cx(y,_.Ri(y,y.response?
y.response.autoplayRenderer:void 0))}};
_.J.handleDarkModeChange=function(R){R!==this.isDarkTheme&&(this.isDarkTheme=R)};
_.J.colorPaletteChanged=function(){var R,y=((R=this.data)==null?void 0:R.contents)||[],u;R=_.V(y);for(y=R.next();!y.done;y=R.next()){y=y.value;var v=void 0;if((v=y.playlistPanelVideoRenderer)==null?0:v.selected){R=y.playlistPanelVideoRenderer;v=y=void 0;(u=this.isDarkTheme?(y=R)==null?void 0:y.darkColorPalette:(v=R)==null?void 0:v.lightColorPalette)&&_.mx(this.hostElement,u);break}}this.useColorPalette=!!u};
_.RR.Object.defineProperties(bf.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var R,y;return!((R=this.data)==null||!R.playlistId)&&!((y=this.data)==null||!y.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var R=_.ua().resolve(_.yN(_.S2)),y;if(((y=this.data)==null?0:y.contents)&&(R==null?0:R.hasAutoplayData())){var u;if(((u=this.playlistLoopStateEntity)==null?void 0:u.state)==="PLAYLIST_LOOP_STATE_ONE"){if(R=this.data.currentIndex,R!==void 0){var v,Q;var M=(v=this.data.contents[R])==null?void 0:(Q=v.playlistPanelVideoRenderer)==null?void 0:Q.title}}else{var K,h=(K=_.e(R.getAutoplayEndpoint(),_.zM))==null?void 0:K.videoId,b,N;M=(b=this.data.contents.find(function(T){var x;
return((x=T.playlistPanelVideoRenderer)==null?void 0:x.videoId)===h}))==null?void 0:(N=b.playlistPanelVideoRenderer)==null?void 0:N.title}return M}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)!=null&&R.nextVideoLabel?this.nextVideoTitle?_.u7(this.data.nextVideoLabel)+":":Ysc:""}},
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"&&!_.f("web_mix_long_byline_from_data"))return _.ye(LT5);var y;return(y=this.data)==null?void 0:y.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var R,y,u,v=(R=this.data)==null?void 0:(y=R.playlistButtons)==null?void 0:(u=y.menuRenderer)==null?void 0:u.topLevelButtons;if(v)for(R=_.V(v),y=R.next();!y.done;y=R.next())if(y=y.value,y.playlistLoopButtonRenderer)return y.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var R;return!!(this.collapsed&&((R=this.data)==null?0:R.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.f("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
bf.prototype.colorPaletteChanged=bf.prototype.colorPaletteChanged;bf.prototype.onPlaylistLockupNowPlaying=bf.prototype.onPlaylistLockupNowPlaying;bf.prototype.updateNowPlayingOverlay=bf.prototype.updateNowPlayingOverlay;bf.prototype.onFullscreenChanged=bf.prototype.onFullscreenChanged;bf.prototype.onFullBleedPlayerChanged=bf.prototype.onFullBleedPlayerChanged;bf.prototype.dataChanged=bf.prototype.dataChanged;bf.prototype.hiddenChanged=bf.prototype.hiddenChanged;bf.prototype.collapseChanged=bf.prototype.collapseChanged;
bf.prototype.onRenderStamperFinished=bf.prototype.onRenderStamperFinished;bf.prototype.onMouseLeave=bf.prototype.onMouseLeave;bf.prototype.onMouseEnter=bf.prototype.onMouseEnter;_.A([_.n(_.qv),_.p("design:type",Object)],bf.prototype,"ironResizableBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],bf.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],bf.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.n(UmT.YtPlaylistPanelBehavior),_.p("design:type",Object)],bf.prototype,"ytPlaylistPanelBehavior",void 0);_.A([_.n(_.VE.YtTaskEmitterBehavior),_.p("design:type",Object)],bf.prototype,"ytTaskEmitterBehavior",void 0);_.A([_.n(_.qGg),_.p("design:type",Object)],bf.prototype,"ytReorderableBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],bf.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],bf.prototype,"ytdReduxBehavior",void 0);
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],bf.prototype,"actionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],bf.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],bf.prototype,"autoplayData",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],bf.prototype,"withinMiniplayer",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bf.prototype,"minimizePipBreakages",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bf.prototype,"updatedCoursePanel",void 0);_.A([_.r({computed:"setMenuData_(data)"}),_.p("design:type",Object)],bf.prototype,"menuRendererData",void 0);_.A([_.r({computed:"computeOverflowMenuData(data)"}),_.p("design:type",Object)],bf.prototype,"overflowMenuDataTopRow",void 0);_.A([_.r({computed:"computeOverflowMenuData(data)"}),_.p("design:type",Object)],bf.prototype,"overflowMenuData",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bf.prototype,"hideHeaderText",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bf.prototype,"useColorPalette",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.p("design:type",Boolean)],bf.prototype,"collapsible",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bf.prototype,"collapsed",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],bf.prototype,"hidden",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.p("design:type",Boolean)],bf.prototype,"hasPlaylistButtons",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.p("design:type",Boolean)],bf.prototype,"hasSeparateSaveButton",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.p("design:type",Boolean)],bf.prototype,"hasToolbar",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.p("design:type",String)],bf.prototype,"playlistType",void 0);_.A([_.r(),_.p("design:type",Object)],bf.prototype,"isHovered",void 0);_.A([_.r({selectorArgs:["playlistLoopStateEntityKey"],selector:_.DmL}),_.p("design:type",Object)],bf.prototype,"playlistLoopStateEntity",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bf.prototype,"modernPanels",void 0);_.A([_.r({value:56}),_.p("design:type",Number)],bf.prototype,"scrollMargin",void 0);_.A([_.r({computed:"computeCanReorder(data)"}),_.p("design:type",Boolean)],bf.prototype,"canReorder",void 0);_.A([_.r(),_.p("design:type",Object)],bf.prototype,"expandLabel",void 0);_.A([_.r(),_.p("design:type",Object)],bf.prototype,"collapseLabel",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bf.prototype,"isFloating",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bf.prototype,"metaPanel",void 0);_.A([_.r({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.p("design:type",String)],bf.prototype,"trailingIcon",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],bf.prototype,"isDarkTheme",void 0);
_.A([_.r({selector:_.X9}),_.p("design:type",Boolean)],bf.prototype,"miniplayerIsActive",void 0);_.A([_.r({selector:function(R){return R.watch.playerState}}),
_.p("design:type",Number)],bf.prototype,"playerState",void 0);_.A([_.r({selector:_.c_}),_.p("design:type",Boolean)],bf.prototype,"isFullscreen",void 0);_.A([_.r({selector:_.t6}),_.p("design:type",Boolean)],bf.prototype,"isTheaterMode",void 0);_.A([_.r(),_.p("design:type",Object)],bf.prototype,"activeNowPlayingRenderer",void 0);_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],bf.prototype,"moveThreeDotMenuToTopRow",null);
_.A([_.G("data","autoplayData","playlistLoopStateEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],bf.prototype,"nextVideoTitle",null);_.A([_.G("data","nextVideoTitle"),_.p("design:type",String),_.p("design:paramtypes",[])],bf.prototype,"nextVideoLabel",null);_.A([_.G("collapsed"),_.p("design:type",String),_.p("design:paramtypes",[])],bf.prototype,"buttonAriaLabel",null);
_.A([_.G("data","playlistId","longBylineText"),_.p("design:type",Object),_.p("design:paramtypes",[])],bf.prototype,"mixLongByLine",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],bf.prototype,"playlistLoopStateEntityKey",null);_.A([_.fu("mouseenter"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bf.prototype,"onMouseEnter",null);
_.A([_.fu("mouseleave"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bf.prototype,"onMouseLeave",null);_.A([_.r({reflectToAttribute:!0}),_.G("data","collapsed"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],bf.prototype,"showNextVideoHeader",null);_.A([_.fu("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bf.prototype,"onRenderStamperFinished",null);
_.A([_.e0("collapsed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bf.prototype,"collapseChanged",null);_.A([_.e0("hidden"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bf.prototype,"hiddenChanged",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bf.prototype,"dataChanged",null);
_.A([_.G("isTheaterMode","isFullscreen"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],bf.prototype,"isFullBleedPlayer",null);_.A([_.e0("isTheaterMode","isFullscreen"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bf.prototype,"onFullBleedPlayerChanged",null);_.A([_.e0("isFullscreen"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bf.prototype,"onFullscreenChanged",null);
_.A([_.e0("playerState","miniplayerIsActive"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bf.prototype,"updateNowPlayingOverlay",null);_.A([_.fu("yt-playlist-lockup-now-playing-active"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],bf.prototype,"onPlaylistLockupNowPlaying",null);
_.A([_.e0("data","isDarkTheme"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bf.prototype,"colorPaletteChanged",null);_.A([_.q({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],bf);
_.sBT=_.Nk()(bf,"ytd-playlist-panel-renderer",function(){if(tBg===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);tBg=R}R=tBg;return R},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var zeT;var F_=function(){var R=_.W.apply(this,arguments)||this;R.modern=_.f("web_button_rework");return R};
_.O(F_,_.W);F_.prototype.computeShouldButtonBeVertical=function(R,y){return R||y};
F_.prototype.onYtServiceRequestSent=function(R,y){(R=_.e(y.endpoint,_.YY))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.Gw("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:R.status})):this.handleLikeEndpoint(R))};
F_.prototype.computelikeStatusEntityKey=function(R){return R==null?void 0:R.likeStatusEntityKey};
F_.prototype.handleLikeEndpoint=function(R){R.status==="LIKE"?this.JSC$16966_ytdDislikeToggleButtonRenderer.toggle(!1):R.status==="DISLIKE"?this.JSC$16966_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16966_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16966_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.RR.Object.defineProperties(F_.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var R;return EpT(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 y;return EpT(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(y=this.likeStatusEntity)==null?void 0:y.likeStatus)}}}});
F_.prototype.onYtServiceRequestSent=F_.prototype.onYtServiceRequestSent;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],F_.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],F_.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],F_.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],F_.prototype,"vertical",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],F_.prototype,"textTransform",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],F_.prototype,"useShortsIcon",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],F_.prototype,"underIconLabel",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],F_.prototype,"modern",void 0);_.A([_.r({value:"left"}),_.p("design:type",String)],F_.prototype,"buttonTooltipPosition",void 0);
_.A([_.r(),_.p("design:type",Object)],F_.prototype,"overrides",void 0);_.A([_.O7("#like-button"),_.p("design:type",Object)],F_.prototype,"JSC$16966_ytdLikeToggleButtonRenderer",void 0);_.A([_.O7("#dislike-button"),_.p("design:type",Object)],F_.prototype,"JSC$16966_ytdDislikeToggleButtonRenderer",void 0);_.A([_.G("data","likeStatusEntity.likeStatus","useShortsIcon"),_.p("design:type",Object),_.p("design:paramtypes",[])],F_.prototype,"likeButton",null);
_.A([_.G("data","likeStatusEntity.likeStatus","useShortsIcon"),_.p("design:type",Object),_.p("design:paramtypes",[])],F_.prototype,"dislikeButton",null);_.A([_.r({computed:"computelikeStatusEntityKey(data)"}),_.p("design:type",String)],F_.prototype,"likeStatusEntityKey",void 0);_.A([_.r({selectorArgs:["likeStatusEntityKey"],selector:Y6}),_.p("design:type",Object)],F_.prototype,"likeStatusEntity",void 0);
_.A([_.fu("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.z3]),_.p("design:returntype")],F_.prototype,"onYtServiceRequestSent",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],F_);
var g_5=_.Nk()(F_,"ytd-like-button-renderer",function(){if(zeT===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);zeT=R}R=zeT;return R},{mode:1});_.Cc5={};
_.Cc5.YtConditionalRendererBehavior=[_.S.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(R,y){var u=this,v,Q;return _.I(function(M){switch(M.nextAddress){case 1:if(!y)return u.hidden=!0,u.showSpinner=!1,M.return();if((v=R)==null?0:(Q=v.visibilityCondition)==null?0:Q.mode)switch(R.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return M.jumpTo(5);default:return M.jumpTo(6)}u.showSpinner=
!1;u.hidden=!0;return M.yield(u.shouldShow_(R),4);case 4:u.hidden=!M.yieldResult;M.jumpTo(0);break;case 5:return M.yield(u.shouldShow_(R),8);case 8:u.showSpinner=M.yieldResult;u.hidden=!1;M.jumpTo(0);break;case 6:return u.showSpinner=!1,M.yield(u.shouldShow_(R),9);case 9:u.hidden=!M.yieldResult,_.f$(M)}})},
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=_.Ik(this.hostElement,"yt-get-mdx-status");return R.length==1&&R[0].connected},
isLocationPermissionGranted_:function(){var R;return _.I(function(y){return y.nextAddress==1?navigator.permissions?y.yield(navigator.permissions.query({name:"geolocation"}),3):y.jumpTo(2):y.nextAddress!=2?(R=y.yieldResult,y.return(Promise.resolve(R.state==="granted"))):y.return(Promise.resolve(!1))})}}];var RM5=function(R,y){y=y===void 0?{}:y;var u=function(v){var Q=document.createElement(R),M;var K=(M=Q.polymerController)!=null?M:Q;cMc(Q,K,v,y);return Q};
u.debugName=R+" (CoW wrapped)";return u}("yt-icon"),yyT=_.f("web_bypass_polymer_yt_icon")&&_.f("kevlar_use_wil_icons")?_.Jd(function(R){var y=R.icon;
var u=R.active;var v=R.className;var Q=R.style;var M=R.dataSelected;var K=R.dataDisabled;var h=R.role;var b=R.themeOverride;var N=R.animateIcon;var T=R.ariaHidden;var x=R.ariaExpanded;var B=R.ariaLabel;var l=R.tabindex;var Z=R.id;var P=R.iconFilter;var k=function(){var z=y==null?void 0:y(),c=null,a=void 0;z&&(z=mfV(z),z=BMW(z),z.length&&(c=z[1],a=z[0]));return{iconName:c,iconSetName:a}},E=function(){return AfV(k().iconName,u==null?void 0:u(),void 0,void 0,k().iconSetName,_.ua().resolve(_.eb))},D=
function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:P==null?void 0:P()}};
return _.F(_.w,{cond:N,then:function(){return _.F(RM5,{icon:y,active:u,className:v,style:Q,dataSelected:M,dataDisabled:K,role:h,themeOverride:b,ariaHidden:T,ariaExpanded:x,ariaLabel:B,tabindex:l,id:Z,iconFilter:P})},
else:function(){return _.F(_.w,{cond:E,then:function(z){return _.F("span",{class:_.Oy("ytIconWrapperHost",v),role:h,"aria-label":B,"aria-hidden":T,tabindex:function(){return isNaN(Number(l==null?void 0:l()))?void 0:Number(l==null?void 0:l())},
id:Z,style:Q},_.F(pIS,{data:z,options:D}))}})}})},"ve"):RM5;var uHc=function(R){var y=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];DkW();_.CJ("ytglobal.ytUtilActivityCallback_",function(){_.h_(R,"yt-user-activity")});
new u_(function(){return y.JSC$16981_onMouseMove});
document.addEventListener("scroll",function(){return y.onScroll});
window.addEventListener("resize",function(){return y.onResize})},vmL=function(R,y,u){y in R.eventJobIds||(u=_.EJ().addLowPriorityJob(function(){_.v3();
delete R.eventJobIds[y]},u),R.eventJobIds[y]=u)};
uHc.prototype.onScroll=function(R){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):R.target===document&&vmL(this,"scroll",200)};
uHc.prototype.onResize=function(){vmL(this,"resize",200)};
uHc.prototype.JSC$16981_onMouseMove=function(){vmL(this,"mousemove",100)};
_.JO=function(R){R.scrollEventsToIgnore+=1;R.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){R.scrollEventsToIgnore--},500))};var QwG=function(R){this.element=R;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
QwG.prototype.showFeedbackDialog=function(R,y,u,v){var Q=jwc();if(!Q)return!1;var M=SaT();M.productId=Q;y&&(M.flow="submit",M.report={description:y});u&&(jwc()==="59"?M.callback=_.A7(function(){_.P3("userFeedbackEvent",{});u()}):M.callback=_.A7(u));
M.bucket=v||_.EB("GOOGLE_FEEDBACK_BUCKET","Other");MrG(M);R=JyG(this,"GFEEDBACK",R);try{_.qOG(M,R)}catch(K){return _.mq(K),!1}return!0};
QwG.prototype.showHelpDialog=function(R,y,u){var v=this,Q=jwc();if(!Q)return!1;var M={helpCenterPath:"/youtube",productData:JyG(this,"GUIDED_HELP",u)};MrG(M);var K=SaT();K.context=R||M.productData.context||"default";K.defaultHelpArticleId=y;K.enableSendFeedback=!0;(_.D6("gapi.load")||function(h,b){return b()})("client",function(){try{var h=Nhw(Q,M);
if(_.f("web_always_load_chat_support")&&!v.chatSupportLoaded)try{h.JSC$9945_loadChatSupport(K),v.chatSupportLoaded=!0}catch(b){}h.startHelp(K)}catch(b){_.mq(b)}})};
var jwc=function(){var R=_.EB("GOOGLE_FEEDBACK_PRODUCT_ID");R||_.mq(Error("di"));return R},MrG=function(R){R&&(R.locale=_.f("kevlar_help_use_locale")?_.EB("INNERTUBE_CONTEXT_HL","en"):_.EB("HTML_LANG","en"))},JyG=function(R,y,u){var v=R.productData;
delete v.origin;v.device=_.NU();var Q;a:{if(Q=document.createElement("canvas")){var M=Q.getContext("experimental-webgl",{stencil:!0});if(M){var K=M.getExtension("WEBGL_debug_renderer_info");if(K){Q=M.getParameter(K.UNMASKED_RENDERER_WEBGL);break a}}if(M=Q.getContext("webgl")){Q=M.getParameter(M.RENDERER);break a}}Q=null}v.gpu=Q;v.isSDC=!!_.EB("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(Q=_.EB("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.Ps.extend(v,Q);_.cC4(y,v);_.aST(v);(R=_.h_(R.element,"yt-get-autonav-pause-debug-state"))&&
R.length&&(v.autonav_pause_state=R[0]);R=_.xh();v.browser_resolution=R.width+"\u00d7"+R.height+"@"+(window.devicePixelRatio||1)+"x";u&&_.Ps.extend(v,u);return v};
QwG.prototype.resetProductData=function(){this.productData={}};var VrV=function(R){this.feedbackManager=new QwG(R)};
VrV.prototype.showFeedbackDialog=function(R,y,u,v){return this.feedbackManager.showFeedbackDialog(R,y,u,v)};
VrV.prototype.showHelpDialog=function(R,y,u){return this.feedbackManager.showHelpDialog(R,y,u)};var iMT=function(){this.baseUrl="";this.aTag=document.createElement("a")},AoY=function(R,y,u){u=u===void 0?{}:u;
u.pbj||(u.pbj=1);u=_.ZAU(y,u);R.baseUrl&&u&&!_.sB(u)[1]&&!_.z7(u)&&(y=R.baseUrl,Jz(y,"/")&&(y=y.slice(0,-1)),_.jv(u,"/")&&(u=u.slice(1)),u=y+"/"+u);Aq(R.aTag,Uo(u||""));return R.aTag.href};
iMT.prototype.fetchData=function(R){return _.XPz(R)};
iMT.prototype.postData=function(R,y){var u={method:"POST"};if(y){for(var v=_.V(Object.keys(y)),Q=v.next();!Q.done;Q=v.next()){Q=Q.value;var M=y[Q];_.Sv(M)&&(y[Q]=JSON.stringify(M))}u.postParams=y}return _.XPz(R,u)};
_.D3w=function(R,y,u,v,Q){R=AoY(R,y,u);if(!R)throw v=Error("ei"),Object.assign(v,{params:y}),v;return _.XPz(R,Q,v)};
iMT.prototype.requestDataForServiceEndpoint=function(R,y){if(_.e(R,_.r94))return this.fetchData("/getAccountSwitcherEndpoint");y=y||{};var u=_.e(R,V2T);u?y.se=u.base64EncodedServiceEndpoint:y.sej=JSON.stringify(R);(u=_.$I())&&_.f("enable_service_ajax_csn")&&(y.csn=u);y.theme=_.EZ();_.e(R,nHO)&&_.EB("DELEGATION_CONTEXT")&&(y.delegation_context=JSON.stringify(_.EB("DELEGATION_CONTEXT")));u=null;for(var v in R)if(Jz(v,"Endpoint")||Jz(v,"Command")){u=v;break}if(!u){var Q=Error("fi");Object.assign(Q,{params:R});
_.e8P(Q,"WARNING");return new _.F4(function(K,h){h(Q)})}v={name:u};
var M;(u=(M=_.e(R,_.xF))==null?void 0:M.signal)&&(v.signal=u);(M=_.SS(window.location.href))&&M.internalcountrycode&&(v.internalcountrycode=M.internalcountrycode);M="/service_ajax";_.f("debug_forward_web_query_parameters")&&(M=_.XoT(M,window.location.search));M=_.LG(M,v);R.clickTrackingParams&&_.uh(M,{itct:R.clickTrackingParams});return this.postData(M,y)};_.KMi=new _.Jx("GFEEDBACK_TOKEN");var ID5;var hMG;var bMg;var FMi;var wd=function(){var R=_.W.apply(this,arguments)||this;R.compact=!1;return R};
_.O(wd,_.W);wd.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
wd.prototype.computeHasIcon_=function(R){return!!R};
wd.prototype.isSignInIcon_=function(R){return R=="yt-icons:prompted_sign_in"};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],wd.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],wd.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.Cc5.YtConditionalRendererBehavior),_.p("design:type",Object)],wd.prototype,"ytConditionalRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],wd.prototype,"data",void 0);
_.A([_.r({computed:"computeIcon_(data.icon)"}),_.p("design:type",Object)],wd.prototype,"icon_",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.p("design:type",Boolean)],wd.prototype,"hasIcon_",void 0);_.A([_.r({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.p("design:type",Boolean)],wd.prototype,"signInIcon_",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],wd.prototype,"compact",void 0);
_.A([_.pu({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],wd);
_.m(wd,"yt-player-error-message-renderer",function(){if(FMi===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;bMg===void 0&&(bMg=document.createElement("template"));var v=bMg;u.call(y,v.content.cloneNode(!0),R.content.firstChild);FMi=R}R=FMi;return R},{mode:2});var wUc;var Ntc;var N0=function(){return _.W.apply(this,arguments)||this};
_.O(N0,_.W);N0.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
N0.prototype.computeIcon_=function(R){return R?"yt-icons:"+R.iconType.toLowerCase():"error_outline"};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],N0.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],N0.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],N0.prototype,"data",void 0);_.A([_.r({computed:"computeIcon_(data.icon)"}),_.p("design:type",Object)],N0.prototype,"icon_",void 0);_.A([_.pu({is:"yt-player-kav-renderer",disableElementRegistration:!0})],N0);
_.m(N0,"yt-player-kav-renderer",function(){if(Ntc===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;wUc===void 0&&(wUc=document.createElement("template"));var v=wUc;u.call(y,v.content.cloneNode(!0),R.content.firstChild);Ntc=R}R=Ntc;return R},{mode:2});var soT=_.RE(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.h6(_.Jd(function(R){var y=_.sh("div"),u=_.V(_.In(0,void 0,"yt0wE")),v=u.next().value,Q=u.next().value;u=_.V(_.In(null,void 0,"CnFp5"));var M=u.next().value,K=u.next().value;_.rB(function(){zrU(y.value,Q,K);y.value.scrollIntoView()});
u=gpP.bind(null,R.data,v);yn("resize",function(){var h=M();if(v()===1&&h!==null){var b;(b=window.grecaptcha)==null||b.reset(h)}});
return _.F("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.F("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.F("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var h,b;return(h=R.data().accessibility)==null?void 0:(b=h.accessibilityData)==null?void 0:b.label}),_.F(_.QM,{text:u,
className:_.Oy("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.F("div",{el:y,class:"ytwPlayerCaptchaViewModelGridItem"})))},"we"),"yt-player-captcha-view-model",{props:{data:_.IC}});var C9O=!1;_.TtL=_.Jd(function(R){var y=R.data;return _.F("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.F(_.w,{cond:function(){return y().icon},
then:function(u){return _.F("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.F(_.MR,{data:u,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.F(_.w,{cond:function(){return y().title},
then:function(u){return _.F("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.F(_.QM,{text:u}))}}),_.F(_.w,{cond:function(){return y().description},
then:function(u){return _.F("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.F(_.QM,{text:u}))}}),_.F(_.mk,{data:function(){return y().primaryButton}},{buttonViewModel:function(u){return _.F(_.fQ,{data:u.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.F(_.mk,{data:function(){return y().secondaryButton}},{buttonViewModel:function(u){return _.F(_.fQ,{data:u.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"xe");
_.TtL.idomCompat=!0;var omc=_.Jd(function(R){var y=R.data;_.g$();return _.F("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.F("div",{class:"player-interstitial-renderer-wiz__scrim"},_.F(_.mk,{data:function(){return y().content}},{interstitialViewModel:_.TtL})))},"ye");
omc.idomCompat=!0;_.h6(omc,"yt-player-interstitial-renderer",{props:{data:_.vR}});var Tj=function(){var R=_.W.apply(this,arguments)||this;R.noBackground=!1;R.compact=!1;R.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return R};
_.O(Tj,_.W);Tj.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"}}}};
Tj.prototype.onUpdatePlayerErrorMessageCommand_=function(R){if(_.e(R,elc)){var y;if(R=(y=_.e(R,elc))==null?void 0:y.newPlayerErrorMessageRenderer)this.data=R}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Tj.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Tj.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Tj.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Tj.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],Tj.prototype,"status",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Tj.prototype,"noBackground",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Tj.prototype,"compact",void 0);_.A([_.pu({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],Tj);
var x_b=_.Nk()(Tj,"yt-playability-error-supported-renderers",function(){if(hMG===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;ID5===void 0&&(ID5=document.createElement("template"));var v=ID5;u.call(y,v.content.cloneNode(!0),R.content.firstChild);hMG=R}R=hMG;return R},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var RmG=void 0,utS=void 0;var jT4=new y25;var BtG=function(R){this.store=R;this.wB8=new _.Qn5},UIW=function(R,y,u){var v,Q;
if(!(Q=((v=y.playabilityStatus)==null?void 0:v.status)!=="OK")){R=R.store;var M;Q=y.offlineState&&((M=y.videoDetails)==null?0:M.videoId)?_.f("enable_pl_r_c_cd")?Ycc(R.getState().entities,y.videoDetails.videoId):!!fXS(R.getState().entities,y.videoDetails.videoId):!1}if(Q)return!0;Q=KyE(y);if(Q===1){if(_.f("ab_v_vid_sig")){var K,h=(K=y.videoDetails)==null?void 0:K.videoId;if(!h||!u||h!==u){var b;y=new _.OL("282054944_vid",{i4Y:u,vuR:(b=y.videoDetails)==null?void 0:b.videoId});_.dI(y)}}return!0}PqU=
0;var N,T;b=(h=y.auxiliaryUi)==null?void 0:(N=h.messageRenderers)==null?void 0:(T=N.bkaEnforcementMessageViewModel)==null?void 0:T.displayType;if(Q!==3&&(b==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||b==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;b={reason:_.Mq(_.fo("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.f("ks_something_wrong_learn_more")?eKT("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.Mq(_.fo("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:_.Mq("282054944")};fDi(y,{playerErrorMessageRenderer:b});return!1},krW=function(R,y){if(YIc(y)){_.l7(1,!0);
var u=(u=YIc(y))&&_.y$G()?u:void 0;u?(fDi(y,{enforcementMessageViewModel:u}),R.wB8.increment("IN_PLAYER"),_.l7(5)):(R.wB8.increment("SKIP_DISPLAY"),_.l7(2))}},fDi=function(R,y){R.playabilityStatus=Object.assign({},R.playabilityStatus,{status:"ERROR",
errorScreen:y});R.videoDetails=void 0};
BtG.prototype.handleResponse=function(R,y){if(R.playabilityStatus){var u,v,Q,M=(y==null?void 0:(u=y.innerTubeRequest)==null?void 0:u.videoId)||(y==null?void 0:(v=y.innerTubeRequest)==null?void 0:(Q=v.playerRequest)==null?void 0:Q.videoId);UIW(this,R,M)&&krW(this,R)}};
BtG[Mn]=[he];var Wwc=new _.Jx("ADBLOCK_DETECTION_SERVICE_TOKEN");var u1=function(R){this.vNL=R};
u1.prototype.bindInnertubeChallengeFetcher=function(R){this.vNL.bicf(R)};
u1.prototype.registerChallengeFetchedCallback=function(R){this.vNL.bcr(R)};
u1.prototype.getLatestChallengeResponse=function(){return this.vNL.blc()};var eMg;eMg=_.RE(["https://static.doubleclick.net/instream/ad_status.js"]);_.lDT=_.M1(eMg);var nm5;_.o7=function(R,y,u){var v=this;this.network=R;this.options=y;this.networkStatusManager=u;this.yq=null;if(y.useBotguardEverywhere){var Q=new _.xv;this.yq=Q.promise;_.uO.ytAtRC&&_.Wm(_.WG,function(){var M,K;return _.I(function(h){if(h.nextAddress==1){if(!_.uO.ytAtRC)return h.return();M=OMc(null);return h.yield(v.mO(M),2)}K=h.yieldResult;_.uO.ytAtRC&&_.uO.ytAtRC(JSON.stringify(K));_.f$(h)})});
wBO().then(function(M){var K,h,b,N;return _.I(function(T){if(T.nextAddress==1)return M.bindInnertubeChallengeFetcher(function(x){return v.mO(OMc(x))}),T.yield(G7v(),2);
K=T.yieldResult;h=M.getLatestChallengeResponse();b=h.challenge;if(!b)throw Error("gi");N={challenge:b,fU:yz(b),vm:K,bgChallenge:new CX};Q.resolve(N);M.registerChallengeFetchedCallback(function(x){x=x.challenge;if(!x)throw Error("hi");x={challenge:x,fU:yz(x),vm:K,bgChallenge:new CX};v.yq=Promise.resolve(x)});
_.f$(T)})})}else y.preload&&ZMc(this,new Promise(function(M){_.Oh(_.WG,function(){M(HMY(v))},0)}))};
nm5=function(R){var y={preload:!0,useBotguardEverywhere:!0},u=!1;if(typeof y==="boolean")var v={preload:y};else typeof y==="undefined"?v={preload:!0}:(v=y,u=!!y.iE3);y=u?void 0:new _.tv;_.o7.instance=new _.o7(R,v,y);return _.o7.instance};
_.o7.prototype.sHR=function(){var R=this;return _.I(function(y){return y.nextAddress==1?y.yield(Promise.race([R.yq,null]),2):y.return(!!y.yieldResult)})};
_.o7.prototype.zxb=function(R,y,u){var v=this,Q,M,K;return _.I(function(h){v.yq===null&&ZMc(v,HMY(v));Q=!1;M={};K=function(){var b,N,T;return _.I(function(x){switch(x.nextAddress){case 1:return x.yield(v.yq,2);case 2:b=x.yieldResult;M.challenge=b.challenge;if(!b.vm){"c1a"in b.fU&&(M.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");x.jumpTo(3);break}N=Object.assign({},{c:b.challenge,e:R},y);_.wY(x,4);Q=!0;return x.yield(b.vm.snapshot({j1:N}),6);case 6:(T=x.yieldResult)?M.webResponse=T:M.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.c5(x,3);break;case 4:_.B$(x),M.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(R==="ENGAGEMENT_TYPE_PLAYBACK"){var B=b.fU,l={};if(B.c6a){var Z=Number(_.EB("DCLKSTAT",0));l.reportingStatus=String(Number(B.c)^(isNaN(Z)?0:Z))}B.c6b&&(l.broadSpectrumDetectionResult=String(Number(B.c)^Number(_.EB("CATSTAT",0))));M.adblockReporting=l}return x.return(M)}})};
return h.return(Promise.race([K(),G68(u,function(){var b=Object.assign({},M);Q&&(b.error="ATTESTATION_ERROR_VM_TIMEOUT");return b})]))})};
var OMc=function(R){var y={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};R&&(y.interpreterHash=R);return y},HMY=function(R,y){y=y===void 0?0:y;
var u,v,Q,M,K,h,b,N,T,x,B,l;return _.I(function(Z){switch(Z.nextAddress){case 1:u=OMc(j_g().bYg);if(_.f("att_fet_ks"))return _.wY(Z,7),Z.yield(R.mO(u),9);_.wY(Z,4);return Z.yield(ryb(R,u),6);case 6:K=Z.yieldResult;Q=K.lAJ;M=K.wpS;v=K;_.c5(Z,3);break;case 4:return _.B$(Z),_.kT(Error("ii`"+y)),Pnw(R,864E5),Z.return({challenge:"",fU:{},vm:void 0,bgChallenge:void 0});case 9:v=Z.yieldResult;if(!v)throw Error("ji");if(!v.challenge)throw Error("ki");Q=v.challenge;M=yz(Q);if("c1a"in M&&(!v.bgChallenge||!v.bgChallenge.program))throw Error("li");
_.c5(Z,3);break;case 7:h=_.B$(Z);_.kT(h);y++;if(y>=5)return _.kT(Error("ii`"+y)),Pnw(R,864E5),Z.return({challenge:"",fU:{},vm:void 0,bgChallenge:void 0});b=1E3*Math.pow(2,y-1)+Math.random()*1E3;return Z.return(new Promise(function(P){_.Oh(_.WG,function(){P(HMY(R,y))},b)}));
case 3:N=FyU(M);Pnw(R,N*1E3);T=void 0;if(!("c1a"in M&&v.bgChallenge)){Z.jumpTo(10);break}x=b7U(v.bgChallenge);_.wY(Z,11);return Z.yield(JDg(j_g(),x),13);case 13:_.c5(Z,12);break;case 11:return B=_.B$(Z),_.kT(B),Z.return({challenge:Q,fU:M,vm:T,bgChallenge:x});case 12:return _.wY(Z,14),T=new _.A8({challenge:x,pKf:{vx:"aGIf"}}),Z.yield(T.zRl,16);case 16:_.c5(Z,10);break;case 14:l=_.B$(Z),_.kT(l),T=void 0;case 10:return Z.return({challenge:Q,fU:M,vm:T,bgChallenge:x})}})};
_.o7.prototype.mO=function(R){var y=this,u;return _.I(function(v){u=y.networkStatusManager;if(!u||u.isNetworkAvailable())return v.return(y.network.mO(R));_.mm("att_pna",void 0,"attestation_challenge_fetch");return v.return(new Promise(function(Q){u.listenOnce("publicytnetworkstatus-online",function(){y.network.mO(R).then(Q)})}))})};
var WMK=function(R){if(!R)throw Error("ji");if(!R.challenge)throw Error("ki");var y=R.challenge,u=yz(y);if("c1a"in u&&(!R.bgChallenge||!R.bgChallenge.program))throw Error("li");return Object.assign({},R,{lAJ:y,wpS:u})},ryb=function(R,y){var u,v,Q,M,K;
return _.I(function(h){switch(h.nextAddress){case 1:u=void 0,v=0,Q={};case 2:if(!(v<5)){h.jumpTo(4);break}if(!(v>0)){h.jumpTo(5);break}Q.jPn=1E3*Math.pow(2,v-1)+Math.random()*1E3;return h.yield(new Promise(function(b){return function(N){_.Oh(_.WG,function(){N(void 0)},b.jPn)}}(Q)),5);
case 5:return _.wY(h,7),h.yield(R.mO(y),9);case 9:return M=h.yieldResult,h.return(WMK(M));case 7:u=K=_.B$(h),K instanceof Error&&_.kT(K);case 8:v++;Q={jPn:void 0};h.jumpTo(2);break;case 4:throw u;}})},ZMc=function(R,y){R.yq=y},d_c=function(R){var y,u,v;
return _.I(function(Q){if(Q.nextAddress==1)return Q.yield(Promise.race([R.yq,null]),2);y=Q.yieldResult;var M=HMY(R);R.yq=M;(u=y)==null||(v=u.vm)==null||v.dispose();_.f$(Q)})},Pnw=function(R,y){var u=Date.now()+y,v=function(){var Q;
return _.I(function(M){Q=u-Date.now();return Q<1E3?M.yield(d_c(R),0):(_.Oh(_.WG,v,Math.min(Q,6E4)),M.jumpTo(0))})};
v()},G68=function(R,y){return new Promise(function(u){_.Oh(_.WG,function(){u(y())},R)})};var U_T=function(){};
U_T.prototype.processContext=function(R){var y=_.o7.instance;if(!y)return _.yA();var u=fUT(R);return u?new Rm(y.zxb(u,oyU(R),500).then(function(v){var Q;(R==null?0:(Q=R.innerTubeRequest)==null?0:Q.context)||(R.innerTubeRequest.context={});Q=R.innerTubeRequest.context;Q.request||(Q.request={});Q.request.attestationResponseData=v})):_.yA()};var k6i=function(R){this.innertubeTransportService=R};
k6i.prototype.mO=function(R){_.mm("att_fsr",void 0,"attestation_challenge_fetch");return _.am(this.innertubeTransportService,R,_.jq(_.lY5)).then(function(y){_.mm("att_frr",void 0,"attestation_challenge_fetch");return y})};_.EmT=function(R){this.innertubeTransportService=R};var $_c=new _.Jx("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var q3K=function(){},m_L=function(R,y,u,v,Q){var M=_.EB("YPC_MB_URL");
_.QD4(M).then(function(){XUV(M,R,y,u,v,Q)})},XUV=function(R,y,u,v,Q,M){try{var K=payments.business.integration,h=payments.business.integration.Style.create().withMaterialDesignStyle(),b=K.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.f("enable_window_constrained_buy_flow_dialog")&&(b=b.usingPopupStyle("windowConstrained"));M&&(b=b.usingCloseCallback(M));var N=u?u:_.EB("YPC_GB_LANGUAGE"),T=_.EB("SESSION_INDEX");K.bootstrap.fromPaymentsUrl(R);K.bootstrap.asMashupMode(b).usingGaiaIndex(T).usingLocale(N).usingStyle(h).usingDefaultActivityStatusChangeHandler().inStandaloneContext(K.standaloneContextAuthId.forGaia()).purchaseManager(y,function(x){v&&v(x)}).load(void 0,Q)}catch(x){throw Q&&Q(x),_.dI(x),x;
}};var AyK=new _.Jx("PURCHASE_MANAGER_TOKEN");var D_i=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(y){R.videos=y},
getRecommendedVideos:function(){return R.recommendedVideos},
setRecommendedVideos:function(y){R.recommendedVideos=y}}};
D_i.prototype.addVideos=function(R){R&&(this.videos=R.filter(function(y){return!!_.lUE(y)}).map(function(y){var u=_.lUE(y);
a:{var v;if(y.playlistVideoRenderer&&((v=y.playlistVideoRenderer)==null?0:v.voteSortTiebreaker))var Q=y.playlistVideoRenderer.voteSortTiebreaker;else{if(_.e(y,Qz)){var M;if(v=(Q=_.e(y,Qz))==null?void 0:(M=Q.playlistItemData)==null?void 0:M.voteSortTiebreaker){Q=v;break a}}Q=""}}return{itemId:u,videoId:_.H7G(y),voteCount:_.nyP(y),voteSortTiebreaker:Q}}),this.continuationsPresent=!!_.e(R[R.length-1],_.Je))};
var pUc=function(R,y){return R.videos.findIndex(function(u){return u.itemId===y})},trb=function(R,y){return R.recommendedVideos.findIndex(function(u){return u.itemId===y})},cyK=function(R){R={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:R}}}}};_.ua().resolve(_.jX).resolveCommand(R)};var aDg=function(){D_i.apply(this,arguments)};
_.O(aDg,D_i);
var nbT=function(R,y,u,v){if(!R.parentElem)throw Error("qi");var Q=pUc(R,y);Q===-1&&(Q=trb(R,y),Q=Q!==-1?Q+R.videos.length:-1);if(Q===-1)throw Error("ri");var M=Q>=R.videos.length?R.recommendedVideos[Q-R.videos.length]:R.videos[Q];M.voteCount=u;M.voteSortTiebreaker=Date.now().toString();Q>=R.videos.length?R.recommendedVideos.splice(Q-R.videos.length,1):R.videos.splice(Q,1);var K=R.videos;for(var h=0,b=K.length-1;h<=b;){var N=Math.floor((h+b)/2);if(K[N].voteCount<M.voteCount)b=N-1;else if(K[N].voteCount>M.voteCount)h=
N+1;else{a:{var T=M.voteSortTiebreaker;var x=K[N].voteSortTiebreaker;if(T.length!==x.length)T=T.length>x.length;else{for(var B=0;B<T.length;B++){var l=T.charCodeAt(B),Z=x.charCodeAt(B);if(l>Z){T=!0;break a}if(l<Z)break}T=!1}}T?b=N-1:h=N+1}}K=h;if(K===-1)throw Error("si");R.videos.splice(K,0,M);Q!==K&&S3w(R,Q,K,y,u,v)},S3w=function(R,y,u,v,Q,M){var K,h=(K=R.parentElem)==null?void 0:K.children,b=Math.min(y,u),N=Math.max(y,u);
if(h)for(K=b;K<=N;K++)h[K].style.viewTransitionName="item-"+String(K);document.startViewTransition(function(){if(R.parentElem){var T=R.parentElem.children;if(!(!T||y<0||y>=T.length||u<0||u>=T.length)){var x=T[y];if(x){x.remove();R.showRefreshPill=u>=R.videos.length-1&&R.continuationsPresent;if(!R.showRefreshPill){T=T[u]||null;var B;(B=R.parentElem)==null||B.insertBefore(x,T)}_.Ko(R.parentElem,"yt-update-video-data-voting-animation",{toIdx:u,itemId:v,newVoteCount:Q,voteStatus:M,hideItem:R.showRefreshPill})}}}}).finished.then(function(){if(h)for(var T=
b;T<=N;T++)h[T].style.viewTransitionName="";
if(R.showRefreshPill)cyK(_.fo("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var x;if(x=T=(x=R.parentElem)==null?void 0:x.children[u])x=T.getBoundingClientRect(),T=x.bottom,x=!(x.top>=0&&T<=R.clientHeight);x&&(x=_.ei(y>u?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(y-u)),cyK(x))}})};var swG=function(R,y){var u=this;R?this.innertubeTransportServicePromise=Promise.resolve(R):y&&(this.innertubeTransportServicePromise=y(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new uf(3E3,function(v){return Y3b(u,v)},0);
this.validateMiniAppVideoIdRateLimiter=new uf(3E3,function(v){return LMi(u,v)},1)},n_c=function(R,y){R.JSC$17093_miniAppId=y;
R.reportMiniAppValueRateLimiter=new uf(3E3,function(u){return Y3b(R,u)},0);
R.validateMiniAppVideoIdRateLimiter=new uf(3E3,function(u){return LMi(R,u)},1)},rQg=function(R,y){var u;
return _.I(function(v){if(v.nextAddress==1)return v.yield(R.reportMiniAppValueRateLimiter.call(y),2);u=v.yieldResult;return v.return([u,y])})},Y3b=function(R,y){var u,v,Q,M,K,h,b;
return _.I(function(N){switch(N.nextAddress){case 1:return N.yield(R.innertubeTransportServicePromise,2);case 2:return u=N.yieldResult,v=_.jq(rO5),Q=Date.now(),M={externalPostId:R.JSC$17093_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(Q/1E3),nanos:Math.round(Q%1E3*1E6)},intValue:""+y}},_.wY(N,3),N.yield(_.am(u,M,v),5);case 5:K=N.yieldResult;_.c5(N,4);break;case 3:throw h=_.B$(N),h;case 4:if(K){if("error"in K&&K.error)throw K.error;if(K.errorMetadata)throw Error("ti`"+
K.errorMetadata.status);if(b=K.userStatResult)return N.return(b);throw Error("ui");}throw Error("vi");}})},WT5=function(R){var y,u,v,Q,M;
_.I(function(K){switch(K.nextAddress){case 1:return K.yield(R.innertubeTransportServicePromise,2);case 2:return y=K.yieldResult,u=_.jq(rO5),v={externalPostId:R.JSC$17093_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.wY(K,3),K.yield(_.am(y,v,u),5);case 5:Q=K.yieldResult;_.c5(K,4);break;case 3:throw M=_.B$(K),M;case 4:if(Q==null)throw Error("vi");if("error"in Q&&Q.error)throw Q.error;if(Q.errorMetadata)throw Error("ti`"+Q.errorMetadata.status);_.f$(K)}})};
swG.prototype.flush=function(){var R=this;return _.I(function(y){return y.nextAddress==1?y.yield(R.reportMiniAppValueRateLimiter.flush(),2):y.yield(R.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var Pcg=function(R,y){return _.I(function(u){return u.nextAddress==1?u.yield(R.validateMiniAppVideoIdRateLimiter.call(y),2):u.return(u.yieldResult)})},LMi=function(R,y){var u,v,Q,M,K,h;
return _.I(function(b){switch(b.nextAddress){case 1:return b.yield(R.innertubeTransportServicePromise,2);case 2:return u=b.yieldResult,v=_.jq(fN8),Q={videoId:y},_.wY(b,3),b.yield(_.am(u,Q,v),5);case 5:M=b.yieldResult;_.c5(b,4);break;case 3:throw K=_.B$(b),K;case 4:if(M){if("error"in M&&M.error)throw M.error;if(M.errorMetadata)throw Error("ti`"+M.errorMetadata.status);if(h=M.playabilityStatus)return b.return(h.status);throw Error("wi");}throw Error("vi");}})};
swG[Mn]=[_.yN(_.Dj),_.yN(C2w)];var zM8=function(){this.clientData=new Map};
zM8.prototype.getData=function(R){return this.clientData.get(R)};var gm8=function(R){this.store=R};
gm8.prototype.handleResponse=function(R){(R=_.e(R.frameworkUpdates,jo))&&_.e6(R,this.store)};
gm8[Mn]=[_.S5];var CnG=new _.Jx("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var RTp={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],
play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,
1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,
1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var yza=new _.Jx("ICON_SET_TOKEN"),uUV=new _.Jx("ICON_URL_PROVIDER_TOKEN"),vSZ=new _.Jx("PREFETCH_ICONS_TOKEN"),QLI=new _.Jx("ICON_MAP_FN_TOKEN");var xe={},jL8=(xe.ACCESS_TIME="clock",xe.ACCOUNT_BOX="person_account",xe.ACCOUNT_BOX_CAIRO="person_account_cairo",xe.ACCOUNT_CIRCLE="person_circle",xe.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",xe.ACCOUNT_LINKED="account_link_success",xe.ACCOUNT_UNLINKED="account_link",xe.ADD_FRIEND="people",xe.ADD_MODERATOR="shield_add",xe.ADD_TO_LIBRARY="bookmark",xe.ADD_TO_PLAYLIST="add",xe.ADD_TO_QUEUE_TAIL="list_queue",xe.ADD_TO_REMOTE_QUEUE="list_music",xe.ADD_TO_WATCH_LATER="clock",xe.ADD_VIDEO_LINK="film_strip_add",
xe.ALERT_WARN_RED="alert_triangle",xe.ARROW_BACK="arrow_left",xe.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",xe.ARROW_DROP_DOWN="chevron_down",xe.ARROW_DROP_UP="chevron_up",xe.ARROW_FORWARD="arrow_right",xe.AUDIOTRACK="audio",xe.AUTO_AWESOME="sparkle",xe.AVATAR_ANONYMOUS="person_circle",xe.AVATAR_LOGGED_OUT="person_circle",xe.BACK="arrow_left",xe.BAR_CHART="bar_graph",xe.BLOCK="slash_circle_left",xe.BLOCK_USER="slash_circle_left",xe.BOOKMARK_BORDER="bookmark",xe.BREAKING_NEWS_ALT_1="article_alert",
xe.BROADCAST_CAIRO="podcast_cairo",xe.BUG_REPORT="bug",xe.CAMERA_ALT="camera",xe.CAMPAIGN="megaphone",xe.CANCEL="x_circle",xe.CAPTIONS="closed_caption",xe.CAST_OUTLINE="chromecast",xe.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",xe.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",xe.CHAT="message_bubble_left",xe.CHAT_BUBBLE="message_bubble_empty",xe.CHAT_SPARK="spark_message_bubble_left",xe.CHECK_BOX_OUTLINE_BLANK="box_empty",xe.CHECK_CIRCLE_OUTLINE="check_circle",xe.CHECK_CIRCLE_THICK="check_circle",xe.CLARIFY=
"article_clarify",xe.CLOSED_CAPTION_SELECTED="closed_caption",xe.CLOSE="x_mark",xe.CLOUD_UPLOAD="cloud_arrow_up",xe.COLLAPSE="chevron_up",xe.COLLAPSE_CAIRO="chevron_up_cairo",xe.COLLECTION="layers",xe.COLOR_LENS="palette",xe.COMMENT="message_bubble_right",xe.CONSENT_SHIELD="person_shield",xe.CONTENT_CUT="scissors",xe.CONTENT_CUT_CAIRO="scissors_cairo",xe.COURSE=_.f("web_enable_course_icon_update")?"creator_academy":"lightbulb",xe.COURSE_CAIRO=_.f("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",xe.CREATION_LIVE="radar_live",xe.CREATION_POST="box_pencil",xe.CREATION_UPLOAD="my_videos",xe.CREATION_UPLOAD_RED="upload",xe.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",xe.CREATOR_STUDIO="youtube_studio",xe.DASHBOARD="grid_asymmetrical",xe.DELETE="trash_can",xe.DELETE_SWEEP="trash_can",xe.DESKTOP="laptop",xe.DISLIKE="thumb_down",xe.DISLIKE_SELECTED="thumb_down",xe.DISMISSAL="x_mark",xe.DISMISS_QUEUE="list_remove",xe.DONE_ALL="check_double",xe.DOWN_ARROW="arrow_down",xe.DO_NOT_DISTURB=
"slash_circle_left",xe.DRAFT="paper_corner_folded",xe.DRAG_HANDLE="bars_2",xe.EDIT="pencil",xe.EMOJI="face_very_happy",xe.EMOJI_FLAGS="flag",xe.EMOJI_OBJECTS="lightbulb",xe.EMOJI_PEOPLE="face_very_happy",xe.EMOJI_RECENT="clock",xe.EMPTY_HEART="heart",xe.EMPTY_LIKE="thumb_up",xe.ERROR_BLACK="alert_circle",xe.ERROR_OUTLINE="alert_circle",xe.EXIT_APP="arrow_in",xe.EXIT_TO_APP="arrow_in",xe.EXPAND="chevron_down",xe.EXPAND_ALL="chevron_expand",xe.EXPAND_CAIRO="chevron_down_cairo",xe.EXPAND_LESS="chevron_up",
xe.EXPAND_MORE="chevron_down",xe.EXPLORE="compass",xe.EXPLORE_DESTINATION="compass",xe.EXTERNAL_LINK="open_new",xe.FAB_UPLOAD="upload",xe.FACE_HAPPY_OUTLINE="face_happy",xe.FACT_CHECK="article_check",xe.FASHION_LOGO="fashion",xe.FASHION_LOGO_CAIRO="fashion_cairo",xe.FAVORITE="heart",xe.FEEDBACK="message_bubble_alert",xe.FEEDBACK_CAIRO="message_bubble_alert_cairo",xe.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",xe.FILL_ARROW_SOLID_UP_16="arrow_solid_up",xe.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
xe.FILTER="menu_filter",xe.FIRST_PAGE="chevron_first",xe.FLAG="flag",xe.FULL_HEART="heart",xe.GAME_CONSOLE_DPAD="game_console_dpad",xe.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",xe.GAMING_LOGO="gaming",xe.GAMING_LOGO_CAIRO="gaming_cairo",xe.GO_TO_PAGE="arrow_right",xe.GROUPS="people_group",xe.HAPPY="face_happy",xe.HEALTH_AND_SAFETY="shield_plus",xe.HELP="question_circle",xe.HELP_CAIRO="question_circle_cairo",xe.HELP_OUTLINE="question_circle",xe.HIDE="slash_circle_left",xe.IMAGE="image",
xe.INFINITY_ICON="infinity",xe.INFO="info_circle",xe.INFO_OUTLINE="info_circle",xe.INSERT_CHART="bar_graph_box_vertical",xe.INSERT_CHART_OUTLINED="bar_graph_box_vertical",xe.INSERT_PHOTO="image",xe.KEEP="pin",xe.KEEP_OFF="pin_off",xe.KEYBOARD="keyboard",xe.KEYBOARD_ARROW_DOWN="chevron_down",xe.KEYBOARD_ARROW_UP="chevron_up",xe.KIDS_BLOCK="slash_circle_left",xe.LANGUAGE="globe",xe.LAST_PAGE="chevron_last",xe.LAUNCH="open_new",xe.LEARNING="lightbulb",xe.LEARNING_CAIRO="lightbulb_cairo",xe.LIBRARY_ADD=
WyG("library_add"),xe.LIBRARY_OUTLINE="library",xe.LIBRARY_REMOVE=WyG(),xe.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",xe.LIKES_PLAYLIST="thumb_up",xe.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",xe.LIKE="thumb_up",xe.LIKE_SELECTED="thumb_up",xe.LIVE="radar_live",xe.LIVE_CAIRO="radar_live_cairo",xe.LIVE_UNLISTED="link",xe.LOCATION_ON="location_point",xe.LOCATION_PIN="location_point",xe.LOOP="arrow_repeat",xe.LOOP_ACTIVE="arrow_repeat",xe.LOOP_ONE="arrow_repeat_1",xe.LOOP_ONE_ACTIVE="arrow_repeat_1",xe.MEH=
"face_meh",xe.MEMBERS_ONLY_MODE_OFF="message_bubble_left",xe.MESSAGE="message_bubble_left",xe.MICROPHONE_ON="mic",xe.MIX="youtube_mix",xe.MONETIZATION_ON="dollar_sign_circle",xe.MONEY_FILL="dollar_sign_container",xe.MONEY_FILL_JPY="yen_sign_container",xe.MONEY_HEART="dollar_sign_heart",xe.MORE_HORIZ="overflow_horizontal",xe.MORE_VERT="overflow_vertical",xe.MUSIC="audio",xe.MUSIC_CAIRO="audio_cairo",xe.MUSIC_NOTE_SYMBOL="music",xe.MUSIC_SHUFFLE="arrow_shuffle",xe.MY_CHANNEL="person_circle",xe.MY_LOCATION=
"location_point",xe.NEWS_STORY="news",xe.NEXT="chevron_right",xe.NOTIFICATIONS="bell",xe.NOTIFICATIONS_ACTIVE="bell_on",xe.NOTIFICATIONS_CAIRO="bell_cairo",xe.NOTIFICATIONS_DONE_CHECKMARK="check",xe.NOTIFICATIONS_INBOX="bell",xe.NOTIFICATIONS_NONE="bell",xe.NOTIFICATIONS_OFF="bell_off",xe.NOT_INTERESTED="slash_circle_left",xe.OFFICIAL_ARTIST_BADGE="audio",xe.OFFLINE_CLOUD="cloud_off",xe.OFFLINE_DOWNLOAD="download",xe.OFFLINE_DOWNLOAD_CAIRO="download_cairo",xe.OFFLINE_PAUSE="pause",xe.OPEN_IN_NEW=
"open_new",xe.OUTLINE_ADJUST="adjust",xe.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",xe.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",xe.OUTLINE_BAG="bag",xe.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",xe.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",xe.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",xe.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",xe.PAID="dollar_sign",xe.PAUSE_OUTLINED="pause",xe.PAYMENT="credit_card",xe.PERSON_RADAR_FILLED="person_radar",xe.PHONE_DOWNLOAD="mobile_download",
xe.PLAYABLES_LOGO="tic_tac_toe",xe.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",xe.PLAYLISTS="list_play_arrow",xe.PLAYLISTS_CAIRO="list_play_arrow_cairo",xe.PLAYLIST_ADD=WyG("list_add"),xe.PLAYLIST_ADD_CHECK="list_check",xe.PLAYLIST_PLAY="list_play_arrow",xe.PLAY_ALL="play_arrow",xe.PLAY_CIRCLE="play_arrow_circle",xe.PLAY_OUTLINED="play_arrow_circle",xe.PRIVACY_INFO="shield",xe.PRIVACY_PRIVATE="lock",xe.PRIVACY_PUBLIC="earth",xe.PRIVACY_UNLISTED="link",xe.PROMOTE="megaphone",xe.PURCHASES="price_tag",
xe.PURCHASE_SUPER_CHAT="super_chat",xe.PURCHASE_SUPER_STICKER="super_sticker",xe.QUESTION_ANSWER="message_bubble_question",xe.QUEUE_PLAY_LAST="list_queue_last",xe.QUEUE_PLAY_NEXT="list_play_arrow",xe.REMIX_FILLED="youtube_shorts_remix",xe.REMOVE="bar_circle",xe.REMOVE_CIRCLE="bar_circle",xe.REMOVE_CIRCLE_OUTLINE="bar_circle",xe.REMOVE_DONE="check_double_off",xe.REMOVE_FROM_HISTORY="bar_circle",xe.REMOVE_FROM_PLAYLIST="bar_circle",xe.REMOVE_MODERATOR="shield_off",xe.REPLAY="arrow_circle",xe.REPLAY_10=
"skip_back_10",xe.REPORT_PROBLEM="alert_triangle",xe.SAD="face_sad",xe.SAVE_PLAYLIST="bookmark",xe.SCHEDULE="clock",xe.SCHOOL="creator_academy",xe.SCREEN_FULLSCREEN="screen_full",xe.SEARCH_HISTORY="arrow_time",xe.SELL="price_tag",xe.SETTINGS="gear",xe.SETTINGS_CAIRO="gear_cairo",xe.SETTINGS_LIGHT="gear",xe.SETTINGS_MATERIAL="gear",xe.SHARE_ARROW="share",xe.SHIELD_WITH_AVATAR="person_shield",xe.SHOPPING_BAG="bag",xe.SHOPPING_BAG_CAIRO="bag_cairo",xe.SHOPPING_CART="cart",xe.SHORTS_COMMENT="youtube_shorts_message_bubble_right",
xe.SHORTS_DISLIKE="youtube_shorts_thumb_down",xe.SHORTS_LIKE="youtube_shorts_thumb_up",xe.SHORTS_SHARE="youtube_shorts_share",xe.SHUFFLE="arrow_shuffle",xe.SLOW_MODE_OFF="message_bubble_left",xe.SOCIAL="people",xe.SORT="menu_sort",xe.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",xe.SPEED_1X="1x",xe.SPEED_1_POINT_2X="1_point_2x",xe.SPEED_1_POINT_5X="1_point_5x",xe.SPEED_1_POINT_8X="1_point_8x",xe.SPEED_2X="2x",xe.SPEED_POINT_2X="point_2x",xe.SPEED_POINT_8X="point_8x",xe.SPONSORSHIP_STAR=_.f("web_sponsorship_star_icon_killswitch")?
"memberships":"star_circle",xe.STAFF_PICK="spotlight",xe.START_DVR="add",xe.STAR_BORDER="star",xe.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",xe.STICKER_EMOTICON="face_happy",xe.STOP_DVR="stop",xe.SUBSCRIBE="youtube_logo_icon",xe.SUBSCRIBE_PLUS="add_cairo",xe.SUBSCRIPTION_MANAGER="gear",xe.SUPERVISOR_ACCOUNT="people",xe.SUPER_CHAT_FOR_GOOD="hands_heart",xe.SWAP_HORIZ="arrow_swap_horizontal",xe.SWITCH_ACCOUNTS="person_account",xe.TAB_ACCOUNT="person",xe.TAB_ACTIVITY="bell",xe.TAB_BOOKMARK="bookmark",
xe.TAB_EXPLORE="compass",xe.TAB_HOME="home",xe.TAB_HOME_CAIRO="home_cairo",xe.TAB_INBOX="mail",xe.TAB_LIKED="thumb_up",xe.TAB_MUSIC_PREMIUM="youtube_music",xe.TAB_SHORTS="youtube_shorts",xe.TAB_SHORTS_CAIRO="youtube_shorts_cairo",xe.TAB_SUBSCRIPTIONS="subscriptions",xe.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",xe.TAB_TRENDING="fire",xe.TIMER="stopwatch",xe.TRAILER="youtube_originals",xe.TRENDING="fire",xe.TRENDING_CAIRO="fire_cairo",xe.TRENDING_UP="rating_up",xe.TROPHY="trophy",xe.TROPHY_CELEBRATIONS=
"fireworks",xe.TUNE="adjust",xe.UNBLOCK_USER="bar_circle",xe.UNLIMITED="youtube_logo_icon",xe.UNPLUGGED_LIVE_GUIDE="radar_live",xe.UNPLUGGED_SPORTS="eye_off",xe.UPLOADS="library",xe.UP_ARROW="arrow_up",xe.VERTICAL_ALIGN_BOTTOM="download",xe.VERY_HAPPY="face_very_happy",xe.VERY_SAD="face_very_sad",xe.VIDEOGAME_ASSET="gaming",xe.VIDEOS="play_arrow_circle",xe.VIDEO_CALL="video_camera_add",xe.VIDEO_LIBRARY_WHITE="library",xe.VIDEO_YOUTUBE="youtube_logo_icon",xe.VIEW_LIST="list_view",xe.VIEW_LIST_CAIRO=
"list_view_cairo",xe.VISIBILITY="eye",xe.VISIBILITY_OFF="eye_off",xe.VOLUME_MUTE="volume_off",xe.VOLUME_UP="volume_on",xe.WALLPAPER="image",xe.WARNING="alert_triangle",xe.WATCH_HISTORY="arrow_time",xe.WATCH_HISTORY_CAIRO="arrow_time_cairo",xe.WATCH_LATER="clock",xe.WATCH_LATER_CAIRO="clock_cairo",xe.WATCH_RELATED_MIX="youtube_mix",xe.WHAT_TO_WATCH="home",xe.YOUTUBE_MUSIC_MONOCHROME="youtube_music",xe.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",xe.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",
xe.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",xe.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",xe.YT_OUTLINE_MUSIC_24="music",xe);var Bp={},Mvg=(Bp.ACCESS_TIME="clock",Bp.ACCOUNT_BOX="person_square",Bp.ACCOUNT_BOX_CAIRO="person_square",Bp.ACCOUNT_CIRCLE="person_circle",Bp.ACCOUNT_CIRCLE_CAIRO="person_circle",Bp.ACCOUNT_LINKED="account_link",Bp.ACCOUNT_UNLINKED="account_link",Bp.ADD_CIRCLE="add_circle",Bp.ADD_FRIEND="person_child",Bp.ADD_MODERATOR="shield_add",Bp.ADD_TO_LIBRARY="bookmark",Bp.ADD_TO_PLAYLIST="add",Bp.ADD_TO_QUEUE_TAIL="queue",Bp.ADD_TO_REMOTE_QUEUE="playlist_audio",Bp.ADD_TO_WATCH_LATER="clock",Bp.ADD_VIDEO_LINK=
"film_strip_add",Bp.ADMIN_PANEL_SETTINGS="person_gear",Bp.ALERT_WARN_RED="alert_triangle",Bp.ALIGN_LEFT="text_align_left",Bp.ARROWS_ALERT="arrow_split_alert",Bp.ARROW_BACK="arrow_left",Bp.ARROW_CIRCLE="arrow_counterclockwise",Bp.ARROW_CIRCLE_PLAY="replay",Bp.ARROW_CIRCLE_RIGHT="arrow_clockwise",Bp.ARROW_DIAGONAL="arrow_up_left",Bp.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",Bp.ARROW_DROP_DOWN="triangle_down",Bp.ARROW_DROP_UP="triangle_up",Bp.ARROW_FORWARD="arrow_right",Bp.ARROW_PAUSE="pause_history",
Bp.ARROW_UNDO="undo",Bp.ARTICLE="text_page",Bp.ARTICLE_ALERT="text_page_alert",Bp.ARTICLE_CHECK="text_page_check",Bp.ARTICLE_CLARIFY="text_page_info",Bp.AUDIOTRACK="audio",Bp.AUDIO_BADGE="audio_badge",Bp.AUDIO_SURROUND="surround_sound",Bp.AUTO_AWESOME="sparkles",Bp.AVATAR_ANONYMOUS="person_circle",Bp.AVATAR_LOGGED_OUT="person_circle",Bp.BACK="arrow_left",Bp.BAR_CHART="chart_bar",Bp.BAR_CIRCLE="minus_circle",Bp.BAR_HORIZONTAL="minus",Bp.BLOCK="circle_slash",Bp.BLOCK_USER="circle_slash",Bp.BOOKMARK_BORDER=
"bookmark",Bp.BOX_OPEN_CHECK="quiz",Bp.BOX_PENCIL="square_pencil",Bp.BOX_STACK_3="square3_stack",Bp.BREAKING_NEWS_ALT_1="text_page_alert",Bp.BROADCAST="podcast",Bp.BROADCAST_CAIRO="podcast",Bp.BUG_REPORT="bug",Bp.CAMERA_ALT="camera",Bp.CAMPAIGN="megaphone",Bp.CANCEL="x_circle",Bp.CAPTIONS="closed_captions",Bp.CAST_ICON="chromecast",Bp.CAST_OUTLINE="chromecast",Bp.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Bp.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",Bp.CHAT="text_bubble",Bp.CHAT_BUBBLE="bubble",
Bp.CHECK_BOX="check_square",Bp.CHECK_BOX_OUTLINE_BLANK="square",Bp.CHECK_CIRCLE_FILLED="check_circle",Bp.CHECK_CIRCLE_OUTLINE="check_circle",Bp.CHECK_CIRCLE_THICK="check_circle",Bp.CHECK_DOUBLE="check_done",Bp.CHECK_DOUBLE_OFF="check_done_slash",Bp.CHEVRON_LEFT="chevron_left",Bp.CHEVRON_RIGHT="chevron_right",Bp.CHEVRON_RIGHT_CAIRO="chevron_right",Bp.CIRCLES_OVERLAP="account_link",Bp.CLAPPERBOARD_CAIRO="clapperboard",Bp.CLARIFY="text_page_info",Bp.CLOCK_ARROWS="clock_split",Bp.CLOCK_ARROWS_ALERT="clock_split_alert",
Bp.CLOSED_CAPTION="closed_captions",Bp.CLOSED_CAPTION_SELECTED="closed_captions",Bp.CLOSE="x",Bp.CLOUD_UPLOAD="cloud_arrow_up",Bp.COLLAPSE="chevron_up",Bp.COLLAPSE_CAIRO="chevron_up",Bp.COLLECTION="square3d_stack",Bp.COLOR_LENS="paint_palette",Bp.COMMENT="text_bubble",Bp.CONSENT_SHIELD="person_shield",Bp.CONTENT_CUT="scissors",Bp.CONTENT_CUT_CAIRO="scissors",Bp.COURSE="graduation_cap",Bp.COURSE_CAIRO="graduation_cap",Bp.CREATION_LIVE="live",Bp.CREATION_POST="square_pencil",Bp.CREATION_UPLOAD="video",
Bp.CREATION_UPLOAD_RED="upload",Bp.CREATOR_ACADEMY="graduation_cap",Bp.CREATOR_STUDIO="youtube_studio",Bp.DARK_THEME="theme",Bp.DELETE="trash_can",Bp.DELETE_SWEEP="trash_can",Bp.DESKTOP="laptop",Bp.DISLIKE="thumb_down",Bp.DISLIKE_SELECTED="thumb_down",Bp.DISMISSAL="x",Bp.DISMISS_QUEUE="playlist_x",Bp.DOGFOOD="pawprint",Bp.DOLLAR_SIGN="dollar_sign_circle",Bp.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",Bp.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",Bp.DOWN_ARROW="arrow_down",Bp.DO_NOT_DISTURB="circle_slash",
Bp.DRAFT="document",Bp.DRAG_HANDLE="equal",Bp.EARTH="globe",Bp.EDIT="pencil",Bp.EMOJI="face_very_happy",Bp.EMOJI_FLAGS="flag",Bp.EMOJI_OBJECTS="lightbulb",Bp.EMOJI_PEOPLE="face_very_happy",Bp.EMOJI_RECENT="clock",Bp.EMPTY_HEART="heart",Bp.EMPTY_LIKE="thumb_up",Bp.ERROR_BLACK="alert_circle",Bp.ERROR_OUTLINE="alert_circle",Bp.ERROR_WHITE="alert_circle",Bp.EXIT_APP="arrow_in",Bp.EXIT_TO_APP="arrow_in",Bp.EXPAND="chevron_down",Bp.EXPAND_ALL="chevron_expand",Bp.EXPAND_CAIRO="chevron_down",Bp.EXPAND_LESS=
"chevron_up",Bp.EXPAND_MORE="chevron_down",Bp.EXPLORE="compass",Bp.EXPLORE_DESTINATION="compass",Bp.EXTERNAL_LINK="arrow_up_right",Bp.EYE_OFF="eye_slash",Bp.FAB_UPLOAD="upload",Bp.FACE_HAPPY_OUTLINE="face_happy",Bp.FACE_MEH="face_neutral",Bp.FACT_CHECK="text_page_check",Bp.FASHION_LOGO="fashion",Bp.FASHION_LOGO_CAIRO="fashion",Bp.FAVORITE="thumb_up",Bp.FEEDBACK="alert_bubble",Bp.FEEDBACK_CAIRO="alert_bubble",Bp.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",Bp.FILL_ARROW_SOLID_UP_16="arrow_solid_up",
Bp.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",Bp.FLAG_CAIRO="flag",Bp.FLASH_OFF="flash_slash",Bp.FLASH_ON="flash",Bp.FULL_HEART="heart",Bp.GAMING_LOGO="gaming",Bp.GAMING_LOGO_CAIRO="gaming",Bp.GO_TO_PAGE="arrow_right",Bp.GROUPS="person3",Bp.HAND_SWIPE_LEFT="gesture_swipe_left",Bp.HAND_SWIPE_RIGHT="gesture_swipe_right",Bp.HAPPY="face_happy",Bp.HEALTH_AND_SAFETY="shield_health",Bp.HEART_BOX="heart_cube",Bp.HELP="help_circle",Bp.HELP_CAIRO="help_circle",Bp.HELP_OUTLINE="help_circle",Bp.HIDE="circle_slash",
Bp.INCOGNITO_CAIRO="incognito",Bp.INFINITY_ICON="infinity",Bp.INFO="info_circle",Bp.INFO_OUTLINE="info_circle",Bp.INSERT_CHART="chart_bar_square",Bp.INSERT_CHART_OUTLINED="chart_bar_square",Bp.INSERT_PHOTO="image",Bp.KEEP="pin",Bp.KEEP_OFF="pin_slash",Bp.KEYBOARD="keyboard",Bp.KEYBOARD_ARROW_DOWN="chevron_down",Bp.KEYBOARD_ARROW_UP="chevron_up",Bp.KIDS_BLOCK="circle_slash",Bp.LANGUAGE="globe",Bp.LAUNCH="arrow_up_right",Bp.LEARNING="lightbulb",Bp.LEARNING_CAIRO="lightbulb",Bp.LIBRARY_ADD="bookmark",
Bp.LIBRARY_IMAGE="image_stack",Bp.LIBRARY_MUSIC="audio_square_stack",Bp.LIBRARY_OUTLINE="play_square_stack",Bp.LIBRARY_REMOVE="bookmark",Bp.LIBRARY_SAVED="check_square_stack",Bp.LIKES_PLAYLIST="thumb_up",Bp.LIKES_PLAYLIST_CAIRO="thumb_up",Bp.LIKE="thumb_up",Bp.LIKE_SELECTED="thumb_up",Bp.LIST_QUEUE="queue",Bp.LIVE_CAIRO="live",Bp.LIVE_UNLISTED="link",Bp.LOCATION_ON="location_pin",Bp.LOCATION_PIN="location_pin",Bp.LOCATION_POINT="location_pin",Bp.LOOP="repeat",Bp.LOOP_ACTIVE="repeat",Bp.LOOP_ONE="repeat1",
Bp.LOOP_ONE_ACTIVE="repeat1",Bp.MEET="google_meet",Bp.MEH="face_neutral",Bp.MEMBERSHIPS="memberships",Bp.MEMBERS_ONLY_MODE_OFF="text_bubble",Bp.MENU_FILTER="filter",Bp.MESSAGE="text_bubble",Bp.MESSAGE_BUBBLE_GEAR="bubble_gear",Bp.MESSAGE_BUBBLE_LEFT="text_bubble",Bp.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",Bp.MESSAGE_BUBBLE_OVERLAP="bubble_stack",Bp.MESSAGE_BUBBLE_QUESTION="help_bubble",Bp.MICROPHONE_ON="mic",Bp.MONETIZATION_ON="dollar_sign_circle",Bp.MONEY_FILL="dollar_sign_rectangle",Bp.MONEY_FILL_JPY=
"yen_sign_rectangle",Bp.MONEY_HAND="dollar_sign_circle_hand",Bp.MONEY_HEART="dollar_sign_heart",Bp.MOON_Z="sleep_timer",Bp.MORE_HORIZ="overflow_horizontal",Bp.MORE_VERT="overflow_vertical",Bp.MUSIC="audio",Bp.MUSIC_CAIRO="audio",Bp.MUSIC_EXPLICIT_BADGE="explicit",Bp.MUSIC_NEW_RELEASE="audio_badge",Bp.MUSIC_NOTE_SYMBOL="audio",Bp.MUSIC_SCISSORS="audio_scissors",Bp.MUSIC_SHUFFLE="shuffle",Bp.MY_CHANNEL="person_circle",Bp.MY_LOCATION="location_pin",Bp.MY_VIDEOS="video",Bp.MY_VIDEOS_CAIRO="video",Bp.NEWS_CAIRO=
"news",Bp.NEWS_STORY="news",Bp.NEXT="chevron_right",Bp.NOTE_ADD="bubble_pencil",Bp.NOTIFICATIONS="bell",Bp.NOTIFICATIONS_ACTIVE="bell_waves",Bp.NOTIFICATIONS_CAIRO="bell",Bp.NOTIFICATIONS_DONE_CHECKMARK="check",Bp.NOTIFICATIONS_INBOX="bell",Bp.NOTIFICATIONS_NONE="bell",Bp.NOTIFICATIONS_OFF="bell_slash",Bp.NOT_INTERESTED="circle_slash",Bp.OFFICIAL_ARTIST_BADGE="audio",Bp.OFFLINE_CLOUD="cloud_slash",Bp.OFFLINE_DOWNLOAD="download",Bp.OFFLINE_DOWNLOAD_CAIRO="download",Bp.OFFLINE_PAUSE="pause",Bp.OPEN_IN_NEW=
"arrow_up_right",Bp.OUTLINE_ADJUST="adjust",Bp.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",Bp.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Bp.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",Bp.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",Bp.OUTLINE_BAG="bag",Bp.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",Bp.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Bp.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Bp.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",Bp.PAID="dollar_sign_circle",Bp.PAUSE_OUTLINED="pause",Bp.PAYMENT=
"credit_card",Bp.PEOPLE="person_child",Bp.PEOPLE_2="person2_rectangle",Bp.PEOPLE_GROUP="person3",Bp.PEOPLE_NOTE="bubble_asterisk",Bp.PERSON_2="person2",Bp.PERSON_ACCOUNT="person_square_stack",Bp.PERSON_MINUS="person_x",Bp.PERSON_MUSIC="person_audio",Bp.PERSON_RADAR="person_waves",Bp.PERSON_RADAR_FILLED="person_waves",Bp.PERSON_SETTING="person_gear",Bp.PHONE="phone",Bp.PHONE_DOWNLOAD="mobile_arrow_down",Bp.PICTURE_IN_PICTURE="picture_in_picture",Bp.PLAYABLES_LOGO="playables",Bp.PLAYABLES_LOGO_CAIRO=
"playables",Bp.PLAYLISTS="playlist",Bp.PLAYLISTS_CAIRO="playlist",Bp.PLAYLIST_ADD_CHECK="bookmark",Bp.PLAY_ALL="play",Bp.PLAY_ARROW="play",Bp.PLAY_ARROW_CIRCLE="play_circle",Bp.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",Bp.PLAY_CIRCLE="play_circle",Bp.PLAY_OUTLINED="play_circle",Bp.PODCAST_ADD="podcast_add",Bp.PODCAST_CHECK="podcast_check",Bp.PRIVACY_INFO="shield_x",Bp.PRIVACY_PRIVATE="lock",Bp.PRIVACY_PUBLIC="globe",Bp.PRIVACY_UNLISTED="link",Bp.PROMOTE="megaphone",Bp.PURCHASES="price_tag",
Bp.PURCHASE_SUPER_CHAT="super_chat",Bp.PURCHASE_SUPER_STICKER="super_sticker",Bp.QUESTION_ANSWER="help_bubble",Bp.QUESTION_CIRCLE="help_circle",Bp.QUEUE_PLAY_LAST="queue_last",Bp.QUEUE_PLAY_NEXT="playlist",Bp.QUOTATION_MARK="quote",Bp.RADAR_LIVE="live",Bp.REMOVE="minus_circle",Bp.REMOVE_CIRCLE="minus_circle",Bp.REMOVE_CIRCLE_OUTLINE="minus_circle",Bp.REMOVE_FROM_HISTORY="minus_circle",Bp.REMOVE_FROM_PLAYLIST="minus_circle",Bp.REMOVE_MODERATOR="shield_slash",Bp.REPLAY="arrow_counterclockwise",Bp.REPLAY_10=
"skip10_back",Bp.REPLAY_ARROW="replay",Bp.REPORT_PROBLEM="alert_triangle",Bp.RSS_OFF="rss_slash",Bp.SAD="face_sad",Bp.SAVE_PLAYLIST="bookmark",Bp.SCHEDULE="clock",Bp.SCHOOL="graduation_cap",Bp.SCREEN_DEFAULT="player_default",Bp.SCREEN_FULLSCREEN="player_full_enter",Bp.SCREEN_LIGHT="ambient_mode",Bp.SCREEN_ROTATION="rotate_portrait",Bp.SCREEN_SWITCH="player_switch",Bp.SCREEN_THEATRE="player_theater",Bp.SEARCH_CAIRO="search",Bp.SEARCH_HISTORY="history",Bp.SELL="price_tag",Bp.SETTINGS="gear",Bp.SETTINGS_CAIRO=
"gear",Bp.SETTINGS_LIGHT="gear",Bp.SETTINGS_MATERIAL="gear",Bp.SETTINGS_REMOTE="remote_waves",Bp.SHARE="share",Bp.SHARE_ARROW="share",Bp.SHARE_CAIRO="share",Bp.SHIELD="shield_x",Bp.SHIELD_OFF="shield_slash",Bp.SHIELD_WITH_AVATAR="person_shield",Bp.SHOPPING_BAG="bag",Bp.SHOPPING_BAG_CAIRO="bag",Bp.SHOPPING_CART="cart",Bp.SHORTS_COMMENT="text_bubble",Bp.SHORTS_DISLIKE="thumb_down",Bp.SHORTS_LIKE="thumb_up",Bp.SHORTS_SHARE="share",Bp.SKIP_FORWARD_30="skip30_forward",Bp.SLASH_CIRCLE_RIGHT="circle_slash",
Bp.SLOW_MODE="bubble_slow",Bp.SLOW_MODE_OFF="text_bubble",Bp.SOCIAL="person_child",Bp.SPARKLE="sparkles",Bp.SPARK_IMAGE="image_spark",Bp.SPARK_RADAR="spark_waves",Bp.SPARK_VIDEO="video_spark",Bp.SPEAKER_GROUP="speaker_stack",Bp.SPEAKER_OFF="speaker_slash",Bp.SPEED_1X="n1x",Bp.SPEED_1_POINT_2X="n1point2x",Bp.SPEED_1_POINT_5X="n1point5x",Bp.SPEED_1_POINT_8X="n1point8x",Bp.SPEED_2X="n2x",Bp.SPONSORSHIP_STAR="memberships",Bp.SPORTS="basketball",Bp.SPOTLIGHT="spotlight",Bp.STAFF_PICK="spotlight",Bp.START_DVR=
"add",Bp.STAR_BORDER="star",Bp.STAR_CIRCLE_RIBBON="memberships_gift",Bp.STAR_HALF="star_half_filled",Bp.STAR_SHOOTING="hype",Bp.STICKER="sticker",Bp.STICKER_EMOTICON="face_happy",Bp.STOP_DVR="stop",Bp.SUBSCRIBE="youtube",Bp.SUBSCRIBE_PLUS="add",Bp.SUBSCRIPTION_MANAGER="gear",Bp.SUPERSTAR="super_star",Bp.SUPERVISOR_ACCOUNT="person_child",Bp.SUPER_CHAT_FOR_GOOD="hands_heart",Bp.SWAP_HORIZ="arrow_swap_horizontal",Bp.SWITCH_ACCOUNTS="person_square_stack",Bp.TAB_ACCOUNT="person",Bp.TAB_ACTIVITY="bell",
Bp.TAB_BOOKMARK="bookmark",Bp.TAB_EXPLORE="compass",Bp.TAB_HOME="home",Bp.TAB_HOME_CAIRO="home",Bp.TAB_INBOX="mail",Bp.TAB_LIKED="thumb_up",Bp.TAB_MUSIC_PREMIUM="youtube_music",Bp.TAB_SHORTS="shorts",Bp.TAB_SHORTS_CAIRO="shorts",Bp.TAB_SUBSCRIPTIONS="subscriptions",Bp.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",Bp.TAB_TRENDING="trending",Bp.TARGET="target",Bp.TARGET_ADD="target_add",Bp.TEMPLATE_ADD="template_add",Bp.TEXT="font",Bp.TIMER="stopwatch",Bp.TRENDING_CAIRO="trending",Bp.TRENDING_UP="arrow_trend_up",
Bp.TROPHY_CAIRO="trophy",Bp.TROPHY_CELEBRATIONS="fireworks",Bp.TROPHY_STAR="star_trophy",Bp.TUNE="adjust",Bp.TV_OFF="tv_slash",Bp.UNBLOCK_USER="minus_circle",Bp.UNFAVORITE="thumb_down",Bp.UNLIMITED="youtube",Bp.UNPLUGGED_LIVE_GUIDE="live",Bp.UNPLUGGED_SPORTS="eye_slash",Bp.UPLOADS="play_square_stack",Bp.UP_ARROW="arrow_up",Bp.VERTICAL_ALIGN_BOTTOM="chevron_down_end",Bp.VERTICAL_ALIGN_TOP="chevron_up_end",Bp.VERY_HAPPY="face_very_happy",Bp.VERY_SAD="face_very_sad",Bp.VIDEOS="play_circle",Bp.VIDEO_CALL=
"video_camera_add",Bp.VIDEO_LIBRARY_WHITE="play_square_stack",Bp.VIDEO_QUALITY_4K="n4k",Bp.VIDEO_QUALITY_8K="n8k",Bp.VIDEO_YOUTUBE="youtube",Bp.VIEW_LIST_CAIRO="view_list",Bp.VIEW_MODULE="view_column3_row2",Bp.VISIBILITY="eye",Bp.VISIBILITY_OFF="eye_slash",Bp.VOLUME_DOWN="volume_min",Bp.VOLUME_MUTE="volume_mute",Bp.VOLUME_OFF="volume_mute",Bp.VOLUME_STABLE="stable_volume",Bp.VOLUME_UP="volume_max",Bp.WALLPAPER="image",Bp.WARNING="alert_triangle",Bp.WATCH_HISTORY="history",Bp.WATCH_HISTORY_CAIRO="history",
Bp.WATCH_LATER="clock",Bp.WATCH_LATER_CAIRO="clock",Bp.WATCH_RELATED_MIX="mix",Bp.WHAT_TO_WATCH="home",Bp.YOUTUBE_LINKED_TV="tv_mobile",Bp.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Bp.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",Bp.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",Bp.YOUTUBE_SHORTS_ARROW_UP="arrow_up",Bp.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",Bp.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",Bp.YOUTUBE_SHORTS_OUTLINE_24="shorts",Bp);var JzP={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,7,24],[1,7,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,7,24],[1,7,24]],arrow_left:[[1,
7,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,13,12],[0,13,16],[0,13,18],[0,13,24],[1,13,18],[1,13,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,8,24],[1,8,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,8,16],[1,8,18],[1,8,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,10,16],[0,10,24],[1,10,16],[1,10,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,
36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,
2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,8,24],[1,8,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,4,24]],football:[[0,4,24],[1,
4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,8,24],[1,8,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,
24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,
3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],
library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,
1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,
3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,4,16],[1,4,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,
6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,12,24],[1,12,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,
1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,
1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note_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,6,24],[1,6,32]],overflow_vertical:[[1,12,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],
[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,8,16],[1,8,18],[1,8,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,6,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,
24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,2,24],[1,2,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,6,12],[0,6,24],[1,6,16],[1,6,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],
[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,5,24],[1,5,12],[1,5,16],[1,5,18],[1,5,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,2,24]],presentation_remove:[[1,1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,
3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],
[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],
screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,13,24],[1,13,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,2,24]],shadow_soft:[[0,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,11,24,!0],[0,11,32,!0],[1,11,16,!0],[1,11,24,!0]],
share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,
1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,
5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,16],[0,9,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,
2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],star_circle:[[0,5,12],[0,5,16],[0,5,18],[0,5,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],
sticker:[[1,2,24]],stop:[[0,4,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,
3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,
22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,3,24],[1,3,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,9,16],[1,9,18],[1,9,24]],triangle_down:[[1,7,24]],
triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,
2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_stitch:[[1,2,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,10,18],[1,10,24]],x_cairo:[[1,1,24]],x_circle:[[1,8,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,
2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,
24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,
2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,1,24],[1,1,24]]};var VvZ={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,7,24],[1,7,24],[1,7,48]],alert_bubble:[[1,1,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,2,24],[1,2,24]],
alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,7,24]],arrow_left:[[1,7,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[1,2,24]],arrow_right:[[1,
3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,2,18],[1,2,24],[1,2,36]],
audio:[[0,13,12],[0,13,18],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,10,24],[1,10,24]],bell_slash:[[1,1,
24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,8,24],[1,8,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],
bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,
1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,2,24],[1,2,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],
[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,2,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,
36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,2,24],[1,2,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],
cloud_arrow_up:[[0,5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],
csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,10,24],[1,10,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,
1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,1,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],
face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,
24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,8,24],[1,8,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,
1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,8,24],[1,8,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,
24],[1,2,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],
hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,1,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],
image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,
1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,
13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,4,24]],menu:[[1,1,24]],mic:[[0,12,18],[0,12,24],[0,12,48],[1,12,24]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,2,24],[1,2,24]],minus_square:[[0,
2,24],[1,2,24]],mix:[[0,2,24],[1,2,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,
1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],overflow_vertical:[[1,12,24],[1,12,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],
pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,8,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,1,24],[1,1,24]],person_add:[[0,6,24],[1,6,24]],person_audio:[[0,2,24],[1,2,24],[1,2,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,1,24],[1,1,
24]],person_square_stack:[[0,1,24],[1,1,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,2,24],[1,2,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,6,24],[1,6,24]],pin_slash:[[0,1,24],[1,1,24]],play:[[0,2,24],[0,2,36],[1,2,24]],play_circle:[[0,2,24],[0,2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,
1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,3,12],[1,3,24],[1,3,48]],playlist_add:[[1,
1,24]],playlist_audio:[[0,2,24],[1,2,24],[1,2,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,1,24]],podcast:[[0,5,24],[1,5,18],[1,5,24],[1,5,48]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,
1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,1,24],[1,1,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,
1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,13,24],[1,13,24],[1,13,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,
11,24,!0],[1,11,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,2,24],[1,2,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,2,24],[1,2,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,
1,24]],skip30_forward:[[1,2,24],[1,2,36]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,1,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,24],[1,9,24]],spark_bubble_chat:[[1,1,24]],
spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,
2,24],[1,2,24]],star:[[0,5,24],[1,5,24]],star_circle:[[0,5,18],[0,5,24],[0,5,36],[1,5,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,4,24],[0,4,36],[1,4,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,
1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,
1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,3,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,9,24],
[1,9,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],
video_link:[[1,5,18],[1,5,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,
2,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,10,18],[1,10,24]],x_circle:[[0,8,24],[1,8,18],[1,8,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var i8K={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER:"MESSAGE_BUBBLE_OVERLAP",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",SUBTITLES_DELHI_PLAYER:"SUBTITLES",SUBTITLES_DELHI_PLAYER_FILLED:"SUBTITLES",PLAYER_FULL_ENTER_ALT:"PLAYER_FULL_ENTER_ALT",
PLAYER_FULL_EXIT_ALT:"PLAYER_FULL_EXIT_ALT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},f4=function(R){this.iconUrlProvider=R};
f4.prototype.resolveIcon=function(R,y){var u=i8K[R.iconName.toUpperCase()];u&&(R.iconName=u);var v=R.iconName;v=v.replace(/-/g,"_");R=Object.assign({},R,{iconName:this.mapIconTypeToStandardName(v,!!u)||v.toLowerCase()});if(_.f("enable_web_delhi_icons")||u){var Q;return r$O(VvZ,R,((Q=this.iconUrlProvider)==null?void 0:Q.getYtStandardUrl)||U2U,y)}var M;return r$O(JzP,R,((M=this.iconUrlProvider)==null?void 0:M.getYtStandardUrl)||d2U,y)};
f4.prototype.mapIconTypeToStandardName=function(R,y){return _.f("enable_web_delhi_icons")||y?Mvg[R.toUpperCase()]:jL8[R.toUpperCase()]};
f4[Mn]=[_.yN(uUV)];var K4I=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),IcI=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),hTg=function(R){this.urlProvider=this.iconUrlProvider=R};
_.O(hTg,f4);
hTg.prototype.resolveIcon=function(R,y){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 u=Object.assign({},R);R.iconName==="menu"&&(_.f("enable_web_delhi_icons")||(u.iconName="bars_3"),u.iconStyle="youtube_outline");R.iconSetName==="socialNetworksRound"&&(R.iconName==="mail"&&(u.iconName="email"),R.iconName==="embed"&&(u.iconSize=60));R.iconName==="more"&&(u.iconName="overflow_horizontal");
R.iconName==="fullscreen"&&(u.iconName="screen_full");R.iconName==="premium_standalone"&&(u.iconName="premium_standalone_cairo");_.f("enable_connect_icon_update_web")&&R.iconName==="account_linked"&&(u.iconName="circles_overlap_check",u.iconStyle="youtube_fill");_.f("enable_connect_icon_update_web")&&R.iconName==="account_unlinked"&&(u.iconName="circles_overlap",u.iconStyle="youtube_outline");K4I.has(R.iconName)&&(u.iconStyle="youtube_fill");_.f("enable_web_delhi_icons")&&(R.iconName==="playlist_add"&&
(u.iconName="bookmark"),R.iconName==="offline_pin"&&(u.iconName="arrow_down_circle",u.iconStyle="youtube_fill"),IcI.has(R.iconName)&&(u.iconName+="_updated"));R=Object.assign({},u,{iconName:(f4.prototype.mapIconTypeToStandardName.call(this,u.iconName)||u.iconName).toLowerCase()});var v;return(R=r$O(RTp,R,((v=this.urlProvider)==null?void 0:v.getUrl)||kOU,y))?R:f4.prototype.resolveIcon.call(this,u,y)};
hTg[Mn]=[_.yN(uUV)];_.b8a=1;var eM=function(R,y){this.JSC$17124_commandHandler=R;this.innertubeTransportService=y};
_.O(eM,YQ);eM.prototype.resolveCommand=function(R,y){var u=this,v,Q,M;return _.I(function(K){return(v=_.e(R,DW5))?K.return(F4a(u,v,(Q=y)==null?void 0:(M=Q.form)==null?void 0:M.element)):K.return()})};
var F4a=function(R,y,u){y={profileCardContext:y.profileCardContext,profileOwnerExternalChannelId:y.profileOwnerExternalChannelId};var v=_.jq(jaw);return _.am(R.innertubeTransportService,y,v).then(function(Q){if(!Q)throw new _.OL("GetProfileCard failed");if(Q=Q.popupCommand){R.JSC$17124_commandHandler.resolveCommand(Q,{form:{element:u}});_.om(_.GN(),66557);Q=Q==null?void 0:Q.clickTrackingParams;var M=_.Ef();Q&&M&&_.GN().graftServerVe(Q,M)}})};
eM[Mn]=[_.jX,_.Dj];var lf=function(){};
_.O(lf,YQ);lf.prototype.resolveCommand=function(R){var y,u;return _.I(function(v){y=_.e(R,sf8);if(!y)return v.return();u=Number(y.enableDelayedPacfLoggingTvMs);if(isNaN(u)){var Q=BS();PMc(Q,y,0)}else PMc(BS(),y,u);_.f$(v)})};_.O5=function(){};
_.O(_.O5,YQ);
_.O5.prototype.resolveCommand=function(R,y){var u=this,v,Q,M,K,h,b,N;return _.I(function(T){v=_.e(R,zhL);M=(Q=y.form)==null?void 0:Q.element;h=(K=M)==null?void 0:K.closest("ytd-enforcement-message-view-model");if(!v||!h)return T.return();u.allowAdsAction||(b=v.fundingChoiceInstructionPageUrl,u.allowAdsAction=new xs5(window,_.d3(b)));var x=u.allowAdsAction;x.wallElement=h;x.allowAdsPopup.style.setProperty("display","flex","important");var B=x.scrollManager;B.originalBodyOverflow=B.JSC$9969_domHelper.JSC$9293_document_.body.style.overflow;B.JSC$9969_domHelper.JSC$9293_document_.body.style.overflow=
"hidden";x.wallElement.style.setProperty("display","none","important");P$b(x.accessibilityManager,x.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((N=u.allowAdsAction.allowAdsPopup)&&N instanceof HTMLElement)for(x=_.V(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),B=x.next();!B.done;B=x.next()){var l=_.V(B.value);B=l.next().value;l=l.next().value;N.style.setProperty(B,l)}_.f$(T)})};
_.O5.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var Zh=function(){};
_.O(Zh,YQ);Zh.prototype.resolveCommand=function(R){var y;return _.I(function(u){y=_.e(R,TQc);if(!y)return u.return();nPv(R);_.f$(u)})};var Hp=function(R){this.JSC$17139_commandHandler=R};
_.O(Hp,YQ);
Hp.prototype.resolveCommand=function(R){var y=this,u,v,Q,M,K,h,b,N;return _.I(function(T){if(T.nextAddress==1){u=_.e(R,SDV);if((v=u)==null||!v.text||!navigator.clipboard)return T.return();_.wY(T,2);return T.yield(navigator.clipboard.writeText(u.text),4)}if(T.nextAddress!=2){if(!u.successActions||u.successActions.length===0)return T.return();Q=_.V(u.successActions);for(M=Q.next();!M.done;M=Q.next())K=M.value,y.JSC$17139_commandHandler.resolveCommand(K);return _.c5(T,0)}_.B$(T);if(!u.failureActions||u.failureActions.length===
0)return T.return();h=_.V(u.failureActions);for(b=h.next();!b.done;b=h.next())N=b.value,y.JSC$17139_commandHandler.resolveCommand(N);_.f$(T)})};
Hp[Mn]=[_.jX];var n4=function(R){this.JSC$17143_commandHandler=R};
_.O(n4,YQ);
n4.prototype.resolveCommand=function(R,y){var u=this,v,Q,M,K,h,b,N,T,x,B;return _.I(function(l){switch(l.nextAddress){case 1:v=_.e(R,Ox5);if(!v)return l.return();_.wY(l,2);if(!v.imageBytes&&!v.imageUrl)throw Error("xi");if(!v.imageUrl){if(v.imageBytes){M=v.imageBytes;K=M.replace(/-/g,"+").replace(/_/g,"/");var Z=qtT(K);Q=_.$E(Z)}l.jumpTo(4);break}return l.yield(fetch(v.imageUrl),5);case 5:return h=l.yieldResult,l.yield(h.blob(),6);case 6:b=l.yieldResult,Q=_.$E(b);case 4:x=(N=y)==null?void 0:(T=N.form)==
null?void 0:T.element;B=document.createElement("a");Aq(B,Q);x.appendChild(B);B.download="";B.click();x.removeChild(B);URL.revokeObjectURL(_.Pg(Q));v.successCommand&&u.JSC$17143_commandHandler.resolveCommand(v.successCommand);_.c5(l,0);break;case 2:_.B$(l),v.errorCommand&&u.JSC$17143_commandHandler.resolveCommand(v.errorCommand),_.f$(l)}})};
n4[Mn]=[_.jX];var Gj=function(R){this.store=R};
_.O(Gj,YQ);Gj.prototype.resolveCommand=function(R){var y=this,u,v,Q;return _.I(function(M){v=(u=_.e(R,_.QZ5))==null?void 0:u.entityBatchUpdate;if(!v)return M.jumpTo(0);Q=Object.assign({},v,{mutations:[].concat(_.P$(v.mutations||[]))});return M.yield(_.e6(Q,y.store),0)})};var wW8=function(R){this.JSC$17150_commandHandler=R;this.feedbackDialogMap=new Map};
wW8.prototype.openDialog=function(R,y){(R=this.feedbackDialogMap.get(R))&&this.JSC$17150_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:R}},y)};
wW8[Mn]=[_.jX];var rd=new _.Jx("FEEDBACK_CONTROLLER_TOKEN");var Pp=new _.Jx("APP_STORE_TOKEN");var Wp=function(R,y){this.store=R;this.controller=y};
_.O(Wp,YQ);Wp.prototype.resolveCommand=function(R,y){var u=this,v,Q,M,K,h,b,N,T,x,B,l,Z,P,k,E,D,z,c;return _.I(function(a){if(a.nextAddress==1){v=_.e(R,_.mr);if(M=(Q=v)==null?void 0:Q.contentId)for(h=_.V(((K=v)==null?void 0:K.actions)||[]),b=h.next();!b.done;b=h.next())N=b.value,NEa(u,N,M);B=(T=y)==null?void 0:(x=T.form)==null?void 0:x.element;return a.yield(_.Fh(B,[R,{impression:(l=y)==null?void 0:l.disableClickTracking}]).catch(function(){}),2)}Z=a.yieldResult;
((P=Z)==null?0:(k=P.data)==null?0:(E=k.feedbackResponses)==null?0:E.length)&&(z=(D=Z.data.feedbackResponses[0])==null?void 0:D.followUpDialog)&&M&&(c=u.controller)!=null&&c.feedbackDialogMap.set(M,z);_.f$(a)})};
var NEa=function(R,y,u){var v=_.e(y,_.TP);if(v){v=_.V(v.commands||[]);for(var Q=v.next();!Q.done;Q=v.next())NEa(R,Q.value,u)}_.e(y,_.Pe)&&R.store.dispatch(_.Gw("commandEntity",K0E(u),{key:u,command:y}));_.e(y,YOT)&&R.store.dispatch(_.Gw("commandEntity",K0E(u),{key:u,command:y}))};
Wp[Mn]=[Pp,rd];var dd=function(R){this.controller=R};
_.O(dd,YQ);dd.prototype.resolveCommand=function(R,y){var u=this,v,Q,M,K;return _.I(function(h){v=_.e(R,_.Dz);M=(Q=v)==null?void 0:Q.targetId;if(((K=v)==null?void 0:K.signal)!=="TELL_US_WHY"||!M)return h.return();u.controller.openDialog(M,y);_.f$(h)})};
dd[Mn]=[rd];var U5=function(R){this.store=R};
_.O(U5,YQ);U5.prototype.resolveCommand=function(R,y){var u=this,v,Q,M,K,h,b,N;return _.I(function(T){v=_.e(R,xbG);M=(Q=v)==null?void 0:Q.contentId;b=(K=y)==null?void 0:(h=K.form)==null?void 0:h.element;N=_.Fh(b,[R]);M&&u.undo(M);return T.yield(N,0)})};
U5.prototype.undo=function(R){this.store.dispatch(_.Gw("commandEntity",K0E(R),{key:R,command:void 0}))};
U5[Mn]=[Pp];var ke=function(R){this.JSC$17165_commandHandler=R};
_.O(ke,YQ);ke.prototype.resolveCommand=function(R){var y=this,u,v,Q,M,K,h,b,N;return _.I(function(T){u=_.e(R,B18);v=u.flowStateKey;Q=u.validationFailureCommand;M=u.submitValidFormCommand;K=vnT(_.jV,[v||""]);h=_.e(K,esc);((b=h)==null?0:b.isValid)&&M&&y.JSC$17165_commandHandler.resolveCommand(M);((N=h)==null?0:N.isValid)||!Q||y.JSC$17165_commandHandler.resolveCommand(Q);_.f$(T)})};
ke[Mn]=[_.jX];var E5=function(R){this.innertubeTransportService=R};
_.O(E5,YQ);E5.prototype.resolveCommand=function(R,y){var u=this,v;return _.I(function(Q){return Q.yield(_.yB(u.innertubeTransportService,R,(v=y)==null?void 0:v.form).then(function(M){var K,h;y==null||(K=y.commandController)==null||(h=K.onSuccess)==null||h.call(K,R,M)},function(M){var K,h;
y==null||(K=y.commandController)==null||(h=K.onServerError)==null||h.call(K,R,M)}),0)})};
E5[Mn]=[_.Dj];var $e=function(){};
_.O($e,YQ);$e.prototype.resolveCommand=function(R){var y,u,v,Q;return _.I(function(M){if(y=_.e(R,_.E1c)){if(u=y.gtmId)v=_.EB("GL",""),_.qL(u,v);(Q=y.gtmData)&&_.Xw(Q)}_.f$(M)})};var q0=function(R,y){this.innertubeTransportService=R;this.JSC$17176_actionRouter=y};
_.O(q0,YQ);q0.prototype.resolveCommand=function(R){var y=this,u,v;return _.I(function(Q){u=_.e(R,oji);if(!u)return Q.return();v=u.command;if(!v)return Q.return();y.JSC$17176_actionRouter.triggerAction("yt-insert-rich-section-action",u);return Q.yield(_.yB(y.innertubeTransportService,v,{disableCache:!0}),0)})};
q0[Mn]=[_.Dj,Mi];m2U.bind(null,Lw);var TEM=m2U.bind(null,a9g);D2W.bind(null,Lw);var oSp=D2W.bind(null,a9g);teW.bind(null,Lw);var xU8=teW.bind(null,a9g);var X_=function(){};
_.O(X_,YQ);
X_.prototype.resolveCommand=function(R){var y,u,v,Q,M,K,h,b,N,T;return _.I(function(x){y=_.e(R,vDw);if(!y)return x.return();v=((u=y.operations)==null?void 0:u.operations)||[];Q=_.V(v);for(M=Q.next();!M.done;M=Q.next())if(K=M.value,K.insertItemSectionContent){var B=K.insertItemSectionContent,l=B.contents||[];B.insertByPositionInSection?TEM(B.insertByPositionInSection.sectionTargetId,l,B.insertByPositionInSection.position):B.insertByRelativePositionInSection&&B.insertByRelativePositionInSection.sectionTargetId&&B.insertByRelativePositionInSection.itemTargetId&&
oSp(B.insertByRelativePositionInSection.sectionTargetId,B.insertByRelativePositionInSection.itemTargetId,l,B.insertByRelativePositionInSection.relativePosition)}else K.replaceSection?(B=K.replaceSection,l={},B.replaceByTargetId?l=B.replaceByTargetId:B.replaceByGroupId&&(l={targetId:B.replaceByGroupId.groupId,newContent:B.replaceByGroupId.newContent,undoKey:""}),l.newContent&&LL8(l.targetId,{continuationItems:[l.newContent]})):K.removeItem?(B=K.removeItem,B.removeByTargetId&&B.sectionTargetId&&xU8(B.sectionTargetId,
B.removeByTargetId.targetIds||[])):K.removeSection&&(K.removeSection.removeByTargetId?(h=void 0,BEa(((h=K.removeSection)==null?void 0:h.removeByTargetId.targetIds)||[])):K.removeSection.removeByGroupId&&(b=void 0,BEa(((b=K.removeSection)==null?void 0:b.removeByGroupId.groupIds)||[])));T=((N=y.operations)==null?void 0:N.scrollConfig)||{};fcZ(T);_.f$(x)})};
var BEa=function(R){R=_.V(R);for(var y=R.next();!y.done;y=R.next())LL8(y.value,{continuationItems:[]})},fcZ=function(R){if(R.scrollToItem){var y=R.scrollToItem.item||{},u=y.itemTargetId;
y=y.sectionTargetId;if(u&&y){var v=document.querySelector("[data-target-id="+y+"]"),Q=v==null?void 0:v.querySelector("[data-target-id="+u+"]");v&&Q&&setTimeout(function(){var M=Q.offsetTop-v.offsetTop,K;if(((K=R.scrollToItem)==null?void 0:K.scrollPosition)==="SCROLL_POSITION_CENTER")M-=v.offsetHeight/2,M+=Q.offsetHeight/2;else{var h;((h=R.scrollToItem)==null?void 0:h.scrollPosition)==="SCROLL_POSITION_END"&&(M-=v.offsetHeight,M+=Q.offsetHeight)}v.scroll({top:M,behavior:"smooth"})},100)}}};var mC=new _.Jx("CLIENT_NAME_TOKEN");var eTp=new _.Jx("DEFAULT_STORE_EXPIRATION_TOKEN");var dIO=new _.Jx("CLIENT_LOCATION_SERVICE_TOKEN");var Am=function(R,y,u){this.clientName=R||_.EB("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=y||_.Xb.getInstance();this.JSC$17204_commandHandler=u||_.lX.instance};
_.O(Am,YQ);Am.prototype.resolveCommand=function(R){var y=this,u,v;return _.I(function(Q){v=(u=_.e(R,Ia8))==null?void 0:u.onComplete;y.clientLocationService.clearLocationPlayabilityToken(y.clientName);v&&y.JSC$17204_commandHandler.resolveCommand(v);_.f$(Q)})};
Am[Mn]=[mC,dIO,_.jX];var Dh=function(R){this.innertubeTransportService=R};
_.O(Dh,YQ);Dh.prototype.resolveCommand=function(R,y){var u=this,v,Q,M,K;return _.I(function(h){M=(v=y)==null?void 0:(Q=v.form)==null?void 0:Q.element;return h.yield(_.yB(u.innertubeTransportService,R,(K=y)==null?void 0:K.form).then(function(b){DYE(M,new CustomEvent("yt-service-request-completed"),{data:b},_.EB("openPopupConfig"))}),0)})};
Dh[Mn]=[_.Dj];var p4=function(){};
_.O(p4,YQ);p4.prototype.resolveCommand=function(R){var y,u;return _.I(function(v){y=_.e(R,HVT);u=document.querySelector("mini-app-container-view-model");if(!y||!u)return v.return();y.isPlaying?u.dispatchEvent(new Event("play")):u.dispatchEvent(new Event("pause"));_.f$(v)})};var tm=function(){};
_.O(tm,YQ);tm.prototype.resolveCommand=function(R){var y,u,v,Q,M,K,h;return _.I(function(b){y=_.e(R,rXb);if((u=y)==null||!u.paramKeys)return b.return();v=y.paramKeys;Q=_.pF(window.location.href);M=_.V(v);for(K=M.next();!K.done;K=M.next())h=K.value,Q.JSC$10001_queryData_.remove(h);window.history.replaceState(window.history.state,document.title,Q.toString());_.f$(b)})};var lca=function(){this.dropdownMap=new Map};_.O87=new _.Jx("DROPDOWN_CONTROLLER_TOKEN");var cp=function(R){this.controller=R};
_.O(cp,YQ);cp.prototype.resolveCommand=function(R){var y=this,u,v,Q,M;return _.I(function(K){u=_.e(R,iQ8);if(!u)return K.return();v=u;Q=v.dropdownId;M=v.selectedOptionIndex;if(Q===void 0||M===void 0)return K.return();var h=y.controller.dropdownMap.get(Q);h&&h(M);_.f$(K)})};
cp[Mn]=[_.O87];var a7=function(R){this.controller=R};
_.O(a7,YQ);a7.prototype.resolveCommand=function(R){var y=this,u;return _.I(function(v){return(u=_.e(R,laV))?v.yield(y.controller.closeDialog(),0):v.return()})};
a7[Mn]=[_.kx];var SM=function(R){this.controller=R};
_.O(SM,YQ);SM.prototype.resolveCommand=function(R){var y=this,u,v;return _.I(function(Q){u=_.e(R,jQ5);if(!u)return Q.return();var M,K=u.panelIdentifier||((M=u.identifier)==null?void 0:M.tag);if(!K)throw Error("yi");return(v=K)?Q.yield(y.controller.hidePanel(v),0):Q.jumpTo(0)})};
SM[Mn]=[_.d0];var Ye=function(R,y){this.innertubeTransportService=R;this.controller=y};
_.O(Ye,YQ);Ye.prototype.resolveCommand=function(R){var y=this,u,v,Q,M;return _.I(function(K){if(K.nextAddress==1)return u=_.e(R,Mtw),(v=u)!=null&&v.panelId?K.yield(y.controller.getReloadContinuation(u.panelId),2):K.return();if(K.nextAddress!=3)return(Q=K.yieldResult)?K.yield(_.yB(y.innertubeTransportService,R,{continuation:Q}),3):K.return();M=K.yieldResult;return K.yield(y.controller.updatePanel(u.panelId,M.content,!1),0)})};
Ye[Mn]=[_.Dj,_.d0];var L4=function(R,y,u){this.innertubeTransportService=R;this.JSC$17240_screenManager=y;this.JSC$17240_commandHandler=u};
_.O(L4,YQ);
L4.prototype.resolveCommand=function(R){var y=this,u,v,Q,M,K,h;return _.I(function(b){if(b.nextAddress==1){u=_.e(R,_.sQc);if(!u)return b.return();if(u.commands)for(v=_.V(u.commands),Q=v.next();!Q.done;Q=v.next())M=Q.value,y.JSC$17240_commandHandler.resolveCommand(M,{disableClickTracking:!0});K=_.U4(R.clickTrackingParams);_.om(y.JSC$17240_screenManager,21760,K,{layer:7,parentLayer:0});return b.yield(_.yB(y.innertubeTransportService,R),2)}h=b.yieldResult;if(!h)return b.return();y.JSC$17240_screenManager.graftServerVe(h.trackingParams,K,
7);_.f$(b)})};
L4[Mn]=[_.Dj,_.Ej,_.jX];var s5=new _.Jx("PANEL_LOADING_STRATEGY_TOKEN");var zj=function(R,y){this.controller=R;this.panelLoadingStrategy=y};
_.O(zj,YQ);
zj.prototype.resolveCommand=function(R,y){var u=this,v,Q,M;return _.I(function(K){v=_.e(R,t5G);if((Q=v)==null||!Q.panelLoadingStrategy)return K.return();M=function(h){var b,N,T,x,B,l,Z,P,k;return _.I(function(E){N=_.e((b=h.dialogViewModel)==null?void 0:b.header,Ks5);T={viewModel:h.dialogViewModel};x={};if(Z=_.f("web_enable_dialog_header_label")?(B=N)==null?void 0:(l=B.headline)==null?void 0:l.content:void 0)x.ariaLabel=Z;v.dismissOnBackgroundTap===!1&&(x.isModal=!0);return h.dialogViewModel?E.yield(u.controller.openDialog(T,
(P=y)==null?void 0:(k=P.form)==null?void 0:k.element,x),0):E.return()})};
return K.yield(u.panelLoadingStrategy.execute({command:R,data:v.panelLoadingStrategy,renderFn:M,createScreenConfig:{layer:4}}),0)})};
zj[Mn]=[_.kx,s5];var gd=function(R,y,u){this.innertubeTransportService=R;this.controller=y;this.JSC$17260_screenManager=u};
_.O(gd,YQ);
gd.prototype.resolveCommand=function(R,y){var u=this,v,Q,M,K,h,b,N,T,x,B,l,Z;return _.I(function(P){switch(P.nextAddress){case 1:v=_.e(R,_.X1);if(!v)return P.return();var k,E=v.panelIdentifier||((k=v.identifier)==null?void 0:k.tag);if(!E)throw Error("yi");Q=E;return P.yield(u.controller.isVisible(Q,!0),2);case 2:if((M=P.yieldResult)&&v.blockIfPanelOpen)return P.return();b=(h=(K=u.controller).getPanelContent)==null?void 0:h.call(K,Q);if(!(k=b))if(v){var D;k=((D=v.globalConfiguration)==null?void 0:
D.initialState)||v.engagementPanel;if(D=!k)D=!!(v==null?0:(E=v.engagementPanelPresentationConfigs)==null?0:E.engagementPanelPopupPresentationConfig);D&&(k=_.c$8(v.panelIdentifier,v.identifier))}else k=void 0;N=k;T=v.engagementPanelPresentationConfigs;x=v.engagementPanelExtras;return P.yield(u.controller.showPanel(Q,N,T,x,(B=y)==null?void 0:(l=B.form)==null?void 0:l.element),3);case 3:if(!v.globalConfiguration){P.jumpTo(0);break}_.om(u.JSC$17260_screenManager,32633);return P.yield(_.yB(u.innertubeTransportService,
R),5);case 5:return Z=P.yieldResult,u.JSC$17260_screenManager.graftServerVe(Z.trackingParams),P.yield(u.controller.updatePanel(Q,Z.content,!0,x,void 0,Z.updatePanelContinuationData),0)}})};
gd[Mn]=[_.Dj,_.d0,_.Ej];var C4=function(R,y){this.controller=R;this.panelLoadingStrategy=y};
_.O(C4,YQ);C4.prototype.resolveCommand=function(R,y){var u=this,v,Q,M,K,h,b;return _.I(function(N){v=_.e(R,_.rm);if((Q=v)==null||!Q.panelLoadingStrategy)return N.return();h=Z8o(u.controller,(M=y)==null?void 0:(K=M.form)==null?void 0:K.element);b=function(T){return _.I(function(x){return T.sheetViewModel?x.yield(u.controller.openSheet({viewModel:T.sheetViewModel},h),0):x.return()})};
return N.yield(u.panelLoadingStrategy.execute({command:R,data:v.panelLoadingStrategy,renderFn:b,createScreenConfig:{layer:0}}),0)})};
C4[Mn]=[_.UM,s5];var R6=function(R,y){this.controller=R;this.JSC$17268_commandHandler=y};
_.O(R6,YQ);R6.prototype.resolveCommand=function(R,y){var u=this,v,Q,M;return _.I(function(K){if(K.nextAddress==1){v=_.e(R,Kfc);var h=_.e(v.showCommand,_.X1),b,N,T=(N=h==null?void 0:h.panelIdentifier)!=null?N:h==null?void 0:(b=h.identifier)==null?void 0:b.tag;if(!T)throw Error("zi");Q=T;return K.yield(u.controller.isVisible(Q),2)}return(M=K.yieldResult)?K.yield(u.controller.hidePanel(Q),0):K.yield(u.JSC$17268_commandHandler.resolveCommand(v.showCommand,y),0)})};
R6[Mn]=[_.d0,_.jX];var yP=function(R,y,u){this.innertubeTransportService=R;this.controller=y;this.JSC$17271_screenManager=u};
_.O(yP,YQ);
yP.prototype.resolveCommand=function(R){var y=this,u,v,Q,M,K,h,b,N,T,x,B,l,Z,P,k,E,D,z,c,a,L,QG;return _.I(function(hz){switch(hz.nextAddress){case 1:return v=u=_.e(R,IEc),Q=v.targetPanelIdentifier,M=v.contentSourcePanelIdentifier,K=v.globalConfiguration,((h=Q)==null?0:h.tag)&&((b=M)==null?0:b.tag)?K?hz.yield(y.controller.showPanel(Q.tag,_.c$8(Q.tag,Q),void 0,void 0,void 0),5):hz.yield((B=(x=y.controller).getPanel)==null?void 0:B.call(x,M.tag),4):hz.return();case 4:l=hz.yieldResult;N=(Z=l)==null?
void 0:(k=(P=Z).getPanelContent)==null?void 0:k.call(P);hz.jumpTo(3);break;case 5:return hz.yield(_.yB(y.innertubeTransportService,R),6);case 6:E=hz.yieldResult,((D=E)==null?0:D.trackingParams)&&y.JSC$17271_screenManager.graftServerVe(E.trackingParams),N=(z=E)==null?void 0:z.content,T=(c=E)==null?void 0:c.updatePanelContinuationData;case 3:if(L=(a=N)==null?void 0:a.engagementPanelSectionListRenderer)return hz.yield(y.controller.showPanel(Q.tag,void 0,void 0,void 0,void 0,{content:L.content,secondaryHeaderContent:(QG=
L.header)!=null?QG:{},targetId:L.targetId},T),0);hz.jumpTo(0)}})};
yP[Mn]=[_.Dj,_.d0,_.Ej];var uF=function(){};
_.O(uF,YQ);var H8a=function(R){var y;return _.I(function(u){y=_.EB("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;R.JSC$17277_mainAppPlayer=new ul(y);document.addEventListener("yt-page-data-updated",R.JSC$17277_pauseOnNavigation.bind(R));_.f$(u)})};
uF.prototype.JSC$17277_pauseOnNavigation=function(){var R=this,y,u;return _.I(function(v){if(v.nextAddress==1)return y=R.JSC$17277_mainAppPlayer,v.yield(y.api,2);u=v.yieldResult;u.pauseVideo();_.f$(v)})};
var nSa=function(R,y,u){var v;return _.I(function(Q){v=R.JSC$17277_mainAppPlayer;return Q.yield(v.loadVideoWithPlayerVars({videoId:y,audio_only:"1",player_params:u}),0)})};
uF.prototype.pauseVideo=function(){var R=this,y,u;return _.I(function(v){if(v.nextAddress==1)return y=R.JSC$17277_mainAppPlayer,v.yield(y.api,2);u=v.yieldResult;u.pauseVideo();_.f$(v)})};
uF.prototype.playVideo=function(){var R=this,y,u;return _.I(function(v){if(v.nextAddress==1)return y=R.JSC$17277_mainAppPlayer,v.yield(y.api,2);u=v.yieldResult;u.playVideo();_.f$(v)})};
var GTg=function(R){var y,u;return _.I(function(v){if(v.nextAddress==1)return y=R.JSC$17277_mainAppPlayer,v.yield(y.api,2);u=v.yieldResult;u.mute();_.f$(v)})},rzm=function(R){var y,u;
return _.I(function(v){if(v.nextAddress==1)return y=R.JSC$17277_mainAppPlayer,v.yield(y.api,2);u=v.yieldResult;u.unMute();_.f$(v)})},POZ=function(R,y){return _.I(function(u){switch(u.nextAddress){case 1:switch(y){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return u.jumpTo(2);
case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return u.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return u.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return u.jumpTo(5)}u.jumpTo(0);break;case 2:return u.yield(R.playVideo(),7);case 7:u.jumpTo(0);break;case 3:return u.yield(R.pauseVideo(),8);case 8:u.jumpTo(0);break;case 4:return u.yield(GTg(R),9);case 9:u.jumpTo(0);break;case 5:return u.yield(rzm(R),10);case 10:u.jumpTo(0)}})};
uF.prototype.resolveCommand=function(R){var y=this,u,v,Q,M,K,h,b,N,T,x,B;return _.I(function(l){return l.nextAddress==1?(u=_.e(R,fQ5),((v=u)==null?0:v.newPlaybackParams)||((Q=u)==null?0:Q.controlAction)?y.JSC$17277_mainAppPlayer?l.jumpTo(2):l.yield(H8a(y),2):l.return()):((M=u)==null?0:M.newPlaybackParams)?(b=(K=u)==null?void 0:(h=K.newPlaybackParams)==null?void 0:h.externalVideoId,B=(x=(N=u)==null?void 0:(T=N.newPlaybackParams)==null?void 0:T.playerParams)!=null?x:"",b?l.yield(nSa(y,b,B),0):l.return()):
l.yield(POZ(y,u.controlAction),0)})};var vI=function(R){this.JSC$17284_commandHandler=R};
_.O(vI,YQ);
vI.prototype.resolveCommand=function(R){var y=this,u,v,Q,M,K,h;return _.I(function(b){if(b.nextAddress==1)return(u=_.e(R,faL))?b.yield(_.Bm(),2):b.return();v=b.yieldResult;if(!v)return b.return();var N=v,T=(Q=u)==null?void 0:Q.languageCode,x=(M=u)==null?void 0:M.isAutoTranslated;N.getVideoData&&_.StT(N).length&&((T=Lyz(N,T,x))?N.setOption("captions","track",T):(N.setOption("captions","stickyLoading",{}),N.setOption("captions","track",{})));K=v.isSubtitlesOn()?_.fo("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.fo("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");h=_.JU(K);y.JSC$17284_commandHandler.resolveCommand(h);_.f$(b)})};
vI[Mn]=[_.jX];var QP=function(R,y){this.shortsPlayerPromise=R;this.JSC$17288_commandHandler=y};
_.O(QP,YQ);
QP.prototype.resolveCommand=function(R){var y=this,u,v,Q,M,K,h,b,N;return _.I(function(T){if(T.nextAddress==1)return(u=_.e(R,qDV))?T.yield(y.shortsPlayerPromise,2):T.return();v=T.yieldResult;var x=sTT(v);x!=null&&x.length||(v.loadModule("captions"),x=sTT(v));Q=x;if((M=Q)==null||!M.length)return K=_.fo("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),h=_.JU(K),y.JSC$17288_commandHandler.resolveCommand(h),T.return();v.toggleSubtitles();b=v.isSubtitlesOn()?_.fo("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.fo("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");N=_.JU(b);y.JSC$17288_commandHandler.resolveCommand(N);_.f$(T)})};
QP[Mn]=[_.ewY,_.jX];var j$=function(R){this.JSC$17291_playerPromise=R};
_.O(j$,YQ);j$.prototype.resolveCommand=function(R){var y=this,u,v,Q,M;return _.I(function(K){if(K.nextAddress==1)return(u=_.e(R,VtG))?K.yield(y.JSC$17291_playerPromise,2):K.return();v=K.yieldResult;Q=v.getVideoData().video_id;u.videoId===Q&&(M=Number(u.offsetFromVideoStartMilliseconds),M>=0&&v.seekTo(M/1E3));_.f$(K)})};
j$[Mn]=[_.Np];var W4K=_.Nq("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),M3=function(R){this.store=R};
_.O(M3,YQ);
var dUa=function(R){var y,u,v,Q;return _.I(function(M){if(M.nextAddress==1)return y=_.EB("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,u=_.EB("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,v=y||u,R.JSC$17295_mainAppPlayer=new ul(v),M.yield(R.JSC$17295_mainAppPlayer.api,2);Q=M.yieldResult;Q.addEventListener("onStateChange",R.JSC$17295_playerStateChangeListener.bind(R));document.addEventListener("yt-page-data-updated",R.JSC$17295_pauseOnNavigation.bind(R));window.addEventListener("state-navigatestart",
R.JSC$17295_pauseOnNavigation.bind(R));_.f$(M)})};
M3.prototype.JSC$17295_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"}UUa(this)};
var UUa=function(R){R.store.dispatch(_.Gw("sfvAudioItemCurrentlyPlayingEntity",W4K,{key:W4K,externalVideoId:R.externalVideoId,sfvAudioItemPlaybackState:R.playbackState,nowPlayingEntityValue:R.nowPlayingEntityValue}))};
M3.prototype.JSC$17295_pauseOnNavigation=function(){var R=this,y,u,v,Q;return _.I(function(M){if(M.nextAddress==1){if(!R.JSC$17295_mainAppPlayer){var K=new _.OL("Error: mainAppPlayer is unavailable",R.JSC$17295_mainAppPlayer);_.dI(K);return M.return()}return M.yield(R.JSC$17295_mainAppPlayer.api,2)}y=M.yieldResult;v=(u=y)==null?void 0:u.getPlayerState();v!==1||(Q=y)!=null&&Q.pauseVideo();_.f$(M)})};
M3.prototype.playVideo=function(R,y,u){var v=this,Q,M;return _.I(function(K){if(K.nextAddress==1)return K.yield((Q=v.JSC$17295_mainAppPlayer)==null?void 0:Q.api,2);M=K.yieldResult;if(!v.JSC$17295_mainAppPlayer||!M){var h=new _.OL("Error: mainAppPlayer is unavailable",v.JSC$17295_mainAppPlayer);_.dI(h);return K.return()}return K.yield(v.JSC$17295_mainAppPlayer.loadVideoWithPlayerVars({videoId:v.externalVideoId,audio_only:"1",start:R/1E3,end:R/1E3+y,player_params:u}),0)})};
M3.prototype.pauseVideo=function(){var R=this,y,u;return _.I(function(v){if(v.nextAddress==1){if(!R.JSC$17295_mainAppPlayer){var Q=new _.OL("Error: mainAppPlayer is unavailable",R.JSC$17295_mainAppPlayer);_.dI(Q);return v.return()}return v.yield(R.JSC$17295_mainAppPlayer.api,2)}y=v.yieldResult;(u=y)==null||u.pauseVideo();_.f$(v)})};
M3.prototype.resolveCommand=function(R){var y=this,u,v,Q,M,K,h,b,N,T,x,B,l,Z,P,k,E,D,z,c;return _.I(function(a){if(a.nextAddress==1)return u=_.e(R,Uw5),Q=(v=u)==null?void 0:v.nowPlayingEntityValue,K=(M=u)==null?void 0:M.externalVideoId,x=Number((T=(h=u)==null?void 0:(b=h.defaultStartPoints)==null?void 0:(N=b[0])==null?void 0:N.offsetMs)!=null?T:"0"),E=Number((k=(B=u)==null?void 0:(l=B.defaultStartPoints)==null?void 0:(Z=l[0])==null?void 0:(P=Z.duration)==null?void 0:P.seconds)!=null?k:"15"),c=(z=
(D=u)==null?void 0:D.playerParams)!=null?z:"",Q&&K?y.JSC$17295_mainAppPlayer?a.jumpTo(2):a.yield(dUa(y),2):a.return();if(a.nextAddress!=6){if(y.nowPlayingEntityValue&&Q===y.nowPlayingEntityValue)return y.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?a.yield(y.pauseVideo(),0):a.yield(y.playVideo(x,E,c),0);y.externalVideoId=K;y.nowPlayingEntityValue=Q;y.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return a.yield(y.playVideo(x,E,c),6)}UUa(y);return a.jumpTo(0)})};
M3[Mn]=[he];var Jo=function(R){this.JSC$17315_commandHandler=R};
_.O(Jo,YQ);Jo.prototype.resolveCommand=function(R,y){var u=this,v,Q,M,K,h;return _.I(function(b){if(b.nextAddress==1)return(v=_.e(R,eqw))?b.yield(_.Bm(),2):b.return();Q=b.yieldResult;if(!Q)return b.return();(M=yBG(Q))?u.JSC$17315_commandHandler.resolveCommand(M,y):(K=_.fo("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),h=_.JU(K),u.JSC$17315_commandHandler.resolveCommand(h));_.f$(b)})};
Jo[Mn]=[_.jX];var VP=function(R){this.JSC$17318_playerPromise=R};
_.O(VP,YQ);VP.prototype.resolveCommand=function(R){var y=this,u,v,Q,M,K;return _.I(function(h){if(h.nextAddress==1){u=_.e(R,i25);if(!u)return h.return();v=u.overlayRenderer;return v?(Q=_.e(v,OQb))?h.yield(y.JSC$17318_playerPromise,3):h.jumpTo(0):h.return()}M=h.yieldResult;M.renderChapterSeekingAnimation(1,_.u7(Q.text),(K=Q.icon)==null?void 0:K.iconType);_.f$(h)})};
VP[Mn]=[_.Np];var iF=function(R){this.store=R};
_.O(iF,YQ);
iF.prototype.resolveCommand=function(R){var y=this,u,v,Q;return _.I(function(M){if(M.nextAddress==1){u=_.e(R,eRK);if(!u)return M.return();v="";(Q=y.store.getState().collabInviteLink)&&u.id===Q.playlistId?v=Q.inviteLinkURL:u.shortUrl&&(v=u.shortUrl);return v?M.yield(navigator.clipboard.writeText(v),3):M.jumpTo(0)}var K={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.fo("COPY_LINK_SUCCESS_TOAST")}}}}};_.ua().resolve(_.jX).resolveCommand(K);_.f$(M)})};
iF[Mn]=[Pp];var Kd=function(R,y){this.innertubeTransportService=R;this.JSC$17328_commandHandler=y};
_.O(Kd,YQ);Kd.prototype.resolveCommand=function(R,y){var u=this,v,Q,M,K,h,b,N,T,x,B;return _.I(function(l){if(l.nextAddress==1)return(v=_.e(R,_.Lt))?l.yield(_.yB(u.innertubeTransportService,R,(Q=y)==null?void 0:Q.form),2):l.return();(M=l.yieldResult)&&M.errorMetadata&&(K=M,h=_.JU(K.error.message),u.JSC$17328_commandHandler.resolveCommand(h));b=M;if((N=b)==null?0:N.actions)for(T=_.V(b.actions),x=T.next();!x.done;x=T.next())B=x.value,u.JSC$17328_commandHandler.resolveCommand(B);_.f$(l)})};
Kd[Mn]=[_.Dj,_.jX];var I6=function(){};
_.O(I6,YQ);I6.prototype.resolveCommand=function(R){var y;return _.I(function(u){y=_.e(R,hRc);if(!y)return u.return();(new lWY(y)).show();_.f$(u)})};_.ho=new _.Jx("PLAYLIST_EDIT_CONTROLLER_TOKEN");var bF=function(R,y,u,v){this.store=R;this.innertubeTransportService=y;this.controller=u;this.JSC$17336_commandHandler=v};
_.O(bF,YQ);
bF.prototype.resolveCommand=function(R,y){var u=this,v,Q,M,K,h,b,N,T,x,B,l,Z,P,k,E,D,z,c,a,L,QG,hz,bO,BW,Zc,xS;return _.I(function(Dc){if(Dc.nextAddress==1){v=_.e(R,_.pt);if(!v)return Dc.return();if(v.clientActions){Q=_.V(v.clientActions);for(M=Q.next();!M.done;M=Q.next())K=M.value,u.JSC$17336_commandHandler.resolveCommand(K);var $S,hL=y==null?void 0:($S=y.form)==null?void 0:$S.element;hL&&_.Ko(hL,"yt-dismissible-item-action",v.clientActions)}return Dc.yield(_.yB(u.innertubeTransportService,R,(h=
y)==null?void 0:h.form),2)}if(b=Dc.yieldResult)b.errorMetadata?(N=b,T=_.JU(N.error.message),u.JSC$17336_commandHandler.resolveCommand(T),"error"in b&&((x=y)==null?0:(B=x.commandController)==null?0:B.onServerError)&&((l=y)==null||(Z=l.commandController)==null||Z.onServerError(R,b))):(P=y)==null||(k=P.commandController)==null||(D=(E=k).onSuccess)==null||D.call(E,R,b);z=b;((c=z)==null?0:c.collaborationInviteLink)&&v.playlistId&&(_.f("web_enable_invite_collaborators_link")||_.f("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
u.store.dispatch(_.iE({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:v.playlistId,inviteLinkUrl:z.collaborationInviteLink}}));((a=z)==null?0:a.redirectEndpoint)&&u.JSC$17336_commandHandler.resolveCommand(z.redirectEndpoint);((L=z)==null?0:(QG=L.newHeader)==null?0:QG.playlistHeaderRenderer)?kTa(u.controller,z.newHeader.playlistHeaderRenderer):((hz=z)==null?0:(bO=hz.newHeader)==null?0:bO.musicEditablePlaylistDetailHeaderRenderer)&&kTa(u.controller,z.newHeader.musicEditablePlaylistDetailHeaderRenderer);
u.controller.playlistVideoListElement&&((BW=z)==null?0:(Zc=BW.playlistEditResults)==null?0:(xS=Zc[0])==null?0:xS.playlistEditVideoAddedResultData)&&((hL=u.controller.playlistVideoListElement)==null||hL.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:z.playlistEditResults[0].playlistEditVideoAddedResultData})));_.f$(Dc)})};
bF[Mn]=[Pp,_.Dj,_.ho,_.jX];var F$=function(R,y){this.controller=R;this.JSC$17346_commandHandler=y};
_.O(F$,YQ);F$.prototype.resolveCommand=function(R,y){var u=this,v,Q,M;return _.I(function(K){v=_.e(R,lQ5);u.controller.showRefreshPill&&((Q=v)==null?0:Q.command)&&(u.JSC$17346_commandHandler.resolveCommand((M=v)==null?void 0:M.command,y),u.controller.showRefreshPill=!1);_.f$(K)})};
F$[Mn]=[_.TU,_.jX];var wP=function(R,y){this.store=R;this.JSC$17350_commandHandler=y||_.lX.instance};
_.O(wP,YQ);wP.prototype.resolveCommand=function(R,y){var u=this,v,Q,M,K,h,b,N,T,x,B;return _.I(function(l){v=_.e(R,$EY);Q=u.store.getState().radioButtonGroup;if((M=v)==null?0:M.command)u.JSC$17350_commandHandler.resolveCommand((K=v)==null?void 0:K.command,y);else if(Q&&((h=v)==null?void 0:h.formId)===Q.currentFormId)for(b=Object.values(Q.commandsMap),N=_.V(b),T=N.next();!T.done;T=N.next())x=T.value,(B=_.Sb(x))&&u.JSC$17350_commandHandler.resolveCommand(B,y);_.f$(l)})};
wP[Mn]=[_.S5];var N3=new _.Jx("USER_PREFS");var T_=function(R){this.JSC$17355_prefCookie=R};
_.O(T_,YQ);T_.prototype.resolveCommand=function(R){var y=this,u;return _.I(function(v){(u=_.e(R,Qqc))&&typeof u.useListView==="boolean"&&(_.Zq(0,155,u.useListView),y.JSC$17355_prefCookie.save());_.f$(v)})};
T_[Mn]=[N3];var o6=function(R){this.JSC$17359_prefCookie=R};
_.O(o6,YQ);o6.prototype.resolveCommand=function(R){var y=this,u,v,Q,M,K;return _.I(function(h){u=_.e(R,FRG);if((v=u)==null||!v.gl)return h.return();Q=u.gl;M={persist_gl:"1",gl:Q};y.JSC$17359_prefCookie.set("gl",Q);y.JSC$17359_prefCookie.save();K=MyT(M);_.z2(K);_.f$(h)})};
o6[Mn]=[N3];var xf=function(R){this.JSC$17363_prefCookie=R};
_.O(xf,YQ);xf.prototype.resolveCommand=function(R){var y=this,u,v;return _.I(function(Q){u=_.e(R,ZIK);if(!u)return Q.return();v=!1;u.flagNum&&typeof u.value==="boolean"?(_.Zq(0,u.flagNum,u.value),v=!0):u.key&&typeof u.stringValue==="string"&&(y.JSC$17363_prefCookie.set(u.key,u.stringValue),v=!0);v&&y.JSC$17363_prefCookie.save();_.f$(Q)})};
xf[Mn]=[N3];var BI=new _.Jx("PREF_STORAGE_PROMISE_TOKEN");var fd=function(R){this.JSC$17367_prefStoragePromise=R};
_.O(fd,YQ);fd.prototype.resolveCommand=function(R){var y=this,u,v;return _.I(function(Q){if(Q.nextAddress==1)return(u=_.e(R,nDc))?Q.yield(y.JSC$17367_prefStoragePromise,2):Q.return();v=Q.yieldResult;return v===void 0||u.key===void 0||u.value===void 0?Q.return():Q.yield(v.set(u.key,u.value),0)})};
fd[Mn]=[BI];var ES8=function(R){this.innertubeTransportService=R};
_.O(ES8,YQ);ES8.prototype.resolveCommand=function(R,y){var u=this,v,Q;return _.I(function(M){(v=_.e(R,_.v0w))&&v&&v.isFirstRequest&&(_.$F("search_overview_answer"),_.qQ("so_rq",void 0,"search_overview_answer"));return M.yield(_.yB(u.innertubeTransportService,R,(Q=y)==null?void 0:Q.form),0)})};
ES8[Mn]=[_.Dj];var $U7=function(){};
_.O($U7,YQ);
$U7.prototype.resolveCommand=function(R){var y,u,v,Q,M,K,h,b,N;return _.I(function(T){y=_.e(R,Jj8);if((u=y)==null?0:u.sectionIdentifier){if(y.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(Q=(v=document.getElementsByTagName(y.sectionIdentifier))==null?void 0:v.item(0))Q.scrollIntoView({behavior:"smooth"}),(M=UkE(Q))&&M.focus({preventScroll:!0});return T.return()}K=document.querySelector("[section-identifier="+y.sectionIdentifier+"]");h=document.querySelector("[section-identifier="+y.referenceSectionIdentifier+
"]");if(!K)return T.return();b=y.verticalScrollOffsetDp?y.verticalScrollOffsetDp:0;h&&(b-=h.offsetTop);window.scrollTo({top:K.offsetTop+b,behavior:"smooth"});(N=UkE(K))&&N.focus({preventScroll:!0})}_.f$(T)})};var e$=function(R){this.JSC$17379_commandHandler=R};
_.O(e$,YQ);
e$.prototype.resolveCommand=function(R){var y=this,u,v,Q,M,K,h,b;return _.I(function(N){if(N.nextAddress==1){u=_.e(R,Zxc);if(!u||!u.imageBytes||!navigator.clipboard)return N.return();if(u.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.dI(Error("Bi")),N.return();_.wY(N,2);Q=(v=u)==null?void 0:v.imageBytes;M=Q.replace(/-/g,"+").replace(/_/g,"/");K=qtT(M);h={};b=[new ClipboardItem((h[K.type]=K,h))];return N.yield(navigator.clipboard.write(b),4)}if(N.nextAddress!=2)return u.successCommand&&
y.JSC$17379_commandHandler.resolveCommand(u.successCommand),_.c5(N,0);_.B$(N);u.errorCommand&&y.JSC$17379_commandHandler.resolveCommand(u.errorCommand);_.f$(N)})};
e$[Mn]=[_.jX];var lF=function(R,y){this.innertubeTransportService=R;this.JSC$17383_commandHandler=y};
_.O(lF,YQ);lF.prototype.resolveCommand=function(R,y){var u=this,v,Q,M,K,h;return _.I(function(b){if(b.nextAddress==1)return(v=_.e(R,Hxg))?b.yield(_.yB(u.innertubeTransportService,R,(Q=y)==null?void 0:Q.form),2):b.return();(M=b.yieldResult)&&M.errorMetadata&&v.onFailureCommand&&u.JSC$17383_commandHandler.resolveCommand(v.onFailureCommand);K=M;((h=K)==null?0:h.shareCommand)&&u.JSC$17383_commandHandler.resolveCommand(K.shareCommand,y);_.f$(b)})};
lF[Mn]=[_.Dj,_.jX];var Od=function(){};
_.O(Od,YQ);Od.prototype.resolveCommand=function(R){var y,u;return _.I(function(v){y=_.e(R,Bqg);if(!y||!navigator.share)return v.return();u={url:y.url};try{return v.return(navigator.share(u))}catch(Q){}_.f$(v)})};var ZB=function(){};
_.O(ZB,YQ);ZB.prototype.resolveCommand=function(){return _.I(function(R){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.f$(R)})};var HI=function(R){this.JSC$17393_navigationConfirmationService=R};
_.O(HI,YQ);HI.prototype.resolveCommand=function(){var R=this;return _.I(function(y){R.JSC$17393_navigationConfirmationService.cancelPendingNavigation();_.f$(y)})};
HI[Mn]=[OM];var nd=function(R){this.JSC$17396_screenManager=R};
_.O(nd,YQ);nd.prototype.resolveCommand=function(R,y){var u=this,v,Q,M,K,h,b,N;return _.I(function(T){Q=(v=y.form)==null?void 0:v.event;K=(M=y.form)==null?void 0:M.element;if(!Q)throw new _.OL("Event not passed in when resolving command");h=_.V(Q.composedPath());for(b=h.next();!b.done;b=h.next())if(N=b.value,N.tagName==="YT-COPY-LINK-RENDERER")return N.copyUrlToClipboard(),K&&_.gW(u.JSC$17396_screenManager,K),T.return();_.f$(T)})};
nd[Mn]=[_.Ej];var G_=function(){this.JSC$17400_miniAppClientDataProvider=_.ua().resolve(_.Cr)};
_.O(G_,YQ);G_.prototype.resolveCommand=function(){var R=this,y,u;return _.I(function(v){if(R.JSC$17400_miniAppClientDataProvider.clientData.has("video_id")){var Q=R.JSC$17400_miniAppClientDataProvider,M=Q.clientData.get("video_id");M&&Q.clientData.delete("video_id");y="https://youtube.com/watch?v="+M;u=Uo(y);if(u===void 0)throw Error("Ci`"+y);_.aK(window,u)}_.f$(v)})};var rP=function(){};
_.O(rP,YQ);rP.prototype.resolveCommand=function(){return _.I(function(R){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.f$(R)})};var PI=function(){};
_.O(PI,YQ);PI.prototype.resolveCommand=function(){var R;return _.I(function(y){if(y.nextAddress==1)return y.yield(_.MHW(window.document.documentElement),2);(R=document.querySelector("mini-app-container-view-model iframe"))&&R.focus();_.f$(y)})};var WI=function(R){this.JSC$17407_navigationConfirmationService=R};
_.O(WI,YQ);
WI.prototype.resolveCommand=function(){var R=this;return _.I(function(y){var u=R.JSC$17407_navigationConfirmationService,v=_.ua().resolve(_.dv),Q;if(((Q=u.navigateParams)==null?void 0:Q.data)!==void 0){var M;_.Pyb(v,u.navigateParams.endpoint,u.navigateParams.data,(M=u.navigateParams.navigationType)!=null?M:1,u.navigateParams.tempData,u.navigateParams.isMiniplayer,void 0,!0);u.navigateParams=void 0;u.customConfirmationCommand=void 0}else u.navigateParams&&(v.navigate(u.navigateParams.endpoint,u.navigateParams.reload,
u.navigateParams.params,u.navigateParams.tempData,u.navigateParams.requestType,u.navigateParams.createScreenConfig,!0),u.navigateParams=void 0,u.customConfirmationCommand=void 0);_.f$(y)})};
WI[Mn]=[OM];var dP=function(){};
_.O(dP,YQ);dP.prototype.resolveCommand=function(){return _.I(function(R){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.f$(R)})};var Ud=function(R){this.JSC$17412_prefStorage=R};
_.O(Ud,YQ);Ud.prototype.resolveCommand=function(){var R=this,y,u;return _.I(function(v){switch(v.nextAddress){case 1:return v.yield(R.JSC$17412_prefStorage,2);case 2:return(y=v.yieldResult)?v.yield(y.set("sfvle",!1),3):v.return();case 3:return v.yield(y.set("sfvles",!0),4);case 4:u=_.O9(),_.Zq(0,203,!1),_.Zq(0,204,!0),u.save(),_.f$(v)}})};
Ud[Mn]=[BI];var kf=function(R){this.JSC$17415_prefStorage=R};
_.O(kf,YQ);kf.prototype.resolveCommand=function(){var R=this,y,u;return _.I(function(v){switch(v.nextAddress){case 1:return v.yield(R.JSC$17415_prefStorage,2);case 2:return(y=v.yieldResult)?v.yield(y.set("sfvle",!0),3):v.return();case 3:return v.yield(y.set("sfvles",!0),4);case 4:u=_.O9(),_.Zq(0,203,!0),_.Zq(0,204,!0),u.save(),_.f$(v)}})};
kf[Mn]=[BI];_.qPV=new _.Jx("SNACKBAR_CONTROLLER_TOKEN");_.XW8=new _.Jx("SHOULD_SHOW_PIVOT_BAR_TOKEN");var Ed=function(R){this.controller=R};
_.O(Ed,YQ);Ed.prototype.resolveCommand=function(R){var y=this,u;return _.I(function(v){u=_.e(R,p1G);if(!u)return v.return();var Q=y.controller;Q.closeSnackbarFn&&Q.closeSnackbarFn();_.f$(v)})};
Ed[Mn]=[_.qPV];var $f=function(R,y){this.controller=R;this.sheetController=y};
_.O($f,YQ);$f.prototype.resolveCommand=function(R,y){var u=this,v,Q,M,K,h,b;return _.I(function(N){v=_.e(R,cn8);if(!v)return N.return();K=Z8o(u.sheetController,(Q=y)==null?void 0:(M=Q.form)==null?void 0:M.element);h=_.e(v.content,jJK);if(!h)return N.return();var T=u.controller,x=h,B=(b=v.animationStyle)!=null?b:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(T.showSnackbarFn)T.showSnackbarFn({snackbarViewModel:x,animationStyle:B,durationMs:v.durationSeconds*1E3,target:K});else throw Error("lj");_.f$(N)})};
$f[Mn]=[_.qPV,_.UM];var q3=function(){};
_.O(q3,YQ);q3.prototype.resolveCommand=function(R){var y;return _.I(function(u){y=_.e(R,HIV);if(!y||typeof y.key!=="string"||typeof y.value!=="string")return u.return();window.localStorage.setItem(y.key,y.value);_.f$(u)})};var X$=function(R){this.store=R};
_.O(X$,YQ);X$.prototype.resolveCommand=function(R){var y=this,u;return _.I(function(v){u=_.e(R,oA8);if(!u||!u.stepId||!u.token)return v.return();y.store.dispatch(Owg({stepId:u.stepId,token:u.token,isSelected:!1}));_.f$(v)})};
X$[Mn]=[Pp];var mY=function(R,y,u){this.innertubeTransportService=R;this.store=y;this.JSC$17434_screenManager=u};
_.O(mY,YQ);
mY.prototype.resolveCommand=function(R){var y=this,u,v,Q,M,K,h,b,N,T,x,B,l,Z,P,k,E,D,z,c,a,L,QG,hz;return _.I(function(bO){u=_.e(R,xgK);if(!u||(v=u.stepIds)==null||!v.length)return bO.return();Q=y.store.getState().talkToRecs;M=[];K=[];h=_.V(u.stepIds);for(b=h.next();!b.done;b=h.next())for(N=b.value,T=void 0,(x=(T=Q.stepStates[N])==null?void 0:T.userQuery)&&K.push({userQuery:x.userQuery,userQueryToken:x.token}),B=void 0,l=(B=Q.stepStates[N])==null?void 0:B.selectionStates,Z=_.V(Object.entries(l)),P=
Z.next();!P.done;P=Z.next())k=P.value,E=_.V(k),D=E.next().value,z=E.next().value,c=D,a=z,a.isSelected&&M.push(c);L={selectedChipTokens:M,userQueries:K,submittedStepIds:u.stepIds};QG={browseTalk2recsFormData:L};u.browseEndpoint?(hz=R,_.Dr(hz,_.HV,u.browseEndpoint)):u.command&&(hz=u.command);return hz?bO.yield(_.yB(y.innertubeTransportService,hz,{formData:QG,disableCache:!0}).then(function(BW){(BW==null?0:BW.trackingParams)&&y.JSC$17434_screenManager.graftServerVe(BW==null?void 0:BW.trackingParams)}),
0):bO.return()})};
mY[Mn]=[_.Dj,Pp,_.Ej];var Ao=function(R){this.store=R};
_.O(Ao,YQ);Ao.prototype.resolveCommand=function(R){var y=this,u;return _.I(function(v){u=_.e(R,TeT);if(!u||!u.stepId||!u.token)return v.return();y.store.dispatch(Owg({stepId:u.stepId,token:u.token,isSelected:!0}));_.f$(v)})};
Ao[Mn]=[Pp];var DB=function(R){this.store=R};
_.O(DB,YQ);DB.prototype.resolveCommand=function(R,y){var u=this,v,Q,M,K,h;return _.I(function(b){v=_.e(R,BKb);if(!v||!v.stepId||!v.userQueryToken)return b.return();h=(K=(Q=y)==null?void 0:(M=Q.form)==null?void 0:M.userQuery)!=null?K:"";u.store.dispatch(_.iE({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:v.stepId,userQueryToken:v.userQueryToken,userQuery:h}}));_.f$(b)})};
DB[Mn]=[Pp];_.mUm=new _.Jx("TIMELY_ACTIONS_CONTROLLER_TOKEN");var pd=function(R){this.controller=R};
_.O(pd,YQ);pd.prototype.resolveCommand=function(R){var y=this,u,v,Q,M;return _.I(function(K){u=_.e(R,QQL);if(!u)return K.return();v=u;Q=v.id;M=v.isVisible;if(Q===void 0||M===void 0)return K.return();var h;(h=y.controller.timelyActionsMap.get(Q))==null||h(Q,M);_.f$(K)})};
pd[Mn]=[_.mUm];var Azg=function(){this.timelyActionsMap=new Map};var to=function(R){this.JSC$17461_commandHandler=R};
_.O(to,YQ);to.prototype.resolveCommand=function(R){var y=this,u,v,Q,M,K;return _.I(function(h){u=_.e(R,_.ru);if(!u)return h.return();M=(v=u.item)==null?void 0:(Q=v.notificationTextRenderer)==null?void 0:Q.successResponseText;if(!M)return h.return();K=_.MB(M);y.JSC$17461_commandHandler.resolveCommand(K);_.f$(h)})};
to[Mn]=[_.jX];var cI=function(R,y){this.innertubeTransportService=R;this.JSC$17466_playerApiPromise=y};
_.O(cI,YQ);
cI.prototype.resolveCommand=function(R){var y=this,u,v,Q,M,K,h,b,N,T;return _.I(function(x){if(x.nextAddress==1)return x.yield(y.JSC$17466_playerApiPromise,2);u=x.yieldResult;v=u.getOption("captions","track");Q=Object.assign({},_.e(R,_.YRi));(K=(M=u.getVideoData())==null?void 0:M.video_id)?Q.externalVideoId=K:_.pG(Error("Di"));if((h=v)==null?0:h.languageCode)Q.languageCode=v.languageCode;if((b=v)==null?0:b.kind)Q.kind=v.kind;if((N=v)==null?0:N.name)Q.name=v.name;T=Object.assign({},R,{getTranscriptEndpoint:Q});return x.yield(_.yB(y.innertubeTransportService,
T),0)})};
cI[Mn]=[_.Dj,_.Np];var a6=function(){};
_.O(a6,YQ);a6.prototype.resolveCommand=function(R){var y,u,v,Q,M,K,h,b;return _.I(function(N){y=_.e(R,EDc);if((u=y)==null||!u.paramKeyValuePairs)return N.return();v=window.location.href;Q=_.V(y.paramKeyValuePairs);for(M=Q.next();!M.done;M=Q.next())K=M.value,K.key&&K.value&&(h={},v=_.YB(v,(h[K.key]=K.value,h)));b=_.ua().resolve(_.f_);_.BC(b,v);_.f$(N)})};var S$=function(R,y){this.JSC$17473_commandHandler=R;this.innertubeTransportService=y};
_.O(S$,YQ);
S$.prototype.resolveCommand=function(R,y){var u=this,v,Q,M,K,h,b,N,T,x,B,l,Z,P,k,E,D,z;return _.I(function(c){switch(c.nextAddress){case 1:return(M=(v=y)==null?void 0:(Q=v.form)==null?void 0:Q.element)&&_.sz(M),K=_.O9().get("hl"),h="",_.wY(c,2),c.yield(jDS(K),4);case 4:h=c.yieldResult;_.c5(c,3);break;case 2:return _.B$(c),M&&_.zx(M),_.dI(Error("Fi"),"ERROR"),c.return();case 3:b=_.e(R,dJg);if(!b)return M&&_.zx(M),c.return();(x=(N=b.commerceActionConfig)==null?void 0:(T=N.commandLifeCycleConfig)==null?
void 0:T.onStartCommand)&&u.JSC$17473_commandHandler.resolveCommand(x);return c.yield(_.yB(u.innertubeTransportService,R,{client_data:{paymentsClientToken:{token:h}}}),5);case 5:(B=c.yieldResult)?(M&&_.zx(M),((k=B)==null?0:k.command)&&u.JSC$17473_commandHandler.resolveCommand(B.command),(z=(E=b.commerceActionConfig)==null?void 0:(D=E.commandLifeCycleConfig)==null?void 0:D.onSuccessCommand)&&u.JSC$17473_commandHandler.resolveCommand(z)):(M&&_.zx(M),_.dI(Error("Gi")),(P=(l=b.commerceActionConfig)==
null?void 0:(Z=l.commandLifeCycleConfig)==null?void 0:Z.onFailureCommand)&&u.JSC$17473_commandHandler.resolveCommand(P)),_.f$(c)}})};
S$[Mn]=[_.jX,_.Dj];var Yf=function(R,y,u){this.store=R;this.JSC$17489_commandHandler=y;this.innertubeTransportService=u};
_.O(Yf,YQ);
Yf.prototype.resolveCommand=function(R,y){var u=this,v,Q,M,K,h,b,N,T,x;return _.I(function(B){v=_.e(R,UJG);Q=v.googlePaymentPayload;v.onStartCommand&&u.JSC$17489_commandHandler.resolveCommand(v.onStartCommand);M=Q.encryptedPurchaseParams;K=Q.ypcLogWalletAnalyticDataEndpoint;h=v.serializedTransactionFlowLoggingParams;b=Q.serializedPaymentsClientParams;N=v.ypcCujContext;x=V9z(u.innertubeTransportService,(T=y)==null?void 0:T.form,M,K,h,b,N);return B.return(x.then(function(l){M9T(y==null?void 0:y.form,
!1);var Z=u.store,P=u.JSC$17489_commandHandler,k=l.integratorData;k==null||k===""||l.error!=null?(String(l.error)==="-1"&&v.onDismissCommand?P.resolveCommand(v.onDismissCommand):String(l.error)!=="-1"&&v.onFailureCommand&&P.resolveCommand(v.onFailureCommand),String(l.error)!=="-1"&&String(l.error)!=="132"&&_.dI(Error("Hi"),"ERROR")):(v.googlePaymentEntityKey&&Z.dispatch(_.Gw("commerceAcquisitionClientPayloadEntity",v.googlePaymentEntityKey,{key:v.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:k,
fundsGuaranteeCallbackClientData:l.integratorClientCallbackData}}})),v.onSuccessCommand&&P.resolveCommand(v.onSuccessCommand));_.NQ()},function(l){M9T(y==null?void 0:y.form,!1);
_.dI(l,"ERROR");v.onFailureCommand&&u.JSC$17489_commandHandler.resolveCommand(v.onFailureCommand)}))})};
Yf[Mn]=[he,_.jX,_.Dj];var Ld=function(R,y){this.JSC$17493_commandHandler=R;this.purchaseManager=y};
_.O(Ld,YQ);
Ld.prototype.resolveCommand=function(R){var y=this,u,v,Q,M,K,h,b,N,T;return _.I(function(x){u=_.e(R,kii);((v=u)==null?0:(Q=v.commandLifeCycleConfig)==null?0:Q.onStartCommand)&&y.JSC$17493_commandHandler.resolveCommand(u.commandLifeCycleConfig.onStartCommand);if(!((M=u)==null?0:(K=M.googlePaymentPurchaseManagerPayload)==null?0:K.securePayloadBytes))return _.dI(Error("Ii"),"ERROR"),x.return();h=$BL(_.zT(u.googlePaymentPurchaseManagerPayload.securePayloadBytes));b=_.O9().get("hl");N=_.uD();m_L(h.serialize(),
b,function(B){N.resolve(B)},function(B){N.reject(B)},N.resolve);
T=N.promise;return x.return(T.then(function(B){if(B)if(B==null?0:B.errorCode){_.dI(Error("Ji`"+B.errorCode),"ERROR");var l,Z;((l=u)==null?0:(Z=l.commandLifeCycleConfig)==null?0:Z.onFailureCommand)&&y.JSC$17493_commandHandler.resolveCommand(u.commandLifeCycleConfig.onFailureCommand)}else if(B==null?0:B.isCancelled){var P,k;((P=u)==null?0:(k=P.commandLifeCycleConfig)==null?0:k.onCancelCommand)&&y.JSC$17493_commandHandler.resolveCommand(u.commandLifeCycleConfig.onCancelCommand)}else{var E,D;((E=u)==
null?0:(D=E.commandLifeCycleConfig)==null?0:D.onSuccessCommand)&&y.JSC$17493_commandHandler.resolveCommand(u.commandLifeCycleConfig.onSuccessCommand)}},function(B){_.dI(B,"ERROR");
var l,Z;((l=u)==null?0:(Z=l.commandLifeCycleConfig)==null?0:Z.onFailureCommand)&&y.JSC$17493_commandHandler.resolveCommand(u.commandLifeCycleConfig.onFailureCommand)}))})};
Ld[Mn]=[_.jX,AyK];var DUI=function(R,y){this.JSC$17501_commandHandler=R;this.commandAllowlistOverride=y;var u;this.commandAllowlist=(u=this.commandAllowlistOverride)!=null?u:QB};
DUI.prototype.handleResponse=function(R,y,u){var v,Q=y==null?void 0:(v=y.config)==null?void 0:v.command;if(!Q||this.commandAllowlist.some(function(M){return!!_.e(Q,M)})){y=void 0;
u!==void 0&&(y={form:{element:u}});R.onResponseReceivedCommand&&this.JSC$17501_commandHandler.resolveCommand(R.onResponseReceivedCommand,y);R.onResponseReceivedAction&&this.JSC$17501_commandHandler.resolveCommand(R.onResponseReceivedAction,y);R.onResponseReceivedEndpoint&&this.JSC$17501_commandHandler.resolveCommand(R.onResponseReceivedEndpoint,y);R.command&&this.JSC$17501_commandHandler.resolveCommand(R.command,y);if(R.onResponseReceivedCommands)for(u=_.V(R.onResponseReceivedCommands),v=u.next();!v.done;v=
u.next())this.JSC$17501_commandHandler.resolveCommand(v.value,y);if(R.onResponseReceivedActions)for(u=_.V(R.onResponseReceivedActions),v=u.next();!v.done;v=u.next())this.JSC$17501_commandHandler.resolveCommand(v.value,y);if(R.onResponseReceivedEndpoints)for(u=_.V(R.onResponseReceivedEndpoints),v=u.next();!v.done;v=u.next())this.JSC$17501_commandHandler.resolveCommand(v.value,y);if(R.actions)for(R=_.V(R.actions),u=R.next();!u.done;u=R.next())this.JSC$17501_commandHandler.resolveCommand(u.value,y)}};
DUI[Mn]=[_.jX,_.yN(UaU)];var pW7=new _.Jx("INNERTUBE_TOKEN_SERVICE");var tvI=new _.Jx("SCHEDULER_TOKEN");var czJ=function(R){this.scheduler=R;R={};this.tokenMap=(R.app={},R.user={},R)};
czJ.prototype.handleResponse=function(R,y){if(!y)throw Error("Ki");var u;if(R=(u=R.responseContext)==null?void 0:u.innertubeTokenJar){if(R.appTokens){var v,Q,M;u=(v=y.innerTubeRequest.context)==null?void 0:(Q=v.request)==null?void 0:(M=Q.innertubeTokenJar)==null?void 0:M.appTokens;acP(this,R.appTokens,this.tokenMap.app,u)}if(R.userTokens){var K,h,b;y=(K=y.innerTubeRequest.context)==null?void 0:(h=K.request)==null?void 0:(b=h.innertubeTokenJar)==null?void 0:b.userTokens;acP(this,R.userTokens,this.tokenMap.user,
y)}}};
czJ.prototype.processContext=function(R){R.request||(R.request={});var y=Object.keys(this.tokenMap.app).length,u=Object.keys(this.tokenMap.user).length;if(y||u)R.request.innertubeTokenJar={},y&&(R.request.innertubeTokenJar.appTokens=[].concat(_.P$(Object.values(this.tokenMap.app).flat()))),u&&(R.request.innertubeTokenJar.userTokens=[].concat(_.P$(Object.values(this.tokenMap.user).flat())))};
var acP=function(R,y,u,v){y=_.V(y);for(var Q=y.next(),M={};!Q.done;M={token$jscomp$138:void 0},Q=y.next()){M.token$jscomp$138=Q.value;if(M.token$jscomp$138.type===void 0)throw new _.OL("InnerTube token has no type",M.token$jscomp$138);if(M.token$jscomp$138.clearTokens)u[M.token$jscomp$138.type]=[];else if(M.token$jscomp$138.value!==void 0){u[M.token$jscomp$138.type]||(u[M.token$jscomp$138.type]=[]);if(v!==void 0&&v.length){Q=_.V(v);for(var K=Q.next(),h={};!K.done;h={requestToken:void 0},K=Q.next())h.requestToken=
K.value,K=u[M.token$jscomp$138.type].findIndex(function(b){return function(N){return N===b.requestToken||(0,_.Ps.equals)(N,b.requestToken)}}(h)),K>-1&&u[M.token$jscomp$138.type].splice(K,1)}u[M.token$jscomp$138.type].push(M.token$jscomp$138);
M.token$jscomp$138.maxAgeSeconds&&Number(M.token$jscomp$138.maxAgeSeconds)>0&&R.scheduler.addLowPriorityJob(function(b){return function(){var N=u[b.token$jscomp$138.type].indexOf(b.token$jscomp$138);N>-1&&u[b.token$jscomp$138.type].splice(N,1)}}(M),Number(M.token$jscomp$138.maxAgeSeconds)*1E3)}else throw new _.OL("InnerTube token has no value",M.token$jscomp$138);
}};
czJ[Mn]=[tvI];var SP7=new _.Jx("LOCAL_INNERTUBE_ROUTER_TOKEN"),YP7=new _.Jx("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var sd=function(R){this.serviceMap=R};
sd.prototype.shouldPreferLocalResponse=function(R,y){return(R=L4H(this,R))?R.shouldPreferLocalResponse(y):!1};
sd.prototype.localInnertubeResponse=function(R,y){var u=this,v;return _.I(function(Q){return(v=L4H(u,R))?Q.return(v.localInnertubeResponse(y)):Q.return(Promise.reject(Error("Li")))})};
sd.prototype.canProvideFallbackResponse=function(R,y){return(R=L4H(this,R))?R.canProvideFallbackResponse(y):!1};
sd.prototype.localFallbackInnertubeResponse=function(R,y){var u=this,v;return _.I(function(Q){return(v=L4H(u,R))?Q.return(v.localFallbackInnertubeResponse(y)):Q.return(Promise.reject(Error("Li")))})};
var L4H=function(R,y){y=_.Fq(y);return y?(R=R.serviceMap[y])?R:null:null};
sd[Mn]=[YP7];var PZ=function(){};
PZ.prototype.shouldPreferLocalResponse=function(){return!1};
PZ.prototype.localInnertubeResponse=function(){return _.I(function(R){return R.return(Promise.reject(Error("Mi")))})};
PZ.prototype.canProvideFallbackResponse=function(){return!0};
PZ.prototype.localFallbackInnertubeResponse=function(){var R,y,u;return _.I(function(v){R=P2("CLOSE_POPUP");y={openPopupAction:K1v()};u={actions:[R,y]};return v.return(u)})};var VNW=function(R,y){this.JSC$17551_upliftPromise=R;this.store=y};
_.J=VNW.prototype;_.J.shouldPreferLocalResponse=function(R){var y=R.videoId,u;if(u=y)u=Ycc(this.store.getState().entities,R.videoId);return u&&LEE(this.store.getState().entities,y)?h0W(this.store.getState().entities,R.playlistId):!1};
_.J.localInnertubeResponse=function(R){var y=this,u;return _.I(function(v){return(u=y.getPlayerResponse(R))?v.return(Promise.resolve(u)):v.return(Promise.reject(Error("Ni")))})};
_.J.canProvideFallbackResponse=function(R){return!!R.videoId};
_.J.localFallbackInnertubeResponse=function(R){var y=this,u;return _.I(function(v){if(v.nextAddress==1)return v.yield(y.JSC$17551_upliftPromise,2);u=y.getPlayerResponse(R);var Q;u?Q=v.return(Promise.resolve(u)):Q=rN(y.store.getState().entities,R.videoId)?v.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Mq(_.fo("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:l_W()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
v.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Mq(_.fo("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:eKT()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return Q})};
_.J.getPlayerResponse=function(R){return fXS(this.store.getState().entities,R.videoId)};var rX=function(R,y){this.localPlayerService=R;this.localWatchNextService=y};
rX.prototype.shouldPreferLocalResponse=function(R){var y=R.playerRequest;R=R.watchNextRequest;return!!(y&&this.localPlayerService.shouldPreferLocalResponse(y)&&R&&this.localWatchNextService.shouldPreferLocalResponse(R))};
rX.prototype.localInnertubeResponse=function(R){var y=this,u,v,Q,M;return _.I(function(K){if(K.nextAddress==1){u=R.playerRequest;v=R.watchNextRequest;if(!u||!v)throw new _.OL("Missing streaming request",R);return K.yield(y.localPlayerService.localInnertubeResponse(u),2)}if(K.nextAddress!=3)return Q=K.yieldResult,K.yield(y.localWatchNextService.localInnertubeResponse(v),3);M=K.yieldResult;return K.return({playerResponse:Q,watchNextResponse:M})})};
rX.prototype.canProvideFallbackResponse=function(R){var y=R.playerRequest;R=R.watchNextRequest;return!!(y&&this.localPlayerService.canProvideFallbackResponse(y)&&R&&this.localWatchNextService.canProvideFallbackResponse(R))};
rX.prototype.localFallbackInnertubeResponse=function(R){var y=this,u,v,Q,M;return _.I(function(K){if(K.nextAddress==1)return u=R.playerRequest,v=R.watchNextRequest,u&&v?K.yield(y.localPlayerService.localFallbackInnertubeResponse(u),2):K.return(Promise.reject(new _.OL("Missing streaming request",R)));if(K.nextAddress!=3)return Q=K.yieldResult,K.yield(y.localWatchNextService.localFallbackInnertubeResponse(v),3);M=K.yieldResult;return K.return({playerResponse:Q,watchNextResponse:M})})};var l1=function(R){this.JSC$17561_persistentStorePromiseAccessor=R};
l1.prototype.shouldPreferLocalResponse=function(){return!1};
l1.prototype.localInnertubeResponse=function(){return _.I(function(R){return R.return(Promise.reject(Error("Oi")))})};
l1.prototype.canProvideFallbackResponse=function(){return!0};
l1.prototype.localFallbackInnertubeResponse=function(){var R=this,y,u;return _.I(function(v){return v.nextAddress==1?v.yield(R.JSC$17561_persistentStorePromiseAccessor(),2):v.nextAddress!=3?(y=v.yieldResult)?v.yield(y.get("service:guide:fallback"),3):v.return(Promise.reject(Error("Pi"))):(u=v.yieldResult)&&_.KR(u)?v.return(bP4(_.KR(u))):v.return(Promise.reject(Error("Qi")))})};var WZ=function(){};
WZ.prototype.shouldPreferLocalResponse=function(){return!1};
WZ.prototype.localInnertubeResponse=function(){return _.I(function(R){return R.return(Promise.reject(Error("Ri")))})};
WZ.prototype.canProvideFallbackResponse=function(){return!0};
WZ.prototype.localFallbackInnertubeResponse=function(){var R,y,u;return _.I(function(v){R=P2("CLOSE_POPUP");y={openPopupAction:K1v()};u={actions:[R,y]};return v.return(u)})};var eV=function(){this.urlMap=sLa;this.fallbackCommand=_.nx};
eV.prototype.shouldPreferLocalResponse=function(R){return(R=R.url)?!!zT8(this,R):!1};
eV.prototype.localInnertubeResponse=function(R){var y=this,u;return _.I(function(v){return(u=R.url)?v.return(gSm(R,zT8(y,u))):v.return(Promise.reject(Error("Si")))})};
eV.prototype.canProvideFallbackResponse=function(){return!0};
eV.prototype.localFallbackInnertubeResponse=function(R){var y=this,u,v,Q,M,K,h,b;return _.I(function(N){u=R.url;if(!u)return N.return(gSm(R,y.fallbackCommand));if(v=zT8(y,u))return N.return(gSm(R,v));Q=void 0;M=_.Fq(u);M==="/watch"&&(K=_.AD(u,"v"))&&(b=(h=_.AD(u,"list"))!=null?h:void 0,Q=_.j6(K,b));Q||(Q=y.fallbackCommand);return N.return(gSm(R,Q))})};
var zT8=function(R,y){if(y)return R.urlMap[_.aR(y)]},gSm=function(R,y){y&&R.parentTrackingParams&&(y.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:R.parentTrackingParams}},y.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:y})};var nR=function(R,y,u){this.JSC$17571_upliftPromise=R;this.store=y;this.JSC$17571_persistentStorePromiseAccessor=u};
nR.prototype.shouldPreferLocalResponse=function(){return!1};
nR.prototype.localInnertubeResponse=function(){return _.I(function(R){return R.return(Promise.reject(Error("Ti")))})};
nR.prototype.canProvideFallbackResponse=function(){return!0};
nR.prototype.localFallbackInnertubeResponse=function(){var R=this;return _.I(function(y){return y.return(CO8(R))})};
var CO8=function(R){var y,u;return _.I(function(v){if(v.nextAddress==1)return v.yield(i1(R.JSC$17571_upliftPromise,R.store),2);y=v.yieldResult;u={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[IJv(y)]}}}};return v.return(RcI(R,u))})},RcI=function(R,y){var u,v;
return _.I(function(Q){if(Q.nextAddress==1)return Q.yield(R.JSC$17571_persistentStorePromiseAccessor(),2);if(Q.nextAddress!=3)return u=Q.yieldResult,Q.yield(I2(u),3);v=Q.yieldResult;return Q.return({responseContext:{},contents:y,topbar:v})})};var BZ=function(R,y,u){this.JSC$17578_upliftPromise=R;this.store=y;this.JSC$17578_persistentStorePromiseAccessor=u};
BZ.prototype.shouldPreferLocalResponse=function(R){var y=R.videoId;return y&&Ycc(this.store.getState().entities,y)&&LEE(this.store.getState().entities,y)?h0W(this.store.getState().entities,R.playlistId):!1};
BZ.prototype.localInnertubeResponse=function(R){var y=this,u,v;return _.I(function(Q){if(Q.nextAddress==1)return(u=R.videoId)?Q.yield(y.JSC$17578_upliftPromise,2):Q.return(Promise.reject(Error("Ui")));if(Q.nextAddress!=3)return Q.yield(yLo(y,R,u),3);v=Q.yieldResult;return Q.return(u5Z(y,v,u))})};
BZ.prototype.canProvideFallbackResponse=function(R){return R.videoId?!0:!1};
BZ.prototype.localFallbackInnertubeResponse=function(R){var y=this,u,v,Q,M;return _.I(function(K){switch(K.nextAddress){case 1:return(u=R.videoId)?K.yield(y.JSC$17578_upliftPromise,2):K.return(Promise.reject(Error("Ui")));case 2:return K.yield(yLo(y,R,u),3);case 3:v=K.yieldResult;if(rN(y.store.getState().entities,u)){K.jumpTo(4);break}return K.yield(i1(y.JSC$17578_upliftPromise,y.store),5);case 5:return Q=K.yieldResult,K.return(v8H(v,Q));case 4:return Ycc(y.store.getState().entities,u)&&LEE(y.store.getState().entities,
u)?K.return(u5Z(y,v,u)):(M={title:_.Mq(_.fo("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:l_W()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},K.return(v8H(v,M)))}})};
var yLo=function(R,y,u){var v,Q,M,K,h;return _.I(function(b){if(b.nextAddress==1)return v=y.playlistId,Q=_.j6(u,v),b.yield(R.JSC$17578_persistentStorePromiseAccessor(),2);if(b.nextAddress!=3)return M=b.yieldResult,b.yield(I2(M),3);K=b.yieldResult;h={responseContext:{},currentVideoEndpoint:Q,topbar:K};return b.return(h)})},u5Z=function(R,y,u){if(R=rN(R.store.getState().entities,u)){var v;
u=R.videoEntity;var Q,M={title:JN(u.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.Vw((v=u.localizedStrings)==null?void 0:v.viewCount),viewCount:_.Vw((Q=u.localizedStrings)==null?void 0:Q.viewCount)}}};u.publishedTimestampMillis&&(M.dateText=_.Vw(K$G(new Date(Number(u.publishedTimestampMillis)))));v={videoPrimaryInfoRenderer:M};Q=R.videoEntity;R=R.channelEntity;R={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:JN(_.fo("SHOW_MORE",void 0,"Show more")),
showLessText:JN(_.fo("SHOW_LESS",void 0,"Show less")),description:Q.formattedDescription,owner:{videoOwnerRenderer:{title:JN(R.title),thumbnail:R.avatar}}}};y.contents={twoColumnWatchNextResults:{results:{results:{contents:[v,R]}}}}}return y},v8H=function(R,y){R.contents={singleColumnWatchNextResults:{results:{results:{contents:[IJv(y)]}}}};
return R};var GK=function(R,y,u){this.JSC$17583_upliftPromise=R;this.store=y;this.JSC$17583_persistentStorePromiseAccessor=u};
GK.prototype.shouldPreferLocalResponse=function(){return!1};
GK.prototype.localInnertubeResponse=function(){return _.I(function(R){return R.return(Promise.reject(Error("Vi")))})};
GK.prototype.canProvideFallbackResponse=function(){return!0};
GK.prototype.localFallbackInnertubeResponse=function(){var R=this,y,u,v,Q;return _.I(function(M){switch(M.nextAddress){case 1:return M.yield(R.JSC$17583_persistentStorePromiseAccessor(),2);case 2:return y=M.yieldResult,M.yield(I2(y),3);case 3:return u=M.yieldResult,v={responseContext:{},topbar:u},M.yield(R.JSC$17583_upliftPromise,4);case 4:return M.yield(i1(R.JSC$17583_upliftPromise,R.store),5);case 5:return Q=M.yieldResult,v.watchStatus={backgroundPromoRenderer:Q},M.return(v)}})};var Qbm=new _.Jx("ENDPOINT_MAP");var jbM=function(){var R=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return R.sequenceMap}}},HdT=function(R,y,u){var v,Q=(v=y.config)==null?void 0:v.sequenceStrategy;
if(!Q)return u();R.sequenceMap.has(Q.sequenceKey)||R.sequenceMap.set(Q.sequenceKey,[]);R=R.sequenceMap.get(Q.sequenceKey);switch(Q.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return Mg7(R,y,u);case "REQUEST_SEQUENCE_TYPE_REPLACE":return JLm(R,y,u);default:throw new _.OL("Request could not be sequenced",y);}},Mg7=function(R,y,u){var v,Q,M;
return _.I(function(K){R.length>0?(Q=R[R.length-1],v=Q.responsePromise.then(function(){return u()})):v=u();
M={request:y,responsePromise:v};R.push(M);VgV(R,M);return K.return(M.responsePromise)})},JLm=function(R,y,u){u=u();
if(R.length>0)for(var v=_.V(R),Q=v.next();!Q.done;Q=v.next())Q.value.responsePromise=u;var M={request:y,responsePromise:u};R.push(M);VgV(R,M);return Promise.resolve().then(function(){return R.indexOf(M)>0?M.responsePromise.then(function(K){return Object.assign({},K,{sequenceMetaData:{skipProcessing:!0}})}):M.responsePromise})},VgV=function(R,y){y.responsePromise.then(function(){var u=R.indexOf(y);
u>-1&&R.splice(u,1)})};var iYH=new _.Jx("REQUEST_SEQUENCING");var z_=function(){};
_.O(z_,xX);z_.prototype.getApiPaths=function(){return[]};
z_.prototype.getExtension=function(R){return _.e(R,mWc)};
z_.prototype.JSC$13017_buildRequest=function(R,y){R.recaptchaToken=y.recaptchaToken};
z_.prototype.getApiUrl=function(){return"/das_captcha"};var gP=function(){};
_.O(gP,xX);gP.prototype.getApiPaths=function(){return Pq5};
gP.prototype.getExtension=function(R){return _.e(R,FFG)};
gP.prototype.JSC$13017_buildRequest=function(R,y,u){u=u===void 0?{}:u;y.createBackstagePostParams&&(R.createBackstagePostParams=y.createBackstagePostParams);u.comment_text&&(R.commentText=u.comment_text);if(u.attached_video_id)R.videoAttachment={videoId:u.attached_video_id};else if(u.image_poll_options)R.pollAttachmentData={options:u.image_poll_options};else if(u.poll_options)R.pollAttachment={choices:u.poll_options};else if(u.quiz_options)R.quizAttachmentData={options:u.quiz_options};else if(u.image_blob_id)R.imageAttachment=
{encryptedBlobId:u.image_blob_id},u.source_video_id&&(R.imageAttachment.sourceExternalVideoId=u.source_video_id),u.image_preview_coordinates&&(R.imageAttachment.previewCoordinates=JSON.parse(u.image_preview_coordinates));else if(u.images_data)R.imagesAttachment={imagesData:u.images_data};else if(u.clip_external_video_id!==void 0||u.clip_offset_ms!==void 0||u.clip_duration_ms!==void 0){var v,Q,M,K,h;R.clipAttachment={externalVideoId:(M=u.clip_external_video_id)!=null?M:"",offsetMs:(K=(v=u.clip_offset_ms)==
null?void 0:v.toString())!=null?K:"",durationMs:(h=(Q=u.clip_duration_ms)==null?void 0:Q.toString())!=null?h:""}}else u.shared_post_id&&(R.sharedPostAttachment={postId:u.shared_post_id});u.tagged_video_id&&(R.postCreationData={taggedVideoId:u.tagged_video_id});u.access_restrictions&&(typeof u.access_restrictions==="number"&&(y=u.access_restrictions,R.accessRestrictions={restriction:y!==1&&y===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof u.access_restrictions==="string"&&
(R.accessRestrictionsParams=u.access_restrictions));u.scheduled_publish_time_sec&&(R.scheduledPublishTimeSec=u.scheduled_publish_time_sec.toString())};var Cd=function(){};
_.O(Cd,xX);Cd.prototype.getApiPaths=function(){return qIi};
Cd.prototype.getExtension=function(R){return _.e(R,WEG)};
Cd.prototype.JSC$13017_buildRequest=function(R,y,u){u=u===void 0?{}:u;y.decorateMessageParams&&(R.params=y.decorateMessageParams);u.text&&(R.text=u.text)};var R0=function(){};
_.O(R0,xX);R0.prototype.getApiPaths=function(){return QaT};
R0.prototype.getExtension=function(R){return _.e(R,wcb)};
R0.prototype.JSC$13017_buildRequest=function(R,y,u){u=u===void 0?{}:u;u.video_id&&(R.videoId=u.video_id)};var yK=function(){};
_.O(yK,xX);yK.prototype.getApiPaths=function(){return i_5};
yK.prototype.getExtension=function(R){return _.e(R,_.xF)};
yK.prototype.JSC$13017_buildRequest=function(R,y,u){u.suggestions_query&&(R.input=u.suggestions_query)};var uR=function(){};
_.O(uR,xX);uR.prototype.getApiPaths=function(){return D$g};
uR.prototype.getExtension=function(R){return _.e(R,NKT)};
uR.prototype.JSC$13017_buildRequest=function(R,y,u){u.comment_text!==void 0&&(R.commentText=u.comment_text);u.scheduled_publish_time_sec&&(R.scheduledPublishTimeSec=u.scheduled_publish_time_sec.toString());R.updateBackstagePostParams=y.updateBackstagePostParams};var vL=function(){};
_.O(vL,xX);vL.prototype.getApiPaths=function(){return vZ};
vL.prototype.getExtension=function(R){return _.e(R,_.Lh)};
vL.prototype.JSC$13017_buildRequest=function(R,y,u){u.formData&&(R.formData=u.formData);y.token?R.continuation=y.token:y.continuationTokenKey&&(u=_.Qe().getState(),y=_.TI(u.entities,"continuationTokenEntity",y.continuationTokenKey))&&(R.continuation=String(y.continuationToken))};
var KV8=function(){};
_.O(KV8,xX);_.J=KV8.prototype;_.J.getApiPaths=function(){return vZ};
_.J.getExtension=function(R){return _.e(R,_.HV)};
_.J.isNavigationCommand=function(){return!0};
_.J.JSC$13024_getStoreKey=function(R){if((R=this.getExtension(R))&&R.browseId){var y={browseId:R.browseId};R.browseEndpointContextSupportedConfigs&&(y.browseEndpointContextSupportedConfigs=JSON.stringify(R.browseEndpointContextSupportedConfigs));R.params&&(y.params=R.params);R.query&&(y.query=R.query);return _.sf("browse",y)}};
_.J.JSC$13017_buildRequest=function(R,y,u){y.browseId&&(R.browseId=y.browseId);y.params&&(R.params=y.params);y.query&&(R.query=y.query);u.formData?R.formData=u.formData:y.formData&&(R.formData=y.formData);y.browseId==="FEsubscriptions"&&_.O9().getFlag(155)&&(R.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");y.browseId==="SPaccount_playback"&&(u=_.O9(),R.formData||(R.formData={}),R.formData.accountSettingsFormData={flagCaptionsDefaultOff:u.getFlag(65),flagAutoCaptionsDefaultOn:u.getFlag(66),
flagDisableInlinePreview:u.getFlag(186),flagAudioDescriptionDefaultOn:u.getFlag(198)});if(y.browseId==="FEwhat_to_watch"){u=_.O9();var v=u.getFlag(196);u.getFlag(197)&&(R.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:v}}})}y.browseId==="FEwhat_to_watch"&&(y=_.O9().getFlag(186),R.inlineSettingStatus=y?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.J.getRequestConfig=function(R,y){y=y===void 0?{}:y;var u={};if(R=this.JSC$13024_getStoreKey(R,y))u.storeStrategy={storeKey:R,disableCache:y.disableCache};_.f("web_log_browse_ticks_ks")||(u.requestTick="br_s",u.responseTick="br_r");return u};var QK=function(){};
_.O(QK,xX);QK.prototype.getApiPaths=function(){return O6T};
QK.prototype.getExtension=function(R){return _.e(R,ctK)};
QK.prototype.JSC$13017_buildRequest=function(R,y,u){R.legacyYoutubeChannelUsername=u.legacyYouTubeChannelUsername||"";R.legacyYoutubeChannelPassword=u.legacyYouTubeChannelPassword||""};var j4=function(){};
_.O(j4,xX);j4.prototype.getApiPaths=function(){return W2i};
j4.prototype.getExtension=function(R){return _.e(R,OT5)};
j4.prototype.JSC$13017_buildRequest=function(R,y,u){u.recaptcha_response_token&&(R.recaptchaResponseToken=u.recaptcha_response_token);u.channel_id&&(R.channelId=u.channel_id)};var MY=function(){};
_.O(MY,xX);MY.prototype.getApiPaths=function(){return pC5};
MY.prototype.getExtension=function(R){return _.e(R,PVi)};
MY.prototype.JSC$13017_buildRequest=function(R,y,u){y.externalChannelId&&(R.externalChannelId=y.externalChannelId);u.handle&&(R.handleUpdate={handle:u.handle},y.handleEditSource&&(R.handleUpdate.handleEditSource=y.handleEditSource))};var J5=function(){};
_.O(J5,xX);J5.prototype.getApiPaths=function(){return SMV};
J5.prototype.getExtension=function(R){return _.e(R,CVK)};
J5.prototype.JSC$13017_buildRequest=function(R,y,u){y.request&&(R.channelId=y.request.channelId);var v;if(u==null?0:(v=u.uploadDefaults)==null?0:v.emojiReactionSet)R.uploadDefaultsRequest||(R.uploadDefaultsRequest={}),R.uploadDefaultsRequest.emojiReactionSet=u.uploadDefaults.emojiReactionSet};var VK=function(){};
_.O(VK,xX);VK.prototype.getApiPaths=function(){return saL};
VK.prototype.getExtension=function(R){return _.e(R,ZTg)};
VK.prototype.JSC$13017_buildRequest=function(R,y,u){y.externalChannelId&&(R.externalChannelId=y.externalChannelId);y.channelHandleEntityKey&&(R.channelHandleEntityKey=y.channelHandleEntityKey);y.handleEditSource&&(R.handleEditSource=y.handleEditSource);u.handle?R.handle=u.handle:u.name&&(R.name=u.name)};var iR=function(){};
_.O(iR,xX);iR.prototype.getApiPaths=function(){return nCi};
iR.prototype.getExtension=function(R){return _.e(R,IXw)};
iR.prototype.JSC$13017_buildRequest=function(R,y){y.actions?R.actions=y.actions:y.action&&(R.actions=[y.action])};var Ke=function(){};
_.O(Ke,xX);Ke.prototype.getApiPaths=function(){return GW5};
Ke.prototype.getExtension=function(R){return _.e(R,_.Lh)};
Ke.prototype.JSC$13017_buildRequest=function(R,y){y.token&&(R.continuation=y.token)};var I0=function(){};
_.O(I0,xX);I0.prototype.getApiPaths=function(){return uJg};
I0.prototype.getExtension=function(R){return _.e(R,_.Lh)};
I0.prototype.JSC$13017_buildRequest=function(R,y){R.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";y.token&&(R.fetchCommentsParams={continuation:y.token})};var h5=function(){};
_.O(h5,xX);h5.prototype.getApiPaths=function(){return UA5};
h5.prototype.getExtension=function(R){return _.e(R,KIw)};
h5.prototype.JSC$13017_buildRequest=function(R,y,u){u=u===void 0?{}:u;y.createReplyParams&&(R.createReplyParams=y.createReplyParams);y.commentText&&(R.commentText=_.u7(y.commentText));u.comment_text&&(R.commentText=u.comment_text);u.image_blob_id&&(R.imageAttachment={encryptedBlobId:u.image_blob_id});u.botguard_response&&(R.botguardResponse=u.botguard_response)};
_.RR.Object.defineProperties(h5.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var bR=function(){};
_.O(bR,xX);bR.prototype.getApiPaths=function(){return kWw};
bR.prototype.getExtension=function(R){return _.e(R,_.ixg)};
bR.prototype.JSC$13017_buildRequest=function(R,y,u){u=u===void 0?{}:u;y.createCommentParams&&(R.createCommentParams=y.createCommentParams);y.commentText&&(R.commentText=_.u7(y.commentText));y.videoPositionMention&&(R.videoPositionMention=y.videoPositionMention);y.sources&&(R.sources=y.sources);u.comment_text&&(R.commentText=u.comment_text);u.attached_video_id?R.videoAttachment={videoId:u.attached_video_id}:u.poll_options?R.pollAttachment={choices:u.poll_options}:u.image_blob_id?R.imageAttachment=
{encryptedBlobId:u.image_blob_id}:u.shared_post_id&&(R.sharedPostAttachment={postId:u.shared_post_id});u.access_restrictions&&typeof u.access_restrictions==="number"&&(y=u.access_restrictions,R.accessRestrictions={restriction:y!==1&&y===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});u.botguard_response&&(R.botguardResponse=u.botguard_response)};
_.RR.Object.defineProperties(bR.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Fk=function(){};
_.O(Fk,xX);Fk.prototype.getApiPaths=function(){return thc};
Fk.prototype.getExtension=function(R){return _.e(R,bxV)};
Fk.prototype.JSC$13017_buildRequest=function(R,y,u){y.commentText&&(R.replyText=_.u7(y.commentText));u.comment_text&&(R.replyText=u.comment_text);R.updateReplyParams=y.updateReplyParams};
_.RR.Object.defineProperties(Fk.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var wU=function(){};
_.O(wU,xX);wU.prototype.getApiPaths=function(){return cOi};
wU.prototype.getExtension=function(R){return _.e(R,hxi)};
wU.prototype.JSC$13017_buildRequest=function(R,y,u){y.commentText&&(R.commentText=_.u7(y.commentText));u.comment_text&&(R.commentText=u.comment_text);R.updateCommentParams=y.updateCommentParams};
_.RR.Object.defineProperties(wU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var NY=function(){};
_.O(NY,xX);NY.prototype.getApiPaths=function(){return aNK};
NY.prototype.getExtension=function(R){return _.e(R,LFG)};
NY.prototype.JSC$13017_buildRequest=function(R,y){y.settings&&(R.settings=y.settings)};var TY=function(){};
_.O(TY,xX);TY.prototype.getApiPaths=function(){return L5V};
TY.prototype.getExtension=function(R){return _.e(R,HTK)};
TY.prototype.JSC$13017_buildRequest=function(R,y){y.channelCreationToken&&(R.channelCreationToken=y.channelCreationToken);y.source&&(R.source=y.source)};var o0=function(){};
_.O(o0,xX);o0.prototype.getApiPaths=function(){return dA5};
o0.prototype.getExtension=function(R){return _.e(R,r8Y)};
o0.prototype.JSC$13017_buildRequest=function(R,y,u){u=u===void 0?{}:u;if(u.name&&(u.given_name||u.family_name))R=new _.OL("channel creation cannot set both GAIA and YouTube names",y),_.dI(R);else{if(y.zeroStepChannelCreationParams){if(!u.comment_text){R=new _.OL("zero_step_create_comment_params but no zero_step_texts",y);_.dI(R);return}R.zeroStepChannelCreationParams=y.zeroStepChannelCreationParams;R.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(R.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
u.comment_text,u.botguard_response&&(R.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=u.botguard_response))}R.channelCreationToken=y.channelCreationToken;u.given_name&&(R.givenName=u.given_name);u.family_name&&(R.familyName=u.family_name);y.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(R.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(u.name||u.handle||u.avatar_url||u.encryptedBlobId||u.isNameChanged!==void 0||u.isHandleChanged!==void 0||u.isDefaultProfilePhoto!==
void 0||u.obakeImageSource)R.overrideChannelCreationParams={},u.name&&(R.overrideChannelCreationParams.name=u.name),u.handle&&(R.overrideChannelCreationParams.handle=u.handle),u.avatar_url&&(R.overrideChannelCreationParams.avatarUrl=u.avatar_url),u.encryptedBlobId&&(R.overrideChannelCreationParams.blobEncryptionId=u.encryptedBlobId),u.enableIdentityForAllChannelCreationDialog&&(u.encryptedBlobId?R.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
u.isDefaultProfilePhoto!==void 0&&(R.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=u.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),u.isNameChanged!==void 0&&(R.overrideChannelCreationParams.identityForAllChannelCreationNameTag=u.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),u.isHandleChanged!==
void 0&&(R.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=u.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),u.obakeImageSource&&(R.overrideChannelCreationParams.obakeImageSourceType=u.obakeImageSource))}};var xd=function(){};
_.O(xd,xX);xd.prototype.getApiPaths=function(R){return(R=this.getExtension(R))&&R.status==="DISLIKE"?DAw:R&&R.status==="INDIFFERENT"?H_g:F2K};
xd.prototype.getExtension=function(R){return _.e(R,_.YY)};
xd.prototype.JSC$13017_buildRequest=function(R,y){y.target&&(R.target=y.target);if(y=this.getParams(y))R.params=y};
xd.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 BL=function(){};
_.O(BL,xX);BL.prototype.getApiPaths=function(){return $$8};
BL.prototype.getExtension=function(R){return _.e(R,xic)};
BL.prototype.JSC$13017_buildRequest=function(R,y){y.settingItemId&&(R.settingItemId=y.settingItemId);y.stringValue!=null&&y.stringValue!==void 0?R.newValue={stringValue:y.stringValue}:y.intValue?R.newValue={intValue:y.intValue}:y.boolValue!==null&&y.boolValue!==void 0?R.newValue={boolValue:y.boolValue}:(R=new _.OL("Unknown value type for SetSettingEndpoint.",y),_.dI(R))};var fe=function(){};
_.O(fe,xX);fe.prototype.getApiPaths=function(){return XCV};
fe.prototype.getExtension=function(R){return _.e(R,Anc)||void 0};
fe.prototype.JSC$13017_buildRequest=function(R,y,u){u=u===void 0?{}:u;y.channelIds&&(R.channelIds=y.channelIds);y.siloName&&(R.siloName=y.siloName);y.params&&(R.params=y.params);u.botguardResponse&&(R.botguardResponse=u.botguardResponse);u.feature&&(R.clientFeature=u.feature)};
_.RR.Object.defineProperties(fe.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var e4=function(){};
_.O(e4,xX);e4.prototype.getApiPaths=function(){return AOc};
e4.prototype.getExtension=function(R){return _.e(R,BQi)||void 0};
e4.prototype.JSC$13017_buildRequest=function(R,y){y.channelIds&&(R.channelIds=y.channelIds);y.siloName&&(R.siloName=y.siloName);y.params&&(R.params=y.params)};
_.RR.Object.defineProperties(e4.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var lR=function(R){this.shareClientParamsProvider=R};
_.O(lR,xX);lR.prototype.getApiPaths=function(){return x2P};
lR.prototype.getExtension=function(R){return _.e(R,LfT)||_.e(R,_.sQc)||_.e(R,YDK)};
lR.prototype.JSC$13017_buildRequest=function(R,y){y.serializedShareEntity&&(R.serializedSharedEntity=y.serializedShareEntity);if(y.clientParamIdentifier){var u;if((u=this.shareClientParamsProvider)==null?0:u.clientParams.has(y.clientParamIdentifier)){u=this.shareClientParamsProvider;y=y.clientParamIdentifier;var v=u.clientParams.get(y);v&&u.clientParams.delete(y);R.clientParams=v}}};
lR[Mn]=[o_5];var O0=function(){};
_.O(O0,xX);O0.prototype.getApiPaths=function(){return fY5};
O0.prototype.getExtension=function(R){return _.e(R,yx5)};
O0.prototype.JSC$13017_buildRequest=function(R,y){y.params&&(R.params=y.params)};var Zb=function(){};
_.O(Zb,xX);Zb.prototype.getApiPaths=function(){return p4L};
Zb.prototype.getExtension=function(R){return _.e(R,gDT)};
Zb.prototype.JSC$13017_buildRequest=function(R,y){y.dismissal&&(R.items=[y.dismissal])};
_.RR.Object.defineProperties(Zb.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var HL=function(){};
_.O(HL,xX);HL.prototype.getApiPaths=function(){return hYK};
HL.prototype.getExtension=function(R){return _.e(R,_.mr)||void 0};
HL.prototype.JSC$13017_buildRequest=function(R,y,u){R.feedbackTokens=[];y.feedbackToken&&R.feedbackTokens.push(y.feedbackToken);if(y=y.cpn||u.cpn)R.feedbackContext={cpn:y};R.isFeedbackTokenUnencrypted=!!u.is_feedback_token_unencrypted;R.shouldMerge=!1;u.extra_feedback_tokens&&(R.shouldMerge=!0,R.feedbackTokens=R.feedbackTokens.concat(u.extra_feedback_tokens))};
_.RR.Object.defineProperties(HL.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ne=function(){};
_.O(ne,xX);ne.prototype.getApiPaths=function(){return hYK};
ne.prototype.getExtension=function(R){return _.e(R,_.xF)};
ne.prototype.JSC$13017_buildRequest=function(R,y,u){u.feedback_tokens&&(R.feedbackTokens=u.feedback_tokens,R.shouldMerge=!0)};
_.RR.Object.defineProperties(ne.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var GY=function(){};
_.O(GY,xX);GY.prototype.getApiPaths=function(){return hYK};
GY.prototype.getExtension=function(R){return _.e(R,xbG)};
GY.prototype.JSC$13017_buildRequest=function(R,y){y.undoToken&&(R.feedbackTokens=[y.undoToken]);y.isUndoTokenUnencrypted&&(R.isFeedbackTokenUnencrypted=y.isUndoTokenUnencrypted)};
_.RR.Object.defineProperties(GY.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var rU=function(){};
_.O(rU,xX);rU.prototype.getApiPaths=function(){return zYL};
rU.prototype.getExtension=function(R){return _.e(R,LR8)};
rU.prototype.JSC$13017_buildRequest=function(R,y){y.nextEndpoint&&_.e(y.nextEndpoint,_.tc)?R.nextEndpoint={urlEndpoint:_.e(y.nextEndpoint,_.tc)}:y.nextEndpoint&&_.e(y.nextEndpoint,_.zM)&&(R.nextEndpoint={watchEndpoint:_.e(y.nextEndpoint,_.zM)});y.setRacy&&(R.setRacy=y.setRacy);y.setControvercy&&(R.setControvercy=y.setControvercy)};var PL=function(R){this.JSC$17764_storeWithEntities=R};
_.O(PL,xX);PL.prototype.getApiPaths=function(){return c35};
PL.prototype.getExtension=function(R){return _.e(R,xnc)};
PL.prototype.JSC$13017_buildRequest=function(R,y){y.flowId&&(R.flowId=y.flowId);y.targetId&&(R.targetId=y.targetId);y.continuation&&(R.continuation=y.continuation);var u=y.flowStateEntityKey;if(y.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&u&&this.JSC$17764_storeWithEntities){var v;if(y=(v=this.JSC$17764_storeWithEntities.getState())==null?void 0:v.entities)if(v=_.bE(u).entityType,v=_.TI(y,v,u))R.flowState=v,R.flowStateEntityKey=u}};
_.RR.Object.defineProperties(PL.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
PL[Mn]=[he];var IwJ=function(){};
_.O(IwJ,xX);_.J=IwJ.prototype;_.J.getApiPaths=function(){return INV};
_.J.JSC$13024_getStoreKey=function(){return _.sf("guide")};
_.J.getRequestConfig=function(){var R=this.JSC$13024_getStoreKey(),y;R&&(y={storeStrategy:{storeKey:R}});return y};
_.J.isNavigationCommand=function(){return!0};
_.J.getExtension=function(R){return _.e(R,_.xF)};
_.J.JSC$13017_buildRequest=function(R){R.fetchLiveState=!0};var WL=function(){};
_.O(WL,xX);WL.prototype.getApiPaths=function(){return Z6c};
WL.prototype.getExtension=function(R){return _.e(R,M2V)};
WL.prototype.JSC$13017_buildRequest=function(){};var dU=function(){};
_.O(dU,xX);dU.prototype.getApiPaths=function(){return H6Y};
dU.prototype.getExtension=function(R){return _.e(R,Jsc)};
dU.prototype.JSC$13017_buildRequest=function(){};var U0=function(){};
_.O(U0,xX);U0.prototype.getApiPaths=function(){return BTY};
U0.prototype.getExtension=function(R){return _.e(R,_.Lh)};
U0.prototype.JSC$13017_buildRequest=function(R,y){y.token&&(R.continuation=y.token);var u,v;R==null||(u=R.context)==null||(v=u.user)==null||delete v.onBehalfOfUser};
U0.prototype.getRequestConfig=function(R){var y={},u;if(((u=this.getExtension(R))==null?void 0:u.sessionIndex)!==void 0){var v;y={authStrategy:{sessionIndex:(v=this.getExtension(R))==null?void 0:v.sessionIndex}}}return y};var kd=function(){};
_.O(kd,xX);kd.prototype.JSC$13017_getRequest=function(R){var y=this.getExtension(R),u=R="";if(y==null?0:y.popup)R="true";if(y==null?0:y.disableSignout)u="true";y={};return{input:"/getAccountSwitcherEndpoint",requestShell:Lv("/getAccountSwitcherEndpoint","GET",(y["X-YouTube-Delegation-Context"]=_.EB("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),y["X-YouTube-Account-Switcher-Popup"]=R,y["X-YouTube-Account-Switcher-Disable-Signout"]=u,y)),innerTubeRequest:{}}};
kd.prototype.getApiPaths=function(){return[]};
kd.prototype.getExtension=function(R){return _.e(R,_.r94)};
kd.prototype.JSC$13017_buildRequest=function(){};var E0=function(){};
_.O(E0,xX);E0.prototype.JSC$13017_getRequest=function(R){var y="/cross_account_channel_transfer";(R=this.getExtension(R))&&(y=NrU(y,{target_session:R.targetSessionIndex,source_rapt:R.sourceRapt,rapt:R.targetRapt}));return{input:y,requestShell:Lv(y,"GET"),innerTubeRequest:{}}};
E0.prototype.getApiPaths=function(){return[]};
E0.prototype.getExtension=function(R){return _.e(R,aMg)};
E0.prototype.JSC$13017_buildRequest=function(){};var $d=function(){};
_.O($d,xX);$d.prototype.getApiPaths=function(){return aYT};
$d.prototype.isNavigationCommand=function(){return!0};
$d.prototype.getExtension=function(R){return _.e(R,_.xF)};
$d.prototype.JSC$13017_buildRequest=function(R){var y=_.O9().get("gsml","");y&&(R.safetyModeLockerObfuscatedGaiaId=y);R.userInterfaceTheme=_.EZ(!0);_.$v()?R.deviceTheme="DEVICE_THEME_SELECTED":_.b_L()?R.deviceTheme="DEVICE_THEME_SUPPORTED":R.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var qY=function(){};
_.O(qY,xX);qY.prototype.getApiPaths=function(){return BTY};
qY.prototype.getExtension=function(R){return _.e(R,SO8)};
qY.prototype.JSC$13017_buildRequest=function(R,y){if(y&&y.requestType&&(R.requestType=y.requestType,y.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||y.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var u=y.nextUrl;u&&(_.oFW(u)||CG(u))&&(R.nextNavendpoint={urlEndpoint:{url:u}})}y&&y.channelSwitcherQuery&&(R.channelSwitcherQuery=y.channelSwitcherQuery);y&&y.triggerChannelCreation&&(R.triggerChannelCreation=y.triggerChannelCreation);var v;if(y==null?0:(v=y.contentOwnerConfig)==
null?0:v.externalContentOwnerId)R.contentOwnerConfig=y.contentOwnerConfig;R.callCircumstance=y&&y.requestType&&y.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var Q,M;y=R==null?void 0:(Q=R.context)==null?void 0:(M=Q.user)==null?void 0:M.onBehalfOfUser;if(y!==void 0){R.obfuscatedSelectedGaiaId=y;var K,h;R==null||(K=R.context)==null||(h=K.user)==null||delete h.onBehalfOfUser}var b,N;if(Q=R==null?void 0:(b=R.context)==null?void 0:(N=b.user)==null?
void 0:N.serializedDelegationContext)R.selectedSerializedDelegationContext=Q};var Xk=function(){};
_.O(Xk,xX);Xk.prototype.getApiPaths=function(){return egw};
Xk.prototype.getExtension=function(R){return _.e(R,z$V)};
Xk.prototype.JSC$13017_buildRequest=function(R,y){y.params&&(R.params=y.params)};var mP=function(){};
_.O(mP,xX);mP.prototype.getApiPaths=function(){return W5w};
mP.prototype.getExtension=function(R){return _.e(R,_.Iyi)};
mP.prototype.JSC$13017_buildRequest=function(R,y){if(y=y.createBroadcastRequest)R.useMasks=y.useMasks,R.broadcastType=y.broadcastType,R.broadcastSource=y.broadcastSource,R.broadcastMetadata=y.broadcastMetadata,R.broadcastMetadataMask=y.broadcastMetadataMask,R.videoMetadata=y.videoMetadata,R.videoMetadataMask=y.videoMetadataMask,R.liveChatSettingsUpdate=y.liveChatSettingsUpdate,R.liveChatSettingsUpdateMask=y.liveChatSettingsUpdateMask,R.cloneVideoId=y.cloneVideoId,R.cloneWithOverrides=y.cloneWithOverrides,
R.targetEntity=y.targetEntity,R.scheduledRedirectMetadata=y.scheduledRedirectMetadata};var A5=function(){};
_.O(A5,xX);A5.prototype.getApiPaths=function(){return ECT};
A5.prototype.getExtension=function(R){return _.e(R,MHK)};
A5.prototype.JSC$13017_buildRequest=function(R,y,u){u=u===void 0?{}:u;y.params&&(R.params=y.params);u.questionText&&(R.questionText=u.questionText);u.optionText&&u.optionText.length>0&&(R.optionText=u.optionText)};var Db=function(){};
_.O(Db,xX);Db.prototype.getApiPaths=function(){return X4K};
Db.prototype.getExtension=function(R){return _.e(R,QUK)};
Db.prototype.JSC$13017_buildRequest=function(R,y){y.params&&(R.params=y.params)};var pe=function(){};
_.O(pe,xX);pe.prototype.getApiPaths=function(){return zg8};
pe.prototype.getExtension=function(R){return _.e(R,Rq8)};
pe.prototype.JSC$13017_buildRequest=function(R,y){y.params&&(R.params=y.params)};var t5=function(){};
_.O(t5,xX);t5.prototype.getApiPaths=function(){return Cq5};
t5.prototype.getExtension=function(R){return _.e(R,yAw)};
t5.prototype.JSC$13017_buildRequest=function(R,y,u){y.params&&(R.params=y.params);y.continuation&&(R.continuation=y.continuation);u.currentPlayerState&&u.currentPlayerState.playerOffsetMs&&(R.currentPlayerState={playerOffsetMs:u.currentPlayerState.playerOffsetMs.toString()})};var cL=function(){};
_.O(cL,xX);cL.prototype.getApiPaths=function(){return RYi};
cL.prototype.getExtension=function(R){return _.e(R,CmG)};
cL.prototype.JSC$13017_buildRequest=function(R,y,u){y.params&&(R.params=y.params);u.continuation&&(R.continuation=u.continuation);"hidden"in u&&(R.webClientInfo={isDocumentHidden:u.hidden});u.isInvalidationTimeoutRequest&&(R.isInvalidationTimeoutRequest=u.isInvalidationTimeoutRequest);u.invalidationPayload&&(y=gcY(_.zT(Rh(u.invalidationPayload))),R.invalidationPayloadLastPublishAtUsec=XD(y,2));u.reloadActionPanel&&(R.reloadActionPanel=u.reloadActionPanel);u.fullReload&&(R.fullReload=u.fullReload);
u.currentPlayerState&&(R.currentPlayerState=u.currentPlayerState)};var a0=function(){};
_.O(a0,xX);a0.prototype.getApiPaths=function(){return wCL};
a0.prototype.getExtension=function(R){return _.e(R,jUg)};
a0.prototype.JSC$13017_buildRequest=function(R,y){R.params=y.params};var S4=function(){};
_.O(S4,xX);S4.prototype.getApiPaths=function(){return gCL};
S4.prototype.getExtension=function(R){return _.e(R,btV)};
S4.prototype.JSC$13017_buildRequest=function(R,y){y.params&&(R.params=y.params)};var Yd=function(){};
_.O(Yd,xX);Yd.prototype.getApiPaths=function(){return yOK};
Yd.prototype.getExtension=function(R){return _.e(R,FEK)};
Yd.prototype.JSC$13017_buildRequest=function(R,y){y.params&&(R.params=y.params)};var Le=function(){};
_.O(Le,xX);Le.prototype.getApiPaths=function(){return N0V};
Le.prototype.getExtension=function(R){return _.e(R,JAi)};
Le.prototype.JSC$13017_buildRequest=function(R,y){y.params&&(R.params=y.params)};var s0=function(){};
_.O(s0,xX);s0.prototype.getApiPaths=function(){return ox5};
s0.prototype.getExtension=function(R){return _.e(R,VHT)};
s0.prototype.JSC$13017_buildRequest=function(R,y){y.params&&(R.params=y.params)};var zY=function(){};
_.O(zY,xX);zY.prototype.getApiPaths=function(){return nxG};
zY.prototype.getExtension=function(R){return _.e(R,RlL)};
zY.prototype.JSC$13017_buildRequest=function(R,y){y.params&&(R.params=y.params)};var gU=function(){};
_.O(gU,xX);gU.prototype.getApiPaths=function(){return kdg};
gU.prototype.getExtension=function(R){return _.e(R,_.ijb)};
gU.prototype.JSC$13017_buildRequest=function(R,y,u){u=u===void 0?{}:u;y.params&&(R.params=y.params);u.client_message_id&&(R.clientMessageId=u.client_message_id);u.recaptcha_token&&(R.recaptchaToken=u.recaptcha_token);u.rich_message&&u.rich_message.text_segments?(y=u.rich_message.text_segments.map(function(v){var Q={};v.text&&(Q.text=v.text);v.emoji_id&&(Q.emojiId=v.emoji_id);return Q}),R.richMessage={textSegments:y}):u.message&&(R.message=u.message);
u.currentPlayerState&&(R.currentPlayerState=u.currentPlayerState)};var Ce=function(){};
_.O(Ce,xX);Ce.prototype.getApiPaths=function(){return ExL};
Ce.prototype.getExtension=function(R){return _.e(R,KjG)};
Ce.prototype.JSC$13017_buildRequest=function(R,y){y.params&&(R.params=y.params)};var RI=function(){};
_.O(RI,xX);RI.prototype.getApiPaths=function(){return m$V};
RI.prototype.getExtension=function(R){return _.e(R,hq5)};
RI.prototype.JSC$13017_buildRequest=function(R,y,u){y.isUserInitiated&&(R.isUserInitiated=y.isUserInitiated);y.initiationSource&&(R.initiationSource=y.initiationSource);u.locationInfo&&(R.context.client.locationInfo=u.locationInfo)};var yu=function(){};
_.O(yu,xX);yu.prototype.getApiPaths=function(){return T0g};
yu.prototype.getExtension=function(R){return _.e(R,h$V)};
yu.prototype.JSC$13017_buildRequest=function(R,y,u){y.metadataUpdateRequest&&(y=y.metadataUpdateRequest,R.encryptedVideoId=y.encryptedVideoId,y.liveChat&&(y=y.liveChat,R.liveChat||(R.liveChat={}),y.performAsExternalChannelId&&(R.liveChat.performAsExternalChannelId=y.performAsExternalChannelId),y.source&&(R.liveChat.source=y.source)));var v;if(u==null?0:(v=u.liveChat)==null?0:v.liveChatSettings)R.liveChat||(R.liveChat={}),u=u.liveChat.liveChatSettings,R.liveChat.newLiveChatSettings=u,R.liveChat.newLiveChatSettingsMask||
(R.liveChat.newLiveChatSettingsMask={}),u.emojiReactionSet&&(R.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var id=function(){};
_.O(id,xX);id.prototype.getApiPaths=function(){return L2c};
id.prototype.getExtension=function(R){return _.e(R,_.fX8)};
id.prototype.JSC$13017_buildRequest=function(R,y,u){u.continuation?R.continuation=u.continuation:y.videoId&&(R.videoId=y.videoId);u.clientParams&&(R.clientParams=u.clientParams)};var K3=function(){};
_.O(K3,xX);K3.prototype.getApiPaths=function(){return uJg};
K3.prototype.getExtension=function(R){return _.e(R,_.DE)};
K3.prototype.JSC$13017_buildRequest=function(R,y){R.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";R.fetchCommentsParams={};y.videoId&&(R.fetchCommentsParams.encryptedVideoId=y.videoId);y.postId&&(R.fetchCommentsParams.postId=y.postId);y.externalChannelId&&(R.fetchCommentsParams.externalChannelId=y.externalChannelId);y.linkedCommentId&&(R.fetchCommentsParams.linkedCommentId=y.linkedCommentId);(0,_.Ps.isEmpty)(R.fetchCommentsParams)&&delete R.fetchCommentsParams};var II=function(){};
_.O(II,xX);II.prototype.getApiPaths=function(){return vZ};
II.prototype.JSC$13017_buildRequest=function(R){R.browseId="FEnotifications_inbox"};
II.prototype.getExtension=function(R){return _.e(R,_.xF)};var h9=function(){};
_.O(h9,xX);h9.prototype.getApiPaths=function(){return uJg};
h9.prototype.JSC$13017_buildRequest=function(R,y){y.signal==="GET_NOTIFICATIONS_MENU"&&(R.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");y.ctoken&&(R.ctoken=y.ctoken)};
var hca=function(){};
_.O(hca,h9);hca.prototype.getExtension=function(R){return _.e(R,_.xF)};
var bYa=function(){};
_.O(bYa,h9);bYa.prototype.getExtension=function(R){return _.e(R,aQV)};var bd=function(){};
_.O(bd,xX);bd.prototype.getApiPaths=function(){return Vhg};
bd.prototype.getExtension=function(R){return _.e(R,_.xF)};
bd.prototype.JSC$13017_buildRequest=function(){};var FO=function(){};
_.O(FO,xX);FO.prototype.getApiPaths=function(){return x$K};
FO.prototype.getExtension=function(R){return _.e(R,NQL)||void 0};
FO.prototype.JSC$13017_buildRequest=function(R,y){y.params&&(R.params=y.params);y.secondaryParams&&(R.secondaryParams=y.secondaryParams)};var w4=function(){};
_.O(w4,xX);w4.prototype.getApiPaths=function(){return B0c};
w4.prototype.getExtension=function(R){return _.e(R,gR5)};
w4.prototype.JSC$13017_buildRequest=function(R,y){y.undo&&(R.undo=y.undo);y.serializedOptOut&&(R.serializedOptOut=y.serializedOptOut);y.serializedRecordInteractionsRequest&&(R.serializedRecordInteractionsRequest=y.serializedRecordInteractionsRequest)};var Na=function(){};
_.O(Na,xX);Na.prototype.getApiPaths=function(){return lNT};
Na.prototype.getExtension=function(R){return _.e(R,C3g)};
Na.prototype.JSC$13017_buildRequest=function(R,y){y.serializedInteractionsRequest&&(R.serializedRecordNotificationInteractionsRequest=y.serializedInteractionsRequest)};var T8=function(){};
_.O(T8,xX);T8.prototype.getApiPaths=function(){return Bzz};
T8.prototype.getExtension=function(R){return _.e(R,qeU)};
T8.prototype.JSC$13017_buildRequest=function(R,y,u){y=y===void 0?{}:y;u=u===void 0?{}:u;y.videoId?R.videoId=y.videoId:y.playlistId&&(R.playlistId=y.playlistId);var v,Q=(v=y.offlineWebClientEligibility)!=null?v:u.offlineWebClientEligibility;Q&&(R.offlineWebClientEligibility=Q);var M;if(v=(M=y.preferredFormatType)!=null?M:u.preferredFormatType)R.preferredFormatType=v;var K;if(M=(K=y.lastOfflineQualitySettingsSavedMs)!=null?K:u.lastOfflineQualitySettingsSavedMs)R.lastOfflineQualitySettingsSavedMs=M;
y.params&&(R.params=y.params)};var oI=function(){};
_.O(oI,xX);oI.prototype.getApiPaths=function(){return j2};
oI.prototype.getExtension=function(R){return _.e(R,_.Lh)};
oI.prototype.JSC$13017_buildRequest=function(R,y,u){u=u===void 0?{}:u;y.token&&(R.continuation=y.token);u.formData&&(R.formData=u.formData)};var xH=function(){};
_.O(xH,xX);xH.prototype.getApiPaths=function(){return j2};
xH.prototype.getExtension=function(R){return _.e(R,Mtw)};
xH.prototype.JSC$13017_buildRequest=function(R,y,u){u=u===void 0?{}:u;R.continuation=u.continuation};var Ba=function(){};
_.O(Ba,xX);Ba.prototype.getApiPaths=function(){return j2};
Ba.prototype.getExtension=function(R){return _.e(R,_.X1)};
Ba.prototype.JSC$13017_buildRequest=function(R,y){var u,v=y.panelIdentifier||((u=y.identifier)==null?void 0:u.tag);v&&(R.panelId=v);var Q;if((Q=y.globalConfiguration)==null?0:Q.params){var M;R.params=(M=y.globalConfiguration)==null?void 0:M.params}};
_.RR.Object.defineProperties(Ba.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var f3=function(){};
_.O(f3,xX);f3.prototype.getApiPaths=function(){return j2};
f3.prototype.getExtension=function(R){return _.e(R,t5G)};
f3.prototype.JSC$13017_buildRequest=function(R,y){y.panelLoadingStrategy&&TiS(R,y.panelLoadingStrategy)};var e3=function(){};
_.O(e3,xX);e3.prototype.getApiPaths=function(){return j2};
e3.prototype.getExtension=function(R){return _.e(R,KE5)};
e3.prototype.JSC$13017_buildRequest=function(R,y){y.loadingStrategy&&TiS(R,y.loadingStrategy)};var ld=function(){};
_.O(ld,xX);ld.prototype.getApiPaths=function(){return j2};
ld.prototype.getExtension=function(R){return _.e(R,_.rm)};
ld.prototype.JSC$13017_buildRequest=function(R,y){y.panelLoadingStrategy&&TiS(R,y.panelLoadingStrategy)};var Oe=function(){};
_.O(Oe,xX);Oe.prototype.getApiPaths=function(){return j2};
Oe.prototype.getExtension=function(R){return _.e(R,IEc)};
Oe.prototype.JSC$13017_buildRequest=function(R,y){var u,v=(u=y.contentSourcePanelIdentifier)==null?void 0:u.tag;v&&(R.panelId=v);var Q;if((Q=y.globalConfiguration)==null?0:Q.params){var M;R.params=(M=y.globalConfiguration)==null?void 0:M.params}};var Zs=function(){};
_.O(Zs,xX);Zs.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
Zs.prototype.getExtension=function(R){return _.e(R,hlL)};
Zs.prototype.JSC$13017_buildRequest=function(R,y){y.params&&(R.params=y.params)};var Ha=function(){};
_.O(Ha,xX);Ha.prototype.getApiPaths=function(){return YMT};
Ha.prototype.getExtension=function(R){return _.e(R,weg)};
Ha.prototype.JSC$13017_buildRequest=function(R,y){y.externalChannelId&&(R.externalChannelId=y.externalChannelId);y.superChatAction&&(R.superChatAction=y.superChatAction);y.superStickersAction&&(R.superStickersAction=y.superStickersAction)};var n3=function(){};
_.O(n3,xX);n3.prototype.getApiPaths=function(){return SIK};
n3.prototype.getExtension=function(R){return _.e(R,jm5)||_.e(R,mav)};
n3.prototype.JSC$13017_buildRequest=function(R,y){y.videoIds?R.videoIds=y.videoIds:y.videoId&&(R.videoIds=[y.videoId]);y.playlistId&&(R.playlistId=y.playlistId);y.params&&(R.params=y.params);R.excludeWatchLater=!1};var G8=function(){};
_.O(G8,xX);G8.prototype.getApiPaths=function(){return $AY};
G8.prototype.getExtension=function(R){return _.e(R,_.Lt)};
G8.prototype.JSC$13017_buildRequest=function(R,y,u){u.create_playlist_title?R.title=u.create_playlist_title:y.title&&(R.title=y.title);if(u.create_playlist_privacy_status&&typeof u.create_playlist_privacy_status==="number"){a:{var v=u.create_playlist_privacy_status;if(v!==0){if(v===1){v="PUBLIC";break a}if(v===2){v="UNLISTED";break a}}v="PRIVATE"}R.privacyStatus=v}else y.privacyStatus&&(R.privacyStatus=y.privacyStatus);u.create_playlist_description&&(R.description=u.create_playlist_description);y.videoIds&&
(R.videoIds=y.videoIds);y.params&&(R.params=y.params);y.sourcePlaylistId&&(R.sourcePlaylistId=y.sourcePlaylistId)};var r4=function(){};
_.O(r4,xX);r4.prototype.getApiPaths=function(){return mAV};
r4.prototype.getExtension=function(R){return _.e(R,FIw)};
r4.prototype.JSC$13017_buildRequest=function(R,y){R.playlistId=y.playlistId};var Pa=function(){};
_.O(Pa,xX);Pa.prototype.getApiPaths=function(){return vxT};
Pa.prototype.getExtension=function(R){return _.e(R,ayK)};
Pa.prototype.JSC$13017_buildRequest=function(R,y){y.playlistId&&(R.playlistId=y.playlistId);y.params&&(R.params=y.params)};var Wa=function(){};
_.O(Wa,xX);Wa.prototype.getApiPaths=function(){return eYG};
Wa.prototype.getExtension=function(R){return _.e(R,_.pt)||void 0};
Wa.prototype.JSC$13017_buildRequest=function(R,y){y.actions&&(R.actions=y.actions);y.params&&(R.params=y.params);y.playlistId&&(R.playlistId=y.playlistId)};var d4=function(){};
_.O(d4,xX);_.J=d4.prototype;_.J.getApiPaths=function(){return O_g};
_.J.getExtension=function(R){return _.e(R,_.PV)};
_.J.JSC$13017_buildRequest=function(R,y){y.videoId&&(R.playerRequest={videoId:y.videoId},y.playerParams&&(R.playerRequest.params=y.playerParams),y.racyCheckOk&&(R.playerRequest.racyCheckOk=!!y.racyCheckOk),y.contentCheckOk&&(R.playerRequest.contentCheckOk=!!y.contentCheckOk));y.params&&(R.params=y.params);y.inputType&&(R.inputType=y.inputType);R.disablePlayerResponse=!0};
_.J.getRequestConfig=function(R){var y;(R=this.JSC$13024_getStoreKey(R))&&(y={storeStrategy:{storeKey:R}});_.f("web_log_reels_ticks")&&(y=y||{},y.requestTick="r_wrs",y.responseTick="r_wrr");return y};
_.J.JSC$13024_getStoreKey=function(R){R=this.getExtension(R);if(_.f("shorts_controller_retrieve_seedless_sequence_v2")){if((R==null?void 0:R.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.sf("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if(_.f("web_shorts_prefetch_service_enabled")&&R!=null&&R.videoId){var y={videoId:R.videoId};R.params&&(y.params=R.params);return _.sf("reel_item_watch",y)}};var Ue=function(){};
_.O(Ue,xX);_.J=Ue.prototype;_.J.getApiPaths=function(){return Z_b};
_.J.getExtension=function(R){return _.e(R,_.PV)};
_.J.JSC$13017_buildRequest=function(R,y,u){u=u===void 0?{}:u;R.sequenceParams=y.sequenceParams;var v;((v=u)==null?0:v.contentPlaybackContext)&&_.f("web_shorts_prefetch_service_enabled")&&(R.playbackContext={contentPlaybackContext:u.contentPlaybackContext})};
_.J.JSC$13024_getStoreKey=function(R){if(_.f("web_enable_delay_shorts_sequence_call")||_.f("shorts_controller_retrieve_seedless_sequence_v2"))if(R=this.getExtension(R),R==null?0:R.sequenceParams)return _.sf("reel_watch_sequence",{sequenceParams:R.sequenceParams})};
_.J.getRequestConfig=function(R){R=this.JSC$13024_getStoreKey(R);var y;R&&(y={storeStrategy:{storeKey:R}});_.f("reel_watch_sequence_request_log_ticks")&&(y=y||{},y.requestTick="r_wsrs",y.responseTick="r_wsrr",y.processorTick="r_wsrp");return y};
var kH=function(){};
_.O(kH,xX);kH.prototype.getApiPaths=function(){return Z_b};
kH.prototype.getExtension=function(R){return _.e(R,_.Lh)};
kH.prototype.JSC$13017_buildRequest=function(R,y,u){u=u===void 0?{}:u;y.token&&(R.continuation=y.token);var v;((v=u)==null?0:v.contentPlaybackContext)&&_.f("web_shorts_prefetch_service_enabled")&&(R.playbackContext={contentPlaybackContext:u.contentPlaybackContext})};
kH.prototype.getRequestConfig=function(R){R=this.JSC$13024_getStoreKey(R);var y;R&&(y={storeStrategy:{storeKey:R}});_.f("reel_watch_sequence_request_log_ticks")&&(y=y||{},y.requestTick="r_wsrs",y.responseTick="r_wsrr",y.processorTick="r_wsrp");return y};var Ee=function(){};
_.O(Ee,xX);Ee.prototype.getApiPaths=function(){return tcL};
Ee.prototype.getExtension=function(R){return _.e(R,_.ocg)};
Ee.prototype.JSC$13017_buildRequest=function(R,y,u){u=u===void 0?{}:u;y.flagAction&&(R.action=y.flagAction);y.flagRequestType&&(R.flagRequestType=y.flagRequestType);y.additionalDetailCheckboxChecked&&(R.additionalDetailCheckboxChecked=y.additionalDetailCheckboxChecked);y.legalCheckboxChecked&&(R.legalCheckboxChecked=y.legalCheckboxChecked);y={};u.flag_issue_type!==void 0&&(y.issue=u.flag_issue_type);u.flag_affiliation!==void 0&&(y.affiliation=u.flag_affiliation);u.flag_full_name&&(y.fullName=u.flag_full_name);
Object.keys(y).length&&(R.legalReportDetails=y);if(u.flag_description||u.text)R.userComments=u.flag_description||u.text;y={};u.minutes!==void 0&&u.seconds!==void 0&&(y.minutes=u.minutes,y.seconds=u.seconds);u.vss_id&&(y.vssId=u.vss_id);Object.keys(y).length&&(R.videoReportDetails=y);y={};u.video_ids&&(y.videoIds=u.video_ids);u.impersonated_channel_url&&(y.impersonatedChannelUrl=u.impersonated_channel_url);Object.keys(y).length&&(R.channelAbuseReportDetails=y)};
_.RR.Object.defineProperties(Ee.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $H=function(){};
_.O($H,xX);$H.prototype.getApiPaths=function(){return sSi};
$H.prototype.getExtension=function(R){return _.e(R,tFT)};
$H.prototype.JSC$13017_buildRequest=function(R,y){y.blockedForKidsContent&&(R.blockedForKidsContent=y.blockedForKidsContent)};var qa=function(){};
_.O(qa,xX);qa.prototype.getApiPaths=function(){return GdK};
qa.prototype.getExtension=function(R){return _.e(R,Xa4)};
qa.prototype.JSC$13017_buildRequest=function(R,y,u){R.params=y.params;u.impersonated_channel_url&&(R.impersonatedChannelUrl=u.impersonated_channel_url)};var XO=function(){};
_.O(XO,xX);XO.prototype.getApiPaths=function(){return b_b};
XO.prototype.getExtension=function(R){return _.e(R,_.cxc)};
XO.prototype.JSC$13017_buildRequest=function(R,y){y.items&&(R.items=y.items);y.kidGaiaId&&(R.kidGaiaId=y.kidGaiaId)};var mO=function(){};
_.O(mO,xX);mO.prototype.getApiPaths=function(){return YIw};
mO.prototype.getExtension=function(R){return _.e(R,_.v0w)};
mO.prototype.JSC$13017_buildRequest=function(R,y){y.params&&(R.params=y.params);y.targetId&&(R.targetId=y.targetId)};var A9=function(){};
_.O(A9,xX);A9.prototype.getApiPaths=function(){return d$V};
A9.prototype.getExtension=function(R){return _.e(R,SRY)};
A9.prototype.JSC$13017_buildRequest=function(R,y){y.externalVideoId&&(R.externalVideoId=y.externalVideoId);y.query&&(R.query=y.query);y.sourceTimelines&&(R.sourceTimelines=y.sourceTimelines)};var Ds=function(){};
_.O(Ds,xX);Ds.prototype.getApiPaths=function(){return U$g};
Ds.prototype.getExtension=function(R){return _.e(R,_.Lh)||void 0};
Ds.prototype.JSC$13017_buildRequest=function(R,y){y.token&&(R.continuation=y.token)};
_.FVK=function(){};
_.O(_.FVK,xX);_.J=_.FVK.prototype;_.J.getApiPaths=function(){return U$g};
_.J.getExtension=function(R){return _.e(R,_.nc)||void 0};
_.J.isNavigationCommand=function(){return!0};
_.J.JSC$13024_getStoreKey=function(R,y){y=y===void 0?{}:y;if(!y.disableCache&&(R=this.getExtension(R))&&R.query)return y={query:R.query},R.params&&(y.params=R.params),_.sf("search",y)};
_.J.JSC$13017_buildRequest=function(R,y,u){y.query&&(R.query=y.query);y.params&&(R.params=y.params);if(!_.f("web_forward_suggest_stats_killswitch")){var v=_.e(y,XO5);v&&(R.suggestStats=v)}var Q;!_.f("kevlar_searchbox_stats_killswitch")&&((Q=u.tempData)==null?0:Q.gs_l)&&!_.e(y,XO5)&&(R.webSearchboxStatsUrl="/search?oq="+(u.tempData.oq||"")+"&gs_l="+u.tempData.gs_l);var M;if((M=u.tempData)==null?0:M.entityMid)y=R.suggestionSearchParams||{},y.entityMid=u.tempData.entityMid,R.suggestionSearchParams=y;
_.f("enable_desktop_vdcbg_components")&&(u=_.O9().getFlag(186),R.inlineSettingStatus=u?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.J.getRequestConfig=function(R,y){y=y===void 0?{}:y;R=this.JSC$13024_getStoreKey(R,y);var u;R&&(u={storeStrategy:{storeKey:R}});_.f("web_log_search_ticks_ks")||(u=u||{},u.requestTick="sr_s",u.responseTick="sr_r");return u};var p3=function(){};
_.O(p3,xX);p3.prototype.getApiPaths=function(){return Mhb};
p3.prototype.getExtension=function(R){return _.e(R,Hxg)};
p3.prototype.JSC$13017_buildRequest=function(R,y){y.serializedGetSharingProviderDataParams&&(R.serializedGetSharingProviderDataParams=y.serializedGetSharingProviderDataParams)};var t9=function(){};
_.O(t9,xX);t9.prototype.getApiPaths=function(){return JOi};
t9.prototype.getExtension=function(R){return _.e(R,bVG)};
t9.prototype.JSC$13017_buildRequest=function(R,y){y.endpoint&&(R.endpoint=y.endpoint);y.action&&(R.action=y.action)};var ca=function(){};
_.O(ca,xX);ca.prototype.getApiPaths=function(){return A3c};
ca.prototype.getExtension=function(R){return _.e(R,wrV)};
ca.prototype.JSC$13017_buildRequest=function(R,y){R.videoId=y.videoId;y.scheduledRedirectMetadataSourceVideoId&&(R.scheduledRedirectMetadata={sourceVideoId:y.scheduledRedirectMetadataSourceVideoId})};var aI=function(){};
_.O(aI,xX);aI.prototype.getApiPaths=function(){return qMc};
aI.prototype.getExtension=function(R){return _.e(R,_.Fs5)};
aI.prototype.JSC$13017_buildRequest=function(R,y){R.params=y.params;R.correctionText=y.correctionText};var S3=function(){};
_.O(S3,xX);S3.prototype.getApiPaths=function(){return TzE};
S3.prototype.getExtension=function(R){return _.e(R,_.YRi)};
S3.prototype.JSC$13017_buildRequest=function(R,y){y.params&&(R.params=y.params);R.searchQuery=y.searchQuery;R.languageCode=y.languageCode;R.kind=y.kind;R.name=y.name;R.externalVideoId=y.externalVideoId};var YH=function(){};
_.O(YH,xX);YH.prototype.getApiPaths=function(){return Clw};
YH.prototype.getExtension=function(R){return _.e(R,Gic)};
YH.prototype.JSC$13017_buildRequest=function(R,y){y.params&&(R.params=y.params)};var L3=function(R){this.JSC$18035_storeWithEntities=R};
_.O(L3,xX);L3.prototype.getApiPaths=function(){return r3K};
L3.prototype.getExtension=function(R){return _.e(R,PWw)||_.e(R,dJg)};
L3.prototype.JSC$13017_buildRequest=function(R,y,u){u.client_data&&(R.clientData=u.client_data);if(y.commerceActionConfig){var v=y.commerceActionConfig;y=v.actionId;v=v.commerceActionParams;y&&(R.actionId=y);v&&(R.commerceActionParams=v)}else{var Q=y.actionId,M=y.commerceActionParams;u=y.entityKeys;Q&&(R.actionId=Q);M&&(R.commerceActionParams=M);var K;y=(v=this.JSC$18035_storeWithEntities)==null?void 0:(K=v.getState())==null?void 0:K.entities;if(u&&y){v=[];K=_.V(u);for(u=K.next();!u.done;u=K.next())if(Q=
u.value,u=_.bE(Q).entityType,Q=_.TI(y,u,Q))M={},v.push((M[u]=Q,M));R.entityMutationPayloads=v}}};
L3.prototype.getRequestConfig=function(R){var y,u=(y=_.e(R,PWw))==null?void 0:y.requestSequenceType;if(u&&R.clickTrackingParams&&u!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:R.clickTrackingParams,sequenceType:u}}};
L3[Mn]=[he];var se=function(){};
_.O(se,xX);se.prototype.getApiPaths=function(){return R_c};
se.prototype.getExtension=function(R){return _.e(R,_.zN5)};
se.prototype.JSC$13017_buildRequest=function(R,y){y.feedbackData&&(R.feedbackData=y.feedbackData);y.params&&(R.itemParams=y.params)};
_.RR.Object.defineProperties(se.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var z8=function(){};
_.O(z8,xX);z8.prototype.getApiPaths=function(){return yp5};
z8.prototype.getExtension=function(R){return _.e(R,g1w)};
z8.prototype.JSC$13017_buildRequest=function(R,y,u){u.payments_payload&&(R.paymentsPayload=u.payments_payload);u.offer_params&&(R.offerParams=u.offer_params);y.transactionParams&&(R.transactionParams=y.transactionParams)};var g4=function(){};
_.O(g4,xX);g4.prototype.getApiPaths=function(){return uSY};
g4.prototype.getExtension=function(R){return _.e(R,_.CWL)};
g4.prototype.JSC$13017_buildRequest=function(R,y,u){u=u===void 0?{}:u;y.buybucketParams&&(R.buybucketData={params:y.buybucketParams},y.stickerParams?R.buybucketData.stickerParams=y.stickerParams:(u.rich_chat_message?R.buybucketData.richChatMessage=u.rich_chat_message:u.chat_message_text&&(R.buybucketData.chatMessageText=u.chat_message_text),u.purchase_price_micros&&(R.buybucketData.purchasePriceMicros=u.purchase_price_micros.toString())));y.donationAmountMicros&&(R.tipAmountMicros=y.donationAmountMicros,
y.tipParams&&(R.tipParams=y.tipParams));y.offerParams&&(R.offerParams=y.offerParams);y.productData&&(R.productData=y.productData);y.transactionParams&&(R.transactionParams=y.transactionParams)};var C3=function(){};
_.O(C3,xX);C3.prototype.getApiPaths=function(){return vO8};
C3.prototype.getExtension=function(R){return _.e(R,u0Y)};
C3.prototype.JSC$13017_buildRequest=function(R,y){y.updateFopParams&&(R.updateFopParams=y.updateFopParams)};var Rv=function(){};
_.O(Rv,xX);Rv.prototype.getApiPaths=function(){return QsV};
Rv.prototype.getExtension=function(R){return _.e(R,_.KX)};
Rv.prototype.JSC$13017_buildRequest=function(R,y){y.couponCode&&(R.couponCode=y.couponCode);y.params&&(R.itemParams=y.params)};var yp=function(){};
_.O(yp,xX);yp.prototype.getApiPaths=function(){return jsK};
yp.prototype.getExtension=function(R){return _.e(R,_.WsV)};
yp.prototype.JSC$13017_buildRequest=function(R,y,u){u=u===void 0?{}:u;y.params&&(R.params=y.params);u.ctk&&(R.clientToken=u.ctk)};var ug=function(R){this.JSC$18070_storeWithEntities=R};
_.O(ug,xX);ug.prototype.getApiPaths=function(){return M15};
ug.prototype.getExtension=function(R){return _.e(R,_.zC)};
ug.prototype.JSC$13017_buildRequest=function(R,y,u){u.purchase_price_micros&&(R.productData={pdgData:{purchasePriceMicros:u.purchase_price_micros.toString()}},u.rich_chat_message&&(R.productData.pdgData.richChatMessage=u.rich_chat_message),u.currency_code&&(R.productData.pdgData.currencyCode=u.currency_code));y.transactionParams&&(R.transactionParams=y.transactionParams);y.clientLocationContext&&(R.clientLocationContext=y.clientLocationContext);u.payments_payload&&(R.paymentsPayload=u.payments_payload);
u.funds_guarantee_callback_client_data&&(R.fundsGuaranteeCallbackClientData=u.funds_guarantee_callback_client_data);var v,Q;u=(v=this.JSC$18070_storeWithEntities)==null?void 0:(Q=v.getState())==null?void 0:Q.entities;if(y.entityKeys&&u){v=[];y=_.V(y.entityKeys);for(Q=y.next();!Q.done;Q=y.next()){var M=Q.value;Q=_.bE(M).entityType;if(M=_.TI(u,Q,M)){var K={};v.push((K[Q]=M,K))}}R.entityMutationPayloads=v}};
ug[Mn]=[he];var vX=function(){};
_.O(vX,xX);vX.prototype.getApiPaths=function(){return Jpg};
vX.prototype.getExtension=function(R){return _.e(R,Rgg)};
vX.prototype.JSC$13017_buildRequest=function(R,y,u){u=u===void 0?{}:u;u.backend_analytics&&(R.serializedBackendAnalyticsEvent=u.backend_analytics);y.offerParams&&(R.offerParams=y.offerParams)};var Qp=function(){};
_.O(Qp,xX);Qp.prototype.getApiPaths=function(){return QsV};
Qp.prototype.getExtension=function(R){return _.e(R,grL)};
Qp.prototype.JSC$13017_buildRequest=function(R,y){y.params&&(R.itemParams=y.params)};var jD=function(){};
_.O(jD,xX);jD.prototype.getApiPaths=function(){return V1g};
jD.prototype.getExtension=function(R){return _.e(R,_.qj5)};
jD.prototype.JSC$13017_buildRequest=function(R,y,u){u.resume_time_ms&&(R.resumeTimeMs=u.resume_time_ms);y.pauseParams&&(R.pauseParams=y.pauseParams)};var Mm=function(){};
_.O(Mm,xX);Mm.prototype.getApiPaths=function(){return iWV};
Mm.prototype.getExtension=function(R){return _.e(R,_.y3g)};
Mm.prototype.JSC$13017_buildRequest=function(R,y,u){u=u===void 0?{}:u;u.c&&(R.redeemCode=u.c);u.rd&&(R.riskData=u.rd);u.ctk&&(R.clientToken=u.ctk)};var JV=function(){};
_.O(JV,xX);JV.prototype.getApiPaths=function(){return KGY};
JV.prototype.getExtension=function(R){return _.e(R,_.XRV)};
JV.prototype.JSC$13017_buildRequest=function(R,y){y.resumeParams&&(R.resumeParams=y.resumeParams)};var Vp=function(R,y){this.clientName=R;this.defaultExpirationDelayMs=y};
Vp.prototype.put=function(R,y){var u=this,v;return _.I(function(Q){v=Object.assign({},y.data);v.key=R;v.clientName=u.clientName;v.expireTimestampMs===void 0&&(v.expireTimestampMs=(Math.round((0,_.uQ)())+u.defaultExpirationDelayMs).toString());return Q.return(u.putInternal(R,v))})};
Vp[Mn]=[mC,eTp];var wK8=function(){Vp.apply(this,arguments);this.JSC$18100_responseStore=new Map};
_.O(wK8,Vp);_.J=wK8.prototype;_.J.get=function(R){var y=this;return _.I(function(u){return u.return(oa(y,R))})};
_.J.putInternal=function(R,y){var u=this,v,Q,M;return _.I(function(K){v=u.defaultExpirationDelayMs;y.expireTimestampMs&&(v=Number(y.expireTimestampMs)-Math.round((0,_.uQ)()),Q=_.JT("mweb_override_response_store_expiration_ms"),Q>0&&Q<v&&(v=Q));M=setTimeout(function(){u.remove(R)},v);
u.JSC$18100_responseStore.set(R,{entryData:y,timer:M});_.f$(K)})};
_.J.remove=function(R){var y=this;return _.I(function(u){Ngm(y,R);_.f$(u)})};
_.J.removeAll=function(){var R=this;return _.I(function(y){R.JSC$18100_responseStore.forEach(function(u){clearTimeout(u.timer)});
R.JSC$18100_responseStore.clear();_.f$(y)})};
_.J.has=function(R){return!!this.JSC$18100_responseStore.get(R)};
_.J.getKeys=function(){return this.JSC$18100_responseStore.keys()};
var oa=function(R,y){if(R=R.JSC$18100_responseStore.get(y))return new _.Td(R.entryData)},Ngm=function(R,y){var u=R.JSC$18100_responseStore.get(y);
u&&(clearTimeout(u.timer),R.JSC$18100_responseStore.delete(y))};var obO;var fJv=function(R,y,u){Vp.call(this,R,y);this.token=u};
_.O(fJv,Vp);_.J=fJv.prototype;_.J.get=function(R){var y=this,u,v;return _.I(function(Q){return Q.nextAddress==1?Q.yield(BiE(y.token),2):Q.nextAddress!=3?(u=Q.yieldResult,Q.yield(u.get("ResponseStore",[R,y.clientName]),3)):(v=Q.yieldResult)?Q.return(new _.Td(v)):Q.return(void 0)})};
_.J.putInternal=function(R,y){var u=this,v;return _.I(function(Q){if(Q.nextAddress==1)return Q.yield(BiE(u.token),2);v=Q.yieldResult;return Q.yield(v.put("ResponseStore",y),0)})};
_.J.remove=function(R){var y=this,u;return _.I(function(v){if(v.nextAddress==1)return v.yield(BiE(y.token),2);u=v.yieldResult;return v.return(u.delete("ResponseStore",[R,y.clientName]))})};
_.J.removeAll=function(){var R=this,y;return _.I(function(u){if(u.nextAddress==1)return u.yield(BiE(R.token),2);y=u.yieldResult;return u.yield(ql5(y,IDBKeyRange.only(R.clientName)),0)})};
_.J.has=function(){throw Error("Wi");};_.ig=new _.Jx("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var TgI=function(R){var y;this.stateTagsData=(y=R.responseContext)==null?void 0:y.stateTags},o8J=function(R){var y;
return((y=R.stateTagsData)==null?void 0:y.stateTagsModified)||[]};var xG8;xG8=function(R){this.JSC$18113_responseStore=R};
_.LR=function(R,y,u){if(!_.f("state_tags_killswitch")){var v=new TgI(y);if(o8J(v).length>0){var Q=R.JSC$18113_responseStore.getKeys();Q=_.V(Q);for(var M=Q.next();!M.done;M=Q.next()){M=M.value;var K=oa(R.JSC$18113_responseStore,M);if(K){var h=_.KR(K);a:{var b=void 0;K=o8J(v);h=((b=(new TgI(h)).stateTagsData)==null?void 0:b.relevantStateTags)||[];b=_.V(h);for(h=b.next();!h.done;h=b.next())if(h=h.value,h.stateTag!=null&&K.includes(h.stateTag)&&h.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){K=
!0;break a}K=!1}K&&Ngm(R.JSC$18113_responseStore,M)}}}}var N;v=(N=y.responseContext)==null?void 0:N.maxAgeSeconds;u&&v&&Number(v)>0&&(y=o8(y,v),R.JSC$18113_responseStore.put(u,new _.Td(y)))};
xG8.prototype.handleResponse=function(R,y){if(!y)throw Error("Xi");var u,v;y=(u=y.config)==null?void 0:(v=u.storeStrategy)==null?void 0:v.storeKey;_.LR(this,R,y)};
xG8[Mn]=[_.N$];_.Grc=new _.Jx("STORE_RESPONSE_PROCESSOR_TOKEN");var Bga=function(R){this.JSC$18116_responseStore=R};
Bga.prototype.handleResponse=function(R,y){if(y.input.match(_.jq(Z_b))){var u;if(R==null?0:(u=R.entries)==null?0:u.length)for(R=_.V(R.entries),y=R.next();!y.done;y=R.next()){u=y.value.command;var v=void 0;y=(v=_.e(u,_.PV))==null?void 0:v.unserializedPrefetchData;if(!u||!y)break;v=(new d4).JSC$13024_getStoreKey(u);var Q=_.e(y,A4T),M=void 0,K=void 0,h=void 0,b=_.JT("web_shorts_prefetch_service_ttl_seconds")>0?_.JT("web_shorts_prefetch_service_ttl_seconds"):Number((h=(M=Q)==null?void 0:(K=M.responseContext)==
null?void 0:K.maxAgeSeconds)!=null?h:3600);v&&b>0&&(Q=o8(Q,b),this.JSC$18116_responseStore.put(v,new _.Td(Q)));u=(new Ox).JSC$13024_getStoreKey(u);y=_.e(y,OtG);M=Q=v=void 0;K=_.JT("web_shorts_prefetch_service_ttl_seconds")>0?_.JT("web_shorts_prefetch_service_ttl_seconds"):Number((M=(v=y)==null?void 0:(Q=v.responseContext)==null?void 0:Q.maxAgeSeconds)!=null?M:3600);u&&K>0&&(y=o8(y,K),this.JSC$18116_responseStore.put(u,new _.Td(y)))}}};
Bga[Mn]=[_.N$];var fw8=function(R){this.innertubeTransportService=R};
fw8[Mn]=[_.Dj];var ec8=new _.Jx("SUBMIT_API_SERVICE_TOKEN");var Kq=function(){this.scheduler=_.EJ()},lwH;
Kq.prototype.pause=function(){throw Error("Yi");};
Kq.prototype.resume=function(){throw Error("Yi");};
Kq.prototype.queue=function(R){var y=this,u=_.uD(),v=_.Oh(this.scheduler,function(){try{var Q;if(_.lX.instance)var M=_.lX.instance;else{var K=new _.OL("Error: Unexpected uninitialized CommandHandler.");_.dI(K);M=void 0}(Q=M)==null||Q.resolveCommand(R.command);u.resolve()}catch(h){u.reject(h)}});
u.promise.thenCatch(function(Q){Q instanceof _.LX&&y.scheduler.cancelJob(v)});
return u.promise};
Kq.prototype.queueAll=function(R){var y=new Map;R=_.V(R);for(var u=R.next();!u.done;u=R.next())u=u.value,y.set(u.id,this.queue(u));return y};var ZYP=function(R,y){var u=this;this.taskModel=R;this.onTaskCancelledCallback=y;this.resolver=_.uD();R=R.proto.prefetchConfig;if(!R)throw Error("Zi");if(!R.prefetchAction)throw Error("$i");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(v){v instanceof _.LX&&(OY8(u,u.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),u.onTaskCancelledCallback(u.taskModel.id,u.jobId),u.tick("pcc"));
throw v;});
this.timerName=this.taskModel.id;_.$F(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
ZYP.prototype.getPriority=function(){switch(this.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}};
var OY8=function(R,y){_.E9({prefetchInfo:{cancellationReason:y}},R.timerName)};
ZYP.prototype.tick=function(R){_.qQ(R,void 0,this.timerName)};var hV=function(){var R=this;this.scheduler=_.EJ();this.maxInflightTasks=_.JT("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.JT("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new Mpb;this.onTaskCancelled=function(y,u){u&&R.scheduler.cancelJob(u);HYJ(R,y);Iv(R,3)}},n8M=function(){hV.instance||(hV.instance=new hV);
return hV.instance};
hV.prototype.pause=function(){this.prefetchCoordinatorState=0};
hV.prototype.resume=function(){Iv(this,0)};
hV.prototype.queue=function(R){R=G5p(this,R);Iv(this,1);return R};
hV.prototype.queueAll=function(R){var y=new Map;R=_.V(R);for(var u=R.next();!u.done;u=R.next())u=u.value,y.set(u.id,G5p(this,u));Iv(this,1);return y};
var G5p=function(R,y){var u=R.allPrefetchTasks.get(y.id);if(u)return u.cancellablePromise;try{var v=new ZYP(y,R.onTaskCancelled)}catch(M){return _.qk(M)}u=v;u.tick("pcq");var Q={prefetchInfo:{taskId:u.taskModel.id,isPrefetch:!0,fetchAction:u.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:u.taskModel.command.clickTrackingParams}};u.taskModel.csn&&(Q.clientScreenNonce=u.taskModel.csn);_.E9(Q,u.timerName);R.allPrefetchTasks.set(y.id,v);R.drainingHeap.insert(-v.getPriority(),v);return v.cancellablePromise},
Iv=function(R,y){R.prefetchCoordinatorState===y&&(R.prefetchCoordinatorState=2,rLm(R))},rLm=function(R){for(var y={};R.prefetchCoordinatorState!==0;y={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(R.inflightPrefetchTasks.size>=R.maxInflightTasks){R.prefetchCoordinatorState=3;break}y.prefetchTask$jscomp$1=R.drainingHeap.remove();if(!y.prefetchTask$jscomp$1){R.prefetchCoordinatorState=1;break}y.taskId$jscomp$3=y.prefetchTask$jscomp$1.taskModel.id;if(R.allPrefetchTasks.has(y.taskId$jscomp$3)){var u=-1;R.coordinatorTimeoutMs>0&&(u=_.Oh(R.scheduler,function(v){return function(){bg(R,v.taskId$jscomp$3,Error("aj"))}}(y),R.coordinatorTimeoutMs));
R.inflightPrefetchTasks.set(y.taskId$jscomp$3,u);if(!R.JSC$18134_commandHandler){if(!_.lX.instance){bg(R,y.taskId$jscomp$3,Error("bj"));continue}R.JSC$18134_commandHandler=_.lX.instance}a:switch(y.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":u=1;break a;default:u=0}y.prefetchTask$jscomp$1.jobId=R.scheduler.addJob(function(v){return function(){v.prefetchTask$jscomp$1.tick("pcr");try{R.JSC$18134_commandHandler.resolveCommand(v.prefetchTask$jscomp$1.taskModel.command)||
bg(R,v.taskId$jscomp$3,Error("cj"))}catch(Q){bg(R,v.taskId$jscomp$3,Q)}}}(y),u,0)}}},PTJ=function(R,y){(y=HYJ(R,y))!=null&&(y.resolver.resolve(),y.tick("pce"));
Iv(R,3)},bg=function(R,y,u){(y=HYJ(R,y,u))!=null&&(y.resolver.reject(u),y.tick("pcc"),OY8(y,"CANCELLATION_REASON_ERROR"),Math.random()<=_.JT("prefetch_coordinator_error_logging_sampling_rate")&&(u=new _.OL("Prefetch Command failed.",y.taskModel.id,u.message),_.dI(u)));
Iv(R,3)},HYJ=function(R,y,u){var v=R.allPrefetchTasks.get(y);
v?((u=R.inflightPrefetchTasks.get(y))&&u!==-1&&R.scheduler.cancelJob(u),R.inflightPrefetchTasks.delete(y),R.allPrefetchTasks.delete(y)):_.kT(new _.OL("Unexpected missing prefetch task when deleting task.",y,u==null?void 0:u.message));return v};var WVa=function(R,y,u,v,Q){this.id=R;this.triggerOn=y;this.cancelOn=u;this.command=v;this.proto=Q};
_.RR.Object.defineProperties(WVa.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var dGZ=function(){this.JSC$18139_prefetchCoordinator=n8M();lwH||(lwH=new Kq);this.defaultCoordinator=lwH},UGP;
dGZ.getInstance=function(){UGP||(UGP=new dGZ);return UGP};
dGZ.prototype.get=function(R){switch(R){case 0:return this.JSC$18139_prefetchCoordinator;default:return this.defaultCoordinator}};var FE=function(){this.coordinatorSupplier=dGZ.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},$Go=function(R){var y=_.$I()||void 0,u=Object.keys(k5H)[0];
if(u){var v=R.taskIdByTriggerId.get(u);if(v!=null){R.taskIdByTriggerId.delete(u);u=[];v=_.V(v);for(var Q=v.next();!Q.done;Q=v.next())if(Q=R.tasks.get(Q.value))y!=="UNDEFINED_CSN"&&(Q.csn=y),u.push(Q);u=OPS(u);y=[];u=_.V(u);for(v=u.next();!v.done;v=u.next()){Q=_.V(v.value);v=Q.next().value;Q=Q.next().value;v=R.coordinatorSupplier.get(v).queueAll(Q);v=_.V(v);var M=v.next();for(Q={};!M.done;Q={taskId$jscomp$9:void 0},M=v.next()){var K=_.V(M.value);M=K.next().value;K=K.next().value;Q.taskId$jscomp$9=
M;M=K;y.push(Q.taskId$jscomp$9);R.queuedPromisesByTask.set(Q.taskId$jscomp$9,_.Wc(M,function(h){return function(){E8a(R,h.taskId$jscomp$9)}}(Q)))}}}}else _.kT(new _.OL("Unexpected malformed TriggerEvent."))};
FE.prototype.trigger=function(R,y){var u=this,v=this.tasks.get(R);if(!v||this.queuedPromisesByTask.has(R))return!1;qiJ(this,R,v.triggerOn);y!=="UNDEFINED_CSN"&&(v.csn=y);y=this.coordinatorSupplier.get(v.taskType).queue(v);this.queuedPromisesByTask.set(R,_.Wc(y,function(){E8a(u,R)}));
return!0};
FE.prototype.cancel=function(R){var y=this.queuedPromisesByTask.get(R);if(y)y.cancel();else return E8a(this,R)};
var E8a=function(R,y){R.queuedPromisesByTask.delete(y);var u=R.tasks.get(y);if(!u)return!1;R.tasks.delete(y);qiJ(R,y,u.triggerOn);(u=lJS(u.cancelOn))&&(R=R.taskIdByCancelId.get(u))&&R.delete(y);return!0},qiJ=function(R,y,u){(u=Object.keys(u)[0])&&(R=R.taskIdByTriggerId.get(u))&&R.delete(y)};var k5H={taskRegistered:{}},wS=function(){FE.instance||(FE.instance=new FE);this.JSC$18148_taskManager=FE.instance};
_.O(wS,YQ);
wS.prototype.resolveCommand=function(R){var y=this,u,v;return _.I(function(Q){u=_.e(R,DL5);if((v=u)==null||!v.tasks){var M=new _.OL("RegisterTasksCommand is missing tasks.");_.dI(M);return Q.return()}M=y.JSC$18148_taskManager;for(var K=_.V(u.tasks),h=K.next();!h.done;h=K.next())if(h=h.value,h=h.id&&h.triggerOn&&h.cancelOn&&h.command?new WVa(h.id,h.triggerOn,h.cancelOn,h.command,h):void 0,h){var b=Object.keys(h.triggerOn)[0];if(b){var N=lJS(h.cancelOn);N?(M.tasks.set(h.id,h),M.taskIdByTriggerId.has(b)||M.taskIdByTriggerId.set(b,
new Set),M.taskIdByTriggerId.get(b).add(h.id),M.taskIdByCancelId.has(N)||M.taskIdByCancelId.set(N,new Set),M.taskIdByCancelId.get(N).add(h.id)):_.kT(new _.OL("Unexpected malformed cancelOn field."))}else _.kT(new _.OL("Unexpected malformed triggerOn field."))}else _.kT(new _.OL("Unexpected malformed Task proto."));$Go(y.JSC$18148_taskManager);_.f$(Q)})};var XKM={},mGH=(XKM.rendered={priority:0,callback:function(){var R={};R.numCpu=navigator.hardwareConcurrency;var y={};y.ramGb=_.uO.navigator.deviceMemory;var u={staticContext:{}};y.ramGb&&ZPG(y.ramGb)&&(u.staticContext.memoryTotalKbytes=(y.ramGb*1048576).toString());R.numCpu&&ZPG(R.numCpu)&&(u.staticContext.cpuCores=R.numCpu);if(_.f("web_enable_adaptive_appl_signal")){R={};y=_.A_("rses_dpj");var v=_.A_("rsef_dpj");y&&y>0&&v&&v>0&&(y=Math.ceil(v-y),y>0&&(R.loadLatency=y));R.loadLatency&&ZPG(R.loadLatency)&&
(u.appL=R.loadLatency.toString())}_.P3("applicationStarted",u)}},XKM);var ALP=new _.Jx("WINDOW_ON_ERROR"),DGg=new _.Jx("ERROR_WEIGHT_MAPS"),pKa=new _.Jx("INIT_ERROR");var tgp={},cLV=(tgp.initialized={priority:10,callback:function(R){R.injector.resolve(pKa)()}},tgp);var awg=function(){},Sip=function(){var R=_.D6("meta_logger_impl");
R||(R=new awg,_.CJ("meta_logger_impl",R));return R},Yi8=function(){Sip().csiSubscriptionKey=K8P("meta_logging_csi_event",function(R){var y=R.timerName;
if(R=R.timelineData){_.$F(y,{startTime:R.startTime},y);R.infos&&_.E9(R.infos,y);for(var u=_.V(Object.keys(R.ticks)),v=u.next();!v.done;v=u.next())v=v.value,_.qQ(v,R.ticks[v],y)}})};
awg.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&buG(this.csiSubscriptionKey)};var LVp={},sba=(LVp.initialized={priority:10,callback:function(){Yi8()}},LVp);var zc7=function(R,y){this.innertubeClientName=R;this.JSC$18164_prefCookie=y};
zc7.prototype.record=function(){if(_.f("web_li_record_binary_eval_tick")){var R=_.A_("rsef_dpj");var y=_.A_("rses_dpj");R=R!==void 0&&y!==void 0?Math.round(R-y):void 0;if(R!==void 0&&R>0){y=_.fl(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var u=this.poolSize;if(!(y.valuesSeen>=1E9)){if(y.valuesSample.length<u)y.valuesSample.push(R);else{var v=Math.floor(Math.random()*(y.valuesSeen+1));v<u&&(y.valuesSample[v]=R)}y.valuesSeen+=1}_.B1(this.storagePrefix+"-"+this.innertubeClientName,
y,2592E3);R=y.valuesSample;y=HPT(R);R=R.length<this.poolSize?void 0:y<400?1:y<1700?2:3;R!==void 0&&(this.JSC$18164_prefCookie.set(this.cookiePrefix+this.innertubeClientName,R),this.JSC$18164_prefCookie.save())}}else _.e5(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18164_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18164_prefCookie.save()};
zc7[Mn]=[mC,N3];var g8K=function(){zc7.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.O(g8K,zc7);var CTm=new _.Jx("PAGE_LOAD_TIME_TOKEN");var R7K=function(R){this.signal=R;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;R.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.Oh(_.WG,this.disableLoggingAndSendPayload,1E4)};
R7K.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.WG.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),yIa(this))};
var yIa=function(R){var y=_.Ef();if(y){var u={webClientComponentsData:{components:Array.from(R.ids,function(v){return{id:v}})}};
R.ids.clear();_.GN().visualElementStateChanged(y,u)}};var upM=new _.Jx("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var Nm=function(R,y){this.JSC$18193_storeWithEntities=R;this.JSC$18193_commandHandler=y;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
Nm.prototype.start=function(){this.JSC$18193_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
Nm.prototype.observeDownloadingEntities=function(){var R=_.pev(this.JSC$18193_storeWithEntities.getState().entities).map(function(v){return tEO(v)});
if(R.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var y={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:ODO()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.Mq(_.fo("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18193_commandHandler.resolveCommand(y)}this.downloadingEntities=R}else if(this.downloadingEntities.length){var u=Dwv(this.JSC$18193_storeWithEntities.getState().entities).map(function(v){return tEO(v)});
this.downloadingEntities.filter(function(v){return u.includes(v)}).length&&(R={openPopupAction:iP4()},this.JSC$18193_commandHandler.resolveCommand(R));
this.downloadingEntities=[]}};
Nm[Mn]=[he,_.jX];var vMg;_.TE=function(R,y,u,v,Q,M,K,h){this.JSC$18196_playerApiPromise=R;this.JSC$18196_commandHandler=y;this.JSC$18196_screenManager=u;this.offlineWebClientEligibility=v;this.JSC$18196_prefStorage=Q;this.JSC$18196_actionRouter=M;this.entityTypeMap=K;this.JSC$18196_persistentStorePromiseAccessor=h;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
vMg=function(){var R=_.ua().resolve(_.TE),y;_.I(function(u){if(u.nextAddress==1)return R.downloadFailureListenerBound?u.return():u.yield(R.JSC$18196_playerApiPromise,2);y=u.yieldResult;y.addEventListener("onOfflineOperationFailure",function(v){if(v.failureReason&&v.entityKey&&v.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(v.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var Q=_.bE(v.entityKey).entityId;Q&&R.JSC$18196_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
Q)}else if(_.f("kevlar_woffle")){Q=R.JSC$18196_commandHandler;var M=Q.resolveCommand;v=v.failureReason;var K=_.fo("TRANSFER_FAILED",void 0,"Download failed");v==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(K=_.fo("STORAGE_FULL",void 0,"Storage full"));M.call(Q,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Mq(K),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
R.downloadFailureListenerBound=!0;_.f$(u)})};
_.TE.prototype.deleteVideo=function(R,y){var u=this,v,Q,M;return _.I(function(K){if(K.nextAddress==1)return K.yield(u.JSC$18196_playerApiPromise,2);v=K.yieldResult;M={offlineLoggingData:{offlineDeleteReason:(Q=y)!=null?Q:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return K.yield(v.queueOfflineAction(R,u.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",M),0)})};
_.TE.prototype.pauseVideoDownload=function(R){var y=this,u;return _.I(function(v){if(v.nextAddress==1)return v.yield(y.JSC$18196_playerApiPromise,2);u=v.yieldResult;u.pauseVideoDownload(R);_.f$(v)})};
_.TE.prototype.resumeVideoDownload=function(R){var y=this,u;return _.I(function(v){if(v.nextAddress==1)return v.yield(y.JSC$18196_playerApiPromise,2);u=v.yieldResult;return v.yield(u.resumeVideoDownload(R),0)})};
_.TE[Mn]=[_.Np,_.jX,_.Ej,upM,BI,Mi,hwi,lL];var QPg=new _.Jx("DOWNLOAD_STATE_STORE_TOKEN");var jPP=function(R,y){this.JSC$18216_persistentStorePromiseAccessor=R;this.store=y;this.upliftCompletionResolver=new _.xv},VKa=function(){var R=_.ua().resolve(MK8),y;
_.I(function(u){switch(u.nextAddress){case 1:if(R.upliftImplPromise)return u.return(R.upliftImplPromise);_.wY(u,2);R.upliftImplPromise=JIa(R);return u.yield(R.upliftImplPromise,4);case 4:R.upliftCompletionResolver.resolve();_.c5(u,3);break;case 2:throw y=_.B$(u),R.upliftCompletionResolver.reject(y),y;case 3:return u.return(R.upliftImplPromise)}})},JIa=function(R){var y,u,v;
return _.I(function(Q){switch(Q.nextAddress){case 1:return _.$B("LOGGED_IN")?Q.yield(R.JSC$18216_persistentStorePromiseAccessor(),2):Q.return();case 2:y=Q.yieldResult;if(!y)return _.qQ("vdeur"),Q.return();_.qQ("vdeus");_.wY(Q,3);return Q.yield(iZJ(y),5);case 5:u=Q.yieldResult;R.store.dispatch(nWS(u));y.observe(function(M){GCS(R.store,M)});
_.c5(Q,4);break;case 3:throw v=_.B$(Q),_.qQ("vdeur"),v;case 4:_.qQ("vdeuc"),_.f$(Q)}})},iZJ=function(R){var y;
return _.I(function(u){if(u.nextAddress==1)return u.yield(UNU(R),2);y=u.yieldResult;return u.return(y.reduce(function(v,Q){if(!Q.data||!Q.key||!Q.entityType)return v;v[Q.entityType]||(v[Q.entityType]={});v[Q.entityType][Q.key]=Q.data;return v},{}))})};
jPP[Mn]=[lL,_.S5];var MK8;MK8=new _.Jx("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.ov=new _.Jx("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var xg=function(R,y){this.JSC$18219_persistentStorePromiseAccessor=R;this.transportService=y};
xg.prototype.refresh=function(){var R=this,y,u,v,Q;return _.I(function(M){if(M.nextAddress==1)return _.$B("LOGGED_IN")?M.yield(R.JSC$18219_persistentStorePromiseAccessor(),2):M.return();if(M.nextAddress!=3)return(y=M.yieldResult)?M.yield(wFW(y),3):M.return();if((u=M.yieldResult)&&!(Number(u.data.refreshTimestampMs||0)<(0,_.uQ)()))return M.return();v={browseId:"SPaccount_downloads"};Q=_.jq(vZ);_.am(R.transportService,v,Q).then(function(K){var h;if(y&&(K==null?void 0:(h=K.responseContext)==null?void 0:
h.maxAgeSeconds)!==0){var b;h=(K==null?void 0:(b=K.responseContext)==null?void 0:b.maxAgeSeconds)||604800;b=String(Math.floor((0,_.uQ)())+h*1E3);y.put("service:downloads_settings:fallback",new _.Td({innertubeResponse:K,refreshTimestampMs:b}))}});
_.f$(M)})};
xg[Mn]=[_.ig,_.Dj];var BX=function(R,y){this.JSC$18223_playerPromise=R;this.store=y;this.started=!1};
BX.prototype.start=function(){var R=this,y;return _.I(function(u){if(u.nextAddress==1)return R.started?u.return():u.yield(R.JSC$18223_playerPromise,2);y=u.yieldResult;y.addEventListener("onOrchestrationBecameLeader",R.updateIsLeader.bind(R,!0));y.addEventListener("onOrchestrationLostLeader",R.updateIsLeader.bind(R,!1));if(y.isOrchestrationLeader)R.updateIsLeader(y.isOrchestrationLeader());else{var v=new _.OL("Function isOrchestrationLeader is undefined",{"player.isReady":y.isReady(),"player.playVideo":y.playVideo?
"defined":"undefined"});_.dI(v);R.updateIsLeader(!1)}R.started=!0;_.f$(u)})};
BX.prototype.updateIsLeader=function(R){this.store.dispatch(_.iE({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:R}}))};
BX[Mn]=[_.Np,_.S5];var KgJ=function(R,y){this.networkStatusManager=R;this.JSC$18226_prefStoragePromise=y;this.redirectsToPreload=["https://youtube.com"]},Ioa=function(){var R=_.ua().resolve(KgJ),y,u,v,Q,M,K;
_.I(function(h){switch(h.nextAddress){case 1:return h.yield(R.JSC$18226_prefStoragePromise,2);case 2:y=h.yieldResult;if(!(u=y)){h.jumpTo(3);break}return h.yield(y.get("yt-redirect-prefetch-id"),4);case 4:u=h.yieldResult;case 3:if(u||!R.networkStatusManager.isNetworkAvailable())return h.return();v={cache:"reload",redirect:"manual"};Q=_.V(R.redirectsToPreload);M=Q.next();case 5:if(M.done){if(!y){h.jumpTo(0);break}return h.yield(y.set("yt-redirect-prefetch-id",!0,86400),0)}K=M.value;_.wY(h,8);return h.yield(_.uO.fetch(K,
v),10);case 10:_.c5(h,6);break;case 8:_.B$(h);case 6:M=Q.next(),h.jumpTo(5)}})};var fq=function(R){R?(this.container=R,this.containerWasInjected=!0):this.containerWasInjected=!1};
fq.prototype.openDialog=function(R,y,u){var v=this,Q;return _.I(function(M){(Q=v.container)==null||Q.openDialog(R,y,u);_.f$(M)})};
fq.prototype.closeDialog=function(){var R=this,y;return _.I(function(u){(y=R.container)==null||y.closeDialog();_.f$(u)})};
fq.prototype.isDialogOpen=function(){var R=this,y,u;return _.I(function(v){return v.return((u=(y=R.container)==null?void 0:y.isDialogOpen())!=null?u:!1)})};
fq[Mn]=[_.yN(CyK)];_.h7M=new _.Jx("POPUP_CONTROLLER_TOKEN");var bZm=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
bZm.prototype.registerPanel=function(R,y){if(R){this.panelMap.set(R,y);var u=this.pendingPanelResolvers.get(R);u&&(u.resolve(y),this.pendingPanelResolvers.delete(R))}};
bZm.prototype.getPanel=function(R){var y=this,u;return _.I(function(v){return(u=y.panelMap.get(R))?v.return(u):v.return(Fga(y,R))})};
var Fga=function(R,y){var u,v;return _.I(function(Q){if(u=R.pendingPanelResolvers.get(y))return Q.return(u.promise);v=new _.xv;R.pendingPanelResolvers.set(y,v);return Q.return(v.promise)})},wHP=function(R){bZm.call(this);
var y=this;this.popupController=R;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return y.panelMap.size}}};
_.O(wHP,bZm);_.J=wHP.prototype;_.J.getReloadContinuation=function(R){var y=this,u;return _.I(function(v){if(v.nextAddress==1)return v.yield(y.getPanel(R),2);u=v.yieldResult;return v.return(u.getReloadContinuation())})};
_.J.showPanel=function(R,y,u,v,Q,M,K){var h=this,b,N,T,x;return _.I(function(B){if(B.nextAddress==1){K&&h.updatePanelContinuationDatas.set(R,K);if((b=u)==null?0:(N=b.engagementPanelPopupPresentationConfig)==null?0:N.popupType){T=u.engagementPanelPopupPresentationConfig.popupType;Q===void 0&&(Q=document.body);var l=B.return,Z=h.popupController,P=Z.openPopup;a:switch(T){case "PANEL_POPUP_TYPE_DIALOG":var k="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":k="DROPDOWN";break a;default:throw Error("ej`"+
T);}return l.call(B,P.call(Z,R,y,k,Q))}return B.yield(h.getPanel(R),2)}x=B.yieldResult;(y||M)&&x.updatePanel(y,!1,v,M);x.showPanel(v);_.f$(B)})};
_.J.hidePanel=function(R){var y=this,u;return _.I(function(v){if(v.nextAddress==1)return v.yield(y.getPanel(R),2);u=v.yieldResult;u.hidePanel();y.popupController.closePopup(R);_.f$(v)})};
_.J.isVisible=function(R,y){var u=this,v;return _.I(function(Q){if(Q.nextAddress==1)return y&&!u.panelMap.has(R)?Q.return(!1):Q.yield(u.getPanel(R),2);v=Q.yieldResult;return Q.return(v.isVisible())})};
_.J.updatePanel=function(R,y,u,v,Q,M){u=u===void 0?!1:u;var K=this,h;return _.I(function(b){if(b.nextAddress==1){if(!y&&!Q)return b.return();M&&K.updatePanelContinuationDatas.set(R,M);return b.yield(K.getPanel(R),2)}h=b.yieldResult;h.updatePanel(y,u,v,Q);_.f$(b)})};
_.J.registerPanelContent=function(R,y){R&&this.panelContentMap.set(R,y)};
_.J.unregisterPanelContent=function(R){this.panelContentMap.delete(R)};
_.J.getPanelContent=function(R){return this.panelContentMap.get(R)};
_.J.getUpdatePanelContinuationData=function(R){return this.updatePanelContinuationDatas.get(R)};
wHP[Mn]=[_.h7M];var eD=function(R,y){this.innertubeTransportService=R;this.JSC$18242_screenManager=y},Naa=function(R){var y;
return!((y=R.panelLoadingStrategy)==null||!y.requestTemplate)};
eD.prototype.makeRequest=function(R){var y=this,u,v;return _.I(function(Q){switch(Q.nextAddress){case 1:if(!Naa(y)){Q.jumpTo(2);break}_.wY(Q,3);return Q.yield(_.yB(y.innertubeTransportService,R),5);case 5:return u=Q.yieldResult,u?Q.return(u.content):(_.dI(Error("fj")),Q.return(void 0));case 3:v=_.B$(Q),_.dI(v);case 2:return Q.return(void 0)}})};
eD.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
eD.prototype.execute=function(R){var y=this,u,v,Q,M,K,h,b,N,T,x;return _.I(function(B){if(B.nextAddress==1){u=R;v=u.data;Q=u.fallbackVe;M=u.parentVe;K=u.createScreenConfig;h=u.renderFn;b=u.command;y.panelLoadingStrategy=v;var l,Z,P=((l=y.panelLoadingStrategy)==null?0:l.screenVe)?(Z=y.panelLoadingStrategy)==null?void 0:Z.screenVe:Q;P&&_.om(y.JSC$18242_screenManager,P,M,K);return(N=y.getContent())?B.yield(h(N),2):B.jumpTo(2)}return B.nextAddress!=4?Naa(y)?B.yield(y.makeRequest(b),4):B.return():(x=T=
B.yieldResult)?B.yield(h(x),0):B.return()})};
eD[Mn]=[_.Dj,_.Ej];var lg=function(){};
lg.prototype.getContainer=function(){return _.ji()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
lg.prototype.openSheet=function(R,y){var u=this,v,Q,M,K,h,b;return _.I(function(N){switch(N.nextAddress){case 1:return v={stack:[],error:void 0,hasError:!1},_.wY(N,2,3),Q=zl,N.yield(u.isSheetOpen(),5);case 5:M=N.yieldResult;hbG(v,l1S(Q));if(M){if(y&&u.currentTarget===y)return(K=u.getContainer())==null||K.closeSheet(),N.return();u.pendingData={data:R,target:Z8o(u,y)};return N.return()}R.viewModel&&(R={viewModel:R.viewModel});(h=u.getContainer())==null||h.openSheet(R,y);u.currentTarget=y;case 3:_.T9(N);
bfO(v);_.xL(N,0);break;case 2:b=_.B$(N),v.error=b,v.hasError=!0,N.jumpTo(3)}})};
lg.prototype.closeSheet=function(){var R=this,y;return _.I(function(u){if(u.nextAddress==1)return u.yield((y=R.getContainer())==null?void 0:y.closeSheet(),2);if(u.nextAddress!=4)return R.currentTarget=void 0,R.pendingData?u.yield(R.openSheet(R.pendingData.data,R.pendingData.target),4):u.jumpTo(0);R.pendingData=void 0;_.f$(u)})};
lg.prototype.isSheetOpen=function(){var R=this,y,u;return _.I(function(v){return v.return((u=(y=R.getContainer())==null?void 0:y.isSheetOpen())!=null?u:!1)})};
var Z8o=function(R,y){if(!_.f("web_parent_target_for_sheets"))return y;var u,v;return(v=(u=R.getContainer())==null?void 0:u.getParentTarget(y))!=null?v:y};var b1=window.documentPictureInPicture;var aJP=_.RE(["dark"]),S_W=_.RE(["system-icons"]),Y_E=_.RE(["typography"]),L1T=_.RE(["lang"]),sDz=_.RE(["style"]),DNc=_.RE(["dir"]),pFz=_.RE(["rounded-container"]),t9U=_.RE(["style"]),gbv=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],OG=function(R){this.JSC$18254_clientRoot=R;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
OG.prototype.openWindow=function(R){var y=this,u,v;return _.I(function(Q){if(Q.nextAddress==1)return window.documentPictureInPicture&&_.GT()&&!y.currentPipWindow?Q.yield((u=b1?b1:null)==null?void 0:u.requestWindow(R),2):Q.return(!1);if(Q.nextAddress!=3){v=Q.yieldResult;if(!v)return Q.return(!1);v.addEventListener("pagehide",function(){TaJ(y)});
v.addEventListener("resize",y.handlePipWindowResize);y.pipWindowResizeDelay=new _.Q9(function(){y.currentPipWindow&&_.Ik(y.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.or(y.currentPipWindow.innerWidth,y.currentPipWindow.innerHeight)])},v);
z0U(v);Ryz(v);return Q.yield(ABT(v),3)}if(!q_S())return Q.return(!1);y.currentPipWindow=v;y.JSC$18254_eventForwarder=CPP(v,y.JSC$18254_clientRoot);y.pipWindowResizeDelay.start();return Q.return(!0)})};
OG.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var TaJ=function(R){if(R.currentPipWindow){var y,u;(y=b1?b1:null)==null||(u=y.window)==null||u.close();R.currentPipWindow.removeEventListener("resize",R.handlePipWindowResize);var v;(v=R.pipWindowResizeDelay)==null||v.dispose();R.pipWindowResizeDelay=void 0;var Q;(Q=R.JSC$18254_eventForwarder)==null||Q.stop();R.JSC$18254_eventForwarder=void 0;y=_.V(R.onCloseCallbacks);for(u=y.next();!u.done;u=y.next())u=u.value,u();R.onCloseCallbacks=[];R.currentPipWindow=null}};
OG.prototype.getWindow=function(){return this.currentPipWindow};
var oMp=function(R,y){var u;(u=R.onCloseCallbacks)==null||u.push(y)};
OG.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.GT()};
_.RR.Object.defineProperties(OG.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
OG[Mn]=[xFT];var xVI=new _.Jx("PICTURE_IN_PICTURE_CONTROLLER");var yES=function(R,y){this.lengthY=this.lengthX=0;this.lengthX=y.x-R.x;this.lengthY=y.y-R.y};var BaV=function(){},kTa=function(R,y){var u;
(u=R.headerElement)==null||u.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:y}))};var foI=function(){};
foI.prototype.openPopup=function(R,y,u,v){var Q=this,M;return _.I(function(K){if(!Q.container)return K.return();M={openPopupAction:{popup:y,popupType:u,uniqueId:R}};return K.return(Q.container.handleOpenPopupAction(M,v))})};
foI.prototype.closePopup=function(R){this.container&&this.container.closePopup(R)};var e7a=function(){this.openTunnels=new Map},HqU=function(R,y,u){if(JET(u)){var v=_.AD(u,"gclid");
u={handleEvent:function(h){y&&!y.closed&&typeof y.postMessage==="function"&&h&&h.origin&&h.source===y&&h.data&&h.data.action==="gcl_setup"&&y.postMessage(Object.assign({},{action:"gcl_transfer"},v&&{gclid:v},{gadSource:2}),h.origin)}};
for(var Q=_.V(R.openTunnels),M=Q.next();!M.done;M=Q.next()){var K=_.V(M.value);M=K.next().value;K=K.next().value;if(M.closed)try{window.removeEventListener("message",K),R.openTunnels.delete(M)}catch(h){_.dI(h)}}y&&R.openTunnels.size<15&&(R.openTunnels.set(y,u),window.addEventListener("message",u))}};var lo8=function(){this.clientParams=new Map},Gz5=function(R){for(var y=_.V(R.clientParams.keys()),u=y.next();!u.done;u=y.next())u=u.value,u.startsWith("yt-mini-app-share")&&R.clientParams.delete(u)};var OZ8=function(R,y){_.Z0.call(this);var u=this;this.shortsController=R;this.storeWithShorts=y;R=_.GD(this.storeWithShorts,_.l9U,function(v){if(v){var Q,M=(Q=u.shortsController.getRoot())==null?void 0:Q.getPlayer(),K;(Q=(K=u.shortsController.alternativePlayerContainerElement)==null?void 0:K.getPlayerContainer())&&(M==null||M.appendTo(Q))}else{var h;K=(h=u.shortsController.alternativePlayerContainerElement)==null?void 0:h.getPlayerContainer().querySelector("#player");Q=u.shortsController.activeIndex;
(h=(M=u.shortsController.getRoot())==null?void 0:M.querySelector('ytd-reel-video-renderer[id="'+Q+'"] #player-container'))&&(K==null||K.appendTo(h,void 0,!0))}});
this.addOnDisposeCallback(R)};
_.O(OZ8,_.Z0);var ZG=function(R,y,u,v,Q){var M=this;this.storeWithShorts=R;this.ephemeralResponseStore=y;this.store=u;this.innertubeTransportService=v;this.innertubeTransportLoader=Q;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.Sp(_.xY);this.isShortsPipActive=_.Sp(_.B2);this.nextReelVe=_.$6(56921);this.prevReelVe=_.$6(56922);this.backButtonVe=_.$6(22156);this.TEST_ONLY={getActiveModules:function(){return M.activeModules}}},ZZa=function(R){R.unsubscribeFromStore=
_.GD(R.storeWithShorts,_.eI8,function(y){R.initOrDisposeActiveModules(y);
!y&&R.storeWithShorts.getState().shorts.isFullscreen&&(_.J_(document.documentElement),R.storeWithShorts.dispatch(_.oQ8(!1)))});
R.initOrDisposeActiveModules(_.eI8(R.storeWithShorts.getState()))},x6i,B_b,HZp;
ZG.prototype.initOrDisposeActiveModules=function(R){R?this.activeModules.push(new OZ8(this,this.storeWithShorts)):(_.y7(this.activeModules),this.activeModules.length=0)};
ZG.prototype.registerRootElement=function(R){this.rootElement=R;ZZa(this)};
ZG.prototype.getRoot=function(){return this.rootElement};
ZG.prototype.setActiveIndex=function(R){this.activeIndex=R};
_.bsY=function(R,y){var u,v,Q,M,K,h,b;return _.I(function(N){switch(N.nextAddress){case 1:return u=new d4,(v=u.JSC$13024_getStoreKey(y))&&R.ephemeralResponseStore.has(v)?N.yield(R.ephemeralResponseStore.get(v),7):N.yield(HZp(R,y),4);case 4:Q=N.yieldResult;if(!v){N.jumpTo(3);break}M=o8(Q,3600);return N.yield(R.ephemeralResponseStore.put(v,new _.Td(M)),3);case 7:Q=(K=N.yieldResult)==null?void 0:_.KR(K);case 3:return((h=Q)==null?0:h.replacementEndpoint)&&(b=_.e(Q.replacementEndpoint,_.PV))&&Q.sequenceContinuation&&
(b.sequenceParams=Q.sequenceContinuation),N.return(Q)}})};
x6i=function(R,y){y=(new Ue).JSC$13024_getStoreKey(y);return!!y&&R.ephemeralResponseStore.has(y)};
B_b=function(R,y,u){var v,Q,M,K,h;_.I(function(b){if(b.nextAddress==1){v=new Ue;Q=v.JSC$13024_getStoreKey(y);if(!Q)return b.return();if(u.reelWatchSequenceResponse)return M=o8(u.reelWatchSequenceResponse,3600),R.ephemeralResponseStore.put(Q,new _.Td(M)),b.jumpTo(0);if(!R.ephemeralResponseStore.has(Q))return b.jumpTo(0);h=u;return b.yield(R.ephemeralResponseStore.get(Q),4)}h.reelWatchSequenceResponse=(K=b.yieldResult)==null?void 0:_.KR(K);_.f$(b)})};
HZp=function(R,y){var u=u===void 0?{}:u;var v,Q,M;return _.I(function(K){switch(K.nextAddress){case 1:if(R.innertubeTransportService){v=R.innertubeTransportService;K.jumpTo(2);break}if(!R.innertubeTransportLoader){_.mq(Error("hj"));K.jumpTo(2);break}return K.yield(R.innertubeTransportLoader(),4);case 4:v=K.yieldResult;case 2:return K.yield((Q=v)==null?void 0:_.yB(Q,y,u),5);case 5:return M=K.yieldResult,K.return(M)}})};
_.RR.Object.defineProperties(ZG.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
ZG[Mn]=[QdV,_.N$,he,_.yN(_.Dj),_.yN(C2w)];_.nMm=new _.Jx("STORAGE_MANAGER_TOKEN");var i0T=["touchmove","scroll"];var b0O={onSpanEnd:function(R){if(R.parent==null){var y=R.name;_.$F(y);hyz(R,y)}}};var GaK=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},rIo;
GaK.prototype.enqueue=function(R,y){y===1?this.currentPersistentToast=R:this.queue.push(R);this.openToast()};
GaK.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())};_.HX=new _.Jx("TOAST_MANAGER_TOKEN");var PJ7=new _.Jx("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var WgM=new _.Jx("VIEW_TRANSITION_COORDINATOR_TOKEN");var dVg=function(R){this.config=R;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;R=_.V(R.transitionConfigs);for(var y=R.next();!y.done;y=R.next())y=_.V(y.value).next().value,this.transitionTasksMap.set(y,[])};
dVg.prototype.registerElement=function(R,y,u){u=u===void 0?!1:u;for(var v=_.V(Object.keys(y)),Q=v.next(),M={};!Q.done;M={viewTransitionName:void 0},Q=v.next()){Q=Q.value;M.viewTransitionName=y[Q];var K=this.elementTasksMap.get(R),h=void 0;if((h=K)==null?0:h.has(Q)){_.Uh(new _.OL("Element already registered for transition",R.tagName,Q));break}K=K||new Map;K.set(Q,{beforeTransition:function(b){return function(){R.style.viewTransitionName=b.viewTransitionName}}(M),
afterTransition:function(){R.style.viewTransitionName&&(R.style.viewTransitionName="")},
runOnce:u});this.elementTasksMap.set(R,K)}};
_.gm=function(R,y){var u=R.elementTasksMap.get(y);u&&(u.clear(),u.size===0&&R.elementTasksMap.delete(y))};
dVg[Mn]=[PJ7];var UVP;_.kaI=_.Jd(function(R){return _.F("basic-content-view-model",{class:_.Oy("ytBasicContentViewModelHost",_.Qj(R.className))},_.F(_.w,{cond:function(){return R.data().headline},
then:function(y){return _.F("div",{class:"ytBasicContentViewModelHeadline"},_.F(_.QM,{text:y}))}}),_.F(_.eS,{each:function(){return R.data().paragraphs||[]},
keyBy:"INDEX"},function(y){return _.F("div",{class:"ytBasicContentViewModelParagraph"},_.F(_.w,{cond:function(){var u=y();return!!(u.header||u.customHeader||u.headline)},
then:function(){return _.F(UVP,{paragraph:y})}}),_.F(_.w,{cond:function(){return y().asset||y().text},
then:function(){return _.F("div",{class:"ytBasicContentViewModelParagraphContent"},_.F(_.w,{cond:function(){return y().asset},
then:function(u){return _.F("div",{class:"ytBasicContentViewModelParagraphAsset"},_.F(_.mk,{data:u},{contentPreviewImageViewModel:_.b2}))}}),_.F(_.w,{cond:function(){return y().text},
then:function(u){return _.F("div",{class:"ytBasicContentViewModelParagraphText"},_.F(_.QM,{text:u}))}}))}}))}))},"ze");
UVP=_.Jd(function(R){var y=R.paragraph;return _.F(_.vu,null,_.F(_.w,{cond:function(){return y().headline},
then:function(u){return _.F(_.QM,{text:u,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.F(_.mk,{data:function(){return y().header||y().customHeader}},{sectionHeaderViewModel:function(u){return _.F(_.f5,{data:u.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Ae");var $V7=_.Jd(function(R){var y=_.sh("yt-expandable-metadata-header-view-model"),u=_.nh(function(v){if(!_.cm(_.tF(v),y.value,["A".toString(),"BUTTON".toString()])){var Q;(Q=R.expandedCallback)==null||Q.call(R,!1)}});
return _.F("yt-expandable-metadata-header-view-model",{el:y,class:"ytExpandableMetadataHeaderViewModelHost"},_.F(_.w,{cond:function(){return R.expanded()},
then:function(){return _.F("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":u},_.F("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.F(_.w,{cond:function(){return R.data().expandedTitleImage},
then:function(v){return _.F("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.F(_.MR,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:v}))}}),_.F("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.F("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.F(_.QM,{text:function(){return R.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.F(_.QM,{text:function(){return R.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.F(_.QM,{text:function(){return R.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.F("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.F(_.mk,{data:function(){return R.data().infoButton}},{buttonViewModel:_.fQ}),_.F(_.mk,{data:function(){return R.data().collapseButton}},{buttonViewModel:function(v){return _.F(_.fQ,{data:v.data,
onClick:function(){var Q;(Q=R.expandedCallback)==null||Q.call(R,!1)}})}})))},
else:function(){return _.F(EM7,Object.assign({},R))}}))},"Be"),qm8=_.Jd(function(R){return _.F("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.F(_.w,{cond:function(){return R.data().collapsedLabelImage},
then:function(y){return _.F("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.F(_.MR,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:y,alt:""}))}}),_.F(_.QM,{text:function(){return R.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Ce"),EM7=_.Jd(function(R){return _.F("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.nh(function(){var y;return void((y=R.expandedCallback)==null?void 0:y.call(R,!0))})},_.F("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.F(_.w,{cond:function(){return R.data().collapsedImage},
then:function(y){return _.F("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.F(_.MR,{width:16,height:16,data:y,alt:""}))}}),_.F(_.w,{cond:function(){return R.data().showLeadingCollapsedLabel},
then:function(){return _.F(qm8,Object.assign({},R))}}),_.F("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.F(_.QM,{text:function(){return R.data().collapsedTitle}}))),_.F("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.F(_.w,{cond:function(){return!R.data().showLeadingCollapsedLabel},
then:function(){return _.F(qm8,Object.assign({},R))}}),_.F(_.mk,{data:function(){return R.data().infoButton}},{buttonViewModel:_.fQ}),_.F(_.mk,{data:function(){return R.data().expandButton}},{buttonViewModel:function(y){return _.F(_.fQ,{data:y.data,
onClick:function(){var u;(u=R.expandedCallback)==null||u.call(R,!0)}})}})))},"De");_.XHm=_.Jd(function(R){var y=_.V(_.rW(function(){return R.data().initiallyExpanded})),u=y.next().value,v=y.next().value,Q,M=(Q=_.ua().resolve(_.yN(_.u0)))==null?void 0:Q(),K=function(){var h=R.data().colorData;
if(h)return M?h==null?void 0:h.darkColorPalette:h==null?void 0:h.lightColorPalette};
return _.F("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.P_({"background-color":function(){var h=K();return(h==null?0:h.section2Color)?_.Sq(h.section2Color):""}})},_.F(_.mk,{data:function(){return R.data().header}},{expandableMetadataHeaderViewModel:function(h){return _.F($V7,{data:h.data,
expanded:function(){return!!u()},
expandedCallback:function(b){v(b)}})}}),_.F(_.w,{cond:function(){return u()},
then:function(){return _.F("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.F(_.mk,{data:function(){return R.data().expandedContent}},{horizontalShelfViewModel:function(h){return _.F(_.Y5,{data:h.data,
includeMargin:!0,forceNarrowLayout:!0,palette:K})},
videoSummaryContentViewModel:function(h){return _.F(Ync,{data:h.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(h){return _.F(_.op,{data:h.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(h){return _.F(_.kaI,{data:h.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.F(_.mk,{data:function(){return R.data().expandedBottomButtons}},{buttonViewModel:function(h){return _.F("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.F(_.fQ,{data:h.data}))}}))}}))},"Ee");var mVg=_.Jd(function(R){var y=R.text;var u=R.marqueeSpacing;var v=R.scrollDelay;var Q=R.scrollDuration;var M=R.enableMarqueeScroll;R=R.large;var K=_.V(_.In(!1,void 0,"kfNqfd")),h=K.next().value,b=K.next().value,N=_.V(_.In(0,void 0,"bYgZbf"));K=N.next().value;var T=N.next().value,x=_.sh("marquee-scroll");N=_.sh("div");var B=_.sh("span"),l=_.ua().resolve(_.QX);_.ny(function(){if(M()){var k=B.value.getBoundingClientRect().width,E=x.value.getBoundingClientRect().width;if(k>E){var D=(l==="ltr"?-1:1)*
(k+(u?u():16));Promise.resolve().then(function(){b(!0);T(D)})}}},"giRlme");
var Z={},P={};return _.F("marquee-scroll",{class:_.Oy("ytMarqueeScrollHost",(Z.ytMarqueeScrollHostLarge=R,Z)),el:x},_.F("div",{id:"marquee-scroll-inner-container",class:_.Oy("ytMarqueeScrollInnerContainer",(P.ytMarqueeScrollAnimationEnabled=function(){return h()},P)),
el:N,style:_.P_({gap:u?(0,_.p5)(u):"16px","animation-duration":Q?pDc(Q):"16s","animation-delay":v?pDc(v):"3s","--marquee-translate":(0,_.p5)(K)})},_.F("span",{el:B,dir:"auto"},_.F(_.QM,{text:y,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.F(_.w,{cond:h,then:function(){return _.F("span",{"aria-hidden":"true",dir:"auto"},_.F(_.QM,{text:y,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Fe");_.AI7=_.Jd(function(R){var y=R.data;var u=R.overlayDensity;R=_.nh(function(){y().onTapCommand&&_.zN(y().onTapCommand);return!1});
var v=_.cgU(),Q=function(){return(u==null?void 0:u())===1?22:16},M={};
return _.F("reel-sound-metadata-view-model",{class:_.Oy("ytReelSoundMetadataViewModelHost",(M.ytReelSoundMetadataViewModelHostLarge=function(){return(u==null?void 0:u())===1},M)),
"on:click":R,tabindex:0,role:"button","on:keydown":v},_.F("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.F(_.w,{cond:function(){return y().musicIcon},
then:function(K){return _.F(_.MR,{data:K,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:Q})}}),_.F("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.F(mVg,{text:function(){return y().soundMetadata},
enableMarqueeScroll:function(){return!!y().enableMarqueeScroll},
large:function(){return(u==null?void 0:u())===1}}))))},"Ge");var DVV,pHa,nq,Sm7,Lgm,aoK,gMJ,z7K;DVV=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];pHa=_.JT("wil_icon_max_concurrent_fetches",Infinity);
nq=function(R,y,u){var v=this;this.iconSet=R;this.appDirection=y;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.uO.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.f("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.f("wil_icon_network_first");this.renderWhenIdle=_.f("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.f("wil_icon_load_immediately");this.isPurging=!1;R=function(){v.cacheStorageAvailable&&(v.cacheStorageAsync=_.uO.caches.open("yt-icons").then(function(M){return v.cacheStorageSync=M}).catch(function(){v.cacheStorageAvailable=!1}))};
u=(u==null?void 0:u())||{};u=_.V(Object.entries(u));for(y=u.next();!y.done;y=u.next()){var Q=_.V(y.value);y=Q.next().value;Q=Q.next().value;Q=Ns(Q);tK7(Q);this.iconCache[y]=Q.cloneNode(!0)}this.isPurging=cI8(this);this.isPurging instanceof Promise?this.isPurging.then(R):R()};
_.Ao8=function(R,y){var u=R.resolveIcon(y);return u?R.renderingMode===1?aoK(R,u,R.renderingMode):(y=R.iconCache[u.url])?(y=y.cloneNode(!0),Sm7(R,y),aoK(R,u,R.renderingMode,y)):_.YmP(R,u).then(function(v){var Q=v?0:1;Sm7(R,v);return aoK(R,u,Q,v)}):(_.Uh(new _.OL("Icon not found",{iconShape:y})),function(){})};
Sm7=function(R,y){if(y){R.counter+=1;R="_yt"+R.counter;y=[y].concat(_.P$(y.getElementsByTagName("*")));y=_.V(y);for(var u=y.next();!u.done;u=y.next())if(u=u.value,u.tagName==="style"&&u.textContent)u.textContent=Lgm(u.textContent,R,!0);else for(var v=_.V(u.attributes),Q=v.next();!Q.done;Q=v.next()){Q=Q.value;Q.name==="id"&&(Q.value+=R);["mask","fill","clip-path"].includes(Q.name)&&(Q.value=Lgm(Q.value,R));if(Q.name==="style"){var M=u.style;try{M.cssText=Lgm(M.cssText,R,!0)}catch(T){var K=void 0,h=
void 0,b=void 0,N=void 0;GE({error:((K=T)==null?void 0:(b=(h=K).toString)==null?void 0:b.call(h))||"",el:u.outerHTML,style:!!M,cssText:(N=M)==null?void 0:N.cssText})}}Q.name==="xlink:href"&&(Q.value=Q.value.replace(/#(.*)/,"#$1"+R))}}};
Lgm=function(R,y,u){var v=/url\(["']?#(.*?)["']?\)/;(u===void 0?0:u)&&(v=/url\(["']?#(.*?)["']?\)/g);return R.replace(v,"url(#$1"+y+")")};
aoK=function(R,y,u,v){return function(Q,M){var K=Object.assign({},{iconColor:"currentcolor",iconWidth:y.size+"px",iconHeight:y.size+"px",iconDisplay:"block"},M);M=_.o_("DIV");var h=K.iconColor,b=K.iconFilter;K="width: "+K.iconWidth+"; height: "+K.iconHeight+"; display: "+K.iconDisplay+";";b&&(K+=" filter: "+b+";");u===0&&(K+=" fill: "+h+";");u===1&&(b=y.url,K+=" -webkit-mask: url("+b+") no-repeat center / cover; mask: url("+(b+") no-repeat center / cover; background-color: ")+h);y.allowMirroring&&
R.appDirection==="rtl"&&(K+=" transform: scale(-1, 1); transform-origin: center center;");M.setAttribute("style",K);u===0&&v&&M.appendChild(v);Q.appendChild(M)}};
_.YmP=function(R,y){var u,v,Q;return _.I(function(M){u=function(K){return pK(K)};
v=y.url;if(!sPM(v))throw Error("jj");Q=z7K(R,v);return M.return(Q.then(function(K){return K.clone().text()}).then(function(K){var h=u(K);
K=y.size;var b=_.o_("DIV");_.CK(b,h);h=_.BY(b.firstElementChild!==void 0?b.firstElementChild:_.wHb(b.firstChild,!0));K=tK7(h,K);R.iconCache[v]=K.cloneNode(!0);delete R.responsePromises[v];return K}).catch(function(){}))})};
gMJ=function(R){var y,u=(y=R.requestAninmationFrameResolver)==null?void 0:y.promise;u||(R.requestAninmationFrameResolver=new _.xv,u=R.requestAninmationFrameResolver.promise,_.uO.requestAnimationFrame(function(){var v;(v=R.requestAninmationFrameResolver)==null||v.resolve();R.requestAninmationFrameResolver=null}));
return u};
z7K=function(R,y){var u,v;return _.I(function(Q){if(Q.nextAddress==1)return R.waitForAnimationFrame?Q.yield(gMJ(R),2):Q.jumpTo(2);u=R.responsePromises[y];u||(v=function(){var M,K,h;return _.I(function(b){switch(b.nextAddress){case 1:if(!R.cacheStorageAvailable){M=void 0;b.jumpTo(2);break}if(K=R.cacheStorageSync){b.jumpTo(3);break}return b.yield(R.cacheStorageAsync,4);case 4:K=b.yieldResult;case 3:M=K;case 2:return h=M,R.isNetworkFirstStrategy?b.return(R.fetchAndUpdateCache(y,h).catch(R.getCacheStorageResponse.bind(R,
y,h))):b.return(R.getCacheStorageResponse(y,h).catch(R.fetchAndUpdateCache.bind(R,y,h)))}})},u=R.renderWhenIdle?new Promise(function(M,K){_.Oh(_.WG,function(){v().then(M).catch(K)},10)}):v(),R.responsePromises[y]=u);
return Q.return(u.catch(function(M){delete R.responsePromises[y];GE({error:(M==null?0:M.toString)?M.toString():"",url:y});throw M;}))})};
nq.prototype.fetchAndUpdateCache=function(R,y){var u=this;return _.I(function(v){return v.return(CJI(u,R).then(function(Q){RF7(u,R,Q,y);return Q}))})};
var CJI=function(R,y){var u;return _.I(function(v){if(R.numFetches<pHa)return R.numFetches+=1,v.return(yqo(R,y).finally(function(){--R.numFetches;if(Object.keys(R.queuedResponseResolvers).length){var Q=Object.keys(R.queuedResponseResolvers)[0],M=R.queuedResponseResolvers[Q];delete R.queuedResponseResolvers[Q];M.resolve(CJI(R,Q))}}));
u=new _.xv;R.queuedResponseResolvers[y]=u;return v.return(u.promise)})},yqo=function(R,y,u){u=u===void 0?2:u;
var v;return _.I(function(Q){v={credentials:"same-origin",priority:"low"};return Q.return(_.uO.fetch(y,v).then(function(M){return M.ok?M:Promise.reject(Error("kj`"+M.status+"`"+M.statusText))}).catch(function(M){if(u>0)return yqo(R,y,u-1);
throw M;}))})},RF7=function(R,y,u,v){_.I(function(Q){return v?Q.return(new Promise(function(M){_.Oh(_.WG,function(){var K,h;
return _.I(function(b){switch(b.nextAddress){case 1:if(!R.isNetworkFirstStrategy){K=void 0;b.jumpTo(2);break}return b.yield(v.match(y).catch(function(){}),3);
case 3:K=b.yieldResult;case 2:if(h=K){b.jumpTo(4);break}return b.yield(v.put(y,u.clone()).catch(function(N){GE({error:(N==null?0:N.toString)?N.toString():"",url:y})}),4);
case 4:M(),_.f$(b)}})},50)})):Q.return()})};
nq.prototype.getCacheStorageResponse=function(R,y){return _.I(function(u){return y?u.return(y.match(R).then(function(v){return v&&v.ok?v:Promise.reject()})):u.return(Promise.reject())})};
var tK7=function(R,y){y===void 0||R.getAttribute("viewBox")||R.setAttribute("viewBox","0 0 "+y+" "+y);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(Q){var u;GE({error:((u=Q)==null?0:u.toString)?Q.toString():""});try{R.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(M){var v;GE({error:((v=M)==null?0:v.toString)?M.toString():
""})}}return R},sPM=function(R){for(var y=_.V(DVV),u=y.next();!u.done;u=y.next())if(R.startsWith(u.value)&&R.endsWith(".svg"))return!0;
return!1};
nq.prototype.resolveIcon=function(R){return this.iconSet.resolveIcon(R)};
var GE=function(R){_.kT(new _.OL("Error in IconManager",R))},cI8=function(R){if(_.f("wil_icons_cache_purge_killswitch"))return!1;
try{var y=_.uO.localStorage}catch(M){return!1}if(!y||!R.cacheStorageAvailable)return!1;var u=function(M){try{var K;(K=y)==null||K.setItem("yt-icons-last-purged",M.toString())}catch(b){var h;GE({error:((h=b)==null?0:h.toString)?b.toString():""})}},v=Number(y.getItem("yt-icons-last-purged"));
if(!v)return v=new Date,v=v.setDate(v.getDate()-Math.floor(Math.random()*90+1)),u(v),!1;if(function(M,K){M=new Date(M);K=new Date(K);return K.getMonth()-M.getMonth()+12*(K.getFullYear()-M.getFullYear())}(v,Date.now())<3)return!1;
try{return _.uO.caches.delete("yt-icons").then(function(M){M&&u(Date.now());return M}).catch(function(){return!1}).finally(function(){R.isPurging=!1})}catch(M){var Q;
GE({error:((Q=M)==null?0:Q.toString)?M.toString():""});return!1}};
nq[Mn]=[yza,_.QX,_.yN(QLI)];_.rS=function(R,y){this.iconManager=R;this.iconsToFetch=y};
_.rS[Mn]=[_.eb,_.yN(vSZ)];var ur8=function(){};var vEp=function(R,y,u){this.requestKey=R;this.gNn=y;this.f58=u;this.fIJ=function(){return new XMLHttpRequest};
this.s2O=void 0;this.aa8=[]};
vEp.prototype.getLatestChallengeResponse=function(){return this.f58};
var BsY=function(R,y,u){var v,Q,M,K;return _.I(function(h){if(h.nextAddress==1){_.$F("attestation_challenge_fetch");_.qQ("att_fs",void 0,"attestation_challenge_fetch");if(!R.s2O)throw new _.U8(9,"Missing fetcher");return h.yield(R.s2O(y,u),2)}v=h.yieldResult;M=(Q=v)==null?void 0:Q.bgChallenge;if(!M)throw new _.U8(15,"Missing field");R.f58=v;R.aa8.forEach(function(b){b(v)});
K=b7U(M);_.qQ("att_fc",void 0,"attestation_challenge_fetch");yjG("attestation_challenge_fetch");return h.return(K)})},pYK=function(R,y){var u,v,Q,M,K;
return _.I(function(h){switch(h.nextAddress){case 1:u=new KF(100,3E5,.25,2),v=void 0;case 2:if(!(u.currBackoffCount_<10)){h.jumpTo(4);break}_.wY(h,5);if(!(u.currBackoffCount_>0)){h.jumpTo(7);break}return h.yield(wDU(u.getValue()),7);case 7:return h.yield(QKJ(R,y),9);case 9:return Q=h.yieldResult,h.return(Q);case 5:M=_.B$(h);M instanceof _.U8?v=M:(K=M instanceof Error?M.message:"Unknown",v=new _.U8(9,K));PBV(u);h.jumpTo(2);break;case 4:if(v)throw v;throw new _.U8(9,"Unknown error");}})},QKJ=function(R,
y){y=iFg(Ka8(new VZL,y),R.requestKey);
var u=new _.xv,v=R.fIJ();v.open("POST",R.gNn);v.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");v.setRequestHeader("Content-Type","application/json+protobuf");v.onload=function(){if(_.PhG(v)){var Q=oaY(v.responseText);u.resolve(Q)}else u.reject(new _.U8(_.LqL(_.KJ(v)),v.statusText))};
v.onerror=function(){u.reject(new _.U8(_.LqL(_.KJ(v)),v.statusText))};
v.send(y.serialize());return u.promise};var MyJ=function(R){this.networkStatusManager=R;this.isDownloaded=Ni4===void 0?function(){return!1}:Ni4;
this.isReady=!1;this.vpk=jKo(this)},jKo=function(R){var y;
return _.I(function(u){if(u.nextAddress==1)return u.yield(G7v(),2);if(u.nextAddress!=3)return y=u.yieldResult,u.yield(Uy5(y),3);R.pS=u.yieldResult;T7T(R.pS).then(function(){R.isReady=!0});
return u.return(R.pS)})},JqH=function(R,y,u){R.pS?(R=R.pS.nlN({j1:u,
aDx:!0,r7J:!0}),y.serviceIntegrityDimensions={poToken:R}):_.dI(Error("mj"))};
MyJ.prototype.processContext=function(R){var y=this;if(!R.input.match(_.jq(fN8)))return _.yA();var u=R.innerTubeRequest,v=u.videoId;return!v||this.isDownloaded(u)||this.networkStatusManager&&!this.pS&&!this.networkStatusManager.isNetworkAvailable()?_.yA():this.pS?this.isReady?(JqH(this,u,v),_.yA()):new Rm(T7T(this.pS).then(function(){JqH(y,u,v)})):new Rm(this.vpk.then(function(Q){return _.I(function(M){if(M.nextAddress==1)return M.yield(T7T(Q),2);
JqH(y,u,v);_.f$(M)})}))};var VyK=new _.Jx("WEB_PO_CONTEXT_PROCESSOR");var iKK=function(R,y){var u=this;this.pQn=0;var v;this.sSS=(v=y==null?void 0:y.sSS)!=null?v:window;this.networkStatusManagerPromise=y==null?void 0:y.networkStatusManagerPromise;var Q;this.requestKey=(Q=y==null?void 0:y.requestKey)!=null?Q:_.VN("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var M;this.bPN=(M=y==null?void 0:y.bPN)!=null?M:function(b){return new Dd(b)};
var K;v=(K=y==null?void 0:y.ySV)!=null?K:function(b,N,T){return new vEp(b,N,T)};
this.bgChallenge=b7U(R.bgChallenge);this.ttlSeconds=FyU(yz(R.challenge||""));this.gZ=v(this.requestKey,_.f("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.uO.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);N74(this.gZ);var h;this.tlx=(h=y==null?void 0:y.tlx)!=null?h:function(b){_.E4(u.sSS.document,"visibilitychange",function(){u.sSS.document.visibilityState===
"visible"&&b()})}},I2H=function(R){if(!R.vm){var y={maxAttempts:5,
rHm:R.ttlSeconds*1E3};oVS(R.sSS);R.vm=R.bPN({gZ:R.gZ,pKf:{disable:_.f("html5_web_po_disable_remote_logging"),vx:"aGIf",gIs:ZoU("html5_web_po_experiment_ids"),drv:_.f("wpo_dis_lfdms")?0:1E3,kwS:function(v){var Q=xMg.get(v);Q||(Q=new oZ5(v),Q=new Fv(Q),xMg.set(v,Q));return Q}},
jYN:y,tsv:R.bgChallenge,laN:xXL});R.pQn=Date.now();wYK(R.vm,function(){R.pQn=Date.now()});
dsG(R.vm,function(){return _.I(function(v){return v.return(KKZ(R))})});
var u=R.jkR.bind(R);R.networkStatusManagerPromise&&R.ttlSeconds>0&&R.networkStatusManagerPromise.then(function(v){v.listen("publicytnetworkstatus-online",u)});
R.tlx(u)}};
iKK.prototype.jkR=function(){if(Date.now()>this.pQn+this.ttlSeconds*1E3){var R;(R=this.vm)==null||Fac(R)}};
var KKZ=function(R){if(R.e3g)return R.e3g;if(!R.vm)throw Error("nj");R.e3g=new ae({vm:R.vm,gZ:R.gZ,xMx:!0,onError:xXL});return R.e3g},fmO=function(R,y){R=new iKK(R,y);
I2H(R);KKZ(R)};var PX=function(R,y){this.store=R;this.queue=[];y==null||y.addEventListener("yt-navigate-start",this.reset.bind(this))};
PX.prototype.enqueue=function(R){var y=R.command,u=R.durationMs,v=R.elementToFocus;var Q=R.label;var M=R.elementToFocus;R.command?Q=_.fo("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:Q,shortcut:_.fo("SHIFT_PLUS_ENTER")}):M&&(R=Q+". "+_.fo("SHIFT_PLUS_ENTER")+" for more information.",Q=_.fo("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:Q,shortcut:_.fo("SHIFT_PLUS_ENTER")},R));u={announcement:Q,durationMs:u!=null?u:8E3};y?u.command=y:v&&(v.classList.add("ephemeral-action-focusable-element"),u.selector=v.tagName+
".ephemeral-action-focusable-element");this.queue.push(u);hF8(this)};
PX.prototype.activate=function(R){var y=_.PPc(this.store.getState());if(y){if(y==null?0:y.command)_.Yi(y.command),this.store.dispatch(F65(null));if(y==null?0:y.selector)y=document.querySelector(y.selector),_.Liv(y);R.preventDefault()}};
var hF8=function(R){if(!_.PPc(R.store.getState())&&R.queue.length){var y=R.queue.shift();y&&(R.previousAnnouncement===y.announcement&&(y.announcement+="\u00a0"),R.store.dispatch(F65(y)),R.previousAnnouncement=y.announcement,R.timeoutId=setTimeout(function(){if(y.selector){var u;(u=document.querySelector(y.selector))==null||u.classList.remove("ephemeral-action-focusable-element")}R.store.dispatch(F65(null));hF8(R)},y.durationMs))}};
PX.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(F65(null));this.queue.length=0;this.timeoutId=void 0};
PX[Mn]=[_.S5,_.yN(_.dv)];_.WX=new _.Jx("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var bKH=window.AbortController||UB5;var FKP=new _.Jx("AUTH_SERVICE_TOKEN");var O0z=_.RE(["about:blank"]),lmv;var dS=new _.Jx("API_IFRAME_TOKEN"),wg7=new _.Jx("FETCH_FN_TOKEN"),NCZ=new _.Jx("PARSE_FN_TOKEN"),TCa=new _.Jx("WINDOW_REQUEST_TOKEN"),oEI=new _.Jx("TEXT_DECODER_TOKEN");var Bh5;Bh5=new _.Jx("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.xyP=new _.Jx("MISC_UI_SHARED_FLAGS_TOKEN");var BCo=function(){};
BCo.prototype.getFlag=function(R){if(R.configType!==2)throw Error("oj");return f28(R)};
var f28=function(R){switch(R.flagType){case "bool":return _.f(R.flagName);case "int":return _.k8(_.JT(R.flagName));case "double":return _.JT(R.flagName);case "string":return _.VN(R.flagName);case "int32_list":return ZoU(R.flagName);case "int64_list":return ZoU(R.flagName).map(function(y){return _.k8(y)});
case "string_list":return _.ia(R.flagName);default:throw Error("pj");}};var UG=function(R,y,u){y=y===void 0?{}:y;Ax.call(this,u===void 0?"uninitialized":u);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}];y.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=y.shouldWaitOnAsyncImmediate)};
_.O(UG,Ax);UG.prototype.init=function(R){var y=this,u;return _.I(function(v){if(v.nextAddress==1)return y.processPluginOptions.shouldWaitOnAsyncImmediate?v.yield(R(y.env),2):(R(y.env),v.jumpTo(2));if(v.nextAddress!=4)return y.jobSet?v.yield(y.jobSet.completedResolver.promise,4):v.jumpTo(4);u=_.Lx();u.parkOrScheduleJob(function(){y.transition("rendering")},10,"ci");
_.f$(v)})};
UG.prototype.initialRender=function(R){var y=this,u;return _.I(function(v){if(v.nextAddress==1)return y.processPluginOptions.shouldWaitOnAsyncImmediate?v.yield(R(y.env),2):(R(y.env),v.jumpTo(2));if(v.nextAddress!=4)return y.jobSet?v.yield(y.jobSet.completedResolver.promise,4):v.jumpTo(4);u=_.Lx();u.parkOrScheduleJob(function(){y.transition("rendered")},10,"cr");
_.f$(v)})};
UG.prototype.afterRenderImmediate=function(R){var y=this,u;return _.I(function(v){if(v.nextAddress==1)return y.processPluginOptions.shouldWaitOnAsyncImmediate?v.yield(R(y.env),2):(R(y.env),v.jumpTo(2));if(v.nextAddress!=4)return y.jobSet?v.yield(y.jobSet.completedResolver.promise,4):v.jumpTo(4);u=_.Lx();u.parkOrScheduleJob(function(){y.transition("after-render-deferred")},10,"carml");
_.f$(v)})};
UG.prototype.afterRenderDeferred=function(R){var y=this;return _.I(function(u){R(y.env);_.f$(u)})};var eFK;_.kB("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});eFK={};_.l28=(eFK.CSI=WZT(),eFK.ECATCHER=PUz(),eFK);var OKZ={},ZKH=(OKZ.rendered={priority:0,callback:function(R){QRc(R.injector.resolve(Zz))}},OKZ);var OgS=new _.Jx("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),HKI=new _.Jx("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var nEm=function(R){this.callbackFnMap=R;this.configMap={}};
nEm.prototype.handleResponse=function(R){var y;if(R=(y=R.responseContext)==null?void 0:y.serviceTrackingParams)for(y=_.V(R),R=y.next();!R.done;R=y.next()){R=R.value;var u=R.params,v=R.service;if(u&&v){this.configMap[v]||(this.configMap[v]=new SKb);R=this.configMap[v];var Q=void 0,M=(Q=this.callbackFnMap)==null?void 0:Q[v];u=_.V(u);for(v=u.next();!v.done;v=u.next())Q=v.value,v=Q.key,Q=Q.value,v&&Q&&(R.set(v,Q),M&&M(v,Q))}}};
nEm[Mn]=[_.yN(HKI)];var GBa=!1,$Xc=0,dXT=null,EVT=null;var rqH=new _.Jx("NETWORK_SLI_TOKEN");var PbK=function(R,y,u,v,Q){this.networkSli=R;this.fetchFn=y;this.parseFn=u;this.requestFn=v;this.JSC$18378_textDecoder=Q};
PbK.prototype.fetch=function(R,y,u){var v=this,Q,M,K;return _.I(function(h){Q=WKm(v,R,y);K=(M=v.fetchFn)!=null?M:fetch;return h.return(K(Q).then(function(b){return v.handleResponse(b,u)}).catch(function(b){_.kT(b);
if((u==null?0:u.expectJsonStrict)&&b instanceof rv&&b.errorType===1)return Promise.reject(b)}))})};
var Zdg=function(R,y,u,v){var Q,M,K,h,b,N,T;return _.I(function(x){switch(x.nextAddress){case 1:return Q=WKm(R,y,u),_.wY(x,2),x.yield(fetch(Q),4);case 4:M=x.yieldResult;_.c5(x,3);break;case 2:throw _.B$(x),new rv(2,"Failed to parse streaming response",Q.url);case 3:if(!M.redirected&&!M.ok)throw(K=R.networkSli)==null||K.failure(),new _.OL("Streaming fetch request not ok",Q.url);if(!M.body)throw new _.OL("No response body in streaming response",Q.url);h={};if(_.f("web_streaming_fast"))return b=M.body.getReader(),
x.return(dyV(R,b,h,v));N=M.body.pipeThrough(new TextDecoderStream).getReader();T=new _.b3;return x.return(Uya(R,N,T,oHW,h,v))}})},WKm=function(R,y,u){if(R.networkSli){var v=_.Fq(_.vo(y,"key"))||"/UNKNOWN_PATH";
R.networkSli.start(v)}v=u;_.f("wug_networking_gzip_request")&&(v=q7T(u));var Q;return new ((Q=R.requestFn)!=null?Q:window.Request)(y,v)},dyV=function(R,y,u,v){var Q,M,K,h,b,N,T,x,B,l,Z;
return _.I(function(P){switch(P.nextAddress){case 1:Q=R.JSC$18378_textDecoder?new R.JSC$18378_textDecoder("utf-8"):new TextDecoder("utf-8"),M="",K=function(k){k=k.trim();k.length!==0&&k!=="]"&&k!=="["?(k.startsWith("[")&&(k=k.substring(1)),k.endsWith("]")&&(k=k.slice(0,-1)),k.endsWith(",")&&(k=k.slice(0,-1)),k=k.trim()):k=void 0;if(k)try{var E=JSON.parse(k);oHW(u,E);v==null||v(u,E)}catch(D){throw new rv(1,"Failed to parse streaming response",k);}},_.wY(P,2,3);
case 5:return P.yield(y.read(),8);case 8:h=P.yieldResult;b=h.value;if(N=h.done)return M.length>0&&K(M),T=void 0,(T=R.networkSli)==null||T.success(),P.return(u);M+=Q.decode(b,{stream:!0});x=M.split("\n");M=x.pop()||"";B=_.V(x);for(l=B.next();!l.done;l=B.next())Z=l.value,K(Z);P.jumpTo(5);break;case 3:_.T9(P);y.releaseLock();_.xL(P,0);break;case 2:throw _.B$(P),new rv(1,"Failed to parse streaming response");}})},Uya=function(R,y,u,v,Q,M){var K,h,b,N,T,x,B,l,Z;
return _.I(function(P){if(P.nextAddress==1)return P.yield(y.read(),2);K=P.yieldResult;h=K.value;if(b=K.done)return(N=R.networkSli)==null||N.success(),P.return(Q);try{T=u.parse(h)}catch(k){throw new rv(1,"Failed to parse streaming response",h);}if(T!=null)for(x=_.V(T),B=x.next();!B.done;B=x.next())l=B.value,v(Q,l),Z=void 0,(Z=M)==null||Z(Q,l);return P.return(Uya(R,y,u,v,Q,M))})};
PbK.prototype.handleResponse=function(R,y){var u,v=(u=this.parseFn)!=null?u:JSON.parse;u=R.text().then(function(Q){if((y==null?0:y.jspbResponseCtor)&&R.ok)return qoS(y.jspbResponseCtor,Q);Q=Q.replace(")]}'","");if((y==null?0:y.expectJsonStrict)&&Q)try{var M=v(Q)}catch(h){throw new rv(1,"JSON parsing failed after fetch");}var K;return(K=M)!=null?K:v(Q)});
R.redirected||R.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),u=u.then(function(Q){_.kT(new _.OL("Error: API fetch failed",R.status,R.url,Q));return Object.assign({},Q,{errorMetadata:{status:R.status}})}));
return u};
PbK[Mn]=[_.yN(rqH),_.yN(wg7),_.yN(NCZ),_.yN(TCa),_.yN(oEI)];var kBp=new _.Jx("NETWORK_MANAGER_TOKEN");var EEH=[1,2,4,8,16,30],qoM=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=_.V(EEH);for(var y=R.next();!y.done;y=R.next())this.brokenFrameSummarizers.push(new $yg(y.value/60*1E3))},Xgp=function(R){var y=R.frameCountInternal>=R.maxFrameCount;
return R.elapsedTimeMs>=R.maxTimeMs||y};
qoM.prototype.summarize=function(){for(var R=[],y=_.V(this.brokenFrameSummarizers),u=y.next();!u.done;u=y.next())u=u.value,u=u.brokenFrameCount!==0?{severityMs:Math.round(u.targetFrameTimeMs),eventCount:u.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(u.averageDurationBetweenEventsMs)}:void 0,u&&R.push(u);return{summaries:R,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.RR.Object.defineProperties(qoM.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 $yg=function(R){this.targetFrameTimeMs=R;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.RR.Object.defineProperties($yg.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var my7=function(){};
my7.prototype.start=function(R,y){var u=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var v=new qoM({maxTimeMs:R});this.monitor=v;this.lastSummaryInternal=void 0;this.metadataToLog=y;return new Promise(function(Q){var M=function(K){if(K===void 0)u.stop(),Q(void 0);else if(u.monitor!==v)K=Object.assign({},v.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),Q(K);else{var h=u.monitor;if(!Xgp(h)){h.frameCountInternal++;if(h.prevTime===
void 0)h.startTime=K;else for(var b=K-h.prevTime,N=_.V(h.brokenFrameSummarizers),T=N.next();!T.done;T=N.next()){T=T.value;var x=T.currTimeMs;T.currTimeMs+=b;b>T.targetFrameTimeMs+2&&(T.brokenFrameCount++,T.timeOfFirstBrokenFrameMs===void 0&&(T.timeOfFirstBrokenFrameMs=x),T.timeOfLastBrokenFrameMs=x)}h.prevTime=K}Xgp(u.monitor)?Q(u.stop()):_.WG.addJob(M,5,0)}};
_.WG.addJob(M,5,0)})};
my7.prototype.stop=function(R){if(!this.monitor)return this.lastSummaryInternal;var y=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(y.monitoringDurationMs){R=R!=null?R:this.metadataToLog;var u={droppedFramesSummary:y,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};R&&(u[R.type]=R.data);_.P3("manualSmoothnessMeasurement",u)}this.monitor=void 0;this.lastSummaryInternal=y;this.metadataToLog=void 0;return y};_.Aqo=new _.Jx("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var DyI;DyI=function(R){this.JSC$18401_expiringStorage=new H5(R)};
_.pgP=function(R){if(_.q2L()&&(R=_.FcT(_.eX()+"::"+R)))return new DyI(R)};
DyI.prototype.set=function(R,y,u){u=u!==void 0?Date.now()+u:void 0;this.JSC$18401_expiringStorage.set(R,y,u)};
DyI.prototype.get=function(R){return this.JSC$18401_expiringStorage.get(R)};
DyI.prototype.remove=function(R){this.JSC$18401_expiringStorage.remove(R)};var tyM=new _.Jx("SESSION_STORAGE");_.kg=function(){};
_.kg.getInstance=function(){var R=_.D6("ytglobal.storage_");R||(R=new _.kg,_.CJ("ytglobal.storage_",R));return R};
_.kg.prototype.estimate=function(){var R,y,u;return _.I(function(v){R=navigator;return((y=R.storage)==null?0:y.estimate)?v.return(R.storage.estimate()):((u=R.webkitTemporaryStorage)==null?0:u.queryUsageAndQuota)?v.return(XDU()):v.return()})};
_.CJ("ytglobal.storageClass_",_.kg);var RGv=!!(JR[1]>>14&1);var amE=0;var CUS=!1;var cqJ=_.RE(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),a2M=_.RE(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var sLa={"/":_.nx,"/?feature=ytca":_.nx,"/feed/downloads":_.BLW};var fR=function(R,y,u){this.JSC$18417_upliftPromise=R;this.store=y;this.JSC$18417_persistentStorePromiseAccessor=u};
fR.prototype.shouldPreferLocalResponse=function(R){return R.browseId==="FEdownloads"||R.browseId==="FEsmart_downloads"&&_.f("kevlar_modern_downloads_page")?!0:!1};
fR.prototype.localInnertubeResponse=function(R){var y=this;return _.I(function(u){return R.browseId==="FEdownloads"?_.f("kevlar_modern_downloads_page")?u.return(Sog(y)):u.return(YoP(y)):R.browseId==="FEsmart_downloads"&&_.f("kevlar_modern_downloads_page")?u.return(LKK(y)):u.return(Promise.reject(Error("rj")))})};
fR.prototype.canProvideFallbackResponse=function(){return!0};
fR.prototype.localFallbackInnertubeResponse=function(R){var y=this,u,v,Q;return _.I(function(M){switch(M.nextAddress){case 1:return M.yield(y.JSC$18417_persistentStorePromiseAccessor(),2);case 2:u=M.yieldResult;if(R.browseId!=="SPaccount_downloads"||!u){M.jumpTo(3);break}return M.yield(wFW(u),4);case 4:if(v=M.yieldResult)return M.return(_.KR(v));case 3:return R.browseId==="FEwhat_to_watch"?M.return(sKI(y)):(Q=_.f("web_offline_continuation_automatic_retry")||_.f("web_offline_continuation_retry_button"))&&
R.continuation?M.return(zFI(y)):M.return(gEm(y))}})};
var sKI=function(R){var y;return _.I(function(u){if(u.nextAddress==1)return u.yield(R.JSC$18417_upliftPromise,2);y=_.BQP(R.store.getState().entities);return y.length?u.return(CbZ(R,y)):u.return(gEm(R))})},YoP=function(R){var y,u;
return _.I(function(v){if(v.nextAddress==1)return v.yield(R.JSC$18417_upliftPromise,2);if(v.nextAddress!=3)return y=RUI([{offlineItemSectionRenderer:{}}]),v.yield(ya8(R,y),3);u=v.yieldResult;u.onResponseReceivedActions=[P2("REFRESH_DOWNLOADS")];return v.return(u)})},Sog=function(R){var y,u,v,Q,M,K,h,b,N,T,x,B,l,Z,P,k;
return _.I(function(E){if(E.nextAddress==1)return E.yield(R.JSC$18417_upliftPromise,2);if(E.nextAddress!=3)return y=R.store.getState(),u=y.entities,v=_.Uq(u),Q=_.ks(u),M=_.zx4(y),K=_.smO(y),h=_.g0U(y),b=_.lXE(u),N=_.nz(v),T=_.Eq(u),x=_.n0O(u),B=_.RJL(y),l=_.Dn(y),Z={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.EGL(v,Q,b,x,M,K,N,T,h,B,l),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},P=_.fo("DOWNLOADS",void 0,"Downloads"),
E.yield(uoH(R,Z,P),3);k=E.yieldResult;k.onResponseReceivedActions=[P2("REFRESH_DOWNLOADS")];return E.return(k)})},LKK=function(R){var y,u,v,Q,M,K,h,b,N;
return _.I(function(T){if(T.nextAddress==1)return T.yield(R.JSC$18417_upliftPromise,2);if(T.nextAddress!=3)return y=R.store.getState(),u=y.entities,v=_.Uq(u),Q=_.nz(v),M=_.Eq(u),K={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.qgP(v),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},h=_.fo("SMART_DOWNLOADS",void 0,"Smart downloads"),b=UuU(Q,M),T.yield(uoH(R,K,h,b),3);N=T.yieldResult;N.onResponseReceivedActions=
[P2("REFRESH_DOWNLOADS")];return T.return(N)})},gEm=function(R){var y,u;
return _.I(function(v){if(v.nextAddress==1)return v.yield(i1(R.JSC$18417_upliftPromise,R.store),2);y=v.yieldResult;u=RUI([IJv(y)]);return v.return(ya8(R,u))})},zFI=function(R){var y,u,v,Q;
return _.I(function(M){if(M.nextAddress==1)return y={},u=R.store.getState().continuation.continuationCommand,_.Dr(y,_.Lh,u),M.yield(i1(R.JSC$18417_upliftPromise,R.store,y,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);v=M.yieldResult;Q={};_.Dr(Q,_.RRg,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:v}}}],targetId:"browse-feedFEwhat_to_watch"});return M.return({responseContext:{},onResponseReceivedActions:[Q]})})},RUI=function(R){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:R}}}}]}}},CbZ=function(R,y){var u,v;
return _.I(function(Q){var M={contents:W2(y)};u=M&&M.contents?M:{};_.f("kevlar_modern_downloads_page")&&(u=Object.assign({},_.XlP(y),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));v={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:u}}}]}};return Q.return(ya8(R,v))})},ya8=function(R,y){var u,v;
return _.I(function(Q){if(Q.nextAddress==1)return Q.yield(R.JSC$18417_persistentStorePromiseAccessor(),2);if(Q.nextAddress!=3)return u=Q.yieldResult,Q.yield(I2(u),3);v=Q.yieldResult;return Q.return({responseContext:{},contents:y,topbar:v})})},uoH=function(R,y,u,v){var Q,M;
return _.I(function(K){if(K.nextAddress==1)return K.yield(R.JSC$18417_persistentStorePromiseAccessor(),2);if(K.nextAddress!=3)return Q=K.yieldResult,K.yield(I2(Q),3);M=K.yieldResult;var h=K.return;var b=v;b=b===void 0?"":b;b={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:u}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.fo("SETTINGS",void 0,"Settings"),accessibilityText:_.fo("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:Qw("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:b}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:u};
return h.call(K,{responseContext:{},contents:y,topbar:M,header:{pageHeaderRenderer:b}})})};var vLg=function(){this.moduleRegistry={};this.fetchCount=0};
vLg.prototype.isFetching=function(){return this.fetchCount>0};
var a2=function(R,y){R.moduleRegistry[y.toString()]={asyncId:y,isFetching:!1};return R};
vLg.prototype.JSC$18428_loadModules=function(){for(var R=this,y=new Map,u=[],v=_.V(_.qy.apply(0,arguments)),Q=v.next();!Q.done;Q=v.next()){Q=Q.value;var M=this.moduleRegistry[Q];M?M.resolver?y.set(Q,M.resolver):(M.resolver=new _.xv,y.set(Q,M.resolver),u.push(M.asyncId),M.isFetching=!0):(M=new _.xv,y.set(Q,M),M.resolve(void 0))}u.length&&(this.fetchCount+=1,_.Wc(_.NL.getMultipleAsync.apply(_.NL,_.P$(u)).then(function(K){for(var h=0;h<u.length;h++){var b=K[h],N=R.moduleRegistry[u[h].toString()];N.isFetching=
!1;N.resolver.resolve(b)}}).catch(function(K){for(var h=_.V(u),b=h.next();!b.done;b=h.next()){b=b.value;
var N=R.moduleRegistry[b.toString()];N.resolver=void 0;N.isFetching=!1;y.get(b.toString()).reject(K)}}),function(){--R.fetchCount}));
return Promise.all([].concat(_.P$(y.values())).map(function(K){return K.promise}))};_.SV=new _.Jx("MODULE_REGISTRY_TOKEN");var Q1m={},j1I=(Q1m.rendered={priority:0,callback:function(R){a:{var y=void 0;try{var u;b:{if(_.R_T()){var v=_.bz8(_.eX()+"::pom");if(v){var Q=new Ex(v);break b}}Q=void 0}var M=(u=Q)==null?void 0:u.get("role_text");if(!M)break a;y={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:M}]}}}}}}catch(b){}y&&R.injector.resolve(_.jX).resolveCommand(y)}try{var K=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(K){var h=JSON.parse(K);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
h&&R.injector.resolve(_.jX).resolveCommand(h)}}catch(b){}}},Q1m);var MLa,JaI={},VL7=(JaI.initialized={priority:10,callback:function(){MLa=UJ()}},JaI.rendering={callback:function(R){var y;
return _.I(function(u){if(u.nextAddress==1)return u.yield(MLa,2);y=u.yieldResult;if(!y.endpoint)throw Error("tj`"+_.uO.location.href);qr(R,y);_.f$(u)})}},JaI);var i$g={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(_.P$(_.f("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 y=R.stack;if(y.includes("chrome://")||y.includes("chrome-extension://")||R.message.includes("chrome-extension://")||y.includes("moz-extension://")||y.includes("local.adguard.org")||y.includes("auctioneer3.50million.club")||y.includes("youtubedownloader")||y.includes("youtube_home_page")||y.includes("is_youtube_video_no_longer_available")||
y.includes("switchScreenSizeHack")||y.includes("yt_main_big_banner.js")||y.includes("YouTubeCenter.js")||y.includes("/mytube.js")||y.includes("JSON.parseWrapper")||y.includes("/inj_js/common.js")||y.includes("firebug-lite")||y.includes(".repl.co/")||y.includes("linkfix")||y.includes("playAfterAd")||R.message.includes("Access is denied for this document")&&y.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'")&&
y.includes("<anonymous>"))return!0;if(y.includes("https://www.youtube.com"))return!1;R=y.split("\n");if(!R.length)return!1;if(R.length<=3&&y.includes("s.onloadeddata"))return!0;y=0;for(var u=_.V(R),v=u.next();!v.done;v=u.next())v=v.value,(v.includes("https://")||v.includes("http://"))&&y++;return y/R.length>.95},
weight:0},{callback:function(R){return R.message==="Unknown Error"&&R.name.indexOf("NS_")===0},
weight:100},{callback:function(R){if(!_.wV)return!1;var y=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"),u=R.stack.includes("webcomponents")&&R.message==="Object doesn't support this action";R=R.message.includes("object that does not implement interface Element");return y||u||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 y=R.stack.trim().split("\n");y.length&&y[0].endsWith("Error: "+R.message)&&y.shift();y.length&&y[y.length-1].includes("at window.onerror (")&&y.pop();if(!y.length)return!0;if(R.message==="Script error.")return y[0].includes("www.youtube.com")||y.length>=2&&y[0].startsWith("at new")&&y[1].startsWith("at window.onerror");if(R.message==="Unexpected token")return!0;R=_.V(y);for(y=R.next();!y.done;y=R.next())if(y=y.value,!(y.includes("<anonymous>")||
y.startsWith("load@")||y.startsWith("global code@")||y.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(){if(_.f("use_error_suppression"))var R=_.EB("SUPPRESS_CLIENT_ERRORS",!1);else{if(R=_.BQ)R=/Chrome\/(\d+)/.exec(_.NU()),R=(R?parseFloat(R[1]):NaN)>=66;R=!(R||_.xU&&_.oE(65)||_.qC&&_.oE(12.1)||zu&&_.oE(79))}return R},
weight:500}]};var K_M={},ItV=(K_M.initialized={priority:10,callback:function(R){R.injector.addProvider({provide:xFT,useValue:R.root});R.injector.addProvider({provide:ALP,useValue:Vo4});R.injector.addProvider({provide:DGg,useValue:i$g});var y={};R.injector.addProvider((y.provide=pKa,y.useFactory=function(u,v){return function(){rBE(u,v)}},y[Mn]=[ALP,
DGg],y));R.injector.addProvider({provide:eh,useClass:eh})}},K_M);var hUV={},b$P=(hUV.initialized={priority:3,callback:function(){var R;if(R=M6v()){R=R.replace("/",".");var y=_.O9();y.set("tz",R);y.save();R=!0}else R=!1;R||(R=_.O9(),R.set("utco",-Math.floor((new Date).getTimezoneOffset())),R.save())}},hUV);var F_K={},w$a=(F_K.initialized={priority:10,callback:function(R){R.injector.resolve(eh).start();R=_.gw();var y=_.$B("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.$B("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.$B("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.$B("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.TK(_.WBG(),{mainAppWeb:Object.assign({},R,{pageType:y})});_.TK(UnU(),{mainAppWeb:Object.assign({},R,{pageType:y})});
_.TK(knE(),{mainAppWeb:R});_.TK(EcT(),{mainAppWeb:R});NnL(function(){_.o2(knE(),"FAILURE");_.o2(EcT(),"FAILURE")});
w68();NeS();thT()}},F_K);var NYM={},TYI=(NYM.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.qQ("dl"),_.Lx().processSignal("pcl");else{var R=function(){_.qQ("dl");_.Lx().processSignal("pcl");window.removeEventListener("load",R)};
window.addEventListener("load",R)}}},NYM);var oLP={},xPM=(oLP.rendering={priority:0,callback:function(){var R=_.Lx();R.parkOrScheduleJob(function(){R.processSignal("eocs")},10,"eor",5E3)}},oLP);var BYV=function(){};
_.O(BYV,YQ);
BYV.prototype.resolveCommand=function(R,y){var u,v,Q,M,K,h,b,N;return _.I(function(T){Q=(u=_.e(R,_.DvL))==null?void 0:(v=u.dialog)==null?void 0:v.commentReplyDialogRenderer;if(!Q)throw new _.OL("No dialog in createCommentReplyDialogEndpoint");K=(M=y.form)==null?void 0:M.event;if(!K)throw new _.OL("Event not passed in when resolving command");h=_.V(K.composedPath());for(b=h.next();!b.done;b=h.next())if(N=b.value,N.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||N.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return N.showReplyDialog(Q),T.return();
_.f$(T)})};var EG=function(R){this.pageRequestService=R;this.JSC$18443_prefetchCoordinator=n8M()};
_.O(EG,YQ);EG.prototype.resolveCommand=function(R){var y=this,u,v,Q,M;return _.I(function(K){if(K.nextAddress==1){u=_.e(R,fEV);if((v=u)==null||!v.taskId)throw Error("uj");Q=u.taskId;_.wY(K,2);return K.yield(_.T_b(y.pageRequestService,R,{},"").then(function(h){if(!h)throw Error("vj");},function(h){throw Error("wj`"+h);
}),4)}if(K.nextAddress!=2)return PTJ(y.JSC$18443_prefetchCoordinator,Q),_.c5(K,0);
M=_.B$(K);bg(y.JSC$18443_prefetchCoordinator,Q,M);_.f$(K)})};
EG[Mn]=[dX];var $g=function(R){this.innertubeTransportService=R};
_.O($g,YQ);$g.prototype.resolveCommand=function(R){var y=this,u,v;return _.I(function(Q){u=_.e(R,xic);if(u.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||u.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")v=u.boolValue?2:1,_.Js.getInstance().setState(v,!0,!0);return Q.yield(_.yB(y.innertubeTransportService,R),0)})};
$g[Mn]=[_.Dj];var qm={},ftH=(qm.addToPlaylistEndpoint=vd(Dh),qm.addToToastAction=vd(to),qm.adsControlFlowOpportunityReceivedCommand=vd(lf),qm.backgroundAudioPlaybackCommand=vd(uF),qm.captionLanguageSelectActionCommand=vd(vI),qm.captionPickerEndpoint=vd(QP),qm.changeMiniAppPlayStateCommand=vd(p4),qm.changeTimelyActionVisibilityCommand=vd(pd),qm.channelCreationFormEndpoint=vd(E5),qm.clearLocationCommand=vd(Am),qm.clearUrlParamCommand=vd(tm),qm.copyLinkCommand=vd(iF),qm.copyTextEndpoint=vd(Hp),qm.createCommentReplyDialogEndpoint=
ER4(BYV),qm.createPlaylistServiceEndpoint=vd(Kd),qm.dismissDialogEndpoint=vd(a7),qm.entityUpdateCommand=vd(Gj),qm.feedbackEndpoint=vd(Wp),qm.getAnswerCommand=vd(ES8),qm.getPaymentsClientTokenCommand=vd(S$),qm.getTranscriptEndpoint=vd(cI),qm.googlePaymentBillingCommand=vd(Yf),qm.googlePaymentPurchaseManagerCommand=vd(Ld),qm.hideEngagementPanelEndpoint=vd(SM),qm.hideSnackbarCommand=vd(Ed),qm.insertRichSectionCommand=vd(q0),qm.listMutationCommand=vd(X_),qm.logGtmCommand=vd($e),qm.notifyDropdownOptionSelectedCommand=
vd(cp),qm.openAdAllowlistInstructionCommand=vd(_.O5),qm.openOnePickAddVideoModalCommand=vd(I6),qm.persistSubscriptionsDisplayPreferencesCommand=vd(T_),qm.pingingEndpoint=vd(Zh),qm.playlistEditEndpoint=vd(bF),qm.playlistVotingRefreshPopupCommand=vd(F$),qm.profileCardCommand=vd(eM),qm.refreshPanelEndpoint=vd(Ye),qm.saveImageToDeviceEndpoint=vd(n4),qm.scrollToSectionEndpoint=ER4($U7),qm.seekToVideoTimestampCommand=vd(j$),qm.selectCountryCommand=vd(o6),qm.setCookieCommand=vd(xf),qm.setLocalStorageCommand=
vd(q3),qm.setPrefStorageEntryCommand=vd(fd),qm.setSettingEndpoint=vd($g),qm.sfvAudioItemPlaybackCommand=vd(M3),qm.shareImageCommand=vd(e$),qm.sharingProviderDataCommand=vd(lF),qm.showCaptionLanguageSelectActionCommand=vd(Jo),qm.showDialogCommand=vd(zj),qm.showEngagementPanelEndpoint=vd(gd),qm.showSheetCommand=vd(C4),qm.showSnackbarCommand=vd($f),qm.showTransientPlayerScrimOverlayCommand=vd(VP),qm.submitFormWithValidationFlowCommand=vd(ke),qm.talkToRecsDeselectCommand=vd(X$),qm.talkToRecsNextCommand=
vd(mY),qm.talkToRecsSelectCommand=vd(Ao),qm.talkToRecsUpdateTextCommand=vd(DB),qm.toggleEngagementPanelCommand=vd(R6),qm.undoFeedbackEndpoint=vd(U5),qm.updateEngagementPanelContentCommand=vd(yP),qm.updateUrlParamCommand=vd(a6),qm.verifyCommand=vd(E5),qm.webNativeShareCommand=vd(Od),qm.webSubmitFormCommand=vd(wP),qm.ACK_PLAYABLES_3P_DATA_CONSENT=vd(ZB),qm.CANCEL_NAVIGATION=vd(HI),qm.COPY_SHARE_URL=vd(nd),qm.MINI_APP_EXIT_DIALOG_SEEN=vd(rP),qm.MINI_APP_OPEN_URL=vd(G_),qm.REQUEST_MINI_APP_FULLSCREEN=
vd(PI),qm.RESUME_NAVIGATION=vd(WI),qm.SHARE_PLAYABLE_WITH_HIGH_SCORE=vd(dP),qm.TELL_US_WHY=vd(dd),qm);_.f("web_enable_prefetching_videos_on_home")&&(ftH.prefetchWatchCommand=vd(EG),ftH.registerTasksCommand=vd(wS));_.f("enable_share_panel_navigation_logging_fix_on_web")&&(ftH.shareEntityServiceEndpoint=vd(L4));var ZWV=Object.assign({},ftH);var eUK={},lta=(eUK.initialized={priority:10,callback:fkP},eUK);var O$V={},Z$I=(O$V.initialized={callback:function(R){var y={},u={};h9S().install((y.document_disposed={callback:function(){_.f("finalize_all_timelines")?u8T():kF();UXW("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.lGP();var v=R.injector.resolve(eh);v.intervalId!==void 0&&(v.intervalId&&_.WG.cancelJob(v.intervalId),v.intervalId=void 0,--v.currentPartitionIndex,v=JiK(v),v>0&&hgV({mainAppWeb:_.gw(),survivalSli:{partitionMinute:v,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));QST(gu);Ct!=null&&
Ct.flush();b7&&b7.snapshotAndFlush();v=_.V(xMg.values());for(var Q=v.next();!Q.done;Q=v.next())Q.value.snapshotAndFlush()}},y),(u.flush_logs={callback:function(){_.W3()}},u))}},O$V);var H$p={},nLI=(H$p.rendered={priority:0,callback:function(){var R=new Cxc;R.increment("STARTED");if(_.EB("LOGGED_IN")&&_.EB("SERVER_VERSION")!=="test"&&_.EB("SERVER_VERSION")!=="dev"&&!WVg()&&!PTT()){R.increment("EXECUTING");var y=document.createElement("iframe");y.style.display="none";_.Q1P(y,2,_.Eo("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.EB("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(y);R.increment("DONE")}}},H$p);var G9m={},raK=(G9m.rendered={callback:function(){n8M().resume()}},G9m);var PBg={acknowledgeChannelTouStrikeCommand:WV(O0),addToPlaylistServiceEndpoint:WV(n3),addToPlaylistEndpoint:WV(n3),addUpcomingEventReminderEndpoint:WV(Xk),browseEndpoint:WV(KV8),channelCreationFormEndpoint:WV(TY),channelCreationServiceEndpoint:WV(o0),claimLegacyYoutubeChannelEndpoint:WV(QK),clearSearchHistoryEndpoint:WV(WL),clearWatchHistoryEndpoint:WV(dU),commerceActionCommand:dw(L3),createBackstagePostEndpoint:WV(gP),createBroadcastCommand:WV(mP),createCommentEndpoint:WV(bR),createCommentReplyEndpoint:WV(h5),
createLiveChatPollEndpoint:WV(A5),createPlaylistServiceEndpoint:WV(G8),crossAccountChannelTransferEndpoint:WV(E0),deleteLiveChatMessageCommand:WV(Db),deletePlaylistEndpoint:WV(r4),deleteVideoEndpoint:WV(ca),dismissalEndpoint:WV(Zb),feedbackEndpoint:WV(HL),flagEndpoint:WV(Ee),getAccountSwitcherEndpoint:WV(kd),verifyCommand:WV(z_),getAccountsListInnertubeEndpoint:WV(qY),getCommentsFromInboxCommand:WV(K3),getDownloadActionCommand:WV(T8),getFlowCommand:dw(PL),getKidsBlocklistPickerCommand:WV($H),getNotificationMenuEndpoint:WV(bYa),
getPaymentInstrumentsParamsCommand:WV(yp),getPaymentsClientTokenCommand:dw(L3),getPdgBuyFlowCommand:WV(Zs),getReportFormEndpoint:WV(qa),getSearchInVideoCommand:WV(A9),getAnswerCommand:WV(mO),getSurveyCommand:WV(t9),getTranscriptEndpoint:WV(S3),getPostVideoPreviewEndpoint:WV(R0),decorateMessageEndpoint:WV(Cd),likeEndpoint:WV(xd),liveChatActionEndpoint:WV(a0),liveChatEndpoint:WV(cL),liveChatItemContextMenuEndpoint:WV(pe),liveChatPurchaseMessageEndpoint:WV(S4),liveChatReplayEndpoint:WV(t5),manageLiveChatUserEndpoint:WV(Le),
metadataUpdateCommand:WV(yu),moderateLiveChatEndpoint:WV(s0),modifyChannelNotificationPreferenceEndpoint:WV(FO),notificationOptOutEndpoint:WV(w4),openSuperStickerBuyFlowCommand:WV(Yd),performCommentActionEndpoint:WV(iR),playlistEditEndpoint:WV(Wa),playlistEditorEndpoint:WV(Pa),recordNotificationInteractionsEndpoint:WV(Na),reelWatchEndpoint:WV(d4),refreshPanelEndpoint:WV(xH),removeUpcomingEventReminderEndpoint:WV(zY),resolveLocationCommand:WV(RI),revealBusinessEmailCommand:WV(j4),searchEndpoint:WV(_.FVK),
sendLiveChatMessageEndpoint:WV(gU),sendLiveChatVoteEndpoint:WV(Ce),setSettingEndpoint:WV(BL),shareEntityServiceEndpoint:dw(lR),sharingProviderDataCommand:WV(p3),showEngagementPanelEndpoint:WV(Ba),showMoreDrawerCommand:WV(e3),showSheetCommand:WV(ld),showDialogCommand:WV(f3),subscribeEndpoint:WV(fe),transcriptSubmitCaptionCorrectionCommand:WV(aI),undoFeedbackEndpoint:WV(GY),unsubscribeEndpoint:WV(e4),updateBackstagePostEndpoint:WV(uR),updateCommentEndpoint:WV(wU),updateCommentReplyEndpoint:WV(Fk),updateCommentsSettingsEndpoint:WV(NY),
updateCreatorChannelInnertubeCommand:WV(J5),updateKidsBlacklistEndpoint:WV(XO),updateEngagementPanelContentCommand:WV(Oe),updatePdgFeatureEnablementCommand:WV(Ha),updatedMetadataEndpoint:WV(id),validateChannelHandleCommand:WV(VK),updateChannelPageSettingsEndpoint:WV(MY),verifyAgeEndpoint:WV(rU),watchEndpoint:dw(Ox),whitelistEditEndpoint:WV(YH),ypcCancelRecurrenceEndpoint:WV(se),ypcCompleteTransactionEndpoint:WV(z8),ypcFixInstrumentEndpoint:WV(C3),ypcGetCartEndpoint:WV(g4),ypcGetOffersEndpoint:WV(Rv),
ypcHandleTransactionEndpoint:dw(ug),ypcLogWalletAnalyticDataEndpoint:WV(vX),ypcOffersEndpoint:WV(Qp),ypcPauseSubscriptionCommand:WV(jD),ypcRedeemCodeEndpoint:WV(Mm),ypcResumeSubscriptionCommand:WV(JV),ypcUpdateFopEndpoint:WV(C3)},XE={},W_P=(XE.GET_ACCOUNT_MENU=WV($d),XE.GET_NOTIFICATIONS_MENU=WV(hca),XE.GET_NOTIFICATIONS_INBOX=WV(II),XE.GET_UNSEEN_NOTIFICATION_COUNT=WV(bd),XE.GET_USER_MENTION_SUGGESTIONS=WV(yK),XE.LOAD_GUIDE=WV(IwJ),XE.SUBMIT_FEEDBACK=WV(ne),XE),mp={},dPJ=(mp.CONTINUATION_REQUEST_TYPE_BROWSE=
WV(vL),mp.CONTINUATION_REQUEST_TYPE_SEARCH=WV(Ds),mp.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=WV(H1),mp.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=WV(U0),mp.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=WV(I0),mp.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=WV(Ke),mp.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=WV(kH),mp.CONTINUATION_REQUEST_TYPE_GET_PANEL=WV(oI),mp),UPH={player:dw(Ox),watchNext:WV(Z5)},k9I={player:dw(Ox),reelItemWatch:WV(d4),reelWatchSequence:WV(Ue)},ELp={watchEndpoint:dw(nl)},$Pa=
{commandEndpointMap:PBg,signalEndpointMap:W_P,continuationEndpointMap:dPJ,watchEndpointMap:UPH,reelWatchEndpointMap:k9I,streamingEndpointMap:ELp};var qrm,X$M,mPM;_.AaM=((X$M=(qrm=window).matchMedia)==null?void 0:(mPM=X$M.call(qrm,"(prefers-reduced-motion: reduce)"))==null?void 0:mPM.matches)||!document.startViewTransition;var DPo={disableAllTransitions:_.AaM,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["lockup-to-watch",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["watch-next-appears",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:200}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:600}}]])};var p$K=function(R){this.viewTransitionCoordinator=R;this.isBrowseTransitionEnabled=_.VN("web_page_transition_type")==="slide";this.isLockupToWatchTransitionEnabled=_.f("web_thumbnail_to_watch_transition");this.isLockupThumbnailRegistrationEnabled=_.f("web_thumbnail_to_watch_transition_register_thumbnail");this.isLearningJourneyTransitionEnabled=_.f("enable_plj_landing_page");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;
this.lockupThumbnailRegisteredFromWatchEndpoint=!1;this.registerRootElement()};
p$K.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var R={};this.viewTransitionCoordinator.registerElement(document.documentElement,(R.slide="root-slide",R["lockup-to-watch"]="root-lockup-to-watch",R["learning-journey"]="root-learning-journey",R))}};
_.nyi=function(R,y){R.isLockupToWatchTransitionEnabled&&R.isLockupThumbnailRegistrationEnabled&&(R.registeredLockupThumbnail?R.lockupThumbnailRegisteredFromWatchEndpoint?_.kT(new _.OL("Lockup thumbnail registration order is incorrect.")):_.kT(new _.OL("Lockup thumbnail already registered.")):(R.registeredLockupThumbnail=y,_.tLJ(R,y)))};
_.tLJ=function(R,y){var u={};R.viewTransitionCoordinator.registerElement(y,(u["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",u),!0)};
p$K[Mn]=[WgM];var eGO={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 Oa8=["videoPrimaryInfoRenderer","title"],ZaE=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var caZ;caZ=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.atZ=_.Jd(function(R){R=_.jb(R,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var y=R.data,u=R.playlistData,v=R.expanded,Q=R.onExpandClick,M=R.isReadyToResume,K=function(){var T;return!((T=u())==null||!T.contents)},h=function(){var T=u();
return T&&T.totalVideos&&T.currentIndex!==void 0?T.currentIndex+1+" / "+T.totalVideos:""};
R=_.nh(function(){_.AV(_.ua().resolve(_.cZ));return!1});
var b=_.nh(function(){K()&&Q&&Q()}),N={};
return _.F("ytd-miniplayer-info-bar",{class:_.Oy("ytdMiniplayerInfoBarHost",(N.ytdMiniplayerInfoBarHasPlaylistData=K,N)),"on:click":b},_.F("div",{class:"ytdMiniplayerInfoBarContent"},_.F("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":R},_.F(_.QM,{text:function(){var T=y();var x=u();if(x==null?0:x.contents){var B;T=(B=_.g1c(x))==null?void 0:B.title}else T=T==null?void 0:T.miniplayerTitle;return nAO(T)},
noEndpoints:!0,ellipsisTruncate:!0})),_.F("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.F(_.w,{cond:M,then:function(){return _.F(T85,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:caZ})}}),_.F("h1",null,_.F(_.QM,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var T=y();var x=u();T=M()?{simpleText:_.fo("CONTINUE_WATCHING",void 0,"Continue watching")}:(x==null?0:x.contents)?x.titleText:T==null?void 0:T.miniplayerSubtitle;return nAO(T)},
noEndpoints:!0,ellipsisTruncate:!0})),_.F(_.w,{cond:function(){return!!h()&&!M()},
then:function(){return _.F("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.F("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.F("span",null,h))}}))),_.F(_.w,{cond:K,
then:function(){return _.F("div",{class:"ytdMiniplayerInfoBarExpand"},_.F(_.j8,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(T){Q&&(Q(),T.stopPropagation())}}},
iconName:function(){return v()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"He");var Srg;Srg=_.Jd(function(R){return _.F("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.F(_.j8,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:R.onTap}},
iconName:"yt-icons:close"}))},"Ie");
_.Yra=_.Jd(function(R){R=_.jb(R,{playabilityStatus:void 0,isDisabled:!1});var y=R.size,u=R.playabilityStatus,v=R.isDisabled,Q=_.sh("div");R=_.V(_.In(void 0,void 0,"bJr0Se"));var M=R.next().value,K=R.next().value;R=_.Sp(_.B2);var h=!1,b=function(){return y().height<=0};
_.ny(function(){var B=y(),l=b(),Z=M();Z&&!l&&Z.setInternalSize(B.width,B.height)},"OUOyKb");
_.nG(function(){var B,l,Z;return _.I(function(P){if(P.nextAddress==1){B=_.ua().resolve(_.cZ);l=B.getPlayerElement();if(!B.isMiniplayerActive()||!l||!Q.value)return P.return();l.appendTo(Q.value);return P.yield(l.getPlayerPromise(),2)}Z=P.yieldResult;Z.setSizeStyle(!1,!0);K(Z);_.f$(P)})});
_.GF(function(){N()});
_.ny(function(){var B=M();if(B)if(v()){var l=B.getPlayerState();(h=l===-1||l===1||l===3)&&B.pauseVideo()}else N()},"KKHe5");
var N=function(){if(h){h=!1;var B;(B=M())==null||B.playVideo()}},T=_.nh(function(){_.AV(_.ua().resolve(_.cZ))}),x={};
return _.F("ytd-miniplayer-player-container",{class:_.Oy("ytdMiniplayerPlayerContainerHost",(x.ytdMiniplayerPlayerContainerHidden=b,x.ytdMiniplayerPlayerContainerHostShortsPip=R,x)),style:_.P_({width:function(){return y().width+"px"},
height:function(){return y().height+"px"}})},_.F("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:Q}),_.F(_.w,{cond:function(){return!!u()&&!_.Q9T(u())},
then:function(){return _.F(x_b,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var B;return((B=u())==null?void 0:B.errorScreen)||null},
status:function(){var B;return((B=u())==null?void 0:B.status)||null}})}}),_.F(_.w,{cond:v,
then:function(){return _.F("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":T},_.F(Srg,{onTap:function(){_.ua().resolve(_.cZ).close()}}))}}))},"Je");_.L_V=_.Jd(function(R){var y=R.toastData;var u=_.sh("ytd-miniplayer-toast");R=_.V(_.rW(function(){return!!y()}));
var v=R.next().value,Q=R.next().value;R=_.V(_.In(!1,void 0,"xkrBze"));var M=R.next().value,K=R.next().value,h=function(){var T;return _.u7((T=y())==null?void 0:T.data.title)};
_.rB(function(){_.St.requestAvailability();y()&&Q(!1)});
var b,N;_.ny(function(){v()&&(_.Ko(u.value,"iron-announce",{text:y().label+" "+h()}),b&&_.WG.cancelJob(b),b=_.WG.addLowPriorityJob(function(){K(!0)},2500))},"OTdL1e");
_.ny(function(){M()&&(N&&_.WG.cancelJob(N),N=_.WG.addLowPriorityJob(function(){Q(!1);K(!1)},300))},"yybqib");
R={};return _.F("ytd-miniplayer-toast",{el:u,class:_.Oy("ytdMiniplayerToastHost",(R.ytdMiniplayerToastOpening=function(){return v()},R.ytdMiniplayerToastClosing=function(){return M()},R))},_.F(_.w,{cond:function(){var T;
return(T=y())==null?void 0:T.data},
then:function(T){return _.F(Z1c,{className:"ytdMiniplayerToastThumbnail",data:T,width:78})}}),_.F("div",{class:"ytdMiniplayerToastInfo"},_.F("div",{class:"ytdMiniplayerToastLabel"},function(){var T;
return(T=y())==null?void 0:T.label}),_.F("div",{class:"ytdMiniplayerToastTitle"},h)))},"Ke");var qA8;var AH4=null;var zUp=_.Jd(function(R){var y=R.progressState;var u=R.multiMarkersPlayerBarRenderer;var v=R.progressBarWidth;var Q=function(){return cHG(u())},M=function(){return YAc(y())},K=function(){return v()*(y().playedTime/y().videoDuration)};
return _.F("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.F(_.eS,{each:Q},function(h,b){return _.F(s1a,{modifiedProps:M,chapters:Q,index:b,playedProgressWidth:K,backgroundGradientPosition:function(){var N=M(),T=Q(),x=b(),B=K();return(N.playedTime-pR(_.e(T[x],DA)))/N.playedTime*B}})}))},"Le"),s1a=_.Jd(function(R){var y=R.modifiedProps;
var u=R.chapters;var v=R.index;var Q=R.playedProgressWidth;var M=R.backgroundGradientPosition;R={};R=_.Oy("ytChapteredProgressBarChapteredPlayerBarChapter",(R.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return K().isScrubbing},R.ytChapteredProgressBarHoveredMacroMarker=function(){return K().scrubberHovering},R.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return K().videoPosition==="seen"},R));
var K=function(){return LJT(y(),u(),v())},h=function(){var b=y();
var N=u(),T=v();if(LJT(b,N,T).videoPosition!=="active")b=0;else{var x=pR(_.e(N[T],DA));b=(b.playedTime-x)/((pR(_.e(N[T+1],DA))||b.videoDuration)-x)}return b};
return _.F("div",{class:R,style:_.P_({width:function(){var b=y(),N=u(),T=v(),x=_.e(N[T],DA);N=_.e(N[T+1],DA);return(N?pR(N)-pR(x):b.videoDuration-pR(x))/b.videoDuration*100+"%"},
"background-color":function(){a:{var b=K();switch(b.videoPosition){case "pending":b=b.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":b=b.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:b=""}}return b},
"background-size":function(){return(slS(K())?Q():"")+"px"},
"background-position-x":function(){return(slS(K())?M():"")+"px"}})},_.F("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var b=y(),N=u(),T=v();if(LJT(b,N,T).videoPosition==="seen")var x=0;else x=pR(_.e(N[T],DA)),N=pR(_.e(N[T+1],DA))||b.videoDuration,b=b.videoDuration*b.percentLoaded,x=N<=b?1:x>=b?0:(b-x)/(N-x);return"width: "+x*100+"%"}}),_.F("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.P_({width:function(){return h()*100+"%"},
"background-size":function(){return(slS(K(),h())?Q():"")+"px"},
"background-position-x":function(){return(slS(K(),h())?M():"")+"px"}})}))},"Me");var gLH=function(R,y){y=y===void 0?OAc:y;var u,v=[],Q,M=!1;return function(){var K=_.qy.apply(0,arguments);if(M&&u===this&&y(K,v))return Q;Q=R.apply(this,K);M=!0;u=this;v=K;return Q}}(function(R){var y=R.heatMarkers,u=R.minHeightDp===void 0?0:R.minHeightDp,v=R.maxHeightDp===void 0?60:R.maxHeightDp;
var Q=Q===void 0?!1:Q;var M=1E3/y.length;R=[];R.push({x:0,y:100});for(var K=0;K<y.length;K++){var h=void 0,b=((h=_.e(y[K],lL5))==null?void 0:h.heatMarkerIntensityScoreNormalized)||0;h=(K+.5)*M;b=100-_.Ae(b*100,u/321*100,v/321*100);K!==0||Q||R.push({x:0,y:b});R.push({x:h,y:b});K===y.length-1&&R.push({x:1E3,y:b})}R.push({x:1E3,y:100});y="";for(u=0;u<R.length;u++)Q=R[u],u===0?Q="M "+Q.x.toFixed(1)+","+Q.y.toFixed(1):(v=uuT(R[u-1],R[u-2],Q),M=uuT(Q,R[u-1],R[u+1],!0),Q=" C "+(v.x.toFixed(1)+","+v.y.toFixed(1)+
" "+M.x.toFixed(1)+","+M.y.toFixed(1)+" "+Q.x.toFixed(1)+","+Q.y.toFixed(1))),y+=Q;return y});var CBg=_.Jd(function(R){var y=R.progressBarProps;var u=R.config;var v={};R=_.Oy("ytHeatSeekerHost",(v.ytHeatSeekerHighContrast=R.highContrast,v));var Q=function(){return db4(u().chapterData)};
return _.F("yt-progress-bar-heatseeker",{class:R,style:function(){var M;return"height: 320px; display: "+(y().isDragging&&((M=Q())==null?0:M.heatMarkers)?"block":"none")}},_.F(_.w,{cond:Q,
then:function(M){return _.F(_.w,{cond:function(){return M().heatMarkers},
then:function(){return _.F("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.F("path",{d:function(){return gLH(M())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Ne");var RSP=_.Jd(function(R){var y=R.progressBarProps;var u=R.config;R={};R=_.Oy("ytProgressBarLineProgressBarLine",(R.ytProgressBarLineProgressBarLineRounded=function(){return u().rounded},R.ytProgressBarLineProgressBarLineBottomInset=function(){return u().position===2},R));
return _.F("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.F("div",{class:R},_.F("div",{class:"ytProgressBarLineProgressBarBackground"}),_.F("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+y().percentLoaded*100+"%"}}),_.F("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var v=y();return"width: "+(v.videoDuration?_.Ae(v.hoveredTime/v.videoDuration,0,1):0)*100+"%"}}),_.F("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+rHz(y())*100+"%"}})))},"Oe");
RSP.idomCompat=!0;var ySp=_.Jd(function(R){var y=R.progressBarProps;var u=R.playheadData;var v=R.interpolateDotPosition;var Q=R.hidePlayhead;R={};var M=_.Oy("ytProgressBarPlayheadProgressBarPlayheadDot",(R.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return y().isDragging},R.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!y().isDragging&&Q()},R));
return _.F("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.P_({"margin-left":function(){return P5O(y())*100+"%"},
transform:function(){return"translateX(-"+(v()?P5O(y())*12:6)+"px)"}})},_.F(_.w,{cond:function(){var K;
return(K=_.Qj(u)())==null?void 0:K.playheadImage},
then:function(K){var h={};return _.F("div",{class:_.Oy("ytProgressBarPlayheadProgressBarPlayheadCustom",(h.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return y().isDragging},h.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!y().isDragging&&Q()},h)),
style:_.P_({"transform-origin":function(){return(v()?P5O(y())*20:10)+"px center"}})},_.F(_.MR,{data:K,
alt:"","aria-hidden":"true"}))},
else:function(){return _.F("div",{class:M,style:_.P_({"transform-origin":function(){return(v()?P5O(y())*12:6)+"px center"}})})}}))},"Pe");
ySp.idomCompat=!0;var DG=function(R,y,u,v,Q,M){this.getProgressBarRect=R;this.updateProgressBarRect=y;this.getFilmstripYPosition=u;this.setFineScrubbingDraggedTime=v;this.updateFilmStripDraggedYDistance=Q;this.resetFilmStripYOffset=M;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.v2(this.onThrottledSeek,100,this)},uVa=function(R,y,u){return function(v){R.handleClick(v,y(),u())}},jrM=function(R,y){return function(u){vha(R,
u,Qrp(u),y())}},MQm=function(R,y){return function(u){vha(R,u,{x:u.clientX,
y:u.clientY},y())}},VQH=function(R,y,u){return function(v){var Q=y(),M=u();
JSa(R,v,Qrp(v),Q,M,!0);if(M.onTouchMove)M.onTouchMove(Q)}},KvJ=function(R,y,u){return function(v){iLJ(R,v,y(),u())}},Iia=function(R,y){return function(){R.handleMouseLeave(y())}},hSo=function(R,y,u){return function(){var v=y(),Q=u();
pq(R,v,Q);if(Q.onTouchEnd)Q.onTouchEnd(v)}},bLg=function(R,y,u){return function(){var v=y(),Q=u();
pq(R,v,Q);if(Q.onTouchEnd)Q.onTouchEnd(v)}},FvJ=function(R,y,u){return function(){pq(R,y(),u())}},wsI=function(R){return function(y){if(y.keyCode===39||y.keyCode===38){var u,v;
(u=R())==null||(v=u.playerApi)==null||v.seekBy(5,void 0,void 0,72)}else if(y.keyCode===37||y.keyCode===40){var Q,M;(Q=R())==null||(M=Q.playerApi)==null||M.seekBy(-5,void 0,void 0,71)}}},Nc7=function(R,y,u){return function(v){!u().disableScrubbing&&R.startPosition&&iLJ(R,v,y(),u())}},TcI=function(R,y,u){return function(){if(!u().disableScrubbing)if(R.startPosition){var v=y(),Q=u();
pq(R,y(),u());if(Q.onTouchEnd)Q.onTouchEnd(v)}else y().setState({isDragging:!1})}},Qrp=function(R){R=R.touches[0];
return{x:R.clientX,y:R.clientY}},iLJ=function(R,y,u,v){if(y.buttons!==1){if(y.movementX||y.movementY)y.preventDefault(),y.stopPropagation(),R=oha(R,u,y.clientX),u.setState({isHovering:!0,
hoveredTime:R*u.videoDuration})}else x1K(u),JSa(R,y,{x:y.clientX,y:y.clientY},u,v,!1)};
DG.prototype.handleMouseLeave=function(R){x1K(R)};
var x1K=function(R){R.isHovering&&R.setState({isHovering:!1,hoveredTime:0})},vha=function(R,y,u,v){R.startPosition||(R.startPosition=u,R.updateProgressBarRect(),R.controlsWereVisibleBeforeDragging=v.controlsVisible,y.stopPropagation(),_.f("medium_progress_bar_modification")||y.preventDefault())},JSa=function(R,y,u,v,Q,M){if(R.startPosition)if(M&&Q.isInlinePlayback&&R.startPosition&&!R.hasDraggedTheMinimumDistance&&Math.abs(u.y-R.startPosition.y)>Math.abs(u.x-R.startPosition.x))pq(R,v,Q);
else if(y.preventDefault(),y.stopPropagation(),v.videoDuration&&(R.startPosition&&!R.hasDraggedTheMinimumDistance&&(R.hasDraggedTheMinimumDistance=Math.abs(u.x-R.startPosition.x)>=1),Q.enableFineScrubbing&&(R.startPosition&&(R.isDraggedForFineScrubbing=-(u.y-R.startPosition.y)>=60),!R.startPosition||u.y>=R.startPosition.y||(v.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:zGW(v.draggedTime,v,Q.chapterData)}),R.setFineScrubbingDraggedTime(v.draggedTime),R.updateFilmStripDraggedYDistance(R.startPosition.y,
u.y,v))),R.hasDraggedTheMinimumDistance)){y=oha(R,v,u.x);if(R.isDraggedForFineScrubbing){var K;(K=v.playerApi)==null||K.pauseVideo();v.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:v.draggedTime,filmStripXDistance:zGW(y*v.videoDuration,v,Q.chapterData)})}Q.enableFineScrubbing&&(!Q.enableFineScrubbing||R.getFilmstripYPosition(v)<68)||v.setState({draggedTime:y*v.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:R.controlsWereVisibleBeforeDragging});var h;(h=
Q.cancelAutohideControlsFn)==null||h.call(Q)}},pq=function(R,y,u){var v=u.enableFineScrubbing&&y.fineScrubbingActiveState!=="off";
if(y.isDragging||v){v={isDragging:!1,playedTime:y.draggedTime,controlsVisible:R.controlsWereVisibleBeforeDragging};u.enableFineScrubbing&&y.fineScrubbingActiveState!=="on"&&(R.resetFilmStripYOffset(),v.fineScrubbingActiveState="off");var Q=Q===void 0?AH4:Q;var M=_.$I(0);if(M&&Q){var K=Math.round(y.playedTime*1E3),h=Math.round(y.draggedTime*1E3);K>2147483647||h>2147483647||_.Co(M,Q,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(K),endMediaTimeMs:String(h),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}y.setState(v);
R.seekThrottle.fire(y.draggedTime,y,7);_.f("mweb_new_progress_bar_play_on_seek")&&R.resumeVideo(y);u.unmuteOnSeek&&(u=y.playerApi,y.volumeMuted&&(u==null||u.unMute()))}else y.setState({controlsVisible:!y.controlsVisible}),(M=u.triggerAutohideControlsAfterDelayFn)==null||M.call(u);R.startPosition=null;R.hasDraggedTheMinimumDistance=!1;R.isDraggedForFineScrubbing=!1;R.controlsWereVisibleBeforeDragging=!1};
DG.prototype.handleClick=function(R,y,u){this.updateProgressBarRect();R.stopPropagation();R=oha(this,y,R.clientX)*y.videoDuration;y.setState({playedTime:R});if(y.playerState!==2){var v;(v=u.triggerAutohideControlsAfterDelayFn)==null||v.call(u)}this.seekThrottle.fire(R,y,7)};
var oha=function(R,y,u){R=R.getProgressBarRect(y);return _.Ae(0,(u-R.left)/R.width,1)};
DG.prototype.resumeVideo=function(R){if(R.draggedTime<R.videoDuration){var y;(y=R.playerApi)==null||y.playVideo()}};
DG.prototype.onThrottledSeek=function(R,y,u){if(y=y.playerApi){var v;if((v=y.getVideoData())==null?0:v.isLive)v=this.getProgressState(y),R+=(v==null?void 0:v.seekableStart)||0;y.seekTo(R,void 0,void 0,void 0,u)}};
DG.prototype.getProgressState=function(R){var y=R==null?void 0:R.getPresentingPlayerType();return R==null?void 0:R.getProgressState(y)};var eS8,fiJ,liH,ZLa,Bco,HLm,nhK,GRP,rSp;eS8=_.Jd(function(R){var y=R.progressBarProps;var u=R.config;var v=R.progressBarWidthPx;var Q=R.chapterData;var M=uPE(y,function(){return u().isShortsPage}),K=function(){return!y().isHovering&&!u().isShortsPage};
R={};var h=_.Oy("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(R.ytPlayerStoryboardHostMwebShorts=function(){return u().isShortsPage&&!1},R));
return _.F("yt-player-storyboard",null,_.F(_.w,{cond:function(){return y().isDragging||y().isHovering},
then:function(){return _.F(_.w,{cond:M,then:function(b){return _.F(_.w,{cond:K,then:function(){return _.F("div",{class:h,"aria-hidden":"true"},_.F(Bco,{props:y,config:u,isBigboard:!0,chapterData:Q}))},
else:function(){return _.F(fiJ,{props:y,frame:b,config:u,progressBarWidthPx:v,chapterData:Q})}})}})}}))},"Qe");
_.OLZ=_.Jd(function(R){var y=R.progressBarProps;var u=uPE(y,R.isShortsPage);return _.F("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.F(_.w,{cond:function(){return y().isDragging||y().isHovering},
then:function(){return _.F(_.w,{cond:u,then:function(v){return _.F(liH,{frame:v,props:y,isBigboard:!0})}})}}))},"Re");
fiJ=_.Jd(function(R){var y=R.props;var u=R.frame;var v=R.config;var Q=R.progressBarWidthPx;R=R.chapterData;var M={};M=_.Oy("ytPlayerStoryboardHost",(M.ytPlayerStoryboardHostMwebShorts=function(){return v().isShortsPage&&!1},M.ytPlayerStoryboardHostInlinePlayer=function(){return v().isInlinePlayer},M.ytPlayerStoryboardHostFadeIn=function(){return v().useFadeInAnimation},M));
return _.F("div",{class:M,"aria-hidden":"true",style:function(){var K=y(),h=gAU(u()),b=Q();K=C5E(K)/K.videoDuration;var N=b*K,T=h/2+6;h=b-(h/2+6);return"left: "+(N<=T?T/b*100:N>=h?h/b*100:K*100)+"%"}},_.F(_.w,{cond:function(){var K=y();
return!(v().isShortsPage&&K.videoDuration<15)},
then:function(){return _.F(liH,{frame:u,props:y,isBigboard:!1})}}),_.F(Bco,{props:y,
config:v,isBigboard:!1,chapterData:R}))},"Se");
liH=_.Jd(function(R){var y=R.frame;var u=R.props;var v=R.isBigboard;var Q=function(){var h,b;return(b=(h=u().playerApi)==null?void 0:h.getVideoContentRect())!=null?b:{width:0,height:0}},M=function(){return gAU(y())},K=function(){var h=y();
return h?h.height/h.rows:0};
R={};R=_.Oy((R.ytPlayerStoryboardBigboardImageWrapper=v,R.ytPlayerStoryboardStoryboardImageWrapper=function(){return!v()},R));
return _.F("div",{class:R,style:function(){return"width: "+(v()?Q().width:M())+"px; height: "+(v()?Q().height:K())+"px;"}},_.F(ZLa,{frame:y,
storyboardWidth:M,storyboardHeight:K,storyboardScale:function(){return(v()?Q().width:M())/M()}}))},"Te");
ZLa=_.Jd(function(R){var y=R.frame;var u=R.storyboardWidth;var v=R.storyboardHeight;var Q=R.storyboardScale;var M=function(){var K=y().row,h=y().column,b=u(),N=v(),T=Q();return{left:-h*b*T,top:-K*N*T}};
return _.F("img",{src:function(){return y().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+M().left+"px; top: "+M().top+"px; width: "+y().width*Q()+"px; height: "+y().height*Q()+"px;"}})},"Ue");
Bco=_.Jd(function(R){var y=R.props;var u=R.config;var v=R.isBigboard;var Q=R.chapterData;R={};R=_.Oy("ytPlayerStoryboardMetadata",(R.ytPlayerStoryboardMetadataBigboard=v,R));return _.F("div",{class:R},_.F(_.w,{cond:v,then:function(){return _.F(_.vu,null,_.F(HLm,{props:y,config:u}),_.F(_.w,{cond:function(){a:{var M=y();var K=u(),h=Q(),b;if((K==null?0:K.activeChapter)&&((b=_.e(K==null?void 0:K.activeChapter,DA))==null?0:b.title))M=!0;else{K=_.V(Ub4(h));for(K=K.next();!K.done;K=K.next()){M=(K=_.e(K.value,
ZQY))&&RfL(M,K);break a}M=!1}}return M},
then:function(){return _.F(nhK,{props:y,config:u,isBigboard:!0,chapterData:Q})}}))},
else:function(){return _.F(_.vu,null,_.F(nhK,{props:y,config:u,isBigboard:!0,chapterData:Q}),_.F(HLm,{props:y,config:u}))}}))},"Ve");
HLm=_.Jd(function(R){var y=R.props;var u=R.config;R={};R=_.Oy("ytPlayerStoryboardTimestamp",(R.ytPlayerStoryboardTimestampShorts=function(){return u().isShortsPage},R.ytPlayerStoryboardTimestampIsHovering=function(){return y().isHovering||u().isShortsPage&&!0},R));
return _.F("div",{class:R},_.F(_.vu,null,function(){return _.yPG(C5E(y()))}))},"We");
nhK=_.Jd(function(R){var y=R.props;var u=R.config;var v=R.isBigboard;var Q=R.chapterData;R={};v=_.Oy("ytPlayerStoryboardTitle",(R.ytPlayerStoryboardTitleBigboard=v,R));return _.F("div",{class:v},_.F(_.w,{cond:function(){return!u().isShortsPage},
then:function(){return _.F(GRP,{props:y,activeChapter:function(){return u().activeChapter},
chapterData:Q})}}))},"Xe");
GRP=_.Jd(function(R){var y=R.props;var u=R.activeChapter;var v=R.chapterData;return _.F(_.vu,null,_.F(_.eS,{each:function(){return Ub4(v())},
keyBy:"INDEX"},function(Q){return _.F(_.vu,null,_.F(_.w,{cond:function(){return _.e(Q(),ZQY)&&RfL(y(),_.e(Q(),ZQY))},
then:function(){return _.F(rSp,{timedMarker:function(){return _.e(Q(),ZQY)}})}}))}),_.F(_.w,{cond:function(){var Q;
return u()&&((Q=_.e(u(),DA))==null?void 0:Q.title)},
then:function(Q){return _.F(_.QM,{text:Q,noPreWrap:!0})}}))},"Ye");
rSp=_.Jd(function(R){var y=R.timedMarker;return _.F(_.vu,null,_.F("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.F(_.W_,{icon:function(){return y().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.F(_.QM,{text:function(){return y().label},
noPreWrap:!0}))},"Ze");_.Pv7=_.Jd(function(R){var y=R.progressBarProps;var u=R.playheadData;var v=R.config;R=_.sh("yt-progress-bar");var Q=_.sh("div"),M=_.sh("div"),K=_.V(_.In({width:0,left:0},void 0,"NcXsUb")),h=K.next().value,b=K.next().value,N=function(){M.value&&b(M.value.getBoundingClientRect())},T=function(){h().width<=0&&N();
return h()};
yn("resize",N);var x=new DG(T,function(){},function(){return 0},function(){},function(){},function(){}),B=function(){return y()};
K=_.V(_.In(!1,void 0,"ZsF6Xc"));var l=K.next().value,Z=K.next().value;K=_.nh(function(){Z(!0);v().position===2?setTimeout(function(){N()},100):N()});
var P=_.nh(function(){Z(!1);Iia(x,B)()}),k=_.nh(function($S){v().doSeekOnClick&&uVa(x,B,v)($S);
return!1}),E=_.nh(function($S){jrM(x,B)($S);
return!1}),D=_.nh(function($S){MQm(x,B)($S);
return!1}),z=_.nh(function($S){VQH(x,B,v)($S);
return!1}),c=_.nh(function($S){KvJ(x,B,v)($S);
return!1}),a=_.nh(function(){hSo(x,B,v)();
return!1}),L=_.nh(function(){bLg(x,B,v)();
return!1}),QG=_.nh(function(){FvJ(x,B,v)();
return!1}),hz=_.nh(function($S){wsI(B)($S);
return!1});
yn("mousemove",Nc7(x,B,v));yn("mouseup",TcI(x,B,v));_.rB(function(){DbG(Q.value);Z(!1);N();TcI(x,B,v)()});
var bO={};bO=_.Oy("ytPlayerProgressBarHost",function(){return v().className},(bO.ytPlayerProgressBarHostReadOnly=function(){return v().disableScrubbing},bO.ytPlayerProgressBarHostHidden=function(){return v().hideProgressBar&&!l()},bO.ytPlayerProgressBarHostLowerPlayer=function(){return v().position===0},bO.ytPlayerProgressBarHostBottomEdge=function(){return v().position===1},bO.ytPlayerProgressBarHostBottomInset=function(){return v().position===2},bO.ytPlayerProgressBarHostCustom=function(){return v().position===
3},bO));
var BW={},Zc=_.Oy("ytPlayerProgressBarBackground",(BW.ytPlayerProgressBarBackgroundHide=function(){return v().position===2&&!l()&&!y().isDragging},BW));
BW={};BW=_.Oy("ytPlayerProgressBarDragContainer",(BW.ytPlayerProgressBarDragContainerBottomEdge=function(){return v().position===1},BW));
var xS={};xS=_.Oy("ytPlayerProgressBarProgressBar",(xS.ytPlayerProgressBarProgressBarInset=function(){return v().position===2},xS.ytPlayerProgressBarProgressBarInsetMinimized=function(){return v().position===2&&!l()&&!y().isDragging},xS));
var Dc=function(){return Math.floor(rHz(y())*100)};
return _.F("yt-progress-bar",{el:R,class:bO},_.F(_.w,{cond:function(){return v().position===2},
then:function(){return _.F("div",{class:Zc})}}),_.F("div",{el:Q,
"on:click":k,"on:touchstart":E,"on:touchmove":z,"on:mouseenter":K,"on:mousedown":D,"on:mouseleave":P,"on:mousemove":c,"on:mouseup":L,"on:touchend":a,"on:touchcancel":QG,"on:keydown":hz,class:BW,role:"slider","aria-valuenow":Dc,"aria-valuetext":function(){return Dc()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return y().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.fo("SEEK_SLIDER")},_.F("div",{el:M,class:xS},_.F(CBg,{progressBarProps:y,config:v,highContrast:function(){return!!v().isInlinePlayback}}),_.F(_.w,{cond:function(){return v().chapterData&&koE(v().chapterData)},
then:function(){return _.F(zUp,{progressState:y,multiMarkersPlayerBarRenderer:function(){return v().chapterData},
progressBarWidth:function(){return h().width}})},
else:function(){return _.F(RSP,{progressBarProps:y,config:v})}}),_.F(ySp,{progressBarProps:y,
playheadData:u,interpolateDotPosition:function(){return v().position!==2},
hidePlayhead:function(){return v().playheadDotBehavior===1&&!l()}}))),_.F(eS8,{progressBarProps:y,
config:function(){return{activeChapter:SAc(y(),v().chapterData),getProgressBarWidthPx:function(){return T().width},
isShortsPage:!!v().isShortsPage,isInlinePlayer:!!v().isInlinePlayback,useFadeInAnimation:!!v().isInlinePlayback}},
progressBarWidthPx:function(){return h().width},
chapterData:function(){return v().chapterData}}))},"$e");
_.Pv7.idomCompat=!0;Object.assign({},_.EAL(),{setState:function(){},
domMeasurements:{},appApi:_.GoT(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var Wva;
_.d1M=_.Jd(function(){var R,y=(R=_.te(voG().playerApi))!=null?R:void 0;R=_.V(_.In(!1,void 0,"HLFBmb"));var u=R.next().value,v=R.next().value;R=_.V(_.In(!1,void 0,"lHH9bc"));var Q=R.next().value,M=R.next().value;R=_.V(_.In(!1,void 0,"zsY7yd"));var K=R.next().value,h=R.next().value;R=_.V(_.In(!1,void 0,"KeHQgc"));var b=R.next().value,N=R.next().value;R=_.V(_.In(0,void 0,"gLLCj"));var T=R.next().value,x=R.next().value;R=_.V(_.In(0,void 0,"s3RYkf"));var B=R.next().value,l=R.next().value;R=_.V(_.In(!1,void 0,
"Dn608e"));var Z=R.next().value,P=R.next().value;R=_.V(_.In(0,void 0,"AnkH1b"));var k=R.next().value,E=R.next().value;R=_.V(_.In(0,void 0,"QYNL0b"));var D=R.next().value,z=R.next().value;R=_.V(_.In("",void 0,"Yzw45d"));var c=R.next().value,a=R.next().value;R=_.V(_.In(-1,void 0,"iiVI0c"));var L=R.next().value,QG=R.next().value,hz=_.N8(function(){var bO={controlsVisible:u(),isOverlayHidden:Q(),shouldWaitToHideControls:K(),isDragging:b(),isHovering:Z(),videoDuration:k(),playedTime:D(),videoId:c(),draggedTime:B(),
hoveredTime:T(),playerState:L()};return Object.assign({},_.EAL(),bO,{domMeasurements:{},setState:function(BW){BW.controlsVisible!==void 0&&v(BW.controlsVisible);BW.isOverlayHidden!==void 0&&M(BW.isOverlayHidden);BW.shouldWaitToHideControls!==void 0&&h(BW.shouldWaitToHideControls);BW.isDragging!==void 0&&N(BW.isDragging);BW.isHovering!==void 0&&P(BW.isHovering);BW.draggedTime!==void 0&&l(BW.draggedTime);BW.hoveredTime!==void 0&&x(BW.hoveredTime);BW.videoDuration!==void 0&&E(BW.videoDuration);BW.playedTime!==
void 0&&z(BW.playedTime);BW.videoId!==void 0&&a(BW.videoId);BW.playerState!==void 0&&QG(BW.playerState)},
appApi:_.GoT(),playerApi:y})},void 0,"ZW7y9");
_.nG(function(){y==null||y.addEventListener("onVideoProgress",mbT(hz));y==null||y.addEventListener("onVideoDataChange",X6T(hz));y==null||y.addEventListener("onStateChange",$bW(hz))});
_.GF(function(){if(y==null?0:y.isReady())y==null||y.removeEventListener("onVideoProgress",mbT(hz)),y==null||y.removeEventListener("onVideoDataChange",X6T(hz)),y==null||y.removeEventListener("onStateChange",$bW(hz))});
return _.F("desktop-shorts-player-controls",null,_.F(Wva,{playerControlsProps:hz}))},"af");
Wva=_.Jd(function(R){var y=R.playerControlsProps;return _.F("div",{class:"desktopShortsPlayerControlsWizHost"},_.F(_.Pv7,{progressBarProps:y,config:function(){return{isShortsPage:!0,hideProgressBar:y().videoDuration<30&&y().playerState!==2&&!y().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"bf");_.U1V=_.Jd(function(R){function y(bO){bO!==0||x()?bO>50&&(x()||!l())?(B(!1),Z(!0)):bO<=50&&(x()||l())&&(B(!1),Z(!1)):B(!0)}
function u(bO,BW){var Zc;return _.I(function(xS){if(xS.nextAddress==1)return xS.yield(_.Bm(),2);Zc=xS.yieldResult;BW&&Zc?(Zc.unMute(!0),bO&&(jVc(bO,Zc.getVolume()),k(Zc.getVolume()))):Zc&&(Zc.mute(!0),bO&&jVc(bO,0));_.f$(xS)})}
function v(bO){var BW,Zc;return _.I(function(xS){if(xS.nextAddress==1)return xS.yield(_.Bm(),2);BW=xS.yieldResult;Zc=50;BW&&(Zc=BW.getVolume(),BW.isMuted()?jVc(bO,0):jVc(bO,Zc));k(Zc);_.f$(xS)})}
var Q=R.orientation;R=_.sh("desktop-shorts-volume-controls");var M=_.sh("button"),K=_.zp("input"),h=_.V(_.In(!1,void 0,"F6vt0d")),b=h.next().value,N=h.next().value,T=_.V(_.In(!1,void 0,"S5PCqb"));h=T.next().value;T=T.next().value;var x=h,B=T;T=_.V(_.In(!0,void 0,"Tgy4e"));h=T.next().value;T=T.next().value;var l=h,Z=T;h=_.V(_.In(50,void 0,"Dq3efd"));var P=h.next().value,k=h.next().value;h=_.N8(function(){var bO=x();return _.f("web_shorts_keyboard_enable_mute_shortcut")?bO?_.fo("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.fo("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):bO?_.fo("UNMUTE_VOLUME",void 0,"Unmute"):_.fo("MUTE_VOLUME",void 0,"Mute")},void 0,"zjOD8c");
T=_.N8(function(){var bO=x(),BW=l();return{sources:[{clientResource:{imageName:bO?_.f("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":BW?_.f("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.f("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"bIZ5A");
var E=_.N8(function(){var bO=P();return x()?bO+"% volume muted":bO+"% volume"},void 0,"kvkmyc"),D=_.N8(function(){return Q()==="vertical_down"},void 0,"zaNsZ");
_.rB(function(){function bO(){N(!0)}
function BW(){N(!1)}
K&&K.value&&(K.value.addEventListener("focus",bO),K.value.addEventListener("focusout",BW),v(K.value).then(function(){y(Number(MUU(K.value)))}));
M&&M.value&&(M.value.addEventListener("focus",bO),M.value.addEventListener("focusout",BW));_.GF(function(){var Zc;K==null||(Zc=K.value)==null||Zc.removeEventListener("focus",bO);var xS;K==null||(xS=K.value)==null||xS.removeEventListener("focusout",BW);var Dc;M==null||(Dc=M.value)==null||Dc.removeEventListener("focus",bO);var $S;M==null||($S=M.value)==null||$S.removeEventListener("focusout",BW)})});
var z=_.nh(function(){if(K&&K.value){var bO=Number(MUU(K.value));QVU(bO);k(bO);K.value.style.setProperty("--gradient-percent",bO+"%");y(bO)}return!1}),c=_.nh(function(){N(!0)}),a=_.nh(function(){K&&K.value&&(u(K.value,x()),B(!x()));
return!1}),L={},QG={},hz={};
return _.F("desktop-shorts-volume-controls",{"on:pointerleave":_.nh(function(){N(!1)}),
class:_.Oy("ytdDesktopShortsVolumeControlsHost",(L.ytdDesktopShortsVolumeControlsHostVertical=D,L.ytdDesktopShortsVolumeControlsHostExpanded=b,L)),el:R},_.F(_.w,{cond:function(){return!D()},
then:function(){var bO={};return _.F("div",{class:_.Oy("ytdDesktopShortsVolumeControlsBackgroundScrim",(bO.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=b,bO))})}}),_.F("div",{class:_.Oy((QG.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=D,QG))},_.F("button",{"aria-label":h,
title:h,el:M,"on:click":a,"on:pointerenter":c,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},T?_.F(_.MR,{data:T,alt:h,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.F("div",{class:_.Oy("ytdDesktopShortsVolumeControlsSliderContainer",(hz.ytdDesktopShortsVolumeControlsSliderContainerExpanded=b,hz.ytdDesktopShortsVolumeControlsSliderContainerVertical=D,hz.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=D,hz.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return b()&&D()},hz))},_.F("input",{"aria-label":_.fo("VOLUME"),
title:_.fo("VOLUME"),el:K,"on:input":z,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":P,"aria-valuetext":E,"aria-valuemin":0,"aria-valuemax":100})))},"cf");_.kRg=_.Jd(function(R){var y=R.data;return _.F("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.F(_.zw,{command:function(){return y().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.F(_.w,{cond:function(){return y().iconName},
then:function(u){return _.F(_.W_,{icon:u})}}),_.F("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return y().text}),_.F(_.w,{cond:function(){return y().showEndChevron},
then:function(){return _.F(_.W_,{icon:"CHEVRON_RIGHT"})}})))},"df");var Eh7=_.Jd(function(R){var y=R.data;var u=R.overlayDensity;R={};return _.F("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.F(_.mk,{data:function(){return y().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(v){var Q=v.data;
return _.F(_.mG,{data:function(){return(u==null?void 0:u())===1?Object.assign({},Q(),{avatar:{avatarViewModel:Object.assign({},_.e(Q().avatar,_.LA),{avatarImageSize:"AVATAR_SIZE_48"})}}):Q()}})}}),_.F(_.mk,{data:function(){return y().avatarStackViewModel}},{avatarStackViewModel:function(v){return _.F(_.Ap,{data:v.data})}}),_.F(_.QM,{className:_.Oy("ytReelChannelBarViewModelChannelName",(R.ytReelChannelBarViewModelChannelNameLarge=function(){return(u==null?void 0:u())===1},R)),
text:function(){return y().channelName},
linkInheritColor:!0,userInput:!0}),_.F("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.F(_.mk,{data:function(){return y().subscribeButtonViewModel}},{subscribeButtonViewModel:function(v){var Q=v.data;
return _.F(_.$x,{data:function(){return(u==null?void 0:u())===1?Object.assign({},Q(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},Q().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):Q()},
isOverlay:!1})},
buttonViewModel:_.fQ})),_.F("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.F(_.mk,{data:function(){var v,Q;return(Q=_.e((v=y())==null?void 0:v.sponsorButtonViewModel,mwg))==null?void 0:Q.sponsorButton}},{buttonViewModel:function(v){return _.F(_.fQ,{data:v.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"ef");var $1P=_.Jd(function(R){var y=function(){var v;return(R==null?void 0:(v=R.overlayDensity)==null?void 0:v.call(R))===1?22:16},u={};
return _.F("yt-reel-multi-format-link-view-model",{class:_.Oy("ytReelMultiFormatLinkViewModelHost",(u.ytReelMultiFormatLinkViewModelHostTall=!0,u.ytReelMultiFormatLinkViewModelHostLarge=function(){var v;return((v=R.overlayDensity)==null?void 0:v.call(R))===1},u))},_.F(_.zw,{ariaLabel:function(){return R.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return R.data().command}},_.F("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.F(_.w,{cond:function(){return R.data().icon},
then:function(v){return _.F(_.MR,{data:v,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:y})}}),_.F(_.QM,{text:function(){return R.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"ff");
$1P.idomCompat=!0;var q6J=_.Jd(function(R){var y=R.data;var u=R.overlayDensity;var v=_.sh("yt-shorts-suggested-action-view-model");R=_.V(_.In(!1,void 0,"xDqzhe"));var Q=R.next().value,M=R.next().value;R=_.V(_.In(!1,void 0,"LI9CFd"));var K=R.next().value,h=R.next().value,b=function(){return y().isMultiLineSa},N=_.nA(roE,function(){var c,a;
return(a=(c=y().toggleableContent)==null?void 0:c.entityKey)!=null?a:""}),T=function(){var c,a,L;
return(L=y().toggleableContent)!=null&&L.entityKey?(a=(c=N())==null?void 0:c.value)!=null?a:!1:!1},x=function(){var c,a,L,QG,hz,bO,BW,Zc,xS,Dc,$S;
return y().toggleableContent?T()?(c=y().toggleableContent)==null?void 0:c.toggledData:(a=y().toggleableContent)==null?void 0:a.untoggledData:{primaryText:(Zc=(L=y().defaultContent)==null?void 0:L.primaryText)!=null?Zc:y().text,secondaryText:(QG=y().defaultContent)==null?void 0:QG.secondaryText,onTapCommand:(xS=(hz=y().defaultContent)==null?void 0:hz.onTapCommand)!=null?xS:y().onTapCommand,icon:(Dc=(bO=y().defaultContent)==null?void 0:bO.icon)!=null?Dc:y().icon,image:($S=(BW=y().defaultContent)==null?
void 0:BW.image)!=null?$S:y().image}},B=function(){return b()?y().trailingTapTarget:void 0},l=function(c,a){return function(){return Q()?a:c}},Z=function(){return{leadingSection:l("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(u==null?void 0:u())===1?l("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):l("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:l("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:l("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
R={};R=_.Oy((R.ytShortsSuggestedActionViewModelStaticHost=function(){return!b()},R.ytShortsSuggestedActionViewModelDynamicHost=b,R.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return b()&&K()},R.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return b()&&!K()},R));
_.rB(function(){if(b()){var c=0,a;if((a=y().animationParams)==null?0:a.shouldExpand){var L,QG;c=((QG=(L=y().animationParams)==null?void 0:L.expansionDelaySecs)!=null?QG:0)*1E3}var hz,bO=((hz=y().animationParams)==null?0:hz.shouldExpand)?setTimeout(function(){M(!0)},c):void 0,BW,Zc;
c=((BW=y().animationParams)==null?0:BW.visibilityDelaySecs)?((Zc=y().animationParams)==null?NaN:Zc.visibilityDelaySecs)*1E3:0;var xS=setTimeout(function(){h(!0)},c);
_.GF(function(){bO&&clearTimeout(bO);clearTimeout(xS)})}});
var P=function(c){_.zN(c,Object.assign({},{form:{element:v.value}}))},k=_.nh(function(){var c,a=(c=x())==null?void 0:c.onTapCommand;
a&&P(a)}),E=_.nh(function(){var c,a;
if(c=(a=B())==null?void 0:a.onTapCommand)return P(c),!1}),D=_.P_({"vertical-align":"bottom",
"border-radius":function(){var c;return b()?((c=y().defaultContent)==null?0:c.isCircleImage)?"50%":"4px":"0px"},
width:function(){var c,a,L;return b()&&((c=y().defaultContent)==null?0:c.imageSize)?((L=(a=y().defaultContent)==null?void 0:a.imageSize)!=null?L:24)+"px":null},
height:function(){var c,a,L;return b()&&((c=y().defaultContent)==null?0:c.imageSize)?((L=(a=y().defaultContent)==null?void 0:a.imageSize)!=null?L:24)+"px":null}}),z={};
return _.F("yt-shorts-suggested-action-view-model",{class:R,el:v},_.F("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.F("button",{class:_.Oy(function(){return b()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var c;
return(c=y().useFullRoundedBorder)!=null&&c?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!B()&&b()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":b()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var c;
return(c=y().disableFixedHeight)!=null&&c?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(z.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(u==null?void 0:u())===1},z)),
"on:click":k},_.F(_.k6,{model:{color:4}}),_.F("div",{class:_.Oy(function(){return b()?Z().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.F(_.w,{cond:function(){var c;
return(c=x())==null?void 0:c.image},
then:function(c){return _.F(_.MR,{data:c,alt:"",className:function(){return b()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:D})}}),_.F(_.w,{cond:function(){var c,a;
return(c=x())==null?void 0:(a=c.icon)==null?void 0:a.iconType},
then:function(c){return _.F(_.W_,{icon:c,active:T,className:function(){return b()?Q()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.F("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.F(_.w,{cond:function(){var c;
return(c=x())==null?void 0:c.primaryText},
then:function(c){return _.F("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.F(_.QM,{text:c}))}}),_.F(_.w,{cond:function(){var c;
return(c=x())==null?void 0:c.secondaryText},
then:function(c){return _.F("div",{class:function(){return Z().secondaryText()}},_.F(_.QM,{text:c}))}}))),_.F(_.w,{cond:B,
then:function(c){return _.F("div",{class:function(){return Z().trailingSection()},
"aria-label":function(){var a;return(a=c().a11yLabel)!=null?a:""},
"on:click":E,role:"button",tabindex:0},_.F(_.k6,{model:{color:4}}),_.F(_.W_,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"gf");var XsV=_.Jd(function(R){var y=R.data;var u=R.overlayDensity;var v=_.sh("yt-shorts-video-title-view-model");R=_.nh(function(K){if(_.cm(_.tF(K),v.value,["A".toString()]))return!1;(K=y().truncatedTextOnTapCommand)&&_.zN(K);return!1});
var Q={},M={};return _.F("yt-shorts-video-title-view-model",{el:v,class:_.Oy("ytShortsVideoTitleViewModelHost",(Q.ytShortsVideoTitleViewModelHostClickable=function(){return!!y().truncatedTextOnTapCommand},Q)),
"on:click":R},_.F("h2",{class:_.Oy("ytShortsVideoTitleViewModelShortsVideoTitle",(M.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(u==null?void 0:u())===1},M))},_.F(_.QM,{text:function(){return y().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"hf");_.m1K=_.Jd(function(R){var y=R.data;var u=R.overlayDensity;return _.F("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.F(_.mk,{data:function(){return y().metadataItems}},{badgeViewModel:function(v){return _.F("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.F(_.hr,{data:v.data}))},
playerDisclosureViewModel:function(v){return _.F("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.F(_.kRg,{data:v.data}))},
shortsSuggestedActionViewModel:function(v){return _.F("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.F(q6J,{data:v.data,overlayDensity:u}))},
reelChannelBarViewModel:function(v){return _.F("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.F(Eh7,{data:v.data,overlayDensity:u}))},
reelMultiFormatLinkViewModel:function(v){return _.F("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.F($1P,{data:v.data,overlayDensity:u}))},
shortsVideoTitleViewModel:function(v){return _.F("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.F(XsV,{data:v.data,overlayDensity:u}))},
reelSoundMetadataViewModel:function(v){return _.F("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.F(_.AI7,{data:v.data,overlayDensity:u}))},
toggleButtonViewModel:function(v){return _.F("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.F(_.$1,{data:v.data}))}}))},"jf");var ASJ=_.Jd(function(R){var y=_.jb(R,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),u=y.size,v=y.onTap,Q=y.disabled,M=y.tooltipText;return _.F("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.F(_.j8,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:u(),disabled:Q(),tooltipText:M(),onTap:v}},
iconName:R.iconType}))},"kf"),D1Z=_.Jd(function(R){function y(T){T.stopPropagation();
T.code==="ArrowUp"?(T.preventDefault(),ig8(h.value)):T.code==="ArrowDown"?(T.preventDefault(),KwP(h.value)):T.code==="KeyM"?JPT():(T.code==="KeyK"||T.code==="Space")&&VU4(b())}
var u=_.jb(R,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});R=u.previousButtonDisabled;var v=u.nextButtonDisabled,Q=u.data,M=u.playabilityStatus,K=u.previewThumbnail,h=_.sh("ytd-shorts-miniplayer-overlay"),b=_.Sp(_.XrL),N;_.nG(function(){(N=_.kh(h.value))&&N.addEventListener("keydown",y)});
_.GF(function(){var T;(T=N)==null||T.removeEventListener("keydown",y)});
u=function(){var T,x,B;return(T=Q())==null?void 0:(x=T.reelPlayerOverlayRenderer)==null?void 0:(B=x.likeButton)==null?void 0:B.likeButtonRenderer};
return _.F("ytd-shorts-miniplayer-overlay",{el:h,class:"ytdShortsMiniplayerOverlayHost"},_.F("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.P_({"background-image":function(){var T=K();return T?'url("'+_.Fj(T.thumbnails)+'")':""}})}),_.F("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.F("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.F(ASJ,{iconType:function(){var T=b();
return T===2||T===-1||T===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){VU4(b())},
tooltipText:function(){var T=b();return T===1||T===3?_.fo("PLAYER_LABEL_PAUSE"):_.fo("PLAYER_LABEL_PLAY")}}),_.F(_.U1V,{orientation:"horizontal_right"})),_.F("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.F(ASJ,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:R,onTap:function(){ig8(h.value)},
tooltipText:_.fo("PREVIOUS_VIDEO_LABEL")}),_.F(ASJ,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:v,onTap:function(){KwP(h.value)},
tooltipText:_.fo("NEXT_VIDEO_LABEL")}),_.f("web_shorts_pip_like_button")?_.F("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.F(g_5,{buttonTooltipPosition:"left",data:u,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.F("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.F(_.w,{cond:function(){var T,x;return _.e((T=Q())==null?void 0:(x=T.reelPlayerOverlayRenderer)==null?void 0:x.metapanel,
_.EWK)},
then:function(T){return _.F("div",{class:_.Oy("ytdShortsMiniplayerOverlayInteractive")},_.F(_.m1K,{data:T}))}})),_.F("div",{class:_.Oy("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var T;return!((T=Q())==null||!T.adsOverlay)||M()&&!vVS(M())}},_.F("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.F(_.d1M,null)))),_.F(_.w,{cond:function(){var T=Q(),x,B;
T=_.e(T==null?void 0:(x=T.adsOverlay)==null?void 0:(B=x.fulfillmentContent)==null?void 0:B.fulfilledLayout,y8i);return _.e(T==null?void 0:T.renderingContent,Mw5)},
then:function(T){return _.F("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.F(Sg8,{data:T}))}}))},"lf");var IvU=_.Jd(function(){var R=_.V(_.In(new _.or(NaN,NaN),void 0,"HSMFk")),y=R.next().value,u=R.next().value;R=_.V(_.In(!1,void 0,"uaAxwf"));var v=R.next().value,Q=R.next().value,M=_.V(_.In(!1,void 0,"nVSwef"));R=M.next().value;var K=M.next().value,h=_.ua().resolve(_.cZ).miniplayerPropSignalMap[0],b=h.data,N=h.shortsData,T=h.nextButtonDisabled,x=h.shortsPreviewThumbnail,B=h.previousButtonDisabled,l=h.externalPlaylistData;M=h.toastData;var Z=h.playabilityStatus,P=h.isDisabled,k=h.playerVe,E=h.closeVe;
h=_.Sp(_.B2);_.Li("yt-pip-window-resized",function(a){u(a)});
_.Li("yt-activate-pip-miniplayer",function(){return _.I(function(a){K(!0);_.f$(a)})});
var D=function(){var a;return!((a=l())==null||!a.contents)&&v()},z=function(){var a=y(),L=!!b(),QG=D();
a=a.clone();L&&(a.height-=76);QG&&(a.height-=285);return a},c=function(){Q(!v())};
_.ny(function(){var a=k(),L=_.$I(11),QG=_.Ef(11);L&&QG&&a&&(_.ak(L,QG,a),QG=E())&&(_.Si(L,a,[QG]),_.Lo(L,[QG]))},"HPkp0c");
return _.F("ytd-pip-container",{class:"ytdPipContainerHost"},_.F(_.w,{cond:R,then:function(){return _.F(_.Yra,{isDisabled:P,playabilityStatus:Z,size:z})}}),_.F(_.w,{cond:b,
then:function(){return _.F(_.atZ,{data:b,expanded:v,onExpandClick:c,playlistData:l})}}),_.F(_.w,{cond:D,
then:function(){return _.F("div",{class:"ytdPipContainerPlaylistPanel"},_.F(_.sBT,{data:l,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.F(_.w,{cond:h,
then:function(){return _.F(D1Z,{data:N,nextButtonDisabled:T,previousButtonDisabled:B,playabilityStatus:Z,previewThumbnail:x})}}),_.F("div",{class:"ytdPipContainerToast"},_.F(_.L_V,{toastData:M})))},"mf");var tV=function(R,y){var u=this;this.pipController=R;this.JSC$18579_clientRoot=y;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=lkS();this.watchPipEnabled=_.f("web_watch_pip");this.shortsPipEnabled=_.f("web_shorts_pip");this.JSC$18579_watchWhileEnabled=_.f("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;_.GD(_.Qe(),_.kDU,function(v){u.isSingleOptionSurveyActive=v});
this.JSC$18579_onPlayerPlayVideo=this.JSC$18579_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);_.aN(_.c3.getInstance(),this.miniplayerServiceActionMap,this.JSC$18579_clientRoot);R.pictureInPictureSupported()&&_.P3("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},ekY,ghH,Y6M,CvJ,RpK,rBg;
tV.prototype.handleMediaSessionPipActivation=function(){var R=this,y;return _.I(function(u){_.Hr().mediaSessionPipActivation=!0;y=_.ua().resolve(_.iD);return y.isOnWatch()&&R.watchPipEnabled?(_.Hr().watchPipActivation=!0,_.psa(R,y.data),u.jumpTo(0)):y.isOnShorts()&&R.shortsPipEnabled?(_.Hr().shortsPipActivation=!0,_.tQI(R),u.jumpTo(0)):R.isMiniplayerActive()&&R.watchPipEnabled&&!R.watchWhileMode?u.yield(cSM(R),0):u.jumpTo(0)})};
var cSM=function(R){var y,u,v,Q;return _.I(function(M){if(M.nextAddress==1)return y=!R.miniplayerToPipMode,u=R.playerElement,v=R.miniplayerData,Q=R.watchResponse,M.yield(R.deactivate(),2);if(M.nextAddress!=3)return y?(_.Hr().mediaSessionPipActivation=!0,_.Hr().watchPipActivation=!0):_.Hr().miniplayerButtonActivation=!0,M.yield(R.activate(u,v,Q),3);R.miniplayerToPipMode=y;_.f$(M)})};
tV.prototype.onDownloadedVideoDeleted=function(R){var y,u=_.e((y=this.miniplayerData)==null?void 0:y.watchEndpoint,_.zM),v,Q;u&&((v=this.watchResponse)==null?void 0:(Q=v.playerResponse)==null?void 0:Q.offlineState)!==void 0&&(y=u.videoId)&&R&&y===R&&this.close()};
tV.prototype.onShowMiniplayerCommand=function(R){var y=this,u,v,Q,M,K,h,b,N,T,x,B,l,Z;return _.I(function(P){switch(P.nextAddress){case 1:return u=_.e(R,Zj5),Q=(v=u)==null?void 0:v.miniplayerCommand,M=_.e(Q,_.zM),Q&&M&&!y.active?P.yield(_.ET.getInstance(),2):P.return();case 2:return K=P.yieldResult,P.yield((h=K)==null?void 0:h.get("yt-miniplayer-shown-video-id"),3);case 3:b=P.yieldResult;N=M.videoId;if(!N||b===N)return P.return();T=_.ua().resolve(_.iD);if(T.isOnWatch())return _.kT(Error("Fj")),P.return();
x={channelItem:{externalId:btoa(N)}};y.readyToResumeVe=_.$6(121253,void 0,void 0,x);_.Hr().showMiniplayerCommandActivation=!0;return P.yield(_.PPw(y,Q,!0),4);case 4:return y.active?(_.cX(y,{readyToResumeVe:y.readyToResumeVe,continueWatching:!0,premiumBranding:!((B=u)==null||!B.showPremiumBranding)}),_.f("ytd_miniplayer_to_wiz")&&_.cX(y,{isReadyToResume:!0}),y.isReadyToResume=!0):_.cX(y,{continueWatching:!0,premiumBranding:!((l=u)==null||!l.showPremiumBranding)}),P.yield((Z=K)==null?void 0:Z.set("yt-miniplayer-shown-video-id",
M.videoId),5);case 5:y.readyToResumeVe=void 0,_.f$(P)}})};
tV.prototype.init=function(R){this.miniplayerEl?_.kT(new _.OL("MiniplayerService already initialized.")):this.miniplayerEl=R};
tV.prototype.isInitialized=function(){var R=!!this.miniplayerEl;R||_.kT(new _.OL("MiniplayerService used before initialized."));return R};
_.psa=function(R,y){if(R.isInitialized()){var u=_.HaO(y.response,y.playerResponse),v=_.ua().resolve(_.iD).getPlayerFromWatch();_.Hr().currentEndpoint=u.watchEndpoint||null;R.activate(v,u,y)}};
_.tQI=function(R){if(R.isInitialized()){var y=_.ua().resolve(_.iD).getPlayerFromShorts();R.activate(y)}};
ekY=function(R,y){var u;(u=!R.isInitialized())||(u=_.ua().resolve(_.iD).isOnWatch()&&R.watchPipMode,u=!(R.isMiniplayerActive()&&(_.Hr().userActivation||_.Hr().lockupActivation||u)));if(u)return!1;ai7(R,y)?_.AV(R):rBg(R,y);return R.watchPipMode?!_.ua().resolve(_.iD).isOnWatch():!0};
tV.prototype.isMiniplayerActive=function(){return this.active};
var ai7=function(R,y){var u;y=(u=_.e(y,_.zM))==null?void 0:u.videoId;var v,Q;R=(Q=_.e((v=R.miniplayerData)==null?void 0:v.watchEndpoint,_.zM))==null?void 0:Q.videoId;return y!=null&&y===R};
tV.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.Ko(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.Ik(this.miniplayerEl,"yt-navigate-home-action"))};
_.PPw=function(R,y,u,v){u=u===void 0?!1:u;var Q,M,K;return _.I(function(h){switch(h.nextAddress){case 1:if(R.active){h.jumpTo(2);break}Q=_.ua().resolve(_.iD);if(K=(M=R.playerElement)!=null?M:Q.getPlayerFromWatch()){h.jumpTo(3);break}return h.yield(_.ua().resolve(_.Np),4);case 4:K=Q.getPlayerFromWatch();case 3:if(!K){_.kT(Error("Hj"));h.jumpTo(2);break}return h.yield(R.activate(K,v),2);case 2:return R.active?h.yield(rBg(R,y,u),0):h.return()}})};
tV.prototype.activate=function(R,y,u){var v=this,Q,M,K,h,b,N,T,x,B;return _.I(function(l){switch(l.nextAddress){case 1:if(!v.isInitialized())return l.return();if(!R)return _.kT(Error("Hj")),l.return();if(_.kZc()||v.isMiniplayerActive())var Z=!0;else Z=_.Hr().watchPipActivation||_.Hr().watchWhileActivation,_.ua().resolve(_.iD).isOnWatch()&&!Z?(_.kT(new _.OL("miniplayer activated on watch page")),Z=!0):Z=_.Hr().watchWhileActivation?v.userDeactivatedWatchWhile||!!document.pictureInPictureElement||q_S():
!1;if(Z)return UHc(),l.return();Q=_.Hr().mediaSessionPipActivation;M=_.Hr().shortsPipActivation;K=_.Hr().watchPipActivation;b=(h=_.Hr().watchWhileActivation)||K;N=K||M;if(!v.pictureInPictureEnabled()||!N){l.jumpTo(2);break}return l.yield(S6K(v,Q),3);case 3:if(!l.yieldResult)return _.kT(Error("Gj")),UHc(),l.return();case 2:return v.setActive(!0),v.watchResponse=u,v.playerElement=R,v.updateMiniplayerData(y),l.yield(Y6M(v,R),4);case 4:if(!v.active)return _.kT(new _.OL("miniplayer deactivated during activation")),
v.removePlayerListeners(),l.return();Z=_.ua().resolve(_.S2);Z.addEventListener("yt-navigate",_.BN(v,v.onPlaylistNavigate));Z.addEventListener("yt-playlist-data-updated",_.BN(v,v.JSC$18579_onPlaylistDataUpdated));v.JSC$18579_onPlaylistDataUpdated();UHc();v.JSC$18579_watchWhileEnabled&&_.Lv7(v,h);v.pictureInPictureEnabled()&&v.shortsPipEnabled&&(v.shortsPipMode=M,_.Qe().dispatch(xoV(v.shortsPipMode)));v.pictureInPictureEnabled()&&v.watchPipEnabled&&(v.watchPipMode=K,_.mNE(v.handleMediaSessionPipActivation));
v.player&&(T=v.player.getPlayerState(),x=T===1,_.Qe().dispatch(nQi(T)),_.h_(v.miniplayerEl,"yt-miniplayer-play-state-changed",[x]),_.Hr().isVideoPlaying=x);_.h_(v.miniplayerEl,"yt-miniplayer-endpoint-changed");srM(v);_.zSM(v);return v.shortsPipMode||v.watchPipMode?l.yield(_.bh(v.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.f("ytd_miniplayer_to_wiz")?l.yield(_.bh(v.miniplayerEl,"yt-activate-miniplayer",[b]),6):l.yield(_.bh(v.miniplayerEl,"yt-activate-miniplayer-action",[R,b]),6);case 6:if(v.watchResponse&&
!_.f("miniplayer_copy_screen_on_activation_killswitch")){Z=v.getScreenLayer();var P=_.$I(0),k=T1W(0);P&&k&&(_.Xc(P,k,Z),Z===0&&wtT(void 0,0))}ghH(v);CvJ(v,!0);(B=v.getPlayerElement())==null||B.focusOnPlayer();_.f$(l)}})};
tV.prototype.updateMiniplayerData=function(R){this.miniplayerData=R;_.cX(this,{data:R})};
_.zSM=function(R){var y,u,v=((y=R.miniplayerData)==null?void 0:(u=y.miniplayerRenderer)==null?void 0:u.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";y=R.watchWhileMode||R.watchPipMode?v&&!_.ua().resolve(_.iD).isOnWatch():v;_.cX(R,{isDisabled:y});var Q,M;u=_.e((Q=R.miniplayerData)==null?void 0:(M=Q.miniplayerRenderer)==null?void 0:M.minimizedEndpoint,_.kW);y&&u&&_.ua().resolve(_.UM).openSheet({openPopupActionCommand:{openPopupAction:u}},R.miniplayerEl)};
ghH=function(R){if(R.watchResponse&&!RpK(R)){var y,u=(y=R.watchResponse.playerResponse)==null?void 0:y.trackingParams;u&&(_.cX(R,{expandVe:_.$6(35989),closeVe:_.$6(34699),readyToResumeCloseVe:_.$6(131070),repositionVe:_.$6(226204),resizeVe:_.$6(226205)}),_.cX(R,{playerVe:_.U4(u)}))}};
Y6M=function(R,y){return _.I(function(u){if(u.nextAddress==1)return y.preparePlayer(),u.yield(y.getPlayerPromise(),2);R.player=u.yieldResult;R.player&&(R.player.addEventListener("onPlayVideo",R.JSC$18579_onPlayerPlayVideo),R.player.addEventListener("onCloseMiniplayer",R.onPlayerCloseMiniplayer),R.player.addEventListener("onExpandMiniplayer",R.onPlayerExpandMiniplayer),R.player.addEventListener("onStateChange",R.onPlayerStateChange));_.f$(u)})};
_.J=tV.prototype;_.J.JSC$18579_onPlayerPlayVideo=function(R){var y=R.sessionData&&"autonav"in R.sessionData,u;R.sessionData&&R.sessionData.itct&&(u=R.sessionData.itct);var v=R.watchEndpoint;y=v&&y?_.sIT(v,u):_.j6(R.videoId,R.listId||void 0,u);R.sessionData&&_.uh(_.e(y.commandMetadata,_.QL).url,R.sessionData);rBg(this,y)};
_.J.onPlayerExpandMiniplayer=function(){_.AV(this)};
_.J.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.J.onPlayerStateChange=function(){if(this.player){var R=this.player.getPlayerState(),y=R===1;_.Qe().dispatch(nQi(R));_.Qe().dispatch(_.P2Y(R));_.h_(this.miniplayerEl,"yt-miniplayer-play-state-changed",[y]);_.Hr().isVideoPlaying=y;if(R===0){y=!_.Js.getInstance().isAutoplaySetExplicitly();var u,v,Q,M,K,h,b=(u=this.watchResponse.response)==null?void 0:(v=u.contents)==null?void 0:(Q=v.twoColumnWatchNextResults)==null?void 0:(M=Q.autoplay)==null?void 0:(K=M.autoplay)==null?void 0:(h=K.autoplayExplicitChoiceDialogRenderer)==
null?void 0:h.confirmDialogRenderer;y&&b&&this.player.setAutonavState(1)}R===0&&this.watchWhileMode&&this.deactivate()}};
_.J.onPlaylistNavigate=function(R,y){var u=this,v,Q,M,K,h,b,N;return _.I(function(T){if(T.nextAddress==1){if(!_.e(y.endpoint,_.zM))return T.return();_.Hr().currentEndpoint=y.endpoint;_.h_(u.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.ua().resolve(_.iD).isOnWatch()&&(u.watchWhileMode||u.watchPipMode))return T.return();R.stopPropagation();(M=(Q=_.e((v=y.endpoint)==null?void 0:v.commandMetadata,_.QL))==null?void 0:Q.url)&&y.tempData&&!_.Ps.isEmpty(y.tempData)&&_.uh(M,y.tempData);K={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};h=new dMY(function(){return u.getPlayerElement()},K,{layer:u.getScreenLayer()});
b=function(x){h.processChunk({endpoint:y.endpoint,data:x})};
yDZ(u);u.miniplayerFetchRequest=uv7(u,y.endpoint,b);_.wY(T,2);return T.yield(u.miniplayerFetchRequest,4)}if(T.nextAddress!=2)return N=T.yieldResult,v7K(u,N),_.c5(T,0);_.B$(T);_.f$(T)})};
_.J.JSC$18579_onPlaylistDataUpdated=function(){var R=_.ua().resolve(_.S2).getPlaylistData();this.hasPlaylistData=!!R;_.cX(this,{externalPlaylistData:R||{}})};
_.J.close=function(R){if(this.isInitialized())if(R){if(!((this.watchWhileMode||this.watchPipMode)&&_.ua().resolve(_.iD).isOnWatch()||this.shortsPipMode)){var y;(y=this.getPlayerElement())==null||y.stop()}this.deactivate()}else _.gQ().closeMiniplayer(this.miniplayerEl)};
_.J.deactivate=function(R){var y=this,u,v,Q,M;return _.I(function(K){if(K.nextAddress==1){if(!y.isInitialized()||!y.active)return K.return();y.setActive(!1);yDZ(y);(u=!!R&&ai7(y,R))&&y.isSingleOptionSurveyActive&&_.Ik(y.miniplayerEl,"yt-show-watch-page-survey",[y.isSingleOptionSurveyActive]);return K.yield(Q_o(y),2)}if(K.nextAddress!=3){CvJ(y,!1);y.isReadyToResume=!1;y.watchResponse=void 0;y.updateMiniplayerData(void 0);y.shortsPipMode&&(y.shortsPipMode=!1,_.Qe().dispatch(xoV(y.shortsPipMode)),TaJ(y.pipController),
(v=y.player)==null||v.setInternalSize(NaN,NaN));y.watchPipMode&&(y.watchPipMode=!1,TaJ(y.pipController));(Q=y.watchWhileMode)&&_.Lv7(y,!1);y.removePlayerListeners();var h=_.ua().resolve(_.S2);h.removeEventListener("yt-navigate",_.BN(y,y.onPlaylistNavigate));h.removeEventListener("yt-playlist-data-updated",_.BN(y,y.JSC$18579_onPlaylistDataUpdated));_.Hr().currentEndpoint=null;_.h_(y.miniplayerEl,"yt-miniplayer-endpoint-changed");y.playerElement=null;UHc();return y.shortsPipMode||y.watchPipMode?K.jumpTo(3):
K.yield(_.bh(y.miniplayerEl,_.f("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[u,Q]),3)}(M=y.player)==null||M.setInternalSize(NaN,NaN);y.player=null;_.f$(K)})};
var Q_o=function(R){var y;return _.I(function(u){y=_.ua().resolve(_.iD);return R.shortsPipMode?u.yield(y.movePlayerToShorts(R.playerElement),0):u.yield(y.movePlayerToWatch(R.playerElement),0)})};
tV.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18579_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
tV.prototype.setActive=function(R){this.active=R;this.isSingleOptionSurveyActive?_.Ik(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.Ik(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.Qe().dispatch(_.iE({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.Lv7=function(R,y){R.watchWhileMode=y;_.cX(R,{watchWhile:y})};
CvJ=function(R,y){if(!RpK(R))if(R.shortsPipMode||R.watchPipMode){var u;(u=R.player)==null||u.setDocumentPictureInPicture(y)}else{var v;(v=R.player)==null||v.setMinimized(y)}};
RpK=function(R){return R.watchWhileMode&&_.f("kevlar_watch_while_counterfactual")};
_.AV=function(R){var y;return _.I(function(u){switch(u.nextAddress){case 1:if(!R.isInitialized())return u.return();_.wY(u,2);return u.yield(R.miniplayerFetchRequest,4);case 4:_.c5(u,3);break;case 2:_.B$(u);case 3:R.watchResponse&&R.miniplayerData&&R.miniplayerData.watchEndpoint?(y={url:R.watchResponse.url,endpoint:R.miniplayerData.watchEndpoint,data:R.watchResponse,miniplayer:!0},_.Ko(R.miniplayerEl,"yt-navigate-cache",y)):R.miniplayerData&&R.miniplayerData.watchEndpoint&&_.Ko(R.miniplayerEl,"yt-navigate",
{endpoint:R.miniplayerData.watchEndpoint}),_.f$(u)}})};
rBg=function(R,y,u){var v,Q,M,K;return _.I(function(h){if(h.nextAddress==1){if(ai7(R,y))return h.return();_.Hr().currentEndpoint=y;_.h_(R.miniplayerEl,"yt-miniplayer-endpoint-changed");_.h_(R.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.Hr().isVideoPlaying=!1;v={clientParams:{miniplayer:!0,autoSaveToQueue:!u}};Q=new dMY(function(){return R.getPlayerElement()},v,{layer:R.getScreenLayer(),
parentLayer:0},void 0,R.readyToResumeVe);M=function(b){var N,T,x=Object.assign({},(N=b.playerResponse)==null?void 0:(T=N.playerConfig)==null?void 0:T.playbackStartConfig,{startPaused:!0}),B;u&&((B=b.playerResponse)==null?0:B.playerConfig)&&(b.playerResponse.playerConfig.playbackStartConfig=x);Q.processChunk({endpoint:y,data:b})};
yDZ(R);R.miniplayerFetchRequest=uv7(R,y,M);_.wY(h,2);return h.yield(R.miniplayerFetchRequest,4)}if(h.nextAddress!=2)return K=h.yieldResult,v7K(R,K),_.c5(h,0);_.B$(h);_.f$(h)})};
tV.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var yDZ=function(R){R.miniplayerFetchRequest&&(R.miniplayerFetchRequest.cancel&&R.miniplayerFetchRequest.cancel("Active request obsolete"),R.miniplayerFetchRequest=null)},uv7=function(R,y,u){var v=_.P1.instance,Q,M=(Q=_.e(y.commandMetadata,_.QL))==null?void 0:Q.url,K;
Q=!M||_.f("disable_miniplayer_tempdata")?{}:(K=vuT(M))!=null?K:{};return Yl(v,y,Q,window.location.href,"watch",function(h,b){u(b)},function(h){return h!==R.miniplayerFetchRequest})},v7K=function(R,y){var u;
_.I(function(v){if(!y)return v.return();R.watchResponse=y;ghH(R);srM(R);u=_.HaO(y.response,y.playerResponse);if(R.isMiniplayerActive()){y.response&&(R.playerElement.watchNextData=y.response);var Q=_.Ps.getValueByKeys.apply(_.Ps,[y].concat(_.P$(pxG)));_.Ps.getValueByKeys.apply(_.Ps,[y].concat(_.P$(Yu5)))&&Q&&_.ua().resolve(_.S2).setAutoplayRenderer(Q);if(Q)if(_.f("kevlar_is_pupi_enabled")){var M,K,h,b,N,T=((M=y.response)==null?0:(K=M.playerOverlays)==null?0:(h=K.playerOverlayRenderer)==null?0:(b=h.autonavToggle)==
null?0:(N=b.autoplaySwitchButtonRenderer)==null?0:N.enabled)?2:1;_.Js.getInstance().setState(T,!1,!1)}else M=T5G()?2:1,(T=R.player)==null||T.setAutonavState(M);R.updateMiniplayerData(u);_.zSM(R)}_.f$(v)})},srM=function(R){var y,u,v=(y=R.watchResponse)==null?void 0:(u=y.playerResponse)==null?void 0:u.playabilityStatus,Q;
y=v==null?void 0:(Q=v.miniplayer)==null?void 0:Q.miniplayerRenderer;(y==null?void 0:y.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&y.minimizedEndpoint&&_.Fh(R.miniplayerEl,[y.minimizedEndpoint]);_.cX(R,{miniplayerRenderer:y,playabilityStatus:v})};
tV.prototype.openToast=function(R,y){_.cX(this,{toastData:{data:R,label:y}})};
_.cX=function(R,y){var u=R.miniplayerEl,v;for(v in y)u[v]=y[v];(0,R.miniplayerPropSignalMap[1])(y)};
tV.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var R;return this.playerElement?this.playerElement:(R=_.hw(this.miniplayerEl).querySelector("#player-container"))==null?void 0:R.firstElementChild};
tV.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var S6K=function(R,y){y=y===void 0?!1:y;var u,v,Q,M,K,h,b;return _.I(function(N){if(N.nextAddress==1){u=navigator.userActivation.isActive||y;if(!u||!R.pictureInPictureSupported())return N.return(!1);v=j_K(R);Q=v.width;M=v.height;return N.yield(R.pipController.openWindow({width:Q,height:M}),2)}K=N.yieldResult;h=R.pipController.getWindow();if(!h||!K)return N.return(!1);h.document.body.style.overflow="hidden";b=hfL(h);oMp(R.pipController,function(){MZo(R);b()});
return N.return(!0)})},j_K=function(R){var y=_.Hr().shortsPipActivation,u,v;
R=y?.5625:(v=(u=R.player)==null?void 0:u.getVideoAspectRatio())!=null?v:16/9;u=Math.min(window.innerWidth,window.innerHeight)/2;y=y?0:76;return R>1?new _.or(u,y+u/R):new _.or(u*R,y+u)},MZo=function(R){var y;
_.I(function(u){y=_.ua().resolve(_.iD);return y.isOnWatch()&&R.watchPipMode||y.isOnShorts()&&R.shortsPipMode?u.yield(R.deactivate(),0):R.miniplayerToPipMode?u.yield(cSM(R),0):R.watchPipMode?u.yield(_.AV(R),0):u.jumpTo(0)})};
tV.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.RR.Object.defineProperties(tV.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
tV[Mn]=[xVI,xFT];var JDK="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(" "),
VZI="add_circle alert_bubble audio bag bell clapperboard clock copy creator_studio_red_logo download download fashion flag gaming gear help_circle history home lightbulb live menu mic news offline_no_content overflow_horizontal overflow_vertical play_square_stack playlist podcast search subscriptions thumb_up trash_can trending trophy unplugged_logo video video_camera_add x youtube_kids_round youtube_music youtube_round youtube_shorts yt-logo-updated".split(" "),iFK="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
KaM="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var I0K=null;var hpg={},bF8=(hpg.initialized={priority:10,callback:function(R){var y=_.ua();y.addProvider({provide:Bh5,useClass:BCo});y.addProvider({provide:_.xyP,useFactory:function(){return new fKG}});
y.addProvider({provide:mC,useValue:_.EB("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});y.addProvider({provide:eTp,useValue:5184E6});y.addProvider({provide:tvI,useValue:_.EJ()});y.addProvider({provide:CTm,useClass:Nl5});y.addProvider({provide:su,useClass:su});y.addProvider({provide:_.Np,useFactory:function(){return Bb5.promise}});
y.addProvider({provide:_.ewY,useFactory:function(){return _.f8b.promise}});
y.addProvider({provide:SGc,useValue:function(){var b;return((b=_.I8())==null?void 0:b.getPlayer())||null}});
var u={};y.addProvider((u.provide=_.ig,u.useFactory=function(b,N){return function(){return e0L(b,N)}},u[Mn]=[mC,
eTp],u));u={};y.addProvider((u.provide=_.N$,u.useClass=wK8,u[Mn]=[mC,eTp],u));u={};y.addProvider((u.provide=_.Grc,u.useClass=xG8,u[Mn]=[_.N$],u));y.addProvider({provide:Pp,useFactory:_.Qe});y.addProvider({provide:he,useFactory:_.Qe});y.addProvider({provide:QPg,useFactory:_.Qe});y.addProvider({provide:QdV,useFactory:_.Qe});y.addProvider({provide:_.S5,useFactory:_.Qe});y.addProvider({provide:lL,useValue:_.Bd});y.addProvider({provide:FKP,useClass:TwU});y.addProvider({provide:CnG,useClass:gm8});y.addProvider({provide:L3,
useClass:L3});y.addProvider({provide:Ox,useClass:Ox});y.addProvider({provide:Z5,useClass:Z5});y.addProvider({provide:nl,useClass:nl});y.addProvider({provide:ug,useClass:ug});y.addProvider({provide:PL,useClass:PL});y.addProvider({provide:lR,useClass:lR});y.addProvider({provide:Qbm,useValue:$Pa});y.addProvider({provide:_.Ej,useFactory:_.GN});y.addProvider({provide:N3,useFactory:_.O9});u={};y.addProvider((u.provide=hGP,u.useFactory=function(b){return function(N){var T=T===void 0?{}:T;var x,B,l=(B=_.e((x=
N.endpoint)==null?void 0:x.commandMetadata,_.QL))==null?void 0:B.rootVe;if(l){var Z,P;if(x=N.previousCsn||((P=_.e((Z=N.endpoint)==null?void 0:Z.commandMetadata,ysT))==null?void 0:P.parentCsn)){var k=k===void 0?{}:k;if(x!==_.$I(k.layer)||l!==T1W(k.layer))esG(x,k.cttAuthInfo,k.layer||0),wtT(x,k.layer||0),Z=k.layer||0,_.kB(N1T(Z===void 0?0:Z),l);T.parentCsn=x}N.endpoint&&x?oOT(b,N.endpoint,T):_.om(b,l,void 0,T);var E;((E=N.response)==null?0:E.trackingParams)&&b.graftServerVe(N.response.trackingParams);
var D;((D=N.playerResponse)==null?0:D.trackingParams)&&b.graftServerVe(N.playerResponse.trackingParams);var z;((z=N.reelWatchSequenceResponse)==null?0:z.trackingParams)&&b.graftServerVe(N.reelWatchSequenceResponse.trackingParams)}}},u[Mn]=[_.Ej],u));
u={};y.addProvider((u.provide=MK8,u.useClass=jPP,u[Mn]=[lL,_.S5],u));u={};y.addProvider((u.provide=BX,u.useClass=BX,u[Mn]=[_.Np,_.S5],u));u={};y.addProvider((u.provide=Nm,u.useClass=Nm,u[Mn]=[he,_.jX],u));y.addProvider({provide:_.h7M,useClass:foI});u={};y.addProvider((u.provide=_.d0,u.useClass=wHP,u[Mn]=[_.h7M],u));y.addProvider({provide:_.UM,useClass:lg});y.addProvider({provide:_.qPV,useClass:ur8});y.addProvider({provide:_.kx,useClass:fq});u={};y.addProvider((u.provide=_.ho,u.useClass=BaV,u[Mn]=
[_.ho],u));y.addProvider({provide:_.TU,useClass:aDg});y.addProvider({provide:E5,useClass:E5});y.addProvider({provide:uF,useClass:uF});y.addProvider({provide:Dh,useClass:Dh});u={};y.addProvider((u.provide=eM,u.useClass=eM,u[Mn]=[_.jX,_.Dj],u));y.addProvider({provide:s5,useClass:eD});u={};y.addProvider((u.provide=C4,u.useClass=C4,u[Mn]=[_.UM,s5],u));_.f("web_enable_feedback_endpoint_resolver")&&(u={},y.addProvider((u.provide=Wp,u.useClass=Wp,u[Mn]=[Pp,rd],u)),y.addProvider({provide:rd,useClass:wW8}));
_.f("web_enable_feedback_endpoint_resolver_batch_2")&&(u={},y.addProvider((u.provide=U5,u.useClass=U5,u[Mn]=[Pp],u)),u={},y.addProvider((u.provide=dd,u.useClass=dd,u[Mn]=[rd],u)));u={};y.addProvider((u.provide=zj,u.useClass=zj,u[Mn]=[_.kx,s5],u));u={};y.addProvider((u.provide=a7,u.useClass=a7,u[Mn]=[_.kx],u));u={};y.addProvider((u.provide=gd,u.useClass=gd,u[Mn]=[_.Dj,_.d0],u));u={};y.addProvider((u.provide=L4,u.useClass=L4,u[Mn]=[_.Dj,_.Ej],u));y.addProvider({provide:e$,useClass:e$});u={};y.addProvider((u.provide=
wP,u.useClass=wP,u[Mn]=[Pp],u));y.addProvider({provide:$f,useClass:$f});y.addProvider({provide:Ed,useClass:Ed});u={};y.addProvider((u.provide=X$,u.useClass=X$,u[Mn]=[Pp],u));u={};y.addProvider((u.provide=mY,u.useClass=mY,u[Mn]=[_.Dj,Pp],u));u={};y.addProvider((u.provide=Ao,u.useClass=Ao,u[Mn]=[Pp],u));u={};y.addProvider((u.provide=DB,u.useClass=DB,u[Mn]=[Pp],u));u={};y.addProvider((u.provide=SM,u.useClass=SM,u[Mn]=[_.d0],u));u={};y.addProvider((u.provide=nd,u.useClass=nd,u[Mn]=[_.Ej],u));u={};y.addProvider((u.provide=
Ud,u.useClass=Ud,u[Mn]=[BI],u));u={};y.addProvider((u.provide=kf,u.useClass=kf,u[Mn]=[BI],u));y.addProvider({provide:PI,useClass:PI});y.addProvider({provide:WI,useClass:WI});y.addProvider({provide:HI,useClass:HI});u={};y.addProvider((u.provide=R6,u.useClass=R6,u[Mn]=[_.d0,_.jX],u));y.addProvider({provide:X_,useClass:X_});u={};y.addProvider((u.provide=Ye,u.useClass=Ye,u[Mn]=[_.Dj,_.d0],u));y.addProvider({provide:p4,useClass:p4});u={};y.addProvider((u.provide=bF,u.useClass=bF,u[Mn]=[Pp,_.Dj,_.ho],u));
u={};y.addProvider((u.provide=Kd,u.useClass=Kd,u[Mn]=[_.Dj,_.jX],u));y.addProvider({provide:MTT,useValue:$2z});y.addProvider({provide:Ipb,useValue:j6O});y.addProvider({provide:I6,useClass:I6});u={};y.addProvider((u.provide=iF,u.useClass=iF,u[Mn]=[Pp],u));u={};y.addProvider((u.provide=F$,u.useClass=F$,u[Mn]=[_.TU,_.jX],u));u={};y.addProvider((u.provide=ke,u.useClass=ke,u[Mn]=[_.jX],u));y.addProvider({provide:Gj,useFactory:function(){return new Gj(_.Qe())}});
y.addProvider({provide:dIO,useFactory:_.Xb.getInstance});u={};y.addProvider((u.provide=Am,u.useClass=Am,u[Mn]=[mC,dIO,_.jX],u));y.addProvider({provide:$e,useClass:$e});y.addProvider({provide:lf,useClass:lf});y.addProvider({provide:Zh,useClass:Zh});y.addProvider({provide:_.O5,useClass:_.O5});y.addProvider({provide:cI,useClass:cI});u={};y.addProvider((u.provide=M3,u.useClass=M3,u[Mn]=[he],u));u={};y.addProvider((u.provide=Jo,u.useClass=Jo,u[Mn]=[_.jX],u));_.f("web_enable_prefetching_videos_on_home")&&
(y.addProvider({provide:wS,useClass:wS}),y.addProvider({provide:EG,useClass:EG}));u={};y.addProvider((u.provide=to,u.useClass=to,u[Mn]=[_.jX],u));y.addProvider({provide:Hp,useClass:Hp});u={};y.addProvider((u.provide=lF,u.useClass=lF,u[Mn]=[_.Dj,_.jX],u));u={};y.addProvider((u.provide=n4,u.useClass=n4,u[Mn]=[_.jX],u));y.addProvider({provide:$g,useClass:$g});y.addProvider({provide:QP,useClass:QP});u={};y.addProvider((u.provide=vI,u.useClass=vI,u[Mn]=[he,_.jX],u));u={};y.addProvider((u.provide=Yf,u.useClass=
Yf,u[Mn]=[he,_.jX,_.Dj],u));u={};y.addProvider((u.provide=Ld,u.useClass=Ld,u[Mn]=[_.jX],u));u={};y.addProvider((u.provide=S$,u.useClass=S$,u[Mn]=[_.jX,_.Dj],u));u={};y.addProvider((u.provide=VP,u.useClass=VP,u[Mn]=[_.Np],u));u={};y.addProvider((u.provide=j$,u.useClass=j$,u[Mn]=[_.Np],u));y.addProvider({provide:xf,useClass:xf});y.addProvider({provide:fd,useClass:fd});y.addProvider({provide:q3,useClass:q3});y.addProvider({provide:Od,useClass:Od});y.addProvider({provide:o6,useClass:o6});y.addProvider({provide:tm,
useClass:tm});y.addProvider({provide:T_,useClass:T_});_.f("kevlar_enable_mss_lazy_load")&&y.addProvider({provide:_.SV,useClass:vLg});y.addProvider({provide:_.GL,useClass:ZG});y.addProvider({provide:Mi,useFactory:function(){return _.c3.getInstance()}});
y.addProvider({provide:upM,useFactory:$NG});y.addProvider({provide:BI,useFactory:function(){return _.ET.getInstance()}});
y.addProvider({provide:hwi,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});u={};y.addProvider((u.provide=_.TE,u.useClass=_.TE,u[Mn]=[_.Np,_.jX,_.Ej,upM,BI,Mi,hwi,lL],u));y.addProvider({provide:_.f_,useClass:vwc});y.addProvider({provide:_.O87,useClass:lca});u={};y.addProvider((u.provide=cp,u.useClass=cp,u[Mn]=[_.O87],u));u={};y.addProvider((u.provide=_.ov,u.useFactory=function(b){return b.upliftCompletionResolver.promise},u[Mn]=[MK8],u));
u=_.$B("IS_SHELL_LOAD")?"aa":"eocs";var v=_.$B("IS_SHELL_LOAD")?3:2;_.Lx().parkOrScheduleJob(function(){VKa()},v,u);
_.Lx().parkOrScheduleJob(function(){_.ua().resolve(BX).start()},2,"eocs");
_.Lx().parkOrScheduleJob(function(){vMg()},2,"eocs");
_.Lx().parkOrScheduleJob(function(){_.ua().resolve(Nm).start()},2,"eocs");
_.f("kevlar_debug_data_app_registration_ks")||ogS();y.addProvider({provide:_.Xj,useValue:new uHc(R.root)});y.addProvider({provide:pi,useValue:new kwP});y.addProvider({provide:_.KMi,useValue:new VrV(R.root)});y.addProvider({provide:_.AU,useValue:new iMT});y.addProvider({provide:_.dv,useClass:ZN});y.addProvider({provide:xVI,useClass:OG});_.f("kevlar_network_sli_killswitch")||y.addProvider({provide:rqH,useValue:vnc});y.addProvider({provide:dS,useFactory:Z0P});_.f("web_bind_fetch")&&(u={},y.addProvider((u.provide=
wg7,u.useFactory=H0z,u[Mn]=[_.yN(dS)],u)));_.f("web_bind_parse")&&(u={},y.addProvider((u.provide=NCZ,u.useFactory=nVE,u[Mn]=[_.yN(dS)],u)));_.f("web_bind_window_request")&&(u={},y.addProvider((u.provide=TCa,u.useFactory=Gvv,u[Mn]=[_.yN(dS)],u)));_.f("web_bind_text_decoder")&&(u={},y.addProvider((u.provide=oEI,u.useFactory=rE4,u[Mn]=[_.yN(dS)],u)));u={};y.addProvider((u.provide=YP7,u.useFactory=iaE,u[Mn]=[_.ov,Pp,_.ig],u));u={};y.addProvider((u.provide=SP7,u.useClass=sd,u[Mn]=[YP7],u));y.addProvider({provide:iYH,
useClass:jbM});y.addProvider({provide:pW7,useClass:czJ});u=[].concat(_.P$(QB));_.f("web_continuation_response_processing")&&u.push(_.Lh);u.push(PWw);_.f("enable_share_panel_navigation_logging_fix_on_web")&&u.push(_.sQc);y.addProvider({provide:UaU,useValue:u});y.addProvider({provide:EoU,useClass:DUI});y.addProvider({provide:kBp,useClass:PbK});u={};y.addProvider((u.provide=Wwc,u.useClass=BtG,u[Mn]=[he],u));_.WG.addLowPriorityJob(function(){QTU()});
u={};y.addProvider((u.provide=JKc,u.useFactory=function(b){return function(N){var T,x=(T=_.e(N.commandMetadata,_.QL))==null?void 0:T.url;if(!x)throw new _.OL("No URL for PBJ Command",N);x=NrU(x,{pbj:"1"});T=kPE(x,{})||{};T=Object.assign({},T,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.EB("STS").toString()});N=_.NC({command:JSON.stringify(N),session_token:_.EB("XSRF_TOKEN")});return b.fetch(x,{method:"POST",headers:T,body:N})}},u[Mn]=[kBp],u));
u=[];u.push(y.resolve(pW7));v={};v=(v.client_location=_.Xb.getInstance(),v.consistency=_.T0v(),v.entities=y.resolve(CnG),v.response_received_commands=y.resolve(EoU),v.store=y.resolve(_.Grc),v.tokens=y.resolve(pW7),v);_.f("web_service_params_response_processor")&&(y.addProvider({provide:HKI,useFactory:function(){var b={};return b.CSI=WZT(),b.ECATCHER=PUz(),b}}),y.addProvider({provide:OgS,
useClass:nEm}),v.service_params=y.resolve(OgS));if(_.f("web_shorts_prefetch_service_enabled")){var Q=new Bga(y.resolve(_.N$));v.shorts_prefetch=Q}v.adblock_detection=y.resolve(Wwc);y.addProvider({provide:_.tv,useClass:_.tv});Q=y.resolve(Qbm);var M=[];_.f("PremiumClientSharedConfig__enable_att_context_processor")&&(y.addProvider({provide:$_c,useClass:U_T}),M.push(y.resolve($_c)));if(_.f("owl_pl_await")){var K={};y.addProvider((K.provide=VyK,K.useFactory=function(b){return new MyJ(b)},K[Mn]=[_.tv],
K));
M.push(y.resolve(VyK))}fBg(Q,y.resolve(kBp),y.resolve(FKP),v,y.resolve(_.N$),u,M,y.resolve(SP7),y.resolve(iYH));y.addProvider({provide:_.Dj,useValue:_.Ch.instance});_.f("start_client_gcf")&&y.addProvider({provide:Zz,useValue:ylL()});y.addProvider({provide:KgJ,useFactory:function(){return new KgJ(_.ua().resolve(_.tv),_.ET.getInstance())}});
_.Lx().parkOrScheduleJob(function(){Ioa()},1,"eocs");
u={};y.addProvider((u.provide=xg,u.useClass=xg,u[Mn]=[_.ig,_.Dj],u));y.addProvider({provide:_.nMm,useFactory:_.kg.getInstance});_.Lx().parkOrScheduleJob(function(){_.ua().resolve(xg).refresh()},0,"eocs");
VAV($Pa.watchEndpointMap||{},Q.reelWatchEndpointMap||{},R.injector.resolve(_.Dj));y.addProvider({provide:dX,useValue:_.P1.instance});_.f("kevlar_signal_collection_killswitch")||(u={},y.addProvider((u.provide=g8K,u.useClass=g8K,u[Mn]=[mC,N3],u)),_.Lx().parkOrScheduleJob(function(){_.ua().resolve(g8K).record()},1,"eocs"));
_.f("web_debug_handler_registration_killswitch")||_.Lx().parkOrScheduleJob(function(){NST("DOWNLOAD_PES",EbS);_.f("offline_client_state_export_ks")||NST("OFFLINE_CLIENT_STATE",dNU)},0,"eocs");
_.f("kevlar_prevent_polymer_dynamic_font_load")&&_.Lx().parkOrScheduleJob(function(){var b=[_.M1(cqJ),_.M1(a2M)];b=_.V(b);for(var N=b.next();!N.done;N=b.next()){N=N.value;var T=document.createElement("link");_.y6(T,N,"stylesheet");document.head.appendChild(T)}},1,"eocs");
u=R.injector.resolve(_.Dj);_.EmT.instance=new _.EmT(u);NzE(nm5(new k6i(u)));u={};R.injector.addProvider((u.provide=uN,u.useFactory=function(b){(b=b==null?void 0:b.getCurrentPage())?b=b.visibilityObserver:(I0K||(I0K=lNO()),b=I0K);return b},u[Mn]=[_.yN(_.iD)],u.skipCache=!0,u));
y.addProvider({provide:_.cZ,useClass:tV});y.addProvider({provide:OM,useClass:KlL});R.injector.addProvider({provide:ufc,useValue:yyT});y.addProvider({provide:cYG,useValue:dKT});y.addProvider({provide:_.u0,useValue:tRT});R=y.addProvider;rIo||(rIo=new GaK);R.call(y,{provide:_.HX,useValue:rIo});y.addProvider({provide:_.QX,useValue:_.EB("HTML_DIR")==="rtl"?"rtl":"ltr"});y.addProvider({provide:yza,useClass:hTg});y.addProvider({provide:_.eb,useClass:nq});_.ua().addProvider({provide:vSZ,useValue:_.f("enable_web_delhi_icons")?
VZI.concat(KaM):JDK.concat(iFK)});y.addProvider({provide:_.rS,useClass:_.rS});y.addProvider({provide:_.Aqo,useValue:new my7});y.addProvider({provide:Csb,useClass:swG});y.addProvider({provide:ZB,useClass:ZB});y.addProvider({provide:G_,useClass:G_});R={};y.addProvider((R.provide=yP,R.useClass=yP,R[Mn]=[_.Dj,_.d0],R));y.addProvider({provide:a6,useClass:a6});y.addProvider({provide:o_5,useClass:lo8});y.addProvider({provide:dP,useClass:dP});y.addProvider({provide:teK,useValue:GO5});y.addProvider({provide:_.Cr,
useClass:zM8});_.f("enable_payments_purchase_manager")&&y.addProvider({provide:AyK,useClass:q3K});y.addProvider({provide:tyM,useFactory:function(){return function(b){return _.pgP(b)}}});
y.addProvider({provide:_.mUm,useClass:Azg});R={};y.addProvider((R.provide=pd,R.useClass=pd,R[Mn]=[_.mUm],R));y.addProvider({provide:rP,useClass:rP});y.addProvider({provide:hfb,useValue:piK});y.addProvider({provide:xjc,useValue:_.XHm});y.addProvider({provide:ngU,useClass:e7a});y.addProvider({provide:PJ7,useValue:DPo});R={};y.addProvider((R.provide=WgM,R.useClass=dVg,R[Mn]=[PJ7],R));R={};y.addProvider((R.provide=_.nC,R.useClass=p$K,R[Mn]=[WgM],R));R={};y.addProvider((R.provide=_.WX,R.useClass=PX,R[Mn]=
[_.S5,_.dv],R));if(_.f("web_explore_hub_on_hover")||_.f("web_client_explore_hub_on_hover"))R={},y.addProvider((R.provide=q0,R.useClass=q0,R[Mn]=[_.Dj,Mi],R));if(_.f("web_enable_renderer_logger")){var h=new bKH;ijL(function(){h.abort()});
y.addProvider({provide:ffv,useValue:new R7K(h.signal)})}y.addProvider({provide:EPb,useValue:U38});R={};y.addProvider((R.provide=ec8,R.useClass=fw8,R[Mn]=[_.Dj],R))}},hpg);var Fa7={},wYH=(Fa7.initialized={priority:10,callback:function(){if(!GBa){DkW();UXW("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.hT(_.lh(UXW,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.f("log_heartbeat_with_lifecycles")){var R={};jh.instance||(jh.instance=new jh);jh.instance.install((R.document_visible={callback:kvT,priority:10},R.document_hidden={callback:kvT,priority:10},R))}else _.yF(document,"visibilitychange",kvT);GBa=!0}(R=_.$I())&&R!=="UNDEFINED_CSN"&&bVU(R)}},Fa7);var Nsa={},TsZ=(Nsa.initialized={callback:function(R){var y=_.$6(232091),u=R.injector.resolve(_.Ej);_.x0(u,y);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?bgU()&&_.fx(u,y):(R=R.injector.resolve(tyM)("refresh_detector"))&&(R.get("first_tab_load")?_.fx(u,y):R.set("first_tab_load","1"))}},Nsa);var o7p={},xea=(o7p.initialized={priority:10,callback:fvz},o7p);var BsZ={},f07=(BsZ.initialized={priority:0,callback:function(){var R=new g7T,y="other";_.BQ?y="chrome":_.xU?y="firefox":_.qC?y="safari":zu&&(y="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(u){R.increment(_.fJ(),u,y)}).catch(function(){R.increment(_.fJ(),!1,y)}):R.increment(_.fJ(),!1,y)}},BsZ);var epH={},l0p=(epH.rendering={priority:8,callback:efz},epH);var OFP={},ZFZ=(OFP.rendering={priority:10,callback:qw8},OFP.rendered={callback:$IT},OFP),HFH={},n7g=(HFH.rendering={callback:qw8},HFH.rendered={callback:$IT},HFH);var GlZ=!1,rDH={},Pxg=(rDH.initialized={priority:10,callback:function(){GlZ||(w8L({didPatch:function(R){R.el&&cEE(R.el,R.props)},
didUnmount:function(R){pDG(R.el)}}),GlZ=!0)}},rDH);var Wam=/^\/shorts\/?$/;_.kB("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(_.f("kevlar_enable_mss")){_.gzT(new q9w);var deJ=!0,Ue8,av;deJ=deJ===void 0?!1:deJ;Ue8=Ue8===void 0?!1:Ue8;av=av===void 0?{}:av;var kla=av.cssRowKey||"",E7P=av.combinedSignature||"";!kla&&window&&window._F_cssRowKey&&(kla=window._F_cssRowKey,!E7P&&window._F_combinedSignature&&(E7P=window._F_combinedSignature));if(kla&&typeof window._F_installCss!=="function")throw Error("vd");var $eK=av.loaderClass||_.Yc,SD=qWv("base-js"),qXg,XYp=mtO("",SD);qXg=_.lb(XYp);var Yg=new $eK(qXg,kla,E7P,deJ,Ue8),meK=
av.useCors||SD&&SD.hasAttribute("crossorigin"),ADP=av.corsMode||SD&&SD.getAttribute("crossorigin");meK&&(Yg.useCors_=meK);ADP&&(Yg.corsMode_=ADP);av.urlMaxLength&&(Yg.urlMaxLength=av.urlMaxLength);av.fetchPriority&&(Yg.fetchPriority=av.fetchPriority);var Dea=WY();Dea.JSC$10023_loader_=Yg;Dea.setBatchModeEnabled(!0)}
(function(){var R=document.querySelector("ytd-app");if(!R)throw Error("Ij");R=new UG({root:R,injector:_.ua()});R.install(wYH);var y={};R.install((y.initialized={priority:10,callback:FGO},y));_.f("wp_lat_b")&&(y={},R.install((y.initialized={priority:10,callback:function(){eyG()}},y)));
y={};R.install((y.rendered={priority:0,callback:IHz},y));y={};R.install((y.rendered={priority:0,callback:function(){_.WG.addLowPriorityJob(function(){_.b8a>1&&(Qs4(),iW4())},4E4)}},y));
R.install(TYI);R.install(TsZ);R.install(Pxg);QlP();R.install(Z$I);R.install(ItV);R.install(w$a);R.install(cLV);R.install(sba);R.install(lta);R.install(bF8);_.f("kevlar_enable_mss_lazy_load")&&R.install(xea);R.install(b$P);R.install(f07);if(!_.$B("IS_SHELL_LOAD")||_.f("kevlar_fetch_initial_data_promise_client")||_.f("sw_nav_preload_pbj")){var u=_.Fq(window.location.href);y=u&&u==="/watch";u=u&&u.match(Wam);y?R.install(n7g):u?R.install(l0p):R.install(ZFZ)}else R.install(VL7);R.install(xPM);_.f("web_enable_prefetching_videos_on_home")&&
R.install(raK);_.f("start_client_gcf")&&R.install(ZKH);R.install(mGH);(new Cxc).increment("INSTALLED");R.install(nLI);R.install(j1I);R.transition("initialized");FZc()})();
_.T2=[[["N2tpbmQjN2Z6eTBsaHdoMTM=","ZSN5aTBuODI2cHFyNjR2YWx1"],"RF9FTkQjOWFjeGFkajgwcWw1QURfUExBQ0VNRU5UX0tJTg=="]];_.NB=["emdnbG9iYWxDYWxsYmFja3MjMTVkOGJ1c2NkMA==","ZWN0ZWQjN3d1NnVidWR0ZTk3b25BYm5vcm1hbGl0eURldA==","ZXNvbkFkU2tpcCNlYm9icTNzaTR5","X3Jlc3BvbnNlIzd5ZGp5bGd6bnMyM3Jhd19wbGF5ZXI=","YWNlbWVudENvbmZpZyN2ZzJ1bGsxdWRtaWRhZFBs"];_.y$="emdnbG9iYWxDYWxsYmFja3MjMTVkOGJ1c2NkMA== ZWN0ZWQjN3d1NnVidWR0ZTk3b25BYm5vcm1hbGl0eURldA== ZXNvbkFkU2tpcCNlYm9icTNzaTR5 X3Jlc3BvbnNlIzd5ZGp5bGd6bnMyM3Jhd19wbGF5ZXI= X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzI2l3MDFzbDZleWk2eHdlYl9wbGF5bGlzdA== d3RhYl9zYV9lZiM0Z3Z0NWtyaDR2 YWNlbWVudENvbmZpZyN2ZzJ1bGsxdWRtaWRhZFBs".split(" ");
_._ModuleManager_initialize=function(R,y){if(!_.rs){if(!_.PY)return;_.gzT(_.PY())}_.rs.setAllModuleInfoString(R,y)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5:2,3/sy6/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syd:2/syc:5,a,d/sye/syf:6/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/syl:o/nmfa2d:h,n,p/sym:7,o/syn:g,h,p,r/CF909:n,s/Tm0L3c:s/L3n37:g,h,n,r/iuT5Oc',['sy2','sy3','sy8','syd','sya','sy5','syi','syh','sye','syc','syb','sy1','syk','sy7','sy6','sym','syl','syg','syf','syj','syn','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.gS=function(R,y,u,v,Q){var M={};y&&(M[y]=u);v?M.errorType=v:Q&&(M.errorReason=Q);_.P3(R,M);_.W3()};
_.Cq=function(R){var y=_.Lx();return _.yZ5(y,R,1)};
_.qz({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 g7J;var Cx7;var RCK=function(){};
_.J=RCK.prototype;_.J.addOwnKeyBinding=function(){};
_.J.removeOwnKeyBindings=function(){};
_.J.keyboardEventMatchesKeys=function(){};
_.J._collectKeyBindings=function(){};
_.J._prepKeyBindings=function(){};
_.J._addKeyBinding=function(){};
_.J._resetKeyEventListeners=function(){};
_.J._listenKeyEventListeners=function(){};
_.J._unlistenKeyEventListeners=function(){};
_.J._onKeyBindingEvent=function(){};
_.J._triggerKeyHandler=function(){};
_.J._tapHandler=function(){};
_.J._focusChanged=function(){};
_.J._detectKeyboardFocus=function(){};
_.J._userActivate=function(){};
_.J._upHandler=function(){};
_.J._spaceKeyDownHandler=function(){};
_.J._spaceKeyUpHandler=function(){};
_.J._asyncClick=function(){};
_.J._pressedChanged=function(){};
_.J._ariaActiveAttributeChanged=function(){};
_.J._activeChanged=function(){};
_.J._controlStateChanged=function(){};
_.J._changedButtonState=function(){};
_.J._focusBlurHandler=function(){};
_.J._disabledChanged=function(){};
_.J._changedControlState=function(){};
_.J._downHandler=function(){};
_.J.ensureRipple=function(){};
_.J.getRipple=function(){};
_.J.hasRipple=function(){};
_.J._noinkChanged=function(){};
_.J._focusedChanged=function(){};
_.J._createRipple=function(){};
_.J.registered=function(){};
_.J._invalidChanged=function(){};
_.J.hasValidator=function(){};
_.J.validate=function(){};
_.J._getValidity=function(){};
_.J._requiredChanged=function(){};
_.J._valueChanged=function(){};
_.J._checkedChanged=function(){};
_.J._buttonStateChanged=function(){};
_.J._setPressed=function(){};
_.J._setPointerDown=function(){};
_.J._setReceivedFocusFromKeyboard=function(){};
_.J._setFocused=function(){};
RCK=_.qz({is:"tp-yt-paper-radio-button",_template:function(){if(Cx7!==void 0)return Cx7;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;g7J===void 0&&(g7J=document.createElement("template"));var v=g7J;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return Cx7=R},
behaviors:[_.ZRT],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(){_.gn(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var R=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),y=Math.floor(3*R);y%2!==R%2&&y++;this.updateStyles({"--paper-radio-button-ink-size":y+"px"})}})}});var y2a;var ulP;_.qz({_template:function(){if(ulP!==void 0)return ulP;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;y2a===void 0&&(y2a=document.createElement("template"));var v=y2a;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return ulP=R},
is:"tp-yt-paper-radio-group",behaviors:[_.XmY],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 y=this._valueToItem(R);if(!y||!y.hasAttribute("disabled")){if(this.selected){y=this._valueToItem(this.selected);if(this.selected==R)if(this.allowEmptySelection)R="";else{y&&(y.checked=!0);return}y&&
(y.checked=!1)}_.Cu.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){_.qCg._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(R){_.qCg._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.Cu._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.$R._resetTabindices.apply(this,arguments);this.items.forEach(function(R){R.removeAttribute("aria-selected")},this)}});var vaM;_.Dl("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var R5=function(){return _.W.apply(this,arguments)||this};
_.O(R5,_.W);_.J=R5.prototype;_.J.computeHasPrimaryIcon=function(R){return!(!R.icon&&!R.thumbnail)};
_.J.computeHasSecondary=function(R){return!(!R.secondaryIcon&&!R.secondaryNotificationText)};
_.J.computeHideSecondaryString=function(R){return!_.f("disable_hide_empty_secondary_string")&&!R.secondaryNotificationText};
_.J.computeCompactLinkStyle=function(R){return R?R.toLowerCase().replace(/_/g,"-"):""};
_.J.computeHasFitHeight=function(R){return R==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.J.isActiveEndpoint=function(R){return(R=this.get("commandMetadata.webCommandMetadata.url",R))?_.Fq(window.location.href)!=="/account_transfer_channel"&&_.Fq(window.location.href)!=="/gaia_link"&&_.Fq(window.location.href)!=="/channel_switcher"||R!=="/account"?_.Fq(window.location.href)===R:!0:!1};
_.J.onTap=function(){var R;((R=this.data)==null?0:R.serviceEndpoint)&&_.Fh(this.hostElement,[this.data.serviceEndpoint])};
R5.prototype.onTap=R5.prototype.onTap;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],R5.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],R5.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.p("design:type",Boolean)],R5.prototype,"active",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.p("design:type",String)],R5.prototype,"compactLinkStyle",void 0);
_.A([_.r({computed:"computeIcon_(data.icon)"}),_.p("design:type",Object)],R5.prototype,"icon",void 0);_.A([_.r({computed:"computeIcon_(data.secondaryIcon)"}),_.p("design:type",Object)],R5.prototype,"secondaryIcon",void 0);_.A([_.r({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],R5.prototype,"hasSecondary",void 0);_.A([_.r({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],R5.prototype,"hideSecondaryString",void 0);
_.A([_.fu("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],R5.prototype,"onTap",null);_.A([_.q({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],R5);
_.m(R5,"ytd-compact-link-renderer",function(){if(vaM!==void 0)return vaM;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return vaM=R},{mode:1});var Qnp;_.Dl("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var yY=function(){var R=_.W.apply(this,arguments)||this;R.role="link";R.tabindex="0";R.actionMap=_.f("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};
_.O(yY,_.W);_.J=yY.prototype;_.J.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.EZ()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.J.getCurrentTheme=function(){return _.$v()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.EZ()};
_.J.onThemeSelected=function(R,y){var u=R||y?R:_.kv(),v=(u&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!u&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.F2W(_.Fq(window.location.href));_.Zq(0,165,R);_.Zq(0,174,y);this.prefs.save();v&&_.Ik(this.hostElement,"yt-dark-mode-toggled-action",[u]);_.Ik(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.J.onTap=function(){this.data.serviceEndpoint&&_.Fh(this.hostElement,[this.data.serviceEndpoint])};
_.J.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.J.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.J.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
yY.prototype.onTap=yY.prototype.onTap;yY.prototype.dataChanged=yY.prototype.dataChanged;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],yY.prototype,"actionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],yY.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.uu),_.p("design:type",Object)],yY.prototype,"paperItemBehaviors",void 0);_.A([_.r(),_.p("design:type",Object)],yY.prototype,"data",void 0);_.A([_.r({value:function(){return _.O9()}}),
_.p("design:type",_.im)],yY.prototype,"prefs",void 0);_.A([_.r(),_.p("design:type",Object)],yY.prototype,"label",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],yY.prototype,"role",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],yY.prototype,"tabindex",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yY.prototype,"dataChanged",null);
_.A([_.fu("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yY.prototype,"onTap",null);_.A([_.q({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],yY);
_.m(yY,"ytd-toggle-theme-compact-link-renderer",function(){if(Qnp!==void 0)return Qnp;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Qnp=R},{mode:1});
}catch(e){_._DumpException(e)}
try{
var MfV,J2m;_.uy=function(R){return!!R.getOptions("captions")};
_.jna=function(R){return(R=R.getOption("captions","track"))?!!R.displayName:!1};
_.v9=function(R,y){_.$Y(y,R,function(){return MfV[y]},function(u){MfV[y]=u;
if(!_.f("mweb_player_ve_show_ks")){var v=_.$I(0);v&&u&&_.YF(v,u)}})};
_.QY=function(R){(R=MfV[R])&&_.fx(_.GN(),R)};
MfV={};var VfI;/*

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
*/
_.qz({_template:function(){if(VfI!==void 0)return VfI;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;J2m===void 0&&(J2m=document.createElement("template"));var v=J2m;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return VfI=R},
is:"tp-yt-paper-checkbox",behaviors:[_.ZRT],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.gn(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var R=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),y="px",u=R.match(/[A-Za-z]+$/);u!==null&&(y=u[0]);R=parseFloat(R);u=8/3*R;y==="px"&&(u=Math.floor(u),u%2!==R%2&&u++);this.updateStyles({"--paper-checkbox-ink-size":u+
y})}})},
_computeCheckboxClass:function(R,y){var u="";R&&(u+="checked ");y&&(u+="invalid");return u},
_computeCheckmarkClass:function(R){return R?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.lAY._createRipple.call(this)}});var iyV=new _.jF("radioButtonSurveyOptionRenderer"),Ku8=new _.jF("checkboxSurveyOptionRenderer");var IKM;var hCJ;var byH=0,jJ=function(){var R=_.W.call(this)||this;R.selected=!1;R.isOverlay=!1;R.inputId="toggle-option-"+byH;byH++;return R};
_.O(jJ,_.W);jJ.prototype.onTap=function(){_.Ko(this.hostElement,"ytd-toggle-option-clicked")};
_.A([_.r(),_.p("design:type",String)],jJ.prototype,"label",void 0);_.A([_.r(),_.p("design:type",String)],jJ.prototype,"inputId",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],jJ.prototype,"selected",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],jJ.prototype,"isOverlay",void 0);_.A([_.q({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.p("design:paramtypes",[])],jJ);
_.m(jJ,"ytd-toggle-option-renderer",function(){if(hCJ!==void 0)return hCJ;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return hCJ=R},{mode:1});var MF=function(){var R=_.W.apply(this,arguments)||this;R.isToggleOption=!1;R.isOverlay=!1;return R};
_.O(MF,_.W);MF.prototype.onTap=function(R){R.preventDefault();this.data&&(R=!this.data.checked,this.set("data.checked",R),_.Ko(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:R,value:this.data.value}))};
_.RR.Object.defineProperties(MF.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
MF.prototype.onTap=MF.prototype.onTap;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],MF.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],MF.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],MF.prototype,"isToggleOption",void 0);_.A([_.r(),_.p("design:type",Object)],MF.prototype,"isOverlay",void 0);_.A([_.G("data.responseText"),_.p("design:type",String),_.p("design:paramtypes",[])],MF.prototype,"label",null);
_.A([_.fu("ytd-toggle-option-clicked"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],MF.prototype,"onTap",null);_.A([_.q({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],MF);
_.m(MF,"ytd-checkbox-survey-option-renderer",function(){if(IKM!==void 0)return IKM;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return IKM=R},{mode:1});var Fu7;var wTJ;var Ji=function(){var R=_.W.apply(this,arguments)||this;R.checked=!1;R.isToggleOption=!1;return R};
_.O(Ji,_.W);Ji.prototype.onTap=function(){this.data&&(this.checked?_.Ik(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.Ik(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
Ji.prototype.onTap=Ji.prototype.onTap;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Ji.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Ji.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],Ji.prototype,"checked",void 0);_.A([_.r(),_.p("design:type",Object)],Ji.prototype,"isToggleOption",void 0);_.A([_.fu("ytd-toggle-option-clicked"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],Ji.prototype,"onTap",null);
_.A([_.q({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],Ji);
_.m(Ji,"ytd-radio-button-survey-option-renderer",function(){if(wTJ!==void 0)return wTJ;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return wTJ=R},{mode:1});var VY=function(){var R=_.W.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=_.f("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};
_.O(VY,_.W);_.J=VY.prototype;
_.J.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"}}}}};
_.J.attached=function(){var R=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(u){var v;if((v=u[0])!=null&&v.isIntersecting){_.Hy().reportShown(R.hostElement);var Q;(Q=R.intersectionObserver)==null||Q.unobserve(R.hostElement)}},{rootMargin:"0px",
threshold:.6});var y;(y=this.intersectionObserver)==null||y.observe(this.hostElement)};
_.J.onDarkModeToggledAction=function(R){this.isDarkMode=R};
_.J.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 y;((y=this.data)==null?void 0:y.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var u,v,Q,M;this.darkColorPalette=(u=this.data)==null?void 0:(v=u.inlineContent)==null?void 0:(Q=v.compactVideoRenderer)==null?void 0:(M=Q.thumbnail)==null?
void 0:M.darkColorPalette;var K,h,b,N;this.lightColorPalette=(K=this.data)==null?void 0:(h=K.inlineContent)==null?void 0:(b=h.compactVideoRenderer)==null?void 0:(N=b.thumbnail)==null?void 0:N.lightColorPalette;var T,x;if(((T=this.data)==null?0:(x=T.inlineContent)==null?0:x.compactVideoRenderer)&&this.isShortsStyle){var B,l,Z,P;R=_.Fj((B=this.data)==null?void 0:(l=B.inlineContent)==null?void 0:(Z=l.compactVideoRenderer)==null?void 0:(P=Z.thumbnail)==null?void 0:P.thumbnails);_.oX(this.hostElement,
{"--yt-background-url":"url("+R+")"})}};
_.J.handleRequestCompletion=function(){this.hostElement.hidden&&_.Ko(this.hostElement,"yt-dismissible-item-dismissed")};
_.J.onPopupClosed=function(R){var y;((y=R.detail)==null?void 0:y.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.Ik(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.J.handleInlineSurveyRatingSelect=function(R,y){var u=this;this.selectedRatingEndpoint=R;this.followUpSurveyCommand=y;this.expanded=!!R;this.getOptionRenderers().forEach(function(v,Q){u.notifyPath("followUpSurveyCommand.followUpOptions."+Q+".checkboxSurveyOptionRenderer.checked");u.set("followUpSurveyCommand.followUpOptions."+Q+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),R=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.Ik(this.hostElement,"yt-reel-non-video-content-dismissal-command",[R]))};
_.J.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.Ik(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var R,y=(R=this.data)==null?void 0:R.dismissalEndpoint;y&&this.ytComponentBehavior.resolveCommand(y)}};
_.J.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.Ik(this.hostElement,"yt-close-popup-action"))};
_.J.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(v){return v.checked});
if(R.length===0)return;R=R.map(function(v){return v.responseEndpoint})}var y=[];
R.forEach(function(v,Q){Q!==0&&(v=_.e(v,_.mr))&&v.feedbackToken&&y.push(v.feedbackToken)});
if(R=R[0]){var u={};y.length>0&&(u.extra_feedback_tokens=y);this.ytComponentBehavior.resolveCommand(R,{form:u})}}};
_.J.getOptionRenderers=function(){var R=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(y){R.isSingleSelect=!!_.e(y,iyV);return R.isSingleSelect?_.e(y,iyV):_.e(y,Ku8)}):[]};
_.J.handleInlineSurveyOptionSelect=function(R){R=this.optionSelector.indexOf(R);R!==-1&&this.optionSelector.selectIndex(R)};
_.J.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.J.maybeGetBackgroundColor=function(R){return this.isDarkMode?R.section2Color:R.section3Color};
_.J.colorPaletteChanged=function(){var R=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;R=R&&this.maybeGetBackgroundColor(R);this.dismissibleEl.style.backgroundColor=!R||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.aH(R)};
_.RR.Object.defineProperties(VY.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
VY.prototype.colorPaletteChanged=VY.prototype.colorPaletteChanged;VY.prototype.onPopupClosed=VY.prototype.onPopupClosed;VY.prototype.handleRequestCompletion=VY.prototype.handleRequestCompletion;VY.prototype.dataChanged=VY.prototype.dataChanged;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],VY.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],VY.prototype,"actionHandlerBehavior",void 0);
_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],VY.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],VY.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.c4),_.p("design:type",Object)],VY.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.O7("#follow-up-survey-options"),_.p("design:type",Object)],VY.prototype,"optionSelector",void 0);_.A([_.r(),_.p("design:type",Object)],VY.prototype,"data",void 0);
_.A([_.r(),_.p("design:type",Object)],VY.prototype,"disableAnimation",void 0);_.A([_.r(),_.p("design:type",Object)],VY.prototype,"isToggleOption",void 0);_.A([_.r(),_.p("design:type",Object)],VY.prototype,"followUpSurveyCommand",void 0);_.A([_.r(),_.p("design:type",Object)],VY.prototype,"selectedRatingEndpoint",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],VY.prototype,"expanded",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],VY.prototype,"isSlimlineSurveyFollowUp",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],VY.prototype,"isShortsStyle",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],VY.prototype,"styleOverrideAttribute",void 0);_.A([_.r(),_.p("design:type",Boolean)],VY.prototype,"isSingleSelect",void 0);_.A([_.r(),_.p("design:type",Object)],VY.prototype,"isDarkMode",void 0);
_.A([_.r(),_.p("design:type",Object)],VY.prototype,"lightColorPalette",void 0);_.A([_.r(),_.p("design:type",Object)],VY.prototype,"darkColorPalette",void 0);_.A([_.G("selectedRatingEndpoint","isShortsStyle"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],VY.prototype,"isOptionSelected",null);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],VY.prototype,"roundedContainer",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],VY.prototype,"improveShortsResponseRate",void 0);_.A([_.O7("#dismissible"),_.p("design:type",HTMLElement)],VY.prototype,"dismissibleEl",void 0);_.A([_.O7("#dismiss-button yt-icon-button"),_.p("design:type",HTMLElement)],VY.prototype,"dismissButtonEl",void 0);_.A([_.O7("#inline-survey-header yt-icon-button"),_.p("design:type",HTMLElement)],VY.prototype,"inlineHeaderDismissButtonEl",void 0);
_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],VY.prototype,"dataChanged",null);_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],VY.prototype,"handleRequestCompletion",null);_.A([_.fu("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],VY.prototype,"onPopupClosed",null);
_.A([_.e0("darkColorPalette","lightColorPalette","isDarkMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],VY.prototype,"colorPaletteChanged",null);_.A([_.q({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],VY);
_.m(VY,"ytd-inline-survey-renderer",function(){if(Fu7!==void 0)return Fu7;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Fu7=R},{mode:1});var Nho=["en-CA","en","es-MX","fr-CA"];_.ThI=_.Jd(function(R){var y=_.jb(R,{isOverlay:!1,isModern:!1}),u=y.captionIconType,v=y.onClick;R=y.ariaLabel;var Q=y.ariaPressed,M=y.isOverlay,K=y.isModern;y=_.sh("button",function(N){_.v9(N,127299)});
var h=_.nh(function(N){_.QY(127299);v==null||v(N);return!1}),b={};
return _.F("ytm-closed-captioning-button",{class:_.Oy("ytmClosedCaptioningButtonHost",(b.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return u()===-1&&M()},b.ytmClosedCaptioningButtonIconDisabled=function(){return u()===-1&&!M()},b))},_.F("button",{el:y,
class:"ytmClosedCaptioningButtonButton",title:R,"aria-label":R,"aria-pressed":Q,"on:click":h},_.F(_.W_,{icon:function(){var N="",T=K();var x=T?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";T=T?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var B=_.O9().get("hl");x=!B||Nho.includes(B)?x:T;T=u();switch(T){case -1:case 0:N=x;break;case 1:N=x+"_FILLED";break;default:_.AL(T)}return N}})))},"nf");
_.ThI.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.w8=function(R){return function(y,u){var v=R||u.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(y,u,{get:function(){var Q;return this.$?this.$[v]:(Q=_.l8(this))==null?void 0:Q.querySelector("#"+v)},
enumerable:!0,configurable:!0})}};_.Nl=function(R){R=R===void 0?!1:R;_.Z0.call(this);this.pubSub_=new _.Tu(R);_.bx(this,this.pubSub_)};
_.IE(_.Nl,_.Z0);_.Nl.prototype.subscribe=function(R,y,u){return this.isDisposed()?0:this.pubSub_.subscribe(R,y,u)};
_.Nl.prototype.unsubscribe=function(R,y,u){return this.isDisposed()?!1:this.pubSub_.unsubscribe(R,y,u)};
_.Nl.prototype.unsubscribeByKey=function(R){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(R)};
_.Nl.prototype.publish=function(R,y){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var kOV=function(){_.gS("ypcRedeemFlowStarted")},I9=function(R){_.gS("ypcRedeemFlowFailed",void 0,void 0,void 0,R)},EyM=function(R,y,u){y&&u&&(R.videos.forEach(function(v){v.videoId===y&&(v.itemId=u)}),R.recommendedVideos.forEach(function(v){v.videoId===y&&(v.itemId=u)}))};var $2I;var qta;/*

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
*/
_.qz({_template:function(){if(qta!==void 0)return qta;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;$2I===void 0&&($2I=document.createElement("template"));var v=$2I;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return qta=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,y){var u=this._resolveSrc(R);u!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",R===""||y?this._setLoading(!1):(this._resolvedSrc=u,this.$.img.src=this._resolvedSrc,this.$.sizedImgDiv.style.backgroundImage='url("'+this._resolvedSrc+'")',this._setLoading(!0)),this._setLoaded(!1),this._setError(!1))},
_placeholderChanged:function(){this.$.placeholder.style.backgroundImage=this.placeholder?'url("'+this.placeholder+'")':""},
_transformChanged:function(){var R=this.$.sizedImgDiv.style,y=this.$.placeholder.style;R.backgroundSize=y.backgroundSize=this.sizing;R.backgroundPosition=y.backgroundPosition=this.sizing?this.position:"";R.backgroundRepeat=y.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(R){R=_.JW(R,this.$.baseURIAnchor.href);R.length>=2&&R[0]==="/"&&R[1]!=="/"&&(R=(location.origin||location.protocol+"//"+location.host)+R);return R}});var XBm;var m2V;_.qz({_template:function(){if(m2V!==void 0)return m2V;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;XBm===void 0&&(XBm=document.createElement("template"));var v=XBm;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return m2V=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 y=this.getAttribute("heading"),u=this.getAttribute("aria-label");typeof u==="string"&&u!==y||this.setAttribute("aria-label",R)},
_computeHeadingClass:function(R){return R?" over-image":""},
_computeAnimated:function(R){return R}});var A$V=new _.jF("addRendererToItemSectionAction");var D2H;var hE=function(){return _.W.apply(this,arguments)||this};
_.O(hE,_.W);hE.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],hE.prototype,"rendererBehavior",void 0);_.A([_.n(_.c4),_.p("design:type",Object)],hE.prototype,"dismissibleItemBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],hE.prototype,"rendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],hE.prototype,"data",void 0);_.A([_.q({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],hE);
_.m(hE,"ytd-comment-history-entry-renderer",function(){if(D2H!==void 0)return D2H;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return D2H=R},{mode:1});var pBJ;_.Dl("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.Dl("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var bU=function(){return _.W.apply(this,arguments)||this};
_.O(bU,_.W);_.J=bU.prototype;_.J.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.onKeyUp=function(R){if(R.keyCode===13)this.onTap()};
_.J.onTap=function(){this.data.recordClickEndpoint&&_.ua().resolve(_.jX).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var R=this.data.navigationEndpoint;R&&_.e(R,_.DE)&&_.ua().resolve(_.jX).resolveCommand(R,{form:{element:this.hostElement}})};
_.J.readChanged=function(){var R;_.FN(this.hostElement,"unread",!((R=this.data)==null?0:R.read))};
_.J.dataChanged=function(){this.data&&_.FN(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.J.computeThumbnailSize=function(){var R;return((R=this.data)==null?0:R.highPriorityNotification)?32:48};
_.J.getEndpointURL=function(R){return R&&!_.e(R,_.DE)?this.componentBehavior.computeHref_(R):null};
_.J.getEndpointData=function(R){return R&&!_.e(R,_.DE)?R:null};
bU.prototype.computeThumbnailSize=bU.prototype.computeThumbnailSize;bU.prototype.dataChanged=bU.prototype.dataChanged;bU.prototype.readChanged=bU.prototype.readChanged;bU.prototype.onKeyUp=bU.prototype.onKeyUp;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],bU.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],bU.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],bU.prototype,"componentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],bU.prototype,"data",void 0);_.A([_.r({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.p("design:type",Number)],bU.prototype,"thumbnailSize",void 0);_.A([_.fu("keyup"),_.p("design:type",Function),_.p("design:paramtypes",[KeyboardEvent]),_.p("design:returntype")],bU.prototype,"onKeyUp",null);
_.A([_.e0("data.read"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bU.prototype,"readChanged",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bU.prototype,"dataChanged",null);_.A([_.e0("data.highPriorityNotification"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bU.prototype,"computeThumbnailSize",null);
_.A([_.q({is:"ytd-notification-renderer",disableElementRegistration:!0})],bU);
_.m(bU,"ytd-notification-renderer",function(){if(pBJ!==void 0)return pBJ;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return pBJ=R},{mode:1});var teH;var Fu=function(){return _.W.apply(this,arguments)||this};
_.O(Fu,_.W);Fu.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"}}}};
Fu.prototype.computeActionButtonClass=function(R){return!R.actionButtons||R.actionButtons.length<=1?"single-button":R.description?"vertical-buttons":"horizontal-buttons"};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Fu.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Fu.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Fu.prototype,"data",void 0);_.A([_.q({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],Fu);
_.m(Fu,"ytd-playlist-show-metadata-renderer",function(){if(teH!==void 0)return teH;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return teH=R},{mode:1});var c$Z;_.Dl("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var w7=function(){return _.W.apply(this,arguments)||this};
_.O(w7,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],w7.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],w7.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],w7.prototype,"data",void 0);_.A([_.q({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],w7);
_.m(w7,"ytd-purchase-item-renderer",function(){if(c$Z!==void 0)return c$Z;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return c$Z=R},{mode:1});var aU7;var St7={};St7.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"}};_.Dl("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var NX=function(){return _.W.apply(this,arguments)||this};
_.O(NX,_.W);NX.prototype.onYtNavigate=function(R){var y=this.openPopupBehavior.getNavigationEndpointPopupAction(R.detail.endpoint);y&&(R.stopPropagation(),this.openPopupBehavior.openPopup(y))};
NX.prototype.onYtNavigate=NX.prototype.onYtNavigate;_.A([_.n(St7.YtSimpleTextSectionBehavior),_.p("design:type",Object)],NX.prototype,"ytSimpleTextSectionBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],NX.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.jc),_.p("design:type",Object)],NX.prototype,"openPopupBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],NX.prototype,"data",void 0);
_.A([_.fu("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],NX.prototype,"onYtNavigate",null);_.A([_.q({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],NX);
_.m(NX,"ytd-simple-text-section-renderer",function(){if(aU7!==void 0)return aU7;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return aU7=R},{mode:1});var Yta;_.Dl("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var Tv=function(){return _.W.apply(this,arguments)||this};
_.O(Tv,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Tv.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Tv.prototype,"data",void 0);_.A([_.q({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],Tv);
_.m(Tv,"ytd-unlimited-page-feature-info-renderer",function(){if(Yta!==void 0)return Yta;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Yta=R},{mode:1});var LyI;var sTa;var o9=function(){return _.W.apply(this,arguments)||this};
_.O(o9,_.W);o9.prototype.dataChanged=function(){if(this.data){var R=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);R&&(R=_.b0(R,screen.width),this.hostElement.style.backgroundImage="url("+R+")")}};
o9.prototype.dataChanged=o9.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],o9.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],o9.prototype,"data",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],o9.prototype,"dataChanged",null);_.A([_.q({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],o9);
_.m(o9,"ytd-post-redemption-section-renderer",function(){if(sTa!==void 0)return sTa;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return sTa=R},{mode:1});var zma;var xV=function(){return _.W.apply(this,arguments)||this};
_.O(xV,_.W);xV.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],xV.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],xV.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],xV.prototype,"data",void 0);_.A([_.q({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],xV);
_.m(xV,"ytd-ypc-post-redemption-renderer",function(){if(zma!==void 0)return zma;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return zma=R},{mode:1});_.Dl("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var BD=function(){var R=_.W.apply(this,arguments)||this;R.MIN_CODE_LENGTH=12;R.MAX_CODE_LENGTH=24;return R};
_.O(BD,_.W);_.J=BD.prototype;_.J.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.J.created=function(){this.riskService=new _.uYO;this.loadPaymentThenable=_.QD4(_.EB("YPC_MB_URL"))};
_.J.ready=function(){var R=this;this.code.addEventListener("keypress",function(y){R.onCodeInputKeypress(y)})};
_.J.dataChanged=function(){var R=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(y){y=_.V(y);for(var u=y.next();!u.done;u=y.next())u=u.value,u.type==="attributes"&&u.attributeName==="dark"&&R.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.J.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+")")}};
_.J.computeRedeemButton=function(R){(R=this.get("redeemButton.buttonRenderer",R))&&(R=Object.assign({},R,{serviceEndpoint:void 0}));return R};
_.J.onRedeemButtonTap=function(R){R.stopPropagation();kOV();this.redeemCode()};
_.J.redeemCode=function(){var R=this;this.isLoading=!0;var y=this.riskService.init();_.Pc([y,this.loadPaymentThenable]).then(function(){var u=R.data.redeemButton.buttonRenderer.serviceEndpoint,v=_.vbz(),Q=payments.business.integration.ClientTokenFactory.createClientToken(_.e(u,_.y3g).countryCode,v);v={c:R.code.value.trim(),rd:window.btoa(v),ctk:Q};u&&_.ua().resolve(_.jX).resolveCommand(u,{form:Object.assign({},v,{element:R.hostElement})})},function(){R.showGenericError();
I9("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.mq(Error("io"))})};
_.J.onYtServiceRequestCompleted=function(R){R.stopPropagation();this.isLoading=!1;var y,u;this.errorMessage=(y=R.detail)==null?void 0:(u=y.data)==null?void 0:u.errorMessage;var v,Q;this.postRedemptionRenderer=(v=R.detail)==null?void 0:(Q=v.data)==null?void 0:Q.renderer;var M,K;if(R=(M=R.detail)==null?void 0:(K=M.data)==null?void 0:K.redirectEndpoint)this.isLoading=!0,_.Ko(this.hostElement,"yt-navigate",{endpoint:R});this.errorMessage?I9("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
R)&&_.gS("ypcRedeemFlowSucceeded")};
_.J.onYtServiceRequestError=function(R){R.stopPropagation();this.isLoading=!1;if(R=this.get("detail.error.message",R))this.errorMessage=_.ye(R);I9("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.J.onInvokeInstrumentManagerActionCompleted=function(R){R.stopPropagation();this.redeemCode()};
_.J.onInvokeInstrumentManagerActionError=function(R){R.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",R)){case "instrumentManagerLoadError":this.showGenericError();I9("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();I9("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.gS("ypcRedeemFlowCancelled")}};
_.J.onInput=function(){var R=this;_.zJ(this,"onInput",function(){var y=R.code.value.trim();R.redeemButtonDisabled=y.length<R.MIN_CODE_LENGTH||y.length>R.MAX_CODE_LENGTH},200)};
_.J.onCodeInputKeypress=function(R){R.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(kOV(),this.redeemCode())};
_.J.computeImageUrl=function(R){return R?_.b0(R.thumbnails,600):null};
_.J.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
BD.prototype.onInvokeInstrumentManagerActionError=BD.prototype.onInvokeInstrumentManagerActionError;BD.prototype.onInvokeInstrumentManagerActionCompleted=BD.prototype.onInvokeInstrumentManagerActionCompleted;BD.prototype.onYtServiceRequestError=BD.prototype.onYtServiceRequestError;BD.prototype.onYtServiceRequestCompleted=BD.prototype.onYtServiceRequestCompleted;BD.prototype.dataChanged=BD.prototype.dataChanged;
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],BD.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],BD.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],BD.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],BD.prototype,"isLoading",void 0);_.A([_.r(),_.p("design:type",Boolean)],BD.prototype,"redeemButtonDisabled",void 0);
_.A([_.r(),_.p("design:type",Object)],BD.prototype,"errorMessage",void 0);_.A([_.r(),_.p("design:type",Object)],BD.prototype,"postRedemptionRenderer",void 0);_.A([_.r(),_.p("design:type",Object)],BD.prototype,"observer",void 0);_.A([_.O7("#code"),_.p("design:type",HTMLInputElement)],BD.prototype,"code",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],BD.prototype,"dataChanged",null);
_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],BD.prototype,"onYtServiceRequestCompleted",null);_.A([_.fu("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],BD.prototype,"onYtServiceRequestError",null);
_.A([_.fu("yt-invoke-instrument-manager-action-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],BD.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.A([_.fu("yt-invoke-instrument-manager-action-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],BD.prototype,"onInvokeInstrumentManagerActionError",null);_.A([_.q({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],BD);
_.m(BD,"ytd-redeem-code-renderer",function(){if(LyI!==void 0)return LyI;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return LyI=R},{mode:1});var gyo;_.Dl("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var f0=function(){var R=_.W.apply(this,arguments)||this;R.businessEmailDisplayState="HIDE_SECTION";return R};
_.O(f0,_.W);_.J=f0.prototype;_.J.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}}}}}};
_.J.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"};
_.J.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.J.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.tl(_.gyw),this.businessEmailDisplayState="CAPTCHA"))};
_.J.onYtServiceRequestCompleted=function(R){var y;if((y=R.detail.data)==null?0:y.businessEmail)this.businessEmail=R.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var u;if((u=R.detail.data)==null?0:u.errorMessage)this.businessEmailErrorMessage=R.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.J.computeEmailHref=function(R){return"mailto:"+R};
_.J.computeSafeUrl=function(R){if(R)return _.Eo(R)};
_.J.onBusinessEmailCaptchaSubmit=function(){var R;(R=this.data)!=null&&R.onBusinessEmailRevealClickCommand&&(R=this.JSC$21532_captchaTextarea.value)&&(R={recaptcha_response_token:R,channel_id:this.data.channelId},_.ua().resolve(_.jX).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},R,{element:this.hostElement})}))};
_.J.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.RR.Object.defineProperties(f0.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,y;return!((R=this.data)==null||!R.primaryLinks)&&!((y=this.data)==null?0:y.links)&&this.data.primaryLinks.every(function(u){return u.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var R,y;return!((R=this.data)==null||!R.primaryLinks)&&!((y=this.data)==null?0:y.links)&&!this.shouldShowNewLinks}}});
f0.prototype.onYtServiceRequestCompleted=f0.prototype.onYtServiceRequestCompleted;f0.prototype.dataChanged=f0.prototype.dataChanged;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],f0.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],f0.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],f0.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.O7("#g-recaptcha-response"),_.p("design:type",HTMLTextAreaElement)],f0.prototype,"JSC$21532_captchaTextarea",void 0);_.A([_.r(),_.p("design:type",Object)],f0.prototype,"data",void 0);_.A([_.r(),_.p("design:type",String)],f0.prototype,"businessEmailDisplayState",void 0);_.A([_.r(),_.p("design:type",String)],f0.prototype,"businessEmail",void 0);_.A([_.r(),_.p("design:type",String)],f0.prototype,"businessEmailErrorMessage",void 0);
_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],f0.prototype,"hideDetailsSection",null);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],f0.prototype,"dataChanged",null);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],f0.prototype,"shouldShowNewLinks",null);_.A([_.G("data","shouldShowLinks"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],f0.prototype,"shouldShowLegacyLinks",null);
_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],f0.prototype,"onYtServiceRequestCompleted",null);_.A([_.q({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],f0);
_.m(f0,"ytd-channel-about-metadata-renderer",function(){if(gyo!==void 0)return gyo;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return gyo=R},{mode:1});var Cia;_.Dl("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var es=function(){return _.W.apply(this,arguments)||this};
_.O(es,_.W);es.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer",lockupViewModel:{component:"yt-lockup-view-model",params:{force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailFixedWidth]]",containerType:"[[lockupContainerType]]"}}}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],es.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],es.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],es.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Number)],es.prototype,"lockupContainerType",void 0);_.A([_.r(),_.p("design:type",String)],es.prototype,"thumbnailFixedWidth",void 0);
_.A([_.q({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],es);
_.m(es,"ytd-channel-featured-content-renderer",function(){if(Cia!==void 0)return Cia;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Cia=R},{mode:1});var R0V;_.Dl("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var lU=function(){var R=_.W.apply(this,arguments)||this;R.roundContainer=!0;R.amsterdamEnabled=_.f("enable_desktop_amsterdam_info_panels");return R};
_.O(lU,_.W);_.J=lU.prototype;_.J.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.J.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)};
_.J.computeSource=function(R){return R.secondarySource?_.u7(R.secondarySource):_.u7(R.source)};
_.J.computeClarifyStyle=function(R){return R?R.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.J.isLargeStyle=function(R){return R==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.J.computeBackgroundStyle=function(R){return R?R.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.J.computeHasActionButton=function(R){return!!R.actionButton};
_.J.computeHasBottomSection=function(R){return!!R.ctaHasBottomSection};
_.J.computeIsSourceMissing=function(R){return R.ctaHasBottomSection===!1?!0:R&&this.computeSource(R)?!1:!0};
_.J.computeSecondaryEndpoint=function(R){return R.secondaryEndpoint||R.endpoint};
lU.prototype.dataChanged=lU.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],lU.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],lU.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],lU.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Number)],lU.prototype,"imageWidth",void 0);_.A([_.r(),_.p("design:type",Number)],lU.prototype,"imageHeight",void 0);
_.A([_.r({computed:"computeSecondaryEndpoint(data)"}),_.p("design:type",Object)],lU.prototype,"secondaryEndpoint",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.p("design:type",Boolean)],lU.prototype,"hasActionButton",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.p("design:type",Boolean)],lU.prototype,"hasBottomSection",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.p("design:type",Boolean)],lU.prototype,"missingSource",void 0);_.A([_.r({computed:"computeIcon_(data.icon)"}),_.p("design:type",String)],lU.prototype,"icon",void 0);_.A([_.r({computed:"computeIcon_(data.secondaryIcon)"}),_.p("design:type",String)],lU.prototype,"secondaryIcon",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.p("design:type",String)],lU.prototype,"clarifyStyle",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.p("design:type",String)],lU.prototype,"backgroundStyle",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],lU.prototype,"roundContainer",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],lU.prototype,"amsterdamEnabled",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lU.prototype,"dataChanged",null);
_.A([_.q({is:"ytd-clarification-renderer",disableElementRegistration:!0})],lU);
_.m(lU,"ytd-clarification-renderer",function(){if(R0V!==void 0)return R0V;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return R0V=R},{mode:1});var yB8;var uYJ;var O2=function(){var R=_.W.apply(this,arguments)||this;R.amsterdamEnabled=_.f("enable_desktop_amsterdam_info_panels");return R};
_.O(O2,_.W);_.J=O2.prototype;_.J.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.J.computeIcon=function(R){return R?"yt-icons:"+R.toLowerCase():null};
_.J.computeUseContacts=function(R){return!!R.contacts&&R.contacts.length>0};
_.J.computePhoneContact=function(R){var y,u;return(y=R.contacts)==null?void 0:(u=y.find(function(v){var Q;return(v==null?void 0:(Q=v.icon)==null?void 0:Q.iconType)==="PHONE"}))==null?void 0:u.actionText};
_.J.computeSmsContact=function(R){var y,u;return(y=R.contacts)==null?void 0:(u=y.find(function(v){var Q;return(v==null?void 0:(Q=v.icon)==null?void 0:Q.iconType)==="SMS"}))==null?void 0:u.actionText};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],O2.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],O2.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],O2.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],O2.prototype,"amsterdamEnabled",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.p("design:type",Boolean)],O2.prototype,"useContacts",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.p("design:type",String)],O2.prototype,"phoneContact",void 0);_.A([_.q({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],O2);
_.m(O2,"ytd-single-action-emergency-support-renderer",function(){if(uYJ!==void 0)return uYJ;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return uYJ=R},{mode:1});_.Dl("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var Zm=function(){var R=_.W.apply(this,arguments)||this;R.roundedContainer=!0;R.amsterdamEnabled=_.f("enable_desktop_amsterdam_info_panels");return R};
_.O(Zm,_.W);Zm.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Zm.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Zm.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Zm.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Zm.prototype,"roundedContainer",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Zm.prototype,"amsterdamEnabled",void 0);
_.A([_.q({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],Zm);
_.m(Zm,"ytd-emergency-onebox-renderer",function(){if(yB8!==void 0)return yB8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return yB8=R},{mode:1});var vbI;_.Dl("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var HD=function(){return _.W.apply(this,arguments)||this};
_.O(HD,_.W);HD.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],HD.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],HD.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],HD.prototype,"data",void 0);_.A([_.q({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],HD);
_.m(HD,"ytd-exploratory-results-renderer",function(){if(vbI!==void 0)return vbI;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return vbI=R},{mode:1});var QDg;_.Dl("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var n0=function(){var R=_.W.apply(this,arguments)||this;R.messageData=null;return R};
_.O(n0,_.W);_.J=n0.prototype;_.J.onServiceRequestCompleted=function(R,y){R=y.actions||[];y=0;for(var u=R.length;y<u;y++){var v=R[y],Q=void 0,M=void 0;if((Q=_.e(v,_.Pe))==null?0:(M=Q.item)==null?0:M.messageRenderer)this.messageData=_.e(v,_.Pe).item.messageRenderer}};
_.J.dataChanged=function(){var R=this.data;this.hostElement.hidden=!1;_.FN(this.hostElement,"is-channel",R&&!R.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.J.computeThumbnailWidth=function(R){return R?126:56};
_.J.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.J.onSubmitTap=function(){var R=this.data,y=this.selectedResponseIndex;R!==void 0&&y!==void 0&&(R=R.responses[y],R.responseData&&_.ua().resolve(_.jX).resolveCommand(R.responseData,{form:{element:this.hostElement}}))};
_.J.onDismissTap=function(){this.hostElement.hidden=!0;var R=this.data;R!==void 0&&R.dismissalEndpoint&&_.ua().resolve(_.jX).resolveCommand(R.dismissalEndpoint,{form:{element:this.hostElement}})};
_.J.updateSelectedResponseIndexFromBinding=function(R){this.selectedResponseIndex=R.detail.value};
n0.prototype.onSelectedResponseIndexChange=n0.prototype.onSelectedResponseIndexChange;n0.prototype.dataChanged=n0.prototype.dataChanged;n0.prototype.onServiceRequestCompleted=n0.prototype.onServiceRequestCompleted;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],n0.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],n0.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],n0.prototype,"messageData",void 0);
_.A([_.r(),_.p("design:type",Number)],n0.prototype,"selectedResponseIndex",void 0);_.A([_.O7("#submit-button"),_.p("design:type",HTMLButtonElement)],n0.prototype,"submitButton",void 0);_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Mp]),_.p("design:returntype")],n0.prototype,"onServiceRequestCompleted",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],n0.prototype,"dataChanged",null);
_.A([_.e0("selectedResponseIndex"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],n0.prototype,"onSelectedResponseIndexChange",null);_.A([_.q({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],n0);
_.m(n0,"ytd-feedback-elicitation-single-question-renderer",function(){if(QDg!==void 0)return QDg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return QDg=R},{mode:1});var jDM;var Gv=function(){return _.W.apply(this,arguments)||this};
_.O(Gv,_.W);Gv.prototype.computeThumbnailWidth=function(R){return R?602:428};
Gv.prototype.updateWideFromBinding=function(R){this.wide=R.detail.value};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Gv.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Gv.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Boolean)],Gv.prototype,"wide",void 0);_.A([_.q({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],Gv);
_.m(Gv,"ytd-newspaper-hero-video-renderer",function(){if(jDM!==void 0)return jDM;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return jDM=R},{mode:1});var M9a;var r7=function(){return _.W.apply(this,arguments)||this};
_.O(r7,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],r7.prototype,"rendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],r7.prototype,"data",void 0);_.A([_.q({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],r7);
_.m(r7,"ytd-newspaper-mini-video-renderer",function(){if(M9a!==void 0)return M9a;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return M9a=R},{mode:1});var JBZ;_.Dl("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var PD=function(){return _.W.apply(this,arguments)||this};
_.O(PD,_.W);PD.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([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],PD.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],PD.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],PD.prototype,"data",void 0);_.A([_.q({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],PD);
_.m(PD,"ytd-newspaper-renderer",function(){if(JBZ!==void 0)return JBZ;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return JBZ=R},{mode:1});var V9I;_.Dl("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var WD=function(){var R=_.W.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};
_.O(WD,_.W);_.J=WD.prototype;_.J.attached=function(){_.ua();var R;(R=_.ua().resolve(_.yN(_.ho)))!=null&&(R.playlistVideoListElement=this.hostElement)};
_.J.detached=function(){var R;(R=_.ua().resolve(_.yN(_.ho)))!=null&&(R.playlistVideoListElement=void 0);R=_.ua().resolve(_.yN(_.TU));_.f("web_enable_voting_animation")&&R&&(R.parentElem=void 0,R.videos=[],R.continuationsPresent=!1,R.showRefreshPill=!1)};
_.J.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"}}}}}};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.J.dataChanged=function(){var R=_.ua().resolve(_.yN(_.TU));if(_.f("web_enable_voting_animation")&&this.data&&R){var y=_.hw(this.hostElement).querySelector("#contents");y&&(R.parentElem=y);R.addVideos(this.data.contents)}_.Eg5(this.ytReorderableBehavior)};
_.J.onRendererstamperFinished=function(){this.canReorder&&_.$mw(this.ytReorderableBehavior,_.hw(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.J.onPlaylistReloading=function(){this.isReloading=!0};
_.J.onUpdateSetVideoId=function(R){if(R.detail&&this.data&&this.data.contents){var y=R.detail;R=this.data.contents.findIndex(function(Q){var M;return((M=Q.playlistVideoRenderer)==null?void 0:M.videoId)===y.videoId});
if(!(R<0)&&y.setVideoId&&(this.set("data.contents."+R+".playlistVideoRenderer.setVideoId",y.setVideoId),_.f("web_enable_voting_animation"))){var u;if(R=_.e((u=this.data.contents[R].playlistVideoRenderer)==null?void 0:u.engagementBar,_.O7c)){var v;(v=R.actions)==null||v.forEach(function(Q){if(Q=_.e(Q,_.Z7v))Q.itemId=y.setVideoId})}(u=_.ua().resolve(_.yN(_.TU)))&&EyM(u,y.videoId,y.setVideoId)}}};
_.J.computeContentsClass=function(R){return R?"reloading":""};
_.J.computeIsSortable=function(R,y){return R&&y>0&&!this.isSegment&&!_.f("shorts_in_playlists_web")};
_.J.computeIsEditable=function(R){return R};
_.J.computeCanReorder=function(R){return R};
_.J.handlePlaylistRemoveVideosAction=function(R){if(this.get("playlistRemoveVideosAction.setVideoIds",R)&&this.data&&this.data.contents){R=_.e(R,_.jqK).setVideoIds;for(var y=this.data.contents.length-1;y>=0;){var u=this.data.contents[y].playlistVideoRenderer;u&&u.setVideoId&&R.includes(u.setVideoId)&&this.splice("data.contents",y,1);y--}_.Ik(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.J.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",_.ye(String(R+1)))};
_.J.handleDrop=function(R){R=R.currDragItem;var y=_.EP(R.parentNode.childNodes,R),u=this.data.contents.splice(Number(_.u7(R.data.index))-1,1)[0];this.data.contents.splice(y,0,u);y=y?this.get("contents."+(y-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();R=this.buildReorderServiceEndpoint(R.data.setVideoId,y);this.ytComponentBehavior.resolveCommand(R)};
_.J.buildReorderServiceEndpoint=function(R,y){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",R),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",y),this.data.onReorderEndpoint):null};
_.J.handleUpdatePlaylistAction=function(R){var y;(R=_.e((y=_.e(R,_.MYc))==null?void 0:y.updatedRenderer,_.Htg))&&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)};
_.J.handleAddRendererToItemSectionAction=function(R){var y,u=(y=_.e(R,A$V))==null?void 0:y.renderer,v;u&&((v=_.e(R,A$V))==null?void 0:v.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,u),R=_.ua().resolve(_.yN(_.TU)),_.f("web_enable_voting_animation")&&R&&(u&&(y=_.lUE(u))&&R.recommendedVideos.push({itemId:y,videoId:_.H7G(u),voteCount:_.nyP(u),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.J.isVotingEnabledOnPlaylist=function(R){if(!R)return!1;R=_.V(R);for(R=R.next();!R.done;R=R.next()){var y=void 0;return!!_.e((y=R.value.playlistVideoRenderer)==null?void 0:y.engagementBar,_.O7c)}return!1};
_.J.onAppendContinuationItemsActionFinished=function(){var R;this.isVotingEnabledOnPlaylist((R=this.data)==null?void 0:R.contents)&&(this.updateIndices(),R=_.ua().resolve(_.yN(_.TU)),_.f("web_enable_voting_animation")&&R&&this.data&&R.addVideos(this.data.contents))};
_.J.updateVideoData=function(R){if(R.detail&&this.data&&this.data.contents){var y=R.detail;R=y.toIdx;var u=y.itemId,v=y.newVoteCount,Q=y.voteStatus;y=y.hideItem;var M,K,h=(M=this.data)==null?void 0:(K=M.contents)==null?void 0:K.findIndex(function(x){return _.lUE(x)===u});
if(!(h<0)){M=this.data.contents[h];var b;if((b=M.playlistVideoRenderer)==null?0:b.voteCount)M.playlistVideoRenderer.voteCount=v;var N;if(b=_.e((N=M.playlistVideoRenderer)==null?void 0:N.engagementBar,_.O7c)){var T;(T=b.actions)==null||T.forEach(function(x){(x=_.e(x,_.Z7v))&&x.initialState&&(x.initialState.votes=v,x.initialState.status=Q)})}this.data.contents.splice(h,1);
y||this.data.contents.splice(R,0,M);this.updateIndices()}}};
WD.prototype.updateVideoData=WD.prototype.updateVideoData;WD.prototype.onAppendContinuationItemsActionFinished=WD.prototype.onAppendContinuationItemsActionFinished;WD.prototype.onUpdateSetVideoId=WD.prototype.onUpdateSetVideoId;WD.prototype.onPlaylistReloading=WD.prototype.onPlaylistReloading;WD.prototype.onRendererstamperFinished=WD.prototype.onRendererstamperFinished;WD.prototype.dataChanged=WD.prototype.dataChanged;
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],WD.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],WD.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],WD.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.Cw.YtNextContinuationBehavior),_.p("design:type",Object)],WD.prototype,"ytNextContinuationBehavior",void 0);
_.A([_.n(_.qGg),_.p("design:type",Object)],WD.prototype,"ytReorderableBehavior",void 0);_.A([_.n(_.gb),_.p("design:type",Object)],WD.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],WD.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],WD.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Boolean)],WD.prototype,"isReloading",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],WD.prototype,"isSegment",void 0);_.A([_.r({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.p("design:type",Boolean)],WD.prototype,"isSortable",void 0);_.A([_.r({computed:"computeIsEditable(data.isEditable)"}),_.p("design:type",Boolean)],WD.prototype,"isEditable",void 0);_.A([_.r({computed:"computeCanReorder(data.canReorder)"}),_.p("design:type",Boolean)],WD.prototype,"canReorder",void 0);
_.A([_.r({value:101}),_.p("design:type",Number)],WD.prototype,"scrollMargin",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],WD.prototype,"dataChanged",null);_.A([_.fu("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],WD.prototype,"onRendererstamperFinished",null);
_.A([_.fu("yt-playlist-reloading"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],WD.prototype,"onPlaylistReloading",null);_.A([_.fu("yt-update-set-video-id"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],WD.prototype,"onUpdateSetVideoId",null);
_.A([_.fu("yt-append-continuation-items-action-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],WD.prototype,"onAppendContinuationItemsActionFinished",null);_.A([_.fu("yt-update-video-data-voting-animation"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],WD.prototype,"updateVideoData",null);_.A([_.q({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],WD);
_.m(WD,"ytd-playlist-video-list-renderer",function(){if(V9I!==void 0)return V9I;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return V9I=R},{mode:_.TN("kevlar_poly_si_batch_j047")?1:2});var iPg;var d7=function(){return _.W.apply(this,arguments)||this};
_.O(d7,_.W);d7.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"}}}}};
d7.prototype.onTextWrapperTap=function(R){var y=this.data&&this.data.navigationEndpoint;y&&!_.JF(_.u8(R),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.Ko(this.hostElement,"yt-navigate",{endpoint:y})};
d7.prototype.dataChanged=function(){var R=this.get("data.offerButton.buttonRenderer.serviceEndpoint");R&&R.commandMetadata&&_.e(R.commandMetadata,_.Ec)&&_.e(R.commandMetadata,_.Ec).fireAutomatically&&_.ua().resolve(_.jX).resolveCommand(R,{form:{element:this.hostElement}})};
d7.prototype.dataChanged=d7.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],d7.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],d7.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.gT),_.p("design:type",Object)],d7.prototype,"ytdLockupBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],d7.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,value:function(){return _.f("enable_desktop_search_bigger_thumbs")}}),
_.p("design:type",Boolean)],d7.prototype,"useBiggerThumbs",void 0);_.A([_.r({reflectToAttribute:!0,value:function(){return _.VN("desktop_search_bigger_thumbs_style")}}),
_.p("design:type",String)],d7.prototype,"biggerThumbsStyle",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],d7.prototype,"leftAligned",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],d7.prototype,"dataChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-movie-renderer"})],d7);
_.m(d7,"ytd-movie-renderer",function(){if(iPg!==void 0)return iPg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return iPg=R},{mode:1});var K1K;var U2=function(){var R=_.W.apply(this,arguments)||this;R.rounded=!0;R.pageAttachedTo=void 0;R.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return R};
_.O(U2,_.W);U2.prototype.attached=function(){this.pageAttachedTo=_.ua().resolve(_.iD).getCurrentPage();_.Ko(this.hostElement,"yt-player-attached",this.player)};
U2.prototype.detached=function(){var R;if((R=this.pageAttachedTo)==null?0:R.hostElement)_.Ko(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
U2.prototype.dataChanged=function(){var R;if((R=this.data)==null?0:R.videoId)R={video_id:this.data.videoId,autoplay:!0},!_.f("miniplayer_stop_channel_video_autoplay_killswitch")&&_.ua().resolve(_.cZ).isMiniplayerActive()&&(R.pause_at_start=!0,R.autoplay=!1),this.player.loadVideoWithPlayerVars(R)};
U2.prototype.handleSignalActionPausePlayer=function(){_.hF().pause()};
U2.prototype.dataChanged=U2.prototype.dataChanged;_.A([_.r(),_.p("design:type",Object)],U2.prototype,"data",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],U2.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],U2.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],U2.prototype,"rounded",void 0);_.A([_.O7("#player"),_.p("design:type",Object)],U2.prototype,"player",void 0);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],U2.prototype,"dataChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],U2);
_.m(U2,"ytd-channel-video-player-renderer",function(){if(K1K!==void 0)return K1K;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return K1K=R},{mode:1});var IJK;var h0H;var bPg;var kV=function(){var R=_.W.apply(this,arguments)||this;R.playing=!1;R.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.YS(R);R.active=!1;return R};
_.O(kV,_.W);_.J=kV.prototype;_.J.detached=function(){this.stop()};
_.J.play=function(){var R=this,y,u,v,Q,M;return _.I(function(K){if(K.nextAddress==1)return R.active=!0,y=R.get("data.inlinePlaybackEndpoint.watchEndpoint"),u=y.videoId||R.data.videoId,v=y.startTimeSeconds||0,Q=y.playerParams||null,_.f("kevlar_player_update_killswitch")?K.yield(R.playerEl.update({args:{video_id:u,startSeconds:v,player_params:Q}}),2):(R.playerEl.loadVideoWithPlayerVars({video_id:u,startSeconds:v,player_params:Q,autoplay:!0}),K.jumpTo(2));if(K.nextAddress!=4)return K.yield(R.playerEl.getPlayerPromise(),
4);M=K.yieldResult;M.unloadModule("annotations_module");M.addEventListener("onStateChange",function(h){R.onPlayerStateChange(h)});
_.f$(K)})};
_.J.onPlayerStateChange=function(R){if(this.active)switch(this.playing=R===1,R){case 1:_.Ko(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.Ko(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.J.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.J.resize=function(){var R=this,y;return _.I(function(u){if(u.nextAddress==1)return u.yield(R.playerEl.getPlayerPromise(),2);y=u.yieldResult;y.setSize(NaN,NaN);_.f$(u)})};
_.A([_.r(),_.p("design:type",Object)],kV.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],kV.prototype,"playing",void 0);_.A([_.r(),_.p("design:type",Object)],kV.prototype,"playerId",void 0);_.A([_.O7("#player"),_.p("design:type",Object)],kV.prototype,"playerEl",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],kV);
_.m(kV,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(bPg!==void 0)return bPg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return bPg=R},{mode:1});var F1m;var wFH;var E2=function(){var R=_.W.apply(this,arguments)||this;R.width=0;return R};
_.O(E2,_.W);_.J=E2.prototype;_.J.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.BN(this,this.onEnded));this.mp4El.addEventListener("error",_.BN(this,this.onError))};
_.J.detached=function(){this.videoEl.removeEventListener("ended",_.BN(this,this.onEnded));this.mp4El.removeEventListener("error",_.BN(this,this.onError))};
_.J.play=function(){var R=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var y=this.videoEl.play();y?y.then(function(){R.handleVideoStartPlaying()}).catch(function(){_.Ko(R.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.Ko(this.hostElement,"yt-video-thumbnail-not-playing")};
_.J.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.J.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.J.dataChanged=function(){var R;if((R=this.data)==null?0:R.thumbnailPlaceholder)R=_.b0(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+R+")";this.stop();this.autoplay&&this.play()};
_.J.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.J.onEnded=function(){this.stop();_.Ko(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.J.onError=function(){_.Ko(this.hostElement,"yt-video-thumbnail-error")};
_.J.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.J.getVideoThumbnail=function(R){if(R&&R.length)return R[0]};
E2.prototype.dataChanged=E2.prototype.dataChanged;_.A([_.r(),_.p("design:type",Object)],E2.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],E2.prototype,"animatePlaceholderOnEntrance",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],E2.prototype,"autoplay",void 0);_.A([_.r({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.p("design:type",Object)],E2.prototype,"videoThumbnail",void 0);
_.A([_.r(),_.p("design:type",Boolean)],E2.prototype,"loop",void 0);_.A([_.r(),_.p("design:type",Boolean)],E2.prototype,"isVideoPlaying",void 0);_.A([_.r(),_.p("design:type",Object)],E2.prototype,"width",void 0);_.A([_.O7("#mp4"),_.p("design:type",HTMLElement)],E2.prototype,"mp4El",void 0);_.A([_.O7("#placeholder"),_.p("design:type",HTMLElement)],E2.prototype,"placeholderEl",void 0);_.A([_.O7("#video"),_.p("design:type",HTMLVideoElement)],E2.prototype,"videoEl",void 0);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],E2.prototype,"dataChanged",null);_.A([_.pu({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],E2);
_.m(E2,"yt-video-as-thumbnail-details",function(){if(wFH===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;F1m===void 0&&(F1m=document.createElement("template"));var v=F1m;u.call(y,v.content.cloneNode(!0),R.content.firstChild);wFH=R}R=wFH;return R},{mode:2});var $V=function(){var R=_.W.apply(this,arguments)||this;R.disableGridStateAware=!1;R.animationEnabled=_.f("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};
_.O($V,_.W);_.J=$V.prototype;_.J.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.J.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)};
_.J.attached=function(){this.onWindowResized()};
_.J.detached=function(){this.clearTimeouts()};
_.J.onWindowResized=function(){this.updateSize()};
_.J.computePanelLayout=function(R){return R&&R.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.J.playVideo=function(){var R;this.video&&((R=this.data)==null?0:R.videoThumbnail)&&this.video.play();var y;this.player&&((y=this.data)==null?0:y.inlinePlaybackRenderer)&&this.player.play()};
_.J.stopVideo=function(){var R;this.video&&((R=this.data)==null?0:R.videoThumbnail)&&this.video.stop();var y;this.player&&((y=this.data)==null?0:y.inlinePlaybackRenderer)&&this.player.stop()};
_.J.transitionOut=function(){var R=this;this.transitioningOut=!0;return new Promise(function(y){var u=function(){_.hw(R.hostElement).querySelector("#action-button").removeEventListener("animationend",u);_.WG.cancelJob(v);y();R.transitioningOut=!1};
var v=_.Oh(_.WG,u,1E3);_.hw(R.hostElement).querySelector("#action-button").addEventListener("animationend",u);R.player&&(R.player.playing=!1)})};
_.J.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"};
_.J.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.J.computeAvatarSize=function(R){return R&&R.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.J.onContentClick=function(R){if(!_.JF(_.u8(R),this.hostElement,["A".toString(),"BUTTON".toString()])){var y;if((y=this.data)==null?0:y.navigationEndpoint){var u;this.componentBehavior.resolveCommand((u=this.data)==null?void 0:u.navigationEndpoint)}}};
_.J.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.J.setBackgroundImage=function(R){if(R=this.getBackgroundImageUrl(R))_.hw(this.hostElement).querySelector("#hero").style.backgroundImage="url("+R+")"};
_.J.setScrimLayer=function(R){var y=this.getScrimLayerColorStops(R);R=((R==null?void 0:R.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(R=180);_.EB("HTML_DIR")==="rtl"&&(R=-R);y&&(_.hw(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+R+"deg, "+y+")")};
_.J.isNarrower=function(){return this.hostElement.clientWidth<$V.NARROW_VERSION_SIZE};
_.J.getScrimLayerColorStops=function(){var R,y=(R=this.data)==null?void 0:R.scrimColorValues;if(!y)return null;if(y.length===1)return R=_.Sq(y[0]),R+" 0%, "+R+" 100%";if(y.length===3){var u=[0,72,98];return y.map(function(v,Q){return _.Sq(v)+" "+u[Q]+"%"}).join(",")}return null};
_.J.getBackgroundImageUrl=function(R){return R&&R.largeFormFactorBackgroundThumbnail?_.b0((R.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||R.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.J.onPlaying=function(){this.startVideoTimeout()};
_.J.onEnded=function(){this.rotate()};
_.J.startPanelTimeout=function(){var R=this;if(!this.panelTimeoutJobId){var y=this.get("data.minPanelDisplayDurationMs");y&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.Oh(_.WG,function(){R.rotate()},y))}};
_.J.startVideoTimeout=function(){var R=this;if(!this.videoTimeoutJobId){_.WG.cancelJob(this.panelTimeoutJobId);var y=Date.now()-this.panelTimeoutJobStartMs;y=Math.max(0,this.get("data.minPanelDisplayDurationMs")-y);y=Math.max(this.get("data.minVideoPlayDurationMs")||0,y);this.videoTimeoutJobId=_.Oh(_.WG,function(){R.rotate()},y)}};
_.J.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.WG.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.WG.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.J.rotate=function(){this.clearTimeouts();_.Ko(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.RR.Object.defineProperties($V.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.hw(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.hw(this.hostElement).querySelector("#video")}}});
_.RR.Object.defineProperties($V,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
$V.prototype.onEnded=$V.prototype.onEnded;$V.prototype.onPlaying=$V.prototype.onPlaying;$V.prototype.dataChanged=$V.prototype.dataChanged;_.A([_.n(_.Sc),_.p("design:type",Object)],$V.prototype,"ytdGridStateAwareBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],$V.prototype,"componentBehavior",void 0);_.A([_.n(_.L6.YtdGuideStateAwareBehavior),_.p("design:type",Object)],$V.prototype,"ytdGuideStateAwareBehavior",void 0);
_.A([_.n(_.rhc),_.p("design:type",Object)],$V.prototype,"ytBooleanLogicBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],$V.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],$V.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],$V.prototype,"ytRendererBehavior",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],$V.prototype,"disableGridStateAware",void 0);_.A([_.r(),_.p("design:type",Object)],$V.prototype,"data",void 0);_.A([_.r({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.p("design:type",String)],$V.prototype,"panelLayout",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],$V.prototype,"animationEnabled",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],$V.prototype,"transitioningOut",void 0);
_.A([_.r({computed:"computeMetadataOrder(data)"}),_.p("design:type",Boolean)],$V.prototype,"metadataOrder",void 0);_.A([_.r({computed:"computeByline(data)"}),_.p("design:type",Object)],$V.prototype,"byline",void 0);_.A([_.r({computed:"computeAvatarSize(data)"}),_.p("design:type",Number)],$V.prototype,"avatarSize",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],$V.prototype,"narrow",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],$V.prototype,"narrower",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],$V.prototype,"layoutStyle",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],$V.prototype,"isCarouselInFeed",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$V.prototype,"dataChanged",null);_.A([_.fu("yt-default-promo-panel-renderer-playing"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$V.prototype,"onPlaying",null);
_.A([_.fu("yt-default-promo-panel-renderer-ended"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$V.prototype,"onEnded",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],$V);
_.m($V,"ytd-default-promo-panel-renderer",function(){if(h0H!==void 0)return h0H;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return h0H=R},{mode:1});_.Dl("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var qX=function(){var R=_.W.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};
_.O(qX,_.W);_.J=qX.prototype;_.J.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]]"}}}}}};
_.J.attached=function(){document.addEventListener("yt-page-type-changed",_.BN(this,this.onPageTypeChange));this.currentPageSubtype=_.OZ(location.pathname);this.onWindowResized()};
_.J.detached=function(){this.jobId&&_.WG.cancelJob(this.jobId);this.updateSizeJobId&&_.WG.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.BN(this,this.onPageTypeChange))};
_.J.onPageTypeChange=function(R){this.active=R.detail.newPageSubtype===this.currentPageSubtype};
_.J.onWindowResized=function(){this.updateSize()};
_.J.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.J.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.J.setCarouselItem=function(R){R>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.WG.cancelJob(this.jobId);var y=this.getCurrentPanelElement();y&&y.stopVideo();this.currentItemIndex=R%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(y||(y=this.getCurrentPanelElement()),y.playVideo()):this.startRotationJob()};
_.J.scrollThumbnails=function(R){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var y=this.getCurrentPaginationElement();if(y){var u=_.hw(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?u.style.transform="translateX(0)":(y=y.offsetWidth+8,u.style.transform="translateX(-"+y*(R-Math.ceil(Math.floor(this.overlay.offsetWidth/y)/2)+1)+"px)")}}};
_.J.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=_.Xs(_.WG,function(){R.getCurrentPanelElement().updateSize();R.updateSize()}))};
_.J.getCurrentPanelElement=function(){return _.hw(_.hw(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.J.getCurrentPaginationElement=function(){return _.hw(_.hw(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.J.getNavigationClass=function(R,y){return R===y?"selected":""};
_.J.getNavigationDurationStyle=function(R){return"animation-duration:"+(this.get("data.carouselItems."+R+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.J.onNavigationTap=function(R){var y=this,u=R.model.index;u!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){y.setCarouselItem(u)}),this.autorotateActive=!1)};
_.J.onVideoThumbnailEnded=function(){var R=this;if(this.shouldRotate()){var y=this.getCurrentPaginationElement();y&&(y.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){y.classList.remove("finished");R.setNextCarouselItem()}))}};
_.J.onVideoThumbnailError=function(){this.startRotationJob()};
_.J.onVideoNotPlaying=function(){this.startRotationJob()};
_.J.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.J.startRotationJob=function(){var R=this;_.WG.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.WG.addLowPriorityJob(function(){R.getCurrentPanelElement().transitionOut().then(function(){R.setNextCarouselItem()})},this.rotationTimeout))};
_.J.computeDotMenuVisible=function(R,y){return!!R&&!!R.carouselItems&&R.carouselItems.length>1&&!R.paginationThumbnails||!!y};
_.J.computePaginationThumbnailsVisible=function(R,y){var u,v;return((v=R==null?void 0:(u=R.paginationThumbnails)==null?void 0:u.length)!=null?v:0)>1&&!y};
_.J.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.J.computePaginatorAlignment=function(R){return(R==null?void 0:R.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.J.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.J.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.J.isNarrower=function(R){return(R!=null?R:0)<$V.NARROW_VERSION_SIZE};
qX.prototype.activeChanged=qX.prototype.activeChanged;qX.prototype.onVideoNotPlaying=qX.prototype.onVideoNotPlaying;qX.prototype.onVideoThumbnailError=qX.prototype.onVideoThumbnailError;qX.prototype.onVideoThumbnailEnded=qX.prototype.onVideoThumbnailEnded;qX.prototype.onDataChanged=qX.prototype.onDataChanged;_.A([_.n(_.Sc),_.p("design:type",Object)],qX.prototype,"ytdGridStateAwareBehavior",void 0);
_.A([_.n(_.L6.YtdGuideStateAwareBehavior),_.p("design:type",Object)],qX.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],qX.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],qX.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],qX.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],qX.prototype,"currentItem",void 0);
_.A([_.r(),_.p("design:type",Number)],qX.prototype,"currentItemIndex",void 0);_.A([_.r(),_.p("design:type",Number)],qX.prototype,"rotationTimeout",void 0);_.A([_.r(),_.p("design:type",Number)],qX.prototype,"loopCount",void 0);_.A([_.r({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.p("design:type",String)],qX.prototype,"paginatorAlignment",void 0);_.A([_.r(),_.p("design:type",Number)],qX.prototype,"jobId",void 0);
_.A([_.r(),_.p("design:type",Number)],qX.prototype,"updateSizeJobId",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],qX.prototype,"isCarouselInFeed",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],qX.prototype,"narrower",void 0);_.A([_.r({computed:"computeDotMenuVisible(data, narrower)"}),_.p("design:type",Object)],qX.prototype,"dotMenuVisible",void 0);
_.A([_.r({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.p("design:type",Object)],qX.prototype,"paginationThumbnailsVisible",void 0);_.A([_.r({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.p("design:type",String)],qX.prototype,"layoutType",void 0);_.A([_.r({value:!0,reflectToAttribute:!0}),_.p("design:type",Boolean)],qX.prototype,"autorotateActive",void 0);_.A([_.r(),_.p("design:type",Object)],qX.prototype,"active",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],qX.prototype,"disableGridStateAware",void 0);_.A([_.O7("#overlay"),_.p("design:type",HTMLElement)],qX.prototype,"overlay",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qX.prototype,"onDataChanged",null);
_.A([_.fu("yt-video-thumbnail-ended"),_.fu("yt-default-promo-panel-renderer-rotate"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qX.prototype,"onVideoThumbnailEnded",null);_.A([_.fu("yt-video-thumbnail-error"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qX.prototype,"onVideoThumbnailError",null);
_.A([_.fu("yt-video-thumbnail-not-playing"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qX.prototype,"onVideoNotPlaying",null);_.A([_.GJ("active"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qX.prototype,"activeChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],qX);
_.m(qX,"ytd-carousel-item-renderer",function(){if(IJK!==void 0)return IJK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return IJK=R},{mode:2});var Nig;var TiM;var obJ;var xNZ;var Xu=function(){var R=_.W.apply(this,arguments)||this;R.originalQuery=null;R.originalEndpoint=null;return R};
_.O(Xu,_.W);Xu.prototype.computeShowOriginalQueryWithoutEndpoint_=function(R,y){return!(!R||y)};
_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Xu.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Xu.prototype,"correctedText",void 0);_.A([_.r(),_.p("design:type",Object)],Xu.prototype,"correctedQuery",void 0);_.A([_.r(),_.p("design:type",Object)],Xu.prototype,"correctedEndpoint",void 0);_.A([_.r(),_.p("design:type",Object)],Xu.prototype,"originalText",void 0);_.A([_.r(),_.p("design:type",Object)],Xu.prototype,"originalQuery",void 0);
_.A([_.r(),_.p("design:type",Object)],Xu.prototype,"originalEndpoint",void 0);_.A([_.r({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.p("design:type",Boolean)],Xu.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.A([_.pu({is:"yt-search-query-correction",disableElementRegistration:!0})],Xu);
_.m(Xu,"yt-search-query-correction",function(){if(xNZ===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;obJ===void 0&&(obJ=document.createElement("template"));var v=obJ;u.call(y,v.content.cloneNode(!0),R.content.firstChild);xNZ=R}R=xNZ;return R},{mode:2});_.Dl("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var mZ=function(){return _.W.apply(this,arguments)||this};
_.O(mZ,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],mZ.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],mZ.prototype,"data",void 0);_.A([_.pu({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],mZ);
_.m(mZ,"yt-did-you-mean-renderer",function(){if(TiM===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;Nig===void 0&&(Nig=document.createElement("template"));var v=Nig;u.call(y,v.content.cloneNode(!0),R.content.firstChild);TiM=R}R=TiM;return R},{mode:2});var Bia;var fJK;_.Dl("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var AE=function(){return _.W.apply(this,arguments)||this};
_.O(AE,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],AE.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],AE.prototype,"data",void 0);_.A([_.pu({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],AE);
_.m(AE,"yt-including-results-for-renderer",function(){if(fJK===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;Bia===void 0&&(Bia=document.createElement("template"));var v=Bia;u.call(y,v.content.cloneNode(!0),R.content.firstChild);fJK=R}R=fJK;return R},{mode:2});var e0P;var lJM;_.Dl("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var Dm=function(){return _.W.apply(this,arguments)||this};
_.O(Dm,_.W);Dm.prototype.computeExtraClasses_=function(R,y){var u="";R&&(u+=" "+R.toLowerCase().replace(/_/g,"-"));y&&(u+=" "+y.toLowerCase().replace(/_/g,"-"));return u};
Dm.prototype.computeUrlImg_=function(){var R=this.data;R.image&&(_.hw(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.b0(R.image.thumbnails,Number.MAX_VALUE)+")")};
Dm.prototype.computeUrlImg_=Dm.prototype.computeUrlImg_;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Dm.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Dm.prototype,"data",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Dm.prototype,"computeUrlImg_",null);_.A([_.pu({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],Dm);
_.m(Dm,"yt-music-pass-feature-info-renderer",function(){if(lJM===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;e0P===void 0&&(e0P=document.createElement("template"));var v=e0P;u.call(y,v.content.cloneNode(!0),R.content.firstChild);lJM=R}R=lJM;return R},{mode:2});var OPM;var ZP8;_.Dl("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var p0=function(){return _.W.apply(this,arguments)||this};
_.O(p0,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],p0.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],p0.prototype,"data",void 0);_.A([_.pu({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],p0);
_.m(p0,"yt-no-results-found-showing-results-for-renderer",function(){if(ZP8===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;OPM===void 0&&(OPM=document.createElement("template"));var v=OPM;u.call(y,v.content.cloneNode(!0),R.content.firstChild);ZP8=R}R=ZP8;return R},{mode:2});var HPa;var nbJ;_.Dl("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var tE=function(){return _.W.apply(this,arguments)||this};
_.O(tE,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],tE.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],tE.prototype,"data",void 0);_.A([_.pu({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],tE);
_.m(tE,"yt-results-without-quotes-renderer",function(){if(nbJ===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;HPa===void 0&&(HPa=document.createElement("template"));var v=HPa;u.call(y,v.content.cloneNode(!0),R.content.firstChild);nbJ=R}R=nbJ;return R},{mode:2});var GAg;var rBa;_.Dl("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var cD=function(){return _.W.apply(this,arguments)||this};
_.O(cD,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],cD.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],cD.prototype,"data",void 0);_.A([_.pu({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],cD);
_.m(cD,"yt-search-no-results-renderer",function(){if(rBa===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;GAg===void 0&&(GAg=document.createElement("template"));var v=GAg;u.call(y,v.content.cloneNode(!0),R.content.firstChild);rBa=R}R=rBa;return R},{mode:2});var PPo;var W1I;_.Dl("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var a9=function(){return _.W.apply(this,arguments)||this};
_.O(a9,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],a9.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],a9.prototype,"data",void 0);_.A([_.pu({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],a9);
_.m(a9,"yt-showing-results-for-renderer",function(){if(W1I===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;PPo===void 0&&(PPo=document.createElement("template"));var v=PPo;u.call(y,v.content.cloneNode(!0),R.content.firstChild);W1I=R}R=W1I;return R},{mode:2});var dNp;var UNp;var kAa;var EbM;var Ss=function(){var R=_.W.apply(this,arguments)||this;R.answerExpanded=!1;return R};
_.O(Ss,_.W);Ss.prototype.toggleAnswer_=function(R){var y=_.vN(R);y&&y.classList.contains("yt-simple-endpoint")||(R.preventDefault(),R.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
Ss.prototype.toggleAnswer_=Ss.prototype.toggleAnswer_;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Ss.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Ss.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Ss.prototype,"answerExpanded",void 0);_.A([_.fu("tap"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Ss.prototype,"toggleAnswer_",null);
_.A([_.pu({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],Ss);
_.m(Ss,"yt-generic-faq-question-renderer",function(){if(EbM===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;kAa===void 0&&(kAa=document.createElement("template"));var v=kAa;u.call(y,v.content.cloneNode(!0),R.content.firstChild);EbM=R}R=EbM;return R},{mode:2});_.Dl("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var YV=function(){return _.W.apply(this,arguments)||this};
_.O(YV,_.W);YV.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],YV.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],YV.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],YV.prototype,"data",void 0);_.A([_.pu({is:"yt-faq-section-renderer",disableElementRegistration:!0})],YV);
_.m(YV,"yt-faq-section-renderer",function(){if(UNp===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;dNp===void 0&&(dNp=document.createElement("template"));var v=dNp;u.call(y,v.content.cloneNode(!0),R.content.firstChild);UNp=R}R=UNp;return R},{mode:2});var $N8;var q_M;_.Dl("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var L0=function(){return _.W.apply(this,arguments)||this};
_.O(L0,_.W);
L0.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],L0.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],L0.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],L0.prototype,"data",void 0);_.A([_.pu({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],L0);
_.m(L0,"yt-offer-item-expanded-renderer",function(){if(q_M===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;$N8===void 0&&($N8=document.createElement("template"));var v=$N8;u.call(y,v.content.cloneNode(!0),R.content.firstChild);q_M=R}R=q_M;return R},{mode:2});var XFZ;var mNa;_.Dl("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var s2=function(){return _.W.apply(this,arguments)||this};
_.O(s2,_.W);
s2.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"}}}}};
s2.prototype.computeFullWidthMode=function(R){return!(!R||!R.fullWidthMode)};
s2.prototype.computeBorderlessMode=function(R){return!(!R||!R.borderlessMode)};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],s2.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],s2.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],s2.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.p("design:type",Boolean)],s2.prototype,"fullWidthMode",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.p("design:type",Boolean)],s2.prototype,"borderlessMode",void 0);_.A([_.pu({is:"yt-offer-item-renderer",disableElementRegistration:!0})],s2);
_.m(s2,"yt-offer-item-renderer",function(){if(mNa===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;XFZ===void 0&&(XFZ=document.createElement("template"));var v=XFZ;u.call(y,v.content.cloneNode(!0),R.content.firstChild);mNa=R}R=mNa;return R},{mode:2});var ABa;var DNo;_.Dl("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var zv=function(){return _.W.apply(this,arguments)||this};
_.O(zv,_.W);zv.prototype.computeAriaLevel_=function(R){return this.getLevelID_(R)};
zv.prototype.getLevelID_=function(R){return(R=R.match(/[0-9]+$/))&&R.length==1?R[0]:"1"};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],zv.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],zv.prototype,"data",void 0);_.A([_.r({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.p("design:type",String)],zv.prototype,"ariaLevel",void 0);_.A([_.r({value:"heading",reflectToAttribute:!0}),_.p("design:type",String)],zv.prototype,"role",void 0);
_.A([_.r({value:-1,reflectToAttribute:!0}),_.p("design:type",Number)],zv.prototype,"tabindex",void 0);_.A([_.pu({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],zv);
_.m(zv,"yt-subscription-product-header-renderer",function(){if(DNo===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;ABa===void 0&&(ABa=document.createElement("template"));var v=ABa;u.call(y,v.content.cloneNode(!0),R.content.firstChild);DNo=R}R=DNo;return R},{mode:2});var pFI;var t9p;_.Dl("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var g7=function(){return _.W.apply(this,arguments)||this};
_.O(g7,_.W);g7.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:_.ph("menuRenderer"),events:!0}}};
g7.prototype.onStampFinished_=function(){_.hw(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
g7.prototype.onStampFinished_=g7.prototype.onStampFinished_;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],g7.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],g7.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],g7.prototype,"data",void 0);_.A([_.fu("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],g7.prototype,"onStampFinished_",null);
_.A([_.pu({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],g7);
_.m(g7,"yt-subscription-product-renderer",function(){if(t9p===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;pFI===void 0&&(pFI=document.createElement("template"));var v=pFI;u.call(y,v.content.cloneNode(!0),R.content.firstChild);t9p=R}R=t9p;return R},{mode:2});var cBV;var aJm;_.Dl("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var C0=function(){return _.W.apply(this,arguments)||this};
_.O(C0,_.W);C0.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
C0.prototype.imageScrimColorValuesChanged_=function(){var R,y=(R=this.data)==null?void 0:R.imageScrimColorValues;_.hw(this.hostElement).querySelector("#scrim").style.backgroundColor=y?_.Sq(y[0]):"transparent"};
C0.prototype.imageScrimColorValuesChanged_=C0.prototype.imageScrimColorValuesChanged_;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],C0.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],C0.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],C0.prototype,"data",void 0);
_.A([_.e0("data.imageScrimColorValues"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],C0.prototype,"imageScrimColorValuesChanged_",null);_.A([_.pu({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],C0);
_.m(C0,"yt-subscription-product-upsell-offer-renderer",function(){if(aJm===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;cBV===void 0&&(cBV=document.createElement("template"));var v=cBV;u.call(y,v.content.cloneNode(!0),R.content.firstChild);aJm=R}R=aJm;return R},{mode:2});var S_H;var Y_a;var L1a;var sDI;var z0V;var gbK;var Rl=function(){return _.W.apply(this,arguments)||this};
_.O(Rl,_.W);Rl.prototype.onYtServiceRequestError_=function(R){_.JG(this.hostElement,R.detail.error.message)};
Rl.prototype.onYtServiceRequestError_=Rl.prototype.onYtServiceRequestError_;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Rl.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Rl.prototype,"data",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],Rl.prototype,"collapsible",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Rl.prototype,"isManageRed",void 0);
_.A([_.fu("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Rl.prototype,"onYtServiceRequestError_",null);_.A([_.pu({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],Rl);
_.m(Rl,"yt-single-ypc-offer-renderer",function(){if(gbK===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;z0V===void 0&&(z0V=document.createElement("template"));var v=z0V;u.call(y,v.content.cloneNode(!0),R.content.firstChild);gbK=R}R=gbK;return R},{mode:2});var yx=function(){return _.W.apply(this,arguments)||this};
_.O(yx,_.W);yx.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],yx.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],yx.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],yx.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],yx.prototype,"isManageRed",void 0);_.A([_.pu({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],yx);
_.m(yx,"yt-single-ypc-offer-list-renderer",function(){if(sDI===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;L1a===void 0&&(L1a=document.createElement("template"));var v=L1a;u.call(y,v.content.cloneNode(!0),R.content.firstChild);sDI=R}R=sDI;return R},{mode:2});var CPm;var RyI;_.Dl("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var u5=function(){return _.W.apply(this,arguments)||this};
_.O(u5,_.W);u5.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],u5.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],u5.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],u5.prototype,"data",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],u5.prototype,"isManageRed",void 0);_.A([_.pu({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],u5);
_.m(u5,"yt-ypc-offers-list-renderer",function(){if(RyI===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;CPm===void 0&&(CPm=document.createElement("template"));var v=CPm;u.call(y,v.content.cloneNode(!0),R.content.firstChild);RyI=R}R=RyI;return R},{mode:2});_.Dl("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var v6=function(){return _.W.apply(this,arguments)||this};
_.O(v6,_.W);
v6.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],v6.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],v6.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],v6.prototype,"data",void 0);_.A([_.pu({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],v6);
_.m(v6,"yt-unlimited-manage-subscription-page-renderer",function(){if(Y_a===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;S_H===void 0&&(S_H=document.createElement("template"));var v=S_H;u.call(y,v.content.cloneNode(!0),R.content.firstChild);Y_a=R}R=Y_a;return R},{mode:2});var yEM;var uua;var Qx=function(){return _.W.apply(this,arguments)||this};
_.O(Qx,_.W);_.J=Qx.prototype;_.J.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.J.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.J.onKeypress_=function(R){R.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.J.handleHeaderTap_=function(R){R.preventDefault();R.stopPropagation();this.expandOffers_()};
_.J.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.J.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
Qx.prototype.dataChanged_=Qx.prototype.dataChanged_;_.A([_.n(_.Gh),_.p("design:type",Object)],Qx.prototype,"ironA11yKeysBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Qx.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Qx.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Qx.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Qx.prototype,"offersVisible_",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Qx.prototype,"dataChanged_",null);_.A([_.pu({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],Qx);
_.m(Qx,"yt-collapsible-ypc-offer-renderer",function(){if(uua===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;yEM===void 0&&(yEM=document.createElement("template"));var v=yEM;u.call(y,v.content.cloneNode(!0),R.content.firstChild);uua=R}R=uua;return R},{mode:2});var vVM;var Q9a;_.Dl("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var jN=function(){return _.W.apply(this,arguments)||this};
_.O(jN,_.W);_.J=jN.prototype;_.J.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.J.dataChanged_=function(){if(this.data.backgroundImage){var R=_.b0(this.data.backgroundImage.thumbnails,screen.width),y=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=y?"linear-gradient(180deg, "+y+"), url("+R+")":"url("+R+")";this.data.gtmId&&_.qL(this.data.gtmId,_.EB("GL",""))}};
_.J.onYtServiceRequestError_=function(R){_.JG(this.hostElement,R.detail.error.message)};
_.J.getScrimLayerColorStops_=function(){var R,y,u=(R=this.data.unlimitedHeaderV2Data)==null?void 0:(y=R.unlimitedHeaderV2Data)==null?void 0:y.scrimLayerColors;if(!u)return null;var v=100/u.length;return u.map(function(Q,M){M*=v;return _.Sq(Q)+" "+M+"%"}).join(",")};
_.J.computeLogoWithPadding=function(R){var y,u,v;return(R=(y=R.unlimitedLogoImage)==null?void 0:(u=y.thumbnails)==null?void 0:(v=u[0])==null?void 0:v.height)&&R%31===0?!0:!1};
jN.prototype.onYtServiceRequestError_=jN.prototype.onYtServiceRequestError_;jN.prototype.dataChanged_=jN.prototype.dataChanged_;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],jN.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],jN.prototype,"ytRendererBehavior",void 0);_.A([_.r({computed:"computeLogoWithPadding(data)"}),_.p("design:type",Boolean)],jN.prototype,"logoWithPadding",void 0);
_.A([_.r(),_.p("design:type",Object)],jN.prototype,"data",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jN.prototype,"dataChanged_",null);_.A([_.fu("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],jN.prototype,"onYtServiceRequestError_",null);_.A([_.pu({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],jN);
_.m(jN,"yt-unlimited-page-header-renderer",function(){if(Q9a===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;vVM===void 0&&(vVM=document.createElement("template"));var v=vVM;u.call(y,v.content.cloneNode(!0),R.content.firstChild);Q9a=R}R=Q9a;return R},{mode:2});var j9P;var MsP;_.Dl("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var Mb=function(){return _.W.apply(this,arguments)||this};
_.O(Mb,_.W);Mb.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Mb.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Mb.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Mb.prototype,"data",void 0);_.A([_.pu({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],Mb);
_.m(Mb,"yt-unlimited-user-notification-renderer",function(){if(MsP===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;j9P===void 0&&(j9P=document.createElement("template"));var v=j9P;u.call(y,v.content.cloneNode(!0),R.content.firstChild);MsP=R}R=MsP;return R},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.dSZ=_.Jd(function(R){var y=_.jb(R,{numberOfChips:5}).numberOfChips;return _.F("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.F(_.eS,{each:function(){return Array(y==null?void 0:y())}},function(){return _.F("div",{class:"ytGhostChipShelfChip"})}))},"Cg");_.USp=_.Jd(function(R){var y=function(){var M;return((M=R.data)==null?void 0:M.call(R).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},u=_.eo(),v=_.ua().resolve(_.QX);
_.nG(function(){requestAnimationFrame(function(){var M;(M=u.lottieEl)==null||M.addEventListener("DOMLoaded",function(){var K;(K=R.onLottieLoaded)==null||K.call(R)})})});
var Q={};return _.F("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var M;return((M=R.data)==null?void 0:M.call(R).targetId)||""}},_.F(_.F2,{className:_.Oy((Q.ytChatLoadingViewModelRtl=v==="rtl",Q)),
animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:y()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||y()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:y()}}},
animationRef:u}))},"Dg");
}catch(e){_._DumpException(e)}
try{
var Ypm,Luo,snP,zCm,gaM,C$m,R2m,y7I,vBM,I6H,fH,Kqa,MS7,iG8,VSp,J7V,jMp,h2g,bGP,Fq7,wuJ,eJ,NBp,TBJ,BBZ,Zg,oBa,H9,ly,nH,xsp,OF,f6p,e2J,l6P,OGJ,ZGH,HGZ,G7K,ds8,EBP,$sP,qBI,Xu8,msH,A7J,Ds8,tSM,a6m,YBV,LqP,sMM,z27,Cra,RXa,yTM,uqZ,vzJ,Qhm,jh7,JTJ,IIa,Ki8,VXM,hXm,iJP,bJ8,TRZ,NRo,Fi8,w5g,rF,oz7,xCJ,fIZ,nza,GuH,rT8,PaJ,WiH,dCP,UCZ,kuJ,EzI,$CI,X5p,mCV,ATH,OJM;
_.xw=function(R){var y=new _.OL("Error accessing DB");return _.GdW().then(function(u){return new Promise(function(v,Q){try{var M=u.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(R);M.onsuccess=function(){var K=M.result;v(K?K.value:null)};
M.onerror=function(){y.params={key:R,source:"onerror"};Q(y)}}catch(K){y.params={key:R,
thrownError:String(K)},Q(y)}})},function(){return null})};
_.Sp8=function(R,y){var u=_.RUz(y);u!=="javascript:"&&u!=="data:"&&R.setAttribute("href",y)};
Ypm=function(R,y){return _.TI(R.entities,"flowStateEntity",y)};
Luo=function(R,y){return _.TI(R.entities,"contextNoteUserRatingEntityPayload",y)};
snP=function(R){return _.UP(R,function(y){return y.languageCode==="en"})};
zCm=function(R){var y=B9;if(_.jna(R))R.setOption("captions","stickyLoading",{}),R.setOption("captions","track",{});else{var u=_.UP(_.StT(R),function(v){return v.displayName===y});
R.setOption("captions","track",u)}};
gaM=function(R){if(!R)return 0;var y=R.getPresentingPlayerType(),u=R.getVideoData();return u&&u.isLive?(R=R.getProgressState(y),R.seekableEnd-R.seekableStart):R.getDuration(y)};
C$m=function(R,y){for(var u=_.V(Object.keys(R)),v=u.next();!v.done;v=u.next())if(v=v.value,R[v]!==y[v])return!1;return!0};
R2m=function(){return document.getElementById("player-control-overlay")};
y7I=function(R){R!==-1&&!_.f("player_controls_log_creation_killswitch")&&R2m()&&(_.qQ("pcu_cs",R),_.qQ("pcu_ce"))};
vBM=function(R){return _.F("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(R.subscribeButton?[R.subscribeButton,R.channelAccess]:[R.channelAccess]).map(function(y){return _.F("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.F("div",{class:"yt-profile-identity-info-view-model-wiz--button"},unK(y)))}))};
_.QMK=function(R){var y=R.data;var u=R.hideDivider;R=R.isChannelInfoCard;var v={};v=(v["yt-profile-identity-info-view-model-wiz__frame"]=!0,v["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!y.channelBanner,v);v={class:_.Zl(v)};var Q,M={imageBannerViewModel:{image:(Q=y.channelBanner)==null?void 0:Q.image,style:"IMAGE_BANNER_STYLE_INSET"}};Q=_.F("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},y.channelBanner?_.F("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
unK(M,{imageBannerViewModel:{isPositionRelative:!0}})):null);M=_.F("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},unK(y.avatar));var K;var h=_.F("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.F("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},y.channelDisplayName),y.verifiedOrOacBadge?_.F("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.F(_.MR,{data:{thumbnails:[{url:(K=y.verifiedOrOacBadge)==null?void 0:K.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);K=_.F("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},h,unK(y.threeDotMenu));h=_.F("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.F("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.F("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},y.channelHandle),y.channelPronouns&&y.channelHandle?_.F("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.F("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},y.channelPronouns)),_.F("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.F("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},y.leftOfBulletInfo),y.leftOfBulletInfo&&y.rightOfBulletInfo?_.F("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.F("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},y.rightOfBulletInfo)));K=_.F("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},K,h);return _.F("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.F("div",v,Q,_.F("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},M,K),y.channelDescription?_.F("div",{class:R?"yt-profile-identity-info-view-model-wiz__channel-description-alternate":"yt-profile-identity-info-view-model-wiz__channel-description"},
y.channelDescription):null,vBM(y),u?null:_.F("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
I6H=function(R,y){var u=_.Qj(R,{}),v=jMp("top",y),Q=jMp("bottom",y),M=jMp("left",y),K=jMp("right",y);return _.P_({top:function(){return fH(u().position,v)},
bottom:function(){return fH(u().position,Q)},
left:function(){return fH(u().position,M)},
right:function(){return fH(u().position,K)},
position:function(){return fH(u().positionType,MS7)},
height:function(){return fH(u().height,eJ)},
width:function(){return fH(u().width,eJ)},
"min-width":function(){return fH(u().minWidth,eJ)},
"min-height":function(){return fH(u().minHeight,eJ)},
"max-width":function(){return fH(u().maxWidth,eJ)},
"max-height":function(){return fH(u().maxHeight,eJ)},
"aspect-ratio":function(){return fH(u().aspectRatio,String)},
"margin-top":function(){return fH(u().margin,v)},
"margin-bottom":function(){return fH(u().margin,Q)},
"margin-left":function(){return fH(u().margin,M)},
"margin-right":function(){return fH(u().margin,K)},
"padding-top":function(){return fH(u().padding,v)},
"padding-bottom":function(){return fH(u().padding,Q)},
"padding-left":function(){return fH(u().padding,M)},
"padding-right":function(){return fH(u().padding,K)},
"flex-direction":function(){return fH(u().flexDirection,J7V)},
"justify-content":function(){return fH(u().justifyContent,VSp)},
"align-items":function(){return fH(u().alignItems,iG8)},
"flex-grow":function(){return fH(u().flexGrow,String)},
"flex-shrink":function(){return fH(u().flexShrink,String)},
"flex-basis":function(){return fH(u().flexBasis,eJ)},
"align-self":function(){return fH(u().alignSelf,iG8)},
"flex-wrap":function(){return fH(u().flexWrap,Kqa)},
"align-content":function(){return fH(u().alignContent,iG8)}})};
fH=function(R,y){return R!==void 0?y(R):void 0};
Kqa=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"}};
MS7=function(R){switch(R){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
iG8=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"}};
VSp=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"}};
J7V=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"}};
jMp=function(R,y){var u=y==="rtl";switch(R){case "top":var v=h2g;break;case "bottom":v=bGP;break;case "left":v=Fq7;break;default:v=wuJ}return function(Q){return fH(v(Q,u),eJ)}};
h2g=function(R){var y=R.top;var u=R.vertical;R=R.all;var v;return(v=y!=null?y:u)!=null?v:R};
bGP=function(R){var y=R.bottom;var u=R.vertical;R=R.all;var v;return(v=y!=null?y:u)!=null?v:R};
Fq7=function(R,y){var u=R.left;var v=R.end;var Q=R.start;var M=R.horizontal;R=R.all;var K,h;return(h=(K=u!=null?u:y?v:Q)!=null?K:M)!=null?h:R};
wuJ=function(R,y){var u=R.right;var v=R.end;var Q=R.start;var M=R.horizontal;R=R.all;var K,h;return(h=(K=u!=null?u:y?Q:v)!=null?K:M)!=null?h:R};
eJ=function(R){var y=R.value;switch(R.unit){case "YPC_DIMENSION_UNIT_POINT":return y+"px";case "YPC_DIMENSION_UNIT_FRACTION":return y+"%";default:return""+y}};
NBp=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"}};
TBJ=function(R){var y=R!=null?R:{};R=y.fontRole;var u=y.fontSize;y=y.fontWeight;if(R!==null&&u!==null)switch(R){case "YPC_FONT_ROLE_DISPLAY":switch(u){case "YPC_FONT_SIZE_L":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(u){case "YPC_FONT_SIZE_L":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return y===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(u){case "YPC_FONT_SIZE_XL":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
BBZ=function(R,y,u){function v(T){return Object.values(T).map(function(x){var B=x.productId;x=x.pricingOptionIndex;return ly(Q(B).pricingOptions,x).pricingOptionId})}
function Q(T){return h().get(T)}
function M(T){T=v(T);u(T)}
var K=OF([R,y],function(T,x){var B=T==null?void 0:T.selectedPricingOptions;T={};var l=!0;if(B&&x.length)for(var Z=_.V(x),P=Z.next();!P.done;P=Z.next()){P=P.value;var k=oBa(P.pricingOptions,function(z){a:{z=z.pricingOptionId;for(var c=_.V(B),a=c.next();!a.done;a=c.next())if(a.value===z){z=!0;break a}z=!1}return z});
if(k>=0){l=!1;var E=ly(P.pricingOptions,k),D=void 0;T[P.groupId]={productId:P.productId,pricingOptionIndex:k,pricingGroupAttributes:(D=E)==null?void 0:D.pricingGroupAttributes}}}l&&x.length&&(l=ly(x[0].pricingOptions,0),T[x[0].groupId]={productId:x[0].productId,pricingOptionIndex:0,pricingGroupAttributes:l==null?void 0:l.pricingGroupAttributes});return T}),h=OF([y],function(T){return new Map(T.map(function(x){return[x.productId,
x]}))}),b=OF([y],function(T){var x=new Map;
T=_.V(T);for(var B=T.next();!B.done;B=T.next()){var l=B.value;B=l.groupId;var Z=l.productId;l=_.V(Zg(l.pricingOptions));for(var P=l.next();!P.done;P=l.next()){var k=_.V(P.value);P=k.next().value;k=k.next().value;x.set(k.pricingOptionId,{groupId:B,productId:Z,index:P,pricingOption:k,pricingGroupAttributes:k.pricingGroupAttributes})}}return x}),N=OF([y],function(T){var x=new Map;
T=_.V(T);for(var B=T.next();!B.done;B=T.next()){var l=B.value;B=l.groupId;var Z=l.productId,P=void 0;l=_.V(Zg((P=l.pricingGroups)!=null?P:[]));for(P=l.next();!P.done;P=l.next()){var k=_.V(P.value);P=k.next().value;k=k.next().value;x.set(k.pricingGroupId,{groupId:B,productId:Z,index:P,pricingGroup:k,pricingGroupAttributes:k.pricingGroupAttributes})}}return x});
return{getProductById:Q,isProductSelected:function(T){var x=Q(T);if(!x)return!1;var B;return((B=K()[x.groupId])==null?void 0:B.productId)===T},
getSelectedPricingOptions:function(){return Object.values(K()).map(function(T){var x=T.productId;T=T.pricingOptionIndex;return ly(Q(x).pricingOptions,T)})},
getSelectedPricingGroupAttributesByGroupId:function(T){var x;return(T=(x=K()[T])==null?void 0:x.pricingGroupAttributes)?Array.from(T):void 0},
getSelectedProductByGroupId:function(T){var x;return(T=(x=K()[T])==null?void 0:x.productId)?Q(T):void 0},
onProductSelected:function(T){var x=Q(T);if(x){var B=K(),l;if(((l=B[x.groupId])==null?void 0:l.productId)!==T){var Z,P;l=(P=(Z=B[x.groupId])==null?void 0:Z.pricingOptionIndex)!=null?P:0;H9(x.pricingOptions)<=l&&(l=0);Z=ly(x.pricingOptions,l);var k;P={};M(Object.assign({},B,(P[x.groupId]={productId:T,pricingOptionIndex:l,pricingGroupAttributes:(k=Z==null?void 0:Z.pricingGroupAttributes)!=null?k:[]},P)))}}},
onPricingOptionSelected:function(T){var x=b().get(T);if(x){T=x.groupId;var B=x.productId;x=x.index;var l=K(),Z,P;if(((Z=l[T])==null?void 0:Z.productId)!==B||((P=l[T])==null?void 0:P.pricingOptionIndex)!==x){var k,E;Z={};M(Object.assign({},l,(Z[T]={productId:B,pricingOptionIndex:x,pricingGroupAttributes:(E=(k=l[T])==null?void 0:k.pricingGroupAttributes)!=null?E:[]},Z)))}}},
onPricingGroupSelected:function(T){var x=N().get(T);if(x){T=x.groupId;var B=x.productId,l=x.pricingGroup.pricingGroupAttributes,Z=Q(B);if(Z){x=K();var P=x[T].pricingGroupAttributes,k;if(((k=x[T])==null?void 0:k.productId)!==B||!nH(xsp(P,H9(l)),l)){k=Array.from(l);for(l=H9(l);l<H9(P);l++){var E="",D=!1,z=Array.from(k);z.push(ly(P,l));for(var c=_.V(Z.pricingGroups),a=c.next();!a.done;a=c.next())if(a=a.value,nH(a.pricingGroupAttributes,z)){k.push(ly(P,l));D=!0;break}else E===""&&H9(a.pricingGroupAttributes)===
z.length&&nH(xsp(a.pricingGroupAttributes,k.length),k)&&(E=ly(a.pricingGroupAttributes,l));D||k.push(E)}E=x[T].pricingOptionIndex;l=[];D=new Map;z=0;Z=_.V(Zg(Z.pricingOptions));for(c=Z.next();!c.done;c=Z.next())a=_.V(c.value),c=a.next().value,a=a.next().value,nH(a.pricingGroupAttributes,k)&&l.push(c),nH(a.pricingGroupAttributes,P)&&D.set(c,z++);l.length===0?P=0:(P=D.get(E),P=P!==void 0&&P<l.length?l[P]:l[0]);Z={};M(Object.assign({},x,(Z[T]={productId:B,pricingOptionIndex:P,pricingGroupAttributes:k},
Z)))}}}},
onClearGroupSelected:function(T){var x=K();x[T]&&(x=Object.fromEntries(Object.entries(x).filter(function(B){return _.V(B).next().value!==T})),M(x))}}};
Zg=function(R){return function u(){var v,Q,M,K,h;return _.wX(u,function(b){switch(b.nextAddress){case 1:_.o1(b,2),v=0,Q=_.V(R),M=Q.next();case 4:if(M.done){b.jumpTo(2);break}K=M.value;h=_.Nr;return b.yield([v++,K],7);case 7:h(b.yieldResult);M=Q.next();b.jumpTo(4);break;case 2:_.T9(b),_.xL(b,0)}})}()};
oBa=function(R,y){R=_.V(Zg(R));for(var u=R.next();!u.done;u=R.next()){var v=_.V(u.value);u=v.next().value;v=v.next().value;if(y(v))return u}return-1};
H9=function(R){var y=0;for(R=R[Symbol.iterator]();!R.next().done;)++y;return y};
ly=function(R,y){R=_.V(Zg(R));for(var u=R.next();!u.done;u=R.next()){var v=_.V(u.value);u=v.next().value;v=v.next().value;if(u===y)return v}};
nH=function(R,y){if(!R&&!y)return!0;if(!R||!y)return!1;R=Array.from(R);y=Array.from(y);if(R.length!==y.length)return!1;for(var u=0;u<R.length;u++)if(R[u]!==y[u])return!1;return!0};
xsp=function(R,y){y=y===void 0?Infinity:y;var u=[];R=_.V(Zg(R));for(var v=R.next();!v.done;v=R.next()){var Q=_.V(v.value);v=Q.next().value;Q=Q.next().value;if(v>=y)break;v>=0&&u.push(Q)}return u};
OF=function(R,y){var u,v;return function(){for(var Q=R.map(function(K){return K()}),M=0;M<Q.length;M++)if(!u||Q[M]!==u[M]){u=Q;
v=y.apply(null,_.P$(Q));break}return v}};
f6p=function(R,y,u){var v=[];R=_.V(R);for(var Q=R.next();!Q.done;Q=R.next()){Q=Q.value;var M=void 0;((M=y)==null?0:M.length)&&!nH(Q.pricingGroupAttributes,y)||v.push({pricingOption:Q,isSelected:u.includes(Q.pricingOptionId)})}return v};
e2J=function(R,y){return _.TI(R.entities,"pdpStateEntity",y)};
l6P=function(R){var y,u;return!!(R.productId&&R.groupId&&((y=R.pricingOptions)==null?0:y.length)&&R.pricingOptions.every(function(v){return v.pricingOptionId})&&((u=R.pricingGroups)==null||!u.length||Array.isArray(R.pricingGroups)&&R.pricingGroups.every(function(v){return v.pricingGroupId&&v.pricingGroupAttributes&&v.pricingGroupAttributes.length>0})))};
OGJ=function(R,y,u){return BBZ(R,OF([y],function(v){return v.filter(l6P)}),u)};
ZGH=function(R,y){return y.length===0?[R]:[R.slice(0,y[0]),R.slice(y[0])].filter(function(u){return u.length>0})};
HGZ=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""}};
G7K=function(R,y,u,v){v=Object.assign({},v);_.Dr(v,nBP,{selectedOptionId:R,primaryButtonOverride:u});_.uX().dispatch(_.Gw("flowStateEntity",y,v))};
_.WqJ=function(){if(!r7p){var R=_.V(_.In(new Map,void 0,"UJImUe"));r7p=R.next().value;PrI=R.next().value}return r7p};
ds8=function(R){if(R)return _.WqJ()().get(R)};
_.Usg=function(R,y){if(R&&y){var u=_.WqJ();u().set(R,y);R=u();PrI(new Map(R))}};
_.k7a=function(R){return{onSubmit:function(){var y;(y=ds8(R()))==null||y.onSubmit()},
isValid:function(){var y=ds8(R());return y?y.isValid():!0},
isSubmitting:function(){var y,u;return!!((y=ds8(R()))==null?0:(u=y.isSubmitting)==null?0:u.call(y))}}};
EBP=function(R){switch(R){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleContentFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleContentFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleContentFontSizeM";default:return"ytLandingPageViewModelHeaderTitleContentFontSizeL"}};
$sP=function(R){switch(R){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeM";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_L":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XL":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXL";
default:return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL"}};
qBI=function(R,y){return _.TI(R.entities,"contextNoteFeedEntityPayload",y)};
Xu8=function(R,y){switch(R){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return y==null?void 0:y.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return y==null?void 0:y.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return y==null?void 0:y.ratingNotHelpfulText}};
msH=function(R,y){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:R.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:R.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:R.deleteDialogTitle}]},dialogMessages:[{runs:[{text:R.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:R.deleteActionText}]},command:{performCommentActionEndpoint:{action:y}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:R.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
A7J=function(R){R.style.height="auto";R.style.height=R.scrollHeight+"px"};
Ds8=function(R){return[R.syncStep,R.asyncStep].filter(function(y){return y!==void 0})};
tSM=function(R){var y,u,v;if(R=(y=R.structuredContextNoteFormSchema)==null?void 0:(u=y.fieldSchemas)==null?void 0:(v=u.noteBody)==null?void 0:v.validationSchema)for(y=_.V(Ds8(R)),u=y.next();!u.done;u=y.next()){u=u.value.rules;if(!u)break;u=_.V(u);for(u=u.next();!u.done;u=u.next())return _.e(u.value,_.pu8)}};
a6m=function(R){if(R){R=_.V(Ds8(R));for(var y=R.next();!y.done;y=R.next()){y=y.value.rules;if(!y)break;y=_.V(y);for(y=y.next();!y.done;y=y.next())return _.e(y.value,c7a)}}};
YBV=function(R){if(R){R=_.V(Ds8(R));for(var y=R.next();!y.done;y=R.next()){y=y.value.rules;if(!y)break;y=_.V(y);for(y=y.next();!y.done;y=y.next())return _.e(y.value,SBM)}}};
LqP=function(R){R=/^https?:\/\//.test(R)?R:"http://"+R;try{var y=_.pF(R)}catch(u){return!1}if(y.toString()!==R)return!1;R=y.JSC$10001_domain_.split(".");return R.length>1&&R.every(function(u){return!!u})};
sMM=function(R,y,u,v){var Q;v=(Q=v.structuredContextNoteData)==null?void 0:Q.createCommentEndpoint;if(Q=_.e(v,_.ixg))return Q.commentText=_.ye(R),Q.videoPositionMention=y,Q.sources=u,v};
z27=function(R){return R==null?void 0:R.stringValue};
Cra=function(R,y,u){R=R.map(function(v,Q){return{listItemViewModel:{title:v.title,subtitle:v.subtitle,leadingImage:v.leadingImage,trailingImage:Q===y?gBa:void 0,rendererContext:{commandContext:{onTap:v.onTap}}}}});
return Object.assign({},u&&{header:{panelHeaderViewModel:{title:u}}},{content:{listViewModel:{listItems:R}}})};
RXa=function(R,y){if(R&&y)switch(y){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}};
yTM=function(R){var y;R=(y=R.options)==null?void 0:y.findIndex(function(u){return u.isSelected});
return R===void 0?-1:R};
uqZ=function(R,y,u){var v=function(){return R().label},Q={},M=_.Oy("ytDropdownViewModelLabel",(Q.ytDropdownViewModelLabelError=y,Q));
return _.F(_.w,{cond:function(){return R().label&&!(u()===-1&&R().label&&!R().placeholderText)},
then:function(){return _.F("div",{class:M},_.F(_.QM,{text:v}))}})};
vzJ=function(R,y){var u={};u=_.Oy("ytDropdownViewModelTitle",(u.ytDropdownViewModelTitlePlaceholder=function(){return y()===-1},u));
return _.F("div",{class:u},_.F(_.QM,{text:function(){var v=R();var Q=y();if(Q===-1)v=v.placeholderText?v.placeholderText:v.label;else{var M,K;v=(M=v.options)==null?void 0:(K=M[Q])==null?void 0:K.title}return v}}))};
Qhm=function(R,y){var u=function(){return R().hint};
return _.F(_.vu,null,_.F(_.w,{cond:function(){return u()&&!y()},
then:function(){return _.F("div",{class:_.Oy("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.F(_.QM,{text:u,className:"ytDropdownViewModelSupportText"}))}}),_.F(_.w,{cond:y,
then:function(){return _.F("div",{id:"dropdown-view-model-error",role:"alert",class:_.Oy("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.F(_.W_,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.F(_.QM,{text:y,className:"ytDropdownViewModelSupportText"}))}}))};
jh7=function(R,y){var u=_.ua().resolve(_.O87);_.rB(function(){var v=R().id;v&&u!=null&&u.dropdownMap.set(v,y)})};
JTJ=function(R){R=_.e(R.scheduleButton,MXg);R=_.e(R==null?void 0:R.primaryButton,_.k9);R=_.e(R==null?void 0:R.onTap,_.ac);var y,u,v=((u=_.e(R,_.TP))==null?void 0:u.commands)||[R];u=_.V(v);for(R=u.next();!R.done&&!(y=_.e(R.value,_.Iyi));R=u.next());var Q;y=(Q=y)==null?void 0:Q.createBroadcastRequest;if(!y)throw Error("Lj");return y};
IIa=function(R,y,u){u=u===void 0?{}:u;var v,Q;return _.I(function(M){if(v=VXM(y))return M.return(v);(Q=iJP(R,y,u))&&Ki8(y,Q);return M.return(Q)})};
Ki8=function(R,y){var u=hXm(R);u&&y.then(function(v){_.ua().resolve(_.N$).put(u,new _.Td({innertubeResponse:v}))})};
VXM=function(R){if(R=hXm(R)){var y=_.ua().resolve(_.N$);if(y.has(R))return y.get(R).then(function(u){return u==null?void 0:_.KR(u)})}return null};
hXm=function(R){var y=_.e(R.endpoint,_.zM);if(y!=null&&y.videoId)return y={videoId:y.videoId},_.f("web_imp_player_mute_params")&&(y.mutedAtStart=R.startPlaybackInMutedState),_.sf("inline_playback",y)};
iJP=function(R,y,u){R=_.yB(R,y.endpoint,bJ8(y,u)).then(function(v){return v});
return Promise.resolve(R)};
bJ8=function(R,y){y=_.f("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!R.startPlaybackInMutedState},y):Object.assign({},{vis:5,autonav:"1"},y);var u;y={contentPlaybackContext:_.UZ(y,(u=_.e(R.endpoint.commandMetadata,_.QL))==null?void 0:u.url,window.location.href)};_.f("web_imp_player_mute_params")&&(y.overrideMutedAtStart=!R.startPlaybackInMutedState);return y};
TRZ=function(R,y){var u=window.MutationObserver;u&&(Gm=new u(function(v,Q){v=_.V(v);for(var M=v.next();!M.done;M=v.next()){M=M.value;var K;if(K=M.type==="childList"&&M.target)a:{K=R;M=Fi8(M.target);K=Fi8(K);for(var h=null,b=0;b<M.length;b++)if(K.includes(M[b])){if(b===0){K=!1;break a}h=M[b];break}h?(M=w5g(M,h),K=w5g(K,h),K=M<K):K=!1}if(K){y();Q.disconnect();break}}}),(u=NRo())&&Gm.observe(u,{childList:!0,
subtree:!0}))};
NRo=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};
Fi8=function(R){for(var y=[];R;)y.push(R),R=R.parentElement;return y};
w5g=function(R,y){var u=Array.from(y.children);y=R.indexOf(y);return y>0?u.indexOf(R[y-1]):-1};
rF=function(R,y,u){u=u===void 0?{}:u;return _.fo(R,u,y)};
oz7=function(R){switch(R){case "MUSIC":return!0;default:return!1}};
xCJ=function(R){return R==null?void 0:R.filter(function(y){return y.premiereTrailerBadgeRenderer})};
fIZ=function(R){var y,u=R==null?void 0:(y=R.find(function(x){return x.thumbnailOverlayTimeStatusRenderer}))==null?void 0:y.thumbnailOverlayTimeStatusRenderer,v,Q;
if((u==null?0:(v=u.icon)==null?0:v.iconType)&&oz7(u==null?void 0:(Q=u.icon)==null?void 0:Q.iconType)){var M;return{icon:u==null?void 0:(M=u.icon)==null?void 0:M.iconType}}var K,h;var b=(R=(K=R==null?void 0:(b=R.find(function(x){return x.thumbnailBottomOverlayViewModel}))==null?void 0:b.thumbnailBottomOverlayViewModel)==null?void 0:(h=K.badges)==null?void 0:h.find(function(x){var B,l;
return((B=_.e(x,BRV))==null?void 0:(l=B.inlinePlaybackBadgeData)==null?void 0:l.replicateAsTimestamp)===!0}))?_.e(R,BRV):void 0;
if(b==null?0:b.icon){var N,T;if((b=(N=_.hdc(b==null?void 0:b.icon))==null?void 0:(T=N.clientResource)==null?void 0:T.imageName)&&oz7(b))return{icon:b}}return{}};
nza=function(R,y){var u=eXH,v=_.V(_.In(lIa(new OJM(function(){},u,y)),void 0,"PAnyd")),Q=v.next().value,M=v.next().value,K=new OJM(function(h){M(h)},u,y);
_.ny(function(){Promise.resolve().then(function(){var h,b=(h=R())!=null?h:{};K.playerControlsData=b;_.f("player_controls_skip_double_signal_old")&&(K.lastSeenPlayerApi=_.te(b.playerApi));_.f("player_controls_skip_double_signal_old")||(K.lastSeenPlayerApi=_.te(b.playerApi));ZJV(K)});
_.GF(function(){HJH(K)})},"HikUP");
_.GF(function(){HJH(K)});
return function(){return Q()}};
GuH=function(R){return function(y){var u=R(),v={playerState:y};if(y===1){var Q;(Q=u.playerApi)==null||Q.loadModule("captions")}if(y===0){var M;(M=u.playerApi)==null||M.unloadModule("captions")}(y!==-1||_.f("web_imp_controls_set_player_state_killswitch"))&&u.setState(v)}};
rT8=function(R){return function(y){R().setState({playbackRate:y})}};
PaJ=function(R){return function(y){var u=R(),v=u.playerApi,Q=v==null?void 0:v.getVideoData(),M=(Q==null?void 0:Q.isLive)||!1;Q=Q==null?void 0:Q.video_id;M={videoDuration:gaM(v||void 0),isLive:M,videoId:Q};M.videoId!==u.videoId&&(M=Object.assign({},_.EAL(v),M));if(y==null?0:y.playertype)M.playerType=y.playertype;if(v){M.captionsAvailable=_.uy(v);y=M;var K;Q=(K=v.getStoryboardLevel(v.getNumberOfStoryboardLevels()-1))==null?void 0:K.intervalMs;y.storyboardInterval=Q?Q/1E3:void 0;M.captionsAvailable&&
(M.captionsEnabled=_.jna(v))}M.volumeMuted=!(v==null||!v.isMuted());u.setState(M)}};
WiH=function(R){return function(y){var u=R(),v=u.playerApi;if(v){var Q=v.getPresentingPlayerType();y={playedTime:y||0,percentLoaded:v.getVideoLoadedFraction(),playerType:Q};u.playerState===0&&(y.playedTime=u.videoDuration);u.isLive&&(Q=v.getProgressState(Q),y.playedTime-=Q.seekableStart,y.videoDuration=gaM(v));if(u.playerType===1)v=!1;else{var M;if((M=u.uxConfig)==null?0:M.showCuedOverlay){var K;v=!((K=u.playerApi)==null?0:K.getPlayerStateObject(u.playerType).isDomPaused)}else v=!0}v&&delete y.playedTime;
u.setState(y)}}};
dCP=function(R){return function(){var y=R(),u,v,Q,M={volume:(Q=(u=y.playerApi)==null?void 0:u.getVolume())!=null?Q:0,volumeMuted:!((v=y.playerApi)==null||!v.isMuted())};y.setState(M)}};
UCZ=function(R){return function(){var y=R(),u=y.playerApi;if(u){var v={captionsAvailable:_.uy(u)};v.captionsAvailable&&(v.captionsEnabled=_.jna(u));y.setState(v)}}};
kuJ=function(R){return function(){var y=R();if(y.playerApi&&!(y.volumeMuted||y.controlsVisible&&y.isProbablyAScreenreaderUser)){y.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var u;(u=document.querySelector(".player-control-play-pause-icon"))==null||u.focus()}}};
EzI=function(R){return{appApi:Object.assign({},_.GoT(),{showCaptionsToggleToast:function(y){var u,v;(v=(u=R()).showCaptionsToggleToast)==null||v.call(u,y)},
openInMiniplayer:function(){var y,u;(u=(y=R()).openInMiniplayer)==null||u.call(y)}})}};
$CI=function(R,y){var u,v,Q;return!!(R==null?0:(u=R.playerResponse)==null?0:(v=u.playerConfig)==null?0:(Q=v.inlinePlaybackConfig)==null?0:Q.showScrubbingControls)&&!(y==null?0:y.hideScrubbingControls)};
_.qLm=function(R){var y=!R.miniplayerIsActive;return[5,2,0].includes(R.miniplayerPlaybackState)||y};
X5p={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};mCV=function(R,y){var u,v,Q,M,K;_.I(function(h){if(!y.length)return h.return([]);u=[];v=_.V(y);for(Q=v.next();!Q.done;Q=v.next())M=Q.value,(K=R.resolveIcon(M))&&!R.iconCache[K.url]&&u.push(_.YmP(R,K).then(function(){}).catch(function(){}));
return h.return(Promise.all(u))})};
ATH=function(R,y){var u=[];y=(new Set(y)).values();y=_.V(y);for(var v=y.next();!v.done;v=y.next()){v=v.value;for(var Q=_.V(Object.values(X5p)),M=Q.next();!M.done;M=Q.next())u.push({iconName:v,iconStyle:M.value})}mCV(R.iconManager,u)};
_.DCp=function(R,y,u){var v=u!=null?u:R.iconsToFetch;v!=null&&v.length?y!==void 0&&y>=0?_.Oh(_.WG,function(){ATH(R,v)},y):ATH(R,v):Promise.resolve()};
OJM=function(R,y,u){var v=this;this.renderFn=R;this.listeners=y;this.context=u;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var Q;this.lastSeenPlayerApi=_.te((Q=this.playerControlsData)==null?void 0:Q.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.EAL(),void 0);_.f("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){lIa(v).setState({playerState:-1});v.resetRecentlyNavigatedJobId&&_.WG.cancelJob(v.resetRecentlyNavigatedJobId);
v.recentlyNavigated=!0;v.resetRecentlyNavigatedJobId=_.WG.addJob(function(){v.recentlyNavigated=!1},8,1E4)})};
OJM.prototype.setState=function(R){if(!_.f("mweb_player_skip_no_op_state_changes")||!C$m(R,this.state))if(this.state=Object.assign({},this.state,R),!_.f("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)R=-1,_.f("player_controls_log_creation_killswitch")||R2m()||(R=(0,_.uQ)()),_.qQ("pcu_s"),_.qQ("pcu_se"),_.qQ("pcu_rs"),this.renderFn(lIa(this)),_.qQ("pcu_re"),y7I(R),_.WG.addJob(function(){_.qQ("pcu_ap")},8)};
var lIa=function(R){var y;var u=_.te((y=R.playerControlsData)==null?void 0:y.playerApi);return Object.assign({},R.state,{setState:R.boundSetState,domMeasurements:{progressBarLineRect:R.progressBarLineRect},playerApi:u,appApi:R.context.appApi,playerContainer:R.context.playerContainer,playerControlContainer:R.context.playerControlContainer,uxConfig:R.context.uxConfig})},ZJV=function(R){R.listeners.forEach(function(y){R.eventListenerCleanupFunctions.push(y.register(function(){return lIa(R)},function(){return R.getData()}))})},
HJH=function(R){R.eventListenerCleanupFunctions.forEach(function(y){y()});
R.eventListenerCleanupFunctions.length=0};
OJM.prototype.getData=function(){return this.playerControlsData};var P9=new _.jF("abuseReportFlowState");var p5m=new _.jF("feedbackFormFlowState");var tXK=new _.jF("inputBoxViewModel");var cTM=new _.jF("flowNextStepCommand");var aIH=new _.jF("flowPrevStepCommand");var SL8=new _.jF("updateFlowCommand");_.YL8=new _.jF("flowStepRenderer");_.pu8=new _.jF("lengthValidationRule");var c7a=new _.jF("regexValidationRule");var SBM=new _.jF("selectedValidationRule");var LiK=new _.jF("talkToRecsViewModel");var shH=new _.jF("creatorGoalSetUpFlowDropdownItemViewModel");var zXp=new _.jF("creatorGoalSetUpFlowDropdownViewModel");var BRV=new _.jF("thumbnailBadgeViewModel");_.gz7=new _.jF("radioButtonGroupViewModel");var MXg=new _.jF("panelFooterViewModel");var CaK=new _.jF("ypcCancelRecurrenceCommand");var RuZ=new _.jF("cancellationFlowState");var nBP=new _.jF("premiumPurchaseFlowState");var yvg=new _.jF("surveyAnswerCardRenderer");var uMH=new _.jF("showMoreButtonRenderer");var v2P;var Qzo,jzH=function(){if(Qzo!==void 0)return Qzo;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;v2P===void 0&&(v2P=document.createElement("template"));var v=v2P;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return Qzo=R};var W9=function(){var R=_.W.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};
_.O(W9,_.W);_.J=W9.prototype;_.J.getGoalDropdownItems=function(){var R,y;return(y=_.e((R=this.data)==null?void 0:R.purchaseTargetDropdown,zXp))==null?void 0:y.dropdownItems};
_.J.getTimerDropdownItems=function(){var R,y;return(y=_.e((R=this.data)==null?void 0:R.timerDropdown,zXp))==null?void 0:y.dropdownItems};
_.J.getColorDropdownItems=function(){var R,y;return(y=_.e((R=this.data)==null?void 0:R.colorDropdown,zXp))==null?void 0:y.dropdownItems};
_.J.getDropdownItemText=function(R){var y;return(y=_.e(R,shH))==null?void 0:y.itemLabel};
_.J.getDropdownItemValue=function(R){R=_.e(R,shH);return(R==null?void 0:R.timeLimit)||(R==null?void 0:R.purchaseTarget)||(R==null?void 0:R.eligiblePurchaseType)};
_.J.updateFlowState=function(R){_.Ik(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:R}])};
_.J.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.J.updateGoalValue=function(R){this.goal=R.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.J.onTextValueChanged=function(R){this.goalDescription=R.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.J.updateTimerValue=function(R){this.timer=R.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.J.updateTierValue=function(R){this.tier=R.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.J.getButtonViewModel=function(R){R=(R==null?void 0:R.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var y,u=_.e((y=this.data)==null?void 0:y.startGoalButton,_.k9);return Object.assign({},u,{state:R})};
_.RR.Object.defineProperties(W9,{template:{configurable:!0,enumerable:!0,get:function(){return jzH()}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],W9.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],W9.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],W9.prototype,"goal",void 0);_.A([_.r(),_.p("design:type",Object)],W9.prototype,"goalDescription",void 0);_.A([_.r(),_.p("design:type",Object)],W9.prototype,"timer",void 0);_.A([_.r(),_.p("design:type",Object)],W9.prototype,"tier",void 0);
_.A([_.r(),_.p("design:type",Object)],W9.prototype,"startButtonId",void 0);_.A([_.r(),_.p("design:type",Object)],W9.prototype,"exampleButtonId",void 0);_.A([_.pu({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],W9);_.m(W9,"yt-creator-goal-set-up-flow-view-model",function(){return jzH()},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var M_m;var JvH;var V_M;var i9J=function(){return _.W.apply(this,arguments)||this};
_.O(i9J,_.W);_.A([_.r(),_.p("design:type",Object)],i9J.prototype,"data",void 0);_.A([_.pu({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],i9J);
_.m(i9J,"yt-survey-answer-card-renderer",function(){if(V_M===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;JvH===void 0&&(JvH=document.createElement("template"));var v=JvH;u.call(y,v.content.cloneNode(!0),R.content.firstChild);V_M=R}R=V_M;return R},{mode:2});var KeP;var I1I;var dF=function(){return _.W.apply(this,arguments)||this};
_.O(dF,_.W);_.J=dF.prototype;_.J.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.J.selectedItemChanged=function(R){_.Ik(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[R.feedbackToken||""]}])};
_.J.surveyAnswerCardRendererClicked=function(R){if(R.target&&_.e(R.model.item,yvg)){var y=R.target;R=_.e(R.model.item,yvg);R.onTapCommand?_.wr(y,[R.onTapCommand],y):this.data.onTapCommand&&_.wr(y,[this.data.onTapCommand],y);this.selectedItemChanged(R)}};
_.J.checkIsCancellationStyle=function(R){return R==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.J.updateSelectedItemFromBinding=function(R){this.selectedItem=R.detail.value};
dF.prototype.onSelectedItemChanged=dF.prototype.onSelectedItemChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],dF.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],dF.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],dF.prototype,"selectedItem",void 0);_.A([_.r({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.p("design:type",Boolean)],dF.prototype,"isCancellationStyle",void 0);
_.A([_.e0("selectedItem"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dF.prototype,"onSelectedItemChanged",null);_.A([_.pu({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],dF);
_.m(dF,"yt-survey-flow-step-renderer",function(){if(I1I===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;KeP===void 0&&(KeP=document.createElement("template"));var v=KeP;u.call(y,v.content.cloneNode(!0),R.content.firstChild);I1I=R}R=I1I;return R},{mode:2});var UF=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return R};
_.O(UF,_.W);UF.prototype.handleSurveyFlowStepOptionChanged=function(R){this.ytdReduxBehavior.dispatch(_.iE({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:R}));_.Ik(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:R}}])};
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],UF.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],UF.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],UF.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],UF);
_.m(UF,"ytd-survey-flow-step-renderer",function(){if(M_m!==void 0)return M_m;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return M_m=R},{mode:1});var unK;unK=_.UC({avatarViewModel:_.XS,buttonViewModel:_.fQ,subscribeButtonViewModel:_.$x,imageBannerViewModel:_.sH});_.hum=_.H_(_.QMK);_.Qn(_.QMK);var b9M;var kw=function(){return _.W.apply(this,arguments)||this};
_.O(kw,_.W);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],kw.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],kw.prototype,"data",void 0);_.A([_.q({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],kw);
_.m(kw,"ytd-channel-history-renderer",function(){if(b9M!==void 0)return b9M;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return b9M=R},{mode:1});var FeJ;var wGo=function(){return _.W.apply(this,arguments)||this};
_.O(wGo,_.W);_.A([_.r(),_.p("design:type",Object)],wGo.prototype,"data",void 0);_.A([_.q({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],wGo);
_.m(wGo,"ytd-feature-enablement-info-renderer",function(){if(FeJ!==void 0)return FeJ;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return FeJ=R},{mode:1});var N3P;var T3p;var EF=function(){var R=_.W.apply(this,arguments)||this;R.textBoxMaxLength=_.f("enable_tvod_campaign_code_integration")?15:12;return R};
_.O(EF,_.W);_.J=EF.prototype;_.J.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.J.onSubmit=function(){var R=this.data.serviceEndpoint,y=_.e(R,_.KX);y&&R&&(y.couponCode=this.userInput,_.ua().resolve(_.jX).resolveCommand(R,{form:{element:this.hostElement}}))};
_.J.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=_.f("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.J.computeStyle=function(R){return R};
_.J.computeShowValidationBelowInput=function(R){return R!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.J.updateUserInputFromBinding=function(R){this.userInput=R.currentTarget.value};
_.J.updateShowErrorMessageFromBinding=function(R){this.showErrorMessage=R.detail.value};
_.RR.Object.defineProperties(EF.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
EF.prototype.dataChanged=EF.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],EF.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],EF.prototype,"data",void 0);_.A([_.r(),_.p("design:type",String)],EF.prototype,"userInput",void 0);_.A([_.r(),_.p("design:type",Boolean)],EF.prototype,"disableApplyButton",void 0);_.A([_.r(),_.p("design:type",Boolean)],EF.prototype,"hideApplyButton",void 0);
_.A([_.r(),_.p("design:type",Boolean)],EF.prototype,"hideErrorMessage",void 0);_.A([_.r(),_.p("design:type",Boolean)],EF.prototype,"showTick",void 0);_.A([_.r(),_.p("design:type",Boolean)],EF.prototype,"showErrorMessage",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.p("design:type",String)],EF.prototype,"couponStyle",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.p("design:type",Boolean)],EF.prototype,"showValidationBelowInput",void 0);_.A([_.r(),_.p("design:type",Object)],EF.prototype,"textBoxMaxLength",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],EF.prototype,"dataChanged",null);
_.A([_.G("showTick","showErrorMessage","userInput"),_.p("design:type",String),_.p("design:paramtypes",[])],EF.prototype,"validationState",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],EF);
_.m(EF,"ytd-ypc-coupon-renderer",function(){if(T3p!==void 0)return T3p;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return T3p=R},{mode:1});var $w=function(){return _.W.apply(this,arguments)||this};
_.O($w,_.W);$w.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"}}}};
$w.prototype.computeStyle=function(R){return R};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],$w.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],$w.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],$w.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.p("design:type",String)],$w.prototype,"buttonStyle",void 0);_.A([_.q({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],$w);
_.m($w,"ytd-flow-bottom-bar-renderer",function(){if(N3P!==void 0)return N3P;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return N3P=R},{mode:1});var o28;var xt7;var B3J;var qF=function(){return _.W.apply(this,arguments)||this};
_.O(qF,_.W);qF.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
qF.prototype.focus=function(R){this.title&&_.S_(this.title,R)};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],qF.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],qF.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],qF.prototype,"data",void 0);_.A([_.O7("#title"),_.p("design:type",HTMLElement)],qF.prototype,"title",void 0);_.A([_.q({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],qF);
_.m(qF,"ytd-flow-top-bar-renderer",function(){if(B3J!==void 0)return B3J;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return B3J=R},{mode:1});var f1g;var euM;var l1M;var Xy=function(){return _.W.apply(this,arguments)||this};
_.O(Xy,_.W);Xy.prototype.freeTextValueChanged=function(){_.Ik(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
Xy.prototype.updateFreeTextValueFromBinding=function(R){this.freeTextValue=R.detail.value};
_.RR.Object.defineProperties(Xy.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var R,y,u=(y=(R=this.data)==null?void 0:R.responseMaxLength)!=null?y:500,v;return((v=this.freeTextValue)!=null?v:"").length>=u?"maxed-out":""}}});
Xy.prototype.freeTextValueChanged=Xy.prototype.freeTextValueChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Xy.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Xy.prototype,"data",void 0);_.A([_.r(),_.p("design:type",String)],Xy.prototype,"freeTextValue",void 0);_.A([_.O7("#user-input"),_.p("design:type",HTMLTextAreaElement)],Xy.prototype,"input",void 0);
_.A([_.G("freeTextValue"),_.p("design:type",Object),_.p("design:paramtypes",[])],Xy.prototype,"characterLimitClass",null);_.A([_.e0("freeTextValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Xy.prototype,"freeTextValueChanged",null);_.A([_.pu({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],Xy);
_.m(Xy,"yt-free-text-input-flow-step-renderer",function(){if(l1M===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;euM===void 0&&(euM=document.createElement("template"));var v=euM;u.call(y,v.content.cloneNode(!0),R.content.firstChild);l1M=R}R=l1M;return R},{mode:2});var ml=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return R};
_.O(ml,_.W);ml.prototype.handleFreeTextFlowStepInputChanged=function(R){_.Ik(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:R}}])};
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],ml.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],ml.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ml.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],ml);
_.m(ml,"ytd-free-text-input-flow-step-renderer",function(){if(f1g!==void 0)return f1g;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return f1g=R},{mode:1});var O98;var Z9g;var H9P=function(){return _.W.apply(this,arguments)||this};
_.O(H9P,_.W);_.A([_.r(),_.p("design:type",Object)],H9P.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],H9P);
_.m(H9P,"ytd-metadata-line-renderer",function(){if(Z9g!==void 0)return Z9g;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Z9g=R},{mode:1});var Ai=function(){return _.W.apply(this,arguments)||this};
_.O(Ai,_.W);Ai.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Ai.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Ai.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Ai.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Ai.prototype,"isMasthead",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],Ai);
_.m(Ai,"ytd-media-product-renderer",function(){if(O98!==void 0)return O98;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return O98=R},{mode:1});var n2m;var Dg=function(){return _.W.apply(this,arguments)||this};
_.O(Dg,_.W);Dg.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
Dg.prototype.onBillboardImageLoaded=function(){_.Ko(this.hostElement,"yt-refit")};
Dg.prototype.onBillboardImageLoaded=Dg.prototype.onBillboardImageLoaded;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Dg.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Dg.prototype,"data",void 0);_.A([_.O7("#billboardImage"),_.p("design:type",Object)],Dg.prototype,"billboardImage",void 0);_.A([_.fu("yt-img-shadow-loaded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Dg.prototype,"onBillboardImageLoaded",null);
_.A([_.q({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],Dg);
_.m(Dg,"ytd-billboard-masthead-renderer",function(){if(n2m!==void 0)return n2m;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return n2m=R},{mode:1});var Gg7;var pH=function(){var R=_.W.apply(this,arguments)||this;R.smallSize=!1;return R};
_.O(pH,_.W);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],pH.prototype,"ytComponentBehaviorType",void 0);_.A([_.r(),_.p("design:type",Object)],pH.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],pH.prototype,"smallSize",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],pH);
_.m(pH,"ytd-bullet-formatted-string",function(){if(Gg7!==void 0)return Gg7;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Gg7=R},{mode:1});var rvp;var ti=function(){return _.W.apply(this,arguments)||this};
_.O(ti,_.W);ti.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ti.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],ti.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ti.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],ti);
_.m(ti,"ytd-offer-detail-renderer",function(){if(rvp!==void 0)return rvp;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return rvp=R},{mode:1});var PQa;var c9=function(){return _.W.apply(this,arguments)||this};
_.O(c9,_.W);c9.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],c9.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],c9.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],c9.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],c9);
_.m(c9,"ytd-offer-detail-step-renderer",function(){if(PQa!==void 0)return PQa;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return PQa=R},{mode:1});var Weo;var a5=function(){var R=_.W.apply(this,arguments)||this;R.isInOfferModule=!1;return R};
_.O(a5,_.W);_.J=a5.prototype;_.J.computeHasEndpoint=function(){var R;return!((R=this.data)==null||!R.onClickCommand)};
_.J.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")};
_.J.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)};
_.J.handleClickEvent=function(){var R;if((R=this.data)==null?0:R.onClickCommand){var y;this.componentBehavior.resolveCommand((y=this.data)==null?void 0:y.onClickCommand)}};
_.J.onContentKeyDown=function(R){R.key==="Enter"?this.handleClickEvent(R):R.key===" "&&R.preventDefault()};
_.J.onContentKeyUp=function(R){R.key===" "&&this.handleClickEvent(R)};
a5.prototype.dataChanged=a5.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],a5.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],a5.prototype,"componentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],a5.prototype,"data",void 0);_.A([_.r({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],a5.prototype,"hasEndpoint",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],a5.prototype,"isInOfferModule",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],a5.prototype,"dataChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],a5);
_.m(a5,"ytd-channel-masthead-renderer",function(){if(Weo!==void 0)return Weo;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Weo=R},{mode:1});var dto;var SJ=function(){var R=_.W.apply(this,arguments)||this;R.thumbnailObjectFit="CONTAIN";R.thumbnailObjectPosition="LEFT";R.isExpanded=!1;return R};
_.O(SJ,_.W);_.J=SJ.prototype;_.J.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.J.dataChanged=function(){this.resetStates()};
_.J.computeisTapOnOfferInfoContainerEnabled=function(){var R;return((R=this.data)==null?void 0:R.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.J.onExpandBtnClick=function(){var R,y=_.e((R=this.data)==null?void 0:R.showMoreButtonRenderer,uMH);y&&_.e2(_.GN(),y.trackingParams);this.isExpanded=!this.isExpanded};
_.J.onOfferInfoClick=function(R){this.isTapOnOfferInfoContainerEnabled&&(_.JF(_.u8(R)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.VB(_.u8(R)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.J.onBottomBarClick=function(){this.executeTapCommand()};
_.J.executeTapCommand=function(){var R,y=(R=this.data)==null?void 0:R.tapCommand;y&&this.ytComponentBehavior.resolveCommand(y)};
_.J.resetStates=function(){this.isExpanded=!1};
_.RR.Object.defineProperties(SJ.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),y,u,v;return((y=this.data)==null?void 0:y.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&R&&!!((u=this.data)==null?0:(v=u.benefits)==null?0:v.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,y,u;return((y=_.e((R=this.data)==null?void 0:R.showMoreButtonRenderer,uMH))==null?void 0:y.showMoreButtonTitle)||((u=this.data)==null?void 0:u.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var R,y,u;return((y=_.e((R=this.data)==null?void 0:R.showMoreButtonRenderer,uMH))==null?void 0:y.showLessButtonTitle)||((u=this.data)==null?void 0:u.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var R;return(R=this.showLessButtonTitle)!=null?R:""}var y;return(y=this.showMoreButtonTitle)!=null?y:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var R,y,u;return((R=this.data)==null?void 0:R.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((y=this.data)==null?0:y.footerTitle)||((u=this.data)==null?0:u.footerSubtitle))}}});
SJ.prototype.dataChanged=SJ.prototype.dataChanged;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],SJ.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],SJ.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],SJ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",String)],SJ.prototype,"thumbnailObjectFit",void 0);
_.A([_.r(),_.p("design:type",String)],SJ.prototype,"thumbnailObjectPosition",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.p("design:type",Boolean)],SJ.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.A([_.r(),_.p("design:type",Object)],SJ.prototype,"isExpanded",void 0);_.A([_.r(),_.p("design:type",Object)],SJ.prototype,"data",void 0);_.A([_.r({computed:"computeIcon_(data.footerIcon)"}),_.p("design:type",String)],SJ.prototype,"icon",void 0);
_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],SJ.prototype,"dataChanged",null);_.A([_.G("data.thumbnail"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],SJ.prototype,"hasThumbnail",null);_.A([_.G("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],SJ.prototype,"enableExpandButton",null);
_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],SJ.prototype,"enableOfferContentIcon",null);_.A([_.G("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.p("design:type",Object),_.p("design:paramtypes",[])],SJ.prototype,"showMoreButtonTitle",null);_.A([_.G("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.p("design:type",Object),_.p("design:paramtypes",[])],SJ.prototype,"showLessButtonTitle",null);
_.A([_.G("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.p("design:type",String),_.p("design:paramtypes",[])],SJ.prototype,"expandedBtnText",null);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],SJ.prototype,"enableBottomBar",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],SJ);
_.m(SJ,"ytd-offer-card-renderer",function(){if(dto!==void 0)return dto;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return dto=R},{mode:1});var Ut7;var Yw=function(){return _.W.apply(this,arguments)||this};
_.O(Yw,_.W);Yw.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"}}}};
Yw.prototype.onClick=function(R){if(!_.JF(R.composedPath()||[],this.hostElement,["A".toString()])){var y,u;if((R=(u=_.e((y=this.data)==null?void 0:y.actionButton,_.aG))==null?void 0:u.command)&&!this.ytComponentBehavior.resolveCommand(R)){var v;(v=_.GN())==null||v.clickCommand(R);_.ua().resolve(_.jX).resolveCommand(R,{form:{element:this.hostElement}})}}};
_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Yw.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Yw.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Yw.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Yw.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],Yw);
_.m(Yw,"ytd-offer-content-renderer",function(){if(Ut7!==void 0)return Ut7;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return Ut7=R},{mode:1});var kga;var LH=function(){return _.W.apply(this,arguments)||this};
_.O(LH,_.W);LH.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.RR.Object.defineProperties(LH.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var R,y;return!((R=this.data)==null||!R.title)||!((y=this.data)==null||!y.description)}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],LH.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],LH.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],LH.prototype,"data",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],LH.prototype,"hasHeaderData",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],LH);
_.m(LH,"ytd-offer-section-renderer",function(){if(kga!==void 0)return kga;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return kga=R},{mode:1});var E2K;var sF=function(){return _.W.apply(this,arguments)||this};
_.O(sF,_.W);
sF.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],sF.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],sF.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],sF.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],sF);
_.m(sF,"ytd-offer-selection-step-renderer",function(){if(E2K!==void 0)return E2K;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return E2K=R},{mode:1});var $t7;var zm=function(){return _.W.apply(this,arguments)||this};
_.O(zm,_.W);zm.prototype.computeStyle=function(R){return R};
zm.prototype.computeImageWidth=function(R){return R==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.A([_.r({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.p("design:type",String)],zm.prototype,"containerStyle",void 0);_.A([_.r({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.p("design:type",String)],zm.prototype,"imageWidth",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],zm.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],zm.prototype,"data",void 0);
_.A([_.q({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],zm);
_.m(zm,"ytd-confirmation-masthead-renderer",function(){if($t7!==void 0)return $t7;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return $t7=R},{mode:1});var qWK;var gF=function(){return _.W.apply(this,arguments)||this};
_.O(gF,_.W);gF.prototype.computeStyle=function(R){return R};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],gF.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],gF.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.p("design:type",String)],gF.prototype,"containerStyle",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],gF);
_.m(gF,"ytd-purchase-complete-detail-renderer",function(){if(qWK!==void 0)return qWK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return qWK=R},{mode:1});var XGK;var CH=function(){var R=_.W.apply(this,arguments)||this;R.scriptsAppended=!1;return R};
_.O(CH,_.W);CH.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"}}}};
CH.prototype.onDataChanged=function(){var R=this.get("data.gtmId");R&&(_.qL(R,_.EB("GL","")),this.setupConversionTracking())};
CH.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}};
CH.prototype.onDataChanged=CH.prototype.onDataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],CH.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],CH.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],CH.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],CH.prototype,"scriptsAppended",void 0);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],CH.prototype,"onDataChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],CH);
_.m(CH,"ytd-purchase-complete-step-renderer",function(){if(XGK!==void 0)return XGK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return XGK=R},{mode:1});var mtJ;var RF=function(){var R=_.W.apply(this,arguments)||this;R.darkerDarkTheme=_.f("web_darker_dark_theme");return R};
_.O(RF,_.W);RF.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],RF.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],RF.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],RF.prototype,"darkerDarkTheme",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],RF);
_.m(RF,"ytd-ypc-transaction-error-message-renderer",function(){if(mtJ!==void 0)return mtJ;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return mtJ=R},{mode:1});var Av8;var DtP;var ys=function(){var R=_.W.apply(this,arguments)||this;R.handlePhoneVerificationSuccess=function(y){if(R.isValidPhoneVerificationCompletionMessageEvent(y)){var u;((u=R.data)==null?0:u.nextStepCommand)&&R.ytComponentBehavior.resolveCommand(R.data.nextStepCommand)}};
return R};
_.O(ys,_.W);ys.prototype.isValidPhoneVerificationCompletionMessageEvent=function(R){if(R.data!=="yt-phone-verification-complete")return!1;R=_.z7(R.origin);return R!==null&&R.includes("youtube.com")};
ys.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
ys.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],ys.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ys.prototype,"data",void 0);_.A([_.pu({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],ys);
_.m(ys,"yt-feature-enablement-soft-entry-renderer",function(){if(DtP===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;Av8===void 0&&(Av8=document.createElement("template"));var v=Av8;u.call(y,v.content.cloneNode(!0),R.content.firstChild);DtP=R}R=DtP;return R},{mode:1});var pGo;var t_p;var cvp;var a1K;var SWp=function(){return _.W.apply(this,arguments)||this};
_.O(SWp,_.W);_.A([_.r(),_.p("design:type",Object)],SWp.prototype,"data",void 0);_.A([_.pu({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],SWp);
_.m(SWp,"yt-benefits-item-renderer",function(){if(a1K===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;cvp===void 0&&(cvp=document.createElement("template"));var v=cvp;u.call(y,v.content.cloneNode(!0),R.content.firstChild);a1K=R}R=a1K;return R},{mode:2});var YWP;var LeK;var uK=function(){return _.W.apply(this,arguments)||this};
_.O(uK,_.W);uK.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
uK.prototype.computeisWithoutPadding=function(){var R;return((R=this.data)==null?void 0:R.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],uK.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],uK.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.p("design:type",Boolean)],uK.prototype,"isWithoutPadding",void 0);_.A([_.pu({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],uK);
_.m(uK,"yt-benefits-section-renderer",function(){if(LeK===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;YWP===void 0&&(YWP=document.createElement("template"));var v=YWP;u.call(y,v.content.cloneNode(!0),R.content.firstChild);LeK=R}R=LeK;return R},{mode:2});var vz=function(){return _.W.apply(this,arguments)||this};
_.O(vz,_.W);vz.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
vz.prototype.computeisUsingLargeWidth=function(){var R;return((R=this.data)==null?void 0:R.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],vz.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],vz.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.p("design:type",Boolean)],vz.prototype,"isUsingLargeWidth",void 0);_.A([_.pu({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],vz);
_.m(vz,"yt-benefits-flow-step-renderer",function(){if(t_p===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;pGo===void 0&&(pGo=document.createElement("template"));var v=pGo;u.call(y,v.content.cloneNode(!0),R.content.firstChild);t_p=R}R=t_p;return R},{mode:2});var szg;var zuJ;var Qs=function(){return _.W.apply(this,arguments)||this};
_.O(Qs,_.W);Qs.prototype.checkIsUsingLargeWidth=function(){var R;return((R=this.data)==null?void 0:R.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.A([_.r(),_.p("design:type",Object)],Qs.prototype,"data",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Qs.prototype,"ytRendererBehavior",void 0);_.A([_.r({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.p("design:type",Boolean)],Qs.prototype,"isUsingLargeWidth",void 0);_.A([_.pu({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],Qs);
_.m(Qs,"yt-confirmation-flow-step-renderer",function(){if(zuJ===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;szg===void 0&&(szg=document.createElement("template"));var v=szg;u.call(y,v.content.cloneNode(!0),R.content.firstChild);zuJ=R}R=zuJ;return R},{mode:2});var g28;var CQP;var RHI=function(){return _.W.apply(this,arguments)||this};
_.O(RHI,_.W);_.A([_.r(),_.p("design:type",Object)],RHI.prototype,"data",void 0);_.A([_.pu({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],RHI);
_.m(RHI,"yt-info-flow-step-renderer",function(){if(CQP===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;g28===void 0&&(g28=document.createElement("template"));var v=g28;u.call(y,v.content.cloneNode(!0),R.content.firstChild);CQP=R}R=CQP;return R},{mode:2});var ycM;var u4a;var vTH=function(){return _.W.apply(this,arguments)||this};
_.O(vTH,_.W);_.A([_.r(),_.p("design:type",Object)],vTH.prototype,"data",void 0);_.A([_.pu({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],vTH);
_.m(vTH,"yt-info-list-flow-step-renderer",function(){if(u4a===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;ycM===void 0&&(ycM=document.createElement("template"));var v=ycM;u.call(y,v.content.cloneNode(!0),R.content.firstChild);u4a=R}R=u4a;return R},{mode:2});var QNP=_.Jd(function(R){var y=R.data;return _.F("styled-text-view-model",{class:_.Oy("ytStyledTextViewModelHost",function(){return TBJ(y().fontAttributes)},function(){return NBp(y().color)})},_.F(_.QM,{text:function(){return y().text},
ariaLabel:function(){var u,v,Q;return(Q=(u=y().accessibility)==null?void 0:(v=u.accessibilityData)==null?void 0:v.label)!=null?Q:""}}))},"of");
QNP.idomCompat=!0;var jN8=_.Jd(function(R){var y=function(){var Q,M,K,h;return(h=(K=(Q=R.alt)==null?void 0:Q.call(R))!=null?K:(M=R.data().accessibilityData)==null?void 0:M.label)!=null?h:""},u=function(){return R.data().imageWidth},v=function(){return R.data().imageHeight};
return _.F("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.F(_.w,{cond:function(){var Q=R.data();if(Q){var M,K,h;var b=((M=_.ua().resolve(_.yN(_.u0)))==null?0:M())?(K=Q.imageDark)!=null?K:Q.imageLight:(h=Q.imageLight)!=null?h:Q.imageDark}else b=void 0;return b},
then:function(Q){return _.F(_.MR,Object.assign({},R,{data:Q,alt:y,targetWidth:u,targetHeight:v,preserveHeight:!0,preserveWidth:!0}))}}))},"pf");
jN8.idomCompat=!0;var jI=_.Jd(function(R){var y=R.data;R=_.Qj(function(){return y().slots},[]);
var u=_.Qj(function(){return y().layoutProperties},{}),v=_.ua().resolve(_.QX);
return _.F("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:I6H(u,v)},_.F(_.eS,{each:R,keyBy:"INDEX"},function(Q){return _.F("div",{class:"ytContainerLayoutViewModelSlot",style:I6H(function(){return Q().layoutProperties},v)},_.F(_.mk,{data:function(){return Q().contents}},{containerLayoutViewModel:jI,
badgeViewModel:_.hr,buttonViewModel:_.fQ,styledTextViewModel:QNP,contentPreviewImageViewModel:function(M){return _.F(_.b2,{data:M.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(M){return _.F(jN8,{data:M.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"qf");
jI.idomCompat=!0;var Mxg=_.Jd(function(R){var y=R.data;var u=R.stateFns;var v=function(){var N=y(),T=N.productId;return!(!N.clearGroupId&&!T)},Q=function(){var N=y(),T=N.clearGroupId;
return(N=N.productId)?u().isProductSelected(N):T?u().getSelectedProductByGroupId(T)==null:!1},M=function(){var N=y(),T=N.clearGroupId;
if(N=N.productId)u().onProductSelected(N);else if(T)u().onClearGroupSelected(T)},K=function(){var N=y(),T=N.clearGroupId;
if(N=N.productId){var x;return"group:"+(((x=u().getProductById(N))==null?void 0:x.groupId)||"")}return T?"group:"+T:""},h=_.Qj(function(){return y().header},[]),b=_.Qj(function(){return y().body},[]);
return _.F("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.F(_.w,{cond:function(){return h().length>0||v()},
then:function(){return _.F("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.F("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.F(_.mk,{data:h},{containerLayoutViewModel:function(N){return _.F("div",{class:"ytPdpCardSectionViewModelContentItem"},_.F(jI,{data:N.data}))},
styledTextViewModel:function(N){return _.F("div",{class:"ytPdpCardSectionViewModelContentItem"},_.F(QNP,{data:N.data}))}})),_.F(_.w,{cond:v,
then:function(){return _.F("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.F(_.cw,{checked:Q,name:K,onChange:M}))}}))}}),_.F(_.w,{cond:function(){return b().length>0},
then:function(){return _.F("div",null,_.F(_.mk,{data:b},{containerLayoutViewModel:function(N){return _.F("div",{class:"ytPdpCardSectionViewModelContentItem"},_.F(jI,{data:N.data}))}}))}}))},"rf");
Mxg.idomCompat=!0;var Jca=_.Jd(function(R){var y=R.data;var u=R.stateFns;return _.F("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.F(_.w,{cond:function(){return y().banner},
then:function(v){return _.F("div",{class:"ytPdpCardViewModelBanner"},_.F(_.QM,{text:v}))}}),_.F(_.mk,{data:function(){return y().sections}},{pdpCardSectionViewModel:function(v){v=v.data;
var Q={};return _.F("div",{class:_.Oy("ytPdpCardViewModelSectionContainer",(Q.ytPdpCardViewModelShowDividers=function(){return y().showDividers},Q))},_.F(Mxg,{data:v,
stateFns:u}))}}))},"sf");
Jca.idomCompat=!0;var Vxa=_.Jd(function(R){var y=R.data;var u=R.isOverlay;R={};return _.F("pdp-masthead-view-model",{class:_.Oy("ytPdpMastheadViewModelHost",(R.ytPdpMastheadViewModelIsOverlay=u,R))},_.F(_.mk,{data:function(){return y().image}},{contentPreviewImageViewModel:_.b2,
themedImageViewModel:function(v){return _.F(jN8,{data:v.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.F(_.w,{cond:function(){return y().title},
then:function(v){return _.F("h1",{class:"ytPdpMastheadViewModelHeading"},_.F(_.QM,{text:v,isOverlay:u}))}}),_.F(_.eS,{each:function(){var v;
return(v=y().finePrint)!=null?v:[]}},function(v){return _.F("div",{class:"ytPdpMastheadViewModelFinePrint"},_.F(_.QM,{text:v,
isOverlay:u}))}))},"tf");
Vxa.idomCompat=!0;var iiJ=_.Jd(function(R){var y=R.data;var u=R.stateFns;var v=function(){return"pdp-pricing-group-selector-"+y().pricingGroupAttributeIds},Q=_.Qj(function(){return y().pricingGroupSelectorSectionHeader});
return _.F("pdp-pricing-group-selector-view-model",null,_.F(_.w,{cond:function(){return!!Q()},
then:function(){return _.F(_.mk,{data:Q},{sectionHeaderViewModel:function(M){M=M.data;var K={};return _.F("div",{class:_.Oy("ytPdpPricingGroupSelectorViewModelSectionHeader",(K.ytPdpPricingGroupSelectorViewModelFullBleed=!0,K.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,K))},_.F(_.f5,{data:M}))}})}}),_.F("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.F(_.eS,{each:function(){var M=u().getSelectedProductByGroupId(y().groupId);
if(!M)return _.Uh(Error("Jj`"+y().groupId)),[];var K,h=(K=y().pricingGroupAttributeIds)!=null?K:[],b;if((b=M.pricingGroups)==null||!b.length||!h.length)return[];K=M.pricingGroups.filter(function(B){return h.length?B.pricingGroupAttributes.every(function(l){return h.includes(l)}):!1});
M=[];if(h.length>0){K=[].concat(_.P$(K));b=_.V(h);for(var N=b.next(),T={};!N.done;T={targetAttrId:void 0},N=b.next())T.targetAttrId=N.value,N=K.findIndex(function(B){return function(l){return l.pricingGroupAttributes.includes(B.targetAttrId)}}(T)),N!==-1&&(M.push(K[N]),K.splice(N,1))}var x=u().getSelectedPricingGroupAttributesByGroupId(y().groupId);
return M.map(function(B){var l=!1;x&&B.pricingGroupAttributes&&(l=nH(B.pricingGroupAttributes,x));return{pricingGroup:B,isSelected:l}})},
keyBy:function(M){return M.pricingGroup.pricingGroupId}},function(M){return _.F("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.F("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.F(_.mk,{data:function(){return M().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:jI})),_.F("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.F(_.cw,{checked:function(){return M().isSelected},
name:v,onClick:function(){u().onPricingGroupSelected(M().pricingGroup.pricingGroupId)}})))})))},"uf");
iiJ.idomCompat=!0;var KWK=_.Jd(function(R){var y=R.data;var u=R.stateFns;var v=function(){var K=u().getSelectedPricingOptions().map(function(N){return N.pricingOptionId}),h=u().getSelectedProductByGroupId(y().groupId);
if(!h)return _.Uh(Error("Kj`"+y().groupId)),[];var b=u().getSelectedPricingGroupAttributesByGroupId(y().groupId);return f6p(h.pricingOptions,b,K)},Q=_.Qj(function(){return y().pricingOptionSelectorSectionHeader}),M=function(){return v().length>1};
return _.F("pdp-pricing-option-selector-view-model",null,_.F(_.w,{cond:function(){return!!Q()&&M()},
then:function(){return _.F(_.mk,{data:Q},{sectionHeaderViewModel:function(K){K=K.data;var h={};return _.F("div",{class:_.Oy("ytPdpPricingOptionSelectorViewModelSectionHeader",(h.ytPdpPricingOptionSelectorViewModelFullBleed=!0,h.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,h))},_.F(_.f5,{data:K}))}})}}),_.F(_.w,{cond:M,
then:function(){return _.F("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.F(_.eS,{each:v,keyBy:"INDEX"},function(K){return _.F("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.F("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.F(_.mk,{data:function(){return K().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:jI})),_.F("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.F(_.cw,{checked:function(){return K().isSelected},
onClick:function(){u().onPricingOptionSelected(K().pricingOption.pricingOptionId);var h=K().pricingOption.onSelectPricingOption;if(h=_.Sb(h)){var b;(b=_.ua().resolve(_.jX))==null||b.resolveCommand(h)}}})))}))}}))},"vf");
KWK.idomCompat=!0;var Iza=_.Jd(function(R){var y=R.data;var u=R.stateFns;return _.F("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.F(_.mk,{data:function(){var v,Q;return(Q=(v=u().getSelectedPricingOptions()[0])==null?void 0:v.primaryButton)!=null?Q:y().emptyStateButton}},{buttonViewModel:_.fQ}))},"wf");
Iza.idomCompat=!0;var hHg=_.Jd(function(R){var y=R.stateFns;return _.F("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.F(_.mk,{data:function(){return y().getSelectedPricingOptions().flatMap(function(u){return u.summaryLines}).filter(function(u){return!!u})}},{containerLayoutViewModel:function(u){return _.F("div",{class:"ytPdpSummaryViewModelLineItem"},_.F(jI,{data:u.data}))}}))},"xf");
hHg.idomCompat=!0;var biK=_.Jd(function(R){function y(k){var E=K();_.vy(_.DT("pdpStateEntity",E,{key:E,selectedPricingOptions:k}))}
var u=R.data;var v=R.internalScrolling;var Q=R.stateFnsForTesting;var M=_.Qj(function(){return u().allProducts},[]),K=_.Qj(function(){return u().pdpStateEntityKey},""),h=_.nA(e2J,K),b=_.N8(function(){_.PT(!0);
var k;return(k=Q==null?void 0:Q())!=null?k:OGJ(h,M,y)},void 0,"pjJzrd"),N=_.Qj(function(){return u().body},[]),T=_.Qj(function(){return u().columnBreakHints},[]),x=function(){return u().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},B=function(){return x()||u().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},l=_.N8(function(){var k=_.yM(u().background),E;
if(k==null?0:(E=k.sources)==null?0:E.length){var D=D===void 0?!0:D;k=_.wpc(void 0,k.sources,void 0,D,D?1E3:void 0,D?void 0:1E3)}else k=null;return k},void 0,"GO4GAe");
R=_.P_({"--pdp-view-model-background":function(){return l()?"url("+l()+")":void 0}});
var Z={};v=_.Oy("ytPdpViewModelHost",(Z.ytPdpViewModelHasBackground=function(){return B()||!!l()},Z.ytPdpViewModelHasDarkBackground=B,Z.ytPdpViewModelHasScrim=x,Z.ytPdpViewModelInternalScrolling=_.Qj(v,!1),Z));
var P=function(k){var E={};return _.Oy("ytPdpViewModelItem",(E.ytPdpViewModelFullBleed=function(){return _.vtL(k())==="dividerViewModel"||_.vtL(k())==="sectionHeaderViewModel"},E.ytPdpViewModelNoVerticalPadding=function(){return _.vtL(k())==="sectionHeaderViewModel"},E))};
_.rB(function(){var k=u().onStartCommand;if(k&&(k=_.Sb(k))){var E;(E=_.ua().resolve(_.jX))==null||E.resolveCommand(k)}});
return _.F("pdp-view-model",{class:v,style:R},_.F("div",{class:"ytPdpViewModelColumnContainer"},_.F(_.eS,{each:function(){return ZGH(N(),T())},
keyBy:"INDEX"},function(k){return _.F("div",{class:"ytPdpViewModelColumn"},_.F(_.mk,{data:k},{containerLayoutViewModel:function(E,D){E=E.data;return _.F("div",{class:P(function(){return k()[D()]})},_.F(jI,{data:E}))},
dividerViewModel:function(E,D){E=E.data;return _.F("div",{class:P(function(){return k()[D()]})},_.F(_.AEG,{data:E}))},
pdpCardViewModel:function(E,D){E=E.data;return _.F("div",{class:P(function(){return k()[D()]})},_.F(Jca,{data:E,
stateFns:b}))},
pdpMastheadViewModel:function(E,D){E=E.data;return _.F("div",{class:P(function(){return k()[D()]})},_.F(Vxa,{data:E,
isOverlay:B}))},
pdpPricingGroupSelectorViewModel:function(E,D){E=E.data;return _.F("div",{class:P(function(){return k()[D()]})},_.F(iiJ,{data:E,
stateFns:b}))},
pdpPricingOptionSelectorViewModel:function(E,D){E=E.data;return _.F("div",{class:P(function(){return k()[D()]})},_.F(KWK,{data:E,
stateFns:b}))},
pdpPrimaryButtonViewModel:function(E,D){E=E.data;return _.F("div",{class:P(function(){return k()[D()]})},_.F(Iza,{data:E,
stateFns:b}))},
pdpSummaryViewModel:function(E,D){E=E.data;return _.F("div",{class:P(function(){return k()[D()]})},_.F(hHg,{data:E,
stateFns:b}))},
sectionHeaderViewModel:function(E,D){E=E.data;return _.F("div",{class:P(function(){return k()[D()]})},_.F(_.f5,{data:E}))}}))})))},"yf");
biK.idomCompat=!0;_.h6(biK,"pdp-view-model",{props:{data:_.vR,stateFnsForTesting:_.IC,internalScrolling:_.IC}});var FWH=_.Jd(function(R){var y=R.data;var u=R.className;var v=_.nA(_.jV,function(){return y().flowStateEntityKey});
return _.F("ytm-premium-purchase-button-renderer",{class:_.Oy("yt-premium-purchase-button-renderer",u)},_.F(_.mk,{data:function(){var Q;return(Q=_.e(v(),nBP))==null?void 0:Q.primaryButtonOverride}},{buttonRenderer:function(Q){return _.F(_.yZ,{data:Q.data,
className:u})},
buttonViewModel:function(Q){return _.F(_.fQ,{data:Q.data,className:u})}}))},"zf");
FWH.idomCompat=!0;var w3V=_.Jd(function(R){var y=R.data;R=R.className;var u=function(){return HGZ(y().style)},v=_.Oy("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",u),Q=_.Oy("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",u);
return _.F("yt-flow-bottom-bar-renderer",{class:_.Oy("yt-flow-bottom-bar-renderer",R,u)},_.F(_.mk,{data:function(){return y().secondaryButton}},{buttonRenderer:function(M){return _.F(_.yZ,{data:M.data,
className:Q})},
buttonViewModel:function(M){return _.F(_.fQ,{data:M.data,className:Q})},
premiumPurchaseButtonRenderer:function(M){return _.F(FWH,{data:M.data,className:Q})}}),_.F(_.mk,{data:function(){return y().primaryButton}},{buttonRenderer:function(M){return _.F(_.yZ,{data:M.data,
className:v})},
buttonViewModel:function(M){return _.F(_.fQ,{data:M.data,className:v})},
premiumPurchaseButtonRenderer:function(M){return _.F(FWH,{data:M.data,className:v})}}))},"Af");
w3V.idomCompat=!0;_.h6(w3V,"yt-flow-bottom-bar-renderer",{props:{data:_.vR,className:_.vR}});var NI8=_.Jd(function(R){var y=_.Oy(R.className,"ytOfferSummaryRendererHost");return _.F("yt-offer-summary-renderer",{class:y},_.F("div",{class:"ytOfferSummaryRendererTextContainer"},_.F("div",{class:"ytOfferSummaryRendererEyebrowText"},_.F(_.QM,{text:function(){return R.data().eyebrowText}})),_.F("div",{class:"ytOfferSummaryRendererTitle"},_.F(_.QM,{text:function(){return R.data().title}})),_.F("div",{class:"ytOfferSummaryRendererSubtitle"},_.F(_.QM,{text:function(){return R.data().subtitle}})),
_.F("div",{class:"ytOfferSummaryRendererFeatureListData"},_.F(_.eS,{each:function(){var u;
return(u=R.data().featureListData)!=null?u:[]}},function(u){var v;
return _.F("div",{class:"ytOfferSummaryRendererFeatureList"},_.F(_.W_,{icon:(v=u.icon)==null?void 0:v.iconType,active:function(){return u.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(u.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.F("div",{class:"ytOfferSummaryRendererFeatureListText"},_.F(_.QM,{text:u.text,
className:function(){return u.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.F("div",{class:"ytOfferSummaryRendererDescription"},_.F(_.QM,{text:function(){return R.data().description}}))))},"Bf");_.h6(_.Jd(function(R){var y={};y=_.Oy("ytOfferSummaryFlowStepRendererHost",(y.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=R.shouldDisableHeaderTopMargin,y));return _.F("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:y},_.F("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.F("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.F(_.QM,{text:function(){return R.data().header}})),_.F("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.F(_.QM,{text:function(){return R.data().subtitle}}))),_.F("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.F(_.mk,{data:function(){return R.data().offerSummary}},{offerSummaryRenderer:function(u){return _.F(NI8,{data:u.data,
className:R.flowClassName})}})))},"Cf"),"yt-offer-summary-flow-step-renderer",{props:{data:_.IC,
flowClassName:_.IC,flowStateEntityKey:_.IC,shouldDisableHeaderTopMargin:_.IC}});var TIp=_.Jd(function(R){var y=R.data;var u=R.className;var v=R.flowStateEntityKey;var Q=R.selectionStepStyle;R=_.nh(function(b){var N=y(),T=v==null?void 0:v();b.target&&(b.stopPropagation(),b=T||"",T=_.jV(_.uX().getState(),b),N=Object.assign({},T,{premiumPurchaseFlowState:{selectedOptionId:N.optionId,primaryButtonOverride:N.primaryButtonOverride}}),_.uX().dispatch(_.Gw("flowStateEntity",b,N)));return!1});
var M=function(){return(v==null?void 0:v())||""},K=_.nA(_.jV,M);
_.rB(function(){var b=y(),N=M(),T=K();b.defaultSelected&&N!==""&&b.primaryButtonOverride&&G7K(b.optionId||"",N,b.primaryButtonOverride,T)});
var h={};return _.F("ytm-option-item-renderer",{"on:click":R,class:_.Oy(u,"ytm-option-item-renderer",(h["ytm-option-item-renderer--lp2-style"]=function(){return(Q==null?void 0:Q())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},h))},_.F("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.F("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var b=y(),N=M(),T=K();T=_.e(T,nBP);return(T?(T==null?void 0:T.selectedOptionId)||"":b.defaultSelected&&N!==""?(b==null?void 0:b.optionId)||"":"")===y().optionId},
name:("input"+_.mR(_.Au)).toString()})),_.F("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.F(_.mk,{data:function(){return y().titleBadge}},{badgeViewModel:function(b){return _.F(_.hr,{data:b.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.F(_.w,{cond:function(){return y().eyebrowText},
then:function(){return _.F("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.F(_.QM,{text:function(){return y().eyebrowText}}))}}),_.F("div",{class:"ytm-option-item-renderer__option-item-title"},_.F(_.QM,{text:function(){return y().title}})),_.F("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.F(_.QM,{text:function(){return y().subtitle}})),_.F(_.w,{cond:function(){return y().featureListData},
then:function(){return _.F("div",{class:"ytm-option-item-renderer__feature-list-data"},_.F(_.eS,{each:function(){return y().featureListData||[]}},function(b){var N,T=(N=b.icon)==null?void 0:N.iconType;
a:switch(b.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":N="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":N="ytm-option-item-renderer__feature-list-icon-small";break a;default:N="ytm-option-item-renderer__feature-list-icon-default"}return _.F("div",{class:"ytm-option-item-renderer__feature-list"},_.F(_.W_,{icon:T,className:N,active:function(){return b.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.F("div",{class:"ytm-option-item-renderer__feature-list-text"},_.F(_.QM,{text:b.text,
className:function(){return b.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.F("div",{class:"ytm-option-item-renderer__option-item-description"},_.F(_.QM,{text:function(){return y().description}}))))},"Df");var oT8=_.Jd(function(R){var y=R.data;var u=R.flowClassName;var v=R.flowStateEntityKey;var Q=R.selectionStepStyle;return _.F("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.F("div",{class:"yt-option-section-renderer__option-section-header-section"},_.F("div",{class:"yt-option-section-renderer__option-section-header"},_.F(_.QM,{text:function(){return y().title}}),_.F(_.mk,{data:function(){return y().titleBadge}},{badgeViewModel:function(M){return _.F(_.hr,
{data:M.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.F(_.w,{cond:function(){return y().subtitle},
then:function(){return _.F("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.F(_.QM,{text:function(){return y().subtitle}}))}}),_.F(_.w,{cond:function(){return y().featureListData},
then:function(M){return _.F("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.F(_.eS,{each:M},function(K){var h;return _.F("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.F(_.W_,{icon:(h=K.icon)==null?void 0:h.iconType,active:function(){return K.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(K.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-green";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-small";default:return"yt-option-section-renderer__option-section-feature-item-icon-default"}}}),_.F("div",{class:"yt-option-section-renderer__option-section-feature-item-text"},_.F(_.QM,{text:K.text,
className:function(){return K.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"yt-option-section-renderer__option-section-feature-item-text-secondary":""}})))}))}}),_.F(_.w,{cond:function(){return y().secondaryTitle},
then:function(){return _.F("div",{class:"yt-option-section-renderer__option-section-secondary-title"},_.F(_.QM,{text:function(){return y().secondaryTitle}}))}}),_.F(_.eS,{each:function(){return y().sectionDisclaimers||[]}},function(M){return _.F("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.F(_.QM,{text:M}))})),_.F(_.mk,{data:function(){return y().optionItems}},{optionItemRenderer:function(M){return _.F("div",{class:"yt-option-section-renderer__option-item"},_.F(TIp,{data:M.data,
className:u,flowStateEntityKey:v,selectionStepStyle:Q}))}}),_.F(_.w,{cond:function(){return y().offerText},
then:function(){return _.F("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.F(_.QM,{text:function(){return y().offerText}}))}}))},"Ef");
oT8.idomCompat=!0;var xca=_.Jd(function(R){var y=R.data;var u=R.flowClassName;var v=R.flowStateEntityKey;R=R.isDesktop;var Q=function(){var N;return(N=y().flowStateEntityKey)!=null?N:v==null?void 0:v()},M=function(){return(Q==null?void 0:Q())||""},K=function(){return y().style},h=_.nA(_.jV,M);
_.rB(function(){var N=y(),T=M(),x=h();!_.e(x,nBP)&&N.noPreselect&&T!==""&&N.defaultButtonOverride&&G7K("default",T,N.defaultButtonOverride,x)});
var b={};return _.F("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.Oy("ytm-option-selection-flow-step-renderer",(b["ytm-option-selection-flow-step-renderer--desktop"]=R,b["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return y().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},b))},_.F("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"},
_.F("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.F(_.QM,{text:function(){return y().header}})),_.F("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.F(_.QM,{text:function(){return y().subtitle}}))),_.F(_.mk,{data:function(){return y().optionItems||[]}},{optionItemRenderer:function(N){return _.F("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.F(TIp,{data:N.data,
className:u,flowStateEntityKey:Q,selectionStepStyle:K}))},
optionSectionRenderer:function(N){return _.F("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.F(oT8,{data:N.data,flowClassName:u,flowStateEntityKey:Q,selectionStepStyle:K}))}}))},"Ff");
xca.idomCompat=!0;_.h6(xca,"yt-option-selection-flow-step-renderer",{props:{data:_.vR,flowClassName:_.vR,flowStateEntityKey:_.vR,isDesktop:_.vR}});var r7p,PrI;_.Ml=_.Jd(function(R){var y=_.jb(R,{type:1,disablePadding:!1,disablePrimaryButton:!1}),u=y.data,v=y.type;R=y.disablePadding;var Q=y.disablePrimaryButton,M=y.onClickPrimaryButton,K=function(){return u().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},h=function(){return{disabled:Q(),
state:Q()?"disabled":"active"}},b=function(){return u().leadingLabel||u().trailingLabel};
y={};return _.F("yt-panel-footer-view-model",{class:_.Oy("yt-panel-footer-view-model-wiz",(y["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return u().shouldHideDivider},y["yt-panel-footer-view-model-wiz--disable-padding"]=R,y))},_.F(_.w,{cond:b,
then:function(){var N={},T={};return _.F("div",{class:_.Oy("yt-panel-footer-view-model-wiz__text-row",(N["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var x=u();return!(!x.leadingLabel&&!x.trailingLabel||!x.primaryButton&&!x.secondaryButton)},N))},_.F(_.QM,{text:function(){return u().leadingLabel},
className:_.Oy((T["yt-panel-footer-view-model-wiz--text-padding"]=b,T))}),_.F(_.QM,{text:function(){return u().trailingLabel}}))}}),_.F(_.w,{cond:K,
then:function(){var N={};return _.F("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.F("div",{class:_.Oy("yt-panel-footer-view-model-wiz__primary-button",(N["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return u().secondaryButton},N))},_.F(_.mk,{data:function(){return u().primaryButton}},{buttonViewModel:function(T){return _.F(_.fQ,{data:T.data,
buttonOverrides:h,onClick:M})}})),_.F(_.mk,{data:function(){return u().secondaryButton}},{buttonViewModel:_.fQ}))}}),_.F(_.w,{cond:function(){return!K()},
then:function(){var N={},T={},x={};return _.F("div",{class:_.Oy("yt-panel-footer-view-model-wiz__button-row",(N["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===v()},N))},_.F("div",{class:_.Oy("yt-panel-footer-view-model-wiz__button-row--left-button",(T["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===v()},T["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!u().secondaryButton||0===v()},T["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===v()},T))},_.F(_.mk,{data:function(){return u().secondaryButton}},{buttonViewModel:_.fQ})),_.F("div",{class:_.Oy("yt-panel-footer-view-model-wiz__primary-button",(x["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===v()||1===v()},x["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===v()},x))},_.F(_.mk,{data:function(){return u().primaryButton}},{buttonViewModel:function(B){return _.F(_.fQ,{data:B.data,
buttonOverrides:h,onClick:M})}})))}}))},"Gf");
_.Ml.idomCompat=!0;_.BI8=_.Jd(function(R){R=_.jb(R,{disablePadding:!1});var y=R.data,u=R.disablePadding;R=_.k7a(function(){return y().formId});
var v=R.onSubmit,Q=R.isValid,M=R.isSubmitting;return _.F("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.F(_.mk,{data:function(){return y().panelFooter}},{panelFooterViewModel:function(K){return _.F(_.Ml,{data:K.data,
onClickPrimaryButton:function(){v()},
disablePrimaryButton:function(){return!Q()||M()},
disablePadding:u})}}))},"Hf");_.h6(_.BI8,"yt-form-footer-view-model",{props:{data:_.vR,disablePadding:_.vR}});_.h6(_.Jd(function(R){return _.F("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.F("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.F(_.w,{cond:function(){var y;return(y=R.data())==null?void 0:y.image},
then:function(y){return _.F(_.MR,{data:y,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.F("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.F(_.QM,{text:function(){var y;
return(y=R.data())==null?void 0:y.title}})),_.F("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.F(_.QM,{text:function(){var y;
return(y=R.data())==null?void 0:y.subtitle}})),_.F("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.F(_.mk,{data:function(){var y;
return(y=R.data())==null?void 0:y.viewTipsButton}},{buttonViewModel:_.fQ}))))},"If"),"yt-contributor-zero-state-view-model",{props:{data:_.vR}});var fzP=_.Jd(function(R){var y=function(){var u;return(u=R.data())==null?void 0:u.image};
return _.F("yt-featured-content-item-view-model",{class:_.Oy("ytFeaturedContentItemViewModelHost")},_.F("div",{class:_.Oy(function(){return y()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.F("div",{class:function(){return y()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.F(_.w,{cond:y,
then:function(){return _.F("div",{class:"ytFeaturedContentItemViewModelImage"},_.F(_.mk,{data:function(){return R.data().image}},{themedImageViewModel:jN8}))}}),_.F(_.w,{cond:function(){var u;
return!y()&&((u=R.data())==null?void 0:u.iconName)},
then:function(){return _.F("div",{class:"ytFeaturedContentItemViewModelIcon"},_.F(_.W_,{icon:function(){return R.data().iconName}}))}}),_.F("div",{class:"ytFeaturedContentItemViewModelContent"},_.F(_.w,{cond:function(){var u;
return(u=R.data())==null?void 0:u.title},
then:function(){return _.F("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.F(_.QM,{text:function(){return R.data().title}}))}}),_.F(_.w,{cond:function(){var u;
return(u=R.data())==null?void 0:u.body},
then:function(){return _.F("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.F(_.QM,{text:function(){return R.data().body}}))}})))))},"Jf");var eHp=_.Jd(function(R){var y=function(){var Q;return EBP((Q=R.data())==null?void 0:Q.titleFontSize)},u=function(){var Q;
return $sP((Q=R.data())==null?void 0:Q.descriptionFontSize)},v=function(){var Q;
return((Q=R.data())==null?void 0:Q.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.F("yt-landing-page-view-model",{class:_.Oy("ytLandingPageViewModelHost",R.className)},_.F("div",{class:"ytLandingPageViewModelHeader"},_.F(_.w,{cond:function(){var Q;return(Q=R.data())==null?void 0:Q.bannerImage},
then:function(Q){return _.F("div",{class:"ytLandingPageViewModelHeaderImage"},_.F(_.mk,{data:function(){return Q()}},{imageBannerViewModel:function(M){return _.F(_.sH,{data:M.data,
isPositionRelative:!0})}}))}}),_.F(_.w,{cond:function(){var Q;
return(Q=R.data())==null?void 0:Q.bannerAnimation},
then:function(Q){return _.F(_.F2,{data:function(){var M=Q();if(M==null?0:M.url){var K;M={path:(K=M==null?void 0:M.url)!=null?K:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(M==null?0:M.payload){var h;M={animationData:JSON.parse((h=M==null?void 0:M.payload)!=null?h:""),autoplay:!0,loop:!0,renderer:"svg"}}else M=void 0;return{animationConfig:M}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.F("div",{class:"ytLandingPageViewModelHeaderTitle"},_.F(_.w,{cond:function(){var Q;
return(Q=R.data())==null?void 0:Q.title},
then:function(Q){return _.F("div",{class:_.Oy("ytLandingPageViewModelHeaderTitleContent",y)},_.F(_.QM,{text:function(){return Q()}}))}}),_.F(_.w,{cond:function(){var Q;
return(Q=R.data())==null?void 0:Q.description},
then:function(Q){var M={};return _.F(_.QM,{className:_.Oy("ytLandingPageViewModelHeaderTitleDescription",u,(M.ytLandingPageViewModelHeaderTitleDescriptionMargin=v,M)),text:function(){return Q()}})}}))),_.F(_.w,{cond:function(){var Q,M;
return(Q=R.data())==null?void 0:(M=Q.featuredContentList)==null?void 0:M.length},
then:function(){return _.F("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.F(_.mk,{data:function(){return R.data().featuredContentList}},{featuredContentItemViewModel:function(Q){return _.F(fzP,{data:Q.data})}}))}}),_.F(_.w,{cond:function(){var Q,M;
return(Q=R.data())==null?void 0:(M=Q.expandableContentList)==null?void 0:M.length},
then:function(){return _.F("div",{class:"ytLandingPageViewModelFaqSection"},_.F(_.mk,{data:function(){return R.data().expandableContentList}},{faqEntryViewModel:function(Q){return _.F("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.F(_.O0L,{data:Q.data}))}}))}}),_.F("div",{class:"ytLandingPageViewModelFooter"},_.F(_.w,{cond:function(){var Q;
return(Q=R.data())==null?void 0:Q.legalCopy},
then:function(Q){return _.F("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.F(_.QM,{text:function(){return Q()}}))}}),_.F(_.w,{cond:function(){var Q;
return(Q=R.data())==null?void 0:Q.actions},
then:function(Q){return _.F("div",null,_.F(_.mk,{data:function(){return Q()}},{flexibleActionsViewModel:function(M){return _.F(_.XJ,{data:M.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"Kf");_.h6(_.Jd(function(R){return _.F("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.F(_.mk,{data:function(){return R.data().sections}},{landingPageViewModel:function(y){return _.F(eHp,{data:y.data,
className:"ytLpSectionGroupViewModelSection"})}}))},"Lf"),"yt-lp-section-group-view-model",{props:{data:_.vR}});var lza=_.Jd(function(R){var y=_.nA(qBI,_.Qj(function(){var h;return(h=R.data())==null?void 0:h.noteFeedEntityKey},"")),u=_.nA(Luo,_.Qj(function(){var h;
return(h=R.data())==null?void 0:h.userRatingEntityKey},"")),v=_.f("enable_user_rating_web"),Q=function(){var h,b,N;
return((h=y())==null?0:h.contributorNote)?(b=y())==null?void 0:b.contributorNote:(N=R.data())==null?void 0:N.existingNote},M=function(){var h,b;
return!!u()&&!!Xu8((h=u())==null?void 0:h.helpfulnessValue,(b=R.data())==null?void 0:b.noteData)};
if(v){var K={};return _.F("yt-note-view-model",{class:_.Oy("ytNoteViewModelHostUserRating",(K.ytNoteViewModelHostUserRatingPublishedNote=function(){var h,b;return(h=R.data())==null?void 0:(b=h.noteData)==null?void 0:b.isPublished},K))},_.F("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.F("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.F(_.w,{cond:function(){var h,b;
return(h=R.data())==null?void 0:(b=h.noteData)==null?void 0:b.isPinned},
then:function(){return _.F(_.W_,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.F(_.w,{cond:function(){var h,b;return(h=R.data())==null?void 0:(b=h.noteData)==null?void 0:b.isPublished},
then:function(){return _.F(_.W_,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.F(_.mk,{data:function(){var h;
return(h=R.data())==null?void 0:h.metadata}},{contentMetadataViewModel:_.Fx}),_.F("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var h,b;
return(b=_.e((h=R.data())==null?void 0:h.metadata,_.u2K))==null?void 0:b.delimiter}),_.F(_.QM,{text:function(){var h;
return(h=Q())==null?void 0:h.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.F(_.mk,{data:function(){var h,b,N,T,x,B,l,Z=!!((h=R.data())==null?0:(b=h.noteData)==null?0:b.isPinned);h=M();b=(N=R.data())==null?void 0:N.noteData;N=(T=y())==null?void 0:(x=T.contributorNote)==null?void 0:x.deleteAction;T=(B=R.data())==null?void 0:B.overflowButtonNoteWithRatingOnTapOverride;B=(l=R.data())==null?void 0:l.overflowButton;return Z?msH(b,N):h?{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",onTap:T}}:B}},{buttonViewModel:function(h){return _.F(_.fQ,{data:h.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.F("div",{class:"ytNoteViewModelNoteContent"},_.F(_.QM,{text:function(){var h;
return(h=Q())==null?void 0:h.text}})),_.F(_.w,{cond:function(){var h,b;
return!((h=R.data())==null?0:(b=h.noteData)==null?0:b.isPinned)},
then:function(){return _.F(_.w,{cond:M,then:function(){return _.F("div",{class:"ytNoteViewModelUserRatingContainer"},_.F(_.QM,{text:function(){var h,b;return Xu8((h=u())==null?void 0:h.helpfulnessValue,(b=R.data())==null?void 0:b.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.F(_.mk,{data:function(){var h;return(h=R.data())==null?void 0:h.userRatingButton}},{buttonViewModel:function(h){return _.F(_.fQ,{data:h.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.F(_.w,{cond:function(){var h,b;
return!((h=R.data())==null?0:(b=h.noteData)==null?0:b.ignoreDivider)},
then:function(){return _.F("div",{class:"ytNoteViewModelDivider"},_.F(_.mk,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(h){return _.F(_.AEG,{data:h.data})}}))}}))}return _.F("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.F("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.F("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.F(_.w,{cond:function(){var h,b;return(h=R.data())==null?void 0:(b=h.noteData)==null?void 0:b.isPinned},
then:function(){return _.F(_.W_,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.F(_.w,{cond:function(){var h,b;return(h=R.data())==null?void 0:(b=h.noteData)==null?void 0:b.isPublished},
then:function(){return _.F(_.W_,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.F(_.w,{cond:function(){return v},
then:function(){return _.F(_.mk,{data:function(){var h;return(h=R.data())==null?void 0:h.metadata}},{contentMetadataViewModel:function(h){return _.F(_.Fx,{data:h.data})}})}}),_.F(_.QM,{text:function(){var h,b;
return(h=R.data())==null?void 0:(b=h.noteData)==null?void 0:b.headerText}}),_.F("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.F(_.QM,{text:function(){var h,b;
return(h=R.data())==null?void 0:(b=h.noteData)==null?void 0:b.delimiter}})),_.F(_.QM,{text:function(){var h,b;
return(h=y())==null?void 0:(b=h.contributorNote)==null?void 0:b.publishedTimeText}})),_.F(_.mk,{data:function(){var h,b,N;
return msH((h=R.data())==null?void 0:h.noteData,(b=y())==null?void 0:(N=b.contributorNote)==null?void 0:N.deleteAction)}},{buttonViewModel:function(h){return _.F(_.fQ,{data:h.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.F("div",{class:"ytNoteViewModelNoteContent"},_.F(_.QM,{text:function(){var h,b;
return(h=y())==null?void 0:(b=h.contributorNote)==null?void 0:b.text}})))},"Mf");
lza.idomCompat=!0;_.h6(lza,"yt-note-view-model",{props:{data:_.vR}});var Jg=_.Jd(function(R){var y=_.jb(R,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),u=y.label,v=y.text,Q=y.placeholder,M=y.hint;R=y.rows;var K=y.overflowStyle,h=y.outline,b=y.disabled,N=y.disableNewLines,T=y.characterLimit,x=y.validation,B=y.onInput,l=_.sh("textarea");y=_.V(_.rW(function(){return v()}));
var Z=y.next().value,P=y.next().value;y=_.V(_.In(!1,void 0,"fXvinf"));var k=y.next().value,E=y.next().value,D=function(){E(!0)},z=function(){E(!1)};
_.rB(function(){var Dc=l.value,$S=K(),hL=Z();$S==="expand-vertically"&&hL&&A7J(Dc);l.value.addEventListener("focusin",D);l.value.addEventListener("focusout",z)});
_.GF(function(){l.value.removeEventListener("focusin",D);l.value.removeEventListener("focusout",z)});
var c=function(){var Dc;return(Dc=x())==null?void 0:Dc.validate(Z())},a=function(){return T()&&!c()&&Z().length>T().maxChars},L=function(){return!!c()||a()};
y=_.nh(function(Dc){if(!Dc.currentTarget)return!1;Dc=Dc.currentTarget;P(Dc.value);K()==="expand-vertically"&&A7J(Dc);B==null||B(Dc.value);return!0});
var QG=_.nh(function(Dc){N()&&Dc.key==="Enter"&&Dc.preventDefault();return!1}),hz=_.nh(function(){l.value.focus()}),bO=function(){return Q()||u()},BW={},Zc={},xS={};
return _.F("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.F("div",{class:_.Oy("ytStandardsTextareaShapeTextareaContainer",(BW.ytStandardsTextareaShapeTextareaContainerOutline=h,BW.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=b,BW.ytStandardsTextareaShapeTextareaContainerOutlineError=L,BW)),"on:click":hz},_.F("label",{class:_.Oy("ytStandardsTextareaShapeLabel",(Zc.ytStandardsTextareaShapeLabelFocused=k,Zc.ytStandardsTextareaShapeLabelDisabled=b,Zc.ytStandardsTextareaShapeLabelError=
function(){return L()&&!b()},Zc.ytStandardsTextareaShapeLabelHidden=function(){return!k()&&!Z()&&!!bO()},Zc))},u),_.F("div",{class:_.Oy("ytStandardsTextareaShapePlaceholder",(xS.ytStandardsTextareaShapePlaceholderVisible=function(){return!k()&&!Z()},xS)),
"aria-hidden":"true"},bO),_.F("textarea",{el:l,class:"ytStandardsTextareaShapeTextarea",rows:R,disabled:b,placeholder:bO,"on:input":y,"on:keydown":QG},Z)),_.F(_.w,{cond:function(){return M()&&!L()},
then:function(){var Dc={};return _.F("div",{class:_.Oy("ytStandardsTextareaShapeHint",(Dc.ytStandardsTextareaShapeHintDisabled=b,Dc))},_.F("div",{class:"ytStandardsTextareaShapeHintHintMessage"},M))}}),_.F(_.w,{cond:c,
then:function(){return _.F(OiJ,{disabled:b},_.F("div",{class:"ytStandardsTextareaShapeErrorMessage"},c))}}),_.F(_.w,{cond:T,
then:function(Dc){return _.F(_.w,{cond:a,then:function(){return _.F(OiJ,{disabled:b},_.F("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return Dc().errorMessage}),_.F("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return Z().length+"/"+Dc().maxChars}))}})}}))},"Nf");
Jg.idomCompat={callbacks:{onInput:!0}};var OiJ=_.Jd(function(R){var y={};return _.F("div",{class:_.Oy("ytStandardsTextareaShapeError",(y.ytStandardsTextareaShapeErrorDisabled=R.disabled,y)),role:"alert"},_.F(_.W_,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),R.children)},"Of");_.ZiJ=_.Jd(function(R){var y=R.data;return _.F("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.F(Jg,{text:R.text,label:function(){var u;return(u=y().contentProperties)==null?void 0:u.labelText},
placeholder:function(){var u;return(u=y().contentProperties)==null?void 0:u.placeholderText},
hint:function(){var u;return(u=y().contentProperties)==null?void 0:u.hintText},
outline:function(){var u;return!((u=y().displayProperties)==null?0:u.hideBorder)},
overflowStyle:function(){var u;return((u=y().displayProperties)==null?0:u.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:R.disabled,disableNewLines:function(){var u;return(u=y().displayProperties)==null?void 0:u.disableNewLines},
onInput:R.onInput,characterLimit:R.characterLimit,validation:R.validation,rows:function(){var u;return(u=y().displayProperties)==null?void 0:u.rows}}))},"Pf");_.Him=_.Jd(function(R){var y=R.data;return _.F("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.F(Jg,{text:R.text,label:function(){var u;return(u=y().contentProperties)==null?void 0:u.labelText},
placeholder:function(){var u;return(u=y().contentProperties)==null?void 0:u.placeholderText},
hint:function(){var u;return(u=y().contentProperties)==null?void 0:u.hintText},
outline:function(){var u;return!((u=y().displayProperties)==null?0:u.hideBorder)},
overflowStyle:function(){var u;return((u=y().displayProperties)==null?0:u.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var u;return(u=y().displayProperties)==null?void 0:u.disableNewLines},
onInput:R.onInput,characterLimit:R.characterLimit,validation:R.validation,rows:function(){var u;return(u=y().displayProperties)==null?void 0:u.rows}}))},"Qf");var nTm=_.Jd(function(R){var y=_.V(_.rW(function(){var bO,BW;return((bO=R.data().structuredContextNoteFormSchema)==null?0:(BW=bO.initialValues)==null?0:BW.noteBody)?R.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),u=y.next().value,v=y.next().value;
y=_.V(_.rW(function(){R.data();return!1}));
var Q=y.next().value,M=y.next().value;y=_.V(_.rW(function(){R.data();return!1}));
var K=y.next().value,h=y.next().value;y=_.V(_.rW(function(){var bO,BW;return((bO=R.data().structuredContextNoteFormSchema)==null?0:(BW=bO.initialValues)==null?0:BW.timestamp)?R.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var b=y.next().value,N=y.next().value;y=_.V(_.rW(function(){R.data();return!1}));
var T=y.next().value,x=y.next().value;y=_.V(_.rW(function(){var bO,BW;return((bO=R.data().structuredContextNoteFormSchema)==null?0:(BW=bO.initialValues)==null?0:BW.sources)?[R.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var B=y.next().value,l=y.next().value;y=_.V(_.rW(function(){R.data();return!1}));
var Z=y.next().value,P=y.next().value;y=_.V(_.rW(function(){return!1}));
var k=y.next().value,E=y.next().value;_.rB(function(){var bO;_.Usg((bO=R.data().structuredContextNoteFormSchema)==null?void 0:bO.id,{isSubmitting:k,onSubmit:function(){E(!0);var BW=sMM(u(),b(),B(),R.data()),Zc=_.ua().resolve(_.jX);BW&&Zc&&Zc.resolveCommand(BW,{commandController:{onSuccess:function(){E(!1)}}})},
isValid:function(){return Q()&&!K()&&!T()&&!Z()}})});
var D=function(bO){if(bO!==void 0&&(v(bO),!Q()&&bO.length>0&&M(!0),Q())){var BW=tSM(R.data());if(BW){var Zc=BW.minLength;BW=BW.maxLength;Zc&&bO.length<Zc?h(!0):BW&&bO.length>BW?h(!0):h(!1)}}},z=function(bO){if(bO!==void 0){N(bO);
if(bO.length>0){var BW,Zc,xS,Dc,$S=a6m((BW=R.data())==null?void 0:(Zc=BW.structuredContextNoteFormSchema)==null?void 0:(xS=Zc.fieldSchemas)==null?void 0:(Dc=xS.timestamp)==null?void 0:Dc.validationSchema);if($S&&(BW=$S.regex)&&!(new RegExp(BW)).test(bO)){x(!0);return}}x(!1)}},c=function(bO){if(bO!==void 0){var BW=bO.split(/[ \n]/).map(function(Zc){return Zc.trim()});
l(BW);if(bO.length>0)for(bO=_.V(BW),BW=bO.next();!BW.done;BW=bO.next())if(!LqP(BW.value)){P(!0);return}P(!1)}},a=function(){return{validate:function(bO){if(Q()){var BW=tSM(R.data());
if(BW){var Zc=BW.minLength;BW=BW.translations;if(Zc&&bO.length<Zc)return BW==null?void 0:BW.minLengthErrorMessage}}}}},L=function(){var bO=tSM(R.data()),BW=bO==null?void 0:bO.maxLength,Zc;
bO=bO==null?void 0:(Zc=bO.translations)==null?void 0:Zc.maxLengthErrorMessage;if(BW&&bO)return{maxChars:BW,errorMessage:bO}},QG=function(){return{validate:function(bO){if(bO){var BW,Zc,xS,Dc,$S=a6m((BW=R.data())==null?void 0:(Zc=BW.structuredContextNoteFormSchema)==null?void 0:(xS=Zc.fieldSchemas)==null?void 0:(Dc=xS.timestamp)==null?void 0:Dc.validationSchema);
if($S&&(BW=$S.regex,$S=$S.translations,BW&&!(new RegExp(BW)).test(bO)))return $S==null?void 0:$S.regexErrorMessage}}}},hz=function(){return{validate:function(bO){if(bO){var BW,Zc,xS,Dc,$S=YBV((BW=R.data())==null?void 0:(Zc=BW.structuredContextNoteFormSchema)==null?void 0:(xS=Zc.fieldSchemas)==null?void 0:(Dc=xS.sources)==null?void 0:Dc.validationSchema);
if($S&&(BW=$S.translations,BW==null?0:BW.selectedErrorMessage))for(bO=bO.split(/[ \n]/).map(function(hL){return hL.trim()}),bO=_.V(bO),Zc=bO.next();!Zc.done;Zc=bO.next())if(!LqP(Zc.value))return bO=void 0,(bO=BW)==null?void 0:bO.selectedErrorMessage}}}};
return _.F("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.F("div",{class:"ytStructuredContextNoteViewModelTextField"},_.F(_.mk,{data:function(){var bO;return(bO=R.data())==null?void 0:bO.noteContents}},{textFormFieldViewModel:function(bO){return _.F(_.Him,{data:bO.data,
onInput:D,validation:a,characterLimit:L})},
textFieldViewModel:function(bO){return _.F(_.ZiJ,{data:bO.data,onInput:D,validation:a,characterLimit:L})}})),_.F("div",{class:"ytStructuredContextNoteViewModelTextField"},_.F(_.mk,{data:function(){var bO;
return(bO=R.data())==null?void 0:bO.noteTimestamp}},{textFormFieldViewModel:function(bO){return _.F(_.Him,{data:bO.data,
onInput:z,validation:QG})},
textFieldViewModel:function(bO){return _.F(_.ZiJ,{data:bO.data,onInput:z,validation:QG})}})),_.F("div",{class:"ytStructuredContextNoteViewModelTextField"},_.F(_.mk,{data:function(){var bO;
return(bO=R.data())==null?void 0:bO.noteSources}},{textFormFieldViewModel:function(bO){return _.F(_.Him,{data:bO.data,
onInput:c,validation:hz})},
textFieldViewModel:function(bO){return _.F(_.ZiJ,{data:bO.data,onInput:c,validation:hz})}})))},"Rf");
nTm.idomCompat=!0;_.h6(nTm,"yt-structured-context-note-view-model",{props:{data:_.vR}});var Gpa=_.Jd(function(R){var y=_.V(_.rW(function(){var M;if((M=R.controlled)==null?0:M.call(R))return[];var K;return(((K=R.data())==null?void 0:K.chips)||[]).map(function(h){h=_.e(h,_.sc);if(h==null?0:h.selected)return z27(h.chipValue)}).filter(function(h){return h!==void 0})})),u=y.next().value,v=y.next().value,Q=function(M){var K=z27(M.chipValue);
if(K!==void 0){var h;if((h=R.controlled)==null?0:h.call(R))return void R.controlled().onTap(K);M=u().includes(K)?[].concat(_.P$(u().filter(function(N){return N!==K}))):[].concat(_.P$(u()),[K]);
v(M);var b;if((b=R.uncontrolled)==null?0:b.call(R))R.uncontrolled().onUpdate(M)}};
return _.F("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.F(_.eS,{each:function(){return R.data().chips||[]}},function(M){return _.F("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.F(_.DZ,{data:function(){return _.e(M,_.sc)},
selected:function(){var K;if(K=_.e(M,_.sc)){var h=z27(K.chipValue);if(h!==void 0){var b;K=((b=R.controlled)==null?0:b.call(R))?R.controlled().selectedValues.includes(h):u().includes(h)}else K=void 0}else K=!1;return K},
callback:Q}))}))},"Sf");var rcM=_.Jd(function(R){var y=R.data;var u=function(){var h;return((h=y())==null?void 0:h.flowStateKey)||""},v=_.nA(_.jV,u),Q=function(){var h;
return(h=_.e(v(),p5m))==null?void 0:h.chips},M=function(h){if(h!==void 0){var b=Q()||[];
b=b.find(function(N){return N===h})?b.filter(function(N){return N!==h}):[].concat(_.P$(b),[h]);
b=Object.assign({},v(),{feedbackFormFlowState:Object.assign({},_.e(v(),p5m),{chips:b})});_.vy(_.Gw("flowStateEntity",u(),b))}},K=function(){var h;
return _.e((h=y())==null?void 0:h.inputBox,tXK)};
R=_.np(function(h){var b=K();b=!(b==null?0:b.maxChars)||h.length<=b.maxChars;h=Object.assign({},v(),{feedbackFormFlowState:Object.assign({},_.e(v(),p5m),{detail:h}),abuseReportFlowState:Object.assign({},_.e(v(),P9),{navigationEnabled:b})});_.vy(_.Gw("flowStateEntity",u(),h))},150);
return _.F("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.F("div",{class:"ytFeedbackFormViewModelChips"},_.F(_.mk,{data:function(){var h;return(h=y())==null?void 0:h.chipSelection}},{chipSelectionFormFieldViewModel:function(h){return _.F(Gpa,{data:h.data,
controlled:function(){return{selectedValues:Q()||[],onTap:M}}})}})),_.F("div",{class:"ytFeedbackFormViewModelInputBox"},_.F(Jg,{text:function(){var h;
return(h=_.e(v(),p5m))==null?void 0:h.detail},
placeholder:function(){var h;return((h=K())==null?void 0:h.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var h=K();if(h&&h.maxChars)return{maxChars:h.maxChars,errorMessage:h.maxCharsExceededErrorMessage||""}},
onInput:R})),_.F("div",{class:"ytFeedbackFormViewModelFooterText"},_.F(_.QM,{text:function(){return y().footerText}})))},"Tf");
rcM.idomCompat=!0;_.h6(rcM,"yt-feedback-form-view-model",{props:{data:_.vR}});var P_I=_.Jd(function(R){var y=R.data;var u=function(){return y().flowStateKey||""},v=_.nA(Ypm,u),Q=function(){return _.e(v(),P9)},M=function(){if(_.f("enable_gff_accessibility_fix")){var K=!0,h;
if((h=Q())==null?0:h.navigationEnabled){var b;_.zN((b=Q())==null?void 0:b.navigationCommand);K=!1}h=Object.assign({},v(),{abuseReportFlowState:Object.assign({},Q(),{isReportFormDirty:K})});_.vy(_.Gw("flowStateEntity",u(),h))}else _.zN((K=Q())==null?void 0:K.navigationCommand)};
return _.F("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.F("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.F(_.mk,{data:function(){return y().cancelButton}},{buttonViewModel:function(K){return _.F(_.fQ,{data:K.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:M})}}),_.F(_.mk,{data:function(){var K;
if(y().navButton){var h=Object;var b=h.assign,N=_.e(y().navButton,_.k9),T=((K=Q())==null?0:K.navigationEnabled)||_.f("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",x,B;K=_.e((x=Q())==null?void 0:x.navigationCommand,_.ac);x=(B=_.e(K,_.tc))==null?void 0:B.url;h={buttonViewModel:b.call(h,{},N,{state:T,iconName:x?"OPEN_IN_NEW":""})}}else h=void 0;return h}},{buttonViewModel:function(K){return _.F(_.fQ,{data:K.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:M})}})))},"Uf");
P_I.idomCompat=!0;_.h6(P_I,"yt-report-form-bottom-bar-view-model",{props:{data:_.vR}});var WWa=_.Jd(function(R){var y=R.nextStep;return _.F("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.F("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.F(_.W_,{icon:function(){return y().iconName||""}})),_.F("div",null,_.F(_.QM,{text:function(){return y().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Vf"),dcZ=_.Jd(function(R){var y=R.data;
var u,v=(u=_.ua().resolve(_.yN(_.u0)))==null?void 0:u(),Q=_.nA(_.jV,function(){return y().flowStateKey||""});
return _.F("yt-report-form-confirmation-page-view-model",{class:function(){var M;return((M=_.e(Q(),P9))==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.F("div",{class:function(){var M;
return((M=_.e(Q(),P9))==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.F(_.MR,{data:function(){return v&&y().imageDark?y().imageDark:y().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.F("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.F("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return y().confirmationHeader}),_.F("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.F(_.QM,{text:function(){return y().confirmationText}})),_.F("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.F(_.QM,{text:function(){return y().lawEnforcementText}})),
_.F("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return y().whatToExpectHeader}),_.F(_.w,{cond:function(){return y().nextSteps},
then:function(M){return _.F("div",null,_.F(_.eS,{each:M},function(K){return _.F(WWa,{nextStep:K})}))}}),_.F(_.w,{cond:function(){return y().legalReportText},
then:function(M){return _.F("div",null,_.F(_.QM,{text:M,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Wf");
dcZ.idomCompat=!0;_.h6(dcZ,"yt-report-form-confirmation-page-view-model",{props:{data:_.vR}});var UcI=_.Jd(function(R){var y=R.data;var u=function(){var M;return((M=_.e(y().inputBox,tXK))==null?void 0:M.maxChars)||500},v=function(){return y().flowStateKey||""},Q=_.nA(_.jV,v);
R=_.np(function(M){M=Object.assign({},Q(),{flowFormState:{isValid:M.length<=u()},abuseReportFlowState:{userComments:M,navigationEnabled:!(M.length>u()),isReportFormDirty:!0}});_.uX().dispatch(_.DT("flowStateEntity",v(),M))},150);
_.rB(function(){var M=Object.assign({},Q(),{flowFormState:{isValid:!0}});_.uX().dispatch(_.DT("flowStateEntity",v(),M))});
return _.F("yt-report-form-details-page-view-model",{class:function(){var M;return((M=_.e(Q(),P9))==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.F("h1",{class:function(){var M;
return((M=_.e(Q(),P9))==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return y().detailsPageHeader}),_.F("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.F(_.QM,{text:function(){return y().bodyText}})),_.F("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.F(Jg,{label:function(){var M;
return((M=_.e(y().inputBox,tXK))==null?void 0:M.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var M;return{errorMessage:((M=_.e(y().inputBox,tXK))==null?void 0:M.maxCharsExceededErrorMessage)||"",maxChars:u()}},
onInput:R})))},"Xf");
UcI.idomCompat=!0;_.h6(UcI,"yt-report-form-details-page-view-model",{props:{data:_.vR}});var kpV=_.Jd(function(R){var y=R.data;var u=R.selectedKey;var v=R.onSelected;var Q=R.groupName;var M=function(){return y().text},K=function(){return y().attributedText},h=function(){return y().subtext},b=function(){return y().attributedSubtext},N=_.F("div",{class:"ytRadioButtonItemViewModelLabel"},_.F(_.w,{cond:M,
then:function(){return _.F("div",null,M)}}),_.F(_.w,{cond:K,
then:function(){return _.F(_.QM,{text:K})}}),_.F(_.w,{cond:h,
then:function(){return _.F("div",{class:"ytRadioButtonItemViewModelSubText"},h)}}),_.F(_.w,{cond:b,
then:function(){return _.F("div",{class:"ytRadioButtonItemViewModelSubText"},_.F(_.QM,{text:b}))}})),T=function(){if(K()){var B;
return(B=K())==null?void 0:B.content}return M()},x=function(){if(b()){var B;
return(B=b())==null?void 0:B.content}return h()};
R={};return _.F("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.F(_.cw,{name:Q,checked:function(){return!(u==null||!u()||y().key!==(u==null?void 0:u()))},
onChange:function(B){v==null||v(B.target,y(),Q==null?void 0:Q())},
labelRenderable:function(){return N},
ariaLabel:function(){return x()?T()+", "+x():T()},
className:_.Oy((R.ytRadioButtonItemViewModelSubTitle=function(){return!!y().subtext},R))}))},"Yf");_.ET8=_.Jd(function(R){var y=R.data;var u=R.onSelected;var v=R.selectedKey;var Q=R.groupName;var M=function(){return(Q==null?void 0:Q())||y().key};
return _.F("yt-radio-button-group-view-model",{class:"ytRadioButtonGroupViewModelHost",tabindex:0},_.F("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.F(_.mk,{data:function(){return y().radioButtons}},{radioButtonItemViewModel:function(K){return _.F(kpV,{data:K.data,
onSelected:u,selectedKey:v,groupName:M})}})))},"Zf");var $cJ=_.Jd(function(R){var y=R.data;var u=_.zp("div"),v=function(){return y().flowStateKey||""},Q=_.nA(_.jV,v),M=function(){return _.e(Q(),P9)};
_.ny(function(){var K,h;if(((K=M())==null?0:K.isReportFormDirty)&&((h=M())==null||!h.navigationEnabled)&&_.f("enable_gff_accessibility_fix")){var b;if(((b=M())==null?void 0:b.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var N;(N=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||N.scrollIntoView()}else{var T;(T=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||T.scrollIntoView()}}},"VvP2Ne");
return _.F("yt-report-form-reason-select-page-view-model",{class:function(){var K;return((K=M())==null?void 0:K.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.F("h1",{class:function(){var K;
return((K=M())==null?void 0:K.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return y().pageHeader}),_.F("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.F(_.QM,{text:function(){return y().bodyText}})),_.F("div",{class:function(){var K;
return((K=M())==null?void 0:K.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.F(_.w,{cond:function(){var K,h;
return((K=M())==null?void 0:K.isReportFormDirty)&&!((h=M())==null?0:h.navigationEnabled)&&_.f("enable_gff_accessibility_fix")},
then:function(){return _.F("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:u},_.F(_.W_,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.F("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return y().emptyReasonSelectErrorMessage}))}}),_.F(_.ET8,{data:function(){return _.e(y().radioButtonGroup,_.gz7)},
onSelected:function(K,h){K=Object.assign({},Q(),{abuseReportFlowState:Object.assign({},M(),{reasonKey:h.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:h.command})});_.vy(_.Gw("flowStateEntity",v(),K))},
selectedKey:function(){var K;return(K=M())==null?void 0:K.reasonKey},
groupName:"report-form-reason-select-page"})))},"$f");
$cJ.idomCompat=!0;_.h6($cJ,"yt-report-form-reason-select-page-view-model",{props:{data:_.vR}});var qhg=_.Jd(function(R){var y=R.data;var u,v=(u=_.ua().resolve(_.yN(_.u0)))==null?void 0:u();return _.F("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.F("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.F(_.MR,{data:function(){return v&&y().imageDark?y().imageDark:y().image},
alt:""})),_.F("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.F("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return y().header}),_.F(_.QM,{text:function(){return y().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"ag");
qhg.idomCompat=!0;_.h6(qhg,"yt-report-form-sign-in-page-view-model",{props:{data:_.vR}});_.h6(_.Jd(function(R){var y=R.data;var u=function(){return y().titleSuperscript},v=function(){return y().answersShelf},Q=function(){return y().videoShelf},M=function(){var P;
return(P=y().textInputPlaceholder)==null?void 0:P.content},K=function(){return y().showOpenTextInput&&!_.f("web_hide_explore_hub_until_user_navigates_back_to_home")},h=function(){var P;
return(P=y().textInputValue)==null?void 0:P.content},b=_.zp("input");
_.nG(function(){K()&&h()&&b.value&&(b.value.value=h())});
var N=function(P){P=P.target.value.trim();var k=y().onUpdateText;k&&_.zN(k,{form:{userQuery:P}});y().userQuery=P},T=_.np(function(P){N(P)},150),x=_.nh(function(P){T(P);
return!1}),B=_.nh(function(P){P.key==="Enter"&&(N(P),(P=y().onNextStepCommand)&&_.zN(P,{forceClickLogging:!0}));
return!1}),l=_.sh("yt-talk-to-recs-view-model"),Z=function(){if(_.f("web_hide_explore_hub_until_user_navigates_back_to_home")){var P,k,E;
(E=(k=(P=l.value)==null?void 0:P.closest("ytd-flow-step-renderer"))==null?void 0:k.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||E.click()}};
R={};return _.F("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:l},_.F("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.F(_.mk,{data:function(){return y().topCornerButton}},{buttonViewModel:_.fQ})),_.F("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.F("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.F(_.QM,{text:function(){return y().title}}),_.F(_.w,{cond:u,
then:function(){return _.F("sup",{class:"ytwTalkToRecsSuperScript"},_.F(_.QM,{text:u}))}})),_.F("div",{class:"ytwTalkToRecsSubtitle"},_.F(_.QM,{text:function(){return y().subtitle}})),_.F("div",{class:"ytwTalkToRecsResultsShelf"},_.F(_.w,{cond:v,
then:function(){return _.F(_.mk,{data:v},{chipsShelfViewModel:function(P){return _.F("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.F(_.LZ5,{data:P.data,callback:Z,enableSingleChipSelection:!0}))}})}}),_.F(_.w,{cond:Q,
then:function(){return _.F(_.mk,{data:Q},{horizontalShelfViewModel:function(P){return _.F("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.F(_.Y5,{data:P.data}))}})}})),_.F("div",{class:_.Oy("ytwTalkToRecsRefinementContainer",(R.ytwTalkToRecsBottomMargin=function(){return y().isMultiTurnFlow},R.ytwTalkToRecsBottomMargin=function(){return y().isMultiTurnFlow},R))},_.F(_.w,{cond:K,
then:function(){return _.F("div",{class:"ytwTalkToRecsUserInputBox"},_.F("input",{el:b,type:"text",class:"ytwTalkToRecsTextInput",placeholder:M,value:function(){return y().userQuery},
"on:input":x,"on:keyup":B,maxlength:200}))}}),_.F(_.mk,{data:function(){return y().isMultiTurnFlow?y().nextButtonViewModel:void 0}},{buttonViewModel:function(P){return _.F("div",{class:"ytwTalkToRecsFlowControlButtons"},_.F(_.fQ,{data:P.data}))}}),_.F(_.mk,{data:function(){return y().isMultiTurnFlow?y().resetButtonViewModel:void 0}},{buttonViewModel:function(P){return _.F("div",{class:"ytwTalkToRecsFlowControlButtons"},_.F(_.fQ,{data:P.data}))}}))))},"bg"),"yt-talk-to-recs-view-model",{props:{data:_.vR}});var gBa={sources:[{clientResource:{imageName:"CHECK"}}]};_.X3g=_.Jd(function(R){var y=_.sh("div");R=_.jb(R,{error:void 0});var u=R.data,v=R.error,Q=R.onSelected;R=_.V(_.rW(function(){return yTM(u())}));
var M=R.next().value,K=R.next().value;jh7(u,function(B){K(B);var l,Z,P=RXa((l=u().options)==null?void 0:(Z=l[B])==null?void 0:Z.value,u().type);Q==null||Q(P);y.value.focus()});
R=_.nh(function(){if(!u().disabled){var B=u(),l=M(),Z=y.value;B.options&&(B=Cra(B.options,l,B.label),_.ua().resolve(_.UM).openSheet({viewModel:B},Z))}});
var h=_.af8(),b=function(){return!!v()},N=function(){return!!u().disabled},T={},x={};
return _.F("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.F("div",{class:_.Oy("ytDropdownViewModelDropdownContainer",(T.ytDropdownViewModelDropdownContainerErrorBorder=b,T.ytDropdownViewModelDropdownContainerDisabled=N,T)),"on:click":R,el:y,role:"combobox",tabindex:0,"on:keydown":h,"aria-invalid":b,"aria-disabled":N,"aria-describedby":function(){return b()?"dropdown-view-model-error":void 0}},_.F("div",{class:"ytDropdownViewModelText"},uqZ(u,b,M),vzJ(u,M)),_.F("div",{class:_.Oy("ytDropdownViewModelChevronDown",
(x.ytDropdownViewModelChevronDownDisabled=N,x))},_.F(_.W_,{icon:"CHEVRON_DOWN"}))),Qhm(u,v))},"cg");_.h6(_.Jd(function(R){var y=R.data;var u=function(Q){var M=JTJ(y());M.videoMetadata||(M.videoMetadata={});M.videoMetadata.sponsorshipsMetadata||(M.videoMetadata.sponsorshipsMetadata={});M.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(Q)},v=function(Q){var M=JTJ(y());
M.scheduledRedirectMetadata||(M.scheduledRedirectMetadata={});M.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(Q)};
return _.F("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.F("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.F("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.F(_.QM,{text:function(){return y().title}}),_.F(_.W_,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.F(_.QM,{text:function(){return y().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.F(_.mk,{data:function(){return y().tierChoices}},{dropdownViewModel:function(Q){return _.F("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.F(_.X3g,{data:Q.data,
onSelected:u}))}}),_.F(_.mk,{data:function(){return y().startTimeChoices}},{dropdownViewModel:function(Q){return _.F("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.F(_.X3g,{data:Q.data,
onSelected:v}))}}),_.F(_.QM,{text:function(){return y().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.F("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.F(_.mk,{data:function(){return y().scheduleButton}},{panelFooterViewModel:_.Ml})))},"dg"),"ytfz-schedule-fanzone-view-model",{props:{data:_.vR}});_.h6(_.Jd(function(R){var y=R.data;R=R.className===void 0?"":R.className;var u=_.nA(Ypm,function(){return y().flowStateEntityKey||""}),v={};
v=_.Oy("ytFlowBottomBarViewModelFlowBottomBarButtons",(v.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},v));
var Q={},M=_.Oy("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",v,(Q.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},Q.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},Q));
Q={};var K=_.Oy("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",v,(Q.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},Q.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},Q));
v={};v=_.Oy("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(v.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},v.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},v.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
v));
R=_.Oy("ytFlowBottomBarViewModelHost",R);return _.F("yt-flow-bottom-bar-view-model",{class:R},_.F(_.w,{cond:function(){var h;return(h=y())==null?void 0:h.textSection},
then:function(h){return _.F("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.F(_.QM,{text:h}))}}),_.F("div",{class:v},_.F(_.mk,{data:function(){return y().secondaryButton}},{buttonViewModel:function(h){return _.F(_.fQ,{data:h.data,
className:K})}}),_.F(_.mk,{data:function(){return y().primaryButton}},{buttonViewModel:function(h){return _.F(_.fQ,{data:h.data,
className:M,buttonOverrides:function(){var b;return{disabled:!((b=u())==null||!b.primaryButtonDisabled)}}})}})))},"eg"),"yt-flow-bottom-bar-view-model",{props:{data:_.vR,
className:_.IC}});var mca="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),Vs=function(){var R=_.W.apply(this,arguments)||this;R.enableScrollingFix=!0;R.bottomBar=!1;R.hideBottomBar=!1;R.fitContent=!1;return R};
_.O(Vs,_.W);_.J=Vs.prototype;_.J.ready=function(){_.f("enable_pdp_icon_prefetch")&&_.DCp(_.ua().resolve(_.rS),0,mca)};
_.J.focus=function(R){this.topBar?_.S_(this.topBar,R):this.paperDialog.focus(R)};
_.J.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$18951_scroller&&(this.JSC$18951_scroller.dialogElement=this.paperDialog,this.JSC$18951_scroller.attached&&typeof this.JSC$18951_scroller.attached==="function"&&this.JSC$18951_scroller.attached())};
_.J.onDataChanged=function(){var R;this.fitContent=!((R=this.data)==null||!R.fitContent);var y;this.bottomBar=!((y=this.data)==null||!y.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.J.onProgressChanged=function(){var R,y,u=((y=(R=this.data)==null?void 0:R.progress)!=null?y:0)*100;this.progressElement.style.width=u+"%"};
_.J.isProgressHidden=function(){var R;return!((R=this.data)==null?0:R.progress)};
_.J.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteViewModel:"yt-note-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",
offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",
sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},
offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(R){return _.f("enable_wiz_next_lp2_msof")&&
R&&!R.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.RR.Object.defineProperties(Vs.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var R;return _.f("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.e((R=this.data)==null?void 0:R.content,LiK)}}});
Vs.prototype.onProgressChanged=Vs.prototype.onProgressChanged;Vs.prototype.onDataChanged=Vs.prototype.onDataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Vs.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Vs.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Vs.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Vs.prototype,"enableScrollingFix",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Vs.prototype,"bottomBar",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Vs.prototype,"hideBottomBar",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Vs.prototype,"containsExploreHub",null);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Vs.prototype,"fitContent",void 0);_.A([_.O7("#progress"),_.p("design:type",HTMLElement)],Vs.prototype,"progressElement",void 0);
_.A([_.O7("#scroller"),_.p("design:type",Object)],Vs.prototype,"JSC$18951_scroller",void 0);_.A([_.O7("ytd-flow-top-bar-renderer"),_.p("design:type",HTMLElement)],Vs.prototype,"topBar",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Vs.prototype,"onDataChanged",null);_.A([_.e0("data.progress"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Vs.prototype,"onProgressChanged",null);
_.A([_.q({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],Vs);
_.m(Vs,"ytd-flow-step-renderer",function(){if(xt7!==void 0)return xt7;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return xt7=R},{mode:1});var AcH=function(R){this.resolveCommand=R;this.steps={}},Dco=function(R,y){y=_.V(y||[]);
for(var u=y.next();!u.done;u=y.next()){u=u.value;var v=Object.values(u)[0],Q=void 0;if((Q=v)==null?0:Q.stepId)R.steps[v.stepId]=u}},ccH=function(R,y){var u,v,Q,M,K;
return _.I(function(h){if((u=R.state)==null||!u.currentStepId)return h.return(void 0);v=p37(R);if(!v)return h.return(tx8(R));if(Q=_.e(v,_.YL8)){var b;((b=Q.screenLoggingData)==null?0:b.screenVeType)&&_.om(_.GN(),Q.screenLoggingData.screenVeType);((M=Q)==null?0:M.onStepStartCommand)&&R.resolveCommand((K=Q)==null?void 0:K.onStepStartCommand,{})}if(Q&&y){b=Q;var N,T,x,B;((N=y.flowLoggingData)==null?0:N.eventNamespace)&&((T=b.flowEventData)==null?0:T.eventType)&&((x=b.flowEventData)==null?0:x.eventMetadata)&&
((B=y.flowLoggingData)==null?0:B.flowType)&&(N=_.BV(y.flowLoggingData.eventNamespace,b.flowEventData.eventType,b.flowEventData.eventMetadata),_.fc(_.eq(),N,y.flowLoggingData.flowType));y.steps&&!y.steps.includes(v)&&y.steps.push(v)}return h.return(v)})};
AcH.prototype.back=function(){var R;(R=this.state)!=null&&R.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
AcH.prototype.handleUpdateFlowCommand=function(R){R.steps&&Dco(this,R.steps);R.entityUpdateCommand&&this.resolveCommand(R.entityUpdateCommand,{});R.flowContinuationCommand&&(R=R.flowContinuationCommand)&&(this.getFlowContinuationCommand=R);this.awaitFlowContinuation&&(this.awaitFlowContinuation(p37(this)),this.awaitFlowContinuation=void 0)};
AcH.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var tx8=function(R){return _.I(function(y){return R.getFlowContinuationCommand?y.return(new Promise(function(u){R.awaitFlowContinuation=u;R.getFlowContinuationCommand&&R.resolveCommand(R.getFlowContinuationCommand,{flow_state:R.state})})):y.return(Promise.resolve(void 0))})},p37=function(R){var y;
if((y=R.state)!=null&&y.currentStepId)return R.steps[R.state.currentStepId]};var iK=function(){var R=_.W.apply(this,arguments)||this;R.flowState=new AcH(function(y,u){u=u===void 0?{}:u;_.lX.instance.resolveCommand(y,{form:{form:u,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};
_.O(iK,_.W);_.J=iK.prototype;_.J.onPopupClosed=function(R){R&&this.hostElement!==R.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.J.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"}}}};
_.J.focus=function(R){var y=this;_.s7(function(){var u=_.hw(y.hostElement).querySelector("ytd-flow-step-renderer");(u==null?0:u.topBar)?u.focus(R):y.topBar&&_.S_(y.topBar,R)},1)};
_.J.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.J.computeTopBarHidden=function(R){var y;return!((y=_.e(R,_.YL8))==null||!y.topBarOverride)};
_.J.dataChanged=function(){var R=this,y,u;return _.I(function(v){if(v.nextAddress==1){((y=R.data)==null?0:y.steps)&&Dco(R.flowState,R.data.steps);if((u=R.data)==null?0:u.flowContinuationCommand){var Q=R.flowState,M=R.data.flowContinuationCommand;M&&(Q.getFlowContinuationCommand=M)}return v.yield(ccH(R.flowState,R.data),2)}R.currentFlowStep=v.yieldResult;_.f$(v)})};
_.J.flowChanged=function(){var R=this,y;return _.I(function(u){if(u.nextAddress==1){if(!R.flow)return u.return();R.flowState.state=R.flow;R.isLoading=!0;return u.yield(ccH(R.flowState,R.data),2)}y=u.yieldResult;if(!y||R.flow.isLoading)return u.return();R.currentFlowStep=y;R.initialState=!1;R.isLoading=!1;R.autofocusAndRefit();_.f$(u)})};
_.J.autofocusAndRefit=function(){var R=this,y=_.ua().resolve(_.yN(_.Ti)),u=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),v=document.querySelector("yt-report-form-confirmation-page-view-model"),Q=document.querySelector("yt-report-form-details-page-view-model"),M=document.querySelector("yt-report-form-reason-select-page-view-model"),K=document.querySelector("yt-contributor-zero-state-view-model"),
h=document.querySelector("yt-structured-context-note-view-model"),b=document.querySelector("yt-note-view-model");(!u&&y&&y.isKeyBoardInUse()||v||!u&&Q||!u&&M||K||h||b)&&_.Y2(this.hostElement);_.gn(this,function(){_.Ko(R.hostElement,"yt-refit")})};
_.J.handleUpdateFlowCommand=function(R){this.data&&(R=_.e(R,SL8),R.targetId===this.data.targetId&&(R.flowContinuationCommand&&(this.data.flowContinuationCommand=R.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(R),this.autofocusAndRefit()))};
_.J.handleFlowNextStepCommand=function(R){this.data&&this.flow&&this.flow.key&&(R=_.e(R,cTM),R.targetId===this.data.targetId&&(R=R.stepId||"",this.ytdReduxBehavior.dispatch(_.DT("flowStateEntity",this.flow.key,{currentStepId:R,stepIdStack:(this.flow.stepIdStack||[]).concat(R)}))))};
_.J.handleFlowPrevStepCommand=function(R){if(this.data&&this.flow&&this.flow.key&&(R=_.e(R,aIH),R.targetId===this.data.targetId)){var y=[].concat(_.P$(this.flow.stepIdStack||[]));y.length>1?(y.pop(),this.ytdReduxBehavior.dispatch(_.DT("flowStateEntity",this.flow.key,{currentStepId:y[y.length-1],stepIdStack:y}))):R.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(R.onFirstStepCommand)}};
_.J.handleYpcCancelRecurrenceCommand=function(R){if(this.data&&this.flow&&this.flow.key&&(R=_.e(R,CaK),R.targetId===this.data.targetId&&R.endpointCommand)){var y=_.e(this.flow,RuZ);y&&_.e(R.endpointCommand,_.zN5)&&(_.e(R.endpointCommand,_.zN5).feedbackData=y.surveyFeedback);this.ytComponentBehavior.resolveCommand(R.endpointCommand)}};
_.J.handlePartialUpdateFlowStateEntity=function(R){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.DT("flowStateEntity",this.flow.key,R,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
iK.prototype.flowChanged=iK.prototype.flowChanged;iK.prototype.dataChanged=iK.prototype.dataChanged;iK.prototype.onPopupClosed=iK.prototype.onPopupClosed;_.A([_.n(_.p6),_.p("design:type",Object)],iK.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],iK.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],iK.prototype,"ytComponentBehavior",void 0);
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],iK.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],iK.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],iK.prototype,"initialState",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],iK.prototype,"isLoading",void 0);_.A([_.r(),_.p("design:type",Object)],iK.prototype,"data",void 0);
_.A([_.r(),_.p("design:type",Object)],iK.prototype,"currentFlowStep",void 0);_.A([_.fu("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],iK.prototype,"onPopupClosed",null);_.A([_.r({selectorArgs:["data.flowStateEntityKey"],selector:Ypm}),_.p("design:type",Object)],iK.prototype,"flow",void 0);_.A([_.O7("ytd-flow-top-bar-renderer"),_.p("design:type",HTMLElement)],iK.prototype,"topBar",void 0);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype",Promise)],iK.prototype,"dataChanged",null);_.A([_.GJ("flow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype",Promise)],iK.prototype,"flowChanged",null);_.A([_.q({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],iK);
_.azP=_.Nk()(iK,"ytd-flow-root-renderer",function(){if(o28!==void 0)return o28;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return o28=R},{mode:_.TN("kevlar_poly_si_batch_j025")?1:2});var ShK;var Gm=null;_.h6(_.Jd(function(R){return _.F("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.F("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.F(_.QM,{text:function(){return R.data().text}}),_.F("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"fg"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.vR}});var YhV=_.Jd(function(R){var y=R.playerControlsProps;var u=R.isShortsPage;return _.F("yt-bigboard",null,_.F(_.w,{cond:function(){return y().isDragging},
then:function(){return _.F("div",{class:"ytBigboardStoryboardHost"},_.F(_.OLZ,{progressBarProps:y,isShortsPage:u}))}}))},"gg");
YhV.idomCompat=!0;_.Km={ACCOUNT_LABEL:rF("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:rF("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:rF("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:rF("AD_BADGE_HINT"),AD_BADGE_TEXT:rF("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:rF("ALL_CHANNELS_LABEL"),AMBIENT_MODE:rF("AMBIENT_MODE"),AMBIENT_MODE_OFF:rF("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:rF("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:rF("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:rF("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:rF("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:rF("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:rF("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:rF("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:rF("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:rF("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:rF("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:rF("AUTO_ZOOM","Auto zoom"),BACK:rF("BACK"),CANCEL:rF("CANCEL"),CHANNEL_SWITCHER_LABEL:rF("CHANNEL_SWITCHER_LABEL"),CLOSE:rF("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:rF("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:rF("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:rF("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:rF("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:rF("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:rF("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:rF("COMMENT_MODAL_CONTENT"),CONFIRM_OK:rF("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:rF("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:rF("COPIED_TO_CLIPBOARD"),COPY:rF("COPY"),COPY_DEBUG_INFO:rF("COPY_DEBUG_INFO"),COPY_EMBED_CODE:rF("COPY_EMBED_CODE"),
COPY_LINK_LABEL:rF("COPY_LINK_LABEL"),COPY_VIDEO_URL:rF("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:rF("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:rF("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:rF("DELETE_FROM_DOWNLOADS"),DIALOG:rF("DIALOG"),DONE:rF("DONE"),DOWNLOAD:rF("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:rF("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:rF("FLAG_CONFIRM"),FLAG_CONTENT:rF("FLAG_CONTENT"),FLAG_LABEL:rF("FLAG_LABEL"),FLAG_TITLE:rF("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:rF("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:rF("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:rF("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:rF("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:rF("HIDE_SEARCH_FILTERS_LABEL"),HOME:rF("HOME","Home"),INVALID_RESPONSE_RECEIVED:rF("INVALID_RESPONSE_RECEIVED"),LIBRARY:rF("LIBRARY","Library"),LISTENING:rF("LISTENING"),LOADING:rF("LOADING"),LONG_PRESS_MIC_TO_SPEAK:rF("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:rF("LOOP"),MENU_DESKTOP:rF("MENU_DESKTOP"),
MENU_EXIT:rF("MENU_EXIT"),MENU_FEEDBACK:rF("MENU_FEEDBACK"),MENU_HELP:rF("MENU_HELP"),MENU_IMPRESSUM:rF("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:rF("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:rF("MENU_SETTINGS"),MENU_SIGN_IN:rF("MENU_SIGN_IN"),MENU_TITLE:rF("MENU_TITLE"),MENU_YOUR_DATA:rF("MENU_YOUR_DATA"),MORE_INFO:rF("MORE_INFO"),MORE_OPTIONS:rF("MORE_OPTIONS"),MUTE_VOLUME:rF("MUTE_VOLUME"),NEW_PLAYLIST:rF("NEW_PLAYLIST"),NEXT_VIDEO:rF("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:rF("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:rF("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:rF("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:rF("NOT_FOUND_TITLE"),NO_DOWNLOADS:rF("NO_DOWNLOADS"),NO_MIC_INPUT:rF("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:rF("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:rF("OOPS_MESSAGE"),OPEN_APP:rF("OPEN_APP"),OPEN_YOUTUBE:rF("OPEN_YOUTUBE"),PAUSE:rF("PAUSE"),PLAY:rF("PLAY"),PLAYER_CAPTION:rF("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:rF("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:rF("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:rF("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:rF("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:rF("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:rF("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:rF("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:rF("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:rF("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:rF("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:rF("PLAYER_MINIMIZE"),PLAYER_NEXT:rF("PLAYER_NEXT"),PLAYER_PAUSE:rF("PLAYER_PAUSE"),PLAYER_PLAY:rF("PLAYER_PLAY"),
PLAYER_PREVIOUS:rF("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:rF("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:rF("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:rF("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:rF("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:rF("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:rF("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:rF("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:rF("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:rF("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:rF("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:rF("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:rF("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:rF("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:rF("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:rF("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:rF("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:rF("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:rF("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:rF("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:rF("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:rF("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:rF("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:rF("PLAY_ALL"),PLEASE_FIX_ERRORS:rF("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:rF("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:rF("PREVIOUS_VIDEO"),PRIVACY_POLICY:rF("PRIVACY_POLICY"),RELOAD:rF("RELOAD"),REQUIRED_LABEL:rF("REQUIRED_LABEL"),SAVE_PLAYLIST:rF("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:rF("SCRUB_SLIDE_USER_EDU"),SEARCH:rF("SEARCH","Search"),
SEARCH_APPEND_LABEL:rF("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:rF("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:rF("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:rF("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:rF("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:rF("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:rF("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:rF("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:rF("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:rF("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:rF("SEEK_SLIDER"),SETTINGS_LABEL:rF("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:rF("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:rF("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:rF("SHOW_LESS"),SHOW_MORE:rF("SHOW_MORE"),SHOW_PLAYER_CONTROLS:rF("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:rF("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:rF("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:rF("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:rF("SIGN_IN_ON_WEB"),STABLE_VOLUME:rF("STABLE_VOLUME"),STABLE_VOLUME_OFF:rF("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:rF("STABLE_VOLUME_ON"),STATS_FOR_NERDS:rF("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:rF("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:rF("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:rF("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:rF("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:rF("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:rF("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:rF("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:rF("TIMESTAMP_SECONDS"),TOGGLE_OFF:rF("TOGGLE_OFF"),TOGGLE_ON:rF("TOGGLE_ON"),TRENDING:rF("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:rF("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:rF("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:rF("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:rF("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:rF("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:rF("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:rF("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:rF("VIDEO_LINK_LABEL")};var LWM=_.Jd(function(R){var y=R.playerApi;R=_.sh("button",function(v){_.v9(v,36843)});
var u=rF("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.F("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.F("button",{el:R,class:"ytPlayerControlsJumpForwardButtonButton",title:u,"aria-label":u,"on:click":_.nh(function(){_.QY(36843);y&&y().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.F("span",null,_.F(_.W_,{icon:"FAST_FORWARD"}))))},"hg");var sNH=_.Jd(function(R){var y=R.appApi;R=_.sh("button",function(v){_.v9(v,62946)});
var u=rF("OPEN_IN_MINIPLAYER");return _.F("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.F("button",{el:R,class:"ytMiniplayerButtonButton",title:u,"aria-label":u,"on:click":_.nh(function(){_.QY(62946);var v,Q;(Q=(v=y()).openInMiniplayer)==null||Q.call(v);return!1})},_.F(_.W_,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"ig");var zHI=_.Jd(function(R){var y=R.playerApi;R=_.sh("button",function(M){_.v9(M,142812)});
var u=_.V(_.In(!1,void 0,"I3VCyb")),v=u.next().value,Q=u.next().value;u=function(){return rF("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(v()?1:2)})};
return _.F("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.F("button",{el:R,class:"ytPlaybackSpeedButtonButton",title:u,"aria-label":u,"on:click":_.nh(function(){_.QY(142812);if(y){var M=y(),K=v();M.setPlaybackRate(K?1:2);Q(!v())}return!1})},_.F("span",null,_.F(_.W_,{icon:function(){return v()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"jg");var gTP=_.Jd(function(R){var y=R.title;var u=R.ariaLabel;var v=R.icon;var Q=R.command;var M=R.veType;R=_.sh("button",function(K){M&&_.v9(K,M())});
return _.F("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.F("button",{el:R,class:"ytdThumbnailOverlayButtonButton",title:y,"aria-label":u,"on:click":_.nh(function(){M&&_.QY(M());Q&&_.ua().resolve(_.jX).resolveCommand(Q())})},_.F(_.W_,{icon:v})))},"kg");var B9="";var C_o=_.Jd(function(R){var y=R.playerControlsProps,u=R.onClickFn;R=_.N8(function(){var M=y(),K=-1;M.captionsAvailable&&(K=M.captionsEnabled?1:0);return K},void 0,"WecR8e");
var v=_.N8(function(){var M=y();return M.captionsAvailable?_.fo(M.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.fo("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),Q=_.N8(function(){var M=y();
M=M.captionsAvailable?M.captionsEnabled:void 0;return M},void 0,"Q17ly");
return _.F("yt-closed-captions-toggle-button",null,_.F(_.ThI,{captionIconType:R,ariaLabel:v,ariaPressed:Q,onClick:function(M){var K=y();if(K.captionsAvailable){var h=K.playerApi;if(h){var b=K.playerApi;if(b){var N=B9;if(N){b=b.getOption("captions","track");var T;B9=(T=b?b.displayName:null)!=null?T:N}else _.uy(b)?(N=_.StT(b),B9=N.length?(T=snP(N))?T.displayName:N[0].displayName:""):B9=""}zCm(h);_.f("mweb_disable_set_state_captions_killswitch")&&K.setState({captionsEnabled:!K.captionsEnabled})}}var x,
B;(B=(x=K.appApi).showCaptionsToggleToast)==null||B.call(x,K);u==null||u(M)},
isOverlay:!0}))},"lg");var RLZ=_.Jd(function(R){var y=R.data;return _.F("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.F(_.p_,{data:function(){return{type:17,text:_.bDL(y().label)}}}))},"mg");var yW7=_.Jd(function(R){var y=_.Oy("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 _.F("animated-seek-arrows",{class:_.Oy("ytPlayerControlsAnimatedSeekArrowsHost")},_.F("span",{class:y}),_.F("span",{class:y}),_.F("span",{class:y}))},"ng");
yW7.idomCompat=!0;var umZ=_.Jd(function(){var R=_.fo("PLAYER_SECONDS",{seconds_placeholder:"30"}),y=_.V(_.In(!1,void 0,"Yj8msb")),u=y.next().value,v=y.next().value,Q=_.V(_.In(!1,void 0,"r9Z50e"));y=Q.next().value;var M=Q.next().value;Q={};var K=_.Oy("jumpForwardOverlayOverlay",(Q.jumpForwardOverlayOverlayHidden=y,Q));_.rB(function(){var h=null,b=null,N=function(){h!==null&&_.EJ().cancelJob(h);b!==null&&_.EJ().cancelJob(b);M(!0);v(!0);_.T3(_.EJ(),function(){M(!1)});
h=_.T3(_.EJ(),function(){M(!0);b=_.T3(_.EJ(),function(){v(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",N);_.GF(function(){window.removeEventListener("jump-forward-clicked",N)})});
return _.F("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.F(_.w,{cond:u,then:function(){return _.F("div",{class:K},_.F(yW7,{direction:1,size:"large"}),_.F("div",null,R))}}))},"og");var vkm=_.Km.MUTE_VOLUME,Qx7=_.Km.UNMUTE_VOLUME,jxg=_.Jd(function(R){var y=R.muteIconType;var u=R.onClick;var v=R.useOutlineIcon;var Q=R.useDelhiIcons;R=_.sh("button",function(h){_.v9(h,28662)});
var M=function(){var h=y(),b=v==null?void 0:v(),N=Q==null?void 0:Q(),T="",x="";switch(h){case -1:case 0:T=b?"VOLUME_OFF":N?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";x=Qx7;break;case 1:T=b?"VOLUME_UP_OUTLINE":N?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";x=vkm;break;case 2:T=b?"VOLUME_DOWN_OUTLINE":N?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";x=vkm;break;default:_.AL(h)}return{iconName:T,ariaLabel:x}},K=function(){return M().ariaLabel};
return _.F("ytm-mute-button",{class:"ytmMuteButtonHost"},_.F("button",{el:R,class:"ytmMuteButtonButton",title:K,"aria-label":K,"on:click":_.nh(function(h){_.QY(28662);u==null||u(h);return!1})},_.F("span",null,_.F(_.W_,{icon:function(){return M().iconName}}))))},"pg");var MmP=_.Jd(function(R){var y=R.volumeProps;var u=R.onClickFn;var v=R.useOutlineIcon;var Q=R.useDelhiIcons;return _.F("yt-mute-toggle-button",null,_.F(jxg,{muteIconType:function(){var M=y();return M.volumeMuted||M.volume===0?0:M.volume>50?1:2},
onClick:function(M){var K=y().playerApi;K&&(K.isMuted()?K.unMute():K.mute(!1));u==null||u(M)},
useOutlineIcon:function(){return!(v==null||!v())},
useDelhiIcons:function(){return!(Q==null||!Q())}}))},"qg");
MmP.idomCompat=!0;var JWV=_.Jd(function(R){var y=R.data;var u=_.sh("ytm-paid-content-overlay-renderer");return _.F("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:u,"on:animationend":_.nh(function(){u.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.F(_.zw,{command:function(){return y().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.F(_.w,{cond:function(){var v;return(v=y().icon)==null?void 0:v.iconType},
then:function(){return _.F("span",null,_.F(_.W_,{icon:function(){var v;return(v=y().icon)==null?void 0:v.iconType}}))}}),_.F("div",{class:"ytmPaidContentOverlayText"},_.F(_.QM,{text:function(){return y().text}})),_.F(_.w,{cond:function(){return y().navigationEndpoint},
then:function(){return _.F(_.W_,{icon:"CHEVRON_RIGHT"})}})))},"rg");
JWV.idomCompat=!0;var eXH=[].concat(_.P$([{register:function(R){var y=dCP(R),u;(u=R().playerApi)==null||u.addEventListener("onVolumeChange",y);return function(){}}},
{register:function(R){var y=UCZ(R);R=R().playerApi;R==null||R.addEventListener("captionschanged",y);R==null||R.addEventListener("captionssettingschanged",y);R==null||R.addEventListener("onCaptionsTrackListChanged",y);return function(){}}},
{register:function(R){if(!_.f("mweb_screenreader_accessible_player"))return function(){};
var y=kuJ(R),u=document.querySelector("video");u==null||u.addEventListener("touchend",y);return function(){u==null||u.removeEventListener("touchend",y)}}},
{register:function(R){if(!_.f("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var y=kuJ(R),u=document.querySelector("video");u==null||u.addEventListener("focus",y);return function(){u==null||u.removeEventListener("focus",y)}}}]),[{register:function(R){var y=GuH(R),u;
(u=R().playerApi)==null||u.addEventListener("onStateChange",y);return function(){}}},
{register:function(R){var y=rT8(R),u;(u=R().playerApi)==null||u.addEventListener("onPlaybackRateChange",y);return function(){}}},
{register:function(R){var y=PaJ(R),u;(u=R().playerApi)==null||u.addEventListener("onVideoDataChange",y);return function(){}}},
{register:function(R){var y=WiH(R),u,v;(u=R())==null||(v=u.playerApi)==null||v.addEventListener("onVideoProgress",y);return function(){}}}]);var VmZ=_.Jd(function(R){var y=R.data;var u=function(){return _.fo("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+y().playbackRate})};
return _.F(_.w,{cond:function(){return y().playbackRate&&y().playbackRate!==1},
then:function(){return _.F("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.F("div",{class:"ytPlaybackRateOverlayOverlay"},_.F(yW7,{direction:1,size:"small"}),_.F("div",{class:"ytPlaybackRateOverlayLabel"},u)))}})},"sg");var iNJ=_.Jd(function(R){var y=R.data;return _.F("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.F(_.w,{cond:function(){var u,v=(u=y())==null?void 0:u.playerResponse,Q;return v==null?void 0:(Q=v.paidContentOverlay)==null?void 0:Q.paidContentOverlayRenderer},
then:function(u){return _.F(JWV,{data:u})}}))},"ug"),KQM=_.Jd(function(R){var y=R.props;
var u=R.data;var v=R.options;var Q=function(){var N,T,x,B;return(N=u())==null?void 0:(T=N.playerResponse)==null?void 0:(x=T.playerConfig)==null?void 0:(B=x.inlinePlaybackConfig)==null?void 0:B.showAudioControls},M=function(){var N,T;
if(Q()&&((N=v())==null?void 0:(T=N.additionalButton)==null?void 0:T.button)!==void 0){var x,B,l;N=(x=u())==null?void 0:(B=x.playerApi)==null?void 0:(l=B.getSize())==null?void 0:l.height;if(!(N===void 0||N<180)){var Z,P;return(Z=v())==null?void 0:(P=Z.additionalButton)==null?void 0:P.button}}},K=function(){var N,T;
return(N=v())==null?void 0:(T=N.additionalButton)==null?void 0:T.thumbnailOverlayButtonRenderers},h=function(){var N,T;
return(N=v())==null?void 0:(T=N.additionalButton)==null?void 0:T.thumbnailOverlayButtonViewModels},b=function(){var N=[_.F(MmP,{volumeProps:y}),
_.F(C_o,{playerControlsProps:y})];M()===1&&N.push(_.F(LWM,{playerApi:function(){return y().playerApi}}));
M()===2&&N.push(_.F(sNH,{appApi:function(){return y().appApi}}));
M()===3&&N.push(_.F(zHI,{playerApi:function(){return y().playerApi}}));
var T=K();if(M()===4&&T){T=_.V(T);for(var x=T.next(),B={};!x.done;B={tooltip$jscomp$2:void 0,ariaLabel$jscomp$22:void 0,icon$jscomp$53:void 0,command$jscomp$584:void 0},x=T.next()){x=x.value;B.tooltip$jscomp$2=x.tooltip;var l=void 0,Z=void 0;B.ariaLabel$jscomp$22=((l=x.accessibility)==null?void 0:(Z=l.accessibilityData)==null?void 0:Z.label)||B.tooltip$jscomp$2;l=void 0;B.icon$jscomp$53=(l=x.icon)==null?void 0:l.iconType;B.command$jscomp$584=x.command;B.tooltip$jscomp$2&&B.ariaLabel$jscomp$22&&B.icon$jscomp$53&&
N.push(_.F(gTP,{title:function(P){return function(){return P.tooltip$jscomp$2}}(B),
ariaLabel:function(P){return function(){return P.ariaLabel$jscomp$22}}(B),
icon:function(P){return function(){return P.icon$jscomp$53}}(B),
command:function(P){return function(){return P.command$jscomp$584}}(B)}))}}T=h();
if(M()===4&&T)for(T=_.V(T),x=T.next(),B={};!x.done;B={tooltip$jscomp$3:void 0,ariaLabel$jscomp$23:void 0,icon$jscomp$54:void 0,command$jscomp$585:void 0},x=T.next())x=x.value,B.tooltip$jscomp$3=x.title,B.ariaLabel$jscomp$23=x.accessibilityText||B.tooltip$jscomp$3,B.icon$jscomp$54=x.iconName,B.command$jscomp$585=_.Sb(x.onTap),B.tooltip$jscomp$3&&B.ariaLabel$jscomp$23&&B.icon$jscomp$54&&N.push(_.F(gTP,{title:function(P){return function(){return P.tooltip$jscomp$3}}(B),
ariaLabel:function(P){return function(){return P.ariaLabel$jscomp$23}}(B),
icon:function(P){return function(){return P.icon$jscomp$54}}(B),
command:function(P){return function(){return P.command$jscomp$585}}(B)}));
return N};
return _.F(_.w,{cond:Q,then:function(){return _.F("div",{class:"ytInlinePlayerControlsTopRightControls"},_.F(_.eS,{each:b},function(N){return _.F("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.F("div",{class:"ytInlinePlayerControlsButtonIcon"},N))}))}})},"vg"),bNK=_.Jd(function(R){var y=R.props;
var u=R.data;var v=R.options;R={};R=_.Oy("ytInlinePlayerControlsBottomRightControls",(R.ytInlinePlayerControlsBottomRightControlsHidden=function(){var Q;return $CI(u(),v())&&((Q=v())==null?void 0:Q.insetProgressBar)&&(y().isHovering||y().isDragging)},R));
return _.F("div",{class:R},_.F(I7M,{data:u}),_.F(_.w,{cond:function(){var Q;return!((Q=v())==null?0:Q.hideTimeDisplay)},
then:function(){return _.F(hLH,{props:y,data:u})}}))},"wg"),I7M=_.Jd(function(R){var y=R.data;
return _.F(_.mk,{data:function(){var u;return xCJ((u=y())==null?void 0:u.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:RLZ})},"xg"),hLH=_.Jd(function(R){var y=R.props;
var u=R.data;return _.F(_.w,{cond:function(){return y().isLive},
then:function(){return _.F(FQa,null)},
else:function(){return _.F(wAV,{props:y,data:u})}})},"yg"),wAV=_.Jd(function(R){var y=R.props;
var u=R.data;var v=_.N8(function(){var Q;return fIZ((Q=u())==null?void 0:Q.thumbnailOverlays)},void 0,"kUmuA");
return _.F("div",{class:_.Oy("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.Km.PLAYER_TIME_ELAPSED+" "+_.yPG(y().playedTime)}},_.F(_.p_,{data:function(){var Q=_.yPG(y().videoDuration-y().playedTime);
return Object.assign({},{type:17,text:Q},v())}}))},"zg"),FQa=_.Jd(function(){var R=_.Oy("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.F("div",{class:R},_.F(_.p_,{data:{type:18,text:_.Km.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"Ag"),NnI=_.Jd(function(R){var y=R.props;
var u=R.data;var v=R.options;return _.F(_.Pv7,{progressBarProps:y,config:function(){var Q,M=_.e((Q=u())==null?void 0:Q.multiMarkersPlayerBar,_.eNY),K;Q=((K=v())==null?0:K.insetProgressBar)?2:1;var h;K=(h=v())==null?void 0:h.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:Q,chapterData:M,isInlinePlayback:!0,doSeekOnClick:K,playheadDotBehavior:K?1:0}}})},"Bg");_.h6(_.Jd(function(R){var y=R.data;var u=R.appApi;var v=R.options;var Q=nza(y,EzI(u));R={};u={};return _.F("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.F("div",{class:_.Oy("ytInlinePlayerControlsDarkenedOverlay",(R.ytInlinePlayerControlsDarkenedOverlayShow=function(){return Q().isHovering},R))}),_.F(umZ,null),_.F(VmZ,{data:Q}),_.F(iNJ,{data:y}),_.F(YhV,{playerControlsProps:Q,
isShortsPage:!1}),_.F("div",{class:_.Oy((u.ytInlinePlayerControlsControlsHidden=function(){return Q().isDragging},u))},_.F(KQM,{props:Q,
data:y,options:v}),_.F(bNK,{props:Q,data:y,options:v})),_.F(_.w,{cond:function(){return $CI(y(),v())},
then:function(){return _.F(NnI,{props:Q,data:y,options:v})}}))},"tg"),"yt-inline-player-controls",{props:{data:_.vR,
appApi:_.IC,options:_.vR}});var IF=function(){var R=_.W.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$19007_playerPromise=null;R.player=null;R.enableAudioControls=!1;R.hasBeenUnmuted=!1;R.captionsHaveBeenTurnedOff=!1;R.JSC$19007_playerEvents=new Map;R.videoPreviewFetchRequest=null;R.scheduledPreviewEndJobId=null;R.JSC$19007_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};
_.O(IF,_.W);_.J=IF.prototype;
_.J.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.f("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"}}}};
_.J.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19007_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19007_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19007_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19007_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.BN(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.BN(this,this.onScroll))};
_.J.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.BN(this,this.onScroll))};
_.J.onPageTypeChange=function(){this.deactivate()};
_.J.onWindowResized=function(){this.deactivate()};
_.J.onCaptionsChanged=function(R){R=!!R.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!R);this.setCaptionSize()};
_.J.setCaptionSize=function(){var R;if(this.active&&!this.captionsHaveBeenTurnedOff&&((R=this.player)==null?0:R.getCaptionWindowContainerId())){var y;(y=this.player)==null||y.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.J.currentPageAllowed=function(){return!this.isWatchPage};
_.J.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var R=this.positionData,y=R.initialTopPosition,u=R.initialHorizontalPosition;_.oX(this.hostElement,{"--ytd-video-preview-translate-left":R.finalHorizontalPosition-u+"px","--ytd-video-preview-translate-top":R.finalTopPosition-y+"px","--ytd-video-preview-original-top-position":y+"px","--ytd-video-preview-original-horizontal-position":u+"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};
_.J.handleOpenVideoPreviewAction=function(R){var y=this,u;return _.I(function(v){if(!y.currentPageAllowed())return v.return(0);y.opts=R;return(u=y.alignVideoPreviewForAnimation(R.thumbnail))?v.return(y.activate()):v.return(0)})};
_.J.onMouseLeave=function(R){this.shouldDeactivateOnMouseLeave(R)&&this.deactivate()};
_.J.onScroll=function(){var R,y;((R=this.opts)==null?0:R.isAutoplay)&&((y=this.opts)==null?0:y.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.J.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.WG.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.J.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.J.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",IF.JSC$19006_DEFAULT_CLICK_LOCATION_BEHAVIOR,IF.JSC$19006_CLICK_LOCATION_ID_MAP)};
_.J.shouldDeactivateOnMouseLeave=function(R){R=R.relatedTarget;if(!R)return!0;var y;return(y=this.opts)!=null&&y.mediaRenderer?!_.b8(this.opts.mediaRenderer).contains(R):!0};
_.J.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.J.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$19007_preventProgressSaveTimer=
_.T3(_.WG,function(){R.resetPreventProgressSaveTimer()},1E4);
var y;if((y=this.opts)==null?0:y.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.T3(_.WG,function(){R.hasMultipleVideoPreviews()?R.startPlaybackForNextVideo():R.deactivate()},this.opts.videoPreviewDurationMs);
var u;this.player.setGlobalCrop(((u=this.opts)==null?0:u.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.J.getRoundedCornersSize=function(){var R;if((R=this.opts)==null?0:R.roundedCornersSize){var y;return(y=this.opts)==null?void 0:y.roundedCornersSize}var u;if((u=this.opts)==null?0:u.enableRounding){var v;if(((v=this.opts)==null?void 0:v.thumbnailSize)==="small")return 1;var Q;if(((Q=this.opts)==null?void 0:Q.thumbnailSize)==="medium")return 2;var M;if(((M=this.opts)==null?void 0:M.thumbnailSize)==="large")return 3}return _.f("web_imp_inset_progress_bar")?3:0};
_.J.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.J.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.J.onMediaContainerClick=function(R){this.isShortcutClick(R)||(this.navigateToWatch(R),R.preventDefault(),R.stopPropagation())};
_.J.activate=function(){var R=this,y,u,v,Q,M,K,h,b,N;return _.I(function(T){switch(T.nextAddress){case 1:if(!R.currentPageAllowed())return T.return(0);u=(y=R.videoPreviewData)==null?void 0:y.inlinePlaybackEndpoint;v=_.Ch.instance;if(!u||!v)return T.return(0);R.playbackIntentTriggered=!0;((Q=R.opts)==null?0:Q.mediaRenderer)&&((M=R.opts)==null||!M.isAutoplay)&&TRZ(R.opts.mediaRenderer,function(){R.deactivate()});
_.gn(R,function(){R.revealPreviewUi()});
K={};_.f("enable_unknown_lact_fix_on_html5")&&(_.ua().resolve(_.Xj),K.lact=_.QF());R.videoPreviewFetchRequest=IIa(v,R.getInlinePlaybackRequestData(R.videoPreviewData),K);_.wY(T,2);return T.yield(R.videoPreviewFetchRequest,4);case 4:h=T.yieldResult;if(((b=h)==null?void 0:(N=b.playabilityStatus)==null?void 0:N.status)==="OK")return T.return(R.handlePlayerResponse(h));throw Error("Mj");case 2:_.B$(T),R.deactivate();case 3:return T.return(1)}})};
_.J.getInlinePlaybackRequestData=function(R){var y,u=_.f("web_imp_player_mute_params")?((y=this.opts)==null?void 0:y.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:R.inlinePlaybackEndpoint,startPlaybackInMutedState:u}};
_.J.handlePlayerResponse=function(R){var y=this,u,v,Q,M,K,h,b,N,T,x;return _.I(function(B){if(B.nextAddress==1){u=y.getInlinePlaybackVideoId();if(!(((v=R)==null?0:(Q=v.videoDetails)==null?0:Q.videoId)&&y.currentPageAllowed()&&y.playbackIntentTriggered&&y.opts&&u))return y.deactivate(),B.return(0);if(R.videoDetails.videoId!==u)return B.return(0);y.enableAudioControls=!!((M=R.playerConfig)==null?0:(K=M.inlinePlaybackConfig)==null?0:K.showAudioControls);R.trackingParams=y.getInlinePlaybackTrackingParams();
if(!y.inlinePlayer)return B.return(0);h={};if(N=_.e((b=y.videoPreviewData)==null?void 0:b.inlinePlaybackEndpoint,_.zM))h.watch_endpoint=N;if(y.videoPreviewData){var l,Z=(l=_.e(y.videoPreviewData.inlinePlaybackEndpoint,_.zM))==null?void 0:l.startTimeSeconds;Z!==void 0&&(R.playerConfig||(R.playerConfig={}),R.playerConfig.playbackStartConfig||(R.playerConfig.playbackStartConfig={}),R.playerConfig.playbackStartConfig.startPosition||(R.playerConfig.playbackStartConfig.startPosition={}),R.playerConfig.playbackStartConfig.startSeconds=
Z,R.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(Z*1E3))}y.inlinePlayer.loadVideoWithPlayerResponse(R,h);if(y.JSC$19007_playerPromise)return B.jumpTo(2);y.JSC$19007_playerPromise=y.inlinePlayer.getPlayerPromise();return B.yield(y.JSC$19007_playerPromise,3)}B.nextAddress!=2&&(T=B.yieldResult,T.setInlinePreview(!0),T.setSizeStyle(!1,!0),y.ytPlayerListenerBehavior.listenToPlayerEvents(T,y.JSC$19007_playerEvents),y.player=T,_.Ko(y.hostElement,"player-api-ready"));((x=y.opts)==
null?0:x.showPlayerControls)&&y.videoPreviewData&&y.player&&(y.playerControlsData={playerResponse:R,isInlinePlayback:!0,thumbnailOverlays:y.videoPreviewData.thumbnailOverlays,playerApi:y.player},y.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!y.unroundCornersForPlayback,additionalButton:y.getAdditionalButtonType(y.videoPreviewData.thumbnailOverlays)});return B.return(2)})};
_.J.revealPreviewUi=function(){var R=this;this.playbackIntentTriggered&&_.HUz(this,function(){R.hasThumbnailPositionChangedSinceTriggered()||(R.updateActiveState(!0),R.noAnimation=!1)})};
_.J.hasThumbnailPositionChangedSinceTriggered=function(){var R=this.positionData,y=this.getThumbnailPositionData();return(R==null?void 0:R.initialTopPosition)!==(y==null?void 0:y.initialTopPosition)||(R==null?void 0:R.initialHorizontalPosition)!==(y==null?void 0:y.initialHorizontalPosition)};
_.J.getThumbnailPositionData=function(){var R,y;if((y=this.opts)==null||!y.thumbnail)return null;y=this.opts.thumbnail;var u=((R=this.opts)==null?0:R.cropPlayerToFillThumbnailHorizontally)?!1:!0;var v=y.getBoundingClientRect();R=v.width;y=v.height;var Q=v.top+window.scrollY;v=v.left+window.scrollX;var M=u?Math.ceil(R):R;u=u?Math.ceil(y):y;var K=R/M;R={initialScale:K,initialTopPosition:Q-12*K,finalTopPosition:Q-12-(u-y)/2,initialHorizontalPosition:v-(12+(M-R)/2),finalHorizontalPosition:v-12-(M-R)/
2,videoPreviewWidth:M,videoPreviewHeight:u};return R};
_.J.updateActiveState=function(R){this.active=R;this.ytdReduxBehavior.dispatch(_.iE({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:R}))};
_.J.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&&(_.WG.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.J.deactivate=function(R){R=R===void 0?{}:R;R=R.resetWatchEndpointStartTime===void 0?!1:R.resetWatchEndpointStartTime;Gm&&(Gm.disconnect(),Gm=null);this.stopPlayer({resetWatchEndpointStartTime:R});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.J.isValidThumbnailOverlayButton=function(R,y){R=R.thumbnailOverlayButtonRenderer;var u;return!!R&&!!R.tooltip&&!((u=R.icon)==null||!u.iconType)&&y.includes(R.icon.iconType)};
_.J.isValidThumbnailOverlayButtonViewModel=function(R,y){var u;R=_.e((u=R.thumbnailOverlayButtonViewModel)==null?void 0:u.overlayButton,_.k9);return!!R&&!!R.title&&!!R.iconName&&y.includes(R.iconName)};
_.J.getAdditionalButtonType=function(R){var y=this;if(_.f("web_imp_fastforward_button"))return{button:1};if(_.f("web_imp_miniplayer_button"))return{button:2};if(_.f("web_imp_playback_speed_button"))return{button:3};var u=["BOX_STACK_3"],v=(R||[]).filter(function(M){return y.isValidThumbnailOverlayButton(M,u)}).map(function(M){return M.thumbnailOverlayButtonRenderer});
if(v.length)return{button:4,thumbnailOverlayButtonRenderers:v};var Q=["BOX_STACK_3"];R=(R||[]).filter(function(M){return y.isValidThumbnailOverlayButtonViewModel(M,Q)}).map(function(M){return _.e(M.thumbnailOverlayButtonViewModel.overlayButton,_.k9)});
if(R.length)return{button:4,thumbnailOverlayButtonViewModels:R}};
_.J.allowCaptions=function(){var R;return!((R=this.opts)==null?0:R.forceCaptionsOff)};
_.J.allowUnmuting=function(){var R;return this.enableAudioControls&&!((R=this.opts)==null?0:R.forceMutedVolume)};
_.J.beginStartTimeUpdater=function(){var R=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.hT(function(){R.updateWatchEndpointStartTime()},1E3)};
_.J.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.J.resetPreventProgressSaveTimer=function(){this.JSC$19007_preventProgressSaveTimer!==null&&(_.WG.cancelJob(this.JSC$19007_preventProgressSaveTimer),this.JSC$19007_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.J.updateWatchEndpointStartTime=function(R){var y=this.videoPreviewData;if(this.player&&y!=null&&y.inlinePlaybackEndpoint&&!this.JSC$19007_preventProgressSaveTimer){R=R?0:Math.floor(this.player.getCurrentTime());var u=_.e(y.navigationEndpoint,_.zM);u&&(u.startTimeSeconds=R);if(y=_.e(y.inlinePlaybackEndpoint,_.zM))y.startTimeSeconds=R}};
_.J.isShortcutClick=function(R){return!!R&&(R.ctrlKey||R.shiftKey||R.metaKey)};
_.J.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.J.openInMiniplayer=function(){var R=this,y,u;return _.I(function(v){if(v.nextAddress==1){u=(y=R.videoPreviewData)==null?void 0:y.navigationEndpoint;if(!u)return v.return();_.Hr().lockupActivation=!0;return v.yield(_.PPw(_.ua().resolve(_.cZ),u),2)}_.Hr().userActivation=!0;_.f$(v)})};
_.J.navigateToWatch=function(R){var y,u=(y=this.videoPreviewData)==null?void 0:y.navigationEndpoint;if(u){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(u,R,!0);else{var v;_.f("web_thumbnail_to_watch_transition")&&((v=this.opts)==null?0:v.thumbnail)&&_.nyi(_.ua().resolve(_.nC),this.opts.thumbnail);_.Ko(this.hostElement,"yt-navigate",{endpoint:u})}this.deactivate()}};
_.J.getInlinePlaybackVideoId=function(){var R,y;return(y=_.e((R=this.videoPreviewData)==null?void 0:R.inlinePlaybackEndpoint,_.zM))==null?void 0:y.videoId};
_.J.getInlinePlaybackTrackingParams=function(){var R,y;return(R=this.videoPreviewData)==null?void 0:(y=R.inlinePlaybackEndpoint)==null?void 0:y.clickTrackingParams};
_.J.hasMultipleVideoPreviews=function(){var R;return!!(((R=this.opts)==null?0:R.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.J.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())};
_.RR.Object.defineProperties(IF.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 y;return(y=this.opts)==null?void 0:y.videoPreviewData[this.videoPreviewDataIndex]}var u;return(u=this.opts)==null?void 0:u.videoPreviewData}}});
IF.prototype.onIsAdsVideoChange=IF.prototype.onIsAdsVideoChange;IF.prototype.onInlinePreviewIsEnabledChange=IF.prototype.onInlinePreviewIsEnabledChange;IF.prototype.optsChanged=IF.prototype.optsChanged;IF.prototype.onMouseLeave=IF.prototype.onMouseLeave;IF.JSC$19006_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);IF.JSC$19006_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([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],IF.prototype,"actionHandlerBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],IF.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.Ra.YtPlayerListenerBehavior),_.p("design:type",_.yH)],IF.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],IF.prototype,"componentBehavior",void 0);
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],IF.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],IF.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.il.YtSparklesClickLocationBehavior),_.p("design:type",Object)],IF.prototype,"ytSparklesClickLocationBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],IF.prototype,"opts",void 0);_.A([_.r(),_.p("design:type",Object)],IF.prototype,"playerControlsData",void 0);
_.A([_.r(),_.p("design:type",Object)],IF.prototype,"playerControlsAppApi",void 0);_.A([_.r(),_.p("design:type",Object)],IF.prototype,"playerControlsOptions",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],IF.prototype,"noAnimation",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],IF.prototype,"hidden",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],IF.prototype,"active",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],IF.prototype,"playing",void 0);_.A([_.r({selector:_.qT4}),_.p("design:type",Boolean)],IF.prototype,"inlinePreviewIsEnabled",void 0);_.A([_.r(),_.p("design:type",String)],IF.prototype,"pagePath",void 0);_.A([_.r({selector:_.AN}),_.p("design:type",Boolean)],IF.prototype,"isWatchPage",void 0);_.A([_.G("videoPreviewData"),_.p("design:type",Object),_.p("design:paramtypes",[])],IF.prototype,"thumbnailData",null);
_.A([_.G("opts","active"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],IF.prototype,"hidePlayerControls",null);_.A([_.G("opts"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],IF.prototype,"isAdsVideo",null);_.A([_.G("opts"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],IF.prototype,"roundedCornersSmall",null);
_.A([_.G("opts"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],IF.prototype,"roundedCornersMedium",null);_.A([_.G("opts"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],IF.prototype,"roundedCornersLarge",null);_.A([_.G("opts"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],IF.prototype,"unroundCornersForPlayback",null);
_.A([_.G("opts","videoPreviewDataIndex"),_.p("design:type",Object),_.p("design:paramtypes",[])],IF.prototype,"videoPreviewData",null);_.A([_.r(),_.p("design:type",Object)],IF.prototype,"videoPreviewDataIndex",void 0);_.A([_.O7("#inline-player"),_.p("design:type",Object)],IF.prototype,"inlinePlayer",void 0);_.A([_.fu("mouseleave"),_.p("design:type",Function),_.p("design:paramtypes",[MouseEvent]),_.p("design:returntype")],IF.prototype,"onMouseLeave",null);
_.A([_.GJ("opts"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],IF.prototype,"optsChanged",null);_.A([_.GJ("inlinePreviewIsEnabled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],IF.prototype,"onInlinePreviewIsEnabledChange",null);_.A([_.e0("isAdsVideo"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],IF.prototype,"onIsAdsVideoChange",null);
_.A([_.q({is:"ytd-video-preview",disableElementRegistration:!0})],IF);
_.m(IF,"ytd-video-preview",function(){if(ShK!==void 0)return ShK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return ShK=R},{mode:2});
}catch(e){_._DumpException(e)}
try{
var SYm,YYa,LdJ;SYm=function(R){return _.f("kevlar_watch_cinematics_invisible")||R.fullscreen&&_.f("kevlar_watch_cinematics_invisible_in_fullscreen")||R.theater&&!R.fullscreen&&_.f("kevlar_watch_cinematics_invisible_in_theater")};
YYa=function(){var R=document.createElement("canvas"),y=R.getContext("2d");if(!y)throw Error("mo");_.pp(R,{position:"absolute",width:"100%",height:"100%"});return{element:R,context:y}};
LdJ=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.f("kevlar_watch_cinematics_css_blur")};
_.suP=function(R,y,u){return Math.abs(R-y)<=(u||1E-6)};
_.zba=function(R,y){return R==y?!0:R&&y?R.width==y.width&&R.height==y.height:!1};_.gKZ=new _.jF("notificationActionRenderer");var CsP=function(R){var y=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.xv;this.element.addEventListener("load",function(){y.loaded=!0;y.resolver.resolve(y.element)});
this.element.addEventListener("error",function(){y.failed=!0});
this.element.src=R};var Rep=function(R,y){this.image=R;this.frame=y};
Rep.prototype.drawToCanvas=function(R,y){var u=this.frame.width/this.frame.columns,v=this.frame.height/this.frame.rows,Q=y.offsetX,M=y.offsetY;SYm(y)?(R.fillStyle=y.fullscreen?"#000":"#0f0f0f",R.fillRect(Q,M,(y==null?void 0:y.width)||u,(y==null?void 0:y.height)||v)):R.drawImage(this.image,this.frame.column*u,this.frame.row*v,u,v,Q,M,(y==null?void 0:y.width)||u,(y==null?void 0:y.height)||v)};
var yQo=function(R){this.color=R};
yQo.prototype.drawToCanvas=function(R,y){var u=y.offsetX,v=y.offsetY,Q=y.width,M=y.height;R.fillStyle=SYm(y)?y.fullscreen?"#000":"#0f0f0f":this.color;R.fillRect(u,v,Q,M)};var Cg=function(R,y){_.Nl.call(this);this.playerApi=y;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.or(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();uRa(this,R);v_o(this);this.update()};
_.O(Cg,_.Nl);Cg.prototype.addEventListeners=function(){var R=this,y=function(){R.update()},u=function(Q){R.paused||(Q.type==="newdata"&&(R.mosaics.clear(),QBa(R),Ru(R)),v_o(R),R.update())},v=function(){R.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",y);this.playerApi.addEventListener("onVideoDataChange",u);this.playerApi.addEventListener("onStateChange",v);this.addOnDisposeCallback(function(){R.playerApi.removeEventListener("onVideoProgress",y);R.playerApi.removeEventListener("onVideoDataChange",u);R.playerApi.removeEventListener("onStateChange",v)})};
var uRa=function(R,y){R.cinematicContainerRenderer!==y&&(R.cinematicContainerRenderer=y,QBa(R),Ru(R),R.colorStoreUpdateJobId=_.WG.addLowPriorityJob(function(){var u;if((u=R.cinematicContainerRenderer.colorStore)!=null&&u.sampledColors){u=Infinity;for(var v=_.V(R.cinematicContainerRenderer.colorStore.sampledColors),Q=v.next();!Q.done;Q=v.next()){Q=Q.value;var M=Number(Q.key);M!==0&&M<u&&(u=M);M=_.Sq(Q.value);R.colorStore.set(Q.key,M)}R.colorStoreTimeInterval=u}}))},QBa=function(R){R.colorStoreUpdateJobId&&
(_.WG.cancelJob(R.colorStoreUpdateJobId),R.colorStoreUpdateJobId=void 0);
R.colorStore.clear();R.currentStoryboardColor=void 0},jBI=function(R,y){var u;
return(u=R.getStoryboardFrame(y))==null?void 0:u.url};
Cg.prototype.onPlayerStateChange=function(){this.update()};
Cg.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var v_o=function(R){var y=R.getStoryboardFrame(0);y&&(y=new _.or(y.width/y.columns,y.height/y.rows),_.zba(R.currentStoryboardSize,y)||(R.currentStoryboardSize=y,R.publish("STORYBOARD_SIZE_CHANGED",R.currentStoryboardSize)))},MBm=function(R,y){R.currentStoryboardIndex=y;
R.pendingStoryboardIndex=NaN;y=R.getStoryboardFrame(R.currentStoryboardIndex);R.currentStoryboard=new Rep(R.mosaics.get(y.url).element,y);R.publish("STORYBOARD_CHANGED",R.currentStoryboard);R.lastUpdateTime=(0,_.uQ)()};
Cg.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var Ru=function(R){R.currentStoryboardIndex=NaN;R.pendingStoryboardIndex=NaN;R.currentStoryboard&&(R.currentStoryboard=void 0,R.publish("STORYBOARD_CHANGED",void 0));R.lastUpdateTime=NaN};
Cg.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)Ru(this);else{var R=this.playerApi.getPlayerState(1);if(R===-1||R===5||R===0)Ru(this);else if(isNaN(this.lastUpdateTime)||!((0,_.uQ)()<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 y=this.colorStore.get(R);y?y!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=y,this.currentStoryboard=new yQo(y),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.uQ)()):(_.kT(new _.OL("Could not find color for timestamp: "+R,this.cinematicContainerRenderer)),Ru(this))}else Ru(this);else JQo(this,R)}};
var JQo=function(R,y){var u=R.getStoryboardFrameIndex(y);if(u!==R.currentStoryboardIndex&&u!==R.pendingStoryboardIndex){y=jBI(R,u);var v=R.mosaics.get(y);v?v.loaded&&MBm(R,u):(R.pendingStoryboardIndex=u,u=new CsP(y),R.mosaics.set(y,u),u.resolver.promise.then(function(){if(!R.isDisposed()&&!R.paused&&!isNaN(R.pendingStoryboardIndex)){var Q=jBI(R,R.pendingStoryboardIndex);if(Q){var M;(M=R.mosaics.get(Q))!=null&&M.loaded&&MBm(R,R.pendingStoryboardIndex)}else Ru(R)}}))}};
Cg.prototype.getStoryboardFrameIndex=function(R){var y=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(R,y)};
Cg.prototype.getStoryboardFrame=function(R){var y=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,u,v;return((v=(u=this.playerApi).getStoryboardFrame)==null?void 0:v.call(u,R,y))||null};
Cg.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var us=function(R,y,u,v){v=v===void 0?!1:v;_.Z0.call(this);this.cinematicContainerRenderer=y;this.playerApi=u;this.theater=this.fullscreen=!1;var Q;this.ambientLightThemeEnabled=!v&&!!(y==null?0:(Q=y.config)==null?0:Q.enableInLightTheme);this.ambientFullscreenEnabled=v&&_.f("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=v&&_.f("web_cinematic_theater_mode");this.container=document.createElement("div");R.appendChild(this.container);var M;if(_.f("web_cinematic_theater_mode")||_.f("web_cinematic_fullscreen")||
(y==null?0:(M=y.config)==null?0:M.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);VB8(this);R=this.ambientV2Container||this.container;this.backCanvas=YYa();this.frontCanvas=YYa();R.appendChild(this.backCanvas.element);R.appendChild(this.frontCanvas.element);this.storyboardManager=new Cg(y,this.playerApi);_.bx(this,this.storyboardManager);this.addEventListeners();iBg(this)?KTV(this,100+yT(this)*3*2,100+yT(this)*3*2):I4g(this);
heP(this,this.storyboardManager.currentStoryboard)};
_.O(us,_.Z0);var VB8=function(R){R.ambientV2Container?bBJ(R):(_.pp(R.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+FTZ(R)+", "+wiM(R)+")"}),LdJ()&&_.pp(R.container,"filter","blur("+_.JT("cinematic_watch_css_filter_blur_strength",40)+"px)"))},bBJ=function(R){if(R.ambientV2Container){var y=R.playerApi.getVideoAspectRatio();
_.pp(R.container,{"aspect-ratio":""+y,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.pp(R.ambientV2Container,{"aspect-ratio":""+y,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+FTZ(R)+", "+wiM(R)+")"});LdJ()&&_.pp(R.ambientV2Container,"filter","blur("+_.JT("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
us.prototype.setFullscreen=function(R,y){this.fullscreen=R;this.theater=!!y;VB8(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),R=this.storyboardManager.currentStoryboard,NHP(this),R&&THo(this,R)};
us.prototype.addEventListeners=function(){var R=this,y=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(Q){heP(R,Q)}),u=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){I4g(R)});
this.addOnDisposeCallback(function(){R.storyboardManager.unsubscribeByKey(y);R.storyboardManager.unsubscribeByKey(u)});
if(this.ambientV2Container){var v=function(){bBJ(R)};
this.playerApi.addEventListener("onVideoDataChange",v);this.addOnDisposeCallback(function(){R.playerApi.removeEventListener("onVideoDataChange",v)})}};
var I4g=function(R){if(!iBg(R)){var y=R.storyboardManager.currentStoryboardSize;isNaN(y.width)||isNaN(y.height)||KTV(R,Number(y.width)+yT(R)*3*2,Number(y.height)+yT(R)*3*2)}},KTV=function(R,y,u){R.backCanvas.element.width=y;
R.backCanvas.element.height=u;R.frontCanvas.element.width=y;R.frontCanvas.element.height=u},iBg=function(R){return R.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},heP=function(R,y,u){u=u===void 0?!1:u;
var v=R.frontCanvas.element.getAnimations()[0];v?(v.pause(),R.backCanvas.context.globalAlpha=Number(getComputedStyle(R.frontCanvas.element).opacity),R.frontCanvas.element.style.opacity="0",v.finish()):R.backCanvas.context.globalAlpha=1;R.backCanvas.context.drawImage(R.frontCanvas.element,0,0,R.backCanvas.element.width,R.backCanvas.element.height);NHP(R);y&&THo(R,y);y=y?R.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.JT("cinematic_watch_fade_out_duration",500);v=_.JT("cinematic_watch_transition_frame_rate")/
1E3;var Q={};v&&(Q={easing:"steps("+Math.round(y*v)+")"});(u===void 0?0:u)||R.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:y,iterations:1},Q));R.frontCanvas.element.style.opacity="1"},NHP=function(R){var y=R.ambientLightThemeEnabled||R.ambientTheaterModeEnabled,u=R.ambientLightThemeEnabled||R.ambientFullscreenEnabled;
R.frontCanvas.context.fillStyle=R.theater&&y||R.fullscreen&&u?"#000":"#0f0f0f";LdJ()||(R.frontCanvas.context.filter="blur(0)");R.frontCanvas.context.fillRect(0,0,R.frontCanvas.element.width,R.frontCanvas.element.height)},THo=function(R,y){LdJ()||(R.frontCanvas.context.filter="blur("+yT(R)+"px)");
R.frontCanvas.context.globalAlpha=R.fullscreen&&R.ambientFullscreenEnabled||R.theater&&R.ambientTheaterModeEnabled?_.JT("cinematic_watch_effect_letterbox_opacity",.8):_.JT("cinematic_watch_effect_opacity",.4);var u={offsetX:yT(R)*3,offsetY:yT(R)*3,theater:R.theater,fullscreen:R.fullscreen};iBg(R)&&(u.width=100,u.height=100);y.drawToCanvas(R.frontCanvas.context,u);R.frontCanvas.context.globalAlpha=1},yT=function(R){var y;
return(y=R.cinematicContainerRenderer.config.blurStrength)!=null?y:5},FTZ=function(R){var y,u;
if((R.fullscreen||R.theater)&&((y=R.cinematicContainerRenderer.config)==null?0:(u=y.watchFullscreenConfig)==null?0:u.colorSourceWidthMultiplier))return R.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var v;return(v=R.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?v:R.cinematicContainerRenderer.config.colorSourceSizeMultiplier},wiM=function(R){var y,u;
if((R.fullscreen||R.theater)&&((y=R.cinematicContainerRenderer.config)==null?0:(u=y.watchFullscreenConfig)==null?0:u.colorSourceHeightMultiplier))return R.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var v;return(v=R.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?v:R.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
us.prototype.disposeInternal=function(){_.Z0.prototype.disposeInternal.call(this);this.container.remove()};
us.prototype.clear=function(){heP(this,void 0,!0)};
us.prototype.pause=function(){this.storyboardManager.pause()};var o_p;o_p=_.H7(function(){var R,y,u=!((y=(R=document.createElement("canvas")).getContext)==null||!y.call(R,"2d")),v;R=!((v=CSS)==null||!v.supports("filter: blur(0)"));v=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var Q;return u&&R&&v&&!((Q=CSS)==null||!Q.supports("aspect-ratio: 1 / 1"))});
_.vn=function(R,y){_.Nl.call(this);this.container=R;this.playerApi=y;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=xZ8(this);this.update()};
_.O(_.vn,_.Nl);_.BHp=function(R){var y=document.documentElement.hasAttribute("dark");R.isDarkModeEnabled=y;R.update()};
_.f4M=function(R,y){R.settingEnabled=y;R.update()};
_.vn.prototype.setFullscreen=function(R,y){this.fullscreen=R;this.theater=!!y;this.update()};
_.eeP=function(R,y){R.cinematicContainerRenderer=y;R.cinematicContainerRenderer&&(R.cinematicsVe=_.$6(R.isShorts()?227858:159022),_.x0(_.GN(),R.cinematicsVe),R.loggingClientData={watchCinematicContainerData:{presentationStyle:R.cinematicContainerRenderer.presentationStyle}});R.update()};
_.vn.prototype.isShorts=function(){var R,y;return((R=this.cinematicContainerRenderer)==null?void 0:(y=R.config)==null?void 0:y.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.vn.prototype.isAllowed=function(){var R;if(R=o_p()){var y,u,v;R=((u=this.cinematicContainerRenderer)==null?void 0:u.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((v=this.cinematicContainerRenderer)==null||!v.colorStore)||((y=this.cinematicContainerRenderer)==null?void 0:y.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(R)if(_.f("web_cinematics_pausing")){var Q,M;R=this.isDarkModeEnabled||!!((Q=this.cinematicContainerRenderer)==
null?0:(M=Q.config)==null?0:M.enableInLightTheme)}else{var K,h;Q=!!((K=this.cinematicContainerRenderer)==null?0:(h=K.config)==null?0:h.enableInLightTheme)&&(_.EB("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);R=this.isDarkModeEnabled||Q}if(K=R){var b,N;K=!((N=(b=this.prefersReducedMotionQuery)==null?void 0:b.matches)!=null&&N)}return K};
_.l48=function(R){(R=R.currentCinematicEffect)!=null&&(R=R.storyboardManager,R.paused=!1,v_o(R),R.update())};
_.vn.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var xZ8=function(R){if(!_.f("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var y=window.matchMedia("(prefers-reduced-motion: reduce)"),u=function(){R.update()};
y.addListener(u);R.addOnDisposeCallback(function(){y.removeListener(u)});
return y}};
_.vn.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 us(this.container,R,this.playerApi,this.isDarkModeEnabled),_.bx(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var y=this.currentCinematicEffect;y.cinematicContainerRenderer!==
R&&(y.cinematicContainerRenderer=R,uRa(y.storyboardManager,R),VB8(y));R=_.O9();_.Zq(0,194,!0);R.save();R=_.$I();this.cinematicsVe&&R&&_.Lo(R,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(R=_.$I(),this.cinematicsVe&&R&&_.s9(R,[this.cinematicsVe],!1,this.loggingClientData),_.R_(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.RR.Object.defineProperties(_.vn.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var eba;var l3M;_.qz({_template:function(){if(l3M!==void 0)return l3M;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=
R.content,u=y.insertBefore;eba===void 0&&(eba=document.createElement("template"));var v=eba;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return l3M=R},
is:"tp-yt-iron-pages",behaviors:[_.qv,_.Cu],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var oAZ;_.xb8=function(){if(_.f("kevlar_home_skeleton")&&!oAZ){var R=document.querySelector("#home-page-skeleton");R&&(_.qQ("hgcr"),_.BY(R),oAZ=!0)}};
oAZ=!1;_.B6=new _.jF("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var VsP,KZm,ImV,hyI,b0J,FZo,wDV,N7g,oVM,xXP,B7a,lmK,Z0m,H0I,O0I,fmJ,ey8,rEg;_.JEa=function(R,y,u){y=y===void 0?5:y;if(y!==0){var v=typeof R==="function"?R():document.querySelector(R);v?(u==null?0:u.enableSmartFocus)?_.Liv(v):v.focus():setTimeout(function(){_.JEa(R,y-1,u)},500)}};
VsP=function(R){return String.raw.apply(String,[{raw:R}].concat(_.P$(_.qy.apply(1,arguments).map(function(y){return y instanceof Array?y.join(""):y}))))};
KZm=function(R){var y=_.qy.apply(1,arguments),u=y.length;if(!Array.isArray(R)||!Array.isArray(R.raw)||R.length!==R.raw.length||!_.UU5&&R===R.raw||!(_.UU5&&!_.kT5||_.Z2(R))||u+1!==R.length)throw new TypeError("$");return new i0a(Object.freeze({strings:Object.freeze(R),args:Object.freeze(y)}))};
ImV=function(R){return _.Clc(_.gx8(R&16777215))<.5};
hyI=function(R,y,u){var v=u.minimumRowsOfVideosBetweenSections===void 0?1:u.minimumRowsOfVideosBetweenSections;return R<(u.minimumRowsOfVideosAtStart===void 0?2:u.minimumRowsOfVideosAtStart)||y!==null&&R-y<=v?!1:!0};
b0J=function(R,y){var u=0,v=0;R=_.V(R);for(var Q=R.next();!Q.done;Q=R.next()){var M=Q.value;if(M.richItemRenderer)M.richItemRenderer.rowIndex=v,M.richItemRenderer.colIndex=u++,u===y&&(u=0,v++);else if(M.richGroupRenderer&&M.richGroupRenderer.numColumns!==void 0)M.richGroupRenderer.rowIndex=v,M.richGroupRenderer.colIndex=u,u+=M.richGroupRenderer.numColumns,u===y&&(u=0,v++);else if(M.richSectionRenderer){var K=Q=void 0;if(M=_.e((Q=M)==null?void 0:(K=Q.richSectionRenderer)==null?void 0:K.content,_.Atc))M.rowIndex=
v++}}};
FZo=function(R,y){var u=y.contentElement;y=y.rendererToTagNameMap;if(u&&y&&y.size!==0){for(var v=new Map,Q=_.V(u.children),M=Q.next();!M.done;M=Q.next()){M=M.value;var K=M.tagName.toLowerCase(),h=v.get(K);h||(h=[],v.set(K,h));h.push(M)}if(v.size!==0)for(Q=Math.min(R.length,u.children.length),M=new Map,K=0;K<Q;K++){h=Object.keys(R[K])[0];h=y.get(h);if(!h)break;var b=M.get(h);b===void 0&&(b=0,M.set(h,b));var N=v.get(h);if(!N||b>=N.length)break;M.set(h,b+1);h=N[b];b=u.children[K];b!==h&&(_.LCP=!0,_.s7E.set(h,
!0),u.insertBefore(h,b),_.s7E.delete(h),_.LCP=!1)}}};
wDV=function(R,y,u,v,Q,M,K){v=v===void 0?{}:v;if(!R||!R.length)return[];R=R.slice();var h=[],b=[];Q=null;for(var N=0,T=function(E){b.sort(function(c,a){return a.skippedOnRow-c.skippedOnRow});
for(var D,z=(D=b.shift())==null?void 0:D.content;z;)!z.richSectionRenderer&&E||h.push(z),D=void 0,z=(D=b.shift())==null?void 0:D.content},x=void 0;R.length>0||b.length>0;){for(var B=[],l=y;l>0;){var Z=void 0,P=void 0,k=(P=b[0]&&b[0].skippedOnRow<N?(Z=b.shift())==null?void 0:Z.content:void 0)!=null?P:R.shift();
if(!k)break;if(k.richItemRenderer)Z=k.richItemRenderer.targetId,P=void 0,Z&&((P=K)==null?0:P.has(Z))&&(Z=K.get(Z),!x||Z&&Z.timestamp>x.timestamp)&&(x=Z),B.push(k),l--;else if(k.richGroupRenderer&&k.richGroupRenderer.numColumns!==void 0)k.richGroupRenderer.numColumns<=l?(B.push(k),l-=k.richGroupRenderer.numColumns):l===y&&k.richGroupRenderer.numColumns>y?(B.push({richGroupRenderer:Object.assign({},k.richGroupRenderer,{numColumns:y})}),l=0):b.push({content:k,skippedOnRow:N});else if(k.richSectionRenderer)if(hyI(N,
Q,v)&&l===y){h.push(k);Q=N;N++;continue}else b.push({content:k,skippedOnRow:N});else if(k.continuationItemRenderer){T(!0);h.push(k);l=0;break}if(l===0)h.push.apply(h,_.P$(B));else if(!u&&R.length===0){T(!1);h.push.apply(h,_.P$(B));l=0;break}}N++;x&&(h.push(x.content),N++);x=void 0}b0J(h,y);M&&FZo(h,M);return h};
N7g=function(){return _.qy.apply(0,arguments).flat().filter(function(R){return R}).join(";")};
oVM=function(){return KZm(T7a,N7g.apply(null,_.P$(_.qy.apply(0,arguments))))};
xXP=function(R){switch(R){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
B7a=function(R){return R.talkToRecs};
lmK=function(R,y){if(y){var u=_.Qe().getState().entities.flowStateEntity,v=fmJ(R),Q=[y];v&&v!==y&&Q.push(v);var M=!0,K;if(u&&R.flowStateEntityKey&&((K=u[R.flowStateEntityKey])==null?void 0:K.primaryButtonDisabled)!==void 0){var h;M=!((h=u[R.flowStateEntityKey])==null||!h.primaryButtonDisabled)}ey8(R,v!=null?v:y,Q,M)}};
Z0m=function(R){return _.GD(_.Qe(),function(y){return y.entities.flowStateEntity},function(y,u){if(R.flowStateEntityKey){var v,Q=y==null?void 0:(v=y[R.flowStateEntityKey])==null?void 0:v.currentStepId,M;
u=u==null?void 0:(M=u[R.flowStateEntityKey])==null?void 0:M.currentStepId;M=_.Qe().getState().talkToRecs;if(Q&&Q!==u){var K;y=(y==null?void 0:(K=y[R.flowStateEntityKey])==null?void 0:K.stepIdStack)||Object.keys(M.stepStates);K=!O0I(M==null?void 0:M.stepStates[Q]);ey8(R,Q,y,K)}}})};
H0I=function(R){return _.GD(_.Qe(),B7a,function(y){var u=fmJ(R);if(u){var v=Object.keys(y.stepStates);y=!O0I(y==null?void 0:y.stepStates[u]);ey8(R,u,v,y)}})};
O0I=function(R){var y=Object.keys((R==null?void 0:R.selectionStates)||{}).reduce(function(M,K){return M||(R==null?void 0:R.selectionStates[K].isSelected)},!1),u,v,Q=!!(R==null?0:(u=R.userQuery)==null?0:(v=u.userQuery)==null?0:v.trim());
return y||Q};
fmJ=function(R){if(R.flowStateEntityKey){var y,u,v=(y=_.Qe().getState().entities.flowStateEntity)==null?void 0:(u=y[R.flowStateEntityKey])==null?void 0:u.currentStepId;if(v)return v}};
ey8=function(R,y,u,v){_.Qe().dispatch(_.Gw("flowStateEntity",R.flowStateEntityKey,{currentStepId:y,stepIdStack:u,key:R.flowStateEntityKey,primaryButtonDisabled:v}))};
_.nVa=function(R,y){return _.TI(R.entities,"youchatPendingResponseEntity",y)};
_.GvK=function(R){return function(y){_.vy(_.Gw("youchatPendingResponseEntity",R,{entityKey:R,isPendingResponse:y}))}};
rEg=function(R){R==null||R.addEventListener("DOMLoaded",function(){R.goToAndPlay(R.totalFrames-48,!0)})};
_.RM=function(R){this.__isSoyCss=!0;this.css=VsP.apply(null,[R.strings].concat(_.P$(R.args)))};
_.RM.prototype.toString=function(){return this.css};
var i0a=function(){_.RM.apply(this,arguments)};
_.O(i0a,_.RM);var T7a=_.RE(["",""]);var PUI;var WZ7;_.qz({_template:function(){if(WZ7!==void 0)return WZ7;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);
var y=R.content,u=y.insertBefore;PUI===void 0&&(PUI=document.createElement("template"));var v=PUI;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return WZ7=R},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var dX7=new _.jF("talkToRecsFlowRenderer");var UXH=new _.jF("flowRootRenderer");var kv7=new _.jF("learningJourneyQuizViewModel");var EVa=new _.jF("chipsShelfViewModel");var $Xo=new _.jF("responsiveContainerConfiguration");var q2P=new _.jF("horizontalShelfViewModel");_.XDV=new _.jF("engagementPanelSectionListRenderer");var mXa=new _.jF("conversationResourceViewModel");var AEV=function(){this.horizontal=!1},DXM=function(R,y){R.horizontal=y};
AEV.prototype.position=function(R,y,u,v){v=v===void 0?1:v;R=this.delta(R)*v+y;v=Math.max(y,u);return R>=Math.min(y,u)&&R<=v?R:u};
AEV.prototype.axis=function(R){R=this.direction(R);return R==="up"||R==="down"?"Y":"X"};var JH=function(R,y,u){y=y===void 0?_.kX():y;this.target=R;this.manager=y;this.touchAction=u;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
JH.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(_.P$(this.events)));for(var R=_.V(this.events),y=R.next();!y.done;y=R.next())this.listen(y.value)}};
JH.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.P$(this.events)));for(var R=_.V(this.events),y=R.next();!y.done;y=R.next())this.unlisten(y.value)}};
JH.prototype.listen=function(R){this.eventMap[R]&&this.target.addEventListener(R,this.eventMap[R])};
JH.prototype.unlisten=function(R){this.eventMap[R]&&this.target.removeEventListener(R,this.eventMap[R])};var Vx=function(){AEV.apply(this,arguments)};
_.O(Vx,AEV);Vx.prototype.direction=function(R){var y=R.detail;R=y.deltaY;y=y.deltaX;return R&&!this.horizontal?R>0?"down":"up":y&&this.horizontal?y>0?"right":"left":"none"};
Vx.prototype.distance=function(R){return Math.abs(this.delta(R))};
Vx.prototype.delta=function(R){var y=this.direction(R),u=R.detail;R=u.deltaX;u=u.deltaY;return y==="up"||y==="down"?u||0:R||0};
Vx.prototype.velocity=function(R){var y=this.direction(R),u=R.detail;R=u.velocityX;u=u.velocityY;return Math.abs(y==="up"||y==="down"?u||0:R||0)};_.i5=function(R,y,u,v,Q,M){Q=Q===void 0?new Vx:Q;M=M===void 0?_.kX():M;JH.call(this,y,M,v);var K=this;this.element=R;this.target=y;this.config=u;this.input=Q;this.manager=M;this.events=["panstart","panmove","panend"];this.onPanStart=function(){K.config.draggingClass&&K.element.classList.add(K.config.draggingClass);K.config.startAction&&K.config.startAction()};
this.onPanMove=function(h){var b=pD8(K,h);if(b){K.move(h,b);b.fade&&K.fade(h,b);var N=K.input.direction(h);b.moveAction&&b.moveAction(ts7(K,h,b),N)}};
this.onPanEnd=function(h){var b,N,T,x,B,l;return _.I(function(Z){if(Z.nextAddress==1){K.animationRequestId&&cancelAnimationFrame(K.animationRequestId);K.animationRequestId=void 0;b=pD8(K,h);if(!b)return Z.return();N=b;T=N.triggerAction;x=N.fade;B=N.disableFinish;l=N.translateBack;var P=K.input.velocity(h),k=K.input.distance(h),E=K.threshold(b);return P>.3&&k>10||k>E?B?Z.jumpTo(6):x?Z.yield(cEa(K,h),6):Z.yield(ama(K,h,b),6):l?Z.yield(K.translateBack(h),3):Z.jumpTo(3)}Z.nextAddress!=3&&T&&T();K.config.draggingClass&&
K.element.classList.remove(K.config.draggingClass);K.reset();_.f$(Z)})};
R=Object.keys(u.triggers);this.directions=new Set(R);DXM(this.input,this.directions.has("right")||this.directions.has("left"))};
_.O(_.i5,JH);_.i5.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var pD8=function(R,y){y=R.input.direction(y);return R.config.triggers[y]};
_.i5.prototype.move=function(R,y){var u=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var v=u.input.axis(R),Q=u.input.position(R,u.config.startPosition,y.endPosition,y.moveRatio||1);u.element.style.transform="translate"+v+"("+Q+"px)";u.animationRequestId=void 0}))};
var ts7=function(R,y,u){var v=u.moveRatio||1;u=Math.abs(R.config.startPosition-u.endPosition);return Math.min(R.input.distance(y)*v,u)/u};
_.i5.prototype.fade=function(R,y){var u=y.endOpacity;R=ts7(this,R,y);R>0&&(this.element.style.opacity=""+(((u||0)-1)*R+1))};
_.i5.prototype.threshold=function(R){return R.threshold?R.threshold:Math.abs(R.endPosition-this.config.startPosition)/3};
var ama=function(R,y,u){var v,Q,M,K,h,b,N;return _.I(function(T){if(T.nextAddress==1)return v=R.input.delta(y)+R.config.startPosition,Q=R.input.axis(y),M=u,K=M.endPosition,h=M.transitionEndPosition,N=(b=h)!=null?b:K,T.yield(R.element.animate([{transform:"translate"+Q+"("+v+"px)"},{transform:"translate"+Q+"("+N+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);R.element.style.transform="translate"+Q+"("+N+"px)";_.f$(T)})};
_.i5.prototype.translateBack=function(R){var y=this,u,v;return _.I(function(Q){if(Q.nextAddress==1){if(!y.element.style.transform)return Q.return();u=y.input.axis(R);v=y.config.startPosition;return Q.yield(y.element.animate([{transform:y.element.style.transform},{transform:"translate"+u+"("+v+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}y.element.style.transform="translate"+u+"("+v+"px)";_.f$(Q)})};
var cEa=function(R,y){var u,v,Q,M;return _.I(function(K){if(K.nextAddress==1)return u=R.input.delta(y)+R.config.startPosition,v=R.input.axis(y),Q=u+70,M=R.element.style.opacity===""?1:R.element.style.opacity,K.yield(R.element.animate([{transform:"translate"+v+"("+u+"px)",opacity:M},{transform:"translate"+v+"("+Q+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);R.element.style.transform="translate"+v+"("+Q+"px)";R.element.style.opacity="0";_.f$(K)})};var Ka=function(){var R=_.HN.apply(this,arguments)||this;R._noAccessors=!0;R.scrollRate=3;R.autoScrollAnimationStart=0;R.autoScrollPaused=!1;R.autoScrollRafId=0;return R};
_.O(Ka,_.HN);_.J=Ka.prototype;_.J.created=function(){var R=this;this.boundAutoScrollHandler=function(y){R.autoScroll(y)}};
_.J.detached=function(){this.hostElement.removeEventListener("mouseout",_.BN(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.BN(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.BN(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.J.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.BN(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.BN(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.BN(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.BN(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.BN(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.BN(this,this.endAutoScroll)),this.endAutoScroll())};
_.J.autoScroll=function(R){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=R);var y;if(y=!this.autoScrollPaused&&this.scrollTarget)y=this.scrollTarget,y=y.scrollHeight-y.scrollTop!==y.clientHeight;y&&(y=1E3/this.scrollRate,R-=this.autoScrollAnimationStart,R>y&&(this.scrollTarget.scrollTop+=Math.ceil(R/y),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.J.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.J.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
Ka.prototype.autoScrollEnabledChanged=Ka.prototype.autoScrollEnabledChanged;_.A([_.r(),_.p("design:type",Object)],Ka.prototype,"scrollRate",void 0);_.A([_.r(),_.p("design:type",Object)],Ka.prototype,"scrollTarget",void 0);_.A([_.r(),_.p("design:type",Boolean)],Ka.prototype,"autoScrollEnabled",void 0);_.A([_.e0("autoScrollEnabled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ka.prototype,"autoScrollEnabledChanged",null);_.A([_.nu()],Ka);_.S2a=[Ka.prototype];var Y2g;var Il=function(){var R=_.W.apply(this,arguments)||this;R.buttonUpdate=_.f("web_button_rework");R.dismissButtonOverrides=_.f("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};
_.O(Il,_.W);_.J=Il.prototype;_.J.computeUrlImg=function(R){if(R)return _.Fj(R.thumbnails)};
_.J.getLogoHeight=function(R){return this.logoWithPadding(R)?"31":"24"};
_.J.getLogoClassName=function(R){return this.logoWithPadding(R)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.J.logoWithPadding=function(R){var y,u;return(R=(y=R.thumbnails)==null?void 0:(u=y[0])==null?void 0:u.height)&&R%31===0?!0:!1};
_.J.sendImpressionEndpoints=function(R){R.impressionEndpoints&&_.Fh(this.hostElement,R.impressionEndpoints)};
_.J.observeBasicPalette=function(){var R,y,u=(R=this.data)==null?void 0:(y=R.colorData)==null?void 0:y.basicColorPaletteData;u?_.mx(this.hostElement,u):_.mx(this.hostElement,{})};
_.J.observeDataChanged=function(){var R;this.dynamicTextHeight=((R=this.data)==null?0:R.supplementalText)?74:94;var y;this.hasSupplementalText=!((y=this.data)==null||!y.supplementalText);if(_.f("web_button_rework")){var u,v,Q,M;R=(u=this.data)==null?void 0:(v=u.actionButton)==null?void 0:(Q=v.buttonRenderer)==null?void 0:(M=Q.colorData)==null?void 0:M.basicColorPaletteData;var K,h,b;if(!((K=this.data)==null?0:(h=K.actionButton)==null?0:(b=h.buttonRenderer)==null?0:b.style)&&R){this.computeIsInfeedModernization(this.data)||
(R.borderColor=R.foregroundTitleColor);var N,T;this.set("data.actionButton.buttonRenderer",_.Ps.unsafeClone((N=this.data)==null?void 0:(T=N.actionButton)==null?void 0:T.buttonRenderer))}}};
_.J.observeDataForCounterfactual=function(){if(_.f("kevlar_banner_cf_extra_logging")){var R;((R=this.data)==null?0:R.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.J.computeSupplementalStyle=function(){var R;if((R=this.data)!=null&&R.supplementalText){var y,u,v;if((y=this.data)==null?0:(u=y.colorData)==null?0:(v=u.basicColorPaletteData)==null?0:v.foregroundActivatedColor)return R=_.aH(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;"}};
_.J.computeForcedDarkTheme=function(){var R,y,u,v=(R=this.data)==null?void 0:(y=R.actionButton)==null?void 0:(u=y.buttonRenderer)==null?void 0:u.style,Q,M,K;R=ImV(((Q=this.data)==null?void 0:(M=Q.colorData)==null?void 0:(K=M.basicColorPaletteData)==null?void 0:K.backgroundColor)||0);return v&&R};
_.J.computeForcedLightTheme=function(){var R,y,u,v=(R=this.data)==null?void 0:(y=R.actionButton)==null?void 0:(u=y.buttonRenderer)==null?void 0:u.style,Q,M,K;R=!ImV(((Q=this.data)==null?void 0:(M=Q.colorData)==null?void 0:(K=M.basicColorPaletteData)==null?void 0:K.backgroundColor)||0);return v&&R};
_.J.computeHasOverflowButton=function(R){return!!R.overflowButton};
_.J.computeHasTitle=function(R){return!!R.title};
_.J.computeTitleMaxFontSize=function(R){return this.computeHasOverflowButton(R)?28:64};
_.J.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.J.computeIsInfeedModernization=function(){var R,y,u,v,Q=(R=this.data)==null?void 0:(y=R.actionButton)==null?void 0:(u=y.buttonRenderer)==null?void 0:(v=u.colorData)==null?void 0:v.basicColorPaletteData;return(Q==null?void 0:Q.backgroundColor)===452984831||(Q==null?void 0:Q.backgroundColor)===218103808};
Il.prototype.observeDataForCounterfactual=Il.prototype.observeDataForCounterfactual;Il.prototype.observeDataChanged=Il.prototype.observeDataChanged;Il.prototype.observeBasicPalette=Il.prototype.observeBasicPalette;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Il.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.c4),_.p("design:type",Object)],Il.prototype,"ytdDismissibleItemBehavior",void 0);
_.A([_.n(_.L6.YtdGuideStateAwareBehavior),_.p("design:type",Object)],Il.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Il.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Il.prototype,"buttonUpdate",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Il.prototype,"hasSupplementalText",void 0);_.A([_.r(),_.p("design:type",Object)],Il.prototype,"dismissButtonOverrides",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.p("design:type",Boolean)],Il.prototype,"hasTitle",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.p("design:type",Object)],Il.prototype,"forceDarkTheme",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.p("design:type",Object)],Il.prototype,"forceLightTheme",void 0);_.A([_.r(),_.p("design:type",Object)],Il.prototype,"dynamicTextHeight",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.p("design:type",Object)],Il.prototype,"hasOverflowButton",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.p("design:type",Object)],Il.prototype,"isInfeedModernization",void 0);_.A([_.e0("data.colorData.basicColorPaletteData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Il.prototype,"observeBasicPalette",null);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Il.prototype,"observeDataChanged",null);_.A([_.e0("data.isVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Il.prototype,"observeDataForCounterfactual",null);_.A([_.q({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],Il);
_.m(Il,"ytd-banner-promo-renderer",function(){if(Y2g!==void 0)return Y2g;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Y2g=R},{mode:1});var LZa;var s9P;var zyo;var hH=function(){return _.W.apply(this,arguments)||this};
_.O(hH,_.W);_.A([_.r(),_.p("design:type",Object)],hH.prototype,"data",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],hH.prototype,"ytRendererBehavior",void 0);_.A([_.q({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],hH);
_.m(hH,"ytd-hashtag-grid-tile-renderer",function(){if(zyo!==void 0)return zyo;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return zyo=R},{mode:1});var b5=function(){return _.W.apply(this,arguments)||this};
_.O(b5,_.W);b5.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
b5.prototype.updateRichGridTrendingHashtagsVisibility=function(){var R,y;if(((R=this.data)==null||!R.isExpanded)&&(y=this.data)!=null&&y.tiles){R=this.data.tiles.length;y=R>this.richGridItemsPerRow?this.richGridItemsPerRow+1:R;var u=Math.ceil(R/y);this.fullyVisibleRows=R%y===1&&u===2?1:Math.min(u,2);this.isShowMoreVisible=this.fullyVisibleRows<u}};
b5.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
b5.prototype.updateRichGridTrendingHashtagsVisibility=b5.prototype.updateRichGridTrendingHashtagsVisibility;_.A([_.r(),_.p("design:type",Object)],b5.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Number)],b5.prototype,"fullyVisibleRows",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],b5.prototype,"isShowMoreVisible",void 0);_.A([_.r({selector:_.qq,value:0}),_.p("design:type",Number)],b5.prototype,"richGridItemsPerRow",void 0);
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],b5.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],b5.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],b5.prototype,"ytdReduxBehavior",void 0);_.A([_.e0("data","richGridItemsPerRow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],b5.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.A([_.q({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],b5);
_.m(b5,"ytd-hashtag-grid-shelf-renderer",function(){if(s9P!==void 0)return s9P;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return s9P=R},{mode:1});var gVp;var CUM;var F7=function(){var R=_.W.apply(this,arguments)||this;R.visibleVideos=[];R.hiddenVideos=[];R.modern=_.f("web_modern_buttons");R.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return R};
_.O(F7,_.W);_.J=F7.prototype;_.J.attached=function(){var R=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",R);this.onDarkModeToggledAction(R)};
_.J.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"}}}};
_.J.dataChanged=function(){var R=this;this.requestElementsPerRow();var y,u;this.currentColorPalette=this.isDarkTheme?(y=this.data)==null?void 0:y.darkColorData:(u=this.data)==null?void 0:u.lightColorData;var v;if((v=this.currentColorPalette)==null?0:v.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.gn(this,function(){R.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.J.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.J.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.J.computeIsFirstFeedItem=function(R){return R};
_.J.onDarkModeToggledAction=function(R){R!==this.isDarkTheme&&this.set("isDarkTheme",R);this.data&&(this.currentColorPalette=R?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.J.getCurrentLogo=function(R,y){if(R)return y?R.darkLogoImage:R.lightLogoImage};
_.J.computeTitleStyle=function(R){var y;if((y=this.data)!=null&&y.title&&R&&R.textPrimary!==void 0)return"color:"+_.aH(R.textPrimary)+";"};
_.J.computeSubtitleStyle=function(R){var y;if((y=this.data)!=null&&y.subtitle&&R&&R.textSecondary!==void 0)return"color:"+_.aH(R.textSecondary)+";"};
_.J.computeDismissIconStyle=function(R){if(this.data&&this.data.dismissButton&&R&&R.textPrimary!==void 0)return"--yt-button-color:"+_.aH(R.textPrimary)+";"};
_.J.computeOverflowButtonStyle=function(R){if(this.data&&this.data.overflowButton&&R&&R.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.aH(R.textPrimary)+";--yt-spec-icon-active-other:"+_.aH(R.textPrimary)+";"};
_.J.computeBackgroundStyle=function(R){if(R&&this.data){var y="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var u=_.Fj((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);u&&(y+='background-image:url("'+u+'");')}R.backgroundColor!==void 0&&(y+="background-color:"+_.Sq(R.backgroundColor)+";");return y}};
_.J.computeButton=function(){var R,y=Object.assign({},_.e((R=this.data)==null?void 0:R.showMoreButton,_.aG));if(this.modern&&y){y.style="STYLE_MONO_OUTLINE";var u;if(R=(u=this.currentColorPalette)==null?void 0:u.textPrimary)y.colorData={basicColorPaletteData:{foregroundTitleColor:R,borderColor:R}}}return y};
_.J.shouldShowBottomButton=function(R,y){return!(R==null?0:R.header)&&!(R==null||!R.primaryButton)&&y<3};
_.J.checkExpanded=function(R){this.isExpanded=R&&R.content?this.hiddenVideos.length===0:!0};
_.J.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.J.getLogoHeight=function(R){return this.logoWithPadding(R)?"26":"20"};
_.J.getLogoImageId=function(R){return this.logoWithPadding(R)?"logo-image-with-padding":"logo-image"};
_.J.computeHasSectionHeader=function(R){return!!R.header};
_.J.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 y;((y=this.data.dismissButton)==null?0:y.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var u,v;((u=this.data)==null?0:(v=u.primaryButton)==null?0:v.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.J.setVisibleVideos=function(R){if(this.data&&this.data.content)if(this.data.content.length){var y=this.data.content.length;this.data.header?R?(this.visibleVideos=this.data.content.slice(0,Math.min(y,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(y,this.slimItemsPerRow),y)):(this.visibleVideos=this.data.content.slice(0,Math.min(y,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(y,this.elementsPerRow),y)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(y,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(y,this.elementsPerRow),y)):(this.visibleVideos=this.data.content.slice(0,Math.min(y,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(y,this.elementsPerRow-1),y))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.J.setHasMovieRenderer=function(){var R;if((R=this.data)!=null&&R.content){var y;this.hasMovieRenderer=!!_.e((y=this.data)==null?void 0:y.content[0],_.oRY)}else this.hasMovieRenderer=!1};
_.J.requestElementsPerRow=function(){_.Ko(this.hostElement,"yt-request-elements-per-row")};
_.J.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var R=_.V(this.hiddenMediaRenderers),y=R.next();!y.done;y=R.next())y.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(R=_.hw(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&R.focus()}};
_.J.updateTitleSpec=function(){var R;(R=this.data)!=null&&R.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.J.logoWithPadding=function(R){var y,u,v;return(R=(y=this.getCurrentLogo(R,this.isDarkTheme))==null?void 0:(u=y.thumbnails)==null?void 0:(v=u[0])==null?void 0:v.height)&&R%31===0?!0:!1};
_.J.onUpdateElementsPerRowAction=function(R,y,u){R&&this.elementsPerRow!==R&&(this.elementsPerRow=R);u&&this.slimItemsPerRow!==u&&(this.slimItemsPerRow=u)};
F7.prototype.slimItemsPerRowChanged=F7.prototype.slimItemsPerRowChanged;F7.prototype.elementsPerRowChanged=F7.prototype.elementsPerRowChanged;F7.prototype.dataChanged=F7.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],F7.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],F7.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.c4),_.p("design:type",Object)],F7.prototype,"ytdDismissibleItemBehavior",void 0);
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],F7.prototype,"actionHandlerBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],F7.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],F7.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],F7.prototype,"currentColorPalette",void 0);_.A([_.r(),_.p("design:type",Array)],F7.prototype,"visibleVideos",void 0);_.A([_.r(),_.p("design:type",Array)],F7.prototype,"hiddenVideos",void 0);
_.A([_.r(),_.p("design:type",Object)],F7.prototype,"primaryButton",void 0);_.A([_.r({reflectToAttribute:!0,value:3}),_.p("design:type",Number)],F7.prototype,"elementsPerRow",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],F7.prototype,"isDarkTheme",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],F7.prototype,"isExpanded",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],F7.prototype,"largeTitle",void 0);
_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],F7.prototype,"hasMovieRenderer",void 0);_.A([_.r(),_.p("design:type",Number)],F7.prototype,"slimItemsPerRow",void 0);_.A([_.r(),_.p("design:type",Boolean)],F7.prototype,"showLightVideoMetadata",void 0);_.A([_.r(),_.p("design:type",Boolean)],F7.prototype,"showDarkVideoMetadata",void 0);_.A([_.r(),_.p("design:type",Number)],F7.prototype,"videoMetadataColor",void 0);
_.A([_.r({reflectToAttribute:!0,selector:_.$s}),_.p("design:type",Boolean)],F7.prototype,"miniMode",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.p("design:type",Boolean)],F7.prototype,"isFirstFeedItem",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.p("design:type",Boolean)],F7.prototype,"hasSectionHeader",void 0);
_.A([_.r({reflectToAttribute:!0,value:!0}),_.p("design:type",Boolean)],F7.prototype,"roundedContainer",void 0);_.A([_.ZV("#visible-video-container ytd-rich-grid-media"),_.p("design:type",Array)],F7.prototype,"visibleMediaRenderers",void 0);_.A([_.ZV("#hidden-video-container ytd-rich-grid-media"),_.p("design:type",Array)],F7.prototype,"hiddenMediaRenderers",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],F7.prototype,"modern",void 0);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],F7.prototype,"dataChanged",null);_.A([_.e0("elementsPerRow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],F7.prototype,"elementsPerRowChanged",null);_.A([_.e0("slimItemsPerRow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],F7.prototype,"slimItemsPerRowChanged",null);
_.A([_.q({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],F7);
_.m(F7,"ytd-brand-video-shelf-renderer",function(){if(CUM!==void 0)return CUM;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return CUM=R},{mode:1});var RGK;var we=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return R};
_.O(we,_.W);_.J=we.prototype;_.J.attached=function(){var R=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",R);this.onDarkModeToggledAction(R)};
_.J.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"}}}};
_.J.dataChanged=function(){this.requestElementsPerRow();var R,y;this.currentColorPalette=this.isDarkTheme?(R=this.data)==null?void 0:R.darkColorData:(y=this.data)==null?void 0:y.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.J.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.J.computeIsFirstFeedItem=function(R){return R};
_.J.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())};
_.J.shouldShowThumbnailInMetadata=function(R){return R<=1};
_.J.computeVideoMetadataColor=function(){if(this.data){var R;if((R=this.currentColorPalette)==null?0:R.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.J.computeTitleStyle=function(R){var y;if((y=this.data)!=null&&y.title&&R&&R.textPrimary!==void 0)return"color:"+_.aH(R.textPrimary)+";"};
_.J.computeSubtitleStyle=function(R){var y;if((y=this.data)!=null&&y.subtitle&&R&&R.textSecondary!==void 0)return"color:"+_.aH(R.textSecondary)+";"};
_.J.computeOverflowButtonStyle=function(R){if(this.data&&this.data.overflowButton&&R.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.aH(R.textPrimary)+";--yt-spec-icon-active-other:"+_.aH(R.textPrimary)+";"};
_.J.computeBackgroundStyle=function(R){if(R&&this.data){var y="";R.backgroundColor!==void 0&&(y+="background-color:"+_.Sq(R.backgroundColor)+";");return y}};
_.J.computeHasOverflowButton=function(R){return!!R.overflowButton};
_.J.updateButtonPalette=function(){if(this.data){var R;if((R=this.data.primaryButton)==null?0:R.buttonRenderer){var y;if((y=this.currentColorPalette)==null?0:y.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var u;((u=this.currentColorPalette)==null?0:u.primaryButtonStyleType)?(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0):this.data.primaryButton.buttonRenderer.style="STYLE_MONO_TONAL"}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}}};
_.J.requestElementsPerRow=function(){_.Ko(this.hostElement,"yt-request-elements-per-row")};
_.J.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")};
_.J.onUpdateElementsPerRowAction=function(R){R&&this.elementsPerRow!==R&&(this.elementsPerRow=R)};
we.prototype.elementsPerRowChanged=we.prototype.elementsPerRowChanged;we.prototype.dataChanged=we.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],we.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],we.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.c4),_.p("design:type",Object)],we.prototype,"ytdDismissibleItemBehavior",void 0);
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],we.prototype,"actionHandlerBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],we.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],we.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],we.prototype,"currentColorPalette",void 0);_.A([_.r(),_.p("design:type",Object)],we.prototype,"primaryButton",void 0);
_.A([_.r({reflectToAttribute:!0,value:3}),_.p("design:type",Number)],we.prototype,"elementsPerRow",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],we.prototype,"isDarkTheme",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],we.prototype,"titleSize",void 0);_.A([_.r(),_.p("design:type",Number)],we.prototype,"videoMetadataColor",void 0);_.A([_.r({reflectToAttribute:!0,selector:_.$s}),_.p("design:type",Boolean)],we.prototype,"miniMode",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.p("design:type",Boolean)],we.prototype,"isFirstFeedItem",void 0);_.A([_.r({reflectToAttribute:!0,value:!0}),_.p("design:type",Boolean)],we.prototype,"roundedContainer",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.p("design:type",Boolean)],we.prototype,"hasOverflowButton",void 0);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],we.prototype,"dataChanged",null);_.A([_.e0("elementsPerRow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],we.prototype,"elementsPerRowChanged",null);_.A([_.q({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],we);
_.m(we,"ytd-brand-video-singleton-renderer",function(){if(RGK!==void 0)return RGK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return RGK=R},{mode:_.TN("kevlar_poly_si_batch_j070")?1:2});var yHa;var u7Z=_.Jd(function(R){var y=R.data;return _.F(_.MR,{data:function(){return y().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(y().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var u=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":u=88;break a;default:u=88}return u},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return y().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Xi"),Qlm=_.Jd(function(R){var y=R.metadataRow;
var u=R.delimiter;return _.F(_.eS,{each:function(){return y().textParts||[]},
keyBy:"INDEX"},function(v,Q){return _.F(_.vu,null,_.F(_.QM,{text:v,noWrap:!0,userInput:!0}),_.F(vA8,{delimiter:u,max:function(){return y().textParts.length},
index:Q}))})},"Yi"),vA8=_.Jd(function(R){var y=R.delimiter;
var u=R.max;var v=R.index;return _.F(_.w,{cond:function(){return(y==null?void 0:y())&&u()-1>v()},
then:function(){return _.F("span",null,y)}})},"Zi"),jlZ=_.Jd(function(R){var y=R.data;
R={};return _.F("yt-profile-page-header-information-view-model",{class:_.Oy("profile-page-header-information-view-model-wiz",(R["profile-page-header-information-view-model-wiz--mobile"]=!1,R))},_.F(_.w,{cond:function(){return y().onTap},
then:function(){return _.F(_.zw,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.Sb(y().onTap)}},_.F(_.mk,{data:function(){return y().thumbnail}},{profilePageHeaderThumbnailViewModel:u7Z}))},
else:function(){return _.F("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.F(_.mk,{data:function(){return y().thumbnail}},{profilePageHeaderThumbnailViewModel:u7Z}))}}),_.F("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.F(_.w,{cond:function(){return y().onTap},
then:function(){return _.F(_.mk,{data:function(){return y().title}},{profilePageHeaderTitleViewModel:function(u){var v=u.data;
return _.F(_.zw,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.Sb(v().onTap)}},_.F(_.QM,{text:function(){return v().title}}))}})},
else:function(){return _.F(_.mk,{data:function(){return y().title}},{profilePageHeaderTitleViewModel:function(u){var v=u.data;
return _.F(_.QM,{text:function(){return v().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.F(_.mk,{data:function(){return y().metadata}},{profilePageHeaderMetadataViewModel:function(u){var v=u.data;
return _.F(_.w,{cond:function(){return v().metadataRows},
then:function(Q){return _.F("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.F(_.eS,{each:Q,keyBy:"INDEX"},function(M,K){return _.F(_.vu,null,_.F(Qlm,{metadataRow:M,delimiter:" \u2022 "}),_.F(vA8,{delimiter:" \u2022 ",max:function(){return Q().length},
index:K}))}))}})}})))},"$i");
jlZ.idomCompat=!0;_.h6(jlZ,"yt-profile-page-header-information-view-model",{props:{data:_.vR}});var Nb=function(){return _.W.apply(this,arguments)||this};
_.O(Nb,_.W);Nb.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Nb.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Nb.prototype,"data",void 0);_.A([_.q({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],Nb);
_.m(Nb,"ytd-effect-pivot-header-view-model",function(){if(yHa!==void 0)return yHa;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return yHa=
R},{mode:1});var MNV;var To=function(){return _.W.apply(this,arguments)||this};
_.O(To,_.W);To.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],To.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],To.prototype,"data",void 0);_.A([_.q({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],To);
_.m(To,"ytd-source-pivot-header-renderer",function(){if(MNV!==void 0)return MNV;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return MNV=R},{mode:1});_.JHa=_.Jd(function(R){var y=R.data;var u=function(){var v;return _.So((v=y())==null?void 0:v.rendererContext)};
R={};return _.F("content-list-item-view-model",{el:_.VX(_.Y9(function(){return y().rendererContext})),
class:_.Oy("ytContentListItemViewModelHost",(R.ytContentListItemViewModelTappable=u,R)),role:function(){return u()?"listitem":void 0},
tabindex:function(){return u()?0:void 0}},_.F("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.F("div",{class:"ytContentListItemViewModelImageContainer"},_.F(_.w,{cond:function(){return y().image},
then:function(v){return _.F(_.MR,{data:v,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.F(_.mk,{data:function(){var v;
return(v=y())==null?void 0:v.avatar}},{avatarViewModel:_.XS})),_.F("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.F("div",{class:_.Oy("ytContentListItemViewModelTitle",function(){a:{switch(y().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var v="ytContentListItemViewModelProminentTitle";
break a}v=void 0}return v})},_.F(_.QM,{text:function(){return y().title}})),_.F("div",{class:"ytContentListItemViewModelMetadata"},_.F(_.mk,{data:function(){return y().metadata}},{contentMetadataViewModel:function(v){return _.F(_.Fx,{data:v.data,
layout:1})}})))),_.F("div",{class:"ytContentListItemViewModelActionButton"},_.F(_.mk,{data:function(){var v;
return(v=y())==null?void 0:v.actionButton}},{buttonViewModel:_.fQ,
toggleButtonViewModel:_.$1})))},"aj");_.h6(_.Jd(function(R){var y=function(){return R.data().background},u=function(){return R.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},v=function(){return R.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"};
return _.F("yt-card-view-model",{class:_.Oy("ytCardViewModelHost",R.className)},_.F(_.wb,{contentId:function(){return R.data().contentId}},function(){return _.F("div",{class:_.Oy("ytCardViewModelCardViewModelInner",function(){return xXP(R.data().cardStyle)})},_.F(_.mk,{data:y},{cinematicContainerViewModel:function(Q){return _.F(_.nAT,{data:Q.data})}}),_.F("div",{class:"ytCardViewModelContentWrapper"},_.F(_.w,{cond:function(){return!u()},
then:function(){var Q={};return _.F("div",{class:"ytCardViewModelTopContent"},_.F(_.mk,{data:function(){return R.data().topContent}},{contentListItemViewModel:function(M){return _.F(_.JHa,{data:M.data})}}),_.F("div",{class:_.Oy("ytCardViewModelInlineTrailingAction",(Q.ytCardViewModelInlineCenterTrailingAction=v,Q))},_.F(_.mk,{data:function(){return R.data().trailingAction}},{buttonViewModel:function(M){return _.F(_.fQ,{data:M.data})}})))}}),_.F("div",{class:"ytCardViewModelBodyContent"},_.F(_.mk,
{data:function(){return R.data().bodyContent}},{contentListItemViewModel:function(Q){return _.F(_.JHa,{data:Q.data})}}))),_.F(_.w,{cond:function(){return u()},
then:function(){return _.F("div",{class:"ytCardViewModelOverlayTrailingAction"},_.F(_.mk,{data:function(){return R.data().trailingAction}},{buttonViewModel:function(Q){return _.F(_.fQ,{data:Q.data})}}))}}))}))},"bj"),"yt-card-view-model",{props:{data:_.vR,
className:_.vR}});_.h6(_.Jd(function(R){var y=function(){return _.e(R.data().flowRoot,UXH)};
_.rB(function(){var u=y(),v=function(){},Q=function(){};
if(u){var M,K,h,b=((h=_.e((M=y())==null?void 0:(K=M.steps)==null?void 0:K[0],_.YL8))==null?void 0:h.stepId)||"";lmK(u,b);v=Z0m(u);Q=H0I(u)}_.GF(function(){var N=y();N&&_.Qe().dispatch(_.Gw("flowStateEntity",N.flowStateEntityKey));v();v=function(){};
Q();Q=function(){}})});
return _.F("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.F(_.wb,{contentId:function(){return R.data().contentId}},function(){return _.F("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.F(_.w,{cond:y,
then:function(u){return _.F(_.azP,{data:u})}}))}))},"cj"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.vR}});_.h6(_.Jd(function(){return _.F("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.F("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.F("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.F(_.dSZ,null)),_.F(_.m9T,{data:{rows:1},isExploreHub:!0}))},"dj"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.h6(_.Jd(function(R){var y=R.data;var u=R.standardUnitMinWidth;R=_.V((0,_.tng)(y));var v=R.next().value,Q=R.next().value,M=function(){var h,b=(h=v())==null?void 0:h.contents;return b==null||b.length===0},K=function(){Q(Object.assign({},v(),{contents:[]}))};
return _.F("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.VX(_.vA({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var h=_.e(y().chipsShelf,EVa);if(h!=null&&h!=null&&h.autoselectChipOnVisible){var b,N,T=_.e(h==null?void 0:(b=h.contents)==null?void 0:b[(N=h.autoselectedChipIndex)!=null?N:0],_.sc);T&&T.tapCommand&&_.zN(T.tapCommand)}}}))},_.F(_.wb,{contentId:function(){return y().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.F("div",null,_.F("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.F(_.mk,{data:function(){return y().header}},{sectionHeaderViewModel:function(h){return _.F(_.f5,{data:h.data,
disableHorizontalPadding:!0})}})),_.F("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.F(_.mk,{data:function(){return y().chipsShelf}},{chipsShelfViewModel:function(h){return _.F(_.LZ5,{data:h.data,
callback:K,enableSingleChipSelection:!0})}})),_.F("div",null,_.F(_.w,{cond:M,
then:function(){return _.F("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.F(_.m9T,{data:{rows:1},isExploreHub:!0}))}}),_.F(_.mk,{data:function(){var h;
return(h=v())==null?void 0:h.contents}},{richShelfRenderer:function(h){return _.F(_.Stc,{data:h.data,
isInnerShelf:!0,standardUnitMinWidth:u})}})))}))},"ej"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.vR,
standardUnitMinWidth:_.vR}});var ol=function(){return _.W.apply(this,arguments)||this};
_.O(ol,_.W);
ol.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}}};
ol.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.A([_.n(_.p6),_.p("design:type",Object)],ol.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],ol.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.gb),_.p("design:type",Object)],ol.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ol.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ol.prototype,"data",void 0);
_.A([_.r(),_.p("design:type",Number)],ol.prototype,"standardUnitMinWidth",void 0);_.A([_.q({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],ol);
_.m(ol,"ytd-rich-section-renderer",function(){if(gVp!==void 0)return gVp;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return gVp=R},{mode:_.TN("kevlar_poly_si_batch_j029")?
1:2});_.h6(_.hum,"yt-profile-identity-info-view-model",{props:{data:_.vR,hideDivider:_.vR,isChannelInfoCard:_.vR}});_.h6(_.EAb,"yt-page-header-view-model",{props:{data:_.vR,noPadding:_.vR,enableBanner:_.vR,cinematicContainerTopbarOffset:_.vR,allowCinematicContainerOverflow:_.vR,displayAsSidebar:_.vR,displayAsPanel:_.vR,alwaysUseMediumTextMetadata:_.vR}});_.h6(_.Jd(function(R){var y=R.data;var u=function(){var Q;return(Q=y().numColumns)!=null?Q:2},v=function(){return u()>1?3:2};
R={};return _.F("ytd-rich-grid-group",{class:_.Oy("ytdRichGridGroupHost",(R.ytdRichGridGroupHostFirstColumn=function(){return y().colIndex===0},R)),
style:_.P_({"--ytd-rich-grid-group-num-columns":u,"--ytd-rich-grid-items-per-group":v})},_.F("div",{class:"ytdRichGridGroupContents"},_.F(_.mk,{data:function(){var Q;return(Q=y().contents)==null?void 0:Q.slice(0,v())}},{richItemRenderer:function(Q){return _.F(_.c$Y,{data:Q.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"fj"),"ytd-rich-grid-group",{props:{data:_.vR}});var xA=function(){var R=_.W.apply(this,arguments)||this;R.resizeOnObserverInit=!1;R.isInlinePreviewDisabled=_.f("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=_.f("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(y){var u=_.V(y);y=u.next().value;u=u.next().value;return[y,u.component]}));
R.insertedContent=new Map;return R};
_.O(xA,_.W);_.J=xA.prototype;_.J.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var R=_.V(_.hw(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),y=R.next();!y.done;y=R.next())y.value.useCompactList=this.useCompactList};
_.J.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var R=_.V(_.hw(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),y=R.next();!y.done;y=R.next())y=y.value,y.sizing=this.sizing,y.typographyBump=this.typographyBump};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.J.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]]"}}}};
_.J.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}}};
_.J.attached=function(){document.addEventListener("yt-page-type-changed",_.BN(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$21723_throttledOnResize=new _.v2(this.resizeObserved,_.JT("rich_grid_resize_delay_ms",50),this)};
_.J.detached=function(){var R;(R=this.resizeObserver)==null||R.disconnect();document.removeEventListener("yt-page-type-changed",_.BN(this,this.onPageChange))};
_.J.insertRichSection=function(R){var y=R.richItemTargetId;R=R.richSectionRendererToInsert;y&&R&&(this.insertedContent.set(y,{content:R,timestamp:Date.now()}),this.reflowContent())};
_.J.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.J.computeIsInlinePreviewEnabled=function(R,y,u){return _.f("web_disable_inline_preview")?!1:!u&&_.qLm({miniplayerIsActive:R,miniplayerPlaybackState:y})};
_.J.computeSizing=function(){var R=_.S1T(this.data);if(R||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return R?this.useCompactList?"COMPACT":R:this.miniMode?"COMPACT":_.f("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.J.updateItemMinAndMaxWidth=function(){var R=_.JT("rich_grid_max_item_width",500);R>0&&_.oX(this.hostElement,{"--ytd-rich-grid-item-max-width":R+"px"});var y;R=this.getRichItemMinWidth((y=this.hostElement)==null?void 0:y.clientWidth);R>0&&_.oX(this.hostElement,{"--ytd-rich-grid-item-min-width":R+"px"})};
_.J.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.J.resizeObserved=function(){_.h_(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.J.navigateBackToHome=function(){_.f("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.f("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var R=_.ua().resolve(_.iD).isOnWatch(),y,u=((y=_.OZ(location.pathname))==null?void 0:y.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(u)||R)&&this.gnomeContents&&_.f("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);R&&this.exploreHubContents&&_.f("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.Qe().dispatch(_.iE({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.J.onPageChange=function(){var R=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.f("disable_chip_select_on_nav")||_.h_(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.WG.addJob(function(){R.pageLoadingFromNavigation=!1;_.f("disable_chip_select_on_nav")&&_.f("h5_reset_cache_and_filter_before_update_masthead")&&R.resetCacheAndIsFilteredFeed();R.setMasthead();R.maybeSetBigYoodle();R.forceRefreshAndLog();R.terminateVideoPreview();_.f("web_hide_gnome_until_user_navigates_back_to_home")&&
(R.dataChanged(),_.gn(R,function(){if(R.showGnomeContents){var y=Array.from(_.hw(R.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(v){v=_.hw(v).querySelector("ytd-rich-shelf-renderer");return!!v&&v.isGnomeShelf()});
if(y){y=y.offsetTop-R.contentsElement.offsetTop;var u=_.ua().resolve(_.iD).getCurrentPage();u&&u.getPageScrollingElement().scrollTo({top:y,behavior:"smooth"})}}}));
_.f("web_hide_explore_hub_until_user_navigates_back_to_home")&&(R.dataChanged(),_.gn(R,function(){if(R.showExploreHubContents&&!_.f("web_explore_hub_no_scroll")){var y=Array.from(_.hw(R.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(v){return!!v.querySelector("ytd-talk-to-recs-flow-renderer")});
if(y){y=y.offsetTop-R.contentsElement.offsetTop;var u=_.ua().resolve(_.iD).getCurrentPage();u&&u.getPageScrollingElement().scrollTo({top:y,behavior:"smooth"})}}}))},8)):((_.f("web_hide_gnome_until_user_navigates_back_to_home")||_.f("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.J.dataChanged=function(){var R=this,y=_.JT("web_rich_grid_row_margin",0);y>0&&_.oX(this.hostElement,{"--ytd-rich-grid-row-margin":y+"px"});_.h_(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.gn(this,function(){R.updateRichItemGridPositions();R.contentsElement&&_.oX(R.hostElement,{"--ytd-rich-grid-content-offset-top":R.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.J.initResizeObserver=function(){var R=this;if(window.ResizeObserver){var y;(y=this.resizeObserver)==null||y.disconnect();var u=!1;this.resizeObserver=new ResizeObserver(function(){if(u){var v;(v=R.resizeObserver)==null||v.disconnect();var Q;(Q=R.JSC$21723_throttledOnResize)==null||Q.fire();requestAnimationFrame(function(){var K;(K=R.JSC$21723_throttledOnResize)==null||K.fire();R.initResizeObserver()})}else if(u=!0,R.resizeOnObserverInit){var M;
(M=R.JSC$21723_throttledOnResize)==null||M.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.J.contentLengthChanged=function(){if(_.f("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.h_(this.hostElement,"ytd-rich-item-index-update-action")};
_.J.updateElementsPerRow=function(){_.h_(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.iE({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.iE({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.J.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.J.onRichShelfRendererCollapse=function(R){if(this.shownItems){var y=R.detail;R=this.shownItems.findIndex(function(v){var Q,M;return((M=_.e(v==null?void 0:(Q=v.richSectionRenderer)==null?void 0:Q.content,_.Atc))==null?void 0:M.trackingParams)===y});
var u=R+1;R<0||u>=this.contentsElement.children.length||!this.shownItems[u].richItemRenderer||this.contentsElement.children[u].scrollIntoView({behavior:"smooth",block:"start"})}};
_.J.onSoftReloadPage=function(){this.scrollUpToTop()};
_.J.handleRerenderDownloadsData=function(){_.f("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.J.handlePlaylistRemoveVideosAction=function(R){var y;if(((y=_.e(R,_.jqK))==null?0:y.setVideoIds)&&this.data&&this.data.contents){R=_.e(R,_.jqK).setVideoIds;for(y=this.data.contents.length-1;y>=0;){var u=_.e(this.data.contents[y],_.$W);(u=u&&_.e(u.content,_.ce))&&u.setVideoId&&R.includes(u.setVideoId)&&this.splice("data.contents",y,1);y--}this.updateIndices()}};
_.J.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",_.ye(String(R+1)))};
_.J.hasTopRowInlinePlayableVideoWithEndorsement=function(R){var y;return!((y=R.slice(0,this.getItemsPerRow()))==null||!y.some(function(u){var v;u=_.e(u==null?void 0:(v=u.richItemRenderer)==null?void 0:v.content,_.YW);var Q;return(u==null?void 0:u.inlinePlaybackEndpoint)&&(u==null?void 0:(Q=u.thumbnailOverlays)==null?void 0:Q.some(function(M){return M.thumbnailOverlayEndorsementRenderer}))}))};
_.J.refreshGridLayoutNew=function(R,y,u,v){var Q=v.postsPerRow;var M=v.slimItemsPerRow;var K=v.gameCardsPerRow;v=v.miniGameCardsPerRow;var h;if((h=this.data)==null||!h.contents||!this.containerWidth)return!1;var b;if((b=this.data.responsiveContainerConfiguration)==null?0:b.responsiveSize){var N=_.plU(this.data.responsiveContainerConfiguration,this.containerWidth),T;h=_.Ry(Object.assign({},N,{standardUnitMinWidth:(T=this.data)==null?void 0:T.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&N.isCompactList)}else h=_.Ry({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;T=!1;if(R||this.elementsPerRow!==h.numItems||this.postsPerRow!==Q||this.slimItemsPerRow!==M||this.gameCardsPerRow!==
K||this.miniGameCardsPerRow!==v||this.gutter!==h.gutter)T=this.elementsPerRow!==h.numItems,this.elementsPerRow=h.numItems,this.postsPerRow=Q,this.slimItemsPerRow=M,this.gameCardsPerRow=K,this.miniGameCardsPerRow=v,this.gutter=h.gutter,this.itemWidth=h.itemWidth,this.reflowContent(y),_.oX(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(u);this.ytdReduxBehavior.dispatch(_.iE({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:h.maxContainerWidth}));return T};
_.J.refreshGridLayout=function(R,y){var u,v=(u=this.hostElement)==null?void 0:u.clientWidth;this.containerWidth=this.adjustRichGridWidth(v,!0);var Q;if((Q=this.data)==null||!Q.contents||!this.containerWidth)return R&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.f("rg_pending_reflow_ks")&&(R=!0,this.pendingForceReflow=!1);u=this.getRichItemMinWidth(v);var M=this.isShortsPanel?146:194,K=this.getMiniGameCardMinWidth(),h=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
v=u=this.calcElementsPerRow(u,h);(Q=u<=3&&this.miniModeAllowed())&&(u=this.calcElementsPerRow(240,4));var b=this.calcMaxSlimElementsPerRow(u,h,this.isDefaultGrid);h=this.calcElementsPerRow(M,b);var N=this.calcElementsPerRow(this.isCompactGrid?M:154,b);M=this.calcElementsPerRow(this.isCompactGrid?M:K,b);K=!1;if(this.sizing)return this.refreshGridLayoutNew(R,y,Q,{postsPerRow:v,slimItemsPerRow:h,gameCardsPerRow:N,miniGameCardsPerRow:M});if(R||this.elementsPerRow!==u||this.postsPerRow!==v||this.slimItemsPerRow!==
h||this.gameCardsPerRow!==N||this.miniGameCardsPerRow!==M)K=this.elementsPerRow!==u,this.elementsPerRow=u,this.postsPerRow=v,this.slimItemsPerRow=h,this.gameCardsPerRow=N,this.miniGameCardsPerRow=M,this.reflowContent(y),this.updateElementsPerRow(),_.oX(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)&&_.oX(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(Q);_.h_(this.hostElement,"yt-rich-grid-layout-refreshed");return K};
_.J.getRichItemMinWidth=function(R){var y=_.JT("rich_grid_min_item_width",310);if(!_.f("kevlar_disable_min_width_override")){var u,v;y=(v=(u=this.data)==null?void 0:u.minItemWidth)!=null?v:y}return y+_.mxG(R)};
_.J.calcMaxSlimElementsPerRow=function(R,y,u){return(u===void 0?0:u)?R===1?2:R%2===0?_.f("web_shorts_2_by_3_reduce_items_per_row")&&R>=4?R/2*3-1:R/2*3:_.f("web_shorts_2_by_3_reduce_items_per_row")&&R>=3?R+1:R+2:y*2};
_.J.adjustRichGridWidth=function(R,y){var u=_.f("disable_rich_grid_guide_compensation");if(!this.isWatch&&!u){u=_.ua().resolve(_.yN(_.YC));var v=u==null?void 0:u.guideElement;if(!(!u||u.getData()||v!=null&&v.opened||u.getMiniGuideVisible()))if(u.canFitPersistentGuide(R)&&u.getGuideExpandsAutomatically()){var Q,M,K=Number((Q=window.getComputedStyle(this.hostElement))==null?void 0:(M=Q.getPropertyValue("--app-drawer-width"))==null?void 0:M.replace("px",""));R-=K||0}else if(u.canFitMiniGuide(R)){var h;
Q=Number((K=window.getComputedStyle(this.hostElement))==null?void 0:(h=K.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:h.replace("px",""));R-=Q||0}}R>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(R-=y?32:48));return R};
_.J.calcElementsPerRow=function(R,y){var u=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),v=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((u+v)/(R+v))||1,y)};
_.J.reflowContent=function(R){var y=this;if(!this.isReflowing){this.isReflowing=!0;var u,v,Q=!!((u=this.data)==null?0:(v=u.contents)==null?0:v.some(function(l){return _.e(l,_.Je)}));
u=this.getItemsPerRow();var M;v=(M=this.data)==null?void 0:M.reflowOptions;R&&(_.qQ("rgr_s"),_.gn(this,function(){_.qQ("rgr_nrf")}));
R={};(M=_.hw(this.hostElement).querySelector("#contents"))&&(R={contentElement:M,rendererToTagNameMap:this.rendererToTagNameMap});M=(M=this.data.contents)?M.slice():[];var K=(_.f("web_hide_gnome_behind_feed_filter_chip")||_.f("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,h=_.f("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,b=-1,N=-1;if(this.isHomePage&&h){for(h=0;h<M.length;h++){var T=void 0,x=void 0;_.e((T=M[h])==null?void 0:
(x=T.richSectionRenderer)==null?void 0:x.content,dX7)&&(N=h)}N>-1&&(this.exploreHubContents=M.splice(N,1))}if(this.isHomePage&&K){for(N=0;N<M.length;N++)x=T=void 0,(h=_.e((T=M[N])==null?void 0:(x=T.richSectionRenderer)==null?void 0:x.content,_.Atc))&&K&&(x=T=void 0,h=_.e((T=h)==null?void 0:(x=T.contents)==null?void 0:x[0],_.$W),T=void 0,_.e((T=h)==null?void 0:T.content,_.Axg)&&(b=N));b>-1&&(this.gnomeContents=M.splice(b,1))}var B=wDV(M,u,Q,v,this.getRichGridStyle(),R,this.insertedContent);Q=function(){y.shownItems=
B;y.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(B),_.gn(this,Q)):Q()}};
_.J.getFirstRowItems=function(R){for(var y=[],u=0;u<R.length;u++){var v=void 0,Q=void 0,M=void 0,K=void 0,h=void 0,b=void 0;if(((v=R[u])==null?void 0:(Q=v.richItemRenderer)==null?void 0:Q.rowIndex)===0||((M=R[u])==null?void 0:(K=M.richGroupRenderer)==null?void 0:K.rowIndex)===0||((h=R[u])==null?void 0:(b=h.richSectionRenderer)==null?void 0:b.rowIndex)===0)y.push(R[u]);else break}return y};
_.J.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.J.handleChipCloudChipSelectAction=function(R,y){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.f("web_hide_gnome_behind_feed_filter_chip")&&(y?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.J.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.f("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.J.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.f("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.J.terminateVideoPreview=function(){_.h_(this.hostElement,"yt-terminate-video-preview-action")};
_.J.updateRichItemGridPositions=function(){var R={gridData:{gridColumnCount:this.elementsPerRow}},y;if((y=this.data)==null?0:y.trackingParams)this.loggingRefactor?_.GN().stateChanged(this.data.trackingParams,R):(y=_.$I())&&_.R3(y,_.U4(this.data.trackingParams),R);_.h_(this.hostElement,"ytd-rich-item-index-update-action")};
_.J.miniModeAllowed=function(){return _.f("disable_channels_mini_mode")?!1:this.isChannelPage};
_.J.getMiniGameCardMinWidth=function(){return 154};
_.J.updateMiniMode=function(R){this.miniMode=this.miniModeAllowed()&&R;this.ytdReduxBehavior.dispatch(_.iE({type:"SET_RICH_GRID_MINI_MODE",payload:R}))};
_.J.isCurrentPage=function(){return location.pathname===this.pagePath};
_.J.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var R=_.ua().resolve(_.iD).getCurrentPage();R&&R.setScrollTop(0)}};
_.J.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.J.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.J.maybeSetBigYoodle=function(){var R,y=(R=this.data)==null?void 0:R.bigYoodle;this.bigYoodleData!==y&&(this.bigYoodleData=y)};
_.J.setMasthead=function(){var R;((R=this.data)==null?0:R.masthead)?this.mastheadData=this.data.masthead:_.f("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.J.getRichGridStyle=function(){var R,y;return(y=(R=this.data)==null?void 0:R.style)!=null?y:"RICH_GRID_STYLE_UNKNOWN"};
_.J.onIsShortsGridChange=function(){var R=this.ytdReduxBehavior,y=R.dispatch,u=this.getRichGridStyle();y.call(R,_.iE({type:"SET_RICH_GRID_STYLE",payload:u}))};
_.RR.Object.defineProperties(xA.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=_.ua().resolve(_.iD).getCurrentPage(),y,u,v;return(((y=this.data)==null?void 0:y.targetId)==="browse-feedFEsfv_audio_pivot"||_.f("web_enable_channel_pivot_panel")&&((u=this.data)==null?void 0:u.targetId)==="browse-feedFEsfv_channel_pivot"||_.f("web_enable_effect_pivot_panel")&&((v=this.data)==null?void 0:v.targetId)==="browse-feedFEsfv_effect_pivot")&&(R==null?void 0:R.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.f("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=_.ua().resolve(_.iD).getCurrentPage())==null?void 0:R.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var R;return((R=_.ua().resolve(_.iD).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"&&_.f("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"&&!_.f("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var R,y,u;return((R=this.data)==null?0:R.enableContentSpecificAspectRatio)||((y=this.data)==null?0:(u=y.responsiveContainerConfiguration)==null?0:u.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.JT("web_continuation_handler_margin",0):0}}});
xA.prototype.onIsShortsGridChange=xA.prototype.onIsShortsGridChange;xA.prototype.onReloadContinuationFinish=xA.prototype.onReloadContinuationFinish;xA.prototype.reflowContent=xA.prototype.reflowContent;xA.prototype.handleRerenderDownloadsData=xA.prototype.handleRerenderDownloadsData;xA.prototype.onRichShelfRendererCollapse=xA.prototype.onRichShelfRendererCollapse;xA.prototype.onRequestElementsPerRow=xA.prototype.onRequestElementsPerRow;xA.prototype.contentLengthChanged=xA.prototype.contentLengthChanged;
xA.prototype.dataChanged=xA.prototype.dataChanged;xA.prototype.onSizingChange=xA.prototype.onSizingChange;xA.prototype.onUseCompactListChange=xA.prototype.onUseCompactListChange;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],xA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],xA.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.qv),_.p("design:type",Object)],xA.prototype,"ironResizableBehavior",void 0);
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],xA.prototype,"actionHandlerBehavior",void 0);_.A([_.n(_.gb),_.p("design:type",Object)],xA.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],xA.prototype,"componentBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],xA.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],xA.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0,selector:_.$s}),_.p("design:type",Boolean)],xA.prototype,"miniMode",void 0);_.A([_.r({value:[]}),_.p("design:type",Array)],xA.prototype,"shownItems",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],xA.prototype,"isReflowing",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],xA.prototype,"isFilteredFeed",void 0);_.A([_.r({selector:_.UiP}),_.p("design:type",Boolean)],xA.prototype,"guideIsExpanded",void 0);
_.A([_.r({selectorArgs:["entitySelectorType"],selector:function(R,y){if(_.f("kevlar_modern_downloads_page")&&y&&y!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(y){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":y=R.entities;var u=_.Uq(y),v=_.ks(y),Q=_.zx4(R),M=_.smO(R),K=_.g0U(R),h=_.lXE(y),b=_.nz(u),N=_.Eq(y);return _.EGL(u,v,h,_.n0O(y),Q,M,b,N,K,_.RJL(R),_.Dn(R));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return R=_.Uq(R.entities),_.qgP(R);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return R=
_.BQP(R.entities),_.XlP(R);default:_.kT(new _.OL("Error: entitySelectorType defined but not matched in selector.",R,y))}}}),
_.p("design:type",Object)],xA.prototype,"entityDrivenRichGridData",void 0);_.A([_.r(),_.p("design:type",Object)],xA.prototype,"resizeOnObserverInit",void 0);_.A([_.r(),_.p("design:type",Object)],xA.prototype,"bigYoodleData",void 0);_.A([_.r(),_.p("design:type",Object)],xA.prototype,"mastheadData",void 0);_.A([_.r(),_.p("design:type",Boolean)],xA.prototype,"isInlinePreviewDisabled",void 0);_.A([_.r(),_.p("design:type",Object)],xA.prototype,"disableStickyFilterBar",void 0);
_.A([_.r(),_.p("design:type",Object)],xA.prototype,"transparentBackgroundChipsBar",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],xA.prototype,"hideChipsBar",void 0);_.A([_.r(),_.p("design:type",Object)],xA.prototype,"isWatchDefaultLayout",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],xA.prototype,"continuationShowButton",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],xA.prototype,"rowReducedHorizontalMargin",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],xA.prototype,"useCompactList",void 0);_.A([_.r({selector:function(R){return _.ks(R.entities).length>0}}),
_.p("design:type",Object)],xA.prototype,"manualDownloadsPresent",void 0);_.A([_.r({selector:function(R){return _.Uq(R.entities).length>0}}),
_.p("design:type",Object)],xA.prototype,"smartDownloadsPresent",void 0);_.A([_.r({selector:_.smO}),_.p("design:type",Object)],xA.prototype,"shouldRenderDownloadsBanner",void 0);_.A([_.r({selector:_.zx4}),_.p("design:type",Object)],xA.prototype,"hasOptedIntoSmartDownloads",void 0);_.A([_.e0("useCompactList"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xA.prototype,"onUseCompactListChange",null);
_.A([_.e0("sizing","typographyBump"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xA.prototype,"onSizingChange",null);_.A([_.r({selector:_.XrL}),_.p("design:type",Number)],xA.prototype,"miniplayerPlaybackState",void 0);_.A([_.r({selector:_.X9}),_.p("design:type",Boolean)],xA.prototype,"miniplayerIsActive",void 0);
_.A([_.r({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.p("design:type",Boolean)],xA.prototype,"isInlinePreviewEnabled",void 0);_.A([_.r({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.p("design:type",String)],xA.prototype,"sizing",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],xA.prototype,"elementsPerRow",void 0);
_.A([_.r(),_.p("design:type",Object)],xA.prototype,"typographyBump",void 0);_.A([_.r(),_.p("design:type",Number)],xA.prototype,"itemWidth",void 0);_.A([_.O7("#header"),_.p("design:type",HTMLElement)],xA.prototype,"headerElement",void 0);_.A([_.O7("#contents"),_.p("design:type",HTMLElement)],xA.prototype,"contentsElement",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xA.prototype,"dataChanged",null);
_.A([_.GJ("data.contents.length"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xA.prototype,"contentLengthChanged",null);_.A([_.fu("yt-request-elements-per-row"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xA.prototype,"onRequestElementsPerRow",null);
_.A([_.fu("yt-rich-shelf-renderer-collapse"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],xA.prototype,"onRichShelfRendererCollapse",null);_.A([_.GJ("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xA.prototype,"handleRerenderDownloadsData",null);
_.A([_.G("data"),_.p("design:type",String),_.p("design:paramtypes",[])],xA.prototype,"entitySelectorType",null);_.A([_.r({reflectToAttribute:!0}),_.G("data.targetId"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],xA.prototype,"isSub",null);_.A([_.r({reflectToAttribute:!0}),_.G("data.targetId"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],xA.prototype,"isWatch",null);
_.A([_.r({reflectToAttribute:!0}),_.G("data.targetId"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],xA.prototype,"isShortsPanel",null);_.A([_.r({reflectToAttribute:!0}),_.G("isWatch"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],xA.prototype,"reducedTopMargin",null);_.A([_.r({reflectToAttribute:!0}),_.G("data","isWatch","isWatchDefaultLayout"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],xA.prototype,"noTopMargin",null);
_.A([_.r({reflectToAttribute:!0}),_.G("isInlinePreviewEnabled","shownItems"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],xA.prototype,"topRowEndorsement",null);_.A([_.G("data.header"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],xA.prototype,"hideHeader",null);_.A([_.fu("yt-rich-grid-reflow"),_.p("design:type",Function),_.p("design:paramtypes",[Boolean]),_.p("design:returntype")],xA.prototype,"reflowContent",null);
_.A([_.fu("yt-reload-continuation-finish"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xA.prototype,"onReloadContinuationFinish",null);_.A([_.G("data"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],xA.prototype,"isSlimGrid",null);_.A([_.G("data"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],xA.prototype,"isShortsGrid",null);
_.A([_.G("data","isSlimGrid","isShortsGrid"),_.r(),_.p("design:type",Boolean),_.p("design:paramtypes",[])],xA.prototype,"noRichItemGutterMargins",null);_.A([_.G("data"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],xA.prototype,"isShortsGridSlim",null);_.A([_.G("data"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],xA.prototype,"isCompactGrid",null);
_.A([_.G("data"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],xA.prototype,"isDefaultGrid",null);_.A([_.G("data.targetId"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],xA.prototype,"hideChipsBarOnHome",null);_.A([_.G("data.targetId"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],xA.prototype,"hideChipsBarOnWatch",null);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xA.prototype,"onIsShortsGridChange",null);_.A([_.G("data.enableContentSpecificAspectRatio"),_.r(),_.p("design:type",Boolean),_.p("design:paramtypes",[])],xA.prototype,"force16By9ThumbnailAspectRatio",null);_.A([_.G("data"),_.p("design:type",Number),_.p("design:paramtypes",[])],xA.prototype,"continuationTriggerOffset",null);_.A([_.q({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],xA);
_.m(xA,"ytd-rich-grid-renderer",function(){if(LZa!==void 0)return LZa;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return LZa=R},{mode:2});var VNH=_.Jd(function(R){var y=R.thumbsUp,u=R.thumbsDown,v=R.rightAlignThumbs;R=_.V(_.In(!1,void 0,"FjNDrf"));var Q=R.next().value,M=R.next().value;R=_.V(_.In(!1,void 0,"Tphjfb"));var K=R.next().value,h=R.next().value;R={};return _.F("div",{class:_.Oy("ytwThumbsUpDownThumbs",(R.ytwThumbsUpDownRightAlign=function(){return v==null?void 0:v()},R))},_.F(_.$1,{data:y,
onToggle:function(b){M(b);K()&&h(!1)},
buttonShapeOverrides:function(){return{toggled:Q()}}}),_.F(_.$1,{data:u,
onToggle:function(b){h(b);Q()&&M(!1)},
buttonShapeOverrides:function(){return{toggled:K()}}}))},"gj");
VNH.idomCompat=!0;var KJJ=_.Jd(function(R){var y=function(){return R.data().pendingStateEntityKey||""},u=_.nA(_.nVa,y),v=function(){var h;
if(!(h=R.disabled())){var b;h=!((b=u())==null||!b.isPendingResponse)}return h},Q=_.V(_.In(oVM(""),void 0,"aC8eBe")),M=Q.next().value,K=Q.next().value;
_.nG(function(){requestAnimationFrame(function(){var h=R.data().onShowAnimationMs||0;h=h>0?oVM("--chip-animation-duration: "+h+"ms;"):oVM("");K(h)})});
return _.F("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:M},_.F(_.eS,{each:function(){return R.data().chipData||[]},
keyBy:"REFERENCE"},function(h){return _.F(iaa,{data:h,disabled:v,pendingStateKey:y,onError:R.onError})}))},"hj"),iaa=_.Jd(function(R){var y=_.zp("button"),u=_.V(_.In(!0,void 0,"NaMiCd")),v=u.next().value,Q=u.next().value,M=function(){return R.data().text.content},K=_.nh(function(h){var b,N,T,x,B,l,Z,P;
return _.I(function(k){switch(k.nextAddress){case 1:h.stopPropagation();if(R.disabled())return k.return();N=String(Math.floor(((b=_.fA())==null?void 0:b.getCurrentTime())||0)*1E3);T="youchat-"+Date.now();x=function(){_.Yi(R.data().onClick||{});var E={continuationCommand:{token:R.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},D={inputComposerFormData:{clientMessageId:T,playerOffsetMs:N}};return new Promise(function(z,c){_.Yi(E,{form:{formData:D},commandController:{onSuccess:function(a,
L){z(L)},
onServerError:function(a,L){c(L.error)}}})})};
B=_.GvK(R.pendingStateKey());B(!0);_.JEa("#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");Q(!1);_.wY(k,2);return k.yield(x(),4);case 4:_.c5(k,3);break;case 2:l=_.B$(k),(P=(Z=R).onError)==null||P.call(Z,l);case 3:B(!1),_.f$(k)}})});
return _.F(_.w,{cond:v,then:function(){return _.F("div",{class:"ytwYouChatChipsDataChipWrapper"},_.F("button",{el:y,class:"ytwYouChatChipsDataChip","data-disabled":R.disabled,"on:click":K,tabindex:0},M))}})},"ij");var IkM=_.Jd(function(R){var y=R.data;var u=R.initiallyExpanded;var v=function(){var N;return(N=y().conversationResourceData)==null?void 0:N.learningGuideData};
R=_.V(_.rW(function(){var N;return(N=u==null?void 0:u())!=null?N:!1}));
var Q=R.next().value,M=R.next().value,K=function(){M(!0)},h=_.N8(function(){var N,T;
return(T=(N=v())==null?void 0:N.sections)!=null?T:[]},void 0,"xl8NRc"),b=_.N8(function(){return h().length>4},void 0,"oAM7of");
R=_.N8(function(){var N;return!Q()&&b()&&(N=v())!=null&&N.expandButton?h().slice(0,4):h()},void 0,"uzQ9rc");
return _.F("yt-conversation-resource-view-model",{class:_.Oy("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.F(_.mk,{data:R},{expandableMetadataViewModel:_.XHm}),_.F(_.w,{cond:function(){return b()&&!Q()},
then:function(){return _.F("div",{id:"showMoreButton"},_.F(_.mk,{data:function(){var N;return(N=v())==null?void 0:N.expandButton}},{buttonViewModel:function(N){return _.F(_.fQ,{data:N.data,
onClick:K})}}))}}))},"jj");var hGm=_.Jd(function(R){var y=function(){var L;return(L=R.data().text)==null?void 0:L.content},u=function(){var L,QG;
return(L=R.data().webData)==null?void 0:(QG=L.textResult)==null?void 0:QG.content},v=_.ua().resolve(_.QX),Q=_.eo(),M=function(){return R.data().chatResponseStyle},K=function(){return!R.data().transparentBackground},h=function(){return R.data().rightAlignThumbs},b=function(){return R.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||R.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},N=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:b()?"0 0 1400 1400":"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"}}},T=function(){var L;
return R.data().webData||((L=R.data().text)==null?void 0:L.content)||R.data().videoResultsData||R.data().conversationResourceViewModel||R.data().quiz},x=function(){return!!R.data().sectionHeader||T()},B=function(){var L;
return(L=R.data().videoResultsData)==null?void 0:L.videoShelf},l=function(){var L;
return _.e(((L=R.data().videoResultsData)==null?void 0:L.videoShelf)||{},q2P)},Z=function(){var L;
return(L=R.data().webData)==null?void 0:L.sourcesShelf},P=function(){var L;
return _.e(((L=R.data().webData)==null?void 0:L.sourcesShelf)||{},q2P)},k=function(){return _.e(R.data().conversationResourceViewModel||{},mXa)},E=function(){return _.e(R.data().quiz||{},kv7)},D=function(){return M()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||M()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:R.data().thumbsDownViewModel&&R.data().thumbsUpViewModel},z=function(){return _.e(R.data().thumbsUpViewModel,_.EC)},c=function(){return _.e(R.data().thumbsDownViewModel,_.EC)};
_.nG(function(){requestAnimationFrame(function(){var L;(L=R.shouldAnimateIcon)!=null&&L.call(R)&&rEg(Q.lottieEl)})});
var a={};return _.F("you-chat-item-view-model",{class:_.Oy("ytwYouChatItemViewModelYouChatItemViewModel",(a.ytwYouChatItemViewModelColumnLayout=function(){return b()},a)),
"data-target-id":function(){return R.data().id||""}},_.F(_.w,{cond:function(){return R.data().removeIcon?!1:x()},
then:function(){var L={};return _.F("div",{"aria-hidden":"true"},_.F(_.F2,{className:_.Oy("ytwYouChatItemViewModelIcon",(L.ytwYouChatItemViewModelRtl=v==="rtl",L.ytwYouChatItemViewModelHidden=function(){return!(R.data().hideIcon||M()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||M()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:x())},L)),
animationName:"YOUCHAT_ICON",data:N,animationRef:Q}))}}),_.F(_.w,{cond:x,
then:function(){var L={};return _.F("div",{class:_.Oy("ytwYouChatItemViewModelHost",(L.ytwYouChatItemViewModelHostNoPadding=function(){return!!R.data().sectionHeader&&!T()},L.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return M()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},L.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return M()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},L.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return M()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
L.ytwYouChatItemViewModelGradientBackground=K,L)),
role:"alert"},_.F(_.w,{cond:y,then:function(QG){return _.F(_.$bK,{text:QG,wrapCodeBlocks:!0})}}),_.F(_.mk,{data:function(){return R.data().sectionHeader}},{sectionHeaderViewModel:function(QG){var hz={};
return _.F(_.f5,{data:QG.data,className:_.Oy("ytwYouChatItemViewModelSectionHeader",(hz.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!R.data().sectionHeader&&!T()},hz))})}}),_.F(_.w,{cond:u,
then:function(QG){return _.F(_.$bK,{text:QG,wrapCodeBlocks:!0})}}),_.F(_.w,{cond:B,
then:function(){return _.F("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.F(_.Y5,{data:l,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.F(_.w,{cond:Z,
then:function(){return _.F("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.F(_.Y5,{data:P,hasPeek:!0,disableArrows:!1}))}}),_.F(_.w,{cond:k,
then:function(){return _.F(IkM,{data:k})}}),_.F(_.w,{cond:E,
then:function(){return _.F(_.Te5,{data:E})}}),_.F(_.w,{cond:D,
then:function(){return _.F(VNH,{thumbsUp:z,thumbsDown:c,rightAlignThumbs:h})}}))}}),_.F(_.w,{cond:function(){return R.data().chipsData},
then:function(L){return _.F(KJJ,{data:L,disabled:R.pending,onError:R.onError})}}))},"kj");
hGm.idomCompat={callbacks:{onError:!0,onSend:!0}};var bag=_.Jd(function(R){var y=function(){return R.data().choiceSelectedText},u=function(){return R.data().hasGradientBackground},v={};
return _.F("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.F(_.w,{cond:y,then:function(){return _.F("div",{class:"ytYouChatUserTurnChoiceSelected"},_.F(_.QM,{text:y}))}}),_.F("div",{class:_.Oy("ytYouChatUserTurnUserMessage",(v.ytYouChatUserTurnGradientContainer=u,v.ytYouChatUserTurnDefaultContainer=function(){return!u()},v))},function(){return R.data().text}))},"lj");var FJm=_.Jd(function(R){var y=_.V((0,_.SQc)(R.data)).next().value;return _.F("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return R.data().targetId||""}},_.F(_.mk,{data:function(){return R.data().header}},{chipBarViewModel:_.mX5}),_.F(_.mk,{data:function(){return y().contents}},{accordionViewModel:_.fki,
alertBannerViewModel:_.S25,chatLoadingViewModel:_.USp,chatUserTurnViewModel:bag,learningJourneyLoaderViewModel:_.Ne8,lockupViewModel:function(u){return _.F(_.op,{data:u.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:R.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
youChatItemViewModel:function(u){return _.F(hGm,{data:u.data,pending:!1})}}))},"mj");_.h6(_.Jd(function(R){var y=_.V((0,_.SQc)(R.data)).next().value,u=_.sh("yt-section-list-renderer"),v=_.V(_.In(void 0,void 0,"rQpPgc")),Q=v.next().value,M=v.next().value,K=function(){var h;return _.e((h=R.data().sectionListLayoutConfiguration)==null?void 0:h.layoutConfiguration,$Xo)};
_.rB(function(){var h,b=(h=u.value)==null?void 0:h.clientWidth;if(K()){h=K();var N=h.responsiveSize;b=b<528?"CONTAINER_SIZE_NARROW":b<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var T=_.V(h.responsiveMap||[]);for(var x=T.next();!x.done;x=T.next())if(x=x.value,x.containerSize===b){T=x.containerType;break b}T=void 0}if(T&&N){b:{if(T==="CONTAINER_TYPE_VERTICAL_LIST")if(N==="RESPONSIVE_SIZE_STANDARD"){if(b!=="CONTAINER_SIZE_NARROW"){x="50%";break b}}else{x=b==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}x=void 0}h={responsiveSize:N,containerSize:b,containerType:T,force16By9ThumbnailAspectRatio:!h.enableContentSpecificAspectRatio,contentPreviewWidth:x,fullbleed:(T==="CONTAINER_TYPE_VERTICAL_LIST"||T==="CONTAINER_TYPE_GRID")&&b==="CONTAINER_SIZE_NARROW"&&!1}}else h=void 0}else h=void 0;M(h)});
return _.F("yt-section-list-renderer",{class:_.Oy("ytSectionListRendererHost",R.className),el:u,"data-target-id":function(){return R.data().targetId||""}},_.F(_.mk,{data:function(){return y().contents}},{itemSectionRenderer:function(h){return _.F(FJm,{data:h.data,
containerLayoutConfig:Q})}}))},"nj"),"yt-section-list-renderer",{props:{data:_.vR,
className:_.IC}});var w6Z;var NeM;var Tea=function(){return _.W.apply(this,arguments)||this};
_.O(Tea,_.W);_.A([_.r(),_.p("design:type",Object)],Tea.prototype,"data",void 0);_.A([_.pu({is:"yt-alert-renderer",disableElementRegistration:!0})],Tea);
_.m(Tea,"yt-alert-renderer",function(){if(NeM===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;w6Z===void 0&&(w6Z=document.createElement("template"));var v=w6Z;u.call(y,v.content.cloneNode(!0),R.content.firstChild);NeM=R}R=NeM;return R},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.SXm=function(R,y){var u,v;y=y===void 0?{}:y;var Q,M,K,h,b,N,T,x,B,l,Z,P;return _.I(function(k){switch(k.nextAddress){case 1:Q=y;M=Q.shouldWrap===void 0?!0:Q.shouldWrap;K=Q.skipTransitionTimeoutMs===void 0?300:Q.skipTransitionTimeoutMs;h=Q.beforeTransition;b=Q.afterTransition;if(!M||!document.startViewTransition||document.visibilityState==="hidden")return k.return(R());u=window.innerWidth;v=window.innerHeight;N=!1;(T=h)==null||T();_.wY(k,2);x=document.startViewTransition(R);B=setTimeout(function(){x.skipTransition();
N=!0},K);
return k.yield(x.ready,4);case 4:return clearTimeout(B),k.yield(x.finished,5);case 5:clearTimeout(B);(l=b)==null||l();_.c5(k,0);break;case 2:Z=_.B$(k),(P=b)==null||P(),Z&&!N&&document.visibilityState!=="hidden"&&u===window.innerWidth&&v===window.innerHeight&&_.dI(Z),_.f$(k)}})};
_.Lq=function(){for(var R=Array(36),y=0,u,v=0;v<36;v++)v==8||v==13||v==18||v==23?R[v]="-":v==14?R[v]="4":(y<=2&&(y=33554432+Math.random()*16777216|0),u=y&15,y>>=4,R[v]=_.SCg[v==19?u&3|8:u]);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 YX7=_.RE(['<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>']),
LaJ=_.dqY(YX7);LaJ.setAttribute("style","display: none;");document.head.appendChild(LaJ.content);_.sG=_.T3U(function(R){var y=_.o_("DIV");R&&(y.className=R);y.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";R=_.o_("DIV");_.dVV(R,"200px","200px");y.appendChild(R);document.body.appendChild(y);R=y.offsetWidth-y.clientWidth;_.BY(y);return R});var s_M;var zpI;var zE=function(){var R=_.W.apply(this,arguments)||this;R.icon=null;return R};
_.O(zE,_.W);zE.prototype.dismiss=function(){_.Ko(this.hostElement,"yt-live-chat-error-message-dismiss")};
zE.prototype.computeIcon=function(R){return R&&R.iconType?"yt-icons:"+R.iconType.toLowerCase():"yt-icons:close"};
_.A([_.r(),_.p("design:type",Object)],zE.prototype,"data",void 0);_.A([_.r({computed:"computeIcon(data.icon)"}),_.p("design:type",Object)],zE.prototype,"icon",void 0);_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],zE);
_.m(zE,"yt-live-chat-error-message-renderer",function(){if(zpI===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;s_M===void 0&&(s_M=document.createElement("template"));var v=s_M;u.call(y,v.content.cloneNode(!0),R.content.firstChild);zpI=R}R=zpI;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var ZM8,HMZ,nmp,G6M,d_7,EmJ,$_7,q3H,Z3,XUg,m_I,Hn,AyH,D_m,pU8,trP,cyH,aDK,S3o,Y3P,LMm,swV,zMM,gmM,CnV,RTr,yzB,uUy,vSK,QLq,jL4,nf,MvK,JzK,VvK,Icq,hTK,b8B,F4B,wW4,NEC,i8y,K4q,oSr,xU4,BEB,fcK,eTr,TEE,O8F;ZM8=function(R,y){return _.TI(R.entities,"timedMarkersListSyncEntity",y)};
HMZ=function(R,y){return _.TI(R.entities,"liveReactionsDataEntity",y)};
nmp=function(R,y){R=_.TI(R.entities,"booleanEntity",y);return!(!R||!R.value)};
G6M=function(R,y){var u=_.$I();u&&R&&_.ak(u,_.U4(R),y)};
_.ryP=function(R){return R.watch.isWatchActive};
_.Pno=function(R){return _.t6(R)||_.c_(R)||_.KOW(R)};
_.WMH=function(R){return!_.Pno(R)};
_.OY=function(R){return R.watch.watchScrollTop};
d_7=function(R){return R.watch.isLiveChatCollapsed};
_.U_J=function(){_.f("web_watch_log_theater_mode")&&_.dlW("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.k6m=function(R,y,u){if(!R.includes("START_TIME_PLACEHOLDER")||!R.includes("END_TIME_PLACEHOLDER"))return R;var v=new Date(0),Q=new Date(0);v.setUTCMilliseconds(y);Q.setUTCMilliseconds(u);return R.replace("START_TIME_PLACEHOLDER",_.sq(v,7)).replace("END_TIME_PLACEHOLDER",_.sq(Q,7))};
EmJ=function(R,y){return _.TI(R.entities,"booleanEntity",y)};
$_7=function(){return function(R){_.vy(_.Gw("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:R}))}};
q3H=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}};
Z3=function(R,y,u){var v=_.Sb(u);R&&y&&v&&R.getPlayerPromise().then(function(Q){_.kEz(v)&&_.W3();(new _.kQ(Q)).executeCommand(v,y);_.f("continue_playback_on_desktop_companion_click")||Q.pauseVideo()})};
XUg=function(R){var y=_.I8(),u;if(u=_.D6("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var v;u=(v=u())==null?void 0:v.layoutId}else u=null;Z3(y,u,R)};
m_I=function(R){var y=_.I8(),u;if(u=_.D6("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var v;u=(v=u())==null?void 0:v.layoutId}else u=null;Z3(y,u,R)};
Hn=function(R,y){var u=R<0?"-":"";R=Math.abs(R);var v=Math.floor(R/3600),Q=Math.floor(R)%3600,M=Math.floor(Q/60);Q=Math.floor(Q)%60;var K="";(y===void 0?0:y)&&(K="."+Math.round((R-Math.floor(R))*10));return v>0?u+v+":"+(M<10?"0"+M:""+M)+":"+(Q<10?"0"+Q:""+Q)+K:u+M+":"+(Q<10?"0"+Q:""+Q)+K};
AyH=function(R){var y=R.match(/[^0-9:\.]/g);if(y&&y.length>0)return null;R=R.split(":");if(R.length===0||R.length>3)return null;y=1;for(var u=0;R.length>0;){var v=R.pop();if(v===void 0)break;var Q=Number(v);if(v===""||isNaN(Q))return null;u+=Q*y;y*=60}return u};
D_m=function(R,y,u,v){R=Math.max(u,R);y=Math.min(y,v-u);R+y>v?(u=v,R=u-y):u=R+y;return{start:R,end:u}};
pU8=function(R,y,u,v,Q,M){R<u?R=u:R+Q>v&&(R=v-Q);y>v&&(y=v);y=Math.min(R+M,Math.max(R+Q,y));return{start:R,end:y}};
trP=function(R,y,u,v,Q,M){y>v?y=v:y-Q<u&&(y=u+Q);R<u&&(R=u);R=Math.min(y-Q,Math.max(y-M,R));return{start:R,end:y}};
cyH=function(R){return _.f("web_transcript_cue_id_killswitch")?String(R):"ytd-transcript-renderer_"+R};
aDK=function(R){return _.f("web_transcript_cue_id_killswitch")?!0:R.startsWith("ytd-transcript-renderer")};
S3o=function(R){var y=_.I8(),u;if(u=_.D6("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var v;u=(v=u())==null?void 0:v.layoutId}else u=null;Z3(y,u,R)};
Y3P=function(R){R.style.height="auto";R.style.height=Math.min(R.scrollHeight||20,80)+"px"};
LMm=function(R,y,u){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:y,hasGradientBackground:u}}],insertByPositionInSection:{sectionTargetId:R,position:"INSERTION_POSITION_LAST"}}}]}}}};
swV=function(R){var y=_.I8(),u;u=(u=_.D6("yt.www.ads.eventcache.getLastCompanionData"))?(u=u())&&u.layoutId:null;Z3(y,u,R)};
zMM=function(R){var y=_.I8(),u;u=(u=_.D6("yt.www.ads.eventcache.getLastCompanionData"))?(u=u())&&u.layoutId:null;Z3(y,u,R)};
gmM=function(R,y){y=y===void 0?!1:y;if(R.simpleText)R=[{text:R.simpleText}];else{var u;R=((u=R.runs)!=null?u:[]).map(function(v){return Object.assign({},v)})}if(y)for(y=_.V(R),u=y.next();!u.done;u=y.next())u.value.bold=!0;
return R};
CnV=function(R){var y=R.startEndTimeTemplate,u=R.startTimeUtcMillis;R=R.endTimeUtcMillis;if(y&&u&&R)return _.ye(_.k6m(_.u7(y),Number(u),Number(R)))};
RTr=function(R,y){var u,v,Q=R==null?void 0:(u=R.viewCount)==null?void 0:(v=u.videoViewCountRenderer)==null?void 0:v.shortViewCount;if(!y&&Q)return Q;var M,K;return R==null?void 0:(M=R.viewCount)==null?void 0:(K=M.videoViewCountRenderer)==null?void 0:K.viewCount};
yzB=function(R,y){var u=R==null?void 0:R.relativeDateText;return!y&&u?[u,!0]:[R==null?void 0:R.dateText,!1]};
uUy=function(R,y,u,v,Q){v=v===void 0?!0:v;Q=Q===void 0?"":Q;var M=RTr(R,y),K=_.V(yzB(R,y)),h=K.next().value;K=K.next().value;y=y?R==null?void 0:R.sponsorsOnlyFirstTimeLongText:R==null?void 0:R.sponsorsOnlyFirstTimeShortText;var b=[];u&&M&&b.push(M);!u&&K||!h||b.push(h);R=[].concat(_.P$(b),[y,R==null?void 0:R.stationName,R==null?void 0:R.rating,R?CnV(R):void 0,R==null?void 0:R.upNextProgramText,R==null?void 0:R.superTitleLink]).filter(function(N){return!!N});
u={runs:[]};for(M=0;M<R.length;M++)u.runs.push.apply(u.runs,_.P$(gmM(R[M],v))),M<R.length-1&&u.runs.push({text:" "+Q+" ",bold:v});return u};
vSK=function(R){if(R)return{runs:[{text:R,bold:!0}]}};
QLq=function(R){var y,u,v,Q;if(R=R==null?void 0:(y=R.contents)==null?void 0:(u=y.twoColumnWatchNextResults)==null?void 0:(v=u.results)==null?void 0:(Q=v.results)==null?void 0:Q.contents){var M,K;return(K=(M=R.find(function(h){return!!h.videoPrimaryInfoRenderer}))==null?void 0:M.videoPrimaryInfoRenderer)==null?void 0:K.updatedMetadataEndpoint}};
jL4=function(R,y){var u;return(u=R.sourceConfigs)==null?void 0:u.find(function(v){return v.videoId===y})};
nf=function(R){return R==="End of video"||R==="End of playlist"};
MvK=function(R){var y,u,v,Q;return(y=R.getWatchNextResponse())==null?void 0:(u=y.contents)==null?void 0:(v=u.twoColumnWatchNextResults)==null?void 0:(Q=v.playlist)==null?void 0:Q.playlist};
JzK=function(R){var y,u,v,Q,M,K;return(y=MvK(R))==null?void 0:(u=y.playlistButtons)==null?void 0:(v=u.menuRenderer)==null?void 0:(Q=v.topLevelButtons)==null?void 0:(M=Q[0])==null?void 0:(K=M.playlistLoopButtonRenderer)==null?void 0:K.playlistLoopStateEntityKey};
VvK=function(R){var y=_.ua().resolve(_.S2),u;return(y=(u=_.e(y.getAutoplayEndpoint(),_.zM))==null?void 0:u.playlistId)&&y===R};
Icq=function(R,y,u,v,Q){function M(){_.WG.cancelJob(Ge);var K=i8y(y,u/R.getPlaybackRate()),h=K.hours,b=K.minutes;K=(K.seconds*1E3||6E4)/R.getPlaybackRate();R.setVideoTimeLeft(K4q(h,b));v&&R.getPlayerState()!==0&&R.setSleepTimerTimeLeft(K4q(h,b,!0));(h>0||b>0)&&!Q&&(Ge=_.Wm(_.WG,M,K))}
_.WG.cancelJob(Ge);Ge=_.Wm(_.WG,M)};
hTK=function(R,y,u){function v(){_.WG.cancelJob(rf);var Q=i8y(y,u),M=Q.hours;Q=Q.minutes;var K=6E4/R.getPlaybackRate();if(M>0||Q>0)R.setSleepTimerTimeLeft(K4q(M,Q,!0)),rf=_.Wm(_.WG,v,K)}
_.WG.cancelJob(rf);rf=_.Wm(_.WG,v)};
b8B=function(R,y){var u=R.getVolume()/(y/500),v=function(Q){_.WG.cancelJob(Pn);var M=Math.floor(Q-u);R.setVolume(M,!1);M>0&&(Pn=_.Wm(_.WG,function(){v(M)},500))};
_.WG.cancelJob(Pn);Pn=_.Wm(_.WG,function(){v(R.getVolume())})};
F4B=function(R,y){_.WG.cancelJob(Pn);y&&R.syncVolume()};
wW4=function(){var R={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.fo("SLEEP_TIMER_DISRUPTED")}}}}};_.ua().resolve(_.jX).resolveCommand(R)};
NEC=function(R){return(R.getDuration()-R.getProgressState().current)*1E3};
i8y=function(R,y){R=R+y-(0,_.uQ)();if(R<=0)return{hours:0,minutes:0,seconds:0};var u=new TEE(0,0,0,0,0,0,R);R=u.getHours();y=u.getMinutes();u=u.getSeconds();u!==0&&y++;y!==0&&y%60===0&&(R++,y=0);return{hours:R,minutes:y,seconds:u}};
K4q=function(R,y,u){return R>0&&y>0?u?_.fo("TIME_LEFT_HOURS_MINUTES",{hours:R.toString(),minutes:y.toString()}):_.fo("TIME_HOURS_MINUTES",{hours:R.toString(),minutes:y.toString()}):R>0?u?_.ei("TIME_LEFT_HOURS",R):_.ei("TIME_HOURS",R):u?_.fo("TIME_LEFT_MINUTES",{minutes:y.toString()}):_.fo("TIME_MINUTES",{minutes:y.toString()})};
oSr=function(R,y){if(R.timelyActions)return R.timelyActions.find(function(u){var v;return((v=_.e(u,Wn))==null?void 0:v.cueRangeId)===y})};
xU4=function(R){var y=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.wq(R);R.keyMap_.forEach(function(u,v){_.XU(y,v)||this.remove(v)},R)};
BEB=function(R,y){R.reloadContinuationItemsCommandMatcher=y};
_.df=function(R,y){R.insertBefore(y,R.childNodes[0]||null)};
fcK=function(R){if(R>=48&&R<=57||R>=96&&R<=106||R>=65&&R<=90||_.T$&&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 _.NO;default:return!1}};
eTr=function(R){if(R.altKey&&!R.ctrlKey||R.metaKey||R.keyCode>=112&&R.keyCode<=123)return!1;if(fcK(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!_.NO;default:return R.keyCode<166||R.keyCode>183}};
TEE=function(R,y,u,v,Q,M,K){this.date=typeof R==="number"?new Date(R,y||0,u||1,v||0,Q||0,M||0,K||0):new Date(R&&R.getTime?R.getTime():_.KU())};
_.IE(TEE,_.Wb);_.J=TEE.prototype;_.J.getHours=function(){return this.date.getHours()};
_.J.getMinutes=function(){return this.date.getMinutes()};
_.J.getSeconds=function(){return this.date.getSeconds()};
_.J.getMilliseconds=function(){return this.date.getMilliseconds()};
_.J.getUTCDay=function(){return this.date.getUTCDay()};
_.J.getUTCHours=function(){return this.date.getUTCHours()};
_.J.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.J.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.J.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.J.setHours=function(R){this.date.setHours(R)};
_.J.setMinutes=function(R){this.date.setMinutes(R)};
_.J.setSeconds=function(R){this.date.setSeconds(R)};
_.J.setMilliseconds=function(R){this.date.setMilliseconds(R)};
_.J.setUTCHours=function(R){this.date.setUTCHours(R)};
_.J.setUTCMinutes=function(R){this.date.setUTCMinutes(R)};
_.J.setUTCSeconds=function(R){this.date.setUTCSeconds(R)};
_.J.setUTCMilliseconds=function(R){this.date.setUTCMilliseconds(R)};
_.J.add=function(R){_.Wb.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)};
_.J.JSC$11246_toIsoString=function(R){var y=_.Wb.prototype.JSC$11246_toIsoString.call(this,R);return R?y+"T"+_.ij(this.getHours(),2)+":"+_.ij(this.getMinutes(),2)+":"+_.ij(this.getSeconds(),2):y+"T"+_.ij(this.getHours(),2)+_.ij(this.getMinutes(),2)+_.ij(this.getSeconds(),2)};
_.J.equals=function(R){return this.getTime()==R.getTime()};
_.J.toString=function(){return this.JSC$11246_toIsoString()};
_.J.clone=function(){var R=new TEE(this.date);R.firstDayOfWeek_=this.firstDayOfWeek_;R.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return R};
_.lcC=function(R){return _.iE({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:R}})};
O8F=new _.jF("imageTileRenderer");var Z82=new _.jF("adGridCardCollectionViewModel");var H8C=new _.jF("carouselTitleViewModel");var nSC=new _.jF("ctaCarouselItemViewModel");var GTK=new _.jF("textFieldViewModel");_.rzo=new _.jF("engagementPanelHeaderShowNavigationButtonCommand");var POK=new _.jF("hideEngagementPanelScrimAction");var W4y=new _.jF("setActivePanelItemAction");var dUC=new _.jF("showEngagementPanelScrimAction");var UUB=new _.jF("updateEngagementPanelAction");var kTB=new _.jF("updateSearchInVideoResultsAction");var ES4=new _.jF("transcriptCueGroupRenderer");var $UF=new _.jF("transcriptCueRenderer");var qPy=new _.jF("transcriptFooterRenderer");var XW4=new _.jF("engagementPanelAdSubtitleRenderer");var mUo=new _.jF("videoDescriptionFantasySectionViewModel");var AzK=new _.jF("deleteClipEngagementPanelCommand");var DUq=new _.jF("loopCommand");var pWF=new _.jF("changeCreatorEndscreenVisibilityCommand");var tvq=new _.jF("liveChatCallForQuestionsRenderer");var czb=new _.jF("updateTimedMarkersSyncObserverCommand");var Wn=new _.jF("timelyActionViewModel");var acK=new _.jF("timelyActionsOverlayViewModel");var SPF=new _.jF("repeatChapterCommand");var YPF=new _.jF("watchPlayerOverflowMenuCommand");var L4g=new _.jF("compositeVideoOverlayRenderer");var sLB=new _.jF("sortFilterSubMenuRenderer");var zT4=new _.jF("switchListItemViewModel");var gSo=new _.jF("inputComposerViewModel");var CO4=new _.jF("transcriptEditSegmentCommand");var Rcq=new _.jF("transcriptUpdateSegmentTextCommand");var yL2=new _.jF("transcriptSearchBoxRenderer");var u5K=new _.jF("transcriptSegmentListRenderer");var v8g=new _.jF("transcriptSegmentRenderer");_.Qbo=new _.jF("updateDateTextAction");var jbE=new _.jF("updateTitleAction");var MgF=new _.jF("updateViewershipAction");var JLo=new _.jF("carouselLockupRenderer");var UY=new _.jF("expandableVideoDescriptionBodyRenderer");var Vgy=new _.jF("videoDescriptionHeaderRenderer");var iYg=new _.jF("videoDescriptionYouchatSectionViewModel");_.kK=_.JT("kevlar_watch_page_horizontal_margin",24);_.KV4=_.JT("kevlar_watch_page_columns_top_padding",24);_.Iwb=426+_.kK*2;_.EY=_.JT("kevlar_watch_two_column_width_threshold",1E3);_.hcB=_.kK*2;_.bYC=_.JT("kevlar_watch_secondary_width",402);_.FVy=_.JT("kevlar_watch_max_player_width",1280);_.wK4=_.JT("kevlar_watch_flexy_metadata_height",136);_.Ngo=_.hcB+310+_.kK;_.Tgq=_.hcB+360+_.kK;var o8b={PAUSE_CHAT:18};var xG4;var BgC;var $K=function(){return _.W.apply(this,arguments)||this};
_.O($K,_.W);$K.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
$K.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var R=_.e(this.data.button,_.k9);R&&(R.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.RR.Object.defineProperties($K,{template:{configurable:!0,enumerable:!0,get:function(){if(BgC===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;xG4===void 0&&(xG4=document.createElement("template"));var v=xG4;u.call(y,v.content.cloneNode(!0),R.content.firstChild);BgC=R}R=BgC;return R}}});
_.A([_.n(_.YX),_.p("design:type",Object)],$K.prototype,"ytLiveChatReduxBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],$K.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r({selectorArgs:["data.enabledEntityKey"],selector:nmp,observer:"onEnabledChange"}),_.p("design:type",Boolean)],$K.prototype,"enabled",void 0);_.A([_.r(),_.p("design:type",Object)],$K.prototype,"data",void 0);_.A([_.pu({is:"yt-disableable-button-view-model",noInjection:!0})],$K);var fw4;var ec4;var lwg=["transVert01","transVert02","transVert03"],OY4="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),qT=function(){var R=_.W.apply(this,arguments)||this;R.emojiManager=_.LQ;R.isDarkTheme=document.documentElement.hasAttribute("dark");R.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};R.reactionBuckets=[];R.noEmojiIdentifier="NO_EMOJI";return R};
_.O(qT,_.W);_.J=qT.prototype;_.J.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.J.desktopFountainEmojiSizePxChanged=function(){_.oX(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.J.createUserReactionAnimation=function(R){this.createEmojiAnimation(R,!0)};
_.J.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var R;((R=this.data)==null?0:R.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.Gw("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.P$(this.emojiContainer.children)).forEach(function(y){y.remove()})};
_.J.detached=function(){this.cleanupFountain()};
_.J.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var R;this.reactionBuckets=_.Ps.unsafeClone((R=this.emojiFountainData)==null?void 0:R.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.J.processEmojiBucket=function(R){var y=this;if(this.reactionBuckets&&!(R>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var u=this.reactionBuckets[R];this.generateEmojiAnimations(u);if(R<this.reactionBuckets.length-1){var v;if(u==null?0:(v=u.duration)==null?0:v.seconds)this.emojiBucketTimerId=setTimeout(function(){y.processEmojiBucket(R+1)},Number(u.duration.seconds)*1E3)}}};
_.J.generateEmojiAnimations=function(R){var y=this,u=this.getRandomEmojiIdFromBucketWithOverride(R);if(u&&u!==this.noEmojiIdentifier){var v=0;R.targetEps?(v=this.linearInterpolateBounded(1,20,100,12,R.emojiSizeIndex||0),this.createEmojiAnimation(u,!1,R.emojiAnimationMs,v),v=this.getEmojiDelayMsFromTargetEps(R.targetEps)):(this.createEmojiAnimation(u),v=this.getEmojiDelayMsFromDistribution(R.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){y.generateEmojiAnimations(R)},v)}};
_.J.getRandomEmojiIdFromBucketWithOverride=function(R){if(!(R&&R.reactionsData&&R.reactionsData.length&&R.totalReactions))return this.noEmojiIdentifier;for(var y=R.totalReactions,u=1,v=_.V(R.reactionsData),Q=v.next();!Q.done;Q=v.next())Q=Q.value,(Q.reactionWeightOverride||Q.reactionWeightOverride===0)&&Q.reactionCount&&(y-=Q.reactionCount,u-=Q.reactionWeightOverride);v=!0;u<0&&(v=!1,y=R.totalReactions,u=1);if(v&&u>0&&y===0)if(u===1){Q=0;for(var M=_.V(R.reactionsData),K=M.next();!K.done;K=M.next())K=
K.value,K.reactionCount&&K.reactionCount>0&&Q++;Q=1/Q;M=_.V(R.reactionsData);for(K=M.next();!K.done;K=M.next())K.value.reactionWeightOverride=Q}else for(Q=1/(1-u),M=_.V(R.reactionsData),K=M.next();!K.done;K=M.next())K=K.value,K.reactionWeightOverride&&(K.reactionWeightOverride*=Q);Q=Math.random();M=0;K=_.V(R.reactionsData);for(var h=K.next();!h.done;h=K.next())if(h=h.value,h.reactionCount&&(M=(h.reactionWeightOverride||h.reactionWeightOverride===0)&&v?M+h.reactionWeightOverride:M+u*h.reactionCount/
y,M>Q&&(h.reactionCount--,R.totalReactions--,h=this.reactionItemToEmojiString(h),h!==this.noEmojiIdentifier)))return h;return this.noEmojiIdentifier};
_.J.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};
_.J.createEmojiAnimation=function(R,y,u,v){y=y===void 0?!1:y;this.lastEmojiRequestedForTesting=R;var Q=R.startsWith("yt-icons:"),M=_.Su(this.emojiManager,R);if(M||Q){var K=document.createElement("emoji");K.classList.add("yt-emoji-fountain-view-model");K.classList.add(lwg[Math.floor(Math.random()*lwg.length)]);var h=document.createElement("div");h.classList.add("yt-emoji-fountain-view-model");h.classList.add("horizontal-container");h.classList.add(OY4[Math.floor(Math.random()*OY4.length)]);y?(u=document.createElement("div"),
u.classList.add("user-reaction-bubble"),u.classList.add("yt-emoji-fountain-view-model"),h.appendChild(u)):(u&&(K.style.animationDuration=u+"ms",h.style.animationDuration=u+"ms"),v&&(K.style.width=v+"px",K.style.height=v+"px"));Q?(Q=document.createElement("yt-icon"),Q.polymerController.icon=R,v&&(Q.style.width=v+"px",Q.style.height=v+"px"),R=Q):R=this.emojiManager.createEmoji(M,!1);R.classList.add("yt-emoji-fountain-view-model");h.appendChild(R);K.appendChild(h);this.emojiContainer.appendChild(K);
K.addEventListener("animationend",function(){K.remove()});
var b,N;if((b=this.data)==null?0:(N=b.loggingDirectives)==null?0:N.trackingParams)y=y?_.$6(183501):_.$6(183500),G6M(this.data.loggingDirectives.trackingParams,y),_.q0T(y);setTimeout(function(){K&&K.remove()},2E3)}};
_.J.getEmojiDelayMsFromDistribution=function(R){return Math.random()*(R||1)*1E3};
_.J.getEmojiDelayMsFromTargetEps=function(R){return Math.random()*2*(1/R)*1E3};
_.J.linearInterpolateBounded=function(R,y,u,v,Q){Q=Math.min(Math.max(Q,R),u);return(y*(u-Q)+v*(Q-R))/(u-R)};
qT.prototype.onEmojiFountainDataEntityUpdate=qT.prototype.onEmojiFountainDataEntityUpdate;qT.prototype.desktopFountainEmojiSizePxChanged=qT.prototype.desktopFountainEmojiSizePxChanged;qT.prototype.isActiveChanged=qT.prototype.isActiveChanged;_.A([_.r(),_.p("design:type",_.aJ)],qT.prototype,"emojiManager",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],qT.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.YX),_.p("design:type",Object)],qT.prototype,"ytLiveChatReduxBehavior",void 0);
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],qT.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],qT.prototype,"data",void 0);_.A([_.r({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(R,y){return _.TI(R.entities,"emojiFountainDataEntity",y)}}),
_.p("design:type",Object)],qT.prototype,"emojiFountainData",void 0);_.A([_.r(),_.p("design:type",Boolean)],qT.prototype,"isActive",void 0);_.A([_.e0("isActive"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qT.prototype,"isActiveChanged",null);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],qT.prototype,"isDarkTheme",void 0);_.A([_.r(),_.p("design:type",String)],qT.prototype,"lastEmojiRequestedForTesting",void 0);
_.A([_.r({value:function(){return _.JT("desktop_fountain_emoji_size_px",20)}}),
_.p("design:type",Number)],qT.prototype,"desktopFountainEmojiSizePx",void 0);_.A([_.e0("desktopFountainEmojiSizePx"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qT.prototype,"desktopFountainEmojiSizePxChanged",null);_.A([_.O7("#emoji-container"),_.p("design:type",HTMLElement)],qT.prototype,"emojiContainer",void 0);
_.A([_.e0("emojiFountainData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qT.prototype,"onEmojiFountainDataEntityUpdate",null);_.A([_.pu({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],qT);
_.m(qT,"yt-emoji-fountain-view-model",function(){if(ec4===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;fw4===void 0&&(fw4=document.createElement("template"));var v=fw4;u.call(y,v.content.cloneNode(!0),R.content.firstChild);ec4=R}R=ec4;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var ZYK;var HYb;var XK=function(){return _.W.apply(this,arguments)||this};
_.O(XK,_.W);XK.prototype.onChoiceChanged=function(){this.data&&_.oX(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
XK.prototype.onChoiceChanged=XK.prototype.onChoiceChanged;_.A([_.r(),_.p("design:type",Object)],XK.prototype,"data",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],XK.prototype,"onChoiceChanged",null);_.A([_.q({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],XK);
_.m(XK,"yt-live-chat-banner-poll-choice",function(){if(HYb===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;ZYK===void 0&&(ZYK=document.createElement("template"));var v=ZYK;u.call(y,v.content.cloneNode(!0),R.content.firstChild);HYb=R}R=HYb;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var n8E;var G5r;var md=function(){var R=_.W.apply(this,arguments)||this;R.modern=_.f("web_button_rework_with_live");R.small=!1;return R};
_.O(md,_.W);md.prototype.computeIsSmall=function(){var R;return((R=this.buttonOverrides)==null?void 0:R.size)==="S"};
md.prototype.computeId=function(){return this.data&&this.data.targetId};
_.A([_.n(_.Ll.YtLiveChatTooltipTargetingBehavior),_.p("design:type",Object)],md.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.A([_.r({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.p("design:type",String)],md.prototype,"id",void 0);_.A([_.r(),_.p("design:type",Object)],md.prototype,"buttonOverrides",void 0);_.A([_.r(),_.p("design:type",Object)],md.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],md.prototype,"modern",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.p("design:type",Object)],md.prototype,"small",void 0);_.A([_.q({disableElementRegistration:!0,is:"yt-live-chat-button"})],md);
_.m(md,"yt-live-chat-button",function(){if(G5r===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;n8E===void 0&&(n8E=document.createElement("template"));var v=n8E;u.call(y,v.content.cloneNode(!0),R.content.firstChild);G5r=R}R=G5r;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var rLo;var PTb;var Ah=function(){var R=_.W.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};
_.O(Ah,_.W);_.J=Ah.prototype;_.J.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]]"}}}}}};
_.J.onContextMenuButtonClick=function(R){this.ytLiveChatItemBehavior.showContextMenu(R)};
_.J.onYtRendererstamperFinished=function(){this.menuButton=_.hw(this.hostElement).querySelector("#menu-button")};
_.J.dataChanged=function(){var R,y;if((y=_.e((R=this.data)==null?void 0:R.overflowMenuButton,_.aG))==null?0:y.command)this.data.contextMenuEndpoint=_.e(this.data.overflowMenuButton,_.aG).command};
_.J.onButtonClick=function(){var R,y=_.e((R=this.data)==null?void 0:R.askQuestionButton,_.aG);if(y){if(y.trackingParams&&(R=_.U4(y.trackingParams))){var u=_.$I();u&&_.zP(u,R)}_.Ko(this.hostElement,"innertube-command",y.command)}};
Ah.prototype.onYtRendererstamperFinished=Ah.prototype.onYtRendererstamperFinished;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Ah.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.YX),_.p("design:type",Object)],Ah.prototype,"ytLiveChatReduxBehavior",void 0);_.A([_.n(_.sj.YtLiveChatItemBehavior),_.p("design:type",_.zi)],Ah.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.r({observer:"dataChanged"}),_.p("design:type",Object)],Ah.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Ah.prototype,"inCollapsedBanner",void 0);_.A([_.r(),_.p("design:type",Object)],Ah.prototype,"buttonOverrides",void 0);_.A([_.r(),_.p("design:type",Object)],Ah.prototype,"questionButtonOverrides",void 0);_.A([_.fu("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ah.prototype,"onYtRendererstamperFinished",null);
_.A([_.q({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],Ah);
_.m(Ah,"yt-live-chat-call-for-questions-renderer",function(){if(PTb===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;rLo===void 0&&(rLo=document.createElement("template"));var v=rLo;u.call(y,v.content.cloneNode(!0),R.content.firstChild);PTb=R}R=PTb;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var WVC={};WVC.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 y=_.Q2L(R.hostElement);y.length&&y[y.length-1].focus()})},
isAttachedChanged_:function(R,y){R?this.focusChild_():y&&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||_.u8(R).indexOf(this.hostElement)!==-1||(R.stopPropagation(),this.focusChild_())}};var dGK;var UGK;var D3=function(){return _.W.apply(this,arguments)||this};
_.O(D3,_.W);D3.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
D3.prototype.onClick=function(R){R.target!==this.confirmButton&&R.target!==this.cancelButton&&(this.hidden=!0)};
_.A([_.O7("#confirm_button"),_.p("design:type",Object)],D3.prototype,"confirmButton",void 0);_.A([_.O7("#cancel_button"),_.p("design:type",Object)],D3.prototype,"cancelButton",void 0);_.A([_.r(),_.p("design:type",k5g)],D3.prototype,"data",void 0);_.A([_.r({value:!0,reflectToAttribute:!0}),_.p("design:type",Boolean)],D3.prototype,"hidden",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],D3.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.n(WVC.YtLiveChatDialogBehavior),_.p("design:type",Object)],D3.prototype,"ytLiveChatDialogBehavior",void 0);_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],D3);
var k5g=_.m(D3,"yt-live-chat-dialog-renderer",function(){if(UGK===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;dGK===void 0&&(dGK=document.createElement("template"));var v=dGK;u.call(y,v.content.cloneNode(!0),R.content.firstChild);UGK=R}R=UGK;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var E8B;var $G2,qib=function(){if($G2!==void 0)return $G2;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;E8B===void 0&&(E8B=document.createElement("template"));var v=E8B;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return $G2=R};var XKE;var mGg;var pf=function(){var R=_.W.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};
_.O(pf,_.W);_.J=pf.prototype;
_.J.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,_.Nz)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var y;if((y=this.data)==null?0:y.disabled)this.disabled=!0};
_.J.computeId=function(R){return R};
_.J.computeIcon=function(R,y){if(!R)return"";if(this.useToggledActiveState)return"yt-icons:"+R.toLowerCase();var u,v;return y&&((u=this.data)==null?0:(v=u.toggledIcon)==null?0:v.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+R.toLowerCase()};
_.J.logPDGEntryPoint=function(){_.zgS(_.BV("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")};
_.J.immediatelyShowTooltip=function(){var R=_.hw(this.hostElement).querySelector("#tooltip");R.animationDelay=0;R.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};R.show()};
_.J.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.J.onClick=function(R){var y;((y=this.data)==null?0:y.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(),_.Ko(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.J.computeShowTooltip=function(R,y){return!!(R&&R.tooltip&&y)};
_.J.maybeUpdateTooltipText=function(){var R=this,y;if((y=this.data)==null?0:y.tooltip){var u=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.Nz)(R.tooltip).textContent=u},250)}};
_.J.handleLiveChatActions=function(R){var y=this;R.length&&(this.id!=="creator"&&this.id!=="product-picker"||R.forEach(function(u){(u=y.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",u))&&u.durationSec===u.fullDurationSec&&y.startBubble(y.colorFromDecimal(u.startBackgroundColor))}))};
_.J.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.J.startBubble=function(R){_.oX(this.hostElement,{"--yt-live-chat-monetization-button-glow":R});this.hostElement.setAttribute("bubble","")};
_.J.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.J.colorFromDecimal=function(R){typeof R==="string"&&(R=Number(R));return"rgba("+[R>>16&255,R>>8&255,R&255,(R>>24&255)/255].join()+")"};
pf.prototype.onAnimationEnd=pf.prototype.onAnimationEnd;pf.prototype.disabledChanged=pf.prototype.disabledChanged;pf.prototype.dataChanged=pf.prototype.dataChanged;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],pf.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],pf.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.Ll.YtLiveChatTooltipTargetingBehavior),_.p("design:type",Object)],pf.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],pf.prototype,"data",void 0);_.A([_.r({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.p("design:type",Object)],pf.prototype,"id",void 0);_.A([_.r({notify:!0,reflectToAttribute:!0}),_.p("design:type",Object)],pf.prototype,"active",void 0);
_.A([_.r({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.p("design:type",Object)],pf.prototype,"icon",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],pf.prototype,"disabled",void 0);_.A([_.r({computed:"computeShowTooltip(data, disabled)"}),_.p("design:type",Object)],pf.prototype,"showTooltip",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],pf.prototype,"useToggledActiveState",void 0);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],pf.prototype,"dataChanged",null);_.A([_.e0("disabled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],pf.prototype,"disabledChanged",null);_.A([_.fu("animationend"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],pf.prototype,"onAnimationEnd",null);
_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],pf);
_.m(pf,"yt-live-chat-icon-toggle-button-renderer",function(){if(mGg===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;XKE===void 0&&(XKE=document.createElement("template"));var v=XKE;u.call(y,v.content.cloneNode(!0),R.content.firstChild);mGg=R}R=mGg;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var ALK;var DGK;var th=function(){return _.W.apply(this,arguments)||this};
_.O(th,_.W);th.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([_.r(),_.p("design:type",Object)],th.prototype,"data",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],th.prototype,"ytRendererstamperBehavior",void 0);_.A([_.q({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],th);
_.m(th,"yt-live-chat-message-input-prompt-header-renderer",function(){if(DGK===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;ALK===void 0&&(ALK=document.createElement("template"));var v=ALK;u.call(y,v.content.cloneNode(!0),R.content.firstChild);DGK=R}R=DGK;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var pKC;var tgr;var cLy;var awK;var Sir;var Yi4;var LVr=function(){return _.W.apply(this,arguments)||this};
_.O(LVr,_.W);_.A([_.r(),_.p("design:type",Object)],LVr.prototype,"data",void 0);_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],LVr);
_.m(LVr,"yt-live-chat-message-subtext-renderer",function(){if(Yi4===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;Sir===void 0&&(Sir=document.createElement("template"));var v=Sir;u.call(y,v.content.cloneNode(!0),R.content.firstChild);Yi4=R}R=Yi4;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var cn=function(){var R=_.W.apply(this,arguments)||this;R.subtextOnBottom=!1;R.buttonOverrides={style:"mono",type:"tonal"};return R};
_.O(cn,_.W);cn.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],cn.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],cn.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],cn.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],cn.prototype,"subtextOnBottom",void 0);_.A([_.r(),_.p("design:type",Object)],cn.prototype,"buttonOverrides",void 0);
_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],cn);
_.m(cn,"yt-live-chat-message-renderer",function(){if(awK===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;cLy===void 0&&(cLy=document.createElement("template"));var v=cLy;u.call(y,v.content.cloneNode(!0),R.content.firstChild);awK=R}R=awK;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var sbC;var zcF;var au=function(){var R=_.W.apply(this,arguments)||this;R.isRemovable=!1;R.hasPrefilledText=!1;R.isInputDirty=!1;R.overCharacterLimit=!1;R.underCharacterLimit=!1;R.showErrorMessage=!1;return R};
_.O(au,_.W);_.J=au.prototype;_.J.computeId=function(){return this.data.id};
_.J.computeInputData=function(){return this.data.inputData};
_.J.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.J.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.J.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.J.getLiveChatRichMessageInput=function(){return _.hw(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.J.clearInput=function(){_.hw(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.J.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.J.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.J.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.J.handleTextInputCharCountChanged=function(R){R=R.detail&&R.detail.characterCount;R!==void 0&&(this.characterCount=R,R!==0&&(this.isInputDirty=!0))};
_.J.onInputFocusOut=function(){this.isInputDirty=!0};
_.J.onClickCloseButton=function(){_.Ko(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
au.prototype.handleTextInputCharCountChanged=au.prototype.handleTextInputCharCountChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],au.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],au.prototype,"data",void 0);_.A([_.r({computed:"computeId(data.id)"}),_.p("design:type",String)],au.prototype,"id",void 0);_.A([_.r({computed:"computeInputData(data.inputData)"}),_.p("design:type",Object)],au.prototype,"inputData",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.p("design:type",Object)],au.prototype,"isRemovable",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.p("design:type",Object)],au.prototype,"hasPrefilledText",void 0);_.A([_.r({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.p("design:type",Number)],au.prototype,"charactersRemaining",void 0);
_.A([_.r(),_.p("design:type",Number)],au.prototype,"characterCount",void 0);_.A([_.r(),_.p("design:type",Object)],au.prototype,"isInputDirty",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.p("design:type",Object)],au.prototype,"overCharacterLimit",void 0);_.A([_.r({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.p("design:type",Object)],au.prototype,"underCharacterLimit",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.p("design:type",Object)],au.prototype,"showErrorMessage",void 0);_.A([_.fu("yt-live-chat-text-input-field-renderer-character-count-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],au.prototype,"handleTextInputCharCountChanged",null);
_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],au);
_.m(au,"yt-live-chat-poll-editor-input",function(){if(zcF===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;sbC===void 0&&(sbC=document.createElement("template"));var v=sbC;u.call(y,v.content.cloneNode(!0),R.content.firstChild);zcF=R}R=zcF;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var g8y;var CTo;var R7y={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},Sj=function(){var R=_.W.apply(this,arguments)||this;R.modern=_.f("web_button_rework_with_live");R.closeButtonOverrides={iconPosition:"icon-only"};R.startButtonOverrides={style:"mono",type:"filled"};R.addOptionButtonOverrides={style:"mono",type:"text"};return R};
_.O(Sj,_.W);_.J=Sj.prototype;
_.J.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"}}}}};
_.J.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var R;_.e((R=this.data)==null?void 0:R.startButton,_.aG)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.J.computeId=function(){return this.data&&this.data.id||""};
_.J.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.J.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.J.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.J.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.J.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var R=0;R<this.pollEditorInfoWithDefaults.minPollOptions;R++)this.addPollOptionData()};
_.J.getIsValidPoll=function(){var R=this;if(!this.pollEditorInfoWithDefaults)return!1;var y=this.pollEditorInfoWithDefaults,u=y.minPollOptionChars,v=y.maxPollOptionChars,Q=y.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>y.maxPollQuestionChars)return!1;y=_.hw(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(y).every(function(M,K){M=M.characterCount;!M&&Q[K]&&(M=R.ytRendererBehavior.getSimpleString(Q[K]).length);return M!==void 0&&M>=u&&M<=v})};
_.J.isValidPollChanged=function(){var R;_.e((R=this.data)==null?void 0:R.startButton,_.aG)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.J.addPollOptionData=function(){var R=this.pollEditorInfoWithDefaults,y=R.maxPollOptionChars,u=R.optionPlaceholderText,v=R.customOptionPlaceholderText,Q=R.pollOptionData;this.currentNumPollOptions>=R.maxPollOptions||(R={liveChatPollOptionInput:{inputData:{placeholder:v[this.currentNumPollOptions]||u,maxCharacterLimit:y},maxCharacterLimit:y,minCharacterLimit:R.minPollOptionChars,hasPrefilledText:!!v[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=R.minPollOptions}},Q.charCountErrorText&&
(R.liveChatPollOptionInput.charCountErrorText=Q.charCountErrorText),Q.charsRemainingAltLabel&&(R.liveChatPollOptionInput.charsRemainingAltLabel=Q.charsRemainingAltLabel),Q.removeOptionAltText&&(R.liveChatPollOptionInput.removeOptionAltText=Q.removeOptionAltText),this.push("pollOptionsData",R),Q=Array.from(_.hw(_.hw(this.hostElement).querySelector("#poll-options")).children),Q.forEach(function(M,K){M.polymerController.set("data.id",K)}),_.hw(Q[Q.length-1]).querySelector("#input").focus())};
_.J.getPollOptionInputValues=function(){var R=this,y=[],u=_.hw(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),v=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(u).forEach(function(Q,M){var K=null;Q=Q.getLiveChatRichMessageInput();var h;(Q==null?0:(h=Q.textSegments)==null?0:h.length)?K=_.sy(Q):v[M]&&(K=R.formattedStringToLiveChatRichMessageInput(v[M]));y.push(K)});
return y};
_.J.requestCreateAndStartPoll=function(R){var y=this.getPollOptionInputValues();if(!y.some(function(v){return!v})){y={optionText:y};
var u=_.hw(_.hw(this.hostElement).querySelector("#poll-question")).firstChild;u&&u.liveChatRichMessageInput&&(y.questionText=_.sy(u.liveChatRichMessageInput));_.Fh(this.hostElement,[R,y])}};
_.J.selectedChanged=function(){if(this.selected){var R=_.hw(_.hw(this.hostElement).querySelector("#start-button")).firstElementChild;if(R){var y;(y=_.hw(R).querySelector("#button")||_.b8(R).querySelector("button"))==null||y.focus()}}};
_.J.handleTextInputChanged=function(R){var y;((y=R.target)==null?void 0:y.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=R.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.J.handleStartButtonAction=function(R){R.detail.actionName==="yt-service-request"&&(R.stopPropagation(),(R=R.detail.args[1])&&this.requestCreateAndStartPoll(R))};
_.J.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.J.handleServiceRequestCompleted=function(R){this.createPollRequestInFlight=!1;(R=R.detail&&R.detail.data)&&R.success&&(_.Ko(this.hostElement,"picker-cancelled"),_.Ik(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.J.onCloseClick=function(){_.Ko(this.hostElement,"picker-cancelled");_.Ik(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.J.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.J.handlePollEditorInputClosed=function(R){var y=this.pollOptionsData.findIndex(function(u){return u.liveChatPollOptionInput.id===R.detail.id});
this.splice("pollOptionsData",y,1);this.isValidPoll=this.getIsValidPoll()};
_.J.onPickerCancelled=function(){this.reset()};
_.J.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var R=_.hw(_.hw(this.hostElement).querySelector("#poll-question")).firstChild;R&&R.setLiveChatRichMessageInput(null);if(R=_.hw(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){R=_.V(Array.from(R));for(var y=R.next();!y.done;y=R.next())y.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.J.formattedStringToLiveChatRichMessageInput=function(R){return R.simpleText?{text_segments:[R.simpleText]}:{text_segments:R.runs}};
_.RR.Object.defineProperties(Sj.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(R7y,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
Sj.prototype.onPickerCancelled=Sj.prototype.onPickerCancelled;Sj.prototype.handlePollEditorInputClosed=Sj.prototype.handlePollEditorInputClosed;Sj.prototype.handleServiceRequestCompleted=Sj.prototype.handleServiceRequestCompleted;Sj.prototype.handleServiceRequestSent=Sj.prototype.handleServiceRequestSent;Sj.prototype.handleTextInputChanged=Sj.prototype.handleTextInputChanged;Sj.prototype.selectedChanged=Sj.prototype.selectedChanged;Sj.prototype.isValidPollChanged=Sj.prototype.isValidPollChanged;
Sj.prototype.shouldInitializePollChanged=Sj.prototype.shouldInitializePollChanged;Sj.prototype.dataChanged=Sj.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Sj.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Sj.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Sj.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Sj.prototype,"modern",void 0);
_.A([_.r(),_.p("design:type",Object)],Sj.prototype,"closeButtonOverrides",void 0);_.A([_.r(),_.p("design:type",Object)],Sj.prototype,"startButtonOverrides",void 0);_.A([_.r(),_.p("design:type",Object)],Sj.prototype,"addOptionButtonOverrides",void 0);_.A([_.r({computed:"computeId(data.id)",reflectToAttribute:!0}),_.p("design:type",String)],Sj.prototype,"id",void 0);_.A([_.r({value:function(){return[]}}),
_.p("design:type",Array)],Sj.prototype,"pollOptionsData",void 0);_.A([_.G("pollEditorInfoWithDefaults"),_.p("design:type",Object),_.p("design:paramtypes",[])],Sj.prototype,"pollQuestionData",null);_.A([_.r({value:0}),_.p("design:type",Number)],Sj.prototype,"pollQuestionCharacterCount",void 0);_.A([_.G("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.p("design:type",Object),_.p("design:paramtypes",[])],Sj.prototype,"pollQuestionCharactersRemaining",null);
_.A([_.r({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.p("design:type",Boolean)],Sj.prototype,"overQuestionCharacterLimit",void 0);_.A([_.G("data.pollEditorInfo"),_.p("design:type",Object),_.p("design:paramtypes",[])],Sj.prototype,"pollEditorInfoWithDefaults",null);_.A([_.r({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.p("design:type",Number)],Sj.prototype,"currentNumPollOptions",void 0);
_.A([_.r({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.p("design:type",Boolean)],Sj.prototype,"hasMaxNumPollOptions",void 0);_.A([_.G("pollEditorInfoWithDefaults","pollOptionsData"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Sj.prototype,"shouldInitializePoll",null);_.A([_.r(),_.p("design:type",Object)],Sj.prototype,"isValidPoll",void 0);
_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],Sj.prototype,"createPollRequestInFlight",void 0);_.A([_.r(),_.p("design:type",Object)],Sj.prototype,"selected",void 0);_.A([_.r({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.p("design:type",Boolean)],Sj.prototype,"showQuestionErrorMessage",void 0);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sj.prototype,"dataChanged",null);_.A([_.e0("shouldInitializePoll"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sj.prototype,"shouldInitializePollChanged",null);_.A([_.e0("isValidPoll"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sj.prototype,"isValidPollChanged",null);
_.A([_.e0("selected"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sj.prototype,"selectedChanged",null);_.A([_.fu("yt-live-chat-text-input-field-renderer-character-count-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Sj.prototype,"handleTextInputChanged",null);
_.A([_.fu("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sj.prototype,"handleServiceRequestSent",null);_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Sj.prototype,"handleServiceRequestCompleted",null);
_.A([_.fu("yt-live-chat-poll-editor-input-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Sj.prototype,"handlePollEditorInputClosed",null);_.A([_.fu("picker-cancelled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sj.prototype,"onPickerCancelled",null);_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],Sj);
_.m(Sj,"yt-live-chat-poll-editor-panel-renderer",function(){if(CTo===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;g8y===void 0&&(g8y=document.createElement("template"));var v=g8y;u.call(y,v.content.cloneNode(!0),R.content.firstChild);CTo=R}R=CTo;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var yIC;var upE;var YK=function(){return _.W.apply(this,arguments)||this};
_.O(YK,_.W);YK.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
YK.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.RR.Object.defineProperties(YK.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var R,y;return(R=this.data)==null?void 0:(y=R.title)==null?void 0:y.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 _.Sb((R=this.data)==null?void 0:R.onTapCommand)}}});
_.A([_.n(_.ZL.YtEndpointBehavior),_.p("design:type",Object)],YK.prototype,"ytEndpointBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],YK.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],YK.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],YK.prototype,"itemId",null);
_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],YK.prototype,"hasPromotion",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],YK.prototype,"innertubeCommand",null);_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],YK);
_.m(YK,"yt-live-chat-product-picker-panel-item-view-model",function(){if(upE===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;yIC===void 0&&(yIC=document.createElement("template"));var v=yIC;u.call(y,v.content.cloneNode(!0),R.content.firstChild);upE=R}R=upE;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var vMK;var QPK;var Lf=function(){var R=_.W.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};
_.O(Lf,_.W);_.J=Lf.prototype;_.J.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.J.observeSelected=function(){this.selected&&this.hostElement.focus();var R=_.hw(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");R.length&&R[0].focus()};
_.J.onCloseBuyFlow=function(){_.Ko(this.hostElement,"picker-cancelled")};
_.J.onCloseClick=function(){_.Ko(this.hostElement,"picker-cancelled");var R;((R=this.data)==null?0:R.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.e(this.data.closeButton,_.k9))};
_.J.onCloseEngageWithAudienceEditorPanels=function(){_.Ko(this.hostElement,"picker-cancelled")};
Lf.prototype.observeSelected=Lf.prototype.observeSelected;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Lf.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Lf.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Lf.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Lf.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Lf.prototype,"id",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Lf.prototype,"selected",void 0);_.A([_.r(),_.p("design:type",Object)],Lf.prototype,"closeButtonId",void 0);_.A([_.e0("selected"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Lf.prototype,"observeSelected",null);
_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],Lf);
_.m(Lf,"yt-live-chat-product-picker-panel-view-model",function(){if(QPK===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;vMK===void 0&&(vMK=document.createElement("template"));var v=vMK;u.call(y,v.content.cloneNode(!0),R.content.firstChild);QPK=R}R=QPK;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var jPK;var MK4;var sY=function(){var R=_.W.apply(this,arguments)||this;R.iconId="";R.icon="";R.disabled=!1;R.systemIcons=_.f("kevlar_system_icons");return R};
_.O(sY,_.W);_.J=sY.prototype;_.J.attached=function(){_.f("live_chat_compute_product_button_aria_label")||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1"))};
_.J.computeIconId=function(R){return R&&R.icon&&R.icon.iconType?R.icon.iconType.toLowerCase():""};
_.J.computeIcon=function(R){return R&&R.icon&&R.icon.iconType?(R=R.icon.iconType.toLowerCase(),(R.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+R):""};
_.J.computeDisabled=function(R){return!!R};
_.J.computeCommand=function(R,y){return y?void 0:R};
_.J.computeTooltip=function(R,y){return y&&R?R:""};
_.J.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.RR.Object.defineProperties(sY.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){if(!_.f("live_chat_compute_product_button_aria_label"))return"";var R="",y,u,v;if((y=this.data)==null?0:(u=y.text)==null?0:(v=u.runs)==null?0:v.length)R=this.data.text.runs[0].text||"";else{var Q,M;if((Q=this.data)==null?0:(M=Q.text)==null?0:M.simpleText)R=this.data.text.simpleText}var K,h,b;if((K=this.data)==null?0:(h=K.subtext)==null?0:(b=h.runs)==null?0:b.length)R&&(R+=". "),R+=this.data.subtext.runs[0].text||
"";else{var N,T;if((N=this.data)==null?0:(T=N.subtext)==null?0:T.simpleText)R&&(R+=". "),R+=this.data.subtext.simpleText}return R}}});
_.A([_.n(_.ZL.YtEndpointBehavior),_.p("design:type",Object)],sY.prototype,"ytEndpointBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],sY.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],sY.prototype,"data",void 0);_.A([_.r({computed:"computeIconId(data)",reflectToAttribute:!0}),_.p("design:type",Object)],sY.prototype,"iconId",void 0);
_.A([_.r({computed:"computeIcon(data)",reflectToAttribute:!0}),_.p("design:type",Object)],sY.prototype,"icon",void 0);_.A([_.r({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.p("design:type",Object)],sY.prototype,"disabled",void 0);_.A([_.r({computed:"computeCommand(data.command, disabled)"}),_.p("design:type",Object)],sY.prototype,"command",void 0);_.A([_.r({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.p("design:type",String)],sY.prototype,"tooltip",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],sY.prototype,"systemIcons",void 0);_.A([_.G("data.text","data.subtext"),_.r(),_.p("design:type",String),_.p("design:paramtypes",[])],sY.prototype,"ariaLabel",null);_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],sY);
_.m(sY,"yt-live-chat-product-button-renderer",function(){if(MK4===void 0){var R=document.createElement("template");_.H(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" aria-label$="[[ariaLabel]]" disabled$="[[disabled]]" role="menuitem" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');R.content.insertBefore(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;jPK===void 0&&(jPK=document.createElement("template"));var v=jPK;u.call(y,v.content.cloneNode(!0),R.content.firstChild);MK4=R}R=MK4;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var JIB;var VKC;var ze=function(){var R=_.W.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","yt-signal-action-close-engage-with-audience-editor-panel":"onCloseEngageWithAudienceEditorPanels"};return R};
_.O(ze,_.W);_.J=ze.prototype;_.J.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"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.J.computeId=function(R){return R.id||""};
_.J.onCloseClick=function(){_.Ko(this.hostElement,"picker-cancelled")};
_.J.observeSelected=function(){this.selected&&this.hostElement.focus();var R=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");R.length&&R[0].focus()};
_.J.onCloseBuyFlow=function(){_.Ko(this.hostElement,"picker-cancelled")};
_.J.onCloseEngageWithAudienceEditorPanels=function(){_.Ko(this.hostElement,"picker-cancelled")};
ze.prototype.observeSelected=ze.prototype.observeSelected;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],ze.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ze.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],ze.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ze.prototype,"data",void 0);
_.A([_.r({computed:"computeId(data)",reflectToAttribute:!0}),_.p("design:type",String)],ze.prototype,"id",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ze.prototype,"selected",void 0);_.A([_.e0("selected"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ze.prototype,"observeSelected",null);_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],ze);
_.m(ze,"yt-live-chat-product-picker-renderer",function(){if(VKC===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;JIB===void 0&&(JIB=document.createElement("template"));var v=JIB;u.call(y,v.content.cloneNode(!0),R.content.firstChild);VKC=R}R=VKC;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var iZb;var Kgb;var IoB;var h7E;var gf=function(){return _.W.apply(this,arguments)||this};
_.O(gf,_.W);gf.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()};
gf.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
gf.prototype.created=function(){this.ids={background:_.Lq(),maskOne:_.Lq(),maskTwo:_.Lq(),gradient:_.Lq(),largeBackground:_.Lq(),largeGradientOne:_.Lq(),largeGradientTwo:_.Lq(),largeGradientPath:_.Lq()}};
gf.prototype.maybeLoadAnimationBackground=gf.prototype.maybeLoadAnimationBackground;_.A([_.r({value:!1}),_.p("design:type",Boolean)],gf.prototype,"useLargeBackground",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],gf.prototype,"useAnimationBackground",void 0);_.A([_.r({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.p("design:type",Boolean)],gf.prototype,"useRegularBackground",void 0);
_.A([_.r(),_.p("design:type",Object)],gf.prototype,"ids",void 0);_.A([_.r(),_.p("design:type",Object)],gf.prototype,"lottieAnimation",void 0);_.A([_.O7("#animation-background"),_.p("design:type",HTMLDivElement)],gf.prototype,"animationBackground",void 0);_.A([_.e0("useAnimationBackground"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gf.prototype,"maybeLoadAnimationBackground",null);
_.A([_.pu({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],gf);
_.m(gf,"yt-live-interactivity-component-background",function(){if(h7E===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;IoB===void 0&&(IoB=document.createElement("template"));var v=IoB;u.call(y,v.content.cloneNode(!0),R.content.firstChild);h7E=R}R=h7E;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var Cf=function(){var R=_.W.apply(this,arguments)||this;R.characterCount=0;R.showInputErrorMessage=!1;R.startQnaRequestInFlight=!1;R.modern=_.f("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};
_.O(Cf,_.W);_.J=Cf.prototype;
_.J.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]]"}}}}}};
_.J.onCharacterCountChanged=function(R){var y,u,v,Q,M=(u=_.e(this==null?void 0:(y=this.data)==null?void 0:y.creatorCallForQuestions,tvq))==null?void 0:(v=u.inputField)==null?void 0:(Q=v.liveChatTextInputFieldRenderer)==null?void 0:Q.maxCharacterLimit,K,h;M!=null&&(R==null?void 0:(K=R.detail)==null?void 0:K.characterCount)!=null&&_.e(this==null?void 0:(h=this.data)==null?void 0:h.startButton,_.aG)&&(y=R.detail.characterCount>M,this.set("data.startButton.buttonRenderer.isDisabled",R.detail.characterCount===
0||y),this.showInputErrorMessage=y)};
_.J.onCloseClick=function(){_.Ko(this.hostElement,"picker-cancelled");_.Ik(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.J.onPickerCancelled=function(){var R=_.hw(this.hostElement).querySelector("#qna-creator-text-input-field");R&&R.setLiveChatRichMessageInput(null)};
_.J.handleOpenQnaStartPanel=function(){var R=_.hw(this.hostElement).querySelector("#qna-creator-text-input-field");R&&R.focus()};
_.J.handleStartButtonAction=function(R){var y=this;if(R.detail.actionName==="yt-service-request"&&(R.stopPropagation(),R=R.detail.args[1])){var u=_.hw(this.hostElement).querySelector("#qna-creator-text-input-field"),v;(u==null?0:(v=u.liveChatRichMessageInput)==null?0:v.textSegments)&&u.liveChatRichMessageInput.textSegments.length!==0&&(v={rich_message:_.sy(u.liveChatRichMessageInput)},_.Fh(this.hostElement,[R,v]).then(function(){_.Ko(y.hostElement,"picker-cancelled")}))}};
_.J.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.J.handleServiceRequestCompleted=function(R){var y;R=R==null?void 0:(y=R.detail)==null?void 0:y.data;(R==null?0:R.actions)&&R.actions.length>0?this.startQnaRequestInFlight=!1:_.Ik(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.J.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
Cf.prototype.handleServiceRequestError=Cf.prototype.handleServiceRequestError;Cf.prototype.handleServiceRequestCompleted=Cf.prototype.handleServiceRequestCompleted;Cf.prototype.handleServiceRequestSent=Cf.prototype.handleServiceRequestSent;Cf.prototype.onPickerCancelled=Cf.prototype.onPickerCancelled;Cf.prototype.onCharacterCountChanged=Cf.prototype.onCharacterCountChanged;_.A([_.r(),_.p("design:type",Object)],Cf.prototype,"characterCount",void 0);
_.A([_.r(),_.p("design:type",Object)],Cf.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Cf.prototype,"showInputErrorMessage",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Cf.prototype,"startQnaRequestInFlight",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Cf.prototype,"modern",void 0);_.A([_.r(),_.p("design:type",Object)],Cf.prototype,"buttonOverrides",void 0);
_.A([_.r(),_.p("design:type",Object)],Cf.prototype,"closeButtonOverrides",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Cf.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.YX),_.p("design:type",Object)],Cf.prototype,"ytLiveChatReduxBehavior",void 0);_.A([_.n(_.sj.YtLiveChatItemBehavior),_.p("design:type",_.zi)],Cf.prototype,"ytLiveChatItemBehavior",void 0);
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Cf.prototype,"ytActionHandlerBehavior",void 0);_.A([_.fu("yt-live-chat-text-input-field-renderer-character-count-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Cf.prototype,"onCharacterCountChanged",null);_.A([_.fu("picker-cancelled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Cf.prototype,"onPickerCancelled",null);
_.A([_.fu("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Cf.prototype,"handleServiceRequestSent",null);_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Cf.prototype,"handleServiceRequestCompleted",null);
_.A([_.fu("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Cf.prototype,"handleServiceRequestError",null);_.A([_.q({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],Cf);
_.m(Cf,"yt-live-chat-qna-start-panel-renderer",function(){if(Kgb===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;iZb===void 0&&(iZb=document.createElement("template"));var v=iZb;u.call(y,v.content.cloneNode(!0),R.content.firstChild);Kgb=R}R=Kgb;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var bZo;var FgB;var RB=function(){return _.W.apply(this,arguments)||this};
_.O(RB,_.W);RB.prototype.dismiss=function(){_.Ko(this.hostElement,"yt-live-chat-error-message-dismiss")};
RB.prototype.edit=function(){_.Ko(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.A([_.r(),_.p("design:type",Object)],RB.prototype,"data",void 0);_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],RB);
_.m(RB,"yt-live-chat-text-actions-error-message-renderer",function(){if(FgB===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;bZo===void 0&&(bZo=document.createElement("template"));var v=bZo;u.call(y,v.content.cloneNode(!0),R.content.firstChild);FgB=R}R=FgB;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var wHK;var NaB;var oMr;var xVq;var yf=function(){var R=_.W.apply(this,arguments)||this;R.isDarkTheme=document.documentElement.hasAttribute("dark");R.newnessDotEligible=!1;return R};
_.O(yf,_.W);yf.prototype.sendReaction=function(){var R,y,u=((R=this.data)==null?void 0:R.emojiId)||((y=this.data)==null?void 0:y.emoteId),v;u&&((v=this.data)==null?0:v.shouldTriggerAnimation)&&_.Ik(this.hostElement,"yt-create-user-reaction-animation",[u]);var Q;(R=_.Sb((Q=this.data)==null?void 0:Q.onTap))&&_.O4(R,this.hostElement);this.showNewnessDot&&_.Ik(this.hostElement,"yt-hide-newness-dot")};
yf.prototype.onClick=function(R){(!R||R.clientX||R.clientY)&&this.sendReaction()};
yf.prototype.onKeyDown=function(R){R.key!=="Enter"&&R.key!==" "||R.repeat||this.sendReaction()};
_.RR.Object.defineProperties(yf.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,y;return!!(((R=this.data)==null?0:R.emojiId)||((y=this.data)==null?0:y.emoteId))}}});
_.A([_.r(),_.p("design:type",Object)],yf.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],yf.prototype,"isDarkTheme",void 0);_.A([_.r(),_.p("design:type",Object)],yf.prototype,"newnessDotEligible",void 0);_.A([_.G("data.maybeShowNewnessDot"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],yf.prototype,"showNewnessDot",null);_.A([_.G("data.emojiId","data.emoteId"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],yf.prototype,"useYtImage",null);
_.A([_.pu({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],yf);
_.m(yf,"yt-reaction-control-panel-button-view-model",function(){if(xVq===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;oMr===void 0&&(oMr=document.createElement("template"));var v=oMr;u.call(y,v.content.cloneNode(!0),R.content.firstChild);xVq=R}R=xVq;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var Bay;var foq;var uc=function(){var R=_.W.apply(this,arguments)||this;R.reactionControlPanelExpanded=!1;R.isDarkTheme=document.documentElement.hasAttribute("dark");R.newnessDotEligible=!1;return R};
_.O(uc,_.W);_.J=uc.prototype;_.J.expandedButtonsChanged=function(){var R,y;_.oX(this.hostElement,{"--expanded-buttons-height":((y=(R=this.expandedButtonsData)==null?void 0:R.length)!=null?y:0)*36+"px"})};
_.J.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}}};
_.J.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.J.onMouseLeave=function(){var R=this;this.collapseTimer=setTimeout(function(){R.reactionControlPanelExpanded=!1},500)};
_.J.onFocusIn=function(){this.onMouseEnter()};
_.J.onFocusOut=function(){this.onMouseLeave()};
_.J.onCollapsedButtonFocusIn=function(){var R=this;setTimeout(function(){var y;(y=R.expandedButtons.querySelector("button"))==null||y.focus()},100)};
_.J.onCollapsedButtonFocusOut=function(R){R.stopPropagation()};
_.RR.Object.defineProperties(uc.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var R,y;return _.Ps.unsafeClone((R=this.liveReactionsData)==null?void 0:R.emojiButtonData)||((y=this.data)==null?void 0:y.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var R;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((R=this.data)==null||!R.maybeShowNewnessDot)}}});
uc.prototype.expandedButtonsChanged=uc.prototype.expandedButtonsChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],uc.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],uc.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.YX),_.p("design:type",Object)],uc.prototype,"ytLiveChatReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],uc.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],uc.prototype,"reactionControlPanelExpanded",void 0);_.A([_.r({selectorArgs:["data.liveReactionsDataEntityKey"],selector:HMZ}),_.p("design:type",Object)],uc.prototype,"liveReactionsData",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],uc.prototype,"isDarkTheme",void 0);_.A([_.r(),_.p("design:type",Object)],uc.prototype,"newnessDotEligible",void 0);
_.A([_.G("liveReactionsData","data.expandedButtons"),_.p("design:type",Object),_.p("design:paramtypes",[])],uc.prototype,"expandedButtonsData",null);_.A([_.G("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.r({reflectToAttribute:!0}),_.p("design:type",Object),_.p("design:paramtypes",[])],uc.prototype,"showNewnessDot",null);_.A([_.O7("#expanded-buttons"),_.p("design:type",HTMLElement)],uc.prototype,"expandedButtons",void 0);
_.A([_.e0("expandedButtonsData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uc.prototype,"expandedButtonsChanged",null);_.A([_.pu({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],uc);
_.m(uc,"yt-reaction-control-panel-view-model",function(){if(foq===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;Bay===void 0&&(Bay=document.createElement("template"));var v=Bay;u.call(y,v.content.cloneNode(!0),R.content.firstChild);foq=R}R=foq;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var vi=new _.$2("yt-live-chat"),e7B=Date.parse("2024-7-24"),Qf=function(){var R=_.W.apply(this,arguments)||this;R.emojiManager=_.LQ;R.newnessDotEligible=!1;R.newnessDotImpressionCounted=!1;R.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return R};
_.O(Qf,_.W);_.J=Qf.prototype;_.J.emojiCustomizationEnabledChanged=function(){var R;((R=this.data)==null?0:R.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((R=vi.getCreationTime("emoji-customization-count"))&&R<e7B&&vi.set("emoji-customization-count","0"),R=Number(vi.get("emoji-customization-count"))||0,R<3&&(this.newnessDotEligible=!0,vi.set("emoji-customization-count",(R+1).toString())),this.newnessDotImpressionCounted=!0)};
_.J.hideNewnessDot=function(){this.newnessDotEligible=!1;vi.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.J.handleReactionsMute=function(R){var y=_.$I(),u=_.$6(206221),v={checkboxData:{state:R?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};y&&_.zP(y,u,v);this.reactionsMuted=R};
_.J.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.J.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}}};
_.RR.Object.defineProperties(Qf.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var R;return(!((R=this.liveReactionsData)==null||!R.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
Qf.prototype.liveReactionsSettingChanged=Qf.prototype.liveReactionsSettingChanged;Qf.prototype.emojiCustomizationEnabledChanged=Qf.prototype.emojiCustomizationEnabledChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Qf.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Qf.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.YX),_.p("design:type",Object)],Qf.prototype,"ytLiveChatReduxBehavior",void 0);
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Qf.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Qf.prototype,"data",void 0);_.A([_.r(),_.p("design:type",_.aJ)],Qf.prototype,"emojiManager",void 0);_.A([_.r(),_.p("design:type",Object)],Qf.prototype,"newnessDotEligible",void 0);_.A([_.r(),_.p("design:type",Object)],Qf.prototype,"newnessDotImpressionCounted",void 0);
_.A([_.r({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:nmp}),_.p("design:type",Boolean)],Qf.prototype,"liveReactionsSetting",void 0);_.A([_.r({selectorArgs:["data.liveReactionsDataEntityKey"],selector:HMZ}),_.p("design:type",Object)],Qf.prototype,"liveReactionsData",void 0);_.A([_.r({value:function(){var R=_.f("enable_lwe_web_mute"),y=vi.get("allow-reactions");return y===void 0?!1:!y&&R}}),
_.p("design:type",Boolean)],Qf.prototype,"reactionsMuted",void 0);_.A([_.r({reflectToAttribute:!0}),_.G("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Qf.prototype,"liveReactionsEnabled",null);_.A([_.e0("data.emojiCustomizationEnabled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Qf.prototype,"emojiCustomizationEnabledChanged",null);
_.A([_.e0("liveReactionsEnabled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Qf.prototype,"liveReactionsSettingChanged",null);_.A([_.pu({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],Qf);
_.m(Qf,"yt-reaction-control-panel-overlay-view-model",function(){if(NaB===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;wHK===void 0&&(wHK=document.createElement("template"));var v=wHK;u.call(y,v.content.cloneNode(!0),R.content.firstChild);NaB=R}R=NaB;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var lo4={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(R){var y=this.$.pickers.selected;if(y){_.hw(this.hostElement).removeAttribute(y+"-open");var u="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(u="#picker-buttons",y==="emoji"&&_.hw(this.hostElement).querySelector("#emoji-picker-button")&&(u="#emoji-picker-button"));if(u=_.hw(this.hostElement).querySelector(u).querySelector("#"+y))u.active=!1}u=R;y==R&&(u=null);y!=
R&&_.hw(this.hostElement).setAttribute(R+"-open","");this.$.pickers.selected=u;_.Ik(this.hostElement,"yt-live-chat-picker-changed",[u])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var jB=function(){var R=_.W.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=_.f("kevlar_system_icons");R.tallerEmojiPicker=_.f("live_chat_taller_emoji_picker");
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};
_.O(jB,_.W);_.J=jB.prototype;
_.J.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"}}}};
_.J.attached=function(){window.addEventListener("resize",this.onResize)};
_.J.detached=function(){window.removeEventListener("resize",this.onResize)};
_.J.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.J.sendMessage=function(){var R=this,y,u,v,Q;return _.I(function(M){if(R.sendDisabled)return M.return();R.isTooltipVisible&&_.Ik(R.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(R.data.sendButton&&R.data.sendButton.buttonRenderer){R.input.completeEmojis();y=R.data.sendButton.buttonRenderer.serviceEndpoint;if(!y)return M.return();v=((u=_.e(y,_.ijb))==null?void 0:u.clientIdPrefix)||"";Q={client_message_id:v+String(R.numSentMessages++),rich_message:_.sy(R.input.liveChatRichMessageInput)};
R.pendingMessageId=Q.client_message_id;R.inReplyPanel&&(R.sendReplyMessageInFlight=!0);_.Fh(R.hostElement,[y,Q]);R.input.setLiveChatRichMessageInput(null)}_.f$(M)})};
_.J.handleSendButtonAction=function(R){R.detail.actionName==="yt-service-request"&&(R.stopPropagation(),this.sendMessage())};
_.J.onSendCompleted=function(R,y){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(R=this.get("timeoutDurationUsec",y.data))&&this.handleTimeout(Number(R)/1E3);this.errorMessage=this.get("errorMessage",y.data);this.pendingMessageId=""};
_.J.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.Ik(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.J.handlePickerButtonToggle=function(R){R=R.detail.targetId;this.ytPickerBehavior.togglePicker_(R);if(R==="emoji")this.input.focus();else if(R==="qna-start-panel"){var y,u;(y=_.hw(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(u=y.querySelector("#qna-creator-text-input-field"))==null||u.focus()}};
_.J.onComponentReplaced=function(R){var y,u;R.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((y=R.replacement.liveChatMessageInputRenderer)==null?0:(u=y.headerRenderer)==null?0:u.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.J.onEmojiSelect=function(R){this.input.focus();this.input.insertEmoji(R.detail)};
_.J.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.J.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.Ik(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.Ik(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.J.onOpenPopupAction=function(R,y){var u=this;y===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.Ik(u.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.J.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.J.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.J.focusChanged=function(){this.maybeToggleCharacterCount()};
_.J.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};
_.J.computeId=function(){return this.data&&this.data.targetId||""};
_.J.computeSendDisabled=function(R,y,u,v){R=!!(!R||y&&R>y||v);(y=_.hw(this.hostElement).querySelector("#send-button"))&&y.children.length&&(y.children[0].disabled=R);return R};
_.J.handleTimeout=function(R){this.timeoutDurationMs=this.timeoutMs=R;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.J.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};
_.J.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.J.onErrorMessageEdit=function(R){this.input.setLiveChatRichMessageInput(R.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.J.errorMessageChanged=function(){var R=this;_.s7(function(){_.Ik(R.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.J.computeAuthorNameColor=function(R){var y;if(_.f("live_chat_author_name_color_usernames")&&(R==null?0:(y=R.authorName)==null?0:y.simpleText))return _.o5P(_.xhT(R.authorName.simpleText));if(_.f("live_chat_seed_color_usernames")&&(R==null?0:R.authorSeedColorArgb))return _.o5P(_.xi(R.authorSeedColorArgb));if(_.f("live_chat_colored_usernames"))return"#cc0000";var u;return _.f("live_chat_simple_color_usernames")&&(R==null?0:(u=R.authorName)==null?0:u.simpleText)&&(R==null?0:R.authorUsernameColorLight)&&
(R==null?0:R.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.xi(R.authorUsernameColorDark):_.xi(R.authorUsernameColorLight):""};
_.J.onIsTooltipVisibleChanged=function(){var R=_.hw(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){R.hidden=!1;R.setAttribute("role","alert")},0):(R.hidden=!0,R.removeAttribute("role"))};
_.J.onFocusedChanged=function(R){this.inputFocused=R.detail.value};
_.RR.Object.defineProperties(jB.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,y;return((R=this.data)==null?void 0:(y=R.pickers)==null?void 0:y.find(function(u){return u.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)}}});
jB.prototype.onIsTooltipVisibleChanged=jB.prototype.onIsTooltipVisibleChanged;jB.prototype.errorMessageChanged=jB.prototype.errorMessageChanged;jB.prototype.onErrorMessageEdit=jB.prototype.onErrorMessageEdit;jB.prototype.onErrorMessageDismiss=jB.prototype.onErrorMessageDismiss;jB.prototype.focusChanged=jB.prototype.focusChanged;jB.prototype.characterCountChanged=jB.prototype.characterCountChanged;jB.prototype.onEmojiSelect=jB.prototype.onEmojiSelect;jB.prototype.handlePickerButtonToggle=jB.prototype.handlePickerButtonToggle;
jB.prototype.onSendError=jB.prototype.onSendError;jB.prototype.onSendCompleted=jB.prototype.onSendCompleted;jB.prototype.sendMessage=jB.prototype.sendMessage;jB.prototype.dataChanged=jB.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],jB.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],jB.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.n(lo4.YtPickerBehavior),_.p("design:type",Object)],jB.prototype,"ytPickerBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],jB.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.Ll.YtLiveChatTooltipTargetingBehavior),_.p("design:type",Object)],jB.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],jB.prototype,"hasFiredInitialFocusActions",void 0);
_.A([_.r(),_.p("design:type",Object)],jB.prototype,"isBeforeFocusEnabled",void 0);_.A([_.r(),_.p("design:type",Object)],jB.prototype,"data",void 0);_.A([_.r({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.p("design:type",Object)],jB.prototype,"id",void 0);_.A([_.r(),_.p("design:type",Object)],jB.prototype,"characterCount",void 0);_.A([_.r(),_.p("design:type",Object)],jB.prototype,"maxCharacterLimit",void 0);
_.A([_.r(),_.p("design:type",Object)],jB.prototype,"remainingCharacterCount",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],jB.prototype,"inputExpanded",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],jB.prototype,"inputFocused",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],jB.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.A([_.r(),_.p("design:type",_.RS)],jB.prototype,"participantsManager",void 0);
_.A([_.r(),_.p("design:type",Object)],jB.prototype,"buttonOverrides",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],jB.prototype,"inReplyPanel",void 0);_.A([_.G("characterCount, maxCharacterLimit, countdownActive"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],jB.prototype,"sendDisabled",null);_.A([_.r(),_.p("design:type",Object)],jB.prototype,"countdownRatio",void 0);
_.A([_.G("countdownRatio"),_.p("design:type",Number),_.p("design:paramtypes",[])],jB.prototype,"countdownStrokeDashOffset",null);_.A([_.G("countdownRatio"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],jB.prototype,"countdownActive",null);_.A([_.G("data.interactionMessage"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],jB.prototype,"hasInteractionMessage",null);
_.A([_.G("data.emojiPickerButton"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],jB.prototype,"hasEmojiPickerButton",null);_.A([_.G("data, characterCount"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],jB.prototype,"showAvatar",null);_.A([_.G("data.pickers"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],jB.prototype,"hasProductPickerPanelViewModel",null);
_.A([_.r(),_.p("design:type",Object)],jB.prototype,"errorMessage",void 0);_.A([_.r(),_.p("design:type",Object)],jB.prototype,"genericErrorMessage",void 0);_.A([_.r(),_.p("design:type",Object)],jB.prototype,"isTooltipVisible",void 0);_.A([_.r(),_.p("design:type",Object)],jB.prototype,"tooltipTimeout",void 0);_.A([_.G("data.onInitialFocusCommand"),_.p("design:type",String),_.p("design:paramtypes",[])],jB.prototype,"tooltipMessage",null);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],jB.prototype,"systemIcons",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],jB.prototype,"tallerEmojiPicker",void 0);_.A([_.G("data"),_.p("design:type",String),_.p("design:paramtypes",[])],jB.prototype,"authorNameColor",null);_.A([_.r(),_.p("design:type",Object)],jB.prototype,"sendReplyMessageInFlight",void 0);_.A([_.O7("#input"),_.p("design:type",_.zib)],jB.prototype,"input",void 0);
_.A([_.O7("#count"),_.p("design:type",HTMLElement)],jB.prototype,"count",void 0);_.A([_.O7("#input-container"),_.p("design:type",HTMLElement)],jB.prototype,"inputContainer",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jB.prototype,"dataChanged",null);_.A([_.fu("yt-live-chat-send-message"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype",Promise)],jB.prototype,"sendMessage",null);
_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[Event,_.Mp]),_.p("design:returntype")],jB.prototype,"onSendCompleted",null);_.A([_.fu("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jB.prototype,"onSendError",null);
_.A([_.fu("yt-live-chat-icon-toggle-button-renderer-toggle"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],jB.prototype,"handlePickerButtonToggle",null);_.A([_.fu("yt-emoji-select"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],jB.prototype,"onEmojiSelect",null);
_.A([_.e0("characterCount"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jB.prototype,"characterCountChanged",null);_.A([_.e0("inputFocused"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jB.prototype,"focusChanged",null);_.A([_.fu("yt-live-chat-error-message-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jB.prototype,"onErrorMessageDismiss",null);
_.A([_.fu("yt-live-chat-error-message-edit"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],jB.prototype,"onErrorMessageEdit",null);_.A([_.e0("errorMessage"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jB.prototype,"errorMessageChanged",null);_.A([_.e0("isTooltipVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jB.prototype,"onIsTooltipVisibleChanged",null);
_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],jB);
_.m(jB,"yt-live-chat-message-input-renderer",function(){if(tgr===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;pKC===void 0&&(pKC=document.createElement("template"));var v=pKC;u.call(y,v.content.cloneNode(!0),R.content.firstChild);tgr=R}R=tgr;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var OZ4;var ZZC;var MZ=function(){var R=_.W.apply(this,arguments)||this;R.systemIcons=_.f("kevlar_system_icons");R.firedOnClickCommand=!1;R.inReplyPanel=!1;return R};
_.O(MZ,_.W);
MZ.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"}}}};
MZ.prototype.onButtonToggle=function(R){R.target.disabled||this.ytPickerBehavior.togglePicker_(R.detail.targetId)};
MZ.prototype.onClick=function(){var R=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.Ik(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return R.firedOnClickCommand=!1},5E3))};
_.RR.Object.defineProperties(MZ.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var R,y;return((R=this.data)==null?void 0:(y=R.panels)==null?void 0:y.find(function(u){return u.liveChatProductPickerPanelViewModel}))!==void 0}}});
MZ.prototype.onButtonToggle=MZ.prototype.onButtonToggle;_.A([_.n(lo4.YtPickerBehavior),_.p("design:type",Object)],MZ.prototype,"ytPickerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],MZ.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],MZ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],MZ.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],MZ.prototype,"systemIcons",void 0);_.A([_.r({reflectToAttribute:!1}),_.p("design:type",Object)],MZ.prototype,"firedOnClickCommand",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],MZ.prototype,"inReplyPanel",void 0);_.A([_.G("data.pickers"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],MZ.prototype,"hasProductPickerPanelViewModel",null);
_.A([_.fu("yt-live-chat-icon-toggle-button-renderer-toggle"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],MZ.prototype,"onButtonToggle",null);_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],MZ);
_.m(MZ,"yt-live-chat-restricted-participation-renderer",function(){if(ZZC===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;OZ4===void 0&&(OZ4=document.createElement("template"));var v=OZ4;u.call(y,v.content.cloneNode(!0),R.content.firstChild);ZZC=R}R=ZZC;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var JQ=function(){var R=_.W.apply(this,arguments)||this;R.genericErrorMessage=_.ye("Error, try again.");R.inReplyPanel=!1;R.hideBorder=!1;return R};
_.O(JQ,_.W);JQ.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}}}}}};
_.RR.Object.defineProperties(JQ,{template:{configurable:!0,enumerable:!0,get:function(){return qib()}}});
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],JQ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],JQ.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],JQ.prototype,"genericErrorMessage",void 0);_.A([_.r(),_.p("design:type",Object)],JQ.prototype,"inReplyPanel",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],JQ.prototype,"hideBorder",void 0);
_.A([_.pu({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],JQ);_.m(JQ,"yt-live-chat-engagement-panel-input-renderer",function(){return qib()},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var HZr,nMo;HZr=_.$6(115994);nMo=_.$6(115993);_.Vf=function(R,y,u){var v=this;var Q=u.dragDownAction;this.layer=0;this.JSC$22373_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return v.dragDownAction()}}}};
this.JSC$22373_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return v.dragDownAction()}}}};
this.fullscreen=!1;var M=_.GN();_.Br(M,HZr,this.layer);_.Br(M,nMo,this.layer);this.dragDownAction=function(){Q();_.gW(M,{visualElement:v.fullscreen?HZr:nMo})};
this.gesture=new _.i5(R,y,this.JSC$22373_watchConfig,"pandown");this.attach()};
_.Vf.prototype.attach=function(){this.gesture.attach()};
_.Vf.prototype.detach=function(){this.gesture.detach()};
_.Vf.prototype.update=function(R){this.fullscreen=R;this.gesture.config=R?this.JSC$22373_watchFullScreenConfig:this.JSC$22373_watchConfig};var Gay={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(R){if(R&&R.length==1&&Array.isArray(R[0].loggingUrls)){R=_.Ps.unsafeClone(R[0]);var y=this.macros||{},u=this.getAdModuleClient_();if(!u)return _.NQ();R.loggingUrls.forEach(function(v){if(v.baseUrl){var Q=v.baseUrl;var M=y;M=M===void 0?{}:M;Q=u.getOptions().includes("replaceUrlMacros")?_.I98(u,"replaceUrlMacros",{url:Q,additionalMapping:M}):Q;v.baseUrl=Q}},this);
R=[R]}return _.Fh(this.hostElement,R)},
getAdModuleClient_:function(){var R=_.I8(this);return R?(R=R.getPlayer())?new _.kQ(R):null:null}}]};var rI2;var ic=function(){var R=_.W.apply(this,arguments)||this;R.isCollapsed=!1;R.modernPanels=_.f("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};
_.O(ic,_.W);_.J=ic.prototype;_.J.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.J.onDonateTap=function(){var R=this.get("data.donateButton.buttonRenderer.command");if(R){var y=_.$I(),u=this.get("data.donateButton.buttonRenderer.trackingParams");y&&u&&_.zP(y,_.U4(u));this.ytOpenPopupBehavior.openPopup(R)}};
_.J.onShowMore=function(){this.isCollapsed=!1;var R=_.$I(),y=this.get("data.expandButton.buttonRenderer.trackingParams");R&&y&&_.zP(R,_.U4(y))};
_.J.onShowLess=function(){this.isCollapsed=!0};
_.J.dataChanged=function(){_.oX(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.J.onDarkModeToggledAction=function(R){this.isDarkTheme=R};
_.J.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()};
_.J.handleOpenPopupAction=function(R){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",R)&&_.Ik(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.J.computeHeaderBackgroundUrl=function(R,y){if(R)return y?R.headerBackgroundDarkUrl:R.headerBackgroundUrl};
_.J.isProgressBarVisible=function(R){return!(!R||R.progress===void 0)};
_.J.headerBackgroundClass=function(){return _.EB("HTML_DIR")==="rtl"?"flip":""};
ic.prototype.dataChanged=ic.prototype.dataChanged;_.A([_.n(_.Oj.YtOpenPopupBehavior),_.p("design:type",Object)],ic.prototype,"ytOpenPopupBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],ic.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ic.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],ic.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],ic.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],ic.prototype,"isCollapsed",void 0);_.A([_.r({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.p("design:type",String)],ic.prototype,"headerBackgroundUrl",void 0);_.A([_.r(),_.p("design:type",Boolean)],ic.prototype,"isDarkTheme",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ic.prototype,"modernPanels",void 0);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ic.prototype,"dataChanged",null);_.A([_.q({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],ic);
_.m(ic,"ytd-donation-shelf-renderer",function(){if(rI2!==void 0)return rI2;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return rI2=R},{mode:1});var PJF;var WgE=function(){return _.W.apply(this,arguments)||this};
_.O(WgE,_.W);_.A([_.r(),_.p("design:type",Object)],WgE.prototype,"data",void 0);_.A([_.q({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],WgE);
_.m(WgE,"ytd-donation-unavailable-renderer",function(){if(PJF!==void 0)return PJF;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return PJF=R},{mode:1});var dVK;var KB=function(){return _.W.apply(this,arguments)||this};
_.O(KB,_.W);KB.prototype.computeIconType=function(R){return R?"yt-icons:"+R.toLowerCase():null};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],KB.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],KB.prototype,"data",void 0);_.A([_.q({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],KB);
_.m(KB,"ytd-limited-state-message-renderer",function(){if(dVK!==void 0)return dVK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return dVK=R},{mode:1});var UVK;var IB=function(){return _.W.apply(this,arguments)||this};
_.O(IB,_.W);IB.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
IB.prototype.onTap=function(R){var y=this.data&&this.data.endpoint;y&&!_.JF(_.u8(R),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.Ko(this.hostElement,"yt-navigate",{endpoint:y})};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],IB.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],IB.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],IB.prototype,"data",void 0);_.A([_.q({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],IB);
_.m(IB,"ytd-autotagging-metadata-renderer",function(){if(UVK!==void 0)return UVK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return UVK=R},{mode:1});var kaq;var hQ=function(){return _.W.apply(this,arguments)||this};
_.O(hQ,_.W);hQ.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],hQ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],hQ.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],hQ.prototype,"data",void 0);_.A([_.q({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],hQ);
_.m(hQ,"ytd-autotagging-metadata-row-renderer",function(){if(kaq!==void 0)return kaq;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return kaq=R},{mode:1});var EMF;var $VF;var bc=function(){var R=_.W.apply(this,arguments)||this;R.engagementPanelContent=!1;return R};
_.O(bc,_.W);bc.prototype.computeHasDividerLine=function(R,y){return R&&!y};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],bc.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],bc.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.p("design:type",Boolean)],bc.prototype,"hasDividerLine",void 0);_.A([_.r(),_.p("design:type",Object)],bc.prototype,"engagementPanelContent",void 0);
_.A([_.q({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],bc);
_.m(bc,"ytd-metadata-row-header-renderer",function(){if($VF!==void 0)return $VF;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return $VF=R},{mode:1});var qm4;var FR=function(){return _.W.apply(this,arguments)||this};
_.O(FR,_.W);FR.prototype.computeHasDividerLine=function(R){return R};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],FR.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],FR.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.p("design:type",Boolean)],FR.prototype,"hasDividerLine",void 0);_.A([_.q({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],FR);
_.m(FR,"ytd-metadata-row-renderer",function(){if(qm4!==void 0)return qm4;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return qm4=R},{mode:1});var XHo;var wH=function(){return _.W.apply(this,arguments)||this};
_.O(wH,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],wH.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],wH.prototype,"data",void 0);_.A([_.q({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],wH);
_.m(wH,"ytd-metadata-with-image-row-renderer",function(){if(XHo!==void 0)return XHo;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return XHo=R},{mode:1});var mVK;var NZ=function(){var R=_.W.apply(this,arguments)||this;R.rounded=!0;R.fixie=!1;R.fullWidth=!1;return R};
_.O(NZ,_.W);_.J=NZ.prototype;_.J.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.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(y){R.onEndpointLinkKeyPress(y)}))};
_.J.onEndpointLinkKeyPress=function(R){R.target===this.endpointLink&&R.keyCode===13&&_.Ko(this.hostElement,"click")};
_.J.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var R;if((R=this.data)==null?0:R.endpoint)_.wr(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.J.onYtNavigate=function(R){this.endpointHref||(R.stopPropagation(),R.preventDefault())};
_.J.onInformationButtonContainerClick=function(R){R.target.id!=="information-button-container"&&(R.stopPropagation(),R.preventDefault())};
_.J.computeStyle=function(R){return R};
_.J.computeIsThumbnailStyle=function(R){return R==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.J.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}};
_.J.computeThumbnailObjectFit=function(R){switch(R){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.RR.Object.defineProperties(NZ.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}}});
NZ.prototype.onYtNavigate=NZ.prototype.onYtNavigate;NZ.prototype.onClick=NZ.prototype.onClick;NZ.prototype.onDataChanged=NZ.prototype.onDataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],NZ.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],NZ.prototype,"componentBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],NZ.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],NZ.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.p("design:type",String)],NZ.prototype,"componentStyle",void 0);_.A([_.r({computed:"computeIsThumbnailStyle(data.style)"}),_.p("design:type",Boolean)],NZ.prototype,"isThumbnailStyle",void 0);_.A([_.r({computed:"computeThumbnailObjectFit(data.style)"}),_.p("design:type",String)],NZ.prototype,"thumbnailObjectFit",void 0);
_.A([_.r({computed:"computeThumbnailWidth(data.style)"}),_.p("design:type",Number)],NZ.prototype,"thumbnailWidth",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],NZ.prototype,"rounded",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],NZ.prototype,"fixie",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],NZ.prototype,"fullWidth",void 0);_.A([_.O7("#endpoint-link"),_.p("design:type",HTMLAnchorElement)],NZ.prototype,"endpointLink",void 0);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],NZ.prototype,"onDataChanged",null);_.A([_.G("data.endpoint"),_.p("design:type",Object),_.p("design:paramtypes",[])],NZ.prototype,"endpointHref",null);_.A([_.fu("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],NZ.prototype,"onClick",null);
_.A([_.fu("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],NZ.prototype,"onYtNavigate",null);_.A([_.q({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],NZ);
_.m(NZ,"ytd-rich-metadata-renderer",function(){if(mVK!==void 0)return mVK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return mVK=R},{mode:_.TN("kevlar_poly_si_batch_j075")?1:2});var AIF;var Tz=function(){var R=_.W.apply(this,arguments)||this;R.fixie=!1;R.fullWidth=!1;return R};
_.O(Tz,_.W);Tz.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
Tz.prototype.computeHasDividerLine=function(R){return R};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Tz.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Tz.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.p("design:type",Boolean)],Tz.prototype,"hasDividerLine",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Tz.prototype,"fixie",void 0);_.A([_.r(),_.p("design:type",Object)],Tz.prototype,"fullWidth",void 0);
_.A([_.q({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],Tz);
_.m(Tz,"ytd-rich-metadata-row-renderer",function(){if(AIF!==void 0)return AIF;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return AIF=R},{mode:1});var oB=function(){var R=_.W.apply(this,arguments)||this;R.engagementPanelContent=!1;R.fixie=!1;R.fullWidth=!1;return R};
_.O(oB,_.W);
oB.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"}}}};
oB.prototype.computeCollapsibleItems=function(R,y,u){return R===void 0||y===void 0||u===void 0||u?[]:R.slice(y)};
oB.prototype.computeAlwaysShownItems=function(R,y){return R&&R.length?R.slice(0,y):[]};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],oB.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],oB.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],oB.prototype,"data",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],oB.prototype,"collapsed",void 0);
_.A([_.r({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.p("design:type",Array)],oB.prototype,"alwaysShownItems",void 0);_.A([_.r({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.p("design:type",Array)],oB.prototype,"collapsibleItems",void 0);_.A([_.r(),_.p("design:type",Object)],oB.prototype,"engagementPanelContent",void 0);_.A([_.r(),_.p("design:type",Object)],oB.prototype,"fixie",void 0);
_.A([_.r(),_.p("design:type",Object)],oB.prototype,"fullWidth",void 0);_.A([_.q({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],oB);
_.m(oB,"ytd-metadata-row-container-renderer",function(){if(EMF!==void 0)return EMF;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return EMF=R},{mode:1});var DVy;var x_=function(){var R=_.W.apply(this,arguments)||this;R.currentPageUrl="";R.baseUrl="";R.isHiddenByUser=null;R.hidden=!1;R.showAboveScrim=!1;R.watchNextGrid=_.f("kevlar_watch_grid");R.modernButtons=_.f("web_modern_buttons");R.roundedContainer=!0;R.noBorder=!1;R.roundBackground=!_.f("live_chat_round_background_killswitch");R.overflowHideChat=_.f("live_chat_overflow_hide_chat");R.forceDarkTheme=!1;R.theaterWatchWhile=!1;R.isListeningForPlayerProgress=!1;R.JSC$22409_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};
_.O(x_,_.W);_.J=x_.prototype;_.J.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.h_(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.J.created=function(){var R=this;this.handleIframeEventListener=function(y){R.handleIframeEvent(y)};
this.handleKeyboardEventListener=function(y){R.handleKeyboardEvent(y)};
this.JSC$22409_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22409_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22409_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22409_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22409_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.J.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()};
_.J.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};
_.J.computeBaseUrl=function(R){var y="/live_chat";this.isChatReplay()&&(y="/live_chat_replay");return _.KI(_.iA(_.Vh(_.pF(R),y),null),"").toString()};
_.J.dataChanged=function(){_.f("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.J.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var R=this.url;if(this.isChatReplay()&&this.player){var y=Math.floor(this.player.getProgressState().current*1E3);R=_.cY(_.pF(R),"playerOffsetMs",y.toString()).toString()}y=this.chatframe;try{var u=R==="about:blank"?_.ESc:_.Eo(R),v=y.contentDocument.location,Q=_.mK(u);Q!==void 0&&v.replace(Q)}catch(M){y.src=R}}};
_.J.collapsedChanged=function(){_.Ko(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.J.handleIframeEvent=function(R){if(R&&this.baseUrl.startsWith(R.origin)&&R.source===this.chatframe.contentWindow&&_.Sv(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 y=_.ua().resolve(_.yN(_.KMi));if(y){var u=R.ports,v;u&&u.length&&(v=function(){u[0].postMessage({})});
R=R.data["yt-show-feedback-dialog"];y.showFeedbackDialog(R.customProductData,R.feedbackContent,v,R.bucket)}}else if(R.data["yt-show-survey"])_.Ko(this.hostElement,"yt-show-survey",R.data["yt-show-survey"]);else if(R.data["yt-purchase-membership"])_.ua().resolve(_.jX).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"])_.v3();
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&&(y={cpn:this.player.getVideoData().cpn},_.P3("liveChatBeingModerated",y))};
_.J.attachLiveChatResponseVeTrackingParams=function(R){R=_.U4(R);var y=_.$I(),u=_.D6("liveChatRenderer.trackingParams",this.data);y&&u&&_.ak(y,_.U4(u),R)};
_.J.handleBuyflowMessages=function(R){var y=R.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,u=R.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,v=R.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.JB8(_.Vz(_.ya),y.replace(/-/g,"+").replace(/_/g,"/"),function(Q){R.ports[0].postMessage({success:!0,buyFlowResponse:Q})},void 0,function(Q){R.ports[0].postMessage({success:!1,
error:Q&&Q.message||"Buyflow rejected without error."})},_.O9().get("hl"),void 0,function(){R.ports[0].postMessage({closed:!0})},u,v)};
_.J.setupPlayerProgressRelay=function(){var R=this;if(!this.isListeningForPlayerProgress){var y=_.hF();y!=null&&y.getPlayerPromise&&(y.getPlayerPromise().then(function(u){R.playerApiReady(u)}),this.isListeningForPlayerProgress=!0)}};
_.J.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.J.playerApiReady=function(R){this.setPlayer(R)};
_.J.playerProgressHandler=function(){if(this.player){var R=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":R.current})}};
_.J.playerAdStartHandler=function(R){this.postToContentWindow({"yt-player-ad-start":R})};
_.J.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.J.playerStateChangeHandler=function(R){this.postToContentWindow({"yt-player-state-change":R})};
_.J.setPlayer=function(R){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22409_playerEvents);R&&(this.player=R,this.ytPlayerListenerBehavior.listenToPlayerEvents(R,this.JSC$22409_playerEvents),_.Ko(this.hostElement,"player-api-ready"))};
_.J.liveChatPageUrl=function(R,y,u,v){return!u||y?"about:blank":u.liveChatRenderer?(y=_.pF(this.currentPageUrl).JSC$10001_queryData_,xU4(y),R=_.pF(R),y.add("continuation",u.liveChatRenderer.continuations[0].reloadContinuationData.continuation),u=_.EZ()==="USER_INTERFACE_THEME_DARK",(v||u)&&y.add("dark_theme","true"),_.iA(R,y),v=_.pF(R.toString()),u=v.JSC$10001_queryData_,"SESSION_INDEX"in _.UB&&(u.add("authuser",_.EB("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.UB&&u.add("pageId",_.EB("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.UB&&u.add("sdc",_.EB("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),v.toString()):""};
_.J.isCollapsed=function(R,y){return y!==null?y:this.isChatReplay()||R&&R.conversationBarRenderer&&R.conversationBarRenderer.availabilityMessage?!0:R?R.liveChatRenderer?R.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.f("live_chat_hide_premiere_replay_message")||R.conversationBarRenderer&&R.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.J.isHidden=function(R,y,u){var v=y&&y.conversationBarRenderer&&y.conversationBarRenderer.availabilityMessage,Q=y&&y.liveChatRenderer&&y.liveChatRenderer.showHideButton,M=y&&y.liveChatRenderer&&y.liveChatRenderer.showButton;return u&&R&&!v&&!M||!u&&R&&!v&&!Q?!0:y&&y.liveChatRenderer&&y.liveChatRenderer.initialDisplayState?y.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.J.computeButtonOverride=function(R,y){if(R&&y)return{type:"outline"}};
_.J.setCollapsedState=function(R){_.e(R,_.LBg)&&(this.isHiddenByUser=!!_.e(R,_.LBg).collapsed,!this.isHiddenByUser&&_.f("enable_teaser_framework_web_client")&&_.Ik(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.J.forwardReduxActionToIframe=function(R){this.postToContentWindow({"yt-live-chat-forward-redux-action":R})};
_.J.onLoopRangeChange=function(R){this.showAboveScrim=!(R==null||!R.postId)};
_.J.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.J.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.J.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.J.sendDarkThemePostMessage=function(R){this.postToContentWindow({"yt-live-chat-set-dark-theme":R})};
_.J.onLiveChatBuyFlowCallback=function(R){this.postToContentWindow({"yt-live-chat-buy-flow-callback":R})};
_.J.handleKeyboardEvent=function(R){(0,_.Ps.containsValue)(o8b,R.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:R.type,keyCode:R.keyCode}})};
_.J.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.J.postToContentWindow=function(R){if(this.isFrameReady)try{var y=window.location.protocol+"//"+window.location.host,u;(u=this.chatframe)!=null&&u.contentWindow?this.chatframe.contentWindow.postMessage(R,y):_.kT(new _.OL("Tried posting a message to an iframe with no content window",R))}catch(v){_.dI(v)}};
_.J.shouldHideChatFrame=function(R){return R&&_.f("hide_live_chat_button_when_collapsed")};
_.RR.Object.defineProperties(x_.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.f("live_chat_overflow_hide_chat")||_.f("web_watch_chat_hide_button_killswitch"))return _.f("live_chat_overflow_hide_chat");var R,y,u,v;return!!((R=this.data)==null?0:(y=R.liveChatRenderer)==null?0:(u=y.header)==null?0:(v=u.liveChatHeaderRenderer)==null?0:v.collapseButton)}}});
x_.prototype.collapsedChanged=x_.prototype.collapsedChanged;x_.prototype.urlChanged=x_.prototype.urlChanged;x_.prototype.dataChanged=x_.prototype.dataChanged;x_.prototype.onShowHideChat=x_.prototype.onShowHideChat;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],x_.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],x_.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],x_.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.Ra.YtPlayerListenerBehavior),_.p("design:type",_.yH)],x_.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.n(_.Oj.YtOpenPopupBehavior),_.p("design:type",Object)],x_.prototype,"ytOpenPopupBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],x_.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],x_.prototype,"currentPageUrl",void 0);
_.A([_.r({computed:"computeBaseUrl(currentPageUrl,data)"}),_.p("design:type",Object)],x_.prototype,"baseUrl",void 0);_.A([_.r({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.p("design:type",String)],x_.prototype,"url",void 0);_.A([_.r(),_.p("design:type",Object)],x_.prototype,"isHiddenByUser",void 0);_.A([_.r({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.p("design:type",Object)],x_.prototype,"hidden",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.p("design:type",Boolean)],x_.prototype,"collapsed",void 0);_.A([_.r({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.p("design:type",Boolean)],x_.prototype,"hideChatFrame",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],x_.prototype,"showAboveScrim",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],x_.prototype,"watchNextGrid",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],x_.prototype,"modernButtons",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],x_.prototype,"roundedContainer",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],x_.prototype,"noBorder",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],x_.prototype,"roundBackground",void 0);
_.A([_.r({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.p("design:type",Object)],x_.prototype,"toggleButtonOverride",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],x_.prototype,"overflowHideChat",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],x_.prototype,"forceDarkTheme",void 0);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],x_.prototype,"enableShowWithoutHideChatButton",null);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],x_.prototype,"theaterWatchWhile",void 0);_.A([_.O7("#chatframe"),_.p("design:type",HTMLIFrameElement)],x_.prototype,"chatframe",void 0);_.A([_.fu("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],x_.prototype,"onShowHideChat",null);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],x_.prototype,"dataChanged",null);
_.A([_.e0("url"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],x_.prototype,"urlChanged",null);_.A([_.e0("collapsed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],x_.prototype,"collapsedChanged",null);_.A([_.q({is:"ytd-live-chat-frame",disableElementRegistration:!0})],x_);
_.m(x_,"ytd-live-chat-frame",function(){if(DVy!==void 0)return DVy;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return DVy=R},{mode:1});var pHC;var Bi=function(){var R=_.W.apply(this,arguments)||this;R.modern=_.f("web_modern_buttons");R.buttonOverrides={style:"call-to-action",type:"filled"};return R};
_.O(Bi,_.W);Bi.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=_.aH(this.data.backgroundColor)))};
Bi.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var R=this.getFormattedStringLoggingDirectives(this.data.headline);R&&this.rendererBehavior.logExplicitClick(R)}};
Bi.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var R=this.getFormattedStringLoggingDirectives(this.data.description);R&&this.rendererBehavior.logExplicitClick(R)}};
Bi.prototype.getFormattedStringLoggingDirectives=function(R){return R&&R.runs&&R.runs.length>0&&R.runs[0]&&R.runs[0].loggingDirectives?R.runs[0].loggingDirectives:null};
Bi.prototype.dataChanged=Bi.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Bi.prototype,"rendererBehavior",void 0);_.A([_.n(Gay.YtMacroReplacementBehavior),_.p("design:type",Object)],Bi.prototype,"macroReplacementBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Bi.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],Bi.prototype,"navigationEndpoint",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Bi.prototype,"enableColors",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Bi.prototype,"modern",void 0);_.A([_.r(),_.p("design:type",Object)],Bi.prototype,"buttonOverrides",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Bi.prototype,"dataChanged",null);_.A([_.q({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],Bi);
_.m(Bi,"ytd-action-basic-immersive-content-renderer",function(){if(pHC!==void 0)return pHC;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return pHC=R},{mode:1});var tKF;var cI4;var fB=function(){return _.W.apply(this,arguments)||this};
_.O(fB,_.W);fB.prototype.dataChanged=function(){var R;((R=this.data)==null?void 0:R.backgroundColor)!==void 0&&_.oX(this.hostElement,{"--bgu-color":_.aH(this.data.backgroundColor)})};
fB.prototype.onImageTileClick=function(){var R;((R=this.data)==null?0:R.navigationEndpoint)&&_.Ko(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var y;((y=this.data)==null?0:y.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.RR.Object.defineProperties(fB.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,y,u;if(((R=this.data)==null?void 0:(y=R.detailsLine)==null?void 0:y.texts)!=null&&((u=this.data)==null?void 0:u.detailsLine.texts.length)>0){var v;return(v=this.data)==null?void 0:v.detailsLine.texts.map(function(Q){return Q.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var R,y,u;if(((R=this.data)==null?void 0:(y=R.optionalDetailsLine)==null?void 0:y.texts)!=null&&((u=this.data)==null?void 0:u.optionalDetailsLine.texts.length)>0){var v;return(v=this.data)==null?void 0:v.optionalDetailsLine.texts.map(function(Q){return Q.text}).join("")}return null}}});
fB.prototype.dataChanged=fB.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],fB.prototype,"rendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],fB.prototype,"componentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],fB.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.G("data.backgroundColor"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],fB.prototype,"hasBackgroundColor",null);
_.A([_.G("data.objectFit"),_.p("design:type",Object),_.p("design:paramtypes",[])],fB.prototype,"getObjectFit",null);_.A([_.r({reflectToAttribute:!0}),_.G("data.tileRenderingStyle"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],fB.prototype,"hasTileMetadata",null);_.A([_.G("data.detailsLine"),_.p("design:type",Object),_.p("design:paramtypes",[])],fB.prototype,"getSecondaryDetails",null);
_.A([_.G("data.optionalDetailsLine"),_.p("design:type",Object),_.p("design:paramtypes",[])],fB.prototype,"getOptionalDetails",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],fB.prototype,"dataChanged",null);_.A([_.q({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],fB);
_.m(fB,"ytd-image-tile-renderer",function(){if(cI4!==void 0)return cI4;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return cI4=R},{mode:1});var aoy;var eB=function(){return _.W.apply(this,arguments)||this};
_.O(eB,_.W);eB.prototype.getOpenLinkIcon=function(){return _.f("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
eB.prototype.onSitelinkTap=function(){_.Ko(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.f("kevlar_command_handler_migration_killswitch"))_.wr(this.hostElement,this.data.clickCommands,this.hostElement);else for(var R=_.V(this.data.clickCommands),y=R.next();!y.done;y=R.next())this.ytComponentBehavior.resolveCommand(y.value)};
_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],eB.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],eB.prototype,"rendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],eB.prototype,"data",void 0);_.A([_.q({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],eB);
_.m(eB,"ytd-sitelink-renderer",function(){if(aoy!==void 0)return aoy;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return aoy=R},{mode:1});var lc=function(){var R=_.W.apply(this,arguments)||this;R.paddingFix=_.f("enable_ads_web_ep_buenos_aires_and_padding_fix");return R};
_.O(lc,_.W);lc.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"}}}};
lc.prototype.dataChanged=function(){var R=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(y){y.clickTrackingParams&&delete y.clickTrackingParams;R.ytMacroReplacementBehavior.sendServiceRequestAction([y])})};
lc.prototype.shouldHideFooter=function(R){return!(R&&_.f("use_ads_engagement_panel_desktop_footer_cta"))};
_.RR.Object.defineProperties(lc.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var R,y;return((R=this.data)==null?void 0:R.imageTileRenderers)===void 0||((y=this.data)==null?void 0:y.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(u){var v;return(v=_.e(u,O8F))==null?void 0:v.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var R,y;return((R=this.data)==null?void 0:R.imageTileRenderers)===void 0||((y=this.data)==null?void 0:y.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(u){var v;return((v=_.e(u,O8F))==null?void 0:v.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
lc.prototype.dataChanged=lc.prototype.dataChanged;_.A([_.n(Gay.YtMacroReplacementBehavior),_.p("design:type",Object)],lc.prototype,"ytMacroReplacementBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],lc.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],lc.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],lc.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],lc.prototype,"paddingFix",void 0);_.A([_.r({reflectToAttribute:!0}),_.G("data.imageTileRenderers"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],lc.prototype,"removeBorderFromImageTiles",null);_.A([_.r({reflectToAttribute:!0}),_.G("data.imageTileRenderers"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],lc.prototype,"useFooteredMetadataRenderingStyle",null);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lc.prototype,"dataChanged",null);_.A([_.q({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],lc);
_.m(lc,"ytd-action-engagement-panel-content-renderer",function(){if(tKF!==void 0)return tKF;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return tKF=R},{mode:1});var SmF;var YmK=_.Jd(function(R){var y=R.data;var u=R.customCommandResolver;return _.F("ad-grid-card-image-full-metadata-view-model",{class:function(){var v;return((v=y().interaction)==null?0:v.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.VX(_.vA({visibilityCallback:function(v){var Q,M=(Q=y().interaction)==null?void 0:Q.onFirstVisible;v&&M&&_.zN(M)},
showOption:_.i2}),_.CA(function(){return y().interaction},u)),
"aria-label":function(){var v,Q;return(v=y().interaction)==null?void 0:(Q=v.accessibility)==null?void 0:Q.label}},_.F("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.F(_.mk,{data:function(){return y().adImage}},{adImageViewModel:function(v){return _.F(_.lz,{data:v.data,
customCommandResolver:u})}})),_.F("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.F(_.w,{cond:function(){return y().headline},
then:function(v){return _.F(_.QM,{text:v,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.F(_.w,{cond:function(){return y().detailsLine},
then:function(v){return _.F("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.F(_.mk,{data:v},{adDetailsLineViewModel:function(Q){return _.F(_.Tt,{data:Q.data,customCommandResolver:u,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.F(_.w,{cond:function(){return y().secondaryDetailsLine},
then:function(v){return _.F("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.F(_.mk,{data:v},{adDetailsLineViewModel:function(Q){return _.F(_.Tt,{data:Q.data,customCommandResolver:u,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"wj");var Lgo=_.Jd(function(R){var y=R.data;var u=R.customCommandResolver;return _.F("ad-grid-card-image-view-model",{class:function(){var v;return((v=y().interaction)==null?0:v.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.VX(_.vA({visibilityCallback:function(v){var Q,M=(Q=y().interaction)==null?void 0:Q.onFirstVisible;v&&M&&_.zN(M)},
showOption:_.i2}),_.CA(function(){return y().interaction},u)),
"aria-label":function(){var v,Q;return(v=y().interaction)==null?void 0:(Q=v.accessibility)==null?void 0:Q.label}},_.F(_.mk,{data:function(){return y().adImage}},{adImageViewModel:function(v){return _.F(_.lz,{data:v.data,
customCommandResolver:u})}}),_.F("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.F(_.mk,{data:function(){return y().adCardBadge}},{adCardBadgeViewModel:_.EGb})))},"xj");var sPE=_.Jd(function(R){var y=R.data;var u=R.customCommandResolver;return _.F("ad-grid-card-text-view-model",{class:function(){var v;return((v=y().interaction)==null?0:v.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.VX(_.vA({visibilityCallback:function(v){var Q,M=(Q=y().interaction)==null?void 0:Q.onFirstVisible;v&&M&&_.zN(M)},
showOption:_.i2}),_.CA(function(){return y().interaction},u)),
"aria-label":function(){var v,Q;return(v=y().interaction)==null?void 0:(Q=v.accessibility)==null?void 0:Q.label}},_.F("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.F(_.w,{cond:function(){return y().title},
then:function(v){return _.F(_.QM,{text:v,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.F("div",{class:function(){return _.f("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.F(_.eS,{each:function(){var v;
return((v=y())==null?void 0:v.descriptions)||[]},
keyBy:"INDEX"},function(v){return _.F(_.QM,{text:v,className:function(){return _.f("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.F("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.F(_.mk,{data:function(){return y().moreInfoButton}},{adButtonViewModel:function(v){return _.F(_.Ip,{data:v.data,
customCommandResolver:u})}})))},"yj");var z7y=_.Jd(function(R){var y=R.data;var u=R.customCommandResolver;var v=R.adGridCardCollectionStyle;return _.F("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.VX(_.vA({visibilityCallback:function(Q){var M,K=(M=y().interaction)==null?void 0:M.onFirstVisible;Q&&K&&_.zN(K)},
showOption:_.i2})),style:function(){return"grid-template-columns: repeat("+q3H(v?v():y().style)+", minmax(0, 1fr));"}},_.F(_.mk,{data:function(){var Q;
return(Q=y())==null?void 0:Q.gridCards}},{adGridCardImageViewModel:function(Q){return _.F(Lgo,{data:Q.data,
customCommandResolver:u})},
adGridCardImageFullMetadataViewModel:function(Q){return _.F(YmK,{data:Q.data,customCommandResolver:u})},
adGridCardTextViewModel:function(Q){return _.F(sPE,{data:Q.data,customCommandResolver:u})}}))},"zj");_.h6(_.Jd(function(R){var y=R.data;return _.F("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.VX(_.vA({visibilityCallback:function(u){var v,Q=(v=y().interaction)==null?void 0:v.onFirstVisible;u&&Q&&_.zN(Q)},
showOption:_.i2}),_.CA(function(){return y().interaction},XUg))},_.F("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.F(_.w,{cond:_.qSP("(min-width: "+((0,_.sG)()+_.EY)+"px)"),
then:function(){return _.F(_.mk,{data:function(){return y().adGridCardCollection}},{adGridCardCollectionViewModel:function(u){return _.F(z7y,{data:u.data,
customCommandResolver:XUg})}})},
else:function(){return _.F(_.mk,{data:function(){return y().adGridCardCollection}},{adGridCardCollectionViewModel:function(u){return _.F(z7y,{data:u.data,
customCommandResolver:XUg,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.F("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.F(_.mk,{data:function(){return y().adButton}},{adButtonViewModel:function(u){return _.F(_.Ip,{data:u.data,
customCommandResolver:XUg})}})))},"Aj"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.vR}});_.h6(_.Jd(function(R){var y=R.data;return _.F("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.VX(_.vA({visibilityCallback:function(u){var v,Q=(v=y().interaction)==null?void 0:v.onFirstVisible;u&&Q&&_.zN(Q)},
showOption:_.i2}),_.CA(function(){return y().interaction},m_I))},_.F("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.F(_.mk,{data:function(){if(_.qSP("(min-width: "+((0,_.sG)()+_.EY)+"px)")())var u=y().adGridCardCollection;
else{u=Object.assign({},_.e(y().adGridCardCollection,Z82));var v;u.gridCards!==void 0&&((v=u.gridCards)==null?void 0:v.length)>1?u.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":u.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";u={adGridCardCollectionViewModel:u}}return u}},{adGridCardCollectionViewModel:function(u){return _.F(z7y,{data:u.data,
customCommandResolver:m_I})}})),_.F("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.F(_.mk,{data:function(){return y().adButton}},{adButtonViewModel:function(u){return _.F(_.Ip,{data:u.data,
customCommandResolver:m_I})}})))},"Bj"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.vR}});var Os=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return R};
_.O(Os,_.W);_.J=Os.prototype;_.J.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"}}}};
_.J.attached=function(){this.getDataFromPlayerAndRender()};
_.J.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.J.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.J.getDataFromPlayerAndRender=function(){var R=this,y=_.I8(this.hostElement);y&&y.getPlayerPromise().then(function(u){R.getCachedDataAndListen(u)})};
_.J.getCachedDataAndListen=function(R){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(R,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(R,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=R)};
_.J.resolveCachedActions=function(){var R=_.D6("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(R=R&&R())&&!_.Ps.isEmpty(R)&&this.sendUpdateEngagementPanelAction(R);(R=(R=_.D6("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&R())&&!_.Ps.isEmpty(R)&&this.sendChangeEngagementPanelVisibilityAction(R);(R=(R=_.D6("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&R())&&!_.Ps.isEmpty(R)&&this.sendScrollToEngagementPanelCommand(R)};
_.J.sendUpdateEngagementPanelAction=function(R){var y;_.Ik(this.hostElement,"yt-update-engagement-panel-action",[(y=_.Ps.get(R,"action"))!=null?y:R])};
_.J.sendChangeEngagementPanelVisibilityAction=function(R){_.Ik(this.hostElement,"yt-change-engagement-panel-visibility-action",[R])};
_.J.sendScrollToEngagementPanelCommand=function(R){_.Ik(this.hostElement,"yt-scroll-to-engagement-panel-command",[R])};
_.J.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.f("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.kT(Error("wo"))};
Os.prototype.dataChanged=Os.prototype.dataChanged;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Os.prototype,"actionHandlerBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Os.prototype,"componentBehavior",void 0);_.A([_.n(_.Ra.YtPlayerListenerBehavior),_.p("design:type",_.yH)],Os.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Os.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Os.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Os.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],Os.prototype,"player",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Os.prototype,"dataChanged",null);_.A([_.q({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],Os);
_.m(Os,"ytd-ads-engagement-panel-content-renderer",function(){if(SmF!==void 0)return SmF;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);
return SmF=R},{mode:1});var gMb;var Z4=function(){var R=_.W.apply(this,arguments)||this;R.player=null;R.JSC$22446_playerEvents=new Map;R.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return R};
_.O(Z4,_.W);_.J=Z4.prototype;_.J.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]]"}}}}}};
_.J.created=function(){this.player=null;this.JSC$22446_playerEvents=new Map;this.JSC$22446_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22446_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22446_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22446_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.J.attached=function(){var R=this,y=_.I8();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));y&&y.getPlayerPromise().then(function(u){R.setPlayer(u);R.set("isPageLoad",!1)})};
_.J.setPlayer=function(R){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22446_playerEvents);this.set("player",R);R&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(R,this.JSC$22446_playerEvents),R.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.J.onLoopRangeChange=function(R){var y=_.ua().resolve(_.yN(_.iD));if((!y||y.isOnWatch())&&this.hostElement.clientHeight){var u;!R&&((u=this.data)==null?0:u.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.J.onVideoProgress=function(R){var y,u,v=((y=this.player)==null?void 0:(u=y.getPresentingPlayerType)==null?void 0:u.call(y))===2;this.isAdPlaying!==v&&this.set("isAdPlaying",v);var Q;if(!v&&(Q=this.player)!=null&&Q.getLoopRange()){u=this.player.getLoopRange();y=u.startTimeMs;u=u.endTimeMs;v=this.player.getProgressState(1).seekableStart;var M;y<v*1E3&&((M=this.data)==null?0:M.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
R=u<R*1E3;var K;((K=this.player)==null?0:K.getLoopRange())&&R&&this.player.seekTo(y/1E3)}};
_.J.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.J.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.J.onYtDeleteClipEngagementPanelCommand=function(R){_.e(R,AzK).command&&this.ytComponentBehavior.resolveCommand(_.e(R,AzK).command)};
_.RR.Object.defineProperties(Z4.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.voteCount)||_.ye("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([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Z4.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Z4.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Z4.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Z4.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.Ra.YtPlayerListenerBehavior),_.p("design:type",_.yH)],Z4.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Z4.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Z4.prototype,"isAdPlaying",void 0);_.A([_.r({reflectToAttribute:!0,value:!0}),_.p("design:type",Boolean)],Z4.prototype,"isPageLoad",void 0);_.A([_.r({reflectToAttribute:!0,value:!0}),_.p("design:type",Boolean)],Z4.prototype,"isDarkTheme",void 0);
_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Z4.prototype,"voteCount",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Z4.prototype,"channelEndpoint",null);_.A([_.G("channelEndpoint"),_.p("design:type",Object),_.p("design:paramtypes",[])],Z4.prototype,"channelHref",null);_.A([_.q({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],Z4);
_.m(Z4,"ytd-clip-attribution-renderer",function(){if(gMb!==void 0)return gMb;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return gMb=R},{mode:1});var CJq;var Hi=function(){var R=_.W.apply(this,arguments)||this;R.player=null;R.JSC$22451_playerEvents=new Map;return R};
_.O(Hi,_.W);_.J=Hi.prototype;_.J.created=function(){this.player=null;this.JSC$22451_playerEvents=new Map;this.JSC$22451_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22451_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22451_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.J.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.J.attached=function(){var R=this,y=_.I8();y&&y.getPlayerPromise().then(function(u){R.setPlayer(u);R.set("isPageLoad",!1)})};
_.J.setPlayer=function(R){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22451_playerEvents);this.set("player",R);if(R){this.ytPlayerListenerBehavior.listenToPlayerEvents(R,this.JSC$22451_playerEvents);var y;(R==null?void 0:(y=R.getPresentingPlayerType)==null?void 0:y.call(R))===2&&this.playerAdStartHandler()}};
_.J.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.J.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.J.onVideoProgress=function(){var R,y,u=((R=this.player)==null?void 0:(y=R.getPresentingPlayerType)==null?void 0:y.call(R))===2;this.isAdPlaying!==u&&this.set("isAdPlaying",u)};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Hi.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Hi.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.Ra.YtPlayerListenerBehavior),_.p("design:type",_.yH)],Hi.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Hi.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Hi.prototype,"isAdPlaying",void 0);
_.A([_.r({reflectToAttribute:!0,value:!0}),_.p("design:type",Boolean)],Hi.prototype,"isPageLoad",void 0);_.A([_.q({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],Hi);
_.m(Hi,"ytd-clip-section-footer-renderer",function(){if(CJq!==void 0)return CJq;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return CJq=R},{mode:1});var RFF;var yq2;var nB=function(){return _.W.apply(this,arguments)||this};
_.O(nB,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],nB.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],nB.prototype,"data",void 0);_.A([_.q({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],nB);
_.m(nB,"ytd-clip-ad-state-renderer",function(){if(yq2!==void 0)return yq2;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return yq2=R},{mode:1});var ur4;var Gz=function(){var R=_.W.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};
_.O(Gz,_.W);_.J=Gz.prototype;_.J.detached=function(){this.userChangedValue=!1};
_.J.handleKeyDown=function(R){if(_.NO)var y=13;else _.DTS&&_.T$?y=13:y=13;R.keyCode===y&&R.preventDefault()};
_.J.handleInput=function(){var R=_.hw(this.hostElement).querySelector("#title");if(R){var y=(R.value||"").replace(/\r|\n/g," ");this.set("value",y);R.value=y;this.valid=R.validate();this.userChangedValue=!0}};
_.J.handleBlur=function(){this.valid=_.hw(this.hostElement).querySelector("#title").validate()};
_.J.onValueChanged=function(){_.Ko(this.hostElement,"title-changed",{title:this.value})};
_.J.onValidChanged=function(){_.Ko(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.J.setInput=function(R,y){var u=_.hw(this.hostElement).querySelector("#title");u&&(u.value=R,this.handleInput(),y&&(u.invalid=!1,this.valid=!0))};
_.J.onClipCreationDisable=function(){this.set("disabled",!0)};
_.J.onClipCreationEnable=function(){this.set("disabled",!1)};
_.J.onClipCreationVisibilityChange=function(R){var y=this;R.visible?requestAnimationFrame(function(){var u;((u=_.hw(y.hostElement).querySelector("#title"))==null?void 0:u.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
Gz.prototype.onValidChanged=Gz.prototype.onValidChanged;Gz.prototype.onValueChanged=Gz.prototype.onValueChanged;Gz.prototype.handleBlur=Gz.prototype.handleBlur;Gz.prototype.handleInput=Gz.prototype.handleInput;Gz.prototype.handleKeyDown=Gz.prototype.handleKeyDown;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Gz.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Gz.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],Gz.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],Gz.prototype,"value",void 0);_.A([_.r(),_.p("design:type",Object)],Gz.prototype,"valid",void 0);_.A([_.r(),_.p("design:type",Object)],Gz.prototype,"userChangedValue",void 0);_.A([_.r(),_.p("design:type",Object)],Gz.prototype,"disabled",void 0);_.A([_.fu("keydown"),_.p("design:type",Function),_.p("design:paramtypes",[KeyboardEvent]),_.p("design:returntype")],Gz.prototype,"handleKeyDown",null);
_.A([_.fu("input"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Gz.prototype,"handleInput",null);_.A([_.fu("blur"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Gz.prototype,"handleBlur",null);_.A([_.e0("value"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Gz.prototype,"onValueChanged",null);
_.A([_.e0("valid"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Gz.prototype,"onValidChanged",null);_.A([_.q({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],Gz);
_.m(Gz,"ytd-clip-creation-text-input-renderer",function(){if(ur4!==void 0)return ur4;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return ur4=R},{mode:1});var vEr;var QKb;var jK2;var Myb;var Jqg;var rH=function(){var R=_.W.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};
_.O(rH,_.W);_.J=rH.prototype;_.J.attached=function(){var R=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(y){y=_.V(["screen and (min-resolution: "+y+")","screen and (max-resolution: "+y+")"]);for(var u=y.next();!u.done;u=y.next()){u=u.value;var v=window.matchMedia(u);v&&(R.mediaListeners_[u]=R.updatePixelRatio_.bind(R),v.addEventListener?v.addEventListener("change",R.mediaListeners_[u]):v.addListener?v.addListener(R.mediaListeners_[u]):delete R.mediaListeners_[u])}})};
_.J.detached=function(){this.setPlayer(null);for(var R=_.V(Object.keys(this.mediaListeners_)),y=R.next();!y.done;y=R.next()){var u=y.value;y=this.mediaListeners_[u];(u=window.matchMedia(u))&&(u.removeEventListener?u.removeEventListener("change",y):u.removeListener&&u.removeListener(y))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.J.onVisibilityChangedAction_=function(R){var y=this;R.visible&&!this.player_&&(R=_.I8())&&R.getPlayerPromise().then(function(u){y.setPlayer(u)})};
_.J.setPlayer=function(R){R&&this.set("player_",R)};
_.J.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.J.setUpCanvas_=function(){var R=this.rulerWidth,y=this.devicePixelRatio_,u=this.visible;this.set("canvasReady_",!1);if(u&&y!==0){u=this.aboveRulerHeight+this.rulerHeight;var v=_.hw(this.hostElement).querySelector("#ticks");v.width=R*y;v.height=u*y;v.style.width=R+"px";v.style.height=u+"px";v.getContext("2d").scale(y,y);this.set("canvasReady_",!0)}};
_.J.drawRuler_=function(R,y,u,v,Q,M,K,h,b,N,T,x){R&&u&&y&&(R=_.hw(this.hostElement).querySelector("#ticks"),y=R.getContext("2d"),y.clearRect(0,0,R.width,R.height),y.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),y.lineWidth=2,y.beginPath(),y.moveTo(0,this.aboveRulerHeight),y.lineTo(R.width,this.aboveRulerHeight),y.moveTo(0,R.height),y.lineTo(R.width,R.height),y.stroke(),this.drawRulerTicks_(R,M,Q,v),this.drawStoryboardImages_(R,u,M,Q,v),y.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
y.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(K-M,v,!1),this.rulerHeight),u=this.timeToPixels_(h-M,v,!1),y.fillRect(u,this.aboveRulerHeight,R.width-u,this.rulerHeight),this.drawSpeedLines_(R,M,x))};
_.J.drawRulerTicks_=function(R,y,u,v){var Q=R.getContext("2d");Q.save();Q.lineWidth=1;for(var M=Math.floor(Math.max(0,y-this.tickLabelInterval));M<y+u;M++){Q.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var K=(M-y)*v;Q.beginPath();Q.moveTo(K,R.height);var h=this.smallTickHeight;M%this.largeTickInterval===0?h=this.largeTickHeight:M%this.mediumTickInterval===0&&(h=this.mediumTickHeight);Q.lineTo(K,R.height-h);Q.stroke();M%this.tickLabelInterval===0&&(Q.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),Q.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),Q.fillText(Hn(M),K+4,12),Q.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),Q.moveTo(K,0),Q.lineTo(K,this.aboveRulerHeight),Q.stroke())}Q.restore()};
_.J.percentToHex_=function(R){R=Math.round(R*255).toString(16);R.length<2&&(R="0"+R);return R};
_.J.drawSpeedLines_=function(R,y,u){var v=R.getContext("2d");v.save();var Q=Math.min(25,Math.abs(u)-15)/25,M=R.width*.3*Q,K=R.width*-.3,h=R.width*1.3,b=this.aboveRulerHeight;R=R.height;var N=Math.round(4*Q),T=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");T.length<7&&(T="#"+T.substring(1,4).repeat(2));var x=this.percentToHex_(.5+Q/2);x=T+x;T+="00";if(Q>0)for(Q=0;Q<N;Q++){var B=K+Math.random()*(h-K),l=b+Math.random()*(R-b),Z=M+y%M,P=v.createLinearGradient(B,l,B+Z,l);
u<0?(P.addColorStop(0,x),P.addColorStop(.4,x),P.addColorStop(.9,T)):(P.addColorStop(.1,T),P.addColorStop(.6,x),P.addColorStop(1,x));v.strokeStyle=P;v.lineWidth=1;v.beginPath();v.moveTo(B,l);v.lineTo(B+Z,l);v.stroke()}v.restore()};
_.J.getStoryboardForTime_=function(R,y,u){u===void 0&&(u=y.getNumberOfStoryboardLevels()-1);R=y.getStoryboardFrameIndex(R,u);return y.getStoryboardFrame(R,u)};
_.J.drawStoryboardImages_=function(R,y,u,v,Q){if(!this.disabled){R=R.getContext("2d");var M=this.getStoryboardForTime_(0,y);if(M){var K=M.width/M.columns;M=M.height/M.rows;var h=K/M,b=this.rulerHeight*h;b=this.tickLabelInterval*(h<this.tickLabelInterval*Q/this.rulerHeight?1/Math.floor(this.tickLabelInterval*Q/b):Math.round(b/(this.tickLabelInterval*Q)));var N=b*Q,T=this.rulerHeight,x=N/this.rulerHeight,B=Math.floor(Math.max(0,u-b));for(B-=B%b;B<u+v;B+=b){var l=this.getStoryboardForTime_(B,y),Z=this.getPreloadedStoryboard_(l.url);
if(Z){var P=(B-u)*Q,k=this.aboveRulerHeight,E=l.column*K,D=l.row*M;if(h<x){var z=T/(N/h);l=K;z*=M;D+=(M-z)/2}else l=N/(T*h)*K,z=M,E+=(K-l)/2;R.drawImage(Z,E,D,l,z,P,k,N,T)}else this.fetchStoryboardImage_(l)}}}};
_.J.getPreloadedStoryboard_=function(R){return this.storyboardImages_.find(function(y){if(y.src==R)return!0;var u=y.src.indexOf(R);return u!=-1&&u==y.src.length-R.length})};
_.J.fetchStoryboardImage_=function(R){var y=this,u=this.getPreloadedStoryboard_(R.url),v=this.pendingStoryboardImages_[R.url];u||v!==void 0||(u=new Promise(function(Q){var M=new Image(R.width,R.height);M.src=R.url;M.onload=function(){Q(M)};
M.onerror=function(){Q(null)}}),this.pendingStoryboardImages_[R.url]=u,u.then(function(Q){Q&&y.push("storyboardImages_",Q);
return Q}).finally(function(){delete y.pendingStoryboardImages_[R.url]}))};
_.J.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.J.timeToPixels_=function(R,y,u){R*=y;return u===void 0||u?R+"px":R};
_.J.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
rH.prototype.drawRuler_=rH.prototype.drawRuler_;rH.prototype.setUpCanvas_=rH.prototype.setUpCanvas_;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],rH.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],rH.prototype,"ytRendererBehavior",void 0);_.A([_.r({value:0}),_.p("design:type",Number)],rH.prototype,"start",void 0);_.A([_.r({value:30}),_.p("design:type",Number)],rH.prototype,"end",void 0);
_.A([_.r({value:!1}),_.p("design:type",Boolean)],rH.prototype,"visible",void 0);_.A([_.r(),_.p("design:type",Object)],rH.prototype,"player_",void 0);_.A([_.r(),_.p("design:type",Number)],rH.prototype,"tickSpacing",void 0);_.A([_.r(),_.p("design:type",Number)],rH.prototype,"windowSizeSec",void 0);_.A([_.r({value:0}),_.p("design:type",Number)],rH.prototype,"rulerWidth",void 0);_.A([_.r({value:0}),_.p("design:type",Number)],rH.prototype,"rulerShift",void 0);
_.A([_.r({value:!1}),_.p("design:type",Boolean)],rH.prototype,"canvasReady_",void 0);_.A([_.r({value:function(){return[]}}),
_.p("design:type",Array)],rH.prototype,"storyboardImages_",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],rH.prototype,"disabled",void 0);_.A([_.r({value:0}),_.p("design:type",Number)],rH.prototype,"forceRender_",void 0);_.A([_.r({value:1}),_.p("design:type",Number)],rH.prototype,"devicePixelRatio_",void 0);_.A([_.r({value:0}),_.p("design:type",Number)],rH.prototype,"windowSpeed",void 0);
_.A([_.e0("visible","devicePixelRatio_","rulerWidth"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],rH.prototype,"setUpCanvas_",null);
_.A([_.e0("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.p("design:type",Function),_.p("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.p("design:returntype")],rH.prototype,"drawRuler_",null);_.A([_.pu({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],rH);
_.m(rH,"yt-clip-creation-scrubber-canvas",function(){if(Jqg===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);Jqg=R}R=Jqg;return R},
{mode:2});var Vyy;var iKy;var Pi=function(){var R=_.W.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};
_.O(Pi,_.W);_.J=Pi.prototype;
_.J.created=function(){var R=this;this.JSC$22464_playerEvents=new Map;this.JSC$22464_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22464_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22464_playerEvents.set("onStateChange",this.onStateChange_);var y={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(y).forEach(function(u){R.boundHandlers_[u]=y[u].bind(R)})};
_.J.attached=function(){this.activeLoopRange_=!1;_.hw(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.hw(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.$6(156731)};
_.J.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.hw(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.hw(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.J.onVisibilityChangedAction_=function(R){var y=this;R.visible&&!this.player_&&(R=_.I8())&&R.getPlayerPromise().then(function(u){y.setPlayer(u)})};
_.J.setPlayer=function(R){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22464_playerEvents);R&&(this.set("player_",R),this.ytPlayerListenerBehavior.listenToPlayerEvents(R,this.JSC$22464_playerEvents))};
_.J.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.J.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.J.beginHandleDrag_=function(R){this.disabled||(R.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=R.clientX,R.target===_.hw(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():R.target===_.hw(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.J.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.J.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.J.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.J.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_())};
_.J.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.J.beginWindowScroll_=function(){var R=this;this.scrollInterval_=setInterval(function(){var y=R.windowSlideSpeed;if(y=_.suP(R.start,R.boundedRulerStartLimit_())?y-.1:_.suP(R.end,R.boundedRulerEndLimit_())?y+.1:0){var u=R.capRulerOffset_(R.rulerShift_+y);u==R.rulerShift_?y=0:(R.set("rulerShift_",u),_.Ko(R.hostElement,"set-fixed-length-range",{start:R.start+y,duration:R.end-R.start}))}R.set("windowSlideSpeed",y)},33)};
_.J.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.J.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))};
_.J.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.J.updateRulerSize_=function(){this.set("rulerWidth_",_.hw(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.J.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))};
_.J.handleRulerDrag_=function(R){R=this.pixelsToTime_(R.clientX-this.rulerDragMouseStart_);R=this.capRulerOffset_(this.rulerDragRulerStart_-R);this.set("rulerShift_",R);var y=this.rulerDragStartTime_-(this.rulerDragRulerStart_-R);_.Ko(this.hostElement,"set-fixed-length-range",{start:y,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-R)-y})};
_.J.handleWindowDrag_=function(R){var y=R.clientX-this.dragMouseLastX_;this.dragMouseLastX_=R.clientX;R=this.pixelsToTime_(y);_.Ko(this.hostElement,"set-fixed-length-range",{start:this.start+R,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.J.capRulerOffset_=function(R){var y=this.seekableStart-this.pixelsToTime_(16),u=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(y,R),u)};
_.J.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.J.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.J.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.J.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.J.handleWindowHandleDrag_=function(R){var y=R.clientX-this.dragMouseLastX_;this.dragMouseLastX_=R.clientX;R=this.pixelsToTime_(y);if(this.draggingLeft_){var u=this.start+R;var v=this.end}else this.draggingRight_&&(u=this.start,v=this.end+R);_.Ko(this.hostElement,"set-range",{start:u,end:v,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.J.onVideoProgress_=function(R){this.disabled||(R=this.timeToPixels_(R-this.rulerShift_,this.tickSpacing_),_.hw(this.hostElement).querySelector("#playhead").style.transform="translateX("+R+")")};
_.J.onClipCreationDisable_=function(){this.endDrag_()};
_.J.timeToPixels_=function(R,y,u){R*=y;return u===void 0||u?R+"px":R};
_.J.pixelsToTime_=function(R){return R/this.tickSpacing_};
_.J.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.J.centerRuler_=function(R,y,u){this.set("rulerShift_",this.capRulerOffset_(R+(y-R)/2-u/2))};
_.J.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.J.updateLoopRange_=function(R,y,u,v,Q,M,K){R&&(y&&v&&!u?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(R.pauseVideo(),R.seekTo(Q,!1,void 0,void 0,50)):this.draggingRight_?(R.pauseVideo(),R.seekTo(M-.1,!1,void 0,void 0,50)):(K!==void 0?R.seekTo(K,!0,void 0,void 0,50):(y=R.getCurrentTime(),y<Q||y>M?R.seekTo(Q,!0,void 0,void 0,50):R.seekTo(y,!0,void 0,void 0,50)),R.playVideo()),R.setLoopRange({startTimeMs:Q*1E3,endTimeMs:M*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(R.getCurrentTime())):
this.activeLoopRange_&&(R.setLoopRange(null),this.activeLoopRange_=!1))};
_.J.updateHandles_=function(){_.hw(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.hw(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.J.updateRuler_=function(){var R=this.end,y=this.start,u=this.draggableStartLimit_(),v=this.draggableEndLimit_();(y<u-.001||R>v+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.J.computeDurationLabel_=function(R,y){return R?R.replace("$clip_length",parseFloat(y).toFixed(1)):""};
_.J.computeDuration_=function(R,y){return this.isValidTime_(R)&&this.isValidTime_(y)&&R<y?y-R:0};
_.J.isValidTime_=function(R){return isNaN(parseFloat(R))||R<0?!1:this.player_?R>=this.seekableStart&&R<=this.seekableEnd:!0};
_.J.computeWindowSizeSec_=function(R,y,u){return Math.min((R||12E4)/1E3,u-y)};
_.J.computeTickSpacing_=function(R,y){return y?y/R:1};
_.J.onDragStateChanged_=function(){_.Ko(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.J.centerRangeOnTime_=function(R){var y=this.duration;R=D_m(R-y/2,y,this.seekableStart,this.seekableEnd);_.Ko(this.hostElement,"set-fixed-length-range",{start:R.start,duration:R.end-R.start})};
_.J.nearlyLessThan_=function(R,y,u){return R+(u===void 0?1E-6:u)<y};
_.J.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)}};
_.J.onStateChange_=function(R){this.visible&&!this.disabled&&R==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.J.computeDragState_=function(R,y,u,v){return R?"left":y?"right":u?"ruler":v?"window":"none"};
_.J.logClick=function(){var R=_.$I(),y=_.Ef();R&&y&&this.scrubberVe_&&(_.f("combine_ve_grafts")?_.x0(_.GN(),this.scrubberVe_,y):_.ak(R,y,this.scrubberVe_),_.zP(R,this.scrubberVe_))};
Pi.prototype.onDragStateChanged_=Pi.prototype.onDragStateChanged_;Pi.prototype.updateRuler_=Pi.prototype.updateRuler_;Pi.prototype.updateHandles_=Pi.prototype.updateHandles_;Pi.prototype.onUpdateLoopRange=Pi.prototype.onUpdateLoopRange;Pi.prototype.onInitializedChanged_=Pi.prototype.onInitializedChanged_;Pi.prototype.onVisibleChanged_=Pi.prototype.onVisibleChanged_;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Pi.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.n(_.Ra.YtPlayerListenerBehavior),_.p("design:type",Object)],Pi.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Pi.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Pi.prototype,"start",void 0);_.A([_.r(),_.p("design:type",Object)],Pi.prototype,"end",void 0);_.A([_.r({computed:"computeDuration_(start, end)"}),_.p("design:type",Number)],Pi.prototype,"duration",void 0);
_.A([_.r(),_.p("design:type",String)],Pi.prototype,"lengthTemplate",void 0);_.A([_.r({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.p("design:type",String)],Pi.prototype,"durationLabel",void 0);_.A([_.r(),_.p("design:type",Object)],Pi.prototype,"visible",void 0);_.A([_.r(),_.p("design:type",Object)],Pi.prototype,"player_",void 0);_.A([_.r(),_.p("design:type",Object)],Pi.prototype,"draggingLeft_",void 0);_.A([_.r(),_.p("design:type",Object)],Pi.prototype,"draggingRight_",void 0);
_.A([_.r(),_.p("design:type",Object)],Pi.prototype,"draggingRuler_",void 0);_.A([_.r({value:!1}),_.p("design:type",Object)],Pi.prototype,"draggingWindow_",void 0);_.A([_.r({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.p("design:type",Number)],Pi.prototype,"tickSpacing_",void 0);_.A([_.r(),_.p("design:type",Object)],Pi.prototype,"seekableStart",void 0);_.A([_.r(),_.p("design:type",Object)],Pi.prototype,"seekableEnd",void 0);
_.A([_.r(),_.p("design:type",Number)],Pi.prototype,"windowSizeMs",void 0);_.A([_.r({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.p("design:type",Number)],Pi.prototype,"windowSizeSec_",void 0);_.A([_.r(),_.p("design:type",Object)],Pi.prototype,"rulerWidth_",void 0);_.A([_.r(),_.p("design:type",Object)],Pi.prototype,"rulerShift_",void 0);_.A([_.r(),_.p("design:type",Object)],Pi.prototype,"windowSlideSpeed",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Pi.prototype,"disabled",void 0);_.A([_.r(),_.p("design:type",Object)],Pi.prototype,"initialized",void 0);_.A([_.r(),_.p("design:type",Object)],Pi.prototype,"durationAccessibilityLabel",void 0);_.A([_.r({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.p("design:type",String)],Pi.prototype,"dragState",void 0);
_.A([_.e0("visible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Pi.prototype,"onVisibleChanged_",null);_.A([_.e0("initialized"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Pi.prototype,"onInitializedChanged_",null);_.A([_.e0("player_","visible","disabled","initialized","start","end"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Pi.prototype,"onUpdateLoopRange",null);
_.A([_.e0("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Pi.prototype,"updateHandles_",null);_.A([_.e0("start","end"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Pi.prototype,"updateRuler_",null);
_.A([_.e0("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Pi.prototype,"onDragStateChanged_",null);_.A([_.pu({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],Pi);
_.m(Pi,"yt-clip-creation-scrubber-view",function(){if(iKy===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;Vyy===void 0&&(Vyy=document.createElement("template"));var v=Vyy;u.call(y,v.content.cloneNode(!0),R.content.firstChild);iKy=R}R=iKy;return R},{mode:2});var Wi=function(){var R=_.W.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};
_.O(Wi,_.W);_.J=Wi.prototype;_.J.attached=function(){var R=this;this.startInput.addEventListener("input",function(y){return R.handleStartInput_(y)});
this.endInput.addEventListener("input",function(y){return R.handleEndInput_(y)});
this.startInput.addEventListener("focusout",function(y){return R.handleStartBlur_(y)});
this.endInput.addEventListener("focusout",function(y){return R.handleEndBlur_(y)})};
_.J.setPlayer=function(R){this.set("player_",R)};
_.J.onSetFixedLengthRange_=function(R){var y=R.detail;R=y.start;var u=y.duration,v=y.startLimit;y=y.endLimit;v||(v=this.seekableStart_);y||(y=this.seekableEnd_);R=D_m(R,u,v,y);this.start=R.start;this.end=R.end};
_.J.onSetRange_=function(R){var y=R.detail;R=y.start;var u=y.end,v=y.startLimit;y=y.endLimit;v||(v=this.seekableStart_);y||(y=this.seekableEnd_);if(R=pU8(R,u,v,y,this.minLengthSec,this.maxLengthSec))this.start=R.start,this.end=R.end};
_.J.updateInputs_=function(){var R=this.end,y=this.start;this.startInput.focused||(this.startInput.value=Hn(y,!0));this.endInput.focused||(this.endInput.value=Hn(R,!0))};
_.J.handleStartInput_=function(R){R=AyH(R.target.value);if(R===null)this.set("startValid",!1);else{var y=this.end,u=pU8(R,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);u?(this.set("endWillUpdate",u.end!==y),this.set("startValid",u.start===R)):this.set("startValid",!1)}};
_.J.handleEndInput_=function(R){R=AyH(R.target.value);if(R===null)this.set("endValid",!1);else{var y=this.start,u=trP(this.start,R,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);u?(this.set("startWillUpdate",u.start!==y),this.set("endValid",u.end===R)):this.set("endValid",!1)}};
_.J.handleStartBlur_=function(R){R=AyH(R.target.value);R===null?this.startInput.value=Hn(this.start,!0):this.forceUpdateInputs_(pU8(R,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.J.handleEndBlur_=function(R){R=AyH(R.target.value);R===null?this.endInput.value=Hn(this.end,!0):this.forceUpdateInputs_(trP(this.start,R,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.J.forceUpdateInputs_=function(R){R&&(this.start=R.start,this.end=R.end);this.startInput.value=Hn(this.start,!0);this.endInput.value=Hn(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.J.initializeClipRange_=function(){var R=this.seekableEnd_,y=this.seekableStart_,u=this.visible_,v=this.player_;if(!v||!u||y===null||!R)this.set("initialized",!1);else if(!this.initialized){var Q=v.getCurrentTime(),M=this.getDefaultLengthSec_();u=v.getVideoData();var K=v.getPlayerState()==1,h=u.isLive;M=Math.min(M,R-y);Q=Math.max(0,Q);R=h?trP(Q-M,Q,y,R,this.minLengthSec,this.maxLengthSec):K?D_m(Q-M/2,M,y,R):D_m(Q,M,y,R);this.start=R.start;this.end=R.end;this.set("initialized",!0);u.isLive&&v.seekTo(R.start);
this.startInput.value=Hn(this.start,!0);this.endInput.value=Hn(this.end,!0)}};
_.J.onStartChanged_=function(){var R=this;_.Ko(this.hostElement,"start-changed",{start:this.start});var y;isNaN((y=this.oldStart)!=null?y:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){R.set("highlightStart",!1);R.startHighlightTimeout=0;R.oldStart=R.start},3E3))};
_.J.onEndChanged_=function(){var R=this;_.Ko(this.hostElement,"end-changed",{end:this.end});var y;isNaN((y=this.oldEnd)!=null?y:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){R.set("highlightEnd",!1);R.endHighlightTimeout=0;R.oldEnd=R.end},3E3))};
_.J.onVisibilityChangedAction_=function(R){var y=this;this.set("visible_",R.visible);this.visible_&&!this.player_&&(R=_.I8())&&R.getPlayerPromise().then(function(u){y.setPlayer(u)})};
_.J.computeMinLengthSec_=function(R){return R/1E3||5};
_.J.computeMaxLengthSec_=function(R){return R/1E3||60};
_.J.computeDefaultLengthSec_=function(R){return R/1E3};
_.J.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.J.computeSeekableStart_=function(R,y){return R&&y?R.getProgressState(1).seekableStart:0};
_.J.computeSeekableEnd_=function(R,y){return R&&y?R.getProgressState(1).seekableEnd:0};
_.J.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.J.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.J.onDragState_=function(R){this.set("highlightStart",R.detail.startChanging);this.set("highlightEnd",R.detail.endChanging)};
Wi.prototype.onDragState_=Wi.prototype.onDragState_;Wi.prototype.onEndChanged_=Wi.prototype.onEndChanged_;Wi.prototype.onStartChanged_=Wi.prototype.onStartChanged_;Wi.prototype.initializeClipRange_=Wi.prototype.initializeClipRange_;Wi.prototype.updateInputs_=Wi.prototype.updateInputs_;Wi.prototype.onSetRange_=Wi.prototype.onSetRange_;Wi.prototype.onSetFixedLengthRange_=Wi.prototype.onSetFixedLengthRange_;
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Wi.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Wi.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Wi.prototype,"data",void 0);_.A([_.r({value:0}),_.p("design:type",Number)],Wi.prototype,"start",void 0);_.A([_.r({value:!0}),_.p("design:type",Boolean)],Wi.prototype,"startValid",void 0);
_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],Wi.prototype,"startWillUpdate",void 0);_.A([_.r({value:30}),_.p("design:type",Number)],Wi.prototype,"end",void 0);_.A([_.r({value:!0}),_.p("design:type",Boolean)],Wi.prototype,"endValid",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],Wi.prototype,"endWillUpdate",void 0);_.A([_.r({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.p("design:type",Number)],Wi.prototype,"minLengthSec",void 0);
_.A([_.r({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.p("design:type",Number)],Wi.prototype,"maxLengthSec",void 0);_.A([_.r({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.p("design:type",Number)],Wi.prototype,"defaultLengthSec",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],Wi.prototype,"visible_",void 0);_.A([_.r(),_.p("design:type",Object)],Wi.prototype,"player_",void 0);
_.A([_.r({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.p("design:type",Number)],Wi.prototype,"seekableStart_",void 0);_.A([_.r({computed:"computeSeekableEnd_(player_, visible_)"}),_.p("design:type",Number)],Wi.prototype,"seekableEnd_",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],Wi.prototype,"initialized",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],Wi.prototype,"disabled",void 0);
_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],Wi.prototype,"highlightStart",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],Wi.prototype,"highlightEnd",void 0);_.A([_.O7("#start"),_.p("design:type",HTMLInputElement)],Wi.prototype,"startInput",void 0);_.A([_.O7("#end"),_.p("design:type",HTMLInputElement)],Wi.prototype,"endInput",void 0);
_.A([_.fu("set-fixed-length-range"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Wi.prototype,"onSetFixedLengthRange_",null);_.A([_.fu("set-range"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Wi.prototype,"onSetRange_",null);_.A([_.e0("start","end"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Wi.prototype,"updateInputs_",null);
_.A([_.e0("player_","visible_","seekableStart_","seekableEnd_"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Wi.prototype,"initializeClipRange_",null);_.A([_.e0("start"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Wi.prototype,"onStartChanged_",null);_.A([_.e0("end"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Wi.prototype,"onEndChanged_",null);
_.A([_.fu("clips-drag-state"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Wi.prototype,"onDragState_",null);_.A([_.pu({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],Wi);
_.m(Wi,"yt-clip-creation-scrubber-renderer",function(){if(Myb===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;jK2===void 0&&(jK2=document.createElement("template"));var v=jK2;u.call(y,v.content.cloneNode(!0),R.content.firstChild);Myb=R}R=Myb;return R},{mode:2});var dH=function(){var R=_.W.apply(this,arguments)||this;R.player_=null;R.JSC$22478_playerEvents=new Map;R.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return R};
_.O(dH,_.W);_.J=dH.prototype;_.J.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"}}}};
_.J.created=function(){this.JSC$22478_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22478_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22478_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22478_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.J.detached=function(){this.setPlayer(null)};
_.J.onVisibilityChangedAction_=function(R){var y=this,u;if((u=this.data)==null?0:u.externalVideoId){var v;this.videoId=(v=this.data)==null?void 0:v.externalVideoId}this.getPlayer().then(function(Q){if(R.visible)y.returnTime=Q.getCurrentTime(),y.isAtLiveHead=Q.getProgressState().isAtLiveHead;else{var M=y.returnTime;y.isAtLiveHead&&(M=Number.POSITIVE_INFINITY);Q.seekTo(M,void 0,void 0,void 0,51)}})};
_.J.getPlayer=function(){var R=this;if(!this.player_){var y=_.I8();if(y)return y.getPlayerPromise().then(function(u){R.setPlayer(u);return u})}return Promise.resolve(this.player_)};
_.J.setPlayer=function(R){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22478_playerEvents);if(R){this.player_=R;var y;((y=this.data)==null?0:y.externalVideoId)||this.set("videoId",R.getVideoData().video_id||"");var u;(R==null?void 0:(u=R.getPresentingPlayerType)==null?void 0:u.call(R))===2&&(this.set("isAdPlaying",!0),_.Ik(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(R,this.JSC$22478_playerEvents)}};
_.J.ready=function(){_.hw(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.J.onTitleChanged_=function(R){this.set("titleValue",R.detail.title)};
_.J.onStartChanged_=function(R){this.set("start",R.detail.start)};
_.J.onEndChanged_=function(R){this.set("end",R.detail.end)};
_.J.onTitleValidChanged_=function(R){this.set("titleValid",R.detail.valid)};
_.J.onStartValidChanged_=function(R){this.set("startValid",R.detail.valid)};
_.J.onEndValidChanged_=function(R){this.set("endValid",R.detail.valid)};
_.J.onVideoDataChange_=function(){var R;if((R=this.data)==null||!R.externalVideoId){var y;this.set("videoId",((y=this.player_)==null?void 0:y.getVideoData().video_id)||"")}};
_.J.computeFormValid_=function(R,y,u,v){return!!(R&&y&&u&&v)};
_.J.computeCancelButton_=function(R,y,u){return R&&_.e(R,_.aG)?{buttonRenderer:Object.assign({},_.e(R,_.aG),{isDisabled:y||u})}:null};
_.J.computeSubmitButton_=function(R,y,u){return R&&_.e(R,_.aG)?{buttonRenderer:Object.assign({},_.e(R,_.aG),{command:void 0,isDisabled:!this.formValid||y||u})}:null};
_.J.computeSubmitCommand_=function(R){return R||null};
_.J.onSubmit_=function(R){var y=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),_.Fh(this.hostElement,[this.submitCommand_,R]).then(function(){y.set("isLoading_",!1)},function(){y.set("isLoading_",!1)}))};
_.J.playerAdStartHandler_=function(){_.Ik(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.J.playerAdEndHandler_=function(){_.Ik(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.J.onVideoProgress_=function(){var R=this;this.getPlayer().then(function(y){var u,v=(y==null?void 0:(u=y.getPresentingPlayerType)==null?void 0:u.call(y))===2;R.isAdPlaying!==v&&(v?R.playerAdStartHandler_():R.playerAdEndHandler_())})};
dH.prototype.onEndValidChanged_=dH.prototype.onEndValidChanged_;dH.prototype.onStartValidChanged_=dH.prototype.onStartValidChanged_;dH.prototype.onTitleValidChanged_=dH.prototype.onTitleValidChanged_;dH.prototype.onEndChanged_=dH.prototype.onEndChanged_;dH.prototype.onStartChanged_=dH.prototype.onStartChanged_;dH.prototype.onTitleChanged_=dH.prototype.onTitleChanged_;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],dH.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.n(_.Ra.YtPlayerListenerBehavior),_.p("design:type",Object)],dH.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],dH.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],dH.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],dH.prototype,"data",void 0);_.A([_.r({value:""}),_.p("design:type",String)],dH.prototype,"titleValue",void 0);
_.A([_.r({value:!1}),_.p("design:type",Boolean)],dH.prototype,"titleValid",void 0);_.A([_.r({value:0}),_.p("design:type",Number)],dH.prototype,"start",void 0);_.A([_.r({value:!0}),_.p("design:type",Boolean)],dH.prototype,"startValid",void 0);_.A([_.r({value:0}),_.p("design:type",Number)],dH.prototype,"end",void 0);_.A([_.r({value:!0}),_.p("design:type",Boolean)],dH.prototype,"endValid",void 0);_.A([_.r({value:""}),_.p("design:type",String)],dH.prototype,"videoId",void 0);
_.A([_.r({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.p("design:type",Boolean)],dH.prototype,"formValid",void 0);_.A([_.r({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.p("design:type",Object)],dH.prototype,"submitButton_",void 0);_.A([_.r({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.p("design:type",Object)],dH.prototype,"submitCommand_",void 0);
_.A([_.r({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.p("design:type",Object)],dH.prototype,"cancelButton_",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],dH.prototype,"isLoading_",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],dH.prototype,"isAdPlaying",void 0);_.A([_.r({value:0}),_.p("design:type",Number)],dH.prototype,"returnTime",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],dH.prototype,"isAtLiveHead",void 0);
_.A([_.fu("title-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],dH.prototype,"onTitleChanged_",null);_.A([_.fu("start-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],dH.prototype,"onStartChanged_",null);_.A([_.fu("end-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],dH.prototype,"onEndChanged_",null);
_.A([_.fu("title-valid-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],dH.prototype,"onTitleValidChanged_",null);_.A([_.fu("start-valid-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],dH.prototype,"onStartValidChanged_",null);_.A([_.fu("end-valid-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],dH.prototype,"onEndValidChanged_",null);
_.A([_.pu({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],dH);
_.m(dH,"yt-clip-creation-renderer",function(){if(QKb===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;vEr===void 0&&(vEr=document.createElement("template"));var v=vEr;u.call(y,v.content.cloneNode(!0),R.content.firstChild);QKb=R}R=QKb;return R},{mode:2});var Us=function(){return _.W.apply(this,arguments)||this};
_.O(Us,_.W);Us.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"}}}};
Us.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(R){return R.hasOwnProperty("clipCreationRenderer")})&&_.Ik(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
Us.prototype.onPanelContentVisibleChanged=Us.prototype.onPanelContentVisibleChanged;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Us.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Us.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.Cl.YtVisibilityBehavior),_.p("design:type",Object)],Us.prototype,"ytVisibilityBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],Us.prototype,"ytdReduxBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],Us.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Us.prototype,"panelContentVisible",void 0);_.A([_.e0("panelContentVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Us.prototype,"onPanelContentVisibleChanged",null);_.A([_.q({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],Us);
_.m(Us,"ytd-clip-section-renderer",function(){if(RFF!==void 0)return RFF;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return RFF=R},{mode:1});var KKK;var k_=function(){return _.W.apply(this,arguments)||this};
_.O(k_,_.W);_.J=k_.prototype;
_.J.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=_.Ae(this.highlightedIndex,-1,this.snippetElements.length);R=this.snippetElements.length;var y=this.highlightedIndex%R;this.highlightedIndex=y*R<0?y+R:y;R=this.snippetElements[this.highlightedIndex];this.highlightSnippet(R);this.ensureVisible(R)}};
_.J.onKeyUp=function(R){var y=this;eTr(R)&&(R.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.WG.cancelJob(this.inputTimerId),this.inputTimerId=_.WG.addLowPriorityJob(function(){y.typedValue&&(y.fetchSnippets(y.typedValue),y.logInputGesture(y.data))},1E3))};
_.J.onClick=function(R){(R=_.Gag(R.target,null,"snippet-item"))&&this.selectSnippet(R)};
_.J.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.J.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.J.ready=function(){var R=this;this.inputElement.addEventListener("focus",function(){R.snippetsWrapper.style.removeProperty("display")})};
_.J.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.J.getSourceTimelines=function(){if(!this.data)return[];var R=[];if(this.data.searchInVideoSources)for(var y=_.V(this.data.searchInVideoSources),u=y.next();!u.done;u=y.next())u=u.value,u==="SEARCH_IN_VIDEO_SOURCE_ASR"?R.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):u==="SEARCH_IN_VIDEO_SOURCE_OCR"&&R.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return R};
_.J.fetchSnippets=function(R){var y=_.Ik(this.hostElement,"yt-get-current-video-id-action")[0],u=this.getSourceTimelines();R={getSearchInVideoCommand:{externalVideoId:y,query:R!=null?R:"",sourceTimelines:u},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.ua().resolve(_.jX).resolveCommand(R,{form:{element:this.hostElement}})};
_.J.filterSnippets=function(R,y){var u=this;if(y){this.filteredSnippets=(0,_.Ps.unsafeClone)(R);var v=RegExp(_.k0G(y),"i");this.filteredSnippets=this.filteredSnippets.filter(function(K){return v.test(u.ytRendererBehavior.getSimpleString(K.snippet))});
R=_.V(this.filteredSnippets);for(var Q=R.next();!Q.done;Q=R.next()){Q=Q.value;var M=this.ytRendererBehavior.getSimpleString(Q.snippet);Q.snippet={runs:[{text:M.substring(0,M.toLowerCase().indexOf(y))},{text:M.substring(M.toLowerCase().indexOf(y),M.toLowerCase().indexOf(y)+y.length),bold:!0},{text:M.substring(M.toLowerCase().indexOf(y)+y.length,M.length)}]}}}else this.filteredSnippets=R};
_.J.onUpdateSearchInVideoResults=function(R){if(!(this.snippets.length>0)){var y,u,v;if((v=(y=_.e(R,kTB))==null?void 0:(u=y.results)==null?void 0:u.length)!=null&&v){var Q;this.filteredSnippets=this.snippets=((Q=_.e(R,kTB))==null?void 0:Q.results).map(function(M){var K,h,b;return{startMs:M==null?void 0:(K=M.searchInVideoResultRenderer)==null?void 0:K.startMs,startTimeText:M==null?void 0:(h=M.searchInVideoResultRenderer)==null?void 0:h.startTimeText,snippet:M==null?void 0:(b=M.searchInVideoResultRenderer)==
null?void 0:b.snippet}})}}};
_.J.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};
_.J.highlightSnippet=function(R){R.classList.add("highlighted")};
_.J.removeSnippetHighlight=function(R){R.classList.remove("highlighted")};
_.J.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)};
_.J.ensureVisible=function(R){var y=this.snippetsWrapper.scrollTop,u=y+this.snippetsWrapper.clientHeight,v=R.offsetTop-this.snippetsWrapper.offsetTop;R=v+R.clientHeight;v<y?this.snippetsWrapper.scrollTop-=y-v:R>u&&(this.snippetsWrapper.scrollTop+=R-u)};
_.J.seekPlayer=function(R){var y,u;return _.I(function(v){if(v.nextAddress==1){if(!R)return v.jumpTo(0);y=Number(R.dataset.startOffset);return v.yield(_.hF().getPlayerPromise(),3)}u=v.yieldResult;u.seekTo(y/1E3,!0);u.wakeUpControls();_.f$(v)})};
_.J.logInputGesture=function(R){var y=_.$I();y&&(R==null?0:R.trackingParams)&&_.Co(y,_.U4(R.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.J.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.CQ("typed-value-changed",this.typedValue))};
_.J.updateTypedValueFromBinding=function(R){this.typedValue=R.currentTarget.value};
k_.prototype.typedValueChangedForBinding=k_.prototype.typedValueChangedForBinding;k_.prototype.dataChanged=k_.prototype.dataChanged;k_.prototype.panelContentVisibleChanged=k_.prototype.panelContentVisibleChanged;k_.prototype.onClick=k_.prototype.onClick;k_.prototype.onKeyUp=k_.prototype.onKeyUp;k_.prototype.onKeyDown=k_.prototype.onKeyDown;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],k_.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],k_.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],k_.prototype,"data",void 0);_.A([_.r({value:[]}),_.p("design:type",Array)],k_.prototype,"snippets",void 0);_.A([_.r({value:[]}),_.p("design:type",Array)],k_.prototype,"filteredSnippets",void 0);_.A([_.r({value:[]}),_.p("design:type",Array)],k_.prototype,"snippetElements",void 0);
_.A([_.O7("#siv-input"),_.p("design:type",HTMLElement)],k_.prototype,"inputElement",void 0);_.A([_.O7("#siv-snippets-wrapper"),_.p("design:type",HTMLElement)],k_.prototype,"snippetsWrapper",void 0);_.A([_.r(),_.p("design:type",String)],k_.prototype,"typedValue",void 0);_.A([_.r({value:-1}),_.p("design:type",Number)],k_.prototype,"highlightedIndex",void 0);_.A([_.fu("keydown"),_.p("design:type",Function),_.p("design:paramtypes",[_.lV]),_.p("design:returntype")],k_.prototype,"onKeyDown",null);
_.A([_.fu("keyup"),_.p("design:type",Function),_.p("design:paramtypes",[_.lV]),_.p("design:returntype")],k_.prototype,"onKeyUp",null);_.A([_.fu("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],k_.prototype,"onClick",null);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],k_.prototype,"panelContentVisible",void 0);
_.A([_.e0("panelContentVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],k_.prototype,"panelContentVisibleChanged",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],k_.prototype,"dataChanged",null);_.A([_.e0("typedValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],k_.prototype,"typedValueChangedForBinding",null);
_.A([_.q({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],k_);
_.m(k_,"ytd-search-in-video-renderer",function(){if(KKK!==void 0)return KKK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return KKK=R},{mode:1});var I2g;var Es=function(){return _.W.apply(this,arguments)||this};
_.O(Es,_.W);Es.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
Es.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]]"}}}}}};
Es.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var R,y,u,v,Q=(y=_.e((R=this.data)==null?void 0:R.onClickCommand,_.ru))==null?void 0:(u=y.item)==null?void 0:(v=u.notificationTextRenderer)==null?void 0:v.successResponseText;Q&&_.apO(this.hostElement,Q)}};
_.RR.Object.defineProperties(Es.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,y,u,v;return this.isProductPlaceholder&&((R=this.data)==null?void 0:(y=R.hiddenProductOptions)==null?void 0:y.showDropCountdown)&&!!((u=this.data)==null?0:(v=u.hiddenProductOptions)==null?0:v.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,y;return!((R=this.data)==null?0:R.priceReplacementText)&&!((y=this.data)==null||!y.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Es.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Es.prototype,"componentBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Es.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Es.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0}),_.G("isProductPlaceholder"),_.p("design:type",Object),_.p("design:paramtypes",[])],Es.prototype,"useCenterLayoutContainer",null);_.A([_.r({computed:"computeButtonOverride(data)"}),_.p("design:type",Object)],Es.prototype,"buttonOverride",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Es.prototype,"isProductPlaceholder",null);
_.A([_.G("isProductPlaceholder"),_.p("design:type",Object),_.p("design:paramtypes",[])],Es.prototype,"showDropCountdown",null);_.A([_.G("isProductPlaceholder","data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Es.prototype,"showBrandName",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Es.prototype,"showPriceReplacementText",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Es.prototype,"showPrice",null);
_.A([_.G("isProductPlaceholder"),_.p("design:type",Object),_.p("design:paramtypes",[])],Es.prototype,"showMetadata",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],Es);
_.m(Es,"ytd-product-list-item-renderer",function(){if(I2g!==void 0)return I2g;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return I2g=R},{mode:1});var hF4;var $_=function(){return _.W.apply(this,arguments)||this};
_.O($_,_.W);$_.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
$_.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
$_.prototype.panelContentVisibleChanged=function(){var R=this,y;return _.I(function(u){if(u.nextAddress==1)return R.playerApi?u.jumpTo(2):u.yield(_.hF().getPlayerPromise(),3);u.nextAddress!=2&&(R.playerApi=u.yieldResult);(y=R.playerApi)==null||y.productsInVideoVisibilityUpdated(!!R.panelContentVisible);_.f$(u)})};
$_.prototype.panelContentVisibleChanged=$_.prototype.panelContentVisibleChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],$_.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],$_.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],$_.prototype,"panelContentVisible",void 0);_.A([_.r(),_.p("design:type",Object)],$_.prototype,"data",void 0);
_.A([_.e0("panelContentVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype",Promise)],$_.prototype,"panelContentVisibleChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],$_);
_.m($_,"ytd-product-list-renderer",function(){if(hF4!==void 0)return hF4;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return hF4=R},{mode:1});var bKg;var qZ=function(){var R=_.W.apply(this,arguments)||this;R.hideTimestamps=!!_.fl("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};
_.O(qZ,_.W);_.J=qZ.prototype;_.J.hideTimestampsChanged=function(){_.B1("hide-transcript-timestamps",this.hideTimestamps)};
_.J.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.J.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.J.dataChanged=function(){var R;if((R=this.data)!=null&&R.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;R=_.V(this.data.cueGroups);for(var y=R.next();!y.done;y=R.next()){y=_.V(_.e(y.value,ES4).cues);for(var u=y.next();!u.done;u=y.next())this.flatCues.push(Number(_.e(u.value,$UF).startOffsetMs))}}};
_.J.onYtPlayerTimeChanged=function(R){if(!(R<0)){for(var y=this.currentCueIndex,u=y;;){var v=u>=0?this.flatCues[u]/1E3:-1;if(R+.5<v)--u;else if(v=u+1<this.flatCues.length?this.flatCues[u+1]/1E3:Infinity,R+.5>v)u+=1;else break}u!==y&&(y>=0&&((R=this.getCueElement(y))&&R.classList.remove("active"),(y=this.getCueGroupElement(y))&&y.classList.remove("active")),(y=this.getCueElement(u))&&y.classList.add("active"),(y=this.getCueGroupElement(u))&&y.classList.add("active"),this.currentCueIndex=u,this.isHovered||
this.scrollElementToTop(u))}};
_.J.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)};
_.J.getCueElement=function(R){return _.hw(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[R]+'"]')};
_.J.getCueGroupElement=function(R){return(R=this.getCueElement(R))&&R.parentElement?R.parentElement.parentElement:null};
_.J.onTap=function(R){var y=_.vN(R);R.target.classList.contains("cue")&&this.seekCueElement(y)};
_.J.onKeyPress=function(R){R.keyCode==13&&(R=_.Gag(R.target,null,"cue"))&&this.seekCueElement(R)};
_.J.seekCueElement=function(R){R=Number(R.getAttribute("start-offset"));_.Ik(this.hostElement,"yt-transcript-player-seek",[R/1E3])};
_.J.onMouseEnter=function(){this.isHovered=!0};
_.J.onMouseLeave=function(){this.isHovered=!1};
qZ.prototype.onMouseLeave=qZ.prototype.onMouseLeave;qZ.prototype.onMouseEnter=qZ.prototype.onMouseEnter;qZ.prototype.onKeyPress=qZ.prototype.onKeyPress;qZ.prototype.onTap=qZ.prototype.onTap;qZ.prototype.dataChanged=qZ.prototype.dataChanged;qZ.prototype.hideTimestampsChanged=qZ.prototype.hideTimestampsChanged;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],qZ.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],qZ.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],qZ.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],qZ.prototype,"hideTimestamps",void 0);_.A([_.r(),_.p("design:type",Boolean)],qZ.prototype,"isHovered",void 0);_.A([_.e0("hideTimestamps"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qZ.prototype,"hideTimestampsChanged",null);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qZ.prototype,"dataChanged",null);_.A([_.fu("tap"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],qZ.prototype,"onTap",null);_.A([_.fu("keypress"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],qZ.prototype,"onKeyPress",null);
_.A([_.fu("mouseenter"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qZ.prototype,"onMouseEnter",null);_.A([_.fu("mouseleave"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qZ.prototype,"onMouseLeave",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],qZ);
_.m(qZ,"ytd-transcript-body-renderer",function(){if(bKg!==void 0)return bKg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return bKg=R},{mode:1});var FKK;var mT=function(){var R=_.W.apply(this,arguments)||this;R.darkerPanels=_.f("web_watch_darker_panels");return R};
_.O(mT,_.W);mT.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],mT.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],mT.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],mT.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],mT.prototype,"darkerPanels",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],mT);
_.m(mT,"ytd-transcript-footer-renderer",function(){if(FKK!==void 0)return FKK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return FKK=R},{mode:1});var wgF;var NCK;var AQ=function(){var R=_.W.apply(this,arguments)||this;R.systemIcons=_.f("kevlar_system_icons");R.showClearButton=!1;return R};
_.O(AQ,_.W);_.J=AQ.prototype;_.J.handleInput=function(R){var y=this;R.target.value.length?_.zJ(this,"ytdTranscriptSearchBoxSearch",function(){y.emitSearchEvent(R)},500):(_.Osz(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=R.target.value.length>0};
_.J.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.J.handleClick=function(){var R,y=(R=this.data)==null?void 0:R.trackingParams;y&&_.e2(_.GN(),y)};
_.J.handleClear=function(){_.Osz(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var R,y,u=(y=_.e((R=this.data)==null?void 0:R.clearButton,_.aG))==null?void 0:y.trackingParams;u&&_.e2(_.GN(),u);this.clear()};
_.J.emitSearchEvent=function(R){_.Ko(this.hostElement,"yt-transcript-search-box-search",{query:R.target.value});var y,u;(R=(u=_.e((y=this.data)==null?void 0:y.searchButton,_.aG))==null?void 0:u.trackingParams)&&_.e2(_.GN(),R)};
_.J.emitClearEvent=function(){_.Ko(this.hostElement,"yt-transcript-search-box-clear")};
_.RR.Object.defineProperties(AQ.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.hw(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],AQ.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],AQ.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],AQ.prototype,"systemIcons",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],AQ);
_.m(AQ,"ytd-transcript-search-box-renderer",function(){if(NCK!==void 0)return NCK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return NCK=R},{mode:1});var TCC;var oEq;var D4=function(){return _.W.apply(this,arguments)||this};
_.O(D4,_.W);D4.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var R,y;this.sectionHeaderAriaLabel=(R=this.data)==null?void 0:(y=R.accessibility)==null?void 0:y.accessibilityData.label}};
D4.prototype.fireSelectedEvent=function(R){_.Ko(this.hostElement,"ytd-transcript-section-header",{startMs:R})};
D4.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
D4.prototype.handleKeyPress=function(R){this.data&&R.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.RR.Object.defineProperties(D4.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var R,y;return(y=(R=this.data)==null?void 0:R.enableTappableTranscriptHeader)!=null?y:!1}}});
D4.prototype.dataChanged=D4.prototype.dataChanged;_.A([_.r(),_.p("design:type",Object)],D4.prototype,"data",void 0);_.A([_.r(),_.p("design:type",String)],D4.prototype,"sectionHeaderAriaLabel",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],D4.prototype,"enableTappableTranscriptHeader",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],D4.prototype,"dataChanged",null);
_.A([_.q({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],D4);
_.m(D4,"ytd-transcript-section-header-renderer",function(){if(oEq!==void 0)return oEq;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return oEq=R},{mode:1});var xyK;var BC2;var pB=function(){var R=_.W.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:_.fo("suggest_correction",void 0,"Edit caption"),suggested_caption:_.fo("suggested_caption",void 0,"Suggested caption"),submit_correction:_.fo("submit_correction",void 0,"Submit for review"),cancel_correction:_.fo("cancel_correction",
void 0,"Cancel"),replay_segment:_.fo("replay_segment",void 0,"Re-play segment"),delete_correction:_.fo("delete_correction",void 0,"Delete correction")};R.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return R};
_.O(pB,_.W);_.J=pB.prototype;_.J.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)};
_.J.handleDelete=function(R){if(this.deleteCaptionCorrectionPopupCommand){var y=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);y&&this.ytdOpenPopupBehavior.openPopup(y);R.stopPropagation()}};
_.J.handleSubmit=function(R){if(this.data&&this.data.submitCaptionCorrectionCommand&&(R.stopPropagation(),this.textChanged)){var y;R=(y=_.e(this.data.submitCaptionCorrectionCommand,_.Fs5))==null?void 0:y.params;y=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:R,correctionText:String(this.ironTextAreaElement.value),originalText:_.u7(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(y);this.isEditMode=!1}};
_.J.handleUpdateSegmentText=function(R){(R=_.e(R,Rcq))&&R.targetId&&this.data&&R.targetId===this.data.targetId&&(R.userCorrection&&(this.editedText=R.userCorrection),R.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.u7(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))};
_.J.handleCancel=function(R){this.isEditMode=!1;R.stopPropagation();this.logClientVe(159409)};
_.J.handleEditSegmentCommand=function(R){(R=_.e(R,CO4))&&R.targetId&&this.data&&R.targetId===this.data.targetId&&this.handleEdit()};
_.J.handleEditButtonClick=function(R){this.data&&(this.handleEdit(),R.stopPropagation())};
_.J.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)}};
_.J.handleMouseEnter=function(){this.mouseOver=!0};
_.J.handleMouseLeave=function(){this.mouseOver=!1};
_.J.handleReplay=function(R){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),R.stopPropagation(),this.logClientVe(159408))};
_.J.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()))};
_.J.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))};
_.J.handleTextboxClick=function(R){R.stopPropagation()};
_.J.handleTextboxKeydown=function(R){this.isControlEnterPress(R)?this.handleSubmit(R):R.key==="Escape"&&this.handleCancel(R)};
_.J.handleTextboxKeyup=function(){this.textChanged=_.u7(this.latestText)!==String(this.ironTextAreaElement.value)};
_.J.fireSelectedEvent=function(R){_.Ko(this.hostElement,"yt-transcript-segment-selected",{startMs:R})};
_.J.fireReplayEvent=function(R,y){_.Ko(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(R-100,0),endMs:y})};
_.J.fireEditEvent=function(R,y){_.Ko(this.hostElement,"yt-transcript-segment-edit",{startMs:R,endMs:y})};
_.J.isEnterPress=function(R){return R.key==="Enter"||R.code==="Enter"||R.code==="NumpadEnter"||R.keyCode===13?!0:!1};
_.J.isControlEnterPress=function(R){var y=R.key==="Enter"||R.code==="Enter"||R.code==="NumpadEnter"||R.keyCode===13;return(R.ctrlKey||R.metaKey)&&y};
_.J.isCopyPress=function(R){var y=R.ctrlKey;return R.key==="c"&&y};
_.J.logClick=function(){var R,y=(R=this.data)==null?void 0:R.trackingParams;y&&_.e2(_.GN(),y)};
_.J.logClientVe=function(R){_.fx(_.GN(),_.$6(R))};
_.RR.Object.defineProperties(pB.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}}});
pB.prototype.handleMouseLeave=pB.prototype.handleMouseLeave;pB.prototype.handleMouseEnter=pB.prototype.handleMouseEnter;pB.prototype.dataChanged=pB.prototype.dataChanged;_.A([_.n(_.bW.YtActionHandlerBehavior),_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],pB.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.jc),_.p("design:type",Object)],pB.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],pB.prototype,"ytRendererBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],pB.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],pB.prototype,"isEditMode",void 0);_.A([_.r(),_.p("design:type",Object)],pB.prototype,"touchCaptionsEnabled",void 0);_.A([_.r(),_.p("design:type",Object)],pB.prototype,"editedText",void 0);_.A([_.r(),_.p("design:type",Object)],pB.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.A([_.r(),_.p("design:type",Object)],pB.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.A([_.r(),_.p("design:type",String)],pB.prototype,"segmentAriaLabel",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],pB.prototype,"roundedContainer",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],pB.prototype,"mouseOver",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],pB.prototype,"textChanged",void 0);_.A([_.r(),_.p("design:type",Object)],pB.prototype,"messages",void 0);
_.A([_.O7("#suggestion"),_.p("design:type",Object)],pB.prototype,"ironTextAreaElement",void 0);_.A([_.G("data","editedText"),_.p("design:type",Object),_.p("design:paramtypes",[])],pB.prototype,"latestText",null);_.A([_.G("touchCaptionsEnabled","isEditMode"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],pB.prototype,"enableEditButton",null);
_.A([_.G("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],pB.prototype,"enableUndoButton",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],pB.prototype,"dataChanged",null);_.A([_.fu("mouseenter"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],pB.prototype,"handleMouseEnter",null);
_.A([_.fu("mouseleave"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],pB.prototype,"handleMouseLeave",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],pB);
_.m(pB,"ytd-transcript-segment-renderer",function(){if(BC2!==void 0)return BC2;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return BC2=R},{mode:1});var tQ=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};R.isError=!1;R.darkerPanels=_.f("web_watch_darker_panels");R.useParentMaxHeight=_.f("web_watch_transscript_use_parent_max_height");R.segmentOffsets=[];R.segmentIndex=-1;return R};
_.O(tQ,_.W);_.J=tQ.prototype;_.J.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"}}}}};
_.J.segmentsChanged=function(){this.updateOffsets()};
_.J.onYtPlayerTimeChanged=function(R){for(var y=this.segmentIndex,u=y;;){if(u>=0){var v=this.segmentOffsets[u].start;var Q=this.segmentOffsets[u].isAutoScrollable}else v=-1,Q=!0;var M=R+.5;if(!Q){v=u+1<this.segmentOffsets.length?this.segmentOffsets[u+1].start:Infinity;if(M>=v){u+=1;continue}u=-1;break}if(M<v)v=u-1>=0&&this.segmentOffsets[u-1].isAutoScrollable,Q=u===0||v?1:2,u-=Q;else if(Q=u+1<this.segmentOffsets.length&&this.segmentOffsets[u+1].isAutoScrollable?1:2,v=u+Q<this.segmentOffsets.length?
this.segmentOffsets[u+Q].start:Infinity,M>v)u+=Q;else{if(u<0)break;u<this.segmentOffsets.length&&M>this.segmentOffsets[u].end&&(u=-1);break}}if(y!==u){if(y>=0){var K;(K=this.getSegmentElement(y))==null||K.classList.remove("active")}this.segmentIndex=u;if(!(u<0)){var h;(h=this.getSegmentElement(u))==null||h.classList.add("active");this.isHovered||this.scrollElementToTop(u)}}};
_.J.handleSegmentEdit=function(R){R.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=R.target,_.Ik(this.hostElement,"yt-transcript-player-edit",[R.detail.startMs/1E3,R.detail.endMs/1E3]))};
_.J.handleSegmentSelected=function(R){_.Ik(this.hostElement,"yt-transcript-player-seek",[R.detail.startMs/1E3])};
_.J.handleSegmentReplay=function(R){_.Ik(this.hostElement,"yt-transcript-player-replay",[R.detail.startMs/1E3,R.detail.endMs/1E3])};
_.J.handleSectionHeaderSelected=function(R){_.Ik(this.hostElement,"yt-transcript-player-seek",[R.detail.startMs/1E3])};
_.J.onMouseEnter=function(){this.isHovered=!0};
_.J.onMouseLeave=function(){this.isHovered=!1};
_.J.onRetryButtonClick=function(){_.Ko(this.hostElement,"transcript-retry-button-click")};
_.J.getSegmentElement=function(R){return _.hw(this.hostElement).querySelector(":nth-child("+(R+1)+")")};
_.J.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)};
_.J.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(R){var y,u=(y=R.transcriptSegmentRenderer)!=null?y:R.transcriptSectionHeaderRenderer;return{start:Number(u.startMs)/1E3,end:Number(u.endMs)/1E3,isAutoScrollable:R.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.J.clearHighlightedSegments=function(){var R=_.hw(this.hostElement);R=_.V(R.querySelectorAll("ytd-transcript-segment-renderer"));for(var y=R.next();!y.done;y=R.next())y.value.classList.remove("active")};
_.RR.Object.defineProperties(tQ.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var R,y;return((R=this.data)==null?void 0:R.searchResultSegments)||((y=this.data)==null?void 0:y.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
tQ.prototype.onMouseLeave=tQ.prototype.onMouseLeave;tQ.prototype.onMouseEnter=tQ.prototype.onMouseEnter;tQ.prototype.handleSectionHeaderSelected=tQ.prototype.handleSectionHeaderSelected;tQ.prototype.handleSegmentReplay=tQ.prototype.handleSegmentReplay;tQ.prototype.handleSegmentSelected=tQ.prototype.handleSegmentSelected;tQ.prototype.handleSegmentEdit=tQ.prototype.handleSegmentEdit;tQ.prototype.segmentsChanged=tQ.prototype.segmentsChanged;
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],tQ.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],tQ.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],tQ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],tQ.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],tQ.prototype,"isError",void 0);
_.A([_.r(),_.p("design:type",Object)],tQ.prototype,"noResultLabel",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],tQ.prototype,"darkerPanels",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],tQ.prototype,"useParentMaxHeight",void 0);_.A([_.G("data"),_.p("design:type",Array),_.p("design:paramtypes",[])],tQ.prototype,"segments",null);
_.A([_.G("segments","noResultLabel"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],tQ.prototype,"displayNoResults",null);_.A([_.e0("segments"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tQ.prototype,"segmentsChanged",null);_.A([_.fu("yt-transcript-segment-edit"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],tQ.prototype,"handleSegmentEdit",null);
_.A([_.fu("yt-transcript-segment-selected"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],tQ.prototype,"handleSegmentSelected",null);_.A([_.fu("yt-transcript-segment-replay"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],tQ.prototype,"handleSegmentReplay",null);
_.A([_.fu("ytd-transcript-section-header"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],tQ.prototype,"handleSectionHeaderSelected",null);_.A([_.fu("mouseenter"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tQ.prototype,"onMouseEnter",null);_.A([_.fu("mouseleave"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tQ.prototype,"onMouseLeave",null);
_.A([_.q({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],tQ);
_.m(tQ,"ytd-transcript-segment-list-renderer",function(){if(xyK!==void 0)return xyK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return xyK=R},{mode:1});var ci=function(){var R=_.W.apply(this,arguments)||this;R.hideTimestamps=!!_.fl("hide-transcript-timestamps");R.isLoadingTranscripts=!1;R.darkerPanels=_.f("web_watch_darker_panels");R.isError=!1;R.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return R};
_.O(ci,_.W);_.J=ci.prototype;_.J.headerChanged=function(){var R,y;this.baseGetTranscriptsCommand=(y=_.e((R=this.data)==null?void 0:R.header,yL2))==null?void 0:y.onTextChangeCommand};
_.J.bodyChanged=function(){var R=this.getBodyRenderer();R&&(R.initialSegments&&(this.initialTranscriptsRenderer=R),R.noResultLabel&&(this.noResultLabel=R.noResultLabel),R.retryLabel&&(this.retryLabel=R.retryLabel))};
_.J.detached=function(){this.clearSearchBoxText()};
_.J.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.J.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"}}}};
_.J.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.J.fireSearch=function(R){var y=this;if(R){var u=R.detail.query;if(this.baseGetTranscriptsCommand){var v;R=(v=_.e(this.baseGetTranscriptsCommand,_.YRi))==null?void 0:v.params;var Q;v=_.e((Q=this.data)==null?void 0:Q.footer,qPy);var M;if((Q=(M=_.e(v==null?void 0:v.languageMenu,sLB))==null?void 0:M.subMenuItems)&&Q.length>0&&(M=Q.find(function(b){return b.selected}))){var K,h;
R=(K=M.continuation)==null?void 0:(h=K.reloadContinuationData)==null?void 0:h.continuation}K=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:R,searchQuery:u}});this.ytComponentBehavior.resolveCommand(K,{commandController:{onServerError:function(){y.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});BEB(this.ytContinuationHandlerBehavior,function(){return u===y.getCurrentSearchBoxText()})}}};
_.J.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.J.onRetryButtonClick=function(){this.isError=!1;var R={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:R}))};
_.J.hideTimestampsChanged=function(){_.B1("hide-transcript-timestamps",this.hideTimestamps)};
_.J.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.J.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.J.handleSignalActionCopyTranscript=function(){var R=this,y=this.getBodyRenderer();y&&(y=((y==null?void 0:y.searchResultSegments)||(y==null?void 0:y.initialSegments)||[]).map(function(u){return _.e(u,v8g)}).filter(function(u){return!!u}).map(function(u){return{snippet:u.snippet||{runs:[{text:""}]},
startTimeText:u.startTimeText||{simpleText:""}}}).map(function(u){var v=(u.snippet.runs||[]).reduce(function(Q,M){return Q+M.text},"");
return R.hideTimestamps?v:u.startTimeText.simpleText+" "+v}).join("\n"),this.copyToClipboard(y))};
_.J.copyToClipboard=function(R){navigator.clipboard&&navigator.clipboard.writeText(R)};
_.J.getCurrentSearchBoxText=function(){var R;return(R=this.searchBox)==null?void 0:R.value};
_.J.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.J.getBodyRenderer=function(){var R;return _.e((R=this.data)==null?void 0:R.body,u5K)};
_.J.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.RR.Object.defineProperties(ci.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.hw(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
ci.prototype.hideTimestampsChanged=ci.prototype.hideTimestampsChanged;ci.prototype.searchCleared=ci.prototype.searchCleared;ci.prototype.fireSearch=ci.prototype.fireSearch;ci.prototype.onReloadContinuationFinish=ci.prototype.onReloadContinuationFinish;ci.prototype.bodyChanged=ci.prototype.bodyChanged;ci.prototype.headerChanged=ci.prototype.headerChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ci.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],ci.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],ci.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.gb),_.p("design:type",Object)],ci.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ci.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ci.prototype,"hideTimestamps",void 0);
_.A([_.r(),_.p("design:type",Object)],ci.prototype,"isLoadingTranscripts",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ci.prototype,"darkerPanels",void 0);_.A([_.r(),_.p("design:type",Object)],ci.prototype,"isError",void 0);_.A([_.e0("data.header"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ci.prototype,"headerChanged",null);
_.A([_.GJ("data.body"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ci.prototype,"bodyChanged",null);_.A([_.fu("yt-reload-continuation-finish"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ci.prototype,"onReloadContinuationFinish",null);_.A([_.fu("yt-transcript-search-box-search"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],ci.prototype,"fireSearch",null);
_.A([_.fu("yt-transcript-search-box-clear"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ci.prototype,"searchCleared",null);_.A([_.e0("hideTimestamps"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ci.prototype,"hideTimestampsChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],ci);
_.m(ci,"ytd-transcript-search-panel-renderer",function(){if(TCC!==void 0)return TCC;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return TCC=R},{mode:1});var aB=function(){var R=_.W.apply(this,arguments)||this;R.player=null;R.playerPollJobId=0;return R};
_.O(aB,_.W);_.J=aB.prototype;_.J.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.J.onLoadReloadContinuation=function(R){_.f("web_generate_att_data_for_get_transcript_request")?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}}},_.ua().resolve(_.jX).resolveCommand(R,{form:{element:this.hostElement}}))};
_.J.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"}}}};
_.J.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.J.attached=function(){this.updatePlayerListening()};
_.J.detached=function(){this.updatePlayerListening()};
_.J.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.J.startPlayerListening=function(){var R=this,y;return _.I(function(u){if(u.nextAddress==1)return(y=_.I8())?u.yield(y.getPlayerPromise(),2):u.return();R.player=u.yieldResult;R.playerPollJobId=_.WG.addLowPriorityJob(function(){R.getPlayerVideoProgress()},1E3);
R.player.addEventListener("onCueRangeEnter",function(v){R.onCueRangeEnter(v)});
R.player.addEventListener("onCueRangeExit",function(v){R.onCueRangeExit(v)});
R.player.addEventListener("onStateChange",function(v){R.onPlayerStateChange(v)});
R.player.addEventListener("SEEK_TO",function(v){R.onPlayerSeek(v)});
_.f$(u)})};
_.J.getPlayerVideoProgress=function(){var R=this;_.WG.cancelJob(this.playerPollJobId);if(this.player){var y=this.player.getCurrentTime();_.Ik(this.hostElement,"yt-player-time-changed",[y])}this.playerPollJobId=_.WG.addLowPriorityJob(function(){R.getPlayerVideoProgress()},1E3)};
_.J.stopPlayerListening=function(){this.player=null;_.WG.cancelJob(this.playerPollJobId)};
_.J.onPlayerStateChange=function(R){R===2&&this.removePendingCue()};
_.J.onPlayerSeek=function(R){var y;if(y=this.pendingReplayCueId)y=this.pendingReplayCueId,y=R===(_.f("web_transcript_cue_id_killswitch")?Number(y):Number(y.split("_")[1]));y||this.removePendingCue()};
_.J.onCueRangeEnter=function(R){aDK(R)&&(this.pendingReplayCueId=R)};
_.J.onCueRangeExit=function(R){aDK(R)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.J.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.J.onYtTranscriptPlayerSeek=function(R){this.player&&this.player.seekTo(R,!0)};
_.J.onYtTranscriptPlayerReplay=function(R,y){this.player&&(this.player.addCueRange(cyH(R),R,y),this.player.seekTo(R,!0),this.player.playVideo())};
_.J.onYtTranscriptPlayerEdit=function(R,y){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(cyH(R),R,y),this.player.seekTo(R,!0))};
aB.prototype.onLoadReloadContinuation=aB.prototype.onLoadReloadContinuation;aB.prototype.panelContentVisibleChanged=aB.prototype.panelContentVisibleChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],aB.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],aB.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],aB.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],aB.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],aB.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],aB.prototype,"panelContentVisible",void 0);_.A([_.e0("panelContentVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],aB.prototype,"panelContentVisibleChanged",null);
_.A([_.fu("yt-load-reload-continuation"),_.p("design:type",Function),_.p("design:paramtypes",[Object]),_.p("design:returntype")],aB.prototype,"onLoadReloadContinuation",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],aB);
_.m(aB,"ytd-transcript-renderer",function(){if(wgF!==void 0)return wgF;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return wgF=R},{mode:1});var f24;var eFy;var SB=function(){return _.W.apply(this,arguments)||this};
_.O(SB,_.W);SB.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.Ko(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.wr(this.hostElement,[this.data.clickCommand],this.hostElement))};
SB.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.sG)()+_.EY)+"px)"};
SB.prototype.updateShouldHideFromBinding=function(R){this.shouldHide=R.detail.value};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],SB.prototype,"rendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],SB.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Boolean)],SB.prototype,"shouldHide",void 0);_.A([_.q({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],SB);
_.m(SB,"ytd-ad-engagement-panel-banner-renderer",function(){if(eFy!==void 0)return eFy;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return eFy=R},{mode:_.TN("kevlar_poly_si_batch_j070")?1:2});var l24;var Y_=function(){var R=_.W.apply(this,arguments)||this;R.modernPanels=_.f("kevlar_watch_modern_panels");R.buttonUpdate=_.f("web_modern_buttons");R.adsSemanticText=_.f("enable_ads_web_ep_buenos_aires_and_padding_fix");return R};
_.O(Y_,_.W);Y_.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.A([_.r(),_.p("design:type",Object)],Y_.prototype,"data",void 0);_.A([_.r({computed:"computeHideDefaultAdBadge(data)"}),_.p("design:type",Boolean)],Y_.prototype,"hideDefaultAdBadge",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Y_.prototype,"modernPanels",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Y_.prototype,"buttonUpdate",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Y_.prototype,"adsSemanticText",void 0);
_.A([_.q({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],Y_);
_.m(Y_,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(l24!==void 0)return l24;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return l24=R},{mode:1});var OKK;var LB=function(){var R=_.W.apply(this,arguments)||this;R.darkerPanels=_.f("web_watch_darker_panels");R.enableSqueezebackPanels=_.f("web_shorts_enable_squeezeback_panels");R.enableAnchoredPanel=_.f("desktop_shorts_v2_anchored_panel");R.modernPanels=_.f("kevlar_watch_modern_panels");R.headerClickListener=function(y){R.onHeaderClick(y)};
R.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return R};
_.O(LB,_.W);_.J=LB.prototype;_.J.computeAdsInfoButton=function(){if(_.f("web_modern_buttons")){var R,y;return(y=_.e((R=this.data)==null?void 0:R.subtitleComplex,XW4))==null?void 0:y.adInfoRenderer}};
_.J.updateHeaderClickListener=function(){var R,y,u;((R=this.data)==null?0:R.navigationEndpoint)||((y=this.data)==null?0:y.onClickCommand)||_.e((u=this.data)==null?void 0:u.visibilityButton,_.SE)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.J.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}}}}}};
_.J.collapsedChanged=function(){var R;(R=this.data)!=null&&R.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.f("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.J.focus=function(R){var y=this;this.titleElement&&_.WG.addJob(function(){_.S_(y.titleElement,R)},0,500)};
_.J.computeTitleAriaLabel=function(R){var y=[];if(R.title){var u,v;y.push(this.ytRendererBehavior.getSimpleString(R.title)||((u=R.title.accessibility)==null?void 0:(v=u.accessibilityData)==null?void 0:v.label))}R.contextualInfo&&y.push(this.ytRendererBehavior.getSimpleString(R.contextualInfo));return y.join(" ")};
_.J.onHeaderClick=function(R){this.shouldTriggerHeaderClick(R)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.Ko(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.wr(this.hostElement,[this.data.onClickCommand],this.hostElement)):(R=this.getVisibilityToggleButton())&&R.click())};
_.J.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var R=_.e(this.data.visibilityButton,_.aG)||_.e(this.data.visibilityButton,_.SE);R&&this.ytRendererBehavior.logExplicitClick(R)}};
_.J.getVisibilityToggleButton=function(){var R=_.hw(this.hostElement).querySelector("#visibility-button").firstElementChild;return(R==null?void 0:R.is)==="ytd-toggle-button-renderer"?R:null};
_.J.shouldTriggerHeaderClick=function(R){return!_.JF(_.u8(R),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.J.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(R){R=_.e(R,_.rzo);this.targetId&&(R==null?void 0:R.targetId)===this.targetId&&(R=R.navigationButton)&&this.set("data.navigationButton",R)};
_.RR.Object.defineProperties(LB.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.f("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)}}});
LB.prototype.collapsedChanged=LB.prototype.collapsedChanged;LB.prototype.updateHeaderClickListener=LB.prototype.updateHeaderClickListener;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],LB.prototype,"actionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],LB.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],LB.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.n(_.p6),_.p("design:type",Object)],LB.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],LB.prototype,"data",void 0);_.A([_.r(),_.p("design:type",String)],LB.prototype,"targetId",void 0);_.A([_.r(),_.p("design:type",Boolean)],LB.prototype,"collapsed",void 0);_.A([_.r(),_.p("design:type",Boolean)],LB.prototype,"hideActionButton",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],LB.prototype,"shortsPanel",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],LB.prototype,"liveChatEngagementPanel",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],LB.prototype,"learningChatEngagementPanel",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],LB.prototype,"darkerPanels",void 0);_.A([_.O7("#title"),_.p("design:type",HTMLElement)],LB.prototype,"titleElement",void 0);_.A([_.O7("#header"),_.p("design:type",HTMLElement)],LB.prototype,"headerElement",void 0);
_.A([_.r({computed:"computeAdsInfoButton(data)"}),_.p("design:type",Object)],LB.prototype,"adsInfoButton",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],LB.prototype,"enableSqueezebackPanels",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],LB.prototype,"enableAnchoredPanel",void 0);_.A([_.r({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(R,y){return _.TI(R.entities,"engagementPanelTitleHeaderEntity",y)}}),
_.p("design:type",Object)],LB.prototype,"entity",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],LB.prototype,"modernPanels",void 0);_.A([_.r({reflectToAttribute:!0}),_.G("targetId"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],LB.prototype,"adsSemanticText",null);_.A([_.e0("data","data.navigationEndpoint","data.onClickCommand"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],LB.prototype,"updateHeaderClickListener",null);
_.A([_.GJ("collapsed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],LB.prototype,"collapsedChanged",null);_.A([_.G("entity","hideActionButton"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],LB.prototype,"isActionButtonHidden",null);_.A([_.q({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],LB);
_.m(LB,"ytd-engagement-panel-title-header-renderer",function(){if(OKK!==void 0)return OKK;var R=document.createElement("template");_.H(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" 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(_.t().content.cloneNode(!0),R.content.firstChild);return OKK=R},{mode:1});var ZKg;var ss=function(){return _.W.apply(this,arguments)||this};
_.O(ss,_.W);ss.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ss.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],ss.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ss.prototype,"data",void 0);_.A([_.q({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],ss);
_.m(ss,"ytd-macro-markers-info-item-renderer",function(){if(ZKg!==void 0)return ZKg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return ZKg=R},{mode:1});var HKq;var rqg=function(R,y,u,v,Q,M){_.Z0.call(this);var K=this;this.JSC$22580_containerElement=R;this.hostElement=y;this.supportedSyncItems=u;this.syncEntityKey=v;this.options=Q;this.renderLazyListItems=M;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;nEo(this);GBB(this);this.JSC$22580_scrollAnimation=new _.gl(function(h){R.scrollTop=h});
_.bx(this,this.JSC$22580_scrollAnimation);this.addOnDisposeCallback(function(){K.exitBrowsingMode(!1);K.activeItem&&K.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.O(rqg,_.Z0);var nEo=function(R){var y=_.GD(_.ua().resolve(_.S5),function(u){return u.entities.markersEngagementPanelSyncEntity||{}},function(u,v){var Q;
u[R.syncEntityKey]!==v[R.syncEntityKey]&&((Q=u[R.syncEntityKey])==null?void 0:Q.activeItemIndex)!==void 0&&R.updatePanelActiveItem(u[R.syncEntityKey].activeItemIndex)});
R.unsubscribeFromTimedMarkersListSyncEntity=y;R.addOnDisposeCallback(y);Pby(R)},Pby=function(R){var y=_.ua().resolve(_.S5);
y=_.ZdE(y.getState(),R.syncEntityKey);(y==null?void 0:y.activeItemIndex)!==void 0&&(y=R.getItemByIndex(y.activeItemIndex))&&R.setActiveItem(y)},GBB=function(R){var y=new _.v2(R.onScroll,50,R);
_.bx(R,y);var u=function(){y.fire()};
R.JSC$22580_containerElement.addEventListener("scroll",u);R.addOnDisposeCallback(function(){R.JSC$22580_containerElement.removeEventListener("scroll",u)})};
_.J=rqg.prototype;
_.J.updatePanelActiveItem=function(R){var y=this.getItemByIndex(R);if(y){if(this.setActiveItem(y),this.contentVisible)if(this.browsingMode){var u;((u=this.options)==null?void 0:u.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(R=WKo(this),y.offsetTop<this.JSC$22580_containerElement.clientHeight+this.JSC$22580_containerElement.scrollTop&&R&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));dyy(this)}else this.scrollToItem(y)}else _.kT(new _.OL("Could not find "+this.supportedSyncItems+
" sync child to set active.",R,this.JSC$22580_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.J.getItemByIndex=function(R){var y;(y=this.renderLazyListItems)==null||y.call(this,R);y=this.JSC$22580_containerElement.querySelectorAll(this.supportedSyncItems);if(y.length>R)return y[R]};
_.J.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};
_.J.scrollToItem=function(R){R=this.getScrollPositionForItem(R);this.JSC$22580_containerElement.scrollTop!==R&&this.JSC$22580_scrollAnimation.start(this.JSC$22580_containerElement.scrollTop,R,300)};
_.J.getScrollPositionForItem=function(R){if(this.JSC$22580_containerElement.querySelectorAll(this.supportedSyncItems)[0]===R)return 0;var y,u=((y=this.options)==null?0:y.percentOffset)?this.JSC$22580_containerElement.clientHeight*this.options.percentOffset:0;R=_.E6(R).y+this.JSC$22580_containerElement.scrollTop-(_.E6(this.JSC$22580_containerElement).y+u);return Math.max(0,Math.min(R,this.JSC$22580_containerElement.scrollHeight-this.JSC$22580_containerElement.offsetHeight))};
_.J.onScroll=function(){this.activeItemBelowSyncPosition=WKo(this);if(this.activeItem&&!this.JSC$22580_scrollAnimation.isAnimating()&&Math.abs(this.JSC$22580_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(!UyB(this));dyy(this);break;default:this.enterBrowsingMode(!0)}}};
_.J.enterBrowsingMode=function(R){var y=this,u,v;return _.I(function(Q){if(Q.nextAddress==1){if(y.browsingMode)return Q.return();y.browsingMode=!0;R&&y.hostElement.classList.add("browsing-mode");y.playerExitBrowsingModeListener=function(){y.exitBrowsingMode(!1)};
return Q.yield(_.Bm(),2)}u=Q.yieldResult;(v=u)==null||v.addEventListener("SEEK_TO",y.playerExitBrowsingModeListener);_.f$(Q)})};
_.J.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())};
_.J.removePlayerSeekListener=function(){var R=this,y,u;return _.I(function(v){if(v.nextAddress==1)return R.playerExitBrowsingModeListener?v.yield(_.Bm(),3):v.jumpTo(0);y=v.yieldResult;(u=y)==null||u.removeEventListener("SEEK_TO",R.playerExitBrowsingModeListener);R.playerExitBrowsingModeListener=void 0;_.f$(v)})};
var dyy=function(R){var y;((y=R.options)==null?void 0:y.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(UyB(R)?R.hostElement.classList.remove("browsing-mode"):R.activeItem&&R.hostElement.classList.add("browsing-mode"))},WKo=function(R){if(!R.activeItem)return!1;
var y,u=((y=R.options)==null?0:y.percentOffset)?R.JSC$22580_containerElement.clientHeight*R.options.percentOffset:0;return R.activeItem.offsetTop>=R.JSC$22580_containerElement.scrollTop+u},UyB=function(R){if(!R.activeItem)return!1;
var y=R.activeItem.offsetTop+14<=R.JSC$22580_containerElement.scrollTop+R.JSC$22580_containerElement.clientHeight;return R.activeItem.offsetTop+R.activeItem.clientHeight-14>=R.JSC$22580_containerElement.scrollTop&&y};
rqg.prototype.panelContentVisibleChanged=function(R){(this.contentVisible=R)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var kBr=function(R,y){R.syncEntityKey=y;var u;(u=R.unsubscribeFromTimedMarkersListSyncEntity)==null||u.call(R);nEo(R)},EEg=function(R,y){R.options=y};var zz=function(){var R=_.W.apply(this,arguments)||this;R.browsingMode=!1;R.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return R};
_.O(zz,_.W);_.J=zz.prototype;_.J.activeItemChanged=function(){if(!_.f("synced_panel_scrolling_controller")){var R;((R=this.syncEntity)==null?void 0:R.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.J.created=function(){var R=this;_.f("synced_panel_scrolling_controller")||(this.JSC$22584_scrollAnimation=new _.gl(function(y){R.contents.scrollTop=y}),this.boundExitBrowsingMode=function(){R.exitBrowsingMode(!1)})};
_.J.detached=function(){if(_.f("synced_panel_scrolling_controller")){var R;(R=this.scrollController)==null||R.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.J.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"}}}};
_.J.dataChanged=function(){var R=this;_.f("synced_panel_scrolling_controller")?_.gn(this,function(){if(R.scrollController){var y;(y=R.scrollController)==null||y.exitBrowsingMode(!1);var u,v,Q;(v=R.scrollController)==null||kBr(v,(Q=(u=R.data)==null?void 0:u.syncModelEntityKey)!=null?Q:"default-macro-markers-list-renderer-entity-key");var M,K,h;(h=R.scrollController)==null||EEg(h,{percentOffset:(M=R.data)==null?void 0:M.selectedItemAlignmentPercentOffset,floatingPillType:(K=R.data)==null?void 0:K.floatingPillType})}else{var b,
N,T,x;R.scrollController=new rqg(R.contents,R.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(x=(b=R.data)==null?void 0:b.syncModelEntityKey)!=null?x:"default-macro-markers-list-renderer-entity-key",{percentOffset:(N=R.data)==null?void 0:N.selectedItemAlignmentPercentOffset,floatingPillType:(T=R.data)==null?void 0:T.floatingPillType},function(B){R.renderLazyListItems(B)})}R.scrollController.panelContentVisibleChanged(!!R.panelContentVisible)}):this.exitBrowsingMode()};
_.J.computeButtonShape=function(){var R=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){R.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.J.computeSyncEnabled=function(R){return!(R==null||!R.syncButtonLabel)};
_.J.renderLazyListItems=function(R){for(var y=this.contents.children,u=0,v=0;v<y.length;v++){var Q=void 0;(Q=y[v].ytLazyListBehavior)==null||Q.fillRemainingListItems();var M=void 0,K=void 0;Q=_.e((M=this.data)==null?void 0:(K=M.contents)==null?void 0:K[v],_.gWY);K=M=void 0;if((M=Q)==null?0:(K=M.contents)==null?0:K.length)u+=Q.contents.length;if(u>=R)break}};
_.J.getItemByIndex=function(R){this.renderLazyListItems(R);var y=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(y.length>R)return y[R]};
_.J.setActiveItem=function(R){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);R.active!==void 0&&(R.active=!0);this.currentActiveItem=R};
_.J.handleSetActivePanelItemAction=function(R){if((R=_.e(R,W4y))&&this.panelTargetId===R.panelTargetId){R=R.itemIndex;if(_.f("synced_panel_scrolling_controller")){var y,u;var v=(u=(y=this.data)==null?void 0:y.syncModelEntityKey)!=null?u:"default-macro-markers-list-renderer-entity-key"}else{var Q;v=(Q=this.data)==null?void 0:Q.syncModelEntityKey}if(v){var M;((M=this.syncEntity)==null?void 0:M.activeItemIndex)!==R&&this.ytdReduxBehavior.dispatch(_.Gw("markersEngagementPanelSyncEntity",v,{key:v,activeItemIndex:R}))}else this.updatePanelActiveItem(R)}};
_.J.updatePanelActiveItem=function(R){var y=this.getItemByIndex(R);y?(this.setActiveItem(y),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(y)):_.kT(new _.OL("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))};
_.J.scrollToItem=function(R){R=this.getScrollPositionForItem(R);this.contents.scrollTop!==R&&this.JSC$22584_scrollAnimation.start(this.contents.scrollTop,R,300)};
_.J.getScrollPositionForItem=function(R){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===R)return 0;R=_.E6(R).y+this.contents.scrollTop-_.E6(this.contents).y-this.getStickyHeaderHeight(R);return Math.min(R,this.contents.scrollHeight-this.contents.offsetHeight)};
_.J.getStickyHeaderHeight=function(R){if(R.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var y,u,v;return(v=(y=R.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(u=y.header)==null?void 0:u.offsetHeight)!=null?v:0}return 0};
_.J.onScroll=function(){_.f("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$22584_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.J.enterBrowsingMode=function(){var R=this;return _.I(function(y){if(y.nextAddress==1){if(R.browsingMode)return y.return();R.browsingMode=!0;return y.yield(_.hF().getPlayerPromise(),2)}R.player=y.yieldResult;R.player.addEventListener("SEEK_TO",R.boundExitBrowsingMode);_.f$(y)})};
_.J.exitBrowsingMode=function(R){this.browsingMode&&(this.browsingMode=!1,(R===void 0||R)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.J.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.J.onSyncClick=function(){if(_.f("synced_panel_scrolling_controller")){var R;(R=this.scrollController)==null||R.exitBrowsingMode()}else this.exitBrowsingMode()};
_.J.panelContentVisibleChanged=function(){if(_.f("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)};
zz.prototype.panelContentVisibleChanged=zz.prototype.panelContentVisibleChanged;zz.prototype.dataChanged=zz.prototype.dataChanged;zz.prototype.activeItemChanged=zz.prototype.activeItemChanged;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],zz.prototype,"actionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],zz.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],zz.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],zz.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],zz.prototype,"data",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],zz.prototype,"useCustomColors",void 0);_.A([_.r({computed:"computeSyncEnabled(data)"}),_.p("design:type",Boolean)],zz.prototype,"syncEnabled",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],zz.prototype,"panelTargetId",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],zz.prototype,"panelContentVisible",void 0);_.A([_.O7("#contents"),_.p("design:type",HTMLElement)],zz.prototype,"contents",void 0);_.A([_.O7("#sync-container"),_.p("design:type",HTMLElement)],zz.prototype,"syncContainer",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],zz.prototype,"browsingMode",void 0);
_.A([_.r({selectorArgs:["data.syncModelEntityKey"],selector:_.ZdE}),_.p("design:type",Object)],zz.prototype,"syncEntity",void 0);_.A([_.e0("syncEntity.activeItemIndex"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zz.prototype,"activeItemChanged",null);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zz.prototype,"dataChanged",null);
_.A([_.e0("panelContentVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zz.prototype,"panelContentVisibleChanged",null);_.A([_.q({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],zz);
_.m(zz,"ytd-macro-markers-list-renderer",function(){if(HKq!==void 0)return HKq;var R=document.createElement("template");_.H(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  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');R.content.insertBefore(_.t().content.cloneNode(!0),
R.content.firstChild);return HKq=R},{mode:1});var $yK;var gH=function(){return _.W.apply(this,arguments)||this};
_.O(gH,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],gH.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],gH.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],gH.prototype,"data",void 0);_.A([_.q({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],gH);
_.m(gH,"ytd-error-corrections-section-item-renderer",function(){if($yK!==void 0)return $yK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return $yK=R},{mode:1});var qoE;var CB=function(){return _.W.apply(this,arguments)||this};
_.O(CB,_.W);CB.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],CB.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],CB.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],CB.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],CB.prototype,"data",void 0);_.A([_.q({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],CB);
_.m(CB,"ytd-error-corrections-section-renderer",function(){if(qoE!==void 0)return qoE;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return qoE=R},{mode:1});var Xgr;var Rw=function(){return _.W.apply(this,arguments)||this};
_.O(Rw,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Rw.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Rw.prototype,"componentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Rw.prototype,"data",void 0);_.A([_.q({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],Rw);
_.m(Rw,"ytd-topic-link-renderer",function(){if(Xgr!==void 0)return Xgr;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Xgr=R},{mode:1});var myF;var yk=function(){var R=_.W.apply(this,arguments)||this;R.modern=_.f("kevlar_modern_sd_v2");R.modernLockupV2=_.f("modernize_structured_description_playlist_lockups_v2");R.modernTypography=_.f("web_modern_typography");return R};
_.O(yk,_.W);yk.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],yk.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],yk.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],yk.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],yk.prototype,"modern",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],yk.prototype,"modernLockupV2",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],yk.prototype,"modernTypography",void 0);_.A([_.q({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],yk);
_.m(yk,"ytd-video-description-course-section-renderer",function(){if(myF!==void 0)return myF;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return myF=R},{mode:1});var Aq2;var un=function(){var R=_.W.apply(this,arguments)||this;R.modern=_.f("kevlar_modern_sd_v2");R.modernTypography=_.f("web_modern_typography");return R};
_.O(un,_.W);un.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],un.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],un.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],un.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],un.prototype,"modern",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],un.prototype,"modernTypography",void 0);
_.A([_.q({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],un);
_.m(un,"ytd-video-description-files-section-renderer",function(){if(Aq2!==void 0)return Aq2;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Aq2=R},{mode:1});var Dyq;var vU=function(){return _.W.apply(this,arguments)||this};
_.O(vU,_.W);vU.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],vU.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],vU.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],vU.prototype,"data",void 0);_.A([_.q({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],vU);
_.m(vU,"ytd-video-description-gaming-section-renderer",function(){if(Dyq!==void 0)return Dyq;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return Dyq=R},{mode:1});var pgK;var Qk=function(){var R=_.W.apply(this,arguments)||this;R.isExpanded=!1;return R};
_.O(Qk,_.W);Qk.prototype.computeHasDefaultMetadataEndpoint=function(R){var y;R=R==null?void 0:(y=R.defaultMetadata)==null?void 0:y.runs;return!(!R||R.length!==1||!R[0].navigationEndpoint)};
Qk.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.RR.Object.defineProperties(Qk.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Qk.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Qk.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Qk.prototype,"isExpanded",void 0);_.A([_.r({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],Qk.prototype,"hasDefaultMetadataEndpoint",void 0);
_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Qk.prototype,"isExpandable",null);_.A([_.G("data","isExpandable","isExpanded"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Qk.prototype,"showExpandedMetadata",null);_.A([_.q({is:"ytd-info-row-renderer",disableElementRegistration:!0})],Qk);
_.m(Qk,"ytd-info-row-renderer",function(){if(pgK!==void 0)return pgK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return pgK=R},{mode:1});var tyE;var jr=function(){var R=_.W.apply(this,arguments)||this;R.currentIndex=0;R.supportComponentResize=!0;R.modern=_.f("kevlar_modern_sd_v2");R.JSC$22610_lastScrollContainerWidth=NaN;return R};
_.O(jr,_.W);_.J=jr.prototype;
_.J.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"}}}};
_.J.getItemsPath=function(){return"videoLockups"};
_.J.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.J.onIronResize=function(){this.updateVideoLockupStyles()};
_.J.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.J.updateVideoLockupStyles=function(){var R;this.JSC$22610_scrollContainer!==void 0&&(R=this.videoLockups)!=null&&R.length&&(R=this.JSC$22610_scrollContainer.clientWidth,R!==this.JSC$22610_lastScrollContainerWidth&&(this.JSC$22610_lastScrollContainerWidth=R,_.oX(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(R*.8,415)+"px"}),_.Ko(this.hostElement,"iron-resize")))};
_.RR.Object.defineProperties(jr.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var R=[],y;if((y=this.data)==null||!y.carouselLockups)return R;y=_.V(this.data.carouselLockups);for(var u=y.next();!u.done;u=y.next()){u=u.value;var v=void 0;((v=_.e(u,JLo))==null?0:v.videoLockup)&&R.push(_.e(u,JLo).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=[],y;if((y=this.data)==null||!y.carouselLockups)return R;var u;return(u=_.e(this.data.carouselLockups[this.scrollCount],JLo))==null?void 0:u.infoRows}}});
jr.prototype.dataChanged=jr.prototype.dataChanged;jr.prototype.onIronResize=jr.prototype.onIronResize;jr.prototype.hiddenChanged=jr.prototype.hiddenChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],jr.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],jr.prototype,"componentBehavior",void 0);_.A([_.n(_.Ia.YtdHorizontalListBehavior),_.p("design:type",Object)],jr.prototype,"ytdHorizontalListBehavior",void 0);
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],jr.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],jr.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],jr.prototype,"inlineStructuredDescription",void 0);_.A([_.r({value:2}),_.p("design:type",Number)],jr.prototype,"initialCount",void 0);_.A([_.r(),_.p("design:type",Object)],jr.prototype,"currentIndex",void 0);
_.A([_.r(),_.p("design:type",Number)],jr.prototype,"scrollCount",void 0);_.A([_.r(),_.p("design:type",Object)],jr.prototype,"supportComponentResize",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],jr.prototype,"contentHidden",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],jr.prototype,"modern",void 0);_.A([_.O7("#scroll-container"),_.p("design:type",HTMLDivElement)],jr.prototype,"JSC$22610_scrollContainer",void 0);
_.A([_.e0("contentHidden"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jr.prototype,"hiddenChanged",null);_.A([_.G("data"),_.p("design:type",Array),_.p("design:paramtypes",[])],jr.prototype,"videoLockups",null);_.A([_.G("videoLockups"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],jr.prototype,"hasVideoLockups",null);
_.A([_.fu("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jr.prototype,"onIronResize",null);_.A([_.G("data","scrollCount"),_.p("design:type",Object),_.p("design:paramtypes",[])],jr.prototype,"infoRows",null);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jr.prototype,"dataChanged",null);_.A([_.q({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],jr);
_.m(jr,"ytd-video-description-music-section-renderer",function(){if(tyE!==void 0)return tyE;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return tyE=R},{mode:_.TN("kevlar_poly_si_batch_j081")?1:2});var cqb;var M_=function(){var R=_.W.apply(this,arguments)||this;R.modern=_.f("kevlar_modern_sd_v2");R.modernTypography=_.f("web_modern_typography");return R};
_.O(M_,_.W);M_.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],M_.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],M_.prototype,"ytRendererBehavior",void 0);_.A([_.r({}),_.p("design:type",Object)],M_.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],M_.prototype,"modern",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],M_.prototype,"modernTypography",void 0);
_.A([_.q({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],M_);
_.m(M_,"ytd-video-description-transcript-section-renderer",function(){if(cqb!==void 0)return cqb;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return cqb=R},{mode:1});var a2E;_.h6(_.Jd(function(R){var y=_.nA(_.OmS,function(){return R.data().firstProviderLinkStatusEntityKey}),u=_.nA(_.OmS,function(){return R.data().secondProviderLinkStatusEntityKey}),v=function(){var Q,M;
return((Q=y())==null?void 0:Q.linked)||((M=u())==null?void 0:M.linked)};
return _.F("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.F(_.QM,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return R.data().sectionTitle}}),_.F(_.QM,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return v()?R.data().connectedMessage:R.data().notConnectedMessage}}),_.F(_.w,{cond:v,
then:function(){return _.F(_.mk,{data:function(){return R.data().connectedButton}},{buttonViewModel:function(Q){return _.F(_.fQ,{data:Q.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.F(_.w,{cond:function(){return!v()},
then:function(){return _.F(_.mk,{data:function(){return R.data().notConnectedButton}},{buttonViewModel:function(Q){return _.F(_.fQ,{data:Q.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Cj"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.vR}});_.h6(_.Jd(function(R){var y=R.data;return _.F("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.F("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.F(_.QM,{text:function(){return y().sectionTitle}})),_.F("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.F(_.QM,{text:function(){return y().bodyHeader}})),_.F("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.F(_.QM,{text:function(){return y().bodyText}})),_.F(_.w,
{cond:function(){return y().attributionText},
then:function(){return _.F("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.F(_.QM,{text:function(){return y().attributionText}}))}}))},"Dj"),"how-this-was-made-section-view-model",{props:{data:_.vR}});_.h6(_.Jd(function(R){return _.F("yt-video-description-youchat-section-view-model",{class:_.Oy("ytVideoDescriptionYouchatSectionViewModelHost")},_.F("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.F(_.QM,{text:function(){return R.data().sectionTitle}})),_.F("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.F(_.QM,{text:function(){return R.data().subHeaderText}})),_.F("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.F(_.fQ,{data:function(){return _.e(R.data().primaryButton,
_.k9)}})))},"Ej"),"yt-video-description-youchat-section-view-model",{props:{data:_.vR}});var Jy=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return R};
_.O(Jy,_.W);_.J=Jy.prototype;
_.J.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}}}}}};
_.J.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.J.dataChanged=function(){var R,y;this.hasDescriptionOnly=!(((R=this.data)==null?void 0:(y=R.items)==null?void 0:y.length)!==1||!_.e(this.data.items[0],UY))};
_.J.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.J.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.J.autoFocusDescription=function(){var R;((R=_.ua().resolve(_.yN(_.Ti)))==null?0:R.isKeyBoardInUse())&&this.description&&_.Y2(this.description)};
_.J.resize=function(){if(_.f("kevlar_disable_sd_resize"))this.JSC$22618_cardList&&_.Ko(this.JSC$22618_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.Ko(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.Ko(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.J.scrollToSection=function(R){if(R=this.getSectionElement(R))_.Ik(this.hostElement,"yt-scroll-to-watch-element",[R]),R.focus()};
_.J.getSectionElement=function(R){switch(R){case "infocards-item-section":var y;return(y=this.infocardsSection)!=null?y:null;case "transcript-item-section":var u;return(u=this.transcriptSection)!=null?u:null;case "how-this-was-made-section-item-section":var v;return(v=this.howThisWasMadeSection)!=null?v:null;case "files-item-section":var Q;return(Q=this.filesSection)!=null?Q:null;default:return null}};
_.J.handleSetActiveItemAction=function(R){var y=_.e(R,W4y),u=y&&(y==null?void 0:y.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$22618_cardList;if(y&&u){R=this.currentActiveChapter;var v=this.currentActiveProblem;y=u==null?void 0:u.getItemByIndex(y.itemIndex);var Q=u=!0;y&&(y.active=!0,y.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(u=R!==y,Q=!1,this.currentActiveChapter=y):(y==null?void 0:y.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(u=!1,Q=v!==y,this.currentActiveProblem=y));R&&u&&(R.active=!1);v&&Q&&(v.active=!1)}};
_.RR.Object.defineProperties(Jy.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.f("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
Jy.prototype.onYtExpanderMoreTapped=Jy.prototype.onYtExpanderMoreTapped;Jy.prototype.onHiddenChanged=Jy.prototype.onHiddenChanged;Jy.prototype.dataChanged=Jy.prototype.dataChanged;Jy.prototype.panelContentVisibleChanged=Jy.prototype.panelContentVisibleChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Jy.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Jy.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Jy.prototype,"actionHandlerBehavior",void 0);_.A([_.n(_.qv),_.p("design:type",Object)],Jy.prototype,"ironResizableBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Jy.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Boolean)],Jy.prototype,"panelContentVisible",void 0);_.A([_.r(),_.p("design:type",Boolean)],Jy.prototype,"hasDescriptionOnly",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Jy.prototype,"inlineStructuredDescription",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Jy.prototype,"hidden",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Jy.prototype,"shortsPanel",void 0);_.A([_.r(),_.p("design:type",Object)],Jy.prototype,"videoSummary",void 0);_.A([_.r(),_.p("design:type",Object)],Jy.prototype,"merchShelf",void 0);
_.A([_.G("videoSummary"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Jy.prototype,"showVideoSummary",null);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Jy.prototype,"engagementPanel",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Jy.prototype,"watchWhileSdp",void 0);_.A([_.O7("ytd-expandable-video-description-body-renderer"),_.p("design:type",Object)],Jy.prototype,"description",void 0);
_.A([_.O7("ytd-horizontal-card-list-renderer"),_.p("design:type",Object)],Jy.prototype,"JSC$22618_cardList",void 0);_.A([_.O7("ytd-horizontal-card-list-renderer[center-items]"),_.p("design:type",Object)],Jy.prototype,"problemWalkthroughCardList",void 0);_.A([_.O7("ytd-shelf-renderer"),_.p("design:type",Object)],Jy.prototype,"shelfSection",void 0);_.A([_.O7("ytd-video-description-music-section-renderer"),_.p("design:type",Object)],Jy.prototype,"musicMetadataSection",void 0);
_.A([_.O7("ytd-video-description-infocards-section-renderer"),_.p("design:type",Object)],Jy.prototype,"infocardsSection",void 0);_.A([_.O7("ytd-video-description-transcript-section-renderer"),_.p("design:type",Object)],Jy.prototype,"transcriptSection",void 0);_.A([_.O7("how-this-was-made-section-view-model"),_.p("design:type",Object)],Jy.prototype,"howThisWasMadeSection",void 0);_.A([_.O7("ytd-video-description-files-section-renderer"),_.p("design:type",Object)],Jy.prototype,"filesSection",void 0);
_.A([_.e0("panelContentVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jy.prototype,"panelContentVisibleChanged",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jy.prototype,"dataChanged",null);_.A([_.e0("hidden"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jy.prototype,"onHiddenChanged",null);
_.A([_.fu("yt-expander-more-tapped"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jy.prototype,"onYtExpanderMoreTapped",null);_.A([_.q({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],Jy);
_.m(Jy,"ytd-structured-description-content-renderer",function(){if(a2E!==void 0)return a2E;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return a2E=R},{mode:2});var SoK;var YoK;var Vk=function(){return _.W.apply(this,arguments)||this};
_.O(Vk,_.W);Vk.prototype.computeAriaLabel=function(R){var y,u;return(R==null?void 0:(y=R.accessibility)==null?void 0:(u=y.accessibilityData)==null?void 0:u.label)||_.fo("LOADING",void 0,"Loading")};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Vk.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Vk.prototype,"data",void 0);_.A([_.r({computed:"computeAriaLabel(data)"}),_.p("design:type",String)],Vk.prototype,"ariaLabel",void 0);_.A([_.pu({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],Vk);
_.m(Vk,"yt-content-loading-renderer",function(){if(YoK===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;SoK===void 0&&(SoK=document.createElement("template"));var v=SoK;u.call(y,v.content.cloneNode(!0),R.content.firstChild);YoK=R}R=YoK;return R},{mode:_.TN("kevlar_poly_si_batch_j043")?1:2});_.h6(_.Jd(function(R){var y=_.V(_.In(!1,void 0,"QkPiwb")),u=y.next().value,v=y.next().value;y=_.V(_.In(!1,void 0,"AFECB"));var Q=y.next().value,M=y.next().value;_.rB(function(){var b=_.e(R.data().collaboratePlaylistCollaborationSetting,zT4);b&&v(b.switchedOnByDefault);var N=_.e(R.data().allowNewCollaboratorsPlaylistCollaborationSetting,zT4);N&&M(N.switchedOnByDefault);if(!b&&!N||!b&&R.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")v(!0),M(!0)});
var K=function(b){v(b);M(b);var N=R.data().playlistCollaborationEntityKey||"";var T=_.uX().getState();(T=_.TI(T.entities,"playlistCollaborationEntity",N))&&(T==null?void 0:T.isCollaborative)===b||_.uX().dispatch(_.Gw("playlistCollaborationEntity",N,Object.assign({},T,{isCollaborative:b})))},h=function(b){M(b)};
return _.F("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.F("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.F(_.mk,{data:function(){return R.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(b){return _.F(_.vAc,{data:b.data,
onSwitch:K})}})),_.F(_.w,{cond:u,
then:function(){return _.F(_.vu,null,_.F("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.F(_.mk,{data:function(){return R.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(b){return _.F(_.vAc,{data:b.data,
onSwitch:h,overrideDisabled:!1})}})),_.F(_.w,{cond:Q,
then:function(){return _.F("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.F(_.mk,{data:function(){return R.data().copyLinkButton}},{buttonViewModel:_.fQ}))}}),_.F("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.F(_.mk,{data:function(){return R.data().playlistCollaborators}},{contentListItemViewModel:_.JHa})))}}))},"Fj"),"playlist-collaboration-view-model",{props:{data:_.vR}});var LKy=_.Jd(function(R){var y=R.data;var u=R.customCommandResolver;return _.F(_.vu,null,_.F("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.F(_.mk,{data:function(){return y().adAvatar}},{adAvatarViewModel:function(v){return _.F(_.ErL,{data:v.data,
customCommandResolver:u})}})),_.F("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.F(_.w,{cond:function(){return y().headline},
then:function(v){return _.F(_.QM,{text:v,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.F("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.F(_.mk,{data:function(){return y().adBadge}},{adBadgeViewModel:function(v){return _.F(_.No,{data:v.data,
hasDot:function(){return y().primaryDetailsLine!==void 0},
customCommandResolver:u,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.F(_.mk,{data:function(){return y().primaryDetailsLine}},{adDetailsLineViewModel:function(v){return _.F(_.Tt,{data:v.data,
customCommandResolver:u,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Gj"),sKq=_.Jd(function(R){var y=R.data;
var u=R.customCommandResolver;return _.F("ad-avatar-lockup-view-model",{class:function(){var v;return((v=y().interaction)==null?0:v.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.VX(_.vA({visibilityCallback:function(v){var Q,M=(Q=y().interaction)==null?void 0:Q.onFirstVisible;v&&M&&_.zN(M)},
showOption:_.i2}),_.CA(function(){return y().interaction},u)),
"aria-label":function(){var v,Q;return(v=y().interaction)==null?void 0:(Q=v.accessibility)==null?void 0:Q.label}},_.F(_.Z6,null,_.F(_.lr,{when:function(){return y().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.F(LKy,{data:y,
customCommandResolver:u})}),_.F(_.OB,null,function(){return null})))},"Hj");_.h6(_.Jd(function(R){var y=R.data;var u=R.panelContentVisibility;R=_.vA({visibilityCallback:function(M){var K,h=(K=y().interaction)==null?void 0:K.onFirstVisible;M&&h&&_.zN(h)},
showOption:_.i2});var v=_.CA(function(){return y().interaction},S3o);
_.WT(function(){var M,K;if(K=_.D6("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var h;K=(h=K())==null?void 0:h.onLayoutVisibleCallback}else K=null;(M=K)==null||M()});
var Q=function(){return u()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.F("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.VX(R,v)},_.F("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.F("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.F(_.w,{cond:_.qSP("(min-width: "+((0,_.sG)()+_.EY)+"px) or (max-width: 600px)"),then:function(){return _.F(_.mk,{data:function(){return y().adImage}},{adImageViewModel:function(M){return _.F(_.lz,{data:M.data,
targetHeight:80,customCommandResolver:S3o})}})}})),_.F("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.F("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.F(_.mk,{data:function(){return y().adAvatarLockup}},{adAvatarLockupViewModel:function(M){return _.F(sKq,{data:M.data,
customCommandResolver:S3o})}})),_.F(_.w,{cond:Q,
then:function(){return _.F(_.mk,{data:function(){return y().adButton}},{adButtonViewModel:function(M){return _.F(_.Ip,{data:M.data,
customCommandResolver:S3o})}})},
else:function(){return _.F(_.mk,{data:function(){return y().menu}},{buttonViewModel:_.fQ})}}),_.F("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.F(_.mk,{data:function(){var M=_.e(y().toggleButton,_.EC);
return{toggleButtonViewModel:Object.assign({},M,{isTogglingDisabled:!0,isToggled:Q()})}}},{toggleButtonViewModel:_.$1})))))},"Ij"),"panel-ad-header-image-lockup-view-model",{props:{data:_.vR,
panelContentVisibility:_.vR}});_.h6(_.Jd(function(R){var y=function(){return _.e(R.data().inputComposerViewModel,gSo)},u=function(){var Z;
return((Z=y())==null?void 0:Z.youchatPendingResponseEntityKey)||""},v=_.nA(_.nVa,u),Q=function(){var Z;
return!((Z=v())==null||!Z.isPendingResponse)},M=_.V(_.In(!0,void 0,"DR0q1d")),K=M.next().value,h=M.next().value,b=function(){return y().sectionTargetId||"youchat_messages_section"};
M=_.zp("yt-chat-input-view-model");var N=_.sh("textarea"),T=_.nA(EmJ,"chat_input_view_model_state"),x=$_7(),B=function(){var Z;return!((Z=T())==null||!Z.value)};
_.rB(function(){var Z;if(!B()&&((Z=y())==null?0:Z.welcomeFeatureContinuation)){Z={continuationCommand:{token:y().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var P,k=String(Math.floor(((P=_.fA())==null?void 0:P.getCurrentTime())||0)*1E3);P={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:k}};_.Yi(Z,{form:{formData:P}});x(!0)}var E=b(),D;(D=_.ua().resolve(_.yN(_.dv)))==null||D.addEventListener("yt-navigate-start",function(){_.$9.remove(E);x(!1)},
{once:!0})});
var l=function(){var Z=N.value.value;N.value.value="";Y3P(N.value);var P,k=((P=y())==null?void 0:P.enableGradientColorBg)||!1;P=LMm(b(),Z,k);_.Yi(P);var E=_.GvK(u()),D;_.zN(((D=y())==null?void 0:D.onSubmitCommand)||{});E(!0);var z;D=String(Math.floor(((z=_.fA())==null?void 0:z.getCurrentTime())||0)*1E3);var c;z={continuationCommand:{token:(c=y())==null?void 0:c.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};Z={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:Z,
playerOffsetMs:D}};_.Yi(z,{form:{formData:Z},commandController:{onSuccess:function(){E(!1)},
onServerError:function(){var a=b();_.Yi({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:a}}]}}});E(!1)}}})};
return _.F("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:M},_.F("div",{class:"chatInputViewModelChatInputWrapper"},_.F("form",{class:"chatInputViewModelChatInputForm"},_.F("textarea",{class:"chatInputViewModelChatInput",el:N,"on:keydown":_.nh(function(Z){var P=Q()||!1;Y3P(N.value);P||Z.key!=="Enter"||Z.shiftKey||(Z.preventDefault(),l());return!1}),
"on:keyup":_.nh(function(){h(N.value.value.length===0);return!1}),
placeholder:function(){var Z,P;var k=_.e((P=y())==null?void 0:P.inputFormField,GTK);return k==null?void 0:(Z=k.contentProperties)==null?void 0:Z.placeholderText},
rows:1}),_.F(_.fQ,{data:function(){return _.e(R.data().sendButton,_.k9)},
onClick:function(Z){Z.preventDefault();l();h(N.value.value.length===0)},
buttonOverrides:function(){return{disabled:K()||Q()}}})),_.F(_.QM,{className:"chatInputViewModelChatDisclaimer",
text:function(){var Z;return(Z=_.e(R.data().disclaimer,_.Cui))==null?void 0:Z.text}})))},"Jj"),"yt-chat-input-view-model",{props:{data:_.vR}});var zFq=["engagement-panel-clip-create","engagement-panel-clip-view"],gEo=0,KM=function(){var R=_.W.apply(this,arguments)||this;var y;R.headerData=(y=R.data)==null?void 0:y.header;R.darkerPanels=_.f("web_watch_darker_panels");R.matchContentTheme=_.f("web_watch_panel_content_match_theme");R.disableAutoFill=!1;R.isFullscreen=!1;R.isTheaterMode=!1;R.modernPanels=_.f("kevlar_watch_modern_panels");R.liveChatReplyPanel=!1;R.enableAnchoredPanel=_.f("desktop_shorts_v2_anchored_panel");R.disableBackdropFilter=
_.f("web_disable_backdrop_filter");R.trackEngagementPanelVisibility=_.f("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};
_.O(KM,_.W);_.J=KM.prototype;
_.J.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]",learningChatEngagementPanel:"[[learningChatEngagementPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},
"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(R){var y;return(R==null?void 0:(y=R.webComponentHint)==null?void 0:y.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.J.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)};
_.J.detached=function(){this.updateTheaterDisablement()};
_.J.showPanel=function(){var R=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.WG.addJob(function(){R.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.J.maybeScrollToItemSection=function(R){var y=this,u,v=R==null?void 0:(u=R.sectionListEngagementPanelExtras)==null?void 0:u.scrollToItemSectionIdentifier;v&&_.WG.addJob(function(){var Q;(Q=y.sectionListRendererElement)==null||Q.scrollToItemSection(v)},8)};
_.J.hidePanel=function(){var R=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.WG.addJob(function(){R.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.J.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.J.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.J.updatePanel=function(R,y,u,v){var Q=this;if((R=R==null?void 0:R.engagementPanelSectionListRenderer)||v){if(R){v=R.header;var M=R.content,K=R.footer;(R=R.targetId)&&this.set("data.targetId",R);v&&this.set("data.header",v);M&&this.set("data.content",M);K&&this.set("data.footer",K)}else v&&(R=v.content,M=v.secondaryHeaderContent,(v=v.targetId)&&this.set("data.targetId",v),R&&this.set("data.content",R),M&&(this.secondaryHeaderData=M));this.updateChildVisibilityProperties();if(y){var h;_.f("kevlar_update_panel_focus_scroll_killswitch")||
(h={preventScroll:!0});this.focus(h)}_.gn(this,function(){_.Ko(Q.hostElement,"yt-refit");Q.maybeScrollToItemSection(u)})}};
_.J.computeHeaderData=function(){var R,y=(0,_.Ps.unsafeClone)((R=this.data)==null?void 0:R.header);if(y){R=new _.jF(Object.keys(y)[0]);var u=_.e(y,R),v=_.e(this.secondaryHeaderData,R);v&&_.Dr(y,R,Object.assign({},v,u))}return y};
_.J.getReloadContinuation=function(){var R,y,u,v=_.V(((R=this.data)==null?void 0:(y=R.content)==null?void 0:(u=y.sectionListRenderer)==null?void 0:u.continuations)||[]);for(R=v.next();!R.done;R=v.next())if(R=R.value,R.reloadContinuationData)return R.reloadContinuationData.continuation};
_.J.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)};
_.J.forwardPopupClosedToFlowRootRenderer=function(){var R=_.hw(this.hostElement).querySelector("ytd-flow-root-renderer");if(R)R.onPopupClosed()};
_.J.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var R;if(!zFq.includes((R=this.theaterDisablementPanelIdentifier)!=null?R:""))if(R=_.f("web_watch_imax_theater_mode")&&this.isTheaterMode,R=_.f("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||R,_.f("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||R){var y;this.visibility=(y=this.data)==null?void 0:y.visibility;var u;this.trackEngagementPanelVisibility&&((u=this.data)==null?void 0:u.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var v,Q,M,K;this.contentEmpty=!!(((v=this.data)==null?0:(Q=v.content)==null?0:Q.structuredDescriptionContentRenderer)&&Object.keys((M=this.data)==null?void 0:(K=M.content)==null?void 0:
K.structuredDescriptionContentRenderer).length===0);(y=_.ua().resolve(_.d0))&&y.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.J.isTheaterModeChanged=function(){_.f("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.J.isFullscreenChanged=function(){_.f("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.J.focus=function(R){if(this.header)this.header.focus(R);else{var y;(y=_.hw(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||y.focus(R)}};
_.J.visibilityChanged=function(){if(!_.f("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var R=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",y=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",u=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",v=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Q=v||!this.lastVisibility,M,K,h,b=((M=this.data)==null?void 0:(K=M.identifier)==null?void 0:
K.tag)||((h=this.data)==null?void 0:h.panelIdentifier);if(R&&Q){var N;((N=this.data)==null?0:N.onShowCommands)&&_.wr(this.hostElement,this.data.onShowCommands,this.hostElement);b&&_.Qe().dispatch(_.iE({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:b}}))}else if(y&&u){var T;((T=this.data)==null?0:T.onHideCommands)&&_.wr(this.hostElement,this.data.onHideCommands,this.hostElement);b&&_.Qe().dispatch(_.iE({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:b}}))}R&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*gEo++));_.f("kevlar_watch_focus_on_engagement_panels")&&R&&v&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.J.notifyVisibilityChanged=function(R){var y;_.h_(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,R,(y=this.data)==null?void 0:y.targetId])};
_.J.updateTheaterDisablement=function(){if(!_.f("kevlar_watch_theater_disablement_killswitch")){var R=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&zFq.includes(R)&&!_.f("watch_next_grid_ignore_disallowed_panels")){var y=_.t6(_.Qe().getState()),u=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";R!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():u?(this.originalTheaterState===void 0&&(this.originalTheaterState=y,this.theaterDisablementPanelIdentifier=
R),y&&_.Ik(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.J.clearTheaterDisablement=function(){_.Ik(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.J.updateChildVisibilityProperties=function(){this.hostElement||_.f("kevlar_panel_property_init_killswitch")||this._enableProperties();var R=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=R);var y,u=(y=this.headerElement)==null?void 0:y.firstElementChild;if(u&&!this.adHeaderImageLockupViewModel){y=R==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";u.collapsed=y;u=_.hw(u).querySelector("#visibility-button");if(!u)return;(u=u.firstElementChild)&&
u.polymerController.is==="ytd-toggle-button-renderer"&&u.polymerController.data.isToggled!==y&&u.polymerController.set("data.isToggled",y)}var v;if(y=(v=this.contentElement)==null?void 0:v.firstElementChild)if(R&&R!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")y.removeAttribute("panel-content-visible");else{y.setAttribute("panel-content-visible","");var Q;(Q=y.markDirty)==null||Q.call(y)}};
_.J.onYtChangeEngagementPanelVisibilityAction=function(R){var y=this,u,v=(u=this.data)==null?void 0:u.targetId,Q,M,K;u=((Q=this.data)==null?void 0:(M=Q.identifier)==null?void 0:M.tag)||((K=this.data)==null?void 0:K.panelIdentifier);var h=_.e(R,_.yt5),b;R=v&&(h==null?void 0:h.targetId)===v||u&&(h==null?void 0:(b=h.panelIdentifier)==null?void 0:b.tag)===u;this.dialog&&R&&(h==null?void 0:h.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(v==="engagement-panel-comments-section"?_.Ik(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.Ik(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",u]));!_.f("kevlar_use_engagement_panel_management_component")&&R&&(v=h.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!v?_.WG.addJob(function(){y.visibility=h.visibility},2,this.hideDelayMs):this.visibility=h.visibility,h.visibility&&this.notifyVisibilityChanged(h.visibility))};
_.J.onYtScrollToEngagementPanelCommand=function(R){var y,u=(y=this.data)==null?void 0:y.targetId,v,Q,M;y=((v=this.data)==null?void 0:(Q=v.identifier)==null?void 0:Q.tag)||((M=this.data)==null?void 0:M.panelIdentifier);R=_.e(R,_.bIg);var K;(u&&(R==null?void 0:R.targetId)===u||y&&(R==null?void 0:(K=R.panelIdentifier)==null?void 0:K.tag)===y)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.Ik(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.J.attachVEs=function(R){var y,u;(R==null?0:(y=R.content)==null?0:(u=y.productListRenderer)==null?0:u.trackingParams)&&_.GN().graftServerVe(R.content.productListRenderer.trackingParams);var v,Q;(R==null?0:(v=R.content)==null?0:(Q=v.transcriptRenderer)==null?0:Q.trackingParams)&&_.GN().graftServerVe(R.content.transcriptRenderer.trackingParams)};
_.J.onYtUpdateEngagementPanelAction=function(R){var y,u=(y=this.data)==null?void 0:y.targetId;R=_.e(R,UUB);u&&(R==null?void 0:R.targetId)===u&&(this.updatePanel({engagementPanelSectionListRenderer:{header:R==null?void 0:R.header,content:R==null?void 0:R.content}},!1),this.attachVEs(R))};
_.J.onYtShowEngagementPanelScrimAction=function(R){var y,u=(y=this.data)==null?void 0:y.targetId;R=_.e(R,dUC);u&&(R==null?void 0:R.engagementPanelTargetId)===u&&(this.scrimmed=!0)};
_.J.onYtHideEngagementPanelScrimAction=function(R){var y,u=(y=this.data)==null?void 0:y.targetId;R=_.e(R,POK);u&&(R==null?void 0:R.engagementPanelTargetId)===u&&(this.scrimmed=!1)};
_.J.getIdentifier=function(){var R,y,u;return((R=this.data)==null?void 0:R.panelIdentifier)||((y=this.data)==null?void 0:(u=y.identifier)==null?void 0:u.tag)};
_.J.getSurface=function(){var R,y;return(R=this.data)==null?void 0:(y=R.identifier)==null?void 0:y.surface};
_.RR.Object.defineProperties(KM.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"}}});
KM.prototype.visibilityChanged=KM.prototype.visibilityChanged;KM.prototype.isFullscreenChanged=KM.prototype.isFullscreenChanged;KM.prototype.isTheaterModeChanged=KM.prototype.isTheaterModeChanged;KM.prototype.dataChanged=KM.prototype.dataChanged;KM.prototype.forwardPopupClosedToFlowRootRenderer=KM.prototype.forwardPopupClosedToFlowRootRenderer;KM.prototype.onYtRendererstamperFinished=KM.prototype.onYtRendererstamperFinished;
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],KM.prototype,"actionHandlerBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],KM.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],KM.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.GZ.YtEventForwardingBehavior),_.p("design:type",Object)],KM.prototype,"ytEventForwardingBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],KM.prototype,"data",void 0);
_.A([_.r({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.p("design:type",Object)],KM.prototype,"headerData",void 0);_.A([_.r(),_.p("design:type",Object)],KM.prototype,"secondaryHeaderData",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],KM.prototype,"visibility",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],KM.prototype,"contentEmpty",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],KM.prototype,"scrimmed",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],KM.prototype,"dialog",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],KM.prototype,"dropdown",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],KM.prototype,"darkerPanels",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],KM.prototype,"matchContentTheme",void 0);_.A([_.r(),_.p("design:type",Object)],KM.prototype,"disableAutoFill",void 0);
_.A([_.r({reflectToAttribute:!0,value:_.f("optimal_reading_width_comments_ep")}),_.p("design:type",Boolean)],KM.prototype,"optimalReadingWidthComments",void 0);_.A([_.r(),_.p("design:type",Number)],KM.prototype,"hideDelayMs",void 0);_.A([_.r({selector:_.c_,reflectToAttribute:!0}),_.p("design:type",Object)],KM.prototype,"isFullscreen",void 0);_.A([_.r({selector:_.t6,reflectToAttribute:!0}),_.p("design:type",Object)],KM.prototype,"isTheaterMode",void 0);
_.A([_.r(),_.p("design:type",Number)],KM.prototype,"showDelayMs",void 0);_.A([_.r({reflectToAttribute:!0}),_.G("data.targetId"),_.p("design:type",Object),_.p("design:paramtypes",[])],KM.prototype,"targetId",null);_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],KM.prototype,"webSize",null);_.A([_.r(),_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],KM.prototype,"hideFooterBorder",null);
_.A([_.r(),_.p("design:type",Object)],KM.prototype,"isWatch",void 0);_.A([_.r(),_.p("design:type",Object)],KM.prototype,"originalTheaterState",void 0);_.A([_.r(),_.p("design:type",Object)],KM.prototype,"theaterDisablementPanelIdentifier",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],KM.prototype,"modernPanels",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],KM.prototype,"isWatchWhilePanel",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],KM.prototype,"shortsPanel",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],KM.prototype,"liveChatEngagementPanel",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],KM.prototype,"learningChatEngagementPanel",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],KM.prototype,"liveChatReplyPanel",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],KM.prototype,"enableAnchoredPanel",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],KM.prototype,"disableBackdropFilter",void 0);_.A([_.r(),_.p("design:type",Object)],KM.prototype,"trackEngagementPanelVisibility",void 0);_.A([_.O7("#header"),_.p("design:type",HTMLElement)],KM.prototype,"headerElement",void 0);_.A([_.O7("#header > *"),_.p("design:type",HTMLElement)],KM.prototype,"header",void 0);
_.A([_.O7("ytd-section-list-renderer"),_.p("design:type",Object)],KM.prototype,"sectionListRendererElement",void 0);_.A([_.O7("panel-ad-header-image-lockup-view-model"),_.p("design:type",HTMLElement)],KM.prototype,"adHeaderImageLockupViewModel",void 0);_.A([_.O7("#content"),_.p("design:type",HTMLElement)],KM.prototype,"contentElement",void 0);
_.A([_.fu("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],KM.prototype,"onYtRendererstamperFinished",null);_.A([_.fu("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],KM.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.A([_.GJ("data","isFullscreen","isTheaterMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],KM.prototype,"dataChanged",null);
_.A([_.e0("isTheaterMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],KM.prototype,"isTheaterModeChanged",null);_.A([_.e0("isFullscreen"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],KM.prototype,"isFullscreenChanged",null);_.A([_.e0("visibility"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],KM.prototype,"visibilityChanged",null);
_.A([_.q({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],KM);
_.m(KM,"ytd-engagement-panel-section-list-renderer",function(){if(f24!==void 0)return f24;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return f24=R},{mode:_.TN("kevlar_poly_si_batch_j028")?1:2});var CbK;var Iw=function(){var R=_.W.apply(this,arguments)||this;R.lastRenderedPanelIds=new Set;R.visiblePanels=[];R.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return R};
_.O(Iw,_.W);_.J=Iw.prototype;_.J.dataChanged=function(){if(this.data){for(var R=[],y=_.V(this.data),u=y.next();!u.done;u=y.next()){u=u.value;var v=void 0,Q=void 0,M=(v=u)==null?void 0:(Q=v.engagementPanelSectionListRenderer)==null?void 0:Q.visibility;Q=v=void 0;((v=u)==null?0:(Q=v.engagementPanelSectionListRenderer)==null?0:Q.targetId)&&M!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&R.push(u)}this.visiblePanels=R}else this.visiblePanels=[]};
_.J.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}}};
_.J.withoutVisiblePanelById=function(R){return this.visiblePanels.filter(function(y){var u;return((u=y.engagementPanelSectionListRenderer)==null?void 0:u.targetId)!==R})};
_.J.onYtChangeEngagementPanelVisibilityAction=function(R){var y=this,u=_.e(R,_.yt5);if(this.data&&(u==null?0:u.targetId)&&(u==null?0:u.visibility)){var v,Q=(v=this.data.find(function(K){var h;return((h=K.engagementPanelSectionListRenderer)==null?void 0:h.targetId)===u.targetId}))==null?void 0:v.engagementPanelSectionListRenderer;
if(Q){var M=this.withoutVisiblePanelById(u.targetId);u.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(R=this.data.find(function(K){var h;return((h=K.engagementPanelSectionListRenderer)==null?void 0:h.targetId)===u.targetId}))&&(M=[R].concat(_.P$(M)));
this.hideDelayMs&&u.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&M.length===0?_.WG.addJob(function(){Q.visibility=u.visibility;y.visiblePanels=M},10,this.hideDelayMs):(Q.visibility=u.visibility,this.visiblePanels=M);
_.h_(this.hostElement,"yt-engagement-panels-visible-changed",[M])}}};
_.J.onRendererstamperFinished=function(){var R=new Set(this.visiblePanels.map(function(y){var u;return(u=y.engagementPanelSectionListRenderer)==null?void 0:u.targetId}));
this.handlePanelVisibilityChange(R,this.lastRenderedPanelIds);this.lastRenderedPanelIds=R};
_.J.handlePanelVisibilityChange=function(R,y){R=R===void 0?new Set:R;y=y===void 0?new Set:y;if(this.data)for(var u=_.V(this.data),v=u.next();!v.done;v=u.next()){v=v.value;var Q=void 0,M=void 0,K=(Q=v)==null?void 0:(M=Q.engagementPanelSectionListRenderer)==null?void 0:M.targetId;if(K&&(Q=y.has(K),M=R.has(K),K=void 0,!Q&&M?(M=Q=void 0,K=(Q=v)==null?void 0:(M=Q.engagementPanelSectionListRenderer)==null?void 0:M.onShowCommands):Q&&!M&&(M=Q=void 0,K=(Q=v)==null?void 0:(M=Q.engagementPanelSectionListRenderer)==
null?void 0:M.onHideCommands),K))for(v=_.V(K),K=v.next();!K.done;K=v.next())this.ytComponentBehavior.resolveCommand(K.value)}};
Iw.prototype.onRendererstamperFinished=Iw.prototype.onRendererstamperFinished;Iw.prototype.dataChanged=Iw.prototype.dataChanged;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Iw.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Iw.prototype,"actionHandlerBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Iw.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Iw.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Iw.prototype,"lastRenderedPanelIds",void 0);_.A([_.r(),_.p("design:type",Number)],Iw.prototype,"hideDelayMs",void 0);_.A([_.r(),_.p("design:type",Array)],Iw.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Array)],Iw.prototype,"visiblePanels",void 0);_.A([_.r(),_.p("design:type",Boolean)],Iw.prototype,"isWatchWhilePanel",void 0);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Iw.prototype,"dataChanged",null);_.A([_.fu("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Iw.prototype,"onRendererstamperFinished",null);_.A([_.q({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],Iw);
_.m(Iw,"ytd-watch-engagement-panels",function(){if(CbK!==void 0)return CbK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return CbK=R},{mode:1});var RUq;var hy=function(){return _.W.apply(this,arguments)||this};
_.O(hy,_.W);hy.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.CK(_.hw(this.hostElement).querySelector("#text"),_.pKg(_.awV,this.data.companionLegalText))};
hy.prototype.computeAutoScrollEnabled=function(R,y){return R&&!y};
hy.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
hy.prototype.onToggleTap=function(){this.expanded=!this.expanded};
hy.prototype.expandedChanged=hy.prototype.expandedChanged;hy.prototype.dataChanged=hy.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],hy.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.S2a),_.p("design:type",Object)],hy.prototype,"ytdAutoScrollBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],hy.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],hy.prototype,"expanded",void 0);
_.A([_.r({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.p("design:type",Boolean)],hy.prototype,"autoScrollEnabled",void 0);_.A([_.r(),_.p("design:type",String)],hy.prototype,"expanderIcon",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hy.prototype,"dataChanged",null);
_.A([_.e0("expanded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hy.prototype,"expandedChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],hy);
_.m(hy,"ytd-companion-legal-text-renderer",function(){if(RUq!==void 0)return RUq;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return RUq=R},{mode:1});var ya4;var bn=function(){var R=_.W.apply(this,arguments)||this;R.buttonUpdate=_.f("web_modern_buttons");R.kevlarWatchGrid=_.f("kevlar_watch_grid");R.centerAlignDescription=_.f("action_companion_center_align_description");R.truncateDomain=_.f("action_companion_truncate_domain");return R};
_.O(bn,_.W);_.J=bn.prototype;_.J.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.J.getOnLayoutVisibleCallback=function(){var R=_.D6("yt.www.ads.eventcache.getLastCompanionData");return R?(R=R())&&R.onLayoutVisibleCallback:null};
_.J.getLayoutId=function(){var R=_.D6("yt.www.ads.eventcache.getLastCompanionData");return R?(R=R())&&R.layoutId:null};
_.J.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",bn.JSC$22664_DEFAULT_AD_BADGE_RENDERER);var R=this.getOnLayoutVisibleCallback();R&&R()}};
_.J.getButtonRenderer=function(R){return R.actionButton&&_.e(R.actionButton,_.aG)?(delete _.e(R.actionButton,_.aG).navigationEndpoint,_.e(R.actionButton,_.aG)):{}};
_.J.onClick=function(R){var y=this;if((!_.f("web_modern_buttons")||!_.JF(_.u8(R),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){R=_.I8();var u=this.getLayoutId();R&&u&&_.f("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?R.getPlayerPromise().then(function(v){(new _.kQ(v)).executeCommand(y.data.navigationEndpoint,u)}):_.f("kevlar_companion_resolve_command_killswitch")?_.Ko(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.Ik(this.hostElement,"yt-companion-ad-clicked",["action-companion",u])}};
_.RR.Object.defineProperties(bn.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var R,y,u;return((R=this.data)==null?0:(y=R.detailsLine)==null?0:(u=y.adRating)==null?0:u.ratingText)?this.data.detailsLine.adRating.ratingText:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
iconType:{configurable:!0,enumerable:!0,get:function(){var R,y,u,v;return((R=this.data)==null?0:(y=R.detailsLine)==null?0:(u=y.adRating)==null?0:(v=u.ratingIcon)==null?0:v.iconType)?_.fk(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var R,y,u,v;return((R=this.data)==null?0:(y=R.detailsLine)==null?0:(u=y.texts)==null?0:(v=u[0])==null?0:v.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,y;return((R=this.data)==null?0:(y=R.description)==null?0:y.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=_.D6("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}}});
bn.prototype.onClick=bn.prototype.onClick;bn.prototype.dataChanged=bn.prototype.dataChanged;bn.JSC$22664_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.fo("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],bn.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],bn.prototype,"rendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],bn.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bn.prototype,"buttonUpdate",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bn.prototype,"kevlarWatchGrid",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bn.prototype,"centerAlignDescription",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bn.prototype,"truncateDomain",void 0);
_.A([_.r({computed:"computeButtonOverride(buttonUpdate)"}),_.p("design:type",Object)],bn.prototype,"buttonOverride",void 0);_.A([_.G("data.detailsLine.adRating.ratingText"),_.p("design:type",Object),_.p("design:paramtypes",[])],bn.prototype,"getRating",null);_.A([_.G("getRating"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],bn.prototype,"computeRatingHidden",null);
_.A([_.G("data.detailsLine.adRating.ratingIcon.iconType"),_.p("design:type",Object),_.p("design:paramtypes",[])],bn.prototype,"iconType",null);_.A([_.G("data.detailsLine.texts.0.text"),_.p("design:type",Object),_.p("design:paramtypes",[])],bn.prototype,"getDetailsLine",null);_.A([_.G("getDetailsLine"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],bn.prototype,"computeDetailsLineHidden",null);
_.A([_.G("data.description.text"),_.p("design:type",Object),_.p("design:paramtypes",[])],bn.prototype,"getDescriptionText",null);_.A([_.G("getDescriptionText"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],bn.prototype,"computeDescriptionTextHidden",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],bn.prototype,"interactionLoggingClientData",null);
_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],bn.prototype,"hideBanner",null);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bn.prototype,"dataChanged",null);_.A([_.fu("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],bn.prototype,"onClick",null);_.A([_.q({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],bn);
_.m(bn,"ytd-action-companion-ad-renderer",function(){if(ya4!==void 0)return ya4;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return ya4=R},{mode:_.TN("kevlar_poly_si_batch_j067")?1:2});var uog;var vLK;var FH=function(){var R=_.W.apply(this,arguments)||this;R.buttonUpdate=_.f("web_modern_buttons");R.hideLegacyBanner=_.f("enable_dsa_one_click_ata_translators_infeed_elements");R.adInfoButtonStyle="mono";R.adInfoButtonType="text";R.noDotAdBadge=!0;return R};
_.O(FH,_.W);_.J=FH.prototype;_.J.getOnLayoutVisibleCallback=function(){var R=_.D6("yt.www.ads.eventcache.getLastCompanionData");return R?(R=R())&&R.onLayoutVisibleCallback:null};
_.J.getLayoutId=function(){var R=_.D6("yt.www.ads.eventcache.getLastCompanionData");return R?(R=R())&&R.layoutId:null};
_.J.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?_.Eo(R.url):void 0;this.imageWidth=R.width||0;this.imageHeight=R.height||0}this.data.clickthroughEndpoint&&_.e(this.data.clickthroughEndpoint,_.tc)&&(R=_.e(this.data.clickthroughEndpoint,_.tc).url,_.f("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
R||"":R?(R=_.Eo(R),this.clickThroughUrl=_.Pg(R)):this.clickThroughUrl=void 0);(R=this.getOnLayoutVisibleCallback())&&R()}};
_.J.onClick=function(R){_.JF(_.u8(R),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(R)};
_.J.handleClick=function(){var R=this;this.data&&this.data.clickthroughEndpoint&&(_.Ko(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(y){R.macroReplacementBehavior.sendServiceRequestAction([y])}),_.Ik(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.J.onLoad=function(){_.h_(this.hostElement,"yt-refit-popups-action")};
_.RR.Object.defineProperties(FH.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var R=_.D6("yt.www.ads.eventcache.getLastCompanionData");return R?(R=R())&&R.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var R=_.D6("yt.www.ads.eventcache.getLastCompanionData");return R?(R=R())&&R.interactionLoggingClientData:null}}});
FH.prototype.onLoad=FH.prototype.onLoad;FH.prototype.onClick=FH.prototype.onClick;FH.prototype.dataChanged=FH.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],FH.prototype,"rendererBehavior",void 0);_.A([_.n(Gay.YtMacroReplacementBehavior),_.p("design:type",Object)],FH.prototype,"macroReplacementBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],FH.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],FH.prototype,"buttonUpdate",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],FH.prototype,"hideLegacyBanner",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],FH.prototype,"adInfoButtonStyle",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],FH.prototype,"adInfoButtonType",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],FH.prototype,"macros",null);
_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],FH.prototype,"interactionLoggingClientData",null);_.A([_.r(),_.p("design:type",String)],FH.prototype,"clickThroughUrl",void 0);_.A([_.r(),_.p("design:type",_.Hg)],FH.prototype,"imageSrc",void 0);_.A([_.r(),_.p("design:type",Number)],FH.prototype,"imageWidth",void 0);_.A([_.r(),_.p("design:type",Number)],FH.prototype,"imageHeight",void 0);_.A([_.r(),_.p("design:type",Object)],FH.prototype,"noDotAdBadge",void 0);
_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FH.prototype,"dataChanged",null);_.A([_.fu("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],FH.prototype,"onClick",null);_.A([_.fu("load"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FH.prototype,"onLoad",null);_.A([_.q({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],FH);
_.m(FH,"ytd-image-companion-renderer",function(){if(vLK!==void 0)return vLK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return vLK=R},{mode:_.TN("kevlar_poly_si_batch_j067")?1:2});var Q1o;var wt=function(){return _.W.apply(this,arguments)||this};
_.O(wt,_.W);_.J=wt.prototype;_.J.dataChanged=function(){this.set("data.adBadge",wt.JSC$22673_DEFAULT_AD_BADGE_RENDERER);if(this.data){var R=this.getOnLayoutVisibleCallback();R&&R()}};
_.J.getOnLayoutVisibleCallback=function(){var R=_.D6("yt.www.ads.eventcache.getLastCompanionData");return R?(R=R())&&R.onLayoutVisibleCallback:null};
_.J.getLayoutId=function(){var R=_.D6("yt.www.ads.eventcache.getLastCompanionData");return R?(R=R())&&R.layoutId:null};
_.J.onCompanionClicked=function(R){this.data&&(R.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.Ik(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.J.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var R=_.I8(),y=this.getLayoutId(),u=this.data.clickToAdvSiteEndpoint;R&&y&&_.f("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?R.getPlayerPromise().then(function(v){(new _.kQ(v)).executeCommand(u,y)}):_.Ko(this.hostElement,"yt-navigate",{endpoint:u})}};
_.J.sendTrackingPings=function(R){if(R&&R.length!==0&&R[0].loggingUrls&&(R=R[0].loggingUrls.map(this.getBaseUrl)))for(var y=0;y<R.length;y++)_.D1(R[y])};
_.J.getBaseUrl=function(R){return R.baseUrl||""};
_.RR.Object.defineProperties(wt.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var R=_.D6("yt.www.ads.eventcache.getLastCompanionData");return R?(R=R())&&R.interactionLoggingClientData:null}}});
wt.prototype.onCompanionClicked=wt.prototype.onCompanionClicked;wt.prototype.dataChanged=wt.prototype.dataChanged;wt.JSC$22673_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.fo("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],wt.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],wt.prototype,"data",void 0);_.A([_.O7("#title"),_.p("design:type",HTMLElement)],wt.prototype,"shopTitle",void 0);
_.A([_.GJ("data.impressionEndpoints"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wt.prototype,"dataChanged",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],wt.prototype,"interactionLoggingClientData",null);_.A([_.fu("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],wt.prototype,"onCompanionClicked",null);
_.A([_.q({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],wt);
_.m(wt,"ytd-shopping-companion-renderer",function(){if(Q1o!==void 0)return Q1o;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Q1o=R},{mode:1});_.h6(_.Jd(function(R){var y=R.data;R=_.vA({visibilityCallback:function(v){var Q,M=(Q=y().interaction)==null?void 0:Q.onFirstVisible;v&&M&&_.zN(M)},
showOption:_.i2});var u=_.CA(function(){return y().interaction},swV);
_.WT(function(){var v,Q;Q=(Q=_.D6("yt.www.ads.eventcache.getLastCompanionData"))?(Q=Q())&&Q.onLayoutVisibleCallback:null;(v=Q)==null||v()});
return _.F("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.nh(function(v){_.h_(v.currentTarget,"yt-refit-popups-action")}),
el:_.VX(R,u),"aria-label":function(){var v,Q;return(v=y().interaction)==null?void 0:(Q=v.accessibility)==null?void 0:Q.label}},_.F("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.F(_.mk,{data:function(){return y().adImage}},{adImageViewModel:function(v){return _.F(_.lz,{data:v.data,
targetHeight:80,customCommandResolver:swV})}})),_.F("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.F("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.F(_.mk,{data:function(){return y().adBadge}},{adBadgeViewModel:function(v){return _.F(_.No,{data:v.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.F("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.F(_.mk,{data:function(){return y().menu}},{buttonViewModel:_.fQ}))))},"Kj"),"banner-image-layout-view-model",{props:{data:_.vR}});_.h6(_.Jd(function(R){var y=R.data;R=_.vA({visibilityCallback:function(v){var Q,M=(Q=y().interaction)==null?void 0:Q.onFirstVisible;v&&M&&_.zN(M)},
showOption:_.i2});var u=_.CA(function(){return y().interaction},zMM);
_.WT(function(){var v,Q;Q=(Q=_.D6("yt.www.ads.eventcache.getLastCompanionData"))?(Q=Q())&&Q.onLayoutVisibleCallback:null;(v=Q)==null||v()});
return _.F("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.VX(R,u)},_.F("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.F(_.mk,{data:function(){return y().adImage}},{adImageViewModel:function(v){return _.F(_.lz,{data:v.data,
targetHeight:80,customCommandResolver:zMM})}})),_.F("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.F("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.F(_.mk,{data:function(){return y().adAvatarLockup}},{adAvatarLockupViewModel:function(v){return _.F(sKq,{data:v.data,
customCommandResolver:zMM})}})),_.F(_.mk,{data:function(){return y().adButton}},{adButtonViewModel:function(v){return _.F(_.Ip,{data:v.data,
customCommandResolver:zMM})}}),_.F("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.F(_.mk,{data:function(){return y().menu}},{buttonViewModel:_.fQ}))))},"Lj"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.vR}});var j1q={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"},N_=function(){var R=_.W.apply(this,arguments)||this;R.updateCompanionDataJobId=0;R.contentVideoId=null;R.player=null;R.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return R};
_.O(N_,_.W);_.J=N_.prototype;_.J.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:j1q}}};
_.J.attached=function(){var R=this,y=_.I8();y&&y.getPlayerPromise().then(function(u){R.getCachedDataAndListen(u)})};
_.J.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.J.updateRendererStamper=function(){var R={};if(this.data)for(var y in j1q)if(this.data[y]){R[y]=this.data[y];break}if(this.oneofRenderer!=void 0||Object.keys(R).length)this.oneofRenderer=R};
_.J.getCachedDataAndListen=function(R){var y=this.retrieveCachedCompanionData();y&&Object.keys(y).length&&this.receiveCompanionData(y);this.ytPlayerListenerBehavior.listenToPlayerEvent(R,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=R};
_.J.retrieveCachedCompanionData=function(){return _.uO.yt&&_.uO.yt.www&&_.uO.yt.www.ads&&_.uO.yt.www.ads.eventcache&&_.uO.yt.www.ads.eventcache.getLastCompanionData?_.uO.yt.www.ads.eventcache.getLastCompanionData():null};
_.J.receiveCompanionData=function(R){R&&Object.keys(R).length?(this.contentVideoId=R.contentVideoId,this.setCompanionData(R)):this.setCompanionData(R)};
_.J.setCompanionData=function(R){this.cancelPendingCompanionAdJobs();if(R){this.updateCompanionDataJobId=0;for(var y in j1q)j1q.hasOwnProperty(y)&&(this.data[y]=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),_.h_(this.hostElement,
"yt-hide-unlimited-offer-module"),_.h_(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()}};
_.J.dataChanged=function(){var R=this,y=_.I8();y?y.getPlayerPromise().then(function(u){R.contentVideoId&&u.getVideoUrl().includes("v="+R.contentVideoId)||(R.cancelPendingCompanionAdJobs(),R.updateRendererStamper())}):_.pG(Error("xo"))};
_.J.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.WG.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.J.handleCompanionAdClicked=function(R,y){this.player.onAdUxClicked(R,y);this.player.pauseVideo()};
N_.prototype.dataChanged=N_.prototype.dataChanged;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],N_.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],N_.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],N_.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],N_.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.n(_.Ra.YtPlayerListenerBehavior),_.p("design:type",_.yH)],N_.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],N_.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],N_.prototype,"oneofRenderer",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],N_.prototype,"dataChanged",null);_.A([_.q({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],N_);
_.m(N_,"ytd-companion-slot-renderer",function(){if(uog!==void 0)return uog;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return uog=R},{mode:_.TN("kevlar_poly_si_batch_j067")?
1:2});var MLB;var T6=function(){return _.W.apply(this,arguments)||this};
_.O(T6,_.W);T6.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
T6.prototype.dataChanged=T6.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],T6.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],T6.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],T6.prototype,"companionSlotData",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],T6.prototype,"dataChanged",null);
_.A([_.q({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],T6);
_.m(T6,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(MLB!==void 0)return MLB;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return MLB=R},{mode:1});var Jaq;var ow=function(){var R=_.W.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,_.gn(R,function(){var y=R.COMPACT_EVENT_COUNT-1,u;(u=_.hw(R.hostElement).querySelector("#event-"+y))==null||u.focus()}))};
return R};
_.O(ow,_.W);_.J=ow.prototype;_.J.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.J.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.J.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.BN(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.BN(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.BN(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.BN(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.BN(this.infoTooltip,this.infoTooltip.hide))};
_.J.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.BN(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.BN(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.BN(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.BN(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.BN(this.infoTooltip,this.infoTooltip.hide))};
_.J.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)};
_.J.onShowingMoreChanged=function(){var R;this.showingMoreChanged((R=this.showingMore)!=null?R:!1)};
_.J.showingMoreChanged=function(R){var y=this.get("data.events")||[];this.set("restEvents",y.slice(1,R?y.length:this.COMPACT_EVENT_COUNT).map(function(u){return u.ticketEventRenderer}));
y.slice(0,R?y.length:this.COMPACT_EVENT_COUNT).forEach(function(u){var v=_.$I();u=u.ticketEventRenderer.trackingParams;_.Ef()&&v&&u&&(u=_.U4(u),v&&_.YF(v,u))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.J.computeAriaLabel=function(R){return R.subtitle1+", "+R.subtitle2};
_.J.logTap=function(R){_.Ef()&&this.ytRendererBehavior.logExplicitClick(R)};
_.J.isKeyboardAction=function(R){return this.get("detail.x",R)===0&&this.get("detail.y",R)===0};
_.J.onFirstEventTap=function(R){R.target&&this.handleTap(R.target,this.firstEvent,this.isKeyboardAction(R))};
_.J.onTicketLinkTap=function(R){R.target&&this.handleTap(R.target,R.model.item,this.isKeyboardAction(R))};
_.J.handleTap=function(R,y,u){if(y.buttonCommand)if(y.hasMultipleOffers)Object.assign(_.e(y.buttonCommand,_.kW),{properties:{source:u?"keyboard":"tap"}}),this.logTap(y),this.popupPositionTarget=R,_.wr(this.hostElement,[y.buttonCommand],this.hostElement);else{var v;if((v=_.e(y.buttonCommand,_.tc))==null?0:v.url)this.logTap(y),_.aK(window,_.e(y.buttonCommand,_.tc).url)}};
ow.prototype.onShowingMoreChanged=ow.prototype.onShowingMoreChanged;ow.prototype.dataChanged=ow.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ow.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ow.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],ow.prototype,"firstEvent",void 0);_.A([_.r(),_.p("design:type",Object)],ow.prototype,"restEvents",void 0);_.A([_.r(),_.p("design:type",String)],ow.prototype,"imageUrl",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],ow.prototype,"showingMore",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],ow.prototype,"canShowMore",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ow.prototype,"skinnyMode",void 0);_.A([_.r(),_.p("design:type",HTMLElement)],ow.prototype,"popupPositionTarget",void 0);_.A([_.O7("#banner-info-tooltip"),_.p("design:type",Object)],ow.prototype,"infoTooltip",void 0);
_.A([_.O7("#info-container"),_.p("design:type",HTMLElement)],ow.prototype,"infoContainer",void 0);_.A([_.O7("#shelf-toggler"),_.p("design:type",HTMLElement)],ow.prototype,"shelfToggleButton",void 0);_.A([_.O7("#separator"),_.p("design:type",HTMLDivElement)],ow.prototype,"separator",void 0);_.A([_.r(),_.p("design:type",String)],ow.prototype,"shelfTogglerLabelText",void 0);_.A([_.r(),_.p("design:type",String)],ow.prototype,"shelfTogglerIcon",void 0);
_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ow.prototype,"dataChanged",null);_.A([_.GJ("showingMore"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ow.prototype,"onShowingMoreChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],ow);
_.m(ow,"ytd-ticket-shelf-renderer",function(){if(Jaq!==void 0)return Jaq;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Jaq=R},{mode:1});var VLF;var i$K;var xm=function(){return _.W.apply(this,arguments)||this};
_.O(xm,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],xm.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],xm.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],xm);
_.m(xm,"ytd-comments-entry-point-message-renderer",function(){if(i$K!==void 0)return i$K;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return i$K=R},{mode:1});var K_E;var BU=function(){return _.W.apply(this,arguments)||this};
_.O(BU,_.W);_.RR.Object.defineProperties(BU.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.teaserAvatar)}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],BU.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],BU.prototype,"data",void 0);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],BU.prototype,"hasAvatar",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],BU);
_.m(BU,"ytd-comments-entry-point-teaser-renderer",function(){if(K_E!==void 0)return K_E;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return K_E=R},{mode:1});var Ity;var fM=function(){return _.W.apply(this,arguments)||this};
_.O(fM,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],fM.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],fM.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],fM);
_.m(fM,"ytd-comments-simplebox-renderer",function(){if(Ity!==void 0)return Ity;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Ity=R},{mode:1});var er=function(){var R=_.W.apply(this,arguments)||this;R.fullHeight=!_.f("comment_teaser_full_height_kill_switch")&&_.f("kevlar_watch_grid");return R};
_.O(er,_.W);er.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"}}}};
er.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
er.prototype.onTap=function(){var R=this.tapCommand;R&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(R))};
er.prototype.onKeyUp=function(R){if(R.keyCode===13)this.onTap()};
_.RR.Object.defineProperties(er.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.data)==null?0:R.onTap)return this.data.onTap;var y,u;if(((y=this.data)==null?0:y.teaserContent)||((u=this.data)==null?0:u.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}}});
er.prototype.onKeyUp=er.prototype.onKeyUp;er.prototype.onTap=er.prototype.onTap;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],er.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],er.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],er.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],er.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],er.prototype,"fullHeight",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],er.prototype,"tapCommand",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],er.prototype,"simpleboxPlaceholder",null);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],er.prototype,"hasSimpleboxPlaceholder",null);
_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],er.prototype,"simpleboxAvatar",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],er.prototype,"teaserContent",null);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],er.prototype,"hasTeaserContent",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],er.prototype,"teaserAvatar",null);
_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],er.prototype,"hasTeaserAvatar",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],er.prototype,"messageText",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],er.prototype,"contentRenderer",null);_.A([_.G("data"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],er.prototype,"hasContents",null);
_.A([_.G("data"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],er.prototype,"hasContentRenderer",null);_.A([_.fu("click"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],er.prototype,"onTap",null);_.A([_.fu("keypress"),_.p("design:type",Function),_.p("design:paramtypes",[_.lV]),_.p("design:returntype")],er.prototype,"onKeyUp",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],er);
_.m(er,"ytd-comments-entry-point-header-renderer",function(){if(VLF!==void 0)return VLF;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return VLF=R},{mode:1});var hUy;_.f("web_enable_sink_animated_rolling_character_and_number")?_.h6(_.ymG,"yt-animated-rolling-number",{props:{numberText:_.vR,numberValue:_.vR,heightPx:_.vR,fontSizeMultiplier:_.vR,shouldAnimate:_.vR,forceRollUp:_.vR}}):_.B_(_.odW,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var b$K=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),F_y={numberText:"",heightPx:2*b$K,shouldAnimate:!1},ln=function(){var R=_.W.apply(this,arguments)||this;R.usingAnimatedComponents=!0;R.wasDetailed=!1;R.JSC$22710_browserSupportsAnimation=_.f("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=F_y;R.dateTextProps=
F_y;R.metadataBadgesInDescription=_.f("web_metadata_badges_in_description");return R};
_.O(ln,_.W);_.J=ln.prototype;_.J.resetAnimationState=function(){this.shouldAnimate=!1};
_.J.updateDynamicMetadata=function(){if(this.JSC$22710_browserSupportsAnimation){if(!this.detailed){var R,y,u,v;var Q=(R=this.videoPrimaryInfoRenderer)==null?void 0:(y=R.viewCount)==null?void 0:(u=y.videoViewCountRenderer)==null?void 0:(v=u.extraShortViewCount)==null?void 0:v.simpleText;var M,K,h,b;var N=(M=this.videoPrimaryInfoRenderer)==null?void 0:(K=M.viewCount)==null?void 0:(h=K.videoViewCountRenderer)==null?void 0:(b=h.shortViewCount)==null?void 0:b.simpleText}if(!N){var T,x,B,l;Q=(T=this.videoPrimaryInfoRenderer)==
null?void 0:(x=T.viewCount)==null?void 0:(B=x.videoViewCountRenderer)==null?void 0:(l=B.unlabeledViewCountValue)==null?void 0:l.simpleText;var Z,P,k,E;N=(Z=this.videoPrimaryInfoRenderer)==null?void 0:(P=Z.viewCount)==null?void 0:(k=P.videoViewCountRenderer)==null?void 0:(E=k.viewCount)==null?void 0:E.simpleText}var D,z,c;R=Number((D=this.videoPrimaryInfoRenderer)==null?void 0:(z=D.viewCount)==null?void 0:(c=z.videoViewCountRenderer)==null?void 0:c.originalViewCount);var a,L;D=(a=this.videoPrimaryInfoRenderer)==
null?void 0:(L=a.relativeDateText)==null?void 0:L.simpleText;var QG;a=!((QG=this.videoPrimaryInfoRenderer)==null||!QG.relativeDateText);if(Q&&N&&R&&(D||!a)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;QG=N.split(new RegExp("("+Q+")"));Q=vSK(QG[0]);var hz;N={numberText:(hz=QG[1])!=null?hz:"",numberValue:R,heightPx:2*b$K,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var bO;hz=((bO=QG[2])!=null?bO:"")+"  ";this.setViewCount(N,Q,vSK(hz));
if(!this.detailed&&a){Q=D.split(/(\d+)/);bO=vSK(Q[0]);var BW;hz={numberText:(BW=Q[1])!=null?BW:"",heightPx:2*b$K,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var Zc;BW=((Zc=Q[2])!=null?Zc:"")+"  ";this.setDateText(hz,bO,vSK(BW))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.J.setViewCount=function(R,y,u){_.u7(y)!==_.u7(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=y);this.viewCountProps.numberText!==(R==null?void 0:R.numberText)&&(this.viewCountProps=R||F_y);_.u7(u)!==_.u7(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=u)};
_.J.setDateText=function(R,y,u){_.u7(y)!==_.u7(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=y);this.dateTextProps.numberText!==(R==null?void 0:R.numberText)&&(this.dateTextProps=R||F_y);_.u7(u)!==_.u7(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=u)};
_.J.onYtUpdateViewershipAction=function(R){this.videoPrimaryInfoRenderer&&(_.e(R,MgF).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.e(R,MgF).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.e(R,MgF).viewCount)))};
_.J.onYtUpdateDateTextAction=function(R){if(this.videoPrimaryInfoRenderer){R=_.e(R,_.Qbo).dateText;this.shouldAnimate=!0;var y;((y=this.videoPrimaryInfoRenderer)==null?0:y.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",R):this.set("videoPrimaryInfoRenderer.dateText",R)}};
_.RR.Object.defineProperties(ln.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return uUy(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.u7(uUy(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.u7(this.viewCountPreNumberText),this.viewCountProps.numberText,_.u7(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.u7(this.dateTextPreNumberText),this.dateTextProps.numberText,_.u7(this.dateTextPostNumberText)].join("")}}});
ln.prototype.updateDynamicMetadata=ln.prototype.updateDynamicMetadata;ln.prototype.resetAnimationState=ln.prototype.resetAnimationState;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],ln.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ln.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],ln.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],ln.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ln.prototype,"videoPrimaryInfoRenderer",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ln.prototype,"detailed",void 0);_.A([_.r(),_.p("design:type",Object)],ln.prototype,"shouldAnimate",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ln.prototype,"viewCountPreNumberText",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ln.prototype,"viewCountProps",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ln.prototype,"viewCountPostNumberText",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ln.prototype,"dateTextPreNumberText",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ln.prototype,"dateTextProps",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ln.prototype,"dateTextPostNumberText",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ln.prototype,"metadataBadgesInDescription",void 0);_.A([_.G("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.p("design:type",Object),_.p("design:paramtypes",[])],ln.prototype,"infoText",null);
_.A([_.G("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.p("design:type",String),_.p("design:paramtypes",[])],ln.prototype,"descriptionInfoTooltipText",null);_.A([_.G("detailed"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ln.prototype,"showDescriptionInfoTooltip",null);
_.A([_.G("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.p("design:type",String),_.p("design:paramtypes",[])],ln.prototype,"animatedViewCountAccessibilityLabel",null);_.A([_.G("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.p("design:type",String),_.p("design:paramtypes",[])],ln.prototype,"animatedDateTextAccessibilityLabel",null);
_.A([_.e0("videoPrimaryInfoRenderer"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ln.prototype,"resetAnimationState",null);_.A([_.e0("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ln.prototype,"updateDynamicMetadata",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-watch-info-text"})],ln);
_.m(ln,"ytd-watch-info-text",function(){if(hUy!==void 0)return hUy;var R=document.createElement("template");_.H(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 force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');
R.content.insertBefore(_.t().content.cloneNode(!0),R.content.firstChild);return hUy=R},{mode:1});var w$B;var NYE="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var TYq=_.Jd(function(R){var y=R.data;var u=R.setTapCommand;_.ny(function(){var v=_.Sb(y().onTap);u(v)},"X4onJd");
return _.F("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.F(_.mk,{data:function(){return y().avatar}},{avatarViewModel:_.XS}),_.F("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.F("span",null,function(){return y().simpleboxText})))},"Mj");var oLK=_.Jd(function(R){return _.F("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.F(_.w,{cond:function(){return _.e(R.data().avatar,_.LA)},
then:function(y){return _.F(_.XS,{data:y,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.F("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.F(_.QM,{text:function(){return R.data().teaserText}})))},"Nj");var xPE=_.Jd(function(R){var y=R.data;var u=R.setTapCommand;_.ny(function(){var v=_.Sb(y().onTap);u(v)},"PmAol");
return _.F("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.F(_.mk,{data:function(){return y().teasers}},{commentsEntryPointTeaserViewModel:oLK}))},"Oj");var BYy=_.Jd(function(R){var y=R.data;var u=R.setTapCommand;_.ny(function(){var v=_.Sb(y().onTap);u(v)},"Nh3Hjd");
return _.F("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.F(_.QM,{text:function(){return y().messageText}}))},"Pj");var ftg=_.Jd(function(R){var y=R.data;var u=R.setTapCommand;var v=R.isDisabled;_.ny(function(){var Q=(v==null?0:v())?void 0:_.Sb(y().onTap);u(Q)},"omeiWe");
return _.F("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.F(_.W_,{icon:function(){return y().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.F(_.w,{cond:function(){return y().image},
then:function(Q){return _.F(_.MR,{data:Q,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.F(_.QM,{text:function(){return y().text},
className:function(){return y().image||y().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.F(_.mk,{data:function(){return y().button}},{buttonViewModel:function(Q){return _.F(_.fQ,{data:Q.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:v==null?void 0:v()}}})}}))},"Qj");var eUy=_.Jd(function(R){var y=R.data;var u=R.itemIndex;var v=R.selectedIndex;var Q=R.indexUpdatedCallback;var M=R.observer;R=R.title;var K=_.sh("yt-carousel-item-view-model",function(x){_.f("web_metadata_carousel_elref_bugfix")&&M&&M().observe(x)}),h=function(x){u()===v()&&Q(x)},b=_.Sp(d_7),N=_.Sp(_.IsE),T=function(){var x,B,l;
return((x=y())==null?void 0:x.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!b()||((B=y())==null?void 0:B.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&N().includes("PAposts_by_host")||((l=y())==null?void 0:l.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&N().includes("PAyouchat")};
_.rB(function(){_.f("web_metadata_carousel_elref_bugfix")||M&&M().observe(K.value)});
return _.F("yt-carousel-item-view-model",{el:K,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":R},_.F(_.mk,{data:function(){var x,B;return(B=(x=_.e(y().carouselItem,nSC))==null?void 0:x.textCarousel)!=null?B:y().carouselItem}},{textCarouselItemViewModel:function(x){return _.F(ftg,{data:x.data,
setTapCommand:h,isDisabled:T})},
commentTeaserCarouselItemViewModel:function(x){return _.F(xPE,{data:x.data,setTapCommand:h})},
commentInputBoxCarouselItemViewModel:function(x){return _.F(TYq,{data:x.data,setTapCommand:h})},
commentsEntryPointMessageViewModel:function(x){return _.F(BYy,{data:x.data,setTapCommand:h})}}))},"Rj");var ltB=_.Jd(function(R){var y=R.numDots;var u=R.activeIndex;return _.F("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.F(_.eS,{each:function(){return Array.from({length:y()})},
keyBy:"INDEX"},function(v,Q){return _.F("div",{class:function(){var M={};return _.Zl("ytCarouselDotsShapeDot",(M.ytCarouselDotsShapeDotActive=Q===u(),M))}})}))},"Sj");var O$y=_.Jd(function(R){var y=R.data;var u=R.handleCarouselNavigation;var v=R.numItems;var Q=R.selectedIndex;var M=function(){return{disabled:Q()===0}},K=function(){return{disabled:Q()===v()-1}};
return _.F("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.F("div",null,_.F("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return y().title}),_.F(_.w,{cond:function(){return y().subtitle},
then:function(h){return _.F("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return y().subtitleAccessibilityText}},h)}})),_.F(_.w,{cond:function(){return v()>1},
then:function(){return _.F("div",{class:"ytCarouselTitleViewModelNavigation"},_.F(ltB,{numDots:v,activeIndex:Q}),_.F(_.w,{cond:function(){return y().previousButton},
then:function(h){return _.F(_.mk,{data:h},{buttonViewModel:function(b){return _.F(_.fQ,{data:b.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return u(-1)},
buttonOverrides:M})}})}}),_.F(_.w,{cond:function(){return y().nextButton},
then:function(h){return _.F(_.mk,{data:h},{buttonViewModel:function(b){return _.F(_.fQ,{data:b.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return u(1)},
buttonOverrides:K})}})}}))}}))},"Tj");_.h6(_.Jd(function(R){var y=R.data;var u,v=_.sh("yt-video-metadata-carousel-view-model"),Q=_.sh("div",function(a){if(_.f("web_metadata_carousel_elref_bugfix")){var L=function(){var QG=a.offsetWidth*P(),hz=24*(P()-1);B(QG+hz)};
L();window.ResizeObserver&&(u=new ResizeObserver(L),u.observe(a))}}),M=_.EB("HTML_DIR")==="rtl",K=!1,h=0,b=0;
R=_.V(_.In(0,void 0,"f4aYxe"));var N=R.next().value,T=R.next().value;R=_.V(_.In(0,void 0,"kU9O9"));var x=R.next().value,B=R.next().value;R=_.V(_.In(!1,void 0,"GqphDd"));var l=R.next().value,Z=R.next().value,P=function(){var a,L,QG;return(QG=(a=y())==null?void 0:(L=a.carouselTitles)==null?void 0:L.length)!=null?QG:0},k=function(){Q.value&&Q.value.scrollLeft!==h&&T((M?Q.value.scrollLeft<h:Q.value.scrollLeft>h)?Math.min(N()+1,P()-1):Math.max(N()-1,0))},E;
window.IntersectionObserver&&(E=new IntersectionObserver(function(a){a=_.V(a);for(var L=a.next();!L.done;L=a.next())if(L.value.isIntersecting){if(K){K=!1;break}k()}else T(b)},{threshold:.2}));
_.ny(function(){if(Q.value){var a=(M?-1:1)*(x()/P()+12)*(l()&&E?b:N());typeof Q.value.scrollTo==="function"?Q.value.scrollTo({left:a,behavior:"smooth"}):Q.value.scrollLeft=a;h=a;b=l()&&E?b:N()}},"ZP1VMb");
var D,z=function(a){D=a};
_.rB(function(){if(!_.f("web_metadata_carousel_elref_bugfix")){var a=function(){var QG=Q.value.offsetWidth*P(),hz=24*(P()-1);B(QG+hz)};
a();if(window.ResizeObserver){var L=new ResizeObserver(a);L.observe(Q.value);_.GF(function(){L.disconnect();E&&E.disconnect()})}}});
_.GF(function(){if(_.f("web_metadata_carousel_elref_bugfix")){var a;(a=u)==null||a.disconnect();var L;(L=E)==null||L.disconnect()}});
var c=function(a){a=N()+a;a>=0&&a<P()&&(K=!0,T(a))};
return _.F("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:v,"on:click":_.nh(function(a){if(_.cm(_.tF(a),v.value,["BUTTON".toString()])||!D)return!1;_.ua().resolve(_.jX).resolveCommand(D,{forceClickLogging:!0});return!1}),
"on:touchstart":_.nh(function(){Z(!0);return!1}),
"on:touchend":_.nh(function(){E||k();Z(!1);return!1}),
hidden:function(){var a,L;return!((a=y())==null?0:(L=a.carouselItems)==null?0:L.length)}},_.F("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.F(_.w,{cond:function(){return y().carouselTitles},
then:function(a){return _.F(_.mk,{data:function(){return a()[l()&&E?b:N()]}},{carouselTitleViewModel:function(L){return _.F(O$y,{data:L.data,
handleCarouselNavigation:c,numItems:P,selectedIndex:N})}})}})),_.F("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:Q},_.F("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+x()+"px;"}},_.F(_.w,{cond:function(){return y().carouselItems},
then:function(a){return _.F(_.eS,{each:a},function(L,QG){return _.F(_.mk,{data:function(){return L}},{carouselItemViewModel:function(hz){return _.F(eUy,{data:hz.data,
itemIndex:QG,selectedIndex:N,indexUpdatedCallback:z,observer:E,title:function(){a:{var bO=QG();var BW,Zc=(BW=y())==null?void 0:BW.carouselTitles;if(Zc&&(bO=Zc[bO])){var xS;bO=(xS=_.e(bO,H8C))==null?void 0:xS.title;break a}bO=void 0}return bO}})}})})}}))))},"Uj"),"yt-video-metadata-carousel-view-model",{props:{data:_.vR}});var Z$q=_.f("web_action_buttons_update_owner_width")?32:12,O3=function(){var R=_.W.apply(this,arguments)||this;R.isHovering=!1;R.enableColorSampling=_.f("web_delhi_colorful_sd");R.metadataBadgesInDescription=_.f("web_metadata_badges_in_description");R.descriptionCollapsed=!0;R.useFadedScrimDescription=_.f("kevlar_enable_faded_scrim_on_description");R.skinnyMode=!1;R.playlist=!1;R.isDark=document.documentElement.hasAttribute("dark");R.disableVideoOwnerOnTap=_.f("swatchie_video_owner_on_tap_ks");R.swatcherooDelayLoad=
_.f("swatcheroo_enable_ghost_cards");R.primaryMenuWidth=0;R.videoId="";R.titleHeadlineXs=_.f("web_watch_typography_title_headline_xs");R.titleHeadlineS=_.f("web_watch_typography_title_headline_s");R.titleHeadlineM=_.f("web_watch_typography_title_headline_m");R.titleHashtagBlackLinkified=_.f("web_title_hashtag_black_linkified");R.titleHashtagGreyLinkified=_.f("web_title_hashtag_grey_linkified");R.actionButtonsUpdateOwnerWidth=_.f("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;R.isTheaterMode=!1;return R};
_.O(O3,_.W);_.J=O3.prototype;_.J.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.J.updateOwnerAndDescriptionPosition=function(){_.f("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.df(this.bottomRowElement,this.ownerElement)):(_.df(this.bottomRowElement,this.descriptionElement),_.df(this.topRowElement,this.ownerElement)))};
_.J.titleOnTap=function(R){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.JF(_.u8(R)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var y;((y=window.getSelection())==null?0:y.toString().length)||this.handleExpandDescriptionCommands()}};
_.J.videoOwnerOnTap=function(R){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.JF(_.u8(R)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.J.detached=function(){var R=this,y;return _.I(function(u){(y=R.resizeObserver)==null||y.disconnect();_.f$(u)})};
_.J.maybeAttachResizeObserver=function(){var R=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.v2(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){R.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.J.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var R=this.hostElement.clientWidth,y=Math.max(this.largerItemWrap?400:350,R/2-Z$q);if(_.f("web_action_buttons_update_owner_width")){var u;y=(((u=document.getElementById("owner"))==null?void 0:u.clientWidth)||0)+Z$q}this.actionsOnSeparateLine=this.primaryMenuWidth>R-y?!0:!1}};
_.J.stripAttributedDescription=function(R){return{content:R.content.replace(/[\r\n]{2,}/g,"\n")}};
_.J.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.f("web_modern_buttons"),forceIconButton:!_.f("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:_.f("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"}}}};
_.J.videoPrimaryInfoRendererChanged=function(){var R;if((R=this.videoPrimaryInfoRenderer)==null?0:R.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.J.videoSecondaryInfoRendererChanged=function(){var R,y;(y=(R=this.descriptionInlineExpander).collapse)==null||y.call(R);this.descriptionExpandClientVe=_.$6(110509);this.descriptionCollapseClientVe=_.$6(110510);R=_.$I();y=_.Ef();R&&y&&(_.f("combine_ve_grafts")?(_.x0(_.GN(),this.descriptionExpandClientVe,y),_.x0(_.GN(),this.descriptionCollapseClientVe,y)):_.Si(R,y,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.J.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.J.updateTopLevelIconsOnly=function(){var R=this;_.f("top_level_update_killswitch")||this.menu&&_.WG.addLowPriorityJob(function(){R.menu.topLevelIconsOnly=R.skinnyMode},_.JT("swathceroo_delay_flexible_menu_update",100))};
_.J.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.f("web_action_buttons_minimize_subscribe")};
_.J.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.J.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.J.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.J.onYtTextInlineExpanderExpandedChanged=function(){if(!_.f("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var R,y;(y=(R=this.structuredDescriptionContentRendererElement).resize)==null||y.call(R)}};
_.J.onRenderStamperFinished=function(R){(R==null?void 0:R.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.J.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.J.onYtExpanderLessTapped=function(){var R,y=(R=this.videoSecondaryInfoRenderer)==null?void 0:R.showLessCommand;y&&this.ytComponentBehavior.resolveCommand(y)};
_.J.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.J.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.J.onDescriptionClick=function(R){if(!_.JF(_.u8(R)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var y;((y=window.getSelection())==null?0:y.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.f("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.J.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.J.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.J.logCollapseClick=function(){var R=_.$I();R&&this.descriptionCollapseClientVe&&_.zP(R,this.descriptionCollapseClientVe)};
_.J.logExpandClick=function(){var R=_.$I();R&&this.descriptionExpandClientVe&&_.zP(R,this.descriptionExpandClientVe)};
_.J.collapseDescription=function(){this.descriptionCollapsed=!0};
_.J.scrollToTopOfContainer=function(){_.Ik(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.J.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.J.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.J.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.J.resize=function(){if(this.descriptionInlineExpander){var R,y;(y=(R=this.descriptionInlineExpander).resize)==null||y.call(R)}else _.kT(new _.OL("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var u;(u=this.menu)==null||u.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.f("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.J.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var R,y,u,v,Q=_.f("web_action_buttons_update_owner_width")?(u=(R=_.hw(this.menu).querySelector("#button-shape"))==null?void 0:R.clientWidth)!=null?u:0:(v=(y=_.hw(this.menu).querySelector("#button"))==null?void 0:y.clientWidth)!=null?v:0,M,K;R=((K=(M=_.hw(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:M.clientWidth)!=null?K:0)+8+Q;var h,b;Q=(b=(h=_.hw(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:h.children.length)!=null?b:2;R<=8*Q||(this.primaryMenuWidth=R)}};
_.J.onYtUpdateTitleAction=function(R){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.e(R,jbE).title)};
_.J.onYtUpdateDescriptionAction=function(R){if(R=_.e(R,_.xJ5)){var y,u=!((y=this.videoSecondaryInfoRenderer)==null||!y.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&&(u?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.pk(R.description)):this.set("videoSecondaryInfoRenderer.description",R.description))}};
_.J.onYtDarkModeToggledAction=function(R){this.isDark=R};
_.J.registerPanel=function(){if(!_.f("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var R=_.f("web_watch_imax_theater_mode")&&this.isTheaterMode;R=_.f("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||R;var y=_.ua().resolve(_.d0);y&&!R&&y.registerPanel("engagement-panel-structured-description",this)}};
_.J.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.J.parseColorSamplingData=function(){var R;if(_.f("web_delhi_colorful_sd")&&((R=this.structuredDescriptionContentRenderer)==null?0:R.items)&&(R=this.structuredDescriptionContentRenderer.items.find(function(Q){return!!_.e(Q,UY)}))){var y,u;
this.hoverColor={lightTheme:(y=_.e(R,UY))==null?void 0:y.lightThemeColorPalette,darkTheme:(u=_.e(R,UY))==null?void 0:u.darkThemeColorPalette};var v;this.hoverText=(v=_.e(R,UY))==null?void 0:v.colorSampledDescriptionBodyText}};
_.J.updateHoverColor=function(){if(_.f("web_delhi_colorful_sd")){var R=this.hoverColor,y={},u;R=(u=this.isDark?R==null?void 0:R.darkTheme:R==null?void 0:R.lightTheme)!=null?u:{};u=_.V(NYE);for(var v=u.next();!v.done;v=u.next()){v=v.value;var Q=R[v];y["--yt-saturated-"+_.B8(v)]=Q?_.Sq(Q):"initial"}_.oX(this.hostElement,y)}};
_.J.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.J.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.J.showPanel=function(R){this.expandDescription();var y=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;y.resize();var u,v=R==null?void 0:(u=R.sectionListEngagementPanelExtras)==null?void 0:u.scrollToItemSectionIdentifier;v?_.WG.addJob(function(){y==null||y.scrollToSection(v)},8):this.scrollToTopOfContainer()};
_.J.isVisible=function(){return!this.descriptionCollapsed};
_.J.getReloadContinuation=function(){};
_.J.hidePanel=function(){};
_.J.updatePanel=function(){};
_.RR.Object.defineProperties(O3.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var R;return _.f("web_delhi_colorful_sd")&&(R=this.structuredDescriptionContentRenderer)!=null&&R.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(y){return!_.e(y,UY)&&!_.e(y,Vgy)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.structuredDescriptionContentRendererComputed)!=null&&R.items){var y;R=_.V((y=this.structuredDescriptionContentRendererComputed)==null?void 0:y.items);for(y=R.next();!y.done;y=R.next())if(y=_.e(y.value,_.N9b))return y}}},
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,y,u;return!!((R=this.videoSecondaryInfoRenderer)==null?0:(y=R.owner)==null?0:(u=y.videoOwnerRenderer)==null?0:u.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var R,y;if((R=this.videoSecondaryInfoRenderer)==null?0:(y=R.attributedDescription)==null?0:y.content){var u,v;return(v=this.stripAttributedDescription((u=this.videoSecondaryInfoRenderer)==null?void 0:u.attributedDescription))!=null?v:{runs:[]}}}if(_.f("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var Q,M,K,h;return(h=(K=(Q=this.videoSecondaryInfoRenderer)==
null?void 0:Q.description)!=null?K:(M=this.videoSecondaryInfoRenderer)==null?void 0:M.attributedDescription)!=null?h:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var R,y;return(y=(R=this.videoSecondaryInfoRenderer)==null?void 0:R.headerRuns)!=null?y:[]}},
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?_.JT("swatchie_desc_lines",3):this.hasTeaserCarousel?_.JT("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var R,y,u=Object.assign({},(R=this.videoSecondaryInfoRenderer)==null?void 0:(y=R.metadataRowContainer)==null?void 0:y.metadataRowContainerRenderer);if(u&&u.rows&&u.collapsedItemCount!==void 0&&!(u.rows.length<=u.collapsedItemCount))return u.rows=u.rows.slice(u.collapsedItemCount),u.collapsedItemCount=0,u}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var R,y,u=Object.assign({},(R=this.videoSecondaryInfoRenderer)==null?void 0:(y=R.metadataRowContainer)==null?void 0:y.metadataRowContainerRenderer);if(u&&u.rows&&u.collapsedItemCount!==void 0)return u.rows=u.rows.slice(0,u.collapsedItemCount),u.collapsedItemCount=u.rows.length,u}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var R,y;return!!((R=this.structuredDescriptionContentRendererComputed)==null?0:(y=R.items)==null?0:y.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var R;return(R=this.videoSecondaryInfoRenderer)==null?void 0:R.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var R,y,u;return((R=this.videoSecondaryInfoRenderer)==null?0:(y=R.owner)==null?0:(u=y.videoOwnerRenderer)==null?0:u.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var R,y,u,v;return!!((R=this.videoPrimaryInfoRenderer)==null?0:(y=R.videoActions)==null?0:(u=y.menuRenderer)==null?0:(v=u.flexibleItems)==null?0:v.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.v_(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.v_(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(_.f("web_title_hashtag_grey_delinkified")){var y,u=_.Ps.unsafeClone((y=this.videoPrimaryInfoRenderer)==null?void 0:y.title);(y=u==null?void 0:u.runs)&&y.forEach(function(v){if(v==null?0:v.navigationEndpoint)v.textColor=4284506208,R.isDark&&(v.textColor=4289374890)});
return u}return(u=this.videoPrimaryInfoRenderer)==null?void 0:u.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.f("web_title_hashtag_black_delinkified")||_.f("web_title_hashtag_grey_delinkified")}}});
O3.prototype.updateHoverColor=O3.prototype.updateHoverColor;O3.prototype.parseColorSamplingData=O3.prototype.parseColorSamplingData;O3.prototype.resetDescriptionState=O3.prototype.resetDescriptionState;O3.prototype.registerPanel=O3.prototype.registerPanel;O3.prototype.onYtExpanderLessTapped=O3.prototype.onYtExpanderLessTapped;O3.prototype.onYtExpanderMoreTapped=O3.prototype.onYtExpanderMoreTapped;O3.prototype.onRenderStamperFinished=O3.prototype.onRenderStamperFinished;
O3.prototype.onYtTextInlineExpanderExpandedChanged=O3.prototype.onYtTextInlineExpanderExpandedChanged;O3.prototype.onYtTextInlineExpanderCollapseClicked=O3.prototype.onYtTextInlineExpanderCollapseClicked;O3.prototype.onYtTextInlineExpanderExpandClicked=O3.prototype.onYtTextInlineExpanderExpandClicked;O3.prototype.moveActionsElement=O3.prototype.moveActionsElement;O3.prototype.updateShouldForceIconOnly=O3.prototype.updateShouldForceIconOnly;O3.prototype.updateTopLevelIconsOnly=O3.prototype.updateTopLevelIconsOnly;
O3.prototype.structuredDescriptionContentRendererChanged=O3.prototype.structuredDescriptionContentRendererChanged;O3.prototype.videoSecondaryInfoRendererChanged=O3.prototype.videoSecondaryInfoRendererChanged;O3.prototype.videoPrimaryInfoRendererChanged=O3.prototype.videoPrimaryInfoRendererChanged;O3.prototype.maybeUpdateActionsOnSeparateLine=O3.prototype.maybeUpdateActionsOnSeparateLine;O3.prototype.updateOwnerAndDescriptionPosition=O3.prototype.updateOwnerAndDescriptionPosition;
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],O3.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],O3.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],O3.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],O3.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.n(_.p6),_.p("design:type",Object)],O3.prototype,"ytdReduxBehavior",void 0);_.A([_.O7("#above-the-fold"),_.p("design:type",HTMLElement)],O3.prototype,"aboveTheFoldContainer",void 0);_.A([_.O7("#menu ytd-menu-renderer"),_.p("design:type",Object)],O3.prototype,"menu",void 0);_.A([_.O7("#description-inline-expander"),_.p("design:type",Object)],O3.prototype,"descriptionInlineExpander",void 0);
_.A([_.O7("#faded-structured-description"),_.p("design:type",Object)],O3.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.A([_.O7("#structured-description"),_.p("design:type",Object)],O3.prototype,"structuredDescriptionContentRendererElement",void 0);_.A([_.O7("#title"),_.p("design:type",HTMLElement)],O3.prototype,"titleElement",void 0);_.A([_.O7("#description"),_.p("design:type",HTMLElement)],O3.prototype,"descriptionElement",void 0);
_.A([_.O7("#description-interaction"),_.p("design:type",Object)],O3.prototype,"descriptionInteraction",void 0);_.A([_.O7("#owner"),_.p("design:type",HTMLElement)],O3.prototype,"ownerElement",void 0);_.A([_.O7("#top-row"),_.p("design:type",HTMLElement)],O3.prototype,"topRowElement",void 0);_.A([_.O7("#bottom-row"),_.p("design:type",HTMLElement)],O3.prototype,"bottomRowElement",void 0);_.A([_.O7("#actions"),_.p("design:type",HTMLElement)],O3.prototype,"actionsElement",void 0);
_.A([_.O7("#bottom-actions"),_.p("design:type",HTMLElement)],O3.prototype,"bottomActionsElement",void 0);_.A([_.O7("#ytd-watch-info-text"),_.p("design:type",Object)],O3.prototype,"watchInfoTextElement",void 0);_.A([_.r(),_.p("design:type",Object)],O3.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],O3.prototype,"videoPrimaryInfoRenderer",void 0);_.A([_.r(),_.p("design:type",Object)],O3.prototype,"videoSecondaryInfoRenderer",void 0);
_.A([_.r(),_.p("design:type",Object)],O3.prototype,"commentsEntryPointHeaderRenderer",void 0);_.A([_.r(),_.p("design:type",Object)],O3.prototype,"videoMetadataCarousel",void 0);_.A([_.r(),_.p("design:type",Object)],O3.prototype,"structuredDescriptionContentRenderer",void 0);_.A([_.G("structuredDescriptionContentRenderer"),_.p("design:type",Object),_.p("design:paramtypes",[])],O3.prototype,"structuredDescriptionContentRendererComputed",null);
_.A([_.r(),_.p("design:type",Object)],O3.prototype,"videoSummary",void 0);_.A([_.r(),_.p("design:type",Object)],O3.prototype,"merchShelf",void 0);_.A([_.r(),_.p("design:type",Object)],O3.prototype,"infoPanelBelowMetadata",void 0);_.A([_.r(),_.p("design:type",Object)],O3.prototype,"hoverColor",void 0);_.A([_.r(),_.p("design:type",Object)],O3.prototype,"hoverText",void 0);_.A([_.r(),_.p("design:type",Object)],O3.prototype,"isHovering",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],O3.prototype,"enableColorSampling",void 0);_.A([_.G("structuredDescriptionContentRendererComputed"),_.p("design:type",Object),_.p("design:paramtypes",[])],O3.prototype,"productShelf",null);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],O3.prototype,"metadataBadgesInDescription",void 0);_.A([_.G("videoPrimaryInfoRenderer"),_.p("design:type",Object),_.p("design:paramtypes",[])],O3.prototype,"shouldHideBadges",null);
_.A([_.G("productShelf","descriptionCollapsed"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],O3.prototype,"shouldShowProductShelf",null);_.A([_.r(),_.p("design:type",Boolean)],O3.prototype,"isWatchFlexy",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],O3.prototype,"descriptionCollapsed",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],O3.prototype,"useFadedScrimDescription",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],O3.prototype,"skinnyMode",void 0);_.A([_.r({reflectToAttribute:!0}),_.G("videoSecondaryInfoRenderer"),_.p("design:type",Object),_.p("design:paramtypes",[])],O3.prototype,"largerItemWrap",null);_.A([_.r(),_.p("design:type",Object)],O3.prototype,"playlist",void 0);_.A([_.r(),_.p("design:type",Object)],O3.prototype,"clarifyBox",void 0);_.A([_.r(),_.p("design:type",Object)],O3.prototype,"playerAds",void 0);
_.A([_.r(),_.p("design:type",Boolean)],O3.prototype,"isDark",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],O3.prototype,"actionsOnSeparateLine",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],O3.prototype,"disableVideoOwnerOnTap",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],O3.prototype,"swatcherooDelayLoad",void 0);_.A([_.r(),_.p("design:type",Boolean)],O3.prototype,"suppressTopLevelMetadataRows",void 0);
_.A([_.r(),_.p("design:type",Object)],O3.prototype,"primaryMenuWidth",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],O3.prototype,"videoId",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],O3.prototype,"titleHeadlineXs",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],O3.prototype,"titleHeadlineS",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],O3.prototype,"titleHeadlineM",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],O3.prototype,"titleHashtagBlackLinkified",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],O3.prototype,"titleHashtagGreyLinkified",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],O3.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.A([_.r(),_.p("design:type",Object)],O3.prototype,"shouldForceIconOnly",void 0);
_.A([_.GJ("skinnyMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],O3.prototype,"updateOwnerAndDescriptionPosition",null);_.A([_.GJ("skinnyMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],O3.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.A([_.G("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.p("design:type",Object),_.p("design:paramtypes",[])],O3.prototype,"descriptionText",null);_.A([_.G("videoSecondaryInfoRenderer.headerRuns"),_.p("design:type",Array),_.p("design:paramtypes",[])],O3.prototype,"headerRuns",null);
_.A([_.r({value:!1}),_.G("commentsEntryPointHeaderRenderer"),_.p("design:type",Object),_.p("design:paramtypes",[])],O3.prototype,"hasTeaser",null);_.A([_.r({value:!1,reflectToAttribute:!0}),_.G("videoMetadataCarousel"),_.p("design:type",Object),_.p("design:paramtypes",[])],O3.prototype,"hasTeaserCarousel",null);_.A([_.r({value:3}),_.G("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.p("design:type",Object),_.p("design:paramtypes",[])],O3.prototype,"descriptionMaxLines",null);
_.A([_.G("videoSecondaryInfoRenderer.metadataRowContainer"),_.p("design:type",Object),_.p("design:paramtypes",[])],O3.prototype,"collapsibleMetadataRows",null);_.A([_.G("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.p("design:type",Object),_.p("design:paramtypes",[])],O3.prototype,"alwaysVisibleMetadataRows",null);
_.A([_.G("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],O3.prototype,"hasInlineStructuredDescription",null);_.A([_.G("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],O3.prototype,"showInlineStructuredDescription",null);
_.A([_.G("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.p("design:type",Object),_.p("design:paramtypes",[])],O3.prototype,"descriptionExpandCommand",null);_.A([_.G("videoSecondaryInfoRenderer.owner"),_.p("design:type",Object),_.p("design:paramtypes",[])],O3.prototype,"videoOwnerCommand",null);_.A([_.r({reflectToAttribute:!0}),_.G("videoPrimaryInfoRenderer.videoActions"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],O3.prototype,"flexMenuEnabled",null);
_.A([_.r({selector:_.c_,reflectToAttribute:!0}),_.p("design:type",Object)],O3.prototype,"isFullscreen",void 0);_.A([_.r({selector:_.t6,reflectToAttribute:!0}),_.p("design:type",Object)],O3.prototype,"isTheaterMode",void 0);_.A([_.G("descriptionText","useFadedScrimDescription"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],O3.prototype,"showAttributedStringDescription",null);
_.A([_.G("descriptionText","useFadedScrimDescription"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],O3.prototype,"showFormattedStringDescription",null);_.A([_.G("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],O3.prototype,"showFadedStructuredDescription",null);
_.A([_.GJ("videoPrimaryInfoRenderer"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],O3.prototype,"videoPrimaryInfoRendererChanged",null);_.A([_.G("videoPrimaryInfoRenderer.title"),_.p("design:type",Object),_.p("design:paramtypes",[])],O3.prototype,"videoTitle",null);_.A([_.G("videoPrimaryInfoRenderer"),_.p("design:type",Object),_.p("design:paramtypes",[])],O3.prototype,"noEndpoints",null);
_.A([_.GJ("videoSecondaryInfoRenderer"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],O3.prototype,"videoSecondaryInfoRendererChanged",null);_.A([_.e0("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],O3.prototype,"structuredDescriptionContentRendererChanged",null);
_.A([_.e0("skinnyMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],O3.prototype,"updateTopLevelIconsOnly",null);_.A([_.e0("skinnyMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],O3.prototype,"updateShouldForceIconOnly",null);_.A([_.e0("skinnyMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],O3.prototype,"moveActionsElement",null);
_.A([_.fu("yt-text-inline-expander-expand-clicked"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],O3.prototype,"onYtTextInlineExpanderExpandClicked",null);_.A([_.fu("yt-text-inline-expander-collapse-clicked"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],O3.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.A([_.fu("yt-text-inline-expander-expanded-changed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],O3.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.A([_.fu("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],O3.prototype,"onRenderStamperFinished",null);
_.A([_.fu("yt-expander-more-tapped"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],O3.prototype,"onYtExpanderMoreTapped",null);_.A([_.fu("yt-expander-less-tapped"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],O3.prototype,"onYtExpanderLessTapped",null);
_.A([_.e0("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],O3.prototype,"registerPanel",null);_.A([_.e0("videoSecondaryInfoRenderer"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],O3.prototype,"resetDescriptionState",null);
_.A([_.e0("structuredDescriptionContentRenderer"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],O3.prototype,"parseColorSamplingData",null);_.A([_.e0("hoverColor","isDark"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],O3.prototype,"updateHoverColor",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-watch-metadata"})],O3);
_.m(O3,"ytd-watch-metadata",function(){if(w$B!==void 0)return w$B;var R=document.createElement("template");_.H(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" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata"> </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRendererComputed]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRendererComputed]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
R.content.insertBefore(_.t().content.cloneNode(!0),R.content.firstChild);return w$B=R},{mode:2});_.UPg=function(R){_.Z0.call(this);this.JSC$22734_watchApi=R;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;H$r(this);nLq(this);G9o(this);ray(this);PBK(this);W_K(this);dPb(this)};
_.O(_.UPg,_.Z0);var G9o=function(R){var y=function(){_.f("kevlar_is_pupi_enabled")||ZD(R)};
R.JSC$22734_watchApi.getRoot().addEventListener("yt-player-updated",y);R.addOnDisposeCallback(function(){R.JSC$22734_watchApi.getRoot().removeEventListener("yt-player-updated",y)})},PBK=function(R){if(_.f("kevlar_endscreen_auto_theater_mode")){var y=R.JSC$22734_watchApi.subscribeToActiveChanged(function(){k9q(R)},!1);
R.addOnDisposeCallback(y)}},H$r=function(R){var y,u,v,Q,M;
_.I(function(K){if(K.nextAddress==1)return K.yield(R.JSC$22734_watchApi.playerApi,2);y=K.yieldResult;u=function(h){h=!!h;HU(R)&&(h=h?2:1,_.Js.getInstance().setState(h,!0,!1))};
v=function(h){h&&_.WMH(_.Qe().getState())&&(_.Ik(R.JSC$22734_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),R.temporaryTheaterMode=!0)};
Q=function(h){_.f("kevlar_player_update_autonav_on_new_data")&&h.type==="newdata"&&(_.f("kevlar_is_pupi_enabled")||ZD(R))};
M=function(h){R.onPlayerStateChange(h)};
_.f("kevlar_endscreen_auto_theater_mode")&&y.addEventListener("onAutonavCancelled",v);y.addEventListener("onAutonavChangeRequest",u);y.addEventListener("onVideoDataChange",Q);y.addEventListener("onStateChange",M);R.addOnDisposeCallback(function(){y.removeEventListener("onAutonavChangeRequest",u);y.removeEventListener("onVideoDataChange",Q);y.removeEventListener("onStateChange",M);_.f("kevlar_endscreen_auto_theater_mode")&&y.removeEventListener("onAutonavCancelled",v)});
_.f$(K)})},nLq=function(R){R.JSC$22734_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){R.autonavCancelledBySignal=!0;
_.f("kevlar_is_pupi_enabled")||ZD(R)});
R.JSC$22734_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(y,u,v){u&&ZD(R,v)});
R.JSC$22734_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){HU(R)&&_.Js.getInstance().setState(2,!0,!0)});
R.JSC$22734_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){HU(R)&&_.Js.getInstance().setState(1,!0,!0)});
R.addOnDisposeCallback(function(){R.JSC$22734_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");R.JSC$22734_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");R.JSC$22734_watchApi.unregisterActionHandler("yt-enable-autoplay-command");R.JSC$22734_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},ray=function(R){var y=R.JSC$22734_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){dPb(R)}),u=R.JSC$22734_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){W_K(R)});
R.addOnDisposeCallback(function(){R.JSC$22734_watchApi.unsubscribeByKey(y);R.JSC$22734_watchApi.unsubscribeByKey(u)})},dPb=function(R){R.autonavCancelledBySignal=!1;
_.f("kevlar_is_pupi_enabled")||ZD(R)},W_K=function(R){var y=R.JSC$22734_watchApi.getWatchNextResponse(),u,v;
var Q=(y=(v=_.e(y==null?void 0:(Q=y.playerOverlays)==null?void 0:(u=Q.playerOverlayRenderer)==null?void 0:u.autonavToggle,_.fLc))==null?void 0:v.enabled)?2:1;_.f("kevlar_is_pupi_enabled")?_.Js.getInstance().setState(Q,!1,!1):ZD(R);_.f("web_persist_server_autonav_state_on_client")&&typeof y==="boolean"&&_.ouS(Q===2)},HU=function(R){if(R.autonavCancelledBySignal)return!1;
var y,u,v,Q;return!!((y=R.JSC$22734_watchApi.getWatchNextResponse())==null?0:(u=y.contents)==null?0:(v=u.twoColumnWatchNextResults)==null?0:(Q=v.autoplay)==null?0:Q.autoplay)};
_.UPg.prototype.onPlayerStateChange=function(R){if(R===0){R=!_.Js.getInstance().isAutoplaySetExplicitly();var y=this.JSC$22734_watchApi.getWatchNextResponse(),u,v,Q,M;y=_.e(y==null?void 0:(u=y.contents)==null?void 0:(v=u.twoColumnWatchNextResults)==null?void 0:(Q=v.autoplay)==null?void 0:(M=Q.autoplay)==null?void 0:M.autoplayExplicitChoiceDialogRenderer,_.peg);HU(this)&&R&&y&&_.lX.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:y},popupType:"DIALOG"}})}else k9q(this)};
var k9q=function(R){R.temporaryTheaterMode&&(R.temporaryTheaterMode=!1,_.Ik(R.JSC$22734_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},ZD=function(R,y){y=y===void 0?!1:y;
var u;_.I(function(v){if(v.nextAddress==1)return v.yield(R.JSC$22734_watchApi.playerApi,2);u=v.yieldResult;HU(R)?u.setAutonavState(_.Js.getInstance().getState(),y):u.setAutonavState(1,y);_.f$(v)})};var ELr={PLAYLIST:"PLAYLIST",ERROR_SCREEN:"ERROR_SCREEN",PRIMARY_INFO:"PRIMARY_INFO",SECONDARY_INFO:"SECONDARY_INFO",CLARIFICATION:"CLARIFICATION",INFO_PANEL_BELOW_METADATA:"INFO_PANEL_BELOW_METADATA",RICH_METADATA:"RICH_METADATA",COMMENTS_ENTRY_POINT_HEADER:"COMMENTS_ENTRY_POINT_HEADER",MERCH_SHELF:"MERCH_SHELF",MERCH_SHELF_IN_SD:"MERCH_SHELF_IN_SD",DONATION_SHELF:"DONATION_SHELF",OFFER_MODULE:"OFFER_MODULE",TICKET_SHELF:"TICKET_SHELF",LIMITED_STATE:"LIMITED_STATE",ALERTS:"ALERTS",SINGLE_COLUMN_CONTENTS:"SINGLE_COLUMN_CONTENTS",
COMMENTS:"COMMENTS",ENGAGEMENT_PANELS:"ENGAGEMENT_PANELS",INLINE_ENGAGEMENT_PANELS:"INLINE_ENGAGEMENT_PANELS",RICH_GRID_RENDERER:"RICH_GRID_RENDERER",WATCH_NEXT_SECONDARY_RESULTS:"WATCH_NEXT_SECONDARY_RESULTS",EXPANDABLE_METADATA:"EXPANDABLE_METADATA",LIVE_CHAT:"LIVE_CHAT",VIDEO_METADATA_CAROUSEL:"VIDEO_METADATA_CAROUSEL",SHOPPING_TIMELY_SHELF:"SHOPPING_TIMELY_SHELF"};_.qro=function(R){_.Z0.call(this);var y=this;this.JSC$22739_watchApi=R;var u=this.JSC$22739_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){$PC(y)});
this.addOnDisposeCallback(function(){y.JSC$22739_watchApi.unsubscribeByKey(u)});
$PC(this)};
_.O(_.qro,_.Z0);var $PC=function(R){var y=R.JSC$22739_watchApi.getPlayerResponse(),u=R.JSC$22739_watchApi.getWatchNextResponse();if(!_.Q9T(y==null?void 0:y.playabilityStatus,u==null?void 0:u.playerOverlays)){var v;var Q=y==null?void 0:(v=y.playabilityStatus)==null?void 0:v.errorScreen}R.JSC$22739_watchApi.provideRenderingData("ERROR_SCREEN",Q)};var X$E=_.Jd(function(R){var y=R.data;R=_.f("web_watch_video_details_hide_subtitle");var u=_.f("web_watch_video_details_single_line_title"),v=_.nh(function(){var h=y().onTap;h&&_.ua().resolve(_.jX).resolveCommand(h)}),Q={},M={},K={};
return _.F("yt-player-overlay-video-details-renderer",{class:_.Oy("ytPlayerOverlayVideoDetailsRendererHost",(Q.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.f("web_watch_video_details_transparent_background"),Q)),"on:click":v,role:"button"},_.F("h2",{class:_.Oy("ytPlayerOverlayVideoDetailsRendererTitle",(M.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return u},M))},_.F(_.QM,{text:function(){return y().title}})),_.F("div",{class:_.Oy("ytPlayerOverlayVideoDetailsRendererSubtitle",
(K.ytPlayerOverlayVideoDetailsRendererHideSubtitle=R,K))},_.F(_.QM,{text:function(){return y().subtitle}})))},"Vj");var nM={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},mPE=_.Jd(function(R){var y=R.data;var u=_.Sp(_.c_),v=_.f("web_watch_action_bar_resize_buttons"),Q=_.f("delhi_modern_web_player_icons")&&!_.f("enable_web_delhi_icons"),M=function(){return v&&!u()?{size:"M"}:void 0};
R={};return _.F("yt-player-quick-action-buttons",{class:_.Oy("ytPlayerQuickActionButtonsHost",(R.ytPlayerQuickActionButtonsHostTheaterMode=function(){return!u()},R))},_.F(_.eS,{each:function(){if(Q){var K=y();
K=JSON.parse(JSON.stringify(K));for(var h=_.V(K),b=h.next();!b.done;b=h.next()){var N=b.value,T=void 0;b=_.e((T=_.e(N,_.A4))==null?void 0:T.toggleButtonViewModel,_.EC);var x=void 0;T=_.e((x=_.e(N,_.mE))==null?void 0:x.toggleButtonViewModel,_.EC);x=_.e(N,_.k9);N=_.e(N,_.EC);if(b)T=_.e(b.defaultButtonViewModel,_.k9),b=_.e(b.toggledButtonViewModel,_.k9),T&&T.iconName&&(T.iconName=nM[T.iconName]),b&&b.iconName&&(b.iconName=nM[b.iconName]);else if(T)b=_.e(T.defaultButtonViewModel,_.k9),T=_.e(T.toggledButtonViewModel,
_.k9),b&&b.iconName&&(b.iconName=nM[b.iconName]),T&&T.iconName&&(T.iconName=nM[T.iconName]);else if(x)x.iconName&&(x.iconName=nM[x.iconName]);else if(N){b=_.e(N.defaultButtonViewModel,_.k9);T=_.e(N.toggledButtonViewModel,_.k9);N=void 0;if((N=b)==null?0:N.iconName)b.iconName=nM[b.iconName];b=void 0;if((b=T)==null?0:b.iconName)T.iconName=nM[T.iconName]}}}else K=y();return K}},function(K){return _.F(_.mk,{data:function(){return K}},{buttonViewModel:function(h){return _.F(_.fQ,{data:h.data,
buttonOverrides:M})},
likeButtonViewModel:function(h){return _.F(_.AO,{data:h.data,buttonShapeOverrideables:M,disableIconAnimation:!0})},
dislikeButtonViewModel:function(h){return _.F(_.m2,{data:h.data,buttonShapeOverrideables:M})},
toggleButtonViewModel:function(h){return _.F(_.$1,{data:h.data,buttonShapeOverrides:M})}})}))},"Wj");_.DP2=function(R){_.Z0.call(this);var y=this;this.JSC$22744_watchApi=R;R=_.V(_.In({},void 0,"ufFdVc"));this.quickActionsViewModel=R.next().value;this.setQuickActionsViewModel=R.next().value;R=_.V(_.In({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=R.next().value;this.setPlayerOverlayVideoDetailsRenderer=R.next().value;var u=this.JSC$22744_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){AaE(y)});
this.addOnDisposeCallback(function(){y.JSC$22744_watchApi.unsubscribeByKey(u)});
AaE(this)};
_.O(_.DP2,_.Z0);
var AaE=function(R){var y,u,v,Q,M,K,h,b,N,T,x,B,l,Z;_.I(function(P){if(P.nextAddress==1)return P.yield(R.JSC$22744_watchApi.playerApi,2);y=P.yieldResult;u=R.JSC$22744_watchApi.getWatchNextResponse();M=(v=u)==null?void 0:(Q=v.playerOverlays)==null?void 0:Q.playerOverlayRenderer;h=_.e((K=M)==null?void 0:K.fullscreenQuickActionsBar,_.lE5);(N=(b=R).setQuickActionsViewModel)==null||N.call(b,h||{});h&&p$y(R,y);B=(T=M)==null?void 0:(x=T.videoDetails)==null?void 0:x.playerOverlayVideoDetailsRenderer;(Z=(l=
R).setPlayerOverlayVideoDetailsRenderer)==null||Z.call(l,B||{});B&&tLb(R,y);_.f$(P)})},p$y=function(R,y){if(!R.quickActionButtonsContainer){R.quickActionButtonsContainer=document.createElement("div");
y.setFullscreenQuickActions(R.quickActionButtonsContainer);var u=function(){return R.quickActionsViewModel().quickActionButtons||[]},v=_.Hu(R.quickActionButtonsContainer,function(){return _.F(mPE,{data:u})});
R.addOnDisposeCallback(function(){y.setFullscreenQuickActions(void 0);v()})}},tLb=function(R,y){if(!R.playerOverlayVideoDetailsRendererContainer){R.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
y.setPlayerOverlayVideoDetailsRenderer(R.playerOverlayVideoDetailsRendererContainer);var u=_.Hu(R.playerOverlayVideoDetailsRendererContainer,function(){return _.F(X$E,{data:R.playerOverlayVideoDetailsRenderer})});
R.addOnDisposeCallback(function(){y.setPlayerOverlayVideoDetailsRenderer(void 0);u()})}};_.G6=function(R){_.Z0.call(this);var y=this;this.JSC$22749_watchApi=R;this.JSC$22749_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;R=_.GD(_.Qe(),_.c_,function(u){y.onFullscreenChanged(u)});
this.addOnDisposeCallback(R);R=_.GD(_.Qe(),_.OY,function(u){y.onWatchScroll(u)});
this.addOnDisposeCallback(R);_.f("kevlar_watch_while_v2")&&(R=_.GD(_.Qe(),_.X9,function(u){caK(y,u)}),this.addOnDisposeCallback(R));
atK(this);SrK(this);YrC();this.onWatchScroll(_.OY(_.Qe().getState()));_.$B("START_IN_FULL_WINDOW_MODE")&&this.JSC$22749_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.O(_.G6,_.Z0);var atK=function(R){R.JSC$22749_watchApi.registerActionHandler("yt-fullscreen-change-action",function(y){var u=R.JSC$22749_watchApi.isActive();y&&!u||_.Qe().dispatch(_.iE({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!y}}))});
R.addOnDisposeCallback(function(){R.JSC$22749_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},SrK=function(R){var y,u;
_.I(function(v){if(v.nextAddress==1)return v.yield(R.JSC$22749_watchApi.playerApi,2);y=v.yieldResult;u=function(){R.onFullerscreenEduClicked()};
y.addEventListener("onFullerscreenEduClicked",u);R.addOnDisposeCallback(function(){y.removeEventListener("onFullerscreenEduClicked",u)});
_.f$(v)})};
_.G6.prototype.onFullscreenChanged=function(R){var y=this,u;return _.I(function(v){if(v.nextAddress==1)return y.isFullscreen=!!_.ji(),v.yield(y.JSC$22749_watchApi.playerApi,2);u=v.yieldResult;y.JSC$22749_miniplayerActive||u.setFauxFullscreen(y.isFullscreen);if(R&&(y.JSC$22749_watchApi.focusOnPlayer(),!y.fullerscreenEduButtonShownThisPlayback)){y.fullerscreenEduButtonShownThisPlayback=!0;var Q=_.fl("yt-fullerscreen-edu-button-shown-count")||0;_.B1("yt-fullerscreen-edu-button-shown-count",Q+1,31536E3);
y.updateFullerscreenEduButtonSubtleModeState()}_.f$(v)})};
var caK=function(R,y){var u;_.I(function(v){if(v.nextAddress==1)return R.JSC$22749_miniplayerActive=y,v.yield(R.JSC$22749_watchApi.playerApi,2);u=v.yieldResult;u.setFauxFullscreen(!R.JSC$22749_miniplayerActive&&R.isFullscreen);_.f$(v)})};
_.G6.prototype.onWatchScroll=function(R){var y=this,u,v;return _.I(function(Q){if(Q.nextAddress==1)return _.f("external_fullscreen_with_edu")?Q.yield(y.JSC$22749_watchApi.playerApi,2):Q.return();u=Q.yieldResult;v=R<=0;y.shouldShowFullerscreenEdu!==v&&(y.shouldShowFullerscreenEdu=v,u.updateFullerscreenEduButtonVisibility(!y.shouldShowFullerscreenEdu));_.f$(Q)})};
_.G6.prototype.onFullerscreenEduClicked=function(){this.JSC$22749_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var R=_.fl("yt-fullerscreen-edu-button-click-count")||0;_.B1("yt-fullerscreen-edu-button-click-count",R+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.G6.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var R=this,y,u,v,Q,M,K;return _.I(function(h){if(h.nextAddress==1)return y=_.fl("yt-fullerscreen-edu-button-click-count")||0,u=_.fl("yt-fullerscreen-edu-button-shown-count")||0,v=_.JT("external_fullscreen_button_click_threshold"),Q=_.JT("external_fullscreen_button_shown_threshold"),M=y>=v||u>=Q,h.yield(R.JSC$22749_watchApi.playerApi,2);K=h.yieldResult;K.updateFullerscreenEduButtonSubtleModeState(M);_.f$(h)})};
_.G6.prototype.disposeInternal=function(){_.Z0.prototype.disposeInternal.call(this);var R=_.ji();_.f("kevlar_exit_fullscreen_leaving_watch")&&R&&_.J_(R)};
var YrC=function(){if(_.f("web_watch_add_viewport_meta_tag")){var R=document.querySelector("meta[name=viewport]"),y=document.head;y&&!R&&(R=document.createElement("meta"),R.name="viewport",R.content="width=device-width, initial-scale=1.0, viewport-fit=cover",y.appendChild(R))}};_.rt=function(R){_.Z0.call(this);var y=this;this.JSC$22753_watchApi=R;this.jobId=0;this.pendingRequestId=void 0;var u=this.JSC$22753_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){L_y(y)});
this.addOnDisposeCallback(function(){y.JSC$22753_watchApi.unsubscribeByKey(u)});
L_y(this)};
_.O(_.rt,_.Z0);var s1C=function(R){_.WG.cancelJob(R.jobId);R.pendingRequestId=void 0},L_y=function(R){s1C(R);
var y=QLq(R.JSC$22753_watchApi.getWatchNextResponse());if(y){var u=250,v,Q=(v=_.e(y,_.fX8))==null?void 0:v.initialDelayMs;_.f("web_watch_updated_metadata_server_initial_delay")&&Q&&(u=Q);R.jobId=_.WG.addLowPriorityJob(function(){return R.fetchUpdatedMetadata(y)},u)}};
_.rt.prototype.fetchUpdatedMetadata=function(R,y){var u=this,v,Q,M,K,h,b,N,T,x,B,l,Z,P,k,E;return _.I(function(D){switch(D.nextAddress){case 1:y&&(v={continuation:y});if(!_.f("web_get_updated_metadata_fantasy_panel_continuation_params")){D.jumpTo(2);break}Q=_.ua().resolve(_.d0);M="PAsports_fantasy";return D.yield(Q.isVisible(M,!0),3);case 3:D.yieldResult&&(N=(h=(K=Q).getUpdatePanelContinuationData)==null?void 0:(b=h.call(K,M))==null?void 0:b.updatePanelContinuationRequest)&&(v||(v={}),v.clientParams=
{panelContinuationParams:{panelContinuation:N}});case 2:T=_.ua().resolve(_.Dj);if(!T)return _.dI(Error("yo")),D.return();x={};u.pendingRequestId=x;return D.yield(_.yB(T,R,v),4);case 4:B=D.yieldResult;if(x!==u.pendingRequestId)return D.return();P=(l=B)==null?void 0:(Z=l.continuation)==null?void 0:Z.timedContinuationData;((k=P)==null?0:k.continuation)&&((E=P)==null?0:E.timeoutMs)&&(u.jobId=_.WG.addLowPriorityJob(function(){return u.fetchUpdatedMetadata(R,P.continuation)},P.timeoutMs));
_.f$(D)}})};
_.rt.prototype.disposeInternal=function(){_.Z0.prototype.disposeInternal.call(this);s1C(this)};var zUr=_.Jd(function(R){var y=_.nh(function(){var v=R.data().videoId;if(R.active())v=_.j6(v),_.ua().resolve(_.jX).resolveCommand(v);else{var Q=R.playerApi(),M=Q.getAvailableAudioTracks(),K,h,b=(K=R.sourceVideoConfig().audioTracks)==null?void 0:(h=K.find(function(N){return N.isDefaultForSource}))==null?void 0:h.id;
if(M=M.find(function(N){return N.getLanguageInfo().getId()===b}))Q.setAudioTrack(M,!0),Q.setCompositeParam({activeVideoId:v}),R.setActiveSourceId(v)}}),u={};
return _.F("ytw-composite-source-video-overlay",{class:_.Oy("ytwCompositeSourceVideoOverlayHost",(u.ytwCompositeSourceVideoOverlayActive=R.active,u.ytwCompositeSourceVideoOverlayInteracting=R.interacting,u)),style:_.P_({left:function(){var v;return((v=R.data().topLeftCornerX)!=null?v:0)*100+"%"},
top:function(){var v;return((v=R.data().topLeftCornerY)!=null?v:0)*100+"%"},
width:function(){var v;return((v=R.data().width)!=null?v:0)*100+"%"},
height:function(){var v;return((v=R.data().height)!=null?v:0)*100+"%"}}),
"on:click":y},_.F("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Xj");var gLg=_.Jd(function(R){var y=_.V(_.rW(function(){var K,h=(K=R.data().sources)==null?void 0:K.find(function(b){return b.isActive});
if(h)return h.videoId})),u=y.next().value,v=y.next().value;
y=_.V(_.In(!1,void 0,"WI4BUb"));var Q=y.next().value,M=y.next().value;return _.F("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.nh(function(){M(!0)}),
"on:mouseout":_.nh(function(){M(!1)})},_.F(_.w,{cond:function(){return R.data().sources},
then:function(K){return _.F(_.eS,{each:K},function(h){return _.F(zUr,{data:h,active:function(){return h.videoId===u()},
setActiveSourceId:v,interacting:Q,playerApi:R.playerApi,sourceVideoConfig:function(){return jL4(R.compositeVideoConfig(),h.videoId)}})})}}))},"Yj");_.ySr=function(R){_.Z0.call(this);this.JSC$22769_watchApi=R;R=_.V(_.In({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=R.next().value;this.setCompositeVideoOverlayRenderer=R.next().value;R=_.V(_.In({},void 0,"U5hcq"));this.compositeVideoConfig=R.next().value;this.setCompositeVideoConfig=R.next().value;CBK(this);RSK(this)};
_.O(_.ySr,_.Z0);var CBK=function(R){var y=R.JSC$22769_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){RSK(R)});
R.addOnDisposeCallback(function(){R.JSC$22769_watchApi.unsubscribeByKey(y)})},uVC=function(R){var y;
return _.I(function(u){if(u.nextAddress==1)return u.yield(R.JSC$22769_watchApi.playerApi,2);y=u.yieldResult;y.setCompositeVideoOverlayRendererComponent(R.container);_.f$(u)})},vhB=function(R){var y;
return _.I(function(u){if(u.nextAddress==1)return u.yield(R.JSC$22769_watchApi.playerApi,2);y=u.yieldResult;y.setCompositeVideoOverlayRendererComponent(void 0);_.f$(u)})},Qrr=function(R){var y,u;
return _.I(function(v){if(v.nextAddress==1)return v.yield(R.JSC$22769_watchApi.playerApi,2);y=v.yieldResult;R.container=document.createElement("div");u=_.Hu(R.container,function(){return _.F(gLg,{data:R.compositeVideoOverlayRenderer,compositeVideoConfig:R.compositeVideoConfig,playerApi:y})});
R.addOnDisposeCallback(u);_.f$(v)})},RSK=function(R){var y,u,v,Q,M,K,h,b;
_.I(function(N){return N.nextAddress==1?(y=R.JSC$22769_watchApi.getPlayerResponse(),M=_.e((u=y)==null?void 0:(v=u.overlay)==null?void 0:(Q=v.playerControlsOverlayRenderer)==null?void 0:Q.compositeVideoOverlay,L4g),b=(K=y)==null?void 0:(h=K.playerConfig)==null?void 0:h.compositeVideoConfig,M&&R.setCompositeVideoOverlayRenderer(M),b&&R.setCompositeVideoConfig(b),M&&b?R.container?N.jumpTo(6):N.yield(Qrr(R),6):jrE(R)?N.yield(vhB(R),0):N.jumpTo(0)):jrE(R)?N.jumpTo(0):N.yield(uVC(R),0)})},jrE=function(R){var y;
return!((y=R.container)==null||!y.parentElement)};
_.ySr.prototype.disposeInternal=function(){jrE(this)&&vhB(this);_.Z0.prototype.disposeInternal.call(this)};_.Kvb=function(R){_.Z0.call(this);var y=this;this.JSC$22775_watchApi=R;var u=this.JSC$22775_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var v=y.JSC$22775_watchApi.getPlayerResponse();if(v){var Q,M;if(v=_.e((Q=v.endscreen)==null?void 0:(M=Q.endscreenRenderer)==null?void 0:M.hideButton,_.EC)){var K;(K=y.setEndscreenHideButton)==null||K.call(y,v);MQo(y)}}});
this.addOnDisposeCallback(function(){y.JSC$22775_watchApi.unsubscribeByKey(u)});
R=_.V(_.In({},void 0,"PPHRb"));this.endscreenHideButton=R.next().value;this.setEndscreenHideButton=R.next().value;JSC(this);VQg(this);iLb(this)};
_.O(_.Kvb,_.Z0);var MQo=function(R){var y,u;_.I(function(v){if(v.nextAddress==1)return R.creatorEndscreenHideButtonContainer?v.return():v.yield(R.JSC$22775_watchApi.playerApi,2);y=v.yieldResult;R.creatorEndscreenHideButtonContainer=document.createElement("div");_.a_(R.creatorEndscreenHideButtonContainer,!1);y.setCreatorEndscreenHideButton(R.creatorEndscreenHideButtonContainer);u=_.Hu(R.creatorEndscreenHideButtonContainer,function(){return _.F(_.$1,{data:R.endscreenHideButton,useOutlinedIcon:!0})});
R.addOnDisposeCallback(function(){u();var Q;(Q=y)==null||Q.setCreatorEndscreenHideButton(void 0)});
_.f$(v)})},JSC=function(R){var y,u;
_.I(function(v){if(v.nextAddress==1)return v.yield(R.JSC$22775_watchApi.playerApi,2);y=v.yieldResult;u=function(){R.creatorEndscreenHideButtonContainer&&_.a_(R.creatorEndscreenHideButtonContainer,!0)};
y.addEventListener("endscreenelementshown",u);R.addOnDisposeCallback(function(){var Q;(Q=y)==null||Q.removeEventListener("endscreenelementshown",u)});
_.f$(v)})},VQg=function(R){var y=function(){R.creatorEndscreenHideButtonContainer&&_.a_(R.creatorEndscreenHideButtonContainer,!1)},u=R.JSC$22775_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",y),v=R.JSC$22775_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",y);
R.addOnDisposeCallback(function(){R.JSC$22775_watchApi.unsubscribeByKey(u);R.JSC$22775_watchApi.unsubscribeByKey(v)})},iLb=function(R){R.JSC$22775_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(y){var u=_.e(y,pWF);
R.JSC$22775_watchApi.playerApi.then(function(v){v==null||v.setCreatorEndscreenVisibility(!!u.hide)})});
R.addOnDisposeCallback(function(){R.JSC$22775_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.hS2=function(R){_.Z0.call(this);this.JSC$22781_watchApi=R;IiB(this)};
_.O(_.hS2,_.Z0);var IiB=function(R){var y,u;_.I(function(v){if(v.nextAddress==1)return v.yield(R.JSC$22781_watchApi.playerApi,2);y=v.yieldResult;u=function(Q){_.Qe().dispatch(_.iE({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:Q}}))};
y.addEventListener("onRetroModeChanged",u);R.addOnDisposeCallback(function(){y.removeEventListener("onRetroModeChanged",u)});
_.f$(v)})};var rf=0,Ge=0,Pn=0;var bLK;bLK=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.PU=function(R){_.Z0.call(this);this.JSC$22794_watchApi=R;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;Fvb(this)};
_.O(_.PU,_.Z0);
var Fvb=function(R){var y,u,v;_.I(function(Q){if(Q.nextAddress==1)return Q.yield(R.JSC$22794_watchApi.playerApi,2);y=Q.yieldResult;if(R.isDisposed())return Q.return();R.sessionStorage=_.pgP("yt-sleep-timer");R.sessionStorage||_.kT(new _.OL("SessionStorage for Sleep Timer is undefined."));((u=R.sessionStorage)==null?void 0:u.get("yt-sleep-timer"))==="true"&&(wW4(),(v=R.sessionStorage)==null||v.remove("yt-sleep-timer"),y.syncVolume());wsq(R,y);NcF(R,y);Tcq(R,y);_.f$(Q)})},wsq=function(R,y){var u=function(N){R.onSleepTimerSettingsChanged(N,
y)},v=function(N){R.onPlayerStateChange(N,y)},Q=function(){R.onLoopChange(y)},M=function(){R.onCloseMiniplayer(y)},K=function(){Icq(y,(0,_.uQ)(),NEC(y),R.selectedOption==="End of video",y.getPlayerState()!==1)},h=function(){R.onSeekComplete(y)},b=function(){_.WG.cancelJob(Ge);
var N=y.getCurrentTime()>=y.getDuration(),T=R.selectedOption==="End of video"||R.selectedOption==="End of playlist"&&!VvK(R.playlistId);N&&T&&ohB(R,y)};
y.addEventListener("onSleepTimerSettingsChanged",u);y.addEventListener("onLoopChange",Q);y.addEventListener("onLoopRangeChange",Q);y.addEventListener("onStateChange",v);y.addEventListener("onCloseMiniplayer",M);y.addEventListener("onSleepTimerFeatureAvailable",K);y.addEventListener("SEEK_COMPLETE",h);y.addEventListener("onAdStart",b);R.addOnDisposeCallback(function(){y.removeEventListener("onSleepTimerSettingsChanged",u);y.removeEventListener("onLoopChange",Q);y.removeEventListener("onLoopRangeChange",
Q);y.removeEventListener("onStateChange",v);y.removeEventListener("onCloseMiniplayer",M);y.removeEventListener("onSleepTimerFeatureAvailable",K);y.removeEventListener("SEEK_COMPLETE",h);y.removeEventListener("onAdStart",b)})},NcF=function(R,y){var u=R.JSC$22794_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var v=y.getVideoData().video_id,Q,M=(Q=MvK(R.JSC$22794_watchApi))==null?void 0:Q.playlistId;
R.pauseAutonavPlayback&&(y.pauseVideo(),y.syncVolume(),R.pauseAutonavPlayback=!1);if(R.selectedOption==="End of video"&&v!==R.videoId)WU(R,y);else{if(R.selectedOption==="End of playlist"){Q=VvK(R.playlistId);if(M!==R.playlistId){WU(R,y);break a}Q?Q&&x1y(R,y):Bc2(R,y)}R.videoId=v;R.playlistId=M}}});
R.addOnDisposeCallback(function(){R.JSC$22794_watchApi.unsubscribeByKey(u)})},Tcq=function(R,y){var u=_.ua().resolve(_.S5),v=_.GD(u,_.E0U,function(M){M&&R.selectedOption!=="Off"&&WU(R,y)}),Q=R.JSC$22794_watchApi.subscribeToActiveChanged(function(M){var K,h;
return _.I(function(b){if(b.nextAddress==1)return b.yield(_.Hr().navigationFinishPromise,2);K=!_.kZc();h=_.ua().resolve(_.cZ).isMiniplayerActive();M||!nf(R.selectedOption)||h||K||WU(R,y);_.f$(b)})},!1);
u=_.GD(u,function(M){return M.entities.playlistLoopStateEntity||{}},function(M){M=M===void 0?{}:M;
var K=JzK(R.JSC$22794_watchApi);if(K){var h;((h=M[K])==null?void 0:h.state)==="PLAYLIST_LOOP_STATE_ALL"&&nf(R.selectedOption)&&WU(R,y)}});
R.addOnDisposeCallback(v);R.addOnDisposeCallback(u);R.addOnDisposeCallback(Q)};
_.PU.prototype.onSleepTimerSettingsChanged=function(R,y){switch(R){case "Off":this.selectedOption!=="Off"&&WU(this,y);break;case "End of video":case "End of playlist":fib(this,R,y);break;default:fib(this,R,y,bLK.get(R))}};
_.PU.prototype.onLoopChange=function(R){(R.getLoopVideo()||R.getLoopRange())&&nf(this.selectedOption)&&WU(this,R)};
_.PU.prototype.onCloseMiniplayer=function(R){nf(this.selectedOption)&&WU(this,R)};
var fib=function(R,y,u,v){eS4(R,u);R.selectedOption=y;R.videoId=u.getVideoData().video_id;R.playlistId="";var Q;(Q=R.sessionStorage)==null||Q.set("yt-sleep-timer","true");R.adjustmentsCount++;Icq(u,(0,_.uQ)(),NEC(u),R.selectedOption==="End of video");if(R.selectedOption==="End of video")Bc2(R,u),lig(R,u);else if(R.selectedOption==="End of playlist"){lig(R,u);var M,K;R.playlistId=(K=(M=MvK(R.JSC$22794_watchApi))==null?void 0:M.playlistId)!=null?K:"";VvK(R.playlistId)||Bc2(R,u)}else v&&(R.presetFadeSchedulerId=
_.Wm(_.WG,function(){b8B(u,15E3)},v-15E3),R.presetPauseSchedulerId=_.Wm(_.WG,function(){ohB(R,u)},v),hTK(u,(0,_.uQ)(),v))},ohB=function(R,y){if(R.JSC$22794_watchApi.isActive()){var u={dismissDialogEndpoint:{}};
var v={commandExecutorCommand:{commands:[u,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};u={buttonViewModel:{title:_.fo("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:u}}};v={buttonViewModel:{title:_.fo("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:v}}};var Q={dialogHeaderViewModel:{headline:{content:_.fo("SLEEP_TIMER_ENDED_TITLE")}}},
M={basicContentViewModel:{paragraphs:[{text:{content:_.fo("SLEEP_TIMER_ENDED_TEXT")}}]}};u={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:Q,content:M,footer:{panelFooterViewModel:{primaryButton:u,secondaryButton:v,shouldHideDivider:!0}}}}}}};_.ua().resolve(_.jX).resolveCommand(u,{form:{element:R}})}else wW4();OLK(R,!1);ZLC(R,y);y.pauseVideo();_.Js.getInstance().getState()===2&&y.getPlayerState()===5&&(R.pauseAutonavPlayback=!0)},WU=function(R,y){OLK(R,!0);
ZLC(R,y);wW4()},ZLC=function(R,y){eS4(R,y);
R.selectedOption="Off";R.videoId="";R.playlistId="";R.adjustmentsCount=0;var u;(u=R.sessionStorage)==null||u.remove("yt-sleep-timer");_.WG.cancelJob(rf);y.resetSleepTimerMenuSettings()},OLK=function(R,y){y={timer_length_adjustment_times_during_session:R.adjustmentsCount-1,
is_session_cancelled:y};switch(R.selectedOption){case "Off":y.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":y.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":y.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:y.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",y.option_duration_in_minutes=bLK.get(R.selectedOption)/6E4}_.P3("sleepTimerSessionFinishEvent",y)};
_.PU.prototype.onPlayerStateChange=function(R,y){R===1?Icq(y,(0,_.uQ)(),NEC(y),this.selectedOption==="End of video"):R===0?(_.WG.cancelJob(Ge),y.setVideoTimeLeft(K4q(0,0))):R===2&&_.WG.cancelJob(Ge);this.selectedOption==="End of video"?R===0?ohB(this,y):R===2&&F4B(y):this.selectedOption!=="End of playlist"||VvK(this.playlistId)||(R===0?ohB(this,y):R===2&&F4B(y))};
_.PU.prototype.onSeekComplete=function(R){R.getPlayerState()===2&&Icq(R,(0,_.uQ)(),NEC(R),this.selectedOption==="End of video",!0)};
_.PU.prototype.onCueRangeEnter=function(R,y){R==="sleep-timer-fade-audio"&&b8B(y,(y.getDuration()-y.getProgressState().current)*1E3)};
_.PU.prototype.onCueRangeExit=function(R,y){R==="sleep-timer-fade-audio"&&y.getPlayerState()!==0&&F4B(y,!0)};
var Bc2=function(R,y){y.addCueRange("sleep-timer-fade-audio",y.getDuration()-15,y.getDuration());y.addEventListener("onCueRangeEnter",function(u){R.onCueRangeEnter(u,y)});
y.addEventListener("onCueRangeExit",function(u){R.onCueRangeExit(u,y)})},x1y=function(R,y){y.removeCueRange("sleep-timer-fade-audio");
y.removeEventListener("onCueRangeEnter",function(u){R.onCueRangeEnter(u,y)});
y.removeEventListener("onCueRangeExit",function(u){R.onCueRangeExit(u,y)})},eS4=function(R,y){nf(R.selectedOption)?x1y(R,y):(_.WG.cancelJob(R.presetPauseSchedulerId),_.WG.cancelJob(R.presetFadeSchedulerId),R.presetPauseSchedulerId=0,R.presetFadeSchedulerId=0);
F4B(y,!0)},lig=function(R,y){y.setLoop(!1);
y.setLoopVideo(!1);y.setLoopRange(null);(R=JzK(R.JSC$22794_watchApi))&&_.ua().resolve(_.S5).dispatch(_.Gw("playlistLoopStateEntity",R,{key:R,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.rSr=function(R){_.Z0.call(this);this.JSC$22797_watchApi=R;HLo(this);nhy(this);GRK(this);R=R.getRoot();if(R.is==="ytd-watch-flexy"||R.is==="ytd-watch-grid")R.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.U_J();_.f("web_watch_log_theater_mode_cookie_state")&&_.xz.get("wide","0")==="1"&&_.dlW("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.O(_.rSr,_.Z0);var HLo=function(R){var y,u;_.I(function(v){if(v.nextAddress==1)return v.yield(R.JSC$22797_watchApi.playerApi,2);y=v.yieldResult;u=function(Q){PvF(R,!!Q)};
y.addEventListener("SIZE_CLICKED",u);R.addOnDisposeCallback(function(){y.removeEventListener("SIZE_CLICKED",u)});
_.f$(v)})},nhy=function(R){R.JSC$22797_watchApi.registerActionHandler("yt-toggle-theater-mode",function(y,u){PvF(R,y,u===void 0?!0:u)});
R.addOnDisposeCallback(function(){R.JSC$22797_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.rSr.prototype.getState=function(){return _.t6(_.Qe().getState())};
var PvF=function(R,y,u){u=u===void 0?!0:u;var v,Q,M,K=_.f("enable_player_resize_transition")&&!!R.JSC$22797_watchApi.getWatchNextResponse()&&!((v=R.JSC$22797_watchApi.getWatchNextResponse())==null?0:(Q=v.contents)==null?0:(M=Q.twoColumnWatchNextResults)==null?0:M.conversationBar);_.SXm(function(){_.Qe().dispatch(_.iE({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:y}}));_.f("theater_mode_scroll_to_top_killswitch")||R.JSC$22797_watchApi.scrollWatchTo(0,!1);_.ji()&&_.f("external_fullscreen")&&_.J_(document.documentElement);
GRK(R);u&&_.B5("wide",y?"1":"0",-1);_.Ik(R.JSC$22797_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);R.JSC$22797_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:y});y&&_.U_J()},{shouldWrap:K})},GRK=function(R){var y;
_.I(function(u){if(u.nextAddress==1)return u.yield(R.JSC$22797_watchApi.playerApi,2);y=u.yieldResult;y.setSizeStyle(!0,R.getState());_.f$(u)})};var U1y=function(R){_.Z0.call(this);var y=this;this.playerApi=R;this.timeToPanelSyncKeyMap={};var u;if(R==null?0:(u=R.isReady)==null?0:u.call(R)){u=_.GD(_.ua().resolve(_.S5),function(Q){return Q.entities.timedMarkersListSyncEntity||{}},function(Q,M){Q=Q===void 0?{}:Q;
M=M===void 0?{}:M;for(var K=_.V(Object.keys(M)),h=K.next();!h.done;h=K.next())h=h.value,Q[h]!==M[h]&&WvC(y,M[h]);M=_.V(Object.keys(Q));for(K=M.next();!K.done;K=M.next())K=K.value,h=Q[K],y.timeToPanelSyncKeyMap[K]&&d1E(y,h)});
this.addOnDisposeCallback(u);var v=function(Q){y.onCueRangeEnter(Q)};
R.addEventListener("onCueRangeEnter",v);this.addOnDisposeCallback(function(){var Q;(Q=R.removeEventListener)==null||Q.call(R,"onCueRangeEnter",v)})}};
_.O(U1y,_.Z0);
var d1E=function(R,y){var u,v;if((u=R.playerApi)==null?0:(v=u.isReady)==null?0:v.call(u)){var Q;if((u=y==null?void 0:(Q=y.timedListData)==null?void 0:Q.sections)&&y!=null&&y.key)for(Q=_.V(u),u=Q.next();!u.done;u=Q.next())if(u=u.value,u.timedSyncDataList&&u.sectionId)for(v=0;v<u.timedSyncDataList.length;v++){var M=u.timedSyncDataList[v];M.syncItemId&&R.playerApi.addCueRange(u.sectionId+"_"+y.key+"_"+M.syncItemId,Number(M.videoTimeMs)/1E3,v===u.timedSyncDataList.length-1?0x8000000000000:Number(u.timedSyncDataList[v+
1].videoTimeMs)/1E3)}}},WvC=function(R,y){var u,v;
if((u=R.playerApi)==null?0:(v=u.isReady)==null?0:v.call(u)){var Q;if((u=y==null?void 0:(Q=y.timedListData)==null?void 0:Q.sections)&&y!=null&&y.key)for(Q=_.V(u),u=Q.next();!u.done;u=Q.next())if(u=u.value,u.timedSyncDataList&&u.sectionId){v=_.V(u.timedSyncDataList);for(var M=v.next();!M.done;M=v.next())M=M.value,M.syncItemId&&R.playerApi.removeCueRange(u.sectionId+"_"+y.key+"_"+M.syncItemId)}}};
U1y.prototype.onCueRangeEnter=function(R){for(var y=_.V(Object.keys(this.timeToPanelSyncKeyMap)),u=y.next();!u.done;u=y.next()){u=u.value;var v=_.V(R.split("_"+u+"_")),Q=v.next().value;v=v.next().value;if(Q&&v){R=_.ua().resolve(_.S5);y=this.timeToPanelSyncKeyMap[u];var M=_.ZdE(R.getState(),y);u=kRK(u,Q,v);if(u===-1)break;u={activeSyncId:v,activeItemIndex:u,activeSectionInfo:{sectionIdentifier:Q}};M?R.dispatch(_.DT("markersEngagementPanelSyncEntity",y,u)):R.dispatch(_.Gw("markersEngagementPanelSyncEntity",
y,Object.assign({},{key:y},u)));break}}};
var kRK=function(R,y,u){var v=_.ua().resolve(_.S5),Q,M;R=(Q=ZM8(v.getState(),R))==null?void 0:(M=Q.timedListData)==null?void 0:M.sections;if(!R)return-1;Q=0;M=_.V(R);for(R=M.next();!R.done;R=M.next()){R=R.value;v=R.timedSyncDataList||[];if(R.sectionId===y)return y=v.findIndex(function(K){return K.syncItemId===u}),y===-1?y:Q+y;
Q+=v.length}return-1};_.q6b=function(R){_.Z0.call(this);var y=this;this.JSC$22810_watchApi=R;this.unresolvedCommands=[];this.JSC$22810_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(u){EhF(y,u)});
this.addOnDisposeCallback(function(){y.JSC$22810_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
$1K(this)};
_.O(_.q6b,_.Z0);var $1K=function(R){var y;_.I(function(u){if(u.nextAddress==1)return u.yield(R.JSC$22810_watchApi.playerApi,2);y=u.yieldResult;if(R.isDisposed())return u.return();R.timedSyncObserver=new U1y(y);R.unresolvedCommands.length&&(R.unresolvedCommands.forEach(function(v){return EhF(R,v)}),R.unresolvedCommands=[]);
_.bx(R,R.timedSyncObserver);_.f$(u)})},EhF=function(R,y){if(R.timedSyncObserver){var u=_.e(y,czb);
if(u&&u.timedSyncEntityKey&&u.panelSyncEntityKey){R=R.timedSyncObserver;y=u.timedSyncEntityKey;var v=u.panelSyncEntityKey;u=!!u.isEnabled;u=u===void 0?!0:u;var Q=_.ua().resolve(_.S5);Q=ZM8(Q.getState(),y);u?R.timeToPanelSyncKeyMap[y]||(R.timeToPanelSyncKeyMap[y]=v,d1E(R,Q)):(delete R.timeToPanelSyncKeyMap[y],WvC(R,Q))}}else R.unresolvedCommands.push(y)};var Xsy=_.Jd(function(R){var y=R.data,u=R.maybeLogSmartSkipClientData,v=null,Q=null,M=_.f("web_enable_auto_focus_for_timely_action_button"),K=function(){v=document.activeElement},h=function(){y().smartSkipMetadata&&(v=document.activeElement,_.JEa(function(){return Q}))},b=function(T){if(y().smartSkipMetadata&&(!T||T.key!=="Enter")){v&&v.isConnected&&(_.JEa(function(){return v}),v=null);
var x;(x=Q)==null||x.blur()}};
R=_.nh(function(){u==null||u(!0,y());return!1});
var N=_.VX(_.Y9(function(){return y().rendererContext},{onTap:function(T,x){x({disableClickTracking:!0})}}),_.vA({visibilityCallback:function(T){if(M)T?Q&&y().smartSkipMetadata&&(h(),document.addEventListener("focusin",K)):(document.removeEventListener("focusin",K),b());
else if(T){T=_.a8(y().rendererContext);var x=Number(y().maxVisibleDurationMilliseconds),B,l=(B=_.e(y().rendererContext,_.GC))==null?void 0:B.label;T&&x&&l&&(B={label:l,command:T,durationMs:x},_.ua().resolve(_.WX).enqueue(B))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.nG(function(){if(M){var T;if((Q=(T=N.value)==null?void 0:T.querySelector("button"))&&y().smartSkipMetadata){var x;(x=N.value)==null||x.addEventListener("keydown",b)}}});
_.GF(function(){M&&(Q&&y().smartSkipMetadata&&Q.removeEventListener("keydown",b),document.removeEventListener("focusin",K),b())});
return _.F("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:N,"on:click":R},_.F(_.mk,{data:function(){return y().content}},{buttonViewModel:_.fQ}))},"Zj");var m1y=_.Jd(function(R){var y=R.data,u=R.playerApi,v=_.ua().resolve(_.mUm);R=_.V(_.rW(function(){y()}));
var Q=R.next().value,M=R.next().value,K=function(){return oSr(y(),Q())},h=function(N,T){var x,B,l=(x=_.e(T==null?void 0:T.rendererContext,_.rZ))==null?void 0:(B=x.loggingDirectives)==null?void 0:B.trackingParams;
if((T=T==null?void 0:T.smartSkipMetadata)&&T.loggingData&&(B=T.loggingData,T=B.algorithmId,x=B.startMilliseconds,B=B.endMilliseconds,T&&x!==void 0&&B!==void 0)){var Z,P;N={smartSkipData:Object.assign({},{versionName:T,startMediaTimeMs:x,endMediaTimeMs:B},N&&{userInteractionMediaTimeMs:(Math.floor(((Z=_.I8())==null?void 0:(P=Z.getPlayer())==null?void 0:P.getCurrentTime())||0)*1E3).toString()})};Z=_.$I();var k;l&&(k=_.U4(l));Z&&k&&_.R3(Z,k,N)}},b=function(N,T){var x=oSr(y(),N);
if(x){var B=_.e(x,Wn),l;if(l=T)l=u(),x=_.e(x,Wn),l=x!=null&&x.smartSkipMetadata?!(l==null?0:l.isSameMarkerTypeVisible((x==null?void 0:x.smartSkipMetadata.markerKey)||"")):!0;if(l){var Z,P;(B==null?0:(Z=B.smartSkipMetadata)==null?0:(P=Z.loggingData)==null?0:P.isCounterfactual)||(h(!1,B),M(N))}else T||Q()!==N||M(void 0)}};
_.ny(function(){var N=y().timelyActions;if(N){N=_.V(N);for(var T=N.next();!T.done;T=N.next()){T=_.e(T.value,Wn);var x=void 0;(x=T)!=null&&x.cueRangeId&&v.timelyActionsMap.set(T.cueRangeId,b)}_.GF(function(){v.timelyActionsMap.clear()})}},"Z1Qwtc");
return _.F("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.F(_.mk,{data:K},{timelyActionViewModel:function(N){return _.F(Xsy,{data:N.data,maybeLogSmartSkipClientData:function(){h(!0,_.e(K(),Wn))}})}}))},"$j");_.D1K=function(R){_.Z0.call(this);this.JSC$22822_watchApi=R;R=_.V(_.In({},void 0,"pLDp2"));this.timelyActionsOverlay=R.next().value;this.setTimelyActionsOverlay=R.next().value;ASb(this)};
_.O(_.D1K,_.Z0);var ASb=function(R){var y,u,v,Q;_.I(function(M){if(M.nextAddress==1)return psC(R),tQq(R),R.timelyActionsContainer=document.createElement("div"),M.yield(R.JSC$22822_watchApi.playerApi,2);y=M.yieldResult;(v=(u=y).insertTimelyActionUi)==null||v.call(u,R.timelyActionsContainer);Q=_.Hu(R.timelyActionsContainer,function(){return _.F(m1y,{data:R.timelyActionsOverlay,playerApi:y})});
R.addOnDisposeCallback(Q);_.f$(M)})},tQq=function(R){var y=R.JSC$22822_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){psC(R)});
R.addOnDisposeCallback(function(){R.JSC$22822_watchApi.unsubscribeByKey(y)})},psC=function(R){var y=R.JSC$22822_watchApi.getWatchNextResponse();
if(y){var u,v;if(y=_.e((u=y.playerOverlays)==null?void 0:(v=u.playerOverlayRenderer)==null?void 0:v.timelyActionsOverlayViewModel,acK)){var Q;(Q=R.setTimelyActionsOverlay)==null||Q.call(R,y)}}};_.aiF=function(R){_.Z0.call(this);this.JSC$22826_watchApi=R;cSE(this)};
_.O(_.aiF,_.Z0);var cSE=function(R){var y,u;_.I(function(v){if(v.nextAddress==1)return v.yield(R.JSC$22826_watchApi.playerApi,2);y=v.yieldResult;u=function(Q){_.lX.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.e(Q,_.gKZ)},popupType:"TOAST"}})};
y.addEventListener("onYtShowToast",u);R.addOnDisposeCallback(function(){y.removeEventListener("onYtShowToast",u)});
_.f$(v)})};var S6y,srE,yDK,Y6E,LvF,Rpy,ghg,Cvb,uvF,v7y;S6y=!1;_.zSE=function(R){_.Z0.call(this);this.JSC$22829_watchApi=R;this.fullscreen=this.theater=!1;Y6E(this);LvF(this);srE(this)};
_.O(_.zSE,_.Z0);srE=function(R){var y,u,v;_.I(function(Q){if(Q.nextAddress==1)return Q.yield(R.JSC$22829_watchApi.playerApi,2);y=Q.yieldResult;if(R.isDisposed())return Q.return();u=R.JSC$22829_watchApi.getElement("CINEMATICS");if(!u)return Q.return();R.JSC$22829_cinematicController=new _.vn(u,y);_.bx(R,R.JSC$22829_cinematicController);_.BHp(R.JSC$22829_cinematicController);ghg(R,_.K2v());v=R.JSC$22829_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(M){Cvb(R,M)});
R.addOnDisposeCallback(function(){R.JSC$22829_watchApi.unsubscribeByKey(v)});
Rpy(R);Cvb(R,R.JSC$22829_cinematicController.isAllowed());_.f("web_cinematic_manager_redux_killswitch")?_.dt(R,R.fullscreen,R.theater):yDK(R);uvF(R);_.f$(Q)})};
yDK=function(R){R.fullscreen=_.c_(_.Qe().getState());R.theater=_.t6(_.Qe().getState());_.dt(R,R.fullscreen,R.theater);var y=_.GD(_.Qe(),_.c_,function(v){R.fullscreen=v;_.dt(R,R.fullscreen,R.theater)}),u=_.GD(_.Qe(),_.t6,function(v){R.theater=v;
_.dt(R,R.fullscreen,R.theater)});
R.addOnDisposeCallback(y);R.addOnDisposeCallback(u)};
Y6E=function(R){var y=R.JSC$22829_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Rpy(R)});
R.addOnDisposeCallback(function(){R.JSC$22829_watchApi.unsubscribeByKey(y)})};
LvF=function(R){var y,u;_.I(function(v){if(v.nextAddress==1)return v.yield(R.JSC$22829_watchApi.playerApi,2);y=v.yieldResult;u=function(Q){ghg(R,Q)};
y.addEventListener("cinematicSettingsToggleChange",u);R.addOnDisposeCallback(function(){y.removeEventListener("cinematicSettingsToggleChange",u)});
_.f$(v)})};
Rpy=function(R){var y=R.JSC$22829_watchApi.getWatchNextResponse(),u;y=_.e(y==null?void 0:(u=y.pageVisualEffects)==null?void 0:u[0],_.B6);var v;(v=R.JSC$22829_cinematicController)==null||_.eeP(v,y)};
ghg=function(R,y){var u;(u=R.JSC$22829_cinematicController)==null||_.f4M(u,y);v7y(R)};
Cvb=function(R,y){var u;_.I(function(v){if(v.nextAddress==1)return _.f("kevlar_watch_cinematics_invisible")&&(y=!1),v.yield(R.JSC$22829_watchApi.playerApi,2);u=v.yieldResult;u.updateCinematicSettings(y);v7y(R);_.f$(v)})};
uvF=function(R){var y=_.O9();if(_.f("kevlar_measure_ambient_mode_idle")&&!y.getFlag(192)&&!S6y){S6y=!0;var u=_.Oh(_.WG,function(){_.ua().resolve(_.Aqo).start(1E4)},5E3);
R.addOnDisposeCallback(function(){_.WG.cancelJob(u);_.ua().resolve(_.Aqo).stop()})}};
_.dt=function(R,y,u){R.fullscreen=y;R.theater=u;var v;(v=R.JSC$22829_cinematicController)==null||v.setFullscreen(R.fullscreen,R.theater);if(_.f("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(R.theater||R.fullscreen){var Q;(Q=R.JSC$22829_cinematicController)==null||_.l48(Q)}else if((R=R.JSC$22829_cinematicController)!=null){var M;(M=R.currentCinematicEffect)==null||M.pause()}};
v7y=function(R){if(_.f("web_cinematic_theater_mode")||_.f("web_cinematic_fullscreen")){var y;R.JSC$22829_watchApi.getRoot().toggleCinematicsActive(!((y=R.JSC$22829_cinematicController)==null||!y.isEnabled()))}};_.JDy=function(R){_.Z0.call(this);var y=this;this.JSC$22832_watchApi=R;this.commentsReady=!1;this.setCommentsJobId=0;R=_.GD(_.Qe(),_.OY,function(){Q_2(y)});
this.addOnDisposeCallback(R);var u=this.JSC$22832_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){j_y(y)}),v=this.JSC$22832_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){j_y(y)});
this.addOnDisposeCallback(function(){y.JSC$22832_watchApi.unsubscribeByKey(u);y.JSC$22832_watchApi.unsubscribeByKey(v)});
var Q=function(){_.f("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&MZ2(y,"false")};
this.JSC$22832_watchApi.getRoot().addEventListener("yt-page-data-will-update",Q);this.addOnDisposeCallback(function(){y.JSC$22832_watchApi.getRoot().removeEventListener("yt-page-data-will-update",Q)});
j_y(this)};
_.O(_.JDy,_.Z0);var j_y=function(R){R.commentsReady=!1;_.WG.cancelJob(R.setCommentsJobId);R.setCommentsJobId=_.Oh(_.WG,function(){Q_2(R)},1E3)},Q_2=function(R){if(!R.commentsReady){_.qQ("cmi");
_.WG.cancelJob(R.setCommentsJobId);var y,u,v,Q,M=(y=R.JSC$22832_watchApi.getWatchNextResponse())==null?void 0:(u=y.contents)==null?void 0:(v=u.twoColumnWatchNextResults)==null?void 0:(Q=v.results)==null?void 0:Q.results.contents;y=void 0;if(M&&M.length)for(M=_.V(M),u=M.next();!u.done;u=M.next())if(u=u.value,Q=v=void 0,((v=u)==null?void 0:(Q=v.itemSectionRenderer)==null?void 0:Q.sectionIdentifier)==="comment-item-section"){_.f("web_watch_provide_undefined_comments")?y=u.itemSectionRenderer:R.JSC$22832_watchApi.provideRenderingData("COMMENTS",
u.itemSectionRenderer);MZ2(R,"true");break}_.f("web_watch_provide_undefined_comments")&&R.JSC$22832_watchApi.provideRenderingData("COMMENTS",y);R.commentsReady=!0;R.JSC$22832_watchApi.dispatchEvent("yt-watch-comments-ready")}},MZ2=function(R,y){var u;
(u=R.JSC$22832_watchApi.getElement("COMMENTS"))==null||u.setAttribute("canScheduleJobs",y)};_.$m=function(R){_.Z0.call(this);var y=this;this.JSC$22835_watchApi=R;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.f("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.f("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.f("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.JT("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)VZq(this);
else{var u=this.JSC$22835_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){U3(y);km(y)}),v=this.JSC$22835_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){E3(y);
km(y)});
this.JSC$22835_watchApi.getRoot().is==="ytd-watch-grid"&&_.f("swatcheroo_pbs_load_grid")&&(iFy(this),KaE(this));this.addOnDisposeCallback(function(){y.JSC$22835_watchApi.unsubscribeByKey(u);y.JSC$22835_watchApi.unsubscribeByKey(v);_.WG.cancelJob(y.provideRichGridJobId)});
U3(this);E3(this)}};
_.O(_.$m,_.Z0);var VZq=function(R){var y=R.JSC$22835_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){R.providePlayerJobId=_.Xs(_.WG,function(){U3(R);km(R)},R.provideAllDataDelayMs)}),u=R.JSC$22835_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){R.provideWatchNextJobId=_.Xs(_.WG,function(){E3(R);
km(R)},R.provideAllDataDelayMs)}),v=R.JSC$22835_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){R.provideWatchNextJobId=_.Xs(_.WG,function(){E3(R);
km(R)},R.provideAllDataDelayMs)});
R.JSC$22835_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Oh(_.WG,function(){U3(R);E3(R);km(R)},100)});
R.JSC$22835_watchApi.addPageDisposeJob(function(){_.WG.cancelJob(R.provideWatchNextJobId);_.WG.cancelJob(R.providePlayerJobId)});
R.addOnDisposeCallback(function(){R.JSC$22835_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");R.JSC$22835_watchApi.unsubscribeByKey(y);R.JSC$22835_watchApi.unsubscribeByKey(u);R.JSC$22835_watchApi.unsubscribeByKey(v);_.WG.cancelJob(R.providePlayerJobId);_.WG.cancelJob(R.provideWatchNextJobId)});
U3(R);E3(R)},U3=function(R){var y=R.JSC$22835_watchApi.getPlayerResponse(),u,v,Q=(v=y==null?void 0:(u=y.playabilityStatus)==null?void 0:u.messageRenderers)!=null?v:[],M,K;
y=(K=y==null?void 0:(M=y.playabilityStatus)==null?void 0:M.messages)!=null?K:[];M=_.V(y);for(K=M.next();!K.done;K=M.next())Q.push({alertRenderer:{text:_.ye(K.value),type:"WARNING"}});R.JSC$22835_watchApi.provideRenderingData("ALERTS",Q)},E3=function(R){var y=[],u,v,Q,M=R.JSC$22835_watchApi.getWatchNextResponse(),K,h,b,N,T=M==null?void 0:(K=M.contents)==null?void 0:(h=K.twoColumnWatchNextResults)==null?void 0:(b=h.results)==null?void 0:(N=b.results)==null?void 0:N.contents;
if(T)for(K=_.V(T),h=K.next();!h.done;h=K.next())if(h=h.value,h.videoPrimaryInfoRenderer)var x=h;else if(h.videoSecondaryInfoRenderer){var B=h;N=b=void 0;h=Object.assign({},(b=h.videoSecondaryInfoRenderer)==null?void 0:(N=b.metadataRowContainer)==null?void 0:N.metadataRowContainerRenderer);if(h.rows&&h.collapsedItemCount!==void 0){h.rows=h.rows.slice(0,h.collapsedItemCount).filter(function(pY){return!!pY.richMetadataRowRenderer});
h.collapsedItemCount=h.rows.length;var l={metadataRowContainerRenderer:h}}}else if(h.merchandiseShelfRenderer)var Z=h;else if(h.ticketShelfRenderer)var P=h;else if(h.expandableMetadataRenderer)var k=h;else if(h.itemSectionRenderer)if(b=h.itemSectionRenderer.contents,N=void 0,R.directlyProvideComments&&((N=h.itemSectionRenderer)==null?void 0:N.sectionIdentifier)==="comment-item-section")_.qQ("cmi"),R.JSC$22835_watchApi.provideRenderingData("COMMENTS",h.itemSectionRenderer);else if(b)for(h=_.V(b),b=
h.next();!b.done;b=h.next())if(b=b.value,b.commentsEntryPointHeaderRenderer)var E=b;else if(b.clarificationRenderer||b.infoPanelContainerRenderer||b.infoPanelContentRenderer||b.emergencyOneboxRenderer){y.push(b);var D=D||!!B}else b.limitedStateMessageRenderer?v=b:b.videoMetadataCarouselViewModel&&(Q=b);if(_.f("web_watch_merch_in_sd_when_ticket_shelf_present")&&Z&&P){var z=Z;Z=void 0}if(R.provideWatchNextSecondaryResults){var c,a,L;R.JSC$22835_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
M==null?void 0:(c=M.contents)==null?void 0:(a=c.twoColumnWatchNextResults)==null?void 0:(L=a.secondaryResults)==null?void 0:L.secondaryResults)}if(R.JSC$22835_watchApi.getRoot().is==="ytd-watch-grid"){var QG,hz;R.JSC$22835_watchApi.provideRenderingData("LIVE_CHAT",M==null?void 0:(QG=M.contents)==null?void 0:(hz=QG.twoColumnWatchNextResults)==null?void 0:hz.conversationBar)}var bO,BW,Zc,xS;(c=M==null?void 0:(bO=M.contents)==null?void 0:(BW=bO.twoColumnWatchNextResults)==null?void 0:(Zc=BW.secondaryResults)==
null?void 0:(xS=Zc.secondaryResults)==null?void 0:xS.offerModule)&&(c.donationShelfRenderer||c.donationUnavailableRenderer)&&R.JSC$22835_watchApi.getRoot().is!=="ytd-watch-grid"&&(u=c);bO=R.JSC$22835_watchApi.getPlayerResponse();if(!bO||!_.Q9T(bO.playabilityStatus,M==null?void 0:M.playerOverlays)){var Dc;if(M==null?0:(Dc=M.contents)==null?0:Dc.singleColumnWatchNextResults){var $S,hL;var WK=M==null?void 0:($S=M.contents.singleColumnWatchNextResults.results)==null?void 0:(hL=$S.results)==null?void 0:
hL.contents}else{var JL,sP,wg,bT;Dc=!!(T==null?0:(JL=T[0])==null?0:(sP=JL.itemSectionRenderer)==null?0:(wg=sP.contents)==null?0:(bT=wg[0])==null?0:bT.backgroundPromoRenderer);var HK,Ta;JL=!!(M==null?0:(HK=M.contents)==null?0:(Ta=HK.twoColumnWatchNextResults)==null?0:Ta.secondaryResults);Dc&&!JL&&(WK=T)}}T=y[0];HK=y[1];D&&y.length===1&&(HK=T,T=void 0);R.JSC$22835_watchApi.provideRenderingData("PRIMARY_INFO",x);R.JSC$22835_watchApi.provideRenderingData("SECONDARY_INFO",B);R.JSC$22835_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
E);R.JSC$22835_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",Q);R.JSC$22835_watchApi.provideRenderingData("CLARIFICATION",T);R.JSC$22835_watchApi.provideRenderingData("RICH_METADATA",l);R.JSC$22835_watchApi.provideRenderingData("MERCH_SHELF",Z);_.f("web_watch_merch_in_sd_when_ticket_shelf_present")&&R.JSC$22835_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",z);R.JSC$22835_watchApi.provideRenderingData("TICKET_SHELF",P);R.JSC$22835_watchApi.provideRenderingData("LIMITED_STATE",v);R.JSC$22835_watchApi.getRoot().is!==
"ytd-watch-grid"&&R.JSC$22835_watchApi.provideRenderingData("DONATION_SHELF",u);R.JSC$22835_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",WK);R.JSC$22835_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",HK);R.JSC$22835_watchApi.provideRenderingData("EXPANDABLE_METADATA",k);if(R.swatcherooProvideAllDataOnScheduledJob){var Sg,MU,vK,eg,oP,BK;x=M==null?void 0:(Sg=M.contents)==null?void 0:(MU=Sg.twoColumnWatchNextResults)==null?void 0:(vK=MU.secondaryResults)==null?void 0:(eg=vK.secondaryResults)==
null?void 0:(oP=eg.results)==null?void 0:(BK=oP[0])==null?void 0:BK.richGridRenderer;R.JSC$22835_watchApi.provideRenderingData("RICH_GRID_RENDERER",x)}};
_.$m.prototype.hasCompanionAds=function(R){var y,u;return(u=R==null?void 0:(y=R.adPlacements)==null?void 0:y.some(function(v){var Q,M,K,h;return(v==null?void 0:(Q=v.adPlacementRenderer)==null?void 0:(M=Q.renderer)==null?void 0:M.actionCompanionAdRenderer)||(v==null?void 0:(K=v.adPlacementRenderer)==null?void 0:(h=K.renderer)==null?void 0:h.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?u:!1};
var km=function(R){if(!_.f("swaterdoo_ps_wn_handle_ks")){R.swatcherooProvideAllDataOnScheduledJob||KaE(R,3E3);var y=R.JSC$22835_watchApi.getPlayerResponse(),u,v,Q,M,K,h=(u=R.JSC$22835_watchApi.getWatchNextResponse())==null?void 0:(v=u.contents)==null?void 0:(Q=v.twoColumnWatchNextResults)==null?void 0:(M=Q.secondaryResults)==null?void 0:(K=M.secondaryResults)==null?void 0:K.offerModule;y=R.hasCompanionAds(y);var b,N;u=(h==null?void 0:(b=h.tvfilmOfferModuleRenderer)==null?void 0:b.clientShouldSuppressIfCompanionAdDisplayed)||
(h==null?void 0:(N=h.unlimitedOfferModuleRenderer)==null?void 0:N.suppressIfCompanionAds);b=y&&u;R.JSC$22835_watchApi.getRoot().is==="ytd-watch-grid"&&R.JSC$22835_watchApi.provideRenderingData("OFFER_MODULE",b?void 0:h)}},KaE=function(R,y){_.f("swatcheroo_pbs_load_grid")&&(R.provideRichGridJobId&&_.WG.cancelJob(R.provideRichGridJobId),R.provideRichGridJobId=_.Xs(_.WG,function(){R.provideRichGridJobId=0;
var u,v,Q,M,K,h,b,N=(u=R.JSC$22835_watchApi.getWatchNextResponse())==null?void 0:(v=u.contents)==null?void 0:(Q=v.twoColumnWatchNextResults)==null?void 0:(M=Q.secondaryResults)==null?void 0:(K=M.secondaryResults)==null?void 0:(h=K.results)==null?void 0:(b=h[0])==null?void 0:b.richGridRenderer;N&&R.JSC$22835_watchApi.provideRenderingData("RICH_GRID_RENDERER",N)},y))},iFy=function(R){var y,u;
_.I(function(v){if(v.nextAddress==1)return v.yield(R.JSC$22835_watchApi.playerApi,2);y=v.yieldResult;u=function(){R.onPlaybackStart()};
y.addEventListener("onPlaybackStartExternal",u);R.addOnDisposeCallback(function(){y.removeEventListener("onPlaybackStartExternal",u)});
_.f$(v)})};
_.$m.prototype.onPlaybackStart=function(){KaE(this)};_.hpK=function(R){_.Z0.call(this);var y=this;this.JSC$22845_watchApi=R;R.playerApi.then(function(u){y.player=u});
this.gestures=new _.Vf(this.JSC$22845_watchApi.getRoot(),R.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.ryP(_.Qe().getState())&&_.OY(_.Qe().getState())<=0)if(_.c_(_.Qe().getState())){var u;(u=y.player)==null||u.toggleFullscreen()}else _.Ik(y.JSC$22845_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
I0y(this)};
_.O(_.hpK,_.Z0);var I0y=function(R){var y=_.GD(_.Qe(),_.c_,function(u){R.onFullscreenChanged(u)});
R.addOnDisposeCallback(y);y=_.GD(_.Qe(),_.OY,function(u){R.gestures&&(u>0?R.gestures.detach():R.gestures.attach())});
R.addOnDisposeCallback(y)};
_.hpK.prototype.onFullscreenChanged=function(R){this.gestures&&this.gestures.update(R)};_.FaF=function(R){_.Z0.call(this);var y=this;this.JSC$22848_watchApi=R;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(R.subscribeToActiveChanged(function(u){y.onActiveChanged(u)}));
bF4(this)};
_.O(_.FaF,_.Z0);var wYg=function(R){if(_.f("swatcheroo_page_dispose_all_watch_data"))R.pageDisposalDataTypes=Object.values(ELr).filter(function(u){return u!=="PLAYLIST"});
else if(_.f("swatcheroo_page_dispose_rich_grid")){var y;(y=R.pageDisposalDataTypes)==null||y.push("RICH_GRID_RENDERER")}},bF4=function(R){_.f("swatcheroo_enable_ghost_cards")&&(wYg(R),R.JSC$22848_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.WG.cancelJob(R.clearDataJobId);
R.clearDataJobId=0}),R.runPageDisposeJob=function(){var y=_.ua().resolve(_.iD).getDestinationPageType()==="watch";
R.clearDataJobId=_.Xs(_.WG,R.runClearDataJob,y?0:_.JT("web_watch_delay_page_dispose_ms",1E4))},R.runClearDataJob=function(){NsB(R)},R.runOnYtNavigateAwayFinish=function(){R.clearDataJobId&&(_.WG.cancelJob(R.clearDataJobId),R.clearDataJobId=0,NsB(R))},document.addEventListener("yt-navigate-finish",R.runOnYtNavigateAwayFinish),R.JSC$22848_watchApi.addPageDisposeJob(R.runPageDisposeJob),R.addOnDisposeCallback(function(){R.JSC$22848_watchApi.removePageDisposeJob(R.runPageDisposeJob);
R.JSC$22848_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",R.runOnYtNavigateAwayFinish)}))},NsB=function(R){R.pageDisposalDataTypes.forEach(function(y){R.JSC$22848_watchApi.provideRenderingData(y,void 0)});
R.clearDataJobId=0};
_.FaF.prototype.onActiveChanged=function(R){R&&((R=document.querySelector("#watch-page-skeleton"))&&_.BY(R),TsK(this),document.body.removeAttribute("no-y-overflow"),_.$B("IS_SHELL_LOAD")&&_.xb8())};
var TsK=function(R){_.I(function(y){if(y.nextAddress==1)return y.yield(R.JSC$22848_watchApi.playerApi,2);_.g$();_.f$(y)})};var o7r;o7r=_.f("kevlar_watch_while_counterfactual")?0:.25;_.q_=function(R){_.Z0.call(this);this.JSC$22851_watchApi=R;this.JSC$22851_watchWhileEnabled=_.f("kevlar_watch_while_v2");this.pipEnabled=_.f("web_enable_pip_on_miniplayer");xeC(this);BsK(this);f0F(this)};
_.O(_.q_,_.Z0);var xeC=function(R){R.JSC$22851_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){epg(R)});
R.addOnDisposeCallback(function(){R.JSC$22851_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},BsK=function(R){var y,u;
_.I(function(v){if(v.nextAddress==1)return v.yield(R.JSC$22851_watchApi.playerApi,2);y=v.yieldResult;u=function(){epg(R)};
y.addEventListener("onCollapseMiniplayer",u);R.addOnDisposeCallback(function(){y.removeEventListener("onCollapseMiniplayer",u)});
_.f$(v)})},f0F=function(R){var y=R.JSC$22851_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&y&&R.JSC$22851_watchWhileEnabled&&(R.playerIntersectionObserver=new IntersectionObserver(function(u){R.handleIntersect(u)},{threshold:[o7r]}),R.playerIntersectionObserver.observe(y),R.addOnDisposeCallback(function(){var u;
(u=R.playerIntersectionObserver)==null||u.disconnect()}))},epg=function(R){var y,u,v;
_.I(function(Q){if(Q.nextAddress==1){y=_.ua().resolve(_.iD);u=y.data;v=_.HaO(u.response,u.playerResponse);_.Hr().miniplayerButtonActivation=!0;if(R.pipEnabled)return _.Hr().watchPipActivation=!0,Q.jumpTo(2);_.ua().resolve(_.cZ).collapse();return Q.yield(_.Hr().navigationFinishPromise,2)}if(Q.nextAddress!=4)return _.Hr().currentEndpoint=v.watchEndpoint||null,Q.yield(_.ua().resolve(_.cZ).activate(R.JSC$22851_watchApi.getElement("PLAYER"),v,u),4);_.Hr().userActivation=!0;_.f$(Q)})};
_.q_.prototype.handleIntersect=function(R){l0r(this,R[R.length-1])};
var l0r=function(R,y){R.watchWhileJobId&&_.WG.cancelJob(R.watchWhileJobId);R.watchWhileJobId=_.WG.addLowPriorityJob(function(){var u,v;return _.I(function(Q){if(Q.nextAddress==1)return R.watchWhileJobId=void 0,u=_.ua().resolve(_.cZ),y.intersectionRatio>o7r?u.isMiniplayerActive()?Q.yield(u.deactivate(),0):Q.jumpTo(0):(v=!u.isMiniplayerActive())?Q.yield(OFK(R),5):Q.jumpTo(4);Q.nextAddress!=4&&(v=Q.yieldResult);if(!v)return Q.jumpTo(0);_.Hr().watchWhileActivation=!0;return Q.yield(ZFK(R),0)})},100)},
OFK=function(R){return _.I(function(y){return y.nextAddress==1?_.f("kevlar_watch_while_paused")?y.return(!0):y.yield(R.isPlayerPlaying(),2):y.return(y.yieldResult)})};
_.q_.prototype.isPlayerPlaying=function(){var R=this,y;return _.I(function(u){if(u.nextAddress==1)return u.yield(R.JSC$22851_watchApi.playerApi,2);y=u.yieldResult;return u.return(y.getPlayerStateObject().isPlaying)})};
var ZFK=function(R){var y,u;return _.I(function(v){y=_.ua().resolve(_.iD).data;u=_.HaO(y.response,y.playerResponse);_.Hr().currentEndpoint=u.watchEndpoint||null;return v.yield(_.ua().resolve(_.cZ).activate(R.JSC$22851_watchApi.getElement("PLAYER"),u,y),0)})};_.GlK=function(R){_.Z0.call(this);this.JSC$22855_watchApi=R;HFg(this);n7K(this)};
_.O(_.GlK,_.Z0);var n7K=function(R){var y,u;_.I(function(v){if(v.nextAddress==1)return v.yield(R.JSC$22855_watchApi.playerApi,2);y=v.yieldResult;u=function(Q){var M;Q.sessionData&&Q.sessionData.itct&&(M=Q.sessionData.itct);var K=Q.watchEndpoint;if(K&&Q.sessionData&&Q.sessionData.autonav)K=_.sIT(K,M);else{var h;K=_.j6(Q.videoId,(h=Q.listId)!=null?h:void 0,M)}M={endpoint:K};Q.sessionData&&(M.tempData=Q.sessionData);R.JSC$22855_watchApi.dispatchEvent("yt-navigate",M)};
y.addEventListener("onPlayVideo",u);R.addOnDisposeCallback(function(){y.removeEventListener("onPlayVideo",u)});
_.f$(v)})},HFg=function(R){var y=function(u){R.onYtNavigate(u)};
R.JSC$22855_watchApi.getRoot().addEventListener("yt-navigate",y);R.addOnDisposeCallback(function(){R.JSC$22855_watchApi.getRoot().removeEventListener("yt-navigate",y)})};
_.GlK.prototype.onYtNavigate=function(R){var y=this,u,v,Q,M,K,h,b,N,T;return _.I(function(x){if(x.nextAddress==1){if(!((u=R.detail)==null?0:(v=u.endpoint)==null?0:v.watchEndpoint))return x.return();Q=R.detail.endpoint.watchEndpoint;M=y.JSC$22855_watchApi.getWatchNextResponse();h=_.e((K=M)==null?void 0:K.currentVideoEndpoint,_.zM);if(!h)return x.return();if(Q.videoId!==h.videoId||Q.playlistId&&Q.playlistId!==h.playlistId||typeof Q.startTimeSeconds!=="number")return x.jumpTo(0);R.stopPropagation();
(b=_.f("kevlar_watch_while_v2")&&!_.f("kevlar_watch_while_counterfactual"))&&_.ua().resolve(_.cZ).isMiniplayerActive()||y.JSC$22855_watchApi.scrollWatchTo(0,!0);return x.yield(y.JSC$22855_watchApi.playerApi,3)}N=x.yieldResult;T=Q.startTimeSeconds;N.seekTo(T,void 0,void 0,void 0,84);N.wakeUpControls();T<N.getDuration()&&N.playVideo();_.f$(x)})};_.PxK=function(R){_.Z0.call(this);var y=this;this.JSC$22858_watchApi=R;var u=this.JSC$22858_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){rDg(y)});
this.addOnDisposeCallback(function(){y.JSC$22858_watchApi.unsubscribeByKey(u)});
rDg(this)};
_.O(_.PxK,_.Z0);var rDg=function(R){var y=R.JSC$22858_watchApi.getWatchNextResponse();if(y){var u,v=[].concat(_.P$((u=y==null?void 0:y.engagementPanels)!=null?u:[]));v.unshift.apply(v,_.P$(Wao(y)));R.JSC$22858_watchApi.provideRenderingData("ENGAGEMENT_PANELS",v)}},deb=function(R){var y,u,v,Q=(y=R.engagementPanels)==null?void 0:(u=y.find(function(l){var Z;
return((Z=l.engagementPanelSectionListRenderer)==null?void 0:Z.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(v=u.engagementPanelSectionListRenderer.content)==null?void 0:v.structuredDescriptionContentRenderer,M;
if(_.e(Q==null?void 0:(M=Q.items)==null?void 0:M.find(function(l){return!!_.e(l,iYg)}),iYg))return!0;
var K,h,b,N;if(R=(((K=R.contents)==null?void 0:(h=K.twoColumnWatchNextResults)==null?void 0:(b=h.results)==null?void 0:(N=b.results)==null?void 0:N.contents)||[]).find(function(l){return l.videoPrimaryInfoRenderer})){var T,x,B;
return(((T=R.videoPrimaryInfoRenderer)==null?void 0:(x=T.videoActions)==null?void 0:(B=x.menuRenderer)==null?void 0:B.flexibleItems)||[]).some(function(l){l=_.e(l,_.c4g);if(!l)return!1;var Z,P;l=(Z=l.topLevelButton)==null?void 0:(P=Z.buttonViewModel)==null?void 0:P.onTap;if(!l)return!1;Z=_.Sb(l);if(!Z)return!1;var k;return((k=_.e(Z,_.X1))==null?void 0:k.panelIdentifier)==="PAyouchat"})}return!1},Wao=function(R){var y=[];
if(!_.f("web_watch_inject_placeholder_fantasy_panel_killswitch")){var u,v,Q,M=(u=R.engagementPanels)==null?void 0:(v=u.find(function(h){var b;return((b=h.engagementPanelSectionListRenderer)==null?void 0:b.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(Q=v.engagementPanelSectionListRenderer.content)==null?void 0:Q.structuredDescriptionContentRenderer,K;
_.e(M==null?void 0:(K=M.items)==null?void 0:K.find(function(h){return!!_.e(h,mUo)}),mUo)&&(u=_.c$8("PAsports_fantasy"),u.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",y.push(u))}deb(R)&&(R=_.c$8("PAyouchat"),R.engagementPanelSectionListRenderer.targetId="PAyouchat",R.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",y.push(R));
return y};_.klB=function(R){_.Z0.call(this);this.JSC$22861_watchApi=R;Ue4(this)};
_.O(_.klB,_.Z0);var Ue4=function(R){R.JSC$22861_watchApi.registerActionHandler("yt-loop-command",function(y){E7K(R,y)});
R.JSC$22861_watchApi.registerActionHandler("yt-repeat-chapter-command",function(y){$ey(R,y)});
R.addOnDisposeCallback(function(){R.JSC$22861_watchApi.unregisterActionHandler("yt-loop-command");R.JSC$22861_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},E7K=function(R,y){var u;
_.I(function(v){if(v.nextAddress==1)return v.yield(R.JSC$22861_watchApi.playerApi,2);u=v.yieldResult;_.e(y,DUq).loop?(u.setLoopRange({startTimeMs:Number(_.e(y,DUq).startTimeMs),endTimeMs:Number(_.e(y,DUq).endTimeMs),postId:_.e(y,DUq).postId,type:"clips"}),u.playVideo()):u.setLoopRange(null);_.f$(v)})},$ey=function(R,y){var u,v;
_.I(function(Q){if(Q.nextAddress==1)return Q.yield(R.JSC$22861_watchApi.playerApi,2);u=Q.yieldResult;v=_.e(y,SPF).repeat;v==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(u.setLoopRange({startTimeMs:Number(_.e(y,SPF).startTimeMs),endTimeMs:Number(_.e(y,SPF).endTimeMs),type:"repeatChapter"}),u.playVideo()):v==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&u.setLoopRange(null);_.f$(Q)})};_.XYr=function(R){_.Z0.call(this);this.JSC$22866_watchApi=R;qXK(this)};
_.O(_.XYr,_.Z0);var qXK=function(R){R.JSC$22866_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(y){mey(R,y)});
R.addOnDisposeCallback(function(){R.JSC$22866_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},mey=function(R,y){var u,v,Q,M,K,h,b,N,T,x,B;
_.I(function(l){if(l.nextAddress==1)return l.yield(R.JSC$22866_watchApi.playerApi,2);u=l.yieldResult;if(M=(Q=(v=_.e(y,YPF))==null?void 0:v.highlightedMenuItemKey)!=null?Q:"")(h=(K=u).highlightSettingsMenuItem)==null||h.call(K,M);if(T=(N=(b=_.e(y,YPF))==null?void 0:b.openMenuItemKey)!=null?N:"")(B=(x=u).openSettingsMenuItem)==null||B.call(x,T);_.f$(l)})};var ADK=_.Nq("/youtube/app/watch/player_state","playerStateEntity");_.pYg=function(R){_.Z0.call(this);this.JSC$22869_watchApi=R;DeB(this)};
_.O(_.pYg,_.Z0);var tZF=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"}},DeB=function(R){var y,u;
_.I(function(v){if(v.nextAddress==1)return v.yield(R.JSC$22869_watchApi.playerApi,2);y=v.yieldResult;u=function(Q){R.onPlayerStateChange(Q)};
y.addEventListener("onStateChange",u);R.addOnDisposeCallback(function(){y.removeEventListener("onStateChange",u)});
_.f$(v)})};
_.pYg.prototype.onPlayerStateChange=function(R){var y=this,u,v;return _.I(function(Q){if(Q.nextAddress==1)return Q.yield(y.JSC$22869_watchApi.playerApi,2);u=Q.yieldResult;v=u.getVideoData().video_id;_.uX().dispatch(_.Gw("playerStateEntity",ADK,{key:ADK,playerState:tZF(R),videoId:v}));_.f$(Q)})};_.a0o=function(R){_.Z0.call(this);var y=this;this.JSC$22873_watchApi=R;this.enableExternalPlaylistPanelInPlayer=_.f("delhi_web_player_use_external_playlist_panel");_.ua().resolve(_.S2).setPlayer(this.JSC$22873_watchApi.getElement("PLAYER"));R=this.JSC$22873_watchApi.subscribeToActiveChanged(function(u){y.onActiveChanged(u)});
this.addOnDisposeCallback(R);cDo(this)};
_.O(_.a0o,_.Z0);var cDo=function(R){var y,u;_.I(function(v){if(v.nextAddress==1)return R.enableExternalPlaylistPanelInPlayer?v.yield(R.JSC$22873_watchApi.playerApi,2):v.return();y=v.yieldResult;u=function(){if(R.playlistPanelElement)R.playlistPanelElement.onToggleExpanded()};
y.addEventListener("onToggleExternalPlaylistPanel",u);R.addOnDisposeCallback(function(){y.removeEventListener("onToggleExternalPlaylistPanel",u)});
_.f$(v)})};
_.a0o.prototype.onActiveChanged=function(R){var y=this,u=_.ua().resolve(_.S2),v=function(){SXo(y)};
R?(this.playlistPanelElement=this.JSC$22873_watchApi.getElement("PLAYLIST_PANEL"))?(u.setPlaylistComponent(this.playlistPanelElement),u.addEventListener("yt-playlist-data-updated",v),this.addOnDisposeCallback(function(){u.removeEventListener("yt-playlist-data-updated",v)}),SXo(this)):_.pG(Error("zo")):(u.removeEventListener("yt-playlist-data-updated",v),u.cancelVideoSkip())};
var SXo=function(R){var y=_.ua().resolve(_.S2);R.JSC$22873_watchApi.provideRenderingData("PLAYLIST",y.getPlaylistData())};_.XH=function(R){_.Z0.call(this);var y=this;this.JSC$22876_watchApi=R;this.onPageScroll=function(){y.scrollThrottle.fire();y.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.v2(this.onThrottledScroll,200,this);_.bx(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.v2(this.onMastheadThrottledScroll,50,this);_.bx(this,this.mastheadScrollThrottle);this.animation=new _.gl(function(u){y.JSC$22876_watchApi.getRoot().setScrollTop(u)});
R=_.GD(_.Qe(),_.c_,function(){y.onFullscreenChanged()});
this.addOnDisposeCallback(R);YXF(this);Lab(this);this.onThrottledScroll()};
_.O(_.XH,_.Z0);
_.XH.prototype.onFullscreenChanged=function(){var R=this,y=this.JSC$22876_watchApi.getRoot();!this.pageScrollElement&&y.pageScrollElement?(this.pageScrollElement=y.pageScrollElement,y.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){R.pageScrollElement&&R.pageScrollElement.removeEventListener("scroll",R.onPageScroll)})):this.pageScrollElement&&!y.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var YXF=function(R){window.addEventListener("scroll",R.onPageScroll);R.addOnDisposeCallback(function(){window.removeEventListener("scroll",R.onPageScroll)})},Lab=function(R){R.JSC$22876_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(y){a:{var u;
if(u=R.JSC$22876_watchApi.getRoot().contains(y)&&!R.animation.isAnimating()){u=y.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var v,Q,M=(y==null?void 0:(v=y.parentElement)==null?void 0:(Q=v.parentElement)==null?void 0:Q.id)==="fixed-secondary";u=!(u&&M)}if(u){if(_.f("kevlar_watch_scroll_manager_absolute_offset_killswitch"))v=y.offsetTop;else for(v=0,Q=y;Q!==null;)v+=Q.offsetTop,v-=Q.scrollTop,Q=Q.offsetParent;Q=v;v=Q-24;y=Q+y.offsetHeight+24;Q=R.JSC$22876_watchApi.getRoot().getPageScrollingElement();
u=R.JSC$22876_watchApi.getRoot().getScrollTop();M=u+Q.clientHeight-56;if(v<u+56)y=v-56;else if(y>M)y-=Q.clientHeight;else break a;R.scrollWatchTo(Math.max(0,y),!0)}}});
R.addOnDisposeCallback(function(){R.JSC$22876_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.XH.prototype.onThrottledScroll=function(){var R=_.Qe(),y=R.dispatch,u=this.JSC$22876_watchApi.getRoot().getScrollTop();y.call(R,_.iE({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:u}}))};
_.XH.prototype.onMastheadThrottledScroll=function(){this.JSC$22876_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$22876_watchApi.getRoot().getScrollTop())};
_.XH.prototype.scrollWatchTo=function(R,y){(y===void 0?0:y)?this.animation.start(this.JSC$22876_watchApi.getRoot().getScrollTop(),Math.max(0,R),500):this.JSC$22876_watchApi.getRoot().setScrollTop(R)};_.g7b=function(R){_.Z0.call(this);var y=this;this.JSC$22879_watchApi=R;var u=this.JSC$22879_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){s_E(y)}),v=this.JSC$22879_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){zpq(y)});
this.addOnDisposeCallback(function(){y.JSC$22879_watchApi.unsubscribeByKey(u);y.JSC$22879_watchApi.unsubscribeByKey(v)});
s_E(this);zpq(this)};
_.O(_.g7b,_.Z0);
var s_E=function(R){var y,u,v,Q=(v=(y=R.JSC$22879_watchApi.getPlayerResponse())==null?void 0:(u=y.videoDetails)==null?void 0:u.title)!=null?v:"";R.JSC$22879_watchApi.dispatchEvent("yt-update-title",Q)},zpq=function(R){var y,u,v,Q,M,K,h,b=(h=((K=(y=R.JSC$22879_watchApi.getWatchNextResponse())==null?void 0:(u=y.contents)==null?void 0:(v=u.twoColumnWatchNextResults)==null?void 0:(Q=v.results)==null?void 0:(M=Q.results)==null?void 0:M.contents)!=null?K:[]).find(function(N){return!!N.videoPrimaryInfoRenderer}))==null?
void 0:h.videoPrimaryInfoRenderer;
(y=_.u7(b==null?void 0:b.title))&&R.JSC$22879_watchApi.dispatchEvent("yt-update-title",y)};_.RCy=function(R){_.Z0.call(this);this.JSC$22882_watchApi=R;CxF(this)};
_.O(_.RCy,_.Z0);var CxF=function(R){var y,u;_.I(function(v){if(v.nextAddress==1)return v.yield(R.JSC$22882_watchApi.playerApi,2);y=v.yieldResult;u=function(){R.onYpcContentRequest()};
y.addEventListener("onYpcContentRequest",u);R.addOnDisposeCallback(function(){y.removeEventListener("onYpcContentRequest",u)});
_.f$(v)})};
_.RCy.prototype.onYpcContentRequest=function(){var R,y,u,v,Q,M=(R=this.JSC$22882_watchApi.getWatchNextResponse())==null?void 0:(y=R.contents)==null?void 0:(u=y.twoColumnWatchNextResults)==null?void 0:(v=u.secondaryResults)==null?void 0:(Q=v.secondaryResults)==null?void 0:Q.offerModule,K,h,b,N;R=(N=(b=(h=(K=M==null?void 0:M.episodeOfferModuleRenderer)!=null?K:M==null?void 0:M.movieOfferModuleRenderer)!=null?h:M==null?void 0:M.unlimitedOfferModuleRenderer)!=null?b:M==null?void 0:M.liveOfferModuleRenderer)!=
null?N:M==null?void 0:M.tvfilmOfferModuleRenderer;var T,x,B;M=(B=M==null?void 0:(T=M.tvfilmOfferModuleRenderer)==null?void 0:(x=T.actionButtons)==null?void 0:x.length)!=null?B:0;x=Math.max(M-1,0);var l,Z,P;T=(P=R==null?void 0:(l=R.offerButton)==null?void 0:l.buttonRenderer)!=null?P:R==null?void 0:(Z=R.actionButtons)==null?void 0:Z[x].buttonRenderer;var k,E;(l=(E=(k=T==null?void 0:T.navigationEndpoint)!=null?k:T==null?void 0:T.serviceEndpoint)!=null?E:T==null?void 0:T.command)&&_.lX.instance.resolveCommand(l)};
}catch(e){_._DumpException(e)}
try{
var ONK,f7J,xSK;_.BnM=function(){var R=_.Ps.clone(okM),y;return(new _.F4(function(u,v){R.onSuccess=function(Q){_.PhG(Q)?u(new xSK(Q)):v(new _.hg("Request failed, status="+_.KJ(Q),"net.badstatus",Q))};
R.onError=function(Q){v(new _.hg("Unknown request error","net.unknown",Q))};
R.onTimeout=function(Q){v(new _.hg("Request timed out","net.timeout",Q))};
y=_.wR("//googleads.g.doubleclick.net/pagead/id",R)})).thenCatch(function(u){if(u instanceof _.LX){var v;
(v=y)==null||v.abort()}return _.qk(u)})};
_.eLp=function(R){a:{var y="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(y="EMBEDDED_PLAYER_MODE_PFL");var u=R.raw_embedded_player_response;if(!u&&(R=R.embedded_player_response))try{u=JSON.parse(R)}catch(Q){break a}if(u)b:for(var v in f7J)if(f7J[v]==u.embeddedPlayerMode){y=f7J[v];break b}}return y==="EMBEDDED_PLAYER_MODE_PFL"};
_.l7a=function(){if(_.f("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("of");if(!_.gc8())return Error("pf");var R=_.EB("PLAYER_VARS",{});if(_.Ps.get(R,"privembed",!1)=="1")return Error("qf");if(_.eLp(R))return Error("rf")};
ONK=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:_.AL(R,"unknown result type")}};
_.ZNK=function(R,y,u){y=_.L54[y];u={detected:R===0,source:y.nog,detectionResult:ONK(R),contentCpn:u};_.P3("biscottiBasedDetection",u);_.OEg.increment(y.nog,R);y.b8x!==void 0&&_.kB("CATSTAT",_.SIW(R,y))};
_.bK=function(R,y){var u={};u.key=R;u.value=y;return _.GdW().then(function(v){return new Promise(function(Q,M){try{var K=v.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(u);K.onsuccess=function(){Q()};
K.onerror=function(){M()}}catch(h){M(h)}})})};
_.nka=function(){var R=_.JT("user_engagement_experiments_rate_limit_ms"),y=HNH.get("last-user-engagement-exp-trigger-timestamp");return!y||(0,_.uQ)()>=y+R?(HNH.set("last-user-engagement-exp-trigger-timestamp",(0,_.uQ)()),!0):!1};
_.FA=function(R,y,u,v,Q){y=y===void 0?null:y;u=u===void 0?null:u;v=v===void 0?null:v;Q=Q===void 0?null:Q;R={youThereEventType:R};u&&(R.lactThresholdMs=u.lactThresholdMs,R.mediaPosSec=u.promptDelaySec,R.lactServerRequestMs=u.lactServerRequestMs,R.triggerReason=u.triggerReason);Q!=null&&(R.renderingMediaPosSec=Math.round(Q));y||(y=_.$I());y&&(R.clientScreenNonce=y);v&&(R.clientPlaybackNonce=v);_.P3("youThere",R)};
f7J={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"};xSK=function(R){this.xhr=R};
_.hg=function(R,y,u){_.RL.call(this,R+", errorCode="+y);this.errorCode=y;this.xhr=u;this.name="PromiseAjaxError"};
_.O(_.hg,_.RL);var okM={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var HNH=new _.$2("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.TnV=function(R){return _.iE({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:R})};
}catch(e){_._DumpException(e)}
try{
var pM,byg,wTb,Nh2,Thq,oaK,Bhr,r2b,P$K,Wug,x84,FuF,Oyg,lKC,kFo;_.hCb=function(){var R=window.location.hash;R.charAt(0)==="#"&&(R=R.charAt(1)==="!"?R.substring(2):R.substring(1));return _.aM(R)};
pM=function(R,y,u){var v;return _.I(function(Q){if(Q.nextAddress==1)return Q.yield(y(),2);v=Q.yieldResult;u(v,R);_.f$(Q)})};
byg=function(){return _.I(function(R){return R.nextAddress==1?R.yield((_.l7a()!==void 0?_.qk(Error("sf")):_.BnM()).then(function(){return 1},function(y){if(y.message==="Biscotti id is disabled")return 3;
_.kT("Failed fetching bid");return 0}),2):R.return(R.yieldResult)})};
wTb=function(){var R=_.Ve("bGF5ZXIjdm80cDkzcTR6M2wzeXQtaGF2ZW4tZW1iZWQtcA=="),y=_.Ve("ZjBhZ3Z5OXNpcGlmcmFtZSNxZQ==");return document.querySelector(y+FuF+R)?0:1};
Nh2=function(){return _.UAU(_.y$)};
Thq=function(){return _.kWc()===0?0:_.ECO()};
oaK=function(){return _.A3G(_.u08([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
Bhr=function(){return _.Z6G(x84)};
_.fKy=function(R){_.I(function(y){switch(y.nextAddress){case 1:return y.yield(pM("b.f_",byg,R),2);case 2:return y.yield(pM("j.s_",_.lYU,R),3);case 3:return y.yield(pM("r.s_",_.BT8,R),4);case 4:return y.yield(pM("e.h_",Bhr,R),5);case 5:if(!_.f("ab_det_sc_inj")){y.jumpTo(6);break}return y.yield(pM("s.i_",_.W5c,R),6);case 6:if(_.f("ab_deg_unex_thr")){y.jumpTo(8);break}return y.yield(pM("a.o_",_.r3W,R),8);case 8:if(_.f("ks_get_o_pp")){y.jumpTo(10);break}return y.yield(pM("g.o_",_.GWT,R),10);case 10:if(_.f("ks_det_gpbl")){y.jumpTo(12);
break}return y.yield(pM("p.i_",_.nCP,R),12);case 12:return y.yield(pM("f.i_",_.i6U,R),14);case 14:return y.yield(pM("a.b_",_.oCS,R),15);case 15:return y.yield(pM("p.m_",_.hg4,R),16);case 16:if(!_.f("ab_det_el_h_v2")){y.jumpTo(17);break}return y.yield(pM("n.h_",oaK,R),17);case 17:return y.yield(pM("o.p_",Nh2,R),19);case 19:return y.yield(pM("e.i_",wTb,R),20);case 20:if(_.f("ab_det_apm"))return y.yield(pM("o.a_",Thq,R),0);y.jumpTo(0)}})};
_.eCy=function(R,y){R={videoId:R};y&&(R.playlistId=y);return R};
_.ZyK=function(){if(_.gc8()){var R=_.EB("PLAYER_VARS",{});if(_.Ps.get(R,"privembed",!1)!="1"&&!_.eLp(R)){var y=function(){lKC=!0;"google_ad_status"in window?_.kB("DCLKSTAT",1):_.kB("DCLKSTAT",2)};
try{_.tl(_.lDT,y)}catch(u){}Oyg.push(_.WG.addLowPriorityJob(function(){if(!(lKC||"google_ad_status"in window)){try{_.tFO(_.lDT.toString(),y)}catch(u){}lKC=!0;_.kB("DCLKSTAT",3)}},5E3))}}};
_.Hyy=function(R,y,u){u=u===void 0?!1:u;var v=Math.max(R.width,_.Iwb);if(_.f("kevlar_watch_feed_big_thumbs")&&R.width>=1550-_.sG()&&R.height>=800)v-=_.Tgq;else if(R.width>=_.EY){var Q=_.hcB+_.bYC+_.kK;_.f("kevlar_watch_feed_big_thumbs")&&(Q=_.Ngo);v-=Q}else v-=_.hcB;v=Math.min(v,_.FVy);Q=240;u&&(Q=380);y<.5624||(!_.f("kevlar_watch_flexy_disable_small_window_sizing")&&(R.height<630&&R.width>=657||R.height>=630&&R.width>=_.EY&&R.width<1327)?Q=360:!_.f("kevlar_watch_flexy_disable_large_window_sizing")&&
R.height>=630&&R.width>=1327&&(Q=480));var M=Math.min(v*y,R.height-(56+_.KV4+_.wK4));M=Math.max(M,Q);y<1?v=M/y:R.width>=_.EY&&(v=_.Hyy(R,.5625,u).width);return new _.or(Math.round(v),Math.round(M))};
_.na4=function(R){var y=0;R.indexOf("h")!=-1&&(R=R.split("h"),y=R[0]*60*60,R=R[1]);R.indexOf("m")!=-1&&(R=R.split("m"),y=R[0]*60+y,R=R[1]);R.indexOf("s")!=-1?(R=R.split("s"),y=R[0]*1+y):y=R*1+y;return y};
_.GFK=function(){_.JT("service_worker_push_logged_out_prompt_watches")!=-1&&_.xw("WatchCount").then(function(R){R>=100||_.bK("WatchCount",R+1)})};
r2b=function(R){var y=R.externalVideoId||"";return y?R.isShortsEligible?"https://www.youtube.com/shorts/"+y:"https://www.youtube.com/watch?v="+y:""};
P$K=function(R){var y=[];R.viewCount&&y.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:R.viewCount});R.likeCount&&y.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:R.likeCount});return y};
Wug=function(R){var y,u,v={"@context":"https://schema.org","@type":"VideoObject",description:_.u7(R.description),duration:"PT"+(R.lengthSeconds||"0")+"S",embedUrl:R.embed?R.embed.iframeUrl:"",name:_.u7(R.title),thumbnailUrl:((y=R.thumbnail)==null?void 0:(u=y.thumbnails)==null?void 0:u.map(function(T){return T&&T.url||""}))||[],
uploadDate:R.publishDate};_.f("mweb_video_schema_id_killswitch")||(v["@id"]=r2b(R));y=P$K(R);y.length&&(v.interactionStatistic=y);R.category&&(v.genre=R.category);R.ownerChannelName&&(v.author=R.ownerChannelName);R.liveBroadcastDetails&&(v.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:R.liveBroadcastDetails.startTimestamp,endDate:R.liveBroadcastDetails.endTimestamp}]);if(R.learningResource){R=R.learningResource;v["@type"]=["VideoObject","LearningResource"];var Q;if((Q=R.learningResourceType)==
null?0:Q.length)v.learningResourceType=R.learningResourceType[0];var M;if((M=R.educationalAlignment)==null?0:M.length)v.educationalAlignment={"@type":"AlignmentObject",targetName:R.educationalAlignment[0]};var K;if((K=R.educationalLevel)==null?0:K.length){Q=R.educationalLevel[0];var h;if((h=R.educationalLevelCountry)==null?0:h.length)Q+=" ("+R.educationalLevelCountry+")";v.educationalLevel=Q}var b,N;if(((b=R.learningResourceType)==null?0:b.length)&&R.learningResourceType[0]==="Problem walkthrough"&&
((N=R.problemDescriptions)==null?0:N.length))for(v.hasPart=[],h=_.V(R.problemDescriptions),b=h.next();!b.done;b=h.next())Q=b.value,b=Q.problemDescriptionText,N=Q.startOffset,Q=Q.url,b&&N!==void 0&&Q&&v.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:b,text:b,startOffset:N,url:Q})}return v};
_.d8q=function(R){return _.iE({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:R}})};
x84=[[["ZnIwZTNhcHJpbWFyeSNxbDRiNzU=",null,null],[null,["cm93c2UtcmVzdWx0cy1yZW5kZXJlciNlazAyOWtlcGpnNmF5dGQtdHdvLWNvbHVtbi1i","ZSNtanFkdHF4ZG9hMjFzdHlsZS1zY29w"],null],["ZCN2Y216eHAxam96aWptYXN0aGVhZC1h",["cmVyI25pcTNyeHZvbTV4enl0ZC1yaWNoLWdyaWQtcmVuZGU="],null],[null,["cmVyI215MXJuYTk1MWN5OXl0ZC1yaWNoLWdyaWQtcmVuZGU=","ZSN0czIwb2Nja3J3djBzdHlsZS1zY29w"],null],[null,["bzJhZ2swMmM0MXl0ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXIjczI=","ZSNiZ3JwcDJoYmNiY2ZzdHlsZS1zY29w"],null],[null,["ZW5kZXJlciNrbzhsMGxob2tta255dGQtYWQtc2xvdC1y"],
null]],[["LWFkcyMxZ3k4dTZ3NzY5bjBwbGF5ZXI=",null,null]],[["cmlwdGlvbi1pbm5lciNwNGtiODB3enp4Y3ZkZXNj",null,null],[null,null,"YmZpaDF3MzkxOHhseXRkLW1lcmNoLXNoZWxmLXJlbmRlcmVyIw=="],["YW1haW4jbDh6Zmdpd2QzOXY=",["NHpmMGp4aHpnYjZpeXRkLW1lcmNoLXNoZWxmLXJlbmRlcmVyIw=="],null]]];FuF="#";Oyg=[];lKC=!1;_.U8g=["engagement-panel-ads"];kFo=new _.jF("updateSentimentBarStateCommand");_.EaK=new _.jF("showSurveyCommand");_.ty=new _.jF("changeMarkersVisibilityCommand");var qpK,XTE,pTr,D8E,A2C,cU;_.$8b=function(R,y){this.playerProvider_=R;this.actionSenderElement_=y;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.$8b.prototype.reset=function(){qpK(this);this.isUserPredictedAbsent_=!1};
qpK=function(R,y){!R.youThereData_||R.showWarningJob_||y!==void 0&&y||(_.FA("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.$I(),R.youThereData_,R.clientPlaybackNonce_),_.W3());_.WG.cancelJob(R.showWarningJob_);R.showWarningJob_=0;_.WG.cancelJob(R.showBlockingWarningJob_);R.showBlockingWarningJob_=0;_.WG.cancelJob(R.pausePlaybackJob_);R.pausePlaybackJob_=0;R.youThereData_=null;R.clientPlaybackNonce_=void 0;R.inYouThereFlow_=!1};
_.m8K=function(R,y){var u,v,Q;_.I(function(M){if(M.nextAddress==1)return R.reset(),M.yield(R.playerProvider_().getPlayerPromise(),2);u=M.yieldResult;R.clientPlaybackNonce_=u.getVideoData().cpn;R.youThereData_=y.configData.youThereData;if(!R.youThereData_)return M.return();if(R.youThereData_.triggerReason&&R.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.nka())return _.FA("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.$I(),R.youThereData_,R.clientPlaybackNonce_),M.return();v=R.youThereData_.promptDelaySec;
Q=u.getCurrentTime();R.showWarningJob_=_.WG.addLowPriorityJob(function(){return _.I(function(K){R.showWarningJob_=0;return K.yield(XTE(R),0)})},Math.max(v-Q,0)*1E3);
_.f$(M)})};
XTE=function(R){var y,u,v,Q,M,K;return _.I(function(h){if(h.nextAddress==1)return h.yield(R.playerProvider_().getPlayerPromise(),2);if(h.nextAddress!=3)return y=h.yieldResult,u=y.getCurrentTime(),h.yield(A2C(R),3);v=h.yieldResult;if(!v||!R.youThereData_)return h.return();if(_.f("check_user_lact_at_prompt_shown_time_on_web")&&(Q=parseInt(R.youThereData_.lactThresholdMs,10),_.QF()<Q))return _.FA("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.$I(),R.youThereData_,R.clientPlaybackNonce_),h.return();if(R.youThereData_.playbackPauseDelayMs<=
0)return D8E(R),h.return();!_.f("external_fullscreen")&&(M=_.ji())&&(R.ignoreFullscreenExitUserActivity_=!0,_.WG.addLowPriorityJob(function(){R.ignoreFullscreenExitUserActivity_=!1},2E3),_.J_(M));
R.youThereData_.showToastWarningPrompt&&(cU(R,R.youThereData_.showWarningActions),R.inYouThereFlow_=!0,_.FA("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.$I(),R.youThereData_,R.clientPlaybackNonce_,u),_.FA("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.$I(),R.youThereData_,R.clientPlaybackNonce_,u));K=0;R.youThereData_.blockingPromptDelayMs&&(K=R.youThereData_.blockingPromptDelayMs);R.showBlockingWarningJob_=_.WG.addLowPriorityJob(function(){return _.I(function(b){R.showBlockingWarningJob_=0;return b.yield(pTr(R),
0)})},K);
_.f$(h)})};
pTr=function(R){var y,u,v;return _.I(function(Q){if(Q.nextAddress==1)return Q.yield(A2C(R),2);y=Q.yieldResult;if(!R.youThereData_)return Q.return();y&&(R.youThereData_.showBlockingWarningAction&&(_.FA("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.$I(),R.youThereData_,R.clientPlaybackNonce_),(u=_.e(R.youThereData_.showBlockingWarningAction,_.TP))?cU(R,u.commands):cU(R,[R.youThereData_.showBlockingWarningAction]),R.inYouThereFlow_=!0),v=R.youThereData_.playbackPauseDelayMs,R.pausePlaybackJob_=
_.WG.addLowPriorityJob(function(){return _.I(function(M){R.pausePlaybackJob_=0;return M.yield(D8E(R),0)})},v));
_.f$(Q)})};
D8E=function(R){var y;return _.I(function(u){if(u.nextAddress==1)return u.yield(A2C(R),2);y=u.yieldResult;if(!R.youThereData_)return u.return();y&&(_.FA("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.$I(),R.youThereData_,R.clientPlaybackNonce_),cU(R,R.youThereData_.showPausedActions),R.inYouThereFlow_=!0);_.f$(u)})};
_.$8b.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var R=_.e(this.youThereData_.userActiveDuringFlowAction,_.TP);R?cU(this,R.commands):cU(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.FA("YOU_THERE_EVENT_TYPE_LACT_RESET",_.$I(),this.youThereData_,this.clientPlaybackNonce_),_.W3());qpK(this,!0)}_.tfy(this,!1)};
_.c2y=function(R){_.FA("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.$I(),R.youThereData_,R.clientPlaybackNonce_)};
A2C=function(R){var y,u;return _.I(function(v){if(v.nextAddress==1)return v.yield(R.playerProvider_().getPlayerPromise(),2);y=v.yieldResult;u=y.getPlayerState();return v.return(u==-1||u==1||u==3)})};
_.tfy=function(R,y){var u;_.I(function(v){if(v.nextAddress==1){if(R.isUserPredictedAbsent_==y)return v.jumpTo(0);R.isUserPredictedAbsent_=y;return v.yield(R.playerProvider_().getPlayerPromise(),3)}u=v.yieldResult;u.setUserEngagement(y);y&&_.FA("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.$I(),R.youThereData_,R.clientPlaybackNonce_);_.f$(v)})};
cU=function(R,y){if(_.f("handle_service_request_actions")||_.f("kevlar_youthere_service_endpoint_actions_killswitch"))_.wr(R.actionSenderElement_,y,R.actionSenderElement_);else{y=_.V(y);for(var u=y.next();!u.done;u=y.next())u=u.value,u.commandMetadata&&u.commandMetadata.webCommandMetadata&&u.commandMetadata.webCommandMetadata.sendPost?_.Fh(R.actionSenderElement_,[u]):_.wr(R.actionSenderElement_,[u],R.actionSenderElement_)}};var aKy;var Sp4;var aw=function(){var R=_.W.apply(this,arguments)||this;R.systemIcons=_.f("kevlar_system_icons");R.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return R};
_.O(aw,_.W);aw.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);_.hw(this.hostElement).querySelector("#like-bar").style.width=R+"%"}};
aw.prototype.handleUpdateSentimentBarStateCommand=function(R){this.data&&this.set("data.likeStatus",_.e(R,kFo).likeStatus)};
aw.prototype.observeLikeStatus=aw.prototype.observeLikeStatus;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],aw.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],aw.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],aw.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],aw.prototype,"activated",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],aw.prototype,"systemIcons",void 0);_.A([_.e0("data.likeStatus"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],aw.prototype,"observeLikeStatus",null);_.A([_.q({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],aw);
_.m(aw,"ytd-sentiment-bar-renderer",function(){if(Sp4!==void 0)return Sp4;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Sp4=R},{mode:1});var Ypo;var Sr=function(){var R=_.W.apply(this,arguments)||this;R.small=!0;return R};
_.O(Sr,_.W);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Sr.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Sr.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Sr.prototype,"small",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],Sr);
_.m(Sr,"ytd-video-view-count-renderer",function(){if(Ypo!==void 0)return Ypo;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Ypo=R},{mode:_.TN("kevlar_poly_si_batch_j080")?1:2});var Ym=function(){var R=_.W.apply(this,arguments)||this;R.infoFormattedStrings=[];R.wrapVideoActions=_.f("kevar_watch_wrap_video_actions");R.hideSentimentBar=_.f("kevlar_watch_hide_sentiment_bar");R.actionMap={};return R};
_.O(Ym,_.W);_.J=Ym.prototype;_.J.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.f("web_modern_buttons"),forceIconButton:!_.f("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.J.dataChanged=function(){_.f("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.J.computeInfoFormattedStrings=function(R){if(!R)return[];var y=[];R.dateText&&y.push(R.dateText);R.stationName&&y.push(R.stationName);R.rating&&y.push(R.rating);R.startEndTimeTemplate&&R.startTimeUtcMillis&&R.endTimeUtcMillis&&y.push(_.ye(_.k6m(_.u7(R.startEndTimeTemplate),Number(R.startTimeUtcMillis),Number(R.endTimeUtcMillis))));R.upNextProgramText&&y.push(R.upNextProgramText);return y};
_.J.scheduleInitialUpdatedMetadataRequest=function(){var R,y=(R=this.data)==null?void 0:R.updatedMetadataEndpoint;if(y){var u;R=Number((u=_.e(y,_.fX8))==null?void 0:u.initialDelayMs);u=isNaN(R)?250:R;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),u)}};
_.J.setSentimentBarWidth=function(){var R=this;_.gn(this,function(){var y=_.hw(R.hostElement).querySelector("ytd-menu-renderer");if(y){y=y.topLevelButtons;for(var u=0,v=0;v<y.length;v++){var Q=y[v],M=R.get("toggleButtonSupportedData.toggleButtonIdData.id",Q.data);if(M==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||M==="TOGGLE_BUTTON_ID_TYPE_LIKE")u+=Q.clientWidth+8;else break}u&&(R.sentiment.style.width=u-8+" px")}})};
_.J.fetchUpdatedMetadata=function(R){var y;R&&(y={continuation:R});var u;(R=(u=this.data)==null?void 0:u.updatedMetadataEndpoint)&&_.ua().resolve(_.jX).resolveCommand(R,{form:Object.assign({},y,{element:this.hostElement})})};
_.J.onYtServiceRequestSent=function(R,y){y.endpoint&&_.e(y.endpoint,_.YY)&&(this.hasUpdateSentimentBarStateCommands()&&!_.f("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.e(y.endpoint,_.YY).status),this.setSentimentBarWidth())};
_.J.hasUpdateSentimentBarStateCommands=function(){var R,y,u,v,Q=(v=(R=this.data)==null?void 0:(y=R.videoActions)==null?void 0:(u=y.menuRenderer)==null?void 0:u.topLevelButtons)!=null?v:[];R=_.V(Q);for(y=R.next();!y.done;y=R.next()){y=y.value;Q=v=u=void 0;var M=(u=y.toggleButtonRenderer)==null?void 0:(v=u.toggleButtonSupportedData)==null?void 0:(Q=v.toggleButtonIdData)==null?void 0:Q.id;if(M==="TOGGLE_BUTTON_ID_TYPE_LIKE"||M==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){v=u=void 0;y=(v=_.e((u=y.toggleButtonRenderer)==
null?void 0:u.defaultServiceEndpoint,_.TP))==null?void 0:v.commands;if(!y)break;y=_.V(y);for(u=y.next();!u.done;u=y.next())if(_.e(u.value,kFo))return!0}}return!1};
_.J.onYtServiceRequestCompleted=function(R,y){var u;(R=(u=y.data)==null?void 0:u.loggingDirectives)&&_.zyc(_.GN(),R);this.get("continuation.timedContinuationData",y.data)&&this.data&&this.data.updatedMetadataEndpoint&&(y=y.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,y.continuation),y.timeoutMs))};
_.J.computeHasDateText=function(R){return!!R&&!!R.dateText};
_.RR.Object.defineProperties(Ym.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var R,y,u,v;return!((v=(R=this.data)==null?void 0:(y=R.videoActions)==null?void 0:(u=y.menuRenderer)==null?void 0:u.flexibleItems)==null||!v.length)}}});
Ym.prototype.onYtServiceRequestCompleted=Ym.prototype.onYtServiceRequestCompleted;Ym.prototype.onYtServiceRequestSent=Ym.prototype.onYtServiceRequestSent;Ym.prototype.dataChanged=Ym.prototype.dataChanged;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Ym.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Ym.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Ym.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.VE.YtTaskEmitterBehavior),_.p("design:type",Object)],Ym.prototype,"ytTaskEmitterBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Ym.prototype,"data",void 0);_.A([_.r({computed:"computeInfoFormattedStrings(data)"}),_.p("design:type",Array)],Ym.prototype,"infoFormattedStrings",void 0);
_.A([_.r({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],Ym.prototype,"hasDateText",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Ym.prototype,"wrapVideoActions",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Ym.prototype,"hideSentimentBar",void 0);_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Ym.prototype,"flexMenuEnabled",null);
_.A([_.O7("#sentiment"),_.p("design:type",Object)],Ym.prototype,"sentiment",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ym.prototype,"dataChanged",null);_.A([_.fu("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.z3]),_.p("design:returntype")],Ym.prototype,"onYtServiceRequestSent",null);
_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Mp]),_.p("design:returntype")],Ym.prototype,"onYtServiceRequestCompleted",null);
_.m(Ym,"ytd-video-primary-info-renderer",function(){if(aKy===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);aKy=R}R=aKy;return R},{mode:1});var Lu2;var LM=function(){var R=_.W.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};
_.O(LM,_.W);_.J=LM.prototype;_.J.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"}}}};
_.J.dataChanged=function(){var R;this.descriptionToggled=!((R=this.data)==null||!R.defaultExpanded);var y;this.collapsed=this.descriptionAlwaysCollapsed||!((y=this.data)==null?0:y.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.$6(110509);this.showLessClientVe=_.$6(110510);R=_.$I();y=_.Ef();R&&y&&_.Si(R,y,[this.showMoreClientVe,this.showLessClientVe])};
_.J.onYtExpanderMoreTapped=function(){var R,y=(R=this.data)==null?void 0:R.showMoreCommand;y&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(y);(R=_.$I())&&this.showMoreClientVe&&_.zP(R,this.showMoreClientVe)};
_.J.onYtExpanderLessTapped=function(){var R=_.$I();R&&this.showLessClientVe&&_.zP(R,this.showLessClientVe);var y;(R=(y=this.data)==null?void 0:y.showLessCommand)&&this.componentBehavior.resolveCommand(R)};
_.J.handleUpdateDateTextAction=function(R){this.data&&this.data.dateText&&this.set("data.dateText",_.e(R,_.Qbo).dateText)};
_.J.handleUpdateDescriptionAction=function(R){if(R=_.e(R,_.xJ5))R.isEmpty||!R.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.pk(R.description)):this.set("data.description",R.description)};
_.J.onYtChangeEngagementPanelVisibilityAction=function(R){if(_.f("web_structured_description_show_more")||_.f("web_engagement_panel_open_description")){var y,u=(y=_.e(R,_.yt5))==null?void 0:y.targetId,v;R=((v=_.e(R,_.yt5))==null?void 0:v.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";u==="engagement-panel-structured-description"&&R&&(this.descriptionToggled=!0)}};
_.J.updateCollapsedFromBinding=function(R){this.collapsed=R.detail.value};
_.J.updateDescriptionToggledFromBinding=function(R){this.descriptionToggled=R.detail.value};
_.J.updateCanCollapseFromBinding=function(R){this.canCollapse=R.detail.value};
_.RR.Object.defineProperties(LM.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var R,y,u=(R=this.data)==null?void 0:(y=R.metadataRowContainer)==null?void 0:y.metadataRowContainerRenderer;return!!u&&!!u.rows&&u.rows.length>u.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var 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}}});
LM.prototype.onYtExpanderLessTapped=LM.prototype.onYtExpanderLessTapped;LM.prototype.onYtExpanderMoreTapped=LM.prototype.onYtExpanderMoreTapped;LM.prototype.dataChanged=LM.prototype.dataChanged;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],LM.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],LM.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],LM.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],LM.prototype,"componentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],LM.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Boolean)],LM.prototype,"collapsed",void 0);_.A([_.r(),_.p("design:type",Boolean)],LM.prototype,"descriptionToggled",void 0);
_.A([_.r(),_.p("design:type",Boolean)],LM.prototype,"canCollapse",void 0);_.A([_.r(),_.p("design:type",Object)],LM.prototype,"subscribeButtonData",void 0);_.A([_.r(),_.p("design:type",Number)],LM.prototype,"descriptionCollapsedHeight",void 0);_.A([_.r(),_.p("design:type",Object)],LM.prototype,"structuredDescriptionContentRenderer",void 0);_.A([_.r({value:function(){return _.f("web_watch_description_always_collapsed")}}),
_.p("design:type",Boolean)],LM.prototype,"descriptionAlwaysCollapsed",void 0);_.A([_.O7("#description"),_.p("design:type",HTMLDivElement)],LM.prototype,"description",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],LM.prototype,"dataChanged",null);_.A([_.fu("yt-expander-more-tapped"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],LM.prototype,"onYtExpanderMoreTapped",null);
_.A([_.fu("yt-expander-less-tapped"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],LM.prototype,"onYtExpanderLessTapped",null);_.A([_.G("data.metadataRowContainer"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],LM.prototype,"metadataCollapsible",null);_.A([_.G("data","structuredDescriptionContentRenderer"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],LM.prototype,"hasInlineStructuredDescription",null);
_.A([_.G("data.attributedDescription"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],LM.prototype,"hasAttributedDescription",null);_.A([_.G("hasInlineStructuredDescription","collapsed"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],LM.prototype,"loadStructuredDescription",null);_.A([_.G("data","structuredDescriptionContentRenderer","collapsed"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],LM.prototype,"showInlineStructuredDescription",null);
_.A([_.G("data","hasInlineStructuredDescription","metadataCollapsible"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],LM.prototype,"descriptionAlwaysCollapsible",null);
_.m(LM,"ytd-video-secondary-info-renderer",function(){if(Lu2===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);Lu2=R}R=Lu2;return R},{mode:2});var snK;var s3=function(){return _.W.apply(this,arguments)||this};
_.O(s3,_.W);s3.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:_.f("web_modern_buttons"),forceIconButton:!_.f("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
s3.prototype.activate=function(R){R.appendTo(this.player);R.getPlayerPromise().then(function(y){y.setMinimized(!0)});
this.active=!0};
s3.prototype.deactivate=function(){var R=this.player.firstElementChild;R.getPlayerPromise().then(function(y){y.setMinimized(!1)});
this.active=!1;return R};
s3.prototype.onScrollUpTap=function(){var R=_.ua().resolve(_.iD).getCurrentPage();R&&R.setScrollTop(0)};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],s3.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],s3.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],s3.prototype,"componentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],s3.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],s3.prototype,"active",void 0);
_.A([_.r({reflectToAttribute:!0,value:function(){return _.f("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.p("design:type",Boolean)],s3.prototype,"darkLaunch",void 0);_.A([_.O7("#player"),_.p("design:type",HTMLDivElement)],s3.prototype,"player",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],s3);
_.m(s3,"ytd-miniplayer-bar-renderer",function(){if(snK!==void 0)return snK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return snK=R},{mode:1});_.h6(_.Jd(function(R){var y=_.sh("script");_.ny(function(){var u;if(u=JSON)u=Wug(R.data()),u=_.LK(JSON.stringify(u).replace(/</g,"\\u003C"));var v=R.data(),Q=_.u7(v.title).trim().length===0,M=!v.publishDate||v.publishDate.trim().length===0,K,h,b,N,T=!((K=v.thumbnail)==null?0:(h=K.thumbnails)==null?0:h.length)||!((b=v.thumbnail)==null?0:b.thumbnails[0].url)||((N=v.thumbnail)==null?void 0:N.thumbnails[0].url.trim().length)===0;y.value&&u&&!(Q||M||T)&&_.zB(y.value,u)},"I9AhLd");
return _.F("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.F("script",{el:y,type:"application/ld+json"}))},"ak"),"player-microformat-renderer",{props:{data:_.IC}});
}catch(e){_._DumpException(e)}
try{
var ulK,Vfq;_.y2B=function(R){return R.watch.watchWindowSize};
ulK=function(R,y,u,v){if(R.isLockupToWatchTransitionEnabled){if(y){var Q={};R.viewTransitionCoordinator.registerElement(y,(Q["lockup-to-watch"]="player-lockup-to-watch",Q["watch-next-appears"]="player-watch-next-loaded",Q))}u&&(y={},R.viewTransitionCoordinator.registerElement(u,(y["lockup-to-watch"]="below-lockup-to-watch",y["watch-next-appears"]="below-watch-next-loaded",y)));v&&(u={},R.viewTransitionCoordinator.registerElement(v,(u["watch-next-appears"]="secondary-watch-next-loaded",u)))}};
_.vaE=function(R){return _.iE({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:R}})};
Vfq=function(R){_.Z0.call(this);var y=this;this.JSC$22886_watchApi=R;R=_.GD(_.Qe(),_.KOW,function(){Qnr(y)});
this.addOnDisposeCallback(R);R=_.GD(_.Qe(),_.y2B,function(){Qnr(y)});
this.addOnDisposeCallback(R);jnC(this);Mfy(this);J2o()};
_.O(Vfq,_.Z0);var jnC=function(R){var y=function(v){_.Qe().dispatch(_.lcC(v.matches))},u=window.matchMedia("(max-width: "+(999+_.sG())+"px)");
u.addListener(y);R.addOnDisposeCallback(function(){u.removeListener(y)});
y(u)},Mfy=function(R){R.JSC$22886_watchApi.registerActionHandler("yt-window-resized",function(){J2o()});
R.addOnDisposeCallback(function(){R.JSC$22886_watchApi.unregisterActionHandler("yt-window-resized")})},J2o=function(){var R=_.rw();
_.Qe().dispatch(_.iE({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:R.width,height:R.height}}}))},Qnr=function(R){var y;
_.I(function(u){if(u.nextAddress==1)return u.yield(R.JSC$22886_watchApi.playerApi,2);y=u.yieldResult;y.setSize(NaN,NaN);_.f$(u)})};var iyy=function(R){_.Z0.call(this);var y=_.ua().resolve(_.nC);ulK(y,R.getElement("PLAYER_CONTAINER"),R.getElement("BELOW_THE_PLAYER"),R.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var u=R.getElement("PLAYER_CONTAINER"),v=R.getElement("BELOW_THE_PLAYER"),Q=R.getElement("SECONDARY");y.isLockupToWatchTransitionEnabled&&(u&&_.gm(y.viewTransitionCoordinator,u),v&&_.gm(y.viewTransitionCoordinator,v),Q&&_.gm(y.viewTransitionCoordinator,Q))})};
_.O(iyy,_.Z0);_.mM=function(R){_.Nl.call(this);var y=this;this.rootElement=R;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return y.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(u){y.initOrDisposeActiveModules(u)}));
this.onAttached()};
_.O(_.mM,_.Nl);_.J=_.mM.prototype;_.J.getRoot=function(){return this.rootElement};
_.J.getElement=function(R){return this.rootElement.getElement(R)};
_.J.setPlayerResponse=function(R){this.playerResponse=R;this.publish("PLAYER_RESPONSE_UPDATED",R)};
_.J.getPlayerResponse=function(){return this.playerResponse};
_.J.setWatchNextResponse=function(R){this.watchNextResponse===R?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=R,this.publish("WATCH_NEXT_RESPONSE_UPDATED",R))};
_.J.getWatchNextResponse=function(){return this.watchNextResponse};
_.J.registerActionHandler=function(R,y){var u=this;if(_.f("web_watch_controller_reg_multiple_handlers_killswitch")){var v={};_.aN(_.c3.getInstance(),(v[R]=y,v),this.getRoot())}else this.actionHandlers.has(R)||(this.actionHandlers.set(R,[]),v={},_.aN(_.c3.getInstance(),(v[R]=function(){var Q=_.qy.apply(0,arguments);return(u.actionHandlers.get(R)||[]).map(function(M){return M.apply(null,_.P$(Q))})},v),this.getRoot())),this.actionHandlers.get(R).push(y)};
_.J.unregisterActionHandler=function(R){if(_.f("web_watch_controller_reg_multiple_handlers_killswitch")){var y={};_.Sx(_.c3.getInstance(),(y[R]=!0,y),this.getRoot())}else(y=this.actionHandlers.get(R))?(y.pop(),y.length===0&&(y={},_.Sx(_.c3.getInstance(),(y[R]=!0,y),this.getRoot()),this.actionHandlers.delete(R))):_.kT(new _.OL("Attempted to unregister an action handler which is not registered.",R))};
_.J.addPageDisposeJob=function(R){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.eTU(this.rootElement.pageDisposeJobs,R)};
_.J.removePageDisposeJob=function(R){this.rootElement.pageDisposeJobs&&_.m4(this.rootElement.pageDisposeJobs,R)};
_.J.dispatchEvent=function(R,y){_.Ko(this.rootElement,R,y)};
_.J.provideRenderingData=function(R,y){this.rootElement.provideRenderingData(R,y)};
_.J.scrollWatchTo=function(R,y){var u;(u=this.watchScrollManager)==null||u.scrollWatchTo(R,y)};
_.J.focusOnPlayer=function(){var R=this.getElement("PLAYER");_.gn(R,function(){if(R&&R.firstElementChild){var y=R.querySelector(".html5-video-player");y&&(_.JO(_.ua().resolve(_.Xj)),y.focus())}else _.kT(Error("Ao"))})};
_.J.updateCinematicFullscreenConfig=function(){if(_.f("web_cinematic_manager_redux_killswitch")){var R=!!this.rootElement.theater,y=!!this.rootElement.fullscreen,u;(u=this.watchCinematicManager)==null||_.dt(u,y,R)}};
_.J.subscribeToActiveChanged=function(R,y){y=y===void 0?!0:y;var u=_.GD(_.Qe(),_.ryP,function(v){R(v)});
y&&R(_.ryP(_.Qe().getState()));return u};
_.J.isActive=function(){return _.ryP(_.Qe().getState())};
_.J.onAttached=function(){var R=_.f("external_fullscreen");_.f("use_unified_flag_accessor")&&(R=_.ua().resolve(_.xyP).retriever.getFlag(_.x8c));(R||_.$B("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var Ku4=function(R){return R.getRoot().is==="ytd-watch-flexy"||R.getRoot().is==="ytd-watch-grid"},Ay=function(R){return R.getRoot().is==="ytd-watch-fixie"};
_.mM.prototype.initPersistentModules=function(){if(Ay(this)||Ku4(this)&&_.f("kevlar_watch_flexy_theater_manager")){var R=new _.rSr(this);_.bx(this,R)}R=new _.FaF(this);_.bx(this,R);R=new _.G6(this);_.bx(this,R);R=new _.$m(this);_.bx(this,R);R=new _.pYg(this);_.bx(this,R);R=new _.PU(this);_.bx(this,R);if(Ay(this)||Ku4(this)&&_.f("kevlar_watch_flexy_playlist_manager"))R=new _.a0o(this),_.bx(this,R);_.f("web_thumbnail_to_watch_transition")&&(R=new iyy(this),_.bx(this,R))};
_.mM.prototype.initOrDisposeActiveModules=function(R){R?(this.watchScrollManager=new _.XH(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.GlK(this)),this.activeModules.push(new _.UPg(this)),Ay(this)&&this.activeModules.push(new Vfq(this)),this.activeModules.push(new _.g7b(this)),this.activeModules.push(new _.q_(this)),(Ay(this)||_.f("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new _.qro(this)),this.activeModules.push(new _.klB(this)),
(Ay(this)||_.f("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.RCy(this)),(Ay(this)||_.f("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.aiF(this)),_.f("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.zSE(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.f("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.XYr(this)),_.f("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.hpK(this)),
R=_.f("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.f("kevlar_watch_flexy_comments_manager")&&!R&&this.activeModules.push(new _.JDy(this)),_.f("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.rt(this)),this.activeModules.push(new _.q6b(this)),this.activeModules.push(new _.PxK(this)),_.f("web_enable_timely_actions")&&this.activeModules.push(new _.D1K(this)),_.f("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.Kvb(this)),
_.f("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.ySr(this)),_.f("web_fullscreen_components")&&this.activeModules.push(new _.DP2(this)),_.f("web_player_rtr_ctrls")&&this.activeModules.push(new _.hS2(this))):(_.y7(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.mM.prototype.disposeInternal=function(){_.Nl.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.RR.Object.defineProperties(_.mM.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var fkm,eN,eGJ,lkM,Zaa,HaJ,OaZ,nAJ;fkm=function(){var R=_.Ho();R.info||(R.info={});return R.info};
eN=function(R){return Math.round(_.Po()+R)};
eGJ=function(){var R;if(_.f("csi_use_performance_navigation_timing")){var y,u,v,Q=_.rr==null?void 0:(R=_.rr.getEntriesByType)==null?void 0:(y=R.call(_.rr,"navigation"))==null?void 0:(u=y[0])==null?void 0:(v=u.toJSON)==null?void 0:v.call(u);Q?(Q.requestStart=eN(Q.requestStart),Q.responseEnd=eN(Q.responseEnd),Q.redirectStart=eN(Q.redirectStart),Q.redirectEnd=eN(Q.redirectEnd),Q.domainLookupEnd=eN(Q.domainLookupEnd),Q.connectStart=eN(Q.connectStart),Q.connectEnd=eN(Q.connectEnd),Q.responseStart=eN(Q.responseStart),
Q.secureConnectionStart=eN(Q.secureConnectionStart),Q.domainLookupStart=eN(Q.domainLookupStart),Q.isPerformanceNavigationTiming=!0,R=Q):R=_.rr.timing}else R=_.f("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.rr.timing)):_.rr.timing;return R};
lkM=function(){if(_.rr.getEntriesByType){var R=_.rr.getEntriesByType("paint");if(R=_.UP(R,function(u){return u.name==="first-paint"}))return eN(R.startTime)}var y;
_.f("csi_use_performance_navigation_timing")?y=_.rr.getEntriesByType("first-paint")[0].startTime:y=_.rr.timing.msFirstPaint;return y?Math.max(0,y):0};
Zaa=function(){var R=window.location.protocol,y=_.rr.getEntriesByType("resource");y=_.bo(y,function(u){return u.name.indexOf(R+"//fonts.gstatic.com/s/")===0});
(y=OaZ(y,function(u,v){return v.duration>u.duration?v:u}))&&y.startTime>0&&y.responseEnd>0&&(_.Wo("wffs",eN(y.startTime)),_.Wo("wffe",eN(y.responseEnd)))};
HaJ=function(R,y){R=document.querySelector(R);if(!R)return!1;var u="",v=R.nodeName;v==="SCRIPT"?(u=R.src,u||(u=R.getAttribute("data-timing-href"))&&(u=window.location.protocol+u)):v==="LINK"&&(u=R.href);_.Sy(document)&&R.setAttribute("nonce",_.Sy(document));return u?(R=_.rr.getEntriesByName(u))&&R[0]&&(R=R[0],u=_.Po(),_.Wo("rsf_"+y,u+Math.round(R.fetchStart)),_.Wo("rse_"+y,u+Math.round(R.responseEnd)),R.transferSize!==void 0&&R.transferSize===0)?!0:!1:!1};
_.l5=function(R,y){_.A7(function(){_.GP("").info.actionType=R;y&&_.kB("TIMING_AFT_KEYS",y);_.kB("TIMING_ACTION",R);var u=_.tHU(_.EB("TIMING_INFO",{}));Object.keys(u).length>0&&_.dr(u);u={isNavigation:!0,actionType:_.PkL(_.EB("TIMING_ACTION"))};var v=_.EB("PREVIOUS_ACTION");v&&(u.previousAction=_.PkL(v));if(v=_.EB("CLIENT_PROTOCOL"))u.httpProtocol=v;if(v=_.EB("CLIENT_TRANSPORT"))u.transportProtocol=v;(v=_.$I())&&v!=="UNDEFINED_CSN"&&(u.clientScreenNonce=v);v=_.pbT();if(v===1||v===-1)u.isVisible=!0;
v=_.eqc().loadType==="cold";var Q=fkm();v||(v=Q.yt_lt==="cold");if(v){u.loadType="cold";v=fkm();Q=eGJ();var M=_.Po(),K=_.EB("CSI_START_TIMESTAMP_MILLIS",0);K>0&&!_.f("embeds_web_enable_csi_start_override_killswitch")&&(M=K);M&&(_.Wo("srt",Q.responseStart),v.prerender!==1&&_.Eu8(M));v=lkM();v>0&&_.Wo("fpt",v);v=eGJ();v.isPerformanceNavigationTiming&&_.dr({performanceNavigationTiming:!0},void 0);_.Wo("nreqs",v.requestStart,void 0);_.Wo("nress",v.responseStart,void 0);_.Wo("nrese",v.responseEnd,void 0);
v.redirectEnd-v.redirectStart>0&&(_.Wo("nrs",v.redirectStart,void 0),_.Wo("nre",v.redirectEnd,void 0));v.domainLookupEnd-v.domainLookupStart>0&&(_.Wo("ndnss",v.domainLookupStart,void 0),_.Wo("ndnse",v.domainLookupEnd,void 0));v.connectEnd-v.connectStart>0&&(_.Wo("ntcps",v.connectStart,void 0),_.Wo("ntcpe",v.connectEnd,void 0));v.secureConnectionStart>=_.Po()&&v.connectEnd-v.secureConnectionStart>0&&(_.Wo("nstcps",v.secureConnectionStart,void 0),_.Wo("ntcpe",v.connectEnd,void 0));_.rr&&"getEntriesByType"in
_.rr&&Zaa();v=[];if(document.querySelector&&_.rr&&_.rr.getEntriesByName)for(var h in nAJ)nAJ.hasOwnProperty(h)&&(Q=nAJ[h],HaJ(h,Q)&&v.push(Q));if(v.length>0)for(u.resourceInfo=[],h=_.V(v),v=h.next();!v.done;v=h.next())u.resourceInfo.push({resourceCache:v.value})}_.dr(u);u=_.no();u.preLoggedGelInfos||(u.preLoggedGelInfos=[]);h=u.preLoggedGelInfos;u=_.Ojz();v=void 0;for(Q=0;Q<h.length;Q++)if(M=h[Q],M.loadType){v=M.loadType;break}if(_.eqc().loadType==="cold"&&(u.loadType==="cold"||v==="cold")){v=_.la4();
Q=_.no();Q=Q.gelTicks?Q.gelTicks:Q.gelTicks={};for(var b in v)if(!(b in Q))if(typeof v[b]==="number")_.Wo(b,_.U9(b));else if(_.f("log_repeated_ytcsi_ticks"))for(M=_.V(v[b]),K=M.next();!K.done;K=M.next())K=K.value,_.Wo(b.slice(1),K);b={};v=!1;h=_.V(h);for(Q=h.next();!Q.done;Q=h.next())v=Q.value,_.Al(u,v),_.Al(b,v),v=!0;v&&_.dr(b)}_.YbS(!0);b=_.EB("TIMING_ACTION");_.D6("ytglobal.timingready_")&&b&&_.QQz()&&_.Sbc()&&_.AA4()})()};
OaZ=function(R,y){return Array.prototype.reduce.call(R,y,{duration:0})};
nAJ={'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 Go7={};Go7.YtVisibilityRootBehavior=[_.o5i.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.R_(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.EB("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var R=_.EB("INNERTUBE_CLIENT_NAME")!=="WEB";_.f("kevlar_use_vimio_behavior")&&R&&_.ToL()}}];_.OA={};_.OA.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}}],
Go7.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.uD();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(R){var y=this;this.pageCount+=1;_.f("kevlar_use_vimio_behavior")&&(_.EB("INNERTUBE_CLIENT_NAME")==="WEB"?_.WG.addJob(function(){y.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(R)},
loadPage_:function(R){this.data=R},
ytPageBehaviorActiveObserver_:function(R){var y=this;_.f("kevlar_use_vimio_behavior")&&(R?_.EB("INNERTUBE_CLIENT_NAME")==="WEB"?_.WG.addJob(function(){y.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(R){if(!this.setScrollTopJobId_){var y=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){y.setScrollTopJobId_=0;var u=_.ua().resolve(_.yN(_.Xj));u&&_.JO(u);this.getPageScrollingElement().scrollTop=R}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.dx(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var Beg;var fa=function(){var R=_.W.apply(this,arguments)||this;R.playerListenerConfig=null;R.actionMap={"yt-show-watch-page-survey":"openSurvey"};return R};
_.O(fa,_.W);_.J=fa.prototype;_.J.dataChanged=function(){var R=this,y=_.I8();y&&y.getPlayerPromise().then(function(v){R.maybeRemovePlayerListeners(v)});
var u=this.data&&this.data.survey;u&&((u=(u=u.singleOptionSurveyRenderer||u.checkboxSurveyRenderer||u.multiStageSurveyRenderer)&&u.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(y,u):this.openSurvey())};
_.J.triggerWatchPageSurvey=function(R,y){var u=this,v,Q,M,K,h,b,N,T,x;return _.I(function(B){if(B.nextAddress==1)return R?B.yield(R.getPlayerPromise(),2):B.return();u.player=B.yieldResult;if(!u.player)return B.return();v={};Q=_.V(y);for(M=Q.next();!M.done;M=Q.next())K=M.value,h=_.V(u.createEventListenerPair(K)),b=h.next().value,N=h.next().value,T=b,x=N,T&&x&&(v[T]=x,u.ytPlayerListenerBehavior.listenToPlayerEvent(u.player,T,x));u.playerListenerConfig=v;_.f$(B)})};
_.J.createEventListenerPair=function(R){var y=R.playbackEventTrigger;return y?this.handlePlaybackTrigger(y):(R=R.watchTimeTrigger)?this.handleWatchTimeTrigger(R):[void 0,void 0]};
_.J.handleWatchTimeTrigger=function(R){var y=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var u=R.videoWatchFraction,v=R.watchTimeSec;return v&&u?["onVideoProgress",function(){y.player&&y.isWatchTimeConditionMet(y.player,u,v)&&y.showSurvey()}]:[void 0,
void 0]};
_.J.isWatchTimeConditionMet=function(R,y,u){var v=R.getProgressState(),Q=v.current-this.lastKnownPlaybackPosition;Q<5&&(this.accumulatedMediaTime+=Q);this.lastKnownPlaybackPosition=v.current;v=Math.round(this.accumulatedMediaTime/v.duration*1E3)/1E3;return R.getPresentingPlayerType&&R.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>u||v>y)};
_.J.handlePlaybackTrigger=function(R){var y=this;R=R.playbackEvent;if(R==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var u="onStateChange";var v=function(Q){Q===0&&y.showSurvey()}}else R==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(u="onVideoProgress",v=function(Q){y.player&&y.player.getPresentingPlayerType&&y.player.getPresentingPlayerType()===1&&Q&&y.showSurvey()}):R==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(u="onAdEnd",v=this.showSurvey);
return[u,v]};
_.J.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.J.openSurvey=function(){var R=this,y=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.TnV(!!y));_.WG.addJob(function(){R.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:y}})},0,0)};
_.J.maybeRemovePlayerListeners=function(R){if(this.playerListenerConfig){for(var y=_.V(Object.keys(this.playerListenerConfig)),u=y.next();!u.done;u=y.next())u=u.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(R,u,this.playerListenerConfig[u]);this.playerListenerConfig=null}};
fa.prototype.dataChanged=fa.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],fa.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.jc),_.p("design:type",Object)],fa.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.n(_.Ra.YtPlayerListenerBehavior),_.p("design:type",_.yH)],fa.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],fa.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.n(_.p6),_.p("design:type",Object)],fa.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],fa.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],fa.prototype,"playerListenerConfig",void 0);_.A([_.r({value:0}),_.p("design:type",Number)],fa.prototype,"lastKnownPlaybackPosition",void 0);_.A([_.r({value:0}),_.p("design:type",Number)],fa.prototype,"accumulatedMediaTime",void 0);_.A([_.r(),_.p("design:type",Object)],fa.prototype,"player",void 0);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],fa.prototype,"dataChanged",null);_.A([_.q({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],fa);
_.m(fa,"ytd-survey-trigger-renderer",function(){if(Beg!==void 0)return Beg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return Beg=R},{mode:1});
}catch(e){_._DumpException(e)}
try{
var bMa=new _.jF("promotedSparklesWebRenderer");var FMm=new _.jF("relatedChipCommand");var wU7;var Nt7;var wf=function(){return _.W.apply(this,arguments)||this};
_.O(wf,_.W);wf.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],wf.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],wf.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],wf.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],wf);
_.m(wf,"ytd-compact-tvfilm-entry-point-renderer",function(){if(Nt7!==void 0)return Nt7;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return Nt7=R},{mode:1});var TtI;var om7;var x_P;var NT=function(){return _.W.apply(this,arguments)||this};
_.O(NT,_.W);NT.prototype.ready=function(){this.initializeDefs()};
NT.prototype.initializeDefs=function(){var R=this.meta.byKey("yt-icons"),y=_.hw(R).querySelector("#star"),u=_.hw(R).querySelector("#star_half");R=_.hw(R).querySelector("#star_border");y&&this.defs.appendChild(y.cloneNode(!0));u&&this.defs.appendChild(u.cloneNode(!0));R&&this.defs.appendChild(R.cloneNode(!0))};
NT.prototype.percentChanged=function(){for(var R=this.rating;R.firstChild;)R.removeChild(R.firstChild);var y=Math.round(this.percent/10);R=Math.floor(y/2);y%=2;var u=5-R-y;this.appendStars("star",R,0);this.appendStars("star_half",y,R);this.appendStars("star_border",u,R+y)};
NT.prototype.appendStars=function(R,y,u){for(var v=0;v<y;v++){var Q=(18+this.spacing)*(v+u),M=document.createElementNS("http://www.w3.org/2000/svg","use");_.Sp8(M,"#"+R);M.setAttribute("x",""+Q);M.setAttribute("y","0");this.rating.appendChild(M)}};
NT.prototype.percentChanged=NT.prototype.percentChanged;_.A([_.O7("#defs"),_.p("design:type",HTMLElement)],NT.prototype,"defs",void 0);_.A([_.O7("#rating"),_.p("design:type",HTMLElement)],NT.prototype,"rating",void 0);_.A([_.r(),_.p("design:type",Number)],NT.prototype,"percent",void 0);_.A([_.r({value:6}),_.p("design:type",Number)],NT.prototype,"spacing",void 0);_.A([_.r({value:_.Pb.create("iron-meta",{type:"iconset"})}),_.p("design:type",_.UD)],NT.prototype,"meta",void 0);
_.A([_.e0("percent"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],NT.prototype,"percentChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-ratings"})],NT);
_.m(NT,"ytd-ratings",function(){if(x_P!==void 0)return x_P;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return x_P=R},{mode:1});var Te=function(){return _.W.apply(this,arguments)||this};
_.O(Te,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Te.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Te.prototype,"data",void 0);_.A([_.q({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],Te);
_.m(Te,"ytd-offer-review-renderer",function(){if(om7!==void 0)return om7;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return om7=R},{mode:1});var ou=function(){var R=_.W.apply(this,arguments)||this;R.badges=[{textBadge:{label:_.ye("CC")}}];return R};
_.O(ou,_.W);_.J=ou.prototype;_.J.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.J.dataChanged=function(){var R=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(R&&R.commandMetadata&&_.e(R.commandMetadata,_.Ec)&&_.e(R.commandMetadata,_.Ec).fireAutomatically)_.ua().resolve(_.jX).resolveCommand(R,{form:{element:this.hostElement}});else{var y;R&&((y=_.e(R,_.Ec))==null?0:y.fireAutomatically)&&_.ua().resolve(_.jX).resolveCommand(R,{form:{element:this.hostElement}})}};
_.J.isEmptyContent=function(R){return this.isStorefrontEntryPointEmpty(R)&&this.shouldHideOfferModule(R)};
_.J.isStorefrontEntryPointEmpty=function(R){return!R||!R.storefrontEntryPoint};
_.J.shouldHideOfferModule=function(R){return!!R.hideVideoDetails};
_.J.isOfferModuleNavigationInactive=function(R){return!R.navigationEndpoint&&!R.serviceEndpoint};
_.J.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.ua().resolve(_.jX).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
ou.prototype.dataChanged=ou.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ou.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],ou.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ou.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.p("design:type",Boolean)],ou.prototype,"hidden",void 0);
_.A([_.r(),_.p("design:type",Object)],ou.prototype,"badges",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ou.prototype,"dataChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],ou);
_.m(ou,"ytd-movie-offer-module-renderer",function(){if(TtI!==void 0)return TtI;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return TtI=R},{mode:1});var BtV;var xK=function(){return _.W.apply(this,arguments)||this};
_.O(xK,_.W);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],xK.prototype,"componentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],xK.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],xK);
_.m(xK,"ytd-media-masthead-renderer",function(){if(BtV!==void 0)return BtV;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return BtV=R},{mode:1});var fDm;_.h6(_.WJV,"course-metadata-view-model",{props:{data:_.IC,isOverlay:_.IC}});var Bn=function(){var R=_.W.apply(this,arguments)||this;R.isMetadataVisible=!1;R.modernPanels=_.f("kevlar_watch_modern_panels");R.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return R};
_.O(Bn,_.W);_.J=Bn.prototype;
_.J.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"}}}}};
_.J.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.J.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.J.expanderChanged=function(){var R;if((R=this.data)==null?0:R.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.J.isExpandButtonToggled=function(){var R,y;return(y=_.e((R=this.data)==null?void 0:R.expandMetadataButton,_.EC))==null?void 0:y.isToggled};
_.J.onVisibilityButtonClick=function(){var R;if((R=this.data)==null?0:R.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.J.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
Bn.prototype.expanderChanged=Bn.prototype.expanderChanged;Bn.prototype.dataChanged=Bn.prototype.dataChanged;Bn.prototype.descriptionChanged=Bn.prototype.descriptionChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Bn.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Bn.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n([_.bW.YtActionHandlerBehavior]),_.p("design:type",Object)],Bn.prototype,"actionHandlerBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],Bn.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],Bn.prototype,"isMetadataVisible",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Bn.prototype,"modernPanels",void 0);_.A([_.O7("#expander"),_.p("design:type",Object)],Bn.prototype,"expander",void 0);_.A([_.e0("data.description"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Bn.prototype,"descriptionChanged",null);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Bn.prototype,"dataChanged",null);_.A([_.e0("isMetadataVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Bn.prototype,"expanderChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],Bn);
_.m(Bn,"ytd-tvfilm-offer-module-renderer",function(){if(fDm!==void 0)return fDm;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return fDm=R},{mode:2});var eMa;var ff=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return R};
_.O(ff,_.W);ff.prototype.dataChanged=function(){this.hostElement.hidden=!1};
ff.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
ff.prototype.onThumbnailTap=function(R){this.data&&this.data.serviceEndpoint&&(_.ua().resolve(_.jX).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),R.stopPropagation())};
ff.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
ff.prototype.dataChanged=ff.prototype.dataChanged;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],ff.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ff.prototype,"rendererBehaviors",void 0);_.A([_.n([_.bW.YtActionHandlerBehavior]),_.p("design:type",Object)],ff.prototype,"actionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ff.prototype,"data",void 0);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ff.prototype,"dataChanged",null);_.A([_.q({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],ff);
_.m(ff,"ytd-unlimited-offer-module-renderer",function(){if(eMa!==void 0)return eMa;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return eMa=R},{mode:1});var lDJ;var OM8;var ej=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return R};
_.O(ej,_.W);ej.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
ej.prototype.handleRelatedChipCommand=function(R){R=_.e(R,FMm);var y=R.contents;y?_.h_(this.hostElement,"yt-item-section-replace-action",[y,R.targetSectionIdentifier]):_.h_(this.hostElement,"yt-item-section-continuation-action",[R.continuationData,R.targetSectionIdentifier])};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],ej.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ej.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],ej.prototype,"actionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ej.prototype,"data",void 0);_.A([_.pu({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],ej);
_.m(ej,"yt-related-chip-cloud-renderer",function(){if(OM8===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;lDJ===void 0&&(lDJ=document.createElement("template"));var v=lDJ;u.call(y,v.content.cloneNode(!0),R.content.firstChild);OM8=R}R=OM8;return R},{mode:2});var ls=function(){var R=_.W.apply(this,arguments)||this;R.isTwoColumns=!0;R.hideOfferModules=!1;R.watchFeedBigThumbs=_.f("kevlar_watch_feed_big_thumbs");R.watchFeedBigThumbsOnLockup=_.f("web_watch_next_big_thumbs");R.watchNextGridHideChips=_.f("kevlar_watch_grid_hide_chips");R.eligibleToSwitchToGrid=_.f("web_watch_eligible_to_switch_to_grid");R.disableShortsShelfHeightOverride=_.f("web_shorts_wn_shelf_ratio_tuning");R.isWatchNextGrid=!1;R.reuseComponents=!_.f("kevlar_watch_grid");R.nextContinuation=
{continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return R};
_.O(ls,_.W);_.J=ls.prototype;
_.J.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]",
useBigThumbs:"[[watchFeedBigThumbsOnLockup]]"}},reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.f("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}}};
_.J.getItemsPath=function(){return"data.results"};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.J.created=function(){this.ytLazyListBehavior.initialCount=1};
_.J.ready=function(){_.oX(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%"})};
_.J.resultsChanged=function(){if(this.data&&this.data.results){for(var R=this.data.results,y=null,u=null,v=0;v<R.length;v++)R[v].relatedChipCloudRenderer?y=R[v].relatedChipCloudRenderer:R[v].itemSectionRenderer&&(u=R[v].itemSectionRenderer);if(y&&u)for(this.set("data.continuations",[]),R=_.e(y.content,_.Ycw).chips,y=0;y<R.length;y++)if(v=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",R[y]),v.loadCached||!v.contents){v.contents=u.contents;break}}};
_.J.dataChanged=function(){var R=this,y;if((y=this.data)!=null&&y.results&&this.hasAllowedInstreamAd(this.playerData)){if(y=this.data.results.filter(function(h){return!!h.promotedSparklesWebRenderer})){for(var u=0;u<y.length;u++){var v=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",y[u]);
if(v)for(var Q=0;Q<v.length;Q++)v[Q]&&v[Q].baseUrl&&_.D1(v[Q].baseUrl)}this.set("data.results",this.data.results.filter(function(h){return!h.promotedSparklesWebRenderer}))}if(y=this.data.results.filter(function(h){return!!R.getSparklesAd(h)})){y=_.V(y);
for(Q=y.next();!Q.done;Q=y.next())if(v=u=void 0,Q=(u=this.getSparklesAd(Q.value))==null?void 0:(v=u.errorCommand)==null?void 0:v.loggingUrls)for(u=_.V(Q),v=u.next();!v.done;v=u.next())(v=v.value)&&v.baseUrl&&_.D1(v.baseUrl);var M,K;this.set("data.results",(M=this.data)==null?void 0:(K=M.results)==null?void 0:K.filter(function(h){return!h.adSlotRenderer}))}}};
_.J.getSparklesAd=function(R){var y,u;R=_.e((y=R.adSlotRenderer)==null?void 0:(u=y.fulfillmentContent)==null?void 0:u.fulfilledLayout,_.REL);return _.e(R==null?void 0:R.renderingContent,bMa)};
_.J.hasAllowedInstreamAd=function(R){R=this.get("adPlacements",R)||[];for(var y=0;y<R.length;y++){var u=this.get("adPlacementRenderer.config.adPlacementConfig",R[y]);if(u&&u.suppressDisplayAd)return!0}return!1};
_.J.computeHideUnlimitedOfferModule=function(R,y){return R&&R.offerModule&&y&&R.offerModule.unlimitedOfferModuleRenderer&&R.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(y)?!0:!1};
_.J.hideUnlimitedOfferModuleChanged=function(){var R=_.hw(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");R&&(R.hidden=this.hideUnlimitedOfferModule)};
_.J.updateLockupContainerTypes=function(R){if(this.eligibleToSwitchToGrid){var y;(y=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||y.forEach(function(u){u.containerType=R})}};
_.J.computeHideTvfilmOfferModule=function(R,y){var u,v;return!!((R==null?0:(u=R.offerModule)==null?0:(v=u.tvfilmOfferModuleRenderer)==null?0:v.clientShouldSuppressIfCompanionAdDisplayed)&&y&&this.hasCompanionAds(y))};
_.J.hideTvfilmOfferModuleChanged=function(){var R=_.hw(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");R&&(R.hidden=this.hideTvfilmOfferModule)};
_.J.hasCompanionAds=function(R){R=this.get("adPlacements",R)||[];for(var y=0;y<R.length;y++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",R[y]))return!0;var u=void 0,v=void 0,Q=void 0;if(!_.f("web_watch_top_banner_companion_check_killswitch")&&((u=R[y])==null?0:(v=u.adPlacementRenderer)==null?0:(Q=v.renderer)==null?0:Q.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.J.hasSuppressedResults=function(R){return R==null?!0:R.filter(function(y){return!y.continuationItemRenderer&&!y.compactPromotedVideoRenderer&&!y.promotedSparklesWebRenderer}).length===0};
_.J.computeShowButton=function(R,y){return this.isWatchNextGrid?R:R||this.hasSuppressedResults(y)};
_.J.showButtonChanged=function(){if(this.isWatchNextGrid){var R=_.hw(this.hostElement).querySelector("ytd-rich-grid-renderer");R&&this.showButton!==null&&(R.continuationShowButton=this.showButton)}else{R=_.hw(this.hostElement).querySelector("yt-next-continuation");var y=_.hw(this.hostElement).querySelector("ytd-continuation-item-renderer"),u=_.hw(this.hostElement).querySelector("ytd-item-section-renderer");R&&(R.showButton=this.showButton);y&&(y.showButton=this.showButton);u&&(u.continuationShowButton=
this.showButton)}};
_.J.continuationTap=function(R){var y;if(((y=this.data)==null?void 0:y.continuations)!=null&&R.target.tagName==="TP-YT-PAPER-BUTTON")for(R=this.data.continuations,y=0;y<R.length;y++)R[y].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(R[y].nextContinuationData||{})};
_.J.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.CQ("shown-items-changed",this.shownItems))};
_.RR.Object.defineProperties(ls.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.watchFeedBigThumbsOnLockup?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.shownItems)==null||!R.some(function(y){return!!y.lockupViewModel||y.compactVideoRenderer}))}}});
ls.prototype.shownItemsChangedForBinding=ls.prototype.shownItemsChangedForBinding;ls.prototype.showButtonChanged=ls.prototype.showButtonChanged;ls.prototype.hideTvfilmOfferModuleChanged=ls.prototype.hideTvfilmOfferModuleChanged;ls.prototype.updateLockupContainerTypes=ls.prototype.updateLockupContainerTypes;ls.prototype.hideUnlimitedOfferModuleChanged=ls.prototype.hideUnlimitedOfferModuleChanged;ls.prototype.dataChanged=ls.prototype.dataChanged;ls.prototype.resultsChanged=ls.prototype.resultsChanged;
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ls.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],ls.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.K_.YtLazyListBehavior),_.p("design:type",Object)],ls.prototype,"ytLazyListBehavior",void 0);_.A([_.n(_.Cw.YtNextContinuationBehavior),_.p("design:type",Object)],ls.prototype,"ytNextContinuationBehavior",void 0);
_.A([_.n(_.gb),_.p("design:type",Object)],ls.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],ls.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ls.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],ls.prototype,"playerData",void 0);_.A([_.r({value:!0}),_.p("design:type",Boolean)],ls.prototype,"autoFill",void 0);_.A([_.r({value:60}),_.p("design:type",Number)],ls.prototype,"targetFramerate",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ls.prototype,"isTwoColumns",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ls.prototype,"hideOfferModules",void 0);_.A([_.r(),_.p("design:type",Object)],ls.prototype,"shownItems",void 0);_.A([_.r({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.p("design:type",Boolean)],ls.prototype,"hideUnlimitedOfferModule",void 0);
_.A([_.r({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.p("design:type",Boolean)],ls.prototype,"hideTvfilmOfferModule",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ls.prototype,"watchFeedBigThumbs",void 0);_.A([_.r(),_.p("design:type",Object)],ls.prototype,"watchFeedBigThumbsOnLockup",void 0);_.A([_.r(),_.p("design:type",Object)],ls.prototype,"watchNextGridHideChips",void 0);_.A([_.r(),_.p("design:type",Object)],ls.prototype,"eligibleToSwitchToGrid",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ls.prototype,"disableShortsShelfHeightOverride",void 0);_.A([_.r({selector:_.aC,reflectToAttribute:!0}),_.p("design:type",Object)],ls.prototype,"isGridViewEnabled",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],ls.prototype,"showMoreButton",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ls.prototype,"isWatchNextGrid",void 0);
_.A([_.r({computed:"computeShowButton(showMoreButton, data.results)"}),_.p("design:type",Boolean)],ls.prototype,"showButton",void 0);_.A([_.GJ("data.results.*"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ls.prototype,"resultsChanged",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ls.prototype,"dataChanged",null);
_.A([_.e0("hideUnlimitedOfferModule"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ls.prototype,"hideUnlimitedOfferModuleChanged",null);_.A([_.G("isGridViewEnabled","containsLockups","data"),_.r({reflectToAttribute:!0}),_.p("design:type",Number),_.p("design:paramtypes",[])],ls.prototype,"lockupContainerType",null);
_.A([_.e0("lockupContainerType","data"),_.p("design:type",Function),_.p("design:paramtypes",[Number]),_.p("design:returntype")],ls.prototype,"updateLockupContainerTypes",null);_.A([_.e0("hideTvfilmOfferModule"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ls.prototype,"hideTvfilmOfferModuleChanged",null);_.A([_.e0("showButton"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ls.prototype,"showButtonChanged",null);
_.A([_.e0("shownItems"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ls.prototype,"shownItemsChangedForBinding",null);_.A([_.G("shownItems"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ls.prototype,"containsLockups",null);
_.m(ls,"ytd-watch-next-secondary-results-renderer",function(){if(wU7===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);wU7=R}R=wU7;return R},{mode:1});
}catch(e){_._DumpException(e)}
try{
var zCo=function(R){if((R==null?void 0:R.value)===void 0||R==null||!R.unit)return"initial";a:{switch(R.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var y="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":y="%";break a}y=void 0}return y?""+R.value+y:"initial"},gaE=new _.jF("shoppingContentLineItemViewModel");var C$o=_.Jd(function(R){var y=_.jb(R,{}).data;return _.F("yt-shopping-content-line-item-view-model",{class:_.Oy("ytShoppingContentLineItemViewModelHost")},_.F(_.QM,{text:function(){var u;return(u=y().text)==null?void 0:u.attributedString}}))},"bk");var R2o=_.Jd(function(R){R=_.jb(R,{});var y=R.data;return _.F("yt-shopping-content-line-view-model",{class:_.Oy("ytShoppingContentLineViewModelHost",R.className),style:_.P_({"--shopping-content-line-gap":function(){return y().itemGap?y().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return y().lineHeight?y().lineHeight+"px":void 0}})},_.F(_.eS,{each:function(){return(y().items||[]).map(function(u){return _.e(u,gaE)}).filter(function(u){return!!u})}},function(u){return _.F(C$o,{data:u})}))},"ck");_.h6(_.Jd(function(R){var y=_.jb(R,{}).data,u=function(){var Q;return((Q=y().image)==null?void 0:Q.width)||40},v=function(){var Q;
return((Q=y().image)==null?void 0:Q.height)||40};
return _.F("yt-shopping-timely-shelf-content-view-model",{class:_.Oy("ytShoppingTimelyShelfContentViewModelHost"),style:_.P_({"--shopping-timely-shelf-content-padding-top":function(){var Q;return zCo((Q=y().padding)==null?void 0:Q.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var Q;return zCo((Q=y().padding)==null?void 0:Q.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var Q;return zCo((Q=y().padding)==null?void 0:Q.start)},
"--shopping-timely-shelf-content-padding-end":function(){var Q;return zCo((Q=y().padding)==null?void 0:Q.end)}})},_.F(_.w,{cond:function(){var Q;
return(Q=y().image)==null?void 0:Q.image},
then:function(Q){return _.F(_.MR,{preserveHeight:!0,preserveWidth:!0,width:u,height:v,data:Q,alt:""})}}),_.F(_.mk,{data:function(){return y().avatar}},{avatarViewModel:_.XS}),_.F("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.F(_.mk,{data:function(){return y().line1}},{shoppingContentLineViewModel:function(Q){return _.F(R2o,{data:Q.data})}}),_.F(_.mk,{data:function(){return y().line2}},{shoppingContentLineViewModel:function(Q){return _.F(R2o,{data:Q.data})}})),_.F("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},
_.F(_.eS,{each:function(){var Q;
return(Q=y().button)!=null?Q:[]}},function(Q){return _.F(_.mk,{data:function(){return Q}},{buttonViewModel:_.fQ})})))},"dk"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.vR}});_.y7q={};
_.y7q.YtdWatchBehavior=[_.S.YtRendererBehavior,_.Ra.YtPlayerListenerBehavior,_.hX.YtRendererstamperBehavior,_.bW.YtActionHandlerBehavior,_.OA.YtPageBehavior,_.ZL.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},shoppingTimelyShelf:{type:Object,computed:"getShoppingTimelyShelf(data, shoppingTimelyShelfValue)"},offerModule:{type:Object},
engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},shoppingTimelyShelfValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,
computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},
theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.$B("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.f("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("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 _.$B("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerUnavailableFixedVisibility:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("web_watch_error_screen_fix")}},
playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,
value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isTwoColumnsInitialized:{type:Boolean,
value:!1},isSingleColumn:{type:Boolean,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,
value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.f("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,
computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded,liveChatPresentAndExpanded, playlistPanelExpanded, fullscreen, theater)"},
richItemMinWidth:{type:Number,value:function(){return _.JT("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.JT("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!_.f("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.f("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 _.f("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.f("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isSingleColumn)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.f("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.f("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("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 _.f("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("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 _.f("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"}}},shoppingTimelyShelf:{id:"shopping-timely-shelf",mapping:{shoppingTimelyShelfContentViewModel:"yt-shopping-timely-shelf-content-view-model"}},clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},
limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.Cq(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Cq(["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"||_.f("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(){_.f("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;_.f("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.f("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.$8b(function(){return _.KA(R)},this.hostElement);
this.pageDisposeJobs.push(function(){R.youThereManager_.reset()});
_.f("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){R.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.Nv;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",this.onAdStateChange_);this.playerEvents_.set("onStateChange",
this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;this.watchMetadata=void 0;_.f("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));_.f("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.BN(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){_.f("kevlar_watch_flexy_theater_manager")&&(this.theater=R,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(R){!_.f("kevlar_watch_while_v2")&&!_.f("web_watch_pip")||R||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(R){this.active!==void 0&&(this.fullscreen=R,_.f("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(R){this.active!==void 0&&(_.Ko(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.f("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.f("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 y=this;if(R)if(this.data===R){this.onPageLoadWithSameData_();var u;(u=this.watchController)==null||u.setWatchNextResponse(this.data)}else this.data=R;this.playlist&&_.E9({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.qQ("nw");this.loading=!1;_.Oh(_.WG,function(){y.initDclkstatus_();var v,Q=((v=y.player)==null?void 0:v.getVideoData().cpn)||"";_.fKy(function(M,K){_.ZNK(M,K,Q)})})},
onPageLoadWithSameData_:function(){_.f("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(_.f("kevlar_watch_frame0_loading_state")){var y,u,v;R=(y=this.loadingData)==null?void 0:(u=y.endpoint)==null?void 0:(v=u.watchEndpoint)==null?void 0:v.videoId;var Q;R&&(Q="https://i.ytimg.com/vi/"+R+"/frame0.jpg");_.hw(this.hostElement).querySelector("#player").style.backgroundImage=Q?"url("+Q+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var R=_.hw(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 y,u;(u=(y=this.watchMetadata).updateSentimentBarWidth)==
null||u.call(y);var v,Q;(Q=(v=this.watchMetadata).resize)==null||Q.call(v)}_.f("kevlar_watch_frame0_loading_state")&&(_.hw(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(R){var y=_.hw(this.hostElement).querySelector(R);y?_.VL(y,!1):_.kT(new _.OL("Overscroll monitor not found for component: ",R))},
removeSplitScrollMouseTrap:function(R){var y=_.hw(this.hostElement).querySelector(R);y?_.ih(y):_.kT(new _.OL("Disposal component for  overscroll monitoring not found: ",R))},
onLoadingChanged_:function(R){R?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.f("web_thumbnail_to_watch_transition")&&!_.AaM||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.f("web_thumbnail_to_watch_transition")&&!_.AaM||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(R){var y=this;R?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.WG.addLowPriorityJob(function(){y.onWindowResized_(_.rw(!0))})},
updateTheaterModeState_:function(R){if(!_.f("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&&_.U_J()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();_.f("web_watch_error_screen_fix")&&this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var R=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.f("external_fullscreen")&&this.fullscreen&&(R=!0);_.f("web_watch_error_screen_fix")&&(R=this.fullBleedPlayer);R=R?_.hw(this.hostElement).querySelector("#player-full-bleed-container"):_.hw(this.hostElement).querySelector("#player-container-inner");var y=this.getPlayerContainer(),u=_.f("kevlar_watch_while_v2")||_.f("web_watch_pip");y.parentElement!==R&&(u&&this.isMiniplayerActive()?
this.deactivateMiniplayerAndResetPlayer():(_.KA(this).appendTo(R,y),_.f("web_watch_error_screen_fix")||R.appendChild(_.hw(this.hostElement).querySelector("#error-screen"))))},
updateErrorScreenLocation:function(){var R=_.hw(this.hostElement).querySelector("#error-screen"),y=this.fullBleedPlayer?_.hw(this.hostElement).querySelector("#player-full-bleed-container"):_.hw(this.hostElement).querySelector("#player");R.parentElement!==y&&y.appendChild(R)},
deactivateMiniplayerAndResetPlayer:function(){var R=this;return _.I(function(y){if(y.nextAddress==1)return y.yield(_.ua().resolve(_.cZ).deactivate(),2);R.updatePlayerLocation();_.f$(y)})},
updateCinematicsLocation:function(){var R=this.getElement("CINEMATICS");if(R){var y=this.getCinematicsLocationContainer();R.parentElement!==y&&y.appendChild(R);var u;(u=this.watchController)==null||u.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.enableFullBleedSingleColumnDefaultPlayer&&this.isSingleColumn)?_.hw(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.hw(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(R,y,u){var v=document.documentElement.hasAttribute("dark"),Q=v&&_.f("web_cinematic_theater_mode"),M=v&&_.f("web_cinematic_fullscreen");v=!v&&this.cinematicLightTheme;return u||R&&Q||y&&M||(y||R)&&v},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var R=this,y;(y=this.watchController)==null||y.setWatchNextResponse(this.data);_.f("kevlar_watch_flexy_comments_manager")||this.initComments_();_.f("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.ua().resolve(_.S2).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,_.f("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.WG.addLowPriorityJob(function(){_.h_(R.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.f("web_watch_start_chat_in_theater_mode")){var u,v,Q;if((u=this.data)==null?0:(v=u.contents)==null?0:(Q=v.twoColumnWatchNextResults)==null?0:Q.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var M,K;((M=this.data)==null?0:(K=M.contents)==null?0:K.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(R){var y;(y=this.watchController)==null||y.setPlayerResponse(this.playerData);R&&R.playabilityStatus&&(y=this.isVideoPlayable_(R.playabilityStatus,this.getPlayerOverlays_(this.data)),R=this.isLiveStreamOffline_(R.playabilityStatus),y&&!R||_.gn(this,function(){_.qQ("pbu")}));
this.setPlayerAds_();_.h_(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(R,y){if((_.f("kevlar_watch_while_v2")||_.f("web_watch_pip"))&&this.playerData&&y)return this.playerData.videoDetails},
watchPageActiveChanged_:function(R){_.Qe().dispatch(_.vaE(this.active));R?this.activate_():this.deactivate_()},
attached:function(){var R=this;this.watchController=new _.mM(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);_.f("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var y=_.KA(this);_.f("kevlar_disable_prepare_player")||
y.preparePlayer();_.f("kevlar_watch_flexy_playlist_manager")||_.ua().resolve(_.S2).setPlayer(y);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();y={"--ytd-watch-flexy-scrollbar-width":_.sG()+"px"};this.is==="ytd-watch-grid"&&(y["--ytd-watch-flexy-sidebar-width"]=_.bYC+"px",y["--ytd-watch-grid-horizontal-page-margins"]=_.kK+"px",y["--ytd-watch-grid-columns-top-margins"]=_.KV4+"px",y["--ytd-watch-grid-min-player-height-medium"]="360px");!_.JT("kv_pl_mx_sz_ks")&&
_.JT("kevlar_watch_max_player_width")&&(y["--ytd-watch-flexy-max-player-width-wide-screen"]=_.FVy+"px");_.JT("kevlar_watch_flexy_metadata_height")&&(y["--ytd-watch-flexy-space-below-player"]=_.wK4+"px");this.safeUpdateStyles(y);_.f("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.Vf(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return R.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.hw(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var R=_.sG(),y=_.EY+R,u=y;this.fixedPanels&&(y+=_.bYC);var v=657+R;R=1327+R;_.hw(this.hostElement).querySelector("#two-column-query").query="(min-width: "+y+"px)";_.hw(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(v+"px), (min-height: 630px) and (min-width: ")+(y+"px) and (max-width: ")+(R+"px)");_.hw(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(R+"px)");
_.hw(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+u+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var R=_.hw(this.hostElement).querySelector("#miniplayer-bar").firstChild,y=this.squeezeback&&!_.f("web_watch_squeezeback_player_size_killswitch");return R&&R.active||this.theater||_.f("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||y||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.or(NaN,NaN):_.Hyy(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.Hyy(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.R_(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var R=this;this.onWindowResized_(_.rw());_.f("browse_skeleton_removal_on_watch_killswitch")||_.$B("IS_SHELL_LOAD")&&_.xb8();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var y=_.KA(this);y.addEventListener("yt-player-updated",_.BN(this,this.onPlayerUpdated_));y.getPlayerPromise().then(function(u){R.playerApiReady_(u)});
_.f("kevlar_watch_flexy_playlist_manager")||(y=_.ua().resolve(_.S2),_.f("kevlar_watch_observe_playlist_navigations_killswitch")&&y.addEventListener("yt-navigate",_.BN(this,this.onYtNavigate_)),y.setPlaylistComponent(_.hw(this.hostElement).querySelector("#playlist")),y.addEventListener("yt-playlist-data-updated",_.BN(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.WG.addLowPriorityJob(function(){_.Ko(R.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.KA(this).removeEventListener("yt-player-updated",_.BN(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.f("kevlar_watch_flexy_playlist_manager")){var R=_.ua().resolve(_.S2);_.f("kevlar_watch_observe_playlist_navigations_killswitch")&&R.removeEventListener("yt-navigate",_.BN(this,this.onYtNavigate_));
R.cancelVideoSkip();R.removeEventListener("yt-playlist-data-updated",_.BN(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.f("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Ko(this.hostElement,"yt-autonav-pause-player",!1);R=_.ji();_.f("kevlar_exit_fullscreen_leaving_watch")&&R&&_.J_(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},
getShoppingTimelyShelf:function(){return this.shoppingTimelyShelfValue},
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,y){y.hasComments?y.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):y.locationRetrieved("/related_ajax",void 0);R.stopPropagation()},
onSubscriptionChanged_:function(R,y){this.player&&(y?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.l5("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.hw(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.hw(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_();_.f("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.f("kevlar_unified_player")||_.f("kevlar_player_new_bootstrap_adoption"))&&_.g$()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(R,y){y=y===void 0?!0:y;_.ji()&&_.f("external_fullscreen")&&_.J_(document.documentElement);this.theaterRequested_=R;y&&_.B5("wide",R?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.Ik(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Ko(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){_.Eh(R,typeof this.player),this.player&&_.Eh(R,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var R;((R=this.player)==null?0:R.isFullscreen())?this.player.toggleFullscreen():_.Ik(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(R,y){return this.loading?y:!!Object.keys(R).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(R){if(R){R=_.V(R);for(var y=R.next();!y.done;y=R.next())y=y.value,y.youThereRenderer&&_.m8K(this.youThereManager_,y.youThereRenderer)}},
setPlaylistData_:function(R){return R||{}},
userEngagementConfigDataChanged_:function(R){if(R)if(R.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var y=this.youThereManager_;_.QF()<R.lowEngagementThresholdMs||_.tfy(y,!0)}else R.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.Ik(this.hostElement,"yt-autonav-pause-user-engagement",[R])},
isPlayerUnavailable_:function(R,y,u){return!!R&&!this.isVideoPlayable_(R,u)&&!y},
getPlayerOverlays_:function(R){return(R==null?void 0:R.playerOverlays)||null},
isVideoPlayable_:function(R,y){if(!R)return!1;var u=R.status==="OK"||R.status==="LIVE_STREAM_OFFLINE",v=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",R)||this.get("errorScreen.ypcTrailerRenderer",R);R=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",R);var Q;y=y==null?void 0:(Q=y.playerOverlayRenderer)==null?void 0:Q.gatedActionsOverlayRenderer;return!!u||!!v||!!R||!!y},
hasWatchNextResponseErrorRenderer:function(R){var y=this.getPageContents(R),u,v,Q,M,K;return!(R==null?0:(u=R.contents)==null?0:(v=u.twoColumnWatchNextResults)==null?0:v.secondaryResults)&&!!((Q=y[0])==null?0:(M=Q.itemSectionRenderer)==null?0:(K=M.contents[0])==null?0:K.backgroundPromoRenderer)},
isLiveStreamOffline_:function(R){return R?R.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(R,y,u){var v=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",y),Q=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];Q=_.f("web_no_skip_video_on_verification_checks")?(R==null?void 0:R.status)&&Q.includes(R.status):R&&R.status==="AGE_CHECK_REQUIRED";var M=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",R);M==void 0&&(M=!0);!u||this.isVideoPlayable_(R,this.getPlayerOverlays_(y))||
v||Q||!M||_.ua().resolve(_.S2).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.GFK()},
onPlayerFeedbackStartRequest_:function(R){_.Ik(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:R}])},
onPlayerFeedbackArticleRequest_:function(R){_.Ik(this.hostElement,"yt-help-dialog-requested",[R])},
onPlayerYpcContentRequest_:function(){var R,y,u,v,Q,M,K,h,b=((R=this.data)==null?NaN:(y=R.contents)==null?NaN:(u=y.twoColumnWatchNextResults)==null?NaN:(v=u.secondaryResults)==null?NaN:(Q=v.secondaryResults)==null?NaN:(M=Q.offerModule)==null?NaN:(K=M.tvfilmOfferModuleRenderer)==null?NaN:(h=K.actionButtons)==null?NaN:h.length)-1;R=[".offerButton.buttonRenderer.",".actionButtons."+(b>=0?b:0)+".buttonRenderer."];y=_.V(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(u=y.next();!u.done;u=y.next())for(u=u.value,v=_.V(R),Q=v.next();!Q.done;Q=v.next())if(Q="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+u+Q.value,Q=this.get(Q+"navigationEndpoint",this.data)||this.get(Q+"serviceEndpoint",this.data)||this.get(Q+"command",this.data)){_.O4(Q,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(R){_.Ko(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:_.Ko(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(R)},
setPlayerState:function(R){_.Qe().dispatch(_.P2Y(R))},
onPlayerSubscribe_:function(R){_.Ik(this.hostElement,"yt-player-subscribe",[R])},
onPlayerUnsubscribe_:function(R){_.Ik(this.hostElement,"yt-player-unsubscribe",[R])},
onPlayerAdYtShowToast_:function(R){_.Ik(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!_.f("web_watch_move_summary_to_sd")&&!!R},
computeWatchMetadataRefresh:function(){return _.f("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.f("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var R,y,u,v;this.watchNextSecondaryResults=(R=this.data)==null?void 0:(y=R.contents)==null?void 0:(u=y.twoColumnWatchNextResults)==null?void 0:(v=u.secondaryResults)==null?void 0:v.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.f("swatcheroo_pbs_load_grid")&&!_.f("swatcheroo_provide_all_data_on_scheduled_job")){_.WG.cancelJob(this.setRichGridJobId_);var R,y,u,v,Q,M,K;this.setRichGridRendererData((R=this.data)==null?void 0:(y=R.contents)==null?void 0:(u=y.twoColumnWatchNextResults)==null?void 0:(v=u.secondaryResults)==null?void 0:(Q=v.secondaryResults)==null?void 0:(M=Q.results)==null?void 0:(K=M[0])==null?
void 0:K.richGridRenderer)}},
setRichGridRendererData:function(R){this.richGridRendererData=R},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var R,y=(R=this.data)==null?void 0:R.engagementPanels;if(y==null?0:y.length){R=null;y=_.V(y);for(var u=y.next();!u.done;u=y.next()){u=u.value;var v=void 0;if(((v=u.engagementPanelSectionListRenderer)==null?void 0:v.targetId)==="engagement-panel-structured-description"){R=u;break}}var Q,M,K;R=(Q=R)==null?void 0:(M=Q.engagementPanelSectionListRenderer)==null?void 0:(K=M.content)==null?void 0:K.structuredDescriptionContentRenderer;if(R==null?0:R.items){Q=
[];M=_.V(R.items);for(K=M.next();!K.done;K=M.next()){K=K.value;if(!_.f("sd_horizontal_list_show_nav_killswitch")){var h=v=u=y=R=void 0,b=void 0,N=(R=K.horizontalCardListRenderer)==null?void 0:(y=R.header)==null?void 0:(u=y.richListHeaderRenderer)==null?void 0:(v=u.navigationButton)==null?void 0:(h=v.buttonRenderer)==null?void 0:(b=h.command)==null?void 0:b.commandExecutorCommand;N&&N.commands&&(N.commands=N.commands.filter(function(T){return!_.e(T,_.rzo)}))}(!K.expandableVideoDescriptionBodyRenderer&&
!K.videoDescriptionHeaderRenderer||_.f("web_delhi_colorful_sd"))&&Q.push(K)}return{items:Q}}}},
constructWarning_:function(R){return{text:_.ye(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;_.Ko(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.f("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var y=this.getScrollTop()>0;this.gestures_&&(y?this.gestures_.detach():this.gestures_.attach());y!==this.showFullerscreenEdu_&&_.f("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=y,_.KA(this).getPlayerPromise().then(function(u){u.updateFullerscreenEduButtonVisibility(R.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Ko(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var R=this;this.commentsReady=!1;_.WG.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Oh(_.WG,function(){R.setComments_()},1E3)},
setComments_:function(){if(!_.f("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.qQ("cmi");_.WG.cancelJob(this.setCommentsJobId_);var R=this.getPageContents(this.data);if(R&&R.length){R=_.V(R);for(var y=R.next();!y.done;y=R.next())if(y=y.value,this.get("itemSectionRenderer.sectionIdentifier",y)==="comment-item-section"){this.comments=y.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Ko(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.f("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.f("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.qQ("cmc")},
doRemoveComments_:function(){this.comments={};_.f("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.WG.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.WG.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(R,y){var u=_.e(y.endpoint,_.zM);u&&(!(y=this.get("data.currentVideoEndpoint.watchEndpoint"))||u.videoId!==y.videoId||u.playlistId&&u.playlistId!==y.playlistId||u.index!==void 0&&u.index!==y.index||typeof u.startTimeSeconds!=="number"||(R.stopPropagation(),this.setScrollTop(0),_.KA(this).getPlayerPromise().then(function(v){var Q=u.startTimeSeconds;v.seekTo(Q);v.wakeUpControls();Q<v.getDuration()&&v.playVideo()})))},
updatePlayerStartTime_:function(){var R=_.hCb();"t"in R&&(R=_.na4(R.t),this.player.seekTo(R,!0))},
updateTitleFromWatchNext:function(R){R=this.getPageContents(R);var y,u;(R=_.u7(R==null?void 0:(y=R[0])==null?void 0:(u=y.videoPrimaryInfoRenderer)==null?void 0:u.title))&&_.Ko(this.hostElement,"yt-update-title",R)},
updateTitle_:function(R){R=this.get("videoDetails.title",R)||"";_.Ko(this.hostElement,"yt-update-title",R)},
syncWithRemoteVideo_:function(R,y,u){if(this.active&&this.player){var v=this.player.getVideoData();if(v.video_id===u&&(u=v.list,_.f("polymer_enable_mdx_queue")&&u&&u.startsWith("RQ")&&(u=void 0),v.video_id!==R||u!=y)){var Q;_.f("kevlar_player_watch_endpoint_navigation")?Q=_.sIT(_.eCy(R,y)):Q=this.buildWatchEndpoint_(R,y);_.Ko(this.hostElement,"yt-navigate",{endpoint:Q,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(R,y,u){return _.j6(R,y,u)},
initDclkstatus_:function(){_.ZyK()},
attachWatchPageSkeleton_:function(){var R=document.querySelector("#watch-page-skeleton");if(R){var y=R.querySelector("#primary-info"),u=R.querySelector("#secondary-info"),v=R.querySelector("#related");y&&_.hw(this.hostElement).querySelector("#info-skeleton").appendChild(y);u&&_.hw(this.hostElement).querySelector("#meta-skeleton").appendChild(u);v&&(_.hw(this.hostElement).querySelector("#related-skeleton").appendChild(v),this.watchNextSkeletonEl_=v);_.BY(R)}},
handlePlayerUpdated_:function(){_.KA(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(R,y){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof y!=="undefined"){var u=this.watchNextSkeletonEl_.children,v=R&&R.indexSplices.length?R.indexSplices[0].index:0;R=Math.min(this.watchNextShownItems.length,u.length);y||(v=0,R=u.length);for(y=v;y<R;y++)u[y].classList.add("hidden")}},
onPlayerFullscreenChange_:function(R){_.f("external_fullscreen")||_.Ik(this.hostElement,"yt-player-fullscreen",[R.fullscreen])},
onFullscreenChange_:function(R){this.fullscreen=R;this.gestures_&&this.gestures_.update(this.fullscreen);var y=_.KA(this);y.getPlayerPromise().then(function(u){u.setFauxFullscreen(!!_.ji())});
this.updateFullBleedElementLocations();R&&(y.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(R,y){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!y},
computeIsDonationShelfCollapsed_:function(R){return R},
computeShouldShowMerchShelf:function(R,y){return y&&!!R},
computeResponseHasComments:function(R){var y,u,v,Q,M;return!!(R==null?0:(y=R.contents)==null?0:(u=y.twoColumnWatchNextResults)==null?0:(v=u.results)==null?0:(Q=v.results)==null?0:(M=Q.contents)==null?0:M.some(function(K){var h;return(K==null?void 0:(h=K.itemSectionRenderer)==null?void 0:h.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(R,y,u,v){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&v?!1:!!R&&!!Object.keys(R).length&&!y},
identity:_.kS,onWindowResized_:function(R){this.windowSize_=R;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.f("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(R){var y=this;R&&R.type!=="dataloaded"&&R.type!=="dataupdated"||_.KA(this).getPlayerPromise().then(function(u){var v=u.getPlayerState();v!==5&&v!==0&&(u=1/u.getVideoAspectRatio(),y.videoHeightToWidthRatio_!==u&&(y.videoHeightToWidthRatio_=u))})},
schedulePlayerSizeUpdate_:function(R){var y=this,u=_.f("kevlar_watch_while_v2")||_.f("web_watch_pip"),v=function(){if(y.watchMetadata){var Q,M;(M=(Q=y.watchMetadata).resize)==null||M.call(Q)}_.KA(y).getPlayerPromise().then(function(K){if(_.f("kevlar_set_internal_player_size")){if(!u||!y.isMiniplayerActive()){var h=y.calculateCurrentPlayerSize_();K.setInternalSize(h.width,h.height)}}else K.setSize(NaN,NaN);_.f("kevlar_watch_while")&&y.updateWatchWhileScrollThreshold_()})};
R?v():_.Xs(_.WG,v)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(R){this.set("data.survey",R.detail)},
onYtShowSurveyCommand_:function(R){this.set("data.survey",_.e(R,_.EaK).survey)},
onDownloadedVideoDeleted:function(R){var y=this,u,v;return _.I(function(Q){if(Q.nextAddress==1){if(!y.active||(u=y.playerData)==null||!u.offlineState||y.videoId!==R)return Q.return();(v=y.player)==null||v.stopVideo();_.Hr().navigatingAwayFromWatchDeletedVideo=!0;_.O4(_.BLW,y.hostElement);return Q.yield(_.Hr().navigationFinishPromise,2)}_.Hr().navigatingAwayFromWatchDeletedVideo=!1;_.f$(Q)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var R;this.theater?R=_.Ae(.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=_.hw(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&R){var y=this.windowSize_.height>=624,u=this.active?this.getScrollTop():0;!R.active&&y&&u>=this.watchWhileScrollThreshold_?(R.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):R.active&&(!y||u<this.watchWhileScrollThreshold_&&!_.ji())&&(R.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var R=_.hw(this.hostElement).querySelector("#secondary-inner");if(R){var y=_.hw(this.hostElement).querySelector("#below"),u=_.hw(this.hostElement).querySelector("#secondary"),v=_.hw(this.hostElement).querySelector("#comments");v&&u&&y&&(this.defaultTwoColumnLayout?(R.appendChild(v),u.appendChild(R)):(y.appendChild(v),_.df(y,R)))}}},
isTwoColumnsChanged_:function(R,y){if(R!==!0||y!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(R=_.hw(this.hostElement).querySelector("#secondary-inner"))){y=_.hw(this.hostElement).querySelector("#below");var u=_.hw(this.hostElement).querySelector("#secondary"),v=_.hw(this.hostElement).querySelector("#comments");v&&u&&y&&(this.isTwoColumns_?(R.appendChild(v),u.appendChild(R)):(y.appendChild(v),
_.df(y,R)))}}else{R=!_.f("web_watch_enable_fs_squeezeback_panels")||!(this.fullscreen||this.iMaxTheaterMode&&this.theater);y=_.hw(this.hostElement).querySelector("#panels");var Q=_.hw(this.hostElement).querySelector("#alerts");u=_.hw(this.hostElement).querySelector("#playlist");v=_.hw(this.hostElement).querySelector("#related");var M=_.hw(this.hostElement).querySelector("#donation-shelf"),K=_.hw(this.hostElement).querySelector("#comments");this.isTwoColumns_?(Q=_.hw(this.hostElement).querySelector("#secondary-inner"),
R&&(Q.appendChild(y),Q.appendChild(u)),Q.appendChild(M),Q.appendChild(v)):(R&&(_.qW(y,Q),_.qW(u,Q)),_.qW(M,Q),K&&_.qW(v,K));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.f("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.f("web_watch_enable_fs_squeezeback_panels")&&_.f("web_watch_theater_chat")){var R=_.hw(this.hostElement).querySelector("#chat-container"),y=this.theater&&!this.fullscreen||_.f("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&y?(y=_.hw(this.hostElement).querySelector("#columns"),(R==null?void 0:R.parentElement)!==y&&y.append(R),this.fixedPanels=!0):(this.fixedPanels=
!1,y=_.hw(this.hostElement).querySelector("#playlist"),R&&y?_.Xi(R,y):_.kT(new _.OL("Missing element when updating chat location",{"chatContainer defined":!!R,"playlist defined":!!y})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(R,y){return _.f("sw_metadata_vis_toggle_ks")?!0:!!R||!!y},
computeForceDarkPanelTheme:function(R){return _.f("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&R:!1},
safeUpdateStyles:function(R){try{_.oX(this.hostElement,R)}catch(y){_.kT(y)}},
videoHeightToWidthRatioChanged_:function(R,y){y&&(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&&_.KA(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.KA(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.c2y(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(R){var y=_.fl(R)||0;_.B1(R,y+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var R=_.fl("yt-fullerscreen-edu-button-click-count")||0,y=_.fl("yt-fullerscreen-edu-button-shown-count")||0,u=_.JT("external_fullscreen_button_shown_threshold"),v=R>=_.JT("external_fullscreen_button_click_threshold")||y>=u;_.KA(this).getPlayerPromise().then(function(Q){Q.updateFullerscreenEduButtonSubtleModeState(v)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(R,y){return y},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.ua().resolve(_.S2).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var R=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.WG.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.WG.addLowPriorityJob(function(){R.fullHeightPanelPositionUpdateJobId=0;var y=_.hw(R.hostElement).querySelector("#secondary"),u=_.hw(R.hostElement).querySelector("#fixed-secondary");y=y.getBoundingClientRect();var v=y.width;R.swatcherooSqueezeback&&
(v+=_.kK);if(R.swatcherooSqueezeback){var Q=_.hw(R.hostElement).querySelector("#squeezeback-constraining-container");Q.style.width=v+"px";Q.style.flex="0 0 "+v+"px"}u.style.width=v+"px";u.style.left=y.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var R=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.WG.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.WG.addLowPriorityJob(function(){R.panelMaxHeightUpdateJob_=0;var y;!R.isTwoColumns_||R.theater||R.fullscreen?y=460:y=R.calculateNormalPlayerSize_().height;var u=y+"px";_.f("live_chat_taller_height")&&!R.theater&&(u="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.f("live_chat_medium_height")&&!R.theater&&(u="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.f("live_chat_scaled_height")&&!R.theater&&(u="calc(100vh - var(--ytd-toolbar-height) - 238px)");R.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":y+"px","--ytd-watch-flexy-chat-max-height":u,"--ytd-watch-flexy-structured-description-max-height":y+"px","--ytd-watch-flexy-comments-panel-max-height":y+"px","--ytd-comments-engagement-panel-content-height":y+"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_&&_.wr(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(R){var y=_.hw(this.hostElement).querySelector("#engagement-panel-scrim");R?y.addEventListener("tap",_.BN(this,this.onEngagementPanelScrimClick_)):y.removeEventListener("tap",_.BN(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(R){if(this.hostElement.contains(R)&&!this.scrollToAnimation_.isAnimating()){var y=R.offsetTop-24;R=R.offsetTop+R.offsetHeight+24;var u=this.getPageScrollingElement(),v=this.getScrollTop(),Q=v+u.clientHeight-56;if(y<v+56)y-=56;else if(R>Q)y=R-u.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,y),500)}},
onYtSignalActionScrollToComments:function(){var R=this.hostElement.querySelector("#comments");if(R&&!this.scrollToAnimation_.isAnimating()){R=R.offsetTop-56-24;if(_.f("kevlar_comment_teaser_scroll_to_midpoint")&&(R-=_.xh().height/3,R<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,R),500)}},
onYtEngagementPanelVisibleChanged:function(R,y,u){if(this.active&&this.trackEngagementPanelVisibility&&!_.U8g.includes(u)){if(y==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.h_(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var v=_.ua().resolve(_.d0);this.visiblePanelIdentifiers_.forEach(function(Q){Q!==u&&v.hidePanel(Q)})}this.visiblePanelIdentifiers_.add(u)}y!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&y!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(u);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(R){return R?"":"watch-active-metadata"},
computeNewMetadataClass:function(R){return R?"watch-active-metadata":""},
computeIsSingleColumn:function(R,y){return y&&!R},
computeFullBleedPlayer:function(R,y,u){return _.f("web_watch_error_screen_fix")?_.f("external_fullscreen")&&R||y||this.enableFullBleedSingleColumnDefaultPlayer&&u:R||y||this.enableFullBleedSingleColumnDefaultPlayer&&u},
computeDefaultLayout:function(R){return!R},
computeDefaultTwoColumnLayout:function(R,y){return!R&&y},
updatePanelsLocation:function(){if(_.f("web_watch_enable_fs_squeezeback_panels")&&this.isAttached){var R=_.hw(this.hostElement).querySelector("#below"),y=_.hw(this.hostElement).querySelector("#panels"),u=_.hw(this.hostElement).querySelector("#playlist"),v=_.hw(this.hostElement).querySelector("#chat-container"),Q=_.hw(this.hostElement).querySelector("#panels-full-bleed-container"),M=_.hw(this.hostElement).querySelector("#secondary-inner"),K=this.fullscreen||this.theater&&this.iMaxTheaterMode,h=this.theater&&
!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;K?(Q.appendChild(y),Q.appendChild(v),Q.appendChild(u)):this.isTwoColumns_?(h?(R=_.hw(this.hostElement).querySelector("#columns"),(v==null?void 0:v.parentElement)!==R&&R.append(v),this.fixedPanels=!0):_.df(M,v),_.df(M,y),_.df(M,u)):(R.appendChild(y),R.appendChild(v),R.appendChild(u))}},
swatcherooUpdatePanelsLocation:function(R,y,u,v,Q,M){if(this.is==="ytd-watch-grid"){y=R&&!y;this.swatcherooSplitScroll&&(y?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));u=_.hw(this.hostElement).querySelector("#panels");var K=_.hw(this.hostElement).querySelector("#playlist"),h=_.hw(this.hostElement).querySelector("#fixed-secondary"),b=_.hw(this.hostElement).querySelector("#fixed-below"),
N=_.hw(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),T=_.hw(this.hostElement).querySelector("#chat-container");M&&(R?h.appendChild(u):b.appendChild(u));Q?R?h.appendChild(T):b.appendChild(T):_.Xi(T,N);v?R?h.appendChild(K):b.appendChild(K):_.Xi(K,N);this.swatcherooSplitScroll&&(R=_.hw(this.hostElement).querySelector("#secondary"),v=_.hw(this.hostElement).querySelector("#columns"),Q=_.hw(this.hostElement).querySelector("#fixed-columns-secondary"),y?
Q.appendChild(R):v.appendChild(R))}},
computeMetadataSkinnyMode:function(R,y,u){return this.is!=="ytd-watch-grid"?!1:R?u:y},
computeWatchWhilePanelsActive:function(R,y){return R||y},
computeNoBorderOnChat:function(R){return _.f("web_watch_theater_chat_no_border")&&R},
computeLiveChatPresentAndExpanded:function(R,y){return R&&!y},
computePanelExpanded:function(R,y,u){return R||y||u},
computeSqueezeback:function(R,y,u,v){if(_.f("web_watch_enable_fs_squeezeback_panels")){var Q=this.iMaxTheaterMode&&this.theater;return(R||y||u)&&(v||Q)}},
computeSwatcherooSqueezeback:function(R,y,u){return this.is!=="ytd-watch-grid"||_.f("ww_squeezeback_killswitch")?!1:R&&y&&u},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(R){_.KA(this).getPlayerPromise().then(function(y){var u;(u=y.changeMarkerVisibility)==null||u.call(y,_.e(R,_.ty).isVisible||!1,_.e(R,_.ty).entityKeys||[],_.e(R,_.ty).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(R){this.liveChatCollapsed=R.detail;_.Qe().dispatch(_.d8q(R.detail));if(!this.liveChatCollapsed&&this.squeezeback){var y=_.ua().resolve(_.d0);this.visiblePanelIdentifiers_.forEach(function(u){y.hidePanel(u)})}},
onSetPlaylistCollapsed:function(R){_.f("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!R)},
provideRenderingData:function(R,y){switch(R){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=y;break;case "PRIMARY_INFO":_.f("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=y);this.videoPrimaryInfoRendererValue=y==null?void 0:y.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.f("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=y);this.videoSecondaryInfoRendererValue=y==null?void 0:y.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
y;break;case "CLARIFICATION":this.clarifyBoxValue=y;break;case "LIVE_CHAT":this.conversationBar=y;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=y;break;case "PLAYLIST":this.externalPlaylistData_=y!=null?y:{};break;case "MERCH_SHELF":this.merchShelfValue=y==null?void 0:y.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=y;break;case "TICKET_SHELF":this.ticket=y;break;case "OFFER_MODULE":this.offerModule=y;break;case "LIMITED_STATE":this.limitedStateValue=
y;break;case "DONATION_SHELF":this.donation=y;break;case "ALERTS":this.alertsValue=y;break;case "COMMENTS":this.comments=y;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=y;break;case "ENGAGEMENT_PANELS":this.engagementPanels=y;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=y;break;case "RICH_GRID_RENDERER":this.richGridRendererData=y;break;case "EXPANDABLE_METADATA":this.expandableMetadata=y;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
y;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=y}},
toggleCinematicsActive:function(R){this.cinematicsActive=R},
isMiniplayerActive:function(){return _.ua().resolve(_.cZ).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var rWg;_.GSm=function(R){if(!(0,_.wiS)(R))throw Error("K``"+String(R));};
_.PNK=function(R){return R.findIndex(function(y){return rWg.indexOf(y.tagName)>-1})>-1};
_.WQo=function(){var R=_.ua().resolve(_.GL);_.dk8(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(R.isFullscreenEnabled()?_.J_(document.documentElement):_.MHW(document.documentElement))};
rWg=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.TG=new Map;_.TG.set(32,59972);_.TG.set(27,50765);_.TG.set(70,60102);_.TG.set(76,60221);_.TG.set(77,60222);_.TG.set(74,60223);_.TG.set(84,60224);_.TG.set(38,61941);_.TG.set(40,61942);_.TG.set(73,62521);_.TG.set(67,62522);_.TG.set(80,63390);_.TG.set(78,63397);_.TG.set(75,59972);_.TG.set(188,63385);_.TG.set(190,63384);_.TG.set(36,63387);
_.TG.set(35,63386);_.TG.set(37,63388);_.TG.set(39,63389);_.TG.set(79,63423);_.TG.set(87,63424);_.TG.set(107,63426);_.TG.set(109,63425);_.TG.set(65,63428);_.TG.set(83,63430);_.TG.set(68,63429);_.TG.set(221,63431);_.TG.set(219,63432);_.TG.set(97,63439);_.TG.set(98,63440);_.TG.set(99,63441);_.TG.set(100,63442);_.TG.set(101,63443);_.TG.set(102,63444);_.TG.set(103,63445);_.TG.set(104,63446);_.TG.set(105,63447);_.oF=new Map;_.oF.set(80,63390);_.oF.set(78,63397);_.oF.set(188,63400);_.oF.set(190,63401);
_.oF.set(191,60765);_.oF.set(13,247917);_.xt=new Map;_.Bz=new Map;
}catch(e){_._DumpException(e)}
try{
var eCK,Zyg,HyK,na8;_.oaZ=function(R){return R.ui.guideIsVisibleButNotPersistent};
_.x88=function(R){return R.ui.tabGesturesIsActive};
_.Bhp=function(){var R=_.VN("service_worker_scope");try{return navigator.serviceWorker.getRegistration(R)}catch(y){return Promise.reject(y)}};
_.fKV=function(R){return!(!R||!R.pushManager)};
eCK=function(){return _.Bhp().then(_.fKV).catch(function(){return!1})};
_.lKa=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?eCK():Promise.resolve(!1)};
_.OyH=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
Zyg=function(){var R,y,u;return _.I(function(v){switch(v.nextAddress){case 1:return v.yield(_.ET.getInstance(),2);case 2:R=v.yieldResult;if(!R){y=void 0;v.jumpTo(3);break}return v.yield(R.get("lmqf"),4);case 4:y=v.yieldResult;case 3:switch((u=y)||(u="SD"),u){case "HD":return v.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return v.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return v.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return v.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return v.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
HyK=function(R){var y,u,v;return _.I(function(Q){if(Q.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.f("disable_av1_setting")){var M=window.localStorage["yt-player-av1-pref"];M=M==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":M==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else M="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(y=R===M)return Q.jumpTo(2);v=u=R;return Q.yield(Zyg(),3)}Q.nextAddress!=2&&(y=v===Q.yieldResult);return Q.return(y)})};var GFP;var r2J=_.WO.IronButtonState,P$P=(0,_.r5)(HTMLElement);
_.qz({_template:function(){if(GFP!==void 0)return GFP;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;na8===void 0&&(na8=document.createElement("template"));var v=na8;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return GFP=R},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[r2J,_.r9,_.d9,_.ED],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 y=(0,_.BA)(this);y.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:R});y.shadowRoot.appendChild(R);return P$P.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=_.GM(this.$.content).getDistributedNodes(),y=0,u=R.length;y<u;y++)if(R[y].nodeType===Node.ELEMENT_NODE)return R[y]},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 y="";R?y=R.label||R.getAttribute("label")||R.textContent.trim():y="";this.value=y;this._setSelectedItemLabel(y)},
_computeMenuVerticalOffset:function(R,y){return y?y:R?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var R=this.opened?"true":"false",y=this.contentElement;y&&y.setAttribute("aria-expanded",R)}});_.iy=new _.jF("navigateAction");var WuH=new _.jF("formRenderer");var KH=function(){var R=_.HN.apply(this,arguments)||this;R.showInput=!1;return R};
_.O(KH,_.HN);_.J=KH.prototype;_.J.detached=function(){this.showInput&&window.removeEventListener("click",_.BN(this,this.closeOnOutsideClick_))};
_.J.stopPropagation_=function(R){this.showInput&&R.stopPropagation()};
_.J.closeOnOutsideClick_=function(R){this.closeOnOutsideClickCondition(R)&&(this.showInput=!1,window.removeEventListener("click",_.BN(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.J.closeOnOutsideClickCondition=function(){return!0};
_.J.closeOnOutsideClickHandler=function(){};
_.J.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.BN(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.J.openOnClickHandler=function(){};
_.J.showInputChanged=function(){};
_.J.setShowInput=function(R){this.showInput=R};
KH.prototype.setShowInput=KH.prototype.setShowInput;KH.prototype.showInputChanged=KH.prototype.showInputChanged;KH.prototype.openOnClickHandler=KH.prototype.openOnClickHandler;KH.prototype.openOnClick_=KH.prototype.openOnClick_;KH.prototype.closeOnOutsideClickHandler=KH.prototype.closeOnOutsideClickHandler;KH.prototype.closeOnOutsideClickCondition=KH.prototype.closeOnOutsideClickCondition;KH.prototype.closeOnOutsideClick_=KH.prototype.closeOnOutsideClick_;KH.prototype.stopPropagation_=KH.prototype.stopPropagation_;
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],KH.prototype,"showInput",void 0);_.A([_.fu("click"),_.fu("keydown"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],KH.prototype,"stopPropagation_",null);_.A([_.e0("showInput"),_.p("design:type",Function),_.p("design:paramtypes",[Boolean]),_.p("design:returntype")],KH.prototype,"showInputChanged",null);_.A([_.nu()],KH);_.d8I=[KH.prototype];var U8H;var kFm;var I5=function(){return _.W.apply(this,arguments)||this};
_.O(I5,_.W);_.J=I5.prototype;_.J.computePreselectedOption=function(R,y){return y===this.itemSelected_?R:void 0};
_.J.dataChanged_=function(){var R=this;this.preselectedSubreason=this.itemSelected_=-1;var y;(y=this.data)!=null&&y.key&&_.gn(this,function(){var u,v=Number((u=R.data)==null?void 0:u.key);!Number.isNaN(v)&&(R.itemSelected_=v,u=(u=(R.data.items||[])[v])&&u.optionSelectableItemRenderer&&u.optionSelectableItemRenderer.preselectedIndex)&&(R.preselectedSubreason=u)})};
_.J.isSubReasonHidden_=function(R,y){return R!=y};
_.J.onTopItemSelected_=function(R,y){for(var u=_.hw(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),v=0,Q=u.length;v<Q;v++)u[v].select(0);_.Ik(this.hostElement,"yt-report-form-update",[y.item.value]);R.stopPropagation()};
_.J.onItemSelected_=function(R,y){_.Ik(this.hostElement,"yt-report-form-update",[y.item.value]);R.stopPropagation()};
_.J.getItem_=function(R){return R.serviceItem?R.serviceItem:R.navigationItem?R.navigationItem:R.optionSelectableItemRenderer?R.optionSelectableItemRenderer:null};
_.J.computeText_=function(R){return(R=this.getItem_(R))?this.ytRendererBehavior.getSimpleString(R.text):null};
_.J.validate=function(){return this.itemSelected_!==-1};
_.J.computeAriaLabel_=function(R){var y=_.u7(R.text);(R=R.accessibility&&R.accessibility.accessibilityData&&R.accessibility.accessibilityData.label)&&(y+=". "+R);return y};
_.J.computeItemSelected_=function(R){return R};
_.J.preventSelection_=function(R){R.stopPropagation();this.tooltipTapped=!0};
_.J.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.J.updateItemSelectedFromBinding=function(R){this.itemSelected_=R.detail.value};
_.J.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)||_.Fh(this.hostElement,[R.optionSelectableItemRenderer.submitEndpoint])))};
I5.prototype.onPaperRippleTransitionEnd_=I5.prototype.onPaperRippleTransitionEnd_;I5.prototype.dataChanged_=I5.prototype.dataChanged_;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],I5.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],I5.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],I5.prototype,"data",void 0);_.A([_.r({value:-1}),_.p("design:type",Number)],I5.prototype,"itemSelected_",void 0);
_.A([_.r({computed:"computeItemSelected_(itemSelected_)"}),_.p("design:type",Number)],I5.prototype,"value",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],I5.prototype,"restoreFocusOnClose",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],I5.prototype,"tooltipTapped",void 0);_.A([_.r({value:-1}),_.p("design:type",Number)],I5.prototype,"preselectedSubreason",void 0);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],I5.prototype,"dataChanged_",null);_.A([_.fu("transitionend"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],I5.prototype,"onPaperRippleTransitionEnd_",null);_.A([_.pu({is:"yt-options-renderer",disableElementRegistration:!0})],I5);
_.m(I5,"yt-options-renderer",function(){if(kFm===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;U8H===void 0&&(U8H=document.createElement("template"));var v=U8H;u.call(y,v.content.cloneNode(!0),R.content.firstChild);kFm=R}R=kFm;return R},{mode:2});var EaZ;var $8J;var qpP;var XTM;var m8Z;var A2a;var hi=function(){return _.W.apply(this,arguments)||this};
_.O(hi,_.W);hi.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
hi.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
hi.prototype.onTap=function(R){if(this.hostElement.classList.contains("selected")||_.bh(this.hostElement,"yt-share-panel-can-select-contact-action"))R&&R.detail&&(R.detail.x||R.detail.y)&&_.hw(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)},_.Ik(this.hostElement,"yt-share-panel-select-contact-action",[R])};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],hi.prototype,"ytRendererBehavior",void 0);_.A([_.r({observer:"onDataChanged"}),_.p("design:type",Object)],hi.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.p("design:type",String)],hi.prototype,"componentTitle",void 0);_.A([_.O7("#thumbnail"),_.p("design:type",Object)],hi.prototype,"thumbnail",void 0);_.A([_.pu({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],hi);
_.m(hi,"yt-enrolled-contact-renderer",function(){if(A2a===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;m8Z===void 0&&(m8Z=document.createElement("template"));var v=m8Z;u.call(y,v.content.cloneNode(!0),R.content.firstChild);A2a=R}R=A2a;return R},{mode:2});var D8M;var pTp;var by=function(){return _.W.apply(this,arguments)||this};
_.O(by,_.W);by.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
by.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
by.prototype.onTap=function(R){if(this.hostElement.classList.contains("selected")||_.bh(this.hostElement,"yt-share-panel-can-select-contact-action"))R&&R.detail&&(R.detail.x||R.detail.y)&&_.hw(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)},_.Ik(this.hostElement,"yt-share-panel-select-contact-action",[R])};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],by.prototype,"ytRendererBehavior",void 0);_.A([_.r({observer:"onDataChanged"}),_.p("design:type",Object)],by.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.p("design:type",String)],by.prototype,"componentTitle",void 0);_.A([_.O7("#thumbnail"),_.p("design:type",Object)],by.prototype,"thumbnail",void 0);_.A([_.pu({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],by);
_.m(by,"yt-suggested-contact-renderer",function(){if(pTp===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;D8M===void 0&&(D8M=document.createElement("template"));var v=D8M;u.call(y,v.content.cloneNode(!0),R.content.firstChild);pTp=R}R=pTp;return R},{mode:2});var Fy=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-share-panel-reset-action":"onReset"};return R};
_.O(Fy,_.W);Fy.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"}}}}}};
Fy.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.Ik(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
Fy.prototype.onReset=function(){for(var R=_.hw(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),y=R.length-1;y>=0;y--)R[y].classList.toggle("selected")};
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Fy.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Fy.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Fy.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r({observer:"onDataChanged"}),_.p("design:type",Object)],Fy.prototype,"data",void 0);
_.A([_.pu({is:"yt-contact-section-renderer",disableElementRegistration:!0})],Fy);
_.m(Fy,"yt-contact-section-renderer",function(){if(XTM===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;qpP===void 0&&(qpP=document.createElement("template"));var v=qpP;u.call(y,v.content.cloneNode(!0),R.content.firstChild);XTM=R}R=XTM;return R},{mode:2});var wF=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return R};
_.O(wF,_.W);_.J=wF.prototype;_.J.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"}}}};
_.J.onYtRefreshFormCommand=function(R){var y;(R=_.e((y=_.e(R,_.IQw))==null?void 0:y.formRenderer,WuH))&&this.set("data",R)};
_.J.reset=function(){var R=_.hw(this.hostElement).querySelector("#fields").children;R=_.V(R);for(var y=R.next();!y.done;y=R.next())y=y.value,y.reset&&y.reset()};
_.J.getForm=function(){var R={},y=_.hw(this.hostElement).querySelector("#fields").children;y=_.V(y);for(var u=y.next();!u.done;u=y.next()){u=u.value;if(!u.validate())return null;R[u.data.key]=u.value}return R};
_.J.submitFormFields=function(){if(this.fields)for(var R=_.V(this.fields),y=R.next();!y.done;y=R.next())y=y.value,y.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?y.save():y.nodeName==="YT-OPTIONS-RENDERER"&&y.save()};
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],wF.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],wF.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],wF.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],wF.prototype,"data",void 0);_.A([_.ZV("#fields > *"),_.p("design:type",Array)],wF.prototype,"fields",void 0);
_.A([_.pu({is:"yt-form-renderer",disableElementRegistration:!0})],wF);
_.m(wF,"yt-form-renderer",function(){if($8J===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;EaZ===void 0&&(EaZ=document.createElement("template"));var v=EaZ;u.call(y,v.content.cloneNode(!0),R.content.firstChild);$8J=R}R=$8J;return R},{mode:2});var tfV;var NF=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return R};
_.O(NF,_.W);NF.prototype.onCheckboxChange=function(R){this.data&&(R=(this.checked=_.vN(R).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.ua().resolve(_.jX).resolveCommand(R,{form:{element:this.hostElement}})};
NF.prototype.handleUpdateCheckboxCommand=function(R){(R=_.e(R,_.GQ5))&&this.data&&this.data.id===R.id&&(this.set("data.disabled",R.disabled),this.set("data.title",R.title))};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],NF.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],NF.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],NF.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Boolean)],NF.prototype,"checked",void 0);_.A([_.q({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],NF);
_.m(NF,"ytd-settings-checkbox-renderer",function(){if(tfV!==void 0)return tfV;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return tfV=R},{mode:1});var c2K;var Tm=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return R};
_.O(Tm,_.W);Tm.prototype.dataChanged=function(){var R=this,y;return _.I(function(u){if(u.nextAddress==1)return R.radio.removeAttribute("checked"),!R.data||!R.data.id||R.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.OyH()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(y=R.data&&R.data.id)?u.yield(HyK(R.data.id),4):u.jumpTo(3):(R.set("data.hidden",!0),u.jumpTo(0));u.nextAddress!=3&&(y=u.yieldResult);y&&_.Ik(R.hostElement,"yt-select-settings-radio-option",[R.data.id]);_.f$(u)})};
Tm.prototype.onButtonChanged=function(R){_.vN(R).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.ua().resolve(_.jX).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.Ik(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
Tm.prototype.onSelectOption=function(R){this.data&&this.data.id&&(this.data.id===R?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
Tm.prototype.dataChanged=Tm.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Tm.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Tm.prototype,"ytActionHandlerBehavior",void 0);_.A([_.O7("#radio"),_.p("design:type",Object)],Tm.prototype,"radio",void 0);_.A([_.r(),_.p("design:type",Object)],Tm.prototype,"data",void 0);
_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype",Promise)],Tm.prototype,"dataChanged",null);_.A([_.q({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],Tm);
_.m(Tm,"ytd-settings-radio-option-renderer",function(){if(c2K!==void 0)return c2K;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return c2K=R},{mode:1});var aKK;var o5=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return R};
_.O(o5,_.W);
o5.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"}}}};
o5.prototype.handleUpdateTextCommand=function(R){(R=_.e(R,_.rtg))&&this.data&&this.data.id===R.id&&this.set("data",R)};
o5.prototype.handleUpdateConnectedAppRendererCommand=function(R){if(_.e(R,_.dE8)&&this.data){var y,u;if(R=(y=_.e(R,_.dE8))==null?void 0:(u=y.newConnectedAppRenderer)==null?void 0:u.connectedAppRenderer)this.data=R}};
o5.prototype.computeConnectedAppStyle=function(R){return R.style?R.style.toLowerCase().replace(/_/g,"-"):""};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],o5.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],o5.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],o5.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],o5.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.p("design:type",String)],o5.prototype,"connectedAppStyle",void 0);_.A([_.q({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],o5);
_.m(o5,"ytd-connected-app-renderer",function(){if(aKK!==void 0)return aKK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return aKK=R},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.ds("iuT5Oc");

_.UX();
}catch(e){_._DumpException(e)}
try{
_.ds("L3n37");
var VSr=function(R){return R.watch.isLearningJourneyActive},iG4=_.$6(115994),KqC=_.$6(115993),I6g=function(R,y,u){var v=this;
var Q=u.dragDownAction;this.layer=0;this.JSC$22955_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return v.dragDownAction()}}}};
this.JSC$22955_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return v.dragDownAction()}}}};
this.fullscreen=!1;var M=_.GN();_.Br(M,iG4,this.layer);_.Br(M,KqC,this.layer);this.dragDownAction=function(){Q();_.gW(M,{visualElement:v.fullscreen?iG4:KqC})};
this.gesture=new _.i5(R,y,this.JSC$22955_watchConfig,"pandown");this.attach()};
I6g.prototype.attach=function(){this.gesture.attach()};
I6g.prototype.detach=function(){this.gesture.detach()};
I6g.prototype.update=function(R){this.fullscreen=R;this.gesture.config=R?this.JSC$22955_watchFullScreenConfig:this.JSC$22955_watchConfig};var h2K=function(R){_.Nl.call(this);var y=this;this.rootElement=R;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return y.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(u){y.initOrDisposeActiveModules(u)}));
this.onAttached()};
_.O(h2K,_.Nl);_.J=h2K.prototype;_.J.getRoot=function(){return this.rootElement};
_.J.getElement=function(R){return this.rootElement.getElement(R)};
_.J.setPlayerResponse=function(R){this.playerResponse=R;this.publish("PLAYER_RESPONSE_UPDATED",R)};
_.J.getPlayerResponse=function(){return this.playerResponse};
_.J.setWatchNextResponse=function(R){this.watchNextResponse===R?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=R,this.publish("WATCH_NEXT_RESPONSE_UPDATED",R))};
_.J.getWatchNextResponse=function(){return this.watchNextResponse};
_.J.registerActionHandler=function(R,y){var u=this;if(_.f("web_watch_controller_reg_multiple_handlers_killswitch")){var v={};_.aN(_.c3.getInstance(),(v[R]=y,v),this.getRoot())}else this.actionHandlers.has(R)||(this.actionHandlers.set(R,[]),v={},_.aN(_.c3.getInstance(),(v[R]=function(){var Q=_.qy.apply(0,arguments);return(u.actionHandlers.get(R)||[]).map(function(M){return M.apply(null,_.P$(Q))})},v),this.getRoot())),this.actionHandlers.get(R).push(y)};
_.J.unregisterActionHandler=function(R){if(_.f("web_watch_controller_reg_multiple_handlers_killswitch")){var y={};_.Sx(_.c3.getInstance(),(y[R]=!0,y),this.getRoot())}else(y=this.actionHandlers.get(R))?(y.pop(),y.length===0&&(y={},_.Sx(_.c3.getInstance(),(y[R]=!0,y),this.getRoot()),this.actionHandlers.delete(R))):_.kT(new _.OL("Attempted to unregister an action handler which is not registered.",R))};
_.J.addPageDisposeJob=function(R){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.eTU(this.rootElement.pageDisposeJobs,R)};
_.J.removePageDisposeJob=function(R){this.rootElement.pageDisposeJobs&&_.m4(this.rootElement.pageDisposeJobs,R)};
_.J.dispatchEvent=function(R,y){_.Ko(this.rootElement,R,y)};
_.J.provideRenderingData=function(R,y){this.rootElement.provideRenderingData(R,y)};
_.J.scrollWatchTo=function(R,y){var u;(u=this.watchScrollManager)==null||u.scrollWatchTo(R,y)};
_.J.focusOnPlayer=function(){var R=this.getElement("PLAYER");_.gn(R,function(){if(R&&R.firstElementChild){var y=R.querySelector(".html5-video-player");y&&(_.JO(_.ua().resolve(_.Xj)),y.focus())}else _.kT(Error("Ao"))})};
_.J.updateCinematicFullscreenConfig=function(){var R=!!this.rootElement.theater,y=!!this.rootElement.fullscreen,u;(u=this.watchCinematicManager)==null||_.dt(u,y,R)};
_.J.subscribeToActiveChanged=function(R,y){y=y===void 0?!0:y;var u=_.GD(_.Qe(),VSr,function(v){R(v)});
y&&R(VSr(_.Qe().getState()));return u};
_.J.isActive=function(){return VSr(_.Qe().getState())};
_.J.onAttached=function(){var R=_.f("external_fullscreen");_.f("use_unified_flag_accessor")&&(R=_.ua().resolve(_.xyP).retriever.getFlag(_.x8c));(R||_.$B("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.J.initPersistentModules=function(){if(_.f("kevlar_watch_flexy_theater_manager")){var R=new _.rSr(this);_.bx(this,R)}R=new _.FaF(this);_.bx(this,R);R=new _.G6(this);_.bx(this,R);R=new _.$m(this);_.bx(this,R);R=new _.pYg(this);_.bx(this,R);R=new _.PU(this);_.bx(this,R);_.f("kevlar_watch_flexy_playlist_manager")&&(R=new _.a0o(this),_.bx(this,R))};
_.J.initOrDisposeActiveModules=function(R){R?(this.watchScrollManager=new _.XH(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.GlK(this)),this.activeModules.push(new _.UPg(this)),this.activeModules.push(new _.g7b(this)),this.activeModules.push(new _.q_(this)),_.f("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.qro(this)),this.activeModules.push(new _.klB(this)),_.f("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.RCy(this)),
_.f("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.aiF(this)),_.f("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.zSE(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.f("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.XYr(this)),_.f("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.hpK(this)),R=_.f("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.f("kevlar_watch_flexy_comments_manager")&&!R&&this.activeModules.push(new _.JDy(this)),_.f("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.rt(this)),this.activeModules.push(new _.q6b(this)),this.activeModules.push(new _.PxK(this)),_.f("web_enable_timely_actions")&&this.activeModules.push(new _.D1K(this)),_.f("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.Kvb(this)),_.f("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.ySr(this)),
_.f("web_fullscreen_components")&&this.activeModules.push(new _.DP2(this)),_.f("web_player_rtr_ctrls")&&this.activeModules.push(new _.hS2(this))):(_.y7(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.J.disposeInternal=function(){_.Nl.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.RR.Object.defineProperties(h2K.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var bGK={},FqF=["learning-journey-engagement-panel","PAlearning_chat"];
bGK.YtdLearningJourneyWatchBehavior=[_.S.YtRendererBehavior,_.Ra.YtPlayerListenerBehavior,_.hX.YtRendererstamperBehavior,_.bW.YtActionHandlerBehavior,_.OA.YtPageBehavior,_.ZL.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 _.$B("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.f("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 _.$B("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 _.f("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.f("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 _.JT("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.JT("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!_.f("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.f("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 _.f("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("web_watch_rounded_player_large")||_.f("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 _.f("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.f("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("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 _.f("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{info:{id:"info-contents",
mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",
properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},
tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},
clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},
initialRenderPriority:3,waitForSignal:_.Cq(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Cq(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0,learningChatEngagementPanel:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var R=this;this.watchController=void 0;this.pageDisposeJobs=[function(){R.showMetadataPlaceholder_()},
function(){_.f("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;_.f("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.f("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.$8b(function(){return _.KA(R)},this.hostElement);
this.pageDisposeJobs.push(function(){R.youThereManager_.reset()});
_.f("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){R.resetFullerscreenEduButtonForNewPlayback_()}));
_.f("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.Nv;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;_.f("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.f("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));_.f("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.BN(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){_.f("kevlar_watch_flexy_theater_manager")&&(this.theater=R,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.f("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(R){!_.f("kevlar_watch_while_v2")&&!_.f("web_watch_pip")||R||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(R){this.active!==void 0&&(this.fullscreen=R,_.f("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(R){this.active!==void 0&&(_.Ko(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.f("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.f("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 y=this;if(R)if(this.data===R){this.onPageLoadWithSameData_();var u;(u=this.watchController)==null||u.setWatchNextResponse(this.data)}else this.data=R;this.playlist&&_.E9({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.qQ("nw");this.loading=!1;_.Oh(_.WG,function(){y.initDclkstatus_();var v,Q=((v=y.player)==null?void 0:v.getVideoData().cpn)||"";_.fKy(function(M,K){_.ZNK(M,K,Q)})})},
onPageLoadWithSameData_:function(){_.f("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;var y,u,v;R=(y=this.loadingData)==null?void 0:(u=y.endpoint)==null?void 0:(v=u.watchEndpoint)==null?void 0:v.videoId;var Q;R&&(Q="https://i.ytimg.com/vi/"+R+"/frame0.jpg");_.hw(this.hostElement).querySelector("#player").style.backgroundImage=Q?"url("+Q+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var R=_.hw(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 y,u;(u=(y=this.watchMetadata).updateSentimentBarWidth)==
null||u.call(y);var v,Q;(Q=(v=this.watchMetadata).resize)==null||Q.call(v)}_.hw(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(R){var y=_.hw(this.hostElement).querySelector(R);y?_.VL(y,!1):_.kT(new _.OL("Overscroll monitor not found for component: ",R))},
removeSplitScrollMouseTrap:function(R){var y=_.hw(this.hostElement).querySelector(R);y?_.ih(y):_.kT(new _.OL("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 y=this;R?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.WG.addLowPriorityJob(function(){y.onWindowResized_(_.rw(!0))})},
updateTheaterModeState_:function(R){if(!_.f("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&&_.U_J()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var R=this.theater;_.f("external_fullscreen")&&this.fullscreen&&(R=!0);R=R?_.hw(this.hostElement).querySelector("#player-full-bleed-container"):_.hw(this.hostElement).querySelector("#player-container-inner");var y=this.getPlayerContainer(),u=_.f("kevlar_watch_while_v2")||_.f("web_watch_pip");y.parentElement!==R&&(u&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.KA(this).appendTo(R,y),R.appendChild(_.hw(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var R=this;return _.I(function(y){if(y.nextAddress==1)return y.yield(_.ua().resolve(_.cZ).deactivate(),2);R.updatePlayerLocation();_.f$(y)})},
updateCinematicsLocation:function(){var R=this.getElement("CINEMATICS");if(R){var y=this.getCinematicsLocationContainer();R.parentElement!==y&&y.appendChild(R);var u;(u=this.watchController)==null||u.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.hw(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.hw(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(R,y){var u=document.documentElement.hasAttribute("dark"),v=u&&_.f("web_cinematic_theater_mode"),Q=u&&_.f("web_cinematic_fullscreen");u=!u&&this.cinematicLightTheme;return R&&v||y&&Q||(y||R)&&u},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var R;(R=this.watchController)==null||R.setWatchNextResponse(this.data);_.f("kevlar_watch_flexy_comments_manager")||this.initComments_();_.f("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.ua().resolve(_.S2).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.f("web_watch_start_chat_in_theater_mode")){var y,
u,v;if((y=this.data)==null?0:(u=y.contents)==null?0:(v=u.twoColumnWatchNextResults)==null?0:v.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var Q,M;((Q=this.data)==null?0:(M=Q.contents)==null?0:M.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(R){var y;(y=this.watchController)==null||y.setPlayerResponse(this.playerData);R&&R.playabilityStatus&&(y=this.isVideoPlayable_(R.playabilityStatus,this.getPlayerOverlays_(this.data)),R=this.isLiveStreamOffline_(R.playabilityStatus),y&&!R||_.gn(this,function(){_.qQ("pbu")}));
this.setPlayerAds_();_.h_(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(R){_.Qe().dispatch(_.iE({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));R?this.activate_():this.deactivate_()},
attached:function(){var R=this;this.watchController=new h2K(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.f("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var y=_.KA(this);_.f("kevlar_disable_prepare_player")||y.preparePlayer();_.f("kevlar_watch_flexy_playlist_manager")||_.ua().resolve(_.S2).setPlayer(y);this.updatePageMediaQueries();y={"--ytd-watch-flexy-scrollbar-width":_.sG()+
"px"};!_.JT("kv_pl_mx_sz_ks")&&_.JT("kevlar_watch_max_player_width")&&(y["--ytd-watch-flexy-max-player-width-wide-screen"]=_.FVy+"px");_.JT("kevlar_watch_flexy_metadata_height")&&(y["--ytd-watch-flexy-space-below-player"]=_.wK4+"px");this.safeUpdateStyles(y);_.f("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new I6g(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return R.onPlayerTouchPanDown_()}}));
_.f("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.hw(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var R=_.sG(),y=_.EY+R,u=y;this.fixedPanels&&(y+=_.bYC);var v=657+R;R=1327+R;_.hw(this.hostElement).querySelector("#two-column-query").query="(min-width: "+y+"px)";_.hw(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(v+"px), (min-height: 630px) and (min-width: ")+(y+"px) and (max-width: ")+(R+"px)");_.hw(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(R+"px)");
_.hw(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+u+"px)"},
calculateCurrentPlayerSize_:function(){var R=_.hw(this.hostElement).querySelector("#miniplayer-bar").firstChild;return R&&R.active||this.theater||_.f("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.or(NaN,NaN):_.Hyy(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.Hyy(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.R_(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var R=this;this.onWindowResized_(_.rw());_.f("browse_skeleton_removal_on_watch_killswitch")||_.$B("IS_SHELL_LOAD")&&_.xb8();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var y=_.KA(this);y.addEventListener("yt-player-updated",_.BN(this,this.onPlayerUpdated_));y.getPlayerPromise().then(function(u){R.playerApiReady_(u)});
_.f("kevlar_watch_flexy_playlist_manager")||(y=_.ua().resolve(_.S2),_.f("kevlar_watch_observe_playlist_navigations_killswitch")&&y.addEventListener("yt-navigate",_.BN(this,this.onYtNavigate_)),y.setPlaylistComponent(_.hw(this.hostElement).querySelector("#playlist")),y.addEventListener("yt-playlist-data-updated",_.BN(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.WG.addLowPriorityJob(function(){_.Ko(R.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.KA(this).removeEventListener("yt-player-updated",_.BN(this,this.onPlayerUpdated_));if(!_.f("kevlar_watch_flexy_playlist_manager")){var R=_.ua().resolve(_.S2);_.f("kevlar_watch_observe_playlist_navigations_killswitch")&&R.removeEventListener("yt-navigate",_.BN(this,this.onYtNavigate_));R.cancelVideoSkip();R.removeEventListener("yt-playlist-data-updated",_.BN(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.f("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Ko(this.hostElement,"yt-autonav-pause-player",!1);R=_.ji();_.f("kevlar_exit_fullscreen_leaving_watch")&&R&&_.J_(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,y){y.hasComments?y.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):y.locationRetrieved("/related_ajax",void 0);R.stopPropagation()},
onSubscriptionChanged_:function(R,y){this.player&&(y?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.l5("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.hw(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.hw(this.hostElement).querySelector("#ytd-plj-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_();_.f("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.f("kevlar_unified_player")||_.f("kevlar_player_new_bootstrap_adoption"))&&_.g$()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(R,y){y=y===void 0?!0:y;_.ji()&&_.f("external_fullscreen")&&_.J_(document.documentElement);this.theaterRequested_=R;y&&_.B5("wide",R?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.f("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.Ik(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Ko(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){_.Eh(R,typeof this.player),this.player&&_.Eh(R,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var R;((R=this.player)==null?0:R.isFullscreen())?this.player.toggleFullscreen():_.Ik(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(R,y){return this.loading?y:!!Object.keys(R).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(R){if(R){R=_.V(R);for(var y=R.next();!y.done;y=R.next())y=y.value,y.youThereRenderer&&_.m8K(this.youThereManager_,y.youThereRenderer)}},
setPlaylistData_:function(R){return R||{}},
userEngagementConfigDataChanged_:function(R){if(R)if(R.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var y=this.youThereManager_;_.QF()<R.lowEngagementThresholdMs||_.tfy(y,!0)}else R.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.Ik(this.hostElement,"yt-autonav-pause-user-engagement",[R])},
isPlayerUnavailable_:function(R,y,u){return!!R&&!this.isVideoPlayable_(R,u)&&!y},
getPlayerOverlays_:function(R){return(R==null?void 0:R.playerOverlays)||null},
isVideoPlayable_:function(R,y){if(!R)return!1;var u=R.status==="OK"||R.status==="LIVE_STREAM_OFFLINE",v=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",R)||this.get("errorScreen.ypcTrailerRenderer",R);R=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",R);var Q;y=y==null?void 0:(Q=y.playerOverlayRenderer)==null?void 0:Q.gatedActionsOverlayRenderer;return!!u||!!v||!!R||!!y},
hasWatchNextResponseErrorRenderer:function(R){var y=this.getPageContents(R),u,v,Q,M,K;return!(R==null?0:(u=R.contents)==null?0:(v=u.twoColumnWatchNextResults)==null?0:v.secondaryResults)&&!!((Q=y[0])==null?0:(M=Q.itemSectionRenderer)==null?0:(K=M.contents[0])==null?0:K.backgroundPromoRenderer)},
isLiveStreamOffline_:function(R){return R?R.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(R,y,u){var v=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",y),Q=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];Q=_.f("web_no_skip_video_on_verification_checks")?(R==null?void 0:R.status)&&Q.includes(R.status):R&&R.status==="AGE_CHECK_REQUIRED";var M=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",R);M==void 0&&(M=!0);!u||this.isVideoPlayable_(R,this.getPlayerOverlays_(y))||
v||Q||!M||_.ua().resolve(_.S2).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.GFK()},
onPlayerFeedbackStartRequest_:function(R){_.Ik(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:R}])},
onPlayerFeedbackArticleRequest_:function(R){_.Ik(this.hostElement,"yt-help-dialog-requested",[R])},
onPlayerYpcContentRequest_:function(){var R,y,u,v,Q,M,K,h,b=((R=this.data)==null?NaN:(y=R.contents)==null?NaN:(u=y.twoColumnWatchNextResults)==null?NaN:(v=u.secondaryResults)==null?NaN:(Q=v.secondaryResults)==null?NaN:(M=Q.offerModule)==null?NaN:(K=M.tvfilmOfferModuleRenderer)==null?NaN:(h=K.actionButtons)==null?NaN:h.length)-1;R=[".offerButton.buttonRenderer.",".actionButtons."+(b>=0?b:0)+".buttonRenderer."];y=_.V(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(u=y.next();!u.done;u=y.next())for(u=u.value,v=_.V(R),Q=v.next();!Q.done;Q=v.next())if(Q="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+u+Q.value,Q=this.get(Q+"navigationEndpoint",this.data)||this.get(Q+"serviceEndpoint",this.data)||this.get(Q+"command",this.data)){_.O4(Q,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(R){_.Ko(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:_.Ko(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(R)},
setPlayerState:function(R){_.Qe().dispatch(_.P2Y(R))},
onPlayerSubscribe_:function(R){_.Ik(this.hostElement,"yt-player-subscribe",[R])},
onPlayerUnsubscribe_:function(R){_.Ik(this.hostElement,"yt-player-unsubscribe",[R])},
onPlayerAdYtShowToast_:function(R){_.Ik(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!_.f("web_watch_move_summary_to_sd")&&!!R},
computeWatchMetadataRefresh:function(){return _.f("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var R,y,u,v;this.watchNextSecondaryResults=(R=this.data)==null?void 0:(y=R.contents)==null?void 0:(u=y.twoColumnWatchNextResults)==null?void 0:(v=u.secondaryResults)==null?void 0:v.secondaryResults}},
setRichGridRendererData:function(R){this.richGridRendererData=R},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var R,y=(R=this.data)==null?void 0:R.engagementPanels;if(y==null?0:y.length){R=null;y=_.V(y);for(var u=y.next();!u.done;u=y.next()){u=u.value;var v=void 0;if(((v=u.engagementPanelSectionListRenderer)==null?void 0:v.targetId)==="engagement-panel-structured-description"){R=u;break}}var Q,M,K;R=(Q=R)==null?void 0:(M=Q.engagementPanelSectionListRenderer)==null?void 0:(K=M.content)==null?void 0:K.structuredDescriptionContentRenderer;if(R==null?0:R.items){Q=
[];M=_.V(R.items);for(K=M.next();!K.done;K=M.next()){K=K.value;if(!_.f("sd_horizontal_list_show_nav_killswitch")){var h=v=u=y=R=void 0,b=void 0,N=(R=K.horizontalCardListRenderer)==null?void 0:(y=R.header)==null?void 0:(u=y.richListHeaderRenderer)==null?void 0:(v=u.navigationButton)==null?void 0:(h=v.buttonRenderer)==null?void 0:(b=h.command)==null?void 0:b.commandExecutorCommand;N&&N.commands&&(N.commands=N.commands.filter(function(T){return!_.e(T,_.rzo)}))}K.expandableVideoDescriptionBodyRenderer||
K.videoDescriptionHeaderRenderer||Q.push(K)}return{items:Q}}}},
constructWarning_:function(R){return{text:_.ye(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;_.Ko(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.f("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var y=this.getScrollTop()>0;this.gestures_&&(y?this.gestures_.detach():this.gestures_.attach());y!==this.showFullerscreenEdu_&&_.f("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=y,_.KA(this).getPlayerPromise().then(function(u){u.updateFullerscreenEduButtonVisibility(R.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Ko(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var R=this;this.commentsReady=!1;_.WG.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Oh(_.WG,function(){R.setComments_()},1E3)},
setComments_:function(){if(!_.f("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.qQ("cmi");_.WG.cancelJob(this.setCommentsJobId_);var R=this.getPageContents(this.data);if(R&&R.length){R=_.V(R);for(var y=R.next();!y.done;y=R.next())if(y=y.value,this.get("itemSectionRenderer.sectionIdentifier",y)==="comment-item-section"){this.comments=y.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Ko(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.f("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.f("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.qQ("cmc")},
doRemoveComments_:function(){this.comments={};_.f("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.WG.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.WG.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(R,y){var u=_.e(y.endpoint,_.zM);u&&(!(y=this.get("data.currentVideoEndpoint.watchEndpoint"))||u.videoId!==y.videoId||u.playlistId&&u.playlistId!==y.playlistId||u.index!==void 0&&u.index!==y.index||typeof u.startTimeSeconds!=="number"||(R.stopPropagation(),this.setScrollTop(0),_.KA(this).getPlayerPromise().then(function(v){var Q=u.startTimeSeconds;v.seekTo(Q);v.wakeUpControls();Q<v.getDuration()&&v.playVideo()})))},
updatePlayerStartTime_:function(){var R=_.hCb();"t"in R&&(R=_.na4(R.t),this.player.seekTo(R,!0))},
updateTitleFromWatchNext:function(R){R=this.getPageContents(R);var y,u;(R=_.u7(R==null?void 0:(y=R[0])==null?void 0:(u=y.videoPrimaryInfoRenderer)==null?void 0:u.title))&&_.Ko(this.hostElement,"yt-update-title",R)},
updateTitle_:function(R){R=this.get("videoDetails.title",R)||"";_.Ko(this.hostElement,"yt-update-title",R)},
syncWithRemoteVideo_:function(R,y,u){if(this.active&&this.player){var v=this.player.getVideoData();if(v.video_id===u&&(u=v.list,_.f("polymer_enable_mdx_queue")&&u&&u.startsWith("RQ")&&(u=void 0),v.video_id!==R||u!=y)){var Q;_.f("kevlar_player_watch_endpoint_navigation")?Q=_.sIT(_.eCy(R,y)):Q=this.buildWatchEndpoint_(R,y);_.Ko(this.hostElement,"yt-navigate",{endpoint:Q,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(R,y,u){return _.j6(R,y,u)},
initDclkstatus_:function(){_.ZyK()},
attachWatchPageSkeleton_:function(){var R=document.querySelector("#watch-page-skeleton");if(R){var y=R.querySelector("#primary-info"),u=R.querySelector("#secondary-info"),v=R.querySelector("#related");y&&_.hw(this.hostElement).querySelector("#info-skeleton").appendChild(y);u&&_.hw(this.hostElement).querySelector("#meta-skeleton").appendChild(u);v&&(_.hw(this.hostElement).querySelector("#related-skeleton").appendChild(v),this.watchNextSkeletonEl_=v);_.BY(R)}},
handlePlayerUpdated_:function(){_.KA(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(R,y){if(this.watchNextSkeletonEl_&&typeof y!=="undefined"){var u=this.watchNextSkeletonEl_.children,v=R&&R.indexSplices.length?R.indexSplices[0].index:0;R=Math.min(this.watchNextShownItems.length,u.length);y||(v=0,R=u.length);for(y=v;y<R;y++)u[y].classList.add("hidden")}},
onPlayerFullscreenChange_:function(R){_.f("external_fullscreen")||_.Ik(this.hostElement,"yt-player-fullscreen",[R.fullscreen])},
onFullscreenChange_:function(R){this.fullscreen=R;this.gestures_&&this.gestures_.update(this.fullscreen);var y=_.KA(this);y.getPlayerPromise().then(function(u){u.setFauxFullscreen(!!_.ji())});
this.updateFullBleedElementLocations();R&&(y.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(R,y){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!y},
computeIsDonationShelfCollapsed_:function(R){return R},
computeShouldShowMerchShelf:function(R,y){return y&&!!R},
computeResponseHasComments:function(R){var y,u,v,Q,M;return!!(R==null?0:(y=R.contents)==null?0:(u=y.twoColumnWatchNextResults)==null?0:(v=u.results)==null?0:(Q=v.results)==null?0:(M=Q.contents)==null?0:M.some(function(K){var h;return(K==null?void 0:(h=K.itemSectionRenderer)==null?void 0:h.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(R,y){this.responseHasComments=this.computeResponseHasComments(this.data);return!!R&&!!Object.keys(R).length&&!y},
identity:_.kS,onWindowResized_:function(R){this.windowSize_=R;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.f("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.f("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(R){var y=this;R&&R.type!=="dataloaded"&&R.type!=="dataupdated"||_.KA(this).getPlayerPromise().then(function(u){var v=u.getPlayerState();v!==5&&v!==0&&(u=1/u.getVideoAspectRatio(),y.videoHeightToWidthRatio_!==u&&(y.videoHeightToWidthRatio_=u))})},
schedulePlayerSizeUpdate_:function(R){var y=this,u=_.f("kevlar_watch_while_v2")||_.f("web_watch_pip"),v=function(){if(y.watchMetadata){var Q,M;(M=(Q=y.watchMetadata).resize)==null||M.call(Q)}_.KA(y).getPlayerPromise().then(function(K){if(_.f("kevlar_set_internal_player_size")){if(!u||!y.isMiniplayerActive()){var h=y.calculateCurrentPlayerSize_();K.setInternalSize(h.width,h.height)}}else K.setSize(NaN,NaN);_.f("kevlar_watch_while")&&y.updateWatchWhileScrollThreshold_()})};
R?v():_.Xs(_.WG,v)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(R){this.set("data.survey",R.detail)},
onYtShowSurveyCommand_:function(R){this.set("data.survey",_.e(R,_.EaK).survey)},
onDownloadedVideoDeleted:function(R){var y=this,u,v;return _.I(function(Q){if(Q.nextAddress==1){if(!y.active||(u=y.playerData)==null||!u.offlineState||y.videoId!==R)return Q.return();(v=y.player)==null||v.stopVideo();_.Hr().navigatingAwayFromWatchDeletedVideo=!0;_.O4(_.BLW,y.hostElement);return Q.yield(_.Hr().navigationFinishPromise,2)}_.Hr().navigatingAwayFromWatchDeletedVideo=!1;_.f$(Q)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var R;this.theater?R=_.Ae(.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=_.hw(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&R){var y=this.windowSize_.height>=624,u=this.active?this.getScrollTop():0;!R.active&&y&&u>=this.watchWhileScrollThreshold_?(R.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):R.active&&(!y||u<this.watchWhileScrollThreshold_&&!_.ji())&&(R.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(R,y){if(R!==!0||y!==void 0){R=!_.f("live_chat_over_engagement_panels");y=_.hw(this.hostElement).querySelector("#chat-container");var u=_.hw(this.hostElement).querySelector("#plj-sidebar"),v=_.hw(this.hostElement).querySelector("#panels"),Q=_.hw(this.hostElement).querySelector("#plj-panels"),M=_.hw(this.hostElement).querySelector("#plj-playlist"),K=_.hw(this.hostElement).querySelector("#alerts"),h=_.hw(this.hostElement).querySelector("#playlist"),b=_.hw(this.hostElement).querySelector("#related"),
N=_.hw(this.hostElement).querySelector("#donation-shelf"),T=_.hw(this.hostElement).querySelector("#comments");this.isTwoColumns_?(K=_.hw(this.hostElement).querySelector("#secondary-inner"),K.appendChild(u),u.appendChild(M),M.appendChild(h),u.appendChild(Q),R&&K.appendChild(v),_.f("web_watch_theater_chat")||K.appendChild(y),R||K.appendChild(v),K.appendChild(N),K.appendChild(b)):(R&&_.qW(v,K),_.qW(h,K),_.f("web_watch_theater_chat")||_.qW(y,K),R||_.qW(v,K),_.qW(N,K),T&&(Q&&_.qW(Q,T),_.qW(b,T)));_.f("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.f("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.f("web_watch_theater_chat")){var R=_.hw(this.hostElement).querySelector("#chat-container"),y=this.theater&&!this.fullscreen||_.f("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&y?_.f("web_watch_theater_chat_beside_player")?(y=_.hw(this.hostElement).querySelector("#panels-full-bleed-container"),(R==null?void 0:R.parentElement)!==y&&y.append(R),this.panelsBesidePlayer=!0):_.f("web_watch_theater_fixed_chat")&&
(y=_.hw(this.hostElement).querySelector("#columns"),(R==null?void 0:R.parentElement)!==y&&y.append(R),this.fixedPanels=!0):(_.f("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.f("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),y=_.hw(this.hostElement).querySelector("#playlist"),R&&y?_.Xi(R,y):_.kT(new _.OL("Missing element when updating chat location",{"chatContainer defined":!!R,"playlist defined":!!y})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(R,y){return _.f("sw_metadata_vis_toggle_ks")?!0:!!R||!!y},
computeForceDarkPanelTheme:function(R){return _.f("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&R:!1},
safeUpdateStyles:function(R){try{_.oX(this.hostElement,R)}catch(y){_.kT(y)}},
videoHeightToWidthRatioChanged_:function(R,y){y&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.f("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&&_.KA(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.KA(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.c2y(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(R){var y=_.fl(R)||0;_.B1(R,y+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var R=_.fl("yt-fullerscreen-edu-button-click-count")||0,y=_.fl("yt-fullerscreen-edu-button-shown-count")||0,u=_.JT("external_fullscreen_button_shown_threshold"),v=R>=_.JT("external_fullscreen_button_click_threshold")||y>=u;_.KA(this).getPlayerPromise().then(function(Q){Q.updateFullerscreenEduButtonSubtleModeState(v)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(R,y){return y},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.ua().resolve(_.S2).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var R=this;this.panelMaxHeightUpdateJob_&&_.WG.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.WG.addLowPriorityJob(function(){R.panelMaxHeightUpdateJob_=0;var y;!R.isTwoColumns_||R.theater||R.fullscreen?y=460:y=R.calculateNormalPlayerSize_().height;var u=y+"px";_.f("live_chat_taller_height")&&!R.theater&&(u="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.f("live_chat_medium_height")&&
!R.theater&&(u="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.f("live_chat_scaled_height")&&!R.theater&&(u="calc(100vh - var(--ytd-toolbar-height) - 238px)");R.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":y+"px","--ytd-watch-flexy-chat-max-height":u,"--ytd-watch-flexy-structured-description-max-height":y+"px","--ytd-watch-flexy-comments-panel-max-height":y+"px","--ytd-comments-engagement-panel-content-height":y+"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_&&_.wr(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(R){var y=_.hw(this.hostElement).querySelector("#engagement-panel-scrim");R?y.addEventListener("tap",_.BN(this,this.onEngagementPanelScrimClick_)):y.removeEventListener("tap",_.BN(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(R){if(this.hostElement.contains(R)&&!this.scrollToAnimation_.isAnimating()){var y=R.offsetTop-24;R=R.offsetTop+R.offsetHeight+24;var u=this.getPageScrollingElement(),v=this.getScrollTop(),Q=v+u.clientHeight-56;if(y<v+56)y-=56;else if(R>Q)y=R-u.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,y),500)}},
onYtSignalActionScrollToComments:function(){var R=this.hostElement.querySelector("#comments");if(R&&!this.scrollToAnimation_.isAnimating()){R=R.offsetTop-56-24;if(_.f("kevlar_comment_teaser_scroll_to_midpoint")&&(R-=_.xh().height/3,R<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,R),500)}},
onYtEngagementPanelVisibleChanged:function(R,y,u){this.active&&this.trackEngagementPanelVisibility&&!_.U8g.includes(u)&&(y==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(u),y!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&y!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(u),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,y){return R||y},
computeDefaultLayout:function(R){return!R},
computeDefaultTwoColumnLayout:function(R,y){return!R&&y},
computeWatchWhilePanelsActive:function(R,y){return R||y},
computeNoBorderOnChat:function(R){return _.f("web_watch_theater_chat_no_border")&&R},
computeLiveChatPresentAndExpanded:function(R,y){return R&&!y},
computePanelExpanded:function(R,y,u){return R||y||u},
onChangeMarkersVisibility:function(R){_.KA(this).getPlayerPromise().then(function(y){var u;(u=y.changeMarkerVisibility)==null||u.call(y,_.e(R,_.ty).isVisible||!1,_.e(R,_.ty).entityKeys||[],_.e(R,_.ty).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(R){this.liveChatCollapsed=R.detail;_.Qe().dispatch(_.d8q(R.detail))},
provideRenderingData:function(R,y){switch(R){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=y;break;case "PRIMARY_INFO":_.f("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=y);this.videoPrimaryInfoRendererValue=y==null?void 0:y.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.f("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=y);this.videoSecondaryInfoRendererValue=y==null?void 0:y.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
y;break;case "CLARIFICATION":this.clarifyBoxValue=y;break;case "LIVE_CHAT":this.conversationBar=y;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=y;break;case "PLAYLIST":this.externalPlaylistData_=y!=null?y:{};break;case "MERCH_SHELF":this.merchShelfValue=y==null?void 0:y.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=y;break;case "OFFER_MODULE":this.offerModule=y;break;case "LIMITED_STATE":this.limitedStateValue=y;break;case "DONATION_SHELF":this.donation=y;break;
case "ALERTS":this.alertsValue=y;break;case "COMMENTS":this.comments=y;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=y;break;case "ENGAGEMENT_PANELS":this.engagementPanels=y;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=y;break;case "RICH_GRID_RENDERER":this.richGridRendererData=y;break;case "EXPANDABLE_METADATA":this.expandableMetadata=y;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=y}},
toggleCinematicsActive:function(R){this.cinematicsActive=R},
isMiniplayerActive:function(){return _.ua().resolve(_.cZ).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(R){return FqF.map(function(y){return R.find(function(u){var v;return(u==null?void 0:(v=u.engagementPanelSectionListRenderer)==null?void 0:v.targetId)===y})}).filter(function(y){return y!==void 0})},
getNonLearningJourneyEngagementPanels:function(R){return R.filter(function(y){var u;return!FqF.includes((y==null?void 0:(u=y.engagementPanelSectionListRenderer)==null?void 0:u.targetId)||"")})}}];var wub;var CM=function(){var R=_.W.apply(this,arguments)||this;R.flexy=!0;R.learningJourney=!0;R.roundedInfoPanel=!0;R.viewTransitionEnabled=_.f("enable_player_resize_transition");R.smallerChatMinHeight=_.f("live_chat_smaller_min_height");R.cinematicTheaterMode=_.f("web_cinematic_theater_mode");R.transparentTheaterMode=_.f("web_transparent_theater_mode");R.cinematicFullscreen=_.f("web_cinematic_fullscreen");R.useLargerMaxPlayerValue=_.f("kevlar_flexy_use_larger_player_value");R.cinematicFullscreenV2=_.f("web_cinematic_fullscreen_v2");
R.isDarkTheme=document.documentElement.hasAttribute("dark");R.theaterLargerPlayer=_.f("web_watch_theater_larger_player");R.defaultCollapsePlaylist=_.f("web_watch_default_collapse_playlist");return R};
_.O(CM,_.W);_.J=CM.prototype;_.J.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.J.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.J.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.J.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.J.ready=function(){var R=this,y=function(){R.onColumnScroll()};
this.primary.addEventListener("scroll",y);this.secondary.addEventListener("scroll",y)};
_.J.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.J.updateIsTwoColumnsFromBinding=function(R){_.f("web_watch_update_narrow_width_killswitch")||_.Qe().dispatch(_.lcC(!R.detail.value));this.ytdWatchBehavior.isTwoColumns_=R.detail.value};
_.J.updateFlexySmallWindowFromBinding=function(R){this.ytdWatchBehavior.flexySmallWindow_=R.detail.value};
_.J.updateFlexyLargeWindowFromBinding=function(R){this.ytdWatchBehavior.flexyLargeWindow_=R.detail.value};
_.J.updateWatchWhileWindowSizeSufficientFromBinding=function(R){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=R.detail.value};
_.J.updateWatchNextCanShowMoreFromBinding=function(R){this.ytdWatchBehavior.watchNextCanShowMore=R.detail.value};
_.J.updateShownItemsFromBinding=function(R){R.detail.path?this.set(R.detail.path,R.detail.value):this.ytdWatchBehavior.watchNextShownItems=R.detail.value};
_.J.getElement=function(R){switch(R){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22964_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22964_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.RR.Object.defineProperties(CM.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.data)==null||!R.pageVisualEffects)return!1;for(var y=0;y<this.data.pageVisualEffects.length;y++)if(R=_.e(this.data.pageVisualEffects[y],_.B6))return y=void 0,(y=R.config)==null?void 0:y.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.learningJourneyEngagementPanels)==null?void 0:R.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var R,y=(R=this.learningJourneyEngagementPanels)==null?void 0:R.find(function(B){var l;return(B==null?void 0:(l=B.engagementPanelSectionListRenderer)==null?void 0:l.panelIdentifier)==="learning-journey-engagement-panel"});
if(y){var u,v,Q,M,K,h,b,N,T;if(R=(N=((b=(K=((M=y==null?void 0:(u=y.engagementPanelSectionListRenderer)==null?void 0:(v=u.content)==null?void 0:(Q=v.sectionListRenderer)==null?void 0:Q.contents)!=null?M:[])[0])==null?void 0:(h=K.itemSectionRenderer)==null?void 0:h.contents)!=null?b:[])[0])==null?void 0:(T=N.accordionViewModel)==null?void 0:T.onTitleTap){var x=_.Sb(R);if(x)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.lX.instance.resolveCommand(x)}}}}}}});
_.RR.Object.defineProperties(CM,{template:{configurable:!0,enumerable:!0,get:function(){if(wub===void 0){var R=document.createElement("template");_.H(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  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="player" class="style-scope ytd-watch-learning-journey">\n        <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n          <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n              <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n              </ytd-player>\n            </div>\n          </div>\n          <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n            <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n          </yt-button-shape></div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-learning-journey">\n        <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n          <div id="info" class="style-scope ytd-watch-learning-journey">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-learning-journey">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
R.content.insertBefore(_.t().content.cloneNode(!0),R.content.firstChild);wub=R}R=wub;return R}}});
CM.prototype.updateMiniplayerIsActiveValue=CM.prototype.updateMiniplayerIsActiveValue;CM.prototype.updateScrollTopValue=CM.prototype.updateScrollTopValue;CM.prototype.updateFullscreenValue=CM.prototype.updateFullscreenValue;CM.prototype.updateTheaterValue=CM.prototype.updateTheaterValue;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],CM.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],CM.prototype,"ytComponentBehavior",void 0);
_.A([_.n(bGK.YtdLearningJourneyWatchBehavior),_.p("design:type",Object)],CM.prototype,"ytdWatchBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],CM.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],CM.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],CM.prototype,"playerData",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],CM.prototype,"flexy",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],CM.prototype,"learningJourney",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],CM.prototype,"roundedInfoPanel",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],CM.prototype,"viewTransitionEnabled",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],CM.prototype,"smallerChatMinHeight",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],CM.prototype,"cinematicTheaterMode",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],CM.prototype,"transparentTheaterMode",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],CM.prototype,"cinematicFullscreen",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],CM.prototype,"useLargerMaxPlayerValue",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],CM.prototype,"cinematicFullscreenV2",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],CM.prototype,"isDarkTheme",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],CM.prototype,"theaterLargerPlayer",void 0);_.A([_.r(),_.p("design:type",Object)],CM.prototype,"defaultCollapsePlaylist",void 0);_.A([_.r({selector:_.t6}),_.p("design:type",Object)],CM.prototype,"theaterValue",void 0);
_.A([_.r({selector:_.c_}),_.p("design:type",Object)],CM.prototype,"fullscreenValue",void 0);_.A([_.r({selector:_.OY}),_.p("design:type",Object)],CM.prototype,"scrollTopValue",void 0);_.A([_.r({selector:_.X9}),_.p("design:type",Object)],CM.prototype,"miniplayerIsActiveValue",void 0);_.A([_.O7("#ytd-plj-player"),_.p("design:type",HTMLElement)],CM.prototype,"ytdPlayer",void 0);_.A([_.O7("#playlist"),_.p("design:type",HTMLElement)],CM.prototype,"JSC$22964_ytdPlaylistPanelRenderer",void 0);
_.A([_.w8("ytd-comments"),_.p("design:type",HTMLElement)],CM.prototype,"ytdComments",void 0);_.A([_.O7("#primary"),_.p("design:type",HTMLElement)],CM.prototype,"primary",void 0);_.A([_.O7("#secondary"),_.p("design:type",HTMLElement)],CM.prototype,"secondary",void 0);_.A([_.O7("#player-container"),_.p("design:type",HTMLElement)],CM.prototype,"playerContainer",void 0);_.A([_.O7("#cinematics"),_.p("design:type",HTMLElement)],CM.prototype,"JSC$22964_cinematics",void 0);
_.A([_.e0("theaterValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],CM.prototype,"updateTheaterValue",null);_.A([_.e0("fullscreenValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],CM.prototype,"updateFullscreenValue",null);_.A([_.e0("scrollTopValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],CM.prototype,"updateScrollTopValue",null);
_.A([_.e0("miniplayerIsActiveValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],CM.prototype,"updateMiniplayerIsActiveValue",null);_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],CM.prototype,"cinematicLightTheme",null);_.A([_.r({reflectToAttribute:!0}),_.G("learningJourneyEngagementPanels"),_.p("design:type",Object),_.p("design:paramtypes",[])],CM.prototype,"hasLearningJourneyPanels",null);
_.A([_.G("learningJourneyEngagementPanels"),_.p("design:type",Object),_.p("design:paramtypes",[])],CM.prototype,"backButtonData",null);_.A([_.q({is:"ytd-watch-learning-journey"})],CM);_.NL.registerService(_.Bp8,CM);
_.UX();
}catch(e){_._DumpException(e)}
try{
_.ds("Tm0L3c");
var vBE;var QMy;var jMr=function(){return _.W.apply(this,arguments)||this};
_.O(jMr,_.W);_.A([_.q({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],jMr);
_.m(jMr,"ytd-ghost-comments-renderer",function(){if(QMy===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);QMy=R}R=QMy;return R},{mode:1});var MSF;var J7y=function(){return _.W.apply(this,arguments)||this};
_.O(J7y,_.W);_.A([_.q({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],J7y);
_.m(J7y,"ytd-ghost-watch-metadata-renderer",function(){if(MSF===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);MSF=R}R=MSF;return R},{mode:1});var gt=function(){var R=_.W.apply(this,arguments)||this;R.ghostGridRenderer={rows:6};R.roundedInfoPanel=!0;R.hideOfferModules=!0;R.smallerChatMinHeight=_.f("live_chat_smaller_min_height");R.cinematicTheaterMode=_.f("web_cinematic_theater_mode");R.transparentTheaterMode=_.f("web_transparent_theater_mode");R.darkerPanels=_.f("web_watch_darker_panels");R.cinematicFullscreen=_.f("web_cinematic_fullscreen");R.cinematicFullscreenV2=_.f("web_cinematic_fullscreen_v2");R.isDarkTheme=document.documentElement.hasAttribute("dark");
return R};
_.O(gt,_.W);_.J=gt.prototype;_.J.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.J.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.J.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.J.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.J.ready=function(){var R=this,y=function(){R.onColumnScroll()};
this.primary.addEventListener("scroll",y);this.secondary.addEventListener("scroll",y)};
_.J.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.J.updateIsTwoColumnsFromBinding=function(R){this.ytdWatchBehavior.isTwoColumns_=R.detail.value};
_.J.updateFlexySmallWindowFromBinding=function(R){this.ytdWatchBehavior.flexySmallWindow_=R.detail.value};
_.J.updateFlexyLargeWindowFromBinding=function(R){this.ytdWatchBehavior.flexyLargeWindow_=R.detail.value};
_.J.updateWatchWhileWindowSizeSufficientFromBinding=function(R){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=R.detail.value};
_.J.updateWatchNextCanShowMoreFromBinding=function(R){this.ytdWatchBehavior.watchNextCanShowMore=R.detail.value};
_.J.updateShownItemsFromBinding=function(R){_.f("swatcheroo_direct_use_rich_grid")||(R.detail.path?this.set(R.detail.path,R.detail.value):this.ytdWatchBehavior.watchNextShownItems=R.detail.value)};
_.J.getElement=function(R){switch(R){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22952_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22952_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.RR.Object.defineProperties(gt.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.data)==null||!R.pageVisualEffects)return!1;for(var y=0;y<this.data.pageVisualEffects.length;y++)if(R=_.e(this.data.pageVisualEffects[y],_.B6))return y=void 0,(y=R.config)==null?void 0:y.enableInLightTheme;return!1}}});
gt.prototype.updateMiniplayerIsActiveValue=gt.prototype.updateMiniplayerIsActiveValue;gt.prototype.updateScrollTopValue=gt.prototype.updateScrollTopValue;gt.prototype.updateFullscreenValue=gt.prototype.updateFullscreenValue;gt.prototype.updateTheaterValue=gt.prototype.updateTheaterValue;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],gt.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],gt.prototype,"ytComponentBehavior",void 0);
_.A([_.n(_.y7q.YtdWatchBehavior),_.p("design:type",Object)],gt.prototype,"ytdWatchBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],gt.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],gt.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],gt.prototype,"ghostGridRenderer",void 0);_.A([_.r(),_.p("design:type",Object)],gt.prototype,"playerData",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],gt.prototype,"roundedInfoPanel",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],gt.prototype,"hideOfferModules",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],gt.prototype,"smallerChatMinHeight",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],gt.prototype,"cinematicTheaterMode",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],gt.prototype,"transparentTheaterMode",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],gt.prototype,"darkerPanels",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],gt.prototype,"cinematicFullscreen",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],gt.prototype,"cinematicFullscreenV2",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],gt.prototype,"isDarkTheme",void 0);_.A([_.r({selector:_.t6}),_.p("design:type",Object)],gt.prototype,"theaterValue",void 0);
_.A([_.r({selector:_.c_}),_.p("design:type",Object)],gt.prototype,"fullscreenValue",void 0);_.A([_.r({selector:_.OY}),_.p("design:type",Object)],gt.prototype,"scrollTopValue",void 0);_.A([_.r({selector:_.X9}),_.p("design:type",Object)],gt.prototype,"miniplayerIsActiveValue",void 0);_.A([_.O7("#ytd-player"),_.p("design:type",HTMLElement)],gt.prototype,"ytdPlayer",void 0);_.A([_.O7("#playlist"),_.p("design:type",HTMLElement)],gt.prototype,"JSC$22952_ytdPlaylistPanelRenderer",void 0);
_.A([_.O7("#ytd-comments"),_.p("design:type",HTMLElement)],gt.prototype,"ytdComments",void 0);_.A([_.O7("#primary"),_.p("design:type",HTMLElement)],gt.prototype,"primary",void 0);_.A([_.O7("#secondary"),_.p("design:type",HTMLElement)],gt.prototype,"secondary",void 0);_.A([_.O7("#player-container"),_.p("design:type",HTMLElement)],gt.prototype,"playerContainer",void 0);_.A([_.O7("#cinematics"),_.p("design:type",HTMLElement)],gt.prototype,"JSC$22952_cinematics",void 0);
_.A([_.e0("theaterValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gt.prototype,"updateTheaterValue",null);_.A([_.e0("fullscreenValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gt.prototype,"updateFullscreenValue",null);_.A([_.e0("scrollTopValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gt.prototype,"updateScrollTopValue",null);
_.A([_.e0("miniplayerIsActiveValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gt.prototype,"updateMiniplayerIsActiveValue",null);_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],gt.prototype,"cinematicLightTheme",null);
_.m(gt,"ytd-watch-grid",function(){if(vBE===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);vBE=R}R=vBE;return R},{mode:2});_.NL.registerService(_.xIW,gt);
_.UX();
}catch(e){_._DumpException(e)}
try{
_.ds("CF909");
var uny;var z6=function(){var R=_.W.apply(this,arguments)||this;R.flexy=!0;R.roundedInfoPanel=!0;R.viewTransitionEnabled=_.f("enable_player_resize_transition");R.smallerChatMinHeight=_.f("live_chat_smaller_min_height");R.cinematicTheaterMode=_.f("web_cinematic_theater_mode");R.transparentTheaterMode=_.f("web_transparent_theater_mode");R.cinematicFullscreen=_.f("web_cinematic_fullscreen");R.useLargerMaxPlayerValue=_.f("kevlar_flexy_use_larger_player_value");R.isDarkTheme=document.documentElement.hasAttribute("dark");
R.defaultCollapsePlaylist=_.f("web_watch_default_collapse_playlist");R.retroModeReduxValue=!1;return R};
_.O(z6,_.W);_.J=z6.prototype;_.J.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.J.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.J.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.J.updateRetroModeReduxValue=function(){_.f("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.J.ready=function(){var R=this,y=function(){R.onColumnScroll()};
this.primary.addEventListener("scroll",y);this.secondary.addEventListener("scroll",y)};
_.J.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.J.updateIsTwoColumnsFromBinding=function(R){_.f("web_watch_update_narrow_width_killswitch")||_.Qe().dispatch(_.lcC(!R.detail.value));this.ytdWatchBehavior.isTwoColumns_=R.detail.value};
_.J.updateFlexySmallWindowFromBinding=function(R){this.ytdWatchBehavior.flexySmallWindow_=R.detail.value};
_.J.updateFlexyLargeWindowFromBinding=function(R){this.ytdWatchBehavior.flexyLargeWindow_=R.detail.value};
_.J.updateWatchWhileWindowSizeSufficientFromBinding=function(R){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=R.detail.value};
_.J.updateWatchNextCanShowMoreFromBinding=function(R){this.ytdWatchBehavior.watchNextCanShowMore=R.detail.value};
_.J.updateShownItemsFromBinding=function(R){R.detail.path?this.set(R.detail.path,R.detail.value):this.ytdWatchBehavior.watchNextShownItems=R.detail.value};
_.J.getElement=function(R){switch(R){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22947_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22947_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary}};
_.RR.Object.defineProperties(z6.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.data)==null||!R.pageVisualEffects)return!1;for(var y=0;y<this.data.pageVisualEffects.length;y++)if(R=_.e(this.data.pageVisualEffects[y],_.B6))return y=void 0,(y=R.config)==null?void 0:y.enableInLightTheme;return!1}}});
_.RR.Object.defineProperties(z6,{template:{configurable:!0,enumerable:!0,get:function(){if(uny===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);uny=R}R=uny;return R}}});
z6.prototype.updateRetroModeReduxValue=z6.prototype.updateRetroModeReduxValue;z6.prototype.updateScrollTopValue=z6.prototype.updateScrollTopValue;z6.prototype.updateFullscreenValue=z6.prototype.updateFullscreenValue;z6.prototype.updateTheaterValue=z6.prototype.updateTheaterValue;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],z6.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],z6.prototype,"ytComponentBehavior",void 0);
_.A([_.n(_.y7q.YtdWatchBehavior),_.p("design:type",Object)],z6.prototype,"ytdWatchBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],z6.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],z6.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],z6.prototype,"playerData",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],z6.prototype,"flexy",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],z6.prototype,"roundedInfoPanel",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],z6.prototype,"viewTransitionEnabled",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],z6.prototype,"smallerChatMinHeight",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],z6.prototype,"cinematicTheaterMode",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],z6.prototype,"transparentTheaterMode",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],z6.prototype,"cinematicFullscreen",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],z6.prototype,"useLargerMaxPlayerValue",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],z6.prototype,"isDarkTheme",void 0);_.A([_.r(),_.p("design:type",Object)],z6.prototype,"defaultCollapsePlaylist",void 0);
_.A([_.r({selector:_.t6}),_.p("design:type",Object)],z6.prototype,"theaterValue",void 0);_.A([_.r({selector:_.c_}),_.p("design:type",Object)],z6.prototype,"fullscreenValue",void 0);_.A([_.r({selector:_.OY}),_.p("design:type",Object)],z6.prototype,"scrollTopValue",void 0);_.A([_.r({selector:_.X9}),_.p("design:type",Object)],z6.prototype,"miniplayerIsActive",void 0);_.A([_.r({selector:function(R){return R.watch.isWatchRetroMode}}),
_.p("design:type",Object)],z6.prototype,"retroModeReduxValue",void 0);_.A([_.w8("ytd-player"),_.p("design:type",HTMLElement)],z6.prototype,"ytdPlayer",void 0);_.A([_.O7("#playlist"),_.p("design:type",HTMLElement)],z6.prototype,"JSC$22947_ytdPlaylistPanelRenderer",void 0);_.A([_.w8("ytd-comments"),_.p("design:type",HTMLElement)],z6.prototype,"ytdComments",void 0);_.A([_.O7("#primary"),_.p("design:type",HTMLElement)],z6.prototype,"primary",void 0);
_.A([_.O7("#secondary"),_.p("design:type",HTMLElement)],z6.prototype,"secondary",void 0);_.A([_.O7("#player-container"),_.p("design:type",HTMLElement)],z6.prototype,"playerContainer",void 0);_.A([_.O7("#below"),_.p("design:type",HTMLElement)],z6.prototype,"below",void 0);_.A([_.O7("#cinematics"),_.p("design:type",HTMLElement)],z6.prototype,"JSC$22947_cinematics",void 0);
_.A([_.e0("theaterValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],z6.prototype,"updateTheaterValue",null);_.A([_.e0("fullscreenValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],z6.prototype,"updateFullscreenValue",null);_.A([_.e0("scrollTopValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],z6.prototype,"updateScrollTopValue",null);
_.A([_.e0("retroModeReduxValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],z6.prototype,"updateRetroModeReduxValue",null);_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],z6.prototype,"cinematicLightTheme",null);_.A([_.q({is:"ytd-watch-flexy"})],z6);_.NL.registerService(_.ooO,z6);
_.UX();
}catch(e){_._DumpException(e)}
try{
_.ds("nmfa2d");
var IKE;var DD=function(){var R=_.W.apply(this,arguments)||this;R.hidden=!1;R.errorScreen=null;R.playlistData={};return R};
_.O(DD,_.W);_.J=DD.prototype;_.J.getPlayer=function(){return this.ytdPlayer};
_.J.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:_.Cq(["aa","eocs"])}}};
_.J.onActiveChanged=function(){_.Qe().dispatch(_.vaE(this.ytPageBehavior.active))};
_.J.playerDataChanged=function(){var R;(R=this.watchController)==null||R.setPlayerResponse(this.playerData)};
_.J.dataChanged=function(){var R;(R=this.watchController)==null||R.setWatchNextResponse(this.data)};
_.J.sizeChanged=function(){var R,y;(y=(R=this.metadata).resize)==null||y.call(R)};
_.J.attached=function(){this.watchController=new _.mM(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.J.detached=function(){_.R_(this.watchController);this.watchController=void 0};
_.J.getPlayerContainer=function(){return this.playerContainer};
_.J.getElement=function(R){switch(R){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22895_playlistPanel}};
_.J.provideRenderingData=function(R,y){switch(R){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=y;break;case "ERROR_SCREEN":this.errorScreen=y!=null?y:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=y;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=y;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=y;break;case "RICH_METADATA":this.richMetadataRowContainer=y;break;case "CLARIFICATION":this.clarificationData=y;break;case "PLAYLIST":this.playlistData=
y!=null?y:{};break;case "MERCH_SHELF":this.merchShelf=y;break;case "TICKET_SHELF":this.ticketShelf=y;break;case "LIMITED_STATE":this.limitedState=y;break;case "DONATION_SHELF":this.donationShelf=y;break;case "ALERTS":this.alerts=y}};
_.RR.Object.defineProperties(DD.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,y,u;return!this.hidden&&!!((R=this.data)==null?0:(y=R.contents)==null?0:(u=y.twoColumnWatchNextResults)==null?0:u.conversationBar)}}});
DD.prototype.sizeChanged=DD.prototype.sizeChanged;DD.prototype.dataChanged=DD.prototype.dataChanged;DD.prototype.playerDataChanged=DD.prototype.playerDataChanged;DD.prototype.onActiveChanged=DD.prototype.onActiveChanged;_.A([_.n(_.OA.YtPageBehavior),_.p("design:type",Object)],DD.prototype,"ytPageBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],DD.prototype,"ytComponentBehavior",void 0);
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],DD.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],DD.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],DD.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],DD.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],DD.prototype,"playerData",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],DD.prototype,"hidden",void 0);_.A([_.O7("#ytd-player"),_.p("design:type",HTMLElement)],DD.prototype,"ytdPlayer",void 0);_.A([_.O7("#player-container"),_.p("design:type",HTMLElement)],DD.prototype,"playerContainer",void 0);_.A([_.O7("#metadata"),_.p("design:type",Object)],DD.prototype,"metadata",void 0);_.A([_.O7("#playlist"),_.p("design:type",HTMLElement)],DD.prototype,"JSC$22895_playlistPanel",void 0);
_.A([_.r({selector:_.WMH,reflectToAttribute:!0}),_.p("design:type",Object)],DD.prototype,"fixie",void 0);_.A([_.r({selector:_.Pno,reflectToAttribute:!0}),_.p("design:type",Object)],DD.prototype,"singleColumn",void 0);_.A([_.r({selector:function(R){return _.t6(R)&&!_.c_(R)},
reflectToAttribute:!0}),_.p("design:type",Object)],DD.prototype,"theater",void 0);_.A([_.r({selector:_.c_,reflectToAttribute:!0}),_.p("design:type",Object)],DD.prototype,"fullscreen",void 0);_.A([_.r({selector:_.y2B}),_.p("design:type",Object)],DD.prototype,"windowSize",void 0);_.A([_.r(),_.p("design:type",Object)],DD.prototype,"singleColumnContents",void 0);_.A([_.r(),_.p("design:type",Object)],DD.prototype,"errorScreen",void 0);_.A([_.r(),_.p("design:type",Object)],DD.prototype,"playlistData",void 0);
_.A([_.r(),_.p("design:type",Object)],DD.prototype,"videoPrimaryInfoRenderer",void 0);_.A([_.r(),_.p("design:type",Object)],DD.prototype,"videoSecondaryInfoRenderer",void 0);_.A([_.r(),_.p("design:type",Object)],DD.prototype,"richMetadataRowContainer",void 0);_.A([_.r(),_.p("design:type",Object)],DD.prototype,"clarificationData",void 0);_.A([_.r(),_.p("design:type",Object)],DD.prototype,"commentsEntryPointHeaderRenderer",void 0);_.A([_.r(),_.p("design:type",Object)],DD.prototype,"ticketShelf",void 0);
_.A([_.r(),_.p("design:type",Object)],DD.prototype,"merchShelf",void 0);_.A([_.r(),_.p("design:type",Object)],DD.prototype,"donationShelf",void 0);_.A([_.r(),_.p("design:type",Object)],DD.prototype,"limitedState",void 0);_.A([_.r(),_.p("design:type",Object)],DD.prototype,"alerts",void 0);_.A([_.G("playlistData"),_.p("design:type",Object),_.p("design:paramtypes",[])],DD.prototype,"hasPlaylistData",null);
_.A([_.G("data","hidden"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],DD.prototype,"hasChat",null);_.A([_.e0("active"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DD.prototype,"onActiveChanged",null);_.A([_.e0("playerData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DD.prototype,"playerDataChanged",null);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DD.prototype,"dataChanged",null);_.A([_.e0("windowSize","singleColumn"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DD.prototype,"sizeChanged",null);
_.m(DD,"ytd-watch-fixie",function(){if(IKE===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);IKE=R}R=IKE;return R},{mode:1});_.NL.registerService(_.TpT,DD);
_.UX();
}catch(e){_._DumpException(e)}
try{
_.ds("xwEKAe");
var OB7=function(R){return _.L9(R)?R.getAttribute("jsname")==="coFSxe":!1},ZB8=function(R,y){y.id||(y.id="ow"+_.YS(y));
R.setAttribute("jsowner",y.id);R.__owner=y;var u=_.$h(y,OB7);u&&(_.UcL.has(u)||_.UcL.set(u,[]),_.UcL.get(u).push(R));(u=_.dcY.get(y))||_.dcY.set(y,u=[]);u.includes(R)||u.push(R);y.setAttribute("__IS_OWNER",!0)},HBm=function(){var R=_.euS(1);
R=_.CF(R,_.GgT);if(!(_.f14(R)||R[_.axG]&&!R.__hasBeenSet))return R.value},n_8=function(R){var y=_.O9();
if(y.getFlag(202))y=y.getFlag(201);else{var u;y=(R==null?void 0:(u=R.config)==null?void 0:u.settingOnByDefault)!==void 0?R.config.settingOnByDefault:!_.f("web_shorts_cinematics_disabled_by_default")}return y},Gzp=function(R){var y=_.O9();
_.Zq(0,201,R);_.Zq(0,202,!0);y.save()},rQK=function(R){return(R=_.i4v(R))?_.Ih4(R):0},Pca=function(R){return R.shorts.isSmallScreenSqueezeback},WTp=function(R){return R.shorts.isPlaybackStarted},kzI=function(R){var y=_.euS(2),u=new Set;
_.GF(function(){return void u.forEach(function(v){return void v()})});
return function(v){var Q=_.gs(y);try{var M=dZo(UZP(R),v);u.add(M);return function(){M();u.delete(M)}}finally{_.gs(Q)}}},E_K=function(R){var y=R.children;
var u=R.root;_.nG(function(){var v=kzI(u)(y);_.GF(v)});
return document.createTextNode("")},dZo=function(R,y){var u=$Z7(R);
(R=HBm())&&ZB8(u,R);y=_.V(_.htz(y,!0));R=y.next().value;var v=y.next().value;u.append.apply(u,_.P$(R));return function(){v();u.remove()}},UZP=function(R){if(typeof R==="string")return R=document.querySelector(R),_.GSm(R),R;
if(_.jS(R)&&R.nodeType===Node.ELEMENT_NODE)return R;if(!R.__value&&!R.__optional){var y=_.Yfz.USE_ELEMENT_NOT_ASSIGNED(R.__expectedTagName);R.__hasErrored=!0;throw y;}return R.value},$Z7=function(R){var y=document.createElementNS(R.namespaceURI,R.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return R.appendChild(y)},qsK=function(R,y,u,v){R=y-R;
u=v-u;return Math.sqrt(R*R+u*u)},XiI=function(R,y){R&&_.ua().resolve(_.jX).resolveCommand(R,{forceClickLogging:!0,
form:{element:y}})},mZa=function(R,y,u,v){R=y-R;
u=v-u;return Math.sqrt(R*R+u*u)},AQI=function(R,y){R&&_.ua().resolve(_.jX).resolveCommand(R,{forceClickLogging:!0,
form:{element:y}})},DZP=function(){return _.ua().resolve(_.GL).dismissedIndices},piH=function(R){return _.iE({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:R}})},tBa=function(R){return _.iE({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:R}})},QT=function(R){return _.iE({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:R}})};var jj=function(R,y){if(R instanceof jj)this.array_=R.array_;else{var u;if(u=_.p8(R))a:{for(var v=u=0;v<R.length;v++){if(!_.p8(R[v])||u>0&&R[v].length!=u){u=!1;break a}for(var Q=0;Q<R[v].length;Q++)if(typeof R[v][Q]!=="number"){u=!1;break a}u==0&&(u=R[v].length)}u=u!=0}if(u)this.array_=_.Az(R);else if(R instanceof _.or)this.array_=cQp(R.height,R.width);else if(typeof R==="number"&&typeof y==="number"&&R>0&&y>0)this.array_=cQp(R,y);else throw Error("no");}this.size_=new _.or(this.array_[0].length,
this.array_.length)},a48=function(R,y,u){for(var v=0;v<R.getSize().height;v++)for(var Q=0;Q<R.getSize().width;Q++)y.call(u,R.array_[v][Q],v,Q,R)},SsH=function(R,y){var u=new jj(R.getSize());
a48(R,function(v,Q,M){u.array_[Q][M]=y.call(void 0,v,Q,M,R)});
return u},cQp=function(R,y){for(var u=[],v=0;v<R;v++){u[v]=[];
for(var Q=0;Q<y;Q++)u[v][Q]=0}return u};
jj.prototype.add=function(R){if(!_.zba(this.size_,R.getSize()))throw Error("oo");return SsH(this,function(y,u,v){return y+R.array_[u][v]})};
jj.prototype.equals=function(R,y){if(this.size_.width!=R.size_.width||this.size_.height!=R.size_.height)return!1;y=y||0;for(var u=0;u<this.size_.height;u++)for(var v=0;v<this.size_.width;v++)if(!_.suP(this.array_[u][v],R.array_[u][v],y))return!1;return!0};
jj.prototype.getSize=function(){return this.size_};
var MT=function(R,y,u){return y>=0&&y<R.size_.height&&u>=0&&u<R.size_.width?R.array_[y][u]:null};
jj.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var Jh=function(R,y,u,v){if(!(y>=0&&y<R.size_.height&&u>=0&&u<R.size_.width))throw Error("po`"+y+"`"+u+"`"+R.size_.height+"`"+R.size_.width);R.array_[y][u]=v};
jj.prototype.multiply=function(R){if(R instanceof jj){if(this.size_.width!=R.getSize().height)throw Error("qo");return Ys7(this,R)}if(typeof R==="number")return LTa(this,R);throw Error("ro");};
var Ys7=function(R,y){var u=new jj(R.size_.height,y.getSize().width);a48(u,function(v,Q,M){for(var K=v=0;K<this.size_.width;K++)v+=MT(this,Q,K)*MT(y,K,M);Jh(u,Q,M,v)},R);
return u},LTa=function(R,y){return SsH(R,function(u){return u*y})};var sBJ=new _.jF("inlineSurveyRenderer");var zeJ=new _.jF("interstitialViewModel");var g_p=new _.jF("reelNavigateCommand");var Ccp=new _.jF("reelNonVideoContentDismissalCommand");var RMa=new _.jF("showReelsCommentsOverlayCommand");var yyJ=new _.jF("shortsSuggestedActionViewModel");var uH7=new _.jF("videoInteractionPopUpRenderer");var vmI;var QwV;var jw8;var VT=function(){var R=_.W.apply(this,arguments)||this;R.ctaVisualElement=null;R.currentCsn=null;return R};
_.O(VT,_.W);_.J=VT.prototype;_.J.onDataChanged=function(){this.maybeLogShows()};
_.J.computeButtonShape=function(){var R=this;if(this.data)return{buttonText:_.u7(this.data.text),state:"active",onTap:function(){R.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.J.maybeCreateCtaVe=function(){var R;if((R=this.data)!=null&&R.badgeInteractionLogging){var y;if(R=(y=this.data.badgeInteractionLogging)==null?void 0:y.trackingParams)this.ctaVisualElement=_.U4(R)}};
_.J.maybeLogClicks=function(){this.currentCsn=_.$I(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.zP(this.currentCsn,this.ctaVisualElement)};
_.J.maybeLogShows=function(){this.currentCsn=_.$I(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Lo(this.currentCsn,[this.ctaVisualElement])};
_.J.onTap=function(){var R;if((R=this.data)!=null&&R.onClickCommand){var y;this.ytComponentBehavior.resolveCommand((y=this.data)==null?void 0:y.onClickCommand);this.maybeLogClicks()}};
VT.prototype.onDataChanged=VT.prototype.onDataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],VT.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],VT.prototype,"ytComponentBehavior",void 0);_.A([_.r({}),_.p("design:type",Object)],VT.prototype,"data",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],VT.prototype,"onDataChanged",null);
_.A([_.q({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],VT);
_.m(VT,"ytd-shopping-overlay-badge-renderer",function(){if(jw8!==void 0)return jw8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return jw8=R},{mode:1});_.h6(_.AI7,"reel-sound-metadata-view-model",{props:{data:_.IC,overlayDensity:_.IC}});_.h6(_.kRg,"player-disclosure-view-model",{props:{data:_.vR}});_.h6(_.A1w,"pivot-button-view-model",{props:{data:_.IC,className:_.IC}});_.h6(_.Du5,"reel-action-bar-view-model",{props:{data:_.vR,buttonShapeOverrideables:_.vR}});_.h6(_.Jd(function(R){function y(){var hz,bO,BW,Zc,xS=(bO=_.e((hz=z())==null?void 0:hz.command,_.ru))==null?void 0:(BW=bO.item)==null?void 0:(Zc=BW.notificationTextRenderer)==null?void 0:Zc.successResponseText;if(xS)_.Ik(v.value,"yt-open-popup-action",[_.MB(xS),v.value]);else if(c())XiI(c(),Z.value);else{var Dc;XiI((Dc=z())==null?void 0:Dc.command,Z.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var u=R.data;var v=_.sh("yt-player-overlay-video-interactions");R=_.V(_.In("0px",void 0,"O1N7Ce"));var Q=R.next().value,M=R.next().value;R=_.V(_.In("0px",void 0,"tTDBdb"));var K=R.next().value,h=R.next().value;R=_.V(_.In(0,void 0,"fh8Zkc"));var b=R.next().value,N=R.next().value;R=_.V(_.In(0,void 0,"CUjqGd"));var T=R.next().value,x=R.next().value,B=function(){var hz;if(((hz=_.fA())==null?void 0:hz.getPlayerState())!==-1){v.value.style.display="inherit";var bO;(bO=_.fA())==null||bO.removeEventListener("onStateChange",
B)}l()},l=function(){var hz=document.querySelector("video");
if(hz){N(hz.getBoundingClientRect().width);x(hz.getBoundingClientRect().height);var bO;M((hz==null?void 0:(bO=hz.style)==null?void 0:bO.left)||"0px");var BW;h((hz==null?void 0:(BW=hz.style)==null?void 0:BW.top)||"0px")}};
_.ny(function(){var hz,bO,BW;if(((hz=_.fA())==null?void 0:hz.getPlayerState())===-1&&Math.round(((BW=(bO=_.fA())==null?void 0:bO.getVideoAspectRatio())!=null?BW:0)*100)!==Math.round(b()/T()*100)){v.value.style.display="none";var Zc,xS;x(b()/((xS=(Zc=_.fA())==null?void 0:Zc.getVideoAspectRatio())!=null?xS:1))}},"VB5m5");
_.nG(function(){var hz;(hz=_.fA())==null||hz.addEventListener("onStateChange",B);window.addEventListener("resize",l);l();var bO,BW,Zc;if((Zc=(bO=u())==null?void 0:(BW=bO.regions)==null?void 0:BW[0])==null||!Zc.transformationMatrix)throw Error("vo");var xS;if((xS=u())==null?0:xS.trackingParams){var Dc;_.GN().graftServerVe((Dc=u().trackingParams)!=null?Dc:"")}_.GF(function(){var $S;($S=_.fA())==null||$S.removeEventListener("onStateChange",B);window.removeEventListener("resize",l)})});
var Z=_.sh("svg"),P=_.V(_.In(!1,void 0,"TPsTce"));R=P.next().value;var k=P.next().value,E=_.V(_.In(!1,void 0,"Uz6CHf"));P=E.next().value;var D=E.next().value,z=function(){var hz;return _.e((hz=u())==null?void 0:hz.popUp,uH7)},c=function(){var hz;
return(hz=u())==null?void 0:hz.command},a=function(){return _.e(c(),_.rm)!==void 0};
E=_.nh(function(){y();return!1});
var L={},QG={};return _.F("yt-player-overlay-video-interactions",{el:v},_.F("svg",{"on:mouseover":_.nh(function(){a()&&k(!0);D(!0);return!1}),
"on:mouseout":_.nh(function(){k(!1);D(!1);return!1}),
"on:keydown":_.nh(function(hz){hz.key==="Enter"&&y();return!1}),
"on:focus":_.nh(function(){a()&&k(!0);return!1}),
"on:blur":_.nh(function(){a()&&k(!1);return!1}),
el:Z,tabindex:0,"aria-label":function(){var hz;return(hz=u())==null?void 0:hz.a11yString},
id:"player-overlay-video-interaction-svg",class:_.Oy("yt-player-overlay-video-interactions__interactions-svg",(L["yt-player-overlay-video-interactions__interactions-svg-hover"]=R,L),(QG["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=P,QG)),role:"button",style:function(){var hz,bO,BW,Zc=(BW=(hz=u())==null?void 0:(bO=hz.regions)==null?void 0:bO[0].transformationMatrix)!=null?BW:[];hz=b();bO=T();BW=[];for(var xS=0,Dc=-1;xS<Zc.length;xS++)xS%3===0&&(Dc++,BW[Dc]=[]),BW[Dc].push(Zc[xS]);
Zc=new jj(BW);BW=new jj([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);BW=Zc.multiply(BW);Zc=new jj([[0,0],[0,0],[0,0],[0,0]]);for(xS=0;xS<BW.getSize().width;xS++){Dc=MT(BW,0,xS);var $S=MT(BW,1,xS);if(Dc===null||$S===null)throw Error("uo`"+(xS+1).toString());Jh(Zc,xS,0,Dc*hz);Jh(Zc,xS,1,$S*bO)}hz=MT(Zc,0,0);xS=MT(Zc,1,0);bO=MT(Zc,0,1);Dc=MT(Zc,1,1);if(hz===null||xS===null||bO===null||Dc===null)throw Error("so");BW=qsK(hz,xS,bO,Dc);$S=MT(Zc,3,0);Zc=MT(Zc,3,1);if($S===null||Zc===null)throw Error("to");Zc=qsK(hz,
$S,bO,Zc);Dc=(Number((Dc*-1).toFixed(2))-Number((bO*-1).toFixed(2)))/(Number(xS.toFixed(2))-Number(hz.toFixed(2)));$S=Math.atan(Dc)*180/Math.PI;xS=Dc===Number.POSITIVE_INFINITY?-90:Dc===Number.NEGATIVE_INFINITY?90:Object.is(Dc,-0)?180:Dc===0?0:Dc>0?$S*-1:hz<xS?$S*-1:Math.abs($S)+180;return"left:calc("+hz+"px + "+Q()+"); top:calc("+(bO+"px + "+K()+"); width:")+(BW+"px; height:")+(Zc+"px; transform:rotate(")+(xS+"deg);")},
"on:click":E}))},"rj"),"yt-player-overlay-video-interactions",{props:{data:_.vR}});_.h6(_.m1K,"yt-reel-metapanel-view-model",{props:{data:_.vR,overlayDensity:_.vR}});var MrV=_.Jd(function(R){var y=R.children;var u=R.region;R=_.V(_.In(void 0,void 0,"rwJZyc"));var v=R.next().value,Q=R.next().value;R=_.V(_.In("0px",void 0,"H14H5c"));var M=R.next().value,K=R.next().value;R=_.V(_.In("0px",void 0,"Mn8Uvf"));var h=R.next().value,b=R.next().value;R=_.V(_.In(0,void 0,"QQCIqc"));var N=R.next().value,T=R.next().value;R=_.V(_.In(0,void 0,"HyEvh"));var x=R.next().value,B=R.next().value,l=function(){var z=v();if(z){var c;if(((c=_.fA())==null?void 0:c.getPlayerState())!==-1){z.style.display=
"inherit";var a;(a=_.fA())==null||a.removeEventListener("onStateChange",l)}P()}},Z=function(){var z=document.querySelectorAll("video");
return Array.from(z).find(function(c){var a;return c==null?void 0:(a=c.style)==null?void 0:a.width})},P=function(){var z=Z();
if(z){T(z.getBoundingClientRect().width);B(z.getBoundingClientRect().height);var c;K((z==null?void 0:(c=z.style)==null?void 0:c.left)||"0px");var a;b((z==null?void 0:(a=z.style)==null?void 0:a.top)||"0px")}};
_.ny(function(){var z=v();if(z){var c,a,L;if(((c=_.fA())==null?void 0:c.getPlayerState())===-1&&Math.round(((L=(a=_.fA())==null?void 0:a.getVideoAspectRatio())!=null?L:0)*100)!==Math.round(N()/x()*100)){z.style.display="none";var QG,hz;B(N()/((hz=(QG=_.fA())==null?void 0:QG.getVideoAspectRatio())!=null?hz:1))}}},"RdGxIf");
var k=function(){P()},E;
_.nG(function(){P();var z;if(!(u==null?0:(z=u())==null?0:z.transformationMatrix))throw Error("vo");var c;(c=_.fA())==null||c.addEventListener("onStateChange",l);if(window.ResizeObserver){if(z=Z())E=new ResizeObserver(k),E.observe(z)}else window.addEventListener("resize",P);_.GF(function(){var a;(a=_.fA())==null||a.removeEventListener("onStateChange",l);E?E.disconnect():window.removeEventListener("resize",P)})});
var D=function(){var z,c,a=(c=u==null?void 0:(z=u())==null?void 0:z.transformationMatrix)!=null?c:[];z=N();c=x();for(var L=[],QG=0,hz=-1;QG<a.length;QG++)QG%3===0&&(hz++,L[hz]=[]),L[hz].push(a[QG]);a=new jj(L);L=new jj([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);L=a.multiply(L);a=new jj([[0,0],[0,0],[0,0],[0,0]]);for(QG=0;QG<L.getSize().width;QG++){hz=MT(L,0,QG);var bO=MT(L,1,QG);if(hz===null||bO===null)throw Error("uo`"+(QG+1).toString());Jh(a,QG,0,hz*z);Jh(a,QG,1,bO*c)}z=MT(a,0,0);QG=MT(a,1,0);c=MT(a,0,1);
hz=MT(a,1,1);if(z===null||QG===null||c===null||hz===null)throw Error("so");L=mZa(z,QG,c,hz);bO=MT(a,3,0);a=MT(a,3,1);if(bO===null||a===null)throw Error("to");a=mZa(z,bO,c,a);hz=(Number((hz*-1).toFixed(2))-Number((c*-1).toFixed(2)))/(Number(QG.toFixed(2))-Number(z.toFixed(2)));bO=Math.atan(hz)*180/Math.PI;QG=hz===Number.POSITIVE_INFINITY?-90:hz===Number.NEGATIVE_INFINITY?90:Object.is(hz,-0)?180:hz===0?0:hz>0?bO*-1:z<QG?bO*-1:Math.abs(bO)+180;return"left:calc("+z+"px + "+M()+"); top:calc("+(c+"px + "+
h()+"); width:")+(L+"px; height:")+(a+"px; transform:rotate(")+(QG+"deg);")};
return _.F(E_K,{root:"#sticker-layer"},function(){return _.F("yt-overlay-sticker",{el:_.VX(Q),style:D,class:"ytOverlayStickerHost"},y)})},"sj");var JyV=_.Jd(function(R){function y(){var l,Z,P,k,E=(Z=_.e((l=b())==null?void 0:l.command,_.ru))==null?void 0:(P=Z.item)==null?void 0:(k=P.notificationTextRenderer)==null?void 0:k.successResponseText;if(E)_.Ik(v.value,"yt-open-popup-action",[_.MB(E),v.value]);else if(N())AQI(N(),v.value);else{var D;AQI((D=b())==null?void 0:D.command,v.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var u=R.data;var v=_.sh("svg"),Q=_.V(_.In(!1,void 0,"T9Bq7b"));R=Q.next().value;var M=Q.next().value,K=_.V(_.In(!1,void 0,"iMHq9c"));Q=K.next().value;var h=K.next().value,b=function(){var l;return _.e((l=u())==null?void 0:l.popUp,uH7)},N=function(){var l;
return(l=u())==null?void 0:l.command},T=function(){return _.e(N(),_.rm)!==void 0};
K=_.nh(function(){y();return!1});
var x={},B={};return _.F("svg",{"on:mouseover":_.nh(function(){T()&&M(!0);h(!0);return!1}),
"on:mouseout":_.nh(function(){M(!1);h(!1);return!1}),
"on:keydown":_.nh(function(l){l.key==="Enter"&&y();return!1}),
"on:focus":_.nh(function(){T()&&M(!0);return!1}),
"on:blur":_.nh(function(){T()&&M(!1);return!1}),
el:v,tabindex:0,"aria-label":function(){var l;return(l=u())==null?void 0:l.a11yString},
id:"player-overlay-video-interaction-svg",class:_.Oy("ytPlayerOverlayInteractionInteractionsSvg",(x.ytPlayerOverlayInteractionInteractionsSvgHover=R,x),(B.ytPlayerOverlayInteractionInteractionsSvgHideOutline=Q,B)),role:"button","on:click":K})},"uj");_.h6(_.Jd(function(R){var y=R.data;_.nG(function(){var u;if((u=y())==null?0:u.trackingParams){var v;_.GN().graftServerVe((v=y().trackingParams)!=null?v:"")}});
return _.F("yt-player-overlay-interaction",null,_.F(MrV,{region:function(){var u,v;return(u=y())==null?void 0:(v=u.regions)==null?void 0:v[0]}},_.F(JyV,Object.assign({},R))))},"tj"),"yt-player-overlay-interaction",{props:{data:_.vR}});var is=function(){var R=_.W.apply(this,arguments)||this;R.showScrubber=!1;R.isWatchWhileMode=!1;R.enableRemixButton=_.f("web_enable_shorts_remix_handoff_ep");R.enableAnchoredPanel=_.f("desktop_shorts_v2_anchored_panel");R.enableNewStickers=_.f("use_shorts_sticker_overlay_web");R.anchoredPanelActive=!1;R.enableLivingroomLayout=_.f("reels_enable_livingroom_layout");R.enablePlayerMetadataContainer=_.f("reels_web_enable_metadata_container");R.enableSqueezebackPanels=_.f("web_shorts_enable_squeezeback_panels");
R.useAspectRatio=_.f("web_use_aspect_ratio");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 y;R.set("isImmersive",((y=window.getComputedStyle(R.hostElement))==null?void 0:y.getPropertyValue("--immersive-mode-on"))==="1");R.set("isImmersiveHorizontal",R.isImmersive&&R.enableLivingroomLayout&&!R.isWatchWhileMode)};
return R};
_.O(is,_.W);_.J=is.prototype;_.J.updateIsOverlay=function(R){this.isOverlay=R.detail.value};
_.J.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.f("web_enable_flexible_overlay")||_.f("web_enable_format_first")||_.f("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.J.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.J.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.J.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.J.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.J.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.J.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.J.ready=function(){(_.f("enable_reel_action_bar_view_model")||this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer"))&&(!_.f("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.VN("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.VN("reels_action_justified_content")||"flex-start")};
_.J.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}}};
_.J.setFakeLoadingButtons=function(){_.f("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.fo("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.fo("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.fo("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.fo("SHARE_LABEL",void 0,"Share")}}}),_.f("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.fo("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()};
_.J.setEmptyOverlayMetadata=function(){_.f("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}))};
_.RR.Object.defineProperties(is.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.infoPanel)}}});
is.prototype.onIsActiveChanged=is.prototype.onIsActiveChanged;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],is.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],is.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],is.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.L6.YtdGuideStateAwareBehavior),_.p("design:type",Object)],is.prototype,"ytdGuideStateAwareBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],is.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Boolean)],is.prototype,"isActive",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],is.prototype,"hidden",void 0);_.A([_.r({value:!0}),_.p("design:type",Boolean)],is.prototype,"useShortsIcon",void 0);_.A([_.r({value:"left"}),_.p("design:type",String)],is.prototype,"buttonTooltipPosition",void 0);
_.A([_.r({value:_.f("reels_enable_livingroom_layout")?"top":"left"}),_.p("design:type",String)],is.prototype,"likeButtonTooltipPosition",void 0);_.A([_.r({value:"none"}),_.p("design:type",String)],is.prototype,"textTransform",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],is.prototype,"showScrubber",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],is.prototype,"isWatchWhileMode",void 0);
_.A([_.r({reflectToAttribute:!0}),_.G("data.infoPanel"),_.p("design:type",Object),_.p("design:paramtypes",[])],is.prototype,"hasInfoPanel",null);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],is.prototype,"enableRemixButton",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],is.prototype,"enableAnchoredPanel",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],is.prototype,"enableNewStickers",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],is.prototype,"anchoredPanelActive",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],is.prototype,"enableLivingroomLayout",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],is.prototype,"enablePlayerMetadataContainer",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],is.prototype,"enableSqueezebackPanels",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],is.prototype,"useAspectRatio",void 0);_.A([_.r({selector:_.l9U,reflectToAttribute:!0}),_.p("design:type",Object)],is.prototype,"isSqueezebackActive",void 0);_.A([_.r({selector:Pca,reflectToAttribute:!0}),_.p("design:type",Object)],is.prototype,"smallScreenSqueezeback",void 0);_.A([_.r({selector:WTp}),_.p("design:type",Object)],is.prototype,"isPlayerStarted",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],is.prototype,"overlayDensity",void 0);_.A([_.r(),_.p("design:type",Object)],is.prototype,"isOverlay",void 0);_.A([_.r({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.p("design:type",Boolean)],is.prototype,"isShortsOverlay",void 0);_.A([_.r(),_.p("design:type",Object)],is.prototype,"isImmersive",void 0);_.A([_.r(),_.p("design:type",Object)],is.prototype,"isImmersiveHorizontal",void 0);
_.A([_.r({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.p("design:type",Boolean)],is.prototype,"isShortsImmersive",void 0);_.A([_.r({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.p("design:type",Object)],is.prototype,"buttonOverride",void 0);_.A([_.r({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.p("design:type",Object)],is.prototype,"actionBarButtonOverride",void 0);
_.A([_.r({selector:_.xY,reflectToAttribute:!0}),_.p("design:type",Object)],is.prototype,"isFullscreen",void 0);_.A([_.e0("isActive"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],is.prototype,"onIsActiveChanged",null);_.A([_.q({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],is);
_.m(is,"ytd-reel-player-overlay-renderer",function(){if(QwV!==void 0)return QwV;var R=document.createElement("template");_.H(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-if" if="[[!enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');R.content.insertBefore(_.t().content.cloneNode(!0),
R.content.firstChild);return QwV=R},{mode:1});var Vrg;var Kf=function(){var R=_.W.apply(this,arguments)||this;R.videoDuration=0;R.playedTime=0;R.isActive=!1;R.JSC$22152_playerEvents=new Map;return R};
_.O(Kf,_.W);_.J=Kf.prototype;_.J.created=function(){this.JSC$22152_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22152_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.J.attached=function(){this.getPlayerAndInitializeListeners()};
_.J.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22152_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.BN(this,this.onPageChanged))};
_.J.getPlayerAndInitializeListeners=function(){var R=this,y;return _.I(function(u){if(u.nextAddress==1)return y=_.I8(),y?u.yield(y.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.BN(R,R.onPageChanged)),u.jumpTo(0));R.player=u.yieldResult;R.initializePlayerListeners();_.f$(u)})};
_.J.onPageChanged=function(R){var y=this;return _.I(function(u){if(u.nextAddress==1)return R.detail.newPageType!=="ytd-shorts"?u.return():u.yield(_.hF().getPlayerPromise(),2);y.player=u.yieldResult;y.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.BN(y,y.onPageChanged));_.f$(u)})};
_.J.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22152_playerEvents)};
_.J.onVideoDataChange=function(R){var y=this;return _.I(function(u){if(!y.player||R.type!=="newdata")return u.return();y.videoDuration=_.f("web_shorts_use_progress_state_for_gapless")?y.player.getProgressState(R.playertype).seekableEnd:y.player.getDuration(R.playertype);y.playedTime=0;_.f$(u)})};
_.J.onVideoProgress=function(R){var y=this,u,v;return _.I(function(Q){if(!y.player)return Q.return();u=y.player.getPresentingPlayerType();v=y.player.getPlayerState();y.videoDuration=_.f("web_shorts_use_progress_state_for_gapless")?y.player.getProgressState(u).seekableEnd:y.player.getDuration(u);y.playedTime=v===0?y.videoDuration:R;_.f$(Q)})};
_.J.getPercentPlayed=function(R,y){return R?_.Ae(y/R,0,1):0};
_.RR.Object.defineProperties(Kf.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([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Kf.prototype,"componentBehavior",void 0);_.A([_.n(_.Ra.YtPlayerListenerBehavior),_.p("design:type",_.yH)],Kf.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Kf.prototype,"player",void 0);_.A([_.r(),_.p("design:type",Object)],Kf.prototype,"videoDuration",void 0);_.A([_.r(),_.p("design:type",Object)],Kf.prototype,"playedTime",void 0);_.A([_.r(),_.p("design:type",Object)],Kf.prototype,"isActive",void 0);
_.A([_.G("videoDuration","playedTime"),_.p("design:type",Number),_.p("design:paramtypes",[])],Kf.prototype,"percentPlayed",null);_.A([_.G("videoDuration","playedTime"),_.p("design:type",Object),_.p("design:paramtypes",[])],Kf.prototype,"percentPlayedStyle",null);_.A([_.G("videoDuration","isActive"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Kf.prototype,"hideProgressBar",null);
_.m(Kf,"ytd-progress-bar-line",function(){if(Vrg===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);Vrg=R}R=Vrg;return R},{mode:_.TN("kevlar_poly_si_batch_j028")?1:2});var iMJ;_.h6(_.ThI,"ytm-closed-captioning-button",{props:{captionIconType:_.vR,onClick:_.IC,ariaLabel:_.vR,ariaPressed:_.vR,isOverlay:_.IC,isModern:_.IC}});_.h6(_.U1V,"desktop-shorts-volume-controls",{props:{orientation:_.vR}});var Iu=function(){var R=_.W.apply(this,arguments)||this;R.playerState=null;R.isMuted=!1;R.shortsModernControlsEnabled=_.f("web_shorts_modern_controls");R.volumeControlsOrientationState=_.f("web_shorts_modern_controls")?"vertical_down":"horizontal_right";R.isOverlay=!0;R.captionIconType=-1;R.ariaLabel="";R.overlayDensity=0;R.JSC$22155_playerEvents=new Map;R.onClosedCaptionsButtonClick=function(){R.player&&_.uy(R.player)&&(R.player.toggleSubtitles(),R.updateCaptionIconType())};
return R};
_.O(Iu,_.W);_.J=Iu.prototype;_.J.created=function(){this.JSC$22155_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22155_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22155_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.J.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.$6(28662);this.playPauseButtonClientVE=_.$6(36842);this.fullscreenButtonToggleOffClientVE=_.$6(222256);this.fullscreenButtonToggleOnClientVE=_.$6(222257);var R=_.$I(),y=_.Ef();R&&y&&(_.f("combine_ve_grafts")?(_.x0(_.GN(),this.muteButtonClientVE,y),_.x0(_.GN(),this.playPauseButtonClientVE,y)):_.Si(R,y,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.J.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22155_playerEvents),this.player=null)};
_.J.updateCaptionIconType=function(){var R=-1,y=void 0,u=_.fo("CLOSED_CAPTIONS_DISABLED");this.player&&_.uy(this.player)&&(_.jna(this.player)?(y=!0,u=_.fo("CLOSED_CAPTIONS_ON"),R=1):(y=!1,u=_.fo("CLOSED_CAPTIONS_OFF"),R=0));this.captionIconType=R;this.ariaPressedState=y;this.ariaLabel=u};
_.J.getPlayerAndInitializeListeners=function(){var R=this,y;return _.I(function(u){if(u.nextAddress==1)return y=_.I8(),y?u.yield(y.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.BN(R,R.onPageChanged)),u.jumpTo(0));R.player=u.yieldResult;R.initializePlayerListeners();_.f$(u)})};
_.J.onPageChanged=function(R){var y=this;return _.I(function(u){if(u.nextAddress==1)return R.detail.newPageType!=="ytd-shorts"?u.return():u.yield(_.hF().getPlayerPromise(),2);y.player=u.yieldResult;y.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.BN(y,y.onPageChanged));_.f$(u)})};
_.J.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22155_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.J.onPlayerStateChange=function(R){this.playerState=R};
_.J.onPlayerVolumeChange=function(R){this.isMuted=R.muted};
_.J.onPlayPauseButtonClick=function(){var R=this,y,u;return _.I(function(v){if(v.nextAddress==1)return v.yield(_.hF().getPlayerPromise(),2);y=v.yieldResult;(u=_.$I())&&R.playPauseButtonClientVE&&_.zP(u,R.playPauseButtonClientVE);y.getPlayerState()!==1?y.playVideo():y.pauseVideo();_.f$(v)})};
_.J.computePlayPauseIcon=function(R){return R===2||R===-1||R===5?_.f("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.f("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.f("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.J.computeFullscreenLabel=function(R){return R?_.fo("FULLSCREEN_EXIT_LABEL"):_.fo("FULLSCREEN_ENTER_LABEL")};
_.J.computePlayPauseLabel=function(R){return R===1||R===3?_.fo("PLAYER_LABEL_PAUSE"):_.fo("PLAYER_LABEL_PLAY")};
_.J.onMuteButtonClick=function(){var R=this,y,u;return _.I(function(v){if(v.nextAddress==1)return v.yield(_.hF().getPlayerPromise(),2);y=v.yieldResult;(u=_.$I())&&R.muteButtonClientVE&&_.zP(u,R.muteButtonClientVE);y.isMuted()?y.unMute(!0):y.mute(!0);_.f$(v)})};
_.J.computeMuteIcon=function(R){return R?"miniplayer:volume-off":"miniplayer:volume-up"};
_.J.computeMuteLabel=function(R){return R?_.fo("PLAYER_LABEL_UNMUTE"):_.fo("PLAYER_LABEL_MUTE")};
_.J.onFullscreenButtonClick=function(){var R=_.$I();R&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.zP(R,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.zP(R,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.WQo()};
_.RR.Object.defineProperties(Iu.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"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.f("web_shorts_modern_controls")?"player_full_exit_alt":_.f("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.f("web_shorts_modern_controls")?"player_full_enter_alt":_.f("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Iu.prototype,"componentBehavior",void 0);_.A([_.n(_.Ra.YtPlayerListenerBehavior),_.p("design:type",_.yH)],Iu.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],Iu.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Iu.prototype,"player",void 0);_.A([_.r(),_.p("design:type",Object)],Iu.prototype,"playerState",void 0);_.A([_.r(),_.p("design:type",Object)],Iu.prototype,"isMuted",void 0);
_.A([_.r({computed:"computePlayPauseIcon(playerState)"}),_.p("design:type",String)],Iu.prototype,"playPauseIcon",void 0);_.A([_.r({computed:"computeMuteIcon(isMuted)"}),_.p("design:type",String)],Iu.prototype,"muteIcon",void 0);_.A([_.r({selector:_.xY}),_.p("design:type",Boolean)],Iu.prototype,"isFullscreen",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Iu.prototype,"shortsModernControlsEnabled",void 0);
_.A([_.r(),_.p("design:type",Object)],Iu.prototype,"volumeControlsOrientationState",void 0);_.A([_.r(),_.p("design:type",Object)],Iu.prototype,"isOverlay",void 0);_.A([_.r(),_.p("design:type",Object)],Iu.prototype,"captionIconType",void 0);_.A([_.r(),_.p("design:type",Object)],Iu.prototype,"ariaLabel",void 0);_.A([_.r(),_.p("design:type",Object)],Iu.prototype,"ariaPressedState",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Iu.prototype,"overlayDensity",void 0);
_.A([_.G("playerState"),_.p("design:type",Object),_.p("design:paramtypes",[])],Iu.prototype,"playPauseButtonData",null);_.A([_.G("isFullscreen"),_.p("design:type",Object),_.p("design:paramtypes",[])],Iu.prototype,"fullscreenButtonData",null);_.A([_.r(),_.p("design:type",Object)],Iu.prototype,"onClosedCaptionsButtonClick",void 0);_.A([_.G("isFullscreen"),_.p("design:type",String),_.p("design:paramtypes",[])],Iu.prototype,"fullscreenIcon",null);
_.m(Iu,"ytd-shorts-player-controls",function(){if(iMJ===void 0){var R=document.createElement("template");_.H(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    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n  </div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');
R.content.insertBefore(_.t().content.cloneNode(!0),R.content.firstChild);iMJ=R}R=iMJ;return R},{mode:1});var KMm;_.h6(_.TtL,"yt-interstitial-view-model",{props:{data:_.vR}});var IDp=_.Jd(function(R){var y=R.data;return _.F("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.F("h1",{class:"reelWatchBreakViewModelHostTitle"},_.F(_.QM,{text:function(){return y().title}})),_.F("h2",{class:"reelWatchBreakViewModelHostBody"},_.F(_.QM,{text:function(){return y().body},
isOverlay:!0})),_.F(_.mk,{data:function(){return y().buttons}},{buttonViewModel:function(u,v){return _.F("div",{class:function(){return v()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.F(_.fQ,{data:u.data}))}}))},"vj");
IDp.idomCompat=!0;_.h6(IDp,"reel-watch-break-view-model",{props:{data:_.vR}});var hh=function(){return _.W.apply(this,arguments)||this};
_.O(hh,_.W);hh.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}}};
_.RR.Object.defineProperties(hh.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var R;return!!_.e((R=this.data)==null?void 0:R.renderer,sBJ)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var R;return!!_.e((R=this.data)==null?void 0:R.renderer,zeJ)}}});
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],hh.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],hh.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],hh.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],hh.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0}),_.G("data.renderer"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],hh.prototype,"isSurvey",null);_.A([_.r({reflectToAttribute:!0}),_.G("data.renderer"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],hh.prototype,"isInterstitialViewModel",null);_.A([_.q({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],hh);
_.m(hh,"ytd-reel-non-video-content-renderer",function(){if(KMm!==void 0)return KMm;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);
return KMm=R},{mode:_.TN("kevlar_poly_si_batch_j028")?1:2});var hMV;_.h6(_.d1M,"desktop-shorts-player-controls",{});var bs=function(){var R=_.W.apply(this,arguments)||this;R.isPlayerPaused=!1;R.isPlayerStarted=!1;R.showPlayerControls=!1;R.showScrubber=!1;R.autoHideJobId=0;R.modern=_.f("web_button_rework");R.overlayType=_.VN("web_shorts_expanded_overlay_type");R.panelData=void 0;R.isWatchWhileMode=!1;R.hasError=!1;R.panelShowDelayMs=1;R.scrubberComponent={};R.isFullscreen=!1;R.shouldHideOverlay=!1;R.enableAnchoredPanel=_.f("desktop_shorts_v2_anchored_panel");R.enablePersistentAnchoredPanel=_.f("desktop_shorts_v2_persistent_anchored_panel");
R.hideWatchWhilePanel=_.f("web_shorts_hide_watch_while_panel");R.useAspectRatio=_.f("web_use_aspect_ratio");R.isPersistentPanelActive=!1;R.anchoredPanelActive=!1;R.isShortsPipActive=!1;R.smallScreenSqueezeback=!1;R.enableFlexibleOverlay=_.f("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(){_.zJ(R,
"calculateOverlayDensity",function(){R.calculateOverlayDensity()},100)};
return R};
_.O(bs,_.W);_.J=bs.prototype;_.J.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.J.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.J.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var R=_.ua().resolve(_.d0);this.isWatchWhileMode&&(_.f("web_enable_shorts_new_carousel")?_.WG.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};
_.J.handleShowReelsCommentsOverlayCommand=function(R){R=_.e(R,RMa);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))};
_.J.updateEngagementPanelVisibility=function(R,y){R&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:y?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:R}})};
_.J.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.J.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.ua().resolve(_.GL).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.J.handleWatchWhilePanelScrimClick=function(){var R=_.ua().resolve(_.d0);this.activeWatchWhilePanel&&(R.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.J.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.J.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:_.f("web_enable_shorts_new_carousel")?0:void 0}}};
_.J.handlePlayerClick=function(R){var y=this,u,v;if((v=(u=window).matchMedia)!=null&&v.call(u,"(any-pointer: coarse)").matches||!R)this.showPlayerControls=!0,_.WG.cancelJob(this.autoHideJobId),this.autoHideJobId=_.Oh(_.WG,function(){y.showPlayerControls=!1},4E3)};
_.J.isFirstReel=function(){return this.index===0};
_.J.handleMouseenter=function(){_.WG.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.J.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.J.handleScrubberEnter=function(){this.showScrubber=!0};
_.J.handleScrubberLeave=function(){this.showScrubber=!1};
_.J.maybeLogNonDefaultAspectRatio=function(){var R;(R=this.data)!=null&&R.thumbnail&&this.isActive&&.5625!==rQK(this.data.thumbnail)&&_.dlW("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.J.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>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&R===1&&(R=0);this.isPersistentPanelActive&&(R=0);window.innerWidth<=599&&(R=2);this.overlayDensity=R;var y;(y=this.onOverlayDensityChanged)==null||y.call(this,this.index,this.overlayDensity)}}};
_.J.onOverlayDensityChange=function(){var R;(R=this.onOverlayDensityChanged)==null||R.call(this,this.index,this.overlayDensity);(R=_.hw(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};
_.J.isVideoContent=function(R){_.ua().resolve(_.GL);return!!_.e(R,_.PV)};
_.J.isNonVideoContent=function(R){_.ua().resolve(_.GL);return!!_.e(R,_.t4)};
_.J.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.RR.Object.defineProperties(bs.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var R,y;return _.f("web_enable_format_first")||((R=this.data)==null?void 0:R.adsOverlay)&&_.f("web_enable_format_first_ads_only")||((y=this.data)==null?void 0:y.reelPlayerOverlayRenderer)&&_.f("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.f("web_shorts_modern_controls"))}},
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(((R=this.data)==null?0:R.command)&&this.isVideoContent(this.data.command)){var y,u;if(((y=this.data)==null?0:y.adsOverlay)&&Object.keys((u=this.data)==null?void 0:u.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var v,Q;if(((v=this.data)==null?0:v.reelPlayerOverlayRenderer)&&Object.keys((Q=this.data)==null?void 0:Q.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
bs.prototype.onOverlayDensityChange=bs.prototype.onOverlayDensityChange;bs.prototype.calculateOverlayDensity=bs.prototype.calculateOverlayDensity;bs.prototype.maybeLogNonDefaultAspectRatio=bs.prototype.maybeLogNonDefaultAspectRatio;bs.prototype.onEngagementPanelsChanged=bs.prototype.onEngagementPanelsChanged;bs.prototype.onScrubberDataChange=bs.prototype.onScrubberDataChange;bs.prototype.updateShouldHideOverlay=bs.prototype.updateShouldHideOverlay;
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],bs.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],bs.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.L6.YtdGuideStateAwareBehavior),_.p("design:type",Object)],bs.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],bs.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Number)],bs.prototype,"index",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],bs.prototype,"isActive",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],bs.prototype,"isHiddenInDom",void 0);_.A([_.r(),_.p("design:type",Object)],bs.prototype,"isPlayerPaused",void 0);_.A([_.r({selector:WTp}),_.p("design:type",Object)],bs.prototype,"isPlayerStarted",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bs.prototype,"showPlayerControls",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bs.prototype,"showScrubber",void 0);_.A([_.r(),_.p("design:type",Object)],bs.prototype,"autoHideJobId",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bs.prototype,"modern",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bs.prototype,"overlayType",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],bs.prototype,"ytdReduxBehavior",void 0);
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],bs.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],bs.prototype,"watchWhileEngagementPanels",void 0);_.A([_.r(),_.p("design:type",Object)],bs.prototype,"panelData",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bs.prototype,"isWatchWhileMode",void 0);_.A([_.r(),_.p("design:type",String)],bs.prototype,"activeWatchWhilePanel",void 0);
_.A([_.r(),_.p("design:type",Object)],bs.prototype,"hasError",void 0);_.A([_.r(),_.p("design:type",Object)],bs.prototype,"panelShowDelayMs",void 0);_.A([_.r(),_.p("design:type",Object)],bs.prototype,"scrubberComponent",void 0);_.A([_.r({selector:_.xY,reflectToAttribute:!0}),_.p("design:type",Object)],bs.prototype,"isFullscreen",void 0);_.A([_.r(),_.p("design:type",Object)],bs.prototype,"shouldHideOverlay",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bs.prototype,"enableAnchoredPanel",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bs.prototype,"enablePersistentAnchoredPanel",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bs.prototype,"hideWatchWhilePanel",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bs.prototype,"useAspectRatio",void 0);
_.A([_.r({selector:_.l9U,reflectToAttribute:!0}),_.p("design:type",Object)],bs.prototype,"isPersistentPanelActive",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bs.prototype,"anchoredPanelActive",void 0);_.A([_.r({selector:_.B2,reflectToAttribute:!0}),_.p("design:type",Object)],bs.prototype,"isShortsPipActive",void 0);_.A([_.r({selector:Pca,reflectToAttribute:!0}),_.p("design:type",Object)],bs.prototype,"smallScreenSqueezeback",void 0);
_.A([_.r({reflectToAttribute:!0}),_.G("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.p("design:type",Object),_.p("design:paramtypes",[])],bs.prototype,"enableFormatFirst",null);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bs.prototype,"enableFlexibleOverlay",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bs.prototype,"overlayDensity",void 0);_.A([_.r(),_.p("design:type",Function)],bs.prototype,"onOverlayDensityChanged",void 0);
_.A([_.r(),_.G("isActive","hasError","isPlayerStarted"),_.p("design:type",Object),_.p("design:paramtypes",[])],bs.prototype,"shouldRenderPlayerElements",null);_.A([_.r(),_.G("isActive","isWatchWhileMode"),_.p("design:type",Object),_.p("design:paramtypes",[])],bs.prototype,"watchWhileOrPersistentActive",null);_.A([_.e0("isActive","hasError","showingExpandedOverlay"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bs.prototype,"updateShouldHideOverlay",null);
_.A([_.r({reflectToAttribute:!0}),_.G("isActive","isPlayerStarted","data"),_.p("design:type",Object),_.p("design:paramtypes",[])],bs.prototype,"shouldRenderScrubber",null);_.A([_.e0("shouldRenderScrubber"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bs.prototype,"onScrubberDataChange",null);_.A([_.G("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.p("design:type",Object),_.p("design:paramtypes",[])],bs.prototype,"overlayComponent",null);
_.A([_.e0("watchWhileEngagementPanels"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bs.prototype,"onEngagementPanelsChanged",null);_.A([_.O7("#player-container"),_.p("design:type",HTMLElement)],bs.prototype,"playerContainer",void 0);_.A([_.O7("#cinematic-container"),_.p("design:type",HTMLElement)],bs.prototype,"cinematicContainer",void 0);
_.A([_.e0("isPersistentPanelActive","data.thumbnail"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bs.prototype,"maybeLogNonDefaultAspectRatio",null);_.A([_.e0("isPersistentPanelActive"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bs.prototype,"calculateOverlayDensity",null);_.A([_.e0("overlayDensity"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bs.prototype,"onOverlayDensityChange",null);
_.A([_.q({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],bs);
_.m(bs,"ytd-reel-video-renderer",function(){if(hMV!==void 0)return hMV;var R=document.createElement("template");_.H(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="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');R.content.insertBefore(_.t().content.cloneNode(!0),
R.content.firstChild);return hMV=R},{mode:_.TN("kevlar_poly_si_batch_j028")?1:2});var FK=function(){var R=_.W.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.enablePreviousContinuation=_.f("shorts_in_playlists_web");R.shortsPipEnabled=_.f("web_shorts_pip");R.isDark=document.documentElement.hasAttribute("dark");R.shortsViewTransitions=_.f("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=_.f("web_scroll_into_view_center");R.formatFirst=_.f("web_enable_format_first")||_.f("web_enable_format_first_ads_only")||_.f("web_enable_format_first_organic_only");R.enableFlexibleOverlay=_.f("web_enable_flexible_overlay");R.useAspectRatio=_.f("web_use_aspect_ratio");R.isShortsInitialized=
!1;R.hidePreviousButtonImmediately=!1;R.showPreviousButtonImmediately=!1;R.endOfNextContinuation=!1;R.currentPlayerIndex=0;R.nextReelVe=_.$6(56921);R.prevReelVe=_.$6(56922);R.loopToggleOffVe=_.$6(198013);R.loopToggleOnVe=_.$6(198014);R.ambientModeToggleVe=_.$6(227860);R.reelPlayerPausedStateRendererVe=_.$6(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","yt-signal-action-toggle-shorts-picture-in-picture":"handleSignalActionToggleShortsPictureInPicture"};R.onOverlayDensityChanged=function(y,u){var v;(v=R.getActiveReelVideo(y))==null||v.setAttribute("overlay-density",String(u))};
return R};
_.O(FK,_.W);_.J=FK.prototype;
_.J.deflateInactivePreviousSlides=function(){var R=_.JT("web_shorts_deflate_inactive_slides_aggressive_distance");if(R>0&&this.shortsProcessedSequence&&this.activeIndex){R=this.activeIndex-R;for(var y=0;y<=R;y++){var u=void 0;((u=this.shortsProcessedSequence[y].reelPlayerOverlayRenderer)==null?0:u.metapanel)&&this.set("shortsProcessedSequence."+y+".reelPlayerOverlayRenderer",{});u=void 0;((u=this.shortsProcessedSequence[y].adsOverlay)==null?0:u.adSlotMetadata)&&this.set("shortsProcessedSequence."+y+
".adsOverlay",{})}}};
_.J.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.J.onResize=function(){var R=_.Qe(),y=R.dispatch,u=this.calculateIsSmallWidth();y.call(R,_.iE({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:u}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.J.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:_.f("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0}}},renderPriority:0}}};
_.J.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var R=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,y=R,u=0;R<250&&(y=R+this.shortsInnerContainer.clientWidth,u=24);_.oX(this.hostElement,{"--ytd-shorts-header-width":y+"px","--ytd-shorts-top-spacing":u+"px"})}};
_.J.isFirstShorts=function(R){return R?this.index===-R.length:this.index===0};
_.J.isActiveReel=function(R,y,u){u&&(y=this.calculatePrevIndex(y,u));return R===y};
_.J.onFullscreenChange=function(){if(_.f("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&&_.ua().resolve(_.cZ).close(!0)}};
_.J.engagementPanelsChanged=function(){var R;this.watchWhileEngagementPanels=(R=this.data)==null?void 0:R.engagementPanels};
_.J.unregisterPanels=function(){var R=_.ua().resolve(_.d0);if(this.watchWhileEngagementPanels)for(var y=_.V(this.watchWhileEngagementPanels),u=y.next();!u.done;u=y.next()){var v=u.value,Q=void 0,M=void 0;u=(Q=v.engagementPanelSectionListRenderer)==null?void 0:(M=Q.identifier)==null?void 0:M.tag;v=this.getPanelContentIdentifier(v.engagementPanelSectionListRenderer);R&&(u&&R.panelMap.delete(u),v&&_.f("web_shorts_panel_caching_bugfix")&&(Q=u=void 0,(Q=(u=R).unregisterPanelContent)==null||Q.call(u,v)))}};
_.J.isVideoContent=function(R){return this.isVideoContentCommand(R==null?void 0:R.command)};
_.J.getActiveReelVideo=function(R){return _.hw(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+R+'"]')};
_.J.calculatePrevIndex=function(R,y){return y?R-((y==null?void 0:y.length)||0):-1};
_.J.onKeydown=function(R){var y=_.u8(R)||[];if(!_.PNK(y))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")&&_.f("web_shorts_keyboard_enable_seek_shortcuts")){var u;(u=this.player)==null||u.seekBy(-5)}else if((R.code==="KeyD"||R.code===
"ArrowRight")&&_.f("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var v;(v=this.player)==null||v.seekBy(5)}};
_.J.onServiceRequestCompleted=function(R,y){R=y.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)};
_.J.handleEngagementPanelVisibilityChanged=function(R,y){var u=_.ua().resolve(_.d0);if(R&&u){var v=this.getPanelIdentifier(R);if(y==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==v){u.hidePanel(this.activePanel);var Q;this.activePanel=((Q=R.identifier)==null?void 0:Q.tag)||R.panelIdentifier}else this.isPersistentPanelActive=!0,_.Qe().dispatch(piH(!0)),this.anchoredPanelActive=!0,this.activePanel=v;else y==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&this.activePanel===
v&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.Qe().dispatch(piH(!1)))}};
_.J.handlePanelScrimClick=function(){var R=_.ua().resolve(_.d0);this.activePanel&&(R.hidePanel(this.activePanel),_.Qe().dispatch(piH(!1)))};
_.J.getShortsLoopSetting=function(){var R,y,u,v,Q;return _.I(function(M){switch(M.nextAddress){case 1:return _.f("kevlar_shorts_auto_advance")?M.yield(_.ET.getInstance(),2):M.return(!0);case 2:return(R=M.yieldResult)?M.yield(R.get("sfvles"),3):M.return(!0);case 3:return u=(y=M.yieldResult)!=null?y:!1,M.yield(R.get("sfvle"),4);case 4:return Q=(v=M.yieldResult)!=null?v:!0,u?M.return(Q):M.return(!0)}})};
_.J.handleSignalActionToggleLoopShortsOff=function(){var R=this,y,u,v;return _.I(function(Q){switch(Q.nextAddress){case 1:if(!R.player)return Q.return();R.player.setLoopVideo(!1);y=_.GN();_.fx(y,R.loopToggleOffVe);return Q.yield(_.ET.getInstance(),2);case 2:return(u=Q.yieldResult)?Q.yield(u.set("sfvle",!1),3):Q.return();case 3:return Q.yield(u.set("sfvles",!0),4);case 4:v=_.O9(),_.Zq(0,203,!1),_.Zq(0,204,!0),v.save(),_.f$(Q)}})};
_.J.handleSignalActionToggleLoopShortsOn=function(){var R=this,y,u,v;return _.I(function(Q){switch(Q.nextAddress){case 1:if(!R.player)return Q.return();R.player.setLoopVideo(!0);y=_.GN();_.fx(y,R.loopToggleOnVe);return Q.yield(_.ET.getInstance(),2);case 2:return(u=Q.yieldResult)?Q.yield(u.set("sfvle",!0),3):Q.return();case 3:return Q.yield(u.set("sfvles",!0),4);case 4:v=_.O9(),_.Zq(0,203,!0),_.Zq(0,204,!0),v.save(),_.f$(Q)}})};
_.J.handleSignalActionToggleCinematicShortsOn=function(){Gzp(!0);var R;(R=this.JSC$22179_cinematicController)==null||_.f4M(R,!0);_.fx(_.GN(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.J.handleSignalActionToggleCinematicShortsOff=function(){Gzp(!1);var R;(R=this.JSC$22179_cinematicController)==null||_.f4M(R,!1);_.fx(_.GN(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.J.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.J.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.J.unhideCurrentOverlay=function(){if(this.overlayContainer){var R=this.overlayContainer.querySelector("#experiment-overlay");R&&_.WG.addLowPriorityJob(function(){R.style.display="unset"},100)}};
_.J.getCurrentShort=function(){if(this.currentEndpoint){var R=this.currentEndpoint;if(this.isNonVideoContentCommand(R)){var y=_.e(R,_.t4);return{reelNonVideoContentRenderer:_.e(y==null?void 0:y.renderer,_.$wc),command:R}}if(this.data){var u;y=(u=_.e(this.currentEndpoint,_.PV))==null?void 0:u.thumbnail;var v;u=(v=this.data.overlay)==null?void 0:v.reelPlayerOverlayRenderer;_.ua().resolve(_.GL);R=this.data;var Q,M;v=(Q=R.overlay)==null?void 0:(M=Q.shortsAdsRenderer)==null?void 0:M.adSlots;if(v!==void 0)v.length===
0?(_.M5("Shorts ads returned no ad slots."),R=void 0):(v.length>1&&_.M5("Shorts ads has more than one ad slots."),R=_.e(v[0],_.uCV));else{var K,h;R=_.e((K=R.overlay)==null?void 0:(h=K.shortsAdsRenderer)==null?void 0:h.overlay,_.uCV)}K=R;R=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.e(this.currentEndpoint,_.PV),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:u,thumbnail:y,command:R,adsOverlay:K}}}};
_.J.created=function(){var R=this;this.scrollToVideoThrottle=new _.v2(function(y){var u;(u=R.getActiveReelVideo(y))==null||u.scrollIntoView({behavior:"smooth",block:"nearest",inline:R.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.v2(function(y){var u;(u=R.getActiveReelVideo(y))==null||u.scrollIntoView({behavior:"auto",block:"nearest",inline:R.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.J.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.J.attached=function(){var R=this;_.ua().resolve(_.GL).registerRootElement(this);this.pageScrollElement=_.hw(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.BN(this,this.processResetAction));_.f("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var y=R.getActiveReelVideo(R.activeIndex);R.maybeCreateIntersectionObserver();y==null||y.scrollIntoView({behavior:"instant",
block:"nearest",inline:R.enableScrollIntoViewCenter?"center":"start"});R.shortsContainer.style.overflowY="scroll"}))};
_.J.calculateSqueezebackPanelSize=function(){var R=this,y=window.innerWidth-456-(window.innerHeight-106)*.5625;_.WG.addLowPriorityJob(function(){y<360?_.Qe().dispatch(tBa(!0)):(R.hostElement.style.setProperty("--anchored-panel-width",Math.min(y,480)+"px"),_.Qe().dispatch(tBa(!1)))})};
_.J.detached=function(){var R=_.ua().resolve(_.GL);R.rootElement=void 0;var y;(y=R.unsubscribeFromStore)==null||y.call(R);R.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.BN(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.J.onResizeFinished=function(R,y){var u=this,v=new ResizeObserver(function(){u.shortsContainer.style.overflowY="hidden";_.WG.addLowPriorityJob(function(){y()},100)});
v.observe(R);return v};
_.J.resetDocumentScrollTop=function(){var R,y;if((R=document)==null?0:(y=R.scrollingElement)==null?0:y.scrollTop)document.scrollingElement.scrollTop=0};
_.J.loadPage_=function(R){var y=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 u;!_.f("web_enable_delay_shorts_sequence_call")&&((u=_.e(this.currentEndpoint,_.PV))==null?0:u.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=R;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){y.isPlayerStarted&&(y.handleOnPlaybackCommand(),y.afterPlayerStarted=function(){})};
this.registerPanel(R)}};
_.J.afterPlayerStarted=function(){};
_.J.handleOnPlaybackCommand=function(){if(_.f("web_shorts_comment_stickers")&&this.isPlayerStarted){var R,y=(R=_.e(this.currentEndpoint,_.PV))==null?void 0:R.onPlaybackCommand;y&&this.ytComponentBehavior.resolveCommand(y)}};
_.J.maybeCreateIntersectionObserver=function(){var R=this,y=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==y){this.intersectionObserverThreshold=y;var u={rootMargin:"0px",threshold:y},v;(v=this.intersectionObserver)==null||v.disconnect();this.intersectionObserver=new IntersectionObserver(function(Q){Q=_.V(Q);for(var M=Q.next();!M.done;M=Q.next())if(M=M.value,M.intersectionRatio>y){M=Number(M.target.id);if(isNaN(M))break;if(M===R.index)break;
_.R$L();R.loadVideo(M);_.mm("r_vtc")}},u);
this.observeShorts()}};
_.J.observeShorts=function(){var R=[].concat(_.P$(_.hw(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));R=_.V(R);for(var y=R.next();!y.done;y=R.next()){y=y.value;var u=void 0;(u=this.intersectionObserver)==null||u.observe(y)}};
_.J.initCsi=function(){_.l5("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"}},y,u;if((y=this.playerData)==null?0:(u=y.cacheMetadata)==null?0:u.isCacheHit)R.isCacheHit=!0;var v;if(y=(v=_.e(this.currentEndpoint,_.PV))==null?void 0:
v.prefetchTaskId)R.prefetchInfo={taskId:y};_.E9(R)};
_.J.isAd=function(){var R,y;return!!((R=_.e(this.currentEndpoint,_.PV))==null?0:(y=R.adClientParams)==null?0:y.isAd)};
_.J.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.J.getPlayerContainer=function(){var R;return(R=_.hw(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:R.playerContainer};
_.J.onPlayerStateChange=function(R){var y=this;this.isPlayerPaused=R===2;R!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?R===1&&this.index===0&&(this.isPlayerStarted||_.Qe().dispatch(QT(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.Qe().dispatch(QT(!0)));this.player&&!this.player.getLoopVideo()&&_.WG.addLowPriorityJob(function(){y.getShortsLoopSetting().then(function(u){var v;(v=y.player)==null||v.setLoopVideo(u)})});
this.isPlayerPaused&&_.f("web_shorts_paused_state_logging")&&_.Lo(_.$I(),[this.reelPlayerPausedStateRendererVe])};
_.J.isInBackground=function(){var R=window.document.visibilityState;return!(!R||R==="visible")};
_.J.isShortPlayable=function(){if(_.f("kevlar_playable_short_killswitch"))return!0;var R;return(R=this.playerData)!=null&&R.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.J.setNormalPlaybackSpeed=function(){var R=this,y,u;return _.I(function(v){if(v.nextAddress==1)return v.yield(R.getPlayer().getPlayerPromise(),2);y=v.yieldResult;u=y.getPlaybackRate();u!==1&&(R.storedPlaybackSpeed=u,y.setPlaybackRate(1));_.f$(v)})};
_.J.restorePlaybackSpeed=function(){var R=this,y;return _.I(function(u){if(u.nextAddress==1)return R.storedPlaybackSpeed===null?u.jumpTo(0):u.yield(R.getPlayer().getPlayerPromise(),3);y=u.yieldResult;y.setPlaybackRate(R.storedPlaybackSpeed);R.storedPlaybackSpeed=null;_.f$(u)})};
_.J.playerDataChanged=function(){var R=this,y,u,v,Q,M,K,h,b,N;return _.I(function(T){if(T.nextAddress==1){y=R.getPlayer();(u=R.intersectionObserver)==null||u.disconnect();if(R.playerData){if(((v=R.playerData.videoDetails)==null?void 0:v.videoId)!==((Q=y.getPlayer())==null?void 0:Q.getVideoData().video_id)){M={};if(K=_.e(R.currentEndpoint,_.PV))M.watch_endpoint=K,K.endTimeSeconds&&(M.end=K.endTimeSeconds);y.loadVideoWithPlayerResponse(R.playerData,M)}}else return T.return();return R.player?T.jumpTo(2):
T.yield(y.getPlayerPromise(),3)}T.nextAddress!=2&&(R.player=T.yieldResult,R.JSC$22179_playerStateChangeListener=R.onPlayerStateChange.bind(R),R.player.addEventListener("onStateChange",R.JSC$22179_playerStateChangeListener),_.f("kevlar_client_enable_shorts_player_bootstrap")&&_.g$(),R.scrollToVideoThrottle.fire(R.index),R.movePlayerToVideo(R.index),_.WG.addLowPriorityJob(function(){R.getShortsLoopSetting().then(function(x){var B;(B=R.player)==null||B.setLoopVideo(x)})}),_.f8b.resolve(R.player),R.player.syncVolume(),
R.getPlayer().focusOnPlayer());
_.WG.addLowPriorityJob(function(){R.observeShorts()},100);
h=R.player.getPlayerState(R.player.getPresentingPlayerType());h!==1||R.isPlayerStarted||_.Qe().dispatch(QT(!0));R.updateBackNavContainerWidth();b=_.e(R.currentEndpoint,_.PV);((N=b)==null?0:N.startTimeSeconds)&&R.player.seekTo(b.startTimeSeconds);if(R.JSC$22179_cinematicController||R.cinematicsInitializeJobId)return T.return();R.cinematicsInitializeJobId=_.WG.addLowPriorityJob(function(){R.initCinematicController();R.cinematicsInitializeJobId=void 0});
_.f$(T)})};
_.J.onShortUndoDismiss=function(){var R=this,y=DZP().pop();y!==void 0&&(_.gn(this,function(){R.showCardWithIndex(y)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.J.onShortsDismiss=function(R){if(R=R.detail.reelDismissalActionRenderer)(R=_.e(R.onDismissalCompletionRenderer,_.gKZ))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:R}}}),this.scrollAndDismissCard()};
_.J.processReelNonVideoContentDismissalCommand=function(R){var y=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);R=_.e(R,Ccp);this.activeDimissalTimeout=setTimeout(function(){y.scrollAndDismissCard()},Number(R==null?void 0:R.delayMs))};
_.J.scrollAndDismissCard=function(){var R=this,y=this.index;DZP().push(y);_.gn(this,function(){var u=R.getPlayableNextIndex();u!==null&&(u=R.getActiveReelVideo(u),R.hideCardWithIndex(y),u==null||u.scrollIntoView({behavior:"smooth",block:"nearest",inline:R.enableScrollIntoViewCenter?"center":"start"}))})};
_.J.hideCardWithIndex=function(R){if(R=this.getActiveReelVideo(R))R.hidden=!0};
_.J.showCardWithIndex=function(R){if(R=this.getActiveReelVideo(R))R.hidden=!1};
_.J.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.J.activeChanged=function(R){_.Qe().dispatch(_.iE({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:R}}));if(R)document.addEventListener("keydown",_.BN(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var y;(y=this.player)==null||y.sendAbandonmentPing()}var u;(u=this.player)==null||u.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.BN(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.J.graftClientVisualElements=function(){if(this.data){var R=_.GN();_.fH5(R,_.NQ({response:this.reelWatchSequenceResponse}));_.x0(R,this.nextReelVe);_.x0(R,this.prevReelVe);_.f("kevlar_shorts_auto_advance")&&(_.x0(R,this.loopToggleOffVe),_.x0(R,this.loopToggleOnVe));_.x0(R,this.ambientModeToggleVe);_.Lo(_.$I(),[this.nextReelVe,this.prevReelVe]);_.f("web_shorts_paused_state_logging")&&_.x0(R,this.reelPlayerPausedStateRendererVe)}};
_.J.graftNvcRenderer=function(){var R,y,u,v,Q=this.index<0?(R=this.shortsProcessedPrevSequence)==null?void 0:(y=R[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:y.command:(u=this.shortsProcessedSequence)==null?void 0:(v=u[this.index])==null?void 0:v.command;if(Q&&this.isNonVideoContentCommand(Q)){R=_.e(Q,_.t4);var M,K;(R=(M=_.e(R==null?void 0:R.renderer,_.$wc))==null?void 0:(K=M.loggingDirectives)==null?void 0:K.trackingParams)&&_.GN().graftServerVe(R)}};
_.J.setActiveIndex=function(){_.ua().resolve(_.GL).setActiveIndex(this.index)};
_.J.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.J.lazyUpdateMiniplayerData=function(){var R=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.WG.addLowPriorityJob(function(){R.updateMiniplayerData();R.updateMiniplayerDataJobId=void 0}))};
_.J.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.WG.cancelJob(this.updateMiniplayerDataJobId)};
_.J.updateMiniplayerData=function(){var R,y,u,v=_.ua().resolve(_.cZ),Q={shortsData:this.getCurrentShort(),previousButtonDisabled:!((R=this.prevButtonData)==null||!R.isDisabled),nextButtonDisabled:!((y=this.nextButtonData)==null||!y.isDisabled),playabilityStatus:(u=this.playerData)==null?void 0:u.playabilityStatus};_.cX(v,Q)};
_.J.resetPlayerLocation=function(){var R=this.getPlayer();this.initialPlayerContainer&&R.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.J.movePlayerToVideo=function(R,y){var u=this;y=y===void 0?!0:y;var v=this.getActiveReelVideo(R),Q=this.getPlayer();if(v){this.overlayContainer?v.appendChild(this.overlayContainer):(this.overlayContainer=_.hw(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,v.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||Q.appendTo(this.overlayContainer.playerContainer,void 0,!0));var M;(M=this.player)==null||M.setSize(NaN,NaN);this.isActive||_.Oh(_.WG,function(){u.isActive=
!0});
Q.style.visibility="visible";_.f("reels_web_disable_rtr_tick")||_.f("reels_web_use_pbs_first_shorts")&&R===0||_.qQ("r_tr");this.currentPlayerIndex=R;v.appendChild(this.errorScreenContainer);var K;(K=this.JSC$22179_cinematicController)==null||_.l48(K)}else y?_.WG.addLowPriorityJob(function(){u.movePlayerToVideo(u.index,!1)}):Math.random()<=_.JT("web_shorts_error_logging_threshold")&&_.Uh(new _.OL("Trying to movePlayerToVideo with undefined container.",{firstAttempt:y,
index:R}))};
_.J.enableFormatFirst=function(R){return _.f("web_enable_format_first")||R.adsOverlay&&_.f("web_enable_format_first_ads_only")||R.reelPlayerOverlayRenderer&&_.f("web_enable_format_first_organic_only")};
_.J.getAspectRatio=function(R){if(R!=null&&R.thumbnail&&this.enableFormatFirst(R))return"--ytd-shorts-player-ratio: "+rQK(R.thumbnail)};
_.J.getBackgroundImage=function(R){if(R!=null&&R.thumbnail)return(R=_.Fj(R.thumbnail.thumbnails))?'background-image:url("'+R+'");':"background-color:black;"};
_.J.onPersistentPanelActiveChanged=function(){var R=this.getCurrentShort();if(R&&this.enableFormatFirst(R)&&(R==null?0:R.thumbnail)&&rQK(R.thumbnail)!==.5625){var y;(y=this.player)==null||y.setSize(NaN,NaN)}};
_.J.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.J.moveCinematicsToVideo=function(){var R=_.hw(this.hostElement).querySelector("ytd-reel-video-renderer");(R==null?0:R.cinematicContainer)&&R.cinematicContainer!==this.shortsCinematicContainer.parentElement&&R.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.J.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.J.updatePrevButtonData=function(){var R=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(R){var y;this.prevButtonData=R=Object.assign({},R,{accessibility:{label:_.fo("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:R.isDisabled||this.index===-(((y=this.shortsProcessedPrevSequence)==null?void 0:y.length)||0),tooltip:this.isUpArrowHidden?"":_.fo("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=R=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.J.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.J.updateNextButtonData=function(){var R=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(R){var y;this.nextButtonData=R=Object.assign({},R,{accessibility:{label:_.fo("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:R.isDisabled||this.index===((y=this.shortsProcessedSequence)==null?void 0:y.length),tooltip:_.fo("NEXT_VIDEO_LABEL")||""})}};
_.J.getPlayablePreviousIndex=function(){for(var R,y=this.index-1;y>=-(((R=this.prevShortsSequence)==null?void 0:R.length)||0);y--)if(!DZP().includes(y))return y;return null};
_.J.getIndexInSequence=function(R,y){return R.findIndex(function(u){var v;return((v=_.e(u.command,_.PV))==null?void 0:v.videoId)===y})};
_.J.handlePrevButtonClick=function(R){var y=this,u,v;return _.I(function(Q){u=y.getPlayablePreviousIndex();if(u===null)return Q.return();y.gestureType=((v=R)==null?void 0:v.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";u===0&&(y.hidePreviousButtonImmediately=!0);if(y.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){y.transitionToVideoThrottle.fire(u)}),Q.return();
y.scrollToVideoThrottle.fire(u);_.f$(Q)})};
_.J.getPlayableNextIndex=function(){for(var R,y=this.index+1;y<(((R=this.shortsProcessedSequence)==null?void 0:R.length)||0);y++)if(!DZP().includes(y))return y;return null};
_.J.handleNextButtonClick=function(R,y){var u=this,v,Q;return _.I(function(M){v=u.getPlayableNextIndex();if(v===null)return M.return();v===1&&(u.showPreviousButtonImmediately=!0);u.gestureType=((Q=R)==null?void 0:Q.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";y&&(u.gestureType=y);if(u.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){u.transitionToVideoThrottle.fire(v)}),M.return();
u.scrollToVideoThrottle.fire(v);_.f$(M)})};
_.J.handleReelNavigateCommand=function(R,y,u){(R=_.e(R,g_p))&&y&&R.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(u)};
_.J.loadVideo=function(R,y){y=y===void 0?!1:y;if(R!==this.currentPlayerIndex){_.Qe().dispatch(QT(!1));if(this.isAd()&&!y){var u;(u=this.player)==null||u.notifyShortsAdSwipeEvent()}if((y=this.JSC$22179_cinematicController)!=null){var v;(v=y.currentCinematicEffect)==null||v.pause()}if((v=this.JSC$22179_cinematicController)!=null){var Q;(Q=v.currentCinematicEffect)==null||Q.clear()}v=R>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(v));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var M,K,h,b;Q=R<0?(M=this.shortsProcessedPrevSequence)==null?void 0:(K=M[this.shortsProcessedPrevSequence.length+R])==null?void 0:K.command:(h=this.shortsProcessedSequence)==null?void 0:(b=h[R])==null?void 0:b.command;this.index=R;this.gestureType||(this.gestureType=v?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
Q&&this.isVideoContentCommand(Q)&&(this.ytComponentBehavior.resolveCommand(Q,{form:{createScreenConfig:{clickedVisualElement:v?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(Q&&this.isNonVideoContentCommand(Q)){this.currentEndpoint=Q;this.data=void 0;M=_.GN();K=_.e(Q,_.t4);var N,T;(K=(N=_.e(K==null?void 0:K.renderer,_.$wc))==null?void 0:(T=N.screenLoggingData)==null?void 0:T.screenVeType)&&_.om(M,K);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(N=this.getActiveReelVideo(R))&&N.appendChild(this.overlayContainer)}var x,B;if(((x=this.reelWatchSequenceResponse)==null?0:x.continuationEndpoint)&&((B=this.reelWatchSequenceResponse)==null?0:B.entries)&&R===this.reelWatchSequenceResponse.entries.length-1){var l,Z;x={contentPlaybackContext:_.UZ({},(Z=_.e((l=this.currentEndpoint)==null?void 0:l.commandMetadata,_.QL))==null?void 0:Z.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:x})}var P,k,E;((P=this.reelWatchSequenceResponse)==null?0:P.prevContinuationEndpoint)&&R===-(((k=this.reelWatchSequenceResponse)==null?void 0:(E=k.prevEntries)==null?void 0:E.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.J.setMiniplayerPreview=function(R){R=(R===void 0?0:R)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var y,u,v=_.ua().resolve(_.cZ),Q={shortsData:void 0,shortsPreviewThumbnail:R?(y=this.shortsProcessedSequence)==null?void 0:(u=y[R])==null?void 0:u.thumbnail:void 0};_.cX(v,Q)};
_.J.updateTitle=function(R){var y,u;R=(R==null?0:R.adSlots)?"":(u=R==null?void 0:(y=R.videoDetails)==null?void 0:y.title)!=null?u:"";_.Ko(this.hostElement,"yt-update-title",R)};
_.J.registerPanel=function(R){var y=_.ua().resolve(_.d0);if(y){R=_.V(R.engagementPanels||[]);for(var u=R.next();!u.done;u=R.next()){u=u.value;var v=this.getPanelContentIdentifier(u.engagementPanelSectionListRenderer),Q=void 0,M=void 0;(M=(Q=y).registerPanelContent)==null||M.call(Q,v,u)}}};
_.J.getPanelIdentifier=function(R){var y;return(R==null?void 0:(y=R.identifier)==null?void 0:y.tag)||(R==null?void 0:R.panelIdentifier)||(R==null?void 0:R.targetId)};
_.J.getPanelContentIdentifier=function(R){var y;return(R==null?void 0:R.targetId)||(R==null?void 0:R.panelIdentifier)||(R==null?void 0:(y=R.identifier)==null?void 0:y.tag)};
_.J.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;_.Qe().dispatch(QT(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;_.Qe().dispatch(piH(!1));var R=_.ua().resolve(_.GL);R.dismissedIndices=[];R.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&
_.ua().resolve(_.cZ).close(!0)};
_.J.processAppendReelWatchSequenceContinuationEntriesAction=function(R){var y=this,u;(u=this.intersectionObserver)==null||u.disconnect();R=R.appendReelWatchSequenceContinuationEntriesAction;if(R==null?0:R.entries){var v;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.P$(((v=this.reelWatchSequenceResponse)==null?void 0:v.entries)||[]),_.P$(R.entries)),continuationEndpoint:R.continuationEndpoint})}else if(R==null?0:R.prevEntries){var Q;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.P$(((Q=this.reelWatchSequenceResponse)==null?void 0:Q.prevEntries)||[]),_.P$(R.prevEntries)),prevContinuationEndpoint:R.prevContinuationEndpoint});_.WG.addLowPriorityJob(function(){y.movePlayerToVideo(y.index);var M;(M=y.getActiveReelVideo(y.index))==null||M.scrollIntoView({block:"nearest",inline:y.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.WG.addLowPriorityJob(function(){y.observeShorts()},100)};
_.J.processWatchSequence=function(R){var y=this;return R.map(function(u){u=u.command;if(y.isVideoContentCommand(u)){var v=_.e(u,_.PV);return{reelPlayerOverlayRenderer:_.e(v==null?void 0:v.overlay,_.qcg),thumbnail:v.thumbnail,command:u}}return y.isNonVideoContentCommand(u)?(v=_.e(u,_.t4),{reelNonVideoContentRenderer:_.e(v==null?void 0:v.renderer,_.$wc),command:u}):{command:u}})};
_.J.calculateIntersectionObserverThreshold=function(){var R=_.hw(this.hostElement).querySelector("ytd-reel-video-renderer"),y=1;(R==null?0:R.offsetHeight)&&(R==null?0:R.offsetWidth)&&(y=Math.min(R.offsetHeight,this.shortsContainer.offsetHeight)/R.offsetHeight*(Math.min(R.offsetWidth,this.shortsContainer.offsetWidth)/R.offsetWidth));return Math.round(y*.6*10)/10};
_.J.isVideoContentCommand=function(R){_.ua().resolve(_.GL);return!!_.e(R,_.PV)};
_.J.isNonVideoContentCommand=function(R){_.ua().resolve(_.GL);return!!_.e(R,_.t4)};
_.J.initCinematicController=function(){var R=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22179_cinematicController=new _.vn(this.shortsCinematicContainer,this.player);var y,u=_.e((y=this.data)==null?void 0:y.background,_.B6);_.eeP(this.JSC$22179_cinematicController,u);_.f4M(this.JSC$22179_cinematicController,n_8(u));_.BHp(this.JSC$22179_cinematicController);_.WG.addLowPriorityJob(function(){R.moveCinematicsToVideo()})}};
_.J.handleMiniplayerNavigateShorts=function(R){R==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():R==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.J.handleSignalActionToggleShortsPictureInPicture=function(){if(_.ua().resolve(_.cZ).pictureInPictureSupported()){var R=_.ua().resolve(_.GL);if(_.f("web_shorts_pip")){var y=_.ua().resolve(_.cZ);R.isShortsPipActive()?y.deactivate():y.isMiniplayerActive()||(_.Hr().shortsPipActivation=!0,_.tQI(y))}}else(R=this.player)==null||R.togglePictureInPicture()};
_.RR.Object.defineProperties(FK.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.reelWatchSequenceResponse)!=null&&R.prevEntries)return this.processWatchSequence([].concat(_.P$(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 y=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.P$(this.prevShortsSequence.slice(0,y)),[R],_.P$(this.prevShortsSequence.slice(y+
1)))}y=this.index+this.shortsProcessedPrevSequence.length;R.thumbnail=this.shortsProcessedPrevSequence[y].thumbnail;return[].concat(_.P$(this.shortsProcessedPrevSequence.slice(0,y)),[R],_.P$(this.shortsProcessedPrevSequence.slice(y+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 y=this.getIndexInSequence(this.shortsSequence,_.e(this.currentEndpoint,_.PV).videoId);if(this.index===0&&y!==-1)return this.currentPlayerIndex=this.index=y,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.P$(this.shortsSequence.slice(0,this.index)),[R],_.P$(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){R.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var u,v,Q,M;y=((v=_.e((u=this.shortsProcessedSequence[0])==null?void 0:u.command,_.PV))==null?void 0:v.videoId)===((M=_.e((Q=this.shortsSequence[0])==null?void 0:Q.command,_.PV))==null?void 0:M.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.P$(this.shortsProcessedSequence.slice(0,
this.index)),[R],_.P$(this.shortsSequence.slice(y)))}return[R].concat(_.P$(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,y;return this.index===((R=this.reelWatchSequenceResponse)==null?void 0:(y=R.entries)==null?void 0:y.length)}var u;return!((u=this.reelWatchSequenceResponse)==null?0:u.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,y,u;return this.isShortPlayable()||((y=_.e((R=this.data)==null?void 0:R.watchStatus,_.ScY))==null?void 0:(u=y.style)==null?void 0:u.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var R=this,y=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),u;if((this.data||y)&&(((u=this.data)==null?0:u.engagementPanels)||this.isAd()||y)){y=!1;this.activePanel="shorts-comments-panel";var v;u=_.V(((v=this.data)==null?void 0:v.engagementPanels)||[]);for(v=u.next();!v.done;v=u.next())if(this.getPanelIdentifier(v.value.engagementPanelSectionListRenderer)===this.activePanel){y=!0;break}if(this.isPersistentPanelActive){var Q=
_.ua().resolve(_.d0);_.Oh(_.WG,function(){Q.showPanel(R.activePanel,void 0,void 0,void 0,null)},100)}var M;
v=[].concat(_.P$(Object.values(((M=this.data)==null?void 0:M.engagementPanels)||{})));if(_.f("enable_preview_panel_for_shorts_search_suggested_action")){var K,h,b,N,T;((N=_.e((K=this.data)==null?void 0:(h=K.overlay)==null?void 0:(b=h.reelPlayerOverlayRenderer)==null?void 0:b.metapanel,_.EWK))==null?void 0:(T=N.metadataItems)==null?void 0:T.find(function(x){var B,l;return((B=_.e(x,yyJ))==null?void 0:(l=B.icon)==null?void 0:l.iconType)==="SEARCH"}))!==void 0&&v.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}M=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);K=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return M===void 0&&K===void 0||(M==null?0:M.isDisabled)||(K==null?void 0:K.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!y?(y=v==null?void 0:v.findIndex(function(x){var B,
l;return((B=x.engagementPanelSectionListRenderer)==null?void 0:(l=B.identifier)==null?void 0:l.tag)==="shorts-comments-panel"}),y===-1||y===void 0||v!=null&&v.splice(y,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.fo("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.fo("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:_.fo("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.fo("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(_.P$(Object.values(v||
{})))):v}}},
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,y,u,v;if((y=this.playerData)==null?0:(u=y.playabilityStatus)==null?0:(v=u.errorScreen)==null?0:v.playerInterstitialRenderer)return _.WG.addLowPriorityJob(function(){R.movePlayerToVideo(R.index)}),this.playerData.playabilityStatus.errorScreen;
var Q,M;return((Q=this.data)==null?void 0:Q.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((M=this.data)==null?0:M.watchStatus)&&_.e(this.data.watchStatus,_.pt8)?(_.WG.addLowPriorityJob(function(){R.movePlayerToVideo(R.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.RR.Object.defineProperties(FK,{template:{configurable:!0,enumerable:!0,get:function(){if(vmI===void 0){var R=document.createElement("template");_.H(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    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n      <template class="style-scope ytd-shorts">\n        <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n          <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n          </div>\n        </div>\n      </template>\n    </dom-repeat>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
R.content.insertBefore(_.t().content.cloneNode(!0),R.content.firstChild);vmI=R}R=vmI;return R}}});
FK.prototype.onNextButtonDataChange=FK.prototype.onNextButtonDataChange;FK.prototype.onPrevButtonDataChange=FK.prototype.onPrevButtonDataChange;FK.prototype.onPersistentPanelActiveChanged=FK.prototype.onPersistentPanelActiveChanged;FK.prototype.lazyUpdateMiniplayerData=FK.prototype.lazyUpdateMiniplayerData;FK.prototype.onShortsPipActiveChanged=FK.prototype.onShortsPipActiveChanged;FK.prototype.setActiveIndex=FK.prototype.setActiveIndex;FK.prototype.graftNvcRenderer=FK.prototype.graftNvcRenderer;
FK.prototype.graftClientVisualElements=FK.prototype.graftClientVisualElements;FK.prototype.onActiveChanged=FK.prototype.onActiveChanged;FK.prototype.onShortsDismiss=FK.prototype.onShortsDismiss;FK.prototype.onShortUndoDismiss=FK.prototype.onShortUndoDismiss;FK.prototype.playerDataChanged=FK.prototype.playerDataChanged;FK.prototype.afterPlayerStarted=FK.prototype.afterPlayerStarted;FK.prototype.unhideCurrentOverlay=FK.prototype.unhideCurrentOverlay;FK.prototype.onServiceRequestCompleted=FK.prototype.onServiceRequestCompleted;
FK.prototype.engagementPanelsChanged=FK.prototype.engagementPanelsChanged;FK.prototype.onFullscreenChange=FK.prototype.onFullscreenChange;FK.prototype.onResize=FK.prototype.onResize;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],FK.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.OA.YtPageBehavior),_.p("design:type",Object)],FK.prototype,"ytPageBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],FK.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.n(_.qv),_.p("design:type",Object)],FK.prototype,"ironResizableBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],FK.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.c4),_.p("design:type",Object)],FK.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.n(_.L6.YtdGuideStateAwareBehavior),_.p("design:type",Object)],FK.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],FK.prototype,"ytdReduxBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],FK.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],FK.prototype,"playerData",void 0);_.A([_.r(),_.p("design:type",Object)],FK.prototype,"reelWatchSequenceResponse",void 0);_.A([_.r(),_.p("design:type",Object)],FK.prototype,"cachedReelWatchSequenceResponse",void 0);_.A([_.r(),_.p("design:type",Object)],FK.prototype,"cachedSequenceParams",void 0);_.A([_.r(),_.p("design:type",Object)],FK.prototype,"cachedSequenceProvider",void 0);
_.A([_.r(),_.p("design:type",Object)],FK.prototype,"currentEndpoint",void 0);_.A([_.r(),_.p("design:type",Object)],FK.prototype,"nextButtonData",void 0);_.A([_.r(),_.p("design:type",Object)],FK.prototype,"prevButtonData",void 0);_.A([_.r(),_.p("design:type",Object)],FK.prototype,"isPreviousPageShorts",void 0);_.A([_.r(),_.p("design:type",Object)],FK.prototype,"index",void 0);_.A([_.r(),_.p("design:type",Object)],FK.prototype,"delayedActiveIndex",void 0);
_.A([_.r(),_.p("design:type",Object)],FK.prototype,"playablePreviousIndex",void 0);_.A([_.r(),_.p("design:type",Object)],FK.prototype,"player",void 0);_.A([_.r(),_.p("design:type",Object)],FK.prototype,"isPlayerPaused",void 0);_.A([_.r({selector:WTp}),_.p("design:type",Object)],FK.prototype,"isPlayerStarted",void 0);_.A([_.r(),_.p("design:type",Object)],FK.prototype,"intersectionObserver",void 0);_.A([_.r(),_.p("design:type",Number)],FK.prototype,"cinematicsInitializeJobId",void 0);
_.A([_.r(),_.p("design:type",Number)],FK.prototype,"updateMiniplayerDataJobId",void 0);_.A([_.r(),_.p("design:type",Object)],FK.prototype,"fitToVisibleBounds",void 0);_.A([_.r(),_.p("design:type",Object)],FK.prototype,"pageSubtype",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],FK.prototype,"enablePreviousContinuation",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],FK.prototype,"shortsPipEnabled",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],FK.prototype,"isDark",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],FK.prototype,"shortsViewTransitions",void 0);_.A([_.r({selector:_.xY,reflectToAttribute:!0}),_.p("design:type",Object)],FK.prototype,"isFullscreen",void 0);_.A([_.r({selector:_.B2,reflectToAttribute:!0}),_.p("design:type",Object)],FK.prototype,"isShortsPipActive",void 0);
_.A([_.O7("#shorts-inner-container"),_.p("design:type",HTMLElement)],FK.prototype,"shortsInnerContainer",void 0);_.A([_.O7("#back-nav-button ytd-button-renderer"),_.p("design:type",_.J3)],FK.prototype,"backNavButton",void 0);_.A([_.O7("#shorts-container"),_.p("design:type",HTMLElement)],FK.prototype,"shortsContainer",void 0);_.A([_.w8("error-screen"),_.p("design:type",HTMLElement)],FK.prototype,"errorScreenContainer",void 0);
_.A([_.w8("player"),_.p("design:type",Object)],FK.prototype,"playerElement",void 0);_.A([_.w8("shorts-cinematic-container"),_.p("design:type",HTMLElement)],FK.prototype,"shortsCinematicContainer",void 0);_.A([_.w8("initial-player-container"),_.p("design:type",HTMLElement)],FK.prototype,"initialPlayerContainer",void 0);_.A([_.r(),_.p("design:type",Object)],FK.prototype,"buttonOverride",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],FK.prototype,"anchoredPanelActive",void 0);
_.A([_.r(),_.p("design:type",String)],FK.prototype,"activePanel",void 0);_.A([_.r(),_.p("design:type",Object)],FK.prototype,"isActive",void 0);_.A([_.r({selector:Pca,reflectToAttribute:!0}),_.p("design:type",Object)],FK.prototype,"smallScreenPersistentPanel",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],FK.prototype,"isPersistentPanelActive",void 0);_.A([_.r(),_.p("design:type",Object)],FK.prototype,"smallScreenSqueezeBack",void 0);
_.A([_.r(),_.p("design:type",Object)],FK.prototype,"enableScrollIntoViewCenter",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],FK.prototype,"formatFirst",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],FK.prototype,"enableFlexibleOverlay",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],FK.prototype,"useAspectRatio",void 0);_.A([_.r(),_.p("design:type",Object)],FK.prototype,"panelContainer",void 0);
_.A([_.r(),_.p("design:type",Object)],FK.prototype,"overlayContainer",void 0);_.A([_.r(),_.p("design:type",Object)],FK.prototype,"isShortsInitialized",void 0);_.A([_.G("reelWatchSequenceResponse"),_.p("design:type",Object),_.p("design:paramtypes",[])],FK.prototype,"prevShortsSequence",null);_.A([_.G("data","prevShortsSequence"),_.p("design:type",Object),_.p("design:paramtypes",[])],FK.prototype,"shortsProcessedPrevSequence",null);
_.A([_.G("reelWatchSequenceResponse"),_.p("design:type",Object),_.p("design:paramtypes",[])],FK.prototype,"shortsSequence",null);_.A([_.G("data","shortsSequence"),_.p("design:type",Object),_.p("design:paramtypes",[])],FK.prototype,"shortsProcessedSequence",null);
_.A([_.r({reflectToAttribute:!0}),_.G("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],FK.prototype,"isUpArrowHidden",null);_.A([_.r({reflectToAttribute:!0}),_.G("reelWatchSequenceResponse","index","endOfNextContinuation"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],FK.prototype,"isDownArrowHidden",null);
_.A([_.r(),_.G("index"),_.p("design:type",Number),_.p("design:paramtypes",[])],FK.prototype,"activeIndex",null);_.A([_.G("isShortPlayable","data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],FK.prototype,"shouldRenderOfflineContent",null);_.A([_.fu("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FK.prototype,"onResize",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],FK.prototype,"anchoredEngagementPanels",null);
_.A([_.r(),_.p("design:type",Object)],FK.prototype,"watchWhileEngagementPanels",void 0);_.A([_.e0("isFullscreen"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FK.prototype,"onFullscreenChange",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FK.prototype,"engagementPanelsChanged",null);
_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Mp]),_.p("design:returntype")],FK.prototype,"onServiceRequestCompleted",null);_.A([_.G("data","shortsSequence","index"),_.p("design:type",Object),_.p("design:paramtypes",[])],FK.prototype,"activeReel",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FK.prototype,"unhideCurrentOverlay",null);
_.A([_.e0("isPlayerStarted"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FK.prototype,"afterPlayerStarted",null);_.A([_.G("playerData","reelWatchSequenceResponse","data"),_.p("design:type",Object),_.p("design:paramtypes",[])],FK.prototype,"errorScreen",null);_.A([_.G("errorScreen"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],FK.prototype,"hasError",null);
_.A([_.e0("playerData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype",Promise)],FK.prototype,"playerDataChanged",null);_.A([_.fu("yt-dismissible-item-undo-feedback"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FK.prototype,"onShortUndoDismiss",null);_.A([_.fu("yt-disable-lockup-interaction"),_.p("design:type",Function),_.p("design:paramtypes",[Object]),_.p("design:returntype")],FK.prototype,"onShortsDismiss",null);
_.A([_.GJ("active"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FK.prototype,"onActiveChanged",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FK.prototype,"graftClientVisualElements",null);_.A([_.e0("currentPlayerIndex"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FK.prototype,"graftNvcRenderer",null);
_.A([_.e0("index"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FK.prototype,"setActiveIndex",null);_.A([_.e0("isShortsPipActive"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FK.prototype,"onShortsPipActiveChanged",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FK.prototype,"lazyUpdateMiniplayerData",null);
_.A([_.r(),_.p("design:type",Object)],FK.prototype,"onOverlayDensityChanged",void 0);_.A([_.e0("isPersistentPanelActive"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FK.prototype,"onPersistentPanelActiveChanged",null);_.A([_.e0("index","data","isUpArrowHidden"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FK.prototype,"onPrevButtonDataChange",null);
_.A([_.e0("index","data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FK.prototype,"onNextButtonDataChange",null);_.A([_.q({is:"ytd-shorts"})],FK);_.NL.registerService(_.NpG,FK);
_.UX();
}catch(e){_._DumpException(e)}
try{
_.ds("JzFVk");
var Zfm=function(R){return _.F("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},OfZ(R.data.ctaButton,{buttonViewModel:{}}),_.F(_.QM,{text:R.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var HfJ;var nKV;var dp=function(){return _.W.apply(this,arguments)||this};
_.O(dp,_.W);dp.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
dp.prototype.computeBlueBottomLink=function(R){return R};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],dp.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],dp.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],dp.prototype,"data",void 0);_.A([_.r({computed:"computeIcon_(data.bottomIcon)"}),_.p("design:type",String)],dp.prototype,"bottomIcon",void 0);
_.A([_.r({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.p("design:type",Boolean)],dp.prototype,"enableBlueBottomLink",void 0);_.A([_.q({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],dp);
_.m(dp,"ytd-web-answer-renderer",function(){if(nKV!==void 0)return nKV;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return nKV=R},{mode:_.TN("kevlar_poly_si_batch_j035")?1:2});var GeM;var Uw=function(){var R=_.W.apply(this,arguments)||this;R.hasChipBar=!1;return R};
_.O(Uw,_.W);Uw.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}}};
Uw.prototype.computeHasChipBar=function(R){return!(R==null||!R.chipBar)};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Uw.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Uw.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Uw.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.p("design:type",Object)],Uw.prototype,"hasChipBar",void 0);_.A([_.q({is:"ytd-search-header-renderer",disableElementRegistration:!0})],Uw);
_.m(Uw,"ytd-search-header-renderer",function(){if(GeM!==void 0)return GeM;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return GeM=R},{mode:1});var rh7;var ko=function(){return _.W.apply(this,arguments)||this};
_.O(ko,_.W);ko.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ko.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],ko.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ko.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-page-continuation"})],ko);
_.m(ko,"ytd-page-continuation",function(){if(rh7!==void 0)return rh7;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return rh7=R},{mode:1});var Ps7;var WdI;var dTJ;var Ew=function(){return _.W.apply(this,arguments)||this};
_.O(Ew,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Ew.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Ew.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],Ew);
_.m(Ew,"ytd-watch-card-one-vs-one-event",function(){if(dTJ!==void 0)return dTJ;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return dTJ=R},{mode:1});var $o=function(){return _.W.apply(this,arguments)||this};
_.O($o,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],$o.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],$o.prototype,"data",void 0);_.A([_.q({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],$o);
_.m($o,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(WdI!==void 0)return WdI;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return WdI=R},{mode:1});var UTm;var qI=function(){return _.W.apply(this,arguments)||this};
_.O(qI,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],qI.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],qI.prototype,"data",void 0);_.A([_.q({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],qI);
_.m(qI,"ytd-banner-and-box-hero-image-renderer",function(){if(UTm!==void 0)return UTm;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return UTm=R},{mode:1});var keJ;var XP=function(){var R=_.W.apply(this,arguments)||this;R.modern=_.f("web_modern_buttons");return R};
_.O(XP,_.W);XP.prototype.computeIcon=function(){var R,y,u=(R=this.data)==null?void 0:(y=R.icon)==null?void 0:y.iconType;if(u)return _.fk(u)};
XP.prototype.computeButtonShape=function(){var R;return{buttonText:_.u7((R=this.data)==null?void 0:R.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.RR.Object.defineProperties(XP.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],XP.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],XP.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],XP.prototype,"modern",void 0);_.A([_.r({type:_.f("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.G("data.style"),_.p("design:type",Object),_.p("design:paramtypes",[])],XP.prototype,"buttonColor",null);
_.A([_.q({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],XP);
_.m(XP,"ytd-call-to-action-button-renderer",function(){if(keJ!==void 0)return keJ;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return keJ=R},{mode:1});var EKP;var mw=function(){return _.W.apply(this,arguments)||this};
_.O(mw,_.W);mw.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.hw(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.b0(this.data.leftThumbnail.thumbnails,216)+")")};
mw.prototype.onLeftThumbnailChanged=mw.prototype.onLeftThumbnailChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],mw.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],mw.prototype,"data",void 0);_.A([_.e0("data.leftThumbnail"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],mw.prototype,"onLeftThumbnailChanged",null);_.A([_.q({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],mw);
_.m(mw,"ytd-collage-hero-image-renderer",function(){if(EKP!==void 0)return EKP;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return EKP=R},{mode:1});var $Ta;var AP=function(){return _.W.apply(this,arguments)||this};
_.O(AP,_.W);AP.prototype.computeStyle=function(R){return R};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],AP.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],AP.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.p("design:type",String)],AP.prototype,"componentStyle",void 0);_.A([_.q({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],AP);
_.m(AP,"ytd-single-hero-image-renderer",function(){if($Ta!==void 0)return $Ta;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return $Ta=R},{mode:1});var qYg;var Dv=function(){return _.W.apply(this,arguments)||this};
_.O(Dv,_.W);_.J=Dv.prototype;
_.J.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:_.f("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.J.computeSubtitle=function(R){if(this.data){var y;if(this.data.upcomingEventData){R=_.u7(R.subtitle);var u=Number(this.data.upcomingEventData.startTime);isNaN(u)||(y=_.ye(_.DO(R,u)))}else y=R.subtitle;return y}};
_.J.onHeroTap=function(R){R.preventDefault();var y=this.data&&this.data.navigationEndpoint;!y||!_.JF(_.u8(R),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.JF(_.u8(R),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.f("kevlar_watchcard_hero_video_renderer_killswitch")?_.Ko(this.hostElement,"yt-navigate",{navigationEndpoint:y}):this.ytComponentBehavior.resolveCommand(y))};
_.J.computeHeroTabIndex=function(R){return R&&R.simpleText?-1:0};
_.J.computeHeroRole=function(R){return R&&R.simpleText?"":"link"};
_.J.computeIsReminderButtonPresent=function(R){return!(!R||!R.reminderButton)};
_.J.computeHideBottomItems=function(R){return!(this.computeIsReminderButtonPresent(R)||R.subtitle)};
_.J.dataChanged=function(){var R=this.get("data.buttons.buttonRenderer.serviceEndpoint"),y;((y=_.e(R==null?void 0:R.commandMetadata,_.Ec))==null?0:y.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(R)};
Dv.prototype.dataChanged=Dv.prototype.dataChanged;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Dv.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Dv.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Dv.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Dv.prototype,"data",void 0);
_.A([_.r({computed:"computeSubtitle(data)"}),_.p("design:type",String)],Dv.prototype,"subtitle",void 0);_.A([_.r({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],Dv.prototype,"isReminderButtonPresent",void 0);_.A([_.r({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],Dv.prototype,"hideBottomItems",void 0);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Dv.prototype,"dataChanged",null);_.A([_.q({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],Dv);
_.m(Dv,"ytd-watch-card-hero-video-renderer",function(){if(qYg!==void 0)return qYg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return qYg=R},{mode:1});var XnP;var pg=function(){return _.W.apply(this,arguments)||this};
_.O(pg,_.W);_.J=pg.prototype;_.J.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"}}}};
_.J.computeTitleBadges=function(R){return R?[R]:[]};
_.J.computeHeaderStyle=function(R){return R?R.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.J.computeAvatarAriaLabel=function(R){if(R){var y,u,v,Q;return(Q=(y=R.avatar)==null?void 0:(u=y.accessibility)==null?void 0:(v=u.accessibilityData)==null?void 0:v.label)!=null?Q:_.u7(R==null?void 0:R.title)}};
_.J.computeAvatarHeight=function(R){return R==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.J.computeBadgeRowClass=function(R){return(R==null?0:R[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],pg.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],pg.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],pg.prototype,"data",void 0);_.A([_.r({computed:"computeTitleBadges(data.titleBadge)"}),_.p("design:type",Array)],pg.prototype,"titleBadges",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.p("design:type",String)],pg.prototype,"headerStyle",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.p("design:type",String)],pg.prototype,"badgeRowClass",void 0);_.A([_.q({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],pg);
_.m(pg,"ytd-watch-card-rich-header-renderer",function(){if(XnP!==void 0)return XnP;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return XnP=R},{mode:1});var mTP;var Ah8;var tP=function(){return _.W.apply(this,arguments)||this};
_.O(tP,_.W);tP.prototype.onMetadataTap=function(R){var y=this.data&&this.data.navigationEndpoint;y&&!_.JF(_.u8(R),this.hostElement,["A".toString()])&&_.Ko(this.hostElement,"yt-navigate",{endpoint:y})};
_.RR.Object.defineProperties(tP.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 y=_.u7(this.data.subtitle),u=Number(this.data.upcomingEventData.startTime);isNaN(u)||(R=_.ye(_.DO(y,u)))}else R=this.data.subtitle;return R}}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],tP.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],tP.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.G("data.style"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],tP.prototype,"isCondensed",null);_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],tP.prototype,"subtitle",null);
_.A([_.q({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],tP);
_.m(tP,"ytd-watch-card-compact-video-renderer",function(){if(Ah8!==void 0)return Ah8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Ah8=R},{mode:1});var DTM;var cJ=function(){return _.W.apply(this,arguments)||this};
_.O(cJ,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],cJ.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],cJ.prototype,"data",void 0);_.A([_.q({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],cJ);
_.m(cJ,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(DTM!==void 0)return DTM;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return DTM=R},{mode:1});var aV=function(){return _.W.apply(this,arguments)||this};
_.O(aV,_.W);aV.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([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],aV.prototype,"ytRendererStamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],aV.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],aV.prototype,"data",void 0);_.A([_.q({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],aV);
_.m(aV,"ytd-vertical-watch-card-list-renderer",function(){if(mTP!==void 0)return mTP;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return mTP=R},{mode:1});var pnJ;var SU=function(){var R=_.W.apply(this,arguments)||this;R.ariaExpanded="false";return R};
_.O(SU,_.W);_.J=SU.prototype;_.J.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.J.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])};
_.J.computeEpisodesInfo=function(R,y,u){if(R!==void 0&&y.length===R.length)return R[u]};
_.J.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.J.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.J.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.J.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.J.getUppercaseSimpleString=function(R){return this.ytRendererBehavior.getSimpleString(R).toUpperCase()};
_.J.updateCurrentSeasonIndexFromBinding=function(R){this.currentSeasonIndex=R.detail.value};
SU.prototype.onIronOverlayClosed=SU.prototype.onIronOverlayClosed;SU.prototype.currentSeasonIndexChanged=SU.prototype.currentSeasonIndexChanged;SU.prototype.dataChanged=SU.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],SU.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],SU.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],SU.prototype,"data",void 0);
_.A([_.r(),_.p("design:type",String)],SU.prototype,"label",void 0);_.A([_.r({value:0}),_.p("design:type",Number)],SU.prototype,"currentSeasonIndex",void 0);_.A([_.r({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.p("design:type",Object)],SU.prototype,"episodesInfo",void 0);_.A([_.r({value:"false"}),_.p("design:type",Object)],SU.prototype,"ariaExpanded",void 0);_.A([_.O7("#lists"),_.p("design:type",Object)],SU.prototype,"lists",void 0);
_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],SU.prototype,"dataChanged",null);_.A([_.GJ("currentSeasonIndex"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],SU.prototype,"currentSeasonIndexChanged",null);_.A([_.fu("iron-overlay-closed"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],SU.prototype,"onIronOverlayClosed",null);
_.A([_.q({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],SU);
_.m(SU,"ytd-watch-card-section-dropdown-renderer",function(){if(pnJ!==void 0)return pnJ;var R=document.createElement("template");_.H(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="EXPAND" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');R.content.insertBefore(_.t().content.cloneNode(!0),
R.content.firstChild);return pnJ=R},{mode:1});var tjK;var Yo=function(){var R=_.W.apply(this,arguments)||this;R.isSearch=!1;return R};
_.O(Yo,_.W);Yo.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([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Yo.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Yo.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Yo.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],Yo.prototype,"isSearch",void 0);_.A([_.q({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],Yo);
_.m(Yo,"ytd-watch-card-section-sequence-renderer",function(){if(tjK!==void 0)return tjK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);
return tjK=R},{mode:1});var OfZ=_.UC({buttonViewModel:_.fQ});_.Qn(Zfm);_.B_(Zfm,"ytd-button-banner-view-model",{propNames:["data"]});var Lg=function(){var R=_.W.apply(this,arguments)||this;R.isSearch=!1;return R};
_.O(Lg,_.W);
Lg.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([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Lg.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Lg.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Lg.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,value:!0}),_.p("design:type",Boolean)],Lg.prototype,"rounded",void 0);_.A([_.r(),_.p("design:type",Object)],Lg.prototype,"isSearch",void 0);
_.A([_.q({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],Lg);
_.m(Lg,"ytd-universal-watch-card-renderer",function(){if(Ps7!==void 0)return Ps7;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Ps7=R},{mode:1});var chI;_.h6(_.Jd(function(R){var y=R.data;var u;R=!((u=_.ua().resolve(_.yN(_.u0)))==null||!u());u={};return _.F("overview-message-view-model",{class:_.Oy("ytwOverviewMessageViewModelHost",(u.ytwOverviewMessageViewModelDarkBackground=R,u.ytwOverviewMessageViewModelLightBackground=!R,u))},_.F(_.w,{cond:function(){return y().primaryImage},
then:function(v){return _.F(_.MR,{data:v,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.F(_.w,{cond:function(){return y().primaryText},
then:function(){return _.F("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.F(_.QM,{text:function(){return y().primaryText}}))}}),_.F(_.w,{cond:function(){return y().secondaryText},
then:function(){return _.F("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.F(_.QM,{text:function(){return y().secondaryText}}))}}))},"qj"),"overview-message-view-model",{props:{data:_.vR}});_.B_(_.Dbc,"ytd-overview-answer-view-model",{propNames:["data"]});var sw=function(){return _.W.apply(this,arguments)||this};
_.O(sw,_.W);sw.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"}}}};
sw.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],sw.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],sw.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.gb),_.p("design:type",Object)],sw.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],sw.prototype,"data",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],sw.prototype,"isSearch",void 0);
_.A([_.q({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],sw);
_.m(sw,"ytd-secondary-search-container-renderer",function(){if(chI!==void 0)return chI;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);
return chI=R},{mode:1});var a3m;var zr=function(){var R=_.W.apply(this,arguments)||this;R.renderSecondarySearchContainer=!1;R.isSearch=!1;return R};
_.O(zr,_.W);_.J=zr.prototype;_.J.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.J.created=function(){var R=this;this.boundStampSecondarySearchContainerIfFits=function(){R.stampSecondarySearchContainerIfFits()};
_.kB("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.J.computeIsSearchFrictionPage=function(R){var y,u,v,Q,M;R=R==null?void 0:(y=R.primaryContents)==null?void 0:(u=y.sectionListRenderer)==null?void 0:(v=u.contents)==null?void 0:(Q=v[0])==null?void 0:(M=Q.itemSectionRenderer)==null?void 0:M.contents;if(!R)return!1;y=_.V(R);for(u=y.next();!u.done;u=y.next())if(v=void 0,(v=u.value)==null?0:v.searchFrictionViewModel)return!0;return!1};
_.J.computeShowSecondaryColumn=function(R,y){return!!(y&&y.secondaryContents&&R)};
_.J.activeChanged=function(){var R=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.BN(this,this.debounceStampSecondarySearchContainerIfFits)),_.s7(function(){R.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.BN(this,this.debounceStampSecondarySearchContainerIfFits))};
_.J.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.J.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.J.debounceStampSecondarySearchContainerIfFits=function(){_.zJ(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.J.onRetrieveLocation=function(R,y){y.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);R.stopPropagation()};
_.J.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
zr.prototype.dataChanged=zr.prototype.dataChanged;zr.prototype.onRetrieveLocation=zr.prototype.onRetrieveLocation;zr.prototype.persistentGuideChanged=zr.prototype.persistentGuideChanged;zr.prototype.activeChanged=zr.prototype.activeChanged;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],zr.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],zr.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.L6.YtdGuideStateAwareBehavior),_.p("design:type",Object)],zr.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.n(_.qv),_.p("design:type",Object)],zr.prototype,"ironResizableBehavior",void 0);_.A([_.r(),_.p("design:type",Boolean)],zr.prototype,"active",void 0);_.A([_.r(),_.p("design:type",Object)],zr.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,value:function(){return _.f("enable_desktop_search_bigger_thumbs")}}),
_.p("design:type",Boolean)],zr.prototype,"useBiggerThumbs",void 0);_.A([_.r({reflectToAttribute:!0,value:function(){return _.VN("desktop_search_bigger_thumbs_style")}}),
_.p("design:type",String)],zr.prototype,"biggerThumbsStyle",void 0);_.A([_.r(),_.p("design:type",Object)],zr.prototype,"renderSecondarySearchContainer",void 0);_.A([_.r({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.p("design:type",Boolean)],zr.prototype,"showSecondaryColumn",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.p("design:type",Boolean)],zr.prototype,"isSearchFrictionPage",void 0);
_.A([_.r(),_.p("design:type",Object)],zr.prototype,"isSearch",void 0);_.A([_.e0("active"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zr.prototype,"activeChanged",null);_.A([_.e0("guidePersistentAndVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zr.prototype,"persistentGuideChanged",null);
_.A([_.fu("yt-retrieve-location"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],zr.prototype,"onRetrieveLocation",null);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zr.prototype,"dataChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],zr);
_.m(zr,"ytd-two-column-search-results-renderer",function(){if(a3m!==void 0)return a3m;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return a3m=R},{mode:1});var gp=function(){var R=_.W.apply(this,arguments)||this;R.hasSearchHeader=!1;R.hasSecondaryContent=!1;R.hasBiggerThumbs=_.f("enable_desktop_search_bigger_thumbs");R.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return R};
_.O(gp,_.W);_.J=gp.prototype;_.J.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:_.Cq(["aa","eocs"])}}};
_.J.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.J.loadPage_=function(R){this.initCsi();R&&(this.data=R,_.kB("REFINEMENTS_TUPLE",["FromSearchResponse",R.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.Y2(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.J.initCsi=function(){_.l5("results",["ol","cpt"])};
_.J.updateTitle=function(){var R=_.AD(window.location.href,"q");R||(R=_.AD(window.location.href,"search_query"));_.Ko(this.hostElement,"yt-update-title",R||"")};
_.J.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.J.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.f("web_srp_data_changed_terminate_imp_killswitch")||_.Ik(this.hostElement,"yt-terminate-video-preview-action")};
_.J.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.J.computeHasSearchHeader=function(R){var y;R=R==null?void 0:(y=R.header)==null?void 0:y.searchHeaderRenderer;return!!R&&(!!R.searchFilterButton||!!R.chipBar)};
_.J.computeHasSecondaryContent=function(R){var y,u;return!!(R==null?0:(y=R.contents)==null?0:(u=y.twoColumnSearchResultsRenderer)==null?0:u.secondaryContents)};
_.RR.Object.defineProperties(gp,{template:{configurable:!0,enumerable:!0,get:function(){if(HfJ===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);HfJ=R}R=HfJ;return R}}});
gp.prototype.onReloadContinuationFinish=gp.prototype.onReloadContinuationFinish;gp.prototype.dataChanged=gp.prototype.dataChanged;_.A([_.n(_.OA.YtPageBehavior),_.p("design:type",Object)],gp.prototype,"ytPageBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],gp.prototype,"actionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],gp.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],gp.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.gb),_.p("design:type",Object)],gp.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],gp.prototype,"data",void 0);_.A([_.r({value:!0}),_.p("design:type",Boolean)],gp.prototype,"monitorScroll",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],gp.prototype,"hasSearchHeader",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],gp.prototype,"hasSecondaryContent",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],gp.prototype,"hasBiggerThumbs",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gp.prototype,"dataChanged",null);
_.A([_.fu("yt-reload-continuation-finish"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gp.prototype,"onReloadContinuationFinish",null);_.A([_.q({is:"ytd-search"})],gp);_.NL.registerService(_.wJO,gp);
_.UX();
}catch(e){_._DumpException(e)}
try{
_.ds("h8y2qb");
var rHI=function(R){if(R=_.i4v(R)){var y;(y=R.sources)!=null&&y[0]?(y=_.Ih4(R),y=y<1?"VERTICAL":y>1?"HORIZONTAL":"SQUARE"):y=void 0;return y}},Zk=function(R){_.rq.call(this,"upload");
this.opts.query=R},WJg=function(R,y){return _.F(P5J,{data:R,
onYtNavigate:y})},dbg=function(R,y){return _.TI(R.entities,"pageHeaderEntity",y)},koa=function(R,y){return R.map(function(u){if(u.tabRenderer)return Ubg(u.tabRenderer);
if(u.expandableTabRenderer&&y){var v=u.expandableTabRenderer;return{customTabRenderable:function(){return y(v)}}}return{}})},Ubg=function(R){return{identifier:R.tabIdentifier,
aTagConfig:_.Lk({innertubeCommand:R.endpoint,forceNewState:!0}),title:R.title,selected:R.selected,disabled:R.unselectable,icon:R.icon}},EAP=function(R){return _.iE({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:R})},$bH=function(R){if(!_.bD(document,"gtm-noscript")){var y=document.createElement("noscript");
y.id="gtm-noscript";y.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+R+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(y)}};_.IE(Zk,_.rq);Zk.prototype.JSC$10043_setLabel=function(R){Zk.superClass_.JSC$10043_setLabel.call(this,R);return this};
Zk.prototype.addUploadMetadata=function(R,y){Zk.superClass_.addUploadMetadata.call(this,R,y);return this};var qAZ=function(R){if(R!=="youtubebanner"&&R!=="youtube-channel-banner")throw Error("jo");Zk.call(this,R)};
_.O(qAZ,Zk);qAZ.prototype.JSC$10043_setLabel=function(R){Zk.prototype.JSC$10043_setLabel.call(this,R);return this};
qAZ.prototype.addUploadMetadata=function(R,y){Zk.prototype.addUploadMetadata.call(this,R,y);return this};var X67=[_.qv,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(R){_.GM(R).path[0]!==this&&(this.resetLayout(),R.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var R=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.w5(this._layoutDebouncer,_.$i,R);_.Nd(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 mb7=[_.AFK,{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,y){var u=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[R];if(!u)throw new ReferenceError(this._getUndefinedMsg(R));R=this._boundEffect(u,y||{});R.setUp();return R},
_effectsChanged:function(R,y,u){this._tearDownEffects();R&&u&&(R.split(" ").forEach(function(v){var Q;v!==""&&((Q=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[v])?this._effects.push(this._boundEffect(Q,y[v])):console.warn(this._getUndefinedMsg(v)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(R,y){y=y||{};var u=parseFloat(y.startsAt||0),v=parseFloat(y.endsAt||1),Q=v-u,M=function(){};
v=u===0&&v===1?R.run:function(K,h){R.run.call(this,Math.max(0,(K-u)/Q),h)};
return{setUp:R.setUp?R.setUp.bind(this,y):M,run:R.run?v.bind(this):M,tearDown:R.tearDown?R.tearDown.bind(this):M}},
_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,y){this._effectsRunFn&&this._effectsRunFn.forEach(function(u){u(R,y)})},
_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("ko`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 y={};R=parseFloat(R.scalar);y.background=this._getDOMRef("background");y.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");y.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");y.deltaBg=y.backgroundFrontLayer.offsetHeight-y.background.offsetHeight;y.deltaBg===0?(isNaN(R)&&(R=.8),y.deltaBg=(this._dHeight||0)*R):(isNaN(R)&&(R=
1),y.deltaBg*=R);this._fxParallaxBackground=y},
run:function(R){var y=this._fxParallaxBackground;this.transform("translate3d(0px, "+y.deltaBg*Math.min(1,R)+"px, 0px)",y.backgroundFrontLayer);y.backgroundRearLayer&&this.transform("translate3d(0px, "+y.deltaBg*Math.min(1,R)+"px, 0px)",y.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var AHg;var Db8;var p67=function(){};
_.J=p67.prototype;_.J._scrollTargetChanged=function(){};
_.J.scroll=function(){};
_.J._isValidScrollTarget=function(){};
_.J._toggleScrollListener=function(){};
_.J.toggleScrollListener=function(){};
_.J.createEffect=function(){};
_.J._effectsChanged=function(){};
_.J._layoutIfDirty=function(){};
_.J._boundEffect=function(){};
_.J._setUpEffect=function(){};
_.J._tearDownEffects=function(){};
_.J._runEffects=function(){};
_.J._scrollHandler=function(){};
_.J._scrollStateChanged=function(){};
_.J._getUndefinedMsg=function(){};
_.J.notifyResize=function(){};
_.J.assignParentResizable=function(){};
_.J.stopResizeNotificationsFor=function(){};
_.J._subscribeIronResize=function(){};
_.J._unsubscribeIronResize=function(){};
_.J.resizerShouldNotify=function(){};
_.J._onDescendantIronResize=function(){};
_.J._fireResize=function(){};
_.J._onIronRequestResizeNotifications=function(){};
_.J._parentResizableChanged=function(){};
_.J._notifyDescendant=function(){};
_.J._requestResizeNotifications=function(){};
_.J._findParent=function(){};
_.J._appResetLayoutHandler=function(){};
_.J.resetLayout=function(){};
_.J._notifyLayoutChanged=function(){};
_.J._notifyDescendantResize=function(){};
_.J._setThresholdTriggered=function(){};
p67=_.qz({_template:function(){if(Db8!==void 0)return Db8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;AHg===void 0&&(AHg=document.createElement("template"));var v=AHg;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return Db8=R},
is:"tp-yt-app-header",behaviors:[mb7,X67],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=_.GM(this.$.slot).getDistributedNodes(),y=0,u;u=R[y];y++)if(u.nodeType===Node.ELEMENT_NODE)if(u.hasAttribute("sticky")){this._stickyElRef=u;break}else this._stickyElRef||(this._stickyElRef=u);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var R=this._clampedScrollTop,y=this._height===0||R===0,u=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;y||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();y?this._updateScrollState(R,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=u}},
_updateScrollState:function(R,y){if(this._height!==0){var u=0,v=this._top;var Q=this._maxHeaderTop;var M=R-this._lastScrollTop,K=Math.abs(M),h=R>this._lastScrollTop,b=performance.now();this._mayMove()&&(u=this._clamp(this.reveals?v+M:R,0,Q));R>=this._dHeight&&(u=this.condenses&&!this.fixed?Math.max(this._dHeight,u):u,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&K<100){if(b-this._initTimestamp>300||this._wasScrollingDown!==h)this._initScrollTop=R,this._initTimestamp=b;R>=Q&&
(Math.abs(this._initScrollTop-R)>30||K>10?(h&&R>=Q?u=Q:!h&&R>=this._dHeight&&(u=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((u-v)/(M/(b-this._lastTimestamp)),0,300)+"ms"):u=this._top)}Q=this._dHeight===0?R>0?1:0:u/this._dHeight;y||(this._lastScrollTop=R,this._top=u,this._wasScrollingDown=h,this._lastTimestamp=b);if(y||Q!==this._progress||v!==u||R===0)this._progress=Q,this._runEffects(Q,u),this._transformHeader(u)}},
_mayMove:function(){return this.condenses||!this.fixed},
willCondense:function(){return this._dHeight>0&&this.condenses},
isOnScreen:function(){return this._height!==0&&this._top<this._height},
isContentBelow:function(){return this._top===0?this._clampedScrollTop>0:this._clampedScrollTop-this._maxHeaderTop>=0},
_transformHeader:function(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,y,u){return Math.min(u,Math.max(y,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),_.GM(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 _.GM(this).querySelector("[main-title]");case "condensedTitle":return _.GM(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var tN8;var cH8;_.qz({_template:function(){if(cH8!==void 0)return cH8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;tN8===void 0&&(tN8=document.createElement("template"));var v=tN8;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return cH8=R},
is:"tp-yt-app-header-layout",behaviors:[X67],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.GM(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 y=this.getBoundingClientRect(),u=document.documentElement.clientWidth-y.right;R.style.left=y.left+"px";R.style.right=u+"px"}y=this.$.contentContainer.style;u=R.offsetHeight;R.fixed&&!R.condenses&&this.hasScrollingRegion?(y.marginTop=u+"px",y.paddingTop=""):(y.paddingTop=u+"px",y.marginTop="")}}});var aka=new _.jF("replaceFeedContentAction");var SAo=new _.jF("alertCommand");var YAo=new _.jF("manageLabsStateCommand");var LJ7=new _.jF("inlineFormRenderer");var H6=new _.jF("playlistSidebarPrimaryInfoRenderer");var slM=new _.jF("productDetailsThumbnailRenderer"),zGH=new _.jF("productDetailsVariantRenderer"),gAV=new _.jF("productDetailsVariantOptionRenderer"),C5a=new _.jF("productDetailsOffersContainerRenderer"),RfP=new _.jF("productDetailsOfferRenderer");var yP8=new _.jF("shoppingFlaggingRenderer");var uPa=new _.jF("playlistBylineRenderer");var vo8=new _.jF("insertChannelTabCommand");var na=function(){return _.HN.apply(this,arguments)||this};
_.O(na,_.HN);_.J=na.prototype;_.J.activeChanged=function(){if(this.active){var R=_.hw(this.hostElement).querySelector("#header");R&&_.Ko(R,"iron-resize");window.addEventListener("scroll",_.BN(this,this.onScroll))}else window.removeEventListener("scroll",_.BN(this,this.onScroll)),_.Ko(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.J.guideVisibleChanged=function(){var R=_.hw(this.hostElement).querySelector("#header");R&&_.Ko(R,"iron-resize")};
_.J.onScroll=function(){var R=this;_.zJ(this,"onScroll",function(){var y=_.hw(R.hostElement).querySelector("#header");y&&y.polymerController&&(y=y.polymerController.getScrollState().progress===1?"standard":"seamed",_.Ko(R.hostElement,"yt-request-panel-mode-change",{mode:y}))},10)};
_.J.tabsChanged=function(){if(this.tabs){for(var R=null,y=0,u=this.tabs.length;y<u;++y){var v=this.tabs[y].tabRenderer;if(v&&v.selected){R=y;break}}this.selected=R}};
_.J.onTabsActivate=function(R){_.Ko(this.hostElement,"yt-navigate",{endpoint:this.tabs[R.detail.selected].tabRenderer.endpoint})};
na.prototype.tabsChanged=na.prototype.tabsChanged;na.prototype.guideVisibleChanged=na.prototype.guideVisibleChanged;na.prototype.activeChanged=na.prototype.activeChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],na.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.L6.YtdGuideStateAwareBehavior),_.p("design:type",Object)],na.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.r(),_.p("design:type",Array)],na.prototype,"tabs",void 0);
_.A([_.r(),_.p("design:type",Object)],na.prototype,"selected",void 0);_.A([_.r(),_.p("design:type",Boolean)],na.prototype,"active",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],na.prototype,"disableHeaderFluidWidth",void 0);_.A([_.e0("active"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],na.prototype,"activeChanged",null);
_.A([_.e0("guidePersistentAndVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],na.prototype,"guideVisibleChanged",null);_.A([_.e0("tabs"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],na.prototype,"tabsChanged",null);_.A([_.nu()],na);var QVp=[_.S.YtRendererBehavior,_.L6.YtdGuideStateAwareBehavior,na.prototype];var jVo=2/3,MUV=_.$6(130749),JP7=function(R,y){var u=this;this.element=R;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){u.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:jVo,moveAction:function(v){u.moveAction(v)},
triggerAction:function(){u.element.isReloading=!0;_.gW(_.GN(),{visualElement:MUV});_.lX.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:u.element}})}}}};
_.Br(_.GN(),MUV,this.layer);this.gesture=new _.i5(R,y,this.refreshConfig,"pan-down");this.attach()};
_.J=JP7.prototype;_.J.attach=function(){this.gesture.attach()};
_.J.detach=function(){this.gesture.detach()};
_.J.reset=function(){this.element.close()};
_.J.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.J.moveAction=function(R){this.element.rotation=R*360};var VUg=_.$6(130750),Go=function(R,y,u,v,Q){var M=this;this.element=R;this.parent=u;this.channelHeader=v;this.ytdReduxDispatch=Q;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){M.tabsStartAtInPx=M.channelHeader.clientHeight-48;var K;(K=M.selectedTab)!=null&&K.title&&(K=_.ua().resolve(_.yN(_.iD)))&&(K=K.getCurrentPage(),M.lastVisitedTabScrollPosition=K.getScrollTop(),M.previousTab&&
((M.lastVisitedTabScrollPosition===void 0?0:M.lastVisitedTabScrollPosition<M.channelHeader.clientHeight-48)?M.scrollPositionForTabs.has(M.selectedTab.title)&&M.scrollPositionForTabs.delete(M.selectedTab.title):M.scrollPositionForTabs.set(M.selectedTab.title,K.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:igZ(),triggerAction:function(){M.navigate(M.previousTab)},
moveAction:function(K,h){M.moveAction(K,h)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-igZ(),triggerAction:function(){M.navigate(M.nextTab)},
moveAction:function(K,h){M.moveAction(K,h)}}}};
_.Br(_.GN(),VUg,this.layer);this.gesture=new _.i5(R,y,this.tabConfig);this.attach()};
Go.prototype.attach=function(){this.gesture.attach()};
Go.prototype.detach=function(){this.gesture.detach()};
Go.prototype.tabsChanged=function(R){if(R){var y=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;R=_.V(R);for(var u=R.next();!u.done;u=R.next()){u=u.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=u);var v=void 0;if((v=u)==null?0:v.selected)this.previousTab=y,this.selectedTab=u;y=u}y=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}});
y.config=R;this.scrollPositionNeedsUpdate=!0}};
Go.prototype.moveAction=function(R,y){if(!this.tabsElement){var u;this.tabsElement=(u=this.parent.header)==null?void 0:u.tabsElement;y==="right"&&this.previousTab?_.T_b(_.P1.instance,this.previousTab.endpoint,{},""):y==="left"&&this.nextTab&&_.T_b(_.P1.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}u=this.tabsElement._pos;y==="right"&&(R*=-1);this.tabsElement._positionBar(u.width,u.left*1+u.width*R)};
var igZ=function(){var R,y;return(y=(R=_.ua().resolve(_.iD).getCurrentPage())==null?void 0:R.clientWidth)!=null?y:0};
Go.prototype.navigate=function(R){this.element.data=void 0;if(R=R==null?void 0:R.endpoint)this.ytdReduxDispatch(EAP(!0)),_.gW(_.GN(),{visualElement:VUg}),_.lX.instance.resolveCommand({navigateAction:{endpoint:R}},{form:{element:this.element}})};var Kwm;var Ivp;var re=function(){return _.W.apply(this,arguments)||this};
_.O(re,_.W);re.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],re.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],re.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],re.prototype,"data",void 0);_.A([_.q({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],re);
_.m(re,"ytd-labs-edit-renderer",function(){if(Ivp!==void 0)return Ivp;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Ivp=R},{mode:1});var hfP;var P6=function(){var R=_.W.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};
_.O(P6,_.W);P6.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
P6.prototype.ready=function(){var R=document.documentElement.hasAttribute("dark");this.setBackgroundImage(R);this.dark=R};
P6.prototype.onDarkModeToggledAction=function(R){this.setBackgroundImage(R);this.dark=R};
P6.prototype.setBackgroundImage=function(R){_.oX(this.hostElement,{"--yt-labs-header-background":"url("+(R?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],P6.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],P6.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],P6.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],P6.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],P6.prototype,"dark",void 0);
_.A([_.q({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],P6);
_.m(P6,"ytd-labs-header-renderer",function(){if(hfP!==void 0)return hfP;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return hfP=R},{mode:1});var bgV;var W6=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return R};
_.O(W6,_.W);W6.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"}}}}}};
W6.prototype.onYtToggleButton=function(R){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",R.detail.toggled)};
W6.prototype.onManageLabsState=function(R){if(R=_.e(R,YAo))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"?_.Ik(this.hostElement,"yt-check-labs-opted-in-state").some(function(y){return y})&&this.data.confirmationDialogCommand?_.wr(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.ua().resolve(_.jX).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"&&(_.ua().resolve(_.jX).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
W6.prototype.onCheckLabsOptedInState=function(){var R=this.get("data.primaryButton.toggleButtonRenderer");return R?R.isToggled:!1};
_.RR.Object.defineProperties(W6.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
W6.prototype.onYtToggleButton=W6.prototype.onYtToggleButton;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],W6.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],W6.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],W6.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],W6.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],W6.prototype,"itemStyle",null);_.A([_.fu("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],W6.prototype,"onYtToggleButton",null);_.A([_.q({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],W6);
_.m(W6,"ytd-labs-item-renderer",function(){if(bgV!==void 0)return bgV;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return bgV=R},{mode:1});var FwK;var wJJ;var de=function(){return _.W.apply(this,arguments)||this};
_.O(de,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],de.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],de.prototype,"data",void 0);_.A([_.q({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],de);
_.m(de,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(wJJ!==void 0)return wJJ;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return wJJ=R},{mode:1});var Np8;var UA=function(){return _.W.apply(this,arguments)||this};
_.O(UA,_.W);UA.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)};_.oX(this.hostElement,R)}};
UA.prototype.colorFromDecimal=function(R){return _.Sq(Number(R||0))};
UA.prototype.observeSuperchatChip=UA.prototype.observeSuperchatChip;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],UA.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],UA.prototype,"data",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],UA.prototype,"observeSuperchatChip",null);_.A([_.q({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],UA);
_.m(UA,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(Np8!==void 0)return Np8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return Np8=R},{mode:1});var kA=function(){return _.W.apply(this,arguments)||this};
_.O(kA,_.W);kA.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"}}}};
_.RR.Object.defineProperties(kA.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],kA.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],kA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.c4),_.p("design:type",Object)],kA.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],kA.prototype,"data",void 0);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],kA.prototype,"hideMessageBlock",null);
_.A([_.q({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],kA);
_.m(kA,"ytd-live-chat-history-entry-renderer",function(){if(FwK!==void 0)return FwK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return FwK=R},{mode:1});var Tpa;var EA=function(){return _.W.apply(this,arguments)||this};
_.O(EA,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],EA.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],EA.prototype,"data",void 0);_.A([_.q({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],EA);
_.m(EA,"ytd-channel-options-renderer",function(){if(Tpa!==void 0)return Tpa;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Tpa=R},{mode:1});var ooJ;var $A=function(){return _.W.apply(this,arguments)||this};
_.O($A,_.W);$A.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],$A.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],$A.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],$A.prototype,"data",void 0);_.A([_.q({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],$A);
_.m($A,"ytd-settings-email-item-renderer",function(){if(ooJ!==void 0)return ooJ;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return ooJ=R},{mode:1});var xIH;var qb=function(){return _.W.apply(this,arguments)||this};
_.O(qb,_.W);qb.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"}}}};
qb.prototype.getExpansionIcon=function(R){return R?"COLLAPSE":"EXPAND"};
qb.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.RR.Object.defineProperties(qb.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],qb.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],qb.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],qb.prototype,"data",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],qb.prototype,"expanded",void 0);_.A([_.G("expanded"),_.p("design:type",String),_.p("design:paramtypes",[])],qb.prototype,"emailListExpanded",null);
_.A([_.O7("#options"),_.p("design:type",Object)],qb.prototype,"options",void 0);_.A([_.q({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],qb);
_.m(qb,"ytd-settings-email-list-renderer",function(){if(xIH!==void 0)return xIH;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return xIH=R},{mode:1});var BpZ;var X7=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return R};
_.O(X7,_.W);X7.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"}}}};
X7.prototype.handleSignalActionSubmitForm=function(){var R,y=(R=this.formRenderer)==null?void 0:R.getForm();y&&this.data.serviceEndpoint&&_.ua().resolve(_.jX).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},y,{element:this.hostElement})})};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],X7.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],X7.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],X7.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],X7.prototype,"data",void 0);_.A([_.O7("yt-form-renderer"),_.p("design:type",Object)],X7.prototype,"formRenderer",void 0);
_.A([_.q({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],X7);
_.m(X7,"ytd-settings-gaia-link-renderer",function(){if(BpZ!==void 0)return BpZ;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return BpZ=R},{mode:1});var fvI;var mJ=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return R};
_.O(mJ,_.W);mJ.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.OyH()&&this.set("data.hidden",!1)};
mJ.prototype.onSwitchReady=function(){var R=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.f("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.lKa().then(function(y){y&&(Notification.permission==="default"?R.set("data.hidden",!1):Notification.permission==="granted"&&_.xw("NotificationsDisabled").then(function(u){u||_.Ik(R.hostElement,"yt-toggle-settings-switch",[R.data.id,!u]);R.set("data.hidden",!1)}).catch(function(){}))})})};
mJ.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}}}}};
mJ.prototype.handleUpdateOptionsCommand=function(R){(R=_.e(R,_.PAc))&&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",[]))};
mJ.prototype.onSwitchReady=mJ.prototype.onSwitchReady;mJ.prototype.dataChanged=mJ.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],mJ.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],mJ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],mJ.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],mJ.prototype,"data",void 0);
_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],mJ.prototype,"dataChanged",null);_.A([_.fu("yt-settings-switch-ready"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],mJ.prototype,"onSwitchReady",null);_.A([_.q({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],mJ);
_.m(mJ,"ytd-settings-options-renderer",function(){if(fvI!==void 0)return fvI;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return fvI=R},{mode:1});var efI;var AH=function(){return _.W.apply(this,arguments)||this};
_.O(AH,_.W);AH.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
AH.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
AH.prototype.onYtExpanderMoreTapped=AH.prototype.onYtExpanderMoreTapped;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],AH.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],AH.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],AH.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],AH.prototype,"data",void 0);
_.A([_.fu("yt-expander-more-tapped"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],AH.prototype,"onYtExpanderMoreTapped",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],AH);
_.m(AH,"ytd-product-details-description-renderer",function(){if(efI!==void 0)return efI;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return efI=R},{mode:1});var lvm;var Dk=function(){var R=_.W.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};
_.O(Dk,_.W);Dk.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.RR.Object.defineProperties(Dk.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var R,y;return((R=this.data)==null?void 0:(y=R.offerData)==null?void 0:y.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var R,y;return((R=this.data)==null?void 0:R.purchaseButtonRenderers)!==void 0&&((y=this.data)==null?void 0:y.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var R,y;return!((R=this.data)==null||!R.formattedFromMerchantText)&&(!((y=this.data)==null||!y.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Dk.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Dk.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Dk.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Dk.prototype,"data",void 0);
_.A([_.r({type:_.f("kevlar_property_type_migration_killswitch")?String:void 0}),_.p("design:type",Object)],Dk.prototype,"shippingIcon",void 0);_.A([_.r({type:_.f("kevlar_property_type_migration_killswitch")?String:void 0}),_.p("design:type",Object)],Dk.prototype,"shippingAddressIcon",void 0);_.A([_.r({type:_.f("kevlar_property_type_migration_killswitch")?String:void 0}),_.p("design:type",Object)],Dk.prototype,"googleGuaranteeIcon",void 0);
_.A([_.r({type:_.f("kevlar_property_type_migration_killswitch")?String:void 0}),_.p("design:type",Object)],Dk.prototype,"returnPolicyIcon",void 0);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Dk.prototype,"showAdditionalFees",null);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Dk.prototype,"showMultiPurchaseButtons",null);
_.A([_.G("data","showMultiPurchaseButtons"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Dk.prototype,"showPurchaseData",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],Dk);
_.m(Dk,"ytd-product-details-hero-offer-renderer",function(){if(lvm!==void 0)return lvm;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return lvm=R},{mode:1});var OgM;var Zg7;var pa=function(){return _.W.apply(this,arguments)||this};
_.O(pa,_.W);_.J=pa.prototype;_.J.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.J.onKeyDown=function(R){R=R.keyCode;R!==13&&R!==32||this.handleSelection()};
_.J.onMouseEnterImage=function(){var R;((R=this.data)==null?void 0:R.thumbnailDetails)!==void 0&&_.h_(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.J.onMouseLeaveImage=function(){_.h_(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.J.handleSelection=function(){this.data&&_.Ko(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.RR.Object.defineProperties(pa.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.isSelected)}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],pa.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],pa.prototype,"data",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],pa.prototype,"isSelected",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],pa);
_.m(pa,"ytd-product-details-thumbnail-renderer",function(){if(Zg7!==void 0)return Zg7;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Zg7=R},{mode:1});var tH=function(){var R=_.W.apply(this,arguments)||this;var y={};R.actionMap=(y["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",y["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",y);R.selectedThumbnailIndex=0;R.selectItem=function(u){u.target.onKeyDown(u)};
return R};
_.O(tH,_.W);_.J=tH.prototype;_.J.handlePreviewImageSelect=function(R){this.hoverThumbnail=R};
_.J.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.J.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.J.onThumbnailSelected=function(R,y){this.selectedThumbnailIndex=y};
_.J.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.J.updateOffset=function(){var R=_.hw(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-R));this.ytdHorizontalListBehavior.reposition_()};
_.RR.Object.defineProperties(tH.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.data)==null?0:R.imageRenderer){var y,u;return((y=this.data)==null?void 0:(u=y.imageRenderer)==null?void 0:u.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var R;if((R=this.data)==null?0:R.imageRenderer){var y;return(y=_.e(this.data.imageRenderer[this.selectedThumbnailIndex],slM))==null?void 0:y.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var R=this,y,u,v,Q=(v=(y=this.data)==null?void 0:(u=y.imageRenderer)==null?void 0:u.map(function(M,K){return{productDetailsThumbnailRenderer:Object.assign({},_.e(M,slM),{index:K,isSelected:K===R.selectedThumbnailIndex})}}))!=null?v:[];
return Object.assign({},this.data,{imageRenderer:Q})}}});
tH.prototype.updateOffset=tH.prototype.updateOffset;tH.prototype.dataChanged=tH.prototype.dataChanged;tH.prototype.onThumbnailSelected=tH.prototype.onThumbnailSelected;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],tH.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],tH.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.Ia.YtdHorizontalListBehavior),_.p("design:type",Object)],tH.prototype,"ytdHorizontalListBehavior",void 0);
_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],tH.prototype,"componentBehavior",void 0);_.A([_.n([_.bW.YtActionHandlerBehavior]),_.p("design:type",Object)],tH.prototype,"actionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],tH.prototype,"data",void 0);_.A([_.r({value:"$.items.children"}),_.p("design:type",String)],tH.prototype,"itemsPath",void 0);_.A([_.r({value:3}),_.p("design:type",Number)],tH.prototype,"initialCount",void 0);
_.A([_.O7("#items"),_.p("design:type",Object)],tH.prototype,"items",void 0);_.A([_.r(),_.p("design:type",Object)],tH.prototype,"selectedThumbnailIndex",void 0);_.A([_.r(),_.p("design:type",Object)],tH.prototype,"hoverThumbnail",void 0);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],tH.prototype,"showThumbnails",null);
_.A([_.fu("ytd-product-details-thumbnail-renderer-selected"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Number]),_.p("design:returntype")],tH.prototype,"onThumbnailSelected",null);_.A([_.G("data","selectedThumbnailIndex","hoverThumbnail"),_.p("design:type",Object),_.p("design:paramtypes",[])],tH.prototype,"thumbnailDetails",null);_.A([_.G("data","selectedThumbnailIndex"),_.p("design:type",Object),_.p("design:paramtypes",[])],tH.prototype,"populatedData",null);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tH.prototype,"dataChanged",null);_.A([_.fu("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tH.prototype,"updateOffset",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],tH);
_.m(tH,"ytd-product-details-image-carousel-renderer",function(){if(OgM!==void 0)return OgM;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return OgM=R},{mode:_.TN("kevlar_poly_si_batch_j079")?1:2});var HgH;var c6=function(){return _.W.apply(this,arguments)||this};
_.O(c6,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],c6.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],c6.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],c6.prototype,"componentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],c6.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],c6);
_.m(c6,"ytd-product-details-offer-renderer",function(){if(HgH!==void 0)return HgH;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return HgH=R},{mode:1});var noa;var al=function(){var R=_.W.apply(this,arguments)||this;R.isOffersHidden=!0;return R};
_.O(al,_.W);al.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var R,y=_.e((R=this.data)==null?void 0:R.viewOffersButton,_.aG);y&&this.ytRendererBehavior.logExplicitClick(y)};
al.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.RR.Object.defineProperties(al.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var R,y,u,v;return(u=_.e((R=this.data)==null?void 0:(y=R.offers)==null?void 0:y[0],RfP))==null?void 0:(v=u.offerData)==null?void 0:v.vendorLogoUrl}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],al.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],al.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],al.prototype,"componentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],al.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],al.prototype,"isOffersHidden",void 0);
_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],al.prototype,"firstOfferVendorLogoUrl",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],al);
_.m(al,"ytd-product-details-offers-container-renderer",function(){if(noa!==void 0)return noa;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return noa=R},{mode:1});var Gro;var rPp;var SN=function(){return _.W.apply(this,arguments)||this};
_.O(SN,_.W);SN.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
SN.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.h_(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
SN.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.h_(this,"ytd-product-details-variant-image-unselect")};
_.RR.Object.defineProperties(SN.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,y,u;return((R=this.data)==null?void 0:R.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((y=this.data)==null?void 0:y.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((u=this.data)==null?void 0:u.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var 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,y;return this.isUnavailable?(R=this.data)==null?void 0:R.variantOptionUnavailableAccessibilityLabel:(y=this.data)==null?void 0:y.variantOptionAccessibilityLabel}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],SN.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],SN.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],SN.prototype,"componentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],SN.prototype,"data",void 0);_.A([_.r(),_.p("design:type",String)],SN.prototype,"displayType",void 0);
_.A([_.G("displayType","data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],SN.prototype,"isImageButton",null);_.A([_.G("displayType","data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],SN.prototype,"isPillButton",null);_.A([_.G("data"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],SN.prototype,"isActive",null);
_.A([_.G("data"),_.r({reflectToAttribute:!0}),_.p("design:type",Boolean),_.p("design:paramtypes",[])],SN.prototype,"isUnavailable",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],SN.prototype,"thumbnailDetails",null);_.A([_.G("isUnavailable","data"),_.p("design:type",Object),_.p("design:paramtypes",[])],SN.prototype,"accessibilityLabel",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],SN);
_.m(SN,"ytd-product-details-variant-option-renderer",function(){if(rPp!==void 0)return rPp;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return rPp=R},{mode:1});var PYK;var YA=function(){var R=_.W.apply(this,arguments)||this;R.variantsExpanded=!1;R.hideShowMoreLessVariantButton=!0;R.initialized=!1;R.computeVariantsDebouncer=null;R.computeVariants=function(y){y=y===void 0?!1:y;R.variantsExpanded||R.showOptions()||!y||(R.variantsExpanded=!0);if(R.variantsExpanded){y=_.V(R.items.children);for(var u=y.next();!u.done;u=y.next())u.value.hidden=!1}R.initialized=!0};
return R};
_.O(YA,_.W);_.J=YA.prototype;_.J.ready=function(){var R=this;setTimeout(function(){R.computeVariants(!0)})};
_.J.showOptions=function(){for(var R=_.V(this.items.children),y=R.next();!y.done;y=R.next())y.value.hidden=!0;var u=this.container.getBoundingClientRect().width,v=0,Q=R=0;y=!1;for(var M=_.V(this.items.children),K=M.next();!K.done;K=M.next()){K=K.value;K.hidden=!1;var h=K.getBoundingClientRect().width;if(v+h<u)v+=h;else if(++Q<2)v=h;else break;R+=1;K.hasAttribute("is-active")&&(y=!0)}for(u=R;u<this.items.children.length;u++)this.items.children[u].hidden=!0;this.hideShowMoreLessVariantButton=R===this.items.children.length;
return y};
_.J.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.w5(this.computeVariantsDebouncer,_.vb.after(100),this.computeVariants)};
_.J.onShowMoreLessVariantsButtonClick=function(){var R;(R=this.data)!=null&&R.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.J.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.RR.Object.defineProperties(YA.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var R,y,u=(R=this.data)==null?void 0:(y=R.variantOptionRenderers)==null?void 0:y.find(function(M){return _.e(M,gAV).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),v,Q;
return(Q=(v=_.e(u,gAV))==null?void 0:v.name)!=null?Q:""}},
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"}}}});
YA.prototype.debouncedComputeVariants=YA.prototype.debouncedComputeVariants;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],YA.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],YA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],YA.prototype,"componentBehavior",void 0);_.A([_.n(_.qv),_.p("design:type",Object)],YA.prototype,"ironResizableBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],YA.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],YA.prototype,"variantsExpanded",void 0);_.A([_.r(),_.p("design:type",Object)],YA.prototype,"hideShowMoreLessVariantButton",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],YA.prototype,"initialized",void 0);_.A([_.O7("#items"),_.p("design:type",HTMLDivElement)],YA.prototype,"items",void 0);_.A([_.O7("#container"),_.p("design:type",HTMLDivElement)],YA.prototype,"container",void 0);
_.A([_.O7("#more-variants-button"),_.p("design:type",HTMLElement)],YA.prototype,"moreVariantsButton",void 0);_.A([_.G("data"),_.p("design:type",String),_.p("design:paramtypes",[])],YA.prototype,"selectedOptionName",null);_.A([_.e0("data","variantsExpanded"),_.fu("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],YA.prototype,"debouncedComputeVariants",null);
_.A([_.G("data"),_.p("design:type",String),_.p("design:paramtypes",[])],YA.prototype,"displayType",null);_.A([_.G("displayType"),_.p("design:type",Object),_.p("design:paramtypes",[])],YA.prototype,"variantItemsClassname",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],YA);
_.m(YA,"ytd-product-details-variant-renderer",function(){if(PYK!==void 0)return PYK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return PYK=R},{mode:1});var La=function(){return _.W.apply(this,arguments)||this};
_.O(La,_.W);
La.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"}}}};
_.RR.Object.defineProperties(La.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,y,u=(y=_.e((R=this.data)==null?void 0:R.offersContainerRenderer,C5a))==null?void 0:y.offers;return u!==void 0&&(u==null?void 0:u.length)>1}},
showBuySeparator:{configurable:!0,enumerable:!0,get:function(){return this.showOffers&&this.showPurchaseData}},
showBuyCard:{configurable:!0,enumerable:!0,get:function(){return this.showOffers||this.showPurchaseData}},
selectedVariantsText:{configurable:!0,enumerable:!0,get:function(){var R,y,u;return((u=(R=this.data)==null?void 0:(y=R.variants)==null?void 0:y.map(function(v){var Q,M;v=(M=(Q=_.e(v,zGH))==null?void 0:Q.variantOptionRenderers)==null?void 0:M.find(function(h){var b;return((b=_.e(h,gAV))==null?void 0:b.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var K;return(K=_.e(v,gAV))==null?void 0:K.name}).filter(function(v){return typeof v==="string"}))!=null?u:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var R,y,u,v=(y=_.e((R=this.data)==null?void 0:R.shoppingFlaggingRenderer,yP8))==null?void 0:(u=y.reportButton)==null?void 0:u.buttonRenderer;if(v)return{text:v.text,command:v.command,icon:{iconType:"FLAG"},accessibilityData:v.accessibilityData,trackingParams:v.trackingParams,loggingDirectives:v.loggingDirectives}}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],La.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],La.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],La.prototype,"componentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],La.prototype,"data",void 0);_.A([_.O7("#image-carousel-renderer"),_.p("design:type",Object)],La.prototype,"imageCarouselRenderer",void 0);
_.A([_.O7("#hero-offer-renderer"),_.p("design:type",Object)],La.prototype,"productDetailsHeroOfferRenderer",void 0);_.A([_.O7("#variants"),_.p("design:type",Object)],La.prototype,"productDetailsVariantRenderer",void 0);_.A([_.O7("#offers"),_.p("design:type",Object)],La.prototype,"productDetailsOffersContainerRenderer",void 0);_.A([_.O7("#description-renderer"),_.p("design:type",Object)],La.prototype,"productDetailsDescriptionRenderer",void 0);
_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],La.prototype,"showPurchaseData",null);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],La.prototype,"showHeroOfferRenderer",null);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],La.prototype,"showBrandText",null);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],La.prototype,"showOffers",null);
_.A([_.G("showOffers","showPurchaseData"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],La.prototype,"showBuySeparator",null);_.A([_.G("showOffers","showPurchaseData"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],La.prototype,"showBuyCard",null);_.A([_.G("data"),_.p("design:type",String),_.p("design:paramtypes",[])],La.prototype,"selectedVariantsText",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],La.prototype,"shoppingReportingButtonData",null);
_.A([_.q({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],La);
_.m(La,"ytd-product-details-renderer",function(){if(Gro!==void 0)return Gro;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Gro=R},{mode:1});var Wwo;var dIJ;var UIH;var sA=function(){return _.W.apply(this,arguments)||this};
_.O(sA,_.W);sA.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.RR.Object.defineProperties(sA.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],sA.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],sA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],sA.prototype,"data",void 0);_.A([_.r(),_.p("design:type",String)],sA.prototype,"formattedAmount",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],sA.prototype,"ariaLabel",void 0);
_.A([_.r({reflectToAttribute:!0}),_.G("data.style"),_.p("design:type",String),_.p("design:paramtypes",[])],sA.prototype,"vcBalanceWidgetStyle",null);_.A([_.pu({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],sA);
_.m(sA,"yt-vc-balance-renderer",function(){if(UIH===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;dIJ===void 0&&(dIJ=document.createElement("template"));var v=dIJ;u.call(y,v.content.cloneNode(!0),R.content.firstChild);UIH=R}R=UIH;return R},{mode:2});_.Dl("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var zo=function(){return _.W.apply(this,arguments)||this};
_.O(zo,_.W);_.RR.Object.defineProperties(zo.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],zo.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],zo.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],zo.prototype,"data",void 0);_.A([_.r({selectorArgs:["data.vcBalanceEntityKey"],selector:function(R,y){return _.TI(R.entities,"vcBalanceEntity",y)}}),
_.p("design:type",Object)],zo.prototype,"vcBalanceEntity",void 0);_.A([_.G("vcBalanceEntity"),_.p("design:type",String),_.p("design:paramtypes",[])],zo.prototype,"formattedAmount",null);_.A([_.G("vcBalanceEntity"),_.p("design:type",String),_.p("design:paramtypes",[])],zo.prototype,"vcBalanceAriaLabel",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],zo);
_.m(zo,"ytd-vc-balance-renderer",function(){if(Wwo!==void 0)return Wwo;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return Wwo=R},{mode:1});var krH;var ge=function(){var R=_.W.apply(this,arguments)||this;R.rotation=0;R.isReloading=!1;return R};
_.O(ge,_.W);ge.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
ge.prototype.reset=function(){this.hostElement.style.opacity=""};
ge.prototype.close=function(){var R=this;return _.I(function(y){if(y.nextAddress==1)return y.yield(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";_.f$(y)})};
ge.prototype.rotationChanged=ge.prototype.rotationChanged;_.A([_.r(),_.p("design:type",Object)],ge.prototype,"rotation",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ge.prototype,"isReloading",void 0);_.A([_.O7("#icon"),_.p("design:type",HTMLElement)],ge.prototype,"icon",void 0);_.A([_.e0("rotation"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ge.prototype,"rotationChanged",null);
_.A([_.q({disableElementRegistration:!0,is:"ytd-refresh"})],ge);
_.m(ge,"ytd-refresh",function(){if(krH!==void 0)return krH;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return krH=R},{mode:1});var EoV;var Ca=function(){return _.W.apply(this,arguments)||this};
_.O(Ca,_.W);Ca.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"}}}};
Ca.prototype.dataChanged=function(){if(this.data){var R=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var y=_.b0(this.data.banner.thumbnails,this.hostElement.clientWidth);y&&(y.indexOf("//")===0&&(y="https:"+y),this.hasBannerArt=!0,_.oX(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+y+")"}))}this.hasBannerArt!==R&&_.hw(this.hostElement).querySelector("#header").fire("iron-resize")}};
Ca.prototype.updateSelectedFromBinding=function(R){this.selected=R.detail.value};
Ca.prototype.dataChanged=Ca.prototype.dataChanged;_.A([_.n(QVp),_.p("design:type",Object)],Ca.prototype,"ytdTabbedHeaderBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Ca.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.Sc),_.p("design:type",Object)],Ca.prototype,"ytdGridStateAwareBehavior",void 0);_.A([_.n(_.L6.YtdGuideStateAwareBehavior),_.p("design:type",Object)],Ca.prototype,"ytdGuideStateAwareBehavior",void 0);
_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Ca.prototype,"componentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Ca.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Number)],Ca.prototype,"selected",void 0);_.A([_.r(),_.p("design:type",Boolean)],Ca.prototype,"active",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Ca.prototype,"hasBannerArt",void 0);
_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ca.prototype,"dataChanged",null);_.A([_.q({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],Ca);
_.m(Ca,"ytd-interactive-tabbed-header-renderer",function(){if(EoV!==void 0)return EoV;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return EoV=R},{mode:1});var $I7;var RV=function(){return _.W.apply(this,arguments)||this};
_.O(RV,_.W);RV.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
RV.prototype.computeActionsAlignment=function(R){return(R==null?void 0:R.actionsAlignment)||""};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],RV.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],RV.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],RV.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.p("design:type",String)],RV.prototype,"actionsAlignment",void 0);_.A([_.q({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],RV);
_.m(RV,"ytd-page-footer-renderer",function(){if($I7!==void 0)return $I7;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return $I7=R},{mode:1});var qwZ;var XJI;var y2=function(){var R=_.W.apply(this,arguments)||this;R.isEditing=!1;R.useSlot=!1;R.isMultiline=!1;return R};
_.O(y2,_.W);_.J=y2.prototype;_.J.onKeydown=function(R){if(R.keyCode===13&&!this.isMultiline)this.onSave();else if(R.keyCode===27)this.onCancel()};
_.J.computeComponentStyle=function(R){return(R==null?0:R.style)?R.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.J.computeisMultiline=function(R){if(this.multilineOverride!==void 0)return this.multilineOverride;var y,u;return!!(R==null?0:(y=R.formField)==null?0:(u=y.textInputFormFieldRenderer)==null?0:u.isMultiline)};
_.J.computeTextDisplayed=function(R,y){if(R)return R;if(y)return y};
_.J.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.J.onSave=function(){if(this.textForm.validate()){this.textForm.save();var R=this.textForm.value;if(R)this.set("data.textDisplayed",_.ye(R));else{var y;((y=this.data)==null?0:y.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.CQ("inline-form-changed",this.data));this.isEditing=!1}};
_.J.onCancel=function(){var R=_.u7(this.data.textDisplayed);R===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(R);this.isEditing=!1};
y2.prototype.onKeydown=y2.prototype.onKeydown;_.A([_.n(_.GZ.YtEventForwardingBehavior),_.p("design:type",Object)],y2.prototype,"ytEventForwardingBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],y2.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],y2.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],y2.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],y2.prototype,"isEditing",void 0);_.A([_.r(),_.p("design:type",Object)],y2.prototype,"useSlot",void 0);_.A([_.r(),_.p("design:type",Boolean)],y2.prototype,"multilineOverride",void 0);_.A([_.r(),_.p("design:type",Boolean)],y2.prototype,"enableOverlayTheme",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.p("design:type",String)],y2.prototype,"componentStyle",void 0);
_.A([_.r({computed:"computeisMultiline(data)"}),_.p("design:type",Object)],y2.prototype,"isMultiline",void 0);_.A([_.O7("#text-form"),_.p("design:type",Object)],y2.prototype,"textForm",void 0);_.A([_.fu("keydown"),_.p("design:type",Function),_.p("design:paramtypes",[KeyboardEvent]),_.p("design:returntype")],y2.prototype,"onKeydown",null);_.A([_.q({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],y2);
_.m(y2,"ytd-inline-form-renderer",function(){if(XJI!==void 0)return XJI;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return XJI=R},{mode:1});var mIa;var uY=function(){var R=_.W.apply(this,arguments)||this;R.previousSelectValue=void 0;R.selectedItemMessage=void 0;return R};
_.O(uY,_.W);uY.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
uY.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var R,y,u,v,Q=(R=this.data)==null?void 0:(y=R.dropdown)==null?void 0:(u=y.dropdownRenderer)==null?void 0:(v=u.entries)==null?void 0:v.map(function(h){return h.privacyDropdownItemRenderer});
R=_.V(Q!=null?Q:[]);for(y=R.next();!y.done;y=R.next())if((y=y.value)&&y.int32Value===this.selectedValue){this.selectedItemMessage=y.itemMessage;break}}else this.selectedItemMessage=void 0;var M;(M=this.onValueChanged)==null||M.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var K;(K=this.data)!=null&&K.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
uY.prototype.onValueChangedForSelectedValue=function(R){this.selectedValue=R.detail.value};
uY.prototype.selectedValueChanged=uY.prototype.selectedValueChanged;_.A([_.n(_.GZ.YtEventForwardingBehavior),_.p("design:type",Object)],uY.prototype,"ytEventForwardingBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],uY.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],uY.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],uY.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],uY.prototype,"data",void 0);_.A([_.r(),_.p("design:type",String)],uY.prototype,"theme",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Number)],uY.prototype,"selectedValue",void 0);_.A([_.r(),_.p("design:type",Function)],uY.prototype,"onValueChanged",void 0);
_.A([_.GJ("selectedValue"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uY.prototype,"selectedValueChanged",null);_.A([_.q({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],uY);
_.m(uY,"ytd-dropdown-form-field-renderer",function(){if(mIa!==void 0)return mIa;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return mIa=R},{mode:_.TN("kevlar_poly_si_batch_j025")?1:2});var APM;var vJ=function(){return _.W.apply(this,arguments)||this};
_.O(vJ,_.W);_.RR.Object.defineProperties(vJ.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var R=[],y=_.V(this.data||[]),u=y.next();!u.done;u=y.next())(u=_.e(u.value,uPa))&&R.push(u);return R}}});
_.A([_.r(),_.p("design:type",Array)],vJ.prototype,"data",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],vJ.prototype,"byline",null);_.A([_.q({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],vJ);
_.m(vJ,"ytd-playlist-byline-renderer",function(){if(APM!==void 0)return APM;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return APM=R},{mode:1});var DIo;var Q2=function(){var R=_.W.apply(this,arguments)||this;R.rtlBullet=_.f("web_playlist_stats_rtl_bullet_icon_killswitch");R.modern=_.f("web_modern_buttons");R.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return R};
_.O(Q2,_.W);_.J=Q2.prototype;_.J.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"}}}}};
_.J.attached=function(){};
_.J.computeIsCustomThumbnail=function(R){return R?!!R.playlistCustomThumbnailRenderer:!1};
_.J.onYtNavigate=function(R,y){if(y&&y.actions&&y.actions.indexOf("shuffle")>-1){R=_.ua().resolve(_.S2);var u=y.tempData||{};u.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);y.tempData=u;R.isShuffleNextPlaylist=!0}};
_.J.onUpdatePlaylistAction=function(R){var y;R=(y=_.e(R,_.MYc))==null?void 0:y.updatedRenderer;if(y=_.e(R,H6))this.data=y};
_.J.computeStyleType=function(R){return R?R.toLowerCase().replace(/_/g,"-"):""};
_.J.computeThumbnailWidth=function(R){return R==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.J.computeHideThumbnailAria=function(R){if(R==null?0:R.thumbnailOverlays)for(var y=0;y<R.thumbnailOverlays.length;y++){var u=void 0;if((u=R.thumbnailOverlays[y])==null?0:u.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
Q2.prototype.onYtNavigate=Q2.prototype.onYtNavigate;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Q2.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Q2.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Q2.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Q2.prototype,"ytComponentBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],Q2.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Q2.prototype,"rtlBullet",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.p("design:type",String)],Q2.prototype,"styleType",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.p("design:type",Number)],Q2.prototype,"thumbnailWidth",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Q2.prototype,"modern",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.p("design:type",Boolean)],Q2.prototype,"isCustomThumbnail",void 0);_.A([_.fu("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[Event,Object]),_.p("design:returntype")],Q2.prototype,"onYtNavigate",null);_.A([_.q({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],Q2);
_.m(Q2,"ytd-playlist-sidebar-primary-info-renderer",function(){if(DIo!==void 0)return DIo;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return DIo=R},{mode:1});var pJa;var jU=function(){return _.W.apply(this,arguments)||this};
_.O(jU,_.W);jU.prototype.computeOwnerVisibility=function(R){return!(!R.videoOwner&&!R.button)};
jU.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],jU.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],jU.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],jU.prototype,"data",void 0);_.A([_.q({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],jU);
_.m(jU,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(pJa!==void 0)return pJa;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return pJa=R},{mode:1});var tUp;var MI=function(){var R=_.W.apply(this,arguments)||this;R.expanded=!1;R.isCompact=!1;return R};
_.O(MI,_.W);_.J=MI.prototype;_.J.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.J.dataChanged=function(){this.data&&_.CK(_.hw(this.text),_.pKg(_.awV,_.u7(this.data.text||null)))};
_.J.computeAutoScrollEnabled=function(R,y){return R&&!y};
_.J.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.J.toggleOnTap=function(){this.expanded=!this.expanded};
MI.prototype.expandedChanged=MI.prototype.expandedChanged;MI.prototype.dataChanged=MI.prototype.dataChanged;_.A([_.n(_.S2a),_.p("design:type",Object)],MI.prototype,"ytdAutoScrollBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],MI.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],MI.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],MI.prototype,"expanded",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],MI.prototype,"isCompact",void 0);_.A([_.r({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.p("design:type",Boolean)],MI.prototype,"autoScrollEnabled",void 0);_.A([_.O7("#text"),_.p("design:type",Object)],MI.prototype,"text",void 0);_.A([_.O7("#expander-icon"),_.p("design:type",Object)],MI.prototype,"expanderIcon",void 0);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],MI.prototype,"dataChanged",null);_.A([_.e0("expanded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],MI.prototype,"expandedChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],MI);
_.m(MI,"ytd-channel-legal-info-renderer",function(){if(tUp!==void 0)return tUp;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return tUp=R},{mode:1});var cPa;var avH=_.fo("DOWNLOAD",{},"Download"),Swp=_.fo("DOWNLOADING",{},"Downloading"),YwV=_.fo("DOWNLOADED",{},"Downloaded"),JP=function(){var R=_.W.apply(this,arguments)||this;R.downloadProgress=0;R.isDownloadComplete=!1;R.transferState="TRANSFER_STATE_UNKNOWN";return R};
_.O(JP,_.W);_.J=JP.prototype;_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.J.dataChanged=function(){var R;(R=this.data)!=null&&R.tooltip||(R=_.tN(_.Qe().getState(),this.playlistId),this.updateButtonState(R))};
_.J.computePlaylistId=function(R){return R};
_.J.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.J.updateButtonState=function(R){if(this.data&&(this.data.tooltip!==Swp||!_.Hd(R))){this.isDownloadComplete=!1;switch(R){case "TRANSFER_STATE_UNKNOWN":R=avH;var y="OFFLINE_DOWNLOAD";var u="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":R=YwV;y="OFFLINE_PIN";u="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":R=Swp;y="OFFLINE_DOWNLOADING_ZERO";u="ACTION_REMOVE_WITH_PROMPT";
break;default:R=avH,y="OFFLINE_DOWNLOAD",u="ACTION_ADD"}var v=Object.assign({},this.data);v.tooltip=R;v.accessibilityData={accessibilityData:{label:R}};v.icon={iconType:y};v.size="SIZE_DEFAULT";_.e(v.command,_.ZO)&&(_.e(v.command,_.ZO).action=u);this.set("data",v)}};
_.J.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 y;R!==((y=this.data.icon)==null?void 0:y.iconType)&&(y=Object.assign({},this.data),y.tooltip=Swp,y.accessibilityData={accessibilityData:{label:Swp}},y.icon={iconType:R},_.e(y.command,_.ZO)&&(_.e(y.command,_.ZO).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",y))}};
JP.prototype.updateProgress=JP.prototype.updateProgress;JP.prototype.onTransferStateChanged=JP.prototype.onTransferStateChanged;JP.prototype.dataChanged=JP.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],JP.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],JP.prototype,"ytdReduxBehavior",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],JP.prototype,"forceIconButton",void 0);
_.A([_.r({value:!0}),_.p("design:type",Boolean)],JP.prototype,"forceIconOnly",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],JP.prototype,"overrides",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],JP.prototype,"buttonTooltipPosition",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],JP.prototype,"styleActionButton",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],JP.prototype,"disableTextTransform",void 0);
_.A([_.r({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.p("design:type",String)],JP.prototype,"playlistId",void 0);_.A([_.r(),_.p("design:type",Object)],JP.prototype,"data",void 0);_.A([_.r({selector:_.aXL,selectorArgs:["playlistId"]}),_.p("design:type",Object)],JP.prototype,"downloadProgress",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],JP.prototype,"isDownloadComplete",void 0);
_.A([_.r({selector:_.tN,selectorArgs:["playlistId"]}),_.p("design:type",String)],JP.prototype,"transferState",void 0);_.A([_.r({value:!0}),_.p("design:type",Boolean)],JP.prototype,"showTooltips",void 0);_.A([_.r({value:!0}),_.p("design:type",Boolean)],JP.prototype,"sendCommandWhenDisabled",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],JP.prototype,"disabled",void 0);
_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],JP.prototype,"dataChanged",null);_.A([_.GJ("transferState"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],JP.prototype,"onTransferStateChanged",null);_.A([_.GJ("downloadProgress"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],JP.prototype,"updateProgress",null);
_.A([_.q({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],JP);
_.m(JP,"ytd-download-playlist-button-renderer",function(){if(cPa!==void 0)return cPa;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return cPa=R},{mode:1});var LwH;_.h6(_.bbK,"thumbnail-overlay-button-view-model",{props:{data:_.vR,lockupExperiments:_.vR}});var V2=function(){var R=_.W.apply(this,arguments)||this;R.isSquare=!1;R.isVertical=!1;return R};
_.O(V2,_.W);V2.prototype.computeIsSquare=function(R){return R!=null&&R.thumbnail?rHI(R.thumbnail)==="SQUARE":!1};
V2.prototype.computeIsVertical=function(R){return R!=null&&R.thumbnail?rHI(R.thumbnail)==="VERTICAL":!1};
V2.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],V2.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],V2.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.p("design:type",Object)],V2.prototype,"isSquare",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.p("design:type",Object)],V2.prototype,"isVertical",void 0);
_.A([_.r(),_.p("design:type",Object)],V2.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],V2);
_.m(V2,"ytd-hero-playlist-thumbnail-renderer",function(){if(LwH!==void 0)return LwH;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return LwH=R},{mode:1});var iY=function(){var R=_.W.apply(this,arguments)||this;R.isDarkTheme=!1;R.isUltraWide=!1;R.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return R};
_.O(iY,_.W);_.J=iY.prototype;_.J.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.ua();var R;(R=_.ua().resolve(_.yN(_.ho)))!=null&&(R.headerElement=this.hostElement)};
_.J.detached=function(){var R;(R=_.ua().resolve(_.yN(_.ho)))!=null&&(R.headerElement=void 0)};
_.J.onUpdateHeader=function(R){(R=R.detail)&&this.set("data",R)};
_.J.computeTextDisplayed=function(R){if(R)return R.textDisplayed?R.textDisplayed:R.placeholder};
_.J.gradientColorToLinearGradientStop=function(R){var y=this.isDarkTheme?R.darkThemeColor:R.lightThemeColor;return y?_.Sq(y)+" "+((R==null?void 0:R.startLocation)||0)*100+"%":"transparent"};
_.J.onWindowResize=function(){var R;((R=this.data)==null?0:R.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.J.onIronResize=function(R){this.isUltraWide=!R.detail.value};
_.J.onDarkModeToggledAction=function(R){this.isDarkTheme=R};
_.J.onUpdatePlaylistName=function(R){var y=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},R.detail.value));_.gn(this,function(){var u;(u=y.editableTitle)==null||u.resize()})};
_.J.onUpdatePlaylistDescription=function(R){var y=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},R.detail.value));_.gn(this,function(){var u;(u=y.editableDescriptionInlineExpander)==null||u.resize()})};
_.J.getCinematicData=function(R){return _.e(R==null?void 0:R.cinematicContainer,_.B6)};
_.RR.Object.defineProperties(iY.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,y=(R=this.getCinematicData(this.data))==null?void 0:R.config;return(R=this.isDarkTheme?y==null?void 0:y.darkThemeBackgroundColor:y==null?void 0:y.lightThemeBackgroundColor)?"background-color:"+_.aH(R)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var R;return _.e((R=this.data)==null?void 0:R.descriptionForm,LJ7)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var R=this,y,u,v;return"background:linear-gradient(to bottom, "+(((v=(y=this.getCinematicData(this.data))==null?void 0:(u=y.gradientColorConfig)==null?void 0:u.map(function(Q){return R.gradientColorToLinearGradientStop(Q)}))==null?void 0:v.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var R;return _.u7((R=this.data)==null?void 0:R.descriptionTapText)}}});
iY.prototype.onUpdateHeader=iY.prototype.onUpdateHeader;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],iY.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],iY.prototype,"actionHandlerBehavior",void 0);_.A([_.O7("#description-inline-expander"),_.p("design:type",Object)],iY.prototype,"descriptionInlineExpander",void 0);
_.A([_.O7("#editable-description-inline-expander"),_.p("design:type",Object)],iY.prototype,"editableDescriptionInlineExpander",void 0);_.A([_.r(),_.p("design:type",Object)],iY.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],iY.prototype,"isUltraWide",void 0);_.A([_.O7("#editable-title-display"),_.p("design:type",Object)],iY.prototype,"editableTitle",void 0);_.A([_.G("isUltraWide"),_.p("design:type",Object),_.p("design:paramtypes",[])],iY.prototype,"maxDescriptionLines",null);
_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],iY.prototype,"noCinematicData",null);_.A([_.fu("yt-new-playlist-header"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],iY.prototype,"onUpdateHeader",null);_.A([_.G("data","isDarkTheme"),_.p("design:type",Object),_.p("design:paramtypes",[])],iY.prototype,"backgroundStyle",null);
_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],iY.prototype,"descriptionFormData",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],iY.prototype,"getDropdownTheme",null);_.A([_.G("data","isDarkTheme"),_.p("design:type",String),_.p("design:paramtypes",[])],iY.prototype,"gradientStyle",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],iY.prototype,"descriptionTapText",null);
_.A([_.q({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],iY);
_.m(iY,"ytd-playlist-header-renderer",function(){if(qwZ!==void 0)return qwZ;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return qwZ=R},{mode:_.TN("kevlar_poly_si_batch_j078")?1:2});var sVH;var zfI;var Kg=function(){return _.W.apply(this,arguments)||this};
_.O(Kg,_.W);Kg.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Kg.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Kg.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Kg.prototype,"data",void 0);_.A([_.q({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],Kg);
_.m(Kg,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(zfI!==void 0)return zfI;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return zfI=R},{mode:1});var IV=function(){return _.W.apply(this,arguments)||this};
_.O(IV,_.W);
IV.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}}}}};
IV.prototype.computeUsePremiumShowStyle=function(R){if(!R||!R.items)return!1;for(var y=0;y<R.items.length;y++)if(_.e(R.items[y],H6)){var u=void 0;return((u=_.e(R.items[y],H6))==null?void 0:u.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],IV.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],IV.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],IV.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.p("design:type",Boolean)],IV.prototype,"usePremiumShowStyle",void 0);
_.A([_.q({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],IV);
_.m(IV,"ytd-playlist-sidebar-renderer",function(){if(sVH!==void 0)return sVH;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return sVH=R},{mode:1});var gop;var CYI;var RbJ=function(R,y,u,v,Q,M,K,h){this.minWidth=R;this.minHeight=y;this.recommendedWidth=u;this.recommendedHeight=v;this.JSC$21937_maxFileSize=Q;this.title=M;this.bannerGalleryTitle=K;this.channelId=h;this.picker_=null;R=_.x$W("yt-banner");y=R.addView;u=(new qAZ("youtubebanner")).addUploadMetadata("silo_id","19");u.opts.ytMaxFileSize=this.JSC$21937_maxFileSize;v=this.recommendedHeight;u.opts.ytRecWidth=this.recommendedWidth;u.opts.ytRecHeight=v;y.call(R,u);R.addView(new _.dq);y=R.addView;u=new _.dq;
u.opts.type="ytbanner";y.call(R,u.JSC$10043_setLabel(this.bannerGalleryTitle));y=R.setTitle(this.title).setSize(1E3);y.urlParamMap_.set("thumbs","orig");u=this.minWidth;v=this.minHeight;if(isNaN(u)||isNaN(v))throw Error("gb`"+u+"`"+v);y.urlParamMap_.set("minSize",u+"x"+v);y.urlParamMap_.set("cropMode","ytcb");this.builder_=R};
RbJ.prototype.open=function(){var R=this;return new _.F4(function(y,u){_.WiK(R.builder_,function(v){v.action=="picked"?y(v):v.action=="cancel"&&u(Error("lo"))});
R.picker_&&R.picker_.dispose();R.picker_=R.builder_.build();R.picker_.setVisible(!0)})};
RbJ.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var yhI=function(R){this.channelId=R};
yhI.prototype.upload=function(R){var y="";R.viewToken&&(y=R.viewToken[2].type);var u=R.docs[0];R=u.crop;y={channel_id:this.channelId,fife_url:u.thumbnails[0].url,photo_id:u.id,is_gallery_image:y=="ytbanner"};R&&(y.crop_top=R.top,y.crop_right=R.right,y.crop_bottom=R.bottom,y.crop_left=R.left);return _.XPz("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:y})};var hP=function(){var R=_.W.apply(this,arguments)||this;R.ariaLabel=null;return R};
_.O(hP,_.W);_.J=hP.prototype;_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.J.detached=function(){this.picker&&this.picker.dispose()};
_.J.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.J.computeAriaLabel=function(R){return R};
_.J.onTap=function(){var R=this,y;if((y=this.data)==null||!y.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new RbJ(this.data.bannerMinWidth||0,this.data.bannerMinHeight||0,this.data.bannerRecommendedWidth||0,this.data.bannerRecommendedHeight||0,this.data.bannerMaxFileSizeInMegabytes||0,this.data.editorTitle||"",this.data.galleryViewTitle||"",this.data.channelId||""));var u;(u=this.picker)==null||u.open().then(function(v){R.handleBannerPicked(v)},function(){})}};
_.J.handleBannerPicked=function(R){var y=this;this.uploader||(this.uploader=new yhI(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(R).then(function(u){y.handleBannerUploadSucceeded(u)},function(u){y.handleBannerUploadFailed(u)})};
_.J.handleBannerUploadSucceeded=function(R){R&&R.errors?this.handleBannerUploadFailed(R):(_.Ko(this.hostElement,"yt-banner-updated",R),this.message=null)};
_.J.handleBannerUploadFailed=function(R){this.message=R&&R.errors&&R.errors.length?R.errors[0]:null};
hP.prototype.dataChanged=hP.prototype.dataChanged;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],hP.prototype,"componentBehavior",void 0);_.A([_.n(_.mf),_.p("design:type",Object)],hP.prototype,"ironButtonState",void 0);_.A([_.r(),_.p("design:type",Object)],hP.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.p("design:type",Object)],hP.prototype,"ariaLabel",void 0);
_.A([_.r(),_.p("design:type",Object)],hP.prototype,"message",void 0);_.A([_.r(),_.p("design:type",Object)],hP.prototype,"picker",void 0);_.A([_.r(),_.p("design:type",Object)],hP.prototype,"uploader",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hP.prototype,"dataChanged",null);_.A([_.q({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],hP);
_.m(hP,"ytd-channel-banner-editor-renderer",function(){if(CYI!==void 0)return CYI;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return CYI=R},{mode:1});var uKI;var vKa=_.RE(["#"]),bY=function(){return _.W.apply(this,arguments)||this};
_.O(bY,_.W);bY.prototype.computeHrefWithDefault=function(R){return this.ytComponentBehavior.computeHref_(R,!0)||_.gEP(vKa)};
bY.prototype.dataChanged=function(){var R=this.data;R&&R.targetId&&_.U6b(_.Ux(),R.targetId,this.moreIcon)};
bY.prototype.dataChanged=bY.prototype.dataChanged;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],bY.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],bY.prototype,"data",void 0);_.A([_.O7("#more-icon"),_.p("design:type",Object)],bY.prototype,"moreIcon",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bY.prototype,"dataChanged",null);
_.A([_.q({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],bY);
_.m(bY,"ytd-channel-tagline-renderer",function(){if(uKI!==void 0)return uKI;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return uKI=R},{mode:1});var Qu8;var FP=function(){return _.W.apply(this,arguments)||this};
_.O(FP,_.W);_.J=FP.prototype;_.J.ready=function(){var R=this;_.hw(this.hostElement).querySelector("#form").addEventListener("submit",function(y){R.onSubmit(y)})};
_.J.onDataChanged=function(){var R;((R=this.data)==null?0:R.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.J.onIconButtonKeydown=function(R){R.keyCode===13&&this.iconButton.click()};
_.J.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.J.openOnClickHandler=function(){this.input.focus()};
_.J.onSubmit=function(R){R.preventDefault();return!1};
_.J.submitOnEnterKeyUp=function(R){var y;if(R.keyCode===13&&((y=this.data)==null?0:y.expandedText)){R=this.data.endpoint;y=_.Ps.unsafeClone(R);var u;((u=_.e(y==null?void 0:y.commandMetadata,_.QL))==null?0:u.url)?(_.e(y.commandMetadata,_.QL).url=_.mW(_.e(y.commandMetadata,_.QL).url,"query",this.data.expandedText),_.e(y,_.HV)&&(_.e(y,_.HV).query=this.data.expandedText),_.Ko(this.hostElement,"yt-navigate",{endpoint:y,tempData:{disableCache:!0}})):(u=new _.OL("Error: Trying to navigate to an endpoint without url",
R),_.dI(u))}};
_.J.updateDataExpandedTextFromBinding=function(R){this.set("data.expandedText",R.detail.value)};
_.RR.Object.defineProperties(FP.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.f("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
FP.prototype.onDataChanged=FP.prototype.onDataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],FP.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.d8I),_.p("design:type",Object)],FP.prototype,"ytdExpandableInputBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],FP.prototype,"data",void 0);_.A([_.O7("#input"),_.p("design:type",Object)],FP.prototype,"input",void 0);_.A([_.O7("#icon-button"),_.p("design:type",HTMLElement)],FP.prototype,"iconButton",void 0);
_.A([_.r(),_.p("design:type",String),_.p("design:paramtypes",[])],FP.prototype,"searchIcon",null);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FP.prototype,"onDataChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],FP);
var P5J=_.Nk()(FP,"ytd-expandable-tab-renderer",function(){if(Qu8===void 0){var R=document.createElement("template");_.H(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="[[searchIcon]]" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');R.content.insertBefore(_.t().content.cloneNode(!0),
R.content.firstChild);Qu8=R}R=Qu8;return R},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var jug;var wp=function(){var R=_.W.apply(this,arguments)||this;R.avatarSize=80;R.ariaLabel=_.fo("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return R};
_.O(wp,_.W);wp.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
wp.prototype.computeHref=function(R){var y;return((y=_.e(R,_.tc))==null?0:y.url)?this.componentBehavior.computeHref_(R):null};
wp.prototype.onTap=function(){var R,y;(R=this.data)==null||!R.editAvatarServiceEndpoint||((y=_.e(this.data.editAvatarServiceEndpoint,_.tc))==null?0:y.url)||_.ua().resolve(_.jX).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.A([_.n(_.mf),_.p("design:type",Object)],wp.prototype,"ironButtonState",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],wp.prototype,"componentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],wp.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],wp.prototype,"avatarSize",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],wp.prototype,"ariaLabel",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],wp);
_.m(wp,"ytd-channel-avatar-editor",function(){if(jug!==void 0)return jug;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return jug=R},{mode:1});var MjH=_.Jd(function(R){var y=R.data;var u=R.noPadding;var v=R.enableBanner;var Q=R.cinematicContainerTopbarOffset;var M=R.allowCinematicContainerOverflow;var K=R.displayAsSidebar;R=R.className;_.ny(function(){y().tagManagerId&&(_.qL(y().tagManagerId,_.EB("GL")),$bH(y().tagManagerId))},"xVTVTe");
var h=_.nA(dbg,function(){return y().pageHeaderEntityKey});
return _.F("yt-page-header-renderer",{class:_.Oy("page-header-renderer-wiz",R)},_.F(_.mk,{data:function(){var b;return((b=h())==null?0:b.header)?h().header:(K==null?0:K())&&y().sidebarContent?y().sidebarContent:y().content}},{pageHeaderViewModel:function(b){return _.F(_.EAb,{data:b.data,
noPadding:u,enableBanner:v,cinematicContainerTopbarOffset:Q,allowCinematicContainerOverflow:M,displayAsSidebar:function(){return(K==null?void 0:K())&&y().enableSidebarView}})}}))},"oj");
MjH.idomCompat=!0;_.h6(MjH,"yt-page-header-renderer",{props:{data:_.vR,noPadding:_.vR,enableBanner:_.vR,cinematicContainerTopbarOffset:_.vR,allowCinematicContainerOverflow:_.vR,displayAsSidebar:_.vR,className:_.vR}});_.h6(_.sH,"yt-image-banner-view-model",{props:{data:_.vR,isPositionRelative:_.vR}});_.h6(_.C5g,"yt-tab-group-shape",{props:{shape:_.vR}});var NI=function(){var R=_.W.apply(this,arguments)||this;R.expandableCustomTabRenderable=function(y){return WJg(y,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};
_.O(NI,_.W);_.J=NI.prototype;_.J.computeHeaderDisabled=function(R,y){return y||!R||this.tabsHidden};
_.J.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.J.computeIsRichGridShorts=function(R){return R==="RICH_GRID_STYLE_SHORTS_GRID"||R==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.J.computeImageBannerViewModel=function(){var R,y;return _.e((y=_.e((R=this.data)==null?void 0:R.content,_.QJi))==null?void 0:y.banner,_.zJ5)};
_.J.computeHasCinematicContainer=function(){var R,y;return!((y=_.e((R=this.data)==null?void 0:R.content,_.QJi))==null||!y.background)};
_.J.handleHeaderResize=function(){var R=_.hw(this.hostElement).querySelector("#header");R&&_.Ko(R,"iron-resize")};
_.J.handleInsertTabCommand=function(R){var y=_.e(R,vo8);y&&(y.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(u){return u.tabRenderer&&u.tabRenderer.tabIdentifier===y.tabIdentifier})||this.splice("tabs",y.tabIndex||-1,0,y.tab))};
_.J.handleRefreshChannelTabAction=function(R){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===R&&_.Ko(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.J.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.oX(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.J.observerRichGridSlimItemsPerRow=function(){_.oX(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.J.updateCssVars=function(){this.richGridItemsPerRow&&_.oX(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.JT("rich_grid_max_item_width",500))+16)-16+"px"})};
_.J.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.oX(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.J.onDataChanged=function(){this.handleHeaderResize()};
_.J.onWindowResize=function(){this.handleHeaderResize()};
_.J.onFocusedChanged=function(R){(R=_.vN(R))&&R.is==="tp-yt-paper-tab"&&R.hasRipple()&&(R.getRipple().holdDown=!R.pointerDown&&R.focused)};
_.J.updateSelectedFromBinding=function(R){this.ytdTabbedHeaderBehavior.selected=R.detail.value};
_.J.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.RR.Object.defineProperties(NI.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:koa(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"}}});
NI.prototype.onDataChanged=NI.prototype.onDataChanged;NI.prototype.updateCssVarsForResponsiveGrid=NI.prototype.updateCssVarsForResponsiveGrid;NI.prototype.updateCssVars=NI.prototype.updateCssVars;NI.prototype.observerRichGridSlimItemsPerRow=NI.prototype.observerRichGridSlimItemsPerRow;NI.prototype.observerRichGridItemsPerRow=NI.prototype.observerRichGridItemsPerRow;_.A([_.n(_.Sc),_.p("design:type",Object)],NI.prototype,"ytdGridStateAwareBehavior",void 0);
_.A([_.n(QVp),_.p("design:type",Object)],NI.prototype,"ytdTabbedHeaderBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],NI.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],NI.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.L6.YtdGuideStateAwareBehavior),_.p("design:type",Object)],NI.prototype,"ytdGuideStateAwareBehavior",void 0);
_.A([_.n(_.p6),_.p("design:type",Object)],NI.prototype,"ytdReduxBehavior",void 0);_.A([_.O7("#tabs"),_.p("design:type",Object)],NI.prototype,"tabsElement",void 0);_.A([_.r(),_.p("design:type",Array)],NI.prototype,"tabs",void 0);_.A([_.r(),_.p("design:type",Object)],NI.prototype,"expandableCustomTabRenderable",void 0);_.A([_.G("tabs.*"),_.p("design:type",Object),_.p("design:paramtypes",[])],NI.prototype,"tabGroupShape",null);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],NI.prototype,"isRichGrid",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],NI.prototype,"isConstrainedList",void 0);_.A([_.r({reflectToAttribute:!0,selector:_.$s}),_.p("design:type",Object)],NI.prototype,"richGridMiniMode",void 0);_.A([_.r({selector:function(R){return R.ui.richGridStyle}}),
_.p("design:type",Object)],NI.prototype,"richGridStyle",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.p("design:type",Object)],NI.prototype,"isRichGridShorts",void 0);_.A([_.r({selector:_.qq}),_.p("design:type",Number)],NI.prototype,"richGridItemsPerRow",void 0);_.A([_.r({selector:function(R){return R.ui.richGridContainerWidth}}),
_.p("design:type",Number)],NI.prototype,"richGridContainerWidth",void 0);_.A([_.r({selector:_.div}),_.p("design:type",Number)],NI.prototype,"richGridSlimItemsPerRow",void 0);_.A([_.r(),_.p("design:type",Object)],NI.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],NI.prototype,"responsiveSizing",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],NI.prototype,"disableGridStateAware",void 0);
_.A([_.r({computed:"computeImageBannerViewModel(data)"}),_.p("design:type",Object)],NI.prototype,"imageBannerViewModel",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.p("design:type",Boolean)],NI.prototype,"hasCinematicContainer",void 0);_.A([_.r({selector:_.oaZ,reflectToAttribute:!0}),_.p("design:type",Boolean)],NI.prototype,"guideIsVisibleButNotPersistent",void 0);
_.A([_.r({reflectToAttribute:!0}),_.G("imageBannerViewModel"),_.p("design:type",Object),_.p("design:paramtypes",[])],NI.prototype,"hasBanner",null);_.A([_.r({reflectToAttribute:!0}),_.G("imageBannerViewModel"),_.p("design:type",Object),_.p("design:paramtypes",[])],NI.prototype,"hasInsetBanner",null);_.A([_.r({computed:"computeTabsHidden(tabs)",value:!0}),_.p("design:type",Boolean)],NI.prototype,"tabsHidden",void 0);
_.A([_.e0("richGridItemsPerRow","isRichGrid"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],NI.prototype,"observerRichGridItemsPerRow",null);_.A([_.e0("richGridSlimItemsPerRow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],NI.prototype,"observerRichGridSlimItemsPerRow",null);
_.A([_.e0("richGridItemsPerRow","richGridMiniMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],NI.prototype,"updateCssVars",null);_.A([_.e0("richGridContainerWidth"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],NI.prototype,"updateCssVarsForResponsiveGrid",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],NI.prototype,"onDataChanged",null);
_.A([_.q({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],NI);
_.m(NI,"ytd-tabbed-page-header",function(){if(gop!==void 0)return gop;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return gop=R},{mode:1});var Jha;var Tr=function(){return _.W.apply(this,arguments)||this};
_.O(Tr,_.W);Tr.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.oX(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.RR.Object.defineProperties(Tr.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var R,y;return this.componentBehavior.computeIcon_(((y=_.e((R=this.data)==null?void 0:R.badge,_.DET))==null?void 0:y.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var R,y;return(y=_.e((R=this.data)==null?void 0:R.badge,_.DET))==null?void 0:y.label}}});
Tr.prototype.observerRichGridItemsPerRow=Tr.prototype.observerRichGridItemsPerRow;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Tr.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Tr.prototype,"componentBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],Tr.prototype,"ytdReduxBehavior",void 0);_.A([_.r({reflectToAttribute:!0,selector:_.$s}),_.p("design:type",Boolean)],Tr.prototype,"richGridMiniMode",void 0);
_.A([_.r({selector:_.qq}),_.p("design:type",Number)],Tr.prototype,"richGridItemsPerRow",void 0);_.A([_.r(),_.p("design:type",Object)],Tr.prototype,"data",void 0);_.A([_.e0("richGridItemsPerRow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Tr.prototype,"observerRichGridItemsPerRow",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Tr.prototype,"badgeIconName",null);
_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Tr.prototype,"badgeLabel",null);_.A([_.q({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],Tr);
_.m(Tr,"ytd-member-hub-profile-renderer",function(){if(Jha!==void 0)return Jha;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Jha=R},{mode:1});var VjZ;var oV=function(){return _.W.apply(this,arguments)||this};
_.O(oV,_.W);oV.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],oV.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],oV.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],oV.prototype,"data",void 0);_.A([_.q({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],oV);
_.m(oV,"ytd-settings-sidebar-renderer",function(){if(VjZ!==void 0)return VjZ;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return VjZ=R},{mode:1});var ifP;var xo=function(){var R=_.W.apply(this,arguments)||this;R.expandableCustomTabRenderable=function(y){return WJg(y,function(){return void R.onSearchNavigate()})};
return R};
_.O(xo,_.W);xo.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
xo.prototype.onSearchNavigate=function(){this.selected=void 0};
xo.prototype.onTabsChange=function(){var R,y=(R=this.tabs)==null?void 0:R.findIndex(function(u){var v;return u==null?void 0:(v=u.tabRenderer)==null?void 0:v.selected});
y!==void 0&&(this.selected=y)};
xo.prototype.onTabsActive=function(R){if(this.tabs!==void 0){var y,u;(R=(y=this.tabs[R.detail.selected])==null?void 0:(u=y.tabRenderer)==null?void 0:u.endpoint)&&_.Ko(this.hostElement,"yt-navigate",{endpoint:R})}};
_.RR.Object.defineProperties(xo.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:koa(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
xo.prototype.onTabsChange=xo.prototype.onTabsChange;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],xo.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.Sc),_.p("design:type",Object)],xo.prototype,"ytdGridStateAwareBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],xo.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.L6.YtdGuideStateAwareBehavior),_.p("design:type",Object)],xo.prototype,"ytdGuideStateAwareBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],xo.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Array)],xo.prototype,"tabs",void 0);_.A([_.r(),_.p("design:type",Number)],xo.prototype,"selected",void 0);_.A([_.G("tabs.*"),_.p("design:type",Object),_.p("design:paramtypes",[])],xo.prototype,"tabGroupShape",null);_.A([_.r(),_.p("design:type",Object)],xo.prototype,"expandableCustomTabRenderable",void 0);
_.A([_.G("tabs"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],xo.prototype,"tabsEnabled",null);_.A([_.GJ("tabs"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xo.prototype,"onTabsChange",null);_.A([_.q({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],xo);
_.m(xo,"ytd-topic-channel-details-renderer",function(){if(ifP!==void 0)return ifP;var R=document.createElement("template");_.H(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        <template is="dom-if" if="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer">\n          <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n        </template>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');R.content.insertBefore(_.t().content.cloneNode(!0),
R.content.firstChild);return ifP=R},{mode:1});var KdM;var BJ=function(){var R=_.W.apply(this,arguments)||this;R.disableGridStateAware=!1;return R};
_.O(BJ,_.W);BJ.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]]"}}}}}};
BJ.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
BJ.prototype.updateCssVars=function(){_.oX(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.JT("rich_grid_max_item_width",500))+16)-16+"px"})};
BJ.prototype.updateCssVars=BJ.prototype.updateCssVars;BJ.prototype.activeChanged=BJ.prototype.activeChanged;_.A([_.n(_.L6.YtdGuideStateAwareBehavior),_.p("design:type",Object)],BJ.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],BJ.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],BJ.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],BJ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],BJ.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Array)],BJ.prototype,"tabs",void 0);_.A([_.r(),_.p("design:type",Boolean)],BJ.prototype,"active",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],BJ.prototype,"disableGridStateAware",void 0);
_.A([_.r({selector:_.qq}),_.p("design:type",Number)],BJ.prototype,"richGridItemsPerRow",void 0);_.A([_.r({selector:_.$s}),_.p("design:type",Boolean)],BJ.prototype,"richGridMiniMode",void 0);_.A([_.O7("ytd-carousel-item-renderer"),_.p("design:type",Object)],BJ.prototype,"carousel",void 0);_.A([_.e0("active"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],BJ.prototype,"activeChanged",null);
_.A([_.e0("richGridItemsPerRow","richGridMiniMode"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],BJ.prototype,"updateCssVars",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],BJ);
_.m(BJ,"ytd-carousel-header-renderer",function(){if(KdM!==void 0)return KdM;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return KdM=R},{mode:1});var I3a;var hb8=_.RE(["https://www.google-analytics.com/analytics.js"]),fg=function(){var R=_.W.apply(this,arguments)||this;R.scriptAnalyticsAdded=!1;return R};
_.O(fg,_.W);fg.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var R,y=(R=this.data)==null?void 0:R.tagManagerId;y&&(_.qL(y,_.EB("GL")),$bH(y))};
fg.prototype.sendGoogleAnalyticsPageview=function(R){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var u=_.qy.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(u)};
var y=window.ga;y("set","page",window.location.pathname);y.l=+new Date;y("set","forceSSL",!0);y("create",R,"'auto'");y("send","pageview")};
fg.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var R=_.o_("SCRIPT");R.name="ga-analytics";var y=_.M1(hb8);_.gC(R,y);R.async=!0;_.hw(this.hostElement).appendChild(R)};
fg.prototype.dataChanged=fg.prototype.dataChanged;_.A([_.r(),_.p("design:type",Object)],fg.prototype,"data",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],fg.prototype,"dataChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],fg);
_.m(fg,"ytd-channel-metadata-renderer",function(){if(I3a!==void 0)return I3a;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return I3a=R},{mode:1});var bfJ;var FdH;var eU=function(){return _.W.apply(this,arguments)||this};
_.O(eU,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],eU.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],eU.prototype,"data",void 0);_.A([_.q({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],eU);
_.m(eU,"ytd-sub-feed-option-renderer",function(){if(FdH!==void 0)return FdH;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return FdH=R},{mode:1});var wnM;var lY=function(){return _.W.apply(this,arguments)||this};
_.O(lY,_.W);lY.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],lY.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],lY.prototype,"ytRendererStamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],lY.prototype,"data",void 0);_.A([_.q({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],lY);
_.m(lY,"ytd-sub-feed-selector-renderer",function(){if(wnM!==void 0)return wnM;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return wnM=R},{mode:1});var Ow=function(){return _.W.apply(this,arguments)||this};
_.O(Ow,_.W);
Ow.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Ow.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Ow.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Ow.prototype,"data",void 0);_.A([_.q({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],Ow);
_.m(Ow,"ytd-browse-feed-actions-renderer",function(){if(bfJ!==void 0)return bfJ;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return bfJ=R},{mode:1});var NfI;var TfP;var Zv=function(){return _.W.apply(this,arguments)||this};
_.O(Zv,_.W);Zv.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Zv.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Zv.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Zv.prototype,"data",void 0);_.A([_.q({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],Zv);
_.m(Zv,"ytd-mini-channel-renderer",function(){if(TfP!==void 0)return TfP;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return TfP=R},{mode:1});var oKV;var HJ=function(){return _.W.apply(this,arguments)||this};
_.O(HJ,_.W);HJ.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],HJ.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],HJ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],HJ.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],HJ);
_.m(HJ,"ytd-vertical-channel-section-renderer",function(){if(oKV!==void 0)return oKV;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return oKV=R},{mode:1});var Gr=function(){return _.W.apply(this,arguments)||this};
_.O(Gr,_.W);Gr.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Gr.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Gr.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Gr.prototype,"data",void 0);_.A([_.q({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],Gr);
_.m(Gr,"ytd-browse-secondary-contents-renderer",function(){if(NfI!==void 0)return NfI;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);
return NfI=R},{mode:1});var xTa;var rp=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};R.notActive=!1;R.isConstrainedList=!1;return R};
_.O(rp,_.W);_.J=rp.prototype;
_.J.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 y;return(R==null?void 0:(y=R.webComponentHint)==null?void 0:y.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}}}}};
_.J.getPath=function(R,y){var u="data.tabs.#"+y+".";R.tabs[y].tabRenderer?u+="tabRenderer.":R.tabs[y].expandableTabRenderer&&(u+="expandableTabRenderer.");return u+"content.sectionListRenderer"};
_.J.computeDisplayedContent=function(R){this.unlinkPaths("content");if(R&&R.tabs)for(var y=R.tabs.length,u=0;u<y;u++){var v=R.tabs[u].tabRenderer||R.tabs[u].expandableTabRenderer;if(v.selected&&v.content)return this.linkPaths("content",this.getPath(R,u)),v.content}return null};
_.J.computeHasSecondaryColumnData=function(R){return!!R&&!!R.secondaryContents};
_.J.onRetrieveLocation=function(R,y){y.locationRetrieved(y.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);R.stopPropagation()};
_.J.onYtServiceRequestSent=function(R,y){_.f("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(y)};
_.J.onYtServiceRequestCompleted=function(R,y){_.f("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(y)};
_.J.onReplaceFeedContentAction=function(R){if(!_.f("replace_feed_content_action_killswitch")&&!this.notActive){var y;(R=(y=_.e(R,aka))==null?void 0:y.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(R)}};
_.J.handleServiceRequestActions=function(R){if(R=R.actions){R=_.V(R);for(var y=R.next();!y.done;y=R.next()){y=y.value;var u=void 0;((u=_.e(y,aka))==null?0:u.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.e(y,aka).items)}}};
rp.prototype.onYtServiceRequestCompleted=rp.prototype.onYtServiceRequestCompleted;rp.prototype.onYtServiceRequestSent=rp.prototype.onYtServiceRequestSent;rp.prototype.onRetrieveLocation=rp.prototype.onRetrieveLocation;_.A([_.n(_.Sc),_.p("design:type",Object)],rp.prototype,"ytdGridStateAwareBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],rp.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],rp.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],rp.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],rp.prototype,"data",void 0);_.A([_.r({computed:"computeDisplayedContent(data)"}),_.p("design:type",Object)],rp.prototype,"content",void 0);
_.A([_.r({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],rp.prototype,"hasSecondaryColumnData",void 0);_.A([_.r({value:function(){return window.outerHeight>1024?3:2}}),
_.p("design:type",Number)],rp.prototype,"initialCount",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],rp.prototype,"pageSubtype",void 0);_.A([_.O7("ytd-section-list-renderer"),_.p("design:type",Object)],rp.prototype,"listRenderer",void 0);_.A([_.r(),_.p("design:type",Object)],rp.prototype,"notActive",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],rp.prototype,"isConstrainedList",void 0);
_.A([_.r(),_.p("design:type",String)],rp.prototype,"responsiveSizing",void 0);_.A([_.fu("yt-retrieve-location"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],rp.prototype,"onRetrieveLocation",null);_.A([_.fu("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.z3]),_.p("design:returntype")],rp.prototype,"onYtServiceRequestSent",null);
_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Mp]),_.p("design:returntype")],rp.prototype,"onYtServiceRequestCompleted",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],rp);
_.m(rp,"ytd-two-column-browse-results-renderer",function(){if(xTa!==void 0)return xTa;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return xTa=R},{mode:2});var BfM;var f3m;var PJ=function(){var R=_.W.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};
_.O(PJ,_.W);_.J=PJ.prototype;_.J.attached=function(){this.requestElementsPerRow()};
_.J.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_]]"}}}}}};
_.J.onUpdateElementsPerRowAction=function(R){R&&this.elementsPerRow!==R&&(this.elementsPerRow=R)};
_.J.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.J.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.J.computeAlertStyle_=function(R){return R};
_.J.observerElementsPerRow=function(){this.elementsPerRow&&_.oX(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.J.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.J.requestElementsPerRow=function(){_.Ko(this.hostElement,"yt-request-elements-per-row")};
PJ.prototype.onIsVisibleChanged_=PJ.prototype.onIsVisibleChanged_;PJ.prototype.observerElementsPerRow=PJ.prototype.observerElementsPerRow;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],PJ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],PJ.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],PJ.prototype,"actionHandlerBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],PJ.prototype,"data",void 0);_.A([_.r({value:6,reflectToAttribute:!0}),_.p("design:type",Number)],PJ.prototype,"elementsPerRow",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],PJ.prototype,"wrapButtons",void 0);_.A([_.r({value:_.EB("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.p("design:type",Boolean)],PJ.prototype,"isMusic",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.p("design:type",String)],PJ.prototype,"alertStyle",void 0);_.A([_.r({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.p("design:type",Function)],PJ.prototype,"dismissBoundButtonTap_",void 0);_.A([_.r({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.p("design:type",Function)],PJ.prototype,"acceptBoundButtonTap_",void 0);_.A([_.e0("elementsPerRow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],PJ.prototype,"observerElementsPerRow",null);_.A([_.e0("data.isVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],PJ.prototype,"onIsVisibleChanged_",null);_.A([_.pu({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],PJ);
_.m(PJ,"yt-alert-with-actions-renderer",function(){if(f3m===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;BfM===void 0&&(BfM=document.createElement("template"));var v=BfM;u.call(y,v.content.cloneNode(!0),R.content.firstChild);f3m=R}R=f3m;return R},{mode:2});_.h6(_.Jd(function(R){function y(B){var l={};return _.F(_.QM,{text:B,className:_.Oy("ytPersonalGreetingViewModelHeadline",(l.ytPersonalGreetingViewModelHeadlineSmall=function(){return h()===48},l))})}
function u(B,l){return _.F("span",{el:B,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},y(l))}
var v=_.VX(_.Y9(function(){var B;return(B=R.data())==null?void 0:B.rendererContext},void 0,void 0,void 0,!0)),Q=_.sh("span"),M=_.sh("span"),K=function(){return R.data().canvasPromoData},h=function(){var B;
return(B=R.data().bannerHeight)!=null?B:56},b=_.hO8(v,{throttleMs:100}),N=_.hO8(Q,{throttleMs:100}),T=_.hO8(M,{throttleMs:100}),x=function(){return N.width()-b.width()>1};
return _.F("yt-personal-greeting-view-model",{el:v,"aria-hidden":x,class:_.Oy(R.className,"ytPersonalGreetingViewModelHost"),style:_.P_({height:(0,_.p5)(function(){return x()?0:h()})})},_.F(_.w,{cond:function(){return R.data().avatar&&!(T.width()+(R.data().avatar?48:0)-b.width()>1)},
then:function(){return _.F(_.mk,{data:function(){return R.data().avatar}},{decoratedAvatarViewModel:function(B){return _.F(_.mG,{data:B.data,
className:_.Oy("ytPersonalGreetingViewModelAvatar")})}})}}),_.F("h1",null,y(function(){var B;
return(K==null?void 0:(B=K())==null?void 0:B.headline)||(T.width()+(R.data().avatar?48:0)-b.width()>1?R.data().shorterGreeting:R.data().greeting)})),u(M,function(){return R.data().greeting}),u(Q,function(){return R.data().shorterGreeting}))},"pj"),"yt-personal-greeting-view-model",{props:{data:_.vR,
className:_.vR}});var WJ=function(){var R=_.W.apply(this,arguments)||this;R.hidden=!1;R.isConstrainedList=!1;R.darkerDarkTheme=_.f("web_darker_dark_theme");R.responsiveSizing="COMPACT";R.attachedPlayers=_.f("kevlar_channel_trailer_multi_attach")?[]:void 0;R.player=null;R.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return R};
_.O(WJ,_.W);_.J=WJ.prototype;
_.J.configureRendererStamper=function(){return{mastheadAdData:{id:"masthead-ad",mapping:{bannerPromoRenderer:{component:"ytd-banner-promo-renderer",noInjection:!0},videoMastheadAdV3Renderer:{component:"ytd-video-masthead-ad-v3-renderer",noInjection:!0}},reuseComponents:!1},alertBannerData:{id:"alert-banner",mapping:{alertWithActionsRenderer:{component:"yt-alert-with-actions-renderer",noInjection:!0}}},greetingData:{id:"personal-greeting",mapping:{personalGreetingViewModel:{component:"yt-personal-greeting-view-model",properties:{className:"[[is]]"},
noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{alertRenderer:{component:"yt-alert-renderer",noInjection:!0},unlimitedUserNotificationRenderer:{component:"yt-unlimited-user-notification-renderer",noInjection:!0},alertWithButtonRenderer:{component:"ytd-alert-with-button-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},
"data.metadata":{id:"metadata",mapping:{channelMetadataRenderer:{component:"ytd-channel-metadata-renderer",noInjection:!0}}},"data.header":{id:"header",mapping:{pageHeaderRenderer:{component:"ytd-tabbed-page-header",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[richGrid]]",disableGridStateAware:"[[fluidWidth]]",disableHeaderFluidWidth:"[[disableHeaderFluidWidth]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}},
interactiveTabbedHeaderRenderer:{component:"ytd-interactive-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},carouselHeaderRenderer:{component:"ytd-carousel-header-renderer",properties:{active:"[[active]]",disableGridStateAware:"[[fluidWidth]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},
"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.J.created=function(){var R=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){R.disposeMastheadAd()}]};
_.J.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new JP7(this.refresh,this.contents))};
_.J.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.J.activeChanged=function(){var R=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=R)};
_.J.tabsChanged=function(){var R=this,y,u;if(this.pageSubtype==="channels"||_.f("kevlar_tab_gestures_for_tabbed_header_data")&&((y=this.data)==null?0:(u=y.header)==null?0:u.carouselHeaderRenderer))this.tabGestures=new Go(this.contents,this.contents,this.hostElement,this.header,function(K){R.ytdReduxBehavior.dispatch(K)});
var v,Q,M;y=(v=this.data)==null?void 0:(Q=v.contents)==null?void 0:(M=Q.twoColumnBrowseResultsRenderer)==null?void 0:M.tabs;this.tabGestures&&this.tabGestures.tabsChanged(y)};
_.J.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.J.engagementPanelsChanged=function(){var R=_.ua().resolve(_.d0);if(R){if(this.engagementPanels)for(var y=_.V(this.engagementPanels),u=y.next();!u.done;u=y.next()){var v=void 0;(u=(v=u.value.identifier)==null?void 0:v.tag)&&R.panelMap.delete(u)}this.engagementPanels=[];var Q;y=_.V(((Q=this.data)==null?void 0:Q.panels)||[]);for(Q=y.next();!Q.done;Q=y.next()){Q=_.e(Q.value,_.XDV);var M=u=void 0,K=void 0,h=void 0;if(v=((u=Q)==null?void 0:u.targetId)||((M=Q)==null?void 0:M.panelIdentifier)||((K=Q)==
null?void 0:(h=K.identifier)==null?void 0:h.tag))M=u=void 0,(M=(u=R).registerPanelContent)==null||M.call(u,v,{engagementPanelSectionListRenderer:Q}),this.engagementPanels.push(Q)}}};
_.J.onStampFinished=function(){var R=this;_.gn(this,function(){if(R.tabGestures){var y=R.tabGestures;if(y.scrollPositionNeedsUpdate){var u=_.ua().resolve(_.yN(_.iD)),v;if((v=y.selectedTab)!=null&&v.title&&u&&(v=u.getCurrentPage())){if(y.scrollPositionForTabs.has(y.selectedTab.title)){var Q,M;u=(M=(Q=u.getCurrentPage())==null?void 0:Q.clientHeight)!=null?M:0;Q=y.scrollPositionForTabs.get(y.selectedTab.title);v.setScrollTop(Q);u>Q+100&&(y.scrollPositionNeedsUpdate=!1)}else v.setScrollTop(Math.min(y.lastVisitedTabScrollPosition!==
void 0?y.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,y.tabsStartAtInPx)),y.scrollPositionNeedsUpdate=!1;y.ytdReduxDispatch(EAP(!1))}}}})};
_.J.loadPage_=function(R){this.initCsi();R&&(this.data=R);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.J.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.feedTabbedHeaderRenderer.title",R))return _.u7(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 _.u7(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",R));var y,u;return _.f("enable_page_header_page_title")&&(R==null?0:(y=R.header)==null?0:(u=y.pageHeaderRenderer)==null?0:u.pageTitle)?R.header.pageHeaderRenderer.pageTitle:""};
_.J.updateTitle=function(R){_.Ko(this.hostElement,"yt-update-title",this.getTitle(R))};
_.J.initCsi=function(){_.l5(this.pageSubtype||"browse",["ol","cpt"])};
_.J.getPlayer=function(){if(_.f("kevlar_channel_trailer_multi_attach")){for(var R=_.V(this.attachedPlayers),y=R.next();!y.done;y=R.next())if(y=y.value,y.isConnected||_.ma(this.hostElement,y))return y;return null}return this.player};
_.J.getPlayerContainer=function(){return null};
_.J.onPlayerAttached=function(R,y){_.f("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(y):this.player=y};
_.J.onPlayerDetached=function(R,y){_.f("kevlar_channel_trailer_multi_attach")?(R=this.attachedPlayers.indexOf(y),R<0||this.attachedPlayers.splice(R,1)):this.player=null};
_.J.getServiceTrackingParams=function(){var R,y;return((R=this.data)==null?void 0:(y=R.responseContext)==null?void 0:y.serviceTrackingParams)||[]};
_.J.setMastheadAd=function(R){R&&R.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=R&&R.mastheadAd};
_.J.dataChanged=function(){var R=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.xb8();_.gn(this,function(){_.h_(R.hostElement,"ytd-update-grid-state-action")})};
_.J.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.J.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var R=this.data.alerts;return R&&R.find(function(y){return!!y.alertWithActionsRenderer})}};
_.J.computeGreetingData=function(){if(this.data&&this.data.alerts){var R=this.data.alerts;return R&&R.find(function(y){return!!y.personalGreetingViewModel})}};
_.J.computeHasMemberHubProfileRenderer=function(R){var y;return!!(R==null?0:(y=R.header)==null?0:y.memberHubProfileRenderer)};
_.J.handleAlertCommand=function(R){this.get("alertCommand.alert.alertWithActionsRenderer",R)&&(R=_.e(R,SAo),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",R.alert))};
_.J.handleYtPlaylistDeletionRedirect=function(R){R=this.get("playlistDeletionRedirectCommand.redirectEndpoint",R);_.Ko(this.hostElement,"yt-navigate",{endpoint:R})};
_.J.computeFluidWidth=function(R,y,u){if(y==="mini_app"||u)return!0;var v,Q,M;R=R==null?void 0:(v=R.contents)==null?void 0:(Q=v.twoColumnBrowseResultsRenderer)==null?void 0:(M=Q.tabs)==null?void 0:M.find(function(b){var N;return b==null?void 0:(N=b.tabRenderer)==null?void 0:N.selected});
if(!R)return!1;var K,h;return!!((K=R.tabRenderer)==null?0:(h=K.content)==null?0:h.richGridRenderer)&&!["channel","channels","playables"].includes(y)};
_.J.computeHeaderFluidWidth=function(R){return R==="hashtag-landing-page"};
_.J.computeHasSidebar=function(R){var y;return!!(R.sidebar||((y=R.header)==null?0:y.playlistHeaderRenderer))};
_.J.computeHasPageHeaderSidebar=function(R){var y,u;return!!((y=R.header)==null?0:(u=y.pageHeaderRenderer)==null?0:u.enableSidebarView)};
_.J.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 y=0;y<R.items.length;y++)if(_.e(R.items[y],H6)){var u=void 0;return((u=_.e(R.items[y],H6))==null?void 0:u.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.J.computeIsConstrainedList=function(R){return _.f("web_enable_constrained_list_subscriptions_channels")&&R==="subscriptions-channels"};
_.J.computeResponsiveSizing=function(R){return R==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.RR.Object.defineProperties(WJ.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var R,y;return((R=this.data)==null?0:(y=R.header)==null?0:y.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var R,y;if(!((R=this.data)==null?0:(y=R.sidebar)==null?0:y.playlistSidebarRenderer))return!1;var u;return(u=this.data)!=null&&u.header?!1:!0}}});
_.RR.Object.defineProperties(WJ,{template:{configurable:!0,enumerable:!0,get:function(){if(Kwm===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);Kwm=R}R=Kwm;return R}}});
WJ.prototype.dataChanged=WJ.prototype.dataChanged;WJ.prototype.onPlayerDetached=WJ.prototype.onPlayerDetached;WJ.prototype.onPlayerAttached=WJ.prototype.onPlayerAttached;WJ.prototype.onStampFinished=WJ.prototype.onStampFinished;WJ.prototype.engagementPanelsChanged=WJ.prototype.engagementPanelsChanged;WJ.prototype.scrollAtTopChanged=WJ.prototype.scrollAtTopChanged;WJ.prototype.tabsChanged=WJ.prototype.tabsChanged;WJ.prototype.activeChanged=WJ.prototype.activeChanged;
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],WJ.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.jc),_.p("design:type",Object)],WJ.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],WJ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],WJ.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.OA.YtPageBehavior),_.p("design:type",Object)],WJ.prototype,"ytPageBehavior",void 0);
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],WJ.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.L6.YtdGuideStateAwareBehavior),_.p("design:type",Object)],WJ.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],WJ.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],WJ.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],WJ.prototype,"hidden",void 0);
_.A([_.r(),_.p("design:type",Object)],WJ.prototype,"mastheadAdData",void 0);_.A([_.r({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.p("design:type",Object)],WJ.prototype,"alertBannerData",void 0);_.A([_.r({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.p("design:type",Object)],WJ.prototype,"greetingData",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],WJ.prototype,"pageSubtype",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.p("design:type",Boolean)],WJ.prototype,"hasMemberHubProfileRenderer",void 0);_.A([_.r({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],WJ.prototype,"hasSidebar",void 0);_.A([_.r({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],WJ.prototype,"hasPageHeaderSidebar",void 0);
_.A([_.r({reflectToAttribute:!0,value:!0}),_.p("design:type",Boolean)],WJ.prototype,"roundedContainer",void 0);_.A([_.r({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],WJ.prototype,"useUnifiedShowPageLayout",void 0);_.A([_.r({computed:"computeIsConstrainedList(pageSubtype)"}),_.p("design:type",Object)],WJ.prototype,"isConstrainedList",void 0);
_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],WJ.prototype,"usePlaylistHeaderRenderer",null);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],WJ.prototype,"useOldPlaylistSidebarRenderer",null);_.A([_.r({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.p("design:type",Boolean)],WJ.prototype,"fluidWidth",void 0);_.A([_.r({selector:function(R){return R.ui.scrollAtTop}}),
_.p("design:type",Boolean)],WJ.prototype,"scrollAtTop",void 0);_.A([_.r({selector:_.x88}),_.p("design:type",Boolean)],WJ.prototype,"tabGesturesIsActive",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],WJ.prototype,"darkerDarkTheme",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.p("design:type",Boolean)],WJ.prototype,"disableHeaderFluidWidth",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.p("design:type",String)],WJ.prototype,"responsiveSizing",void 0);_.A([_.O7("ytd-two-column-browse-results-renderer"),_.p("design:type",HTMLElement)],WJ.prototype,"contents",void 0);_.A([_.O7("#header"),_.p("design:type",HTMLElement)],WJ.prototype,"header",void 0);_.A([_.O7("ytd-refresh"),_.p("design:type",Object)],WJ.prototype,"refresh",void 0);
_.A([_.e0("active"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],WJ.prototype,"activeChanged",null);_.A([_.e0("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],WJ.prototype,"tabsChanged",null);_.A([_.e0("scrollAtTop"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],WJ.prototype,"scrollAtTopChanged",null);
_.A([_.r(),_.p("design:type",Object)],WJ.prototype,"engagementPanels",void 0);_.A([_.e0("data.panels"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],WJ.prototype,"engagementPanelsChanged",null);_.A([_.fu("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],WJ.prototype,"onStampFinished",null);
_.A([_.fu("yt-player-attached"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Element]),_.p("design:returntype")],WJ.prototype,"onPlayerAttached",null);_.A([_.fu("yt-player-detached"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Element]),_.p("design:returntype")],WJ.prototype,"onPlayerDetached",null);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],WJ.prototype,"dataChanged",null);
_.A([_.q({is:"ytd-browse"})],WJ);_.NL.registerService(_.Fwv,WJ);
_.UX();
}catch(e){_._DumpException(e)}
try{
_.ds("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 fm,kS8,EkZ,$SP,qlp,XA7,mSV,AWp,DSV,pAZ,tm7,cW8,a7Z,Ylm,LQM,zLH,gk7,CNJ,ylI,ucP,vIa,QR7,eI,MCa,lK,JlP,VCM,ivo,Kbm,IxM,bv8,w8P,h6J,Sl7,NGm,TGp,oIJ,x48,BG7,fxp,Ov8,Zvp,Hvo,nIK,rlM,Ppo,d4p,kM7,EIm,$4V,X8M,AlH,D4I,p8m,tCp,cl8,ax8,Sf8,YfI,Lbm,sRK,z6m,gIM,Cp7,R58,y_a,uhp,vF7,Qka,jkp,J_M,Via,io7,Kmo,Iq8,h58,bop,Fmg,woa,Nrp,Trm,oFH,xQm,Brp,fqm,e5P,lqZ,OoP,Zop,Hog,nFg,GP7,r_8,Ph8,Wmg,dQH,UQV,d8,kPa,EFa,$QJ,Xoa,mQg,A_a,DQ7,poV,tig,c_H,Y9g,vs8,JNJ,V6a,bzZ,Fca,hBg,Kcp,osI,fn8,nsa,izg,lnZ,xqI,XA,rNJ,dqZ,EsH,
UqI,kIZ,$qK,ANP,XdM,DqP,pdm,mqM,qqH,t6P,pm,tg,s3Z,zBZ,cz,gsg,CE7,Rzm,Mq7,JU7,aF,SI,ica,Vq7,KHg,IjI,hz8,Yt,Lm,sE,BwP,fjp,ezm,g8,nvM,ljp,HcZ,G2o,Oca,P7m,Zca,UBa,WHg,dBp,Cm,EvP,k2m,mBa,tqZ,vj,QI,DBV,aj7,pV7,cUa,Mx,VI,iS,K1,bu8,vJP,N2g,T2a,oJK,xza,fV7,gvm,C77,bS,ywg,It,hY,uNa,B28,F8K,R3a,wO,lVm,Oua,ZuZ,nJI,rwP,P8m,W8a,dzI,kJV,UzJ,$zM,q7a,mza,AwK,pNZ,t0g,cwH,S78,Y7V,z3Z,sXm,gJo,C8a,R4V,yda,via,Qca,jcI,MbK,Jda,Vbp,KNZ,Ira,h48,bkI,FNJ,NZI,wyp,TZ8,oiJ,T1,xkZ,BZp,ot,frP,e4m,lrM,OkK,Zka,HkP,niZ,GNp,rda,WNK,
x3,dkZ,Uka,$ka,XyK,mkp,DkH,AdK,pyZ,tbH,cdJ,S4P,Y4P,LNP,sc8,z4m,giZ,CXp,RvH,y6H,ujJ,v6g,QCV,VpP,ihP,MpP,J6a,jCp,KxK,bho,Il8,hva,NWp,Fxo,w_7,TWM,o6m,xRg,BW8,evZ,lla,Oha,Hhm,n6p,r6m,Wxp,URH,E6I,qy8,mRa,DRH,tpa,Sya,YyV,LxV,zvM,sCp,C0J,R8P,yFH,usg,f1,v9M,Q8J,j8M,wma,Tma,o98,e8m,lO7,OA8,ZAp,HAZ,n9m,GwK,UE,rFZ,Hj,k3a,PDV,WkZ,HXM,nYP,GxZ,rGM,PGJ,WhH,d5m,U5H,kxp,P0Z,G3P,ZhZ,EYo,$5a,qzp,X2a,m58,AGp,X_g,$RI,D5K,p28,t8p,dR8,A68,cG7,p_a,aTM,alJ,Sz7,YzV,LhZ,sya,ztJ,gYH,CGa,Rog,yeI,u1a,vla,Q2I,aV7,j2H,MVp,Jeo,VVp,
iRH,Kra,IAp,XNI,EJ7,hoa,dO,U1,k3,E1,bRm,Fr7,wZP,NXp,TX7,olm,xrZ,BXZ,fAZ,eoo;
fm=function(R){if(!R)return"browse";var y=R.page,u=R.url,v,Q,M,K=(v=R.response)==null?void 0:(Q=v.responseContext)==null?void 0:(M=Q.webResponseContextExtensionData)==null?void 0:M.pageTheme;if(K)y=K.toLowerCase().replace(/_/g,"-");else if(y!=="watch"&&y!=="learning_journey_watch"){var h,b;if((y==="browse"||y==="settings")&&((h=R.response)==null?0:(b=h.sidebar)==null?0:b.settingsSidebarRenderer))y="WEB_PAGE_TYPE_SETTINGS";else{var N,T;y==="browse"&&((N=R.response)==null?0:(T=N.metadata)==null?0:T.channelMetadataRenderer)?
y="channel":u&&(y=_.OZ(u)||y)}}return y};
kS8=function(){var R=_.D6("yt.aba.att");return R?R:_.o7.instance!==void 0?_.o7.instance.zxb.bind(_.o7.instance):null};
EkZ=function(R,y){var u;return _.I(function(v){return(u=kS8())?v.return(u(R,y,6E4)):v.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
$SP=function(R,y,u,v,Q){y=y===void 0?[]:y;Q=Q?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:Q}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Mq(R),dialogMessages:y.map(function(M){return _.Mq(M)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Mq(u),serviceEndpoint:Q}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Mq(v)}}}}}};
qlp=function(R){var y=!!_.gQ().queueProxy;var u,v,Q;R=R==null?void 0:(u=R.response)==null?void 0:(v=u.currentVideoEndpoint)==null?void 0:(Q=v.watchEndpoint)==null?void 0:Q.playlistId;return!(!y&&!R)};
XA7=function(R,y){var u=_.Hr();if(qlp(R))return u.playlistWatchPageActivation=!0;switch(fm(y)){case "yts-products":return u.productDetailsPageActivation=!0;case "mini_app":return u.miniAppPageActivation=!0;case "playables":return u.playablesDestPageActivation=!0;default:return!1}};
mSV=function(R,y,u){for(var v=typeof R==="string"?R.split(""):R,Q=R.length-1;Q>=0;--Q)Q in v&&y.call(u,v[Q],Q,R)};
AWp=function(R,y){y=_.BET(R,y);y>=0&&_.lcE(R,y)};
DSV=function(R){return Array.prototype.concat.apply([],arguments)};
pAZ=function(R){var y=0;y=y===void 0?0:y;if(!_.ab(R))throw _.C8("uint64");var u=typeof R;switch(y){case 512:switch(u){case "string":return _.HYO(R);case "bigint":return String((0,_.V8)(64,R));default:return _.OYG(R)}case 1024:switch(u){case "string":return _.n8S(R);case "bigint":return _.k8((0,_.V8)(64,R));default:return _.ZYL(R)}case 0:switch(u){case "string":return _.HYO(R);case "bigint":return _.k8((0,_.V8)(64,R));default:return _.lwW(R)}default:return _.AL(y,"Unknown format requested type for int64")}};
tm7=function(R){R!=null&&(R=R.JSC$8786_value_||"",R=typeof R==="string"?R:new Uint8Array(R));return R};
cW8=function(R){for(var y=_.qy.apply(1,arguments),u=R[0],v=0;v<R.length-1;v++)u+=String(y[v]),u+=R[v+1];y=document.implementation.createHTMLDocument("");v=y.createElement("style");y.head.appendChild(v);y=v.sheet;y.insertRule(u,0);if(y.cssRules.length===1&&(u=y.cssRules[0],u instanceof CSSStyleRule))return new _.uB(u.cssText.replace(/</g,"\\3C "))};
a7Z=function(R,y){if(/-[a-z]/.test(y))return null;if(_.JqK&&R.dataset){if(_.Icz()&&!(y in R.dataset))return null;R=R.dataset[y];return R===void 0?null:R}return R.getAttribute("data-"+_.B8(y))};
Ylm=function(){var R=Sl7;_.D6("yt.ads.biscotti.getId_")||_.CJ("yt.ads.biscotti.getId_",R)};
LQM=function(R){_.CJ("yt.ads.biscotti.lastId_",R)};
zLH=function(){var R={};for(_.rR=new sxa(R.handleError===void 0?_.Uh:R.handleError,R.logEvent===void 0?_.P3:R.logEvent);_.P5.length>0;)switch(R=_.P5.shift(),R.type){case "ERROR":_.rR.logError(R.payload);break;case "EVENT":_.rR.logEvent(R.eventType,R.payload)}};
gk7=function(R,y,u){return _.Uqz(function(v){return u?v.userIdentifier!==void 0&&!R.includes(v.userIdentifier)&&u.includes(v.publicName):v.userIdentifier!==void 0&&!R.includes(v.userIdentifier)},y)};
CNJ=function(R){var y,u;return _.I(function(v){if(v.nextAddress==1)return y=_.eX("YtIdbMeta hasAnyMeta other"),v.yield(_.Uqz(function(Q){return Q.userIdentifier!==void 0&&Q.userIdentifier!==y},R),2);
u=v.yieldResult;return v.return(u.length>0)})};
ylI=function(R,y){R6J||(R6J=_.WG.addLowPriorityJob(function(){var u,v,Q,M,K;return _.I(function(h){switch(h.nextAddress){case 1:return h.yield(_.Rz(),2);case 2:u=h.yieldResult;if(!u)return h.return();v=!0;_.wY(h,3);return h.yield(gk7(R,u,y),5);case 5:Q=h.yieldResult;if(!Q.length){v=!1;h.jumpTo(6);break}M=Q[0];return h.yield(_.ah(M.actualName),7);case 7:return h.yield(_.LJ(M.actualName,u),6);case 6:_.c5(h,4);break;case 3:K=_.B$(h),_.W5(K),v=!1;case 4:_.WG.cancelJob(R6J),R6J=0,v&&ylI(R,y),_.f$(h)}})}))};
ucP=function(){var R;return _.I(function(y){return y.nextAddress==1?y.yield(_.Rz(),2):(R=y.yieldResult)?y.return(CNJ(R)):y.return(!1)})};
vIa=function(R){var y=100;y=y===void 0?500:y;var u,v,Q,M,K,h;return _.I(function(b){return b.nextAddress==1?(u=_.EB("INNERTUBE_CONTEXT_CLIENT_NAME",0),v=[u,(0,_.uQ)()-2592E6],Q=[u,(0,_.uQ)()],M=IDBKeyRange.bound(v,Q),b.yield(_.Mbv(R),2)):b.nextAddress!=3?(K=b.yieldResult,h=[],b.yield(_.Yz(K,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(N){h.length=0;return _.vG(N.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:M,direction:"prev"},function(T){if(T.getValue()&&h.length<
y)return h.push(T.getValue()),T.delete().then(function(){return T.continue()})})}),3)):b.return(h)})};
QR7=function(){var R;return _.I(function(y){if(y.nextAddress==1)return y.yield(_.Rz(),2);R=y.yieldResult;if(!R||!_.la()&&!_.f("nwl_init_require_datasync_id_killswitch")||!_.ZkT())return y.jumpTo(0);_.ni8=!0;_.HkL.isNwlInitialized=_.ni8;return y.yield(_.GMY().awaitInitialization(),0)})};
eI=function(R,y){_.tbW[R]=!0;var u=_.jx();u&&u.publish.apply(u,arguments);_.tbW[R]=!1};
MCa=function(){if(_.fVT()&&!jRH){var R=function(u){u=u.data;if(u.op==="serializedGelBatch"){var v=_.c6W.get(u.key);v&&(_.SyE(u.serializedBatch,v.client,v.resolve,v.networklessOptions,v.isIsolated,v.useVSSEndpoint,v.dangerousLogToVisitorSession,v.requestsOutstanding),_.c6W.delete(u.key))}},y=_.B2G();
y&&(y.addEventListener("message",R),y.onerror=function(){_.c6W.clear()});
jRH=!0}};
lK=function(){this.relativeTimeStart_=_.KU()};
JlP=function(R,y){R!=null&&this.append.apply(this,arguments)};
VCM=function(){return _.Dx("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
ivo=function(R,y,u){u=u===void 0?!1:u;var v,Q,M,K,h;return _.I(function(b){switch(b.nextAddress){case 1:_.B5("SOCS",R,34128E3,"youtube.com",!0);if(_.xU)return Q=fetch(y,{method:"POST",mode:_.YI(y),credentials:_.SC(y),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),M=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.YI("/upgrade_visitor_cookie?eom=1"),credentials:_.SC("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),b.yield(Promise.all([Q,M]).then(function(N){return N[1]}),5);
fetch(y,{method:"POST",mode:_.YI(y),credentials:_.SC(y),cache:"no-store",headers:{"Content-Type":"text/plain"}});return b.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.YI("/upgrade_visitor_cookie?eom=1"),credentials:_.SC("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:v=b.yieldResult;b.jumpTo(3);break;case 5:v=K=b.yieldResult;case 3:if(!v.ok)throw Error("nf");return b.yield(v.text(),7);case 7:h=b.yieldResult,
!h.includes('"state_switch":true')&&!u||h.includes("skip_reload_for_test")||window.location.reload(),_.f$(b)}})};
Kbm=function(R){return _.I(function(y){return y.nextAddress==1?y.yield(ivo(R.socsCookie,R.savePreferenceUrl,!0),2):y.return()})};
IxM=function(R){return _.I(function(y){return y.nextAddress==1?y.yield(ivo(R.socsCookie,R.savePreferenceUrl),2):y.return()})};
bv8=function(R){R=R.xhr.responseText;if(!_.jv(R,")]}'"))throw new OE;R=JSON.parse(R.substr(4));if((R.type||1)>1)throw new OE;R=R.id;LQM(R);Zf=_.yA(R);h6J(18E5,2);return R};
w8P=function(R,y){y=new Fba(y);LQM("");Zf=_.F5L(y);R>0&&h6J(12E4,R-1);throw y;};
h6J=function(R,y){_.Ih(function(){_.BnM().then(bv8,function(u){return w8P(y,u)}).thenCatch(_.ZM)},R)};
Sl7=function(){var R=_.l7a();if(R!==void 0)return _.qk(R);Zf||(Zf=_.BnM().then(bv8).thenCatch(function(y){return w8P(2,y)}));
return Zf};
NGm=function(){var R=document;return _.UP(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(y){return"on"+y.toLowerCase()in R})};
TGp=function(R){R.addEventListener("click",function(y){var u=y.target;u&&u.getAttribute("href")&&(u=u.getAttribute("href"),_.aK(window,u,"_blank"),y.preventDefault(),y.stopImmediatePropagation())})};
oIJ=function(R){var y,u,v,Q=(v=(u=((y=R.mainDownloadsListEntity)!=null?y:{})[_.OxT])==null?void 0:u.refresh)!=null?v:"",M;R=(M=R.refresh)==null?void 0:M[Q];Q=R!=null?R:{};return(Q==null?0:Q.refreshTime)?Number(Q==null?void 0:Q.refreshTime):0};
x48=function(R,y){var u=_.Wd(R);return y.every(function(v){var Q;v=v==null?void 0:(Q=v.playbackDataEntity)==null?void 0:Q.key;if(!v)return!1;Q=_.Nq(_.bE(v).entityId,"mainVideoEntity");return!!u[Q]})};
BG7=function(R){R=_.GI(R.entities);return _.XeG(R).length};
fxp=function(R,y){if(y){var u;R=(u=_.TI(R.entities,"downloadQualityPickerEntity",y))!=null?u:void 0}else R=void 0;return R};
Ov8=function(){e6V||(_.Cz=_.eJU,e6V=new lx8);return e6V};
Zvp=function(R){var y=document.getElementsByTagName("ytd-enforcement-message-view-model");y.length===0||getComputedStyle(y[0]).display==="none"?R(0,"p.h_"):R(1,"p.h_")};
Hvo=function(){Hz=0;var R=[_.rw(!0)];nm&&_.h_(nm,"yt-window-resized",R)};
nIK=function(){Hz||(Hz=_.WG.addLowPriorityJob(Hvo,200))};
rlM=function(){GG=0;GMZ=_.VKg(document);var R=[GMZ];nm&&_.h_(nm,"yt-window-scrolled",R)};
Ppo=function(){GG||(GG=_.WG.addLowPriorityJob(rlM,200))};
d4p=function(R){R=R===void 0?null:R;Wb7.push(_.yF(window,"resize",nIK));Wb7.push(_.yF(window,"scroll",Ppo));R&&(nm=R)};
kM7=function(){var R={isWide:_.xz.get("wide","0")==="1"},y=_.O9();if(y=y.getFlag(165)||y.getFlag(174))R.theme=_.EZ(!0);if(_.b_L()){var u=_.kv()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";R.systemTheme=u}!y&&_.f("parent_tools_enable_app_settings")&&_.SS(window.location.href).theme!==void 0&&(R.theme=_.EZ());if((y=r8)?!_.Ps.equals(y,R):R)y={currentValue:R},U4J&&(y.timeSinceLastSnapshotSecs=Math.round(((0,_.uQ)()-U4J)/1E3)),r8&&(y.previousValue=r8),_.P3("appSettingsCaptured",y),r8=R,U4J=
(0,_.uQ)()};
EIm=function(R){_.I(function(y){if(y.nextAddress==1)return y.yield(R.delete("yt-appshell-assets"),2);_.f$(y)})};
$4V=function(R){return _.SX((0,_.pvG)(),R)};
X8M=function(){var R;_.I(function(y){return y.nextAddress==1?y.yield(Pz.getInstance(),2):(R=y.yieldResult)?y.yield(qfg(R),0):y.jumpTo(0)})};
AlH=function(){var R;_.I(function(y){return y.nextAddress==1?y.yield(Wz.getInstance(),2):(R=y.yieldResult)?y.yield(m4H(R),0):y.jumpTo(0)})};
D4I=function(R){EIm(R);X8M();AlH()};
p8m=function(R){var y,u;return _.I(function(v){if(v.nextAddress==1)return v.yield(_.Exz(R),2);if(y=v.yieldResult){var Q;a:{if(y.headers&&(Q=y.headers.get("date"))&&(Q=Date.parse(Q),!isNaN(Q))){Q=Math.round((0,_.uQ)()-Q);break a}Q=-1}u=Q;if(u>-1)return v.return(u)}return v.return(-1)})};
tCp=function(){var R=_.uO.caches,y=_.$B("IS_SHELL_LOAD"),u,v;_.I(function(Q){if(Q.nextAddress==1)return u=-1,y?Q.yield(p8m(R),3):(v=_.Po(),u=Math.round((0,_.uQ)()-v),Q.jumpTo(2));Q.nextAddress!=2&&(u=Q.yieldResult);u>=0&&u<2147483648&&_.E9({appInstallDataAgeMs:u});_.f$(Q)})};
cl8=function(R){var y=_.pF(_.uO.location.href),u={};"absolute_experiments forced_experiments expflag conditional_experiments client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url build mloader debugjs".split(" ").forEach(function(v){var Q=y.JSC$10001_queryData_.getValues(v);if(Q==null?0:Q.length)u[v]=Q});
return _.VW(R,new Map(Object.entries(u)))};
ax8=function(R){R=R.match(/(.*)::.*::.*/);if(R!==null)return R[1]};
Sf8=function(R){if(_.R_T()){var y=Object.keys(window.localStorage);y=_.V(y);for(var u=y.next();!u.done;u=y.next()){u=u.value;var v=ax8(u);v===void 0||R.includes(v)||self.localStorage.removeItem(u)}}};
YfI=function(){if(!_.R_T())return!1;var R=_.eX(),y=Object.keys(window.localStorage);y=_.V(y);for(var u=y.next();!u.done;u=y.next())if(u=ax8(u.value),u!==void 0&&u!==R)return!0;return!1};
Lbm=function(R){return _.bK("NotificationsDisabled",R)};
sRK=function(){return Notification.permission!="granted"?Promise.resolve():_.Bhp().then(function(R){return R?R.pushManager.getSubscription().then(function(y){if(y)return Promise.resolve();y={userVisibleOnly:!0,applicationServerKey:_.zT("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return R.pushManager.subscribe(y).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
z6m=function(R){return _.Bhp().then(function(y){if(!y||!y.active)return Promise.reject(new _.OL("serviceworker.postMessage",R,y));try{return y.active.postMessage(R),Promise.resolve()}catch(u){return Promise.reject(u)}})};
gIM=function(){z6m({type:"notifications_register",data:_.EB("ID_TOKEN")})};
Cp7=function(){if(!_.$B("LOGGED_IN"))return Promise.resolve(!1);var R=_.VN("service_worker_push_force_notification_prompt_tag");return R?_.xw("PromptTags").then(function(y){if(!y)return!0;var u=[];try{u=JSON.parse(y)}catch(v){return!1}return u&&u.indexOf(R)==-1}):Promise.resolve(!1)};
R58=function(){var R=_.JT("service_worker_push_prompt_delay_microseconds");return R?_.xw("PromptTime").then(function(y){return Promise.resolve(Date.now()-R>(y||0))}):Promise.resolve(!0)};
y_a=function(){var R=_.JT("service_worker_push_logged_out_prompt_watches");return R==-1?Promise.resolve(!1):_.xw("WatchCount").then(function(y){return y>=R})};
uhp=function(){var R=_.bD(document,"yt-push-prompt-modal-bg");R&&_.BY(R)};
vF7=function(){return _.JT("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.xw("PromptCount").then(function(R){R||(R=0);return Promise.resolve(R<_.JT("service_worker_push_prompt_cap"))})};
Qka=function(R){return _.$B("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.$B("LOGGED_IN")&&(R===void 0?0:R)?Cp7().then(function(y){if(y)return!0;y=[vF7(),R58()];_.$B("LOGGED_IN")||y.push(y_a());return Promise.all(y).then(function(u){return u.every(function(v){return v})})}):Promise.resolve(!1)};
jkp=function(){_.xw("PromptCount").then(function(R){return _.bK("PromptCount",R+1)}).then(function(){return _.bK("PromptTime",Date.now())}).then(function(){var R=_.VN("service_worker_push_force_notification_prompt_tag");
if(R)return _.xw("PromptTags").then(function(y){var u=[];if(y)try{u=JSON.parse(y)}catch(v){return!1}u||(u=[]);u.push(R);return _.bK("PromptTags",JSON.stringify(u))})})};
J_M=function(){MiV||uhp()};
Via=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"};
io7=function(){var R=_.bD(document,"yt-push-prompt-modal-bg");MiV=_.f("service_worker_push_prompt_modal_ignore_click");R?Via(R):(R=_.UO("div",{id:"yt-push-prompt-modal-bg"}),Via(R),document.body.appendChild(R),_.mkU(document,"click",J_M))};
Kmo=function(){var R=arguments;_.f("service_worker_push_prompt_modal_enable")&&io7();return Notification.requestPermission().then(function(y){uhp();var u=document.getElementById("ticker");u&&(u.className=u.classList.remove("show"));if(y=="granted")return sRK().then(function(){Lbm(!1);gIM();return Promise.resolve(!0)});
y=="denied"&&gIM();return Promise.resolve(!1)}).catch(function(){uhp();
return Promise.reject.apply(Promise,_.P$(R))})};
Iq8=function(R){R=R===void 0?!1:R;var y=_.oxU().client;if(y&&y.browserVersion){var u=y.browserVersion,v=y.browserName=="CHROME"&&_.wE(u,"50.0.0")<0;y=y.browserName=="OPERA"&&_.wE(u,"42.0.0")<0;if(v||y)return Promise.resolve()}return _.lKa().then(function(Q){if(!Q)return Promise.resolve();Q=sRK().then(function(){return z6m({type:"notifications_check_registration",data:_.EB("ID_TOKEN")})});
return Notification.permission!="default"?Q.catch(function(){}):Q.then(function(){return Qka(R)}).then(function(M){if(M)return jkp(),Kmo().then(function(){})}).catch(function(){})})};
h58=function(R){return _.fKV(R)?Iq8():Promise.resolve()};
bop=function(R){var y=R.installing||R.waiting;return R.active||!y?Promise.resolve(R):new Promise(function(u){var v=function(Q){Q=Q.target;if(Q.state==="activated"||Q.state==="redundant")y.removeEventListener("statechange",v),u(R)};
y.addEventListener("statechange",v)})};
Fmg=function(){var R=new _.Pmv("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.TK(R,{mainAppWeb:_.gw()});var y=_.Ml5;_.f("service_worker_forward_exp_params")&&(y=cl8(y));try{var u=_.Bo8(y).catch(function(){_.o2(R,"FAILURE");return new Promise(function(){})});
_.f("service_worker_push_enabled")&&u.then(function(v){_.o2(R,"SUCCESS");return v}).then(bop).then(h58)}catch(v){if(_.o2(R,"FAILURE"),v.name!=="SecurityError")throw v;
}};
woa=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&Fmg()};
Nrp=function(R,y){var u={};y&&(u.serializedYpcFamilyCreateLoggingParams=y);_.P3(R,u);_.W3()};
Trm=function(R,y){var u={};u.serializedYpcRefundFlowLoggingParams=y;R&&(u.eventType=R);_.P3("ypcRefundFlowEvent",u);_.W3()};
oFH=function(R){R&&_.e_P("transactionFlowSucceeded",R)};
xQm=function(R){R&&_.gS("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",R,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
Brp=function(R){var y,u,v,Q,M,K,h;_.I(function(b){if(b.nextAddress==1)return b.yield(_.id8(),2);if(b.nextAddress!=3){if(!b.yieldResult)return b.return(!1);y=[];return b.yield(_.oC.keys(),3)}u=b.yieldResult;v=_.V(u);for(Q=v.next();!Q.done;Q=v.next())M=Q.value,K=_.Joc(M),h=K.datasyncId,!h||R.includes(h)||y.push(_.oC.delete(M));return b.return(Promise.all(y).then(function(N){return N.some(function(T){return T})}))})};
fqm=function(){var R,y,u,v,Q,M,K;return _.I(function(h){if(h.nextAddress==1)return h.yield(_.id8(),2);if(h.nextAddress!=3){if(!h.yieldResult)return h.return(!1);R=_.eX("cache contains other");return h.yield(_.oC.keys(),3)}y=h.yieldResult;u=_.V(y);for(v=u.next();!v.done;v=u.next())if(Q=v.value,M=_.Joc(Q),(K=M.datasyncId)&&K!==R)return h.return(!0);return h.return(!1)})};
e5P=function(){var R=_.ua().resolve(_.yN(_.MDc));return R?R.getCurrentTime():0};
lqZ=function(){var R,y,u,v,Q,M,K,h,b,N,T,x,B,l;return _.I(function(Z){switch(Z.nextAddress){case 1:R={},y=_.FpU(),u=_.V(Object.entries(y)),v=u.next();case 4:if(v.done){Z.jumpTo(3);break}Q=v.value;M=_.V(Q);K=M.next().value;h=M.next().value;b=K;N=h;if(!N){Z.jumpTo(5);break}return Z.yield(N(),8);case 8:R[b]=Z.yieldResult;case 5:v=u.next();Z.jumpTo(4);break;case 2:T=_.V(void 0),x=T.next();case 9:if(x.done){Z.jumpTo(3);break}B=x.value;l=y[B];if(!l){Z.jumpTo(10);break}return Z.yield(l(),13);case 13:R[B]=
Z.yieldResult;case 10:x=T.next();Z.jumpTo(9);break;case 3:return Z.return(R)}})};
OoP=function(){var R;_.I(function(y){if(y.nextAddress==1)return y.yield(lqZ(),2);R=y.yieldResult;return y.yield(navigator.clipboard.writeText(JSON.stringify(R,null,2)),0)})};
Zop=function(R,y){return _.TI(R.entities,"superThanksSelectedTierEntity",y)};
Hog=function(R,y){var u=_.lb4();_.G7(function(){var v=R.value;if(v)return _.LUE(v,y),_.sFT(v,y,void 0,void 0,void 0,u)},[y])};
nFg=function(R){var y;return(y=R.sharedUi)==null?void 0:y.currentPageType};
GP7=function(R,y){return{popup:{searchSuggestionReportDialog:{searchQuery:R,title:_.fo("SBOX_INAPPROPRIATE_TITLE"),suggestions:y,categoryLabel:_.fo("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.fo("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.fo("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.fo("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.fo("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.fo("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.fo("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.fo("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.fo("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.fo("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
r_8=function(R){var y,u,v,Q,M,K,h,b,N,T,x,B,l,Z,P,k,E,D,z;return _.I(function(c){switch(c.nextAddress){case 1:return c.yield(_.Bd(),2);case 2:return(y=c.yieldResult)?c.yield(_.W1z(y),3):c.return();case 3:u=c.yieldResult;if(!u)return c.return();Q=((v=u.offlineVideos)==null?void 0:v.length)||0;K=((M=u.offlinePlaylists)==null?void 0:M.length)||0;if(Q===0&&K===0)return c.return();h=0;if(u.offlineVideos)for(b=_.V(u.offlineVideos),N=b.next();!N.done;N=b.next())T=N.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
T.videoState&&(h+=1);R.offline_videos_count=Q.toString();_.f("kevlar_log_offline_current_network_type_ks")||(R.offline_current_network_type=(x=_.V6E())!=null?x:"CONN_INVALID");_.f("kevlar_log_updated_time_for_smart_downloads")&&(B=_.Qe().getState().entities,l=_.Eq(B),Z=oIJ(B),R.offline_smart_downloads_last_sync_time_ms=l.toString(),R.offline_smart_downloads_next_sync_time_ms=Z.toString());R.offline_videos_playable=h.toString();R.offline_playlists_count=K.toString();u.offlineVideos&&(P=u.offlineVideos.reduce(function(a,
L){L.downloadedBytes&&(a+=Number(L.downloadedBytes));return a},0).toString())&&(R.offline_used_disk_space_bytes=P);
if(!((k=navigator)==null?0:(E=k.storage)==null?0:E.estimate)){c.jumpTo(4);break}return c.yield(navigator.storage.estimate(),5);case 5:D=c.yieldResult,R.offline_free_disk_space_bytes=(((z=D)==null?void 0:z.quota)||0).toString();case 4:R.offline_client_state=JSON.stringify(u),_.f$(c)}})};
Ph8=function(R){R=_.V(R);for(var y=R.next(),u={};!y.done;u={setter$jscomp$5:void 0},y=R.next()){var v=y.value;y=v.params;v=v.service;y&&v&&(u.setter$jscomp$5=_.l28[v],u.setter$jscomp$5&&y.forEach(function(Q){return function(M){var K=M.key;M=M.value;K&&M&&(0,Q.setter$jscomp$5)(K,M)}}(u)))}};
Wmg=function(R){R=R.match(/(.*)::.*::.*/);if(R!==null)return R[1]};
dQH=function(R){if(_.q2L()){var y=Object.keys(window.sessionStorage);y=_.V(y);for(var u=y.next();!u.done;u=y.next()){u=u.value;var v=Wmg(u);v===void 0||R.includes(v)||self.sessionStorage.removeItem(u)}}};
UQV=function(){if(!_.q2L())return!1;var R=_.eX(),y=Object.keys(window.sessionStorage);y=_.V(y);for(var u=y.next();!u.done;u=y.next())if(u=Wmg(u.value),u!==void 0&&u!==R)return!0;return!1};
d8=function(R,y,u){(_.f("desktop_keyboard_shortcut_usage_log")||u&&_.f("web_shorts_keyboard_shortcut_usage_log"))&&(y?_.oF.get(R):_.TG.get(R))&&(R=y?_.Bz.get(R):_.xt.get(R))&&_.zP(_.$I(),R)};
kPa=function(R,y){return R.findIndex(function(u){return u.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(y.keyCode):!1};
EFa=function(){var R,y;return typeof CSS!=="undefined"&&((y=(R=CSS).supports)==null?void 0:y.call(R,"selector(:has(*))"))};
$QJ=function(R){return R.visibility!=="hidden"&&R.display!=="none"};
Xoa=function(R){if(EFa()||R.tagName!=="DETAILS"?!R.matches(q9o):R.querySelector("summary")!==null)return-1;R=R.getAttribute("tabindex")||"0";return Number(R)};
mQg=function(R){return R.some(function(y){return Xoa(y)>0})};
A_a=function(R){if(R.textContent)return!0;if(R instanceof HTMLInputElement){if(!R.labels)return!1;R=_.V(R.labels);for(var y=R.next();!y.done;y=R.next())if(y.value.textContent)return!0}return!1};
DQ7=function(R){return R.sort(function(y,u){return Xoa(u)-Xoa(y)})};
poV=function(R){R=Array.from(R.querySelectorAll(q9o)).filter(function(y){return($QJ(y.style)?$QJ(window.getComputedStyle(y)):!1)&&A_a(y)});
return mQg(R)?DQ7(R):R};
tig=function(R){R=poV(R);R.length>0&&R[0].focus()};
c_H=function(R,y){y.stack&&(R.stack+="\n"+y.stack);return R};
Y9g=function(R){var y=UE(R,"Content-Type");if(!y)return null;y=y.toLowerCase();if(y.startsWith("application/json"))return y.startsWith("application/json+protobuf")?new aqM:new _.b3;if(y.startsWith("application/x-protobuf")){R=UE(R,"Content-Transfer-Encoding");if(!R)return new kt;if(R.toLowerCase()=="base64")return new S9a}return null};
vs8=function(R,y,u,v){var Q=new Lm7(function(h,b){return skm.has(b)?h.sentinel==="gal"&&h.event!==void 0:!1},function(h){h.event?(h=z5M(h.event),h=!h||gFo(v,h)?!0:_.HQ(R.lastEvent,EE,2,$t)?!_.HQ(h,ql,1,$t)&&!_.HQ(h,EE,2,$t):!_.HQ(h,ql,1,$t)&&!_.HQ(h,EE,3,$t)):h=!0;
return h});
u=_.VW(R.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",Cho(u)]]));if(R.nestedOrigins!==void 0)for(var M=_.V(R.nestedOrigins),K=M.next();!K.done;K=M.next())u=_.VW(u,new Map([["origin",K.value]]));return RBa(Q,u,y).then(function(h){h=yNK(h.event);if(_.HQ(h,ql,1,$t)){var b,N=(b=_.AR(h,ql,1,$t))==null?void 0:_.qO(b,2);N&&v.JSC$19225_logErrorEvent(u9K(N));b=_.AR(h,ql,1,$t);_.qO(b,2)===4?(h=_.AR(h,ql,1,$t),h={statusCode:11,statusMessage:_.$U(h,
3)}):(h=_.AR(h,ql,1,$t),h={statusCode:12,statusMessage:_.$U(h,3)});return h}_.HQ(h,EE,3,$t)?(h=_.AR(h,EE,3,$t),h={statusCode:1,consentLanguageKeys:_.$U(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"}})};
JNJ=function(R){var y={};if(R===void 0||R===null)return y;R.getToken()!==void 0&&Q3o(R.getToken())&&Q3o(R.getToken()).length>0&&(y.scopes=new Set(Q3o(R.getToken())));R.getToken()!==void 0&&j3a(R.getToken())&&j3a(R.getToken()).length>0&&(y.capabilities=new Set(j3a(R.getToken())));_.$U(R,3)!==void 0&&(y.consistencyKey=_.$U(R,3));R.getName()!==void 0&&R.getName()!==""&&(y.linkName=R.getName());_.ZF(R,M6K,4)&&(R=_.Ne(R,M6K,4),R=Object.assign({},_.$U(R,1)&&{userId:_.$U(R,1)},_.$U(R,2)&&{displayName:_.$U(R,
2)},_.$U(R,3)&&{email:_.$U(R,3)},_.$U(R,5)&&{username:_.$U(R,5)},_.$U(R,4)&&{profilePicture:_.$U(R,4)}),y.profile=R);return y};
V6a=function(R,y){var u=R.flowParams,v;return{serviceId:u.serviceId,sessionId:u.sessionId,currentFlow:R.currentFlow,googleScopesString:y,linkingSessionSerialized:R.session.serialize(),consentLanguageKeys:u.consentLanguageKeys,callerState:R.callerState,dynamicUrlParameters:u.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(v=u.partnerConfigMinReadTimestamp)==null?void 0:v.serialize()}};
bzZ=function(R){var y=R.googleScopes!==void 0?Array.from(R.googleScopes).join(","):"";izg(V6a(R,y));y=Kcp(R);return y===null?Promise.resolve(InP):y.start().then(function(u){var v,Q=(v=u.link)==null?void 0:v.consistencyKey;return u.statusCode===1&&R.googleScopes!==void 0&&R.googleScopes.size>0&&Q!==void 0?(v=R.flowParams,hBg(v.serviceId,v.sessionId,R.googleScopes,Q,v.galService,R.config,u)):u})};
Fca=function(R){var y=Kcp(R);return y===null?Promise.resolve(XA({statusCode:7,statusMessage:"Failed to create flow object"},R.callerState)):y.complete().then(function(u){var v,Q=(v=u.link)==null?void 0:v.consistencyKey;return u.statusCode===1&&R.googleScopes!==void 0&&R.googleScopes.size>0&&Q!==void 0?(v=R.flowParams,hBg(v.serviceId,v.sessionId,R.googleScopes,Q,v.galService,R.config,u)):XA(u,R.callerState)},function(u){return XA({statusCode:12,
statusMessage:"Failed to complete the flow: "+u.message},R.callerState)})};
hBg=function(R,y,u,v,Q,M,K){return wdo(Q,{serviceId:R,sessionId:y,googleScopes:u,consistencyKey:v}).then(function(){return K},function(h){return Q.deleteLink({serviceId:R,
sessionId:y,accountLinkingEntryPoint:M.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+h.message}},function(b){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+b.message}})})};
Kcp=function(R){switch(R.currentFlow){case 1:var y=R.flowParams;R=_.Ne(R.session,NNm,1);return mU.createOAuthFlow(y,R);case 2:case 3:return y=R.flowParams,R=_.Ne(R.session,TNP,6),Ag.createStreamlinedFlow(y,R);default:return null}};
osI=function(R,y){R===2&&(R=3);var u=0;Df.indexOf(R)!==-1&&(u=Df.indexOf(R)+1);for(R=u;R<Df.length;R++)if(y.has(Df[R]))return Df[R]};
fn8=function(R){var y=R.serviceId;var u=R.sessionId;var v=R.config;var Q=R.galService;var M=R.capabilities;var K=R.scopes;var h=R.loginHint;var b=R.callerState;var N=R.consentLanguageKeys;var T=R.linkName;var x=R.dynamicUrlParameters;var B=R.partnerConfigMinReadTimestamp;R=v.dataUsageNoticeConfig?v.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return Q.startLinkingSession({serviceId:y,sessionId:u,capabilities:M,scopes:K,loginHint:h,callerState:b,supportedFlows:xqI(v.supportedFlows),completionUrl:v.completionUrl,
accountLinkingEntryPoint:v.accountLinkingEntryPoint,consentLanguageKeys:N,dataUsageNoticeConfig:R,linkName:T,dynamicUrlParameters:x,partnerConfigMinReadTimestamp:B}).then(function(l){return new BNa(y,u,v,Q,l,void 0,b,N,x,B)})};
nsa=function(R,y,u){var v=(new eBZ).getSession(R);if(v===null)return Promise.resolve({statusCode:2});lnZ(R);var Q=OzI(v.linkingSessionSerialized),M=v.googleScopesString!==""&&v.googleScopesString!==void 0?new Set(v.googleScopesString.split(",")):void 0,K=v.partnerConfigMinReadTimestampSerialized?ZzV(v.partnerConfigMinReadTimestampSerialized):void 0;return HzI(new BNa(R,v.sessionId,y,u,Q,M,v.callerState,v.consentLanguageKeys,v.dynamicUrlParameters,K),v.currentFlow,v.consentLanguageKeys)};
izg=function(R){var y=new eBZ;y.storage!==null&&y.storage.set("SAVED_SESSION",R)};
lnZ=function(R){var y=new eBZ;if(y.storage!==null){var u=y.storage.get("SAVED_SESSION");u!==void 0&&u.serviceId===R&&y.storage.remove("SAVED_SESSION")}};
xqI=function(R){var y=new Set;R=_.V(R);for(var u=R.next();!u.done;u=R.next())u=u.value,u!==1&&GIP.has(u)&&y.add(GIP.get(u));return y};
XA=function(R,y){y!==void 0&&(R.callerState=y);return R};
rNJ=function(R){switch(R){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
dqZ=function(R){return new PEZ(R,new Wca(R))};
EsH=function(R,y){y=y===void 0?!1:y;var u=document.createElement("div");R&&(u.style.transform="scaleX(-1)");u.style.backgroundColor=y?"rgba(138,180,248,.24)":"#e8f0fe";u.style.height="4px";u.style.overflow="hidden";u.style.position="absolute";u.style.top="0";u.style.width="100%";u.style.zIndex="1500";u.setAttribute("aria-label","Loading");u.setAttribute("aria-live","polite");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  }";
u.appendChild(R);R=UqI();R.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";R.style.left="-145.166611%";var v=kIZ(y);v.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";R.appendChild(v);u.appendChild(R);R=UqI();R.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";R.style.left="-54.888891%";y=kIZ(y);y.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
R.appendChild(y);u.appendChild(R);return u};
UqI=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};
kIZ=function(R){var y=document.createElement("span");y.style.borderTop=R?"4px solid #669df6":"4px solid #4285f4";y.style.display="inline-block";y.style.position="absolute";y.style.width="100%";return y};
$qK=function(R){return R==null?void 0:_.wgc(R).valueOf()};
ANP=function(R){var y=document.body,u=!1,v=function(){u||(u=!0,qqH(Q,M),setTimeout(function(){y.removeChild(M);y.removeChild(Q)},150))},Q=XdM(R,getComputedStyle(y).direction==="rtl",v),M=mqM(v);
qqH(Q,M);y.appendChild(M);y.appendChild(Q);window.requestAnimationFrame(function(){M.style.opacity="1";Q.style.opacity="1";Q.style.transform="translate(-50%, -50%) scale(1)";Q.children[0].focus()})};
XdM=function(R,y,u){var v=document.createElement("div");v.style.position="fixed";v.style.alignItems="center";v.style.backgroundColor=R?"rgb(32, 33, 36)":"white";v.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";v.style.display="flex";v.style.flexDirection="column";v.style.justifyContent="center";v.style.left="50%";v.style.top="50%";v.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";v.style.zIndex="2002";document.body.clientWidth>=
660?(v.style.borderRadius="8px",v.style.minHeight="220px",v.style.maxHeight="90%",v.style.maxWidth="90%",v.style.minWidth="540px"):(v.style.height="100%",v.style.width="100%");v.setAttribute("aria-label","Error");v.setAttribute("aria-modal","true");v.setAttribute("role","alertdialog");v.addEventListener("keydown",function(M){M.key==="Escape"&&u()});
y=DqP(R,y,u);v.appendChild(pdm(y));v.appendChild(y);var Q=document.createElement("img");Q.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";Q.style.height="72px";Q.style.width="72px";Q.style.color="#9aa0a6";Q.setAttribute("alt","");v.appendChild(Q);Q=document.createElement("h1");Q.textContent="Something went wrong.  Try again.";
Q.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";Q.style.lineHeight="24px";Q.style.fontSize="16px";Q.style.textAlign="center";Q.style.letterSpacing="0.1px";Q.style.color=R?"rgb(232,234,237)":"#3c4043";v.appendChild(Q);v.appendChild(pdm(y));return v};
DqP=function(R,y,u){var v=document.createElement("button");v.style.backgroundColor="transparent";v.style.border="none";v.style.borderRadius="50%";v.style.cursor="pointer";v.style.outline="none";v.style.padding="12px";v.setAttribute("aria-label","Close dialog");v.style.position="absolute";v.style.top="0";y?v.style.right="0":v.style.left="0";v.addEventListener("focus",function(){v.style.backgroundColor=R?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
v.addEventListener("blur",function(){v.style.backgroundColor="transparent"});
v.addEventListener("mouseenter",function(){v.style.backgroundColor=R?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
v.addEventListener("mouseleave",function(){v.style.backgroundColor="transparent"});
v.addEventListener("click",u);v.addEventListener("keydown",function(Q){Q.key!=="Enter"&&Q.key!=="Space"||u()});
y=document.createElement("img");y.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";y.style.display="block";y.style.height="24px";y.style.width="24px";y.setAttribute("alt","");v.appendChild(y);return v};
pdm=function(R){var y=document.createElement("div");y.setAttribute("tabindex","0");y.setAttribute("aria-hidden","true");y.addEventListener("focus",function(){return void R.focus()});
return y};
mqM=function(R){var y=document.createElement("div");y.style.backgroundColor="rgba(32,33,36,0.6)";y.style.bottom="0";y.style.left="0";y.style.position="fixed";y.style.right="0";y.style.top="0";y.style.transition=" opacity 150 ms linear";y.style.zIndex="2001";y.addEventListener("click",R);return y};
qqH=function(R,y){y.style.opacity="0";R.style.opacity="0";R.style.transform="translate(-50%, -50%) scale(0.8)"};
t6P=function(R,y){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=y};
pm=function(R){cNa.call(this,R)};
tg=function(R,y){y=y===void 0?!1:y;this.parsedImageUrl_=null;R instanceof anV||(Sq7==void 0&&(Sq7=new Yq8),R=Sq7.parse(R.toString(),y));R=this.parsedImageUrl_=R;R.JSC$19437_parsedOptions_==void 0&&((y=R.getOptions())||(y=""),R.JSC$19437_parsedOptions_=(new LcZ).parse(y));cNa.call(this,R.JSC$19437_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;R=this.parsedImageUrl_;y=R.uri_.JSC$10001_port_;this.JSC$19439_domain_=R.uri_.JSC$10001_domain_+(y?":"+y:"");this.JSC$19439_query_=
this.parsedImageUrl_.uri_.JSC$10001_queryData_.toString()};
s3Z=function(R){this.mode=4;this.data=R;this.parsedData=[];R=0;for(var y=this.data.length;R<y;R++){var u=[],v=this.data.charCodeAt(R);v>65536?(u[0]=240|(v&1835008)>>>18,u[1]=128|(v&258048)>>>12,u[2]=128|(v&4032)>>>6,u[3]=128|v&63):v>2048?(u[0]=224|(v&61440)>>>12,u[1]=128|(v&4032)>>>6,u[2]=128|v&63):v>128?(u[0]=192|(v&1984)>>>6,u[1]=128|v&63):u[0]=v;this.parsedData.push(u)}this.parsedData=Array.prototype.concat.apply([],this.parsedData);this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),
this.parsedData.unshift(187),this.parsedData.unshift(239))};
zBZ=function(R){this.typeNumber=0;this.errorCorrectLevel=R===void 0?2:R;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
cz=function(R,y){if(R.length==void 0)throw Error("tk`"+R.length+"`"+y);for(var u=0;u<R.length&&R[u]==0;)u++;this.num=Array(R.length-u+y);for(y=0;y<R.length-u;y++)this.num[y]=R[y+u]};
gsg=function(R,y){this.totalCount=R;this.dataCount=y};
CE7=function(){this.buffer=[];this.length=0};
Rzm=function(){var R=!1;if(_.wWG()){R=_.NU();var y="";_.oSU()?(y=/Windows (?:NT|Phone) ([0-9.]+)/,y=(R=y.exec(R))?R[1]:"0.0"):_.PW()?(y=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,y=(R=y.exec(R))&&R[1].replace(/_/g,".")):_.TES()?(y=/Mac OS X ([0-9_.]+)/,y=(R=y.exec(R))?R[1].replace(/_/g,"."):"10"):_.IL(_.NU(),"KaiOS")?(y=/(?:KaiOS)\/(\S+)/i,y=(R=y.exec(R))&&R[1]):_.wWG()?(y=/Android\s+([^\);]+)(\)|;)/,y=(R=y.exec(R))&&R[1]):_.xUG()&&(y=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,y=(R=y.exec(R))&&R[1]);R=
y||""}return R};
Mq7=function(R,y){this.JSC$19462__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(y)for(var u in y)this.JSC$19462__htOption[u]=y[u];this.JSC$19462__htOption.useSVG&&(yUa=ubI);this.JSC$19462__android=Rzm();this.JSC$19462__el=R;this._oQRCode=null;this._oDrawing=new yUa(this.JSC$19462__el,this.JSC$19462__htOption);this.JSC$19462__htOption.text&&(R=this.JSC$19462__htOption.text,this._oQRCode=new zBZ(this.JSC$19462__htOption.correctLevel),vvI(this._oQRCode,
R),y=this._oQRCode,QHp(y,!1,jHI(y)),this.JSC$19462__el.title=R,this._oDrawing.draw(this._oQRCode),this.makeImage())};
JU7=function(R,y,u,v,Q){R.save();var M=new Path2D;M.roundRect(y,u,v*7,v*7,v*2);M.roundRect(y+v,u+v,v*5,v*5,v*1.3);M.roundRect(y+2*v,u+2*v,v*3,v*3,v);R.clip(M,"evenodd");R.fillStyle=Q;R.fillRect(0,0,R.canvas.width,R.canvas.height);R.restore()};
aF=function(R,y){if(typeof R!=="function")throw Error("wk");return _.uO.setTimeout(function(){R()},y)};
SI=function(){};
ica=function(R,y,u,v,Q){(new SI).debug("TestLoadImageWithRetries: "+Q);if(v==0)u(!1);else{var M=Q||0;v--;Vq7(R,y,function(K){K?u(!0):_.uO.setTimeout(function(){ica(R,y,u,v,M)},M)})}};
Vq7=function(R,y,u){var v=new SI;v.debug("TestLoadImage: loading "+R);var Q=new Image;Q.onload=function(){try{v.debug("TestLoadImage: loaded"),KHg(Q),u(!0)}catch(M){}};
Q.onerror=function(){try{v.debug("TestLoadImage: error"),KHg(Q),u(!1)}catch(M){}};
Q.onabort=function(){try{v.debug("TestLoadImage: abort"),KHg(Q),u(!1)}catch(M){}};
Q.ontimeout=function(){try{v.debug("TestLoadImage: timeout"),KHg(Q),u(!1)}catch(M){}};
_.uO.setTimeout(function(){if(Q.ontimeout)Q.ontimeout()},y);
Q.src=R};
KHg=function(R){R.onload=null;R.onerror=null;R.onabort=null;R.ontimeout=null};
IjI=function(){this.front_=[];this.back_=[]};
hz8=function(R,y){_.Z0.call(this);this.delay_=new _.nF(this.JSC$19588_onTick_,0,this);_.bx(this,this.delay_);this.JSC$19586_interval_=5E3;this.nextTickTime_=0;if(typeof R==="function")y&&(R=(0,_.HY)(R,y));else if(R&&typeof R.handleEvent==="function")R=(0,_.HY)(R.handleEvent,R);else throw Error("ya");this.JSC$19588_listener_=R};
Yt=function(R,y,u,v,Q,M,K,h,b,N,T,x,B,l){u=u===void 0?!1:u;v=v===void 0?function(){return""}:v;
Q=Q===void 0?!1:Q;M=M===void 0?!1:M;K=K===void 0?!1:K;h=h===void 0?function(){return _.NQ({})}:h;
b=b===void 0?!1:b;T=T===void 0?!1:T;x=x===void 0?!1:x;B=B===void 0?!1:B;l=l===void 0?!1:l;this.JSC$19589_pathPrefix_=R;this.defaultQueryParams_=y;this.pubsub_=new _.Tu;this.reconnectTimer_=new hz8(this.safeReconnect_,this);this.JSC$19589_channel_=null;this.JSC$19589_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$19589_pendingMessages_=[];this.enableAsyncTest_=u;this.JSC$19589_getXsrfToken_=v;this.useAsyncBrowserChannelHandler_=M;this.getAuthorizationHeader_=
h;this.getAuthorizationHeaderSync_=N;this.enableCachedUpdateAuthorizationHeader_=K;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.NQ();this.enableLoungeTokenRefresh_=Q;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=b;this.disableMdxAuthForNonPlaybackMessages_=T;this.disableMdxAuthForAdMessages_=x;this.enableMdxAuthForConnectionOnly_=B;this.disableMdxAuthForShortsMessages_=l;this.JSC$19589_channelOpenedCounter=new bcg;this.JSC$19589_channelClosedCounter=new FHm;this.channelMessageSentCounter=
new wVH;this.JSC$19589_channelMessageReceivedCounter=new Nw8;this.JSC$19589_channelErrorCounter=new TwV;this.pendingMapsOnClosedCounter=new ovZ;this.undeliveredMapsOnClosedCounter=new xBp};
Lm=function(R){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;R=R||document.location.href;var y=Number(_.sB(R)[4]||null)||"";y&&(this.port=":"+y);this.domain=_.z7(R)||"";R=_.NU();R.search("MSIE")>=0&&_.wE(R.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
sE=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"};
BwP=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(R){var y=Math.random()*16|0;return(R=="x"?y:y&3|8).toString(16)})};
fjp=function(R){return _.Ws(R,function(y){return{key:y.id,name:y.name}})};
ezm=function(R,y){return _.UP(R,function(u){return u||y?!u!=!y?!1:u.id==y.id:!0})};
g8=function(R,y){return _.UP(R,function(u){return zG(u,y)})};
nvM=function(){var R=ljp(),y=Oca();if(Zca()){var u=R,v=_.GT4(u,y);v<0&&_.Z8c(u,-(v+1),0,y)}R=HcZ(R);if(R.length==0)try{_.Q3c("remote_sid")}catch(Q){}else try{_.B5("remote_sid",R.join(","),-1)}catch(Q){}};
ljp=function(){var R=_.fl("yt-remote-connected-devices")||[];R.sort(_.nSE);return R};
HcZ=function(R){if(R.length==0)return[];var y=R[0].indexOf("#"),u=y==-1?R[0]:R[0].substring(0,y);return _.Ws(R,function(v,Q){return Q==0?v:v.substring(u.length)})};
G2o=function(R){_.B1("yt-remote-connected-devices",R,86400)};
Oca=function(){if(rUJ)return rUJ;var R=_.fl("yt-remote-device-id");R||(R=BwP(),_.B1("yt-remote-device-id",R,31536E3));for(var y=ljp(),u=1,v=R;_.XU(y,v);)u++,v=R+"#"+u;return rUJ=v};
P7m=function(){return _.fl("yt-remote-session-browser-channel")};
Zca=function(){return _.fl("yt-remote-session-screen-id")};
UBa=function(R){R.length>5&&(R=R.slice(R.length-5));var y=_.Ws(WHg(),function(v){return v.loungeToken}),u=_.Ws(R,function(v){return v.loungeToken});
_.zYz(u,function(v){return!_.XU(y,v)})&&dBp();
_.B1("yt-remote-local-screens",R,31536E3)};
WHg=function(){return _.fl("yt-remote-local-screens")||[]};
dBp=function(){_.B1("yt-remote-lounge-token-expiration",!0,86400)};
Cm=function(R){R||(_.e5("yt-remote-session-screen-id"),_.e5("yt-remote-session-video-id"));nvM();R=ljp();_.m4(R,Oca());G2o(R)};
EvP=function(){k2m();return Rt?!!Rt.get("yt-remote-use-staging-server"):!1};
k2m=function(){if(!Rt){var R=_.bz8();R&&(Rt=new _.ZI(R))}};
mBa=function(R,y,u,v,Q){u=u===void 0?function(){return""}:u;
var M=function(){return new Yt(yI(R,"/bc"),y,!1,u,v)};
return _.f("enable_mdx_web_channel_desktop")?new $BI(function(){return new qZZ(yI(R,"/wc"),y,u)}):new XVo(M,Q)};
tqZ=function(){var R=AUM;DBV();uS.push(R);pV7()};
vj=function(R,y){DBV();var u=cUa(R,String(y));uS.length==0?aj7(u):(pV7(),_.cu(uS,function(v){v(u)}))};
QI=function(R){vj("CP",R)};
DBV=function(){uS||(uS=_.D6("yt.mdx.remote.debug.handlers_")||[],_.CJ("yt.mdx.remote.debug.handlers_",uS))};
aj7=function(R){var y=(jk+1)%50;jk=y;SZm[y]=R;YZo||(YZo=y==49)};
pV7=function(){var R=uS;if(SZm[0]){var y=YZo?jk:-1,u={};do u={record$jscomp$15:void 0},y=(y+1)%50,u.record$jscomp$15=SZm[y],_.cu(R,function(v){return function(Q){Q(v.record$jscomp$15)}}(u));
while(y!=jk);SZm=Array(50);jk=-1;YZo=!1}};
cUa=function(R,y){var u=(Date.now()-LHa)/1E3;u.toFixed&&(u=u.toFixed(3));var v=[];v.push("[",u+"s","] ");v.push("[","yt.mdx.remote","] ");v.push(R+": "+y,"\n");return v.join("")};
Mx=function(R){_.Nl.call(this);this.JSC$19613_logName_=R;this.screens=[]};
VI=function(R){Mx.call(this,"LocalScreenService");this.JSC$19620_http_=R;this.loungeTokenRefreshTimer_=NaN;JY(this);this.info("Initializing with "+sHp(this.screens))};
iS=function(R,y){y=y===void 0?!1:y;Mx.call(this,"ScreenService");this.JSC$19626_http_=R;this.disableAutomaticScreenCache_=y;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};zzI(this)};
K1=function(R,y,u){_.Nl.call(this);this.JSC$19630_logName_=u;this.JSC$19630_screenService_=R;this.receiver_=y;this.screen_=null};
bu8=function(R,y,u){u.disableCastApi?It("Cannot initialize because disabled by Mdx config."):gvm()?C77(R,u)&&(R3a(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?ywg(y):(window.__onGCastApiAvailable=function(v,Q){v?ywg(y):(hY("Failed to load cast API: "+Q),uNa(!1),R3a(!1),_.e5("yt-remote-cast-available"),_.e5("yt-remote-cast-receiver"),vJP(),y(!1))},u.loadCastApiSetupScript?_.tl(QXg):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
jXP()>=60&&M0o():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?JwV():jXP()>=89?V0K():(iua(),K8m(IVm.map(h38))))):It("Cannot initialize because not running Chrome")};
vJP=function(){It("dispose");var R=bS();R&&R.dispose();_.CJ("yt.mdx.remote.cloudview.instance_",null);F8K(!1);_.cdO(wNM);wNM.length=0};
N2g=function(){return!!_.fl("yt-remote-cast-installed")};
T2a=function(){var R=_.fl("yt-remote-cast-receiver");return R?R.friendlyName:null};
oJK=function(){It("clearCurrentReceiver");_.e5("yt-remote-cast-receiver")};
xza=function(){return N2g()?bS()?bS().getCastSession():(hY("getCastSelector: Cast is not initialized."),null):(hY("getCastSelector: Cast API is not installed!"),null)};
fV7=function(R,y){B28()?bS().setConnectedScreenStatus(R,y):hY("setConnectedScreenStatus called before ready.")};
gvm=function(){var R=_.NU().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.BQ||R};
C77=function(R,y){var u=!1;bS()||(R=new FZ(R,y),R.subscribe("yt-remote-cast2-availability-change",function(v){_.B1("yt-remote-cast-available",v);eI("yt-remote-cast2-availability-change",v)}),R.subscribe("yt-remote-cast2-receiver-selected",function(v){It("onReceiverSelected: "+v.friendlyName);
_.B1("yt-remote-cast-receiver",v);eI("yt-remote-cast2-receiver-selected",v)}),R.subscribe("yt-remote-cast2-receiver-resumed",function(v){It("onReceiverResumed: "+v.friendlyName);
_.B1("yt-remote-cast-receiver",v);eI("yt-remote-cast2-receiver-resumed",v)}),R.subscribe("yt-remote-cast2-session-change",function(v){It("onSessionChange: "+e3a(v));
v||_.e5("yt-remote-cast-receiver");eI("yt-remote-cast2-session-change",v)}),_.CJ("yt.mdx.remote.cloudview.instance_",R),u=!0);
It("cloudview.createSingleton_: "+u);return u};
bS=function(){return _.D6("yt.mdx.remote.cloudview.instance_")};
ywg=function(R){uNa(!0);R3a(!1);bS().init(!1,function(y){y?(F8K(!0),_.arO("yt-remote-cast2-api-ready")):(hY("Failed to initialize cast API."),uNa(!1),_.e5("yt-remote-cast-available"),_.e5("yt-remote-cast-receiver"),vJP());R(y)})};
It=function(R){vj("cloudview",R)};
hY=function(R){vj("cloudview",R)};
uNa=function(R){It("setCastInstalled_ "+R);_.B1("yt-remote-cast-installed",R)};
B28=function(){return!!_.D6("yt.mdx.remote.cloudview.apiReady_")};
F8K=function(R){It("setApiReady_ "+R);_.CJ("yt.mdx.remote.cloudview.apiReady_",R)};
R3a=function(R){_.CJ("yt.mdx.remote.cloudview.initializing_",R)};
wO=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)};
lVm=function(){var R,y;return _.I(function(u){if(u.nextAddress==1)return(_.GNU()||_.f("use_new_nwl"))&&_.Okv().isNetworkAvailable()?u.yield(_.Rz(),2):u.return();if(u.nextAddress!=3)return(R=u.yieldResult)?u.yield(vIa(R),3):u.return();y=u.yieldResult;if(!y.length)return u.return();y.forEach(function(v){var Q={timestamp:v.timestamp};v=v.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:v.appShellAssetLoadReport,options:Q}:v.clientError?{payloadName:"clientError",payload:v.clientError,
options:Q}:void 0;v&&_.P3(v.payloadName,v.payload,v.options)});
y.length===100&&_.WG.addLowPriorityJob(lVm);_.f$(u)})};
Oua=function(R){if(R.playerResponse){if(R=R.playerResponse,R.messages&&R.messages.length>0&&(R=R.messages.find(function(y){return!(!y||!y.mealbarPromoRenderer)}))&&R.mealbarPromoRenderer)return R.mealbarPromoRenderer}else if(R.response&&(R=R.response)&&R.overlay&&R.overlay.mealbarPromoRenderer)return R.overlay.mealbarPromoRenderer};
ZuZ=function(R){if(R.response){var y=R.response;if(y&&y.overlay&&y.overlay.tooltipRenderer)return y.overlay.tooltipRenderer}if(R.playerResponse&&(R=R.playerResponse,R.messages&&R.messages.length>0&&(R=R.messages.find(function(u){return!(!u||!u.tooltipRenderer)}))&&R.tooltipRenderer))return R.tooltipRenderer};
nJI=function(R){if(!Hua&&(R=R||_.EB("ZWIEBACK_PING_URLS"))&&R.length){Hua=!0;for(var y=0;y<R.length;y++)_.D1(R[y])}};
rwP=function(R){if(_.Ps.get(_.EB("PLAYER_VARS",{}),"privembed",!1)!="1"){R&&Ylm();try{GJV().then(function(){},function(){}),_.Ih(rwP,18E5)}catch(y){_.mq(y)}}};
P8m=function(){var R=_.O9(),y=R.getFlag(119),u=window.devicePixelRatio>1;document.body&&_.LT(document.body,"exp-invert-logo")&&(u&&!_.LT(document.body,"inverted-hdpi")?_.J6(document.body,"inverted-hdpi"):!u&&_.LT(document.body,"inverted-hdpi")&&_.jp(document.body,"inverted-hdpi"));y!=u&&(_.Zq(0,119,u),R.save())};
W8a=function(R){return R.filter(function(y){return"ypcGetCartEndpoint"in y||"ypcFixInstrumentEndpoint"in y})};
dzI=function(R){return R.filter(function(y){return!_.e(y,_.CWL)})};
kJV=function(R,y){var u,v,Q,M,K,h,b;_.I(function(N){switch(N.nextAddress){case 1:u=_.Xb.getInstance();v=_.lX.instance;Q=_.Ch.instance;if(!Q)return UzJ(R,v,y),N.return();_.wY(N,2);R.onLoadingCommand&&v.resolveCommand(R.onLoadingCommand);return N.yield(u.getCurrentPositionFromGeolocation(),4);case 4:M=N.yieldResult;if(!R.resolveLocationCommand){N.jumpTo(5);break}K=u.createLocationInfo(M);return N.yield(_.yB(Q,R.resolveLocationCommand,{locationInfo:K}),6);case 6:h=N.yieldResult;if(!h||"error"in h&&h.error||
h.errorMetadata)return UzJ(R,v,y),N.return();var T;if(h==null?0:(T=h.onResponseReceivedActions)==null?0:T.length){T=_.V(h.onResponseReceivedActions);for(var x=T.next();!x.done;x=T.next())v.resolveCommand(x.value)}(_.e(R.onSuccessCommand,_.zM)||_.e(R.onSuccessCommand,_.HV))&&_.Ko(y.hostElement,"yt-navigate",{endpoint:R.onSuccessCommand,reload:!0});case 5:_.c5(N,0);break;case 2:b=_.B$(N);if(b instanceof GeolocationPositionError&&b.code===GeolocationPositionError.PERMISSION_DENIED)return R.onDeniedCommand&&
v.resolveCommand(R.onDeniedCommand),N.return();UzJ(R,v,y);_.f$(N)}})};
UzJ=function(R,y,u){R.onFailureCommand&&(y.resolveCommand(R.onFailureCommand),_.Ik(u.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
$zM=function(R,y){var u=_.e(R,_.Jtc);if(u&&y){R=u.videoIds||[u.videoId];var v;y=(v=_.Ko(y,"yt-lockup-requested",{videoIds:R}).detail)==null?void 0:v.returnValue;var Q;u.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?Q=y?y:R.map(function(M){return{videoId:M,navigationEndpoint:u.videoCommand}}):y&&(Q=y);
Q&&(v=Q.map(function(M){var K=Object,h=K.assign;var b=M.navigationEndpoint;if(!_.e(b,_.PV)){var N=_.e(b,_.zM);if(N){if(delete N.index,delete N.playlistId,N=_.e(b==null?void 0:b.commandMetadata,_.QL),N==null?0:N.url){var T=N.url;T=_.vo(T,"list");T=_.vo(T,"index");N.url=T}}else b=void 0}return h.call(K,{},M,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:b})}),EJ7(v,u))}};
q7a=function(R){var y=_.gQ();if(R=_.e(R,_.VYT))R.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&y.clearQueue(),R.closeMiniplayer&&_.ua().resolve(_.cZ).close(!0)};
mza=function(R){XNI(_.gQ(),R)};
AwK=function(R){var y;(R=(y=_.e(R,_.jqK))==null?void 0:y.setVideoIds)&&R.forEach(function(u){_.iEb(_.gQ(),u)})};
pNZ=function(R){Dzo(_.gQ(),R)};
t0g=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(R){return!1}};
cwH=function(){var R,y;return(y=(R=window).matchMedia)==null?void 0:y.call(R,"(prefers-reduced-motion: reduce)").matches};
S78=function(R){var y=_.ua().resolve(_.yN(_.nC));y&&aV7(y,R)};
Y7V=function(R,y,u){return{horizontalAlignment:R.x+u.width/2<y.width/2?"west":"east",verticalAlignment:R.y+u.height/2<y.height/2?"north":"south"}};
z3Z=function(R,y,u,v,Q){Q=Q===void 0?new _.dc(0,0):Q;return L8M(sXm(R,y,u,v),Q)};
sXm=function(R,y,u,v){return new _.dc(R==="west"?16:u.width-v.width-16,y==="north"?16:u.height-v.height-16)};
gJo=function(R,y){var u=0;R&&(u+=76);y&&(u+=285);return u};
C8a=function(R){var y=["h","m","s"],u=_.Az(y);u.reverse();var v={};R=(R.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(K){var h=(K.match(/[hms]/)||[""])[0];return h?(v[h]=parseInt(K.match(/\d+/)[0],10),!1):!0});
for(R.reverse();R.length&&u.length;){var Q=u.shift();Q in v||(v[Q]=parseInt(R.shift(),10))}if(R.length||v.s>59||v.m>59||v.h>9)return null;var M="";y.forEach(function(K){v[K]&&(M+=""+v[K]+K)});
return M||null};
R4V=function(R){R=R.data;return _.F("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.F("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.F(_.MR,{data:{thumbnails:[{url:R.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.F("div",{class:"profile-badge-view-model-wiz__content"},_.F("div",{class:"profile-badge-view-model-wiz__badge-description"},R.badgeDesc),R.badgeSubtitle?_.F("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},R.badgeSubtitle):
null))};
yda=function(R){R=R.data;var y=_.sh("yt-comment-interaction-view-model");Hog(y,R.rendererContext);return _.F("yt-comment-interaction-view-model",{el:y,class:"yt-comment-interaction-view-model-wiz"},_.F("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":R.onTapA11yLabel,"on:keydown":_.cgU(),tabindex:0},_.F("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.F("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},R.headerPrefix,' "',R.videoTitle),
_.F("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},'"')),_.F("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.F("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},R.commentContent),_.F("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.F(_.MR,{data:{thumbnails:[{url:R.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))};
via=function(R){R=R.data;return _.F("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},ug7(R.avatar),_.F("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},R.channelName))};
Qca=function(R){R=R.data;var y;return _.F("div",{class:"yt-profile-info-view-model-wiz__activity"},_.F("div",{class:"yt-profile-info-view-model-wiz__header"},_.F("div",{class:"yt-profile-info-view-model-wiz__section-title"},R.commentsInteractionTitle)),(y=R.comments)==null?void 0:y.map(function(u){return _.F("div",{class:"yt-profile-info-view-model-wiz__activity"},Nx(u))}))};
jcI=function(R){R=R.data;var y=_.Lk({elementsCommand:R.subscriptionsAccessButtonCommand}),u=_.sh("a");_.djE(u,_.Sb(R.subscriptionsAccessButtonCommand));var v;return _.F("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.F("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.F("a",{el:u,"on:click":_.nh(function(Q){if(y==null?0:y.onclick)y.onclick(Q);return!1}),
class:"yt-profile-info-view-model-wiz__another-header"},_.F("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},R.sharedSubscriptionsTitle),_.F("div",null,Nx(R.subscriptionsAccessButton)))),_.F("div",{class:"yt-profile-info-view-model-wiz__subs"},(v=R.sharedSubscriptions)==null?void 0:v.slice(0,5).map(function(Q){return _.F("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",Nx(Q))})))};
MbK=function(R){R=R.data;var y;return _.F("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.F("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.F("h2",{class:"yt-profile-info-view-model-wiz__section-title"},R.sharedSubscriptionsTitle)),_.F("div",{class:"yt-profile-info-view-model-wiz__subs"},(y=R.sharedSubscriptions)==null?void 0:y.slice(0,5).map(function(u){return _.F("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",Nx(u))})))};
Jda=function(R){R=R.data;return _.F("div",{class:"yt-profile-info-view-model-wiz__activity"},[R.profileBadgeInfoYtWide,R.profileBadgeInfoChannelWide].map(function(y){var u,v,Q,M,K;return y?_.F(_.vu,null,_.F("div",{class:"yt-profile-info-view-model-wiz__header"},_.F("div",{class:"yt-profile-info-view-model-wiz__section-title"},y==null?void 0:y.profileSectionTitle),_.F("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.F("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},y==
null?void 0:(u=y.commentBadge)==null?void 0:u.commentDesc),(y==null?0:(v=y.commentBadge)==null?0:v.blackHeartDesc)?_.F("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.F("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.F(_.MR,{data:{thumbnails:[{url:y==null?void 0:(Q=y.commentBadge)==null?void 0:Q.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.F("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},
y==null?void 0:(M=y.commentBadge)==null?void 0:M.blackHeartDesc))),_.F("div",{class:"yt-profile-info-view-model-wiz__badge"},y==null?void 0:(K=y.badges)==null?void 0:K.map(function(h){return _.F(R4V,{data:h})}))):null}))};
Vbp=function(R){R=R.data;return _.F("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.F(Jda,{data:R}),R.videosHorizontalShelf?_.F("div",{class:"yt-profile-info-view-model-wiz__videoShelfContainer"},Nx(R.videosHorizontalShelf)):null,R.comments?_.F(Qca,{data:R}):null,R.sharedSubscriptionsTitle?R.subscriptionsAccessButtonCommand?_.F(jcI,{data:R}):_.F(MbK,{data:R}):null)};
KNZ=function(R){R=R.data;if(R){var y=R.profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD";y=ikH(R.profileIdentityInfo,{profileIdentityInfoViewModel:{hideDivider:y,isChannelInfoCard:y}})}else y=void 0;R=R?ikH(R.profileInfo):void 0;return _.F("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},y,R)};
Ira=function(R,y){var u=_.Wni(y,{},R,!0);return new Promise(function(v,Q){u.listenOnce("n",function(){Q(Error("hl`"+u.JSC$29254_getErrorDescription()))});
u.listenOnce("l",function(){var M=u.getResponseCode();if(M!==200)Q(Error("il`"+y+"`"+R.type+"`"+R.size+"`"+M));else try{v(JSON.parse(u.getResponseText()).encryptedBlobId)}catch(K){Q(K)}});
u.run()})};
h48=function(R){return R.substring(R.indexOf(":")+1,R.indexOf(";"))};
bkI=function(R){return new Promise(function(y,u){var v=new FileReader;v.onloadend=function(){try{var Q=new Uint8Array(v.result);Q.length<8&&u(void 0);var M=Q.subarray(0,8);Q="";for(var K=0;K<M.length;K++)Q+=("0"+M[K].toString(16)).substr(-2);Q.startsWith("ffd8ff")?y("image/jpeg"):Q.startsWith("47494638")?y("image/gif"):Q.startsWith("89504e470d0a1a0a")?y("image/png"):Q.startsWith("424d")?y("image/bmp"):y(void 0)}catch(h){u(h)}};
v.onerror=u;v.readAsArrayBuffer(R)})};
FNJ=function(R){return new Promise(function(y,u){var v=new Image;v.crossOrigin="anonymous";v.onload=function(){var Q=document.createElement("canvas");Q.width=v.naturalWidth;Q.height=v.naturalHeight;var M=Q.getContext("2d");if(!M)throw Error("jl");M.drawImage(v,0,0);M=h48(R);Q.toBlob(function(K){K?y(K):u()},M)};
v.src=R})};
NZI=function(R,y){var u;if(((u=_.e(R,_.PV))==null?void 0:u.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var v;_.Ko((v=y.hostElement)!=null?v:y,"yt-shorts-reset");_.bsY(_.ua().resolve(_.GL),R).then(function(M){wyp(M,y,R)})}else{var Q;
_.Fh((Q=y.hostElement)!=null?Q:y,[R]).then(function(M){M&&wyp(M.data,y,R)})}};
wyp=function(R,y,u){if(R){var v=_.e(R.replacementEndpoint,_.PV);if(v){R.sequenceContinuation&&(v.sequenceParams=R.sequenceContinuation);var Q;_.Ko((Q=y.hostElement)!=null?Q:y,"yt-navigate",{endpoint:R.replacementEndpoint})}else if((R==null?void 0:R.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(R==null?0:R.watchStatus)&&_.e(R.watchStatus,_.pt8)){var M;_.Ko((M=y.hostElement)!=null?M:y,"yt-navigate",{endpoint:u})}}};
TZ8=function(R){var y=_.ua().resolve(_.S5),u=nFg(y.getState())||"";y=_.PSS(y.getState())||"";u=u==="ytd-browse"&&y==="home";return _.f("web_guide_entry_enable_cache_for_non_home_pages")?(R=(R==null?void 0:R.navigationEndpoint)&&_.Zj(R.navigationEndpoint)==="home",{disableCache:u&&R}):{disableCache:u}};
oiJ=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(y){return!1}return oiJ(R.parentNode)};
T1=function(R){return R?R.tagName==="A"&&R.href&&R.classList.contains("yt-simple-endpoint"):!1};
xkZ=function(R){return R?R.tagName==="IMG"&&R.classList.contains("emoji"):!1};
BZp=function(R,y,u){if(!R)return null;var v=T1(R);if(v&&u)return y=R.pathname.substring(R.pathname.indexOf("/channel/")+9),document.createTextNode("@"+y);if(v&&!u)return document.createTextNode("");if(xkZ(R))return u=R.alt,R=R.dataset.emojiId,!R&&y&&(y=_.e8(y,u))&&y.isCustomEmoji&&(R=y.emojiId),R?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+R+">"):document.createTextNode(u);v=R.cloneNode(!1);for(var Q=0;Q<R.childNodes.length;++Q){var M=BZp(R.childNodes[Q],y,u);M&&v.appendChild(M)}return v};
ot=function(R){return R?T1(R)?R:ot(R.lastChild):null};
frP=function(R){return R?T1(R)?R:frP(R.firstChild):null};
e4m=function(R){if(!R)return null;for(var y=R.previousSibling;y;)if(y.nodeType===Node.ELEMENT_NODE&&y.nodeName==="BR")y=y.previousSibling;else if(y.nodeType===Node.TEXT_NODE&&/\s+/.test(y.textContent))y=y.previousSibling;else break;(y=ot(y))?R=y:R=(R=R.parentNode)?ot(R.previousElementSibling):null;return R};
lrM=function(R){if(!R)return null;for(var y=R.nextSibling;y;)if(y.nodeType===Node.ELEMENT_NODE&&y.nodeName==="BR")y=y.nextSibling;else if(y.nodeType===Node.TEXT_NODE&&/\s+/.test(y.textContent))y=y.nextSibling;else break;return(y=frP(y))?y:lrM(R.parentNode)};
OkK=function(R){var y=_.Oz(),u=y.JSC$11263_getStartNode();if(!oiJ(u.parentNode))return null;y=y.JSC$11263_getStartOffset();if(u.nodeType===Node.TEXT_NODE){var v=_.$h(u,T1);if(v){if(R&&y===0||!R&&y===u.length)return v}else{if(R&&y===u.length)return!u||u.nodeName==="BR"||u.nextElementSibling&&_.ZT(u.nextElementSibling,"display")==="block"?null:frP(u.nextElementSibling);if(!R&&y===0)return u?ot(u.previousElementSibling):null}}if(u.nodeType===Node.ELEMENT_NODE)if(R){if(0<=y&&y<u.childNodes.length)return frP(u.childNodes[y])}else if(0<
y&&y<=u.childNodes.length)return ot(u.childNodes[y-1]);return null};
Zka=function(R,y,u){if(!R)return null;if(R.nodeType===Node.TEXT_NODE)if(u){var v=e4m(R);if(v&&!/^\s+\S/.test(R.wholeText.substr(0,y)))return v}else if((v=lrM(R))&&!/\S\s+/.test(R.wholeText.substr(y,R.wholeText.length)))return v;return R.nodeType===Node.ELEMENT_NODE?u?e4m(R.childNodes[y]):lrM(R.childNodes[y]):Zka(R.parentNode,y,u)};
HkP=function(R){if(R.hasChildNodes())switch(R.tagName){case "DIV":case "A":case "SPAN":var y="";for(R=R.firstChild;R;R=R.nextSibling)y+=HkP(R);return y;default:return""}else switch(R.nodeType){case 3:return R.textContent;default:return""}};
niZ=function(R){R=R.data;return _.F("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.F("div",null,_.F(_.QM,{text:R.title})),R.subtitle?_.F("div",{class:"ytd-menu-title-renderer__subtitle"},_.F(_.QM,{text:R.subtitle})):null)};
GNp=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"}};
rda=function(R){return R.map(function(y){return{settingsRadioOptionRenderer:{title:_.Vw(y.name),asideText:_.Vw(y.approximateSize),id:GNp(y.format)}}})};
WNK=function(R){if(R&&R.length!==0)return R.filter(PXm()).map(function(y){return{settingsRadioOptionRenderer:{title:y.name,asideText:y.approximateSize,id:GNp(y.formatType)}}})};
x3=function(R){if(R)return R.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
dkZ=function(R,y){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(y)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
Uka=function(R){var y=R.indexOf("(");return y!==-1?R.substring(y+1,R.length-1):R};
_.EiH=function(R,y,u,v,Q){u||(u=kN8);var M;(M=_.e(u.commandMetadata,_.QL))!=null&&M.url||(u=Error("ol`"+JSON.stringify(u)),_.dI(u),u=kN8);u=_.Ps.unsafeClone(u);M=_.mW(_.e(u.commandMetadata,_.QL).url,"search_query",R);_.AD(location.href,"sv")==="1"&&(_.e(u,_.nc).params="EgOAAgE%3D",M=_.mW(M,"sv","1"));_.e(u,_.nc)&&(_.e(u,_.nc).query=R);M=M.replace(/%20/g,"+");_.e(u.commandMetadata,_.QL).url=M;Q=_.f("desktop_enable_entity_suggest")?{entityMid:Q}:{};_.ua().resolve(_.jX).resolveCommand(u,{form:{tempData:Object.assign({},
{gs_l:y,oq:v!=null?v:R},Q)}})};
$ka=function(R){switch(R){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
XyK=function(R,y,u,v,Q,M){var K=_.Ps.clone(q4a);K.locale=_.EB("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;K.report={description:Q||"<empty>"};Q=_.EB("SBOX_SETTINGS",{});y=y.join(",");var h=Date.now();R={choice_cc:v,choice_id_cc:u,choices_sc:y,gl:Q.REQUEST_DOMAIN,hl:Q.REQUEST_LANGUAGE,query:R,time:h};M&&(R.choice_additional_comment_cc=M);_.qOG(K,R)};
mkp=function(R){var y=new Map;y.set("authuser",_.EB("SESSION_INDEX","0"));return _.VW(R,y)};
DkH=function(R){var y;return _.I(function(u){switch(u.nextAddress){case 1:if(!R||!AdK(R))return u.return(null);y=null;switch(_.EB("INNERTUBE_CLIENT_NAME")){case "WEB":return u.jumpTo(2);case "WEB_REMIX":y=R.getPlayer()}u.jumpTo(3);break;case 2:return u.yield(R.getPlayerPromise(),4);case 4:y=u.yieldResult;u.jumpTo(3);break;case 3:return u.return(y)}})};
AdK=function(R){return["ytd-player","ytmusic-player"].includes(String(R.tagName||"").toLowerCase())};
pyZ=function(R){R=Math.round(R);return R%2?R-1:R};
tbH=function(R){R=Math.round(R);return R%2===0?R-1:R};
cdJ=function(R){var y,u,v;if(R=(y=R.createPlaylistDialogFormSchema)==null?void 0:(u=y.fieldSchemas)==null?void 0:(v=u.title)==null?void 0:v.validationSchema)for(y=[R.syncStep,R.asyncStep].filter(function(Q){return Q!==void 0}),y=_.V(y),u=y.next();!u.done;u=y.next()){u=u.value.rules;
if(!u)break;u=_.V(u);for(u=u.next();!u.done;u=u.next())return _.e(u.value,_.pu8)}};
S4P=function(R){var y,u,v;if(R=(y=R.createPlaylistDialogFormSchema)==null?void 0:(u=y.fieldSchemas)==null?void 0:(v=u.visibility)==null?void 0:v.validationSchema)for(y=[R.syncStep,R.asyncStep].filter(function(Q){return Q!==void 0}),y=_.V(y),u=y.next();!u.done;u=y.next()){u=u.value.rules;
if(!u)break;u=_.V(u);for(v=u.next();!v.done;v=u.next())if(v=_.e(v.value,arJ))return y=void 0,(y=v.translations)==null?void 0:y.visibilityNotValidErrorMessage}};
Y4P=function(){var R,y;return(y=(R=_.ua().resolve(_.yN(_.u0)))==null?void 0:R())!=null?y:!1};
LNP=function(R){var y=21;if(!R)return y;y+=R.headerTitle?27:0;y+=R.headerTitle&&R.hasHeaderActionHeader?4:0;return y+=R.headerTitle&&R.headerSubtitle?16:0};
sc8=function(R){var y=0;if(!R)return y;y+=R.hasFooterPrimaryButton||R.hasFooterSecondaryButton?48:0;y+=R.footerTrailingLabel||R.footerLeadingLabel?30:0;return y+=R.hasFooterPrimaryButton||R.hasFooterSecondaryButton||!R.footerTrailingLabel&&!R.footerLeadingLabel?0:12};
z4m=function(R){var y=new _.Tu,u=R;return{subscribe:function(v){y.subscribe("changed",v)},
dispatch:function(v,Q){var M=u;v==="Touch Start"?u=Object.assign({},M,{isAnimating:!1,initialY:Q.event.touches[0].clientY}):v==="Touch Move"?(v=Math.min(Q.fullContentWrapperHeight,Q.contentHeightMap[Q.contentWrapperId]+LNP(Q.header)-sc8(Q.footer)),u=Object.assign({},M,{currentY:Math.max(Q.contentScrollable?-1*(M.initialY-24):0,Q.event.touches[0].clientY-M.initialY),maxHeightForContentWrapper:Math.min(v,Math.max(0,(M.isFullScreen?v:Q.contentWrapperHeight)-M.currentY))})):u=v==="Snap To Full Screen"?
Object.assign({},M,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:Q.maxHeight}):v==="Snap To Neutral Position"?Object.assign({},M,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:Q.maxHeight}):v==="Close Sheet"?Object.assign({},M,{isAnimating:!0,currentY:Q.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:Q.maxHeight}):M;y.publish("changed",u)}}};
giZ=function(R){return _.nh(function(y){R(y);return!1})};
CXp=function(){_.ua().resolve(_.UM).closeSheet()};
RvH=function(R){var y,u,v,Q,M,K,h,b,N,T,x;return{headerTitle:(y=R.headerTitle)==null?void 0:y.call(R),headerSubtitle:(u=R.headerSubtitle)==null?void 0:u.call(R),headerActionHeader:R.headerActionHeader,footerPrimaryButton:R.footerPrimaryButton,footerSecondaryButton:R.footerSecondaryButton,footerButtonType:(v=R.footerButtonType)==null?void 0:v.call(R),footerLeadingLabel:(Q=R.footerLeadingLabel)==null?void 0:Q.call(R),footerTrailingLabel:(M=R.footerTrailingLabel)==null?void 0:M.call(R),shouldShowIcons:(K=
R.shouldShowIcons)==null?void 0:K.call(R),skipContentClick:(h=R.skipContentClick)==null?void 0:h.call(R),additionalClassName:(b=R.additionalClassName)==null?void 0:b.call(R),onClosedCallback:R.onClosedCallback,focusOnClose:(N=R.focusOnClose)==null?void 0:N.call(R),isDisabled:(T=R.isDisabled)==null?void 0:T.call(R),disabledCommand:(x=R.disabledCommand)==null?void 0:x.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()}};
y6H=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""}};
ujJ=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""}};
v6g=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""}};
QCV=function(R,y,u){y.forEach(function(v){_.e2(_.ua().resolve(_.Ej),v)});
_.Ik(R,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",u])};
VpP=function(R,y,u,v){var Q=_.e(u,_.zC).commandLifeCycleConfig;Q&&Q.onStartCommand&&_.wr(R,[Q.onStartCommand],y);_.sz(y);var M=_.Ch.instance;M&&_.R8(M,u)?_.yB(M,u,v).then(function(K){if(!K||(K==null?0:K.error))return K=_.e(u,_.zC).serializedTransactionFlowLoggingParams,_.zx(y),_.qk(new Bj("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",K));_.zx(y);return{data:K}}).then(function(K){_.zx(y);
jCp(K.data);var h=K.data.command;h&&_.wr(R,[h],y);h=MpP(u,K.data);if(!h){var b=K.data;K=!1;if(b&&b.command&&_.e(b.command,_.TP)){var N;b=((N=_.e(b.command,_.TP))==null?void 0:N.commands)||[];for(N=0;N<b.length;N++)if(_.e(b[N],_.E1c)){K=!0;break}}K||_.Xw('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!h&&Q&&Q.onSuccessCommand?_.wr(R,[Q.onSuccessCommand],y):h&&Q&&Q.onFailureCommand&&_.wr(R,[Q.onFailureCommand],y)},function(){_.zx(y);
Q&&Q.onFailureCommand&&_.wr(R,[Q.onFailureCommand],y);J6a(u)}):_.dI(Error("Al"),"ERROR")};
ihP=function(R,y,u){var v=[y];u&&v.push(u);return _.Fh(R,v).then(function(Q){var M=_.e(y,_.zC).serializedTransactionFlowLoggingParams,K=Q.data,h=MpP(y,K);h?Q=_.qk(new Bj(h,M)):jCp(K);return Q},function(){var Q=_.e(y,_.zC).serializedTransactionFlowLoggingParams;
J6a(y);return _.qk(new Bj("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",Q))})};
MpP=function(R,y){R=_.e(R,_.zC).serializedTransactionFlowLoggingParams;var u=null;switch(y.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":u="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":u="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":u="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}u?_.RX(u,R):oFH(R);return u};
J6a=function(R){_.RX("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.e(R,_.zC).serializedTransactionFlowLoggingParams)};
jCp=function(R){if(R.trackingParams){var y=_.$I(),u=_.Ef();y&&u&&_.ak(y,u,_.U4(R.trackingParams))}};
KxK=function(R,y,u){var v=_.Ch.instance,Q=_.QD4(_.EB("YPC_MB_URL")),M=(new _.uYO).init(),K=_.vbz(),h=_.e(u,_.WsV).languageCode;h===void 0?_.dI(Error("Ei"),"ERROR"):_.Pc([M,Q]).then(function(){var b={ctk:payments.business.integration.ClientTokenFactory.createClientToken(h,K)};v&&_.R8(v,u)?_.yB(v,u,b).then(function(N){return{data:N}}).then(function(N){_.Ko(y,"yt-service-request-completed",N);
N.code!=="ERROR"&&(N=N.data.command)&&_.wr(R,[N],y)}):_.dI(Error("Al"),"ERROR")})};
bho=function(R,y,u,v){var Q=_.Ch.instance;Q&&_.R8(Q,u)?_.yB(Q,u,v).then(function(M){return{data:M}}).then(function(M){Il8(R,y,u,M)},function(){hva(u)}):(Q=_.ua().resolve(_.yN(_.AU)))&&Q.requestDataForServiceEndpoint(u,v).then(function(M){Il8(R,y,u,M)},function(){hva(u)})};
Il8=function(R,y,u,v){_.Ko(y,"yt-service-request-completed",v);if(v.code&&v.code=="ERROR")hva(u);else{(v=v.data.commands)&&_.wr(R,v,y);var Q;(R=(Q=_.e(u,_.qj5))==null?void 0:Q.serializedYpcPauseFlowLoggingParams)&&R&&_.gS("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",R)}};
hva=function(R){var y;(R=(y=_.e(R,_.qj5))==null?void 0:y.serializedYpcPauseFlowLoggingParams)&&R&&_.gS("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",R,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
NWp=function(R,y,u){var v=_.Ch.instance;v&&_.R8(v,u)?_.yB(v,u).then(function(Q){return{data:Q}}).then(function(Q){Fxo(R,y,u,Q)},function(){w_7(u)}):(v=_.ua().resolve(_.yN(_.AU)))&&v.requestDataForServiceEndpoint(u).then(function(Q){Fxo(R,y,u,Q)},function(){w_7(u)})};
Fxo=function(R,y,u,v){_.Ko(y,"yt-service-request-completed",v);v.code&&v.code=="ERROR"?w_7(u):((v=v.data.commands)&&_.wr(R,v,y),(R=_.e(u,_.XRV).serializedYpcResumeFlowLoggingParams)&&R&&_.gS("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",R))};
w_7=function(R){(R=_.e(R,_.XRV).serializedYpcResumeFlowLoggingParams)&&R&&_.gS("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",R,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
TWM=function(R){R=R===void 0?{}:R;_.ua().resolve(_.KMi).showFeedbackDialog(R.customProductData,R.feedbackContent,R.onFeedbackSubmitted,R.bucket)};
o6m=function(R){R=R===void 0?{}:R;_.ua().resolve(_.KMi).showHelpDialog(R.helpContext,R.articleId,R.productData)};
xRg=function(){o6m()};
BW8=function(){TWM()};
evZ=function(R,y,u){var v,Q,M,K,h,b,N;return _.I(function(T){switch(T.nextAddress){case 1:v=_.e(R,fl8);if((Q=v)==null?0:Q.productId){b={productId:v.productId,bucket:v.bucket,enableAnonymousFeedback:(h=v.enableAnonymousFeedback)!=null?h:!0,allowNonLoggedInFeedback:!0};N={feedbackChoice:u.feedbackChoice};if(!_.f("web_collect_offline_state")){T.jumpTo(8);break}_.wY(T,9);return T.yield(r_8(N),11)}K={bucket:(M=v)==null?void 0:M.bucket};if(!_.f("web_collect_offline_state")){T.jumpTo(4);break}K.customProductData=
{};_.wY(T,5);return T.yield(r_8(K.customProductData),7);case 7:_.c5(T,4);break;case 5:_.B$(T);case 4:TWM(K);T.jumpTo(0);break;case 11:_.c5(T,8);break;case 9:_.B$(T);case 8:_.aST(N),_.cC4("GFEEDBACK",N),v.productId==="5295751"&&(N.client_attestation=Number(_.EB("CATSTAT",0))),v.productId==="5295751"&&(N.client_time=Date.now()/1E3/3600),v.productId==="5295751"&&(N.original_playback_id=_.BJY||""),_.qOG(b,N),_.f$(T)}})};
lla=function(R){if(R=_.e(R,_.Y0v)){var y={bucket:R.bucketIdentifier};R.additionalDatas&&(y.customProductData={},R.additionalDatas.forEach(function(u){if(u=u.userFeedbackEndpointProductSpecificValueData)y.customProductData[u.key]=u.value}));
TWM(y)}};
Oha=function(R){var y=_.c3.getInstance();var u=_.fo("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var v=_.fo("DELETE",void 0,"Delete"),Q=_.fo("CANCEL",void 0,"Cancel");u=$SP(u,void 0,v,Q,{signal:"DELETE_ALL_DOWNLOADS"});_.pV(y,[{openPopupAction:u}],R)};
Hhm=function(){return _.I(function(R){return R.nextAddress==1?R.yield(_.ua().resolve(_.ov),2):R.yield(ZhZ(),0)})};
n6p=function(R){var y,u;return _.I(function(v){return v.nextAddress==1?(u=(y=_.e(R,_.Dz))==null?void 0:y.targetId)?v.yield(_.ua().resolve(_.ov),3):v.jumpTo(0):v.yield(_.ua().resolve(_.TE).deleteVideo(u),0)})};
r6m=function(R){var y,u;return _.I(function(v){return v.nextAddress==1?(u=(y=_.e(R,_.Dz))==null?void 0:y.targetId)?v.yield(_.ua().resolve(_.ov),3):v.jumpTo(0):v.yield(G3P(_.ua().resolve(_.TE),u),0)})};
Wxp=function(R){var y,u;return _.I(function(v){return(u=(y=_.e(R,_.Dz))==null?void 0:y.targetId)?v.yield(P0Z(u),0):v.jumpTo(0)})};
URH=function(){_.f("kevlar_woffle_refresh_dl_load_killswitch")||dR8()};
E6I=function(){_.f("kevlar_woffle")&&_.qB.instance&&k3a()};
qy8=function(R){var y;if((y=_.e(R,_.OC))==null||!y.videoId)return!1;$RI(_.ua().resolve(_.TE),_.e(R,_.OC),R.clickTrackingParams);return!0};
mRa=function(R){var y;if((y=_.e(R,_.ZO))==null||!y.playlistId)return!1;X_g(_.ua().resolve(_.TE),_.e(R,_.ZO),R.clickTrackingParams);return!0};
DRH=function(R){var y=_.e(R,_.lXg);(y==null?void 0:y.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(y==null?void 0:y.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||A68(_.ua().resolve(_.TE),_.e(R,_.lXg))};
tpa=function(R){R=_.e(R,_.y48);var y;(R==null?0:(y=R.actions)==null?0:y.length)&&p_a(R)};
Sya=function(R){var y,u;return _.I(function(v){y=_.e(R,c6H);return(u=y)!=null&&u.localWatchHistoryCommandType?v.yield(alJ(y),0):v.return()})};
YyV=function(R){setTimeout(function(){requestAnimationFrame(R)},80)};
LxV=function(R){return Object.entries(R).map(function(y){return y.join(":")}).join(";")};
zvM=function(R){var y,u,v;_.I(function(Q){if(Q.nextAddress==1)return Q.yield(sCp(),2);y=Q.yieldResult;u=_.lX.instance;switch(y){case "granted":v=R.getLocationCommand;break;case "denied":v=R.openDeniedDialogAction;break;case "prompt":v=R.openCollectionDialogAction;break;default:v=R.openCollectionDialogAction}v&&u.resolveCommand(v);_.f$(Q)})};
sCp=function(){var R,y;return _.I(function(u){if(u.nextAddress==1)return R="prompt",navigator.permissions?u.yield(navigator.permissions.query({name:"geolocation"}),3):u.jumpTo(2);u.nextAddress!=2&&(y=u.yieldResult,R=y.state);return u.return(R)})};
C0J=function(){_.I(function(R){return R.yield(_.g6K(),0)})};
R8P=function(){var R,y,u;return _.I(function(v){if(v.nextAddress==1)return R=_.ua().resolve(_.Dj),R?v.yield(_.yB(R,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.kT(Error("Dl")),v.return(void 0));if(y=v.yieldResult){if(y.errorMetadata)return _.kT(Error("El`"+y.errorMetadata.status+"`"+y.error)),v.return(void 0);u=y.datasyncIds;_.b8a=u.length;return v.return(u)}_.kT(Error("Fl"));return v.return(void 0)})};
yFH=function(){R8P().then(function(R){R&&(ylI(R),Brp(R),Sf8(R),dQH(R))})};
usg=function(R){_.WG.addLowPriorityJob(function(){var y,u,v,Q,M;return _.I(function(K){switch(K.nextAddress){case 1:if(_.f("ytidb_clear_optimizations_killswitch")){K.jumpTo(2);break}y=_.eX("clear");if(y.startsWith("V")&&y.endsWith("||")){var h=[y];ylI(h);Brp(h);Sf8(h);dQH(h);return K.return()}u=YfI();v=UQV();return K.yield(fqm(),3);case 3:return Q=K.yieldResult,K.yield(ucP(),4);case 4:if(M=K.yieldResult,!(u||v||Q||M))return K.return();case 2:R.isNetworkAvailable()?yFH():R.listenOnce("publicytnetworkstatus-online",
yFH),_.f$(K)}})})};
f1=function(R){R={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.ye(R)}}}};_.lX.instance&&_.lX.instance.resolveCommand(R)};
v9M=function(R){if(R){var y=_.GN();_.om(y,3854,void 0,{layer:0,parentLayer:4});switch(R){case 1:var u=238708;break;case 2:u=238715;break;case 3:u=238710;break;case 6:u=238709}u&&(R=_.nk(y,{veType:u}))&&_.fx(y,R)}};
Q8J=function(R){if(R){var y=_.GN();_.om(y,3854,void 0,{layer:0,parentLayer:4});switch(R){case 1:var u=238714;break;case 2:u=238711;break;case 8:u=238709;break;case 7:u=238713;break;case 3:case 4:case 5:u=238712}u&&(R=_.nk(y,{veType:u}))&&_.fx(y,R)}};
j8M=function(R){switch(R.latencyType){case 0:_.$F("consent_primitive_flow");_.qQ("cpit",R.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.qQ("cpist",R.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.qQ("cprtif",R.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.qQ("cprtli",R.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.qQ("cprt",R.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.qQ("cpdt",R.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.qQ("cpjct",R.timestampEpochMillis,"consent_primitive_flow")}};
wma=function(R,y){var u,v,Q,M,K,h,b,N,T,x,B,l,Z,P,k,E,D,z,c,a;return _.I(function(L){switch(L.nextAddress){case 1:_.wY(L,2);(v=(u=_.e(R,Mo7))==null?void 0:u.serializedConsentRequest)||(v=(Q=_.e(R,JFH))==null?void 0:Q.serializedConsentRequest);v&&(M=Vog(_.zT(v)));if(M===void 0)return L.return();K=iAm(M);K.latencyCallback=j8M;y&&KkI(K,function(){y.then(function(QG){QG.pauseVideo();(new IOm).increment()})});
return((h=_.e(R,Mo7))==null?void 0:h.consentAction)==="CONSENT_ACTION_PREWARM"||((b=_.e(R,JFH))==null?void 0:b.consentAction)==="CONSENT_ACTION_PREWARM"?L.yield(h87(K),5):L.yield(bAP(K),6);case 6:N=L.yieldResult;T=_.rV(N,ek);if(T===1){if(((x=_.AR(N,lS,1,ek))==null?void 0:_.qO(x,1))===1||((B=_.AR(N,lS,1,ek))==null?void 0:_.qO(B,1))===2||((l=_.AR(N,lS,1,ek))==null?void 0:_.qO(l,1))===3)_.e(R,JFH)?f1(_.fo("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
f1(_.fo("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));v9M((Z=_.AR(N,lS,1,ek))==null?void 0:_.qO(Z,1),_.vY(N,Fk8,3,_.Q7()))}else T===2?(((P=O1(N))==null?void 0:_.qO(P,1))===5?_.e(R,JFH)?f1(_.fo("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):f1(_.fo("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((k=O1(N))==null?void 0:_.qO(k,1))===1||((E=O1(N))==null?void 0:_.qO(E,1))===4?f1(_.fo("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((D=O1(N))==null?void 0:_.qO(D,1))===7&&((z=M)==null?void 0:(c=_.Ne(z,ZC,4))==null?void 0:_.qO(c,4))!==1&&f1(_.fo("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),Q8J((a=O1(N))==null?void 0:_.qO(a,1))):f1(_.fo("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));L.jumpTo(5);break;case 5:_.c5(L,0);break;case 2:_.B$(L),f1(_.fo("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.f$(L)}})};
Tma=function(){if(!NmZ.has("Worker")){NmZ.set("Worker",!0);var R={api:"BROWSER_API_WEB_WORKER"};R.available="Worker"in window?!0:!1;_.P3("apiTest",R)}};
o98=function(R){return typeof R==="undefined"?"-1":String(Math.ceil(R/1048576))};
e8m=function(R,y){xpm(new Bm8(_.e(y,fOM).addToken,_.e(y,fOM).commonToken)).then(function(){_.Ko(R,"yt-invoke-instrument-manager-action-completed")},function(u){_.Ko(R,"yt-invoke-instrument-manager-action-error",u)})};
lO7=function(R){return _.aE(R)};
OA8=function(R){var y=1;R=R.split(":");for(var u=[];y>0&&R.length;)u.push(R.shift()),y--;R.length&&u.push(R.join(":"));return u};
ZAp=function(R,y){y=R.aspectRatio()<=y.aspectRatio()?y.width/R.width:y.height/R.height;R.scale(y)};
HAZ=function(R,y){y=R.aspectRatio()>y.aspectRatio()?y.width/R.width:y.height/R.height;return R.scale(y)};
n9m=function(R){var y=new _.wK;return _.DF(y,11,R)};
GwK=function(R){var y={};R=R.getAllResponseHeaders().split("\r\n");for(var u=0;u<R.length;u++)if(!_.iO(R[u])){var v=OA8(R[u]),Q=v[0];v=v[1];if(typeof v==="string"){v=v.trim();var M=y[Q]||[];y[Q]=M;M.push(v)}}return _.Ps.map(y,function(K){return K.join(", ")})};
UE=function(R,y){return R.JSC$9764_xhr_?R.JSC$9764_xhr_.getResponseHeader(y):null};
rFZ=function(R,y){if(R.isDisposed())throw Error("Ea");R.yM.cB("n");var u=_.mF(R.yM,function(){return R.eX7([y.j1,y.qxd,y.toX,y.qgO])},"n");
R.yM.bGh(u.length);R.yM.o0();return u};
Hj=function(R,y,u){Array.isArray(u)||(u=[String(u)]);_.Fqc(R.JSC$10001_queryData_,y,u);return R};
k3a=function(){var R=_.qB.instance;_.I(function(y){return R.deferredInstallPrompt?y.yield(R.deferredInstallPrompt.prompt(),0):y.jumpTo(0)})};
PDV=function(R,y,u){if(_.p8(R))_.cu(R,y,u);else for(R=_.nkg(R);;){var v=R.next();if(v.done)break;y.call(u,v.value,void 0,R)}};
WkZ={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}"]};
WkZ={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 dp8=function(R,y){var u=[];PDV(y,function(v){try{var Q=_.Kv.prototype.getWrapper.call(this,v,!0)}catch(M){if(M=="Storage: Invalid value was encountered")return;throw M;}Q===void 0?u.push(v):_.HNK(Q)&&u.push(v)},R);
return u},UpH=function(R,y){dp8(R,y).forEach(function(u){_.Kv.prototype.remove.call(this,u)},R)},kwm=function(R){var y=_.sD;
y._minimumZ=Math.max(y._minimumZ,R)},E9a=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],$pJ=function(R,y){_.R_(R.vm);R.vm=y},qCa=function(R,y,u,v){R.setState(5);
var Q=!!R.sqq&&E9a.includes(_.z7(R.sqq)||"");try{var M=new _.A8({program:y,globalName:u,pKf:{disable:!_.f("att_web_record_metrics")||!_.f("att_skip_metrics_for_cookieless_domains_ks")&&Q,vx:"aGIf"}});M.zRl.then(function(){R.setState(6);v&&v(y)});
$pJ(R,M)}catch(K){R.setState(7),K instanceof Error&&_.kT(K)}},XmZ=function(R,y,u,v,Q,M){var K=K===void 0?"trayride":K;
u?(R.setState(2),_.tl(_.Gl(u),function(){if(window[K])qCa(R,v,K,Q);else{R.setState(3);var h=_.cxT(u),b=document.getElementById(h);b&&(_.Y4L(h),b.parentNode.removeChild(b));_.kT(new _.OL("BL:ULB",u))}},M)):y?(M=_.o_("SCRIPT"),y instanceof _.YE?_.zB(M,y):M.textContent=y,M.nonce=_.Sy(document),document.head.appendChild(M),document.head.removeChild(M),window[K]?qCa(R,v,K,Q):(R.setState(4),_.kT(new _.OL("BL:ULBJ")))):_.kT(new _.OL("BL:ULV"))},mp8=function(){this.state=1;
this.vm=null;this.sqq=void 0};
_.J=mp8.prototype;_.J.initialize=function(R,y,u,v){this.sqq=v;if(R.program){var Q;v=(Q=R.interpreterUrl)!=null?Q:null;if(R.interpreterSafeScript)Q=_.N24(R.interpreterSafeScript);else{var M;Q=(M=R.interpreterScript)!=null?M:null}R.interpreterSafeUrl&&(v=_.d3(R.interpreterSafeUrl).toString());XmZ(this,Q,v,R.program,y,u)}else _.kT(Error("lf"))};
_.J.isInitialized=function(){return!!this.vm};
_.J.getState=function(){return this.state};
_.J.isLoading=function(){return this.state===2};
_.J.invoke=function(R){R=R===void 0?{}:R;var y;this.vm?y=rFZ(this.vm,{j1:R}):y=null;return y};
_.J.dispose=function(){$pJ(this,null);this.setState(8)};
_.J.setState=function(R){this.state=R};
var AFH=function(R,y){return R.vm.snapshot(y)},Dpa=function(R,y){var u=_.JT("botguard_async_snapshot_timeout_ms",3E3);
y=y===void 0?{}:y;u=u===void 0?3E3:u;return R.vm?new Promise(function(v,Q){var M=!1,K=_.WG.addJob(function(){M=!0;Q(Error("mf"))},1,u);
R.vm?AFH(R,{j1:y}).then(function(h){_.WG.cancelJob(K);M||v(h)}).catch(function(h){_.WG.cancelJob(K);
M||Q(h)}):(_.WG.cancelJob(K),v(null))}):Promise.resolve(null)},pmp=["att/log"],kN8;
kN8={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var toH={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},cFH=function(R,y){return _.lE(R,{mode:"readwrite",enableRetries:!0},function(u){return _.lET(u,y,"settingEntity")})},aOo=function(R,y,u){return _.lE(R,{mode:"readonly",
enableRetries:!0},function(v){return _.Qpg(v,y,u)})},SCK=function(R){if(!R.storage)return!1;
a:{if(R.storage){try{var y=R.storage.get("TLPQtimestamp")}catch(u){}R=Number(y);if(!isNaN(R))break a}R=void 0}return R?Date.now()-R<864E5:!1},YCm=function(R){if(R.storage){try{var y=R.storage.get("TLPQindex")}catch(u){}R=Number(y);
if(!isNaN(R))return R}},LkP=function(R,y){R.queueProxy&&y.forEach(function(u){if(u.videoId&&u.trackingParams&&R.queueProxy instanceof _.ts){var v=_.$I();
R.queueProxy.attributionData.set(u.videoId,{enqueueingVe:_.U4(u.trackingParams).getAsJson(),enqueueingCsn:v?v:void 0,clientEnqueueingTimeMs:Math.floor((0,_.uQ)()).toString()})}})},s8a=function(R){var y=_.XS5(R);
y!=R.currentSnapState_&&(R.currentSnapState_=y,R.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},n1=function(R){this.JSC$13069_networkManager_=R;
this.partCallbacks_=[]};
n1.prototype.getCacheKeyForEndpoint=function(R){return _.jac(R,!1)};
n1.prototype.onPartsCallback_=function(R){this.partCallbacks_.forEach(function(y){R&&y(R)})};
var G1=function(R,y,u){n1.call(this,R);this.player_=y;this.autoplayData_=u};
_.O(G1,n1);G1.prototype.getCacheKeyForEndpoint=function(R){return _.jac(R,!!this.autoplayData_)};
G1.prototype.getTempData=function(R,y){y=y.timeBeforeNextVideo;R={itct:R.clickTrackingParams,lact:_.QF(),pbis:y,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(R.autonav=1);return R};
G1.prototype.getXhrParams=function(R){return Object.assign({pbj:"prefetch"},R)};
G1.prototype.getParams=function(R){R={frags:R.fragmentsRequested.join(",")};_.f("kevlar_droppable_prefetchable_requests")&&(R.prefetch=1);return R};
var z8M=function(R){R.playerEvents_.forEach(function(y){R.player.removeEventListener(y.eventName,y.callback)});
R.playerEvents_.length=0},rO=function(R,y,u){this.player=R;
this.JSC$13079_taskManager=y;this.prefetchDelay=u;this.completionResolver_=null;this.playerEvents_=[]};
rO.prototype.start=function(){var R=this;this.completionResolver_=_.uD();_.Wc(this.completionResolver_.promise,function(){z8M(R);R.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var g9I=function(R,y,u){R.player.addEventListener(y,u);R.playerEvents_.push({eventName:y,callback:u})},CDa={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},Rtp={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},yGP=function(R,y,u){rO.call(this,R,y,u);this.cueId_="playbackTrigger-"+Math.random()};
_.O(yGP,rO);
yGP.prototype.prepareTrigger=function(R){var y=this,u=this.player.getDuration(),v=this.player.getVideoData(),Q=v.isLive&&v.hasProgressBarBoundaries;if(Q&&v.progressBarEndPositionUtcTimeMillis){var M=v.progressBarEndPositionUtcTimeMillis/1E3;isNaN(M)||(u=M)}var K=0;this.prefetchDelay>=0?Q?v.progressBarStartPositionUtcTimeMillis&&(v=v.progressBarStartPositionUtcTimeMillis/1E3,isNaN(v)||(K=v+this.prefetchDelay)):K=this.prefetchDelay:K=u+this.prefetchDelay;Q?this.player.addUtcCueRange(this.cueId_,K,u):
this.player.addCueRange(this.cueId_,K,u);_.Wc(R.promise,function(){y.player.removeCueRange(y.cueId_)});
g9I(this,"onCueRangeEnter",function(h){h==y.cueId_&&R.resolve(u-K)})};
var udH=function(R,y){R.fragmentConfiguration_[y].requiredKeys.every(function(u){return!!R.prefetchedData_[u]})&&(R.validatedFragments_.push(y),y=R.missingFragments_.indexOf(y),y!==-1&&R.missingFragments_.splice(y,1))},vY8=function(R){R.prefetchedFragments_.forEach(function(y){udH(R,y)})},QyK=function(R,y,u){this.pageFragments_=R;
this.prefetchedFragments_=y;this.fragmentConfiguration_=Rtp;this.prefetchedData_=u;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;vY8(this)},jya=function(){},M8m=function(R){this.JSC$13093_playlistManager_=R};
_.O(M8m,jya);M8m.prototype.getPrefetchEndpoint=function(){return this.JSC$13093_playlistManager_.getAutoplayEndpoint()};
var JGJ=function(R){this.autonavEndpoints_=R};
_.O(JGJ,jya);JGJ.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var V8g=function(R,y,u,v,Q){this.autonavEndpoints=R;this.foregroundTrigger=y;this.backgroundTrigger=u;this.pageType=v;this.isInPlaylist=Q},iXg=function(R,y){if(R.webPrefetchData&&R.webPrefetchData.navigationEndpoints&&R.webPrefetchData.navigationEndpoints.length){R=R.webPrefetchData.navigationEndpoints;
var u=_.e(R[0],_.zM);if(u.watchEndpointSupportedPrefetchConfig&&u.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var v=u.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;u=v.playbackRelativeSecondsPrefetchCondition;u=typeof u==="number"&&Math.abs(u)<y.videoDuration?u:void 0;v=v.countdownUiRelativeSecondsPrefetchCondition;v=typeof v!=="number"||_.f("prefetch_job_config_cleanup_ks")&&y.inPlaylist?void 0:v;if(typeof v==="number")return new V8g(R,y.makeUpNextTrigger(v),y.makePlaybackTrigger(v),
"watch",y.inPlaylist);if(typeof u==="number")return new V8g(R,y.makePlaybackTrigger(u),null,"watch",y.inPlaylist)}}},KhM=function(R){return R.prefetchJobConfig_.backgroundTrigger?_.A7(_.pbT)()==0?R.prefetchJobConfig_.backgroundTrigger:R.prefetchJobConfig_.foregroundTrigger:R.prefetchJobConfig_.foregroundTrigger},ITZ=function(R){_.Hc(document,"visibilitychange",R.onVisibilityChange_,!1,R)},Pj=function(R){n1.call(this,R)};
_.O(Pj,n1);Pj.prototype.getCacheKeyForEndpoint=function(R){return n1.prototype.getCacheKeyForEndpoint.call(this,R)};
Pj.prototype.getTempData=function(){return{}};
Pj.prototype.getXhrParams=function(R){return R};
Pj.prototype.getParams=function(){return{}};
var htI=function(R,y,u){var v=R.prefetchDelay*1E3;if(Math.abs(v)>y)u.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var Q=v,M=y-v;v<0&&(Q=y+v,M=Math.abs(v));var K=R.JSC$13079_taskManager.addJob(function(){u.resolve(M/1E3)},10,Q);
u.promise.thenCatch(function(){R.JSC$13079_taskManager.cancelJob(K)})}},bXZ=function(R,y,u){rO.call(this,R,y,u)};
_.O(bXZ,rO);bXZ.prototype.prepareTrigger=function(R){var y=this;g9I(this,"onAutonavCoundownStarted",function(u){htI(y,u,R)})};
var FhV=function(R){R.pendingPrefetchJob_&&(R.pendingPrefetchJob_.cancel(),R.pendingPrefetchJob_=null)},w2M=function(R,y,u){if(!R.triggeredTargets.has(y)){var v=_.d6g(R,y);
v.action=u;_.PZ5(R,y,v)}},N$m=function(R){_.oPc();
_.vRP("cpt")&&_.kT(Error("lh"));_.uO.requestAnimationFrame(function(){_.uO.setTimeout(function(){_.qQ("cpt");var y=_.A_("vpl"),u=_.A_("cpt");y&&u&&_.qQ("ol",Math.max(y,u))})});
try{_.qQ("fr_s"),R()}catch(y){_.dI(y)}_.uO.requestAnimationFrame(function(){_.qQ("bcp")})},T$a=function(R,y){R.serviceEndpointHandlers.push(y)},oY7=function(R,y){y=R.pendingPages_.indexOf(y);
y>-1&&R.pendingPages_.splice(y,1)},x5a=function(R,y){var u=_.asK.indexOf(y);
u>-1&&_.asK.splice(u,1);R.targetPage_==y?(R.abort(),_.YeL(R)):oY7(R,y)},B$J=function(R,y,u,v){y={challenge:y};
u&&(y.webResponse=u);return _.am(R.innertubeTransportService,y,_.jq(pmp),v)},fTZ=function(R,y,u){if(!y.challenge)throw Error("ni");
if(y.botguardData&&y.botguardData.program){var v=new mp8;v.initialize(y.botguardData,function(){Dpa(v,{atr_challenge:y.challenge}).then(function(Q){if(!Q)throw Error("oi");return B$J(R,y.challenge,Q,u)}).catch(function(Q){_.kT(Q);
return B$J(R,y.challenge,void 0,u)})},void 0)}else B$J(R,y.challenge,void 0,u)},etM=function(R,y,u){var v={};
y.ids&&(v.ids=[].concat(_.P$(y.ids)));y.engagementType&&(v.engagementType=y.engagementType);return _.am(R.innertubeTransportService,v,_.jq(_.lY5),u).then(function(Q){if(!Q)throw new _.OL("GetAttestationChallenge returned falsy");fTZ(R,Q,u)}).thenCatch(function(Q){_.dI(Q)})},lT8=function(R,y,u){return new _.F4(function(v,Q){var M;
return _.I(function(K){if(K.nextAddress==1){var h=K.yield,b=y.engagementType,N=y.ids,T={};N=_.V(N!=null?N:[]);for(var x=N.next();!x.done;x=N.next())x=x.value,x.encryptedVideoId?T.encryptedVideoId=x.encryptedVideoId:x.externalChannelId?T.externalChannelId=x.externalChannelId:x.commentId?T.commentId=x.commentId:x.externalOwnerId?T.externalOwnerId=x.externalOwnerId:x.artistId?T.artistId=x.artistId:x.playlistId?T.playlistId=x.playlistId:x.externalPostId?T.externalPostId=x.externalPostId:x.shareId&&(T.shareId=
x.shareId);return h.call(K,EkZ(b,T),2)}M=K.yieldResult;if(!M.challenge)return _.kT(Error("pi")),etM(R,y,u).then(v,Q),K.return();h=M;b={challenge:h.challenge};b.webResponse=h.webResponse;b.engagementType=y.engagementType;b.ids=y.ids;_.am(R.innertubeTransportService,b,_.jq(pmp),u).then(v,Q);_.f$(K)})})},Dzo=function(R,y){var u,v,Q,M;
_.I(function(K){if(K.nextAddress==1){u=_.e(y,_.KRb);if(!(u&&u.listId&&R.response&&R.response.playingVideoId)||R.listId!==u.listId)return K.return();R.index===void 0&&(R.index=0);return K.yield(_.Ar5(R.JSC$12824_playlistNetworkManager,u.listId,R.index,R.response.playingVideoId),2)}v=K.yieldResult;if(!v)return K.return();Q=v.playlistId;M=v.playlistPanelRenderer;R.setPlaylistData(Q,M,v.autoplayRenderer);_.f$(K)})},OXM=function(R,y,u){var v=R.getParams(u),Q=_.ZAU(y,v),M=R.getTempData(y,u);
M.endpoint=JSON.stringify(y);_.f("enable_unknown_lact_fix_on_html5")&&(_.ua().resolve(_.Xj),M.lact=_.QF());var K={headers:{"X-YouTube-STS":_.EB("STS"),"x-youtube-csoc":1}};_.uh(Q,M);return new _.F4(function(h,b){var N=R.getXhrParams(v),T;_.f("kevlar_cache_on_ttl_player")&&(T=_.P1.instance);T&&_.isK(T,y)?_.T_b(T,y,M,window.location.href).then(function(x){x?h(x):b()},b):_.D3w(R.JSC$13069_networkManager_,y,N,R.onPartsCallback_.bind(R),K).then(function(x){x?h(x):b()},b)})},ZXp=function(R,y){R.triggerPromise_=
y.start();
R.triggerPromise_.then(function(u){var v=R.prefetchEndpointProvider_.getPrefetchEndpoint();if(v){var Q=CDa[R.prefetchJobConfig_.pageType].prefetchedFragments;R.prefetchRequestPromise_=OXM(R.JSC$13105_networkPrefetchRequest_,v,{fragmentsRequested:Q,timeBeforeNextVideo:u});R.prefetchResponseCacheKey_=R.JSC$13105_networkPrefetchRequest_.getCacheKeyForEndpoint(v);ITZ(R);R.prefetchRequestPromise_.then(function(M){R.storePrefetchedDataCallback_(R.prefetchResponseCacheKey_,M);if(_.f("web_prefetch_preload_video")&&
Q.length===1&&Q[0]==="pl"&&M&&!M.playerAds&&!M.adPlacements){var K=_.e(v,_.PV),h=K!=null,b={raw_player_response:M,watch_endpoint:K};(M=_.ua().resolve(h?_.ewY:_.Np))&&v&&M.then(function(N){h&&_.f("web_queue_preload_video")?(b.prefer_gapless=!0,N.queueNextVideo(b)):N.preloadVideoByPlayerVars(b)})}})}})},Wj=function(R,y,u,v){this.prefetchEndpointProvider_=R;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=y;this.prefetchJobConfig_=u;this.JSC$13105_networkPrefetchRequest_=v;this.prefetchResponseCacheKey_=null};
Wj.prototype.enqueue=function(){this.triggerPromise_||(ZXp(this,KhM(this)),_.E4(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
Wj.prototype.resolve=function(){this.cancel()};
Wj.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.");ITZ(this)};
Wj.prototype.onVisibilityChange_=function(){var R=this;_.A7(_.pbT)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){R.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||ZXp(this,KhM(this))};
HXM=function(R,y,u,v,Q){y&&(y==null?0:y.videoId)&&u&&u.entries&&_.f("kevlar_enable_shorts_prefetch_in_sequence")&&(FhV(R),y=u.entries.map(function(M){var K;return(K=_.e(M.command,_.PV))==null?void 0:K.videoId}).indexOf(y.videoId),u=u.entries[y+1],u!=null&&u.command&&!_.e(u==null?void 0:u.command,_.t4)&&(v=new V8g([u.command],new yGP(v,_.WG,1),null,"shorts",!1),R.pendingPrefetchJob_=new Wj(new JGJ(v.autonavEndpoints),function(){return!1},v,new Pj(Q)),R.pendingPrefetchJob_.enqueue()))};
nYP=function(R,y,u,v,Q,M){var K=_.Js.getInstance();if(!_.f("block_all_player_prefetch_requests")){FhV(R);var h=!!u.getPlaylistId(),b=u.getVideoData().isLive&&u.getVideoData().hasProgressBarBoundaries;if((K.getState()==2||h||b)&&(!u.getVideoData().isLive||b)){K={inPlaylist:h,videoDuration:u.getDuration(),makeUpNextTrigger:function(T){return new bXZ(u,_.WG,T)},
makePlaybackTrigger:function(T){return new yGP(u,_.WG,T)}};
var N=iXg(y,K);N&&(R.pendingPrefetchJob_=new Wj(N.isInPlaylist?new M8m(Q):new JGJ(N.autonavEndpoints),function(T,x){x=new QyK(CDa[N.pageType].pageFragments,CDa[N.pageType].prefetchedFragments,x);return _.fWc(x)?(R.prefetchCache_.set(T,x),!0):!1},N,new G1(v,u,M,Q)),R.pendingPrefetchJob_.enqueue())}}};
GxZ=function(){var R=_.gQ();R.signals.parkOrScheduleJob(function(){var y=R.storage;if(y.storage)if(SCK(y)){var u=y.getPlaylistId();y=YCm(y);u=!!u&&y!==void 0}else y.clear(),u=!1;else u=!1;if(u){u=R.pageManager.isOnWatch();a:{var v=R.storage;if(v.storage&&SCK(v)&&(y=v.getPlaylistId(),v=YCm(v),y&&v!==void 0)){u={recoverPlaylistCommand:{listId:y,index:v,openMiniplayer:!u,openListPanel:u,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}u=void 0}u&&_.pV(R.JSC$12824_actionRouter,[u],null)}},0,"ma")};
rGM=function(R,y,u,v,Q,M){var K=_.$6(7111);_.x0(R.JSC$18196_screenManager,K,M?_.U4(M):void 0);_.fx(R.JSC$18196_screenManager,K,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:v,offlineId:y,offlineabilityFormatType:u,isDefaultFormatType:Q==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:Q}})};
PGJ=function(R,y,u,v,Q){var M,K,h,b,N;return _.I(function(T){if(T.nextAddress==1)return T.yield(R.JSC$18196_playerApiPromise,2);M=T.yieldResult;rGM(R,y,u,"OFFLINE_OBJECT_TYPE_PLAYLIST",v,Q);if(h=_.I8c[R.entityTypeMap.listEntityType])N={},K=(N[h]={maximumDownloadQuality:(b=u)!=null?b:void 0},N);return T.yield(M.queueOfflineAction(y,R.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",K),0)})};
WhH=function(R,y){var u,v,Q,M;return _.I(function(K){if(K.nextAddress==1)return K.yield(R.JSC$18196_persistentStorePromiseAccessor(),2);if(K.nextAddress!=3){u=K.yieldResult;if(!u)return _.kT(new _.OL("PES is undefined")),K.return();v=_.Nq(y,"downloadStatusEntity");return K.yield(aOo(u,v,"downloadStatusEntity"),3)}Q=K.yieldResult;return K.return((M=Q)==null?void 0:M.downloadState)})};
d5m=function(R,y,u,v,Q){var M,K,h,b,N,T;return _.I(function(x){switch(x.nextAddress){case 1:return x.yield(R.JSC$18196_playerApiPromise,2);case 2:M=x.yieldResult;rGM(R,y,u,"OFFLINE_OBJECT_TYPE_VIDEO",v,Q);if(h=_.I8c[R.entityTypeMap.singleEntityType])N={},K=(N[h]={maximumDownloadQuality:(b=u)!=null?b:void 0},N);return x.yield(WhH(R,y),3);case 3:T=x.yieldResult;if(T!=="DOWNLOAD_STATE_USER_DELETED"){x.jumpTo(4);break}return x.yield(R.deleteVideo(y),4);case 4:return x.yield(M.queueOfflineAction(y,R.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",K),0)}})};
U5H=function(R,y,u,v,Q){return _.I(function(M){return M.nextAddress==1?M.yield(R.deleteVideo(y,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):M.yield(d5m(R,y,u,v,Q),0)})};
kxp=function(R,y,u){var v,Q;return _.I(function(M){if(M.nextAddress==1)return M.yield(R.JSC$18196_playerApiPromise,2);v=M.yieldResult;Q=_.Nq(y,"mainVideoDownloadStateEntity");return M.yield(v.updateDownloadState(Q,u),0)})};
P0Z=function(R){var y=_.ua().resolve(_.TE);return _.I(function(u){if(u.nextAddress==1)return y.previousDownloadStateForVideo[R]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&y.previousDownloadStateForVideo[R]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?u.jumpTo(2):u.yield(y.resumeVideoDownload(R),2);if(u.nextAddress!=4)return u.yield(kxp(y,R,y.previousDownloadStateForVideo[R]),4);delete y.previousDownloadStateForVideo[R];_.f$(u)})};
G3P=function(R,y){var u;return _.I(function(v){if(v.nextAddress==1)return v.yield(R.JSC$18196_playerApiPromise,2);u=v.yieldResult;return v.yield(u.queueOfflineAction(y,R.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
ZhZ=function(){var R=_.ua().resolve(_.TE),y,u;return _.I(function(v){if(v.nextAddress==1)return v.yield(R.JSC$18196_playerApiPromise,2);if(v.nextAddress!=3)return y=v.yieldResult,u={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},v.yield(y.queueOfflineAction("!*$_ALL_ENTITIES_!*$",R.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",u),3);var Q=R.JSC$18196_commandHandler,M=Q.resolveCommand,K=_.fo("DELETING_ALL",void 0,"Downloads are being deleted");
M.call(Q,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Mq(K)}},popupType:"TOAST"}});_.f$(v)})};
EYo=function(R,y){var u,v,Q,M,K,h;return _.I(function(b){if(b.nextAddress==1)return b.yield(R.JSC$18196_persistentStorePromiseAccessor(),2);if(b.nextAddress!=3)return u=b.yieldResult,u?b.yield(aOo(u,_.dN,"downloadsPageViewConfigurationEntity"),3):(_.kT(new _.OL("PES is undefined")),b.return());Q=(v=b.yieldResult)!=null?v:{};h=(K=(M=Q)==null?void 0:M.downloadsUpsellBannerVisibility)!=null?K:{};return h.visibleWithConnection?b.yield(y.refreshAllStaleEntities(0),0):b.jumpTo(0)})};
$5a=function(R){var y,u;return _.I(function(v){if(v.nextAddress==1)return v.yield(R.JSC$18196_prefStorage,2);y=v.yieldResult;return v.return((u=y)==null?void 0:u.get("sdois"))})};
qzp=function(R){var y,u,v,Q,M,K;return _.I(function(h){if(h.nextAddress==1)return h.yield(R.JSC$18196_persistentStorePromiseAccessor(),2);if(h.nextAddress!=3){y=h.yieldResult;if(!y)return _.kT(new _.OL("PES is undefined")),h.return();u=_.Nq("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return h.yield(aOo(y,u,"settingEntity"),3)}v=h.yieldResult;return h.return((K=(Q=v)==null?void 0:(M=Q.settingOptionValue)==null?void 0:M.boolValue)!=null?K:!1)})};
X2a=function(R,y){var u,v,Q,M;return _.I(function(K){switch(K.nextAddress){case 1:return((u=y)==null?void 0:u.formatType)===void 0?K.return():K.yield(R.JSC$18196_prefStorage,2);case 2:v=K.yieldResult;if(v===void 0)return K.return();if(((Q=y)==null?void 0:Q.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return K.yield(v.set("lmqf",y.formatType),8);if(((M=y)==null?void 0:M.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){K.jumpTo(0);break}return K.yield(v.set("lmqf",y.formatType),
6);case 6:return K.yield(v.set("lmqflst",Math.floor((0,_.uQ)())),0);case 8:return K.yield(v.remove("lmqflst"),0)}})};
m58=function(R){var y,u;return _.I(function(v){switch(v.nextAddress){case 1:return v.yield(R.JSC$18196_prefStorage,2);case 2:y=v.yieldResult;if(!y){v.jumpTo(3);break}return v.yield(y.get("lmqflst"),4);case 4:if(u=v.yieldResult,u!==void 0)return v.return(u);case 3:return v.return(0)}})};
AGp=function(R){var y,u;return _.I(function(v){switch(v.nextAddress){case 1:return v.yield(R.JSC$18196_prefStorage,2);case 2:y=v.yieldResult;if(y===void 0){v.jumpTo(3);break}return v.yield(y.get("lmqf"),4);case 4:if(u=v.yieldResult,u!==void 0)return v.return(u);case 3:return v.return("SD")}})};
X_g=function(R,y,u){var v,Q,M,K,h,b,N,T;_.I(function(x){switch(x.nextAddress){case 1:return x.yield(X2a(R,(v=y)==null?void 0:v.actionParams),2);case 2:Q=y.playlistId;if(!Q)return x.return();if(y.action==="ACTION_ADD")return((K=y.actionParams)==null?0:K.formatType)?x.yield(PGJ(R,Q,y.actionParams.formatType,(T=y.actionParams)==null?void 0:T.settingsAction,u),0):x.yield(R.offlineWebClientEligibility,14);if(y.action==="ACTION_REMOVE_WITH_PROMPT"){var B=R.JSC$18196_commandHandler,l=B.resolveCommand,Z=
_.EB("INNERTUBE_CLIENT_NAME");var P=Z==="WEB_REMIX"?_.fo("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.fo("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var k=Z==="WEB_REMIX"?[_.fo("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];Z=Z==="WEB_REMIX"?_.fo("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.fo("DELETE",void 0,"Delete");var E=_.fo("CANCEL",void 0,"Cancel");P=$SP(P,k,Z,E,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:Q});
l.call(B,{openPopupAction:P});return x.return()}if(y.action==="ACTION_REMOVE")return x.yield(G3P(R,Q),0);if(y.action!=="ACTION_SYNC"){x.jumpTo(0);break}return x.yield(R.JSC$18196_playerApiPromise,9);case 9:return M=x.yieldResult,x.yield(M.queueOfflineAction(Q,R.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return h=x.yieldResult,x.yield(AGp(R),15);case 15:return b=x.yieldResult,x.yield(m58(R),16);case 16:N=x.yieldResult,y.onAddCommand&&R.JSC$18196_commandHandler.resolveCommand(y.onAddCommand,
{form:{preferredFormatType:b,offlineWebClientEligibility:h,lastOfflineQualitySettingsSavedMs:N.toString()}}),x.jumpTo(0)}})};
$RI=function(R,y,u){var v,Q,M,K,h,b,N,T,x,B,l,Z,P,k;_.I(function(E){switch(E.nextAddress){case 1:return E.yield(X2a(R,(v=y)==null?void 0:v.actionParams),2);case 2:Q=y.videoId;if(!Q)return E.return();if(y.action==="ACTION_REMOVE_WITH_PROMPT"){var D=R.JSC$18196_commandHandler,z=D.resolveCommand,c=_.EB("INNERTUBE_CLIENT_NAME");var a=c==="WEB_REMIX"?_.fo("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.fo("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var L=c==="WEB_REMIX"?[_.fo("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];c=c==="WEB_REMIX"?_.fo("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.fo("DELETE",void 0,"Delete");var QG=_.fo("CANCEL",void 0,"Cancel");a=$SP(a,L,c,QG,{signal:"DELETE_DOWNLOAD",targetId:Q});z.call(D,{openPopupAction:a});return E.return()}if(y.action==="ACTION_ADD")return((B=y.actionParams)==null?0:B.formatType)?E.yield(d5m(R,Q,y.actionParams.formatType,(k=y.actionParams)==null?void 0:k.settingsAction,u),0):E.yield(R.offlineWebClientEligibility,
23);if(y.action==="ACTION_RETRY")return E.yield(AGp(R),19);if(y.action==="ACTION_PAUSE")return E.yield(R.pauseVideoDownload(Q),0);if(y.action==="ACTION_RESUME")return E.yield(R.resumeVideoDownload(Q),0);if(y.action!=="ACTION_REMOVE"){E.jumpTo(0);break}return E.yield(WhH(R,Q),13);case 13:return M=E.yieldResult,R.previousDownloadStateForVideo[Q]=(K=M)!=null?K:"DOWNLOAD_STATE_UNKNOWN",E.yield(kxp(R,Q,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(R.previousDownloadStateForVideo[Q]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
R.previousDownloadStateForVideo[Q]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){E.jumpTo(15);break}return E.yield(R.pauseVideoDownload(Q),15);case 15:D=_.fo("DELETED_VIDEO",void 0,"Video deleted from downloads.");z=_.fo("UNDO_ACTION",void 0,"Undo");a=_.fo("CLOSE",void 0,"Close");h={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Mq(D),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Mq(z),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:Q}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:D+" "+z}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:Q}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:a}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};R.JSC$18196_commandHandler.resolveCommand(h);
E.jumpTo(0);break;case 19:b=E.yieldResult;b==="UNKNOWN_FORMAT_TYPE"&&(b="SD");N="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((T=y.actionParams)==null?0:T.formatType)b=y.actionParams.formatType,N=(x=y.actionParams)==null?void 0:x.settingsAction;return E.yield(U5H(R,Q,b,N,u),20);case 20:return E.return();case 23:return l=E.yieldResult,E.yield(AGp(R),24);case 24:return Z=E.yieldResult,E.yield(m58(R),25);case 25:P=E.yieldResult,y.onAddCommand&&R.JSC$18196_commandHandler.resolveCommand(y.onAddCommand,
{form:{preferredFormatType:Z,offlineWebClientEligibility:l,lastOfflineQualitySettingsSavedMs:P.toString()}}),E.jumpTo(0)}})};
D5K=function(R,y){var u,v,Q,M,K,h,b;return _.I(function(N){if(N.nextAddress==1)return N.yield(R.JSC$18196_persistentStorePromiseAccessor(),2);u=N.yieldResult;if(!u)return _.kT(new _.OL("PES is undefined")),N.return();if((v=y)==null||!v.settingItemId)return N.return();Q=y;M=Q.settingItemId;K=Q.boolValue;h=_.Nq(M,"settingEntity");b={key:h,settingOptionValue:{boolValue:K}};return N.yield(cFH(u,b),0)})};
p28=function(R,y){var u,v,Q,M,K,h,b;return _.I(function(N){switch(N.nextAddress){case 1:return N.yield(R.JSC$18196_prefStorage,2);case 2:return u=N.yieldResult,v=_.O9(),N.yield(R.JSC$18196_persistentStorePromiseAccessor(),3);case 3:return Q=N.yieldResult,u?Q?N.yield(u.get("sdois"),4):(_.kT(new _.OL("PES is undefined")),N.return()):(_.kT(new _.OL("prefStorage is undefined")),N.return());case 4:M=N.yieldResult;h=(K=y)==null?void 0:K.boolValue;h===void 0||_.f("kevlar_set_sd_enabled_flag_killswitch")||
_.Zq(0,197,!0);M===void 0&&h===void 0&&(h=!1);if(h===void 0){N.jumpTo(0);break}return N.yield(u.set("sdois",h),6);case 6:return _.f("kevlar_set_sd_enabled_flag_killswitch")||(_.Zq(0,196,h),v.save()),b={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:h},N.yield(D5K(R,b),0)}})};
t8p=function(R,y,u){var v,Q,M,K,h;return _.I(function(b){switch(b.nextAddress){case 1:return b.yield($5a(R),2);case 2:return v=b.yieldResult,b.yield(p28(R,u),3);case 3:return b.yield($5a(R),4);case 4:return Q=b.yieldResult,M=Q!==v,b.yield(qzp(R),5);case 5:K=b.yieldResult&&!_.f("kevlar_modern_downloads_page");if((h=!Q&&!K)||M)return b.yield(y.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);b.jumpTo(0)}})};
dR8=function(){var R=_.ua().resolve(_.TE),y;_.I(function(u){switch(u.nextAddress){case 1:return u.yield(R.JSC$18196_playerApiPromise,2);case 2:y=u.yieldResult;if(!_.f("kevlar_force_refresh_smart_downloads")){u.jumpTo(3);break}return u.yield(y.refreshAllStaleEntities(0),4);case 4:return u.return();case 3:return u.yield(y.refreshAllStaleEntities(),5);case 5:return u.yield(t8p(R,y),6);case 6:if(_.f("enable_download_pep_for_premium_countries_web"))return u.yield(EYo(R,y),0);u.jumpTo(0)}})};
A68=function(R,y){var u,v;_.I(function(Q){switch(Q.nextAddress){case 1:return Q.yield(R.JSC$18196_playerApiPromise,2);case 2:u=Q.yieldResult;switch((v=y)==null?void 0:v.settingItemId){case "SMART_DOWNLOADS_ENABLED":return Q.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return Q.jumpTo(4)}Q.jumpTo(0);break;case 3:return Q.yield(t8p(R,u,y),6);case 6:Q.jumpTo(0);break;case 4:return Q.yield(D5K(R,y),7);case 7:Q.jumpTo(0)}})};
cG7=function(R,y){var u,v,Q;return _.I(function(M){if(M.nextAddress==1)return M.yield(R.JSC$18196_persistentStorePromiseAccessor(),2);if(M.nextAddress!=3){u=M.yieldResult;if(!u)return _.kT(new _.OL("PES is undefined")),M.return(!1);if(!y)return M.return(!1);v=_.Nq(y,"mainVideoEntity");return M.yield(aOo(u,v,"mainVideoEntity"),3)}Q=M.yieldResult;return M.return(Q!==void 0)})};
p_a=function(R){var y=_.ua().resolve(_.TE),u,v,Q,M,K,h,b,N,T,x,B;_.I(function(l){switch(l.nextAddress){case 1:return l.yield(y.JSC$18196_playerApiPromise,2);case 2:u=l.yieldResult;Q=(v=R)==null?void 0:v.actions;if(!Q)return l.return();M=_.V(Q);K=M.next();case 3:if(K.done){l.jumpTo(0);break}h=K.value;N=b=void 0;if(!(((b=h)==null?0:b.entityKey)&&((N=h)==null?0:N.actionType))){l.jumpTo(4);break}T=_.bE(h.entityKey);x=T.entityId;B=T.entityType;return l.yield(u.queueOfflineAction(x,B,h.actionType),4);case 4:K=
M.next(),l.jumpTo(3)}})};
aTM=function(R,y){var u,v,Q,M,K;return _.I(function(h){if(h.nextAddress==1)return h.yield(R.JSC$18196_prefStorage,2);if(h.nextAddress!=3)return(u=h.yieldResult)?h.yield(u.get("psi"),3):h.return();v=h.yieldResult;K={isPaused:y,lastSyncTimestamp:(M=(Q=v)==null?void 0:Q.lastSyncTimestamp)!=null?M:"0"};return h.yield(u.set("psi",K),0)})};
alJ=function(R){var y=_.ua().resolve(_.TE),u,v,Q,M,K,h,b,N;return _.I(function(T){switch(T.nextAddress){case 1:return T.yield(y.JSC$18196_playerApiPromise,2);case 2:u=T.yieldResult;Q=((v=R)==null?void 0:v.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((h=R)==null?void 0:h.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":M="!*$_ALL_ENTITIES_!*$";K="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return T.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return T.jumpTo(4)}T.jumpTo(5);break;case 3:return T.yield(aTM(y,Q),6);case 6:T.jumpTo(5);break;case 4:return T.yield(cG7(y,(b=R)==null?void 0:b.videoId),7);case 7:T.yieldResult&&(M=(N=R)==null?void 0:N.videoId,K="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");T.jumpTo(5);break;case 5:if(M&&K)return T.yield(u.queueOfflineAction(M,"videoPlaybackPositionEntity",K),0);T.jumpTo(0)}})};
Sz7=function(R,y){var u;y!==1||((u=R.currentPersistentToast)==null?0:u.isOpened())?R.openToast():R.currentPersistentToast=void 0};
YzV=function(R,y){var u;return(u=R.transitionTasksMap.get(y))!=null?u:[]};
LhZ=function(R,y){var u=[];R.elementTasksMap.forEach(function(v){(v=v.get(y))&&u.push(v)});
return u};
sya=function(R,y,u,v){v=v===void 0?{}:v;var Q=R.defaultViewTransitionOptions;return Object.assign({},Q,v,{beforeTransition:function(){u.forEach(function(b){b.beforeTransition()});
var M;(M=Q.beforeTransition)==null||M.call(Q);var K,h;(h=(K=v).beforeTransition)==null||h.call(K);y.forEach(function(b){b.beforeTransition()})},
afterTransition:function(){u.forEach(function(b){b.afterTransition()});
var M;(M=Q.afterTransition)==null||M.call(Q);var K,h;(h=(K=v).afterTransition)==null||h.call(K);y.forEach(function(b){b.afterTransition()})}})};
ztJ=function(R,y,u){R.transitionTasksMap.has(y)?R.transitionTasksMap.get(y).push(u):(R=new _.OL("Transition task registered for unknown transition type",y),_.dI(R))};
gYH=function(R,y,u){if(R.transitionTasksMap.has(y)){var v=R.transitionTasksMap.get(y).filter(function(Q){return Q!==u});
R.transitionTasksMap.set(y,v)}};
CGa=function(R,y){var u=YzV(R,y);u=_.V(u);for(var v=u.next();!v.done;v=u.next())v=v.value,v.runOnce&&gYH(R,y,v);R.elementTasksMap.forEach(function(Q,M){Q.forEach(function(K,h){K.runOnce&&y===h&&(Q.delete(h),Q.size===0&&R.elementTasksMap.delete(M))})})};
Rog=function(R,y,u){var v,Q,M,K,h,b,N,T,x;_.I(function(B){if(B.nextAddress==1){if(R.config.disableAllTransitions)return B.return(y());if((v=u)==null||!v.transitionType)return B.return(_.SXm(y,(Q=u)==null?void 0:Q.viewTransitionOptions));M=u;K=M.transitionType;h=M.viewTransitionOptions;b=R.config.transitionConfigs.get(K);if(!b)return B.return(y());N=YzV(R,K);T=LhZ(R,K);x=_.SXm(y,sya(b,N,T,h));return B.yield(x,2)}CGa(R,K);_.f$(B)})};
yeI=function(){var R,y,u,v;return _.I(function(Q){if(Q.nextAddress==1)return R=navigator,(y=R.storage)!=null&&y.persisted?Q.yield((u=R.storage)==null?void 0:u.persisted(),2):Q.return("PERSISTED_STATE_NOT_SUPPORTED");v=Q.yieldResult;return Q.return(v?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
u1a=function(){var R,y,u,v;return _.I(function(Q){if(Q.nextAddress==1)return R=navigator,(y=R.storage)!=null&&y.persist?Q.yield((u=R.storage)==null?void 0:u.persist(),2):Q.return("PERSISTED_STATE_NOT_SUPPORTED");v=Q.yieldResult;return Q.return(v?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
vla=function(){var R,y;return _.I(function(u){switch(u.nextAddress){case 1:return R="PERSISTED_STATE_NOT_SUPPORTED",_.wY(u,2),u.yield(yeI(),4);case 4:R=u.yieldResult;if(R!=="PERSISTED_STATE_NOT_GRANTED"){u.jumpTo(5);break}return u.yield(u1a(),6);case 6:R=u.yieldResult;case 5:_.c5(u,3);break;case 2:y=_.B$(u),y instanceof Error&&_.dI(y);case 3:return _.P3("persistentStorageStateChecked",{persistedState:R}),u.return(R)}})};
Q2I=function(R,y){var u=[],v=!1;y=_.V(y);for(var Q=y.next();!Q.done;Q=y.next()){Q=R.moduleRegistry[Q.value];var M=void 0,K=void 0;((M=Q)==null?0:M.isFetching)&&((K=Q)==null?0:K.resolver)?(u.push(Q.resolver.promise),v=!0):(Q=new _.xv,Q.resolve(void 0),u.push(Q.promise))}return v?Promise.all(u):void 0};
aV7=function(R,y){if(R.isAnyTransitionEnabled){var u={};R.viewTransitionCoordinator.registerElement(y,(u.slide="miniplayer-page-transition",u["lockup-to-watch"]="miniplayer-page-transition",u["learning-journey"]="miniplayer-page-transition",u))}};
j2H=function(R,y,u){if(R.isAnyTransitionEnabled){var v={beforeTransition:function(){u(!0);y.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){y.style.viewTransitionName&&(y.style.viewTransitionName="",u(!1))}};
ztJ(R.viewTransitionCoordinator,"slide",v);ztJ(R.viewTransitionCoordinator,"lockup-to-watch",v);ztJ(R.viewTransitionCoordinator,"watch-next-appears",v);ztJ(R.viewTransitionCoordinator,"learning-journey",v)}};
MVp=function(R,y){R.isBrowseTransitionEnabled?Rog(R.viewTransitionCoordinator,y,{transitionType:"slide"}):(y(),Promise.resolve())};
Jeo=function(R,y){R.isLockupToWatchTransitionEnabled?Rog(R.viewTransitionCoordinator,y,{transitionType:"lockup-to-watch",viewTransitionOptions:{afterTransition:function(){R.registeredLockupThumbnail=void 0;R.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(y(),Promise.resolve())};
VVp=function(R,y){R.isLockupToWatchTransitionEnabled?Rog(R.viewTransitionCoordinator,y,{transitionType:"watch-next-appears"}):(y(),Promise.resolve())};
iRH=function(R,y){R.isLearningJourneyTransitionEnabled?Rog(R.viewTransitionCoordinator,y,{transitionType:"learning-journey"}):(y(),Promise.resolve())};
Kra=function(R,y,u){if(R.isInitialized()){var v=fm(u),Q=v==="watch";v=v==="shorts";var M=fm(y)==="watch";if(Q)M||(R.backgroundPageData=y),R.watchPipMode&&M||R.deactivate(u.endpoint);else if(v){if(fm(y)!=="shorts"){var K;(K=R.getPlayerElement())==null||K.pause()}}else M&&!R.watchPipMode&&(XA7(y,u)?(R.watchWhileMode&&_.Lv7(R,!1),_.psa(R,y)):R.isMiniplayerActive()&&R.watchWhileMode&&R.deactivate());M&&_.zSM(R);R.shortsPipMode&&!v&&(window.focus(),R.deactivate());if(R.pictureInPictureEnabled())if(v&&
R.shortsPipEnabled||Q&&R.watchPipEnabled)_.mNE(R.handleMediaSessionPipActivation);else if(!R.isMiniplayerActive()&&(R.shortsPipEnabled||R.watchPipEnabled)&&window.documentPictureInPicture&&_.GT()&&_.F4T("Chromium")>=120){R=_.XF8().mediaSession;try{R.setActionHandler("enterpictureinpicture",null)}catch(h){}}}};
IAp=function(R,y){var u,v;_.I(function(Q){if(Q.nextAddress==1){if(!R||!R.navigationEndpoint)return Q.return();_.Hr().lockupActivation=!0;var M;y?M=_.ye(_.fo("QUEUE",void 0,"Queue")):M=R.longBylineText;v=(u=M)&&R.title?{miniplayerTitle:R.title,miniplayerSubtitle:u,playlistData:null}:void 0;return Q.yield(_.PPw(_.ua().resolve(_.cZ),R.navigationEndpoint,!0,v),2)}_.Hr().userActivation=!0;_.f$(Q)})};
XNI=function(R,y){var u,v,Q,M,K,h;_.I(function(b){if(b.nextAddress==1){u=_.e(y,_.iIY);if(!u||!u.listId)return b.return();R.index=u.index||R.index||0;v=R.response&&R.response.playingVideoId||void 0;return b.yield(_.Ar5(R.JSC$12824_playlistNetworkManager,u.listId,R.index,v),2)}Q=b.yieldResult;if(!Q)return b.return();M=Q.playlistId;K=Q.playlistPanelRenderer;!R.queueProxy&&M&&K&&M.startsWith("TLPQ")&&(R.queueProxy=new _.ts(R.JSC$12824_playlistNetworkManager,M,R.setPlaylistData.bind(R),R.clearQueue.bind(R),
_.zNT(K),R.storage));if(u.openMiniplayer&&(h=_.g1c(K))&&!R.pageManager.isOnWatch()){var N=h,T=u.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";R.isMiniplayerActive()?R.openToast(N):IAp(N,T)}R.setPlaylistData(M,K,Q.autoplayRenderer);_.f$(b)})};
EJ7=function(R,y){var u=_.gQ();u.index===void 0&&(u.index=0);u.temporaryItems.push.apply(u.temporaryItems,_.P$(R));if((y.videoId||y.videoIds)&&u.index!==void 0&&y.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!u.queueProxy){var v=[];if(u.response){var Q=_.ua().resolve(_.cZ).isMiniplayerActive();if(u.response.playlistPanelRenderer&&u.response.playlistId&&!u.response.playlistId.startsWith("TLPQ")){if(u.pageManager.isOnWatch()||Q)v=_.zNT(u.response.playlistPanelRenderer)}else u.response.playingVideoId&&
!y.openMiniplayer?v.push(u.response.playingVideoId):Q&&u.response.playingVideoId&&y.openMiniplayer&&v.push(u.response.playingVideoId)}u.queueProxy=new _.ts(u.JSC$12824_playlistNetworkManager,"",u.setPlaylistData.bind(u),u.clearQueue.bind(u),v,u.storage);u.queueProxy.JSC$12770_setCurrentIndex(u.index)}u.queueProxy.addVideos(y.videoIds||[y.videoId],y)}LkP(u,R);u.response&&_.Cx(u,_.Ri(u,u.response.autoplayRenderer));u.pageManager.isOnWatch()?u.isMiniplayerActive()&&u.openToast(R[0]):(R=R[0],y=y.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",u.isMiniplayerActive()?u.openToast(R):IAp(R,y))};
hoa=function(R){var y=_.tL(R);if(y=="object"||y=="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);y=y=="array"?[]:{};for(var u in R)y[u]=hoa(R[u]);return y}return R};
dO=function(R,y){return _.KVG(_.Ok(R,y,void 0,_.lo))};
U1=function(R,y){return _.y8(_.Ok(R,y,void 0,_.lo))};
k3=function(R,y){return _.WVE(_.Ok(R,y,void 0,_.lo))};
E1=function(R,y){return _.Ok(R,y,void 0,_.lo,_.VgU)};
bRm=_.Q4(function(R,y,u){if(R.nextWireType_!==0)return!1;_.jy(y,u,_.cQ(R.decoder_,_.MgT));return!0},_.ib,_.sk);
Fr7=_.Q4(function(R,y,u,v){if(R.nextWireType_!==0)return!1;_.G$(y,u,v,_.cQ(R.decoder_,_.MgT));return!0},_.ib,_.sk);
wZP=_.Q4(function(R,y,u){if(R.nextWireType_!==1)return!1;var v=R.decoder_;R=_.Sd(v);v=_.Sd(v);R=_.X5(R,v);_.jy(y,u,R);return!0},_.nEP,_.RMT);
NXp=_.Q4(function(R,y,u){if(R.nextWireType_!==5)return!1;_.jy(y,u,_.Sd(R.decoder_));return!0},function(R,y,u){y=_.bYE(y);
y!=null&&(_.Jq(R,u,5),_.V4(R.encoder_,y))},_.CcU);
TX7=_.Q4(function(R,y,u){if(R.nextWireType_!==0)return!1;R=_.UZL(R.decoder_);_.jy(y,u,R===!1?void 0:R);return!0},_.GBT,_.LTT);
olm=_.Q4(function(R,y,u){if(R.nextWireType_!==2)return!1;R=_.mZT(R);_.jy(y,u,R===""?void 0:R);return!0},_.Pbv,_.sBO);
xrZ=_.Q4(function(R,y,u){if(R.nextWireType_!==2)return!1;R=_.AQz(R);_.jy(y,u,R===_.nY()?void 0:R);return!0},_.dyU,_.vmz);
BXZ=_.oEz(function(R,y,u){if(R.nextWireType_!==0&&R.nextWireType_!==2)return!1;y=_.nMP(y,y[_.jg]|0,u);R.nextWireType_==2?_.DZL(R,lO7,y):y.push(_.aE(R.decoder_));return!0},function(R,y,u){y=_.TCE(_.y8,y,!0);
if(y!=null&&y.length){u=_.DVU(R,u);for(var v=0;v<y.length;v++)_.OK8(R.encoder_,y[v]);_.pHE(R,u)}},_.QwU);
fAZ=_.Q4(function(R,y,u){if(R.nextWireType_!==0)return!1;R=_.aE(R.decoder_);_.jy(y,u,R===0?void 0:R);return!0},_.UyT,_.QwU);
eoo=_.Q4(function(R,y,u,v){if(R.nextWireType_!==0)return!1;_.G$(y,u,v,_.aE(R.decoder_));return!0},_.UyT,_.QwU);
_.uB=function(R){this.privateDoNotAccessOrElseWrappedStyleSheet=R};
_.uB.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var L8M=function(R,y){return new _.dc(R.x+y.x,R.y+y.y)},lAZ=function(R){return R.previousElementSibling!==void 0?R.previousElementSibling:_.wHb(R.previousSibling,!1)},ORK=function(R,y){var u=[];
for(y=y||0;y<R.length;y+=2)_.QKT(R[y],R[y+1],u);return u.join("&")},ZRJ=function(R,y){var u=arguments.length==2?ORK(arguments[1],0):ORK(arguments,1);
return _.vE5(R,u)},ZzV=_.hq(_.pX),HRa=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(HRa,_.y4);HRa.prototype.getTypeName=function(){return _.$U(this,1).split("/").pop()};
HRa.prototype.getValue=function(){var R=_.Ok(this,2);if(Array.isArray(R)||R instanceof _.y4)throw Error("W");return _.nU(this,2)};
var bcg=function(){var R=_.Fb();this.JSC$9887_streamzService=R;R.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.V7("channel_type"))};
bcg.prototype.increment=function(R){this.JSC$9887_streamzService.JSC$9755_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",R)};
var FHm=function(){var R=_.Fb();this.JSC$9890_streamzService=R;R.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.V7("channel_type"))};
FHm.prototype.increment=function(R){this.JSC$9890_streamzService.JSC$9755_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",R)};
var Nw8=function(){var R=_.Fb();this.JSC$9893_streamzService=R;R.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.V7("channel_type"))};
Nw8.prototype.increment=function(R){this.JSC$9893_streamzService.JSC$9755_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",R)};
var wVH=function(){var R=_.Fb();this.JSC$9896_streamzService=R;R.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
wVH.prototype.increment=function(){this.JSC$9896_streamzService.JSC$9755_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var TwV=function(){var R=_.Fb();this.JSC$9899_streamzService=R;R.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.V7("channel_type"),_.V7("error_type"))};
TwV.prototype.increment=function(R,y){this.JSC$9899_streamzService.JSC$9755_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",R,y)};
var ovZ=function(){var R=_.Fb();this.JSC$9902_streamzService=R;R.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
ovZ.prototype.increment=function(){this.JSC$9902_streamzService.JSC$9755_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var xBp=function(){var R=_.Fb();this.JSC$9905_streamzService=R;R.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
xBp.prototype.increment=function(){this.JSC$9905_streamzService.JSC$9755_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var IOm=function(){var R=_.Fb();this.JSC$9911_streamzService=R;R.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
IOm.prototype.increment=function(){this.JSC$9911_streamzService.JSC$9755_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var nlo=function(R){return R.getCount&&typeof R.getCount=="function"?R.getCount():_.p8(R)||typeof R==="string"?R.length:_.Ps.getCount(R)},GKZ=function(R,y){if(typeof R.every=="function")return R.every(y,void 0);
if(_.p8(R)||typeof R==="string")return Array.prototype.every.call(R,y,void 0);for(var u=_.jM5(R),v=_.Qh(R),Q=v.length,M=0;M<Q;M++)if(!y.call(void 0,v[M],u&&u[M],R))return!1;return!0},reg=function(R,y,u,v){var Q=new _.Cv(null);
R&&_.jY(Q,R);y&&_.ME(Q,y);u&&_.Jt(Q,u);v&&_.Vh(Q,v);return Q},P1J=function(){var R=_.qC&&_.wE(_.xtc,10)>=0,y;
if(y=_.YYE)y=_.wE(_.o2c,10)>=0;var u=_.BQ&&_.wE(_.xtc,85)>=0;return _.NO||R||y||u},Wrp=function(R){var y=_.qmc(R);
return y&&P1J()?-R.scrollLeft:y&&_.Xv(R,"overflowX")!="visible"?R.scrollWidth-R.clientWidth-R.scrollLeft:R.scrollLeft},dr7=function(R,y){y=Math.max(y,0);
_.qmc(R)?P1J()?R.scrollLeft=-y:R.scrollLeft=R.scrollWidth-y-R.clientWidth:R.scrollLeft=y},R6J=0,jRH=!1;
lK.prototype.set=function(R){this.relativeTimeStart_=R};
lK.prototype.reset=function(){this.set(_.KU())};
lK.prototype.get=function(){return this.relativeTimeStart_};
var Urm=null,kKJ=function(){Urm||(Urm=new lK)},ElI=function(){Urm||(Urm=new lK)};
_.IE(ElI,kKJ);_.J=JlP.prototype;_.J.JSC$11272_buffer_="";_.J.set=function(R){this.JSC$11272_buffer_=""+R};
_.J.append=function(R,y,u){this.JSC$11272_buffer_+=String(R);if(y!=null)for(var v=1;v<arguments.length;v++)this.JSC$11272_buffer_+=arguments[v];return this};
_.J.clear=function(){this.JSC$11272_buffer_=""};
_.J.getLength=function(){return this.JSC$11272_buffer_.length};
_.J.toString=function(){return this.JSC$11272_buffer_};
var $r7=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_=WkZ;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]}};
$r7.prototype.format=function(R){return qJM(this,R)};
var qJM=function(R,y){var u=y.length;switch(u){case 0:return"";case 1:return String(y[0]);case 2:return R.listTwoPattern_.replace("{0}",String(y[0])).replace("{1}",String(y[1]))}for(var v=R.listStartPattern_.replace("{0}",String(y[0])).replace("{1}",String(y[1])),Q=2;Q<u-1;++Q)v=R.listMiddlePattern_.replace("{0}",v).replace("{1}",String(y[Q]));return R.listEndPattern_.replace("{0}",v).replace("{1}",String(y[u-1]))},lx8=function(){var R={style:1};
this.style_=(R==null?void 0:R.style)||0;this.durationSymbols_=_.bwb||_.Qc5},XZJ=function(R,y){switch(y){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}},$3=function(R,y,u){a:{u=XZJ(R,u);
switch(R.style_){case 1:if(u.LONG!=void 0){R=u.LONG;break a}case 2:if(u.NARROW!=void 0){R=u.NARROW;break a}default:R=u.SHORT;break a}R=void 0}return R?(new _.Hkb("{DURATION_VALUE,plural,"+R+"}")).format({DURATION_VALUE:y}):""};
lx8.prototype.format=function(R){var y=[],u=R.years,v=R.months,Q=R.weeks,M=R.days,K=R.hours,h=R.minutes;R=R.seconds;u!=null&&y.push($3(this,u,"years"));v!=null&&y.push($3(this,v,"months"));Q!=null&&y.push($3(this,Q,"weeks"));M!=null&&y.push($3(this,M,"days"));K!=null&&y.push($3(this,K,"hours"));h!=null&&y.push($3(this,h,"minutes"));R!=null&&y.push($3(this,R,"seconds"));return(new $r7).format(y)};
var mr8=!1,Fba=function(R){_.RL.call(this,R.message||R.description||R.name);this.isMissing=R instanceof OE;this.isTimeout=R instanceof _.hg&&R.errorCode=="net.timeout";this.isCanceled=R instanceof _.LX};
_.O(Fba,_.RL);Fba.prototype.name="BiscottiError";var OE=function(){_.RL.call(this,"Biscotti ID is missing from server")};
_.O(OE,_.RL);OE.prototype.name="BiscottiMissingError";var Zf=null,GJV=function(){try{var R=_.D6("yt.ads.biscotti.getId_");return R?R():Sl7()}catch(y){return _.qk(y)}},e6V,AeZ=function(R,y){return _.iE({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:R,command:y}})},DrH=function(R){return _.iE({type:"SET_GUIDE_IS_EXPANDED",
payload:R})},pZm=function(R){return _.iE({type:"SET_ONLINE_STATUS",
payload:R})},tV7=function(R,y){return _.iE({type:"SET_TRANSCRIPTION_STATE",
payload:{high:R,low:y}})},cea=function(R){return _.iE({type:"SET_OVERLAY_STATE",
payload:R})},aAm=0,SJH=function(R,y,u){var v=this;
this.priority=y;this.delay=u;this.jobId=0;this.completionCallback=_.ZM;this.wrappedJob=function(){R();v.completionCallback()};
this.id=++aAm};
SJH.prototype.enqueue=function(R){this.completionCallback=R;this.jobId=_.WG.addJob(this.wrappedJob,this.priority,this.delay)};
var qx=function(){_.KV.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.O(qx,_.KV);qx.prototype.addJob=function(R,y,u){R=new SJH(R,y,u);this.taskIdToTask.set(R.id,R);this.isActive?YJa(this,R):this.suspendedTasks.add(R);return R.id};
var YJa=function(R,y){R.scheduledTasks.add(y);y.enqueue(function(){R.scheduledTasks.delete(y)})};
qx.prototype.cancelJob=function(R){(R=this.taskIdToTask.get(R))&&(this.scheduledTasks.delete(R)?_.WG.cancelJob(R.jobId):this.suspendedTasks.delete(R))};
qx.prototype.pause=function(){var R=this;this.isActive=!1;this.scheduledTasks.forEach(function(y){_.WG.cancelJob(y.jobId);R.suspendedTasks.add(y)});
this.scheduledTasks.clear()};
qx.prototype.start=function(){var R=this;this.isActive=!0;this.suspendedTasks.forEach(function(y){YJa(R,y)});
this.suspendedTasks.clear()};
qx.prototype.reset=function(){this.scheduledTasks.forEach(function(R){_.WG.cancelJob(R.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var XZ=function(R,y){this.JSC$12953_networkService_=R;this.pageRequestPromise=y};
XZ.prototype.fetchData=function(R){Lro(this,this.JSC$12953_networkService_.fetchData(R))};
XZ.prototype.postData=function(R,y){Lro(this,this.JSC$12953_networkService_.postData(R,y))};
XZ.prototype.requestDataForServiceEndpoint=function(R,y){Lro(this,this.JSC$12953_networkService_.requestDataForServiceEndpoint(R,y))};
var Lro=function(R,y){y.then(R.pageRequestPromise.onSuccess,R.pageRequestPromise.onFailure,R.pageRequestPromise)};
XZ.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var mD=function(R){this.buildNetworkRequest_=R;this.pendingRequests_=new Set};
mD.prototype.reset=function(){this.pendingRequests_.forEach(function(R){R.cancel()});
this.pendingRequests_.clear()};
mD.prototype.fetchData=function(R){var y=s2m(this);y.fetchData(R);return y.pageRequestPromise};
mD.prototype.postData=function(R,y){var u=s2m(this);u.postData(R,y);return u.pageRequestPromise};
mD.prototype.requestDataForServiceEndpoint=function(R,y){var u=s2m(this);u.requestDataForServiceEndpoint(R,y);return u.pageRequestPromise};
var s2m=function(R){var y=R.buildNetworkRequest_();R.pendingRequests_.add(y);var u=function(){R.pendingRequests_.delete(y)};
y.pageRequestPromise.then(u,u);return y},zoK=function(R){var y=new qx;
this.JSC$12960_networkService_=R;this.JSC$12960_taskManager_=y;this.JSC$12960_networkManager_=new mD(this.networkRequestFactory_.bind(this))};
_.J=zoK.prototype;_.J.networkRequestFactory_=function(){return new XZ(this.JSC$12960_networkService_,new _.bL(this.JSC$12960_taskManager_))};
_.J.reset=function(){this.JSC$12960_taskManager_.reset();this.JSC$12960_networkManager_.reset()};
_.J.start=function(){this.JSC$12960_taskManager_.start()};
_.J.pause=function(){this.JSC$12960_taskManager_.pause()};
_.J.getTaskManager=function(){return this.JSC$12960_taskManager_};
_.J.getNetworkManager=function(){return this.JSC$12960_networkManager_};
var GMZ=null,Wb7=[],Hz=0,GG=0,nm=null,glp=!1,r8=null,U4J=void 0,C1H=function(){var R=(0,_.RPL)();R&&UpH(R,R.mechanism.__iterator__(!0))},Wz=function(R){this.token=R};
Wz.getInstance=function(){var R;return _.I(function(y){if(y.nextAddress==1)return y.yield(_.Rz(),2);R=y.yieldResult;if(!R)return y.return();Wz.instance||(Wz.instance=new Wz(R));return y.return(Wz.instance)})};
var m4H=function(R){var y;return _.I(function(u){if(u.nextAddress==1)return u.yield($4V(R.token),2);y=u.yieldResult;return u.return(y.clear("resource-manifest-assets"))})},Pz=function(R){this.token=R};
Pz.getInstance=function(){var R;return _.I(function(y){if(y.nextAddress==1)return y.yield(_.Rz(),2);R=y.yieldResult;if(!R)return y.return();Pz.instance||(Pz.instance=new Pz(R));return y.return(Pz.instance)})};
var qfg=function(R){var y;return _.I(function(u){if(u.nextAddress==1)return u.yield($4V(R.token),2);y=u.yieldResult;return u.yield(y.clear("auth"),0)})},MiV=!1,RD8=function(R){_.RL.call(this,R)};
_.O(RD8,_.d9Y);var yRo="a[href] a[tabindex] area[href] iframe [tabindex] [contentEditable] summary input:not([disabled]) select:not([disabled]) textarea:not([disabled]) button:not([disabled]) object:not([disabled])".split(" ");EFa()&&yRo.push("details:not(:has(summary))");var q9o=yRo.join(",");var jXP=function(){var R=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return R?parseInt(R[1],10):0},uDJ=function(R){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+R)!=-1||document.currentScript.src.indexOf("&"+R)!=-1)},vUo=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},K8m=function(R){R.length?QEm(R.shift(),function(){K8m(R)}):JwV()},h38=function(R){return"chrome-extension://"+R+"/cast_sender.js"},QEm=function(R,
y,u){var v=document.createElement("script");
v.onerror=y;u&&(v.onload=u);_.gC(v,_.Gl(R));(document.head||document.documentElement).appendChild(v)},jEZ=function(){var R=jXP(),y=[];
if(R>1){var u=R-1;y.push("//www.gstatic.com/eureka/clank/"+R+"/cast_sender.js");y.push("//www.gstatic.com/eureka/clank/"+u+"/cast_sender.js")}return y},JwV=function(){var R=vUo();
R&&R(!1,"No cast extension found")},iua=function(){if(Md8){var R=2,y=vUo(),u=function(){R--;
R==0&&y&&y(!0)};
window.__onGCastApiAvailable=u;QEm("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",JwV,u)}},M0o=function(){iua();
var R=jEZ();R.push("//www.gstatic.com/eureka/clank/cast_sender.js");K8m(R)},V0K=function(){iua();
var R=jEZ();R.push.apply(R,_.P$(IVm.map(h38)));R.push("//www.gstatic.com/eureka/clank/cast_sender.js");K8m(R)},Md8=uDJ("loadCastFramework")||uDJ("loadCastApplicationFramework"),IVm=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var JRo=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(JRo,_.y4);var VdZ=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(VdZ,_.y4);var iUZ=function(){var R=new VdZ;return _.pU(R,1,3)};var AY=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(AY,_.y4);var M6K=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(M6K,_.y4);var K9a=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(K9a,_.y4);K9a.prototype.getToken=function(){return _.$U(this,1)};
K9a.prototype.setToken=function(R){return _.R2(this,1,R)};
var Q3o=function(R){return _.Do(R,3,_.wa,_.Q7())},j3a=function(R){return _.Do(R,6,_.wa,_.Q7())};var DC=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(DC,_.y4);DC.prototype.getToken=function(){return _.Ne(this,K9a,2)};
DC.prototype.setToken=function(R){return _.wC(this,2,R)};
DC.prototype.getName=function(){return _.$U(this,6)};
var IFm=_.hq(DC);var hDo=function(R,y,u){this.requestMessage=R;this.methodDescriptor=y;this.metadata=u};
hDo.prototype.getMetadata=function(){return this.metadata};var bUK=function(R,y){y=y===void 0?{}:y;this.responseMessage=R;this.metadata=y;this.status=null};
bUK.prototype.getMetadata=function(){return this.metadata};
bUK.prototype.getStatus=function(){return this.status};var p1=function(R,y,u,v,Q){this.name=R;this.methodType="unary";this.requestType=y;this.responseType=u;this.requestSerializeFn=v;this.responseDeserializeFn=Q},F9K=function(R,y,u){u=u===void 0?{}:u;
return new hDo(y,R,u)};
p1.prototype.getName=function(){return this.name};var tY=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(tY,_.y4);tY.prototype.getHeader=function(){return _.Ne(this,AY,1)};
tY.prototype.setHeader=function(R){return _.wC(this,1,R)};
tY.prototype.hasHeader=function(){return _.ZF(this,AY,1)};var wQa=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(wQa,_.y4);var NVo=new p1("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",tY,wQa,function(R){return R.serialize()},_.hq(wQa));var cj=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(cj,_.y4);cj.prototype.getHeader=function(){return _.Ne(this,AY,1)};
cj.prototype.setHeader=function(R){return _.wC(this,1,R)};
cj.prototype.hasHeader=function(){return _.ZF(this,AY,1)};var TVp=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(TVp,_.y4);var oU8=new p1("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",cj,TVp,function(R){return R.serialize()},_.hq(TVp));var at=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(at,_.y4);at.prototype.getHeader=function(){return _.Ne(this,AY,1)};
at.prototype.setHeader=function(R){return _.wC(this,1,R)};
at.prototype.hasHeader=function(){return _.ZF(this,AY,1)};var xOI=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(xOI,_.y4);xOI.prototype.getLink=function(){return _.Ne(this,DC,1)};var BVK=new p1("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",at,xOI,function(R){return R.serialize()},_.hq(xOI));var Sk=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(Sk,_.y4);Sk.prototype.getHeader=function(){return _.Ne(this,AY,1)};
Sk.prototype.setHeader=function(R){return _.wC(this,1,R)};
Sk.prototype.hasHeader=function(){return _.ZF(this,AY,1)};var fFV=new p1("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",Sk,DC,function(R){return R.serialize()},IFm);var eDa=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(eDa,_.y4);var lF8=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(lF8,_.y4);lF8.prototype.getUrl=function(){return _.$U(this,2)};
lF8.prototype.setUrl=function(R){return _.R2(this,2,R)};var OUp=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(OUp,_.y4);var ZUa=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(ZUa,_.y4);var HUI=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(HUI,_.y4);var TNP=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(TNP,_.y4);var NNm=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(NNm,_.y4);var nUm=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(nUm,_.y4);var OzI=_.hq(nUm);var G$8=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(G$8,_.y4);var rRI=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(rRI,_.y4);_.J=rRI.prototype;_.J.getHeader=function(){return _.Ne(this,AY,1)};
_.J.setHeader=function(R){return _.wC(this,1,R)};
_.J.hasHeader=function(){return _.ZF(this,AY,1)};
_.J.getCompletionUrl=function(){return _.$U(this,6)};
_.J.getDeviceId=function(){return _.$U(this,11)};var Pop=new p1("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",rRI,nUm,function(R){return R.serialize()},OzI);var W9H=new Set(["SAPISIDHASH","APISIDHASH"]);var dO8=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(dO8,_.y4);dO8.prototype.getMessage=function(){return _.$U(this,2)};
var UOI=_.hq(dO8);var Y3=function(R,y){this.xhrNodeReadableStream_=R.nodeReadableStream;this.grpcResponseDeserializeFn_=y;this.JSC$19152_xhr_=R.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$19152_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&k$a(this)},AR7=function(R,y){var u=new EUg;
_.E4(R.JSC$19152_xhr_,"complete",function(){if(R.JSC$19152_xhr_.isSuccess()){var v=R.JSC$19152_xhr_.getResponseText();var Q;if(Q=y)Q=R.JSC$19152_xhr_,Q.JSC$9764_xhr_&&Q.isComplete()?(Q=Q.JSC$9764_xhr_.getResponseHeader("Content-Type"),Q=Q===null?void 0:Q):Q=void 0,Q=Q==="text/plain";if(Q){if(!atob)throw Error("Nj");v=atob(v)}try{var M=R.grpcResponseDeserializeFn_(v)}catch(h){L1(R,c_H(new _.U8(13,"Error when deserializing response data; error: "+h+(", response: "+v)),u));return}v=_.LqL(R.JSC$19152_xhr_.getStatus());
$OH(R,qka(R));v==0?XQJ(R,M):L1(R,c_H(new _.U8(v,"Xhr succeeded but the status code is not 200"),u))}else{v=R.JSC$19152_xhr_.getResponseText();M=qka(R);if(v){var K=mOZ(R,v);v=K.code;Q=K.details;K=K.metadata}else v=2,Q="Rpc failed due to xhr error. uri: "+String(R.JSC$19152_xhr_.JSC$9764_lastUri_)+", error code: "+R.JSC$19152_xhr_.JSC$9764_lastErrorCode_+", error: "+R.JSC$19152_xhr_.getLastError(),K=M;$OH(R,M);L1(R,c_H(new _.U8(v,Q,K),u))}})},k$a=function(R){R.xhrNodeReadableStream_.on("data",function(y){if("1"in
y){var u=y["1"];
try{var v=R.grpcResponseDeserializeFn_(u)}catch(Q){L1(R,new _.U8(13,"Error when deserializing response data; error: "+Q+(", response: "+u)))}v&&XQJ(R,v)}if("2"in y)for(y=mOZ(R,y["2"]),u=0;u<R.onStatusCallbacks_.length;u++)R.onStatusCallbacks_[u](y)});
R.xhrNodeReadableStream_.on("end",function(){$OH(R,qka(R));for(var y=0;y<R.onEndCallbacks_.length;y++)R.onEndCallbacks_[y]()});
R.xhrNodeReadableStream_.on("error",function(){if(R.JSC$19152_onErrorCallbacks_.length!=0){var y=R.JSC$19152_xhr_.JSC$9764_lastErrorCode_;y!==0||R.JSC$19152_xhr_.isSuccess()||(y=6);var u=-1;switch(y){case 0:var v=2;break;case 7:v=10;break;case 8:v=4;break;case 6:u=R.JSC$19152_xhr_.getStatus();v=_.LqL(u);break;default:v=14}$OH(R,qka(R));y=_.q6T(y)+", error: "+R.JSC$19152_xhr_.getLastError();u!=-1&&(y+=", http status code: "+u);L1(R,new _.U8(v,y))}})},qka=function(R){var y={},u=GwK(R.JSC$19152_xhr_);
Object.keys(u).forEach(function(v){y[v]=u[v]});
return y},mOZ=function(R,y){var u=2,v={};
try{var Q=UOI(y);u=_.jZ(Q,1);var M=Q.getMessage();_.vY(Q,HRa,3,_.Q7()).length&&(v["grpc-web-status-details-bin"]=y)}catch(K){R.JSC$19152_xhr_&&R.JSC$19152_xhr_.getStatus()===404?(u=5,M="Not Found: "+String(R.JSC$19152_xhr_.JSC$9764_lastUri_)):(u=14,M="Unable to parse RpcStatus: "+K)}return{code:u,details:M,metadata:v}};
Y3.prototype.on=function(R,y){R=="data"?this.onDataCallbacks_.push(y):R=="metadata"?this.onMetadataCallbacks_.push(y):R=="status"?this.onStatusCallbacks_.push(y):R=="end"?this.onEndCallbacks_.push(y):R=="error"&&this.JSC$19152_onErrorCallbacks_.push(y);return this};
var s1=function(R,y){y=R.indexOf(y);y>-1&&R.splice(y,1)};
Y3.prototype.removeListener=function(R,y){R=="data"?s1(this.onDataCallbacks_,y):R=="metadata"?s1(this.onMetadataCallbacks_,y):R=="status"?s1(this.onStatusCallbacks_,y):R=="end"?s1(this.onEndCallbacks_,y):R=="error"&&s1(this.JSC$19152_onErrorCallbacks_,y);return this};
Y3.prototype.cancel=function(){this.JSC$19152_xhr_.abort()};
var XQJ=function(R,y){for(var u=0;u<R.onDataCallbacks_.length;u++)R.onDataCallbacks_[u](y)},$OH=function(R,y){for(var u=0;u<R.onMetadataCallbacks_.length;u++)R.onMetadataCallbacks_[u](y)},L1=function(R,y){for(var u=0;u<R.JSC$19152_onErrorCallbacks_.length;u++)R.JSC$19152_onErrorCallbacks_[u](y)};
Y3.prototype.cancel=Y3.prototype.cancel;Y3.prototype.removeListener=Y3.prototype.removeListener;Y3.prototype.on=Y3.prototype.on;var EUg=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"};
_.O(EUg,Error);var z1=function(R){this.JSC$19161_worker_=R.worker||null;this.JSC$19161_streamBinaryChunks_=R.streamBinaryChunks||!1;this.JSC$19161_credentialsMode_=void 0};
_.IE(z1,_.z2T);z1.prototype.createInstance=function(){var R=new gO(this.JSC$19161_worker_,this.JSC$19161_streamBinaryChunks_);this.JSC$19161_credentialsMode_&&R.setCredentialsMode(this.JSC$19161_credentialsMode_);return R};
z1.prototype.setCredentialsMode=function(R){this.JSC$19161_credentialsMode_=R};
var gO=function(R,y){_.nT.call(this);this.JSC$19165_worker_=R;this.JSC$19165_streamBinaryChunks_=y;this.JSC$19165_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$19165_responseHeaders_=null;this.JSC$19165_method_="GET";this.JSC$19165_url_="";this.inProgress_=!1;this.JSC$19165_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.IE(gO,_.nT);gO.prototype.open=function(R,y){if(this.readyState!=0)throw this.abort(),Error("Oj");this.JSC$19165_method_=R;this.JSC$19165_url_=y;this.readyState=1;C1(this)};
gO.prototype.send=function(R){if(this.readyState!=1)throw this.abort(),Error("Pj");if(this.abortController_.signal.aborted)throw this.abort(),Error("Qj");this.inProgress_=!0;var y={headers:this.requestHeaders_,method:this.JSC$19165_method_,credentials:this.JSC$19165_credentialsMode_,cache:void 0,signal:this.abortController_.signal};R&&(y.body=R);(this.JSC$19165_worker_||_.uO).fetch(new Request(this.JSC$19165_url_,y)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
gO.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort();this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,RW(this));this.readyState=0};
gO.prototype.handleResponse_=function(R){if(this.inProgress_&&(this.fetchResponse_=R,this.JSC$19165_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19165_responseHeaders_=R.headers,this.readyState=2,C1(this)),this.inProgress_&&(this.readyState=3,C1(this),this.inProgress_)))if(this.responseType==="arraybuffer")R.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.uO.ReadableStream!==
"undefined"&&"body"in R){this.currentReader_=R.body.getReader();if(this.JSC$19165_streamBinaryChunks_){if(this.responseType)throw Error("Rj");this.response=[]}else this.response=this.responseText="",this.JSC$19165_textDecoder_=new TextDecoder;DOV(this)}else R.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var DOV=function(R){R.currentReader_.read().then(R.handleDataFromStream_.bind(R)).catch(R.handleSendFailure_.bind(R))};
gO.prototype.handleDataFromStream_=function(R){if(this.inProgress_){if(this.JSC$19165_streamBinaryChunks_&&R.value)this.response.push(R.value);else if(!this.JSC$19165_streamBinaryChunks_){var y=R.value?R.value:new Uint8Array(0);if(y=this.JSC$19165_textDecoder_.decode(y,{stream:!R.done}))this.response=this.responseText+=y}R.done?RW(this):C1(this);this.readyState==3&&DOV(this)}};
gO.prototype.handleResponseText_=function(R){this.inProgress_&&(this.response=this.responseText=R,RW(this))};
gO.prototype.handleResponseArrayBuffer_=function(R){this.inProgress_&&(this.response=R,RW(this))};
gO.prototype.handleSendFailure_=function(){this.inProgress_&&RW(this)};
var RW=function(R){R.readyState=4;R.fetchResponse_=null;R.currentReader_=null;R.JSC$19165_textDecoder_=null;C1(R)};
gO.prototype.setRequestHeader=function(R,y){this.requestHeaders_.append(R,y)};
gO.prototype.getResponseHeader=function(R){return this.JSC$19165_responseHeaders_?this.JSC$19165_responseHeaders_.get(R.toLowerCase())||"":""};
gO.prototype.getAllResponseHeaders=function(){if(!this.JSC$19165_responseHeaders_)return"";for(var R=[],y=this.JSC$19165_responseHeaders_.entries(),u=y.next();!u.done;)u=u.value,R.push(u[0]+": "+u[1]),u=y.next();return R.join("\r\n")};
gO.prototype.setCredentialsMode=function(R){this.JSC$19165_credentialsMode_=R};
var C1=function(R){R.onreadystatechange&&R.onreadystatechange.call(R)};
Object.defineProperty(gO.prototype,"withCredentials",{get:function(){return this.JSC$19165_credentialsMode_==="include"},
set:function(R){this.setCredentialsMode(R?"include":"same-origin")}});var pQ8=function(R){var y="";_.Ps.forEach(R,function(u,v){y+=v;y+=":";y+=u;y+="\r\n"});
return y},td8=function(R,y,u){if(_.Ps.isEmpty(u))return R;
u=pQ8(u);if(typeof R==="string")return _.Lp(R,_.t7(y),u);_.cY(R,y,u);return R};var cRa=function(){this.isInputValid_=!0;this.JSC$19170_streamPos_=0;this.leftoverInput_=""};
cRa.prototype.isInputValid=function(){return this.isInputValid_};
cRa.prototype.decode=function(R){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("Sj`"+this.JSC$19170_streamPos_+"`stream already broken`"+R);this.leftoverInput_+=R;R=Math.floor(this.leftoverInput_.length/4);if(R==0)return null;try{var y=_.J$v(this.leftoverInput_.slice(0,R*4))}catch(u){throw y=this.leftoverInput_,R=u.message,this.isInputValid_=!1,Error("Sj`"+this.JSC$19170_streamPos_+"`"+R+"`"+y);}this.JSC$19170_streamPos_+=R*4;this.leftoverInput_=this.leftoverInput_.slice(R*4);return y};var kt=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19173_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
kt.prototype.isInputValid=function(){return this.state_!=3};
var yq=function(R,y,u,v){R.state_=3;R.errorMessage_="The stream is broken @"+R.JSC$19173_streamPos_+"/"+u+". Error: "+v+". With input:\n"+y;throw Error(R.errorMessage_);};
kt.prototype.acceptsBinaryInput=function(){return!0};
kt.prototype.parse=function(R){function y(b){b&128&&yq(M,K,h,"invalid tag");(b&7)!=2&&yq(M,K,h,"invalid wire type");M.tag_=b>>>3;M.tag_!=1&&M.tag_!=2&&M.tag_!=15&&yq(M,K,h,"unexpected tag");M.state_=1;M.length_=0;M.countLengthBytes_=0}
function u(b){M.countLengthBytes_++;M.countLengthBytes_==5&&b&240&&yq(M,K,h,"message length too long");M.length_|=(b&127)<<(M.countLengthBytes_-1)*7;b&128||(M.state_=2,M.countMessageBytes_=0,typeof Uint8Array!=="undefined"?M.messageBuffer_=new Uint8Array(M.length_):M.messageBuffer_=Array(M.length_),M.length_==0&&Q())}
function v(b){M.messageBuffer_[M.countMessageBytes_++]=b;M.countMessageBytes_==M.length_&&Q()}
function Q(){if(M.tag_<15){var b={};b[M.tag_]=M.messageBuffer_;M.result_.push(b)}M.state_=0}
for(var M=this,K=R instanceof Array?R:new Uint8Array(R),h=0;h<K.length;){switch(M.state_){case 3:yq(M,K,h,"stream already broken");break;case 0:y(K[h]);break;case 1:u(K[h]);break;case 2:v(K[h]);break;default:throw Error("Tj`"+M.state_);}M.JSC$19173_streamPos_++;h++}R=M.result_;M.result_=[];return R.length>0?R:null};var S9a=function(){this.errorMessage_=null;this.JSC$19176_streamPos_=0;this.base64Decoder_=new cRa;this.pbParser_=new kt};
S9a.prototype.isInputValid=function(){return this.errorMessage_===null};
var aFa=function(R,y,u){R.errorMessage_="The stream is broken @"+R.JSC$19176_streamPos_+". Error: "+u+". With input:\n"+y;throw Error(R.errorMessage_);};
S9a.prototype.acceptsBinaryInput=function(){return!1};
S9a.prototype.parse=function(R){this.errorMessage_!==null&&aFa(this,R,"stream already broken");var y=null;try{var u=this.base64Decoder_.decode(R);y=u===null?null:this.pbParser_.parse(u)}catch(v){aFa(this,R,v.message)}this.JSC$19176_streamPos_+=R.length;return y};var aqM=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19179_streamPos_=0;this.result_=[];this.statusParsed_=!1};
aqM.prototype.isInputValid=function(){return this.errorMessage_===null};
aqM.prototype.acceptsBinaryInput=function(){return!1};
aqM.prototype.parse=function(R){function y(b){M.state_=6;M.errorMessage_="The stream is broken @"+M.JSC$19179_streamPos_+"/"+K+". Error: "+b+". With input:\n";throw Error(M.errorMessage_);}
function u(){M.jsonStreamParser_=new _.b3({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function v(b){if(b)for(var N=0;N<b.length;N++){var T={};T[1]=b[N];M.result_.push(T)}}
function Q(b){if(b){(M.statusParsed_||b.length>1)&&y("extra status: "+b);M.statusParsed_=!0;var N={};N[2]=b[0];M.result_.push(N)}}
for(var M=this,K=0;K<R.length;){var h;if(h=M.state_!==2){a:{for(;K<R.length;){if(!_.hj(R[K])){h=!0;break a}K++;M.JSC$19179_streamPos_++}h=!1}h=!h}if(h)return null;switch(M.state_){case 6:y("stream already broken");break;case 0:R[K]==="["?(M.state_=1,K++,M.JSC$19179_streamPos_++):y("unexpected input token");break;case 1:R[K]==="["?(M.state_=2,u()):R[K]===","||R.slice(K,K+5)=="null,"?M.state_=3:R[K]==="]"?(M.state_=5,K++,M.JSC$19179_streamPos_++):y("unexpected input token");break;case 2:h=M.jsonStreamParser_.parse(R.substring(K));
v(h);M.jsonStreamParser_.done()?(M.state_=3,h=M.jsonStreamParser_.JSC$11399_buffer_,M.JSC$19179_streamPos_+=R.length-K-h.length,R=h,K=0):(M.JSC$19179_streamPos_+=R.length-K,K=R.length);break;case 3:R[K]===","||R.slice(K,K+5)=="null,"?(M.state_=4,u(),M.jsonStreamParser_.parse("["),K+=R[K]===","?1:5,M.JSC$19179_streamPos_++):R[K]==="]"&&(M.state_=5,K++,M.JSC$19179_streamPos_++);break;case 4:h=M.jsonStreamParser_.parse(R.substring(K));Q(h);M.jsonStreamParser_.done()?(M.state_=5,h=M.jsonStreamParser_.JSC$11399_buffer_,
M.JSC$19179_streamPos_+=R.length-K-h.length,R=h,K=0):(M.JSC$19179_streamPos_+=R.length-K,K=R.length);break;case 5:y("extra input after stream end")}}return M.result_.length>0?(R=M.result_,M.result_=[],R):null};var SkZ=function(R){this.JSC$19182_xhr_=R;this.JSC$19182_parser_=null;this.status_=this.JSC$19182_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19182_textDecoder_=null;this.JSC$19182_eventHandler_=new _.V9(this);this.JSC$19182_eventHandler_.listen(this.JSC$19182_xhr_,"readystatechange",this.JSC$19184_readyStateChangeHandler_)},uw=function(R,y){R.status_!=y&&(R.status_=y,R.statusHandler_&&R.statusHandler_())},vk=function(R){R.JSC$19182_eventHandler_.removeAll();
if(R.JSC$19182_xhr_){var y=R.JSC$19182_xhr_;R.JSC$19182_xhr_=null;y.abort();y.dispose()}};
SkZ.prototype.getStatus=function(){return this.status_};
SkZ.prototype.JSC$19184_readyStateChangeHandler_=function(R){R=R.target;try{if(R==this.JSC$19182_xhr_)a:{var y=_.qg(this.JSC$19182_xhr_),u=this.JSC$19182_xhr_.JSC$9764_lastErrorCode_,v=this.JSC$19182_xhr_.getStatus(),Q=this.JSC$19182_xhr_.getResponseText();R=[];if(this.JSC$19182_xhr_.getResponse()instanceof Array){var M=this.JSC$19182_xhr_.getResponse();M.length>0&&M[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,R=M)}if(!(y<3||y==3&&!Q&&R.length==0))if(v=v==200||v==206,y==4&&(u==8?uw(this,
7):u==7?uw(this,8):v||uw(this,3)),this.JSC$19182_parser_||(this.JSC$19182_parser_=Y9g(this.JSC$19182_xhr_),this.JSC$19182_parser_==null&&uw(this,5)),this.status_>2)vk(this);else{if(R.length>this.JSC$19182_pos_){var K=R.length;u=[];try{if(this.JSC$19182_parser_.acceptsBinaryInput())for(var h=0;h<K;h++){var b=this.JSC$19182_parser_.parse(Array.from(R[h]));b&&(u=u.concat(b))}else{b="";if(!this.JSC$19182_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Uj");this.JSC$19182_textDecoder_=new TextDecoder}for(h=
0;h<K;h++)b+=this.JSC$19182_textDecoder_.decode(R[h],{stream:y==4&&h==K-1});u=this.JSC$19182_parser_.parse(b)}R.splice(0,K);u&&this.dataHandler_(u)}catch(T){uw(this,5);vk(this);break a}}else if(Q.length>this.JSC$19182_pos_){h=Q.slice(this.JSC$19182_pos_);this.JSC$19182_pos_=Q.length;try{var N=this.JSC$19182_parser_.parse(h);N!=null&&this.dataHandler_&&this.dataHandler_(N)}catch(T){uw(this,5);vk(this);break a}}y==4?(Q.length!=0||this.hasStreamingResponseData_?uw(this,2):uw(this,4),vk(this)):uw(this,
1)}}}catch(T){uw(this,6),vk(this)}};var Ykg=function(R){R=this.xhrReader_=R;var y=(0,_.HY)(this.onData_,this);R.dataHandler_=y;R=this.xhrReader_;y=(0,_.HY)(this.onStatusChange_,this);R.statusHandler_=y;this.JSC$19186_callbackMap_={};this.callbackOnceMap_={}};
_.J=Ykg.prototype;_.J.on=function(R,y){var u=this.JSC$19186_callbackMap_[R];u||(u=[],this.JSC$19186_callbackMap_[R]=u);u.push(y);return this};
_.J.addListener=function(R,y){this.on(R,y);return this};
_.J.removeListener=function(R,y){var u=this.JSC$19186_callbackMap_[R];u&&_.m4(u,y);(R=this.callbackOnceMap_[R])&&_.m4(R,y);return this};
_.J.once=function(R,y){var u=this.callbackOnceMap_[R];u||(u=[],this.callbackOnceMap_[R]=u);u.push(y);return this};
_.J.onData_=function(R){var y=this.JSC$19186_callbackMap_.data;y&&L9J(R,y);(y=this.callbackOnceMap_.data)&&L9J(R,y);this.callbackOnceMap_.data=[]};
var L9J=function(R,y){for(var u={},v=0;v<R.length;u={message$jscomp$1002:void 0},v++)u.message$jscomp$1002=R[v],y.forEach(function(Q){return function(M){try{M(Q.message$jscomp$1002)}catch(K){}}}(u))};
Ykg.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:sEH(this,"readable");break;case 5:case 6:case 4:case 7:case 3:sEH(this,"error");break;case 8:sEH(this,"close");break;case 2:sEH(this,"end")}};
var sEH=function(R,y){var u=R.JSC$19186_callbackMap_[y];u&&u.forEach(function(v){try{v()}catch(Q){}});
(u=R.callbackOnceMap_[y])&&u.forEach(function(v){v()});
R.callbackOnceMap_[y]=[]};var zDH=function(){var R={format:"jspb"};R=R===void 0?{}:R;this.suppressCorsPreflight=R.suppressCorsPreflight||_.D6("suppressCorsPreflight",R)||!1;this.withCredentials=R.withCredentials||_.D6("withCredentials",R)||!1;this.streamInterceptors=R.streamInterceptors||[];this.unaryInterceptors=R.unaryInterceptors||[];this.workerScope=R.workerScope;this.chunkedServerStreaming=R.useFetchDownloadStreams||!1},Rh7=function(R,y,u,v,Q,M){M=M===void 0?{}:M;
var K=y.substring(0,y.length-Q.name.length),h,b=(h=M)==null?void 0:h.signal;return gUa(function(N){return new Promise(function(T,x){if(b==null?0:b.aborted){var B=new _.U8(1,"Aborted");B.cause=b.reason;x(B)}else{var l={},Z=CoI(R,N,K);Z.on("error",function(P){return void x(P)});
Z.on("metadata",function(P){l=P});
Z.on("data",function(P){var k=l;k=k===void 0?{}:k;T(new bUK(P,k))});
b&&b.addEventListener("abort",function(){Z.cancel();var P=new _.U8(1,"Aborted");P.cause=b.reason;x(P)})}})},R.unaryInterceptors).call(R,F9K(Q,u,v)).then(function(N){return N.responseMessage})},Qq=function(R,y,u,v,Q,M){M=M===void 0?{}:M;
return Rh7(R,y,u,v,Q,M)};
zDH.prototype.serverStreaming=function(R,y,u,v){var Q=this,M=R.substring(0,R.length-v.name.length);return yka(function(K){var h=K.methodDescriptor,b=K.getMetadata(),N=ui8(Q,!1);b=v$p(Q,b,N,M+h.getName());var T=Qfo(N,h.responseDeserializeFn,!0);K=h.requestSerializeFn(K.requestMessage);N.send(b,"POST",K);return T},this.streamInterceptors).call(this,F9K(v,y,u))};
var CoI=function(R,y,u){var v=y.methodDescriptor,Q=y.getMetadata(),M=ui8(R,!0);R=v$p(R,Q,M,u+v.getName());u=Qfo(M,v.responseDeserializeFn,!1);AR7(u,Q["X-Goog-Encode-Response-If-Executable"]==="base64");y=v.requestSerializeFn(y.requestMessage);M.send(R,"POST",y);return u},ui8=function(R,y){y=R.chunkedServerStreaming&&!y;
return R.workerScope||y?new _.E8(new z1({worker:R.workerScope,streamBinaryChunks:y})):new _.E8},v$p=function(R,y,u,v){y["Content-Type"]="application/json+protobuf";
y["X-User-Agent"]="grpc-web-javascript/0.1";var Q=y.Authorization;if(Q&&W9H.has(Q.split(" ")[0])||R.withCredentials)u.JSC$9764_withCredentials_=!0;if(R.suppressCorsPreflight)v=td8(v,"$httpHeaders",y);else for(R=_.V(Object.keys(y)),Q=R.next();!Q.done;Q=R.next())Q=Q.value,u.headers.set(Q,y[Q]);return v},Qfo=function(R,y,u){if(u){u=new SkZ(R);
var v=new Ykg(u)}return new Y3({xhr:R,nodeReadableStream:v},y)},yka=function(R,y){return y.reduce(function(u,v){return function(Q){return v.intercept(Q,u)}},R)},gUa=function(R,y){return y.reduce(function(u,v){return function(Q){return v.intercept(Q,u)}},R)};var jfm=function(R){this.client_=new zDH;this.hostname_=R==void 0?R:R.replace(/\/+$/,"")};
_.J=jfm.prototype;_.J.JSC$19204_depositGoogleCredential=function(R,y,u){return Qq(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",R,y||{},oU8,u)};
_.J.deleteLink=function(R,y,u){return Qq(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",R,y||{},NVo,u)};
_.J.JSC$19204_finishOAuth=function(R,y,u){return Qq(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",R,y||{},BVK,u)};
_.J.getLink=function(R,y,u){return Qq(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",R,y||{},fFV,u)};
_.J.startLinkingSession=function(R,y,u){return Qq(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",R,y||{},Pop,u)};var MzI=[0,TX7,1,BXZ,[0,_.y_,[0,olm,-1]],[0,xrZ],[0,fAZ,-1]];var JkP=function(){this.storage=new Map},ipa=function(R,y,u,v,Q){if(!R.storage.has(y))return null;
R=_.V(R.storage.get(y));for(y=R.next();!y.done;y=R.next())if(y=y.value,!Q||y.linkName===Q)if(u&&y.scopes&&Vzg(y.scopes,u)||v&&y.capabilities&&Vzg(y.capabilities,v))return y;return null},KnZ=function(R,y,u){if(!u)R.storage.delete(y);
else if(R.storage.has(y)){var v=R.storage.get(y).filter(function(Q){return Q.linkName!==u});
v.length>0?R.storage.set(y,v):R.storage.delete(y)}},Vzg=function(R,y){y=_.V(y);
for(var u=y.next();!u.done;u=y.next())if(!R.has(u.value))return!1;return!0};var IMM=function(){var R=_.EB("LINK_GAL_DOMAIN");this.alsDomain1p=_.EB("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},hha=function(R,y){R.apiKey=y;
return R};
IMM.prototype.build=function(){var R={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Vj");R.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Wj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Xj");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("Yj");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 EE=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(EE,_.y4);var bp7=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(bp7,_.y4);var FnH=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(FnH,_.y4);var ql=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(ql,_.y4);var w7a=function(R){return _.qO(R,1)};var NxJ=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(NxJ,_.y4);var yNK=_.hq(NxJ),$t=[1,2,3,4,5];var z5M=function(R){try{return yNK(R)}catch(y){return null}},TxZ=function(){},gFo=function(R,y){switch(_.rV(y,$t)){case 4:return(y=_.AR(y,FnH,4,$t))&&R.logStateTransition(_.qO(y,1)),!0;
case 5:return(y=_.AR(y,bp7,5,$t))&&R.logInternalEvent(_.qO(y,1)),!0}return!1},u9K=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:_.AL(R)}};var Lm7=function(R,y){var u=this;this.validator=R;this.messageListener=y;this.dismissCallback=function(){o$K(u,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19233_receiveMessage=function(v){v.type==="message"&&(v=v.event_,v!==null&&(new URL(u.iframe.src)).origin===v.origin&&u.validator(v.data,v.origin)&&!u.messageListener(v.data)&&(u.JSC$19233_resolveCb!==void 0&&u.JSC$19233_resolveCb(v.data),xWV(u)))}},RBa=function(R,y,u){R.uiHandler!==void 0&&o$K(R,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(v,Q){R.JSC$19233_resolveCb=v;R.JSC$19233_rejectCb=Q;R.iframe=document.createElement("iframe");_.cg(R.iframe,y);R.uiHandler=u.displayContent(R.iframe,R.dismissCallback);_.E4(window,"message",R.JSC$19233_receiveMessage,!1,R)})},o$K=function(R,y){R.JSC$19233_rejectCb!==void 0&&R.JSC$19233_rejectCb(y);
xWV(R)},xWV=function(R){R.uiHandler!==void 0&&R.uiHandler.hideContent();
_.Hc(window,"message",R.JSC$19233_receiveMessage,!1,R);R.JSC$19233_resolveCb=void 0;R.JSC$19233_rejectCb=void 0;R.uiHandler=void 0;R.iframe=void 0};var BxK=function(R){if(R===2){var y;R=((y=window)==null?0:y.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return R},Cho=function(R){R=BxK(R);
switch(R){case 0:return"light";case 1:return"dark";default:_.AL(R)}};var skm=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),fMo=function(R,y){this.JSC$19245_linkingSession=R;this.noticeConfig=y;this.displayInfoMap=new Map;var u=new Map;if(_.ZF(this.JSC$19245_linkingSession,OUp,7))for(R=_.Ne(this.JSC$19245_linkingSession,OUp,7),R=_.vY(R,lF8,1,_.Q7()),R=_.V(R),y=R.next();!y.done;y=R.next())y=y.value,u.set(_.qO(y,1),_.hXP(_.Ne(y,_.hm4,3)));if(u.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){y=this.noticeConfig.enabledDataUsageNoticeUis;R=y.has(0)?u.get(1):void 0;y=y.has(1)?u.get(2):void 0;u=R!==void 0&&y!==void 0?u.get(3):void 0;var v=this.noticeConfig.nestedOrigins;var Q=new NxJ;var M=new EE;Q=_.Ny(Q,2,$t,M);M=new NxJ;var K=new EE;M=_.Ny(M,3,$t,K);K=[];R!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:R,lastEvent:Q,nestedOrigins:v}]),K.push({trustedUrl:R,lastEvent:Q,nestedOrigins:v}));y!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:y,lastEvent:M,nestedOrigins:v}]),K.push({trustedUrl:y,lastEvent:M,nestedOrigins:v}));u!==void 0?this.displayInfoMap.set(3,[{trustedUrl:u,lastEvent:M,nestedOrigins:v}]):this.displayInfoMap.set(3,K)}};var ehV=function(R){var y=new JkP;this.galService=R;this.galCache=y};
ehV.prototype.getLink=function(R){var y=R.serviceId;var u=R.scopes;var v=R.capabilities;var Q=R.linkName;var M=this,K;return _.I(function(h){if(v!==void 0&&u!==void 0)throw Error("Zj");K=ipa(M.galCache,y,u,v,Q);return K!==null?h.return(K):h.return(M.galService.getLink({serviceId:y,sessionId:Math.floor(Math.random()*2147483648),scopes:u,capabilities:v,linkName:Q}).then(function(b){b=JNJ(b);var N=M.galCache;N.storage.has(y)?N.storage.get(y).push(b):N.storage.set(y,[b]);return b}))})};
ehV.prototype.deleteLink=function(R,y,u){var v=this;return _.I(function(Q){KnZ(v.galCache,R,u);return Q.return(v.galService.deleteLink({serviceId:R,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:y,linkName:u}).then(function(){return!0}))})};var OpV=function(R,y){var u=this;this.validator=R;this.msgHandler=y;this.closedPopupTimeout=this.JSC$19267_rejectCb=this.JSC$19267_resolveCb=this.popup=null;this.JSC$19267_receiveMessage=function(v){if(v!==null&&(v=v.event_,v.source===u.popup)){var Q=v.data;if(u.validator(Q,v.origin)){var M;(M=u.msgHandler)!=null&&M.call(u,Q)||(u.JSC$19267_resolveCb!==null&&u.JSC$19267_resolveCb(Q),lMK(u))}}}};
OpV.prototype.open=function(R,y){var u=this;this.popup!==null&&ZpZ(this);return new Promise(function(v,Q){u.JSC$19267_resolveCb=v;u.JSC$19267_rejectCb=Q;u.popup=_.aK(window,R,"",y);_.E4(window,"message",u.JSC$19267_receiveMessage,!1,u);HpI(u)})};
var ZpZ=function(R,y){R.JSC$19267_rejectCb!==null&&R.JSC$19267_rejectCb(y);lMK(R)},lMK=function(R){R.closedPopupTimeout&&(R.closedPopupTimeout.cancel(),R.closedPopupTimeout=null);
R.popup&&R.popup.close();_.Hc(window,"message",R.JSC$19267_receiveMessage,!1,R);R.popup=null;R.JSC$19267_resolveCb=null;R.JSC$19267_rejectCb=null},HpI=function(R){R.closedPopupTimeout=_.d18(100).then(function(){R.popup?R.popup.closed?n$7(R):HpI(R):ZpZ(R,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},n$7=function(R){R.closedPopupTimeout=_.d18(100).then(function(){ZpZ(R,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var Gq7=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),rk8=function(R,y,u,v,Q,M,K,h,b,N){var T=this;this.serviceId=R;this.sessionId=y;this.galService=u;this.oauthDetails=v;this.galLogger=Q;this.interactionMode=M;this.redirectServiceUrl=K;this.consentLanguageKeys=h;this.dynamicUrlParameters=b;this.partnerConfigMinReadTimestamp=N;this.started=!1;this.JSC$19273_dataValidator=function(x,
B){var l=Gq7.has(B);l||T.redirectServiceUrl===void 0||(l=T.redirectServiceUrl===B);return l?x.sentinel==="gdi":!1}};
rk8.prototype.complete=function(){var R=this,y;return _.I(function(u){if(R.interactionMode!==1)return u.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));y=mU.getRedirectStateFromUri();return y===null?u.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):u.return(PjK(R,y))})};
rk8.prototype.start=function(){var R=this,y;return _.I(function(u){if(R.started)return u.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.$U(R.oauthDetails,1))return u.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(R.interactionMode===1)return mU.setLocation(_.$U(R.oauthDetails,1)),u.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));R.started=!0;R.galLogger.logStateTransition(5);
y=mU.getPostMessagePopup(R.JSC$19273_dataValidator);return u.return(y.open(_.$U(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(v){R.started=!1;var Q=R.galLogger;if((v==null?void 0:v.error)!==void 0)throw Q.logInternalEvent(59),Error("$j");if((v==null?void 0:v.redirect_state)===void 0)throw Q.logInternalEvent(131),Error("ak");return PjK(R,v.redirect_state)}).catch(function(v){R.started=
!1;
return v.errorCode!==void 0?{statusCode:v.errorCode,statusMessage:v.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var PjK=function(R,y){return _.I(function(u){return u.return(Wnm(R.galService,{serviceId:R.serviceId,sessionId:R.sessionId,dynamicUrlParameters:R.dynamicUrlParameters,redirectState:y,consentLanguageKeys:R.consentLanguageKeys,partnerConfigMinReadTimestamp:R.partnerConfigMinReadTimestamp}).then(function(v){var Q={statusCode:1,link:JNJ(v.getLink())};tm7(_.nU(v,3))!==void 0&&(Q.callerState=tm7(_.nU(v,3)));R.galLogger.logInternalEvent(134);return Q}))})},mU={getPostMessagePopup:function(R){return new OpV(R)},
getRedirectStateFromUri:function(){var R=_.pF(mU.getLocation()).fragment_;return(new _.ht(R)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(R){_.ItU(window.location,_.Eo(R))},
createOAuthFlow:function(R,y){return new rk8(R.serviceId,R.sessionId,R.galService,y,R.galLogger,R.interactionMode,R.redirectServiceUrl,R.consentLanguageKeys,R.dynamicUrlParameters,R.partnerConfigMinReadTimestamp)}};var dW7=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(dW7,_.y4);var UWp=_.hq(dW7);var kq7=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),E$7=function(R,y,u,v,Q,M,K,h,b){var N=this;this.serviceId=R;this.sessionId=y;this.galService=u;this.gsiWebFlowDetails=v;this.colorScheme=Q;this.showCloseOption=M;this.galLogger=K;this.interactionMode=h;this.redirectServiceUrl=b;this.started=!1;this.JSC$19285_dataValidator=function(T,x){var B=kq7.has(x);B||N.redirectServiceUrl===
void 0||(B=N.redirectServiceUrl===x);return B?T.sentinel==="gal":!1};
this.logEventProcessor=function(T){return T.result?(T=z5M(T.result))?gFo(N.galLogger,T):!1:!1}};
E$7.prototype.complete=function(){var R=this,y,u;return _.I(function(v){if(R.interactionMode!==1)return v.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));y=Ag.getRedirectStateFromUri();if(y===void 0)return R.galLogger.JSC$19225_logErrorEvent(131),v.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return u=$Wo(R,y),v.return(qOV(R,u))}catch(Q){return v.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
E$7.prototype.start=function(){var R=this,y;return _.I(function(u){if(R.started)return u.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.$U(R.gsiWebFlowDetails,1))return u.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(R.interactionMode===1)return Ag.setLocation(X7g(R,_.$U(R.gsiWebFlowDetails,1))),u.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
R.started=!0;y=Ag.getPostMessagePopup(R.JSC$19285_dataValidator,R.logEventProcessor);return u.return(y.open(X7g(R,_.$U(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(v){R.started=!1;if((v==null?void 0:v.result)===void 0)throw R.galLogger.JSC$19225_logErrorEvent(131),Error("ak");v=$Wo(R,v.result);return qOV(R,v)}).catch(function(v){R.started=!1;
return v.errorCode!==void 0?{statusCode:v.errorCode,statusMessage:v.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var X7g=function(R,y){R=["result_channel",R.interactionMode===1?"2":"1","color_scheme",Cho(R.colorScheme),"show_close_option",R.showCloseOption];return ZRJ(y,R)},qOV=function(R,y){if(y!==null&&_.ZF(y,ql,2)){var u,v=y==null?void 0:(u=_.Ne(y,ql,2))==null?void 0:_.qO(u,2);
v&&R.galLogger.JSC$19225_logErrorEvent(u9K(v));return w7a(_.Ne(y,ql,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:_.$U(y,1)}).then(function(Q){Q=JNJ(Q);R.galLogger.logInternalEvent(134);return{statusCode:1,link:Q}})},$Wo=function(R,y){y=UWp(y);
if(!_.ZF(y,ql,2)&&_.$U(y,1)==="")throw R.galLogger.JSC$19225_logErrorEvent(5),Error("bk");return y},Ag={getPostMessagePopup:function(R,y){return new OpV(R,y)},
getRedirectStateFromUri:function(){return _.tD(_.pF(Ag.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(R){_.ItU(window.location,_.Eo(R))},
createStreamlinedFlow:function(R,y){return new E$7(R.serviceId,R.sessionId,R.galService,y,R.colorScheme,R.showCloseOption,R.galLogger,R.interactionMode,R.redirectServiceUrl)}};var eBZ=function(){var R=_.FcT("GAL");this.storage=R?new _.ZI(R):null};
eBZ.prototype.getSession=function(R){if(this.storage!==null)try{var y=this.storage.get("SAVED_SESSION");if(y===void 0)return null;if(y.serviceId===R)return y}catch(u){}return null};var jT=function(){};
_.O(jT,TxZ);jT.prototype.logStateTransition=function(){};
jT.prototype.logInternalEvent=function(){};
jT.prototype.JSC$19225_logErrorEvent=function(){};var mW8=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(mW8,_.y4);mW8.prototype.getCompletionUrl=function(){return _.$U(this,15)};var Mj=function(R,y,u,v,Q,M){this.serviceId=R;this.environment=y;this.sessionId=u;this.colorSchemeSelected=v;this.colorThemeDisplayed=Q;this.JSC$19298_transport=M;this.currentState=1};
_.O(Mj,TxZ);Mj.prototype.logStateTransition=function(R){var y=Ak7(this);y=_.j_(y,3,this.currentState);y=_.j_(y,1,R);this.currentState=R;R=n9m(1);this.dispatch(y,R)};
Mj.prototype.logInternalEvent=function(R){R=n9m(R);this.dispatch(Ak7(this),R)};
Mj.prototype.JSC$19225_logErrorEvent=function(R){var y=Ak7(this);y=_.j_(y,1,10);R=n9m(R);this.dispatch(y,R)};
var Ak7=function(R){var y=new mW8;y=_.j_(y,1,R.currentState);y=_.eQ(y,7,R.serviceId);var u,v;var Q=((u=window)==null?0:(v=u.location)==null?0:v.href)?_.pF(window.location.href).JSC$10001_domain_:"NO_PACKAGE_NAME";u=_.eQ(y,8,Q);u=_.j_(u,6,R.environment);u=_.eQ(u,5,"100");u=_.j_(u,11,R.colorSchemeSelected);return _.j_(u,12,R.colorThemeDisplayed)};
Mj.prototype.dispatch=function(R,y){y===void 0&&(y=new _.wK);var u=y;R=R.serialize();u=_.eQ(u,8,R);_.ex(u,12,this.sessionId);this.JSC$19298_transport.dispatch(y)};var DWa=function(R,y){this.loggerType=R;this.sessionIndex=y!=null?y:0},p7M;
DWa.prototype.create=function(R,y,u,v,Q){switch(this.loggerType){case 0:return new jT;case 1:return p7M||(p7M=(new _.hD(555,this.sessionIndex.toString())).build()),new Mj(R,y,u,v,Q,p7M);default:_.AL(this.loggerType,"unknown logger type")}};var Df=[6,2,3,1],GIP=new Map([[4,1],[1,6],[2,2],[3,3]]),InP={statusCode:7,statusMessage:"Failed to create flow object"},BNa=function(R,y,u,v,Q,M,K,h,b,N){this.serviceId=R;this.sessionId=y;this.config=u;this.galService=v;this.JSC$19305_linkingSession=Q;this.googleScopes=M;this.callerState=K;this.consentLanguageKeys=h;this.dynamicUrlParameters=b;this.partnerConfigMinReadTimestamp=N;this.currentFlow=0;v=this.JSC$19305_linkingSession;Q=new Set;_.ZF(v,NNm,1)&&Q.add(1);_.ZF(v,HUI,2)&&_.ZF(v,TNP,6)&&Q.add(2);
_.ZF(v,ZUa,3)&&_.ZF(v,TNP,6)&&Q.add(3);_.ZF(v,eDa,4)&&Q.add(6);this.supportedFlows=Q;v=u.loggerType;Q=u.clientEnvironment;a:{M=u.colorScheme;switch(M){case 0:M=1;break a;case 1:M=2;break a;case 2:M=3;break a;default:_.AL(M)}M=void 0}a:{K=u.colorScheme;K=BxK(K);switch(K){case 0:K=1;break a;case 1:K=2;break a;default:_.AL(K)}K=void 0}this.galLogger=(new DWa(v,u.authUser)).create(R,Q,y,M,K)},ck8=function(R){return new Promise(function(y){var u,v,Q,M,K,h,b,N,T,x;
return _.I(function(B){switch(B.nextAddress){case 1:u=osI(R.currentFlow,R.supportedFlows),v=!1,Q=new fMo(R.JSC$19305_linkingSession,R.config.dataUsageNoticeConfig);case 2:if(u===void 0){B.jumpTo(4);break}_.wY(B,5);var l=Q,Z=u,P=void 0;v?Z===1&&(P=l.displayInfoMap.get(2)):Z===2||Z===3?P=l.displayInfoMap.get(1):Z===1&&(P=l.displayInfoMap.get(3));M=P?P:[];K=R.consentLanguageKeys;h=_.V(M);b=h.next();case 7:if(b.done)return R.currentFlow=u,B.yield(bzZ(tzZ(R,K)),11);N=b.value;return B.yield(vs8(N,R.config.dataUsageNoticeConfig.uiAdapter,
R.config.colorScheme,R.galLogger),10);case 10:T=B.yieldResult;if(T.statusCode!==1)return lnZ(R.serviceId),R.currentFlow=0,y(XA({statusCode:T.statusCode,statusMessage:T.statusMessage},R.callerState)),B.return();T.consentLanguageKeys!==void 0&&(K=T.consentLanguageKeys);b=h.next();B.jumpTo(7);break;case 11:x=B.yieldResult;if(x.statusCode!==10)return x.statusCode!==6&&(lnZ(R.serviceId),R.currentFlow=0),x.statusCode!==1&&R.callerState!==void 0&&(x.callerState=R.callerState),y(x),B.return();_.c5(B,6);break;
case 5:_.B$(B);case 6:u=osI(R.currentFlow,R.supportedFlows);v=!0;B.jumpTo(2);break;case 4:lnZ(R.serviceId),R.currentFlow=0,y(XA({statusCode:12,statusMessage:"Linking failed"},R.callerState)),_.f$(B)}})})},HzI=function(R,y,u){R.currentFlow=y;
return Fca(tzZ(R,u)).then(function(v){return v.statusCode===10&&R.config.interactionMode===1&&osI(R.currentFlow,R.supportedFlows)!==void 0?ck8(R):v})},tzZ=function(R,y){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:y,dynamicUrlParameters:R.dynamicUrlParameters,showCloseOption:R.config.showCloseOption,partnerConfigMinReadTimestamp:R.partnerConfigMinReadTimestamp},currentFlow:R.currentFlow,config:R.config,session:R.JSC$19305_linkingSession,googleScopes:R.googleScopes,callerState:R.callerState}};var PEZ=function(R,y){this.config=R;this.galService=y.getService();this.JSC$19318_galRepository=y.JSC$19336_galRepository};
PEZ.prototype.getLink=function(R,y){return aMK(this,R,y)};
var aMK=function(R,y,u){return R.JSC$19318_galRepository.getLink({serviceId:y,scopes:void 0,capabilities:void 0,linkName:u}).then(function(v){return{statusCode:1,link:v}}).catch(function(v){return{statusCode:rNJ(v.code),
statusMessage:v.message}})};
PEZ.prototype.deleteLink=function(R,y){return this.JSC$19318_galRepository.deleteLink(R,this.config.accountLinkingEntryPoint,y).then(function(){return{statusCode:1}}).catch(function(u){return{statusCode:rNJ(u.code),
statusMessage:u.message}})};
PEZ.prototype.startLinkingSession=function(R){var y=R.serviceId;var u=R.sessionId;return fn8({serviceId:y,sessionId:u!==void 0?u: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 JJ=function(R,y,u,v,Q,M,K){this.apiKey=y;this.authUser=u;this.oauthToken=v;this.bucket=Q;this.locale=M;this.galSdkEventHandler=K;if(v===void 0){if(y===void 0)throw Error("ck");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new jfm(R)};
JJ.prototype.deleteLink=function(R){var y=R.serviceId;var u=R.sessionId;var v=R.accountLinkingEntryPoint;var Q=R.linkName;var M=this,K;return _.I(function(h){var b=(new tY).setHeader(M.getHeader(u));var N=SOM({serviceId:y,linkName:Q});b=_.wC(b,2,N);K=_.pU(b,3,v);return h.return(M.makeRequest(M.galServiceClient.deleteLink,K,[1,3],[2,4]))})};
var Wnm=function(R,y){var u=y.serviceId;var v=y.sessionId;var Q=y.dynamicUrlParameters;var M=y.redirectState;var K=y.consentLanguageKeys;var h=y.partnerConfigMinReadTimestamp;var b;return _.I(function(N){var T=(new at).setHeader(R.getHeader(v,Q));T=_.R2(T,2,u);b=_.R2(T,4,M);K!==void 0&&_.R2(b,5,K);h!==void 0&&_.wC(b,6,h);return N.return(R.makeRequest(R.galServiceClient.JSC$19204_finishOAuth,b,[1,3],[2,4]))})};
JJ.prototype.getLink=function(R){var y=R.serviceId;var u=R.sessionId;var v=R.scopes;var Q=R.capabilities;var M=R.consistencyKey;var K=R.linkName;var h=this,b;return _.I(function(N){var T=(new Sk).setHeader(h.getHeader(u)),x=SOM({serviceId:y,scopes:v,capabilities:Q,linkName:K});b=_.wC(T,2,x);M!==void 0&&(T=iUZ(),T=_.R2(T,2,M),_.wC(b,3,T));return N.return(h.makeRequest(h.galServiceClient.getLink,b,[1,3],[2,4]))})};
var wdo=function(R,y){var u=y.serviceId;var v=y.sessionId;var Q=y.googleScopes;var M=y.consistencyKey;var K;return _.I(function(h){var b=(new cj).setHeader(R.getHeader(v));b=_.R2(b,2,u);var N=Array.from(Q.values());b=_.aP(b,3,N,_.hI);N=iUZ();N=_.R2(N,2,M);K=_.wC(b,4,N);return h.return(R.makeRequest(R.galServiceClient.JSC$19204_depositGoogleCredential,K,[1,3],[2,4]))})};
JJ.prototype.startLinkingSession=function(R){var y=R.serviceId;var u=R.sessionId;var v=R.scopes;var Q=R.capabilities;var M=R.loginHint;var K=R.supportedFlows;var h=R.completionUrl;var b=R.usePingPong;var N=R.twoWayLinking;var T=R.accountLinkingEntryPoint;var x=R.callerState;var B=R.consentLanguageKeys;var l=R.googleScopes;var Z=R.dataUsageNoticeConfig;var P=R.linkName;var k=R.dynamicUrlParameters;var E=R.partnerConfigMinReadTimestamp;var D=this,z,c;return _.I(function(a){if(Q!==void 0&&v!==void 0)throw Error("Zj");
var L=(new rRI).setHeader(D.getHeader(u,k));z=_.R2(L,2,y);P!==void 0&&_.R2(z,14,P);if(Q!==void 0){L=z;var QG=Array.from(Q.values());_.aP(L,5,QG,_.hI)}else v!==void 0&&(L=z,QG=Array.from(v.values()),_.aP(L,3,QG,_.hI));h!==void 0&&_.R2(z,6,h);b!==void 0&&_.dG(z,15,b);K!==void 0&&(L=z,QG=Array.from(K.values()),_.aP(L,4,QG,_.LY));if(N!==void 0){if(N&&(!l||l.size===0))throw Error("dk");_.dG(z,8,N)}T!==void 0&&_.pU(z,9,T);M!==void 0&&_.R2(z,13,M);x!==void 0&&(L=z,QG=(new TextEncoder).encode(x),_.SK(L,12,
_.G5(QG,!1),_.nY()));B!==void 0&&_.R2(z,16,B);E!==void 0&&_.wC(z,18,E);if(Z!==void 0&&Z.size>0||l!==void 0&&l.size>0)c=new G$8,l!==void 0&&l.size>0&&(L=c,QG=Array.from(l.values()),_.aP(L,1,QG,_.hI)),Z!==void 0&&(Z.has(0)&&_.kaz(c,2,_.LY,1,_.gg),Z.has(1)&&_.kaz(c,2,_.LY,2,_.gg)),_.wC(z,17,c);return a.return(D.makeRequest(D.galServiceClient.startLinkingSession,z,[1],[2]))})};
JJ.prototype.getMetadata=function(){var R=this,y,u;return _.I(function(v){y={};R.useFpa?(y["X-Goog-Api-Key"]=R.apiKey,y["X-Goog-AuthUser"]=R.authUser!==void 0?R.authUser.toString():"0",(u=_.mzT([]))&&(y.Authorization=u)):y.Authorization="Bearer "+R.oauthToken;R.locale&&(y["accept-language"]=R.locale);return v.return(y)})};
JJ.prototype.makeRequest=function(R,y,u,v){var Q=this,M;return _.I(function(K){if(K.nextAddress==1)return K.yield(Q.getMetadata(),2);M=K.yieldResult;YOJ(Q,u);return K.return(R.bind(Q.galServiceClient)(y,M).finally(function(){YOJ(Q,v)}))})};
var YOJ=function(R,y){R.galSdkEventHandler!==void 0&&y.forEach(function(u){R.galSdkEventHandler.onEvent(u)})};
JJ.prototype.getHeader=function(R,y){var u=new AY;R=_.SK(u,2,_.CY(R),0);R=_.pU(R,5,3);y=_.aP(R,8,y,_.hI);this.bucket!==void 0&&_.R2(y,1,this.bucket);return y};
var SOM=function(R){var y=R.serviceId;var u=R.scopes;var v=R.capabilities;R=R.linkName;if(v!==void 0&&u!==void 0)throw Error("Zj");var Q=new JRo;y=_.R2(Q,1,y);v!==void 0?(u=Array.from(v.values()),_.aP(y,5,u,_.hI)):u!==void 0&&(u=Array.from(u.values()),_.aP(y,3,u,_.hI));R!==void 0&&_.R2(y,6,R);return y};var Wca=function(R){this.galService=new JJ(R.alsDomain,R.apiKey,R.authUser,R.oauthToken,R.bucket,R.locale,R.galSdkEventHandler);this.JSC$19336_galRepository=new ehV(this.galService)};
Wca.prototype.getService=function(){return this.galService};var LnV=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(LnV,_.y4);var sfM=function(R){var y=new LnV;return _.j_(y,1,R)};
LnV.prototype.setErrorMessage=function(R){return _.eQ(this,2,R)};var zhI=[0,_.v7,_.Rf,_.v7];var Vq=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(Vq,_.y4);var g$g=[0,[1,2,3],_.uj,[0,bRm,NXp,-1],_.uj,[0,wZP,-1],_.wUT];var CjM=[0,_.gV,1,_.v7,_.Rf,-1,1,_.omT,_.z$,_.v7,-1,g$g];var REI=[0,_.v7,[0,_.omT,_.z$,[0,_.Rf]],_.CU,[0,_.v7,-1]];var ZC=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(ZC,_.y4);var y8m=[0,_.Rf,_.v7,-2,_.gV,_.v7,_.gV,_.v7,-2,1,_.CU];var uCg=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(uCg,_.y4);var vjm=[0,_.gV];var QeV=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(QeV,_.y4);var jeJ=[0,_.v7,REI,vjm,y8m,CjM];var Vog=_.KK(QeV,jeJ);var Mwp=[0,MzI];var Fk8=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(Fk8,_.y4);var J88=[0,[1,3],eoo,_.v7,eoo];var lS=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(lS,_.y4);var Vw7=[0,_.v7];var iTJ=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(iTJ,_.y4);var O1=function(R){return _.AR(R,LnV,2,ek)},KFa=function(R){var y=new iTJ;
return _.Ny(y,2,ek,R)},ek=[1,
2];var IdM=[0,ek,_.uj,Vw7,_.uj,zhI,_.y_,J88,1,_.v7,Mwp];var hEg=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(hEg,_.y4);var FFV=function(R){var y=new hEg;return _.Ny(y,3,bTm,R)},bTm=[2,
3];var iw=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(iw,_.y4);var wcP=function(R,y){return _.wC(R,2,y)},NKJ=function(R,y){return _.wC(R,8,y)},TKm=function(R,y){return _.wC(R,3,y)};var ojm=[0,_.v7,IdM,jeJ,_.nEi,[0,[5,6],[0,_.v7,-2],[0,_.gV,_.v7,_.Rf],[0,g$g],[0,_.Rf,_.v7,-1,_.HKL,_.v7],_.uj,[0,[0,_.gV],_.v7,-1],_.uj,[0,[3,4],_.v7,-1,_.uj,[0,[0,_.v7,_.CU]],_.uj,[0,[0,[0,[1,2],_.uj,[0],_.uj,[0]]]]]],_.nEi,-1,[0,bTm,_.v7,_.uj,Vw7,_.uj,zhI,_.y_,J88,[0,MzI]]];var xgH=_.KK(iw,ojm),BKP=_.IK(ojm);var fda=function(){_.Z0.call(this)};
_.O(fda,_.Z0);fda.prototype.init=function(){};
new fda;var eEV=_.RE(["data-"]),lda=_.RE(["aria-"]),OTa=_.RE(["aria-"]),Kb=function(R,y){this.isLatencyMeasurementExperiment=R===void 0?!1:R;this.enableDialogA11yFix=y===void 0?!1:y;this.JSC$19365_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.CJL(_.uO.location.href)},KkI=function(R,y){R.onConsentPrimitiveShownCallback=y},ZTK=function(R,y){return R.overriddenIframeLoadTimeout?R.overriddenIframeLoadTimeout:y!==void 0?y:5E3},h87=function(R){if(R.prewarmPromise!==void 0)return R.prewarmPromise;
R.prewarmPromise=new Promise(function(y,u){IW(R,1);HTH(R,njo(R,!0),G08(R));R.iframe?R.prewarmChannel||r8Z(R,R.iframe,y):u(Error("ek"))});
R.prewarmPromise.finally(function(){R.prewarmPromise=void 0});
return R.prewarmPromise};
Kb.prototype.showPrimitive=function(){var R=this;if(this.consentPromise!==void 0)return this.consentPromise;var y=Date.now();PVm(this,y);this.consentPromise=new Promise(function(u,v){IW(R,0,y);var Q=R.isDarkTheme();R.isLatencyMeasurementExperiment||R.initialLoadingStrategy===1||R.initialLoadingStrategy===2||(R.loadingBar||(R.loadingBar=EsH(getComputedStyle(document.body).direction==="rtl",Q),R.loadingBar.style.position="fixed",R.loadingBar.style.zIndex="15000"),document.body.appendChild(R.loadingBar));
HTH(R,njo(R),G08(R));R.iframe?R.channel||WFg(R,R.iframe,u,v):(dgm(R),v(Error("ek")))});
this.consentPromise.finally(function(){R.consentPromise=void 0});
return this.consentPromise};
var WFg=function(R,y,u,v){var Q,M;_.I(function(K){switch(K.nextAddress){case 1:IW(R,3);Q=!1;setTimeout(function(){if(!Q){dgm(R);UgM(R);k08(R);var h=sfM(7).setErrorMessage("Timeout connecting to iframe");u(NKJ(wcP(new iw,KFa(h)),FFV(h)))}},ZTK(R,EjH(R)));
if(!R.prewarmPromise){K.jumpTo(2);break}_.wY(K,3);return K.yield(R.prewarmPromise,5);case 5:_.c5(K,2);break;case 3:_.B$(K),M=sfM(4).setErrorMessage("Error while prewarming."),u(NKJ(wcP(new iw,KFa(M)),FFV(M)));case 2:R.prewarmChannel&&R.prewarmChannel.send(BKP(TKm(new iw,R.consentPrimitiveRequest))),R.channel=_.MW({destination:R.JSC$19365_win,iframe:y,origin:$gP(R),channelName:"cpw",onEstablished:function(){Q=!0;dgm(R);R.isLatencyMeasurementExperiment||(R.JSC$19365_previousBodyOverflow=document.body.style.overflow,
R.JSC$19365_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,R.JSC$19365_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?IW(R,4):IW(R,6);var b;(b=R.onConsentPrimitiveShownCallback)==null||b.call(R)},
onMessage:function(h){h=xgH(h.data);switch(_.qO(h,1)){case 1:UgM(R);var b=$qK(_.Ne(h,_.pX,7));b&&(R.initialLoadingStrategy!==2&&R.initialLoadingStrategy!==3||IW(R,6,b),IW(R,5,b));if(b=$qK(_.Ne(h,_.pX,6)))IW(R,7,b),IW(R,8);var N,T;((N=_.Ne(h,iTJ,2))==null?void 0:_.rV(N,ek))!==0&&((T=_.Ne(h,hEg,8))==null?void 0:_.rV(T,bTm))!==0||v(Error("fk"));u(h);break;case 2:k08(R)}}}),_.f$(K)}})},r8Z=function(R,y,u){R.prewarmChannel=_.MW({destination:R.JSC$19365_win,
iframe:y,origin:$gP(R),channelName:"pwcp",onEstablished:function(){IW(R,2);u()}})},$gP=function(R){var y=_.Oo(R.src).toString();
return y&&y.indexOf("://")<0&&y.indexOf("//")!==0?R.origin:_.CJL(y)},njo=function(R,y){y=y===void 0?!1:y;
var u,v=new Map([["origin",R.origin],["hl",(u=q8P(R))!=null?u:null]]);y&&v.set("pw","1");y=_.V([["cpr",R.consentPrimitiveRequest.serialize()]]);for(u=y.next();!u.done;u=y.next()){var Q=_.V(u.value);u=Q.next().value;Q=Q.next().value;v.set(u,Q)}R.isDarkTheme()&&v.set("color_scheme","dark");return _.VW(R.src,v)},dgm=function(R){R.isLatencyMeasurementExperiment||R.loadingBar&&document.body.removeChild(R.loadingBar)};
Kb.prototype.getSrc=function(){var R=_.z7(this.origin),y;var u=(y=_.Ne(this.consentPrimitiveRequest,uCg,3))==null?void 0:_.jZ(y,1);y="consent.google.com";u=u?"/u/"+encodeURIComponent(u.toString()):"";(R==null?0:R.endsWith("youtube.com"))?y="consent.youtube.com":(R=R==null?void 0:R.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(y="consent.google."+((R[1]?"co.":"")+encodeURIComponent(R[2])));return _.lb("https://"+y+"/signedin"+u+"/landing")};
var HTH=function(R,y,u){R.iframe||(R.iframe=document.createElement("iframe"),R.iframe.style.width="100%",R.iframe.style.height="100%",u!==112496729&&(R.iframe.style.colorScheme="auto"),R.isLatencyMeasurementExperiment&&(R.iframe.style.display="none"),_.cg(R.iframe,y),R.iframe.setAttribute("jsname","C5o1O"),Xc7(R.iframe),document.body.appendChild(R.iframe))},Xc7=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"},UgM=function(R){R.iframe&&(R.isLatencyMeasurementExperiment||(R.JSC$19365_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=R.JSC$19365_previousHtmlOverscroll),R.JSC$19365_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=R.JSC$19365_previousBodyOverscroll),R.JSC$19365_previousBodyOverflow!==
void 0&&(document.body.style.overflow=R.JSC$19365_previousBodyOverflow),R.enableDialogA11yFix&&mgp(R,!1)),Xc7(R.iframe))};
Kb.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(mgp(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var mgp=function(R,y){var u,v,Q=(u=R.iframe)==null?void 0:(v=u.parentElement)==null?void 0:v.children;if(Q)for(u=0;u<Q.length;u++)v=Q[u],v!==R.iframe&&(y?(v.hasAttribute("aria-hidden")&&_.R1([_.QW(eEV)],v,"data-old-aria-hidden",v.getAttribute("aria-hidden")),_.R1([_.QW(lda)],v,"aria-hidden","true")):(v.removeAttribute("aria-hidden"),v.hasAttribute("data-old-aria-hidden")&&(_.R1([_.QW(OTa)],v,"aria-hidden",v.getAttribute("data-old-aria-hidden")),v.removeAttribute("data-old-aria-hidden"))))},IW=function(R,
y,u){var v;
(v=R.latencyCallback)==null||v.call(R,{latencyType:y,timestampEpochMillis:u!=null?u:Date.now()})};var A8K=function(R,y,u){Kb.call(this,y,u===void 0?!1:u);this.consentPrimitiveRequest=R;R=q8P(this);_.GSm(R);this.src=this.getSrc();var v;this.initialLoadingStrategy=(v=_.Ne(this.consentPrimitiveRequest,ZC,4))==null?void 0:_.qO(v,4)},DgP;
_.O(A8K,Kb);var iAm=function(R){var y=_.f("enable_primitive_dialog_aria_hide_siblings");R={request:R,enableDialogA11yFix:y===void 0?!1:y};DgP||(DgP=new A8K(R.request,R.isLatencyMeasurementExperiment||_.qO(R.request,1)===2,R.enableDialogA11yFix));return DgP},q8P=function(R){var y;
return(y=_.Ne(R.consentPrimitiveRequest,ZC,4))==null?void 0:_.$U(y,1)},PVm=function(R,y){if(!_.ZF(R.consentPrimitiveRequest,Vq,5)){var u=R.consentPrimitiveRequest,v=new Vq;
_.wC(u,5,v)}var Q;if((Q=_.Ne(R.consentPrimitiveRequest,Vq,5))==null||_.rLP(_.Ok(Q,8))==null){var M;(M=_.Ne(R.consentPrimitiveRequest,Vq,5))!=null&&_.ex(M,8,y)}},G08=function(R){var y;
return(y=_.Ne(R.consentPrimitiveRequest,Vq,5))==null?void 0:_.jZ(y,1)};
A8K.prototype.isDarkTheme=function(){var R;return((R=_.Ne(this.consentPrimitiveRequest,ZC,4))==null?void 0:_.qO(R,2))===2};
var EjH=function(R){var y;return((y=_.Ne(R.consentPrimitiveRequest,ZC,4))==null?void 0:_.jZ(y,5))||void 0},k08=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);DgP=void 0},bAP=function(R){return Kb.prototype.showPrimitive.call(R).then(function(y){return _.Ne(y,iTJ,2)})};for(var hJ={},pca=(hJ[64]="ma",hJ[73]="ogb",hJ[89]="cr",hJ[21]="test",hJ[0]="unkn",hJ[137]="con",hJ[155]="hl",hJ[78]="yt",hJ[171]="lp",hJ[172]="ap",hJ[177]="amo",hJ[178]="pqe",hJ[74]="gg",hJ[1]="gm",hJ[140]="am",hJ[193]="sc",hJ),tw7=_.V(Object.keys(pca)),c8g=tw7.next();!c8g.done;c8g=tw7.next());var ado=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(ado,_.y4);var S8V=[0,[2,3,4],_.v7,Fr7,eoo,_.wUT];var Y8M=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(Y8M,_.y4);var LFV=_.KK(Y8M,[0,fAZ,_.Rf,_.v7,_.Rf,_.v7,S8V]);var seo=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(seo,_.y4);seo.prototype.getCommand=function(){return _.qO(this,1)};
var zEa=function(){var R=new seo;return _.pU(R,1,0)};var gjo=_.IK([0,fAZ,_.Rf,[0,_.v7,_.Rf,-1]]);var CVH=new _.fT("s"),RRa=new _.fT("t"),ytp=new _.fT("u"),uWa=new _.fT("v"),vDo=function(R,y,u){_.ew.call(this,CVH);this.mediaKey=R;this.photoUrl=y;this.photoSource=u};
_.O(vDo,_.ew);var Qq7=function(){_.ew.call(this,RRa)};
_.O(Qq7,_.ew);var jqH=function(R){R=R===void 0?!1:R;_.ew.call(this,ytp);this.isError=R};
_.O(jqH,_.ew);var MY7=function(){_.ew.call(this,uWa)};
_.O(MY7,_.ew);var Jt8=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,IQo=function(R){if(typeof R=="string"){if(R.charAt(0)==".")return VYJ(R.substr(1));if(R.charAt(0)=="["){var y=Jt8.exec(R);R=R.indexOf("=")==-1?void 0:y[3];return iIZ(y[1],R)}return KRP(R)}return R},VYJ=function(R){return function(y){return y.getAttribute&&_.LT(y,R)}},iIZ=function(R,y){return function(u){return y!==void 0?u.getAttribute&&u.getAttribute(R)==y:u.hasAttribute&&u.hasAttribute(R)}},KRP=function(R){R=R.toUpperCase();
return function(y){return(y=y.tagName)&&y.toUpperCase()==R}},hR8=function(){return!0};var bw=function(R,y){this.JSC$19393_key_=R;this.JSC$19393_value_=y},Fz=function(R){throw Error("gk`"+R.JSC$19393_key_);
},bIK=function(R,y){return new TypeError("hk`"+y+"`"+R.JSC$19393_key_+"`"+R.JSC$19393_value_+"`"+typeof R.JSC$19393_value_)};
bw.prototype.string=function(R){return arguments.length==0?FRV(this):w0a(this,R)};
var w0a=function(R,y){var u;return(u=NqP(R))!=null?u:y},FRV=function(R){var y=NqP(R);
y===null&&Fz(R);return y},NqP=function(R){var y=R.JSC$19393_value_;
if(y==null)return null;if(typeof y==="string")return y;throw bIK(R,"string");};
bw.prototype.bool=function(R){if(arguments.length==0){var y=this.optionalBool();y===null&&Fz(this)}else{var u;y=(u=this.optionalBool())!=null?u:R}return y};
bw.prototype.optionalBool=function(){var R=this.JSC$19393_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 bIK(this,"boolean");};
bw.prototype.number=function(R){if(arguments.length==0){var y=TqH(this);y===null&&Fz(this)}else y=oDa(this,R);return y};
var oDa=function(R,y){var u;return(u=TqH(R))!=null?u:y},TqH=function(R){var y=R.JSC$19393_value_;
if(y==null)return null;if(typeof y==="number")return y;if(typeof y==="string"){var u=Number(y);if(!isNaN(u)&&(u!==0||y.trim().length!==0))return u}throw bIK(R,"number");};
bw.prototype.toString=function(){return FRV(this)};
bw.prototype.enum=function(R,y){var u=!0,v=void 0,Q;for(Q in R){var M=R[Q];u&&(u=!1,v=typeof M==="number"?oDa(this,y):w0a(this,y));if(M==v)return v}JSON.stringify(R);return v};
bw.prototype.array=function(R){if(arguments.length==0){var y=xEm(this);y===null&&Fz(this);return y}y=xEm(this);return y==null?R:y};
var xEm=function(R){var y=R.JSC$19393_value_;if(y==null)return null;Array.isArray(y)||(typeof y!=="string"?y=[y]:(y=y.trim(),y=y==""?[]:y.split(",").map(function(u){return u.trim()})));
return Bqa(R,y)},Bqa=function(R,y){var u=R.JSC$19393_key_+"[";
return Array.from(y,function(v,Q){return new bw(u+Q+"]",v)})};
bw.prototype.object=function(R){var y=this.JSC$19393_value_;if(y==null)return R===void 0&&Fz(this),R;if(typeof y==="object"&&y.constructor===Object){R={};var u=this.JSC$19393_key_+".",v;for(v in y)R[v]=new bw(u+v,y[v]);return R}throw bIK(this,"object");};var wD=function(R){this.list_=fQp(R)},fQp=function(R){if(R instanceof wD)R=R.list_;
else if(R[0]instanceof wD){for(var y=new Set,u=0;u<R.length;u++)for(var v=_.V(R[u].list_),Q=v.next();!Q.done;Q=v.next())y.add(Q.value);R=y}return[].concat(_.P$(R))};
_.J=wD.prototype;_.J.each=function(R,y,u){((u===void 0?0:u)?mSV:_.cu)(this.list_,R,y);return this};
_.J.size=function(){return this.list_.length};
_.J.isEmpty=function(){return this.list_.length===0};
_.J.get=function(R){return this.list_[R]||null};
_.J.el=function(){return this.list_[0]||null};
_.J.map=function(R,y){return _.Ws(this.list_,R,y)};
_.J.equals=function(R){return this===R||_.L8(this.list_,R.list_)};
_.J.first=function(){return this.list_.length==0?null:new Nj(this.list_[0])};
_.J.last=function(){return this.list_.length==0?null:new Nj(this.list_[this.list_.length-1])};
_.J.find=function(R){var y=[];this.each(function(u){u=u.querySelectorAll(String(R));for(var v=0;v<u.length;v++)y.push(u[v])});
return new wD(y)};
_.J.parent=function(){var R=[];this.each(function(y){(y=y.parentElement||null)&&!_.XU(R,y)&&R.push(y)});
return new wD(R)};
_.J.children=function(){var R=[];this.each(function(y){y=_.mn(y);for(var u=0;u<y.length;u++)R.push(y[u])});
return new wD(R)};
_.J.filter=function(R){R=_.bo(this.list_,IQo(R));return new wD(R)};
_.J.closest=function(R){var y=[],u=IQo(R),v=function(Q){return _.L9(Q)&&u(Q)};
this.each(function(Q){(Q=_.$h(Q,v,!0))&&!_.XU(y,Q)&&y.push(Q)});
return new wD(y)};
_.J.next=function(R){return eRH(this,_.Na5,R)};
_.J.prev=function(R){return eRH(this,lAZ,R)};
var eRH=function(R,y,u){var v=[];var Q=u?IQo(u):hR8;R.each(function(M){(M=y(M))&&Q(M)&&v.push(M)});
return new wD(v)};
wD.prototype.setClass=function(R){return this.each(function(y){_.Yj(y,R)})};
var lQp=function(R,y){return R.each(function(u){_.J6(u,y)})},OI8=function(R,y){return R.each(function(u){_.jp(u,y)})};
wD.prototype.toggleClass=function(R,y){return y===!0?lQp(this,R):y===!1?OI8(this,R):this.each(function(u){_.LT(u,R)?_.jp(u,R):_.J6(u,R)})};
wD.prototype.setText=function(R){return this.each(function(y){_.Ak(y,R)})};
var ZIH=function(R){R.each(function(y){y.removeAttribute("aria-hidden")})};
wD.prototype.getStyle=function(R){if(this.list_.length>0){var y=this.list_[0],u=y.style[_.fv(R)];return typeof u!=="undefined"?u:y.style[_.rIw(y,R)]||""}};
wD.prototype.getData=function(R){if(this.list_.length===0)return new bw(R,null);var y=a7Z(this.list_[0],R);return new bw(R,y)};
wD.prototype.focus=function(R){try{R?this.el().focus(R):this.el().focus()}catch(y){}return this};
wD.prototype.click=function(){var R=_.kh(this.el());if(R.createEvent){var y=R.createEvent("MouseEvents");y.initMouseEvent("click",!0,!0,R.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(y)}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 Tf=function(R,y,u,v){function Q(h,b,N){var T=b;b&&b.parentNode&&(T=b.cloneNode(!0));h(T,N)}
v=v===void 0?!1:v;if(R.list_.length==1){var M=R.list_[0],K=function(h){return y(h,M)};
u instanceof wD?u.each(K,void 0,v):Array.isArray(u)?(v?mSV:_.cu)(u,K):K(u);return R}return R.each(function(h){u instanceof wD?u.each(function(b){Q(y,b,h)}):Array.isArray(u)?_.cu(u,function(b){Q(y,b,h)}):Q(y,u,h)})};
_.J=wD.prototype;_.J.append=function(R){return Tf(this,function(y,u){y&&u.appendChild(y)},R)};
_.J.appendTo=function(R){(new wD([R])).append(this);return this};
_.J.remove=function(){return Tf(this,function(R,y){_.BY(y)},null)};
_.J.empty=function(){return Tf(this,function(R,y){_.$$(y)},null)};
_.J.after=function(R,y){return Tf(this,function(u,v){u&&_.Xi(u,v)},R,!(y===void 0||y))};
_.J.before=function(R){return Tf(this,function(y,u){y&&_.qW(y,u)},R)};
_.J.replaceWith=function(R){return Tf(this,function(y,u){y&&_.bZi(y,u)},R)};
_.J.toggle=function(R){return this.each(function(y){_.a_(y,R)})};
_.J.show=function(){return this.toggle(!0)};
_.J.hide=function(){return this.toggle(!1)};
_.J.trigger=function(R,y,u,v){return HIg(this,R,y,u,v)};
var HIg=function(R,y,u,v,Q){return R.each(function(M){_.xtT(_.kh(M)).triggerWizEventInternal(M,y,u,v,Q)})},Nj=function(R,y){R instanceof wD&&(y=R.list_,R=null);
this.list_=fQp(R!=null?[R]:y)};
_.IE(Nj,wD);_.J=Nj.prototype;_.J.children=function(){return new wD(Array.prototype.slice.call(_.mn(this.list_[0])))};
_.J.each=function(R,y){R.call(y,this.list_[0],0);return this};
_.J.size=function(){return 1};
_.J.el=function(){return this.list_[0]};
_.J.first=function(){return this};var oW=function(R,y){y=y===void 0?window:y;this.hostId=R;this.JSC$19404_win=y;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$19404_previousHtmlOverscroll=this.JSC$19404_previousBodyOverscroll=this.JSC$19404_previousBodyOverflow="";this.eventTarget=new _.nT;this.JSC$19404_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
rtK=function(R){var y=nD8(nD8(nD8(new GQa(78),"po"),"hppp"),"hhc");
y.authUser=Number(_.EB("SESSION_INDEX","0"));y.colorScheme=R;return y};
oW.prototype.getOrigin=function(){return this.origin?this.origin:_.Jt(_.ME(_.jY(new _.Cv,this.JSC$19404_win.location.protocol),this.JSC$19404_win.location.hostname),this.JSC$19404_win.location.port).toString()};
oW.prototype.getTargetOrigin=function(){return _.Jt(_.ME(_.jY(new _.Cv,this.scheme),this.domain),this.port)};
oW.prototype.preloadIframe=function(R){var y=this;if(this.iframeLoadPromise===void 0){var u=document.createElement("iframe");this.iframe=u;t6P(u,R);this.iframeLoadPromise=new Promise(function(v,Q){var M=!1,K=function(h){h.stopPropagation();u.removeEventListener("error",K);u.removeEventListener("securitypolicyviolation",K);Q(Error("ik",{cause:h}))};
u.addEventListener("error",K);u.addEventListener("securitypolicyviolation",K);setTimeout(function(){M||Q(Error("jk"))},3E4);
PA7(y,u,function(){M=!0;u.removeEventListener("error",K);u.removeEventListener("securitypolicyviolation",K);v()})});
WRJ(this);R=this.getTargetOrigin().toString();u.setAttribute("allow","camera "+R+"; display-capture "+R);this.parentElement.appendChild(u)}return this.iframeLoadPromise};
var kQm=function(R,y){var u,v;return _.I(function(Q){if(Q.nextAddress==1)return u=EsH(getComputedStyle(R.parentElement).direction==="rtl"),R.parentElement.appendChild(u),document.activeElement instanceof HTMLElement&&(R.elementToFocusAfterClose=document.activeElement),_.wY(Q,2),Q.yield(R.preloadIframe(y),4);if(Q.nextAddress!=2){R.parentElement.removeChild(u);R.JSC$19404_previousBodyOverflow=R.parentElement.style.overflow;R.JSC$19404_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
R.JSC$19404_previousBodyOverscroll=R.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";R.parentElement.style.overscrollBehavior="contain";R.parentElement.style.overflow="hidden";var M=R.iframe;M.style.bottom="0";M.style.border="none";M.style.height="100%";M.style.left="0";M.style.position=R.iframePosition;M.style.right="0";M.style.top="0";M.style.width="100%";M.style.zIndex="2202";M.setAttribute("aria-hidden","false");M.setAttribute("aria-modal","true");
R.opened=!0;dEM(R);return _.c5(Q,0)}v=_.B$(Q);R.parentElement.removeChild(u);ANP(R.isDarkTheme());UEm(R,!1);throw Error("kk",{cause:v});})},UEm=function(R,y){y=y===void 0?!0:y;
R.iframe!==void 0&&(ED8(R),document.documentElement.style.overscrollBehavior=R.JSC$19404_previousHtmlOverscroll,R.parentElement.style.overscrollBehavior=R.JSC$19404_previousBodyOverscroll,R.parentElement.style.overflow=R.JSC$19404_previousBodyOverflow,R.elementToFocusAfterClose!==void 0&&(R.elementToFocusAfterClose.focus(),R.elementToFocusAfterClose=void 0),y?WRJ(R):(R.parentElement.removeChild(R.iframe),R.iframe=void 0,R.iframeLoadPromise=void 0,R.mainChannel=void 0),R.opened=!1)},ED8=function(R){R.backgroundElementsAriaHiddenIsNull&&
(ZIH(R.backgroundElementsAriaHiddenIsNull),R.backgroundElementsAriaHiddenIsNull=void 0);
R.backgroundElementsAriaHiddenIsFalse&&(R.backgroundElementsAriaHiddenIsFalse.each(function(y){y.setAttribute("aria-hidden","false")}),R.backgroundElementsAriaHiddenIsFalse=void 0);
R.backgroundElementsWithoutInert&&(R.backgroundElementsWithoutInert.each(function(y){y.removeAttribute("inert")}),R.backgroundElementsWithoutInert=void 0)},dEM=function(R){R.backgroundElementsAriaHiddenIsNull=(new Nj(R.iframe.parentElement)).children().filter(function(y){return y.getAttribute("aria-hidden")===null&&y!==R.iframe});
R.backgroundElementsAriaHiddenIsNull.each(function(y){y.setAttribute("aria-hidden","true")});
R.backgroundElementsAriaHiddenIsFalse=(new Nj(R.iframe.parentElement)).children().filter(function(y){return y.getAttribute("aria-hidden")==="false"&&y!==R.iframe});
R.backgroundElementsAriaHiddenIsFalse.each(function(y){y.setAttribute("aria-hidden","true")});
R.backgroundElementsWithoutInert=(new Nj(R.iframe.parentElement)).children().filter(function(y){return!y.hasAttribute("inert")&&y!==R.iframe});
R.backgroundElementsWithoutInert.each(function(y){y.setAttribute("inert","true")})},WRJ=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")};
oW.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var GQa=function(R,y){oW.call(this,pca[R],y);this.options=[];this.style=""};
_.O(GQa,oW);var $EZ=function(R){R.style="youtube";return R},qRa=function(R,y){R.eventTarget.listen(ytp,y);
return R},X0Z=function(R,y){R.eventTarget.listen(CVH,y);
return R},nD8=function(R,y){R.options.push(y);
return R},mEm=function(R){var y=[R.getOrigin()];
R.ancestorOrigins&&y.push.apply(y,_.P$(R.ancestorOrigins));var u=new _.Cv(R.JSC$19404_win.location.href),v=R.startUrl?R.startUrl:R.options.includes("po")?"profile-picture/art":"profile-picture";y=Hj(_.Vh(R.getTargetOrigin(),v),"origin",y);R.startUrl&&_.cY(y,"startPath",R.startUrl);R.authUser>0&&_.cY(y,"authuser",R.authUser);R.pageId!==void 0&&_.cY(y,"pageId",R.pageId);_.cY(y,"hostId",R.hostId);R.jsMode!==void 0&&_.cY(y,"jsmode",R.jsMode);R.rectangleRatio!==void 0&&_.cY(y,"rectangleRatio",R.rectangleRatio);
R.options.length>0&&_.cY(y,"opts",R.options.join(","));try{for(var Q=_.V(["utm_source","utm_medium","utm_campaign","utm_content"]),M=Q.next();!M.done;M=Q.next()){var K=M.value;_.tD(u,K)&&_.cY(y,K,_.tD(u,K))}var h,b=(h=R.hl)!=null?h:_.tD(u,"hl");b!==void 0&&_.cY(y,"hl",b)}catch(N){if(!(N instanceof URIError))throw N;}R.colorScheme&&_.cY(y,"theme",R.colorScheme);R.style&&_.cY(y,"style",R.style);return y},At7=function(R,y){R.mainChannel=_.MW({destination:R.JSC$19404_win,
iframe:y,origin:R.getTargetOrigin().toString(),channelName:"ow",onMessage:function(u){u=LFV(u.data);if(y===R.iframe)switch(_.qO(u,1)){case 1:R.eventTarget.dispatchEvent(new jqH);UEm(R);break;case 2:R.eventTarget.dispatchEvent(new vDo(_.$U(u,4),_.$U(u,2),_.qO(u,5),_.Ne(u,ado,6)));break;case 0:var v;R.eventTarget.dispatchEvent(new Qq7(_.$U(u,2),(v=_.qO(u,3))!=null?v:0));break;case 3:R.eventTarget.dispatchEvent(new jqH(!0));UEm(R,!1);break;case 4:R.eventTarget.dispatchEvent(new MY7)}}})},PA7=function(R,
y,u){_.MW({destination:R.JSC$19404_win,
iframe:y,origin:_.Jt(_.ME(_.jY(new _.Cv,R.scheme),R.domain),R.port).toString(),channelName:"owi",onMessage:function(v){y===R.iframe&&(u!==void 0&&u(),At7(R,y),R.opened&&R.mainChannel.send(gjo(zEa())),v.reply(),PA7(R,y))}})};
GQa.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?oW.prototype.preloadIframe.call(this,mEm(this).toString()):this.iframeLoadPromise};
GQa.prototype.openPicker=function(R){var y=this;return _.I(function(u){if(u.nextAddress==1)return y.startUrl=R?R:y.options.includes("po")?"profile-picture/art":"profile-picture",u.yield(kQm(y,mEm(y).toString()),2);if(y.mainChannel){var v=y.mainChannel,Q=v.send;var M=zEa();M=_.eQ(M,2,y.startUrl);Q.call(v,gjo(M))}_.f$(u)})};var DEJ=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(DEJ,_.y4);_.J=DEJ.prototype;_.J.getSize=function(){return U1(this,1)};
_.J.setSize=function(R){return _.DF(this,1,R)};
_.J.getWidth=function(){return U1(this,12)};
_.J.getHeight=function(){return U1(this,13)};
_.J.setCenterCrop=function(R){return _.ix(this,20,R)};
_.J.getHtml=function(){return _.Uk(this,4)};
_.J.getToken=function(){return _.Tl(this,24)};
_.J.setToken=function(R){return _.eQ(this,24,R)};
_.J.getBackgroundColor=function(){return U1(this,87)};
_.J.hasBackgroundColor=function(){return _.y8(_.Ok(this,87))!=null};
_.J.getStoryboardLevel=function(){return U1(this,109)};var xr=function(R){this.JSC$19412_value_=void 0;this.childNodes_={};if(R){var y=_.jM5(R);R=_.Qh(R);for(var u=0;u<y.length;u++)this.set(y[u],R[u])}};
xr.prototype.set=function(R,y){p0a(this,R,y,!1)};
xr.prototype.add=function(R,y){p0a(this,R,y,!0)};
var p0a=function(R,y,u,v){for(var Q=0;Q<y.length;Q++){var M=y.charAt(Q);R.childNodes_[M]||(R.childNodes_[M]=new xr);R=R.childNodes_[M]}if(v&&R.JSC$19412_value_!==void 0)throw Error("lk`"+y);R.JSC$19412_value_=u},tYI=function(R,y){for(var u=0;u<y.length;u++)if(R=R.childNodes_[y.charAt(u)],!R)return;
return R};
xr.prototype.get=function(R){return(R=tYI(this,R))?R.JSC$19412_value_:void 0};
xr.prototype.getValues=function(){var R=[];ctH(this,R);return R};
var ctH=function(R,y){R.JSC$19412_value_!==void 0&&y.push(R.JSC$19412_value_);for(var u in R.childNodes_)ctH(R.childNodes_[u],y)};
xr.prototype.getKeys=function(R){var y=[];if(R){for(var u=this,v=0;v<R.length;v++){var Q=R.charAt(v);if(!u.childNodes_[Q])return[];u=u.childNodes_[Q]}aQg(u,R,y)}else aQg(this,"",y);return y};
var aQg=function(R,y,u){R.JSC$19412_value_!==void 0&&u.push(y);for(var v in R.childNodes_)aQg(R.childNodes_[v],y+v,u)};
_.J=xr.prototype;_.J.containsKey=function(R){return this.get(R)!==void 0};
_.J.containsValue=function(R){if(this.JSC$19412_value_===R)return!0;for(var y in this.childNodes_)if(this.childNodes_[y].containsValue(R))return!0;return!1};
_.J.clear=function(){this.childNodes_={};this.JSC$19412_value_=void 0};
_.J.remove=function(R){for(var y=this,u=[],v=0;v<R.length;v++){var Q=R.charAt(v);if(!y.childNodes_[Q])throw Error("mk`"+R);u.push([y,Q]);y=y.childNodes_[Q]}R=y.JSC$19412_value_;for(delete y.JSC$19412_value_;u.length>0;)if(v=u.pop(),y=v[0],v=v[1],y.childNodes_[v].isEmpty())delete y.childNodes_[v];else break;return R};
_.J.clone=function(){return new xr(this)};
_.J.getCount=function(){return nlo(this.getValues())};
_.J.isEmpty=function(){return this.JSC$19412_value_===void 0&&_.Ps.isEmpty(this.childNodes_)};var LcZ=function(){if(!SRZ){var R=SRZ=new xr,y;for(y in YRm)R.add(y,YRm[y])}},SRZ,Bk=function(R,y){this.types=R;
this.setters=y},YRm={a:new Bk([3,
0],[function(R,y){_.ix(R,21,y)},
function(R,y){_.DF(R,56,y)}]),
al:new Bk([3],[function(R,y){_.ix(R,74,y)}]),
b:new Bk([3,0],[function(R,y){_.ix(R,23,y)},
function(R,y){_.DF(R,38,y)}]),
ba:new Bk([0],[function(R,y){_.DF(R,85,y)}]),
bc:new Bk([0],[function(R,y){_.DF(R,87,y)}]),
br:new Bk([0],[function(R,y){_.DF(R,86,y)}]),
c:new Bk([3,0],[function(R,y){_.ix(R,2,y)},
function(R,y){_.DF(R,39,y)}]),
cc:new Bk([3],[function(R,y){_.ix(R,51,y)}]),
ci:new Bk([3],[function(R,y){_.ix(R,32,y)}]),
ckm:new Bk([3],[function(R,y){_.ix(R,104,y)}]),
cp:new Bk([0],[function(R,y){_.DF(R,92,y)}]),
cr:new Bk([3],[function(R,y){_.ix(R,108,y)}]),
cv:new Bk([0],[function(R,y){_.DF(R,94,y)}]),
d:new Bk([3],[function(R,y){_.ix(R,3,y)}]),
dc:new Bk([5],[function(R,y){_.eQ(R,99,y)}]),
df:new Bk([3],[function(R,y){_.ix(R,80,y)}]),
dv:new Bk([3],[function(R,y){_.ix(R,90,y)}]),
e:new Bk([0],[function(R,y){_.DF(R,15,y)}]),
em:new Bk([0],[function(R,y){_.DF(R,107,y)}]),
f:new Bk([4],[function(R,y){_.eQ(R,16,y)}]),
fg:new Bk([3],[function(R,y){_.ix(R,34,y)}]),
fh:new Bk([3],[function(R,y){_.ix(R,30,y)}]),
fm:new Bk([3],[function(R,y){_.ix(R,84,y)}]),
fo:new Bk([2],[function(R,y){_.Mt(R,79,_.Dw(y))}]),
ft:new Bk([3],[function(R,y){_.ix(R,50,y)}]),
fv:new Bk([3],[function(R,y){_.ix(R,31,y)}]),
g:new Bk([3],[function(R,y){_.ix(R,14,y)}]),
gce:new Bk([4],[function(R,y){_.eQ(R,112,y)}]),
gd:new Bk([3],[function(R,y){_.ix(R,83,y)}]),
gm:new Bk([3],[function(R,y){_.ix(R,105,y)}]),
h:new Bk([3,0],[function(R,y){_.ix(R,4,y)},
function(R,y){_.DF(R,13,y)}]),
i:new Bk([3],[function(R,y){_.ix(R,22,y)}]),
ic:new Bk([0],[function(R,y){_.DF(R,71,y)}]),
id:new Bk([3],[function(R,y){_.ix(R,70,y)}]),
il:new Bk([3],[function(R,y){_.ix(R,96,y)}]),
ip:new Bk([3],[function(R,y){_.ix(R,54,y)}]),
iv:new Bk([0],[function(R,y){_.ex(R,75,y)}]),
j:new Bk([1],[function(R,y){y=y==null?y:pAZ(y);_.Mt(R,29,y)}]),
k:new Bk([3,0],[function(R,y){_.ix(R,17,y)},
function(R,y){_.DF(R,42,y)}]),
l:new Bk([0],[function(R,y){_.DF(R,44,y)}]),
lf:new Bk([3],[function(R,y){_.ix(R,65,y)}]),
lo:new Bk([3],[function(R,y){_.ix(R,97,y)}]),
m:new Bk([0],[function(R,y){_.DF(R,63,y)}]),
md:new Bk([3],[function(R,y){_.ix(R,91,y)}]),
mm:new Bk([4],[function(R,y){_.eQ(R,81,y)}]),
mo:new Bk([3],[function(R,y){_.ix(R,73,y)}]),
mp:new Bk([0],[function(R,y){_.DF(R,115,y)}]),
mv:new Bk([3],[function(R,y){_.ix(R,66,y)}]),
n:new Bk([3],[function(R,y){R.setCenterCrop(y)}]),
nc:new Bk([3],[function(R,y){_.ix(R,55,y)}]),
nd:new Bk([3],[function(R,y){_.ix(R,53,y)}]),
ng:new Bk([3],[function(R,y){_.ix(R,95,y)}]),
ngm:new Bk([3],[function(R,y){_.ix(R,106,y)}]),
no:new Bk([3],[function(R,y){_.ix(R,37,y)}]),
ns:new Bk([3],[function(R,y){_.ix(R,40,y)}]),
nt0:new Bk([4],[function(R,y){_.eQ(R,36,y)}]),
ntm:new Bk([3],[function(R,y){_.ix(R,114,y)}]),
nu:new Bk([3],[function(R,y){_.ix(R,46,y)}]),
nw:new Bk([3],[function(R,y){_.ix(R,48,y)}]),
o:new Bk([1,3],[function(R,y){y=y==null?y:pAZ(y);_.Mt(R,7,y)},
function(R,y){_.ix(R,27,y)}]),
p:new Bk([3,0],[function(R,y){_.ix(R,19,y)},
function(R,y){_.DF(R,43,y)}]),
pa:new Bk([3],[function(R,y){_.ix(R,61,y)}]),
pc:new Bk([0],[function(R,y){_.DF(R,88,y)}]),
pd:new Bk([3],[function(R,y){_.ix(R,60,y)}]),
pf:new Bk([3],[function(R,y){_.ix(R,67,y)}]),
pg:new Bk([3],[function(R,y){_.ix(R,72,y)}]),
pi:new Bk([2],[function(R,y){_.Mt(R,76,_.Dw(y))}]),
pp:new Bk([3],[function(R,y){_.ix(R,52,y)}]),
pt:new Bk([4],[function(R,y){_.eQ(R,111,y)}]),
q:new Bk([4],[function(R,y){_.eQ(R,28,y)}]),
r:new Bk([3,0],[function(R,y){_.ix(R,6,y)},
function(R,y){_.DF(R,26,y)}]),
ra:new Bk([3],[function(R,y){_.ix(R,103,y)}]),
rf:new Bk([3],[function(R,y){_.ix(R,100,y)}]),
rg:new Bk([3],[function(R,y){_.ix(R,59,y)}]),
rh:new Bk([3],[function(R,y){_.ix(R,49,y)}]),
rj:new Bk([3],[function(R,y){_.ix(R,57,y)}]),
ro:new Bk([2],[function(R,y){_.Mt(R,78,_.Dw(y))}]),
rp:new Bk([3],[function(R,y){_.ix(R,58,y)}]),
rw:new Bk([3],[function(R,y){_.ix(R,35,y)}]),
rwa:new Bk([3],[function(R,y){_.ix(R,64,y)}]),
rwu:new Bk([3],[function(R,y){_.ix(R,41,y)}]),
s:new Bk([3,0],[function(R,y){_.ix(R,33,y)},
function(R,y){R.setSize(y)}]),
sb:new Bk([0],[function(R,y){_.DF(R,110,y)}]),
sc:new Bk([0],[function(R,y){_.DF(R,89,y)}]),
sg:new Bk([3],[function(R,y){_.ix(R,82,y)}]),
sl:new Bk([0],[function(R,y){_.DF(R,109,y)}]),
sm:new Bk([3],[function(R,y){_.ix(R,93,y)}]),
t:new Bk([4],[function(R,y){R.setToken(y)}]),
tm:new Bk([3],[function(R,y){_.ix(R,113,y)}]),
u:new Bk([3],[function(R,y){_.ix(R,18,y)}]),
ut:new Bk([3],[function(R,y){_.ix(R,45,y)}]),
v:new Bk([0],[function(R,y){_.DF(R,62,y)}]),
vb:new Bk([0],[function(R,y){_.ex(R,68,y)}]),
vf:new Bk([4],[function(R,y){_.eQ(R,102,y)}]),
vl:new Bk([0],[function(R,y){_.ex(R,69,y)}]),
vm:new Bk([3],[function(R,y){_.ix(R,98,y)}]),
w:new Bk([0],[function(R,y){_.DF(R,12,y)}]),
x:new Bk([0],[function(R,y){_.DF(R,9,y)}]),
y:new Bk([0],[function(R,y){_.DF(R,10,y)}]),
ya:new Bk([2],[function(R,y){_.Mt(R,77,_.Dw(y))}]),
z:new Bk([0],[function(R,y){_.DF(R,11,y)}])};
LcZ.prototype.parse=function(R){var y=new DEJ,u=new DEJ;if(R=="")R=!0;else{R=R.split("-");for(var v=!0,Q=0;Q<R.length;Q++){var M=R[Q];if(M.length==0)v=!1;else{var K=M,h=!1;var b=K;var N=K.charAt(0);N!=N.toLowerCase()&&(h=!0,b=K.charAt(0).toLowerCase()+K.substring(1));var T=SRZ;for(N=1;N<=b.length;++N){var x=T,B=b.substring(0,N);if(B.length==0?x.isEmpty():!tYI(x,B))break}b=N==1?null:(b=T.get(b.substring(0,N-1)))?{option:K.substring(0,N-1),value:K.substring(N-1),signed:h,attributes:b}:null;if(b){K=
[];h=[];N=!1;for(T=0;T<b.attributes.types.length;T++){x=b.attributes.types[T];var l=b.value;B=Q;if(b.signed&&x==1)for(var Z=l.length;Z<12&&B<R.length-1;)l+="-"+R[B+1],Z=l.length,++B;else if(x==2)for(;B<R.length-1&&R[B+1].match(/^[\d\.]/);)l+="-"+R[B+1],++B;Z=b.attributes.setters[T];l=LRM(this,x)(b.option,l,y,u,Z);if(l===null){N=!0;Q=B;break}else K.push(x),h.push(l)}if(!N)for(b=0;b<h.length;b++)T=K[b],l=h[b],sqK(this,T)(M,l);v=v&&N}else v=!1}}R=v}return new zRM(y,u,R)};
var fb=function(R,y,u,v,Q,M){Q(u,y);R=R.charAt(0);M=M(R==R.toUpperCase());Q(v,M)};
_.J=LcZ.prototype;_.J.parseAndSetIntOption_=function(R,y,u,v,Q){if(y=="")return 0;isFinite(y)&&(y=String(y));y=typeof y==="string"?/^\s*-?0x/i.test(y)?parseInt(y,16):parseInt(y,10):NaN;if(isNaN(y))return 1;fb(R,y,u,v,Q,Number);return null};
_.J.logIntParseError_=function(){};
_.J.parseAndSetFloatOption_=function(R,y,u,v,Q){if(y=="")return 0;var M=Number(y);y=M==0&&_.iO(y)?NaN:M;if(isNaN(y))return 1;fb(R,y,u,v,Q,Number);return null};
_.J.logFloatParseError_=function(){};
_.J.parseAndSetBoolOption_=function(R,y,u,v,Q){if(y!="")return 2;fb(R,!0,u,v,Q,Boolean);return null};
_.J.logBoolParseError_=function(){};
_.J.parseAndSetStringOption_=function(R,y,u,v,Q){if(y=="")return 0;fb(R,y,u,v,Q,function(M){return M?"1":""});
return null};
_.J.logStringParseError_=function(){};
_.J.parseAndSetUint64Base64Option_=function(R,y,u,v,Q){if(y=="")return 0;fb(R,y,u,v,Q,function(M){return M?1:0});
return null};
var LRM=function(R,y){switch(y){case 0:return(0,_.HY)(R.parseAndSetIntOption_,R);case 2:return(0,_.HY)(R.parseAndSetFloatOption_,R);case 3:return(0,_.HY)(R.parseAndSetBoolOption_,R);case 4:return(0,_.HY)(R.parseAndSetStringOption_,R);case 1:return(0,_.HY)(R.parseAndSetUint64Base64Option_,R);default:return function(){}}},sqK=function(R,y){switch(y){case 0:return(0,_.HY)(R.logIntParseError_,R);
case 2:return(0,_.HY)(R.logFloatParseError_,R);case 3:return(0,_.HY)(R.logBoolParseError_,R);case 4:case 1:return(0,_.HY)(R.logStringParseError_,R);default:return function(){}}},zRM=function(R,y,u){this.valueProto_=R;
this.signatureFlagProto_=y;this.JSC$19424_valid_=u};
zRM.prototype.isValid=function(){return this.JSC$19424_valid_};var cNa=function(R){this.JSC$19425_parser_=null;this.JSC$19425_components_=[];this.JSC$19425_parsedOptions_=null;gDJ(this,R)},CAa=function(R){R.JSC$19425_parser_==null&&(R.JSC$19425_parser_=new LcZ);
return R.JSC$19425_parser_},gDJ=function(R,y){R.JSC$19425_parsedOptions_=y?typeof y==="string"?CAa(R).parse(y):y:CAa(R).parse("")},eT=function(R,y){return R==y?!1:!0};
_.J=cNa.prototype;_.J.JSC$19427_setCrop=function(R){R=R||void 0;var y=this.JSC$19425_parsedOptions_,u=y.valueProto_;eT(R,_.Uk(u,2),_.Uk(y.signatureFlagProto_,2))&&_.ix(u,2,R);return this};
_.J.JSC$19427_setCircleCrop=function(R){R=R||void 0;var y=this.JSC$19425_parsedOptions_,u=y.valueProto_;eT(R,dO(u,51),dO(y.signatureFlagProto_,51))&&_.ix(u,51,R);return this};
_.J.JSC$19427_setImageCrop=function(R){R=R||void 0;var y=this.JSC$19425_parsedOptions_,u=y.valueProto_;eT(R,dO(u,32),dO(y.signatureFlagProto_,32))&&_.ix(u,32,R);return this};
_.J.JSC$19427_setHeight=function(R){var y=this.JSC$19425_parsedOptions_,u=y.valueProto_;eT(R,u.getHeight(),y.signatureFlagProto_.getHeight())&&_.DF(u,13,R);return this};
_.J.setCenterCrop=function(R){R=R||void 0;var y=this.JSC$19425_parsedOptions_,u=y.valueProto_;eT(R,_.Uk(u,20),_.Uk(y.signatureFlagProto_,20))&&u.setCenterCrop(R);return this};
_.J.JSC$19427_setSmartCrop=function(R){R=R||void 0;var y=this.JSC$19425_parsedOptions_,u=y.valueProto_;eT(R,_.Uk(u,19),_.Uk(y.signatureFlagProto_,19))&&_.ix(u,19,R);return this};
_.J.JSC$19427_setPad=function(R){R=R||void 0;var y=this.JSC$19425_parsedOptions_,u=y.valueProto_;eT(R,dO(u,60),dO(y.signatureFlagProto_,60))&&_.ix(u,60,R);return this};
_.J.JSC$19427_setSmartCropUseFace=function(R){R=R||void 0;var y=this.JSC$19425_parsedOptions_,u=y.valueProto_;eT(R,_.Uk(u,67),_.Uk(y.signatureFlagProto_,67))&&_.ix(u,67,R);return this};
_.J.JSC$19427_setSmartCropNoClip=function(R){R=R||void 0;var y=this.JSC$19425_parsedOptions_,u=y.valueProto_;eT(R,_.Uk(u,52),_.Uk(y.signatureFlagProto_,52))&&_.ix(u,52,R);return this};
_.J.setSize=function(R){var y=this.JSC$19425_parsedOptions_,u=y.valueProto_;eT(R,u.getSize(),y.signatureFlagProto_.getSize())&&u.setSize(R);return this};
_.J.setToken=function(R){R=R||void 0;var y=this.JSC$19425_parsedOptions_,u=y.valueProto_;eT(R,u.getToken(),y.signatureFlagProto_.getToken())&&u.setToken(R);return this};
_.J.JSC$19427_setWidth=function(R){var y=this.JSC$19425_parsedOptions_,u=y.valueProto_;eT(R,u.getWidth(),y.signatureFlagProto_.getWidth())&&_.DF(u,12,R);return this};
_.J.clearOptions=function(){gDJ(this,"");return this};
_.J.build=function(){this.JSC$19425_components_.length=0;var R=this.JSC$19425_parsedOptions_,y=R.valueProto_;R=R.signatureFlagProto_;lw(this,"s",y.getSize(),R.getSize());lw(this,"w",y.getWidth(),R.getWidth());On(this,"c",_.Uk(y,2),_.Uk(R,2));On(this,"d",_.Uk(y,3),_.Uk(R,3));lw(this,"h",y.getHeight(),R.getHeight());On(this,"s",dO(y,33),dO(R,33));On(this,"h",y.getHtml(),R.getHtml());On(this,"p",_.Uk(y,19),_.Uk(R,19));On(this,"pp",_.Uk(y,52),_.Uk(R,52));On(this,"pf",_.Uk(y,67),_.Uk(R,67));On(this,"n",
_.Uk(y,20),_.Uk(R,20));lw(this,"r",U1(y,26),U1(R,26));On(this,"r",_.Uk(y,6),_.Uk(R,6));On(this,"o",dO(y,27),dO(R,27));var u=_.dV(y,7,_.lo);Zp(this,"o",u,_.dV(R,7,_.lo));u=_.dV(y,29,_.lo);Zp(this,"j",u,_.dV(R,29,_.lo));lw(this,"x",U1(y,9),U1(R,9));lw(this,"y",U1(y,10),U1(R,10));lw(this,"z",U1(y,11),U1(R,11));On(this,"g",_.Uk(y,14),_.Uk(R,14));lw(this,"e",U1(y,15),U1(R,15));Zp(this,"f",_.Tl(y,16),_.Tl(R,16));On(this,"k",dO(y,17),dO(R,17));On(this,"u",dO(y,18),!0);On(this,"ut",dO(y,45),!0);On(this,"i",
dO(y,22),!0);On(this,"a",dO(y,21),dO(R,21));On(this,"b",_.Uk(y,23),_.Uk(R,23));lw(this,"b",U1(y,38),U1(R,38));lw(this,"c",U1(y,39),U1(R,39),16,8);Zp(this,"q",_.Tl(y,28),_.Tl(R,28));On(this,"fh",dO(y,30),dO(R,30));On(this,"fv",dO(y,31),dO(R,31));On(this,"fg",_.Uk(y,34),_.Uk(R,34));On(this,"ci",dO(y,32),dO(R,32));Zp(this,"t",y.getToken(),R.getToken());Zp(this,"nt0",_.Tl(y,36),_.Tl(R,36));On(this,"rw",_.Uk(y,35),_.Uk(R,35));On(this,"rwu",_.Uk(y,41),_.Uk(R,41));On(this,"rwa",_.Uk(y,64),_.Uk(R,64));On(this,
"nw",_.Uk(y,48),_.Uk(R,48));On(this,"rh",_.Uk(y,49),_.Uk(R,49));On(this,"no",_.Uk(y,37),_.Uk(R,37));On(this,"ns",dO(y,40),dO(R,40));lw(this,"k",U1(y,42),U1(R,42));lw(this,"p",U1(y,43),U1(R,43));lw(this,"l",U1(y,44),U1(R,44));lw(this,"v",U1(y,62),U1(R,62));On(this,"nu",dO(y,46),dO(R,46));On(this,"ft",dO(y,50),dO(R,50));On(this,"cc",dO(y,51),dO(R,51));On(this,"nd",dO(y,53),dO(R,53));On(this,"ip",dO(y,54),dO(R,54));On(this,"nc",dO(y,55),dO(R,55));lw(this,"a",U1(y,56),U1(R,56));On(this,"rj",dO(y,57),
dO(R,57));On(this,"rp",dO(y,58),dO(R,58));On(this,"rg",dO(y,59),dO(R,59));On(this,"pd",dO(y,60),dO(R,60));On(this,"pa",dO(y,61),dO(R,61));lw(this,"m",U1(y,63),U1(R,63));lw(this,"vb",k3(y,68),k3(R,68));lw(this,"vl",k3(y,69),k3(R,69));On(this,"lf",dO(y,65),dO(R,65));On(this,"mv",dO(y,66),dO(R,66));On(this,"id",dO(y,70),dO(R,70));lw(this,"ic",U1(y,71),!0);On(this,"pg",_.Uk(y,72),_.Uk(R,72));On(this,"mo",dO(y,73),dO(R,73));On(this,"al",dO(y,74),dO(R,74));lw(this,"iv",k3(y,75),k3(R,75));lw(this,"pi",E1(y,
76),E1(R,76));lw(this,"ya",E1(y,77),E1(R,77));lw(this,"ro",E1(y,78),E1(R,78));lw(this,"fo",E1(y,79),E1(R,79));On(this,"df",dO(y,80),dO(R,80));Zp(this,"mm",_.Tl(y,81),_.Tl(R,81));On(this,"sg",dO(y,82),dO(R,82));On(this,"gd",dO(y,83),dO(R,83));On(this,"fm",dO(y,84),dO(R,84));lw(this,"ba",U1(y,85),U1(R,85));lw(this,"br",U1(y,86),U1(R,86));lw(this,"bc",y.getBackgroundColor(),R.getBackgroundColor(),16,8);lw(this,"pc",U1(y,88),U1(R,88),16,8);lw(this,"sc",U1(y,89),U1(R,89),16,8);On(this,"dv",dO(y,90),dO(R,
90));On(this,"md",dO(y,91),dO(R,91));lw(this,"cp",U1(y,92),U1(R,92));On(this,"sm",dO(y,93),dO(R,93));lw(this,"cv",U1(y,94),U1(R,94));On(this,"ng",dO(y,95),dO(R,95));On(this,"il",dO(y,96),dO(R,96));On(this,"lo",dO(y,97),dO(R,97));On(this,"vm",dO(y,98),dO(R,98));Zp(this,"dc",_.Tl(y,99),_.Tl(R,99));On(this,"rf",dO(y,100),dO(R,100));Zp(this,"vf",_.Tl(y,102),_.Tl(R,102));On(this,"ra",_.Uk(y,103),_.Uk(R,103));On(this,"ckm",dO(y,104),dO(R,104));On(this,"gm",dO(y,105),dO(R,105));On(this,"ngm",dO(y,106),dO(R,
106));lw(this,"em",U1(y,107),U1(R,107));On(this,"cr",dO(y,108),dO(R,108));lw(this,"sl",y.getStoryboardLevel(),R.getStoryboardLevel());lw(this,"sb",U1(y,110),U1(R,110));Zp(this,"pt",_.Tl(y,111),_.Tl(R,111));Zp(this,"gce",_.Tl(y,112),_.Tl(R,112));On(this,"tm",dO(y,113),dO(R,113));On(this,"ntm",dO(y,114),dO(R,114));lw(this,"mp",U1(y,115),U1(R,115));return this.JSC$19425_components_.join("-")};
var lw=function(R,y,u,v,Q,M){if(u!=null){var K=Q==void 0||Q!=10&&Q!=16?10:Q;u=Number(u).toString(K);Q=new JlP;Q.append(K==16?"0x":"");K=Q.append;M==void 0?M="":(M-=u.length,M=M<=0?"":(0,_.COc)("0",M));K.call(Q,M);Q.append(u);RsJ(R,y,Q.toString(),!!Number(v))}},On=function(R,y,u,v){u&&RsJ(R,y,"",!!v)},Zp=function(R,y,u,v){u&&RsJ(R,y,String(u),!!Number(v))},RsJ=function(R,y,u,v){v&&(y=y.charAt(0).toUpperCase()+y.substring(1));
R.JSC$19425_components_.push(y+u)};_.IE(pm,cNa);_.J=pm.prototype;_.J.JSC$19427_setCrop=function(R){R&&Hk(this);return pm.superClass_.JSC$19427_setCrop.call(this,R)};
_.J.JSC$19427_setHeight=function(R){R=R==null||R<0?void 0:R;R!=null&&this.setSize();return pm.superClass_.JSC$19427_setHeight.call(this,R)};
_.J.JSC$19427_setImageCrop=function(R){R&&Hk(this);return pm.superClass_.JSC$19427_setImageCrop.call(this,R)};
_.J.JSC$19427_setCircleCrop=function(R){R&&Hk(this);return pm.superClass_.JSC$19427_setCircleCrop.call(this,R)};
_.J.setSize=function(R){_.Sv(R)&&(R=Math.max(R.width,R.height));R=R==null||R<0?void 0:R;R!=null&&(this.JSC$19427_setWidth(),this.JSC$19427_setHeight());return pm.superClass_.setSize.call(this,R)};
_.J.JSC$19427_setSmartCrop=function(R){R&&Hk(this);return pm.superClass_.JSC$19427_setSmartCrop.call(this,R)};
_.J.JSC$19427_setSmartCropNoClip=function(R){R&&Hk(this);return pm.superClass_.JSC$19427_setSmartCropNoClip.call(this,R)};
_.J.JSC$19427_setSmartCropUseFace=function(R){R&&Hk(this);return pm.superClass_.JSC$19427_setSmartCropUseFace.call(this,R)};
_.J.setCenterCrop=function(R){R&&Hk(this);return pm.superClass_.setCenterCrop.call(this,R)};
_.J.JSC$19427_setPad=function(R){R&&Hk(this);return pm.superClass_.JSC$19427_setPad.call(this,R)};
_.J.JSC$19427_setWidth=function(R){R=R==null||R<0?void 0:R;R!=null&&this.setSize();return pm.superClass_.JSC$19427_setWidth.call(this,R)};
var yxp=function(R){R.clearOptions();var y=R.JSC$19425_parsedOptions_,u=y.valueProto_;eT(!0,_.Uk(u,3),_.Uk(y.signatureFlagProto_,3))&&_.ix(u,3,!0);return R},Hk=function(R){R.setCenterCrop();
R.JSC$19427_setCircleCrop();R.JSC$19427_setCrop();R.JSC$19427_setImageCrop();R.JSC$19427_setPad();R.JSC$19427_setSmartCrop();R.JSC$19427_setSmartCropNoClip();R.JSC$19427_setSmartCropUseFace()};
pm.prototype.build=function(){var R=this.JSC$19425_parsedOptions_.valueProto_;dO(R,18)||dO(R,45)?R.getSize()||this.setSize(0):(R=this.JSC$19425_parsedOptions_.valueProto_,R.getSize()||R.getWidth()||R.getHeight()||(this.setSize(),this.JSC$19427_setHeight(),this.JSC$19427_setWidth(),Hk(this)));return pm.superClass_.build.call(this)};var uQp=/^[^\/]*\/\//,nb=function(R,y){y=y===void 0?!1:y;this.original_=R;this.originalPrefix_="";(R=this.original_.match(uQp))&&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_=_.pF(R,!0);this.isFreeformUrl_=y;this.JSC$19431_valid_=!0;this.obfuscated_=!1},vcg=function(R,y){R.JSC$19433_pathPrefix_=R.JSC$19433_pathPrefix_?R.JSC$19433_pathPrefix_+("/"+y):y},Gf=function(R){if(R.JSC$19433_components_==
void 0){var y=R.uri_.getPath().substring(1);
R.JSC$19433_pathPrefix_=null;if(R.isFreeformUrl_){R.JSC$19433_components_=[];if((y.match(/=/g)||[]).length>1)return R.JSC$19431_valid_=!1,R.JSC$19433_components_;var u=y.indexOf("=");u!=-1?(R.JSC$19433_components_.push(y.substr(0,u)),R.JSC$19433_components_.push(y.substr(u+1))):R.JSC$19433_components_.push(y);return R.JSC$19433_components_}R.JSC$19433_components_=y.split("/");y=R.JSC$19433_components_.length;y>2&&R.JSC$19433_components_[0]=="u"&&(vcg(R,R.JSC$19433_components_[0]+"/"+R.JSC$19433_components_[1]),
R.JSC$19433_components_.shift(),R.JSC$19433_components_.shift(),y-=2);if(y==0||y==4||y>7)return R.JSC$19431_valid_=!1,R.JSC$19433_components_;if(y==2)vcg(R,R.JSC$19433_components_[0]);else if(R.JSC$19433_components_[0]=="image")vcg(R,R.JSC$19433_components_[0]);else if(y==7||y==3)return R.JSC$19431_valid_=!1,R.JSC$19433_components_;if(y<=3){R.obfuscated_=!0;y==3&&(vcg(R,R.JSC$19433_components_[1]),R.JSC$19433_components_.shift(),--y);--y;u=R.JSC$19433_components_[y];var v=u.indexOf("=");v!=-1&&(R.JSC$19433_components_[y]=
u.substr(0,v),R.JSC$19433_components_.push(u.substr(v+1)))}}return R.JSC$19433_components_};
nb.prototype.isValid=function(){Gf(this);return this.JSC$19431_valid_};
nb.prototype.isObfuscated=function(){Gf(this);return this.obfuscated_};
var QZp=function(R){Gf(R);return R.isFreeformUrl_},rD=function(R){Gf(R);
R.JSC$19433_pathPrefix_==void 0&&(R.JSC$19433_pathPrefix_=null);return R.JSC$19433_pathPrefix_},jZ8=function(R){switch(Gf(R).length){case 7:return!0;
case 6:return rD(R)==null;case 5:return!1;case 3:return!0;case 2:return rD(R)==null;case 1:return!1;default:return!1}},Pk=function(R,y){if(QZp(R))a:{switch(y){case 7:y=0;
break;case 4:if(!jZ8(R)){R=null;break a}y=1;break;default:R=null;break a}R=Gf(R)[y]}else if(R.isObfuscated())a:{var u=rD(R)!=null?1:0;switch(y){case 6:y=u;break;case 4:if(!jZ8(R)){R=null;break a}y=1+u;break;default:R=null;break a}R=Gf(R)[y]}else a:{u=rD(R)!=null?1:0;switch(y){case 0:y=u;break;case 1:y=1+u;break;case 2:y=2+u;break;case 3:y=3+u;break;case 4:if(!jZ8(R)){R=null;break a}y=4+u;break;case 5:y=jZ8(R)?1:0;y=4+u+y;break;default:R=null;break a}R=Gf(R)[y]}return R};
nb.prototype.getOptions=function(){this.options_==void 0&&(this.options_=Pk(this,4));return this.options_};var Yq8=function(){};
Yq8.prototype.parse=function(R,y){return new anV(R,y===void 0?!1:y)};
var anV=function(R,y){nb.call(this,R,y===void 0?!1:y)};
_.O(anV,nb);_.IE(tg,pm);var Sq7;tg.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
tg.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var R=tg.superClass_.build.call(this),y=[];rD(this.parsedImageUrl_)!=null&&y.push(rD(this.parsedImageUrl_));var u=QZp(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var v=this.parsedImageUrl_;v.obfuscatedData_==void 0&&(v.obfuscatedData_=Pk(v,6));y.push(v.obfuscatedData_+(R?"="+R:""))}else if(u){v=y.push;var Q=this.parsedImageUrl_;Q.freeformUrlPath_===void 0&&(Q.freeformUrlPath_=Pk(Q,
7));v.call(y,Q.freeformUrlPath_);R&&y.push(R)}else v=y.push,Q=this.parsedImageUrl_,Q.obfuscatedGaiaId_==void 0&&(Q.obfuscatedGaiaId_=Pk(Q,0)),v.call(y,Q.obfuscatedGaiaId_),v=y.push,Q=this.parsedImageUrl_,Q.photoId_==void 0&&(Q.photoId_=Pk(Q,1)),v.call(y,Q.photoId_),v=y.push,Q=this.parsedImageUrl_,Q.imageVersion_==void 0&&(Q.imageVersion_=Pk(Q,2)),v.call(y,Q.imageVersion_),v=y.push,Q=this.parsedImageUrl_,Q.signature_==void 0&&(Q.signature_=Pk(Q,3)),v.call(y,Q.signature_),R&&y.push(R),R=y.push,v=this.parsedImageUrl_,
v.filename_==void 0&&(v.filename_=Pk(v,5)),R.call(y,v.filename_);y=u?y.join("="):y.join("/");y=_.pF(this.protocolPrefix_+this.JSC$19439_domain_+"/"+y+(this.JSC$19439_query_?"?"+this.JSC$19439_query_:"")).toString();y.startsWith("%3a//")&&(y=y.replace("%3a//","://"));return y};var MFJ=_.RE(["viewBox"]),Jxa=_.RE(["width"]),VFg=_.RE(["height"]),iVM=_.RE(["fill"]),KB7=_.RE(["id"]),IRo=_.RE(["x"]),hsm=_.RE(["y"]);s3Z.prototype.getLength=function(){return this.parsedData.length};
s3Z.prototype.write=function(R){for(var y=0,u=this.parsedData.length;y<u;y++)R.put(this.parsedData[y],8)};
var vvI=function(R,y){var u=new s3Z(y);R.dataList.push(u);u=R.errorCorrectLevel;var v=1,Q=encodeURI(y).toString().replace(/%[0-9a-fA-F]{2}/g,"a");y=Q.length+(Q.length!=y?3:0);Q=0;for(var M=Wk.length;Q<=M;Q++){var K=0;switch(u){case 1:K=Wk[Q][0];break;case 0:K=Wk[Q][1];break;case 3:K=Wk[Q][2];break;case 2:K=Wk[Q][3]}if(y<=K)break;else v++}if(v>Wk.length)throw Error("vk");R.typeNumber=v;R.dataCache=null};
zBZ.prototype.isDark=function(R,y){if(R<0||this.moduleCount<=R||y<0||this.moduleCount<=y)throw Error("nk`"+R+"`"+y);return this.modules[R][y]};
for(var QHp=function(R,y,u){R.moduleCount=R.typeNumber*4+17;R.modules=Array(R.moduleCount);for(var v=0;v<R.moduleCount;v++){R.modules[v]=Array(R.moduleCount);for(var Q=0;Q<R.moduleCount;Q++)R.modules[v][Q]=null}bVV(R,0,0);bVV(R,R.moduleCount-7,0);bVV(R,0,R.moduleCount-7);v=FBK[R.typeNumber-1];for(Q=0;Q<v.length;Q++)for(var M=0;M<v.length;M++){var K=v[Q],h=v[M];if(R.modules[K][h]==null)for(var b=-2;b<=2;b++)for(var N=-2;N<=2;N++)R.modules[K+b][h+N]=b==-2||b==2||N==-2||N==2||b==0&&N==0?!0:!1}for(v=
8;v<R.moduleCount-8;v++)R.modules[v][6]==null&&(R.modules[v][6]=v%2==0);for(v=8;v<R.moduleCount-8;v++)R.modules[6][v]==null&&(R.modules[6][v]=v%2==0);v=R.errorCorrectLevel<<3|u;for(Q=v<<10;dD(Q)-dD(1335)>=0;)Q^=1335<<dD(Q)-dD(1335);v=(v<<10|Q)^21522;for(Q=0;Q<15;Q++)M=!y&&(v>>Q&1)==1,Q<6?R.modules[Q][8]=M:Q<8?R.modules[Q+1][8]=M:R.modules[R.moduleCount-15+Q][8]=M;for(Q=0;Q<15;Q++)M=!y&&(v>>Q&1)==1,Q<8?R.modules[8][R.moduleCount-Q-1]=M:Q<9?R.modules[8][15-Q-1+1]=M:R.modules[8][15-Q-1]=M;R.modules[R.moduleCount-
8][8]=!y;if(R.typeNumber>=7){v=R.typeNumber;for(Q=v<<12;dD(Q)-dD(7973)>=0;)Q^=7973<<dD(Q)-dD(7973);v=v<<12|Q;for(Q=0;Q<18;Q++)M=!y&&(v>>Q&1)==1,R.modules[Math.floor(Q/3)][Q%3+R.moduleCount-8-3]=M;for(Q=0;Q<18;Q++)M=!y&&(v>>Q&1)==1,R.modules[Q%3+R.moduleCount-8-3][Math.floor(Q/3)]=M}if(R.dataCache==null){Q=R.typeNumber;M=R.dataList;y=R.errorCorrectLevel;v=wta(Q,y);if(v==void 0)throw Error("uk`"+Q+"`"+y);K=v.length/3;y=[];for(h=0;h<K;h++){b=v[h*3];N=v[h*3+1];for(var T=v[h*3+2],x=0;x<b;x++)y.push(new gsg(N,
T))}v=new CE7;for(K=0;K<M.length;K++)h=M[K],v.put(h.mode,4),v.put(h.getLength(),N1a(h.mode,Q)),h.write(v);for(K=Q=0;K<y.length;K++)Q+=y[K].dataCount;if(v.length>Q*8)throw Error("ok`"+v.length+"`"+Q*8);for(v.length+4<=Q*8&&v.put(0,4);v.length%8!=0;)T1H(v,!1);for(;!(v.length>=Q*8);){v.put(236,8);if(v.length>=Q*8)break;v.put(17,8)}M=Q=N=0;K=Array(y.length);h=Array(y.length);for(b=0;b<y.length;b++){x=y[b].dataCount;var B=y[b].totalCount-x;Q=Math.max(Q,x);M=Math.max(M,B);K[b]=Array(x);for(T=0;T<K[b].length;T++)K[b][T]=
255&v.buffer[T+N];N+=x;T=B;x=new cz([1],0);for(B=0;B<T;B++)x=x.multiply(new cz([1,ocK(B)],0));T=x;x=(new cz(K[b],T.getLength()-1)).mod(T);h[b]=Array(T.getLength()-1);for(T=0;T<h[b].length;T++)B=T+x.getLength()-h[b].length,h[b][T]=B>=0?x.get(B):0}for(T=v=0;T<y.length;T++)v+=y[T].totalCount;v=Array(v);for(T=N=0;T<Q;T++)for(b=0;b<y.length;b++)T<K[b].length&&(v[N++]=K[b][T]);for(T=0;T<M;T++)for(b=0;b<y.length;b++)T<h[b].length&&(v[N++]=h[b][T]);R.dataCache=v}y=R.dataCache;v=-1;Q=R.moduleCount-1;M=7;K=
0;for(h=R.moduleCount-1;h>0;h-=2)for(h==6&&h--;;){for(b=0;b<2;b++)R.modules[Q][h-b]==null&&(N=!1,K<y.length&&(N=(y[K]>>>M&1)==1),xn8(u,Q,h-b)&&(N=!N),R.modules[Q][h-b]=N,M--,M==-1&&(K++,M=7));Q+=v;if(Q<0||R.moduleCount<=Q){Q-=v;v=-v;break}}},bVV=function(R,y,u){for(var v=-1;v<=7;v++)if(!(y+v<=-1||R.moduleCount<=y+v))for(var Q=-1;Q<=7;Q++)u+Q<=-1||R.moduleCount<=u+Q||(R.modules[y+v][u+Q]=0<=v&&v<=6&&(Q==0||Q==6)||0<=Q&&Q<=6&&(v==0||v==6)||2<=v&&v<=4&&2<=Q&&Q<=4?!0:!1)},jHI=function(R){for(var y=0,
u=0,v=0;v<8;v++){QHp(R,!0,v);
var Q=R;for(var M=Q.moduleCount,K=0,h=0;h<M;h++)for(var b=0;b<M;b++){for(var N=0,T=Q.isDark(h,b),x=-1;x<=1;x++)if(!(h+x<0||M<=h+x))for(var B=-1;B<=1;B++)b+B<0||M<=b+B||(x!=0||B!=0)&&T==Q.isDark(h+x,b+B)&&N++;N>5&&(K+=3+N-5)}for(h=0;h<M-1;h++)for(b=0;b<M-1;b++)if(N=0,Q.isDark(h,b)&&N++,Q.isDark(h+1,b)&&N++,Q.isDark(h,b+1)&&N++,Q.isDark(h+1,b+1)&&N++,N==0||N==4)K+=3;for(h=0;h<M;h++)for(b=0;b<M-6;b++)Q.isDark(h,b)&&!Q.isDark(h,b+1)&&Q.isDark(h,b+2)&&Q.isDark(h,b+3)&&Q.isDark(h,b+4)&&!Q.isDark(h,b+5)&&
Q.isDark(h,b+6)&&(K+=40);for(b=0;b<M;b++)for(h=0;h<M-6;h++)Q.isDark(h,b)&&!Q.isDark(h+1,b)&&Q.isDark(h+2,b)&&Q.isDark(h+3,b)&&Q.isDark(h+4,b)&&!Q.isDark(h+5,b)&&Q.isDark(h+6,b)&&(K+=40);for(b=N=0;b<M;b++)for(h=0;h<M;h++)Q.isDark(h,b)&&N++;Q=K+=Math.abs(100*N/M/M-50)/5*10;if(v==0||y>Q)y=Q,u=v}return u},FBK=[[],
[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]],dD=function(R){for(var y=0;R!=0;)y++,R>>>=1;return y},xn8=function(R,y,u){switch(R){case 0:return(y+u)%2==0;
case 1:return y%2==0;case 2:return u%3==0;case 3:return(y+u)%3==0;case 4:return(Math.floor(y/2)+Math.floor(u/3))%2==0;case 5:return y*u%2+y*u%3==0;case 6:return(y*u%2+y*u%3)%2==0;case 7:return(y*u%3+(y+u)%2)%2==0;default:throw Error("pk`"+R);}},N1a=function(R,y){if(1<=y&&y<10)switch(R){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("qk`"+R);}else if(y<27)switch(R){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("qk`"+R);}else if(y<41)switch(R){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("qk`"+R);}else throw Error("rk`"+y);},Un=function(R){if(R<1)throw Error("sk`"+R);
return B1M[R]},ocK=function(R){for(;R<0;)R+=255;
for(;R>=256;)R-=255;return kr[R]},kr=Array(256),B1M=Array(256),fRM=0;fRM<8;fRM++)kr[fRM]=1<<fRM;
for(var En=8;En<256;En++)kr[En]=kr[En-4]^kr[En-5]^kr[En-6]^kr[En-8];for(var es8=0;es8<255;es8++)B1M[kr[es8]]=es8;cz.prototype.get=function(R){return this.num[R]};
cz.prototype.getLength=function(){return this.num.length};
cz.prototype.multiply=function(R){for(var y=Array(this.getLength()+R.getLength()-1),u=0;u<this.getLength();u++)for(var v=0;v<R.getLength();v++)y[u+v]^=ocK(Un(this.get(u))+Un(R.get(v)));return new cz(y,0)};
cz.prototype.mod=function(R){if(this.getLength()-R.getLength()<0)return this;for(var y=Un(this.get(0))-Un(R.get(0)),u=Array(this.getLength()),v=0;v<this.getLength();v++)u[v]=this.get(v);for(v=0;v<R.getLength();v++)u[v]^=ocK(Un(R.get(v))+y);return(new cz(u,0)).mod(R)};
var lRP=[[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]],wta=function(R,y){switch(y){case 1:return lRP[(R-1)*4];case 0:return lRP[(R-1)*4+1];case 3:return lRP[(R-1)*4+2];case 2:return lRP[(R-1)*4+3]}};
CE7.prototype.get=function(R){return(this.buffer[Math.floor(R/8)]>>>7-R%8&1)==1};
CE7.prototype.put=function(R,y){for(var u=0;u<y;u++)T1H(this,(R>>>y-u-1&1)==1)};
var T1H=function(R,y){var u=Math.floor(R.length/8);R.buffer.length<=u&&R.buffer.push(0);y&&(R.buffer[u]|=128>>>R.length%8);R.length++},Wk=[[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]],ubI=function(){var R=function(y,u){this.JSC$19459__el=y;this.JSC$19459__htOption=u};
R.prototype.draw=function(y){function u(T,x){T=document.createElementNS("http://www.w3.org/2000/svg",T);for(var B in x)x.hasOwnProperty(B)&&(B==="href"?_.Sp8(T,x[B]):_.R1([_.QW(MFJ),_.QW(Jxa),_.QW(VFg),_.QW(iVM),_.QW(KB7),_.QW(IRo),_.QW(hsm)],T,B,x[B]));return T}
var v=this.JSC$19459__htOption,Q=this.JSC$19459__el,M=y.moduleCount;this.clear();var K=u("svg",{viewBox:"0 0 "+String(M)+" "+String(M),width:"100%",height:"100%",fill:v.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});Q.appendChild(K);K.appendChild(u("rect",{fill:v.colorLight,width:"100%",height:"100%"}));K.appendChild(u("rect",{fill:v.colorDark,width:"1",height:"1",id:"template"}));for(var h=0;h<M;h++)for(var b=0;b<M;b++)if(y.isDark(h,b)){var N=u("use",{x:String(h),y:String(b),href:"#template"});
K.appendChild(N)}};
R.prototype.clear=function(){for(;this.JSC$19459__el.hasChildNodes();)this.JSC$19459__el.removeChild(this.JSC$19459__el.lastChild)};
return R}(),yUa=document.documentElement.tagName.toLowerCase()==="svg"?ubI:typeof CanvasRenderingContext2D!="undefined"?function(){var R=function(y,u){this._bIsPainted=!1;
Rzm();this.JSC$19459__htOption=u;this._elCanvas=document.createElement("canvas");this._elCanvas.width=u.width;this._elCanvas.height=u.height;y.appendChild(this._elCanvas);this.JSC$19459__el=y;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$19459__el.appendChild(this._elImage);this._bSupportDataURI=null};
R.prototype._onMakeImage=function(){var y=this._elCanvas.toDataURL("image/png");this._elImage.src=y;this._elImage.style.display="block";this._elCanvas.style.display="none"};
R.prototype._safeSetDataURI=function(y,u){var v=this;v._fFail=u;v._fSuccess=y;v._bSupportDataURI===null?(y=_.o_("IMG"),u=function(){v._bSupportDataURI=!1;v._fFail&&v._fFail.call(v)},y.onabort=u,y.onerror=u,y.onload=function(){v._bSupportDataURI=!0;
v._fSuccess&&v._fSuccess.call(v)},y.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):v._bSupportDataURI===!0&&v._fSuccess?v._fSuccess.call(v):v._bSupportDataURI===!1&&v._fFail&&v._fFail.call(v)};
R.prototype.draw=function(y){var u=this._oContext,v=this.JSC$19459__htOption,Q=y.moduleCount,M=v.width/Q,K=v.height/Q,h=Math.round(M),b=Math.round(K);this._elImage.style.display="none";this.clear();for(var N=0;N<Q;N++)for(var T=0;T<Q;T++){var x=y.isDark(N,T),B=T*M,l=N*K;u.strokeStyle=x?v.colorDark:v.colorLight;u.lineWidth=1;u.fillStyle=x?v.colorDark:v.colorLight;u.fillRect(B,l,M,K);u.strokeRect(Math.floor(B)+.5,Math.floor(l)+.5,h,b);u.strokeRect(Math.ceil(B)-.5,Math.ceil(l)-.5,h,b)}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(y){return y?Math.floor(y*1E3)/1E3:y};
return R}():function(){var R=function(y,u){this.JSC$19459__el=y;
this.JSC$19459__htOption=u};
R.prototype.draw=function(y){for(var u=this.JSC$19459__htOption,v=this.JSC$19459__el,Q=y.moduleCount,M=Math.floor(u.width/Q),K=Math.floor(u.height/Q),h=['<table style="border:0;border-collapse:collapse;">'],b=0;b<Q;b++){h.push("<tr>");for(var N=0;N<Q;N++)h.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+M+"px;height:"+K+"px;background-color:"+(y.isDark(b,N)?u.colorDark:u.colorLight)+';"></td>');h.push("</tr>")}h.push("</table>");y=h.join("");y=_.pKg(_.cLG,y);_.CK(v,y);
y=v.childNodes[0];Q=(u.width-y.offsetWidth)/2;M=(u.height-y.offsetHeight)/2;Q>0&&M>0&&(y.style.margin=M+"px "+Q+"px")};
R.prototype.clear=function(){this.JSC$19459__el.textContent=""};
return R}();
Mq7.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19462__android||this.JSC$19462__android>=3)&&this._oDrawing.makeImage()};
Mq7.prototype.clear=function(){this._oDrawing.clear()};
_.uO.QRCode=Mq7;var OVJ={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var $r=function(){};
$r.prototype.stringify=function(R){return _.uO.JSON.stringify(R,void 0)};
$r.prototype.parse=function(R){return _.uO.JSON.parse(R,void 0)};var ZVI=function(){_.ew.call(this,"z")};
_.IE(ZVI,_.ew);var HVJ=function(){_.ew.call(this,"y")};
_.IE(HVJ,_.ew);var nc8=null,Gnm=function(){return nc8=nc8||new _.nT},rxM=function(R){_.ew.call(this,"serverreachability",R)};
_.IE(rxM,_.ew);var qj=function(R){var y=Gnm();y.dispatchEvent(new rxM(y,R))},PmK=function(R,y){_.ew.call(this,"statevent",R);
this.stat=y};
_.IE(PmK,_.ew);var Xz=function(R){var y=Gnm();y.dispatchEvent(new PmK(y,R))},WB8=function(R,y,u,v){_.ew.call(this,"timingevent",R);
this.size=y;this.rtt=u;this.retries=v};
_.IE(WB8,_.ew);var dng=function(R,y,u){var v=Gnm();v.dispatchEvent(new WB8(v,R,y,u))},m0=function(R,y){if(typeof R!=="function")throw Error("wk");
return _.uO.setTimeout(function(){R()},y)};var AJ=function(){this.redactEnabled_=!0};
AJ.prototype.disableRedact=function(){this.redactEnabled_=!1};
var Unp=function(R,y,u,v,Q,M){R.info(function(){if(R.redactEnabled_)if(M){var K="";for(var h=M.split("&"),b=0;b<h.length;b++){var N=h[b].split("=");if(N.length>1){var T=N[0];N=N[1];var x=T.split("_");K=x.length>=2&&x[1]=="type"?K+(T+"="+N+"&"):K+(T+"=redacted&")}}}else K=null;else K=M;return"XMLHTTP REQ ("+v+") [attempt "+Q+"]: "+y+"\n"+u+"\n"+K})},kna=function(R,y,u,v,Q,M,K){R.info(function(){return"XMLHTTP RESP ("+v+") [ attempt "+Q+"]: "+y+"\n"+u+"\n"+M+" "+K})},Dp=function(R,y,u,v){R.info(function(){return"XMLHTTP TEXT ("+
y+"): "+Ec7(R,u)+(v?" "+v:"")})},$na=function(R,y){R.info(function(){return"TIMEOUT: "+y})};
AJ.prototype.debug=function(){};
AJ.prototype.info=function(){};
AJ.prototype.warning=function(){};
var Ec7=function(R,y){if(!R.redactEnabled_)return y;if(!y)return null;try{var u=JSON.parse(y);if(u)for(var v=0;v<u.length;v++)if(Array.isArray(u[v])){var Q=u[v];if(!(Q.length<2)){var M=Q[1];if(Array.isArray(M)&&!(M.length<1)){var K=M[0];if(K!="noop"&&K!="stop"&&K!="close")for(var h=1;h<M.length;h++)M[h]=""}}}return(0,_.kj)(u)}catch(b){return R.debug("Exception parsing expected JS array - probably was not JS"),y}};var pb=function(R,y,u,v,Q){this.JSC$19484_channel_=R;this.JSC$19484_channelDebug_=y;this.sid_=u;this.JSC$19484_rid_=v;this.JSC$19484_retryId_=Q||1;this.JSC$19484_eventHandler_=new _.V9(this);this.timeout_=45E3;this.JSC$19484_extraHeaders_=null;this.JSC$19484_successful_=!1;this.JSC$19484_postData_=this.JSC$19484_requestUri_=this.JSC$19484_baseUri_=this.JSC$19484_type_=this.JSC$19484_requestStartTime_=this.JSC$19484_watchDogTimeoutTime_=this.JSC$19484_watchDogTimerId_=null;this.JSC$19484_pendingMessages_=
[];this.JSC$19484_xmlHttp_=null;this.JSC$19484_xmlHttpChunkStart_=0;this.JSC$19484_lastError_=this.JSC$19484_verb_=null;this.JSC$19484_lastStatusCode_=-1;this.JSC$19484_cancelled_=!1;this.JSC$19484_readyStateChangeThrottleMs_=0;this.JSC$19484_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new qvP},qvP=function(){this.JSC$19486_textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},XtK=function(R,y){switch(R){case 0:return"Non-200 return code ("+y+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},mnp={},AxK={};
pb.prototype.setTimeout=function(R){this.timeout_=R};
var ptM=function(R,y,u){R.JSC$19484_type_=1;R.JSC$19484_baseUri_=_.FW(y.clone());R.JSC$19484_postData_=u;R.decodeChunks_=!0;Dn7(R,null)},Dn7=function(R,y){R.JSC$19484_requestStartTime_=Date.now();
tFJ(R);R.JSC$19484_requestUri_=R.JSC$19484_baseUri_.clone();Hj(R.JSC$19484_requestUri_,"t",R.JSC$19484_retryId_);R.JSC$19484_xmlHttpChunkStart_=0;var u=R.JSC$19484_channel_.JSC$19503_supportsCrossDomainXhrs_;R.fetchResponseState_=new qvP;R.JSC$19484_xmlHttp_=cx7(R.JSC$19484_channel_,u?y:null,!R.JSC$19484_postData_);R.JSC$19484_readyStateChangeThrottleMs_>0&&(R.JSC$19484_readyStateChangeThrottle_=new _.v2((0,_.HY)(R.JSC$19488_xmlHttpHandler_,R,R.JSC$19484_xmlHttp_),R.JSC$19484_readyStateChangeThrottleMs_));
R.JSC$19484_eventHandler_.listen(R.JSC$19484_xmlHttp_,"readystatechange",R.JSC$19488_readyStateChangeHandler_);y=R.JSC$19484_extraHeaders_?_.Ps.clone(R.JSC$19484_extraHeaders_):{};R.JSC$19484_postData_?(R.JSC$19484_verb_||(R.JSC$19484_verb_="POST"),y["Content-Type"]="application/x-www-form-urlencoded",R.JSC$19484_xmlHttp_.send(R.JSC$19484_requestUri_,R.JSC$19484_verb_,R.JSC$19484_postData_,y)):(R.JSC$19484_verb_="GET",R.JSC$19484_xmlHttp_.send(R.JSC$19484_requestUri_,R.JSC$19484_verb_,null,y));qj(1);
Unp(R.JSC$19484_channelDebug_,R.JSC$19484_verb_,R.JSC$19484_requestUri_,R.JSC$19484_rid_,R.JSC$19484_retryId_,R.JSC$19484_postData_)};
pb.prototype.JSC$19488_readyStateChangeHandler_=function(R){R=R.target;var y=this.JSC$19484_readyStateChangeThrottle_;y&&_.qg(R)==3?(this.JSC$19484_channelDebug_.debug("Throttling readystatechange."),y.fire()):this.JSC$19488_xmlHttpHandler_(R)};
pb.prototype.JSC$19488_xmlHttpHandler_=function(R){try{R==this.JSC$19484_xmlHttp_?aRg(this):this.JSC$19484_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(y){this.JSC$19484_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),SvH(this)}finally{}};
var aRg=function(R){var y=_.qg(R.JSC$19484_xmlHttp_),u=R.JSC$19484_xmlHttp_.JSC$9764_lastErrorCode_,v=R.JSC$19484_xmlHttp_.getStatus();if(!(y<3||y==3&&!SvH(R))){R.JSC$19484_cancelled_||y!=4||u==7||(u==8||v<=0?qj(3):qj(2));YvZ(R);var Q=R.JSC$19484_xmlHttp_.getStatus();R.JSC$19484_lastStatusCode_=Q;u=LBK(R);SvH(R)||R.JSC$19484_channelDebug_.debug(function(){return"No response text for uri "+R.JSC$19484_requestUri_+" status "+Q});
R.JSC$19484_successful_=Q==200;kna(R.JSC$19484_channelDebug_,R.JSC$19484_verb_,R.JSC$19484_requestUri_,R.JSC$19484_rid_,R.JSC$19484_retryId_,y,Q);if(R.JSC$19484_successful_){if(R.decodeInitialResponse_&&!R.initialResponseDecoded_)if(v=sZJ(R))Dp(R.JSC$19484_channelDebug_,R.JSC$19484_rid_,v,"Initial handshake response via X-HTTP-Initial-Response"),R.initialResponseDecoded_=!0,zso(R,v);else{R.JSC$19484_successful_=!1;R.JSC$19484_lastError_=3;Xz(12);R.JSC$19484_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
R.JSC$19484_rid_+")");tJ(R);ck(R);return}R.decodeChunks_?gcZ(R,y,u):(Dp(R.JSC$19484_channelDebug_,R.JSC$19484_rid_,u,null),zso(R,u));y==4&&tJ(R);R.JSC$19484_successful_&&!R.JSC$19484_cancelled_&&(y==4?CmV(R.JSC$19484_channel_,R):(R.JSC$19484_successful_=!1,tFJ(R)))}else GwK(R.JSC$19484_xmlHttp_),Q==400&&u.indexOf("Unknown SID")>0?(R.JSC$19484_lastError_=3,Xz(12),R.JSC$19484_channelDebug_.warning("XMLHTTP Unknown SID ("+R.JSC$19484_rid_+")")):(R.JSC$19484_lastError_=0,Xz(13),R.JSC$19484_channelDebug_.warning("XMLHTTP Bad status "+
Q+" ("+R.JSC$19484_rid_+")")),tJ(R),ck(R)}},sZJ=function(R){return R.JSC$19484_xmlHttp_&&(R=UE(R.JSC$19484_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.iO(R)?R:null},LBK=function(R){if(!RqM(R))return R.JSC$19484_xmlHttp_.getResponseText();
var y=R.JSC$19484_xmlHttp_.getResponse();if(y==="")return"";var u="",v=y.length,Q=_.qg(R.JSC$19484_xmlHttp_)==4;if(!R.fetchResponseState_.JSC$19486_textDecoder){if(typeof TextDecoder==="undefined")return tJ(R),ck(R),"";R.fetchResponseState_.JSC$19486_textDecoder=new _.uO.TextDecoder}for(var M=0;M<v;M++)R.fetchResponseState_.responseArrivedForFetch=!0,u+=R.fetchResponseState_.JSC$19486_textDecoder.decode(y[M],{stream:!(Q&&M==v-1)});y.length=0;R.fetchResponseState_.responseBuffer+=u;R.JSC$19484_xmlHttpChunkStart_=
0;return R.fetchResponseState_.responseBuffer},SvH=function(R){return R.JSC$19484_xmlHttp_?R.fetchResponseState_.responseArrivedForFetch?!0:!(!R.JSC$19484_xmlHttp_.getResponseText()&&!R.JSC$19484_xmlHttp_.getResponse()):!1},RqM=function(R){return R.JSC$19484_xmlHttp_?R.JSC$19484_verb_=="GET"&&R.JSC$19484_type_!=2&&R.JSC$19484_channel_.usesFetchStreams_:!1},gcZ=function(R,y,u){for(var v=!0,Q;!R.JSC$19484_cancelled_&&R.JSC$19484_xmlHttpChunkStart_<u.length;)if(Q=yAo(R,u),Q==AxK){y==4&&(R.JSC$19484_lastError_=
4,Xz(14),v=!1);
Dp(R.JSC$19484_channelDebug_,R.JSC$19484_rid_,null,"[Incomplete Response]");break}else if(Q==mnp){R.JSC$19484_lastError_=4;Xz(15);Dp(R.JSC$19484_channelDebug_,R.JSC$19484_rid_,u,"[Invalid Chunk]");v=!1;break}else Dp(R.JSC$19484_channelDebug_,R.JSC$19484_rid_,Q,null),zso(R,Q);RqM(R)&&R.JSC$19484_xmlHttpChunkStart_!=0&&(R.fetchResponseState_.responseBuffer=R.fetchResponseState_.responseBuffer.slice(R.JSC$19484_xmlHttpChunkStart_),R.JSC$19484_xmlHttpChunkStart_=0);y!=4||u.length!=0||R.fetchResponseState_.responseArrivedForFetch||
(R.JSC$19484_lastError_=1,Xz(16),v=!1);R.JSC$19484_successful_=R.JSC$19484_successful_&&v;v?u.length>0&&!R.firstByteReceived_&&(R.firstByteReceived_=!0,y=R.JSC$19484_channel_,y.JSC$19503_backChannelRequest_==R&&y.detectBufferingProxy_&&!y.bpDetectionDone_&&(y.JSC$19503_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+u.length),uLM(y),y.bpDetectionDone_=!0,Xz(11))):(Dp(R.JSC$19484_channelDebug_,R.JSC$19484_rid_,u,"[Invalid Chunked Response]"),tJ(R),ck(R))},yAo=function(R,y){var u=
R.JSC$19484_xmlHttpChunkStart_,v=y.indexOf("\n",u);
if(v==-1)return AxK;u=Number(y.substring(u,v));if(isNaN(u))return mnp;v+=1;if(v+u>y.length)return AxK;y=y.slice(v,v+u);R.JSC$19484_xmlHttpChunkStart_=v+u;return y};
pb.prototype.cancel=function(){this.JSC$19484_cancelled_=!0;tJ(this)};
var tFJ=function(R){R.JSC$19484_watchDogTimeoutTime_=Date.now()+R.timeout_;vu7(R,R.timeout_)},vu7=function(R,y){if(R.JSC$19484_watchDogTimerId_!=null)throw Error("xk");
R.JSC$19484_watchDogTimerId_=m0((0,_.HY)(R.JSC$19488_onWatchDogTimeout_,R),y)},YvZ=function(R){R.JSC$19484_watchDogTimerId_&&(_.uO.clearTimeout(R.JSC$19484_watchDogTimerId_),R.JSC$19484_watchDogTimerId_=null)};
pb.prototype.JSC$19488_onWatchDogTimeout_=function(){this.JSC$19484_watchDogTimerId_=null;var R=Date.now();R-this.JSC$19484_watchDogTimeoutTime_>=0?($na(this.JSC$19484_channelDebug_,this.JSC$19484_requestUri_),this.JSC$19484_type_!=2&&(qj(3),Xz(17)),tJ(this),this.JSC$19484_lastError_=2,ck(this)):(this.JSC$19484_channelDebug_.warning("WatchDog timer called too early"),vu7(this,this.JSC$19484_watchDogTimeoutTime_-R))};
var ck=function(R){R.JSC$19484_channel_.state_==0||R.JSC$19484_cancelled_||CmV(R.JSC$19484_channel_,R)},tJ=function(R){YvZ(R);
_.R_(R.JSC$19484_readyStateChangeThrottle_);R.JSC$19484_readyStateChangeThrottle_=null;R.JSC$19484_eventHandler_.removeAll();if(R.JSC$19484_xmlHttp_){var y=R.JSC$19484_xmlHttp_;R.JSC$19484_xmlHttp_=null;y.abort();y.dispose()}};
pb.prototype.getLastError=function(){return this.JSC$19484_lastError_};
var zso=function(R,y){try{var u=R.JSC$19484_channel_;if(u.state_!=0&&(u.JSC$19503_backChannelRequest_==R||QUH(u.forwardChannelRequestPool_,R)))if(!R.initialResponseDecoded_&&QUH(u.forwardChannelRequestPool_,R)&&u.state_==3){try{var v=u.wireCodec_.JSC$19498_parser_.parse(y)}catch(h){v=null}if(Array.isArray(v)&&v.length==3){y=v;if(y[0]==0)a:if(u.JSC$19503_channelDebug_.debug("Server claims our backchannel is missing."),u.JSC$19503_backChannelTimerId_)u.JSC$19503_channelDebug_.debug("But we are currently starting the request.");
else{if(u.JSC$19503_backChannelRequest_)if(u.JSC$19503_backChannelRequest_.JSC$19484_requestStartTime_+3E3<R.JSC$19484_requestStartTime_)jUK(u),MHH(u);else break a;else u.JSC$19503_channelDebug_.warning("We do not have a BackChannel established");JAm(u);Xz(18)}else{u.JSC$19503_lastPostResponseArrayId_=y[1];var Q=u.JSC$19503_lastPostResponseArrayId_-u.JSC$19503_lastArrayId_;if(0<Q){var M=y[2];u.JSC$19503_channelDebug_.debug(M+" bytes (in "+Q+" arrays) are outstanding on the BackChannel");M<37500&&
u.enableStreaming_&&u.JSC$19503_backChannelRetryCount_==0&&!u.JSC$19503_deadBackChannelTimerId_&&(u.JSC$19503_deadBackChannelTimerId_=m0((0,_.HY)(u.JSC$19505_onBackChannelDead_,u),6E3))}}if(VHJ(u.forwardChannelRequestPool_)<=1&&u.forwardChannelFlushedCallback_){try{u.forwardChannelFlushedCallback_()}catch(h){}u.forwardChannelFlushedCallback_=void 0}}else u.JSC$19503_channelDebug_.debug("Bad POST response data returned"),aW(u,11)}else if((R.initialResponseDecoded_||u.JSC$19503_backChannelRequest_==
R)&&jUK(u),!_.iO(y)){var K=u.wireCodec_.JSC$19498_parser_.parse(y);u.onInput_(K,R)}qj(4)}catch(h){}};var ijP=function(R,y){this.JSC$19491_mapId=R;this.map=y;this.context=null};var KjV=function(R){this.maxPoolSizeConfigured_=R||10;_.uO.PerformanceNavigationTiming?(R=_.uO.performance.getEntriesByType("navigation"),R=R.length>0&&(R[0].nextHopProtocol=="hq"||R[0].nextHopProtocol=="h2")):R=!!(_.uO.chrome&&_.uO.chrome.loadTimes&&_.uO.chrome.loadTimes()&&_.uO.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19494_maxSize_=R?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19494_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19494_request_=null;this.JSC$19494_pendingMessages_=
[]},IaM=function(R){return R.JSC$19494_request_?!0:R.requestPool_?R.requestPool_.size>=R.JSC$19494_maxSize_:!1},VHJ=function(R){return R.JSC$19494_request_?1:R.requestPool_?R.requestPool_.size:0},QUH=function(R,y){return R.JSC$19494_request_?R.JSC$19494_request_==y:R.requestPool_?R.requestPool_.has(y):!1},hqp=function(R,y){R.requestPool_?R.requestPool_.add(y):R.JSC$19494_request_=y},bja=function(R,y){R.JSC$19494_request_&&R.JSC$19494_request_==y?R.JSC$19494_request_=null:R.requestPool_&&R.requestPool_.has(y)&&
R.requestPool_.delete(y)};
KjV.prototype.cancel=function(){this.JSC$19494_pendingMessages_=Fj8(this);if(this.JSC$19494_request_)this.JSC$19494_request_.cancel(),this.JSC$19494_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var R=_.V(this.requestPool_.values()),y=R.next();!y.done;y=R.next())y.value.cancel();this.requestPool_.clear()}};
var Fj8=function(R){if(R.JSC$19494_request_!=null)return R.JSC$19494_pendingMessages_.concat(R.JSC$19494_request_.JSC$19484_pendingMessages_);if(R.requestPool_!=null&&R.requestPool_.size!==0){var y=R.JSC$19494_pendingMessages_;R=_.V(R.requestPool_.values());for(var u=R.next();!u.done;u=R.next())y=y.concat(u.value.JSC$19484_pendingMessages_);return y}return _.Az(R.JSC$19494_pendingMessages_)},wbg=function(R,y){R.JSC$19494_pendingMessages_=R.JSC$19494_pendingMessages_.concat(y)};var N5P=function(R,y){var u=new AJ;u.debug("TestLoadImage: loading "+R);if(_.uO.Image){var v=new Image;v.onload=_.lh(ST,u,"TestLoadImage: loaded",!0,y,v);v.onerror=_.lh(ST,u,"TestLoadImage: error",!1,y,v);v.onabort=_.lh(ST,u,"TestLoadImage: abort",!1,y,v);v.ontimeout=_.lh(ST,u,"TestLoadImage: timeout",!1,y,v);_.uO.setTimeout(function(){if(v.ontimeout)v.ontimeout()},1E4);
v.src=R}else y(!1)},T58=function(R,y){var u=new AJ,v=new AbortController,Q=setTimeout(function(){v.abort();
ST(u,"TestPingServer: timeout",!1,y)},1E4);
fetch(R,{signal:v.signal}).then(function(M){clearTimeout(Q);M.ok?ST(u,"TestPingServer: ok",!0,y):ST(u,"TestPingServer: server error",!1,y)}).catch(function(){clearTimeout(Q);
ST(u,"TestPingServer: error",!1,y)})},ST=function(R,y,u,v,Q){try{R.debug(y),Q&&(Q.onload=null,Q.onerror=null,Q.onabort=null,Q.ontimeout=null),v(u)}catch(M){}};var ouM=function(){this.JSC$19498_parser_=new $r};var Yr=function(R,y,u){return u&&u.internalChannelParams?u.internalChannelParams[R]||y:y},Lb=function(R){this.serverVersion_=0;
this.JSC$19503_outgoingMaps_=[];this.JSC$19503_channelDebug_=new AJ;this.JSC$19503_hostPrefix_=this.JSC$19503_backChannelUri_=this.JSC$19503_forwardChannelUri_=this.JSC$19503_path_=this.JSC$19503_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19503_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19503_extraHeaders_=null;this.JSC$19503_nextMapId_=this.JSC$19503_nextRid_=0;this.JSC$19503_failFast_=Yr("failFast",!1,R);this.enableStreaming_=this.JSC$19503_deadBackChannelTimerId_=
this.JSC$19503_backChannelTimerId_=this.JSC$19503_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19503_lastPostResponseArrayId_=this.JSC$19503_lastArrayId_=-1;this.JSC$19503_backChannelAttemptId_=this.JSC$19503_backChannelRetryCount_=this.JSC$19503_forwardChannelRetryCount_=0;this.JSC$19503_baseRetryDelayMs_=Yr("baseRetryDelayMs",5E3,R);this.JSC$19503_retryDelaySeedMs_=Yr("retryDelaySeedMs",1E4,R);this.JSC$19503_forwardChannelMaxRetries_=
Yr("forwardChannelMaxRetries",2,R);this.JSC$19503_forwardChannelRequestTimeoutMs_=Yr("forwardChannelRequestTimeoutMs",2E4,R);this.JSC$19503_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$19503_supportsCrossDomainXhrs_=R&&R.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new KjV(R&&R.concurrentRequestLimit);this.wireCodec_=new ouM;this.fastHandshake_=
R&&R.fastHandshake||!1;this.encodeInitMessageHeaders_=R&&R.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19503_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=R&&R.blockingHandshake||!1;R&&R.disableRedact&&this.JSC$19503_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};
Lb.prototype.JSC$19505_channelVersion_=8;Lb.prototype.state_=1;
Lb.prototype.connect=function(R,y,u,v){this.JSC$19503_channelDebug_.debug("connect()");Xz(0);this.JSC$19503_path_=R;this.JSC$19503_extraParams_=y||{};u&&v!==void 0&&(this.JSC$19503_extraParams_.OSID=u,this.JSC$19503_extraParams_.OAID=v);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19503_channelDebug_.debug("connectChannel_()");R=xdp(this,null,this.JSC$19503_path_);this.JSC$19503_channelDebug_.debug("GetForwardChannelUri: "+R);this.JSC$19503_forwardChannelUri_=R;B5g(this)};
Lb.prototype.disconnect=function(){this.JSC$19503_channelDebug_.debug("disconnect()");faI(this);if(this.state_==3){var R=this.JSC$19503_nextRid_++,y=this.JSC$19503_forwardChannelUri_.clone();_.cY(y,"SID",this.sid_);_.cY(y,"RID",R);_.cY(y,"TYPE","terminate");sn(this,y);R=new pb(this,this.JSC$19503_channelDebug_,this.sid_,R);R.JSC$19484_type_=2;R.JSC$19484_baseUri_=_.FW(y.clone());y=!1;if(_.uO.navigator&&_.uO.navigator.sendBeacon)try{y=_.uO.navigator.sendBeacon(R.JSC$19484_baseUri_.toString(),"")}catch(u){}!y&&
_.uO.Image&&((new Image).src=R.JSC$19484_baseUri_,y=!0);y||(R.JSC$19484_xmlHttp_=cx7(R.JSC$19484_channel_,null),R.JSC$19484_xmlHttp_.send(R.JSC$19484_baseUri_));R.JSC$19484_requestStartTime_=Date.now();tFJ(R)}eqo(this)};
var MHH=function(R){R.JSC$19503_backChannelRequest_&&(uLM(R),R.JSC$19503_backChannelRequest_.cancel(),R.JSC$19503_backChannelRequest_=null)},faI=function(R){MHH(R);
R.JSC$19503_backChannelTimerId_&&(_.uO.clearTimeout(R.JSC$19503_backChannelTimerId_),R.JSC$19503_backChannelTimerId_=null);jUK(R);R.forwardChannelRequestPool_.cancel();R.JSC$19503_forwardChannelTimerId_&&(typeof R.JSC$19503_forwardChannelTimerId_==="number"&&_.uO.clearTimeout(R.JSC$19503_forwardChannelTimerId_),R.JSC$19503_forwardChannelTimerId_=null)};
Lb.prototype.getState=function(){return this.state_};
var B5g=function(R){IaM(R.forwardChannelRequestPool_)||R.JSC$19503_forwardChannelTimerId_||(R.JSC$19503_forwardChannelTimerId_=!0,_.rK(R.JSC$19505_onStartForwardChannelTimer_,R),R.JSC$19503_forwardChannelRetryCount_=0)},FIo=function(R,y){if(VHJ(R.forwardChannelRequestPool_)>=R.forwardChannelRequestPool_.JSC$19494_maxSize_-(R.JSC$19503_forwardChannelTimerId_?1:0))return!1;
if(R.JSC$19503_forwardChannelTimerId_)return R.JSC$19503_channelDebug_.debug("Use the retry request that is already scheduled."),R.JSC$19503_outgoingMaps_=y.JSC$19484_pendingMessages_.concat(R.JSC$19503_outgoingMaps_),!0;if(R.state_==1||R.state_==2||R.JSC$19503_forwardChannelRetryCount_>=(R.JSC$19503_failFast_?0:R.JSC$19503_forwardChannelMaxRetries_))return!1;R.JSC$19503_channelDebug_.debug("Going to retry POST");R.JSC$19503_forwardChannelTimerId_=m0((0,_.HY)(R.JSC$19505_onStartForwardChannelTimer_,
R,y),lag(R,R.JSC$19503_forwardChannelRetryCount_));R.JSC$19503_forwardChannelRetryCount_++;return!0};
Lb.prototype.JSC$19505_onStartForwardChannelTimer_=function(R){if(this.JSC$19503_forwardChannelTimerId_)if(this.JSC$19503_forwardChannelTimerId_=null,this.JSC$19503_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!R){this.JSC$19503_channelDebug_.debug("open_()");this.JSC$19503_nextRid_=Math.floor(Math.random()*1E5);R=this.JSC$19503_nextRid_++;var y=new pb(this,this.JSC$19503_channelDebug_,"",R),u=this.JSC$19503_extraHeaders_;this.initHeaders_&&(u?(u=_.Ps.clone(u),_.Ps.extend(u,this.initHeaders_)):
u=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(y.JSC$19484_extraHeaders_=u,u=null);var v;if(this.fastHandshake_)a:{for(var Q=v=0;Q<this.JSC$19503_outgoingMaps_.length;Q++){b:{var M=this.JSC$19503_outgoingMaps_[Q];if("__data__"in M.map&&(M=M.map.__data__,typeof M==="string")){M=M.length;break b}M=void 0}if(M===void 0)break;v+=M;if(v>4096){v=Q;break a}if(v===4096||Q===this.JSC$19503_outgoingMaps_.length-1){v=Q+1;break a}}v=1E3}else v=1E3;v=wrg(this,y,v);
Q=this.JSC$19503_forwardChannelUri_.clone();_.cY(Q,"RID",R);_.cY(Q,"CVER",22);this.httpSessionIdParam_&&_.cY(Q,"X-HTTP-Session-Id",this.httpSessionIdParam_);sn(this,Q);u&&(this.encodeInitMessageHeaders_?v="headers="+_.t7(pQ8(u))+"&"+v:this.httpHeadersOverwriteParam_&&td8(Q,this.httpHeadersOverwriteParam_,u));hqp(this.forwardChannelRequestPool_,y);this.blockingHandshake_&&_.cY(Q,"TYPE","init");this.fastHandshake_?(_.cY(Q,"$req",v),_.cY(Q,"SID","null"),y.decodeInitialResponse_=!0,ptM(y,Q,null)):ptM(y,
Q,v);this.state_=2}}else this.state_==3&&(R?NQI(this,R):this.JSC$19503_outgoingMaps_.length==0?this.JSC$19503_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):IaM(this.forwardChannelRequestPool_)||(NQI(this),this.JSC$19503_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var NQI=function(R,y){var u;y?u=y.JSC$19484_rid_:u=R.JSC$19503_nextRid_++;var v=R.JSC$19503_forwardChannelUri_.clone();_.cY(v,"SID",R.sid_);_.cY(v,"RID",u);_.cY(v,"AID",R.JSC$19503_lastArrayId_);sn(R,v);R.httpHeadersOverwriteParam_&&R.JSC$19503_extraHeaders_&&td8(v,R.httpHeadersOverwriteParam_,R.JSC$19503_extraHeaders_);u=new pb(R,R.JSC$19503_channelDebug_,R.sid_,u,R.JSC$19503_forwardChannelRetryCount_+1);R.httpHeadersOverwriteParam_===null&&(u.JSC$19484_extraHeaders_=R.JSC$19503_extraHeaders_);y&&
(R.JSC$19503_outgoingMaps_=y.JSC$19484_pendingMessages_.concat(R.JSC$19503_outgoingMaps_));y=wrg(R,u,1E3);u.setTimeout(Math.round(R.JSC$19503_forwardChannelRequestTimeoutMs_*.5)+Math.round(R.JSC$19503_forwardChannelRequestTimeoutMs_*.5*Math.random()));hqp(R.forwardChannelRequestPool_,u);ptM(u,v,y)},sn=function(R,y){R.JSC$19503_extraParams_&&_.Ps.forEach(R.JSC$19503_extraParams_,function(u,v){_.cY(y,v,u)});
R.handler_&&_.Ps.forEach({},function(u,v){_.cY(y,v,u)})},wrg=function(R,y,u){u=Math.min(R.JSC$19503_outgoingMaps_.length,u);
var v=R.handler_?(0,_.HY)(R.handler_.JSC$19509_badMapError,R.handler_,R):null;a:{for(var Q=R.JSC$19503_outgoingMaps_,M=-1;;){var K=["count="+u];M==-1?u>0?(M=Q[0].JSC$19491_mapId,K.push("ofs="+M)):M=0:K.push("ofs="+M);for(var h=!0,b=0;b<u;b++){var N=Q[b].JSC$19491_mapId,T=Q[b].map;N-=M;if(N<0)M=Math.max(0,Q[b].JSC$19491_mapId-100),h=!1;else try{N="req"+N+"_"||"";try{var x=T instanceof Map?T:Object.entries(T);for(var B=_.V(x),l=B.next();!l.done;l=B.next()){var Z=_.V(l.value),P=Z.next().value,k=Z.next().value,
E=k;_.Sv(k)&&(E=(0,_.kj)(k));K.push(N+P+"="+encodeURIComponent(E))}}catch(D){throw K.push(N+"type="+encodeURIComponent("_badmap")),D;}}catch(D){v&&v(T)}}if(h){x=K.join("&");break a}}x=void 0}R=R.JSC$19503_outgoingMaps_.splice(0,u);y.JSC$19484_pendingMessages_=R;return x},TQ7=function(R){R.JSC$19503_backChannelRequest_||R.JSC$19503_backChannelTimerId_||(R.JSC$19503_backChannelAttemptId_=1,_.rK(R.JSC$19505_onStartBackChannelTimer_,R),R.JSC$19503_backChannelRetryCount_=0)},JAm=function(R){if(R.JSC$19503_backChannelRequest_||
R.JSC$19503_backChannelTimerId_||R.JSC$19503_backChannelRetryCount_>=3)return!1;
R.JSC$19503_channelDebug_.debug("Going to retry GET");R.JSC$19503_backChannelAttemptId_++;R.JSC$19503_backChannelTimerId_=m0((0,_.HY)(R.JSC$19505_onStartBackChannelTimer_,R),lag(R,R.JSC$19503_backChannelRetryCount_));R.JSC$19503_backChannelRetryCount_++;return!0};
Lb.prototype.JSC$19505_onStartBackChannelTimer_=function(){this.JSC$19503_backChannelTimerId_=null;o0I(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19503_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19503_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19503_backChannelRequest_+" "+this.handshakeRttMs_);else{var R=4*this.handshakeRttMs_;this.JSC$19503_channelDebug_.info("BP detection timer enabled: "+R);this.bpDetectionTimerId_=m0((0,_.HY)(this.onBpDetectionTimer_,
this),R)}};
Lb.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19503_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19503_backChannelRequest_.JSC$19484_xmlHttp_!=null){var R=this.JSC$19503_backChannelRequest_.JSC$19484_xmlHttp_.getResponseText();R&&this.JSC$19503_channelDebug_.warning("Timer should have been cancelled : "+R)}this.JSC$19503_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;Xz(10);MHH(this);o0I(this)}else this.JSC$19503_channelDebug_.warning("Invalid operation.")};
var uLM=function(R){R.bpDetectionTimerId_!=null&&(R.JSC$19503_channelDebug_.debug("Cancel the BP detection timer."),_.uO.clearTimeout(R.bpDetectionTimerId_),R.bpDetectionTimerId_=null)},o0I=function(R){R.JSC$19503_channelDebug_.debug("Creating new HttpRequest");
R.JSC$19503_backChannelRequest_=new pb(R,R.JSC$19503_channelDebug_,R.sid_,"rpc",R.JSC$19503_backChannelAttemptId_);R.httpHeadersOverwriteParam_===null&&(R.JSC$19503_backChannelRequest_.JSC$19484_extraHeaders_=R.JSC$19503_extraHeaders_);R.JSC$19503_backChannelRequest_.JSC$19484_readyStateChangeThrottleMs_=0;var y=R.JSC$19503_backChannelUri_.clone();_.cY(y,"RID","rpc");_.cY(y,"SID",R.sid_);_.cY(y,"AID",R.JSC$19503_lastArrayId_);_.cY(y,"CI",R.enableStreaming_?"0":"1");!R.enableStreaming_&&R.longPollingTimeout_&&
_.cY(y,"TO",R.longPollingTimeout_);_.cY(y,"TYPE","xmlhttp");sn(R,y);R.httpHeadersOverwriteParam_&&R.JSC$19503_extraHeaders_&&td8(y,R.httpHeadersOverwriteParam_,R.JSC$19503_extraHeaders_);R.backChannelRequestTimeoutMs_&&R.JSC$19503_backChannelRequest_.setTimeout(R.backChannelRequestTimeoutMs_);var u=R.JSC$19503_backChannelRequest_,v=R.JSC$19503_hostPrefix_;u.JSC$19484_type_=1;u.JSC$19484_baseUri_=_.FW(y.clone());u.JSC$19484_postData_=null;u.decodeChunks_=!0;Dn7(u,v);R.JSC$19503_channelDebug_.debug("New Request created")};
Lb.prototype.JSC$19505_onBackChannelDead_=function(){this.JSC$19503_deadBackChannelTimerId_!=null&&(this.JSC$19503_deadBackChannelTimerId_=null,MHH(this),JAm(this),Xz(19))};
var jUK=function(R){R.JSC$19503_deadBackChannelTimerId_!=null&&(_.uO.clearTimeout(R.JSC$19503_deadBackChannelTimerId_),R.JSC$19503_deadBackChannelTimerId_=null)},CmV=function(R,y){R.JSC$19503_channelDebug_.debug("Request complete");
var u=null;if(R.JSC$19503_backChannelRequest_==y){jUK(R);uLM(R);R.JSC$19503_backChannelRequest_=null;var v=2}else if(QUH(R.forwardChannelRequestPool_,y))u=y.JSC$19484_pendingMessages_,bja(R.forwardChannelRequestPool_,y),v=1;else return;if(R.state_!=0)if(y.JSC$19484_successful_)v==1?(dng(y.JSC$19484_postData_?y.JSC$19484_postData_.length:0,Date.now()-y.JSC$19484_requestStartTime_,R.JSC$19503_forwardChannelRetryCount_),B5g(R)):TQ7(R);else{var Q=y.JSC$19484_lastStatusCode_,M=y.getLastError();if(M==3||
M==0&&Q>0)R.JSC$19503_channelDebug_.debug("Not retrying due to error type"),Q>200&&(R.errorResponseStatusCode_=y.JSC$19484_lastStatusCode_);else{R.JSC$19503_channelDebug_.debug(function(){return"Maybe retrying, last error: "+XtK(M,R.errorResponseStatusCode_)});
if(v==1&&FIo(R,y)||v==2&&JAm(R))return;R.JSC$19503_channelDebug_.debug("Exceeded max number of retries")}u&&u.length>0&&wbg(R.forwardChannelRequestPool_,u);R.JSC$19503_channelDebug_.debug("Error: HTTP request failed");switch(M){case 1:aW(R,5);break;case 4:aW(R,10);break;case 3:aW(R,6);break;default:aW(R,2)}}},lag=function(R,y){var u=R.JSC$19503_baseRetryDelayMs_+Math.floor(Math.random()*R.JSC$19503_retryDelaySeedMs_);
R.isActive()||(R.JSC$19503_channelDebug_.debug("Inactive channel"),u*=2);return u*y};
Lb.prototype.onInput_=function(R,y){for(var u=0;u<R.length;u++){var v=R[u];this.JSC$19503_lastArrayId_=v[0];v=v[1];if(this.state_==2)if(v[0]=="c"){this.sid_=v[1];this.JSC$19503_hostPrefix_=v[2];var Q=v[3];Q!=null&&(this.JSC$19505_channelVersion_=Q,this.JSC$19503_channelDebug_.info("VER="+this.JSC$19505_channelVersion_));Q=v[4];Q!=null&&(this.serverVersion_=Q,this.JSC$19503_channelDebug_.info("SVER="+this.serverVersion_));v=v[5];v!=null&&typeof v==="number"&&v>0&&(this.backChannelRequestTimeoutMs_=
v*=1.5,this.JSC$19503_channelDebug_.info("backChannelRequestTimeoutMs_="+v));if(v=y.JSC$19484_xmlHttp_){var M=UE(v,"X-Client-Wire-Protocol");M&&(Q=this.forwardChannelRequestPool_,!Q.requestPool_&&(_.K8(M,"spdy")||_.K8(M,"quic")||_.K8(M,"h2"))&&(Q.JSC$19494_maxSize_=Q.maxPoolSizeConfigured_,Q.requestPool_=new Set,Q.JSC$19494_request_&&(hqp(Q,Q.JSC$19494_request_),Q.JSC$19494_request_=null)));this.httpSessionIdParam_&&((v=UE(v,"X-HTTP-Session-Id"))?(this.httpSessionId_=v,_.cY(this.JSC$19503_forwardChannelUri_,
this.httpSessionIdParam_,v)):this.JSC$19503_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$19509_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-y.JSC$19484_requestStartTime_,this.JSC$19503_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));v=y;Q=xdp(this,this.JSC$19503_supportsCrossDomainXhrs_?this.JSC$19503_hostPrefix_:null,this.JSC$19503_path_);this.JSC$19503_channelDebug_.debug("GetBackChannelUri: "+
Q);this.JSC$19503_backChannelUri_=Q;v.initialResponseDecoded_?(this.JSC$19503_channelDebug_.debug("Upgrade the handshake request to a backchannel."),bja(this.forwardChannelRequestPool_,v),Q=v,(M=this.backChannelRequestTimeoutMs_)&&Q.setTimeout(M),Q.JSC$19484_watchDogTimerId_&&(YvZ(Q),tFJ(Q)),this.JSC$19503_backChannelRequest_=v):TQ7(this);this.JSC$19503_outgoingMaps_.length>0&&B5g(this)}else v[0]!="stop"&&v[0]!="close"||aW(this,7);else this.state_==3&&(v[0]=="stop"||v[0]=="close"?v[0]=="stop"?aW(this,
7):this.disconnect():v[0]!="noop"&&this.handler_&&this.handler_.JSC$19509_channelHandleArray(v),this.JSC$19503_backChannelRetryCount_=0)}};
var aW=function(R,y){R.JSC$19503_channelDebug_.info("Error code "+y);if(y==2){var u=(0,_.HY)(R.testNetworkCallback_,R),v=R.networkTestUrl_,Q=!v;v=new _.Cv(v||"//www.google.com/images/cleardot.gif");_.uO.location&&_.uO.location.protocol=="http"||_.jY(v,"https");_.FW(v);Q?N5P(v.toString(),u):T58(v.toString(),u)}else Xz(2);R.onError_(y)};
Lb.prototype.testNetworkCallback_=function(R){R?(this.JSC$19503_channelDebug_.info("Successfully pinged google.com"),Xz(2)):(this.JSC$19503_channelDebug_.info("Failed to ping google.com"),Xz(1))};
Lb.prototype.onError_=function(R){this.JSC$19503_channelDebug_.debug("HttpChannel: error - "+R);this.state_=0;this.handler_&&this.handler_.JSC$19509_channelError(R);eqo(this);faI(this)};
var eqo=function(R){R.state_=0;R.nonAckedMapsAtChannelClose_=[];if(R.handler_){var y=Fj8(R.forwardChannelRequestPool_);if(y.length!=0||R.JSC$19503_outgoingMaps_.length!=0)R.JSC$19503_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+y.length+", outgoing: "+R.JSC$19503_outgoingMaps_.length}),_.tz(R.nonAckedMapsAtChannelClose_,y),_.tz(R.nonAckedMapsAtChannelClose_,R.JSC$19503_outgoingMaps_),R.forwardChannelRequestPool_.JSC$19494_pendingMessages_.length=0,_.Az(R.JSC$19503_outgoingMaps_),
R.JSC$19503_outgoingMaps_.length=0;
R.handler_.JSC$19509_channelClosed()}},xi7=function(R){if(R.state_==0)return R.nonAckedMapsAtChannelClose_;
var y=[];_.tz(y,Fj8(R.forwardChannelRequestPool_));_.tz(y,R.JSC$19503_outgoingMaps_);return y},xdp=function(R,y,u){var v=_.pF(u);
v.JSC$10001_domain_!=""?(y&&_.ME(v,y+"."+v.JSC$10001_domain_),_.Jt(v,v.JSC$10001_port_)):(v=_.uO.location,v=reg(v.protocol,y?y+"."+v.hostname:v.hostname,+v.port,u));y=R.httpSessionIdParam_;u=R.httpSessionId_;y&&u&&_.cY(v,y,u);_.cY(v,"VER",R.JSC$19505_channelVersion_);sn(R,v);return v},cx7=function(R,y,u){if(y&&!R.JSC$19503_supportsCrossDomainXhrs_)throw Error("yk");
y=R.usesFetchStreams_&&!R.JSC$19503_xmlHttpFactory_?new _.E8(new z1({streamBinaryChunks:u})):new _.E8(R.JSC$19503_xmlHttpFactory_);y.JSC$9764_withCredentials_=R.JSC$19503_supportsCrossDomainXhrs_;return y};
Lb.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var BQm=function(){};
_.J=BQm.prototype;_.J.JSC$19509_channelOpened=function(){};
_.J.JSC$19509_channelHandleArray=function(){};
_.J.JSC$19509_channelError=function(){};
_.J.JSC$19509_channelClosed=function(){};
_.J.isActive=function(){return!0};
_.J.JSC$19509_badMapError=function(){};var fXM=function(){},gD=function(R,y){_.nT.call(this);
this.JSC$19512_channel_=new Lb(y);this.JSC$19512_url_=R;this.messageUrlParams_=y&&y.messageUrlParams||null;R=y&&y.messageHeaders||null;y&&y.clientProtocolHeaderRequired&&(R?_.Ps.set(R,"X-Client-Protocol","webchannel"):R=_.Ps.create("X-Client-Protocol","webchannel"));this.JSC$19512_channel_.JSC$19503_extraHeaders_=R;R=y&&y.initMessageHeaders||null;y&&y.messageContentType&&(R?_.Ps.set(R,"X-WebChannel-Content-Type",y.messageContentType):R=_.Ps.create("X-WebChannel-Content-Type",y.messageContentType));
y&&y.clientProfile&&(R?_.Ps.set(R,"X-WebChannel-Client-Profile",y.clientProfile):R=_.Ps.create("X-WebChannel-Client-Profile",y.clientProfile));this.JSC$19512_channel_.initHeaders_=R;(R=y&&y.httpHeadersOverwriteParam)&&!_.iO(R)&&(this.JSC$19512_channel_.httpHeadersOverwriteParam_=R);this.supportsCrossDomainXhr_=y&&y.supportsCrossDomainXhr||!1;this.sendRawJson_=y&&y.sendRawJson||!1;(y=y&&y.httpSessionIdParam)&&!_.iO(y)&&(this.JSC$19512_channel_.httpSessionIdParam_=y,_.Ps.containsKey(this.messageUrlParams_,
y)&&_.Ps.remove(this.messageUrlParams_,y));this.channelHandler_=new zf(this)};
_.IE(gD,_.nT);gD.prototype.open=function(){this.JSC$19512_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19512_channel_.JSC$19503_supportsCrossDomainXhrs_=!0);this.JSC$19512_channel_.connect(this.JSC$19512_url_,this.messageUrlParams_||void 0)};
gD.prototype.close=function(){this.JSC$19512_channel_.disconnect()};
gD.prototype.send=function(R){var y=this.JSC$19512_channel_;if(typeof R==="string"){var u={};u.__data__=R;R=u}else this.sendRawJson_&&(u={},u.__data__=(0,_.kj)(R),R=u);y.JSC$19503_outgoingMaps_.push(new ijP(y.JSC$19503_nextMapId_++,R));y.state_==3&&B5g(y)};
gD.prototype.disposeInternal=function(){this.JSC$19512_channel_.handler_=null;delete this.channelHandler_;this.JSC$19512_channel_.disconnect();delete this.JSC$19512_channel_;gD.superClass_.disposeInternal.call(this)};
var exJ=function(R){ZVI.call(this);R.__headers__&&(this.headers=R.__headers__,this.statusCode=R.__status__,delete R.__headers__,delete R.__status__);var y=R.__sm__;y?this.data=(this.metadataKey=_.Ps.getAnyKey(y))?_.Ps.get(y,this.metadataKey):y:this.data=R};
_.IE(exJ,ZVI);var lXa=function(R){HVJ.call(this);this.status=1;this.errorCode=R};
_.IE(lXa,HVJ);var zf=function(R){this.JSC$19519_channel_=R};
_.IE(zf,BQm);zf.prototype.JSC$19509_channelOpened=function(){this.JSC$19519_channel_.dispatchEvent("w")};
zf.prototype.JSC$19509_channelHandleArray=function(R){this.JSC$19519_channel_.dispatchEvent(new exJ(R))};
zf.prototype.JSC$19509_channelError=function(R){this.JSC$19519_channel_.dispatchEvent(new lXa(R))};
zf.prototype.JSC$19509_channelClosed=function(){this.JSC$19519_channel_.dispatchEvent("x")};
var Oxa=function(R,y){this.transportChannel_=R;this.JSC$19522_channel_=y},Zx8=function(R){return xi7(R.JSC$19522_channel_).map(function(y){var u=R.transportChannel_;
y=y.map;"__data__"in y?(y=y.__data__,u=u.sendRawJson_?(0,_.$1b)(y):y):u=y;return u})};
Oxa.prototype.commit=function(R){this.JSC$19522_channel_.forwardChannelFlushedCallback_=R};var Cb=function(R){Hxa.dispatchEvent(new n0J(Hxa,R))},Hxa=new _.nT,n0J=function(R,y){_.ew.call(this,"statevent",R);
this.stat=y};
_.O(n0J,_.ew);var Rg=function(R,y,u,v,Q){this.JSC$19527_channel_=R;this.JSC$19527_channelDebug_=y;this.sid_=u;this.JSC$19527_rid_=v;this.JSC$19527_retryId_=Q||1;this.timeout_=45E3;this.JSC$19527_eventHandler_=new _.V9(this);this.pollingTimer_=new _.Jl;this.pollingTimer_.setInterval(250)};
_.J=Rg.prototype;_.J.JSC$19529_extraHeaders_=null;_.J.JSC$19529_successful_=!1;_.J.JSC$19529_watchDogTimerId_=null;_.J.JSC$19529_watchDogTimeoutTime_=null;_.J.JSC$19529_requestStartTime_=null;_.J.JSC$19529_type_=null;_.J.JSC$19529_baseUri_=null;_.J.JSC$19529_requestUri_=null;_.J.JSC$19529_postData_=null;_.J.JSC$19529_xmlHttp_=null;_.J.JSC$19529_xmlHttpChunkStart_=0;_.J.trident_=null;_.J.JSC$19529_verb_=null;_.J.JSC$19529_lastError_=null;_.J.JSC$19529_lastStatusCode_=-1;_.J.sendClose_=!0;
_.J.JSC$19529_cancelled_=!1;_.J.JSC$19529_readyStateChangeThrottleMs_=0;_.J.JSC$19529_readyStateChangeThrottle_=null;var GDa=function(R,y){switch(R){case 0:return"Non-200 return code ("+y+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},rsm={},Ptg={};
Rg.prototype.setTimeout=function(R){this.timeout_=R};
var diK=function(R,y,u){R.JSC$19529_type_=1;R.JSC$19529_baseUri_=_.FW(y.clone());R.JSC$19529_postData_=u;R.decodeChunks_=!0;WI7(R,null)},Uim=function(R,y,u,v,Q){R.JSC$19529_type_=1;
R.JSC$19529_baseUri_=_.FW(y.clone());R.JSC$19529_postData_=null;R.decodeChunks_=u;Q&&(R.sendClose_=!1);WI7(R,v)},WI7=function(R,y){R.JSC$19529_requestStartTime_=Date.now();
kDV(R);R.JSC$19529_requestUri_=R.JSC$19529_baseUri_.clone();Hj(R.JSC$19529_requestUri_,"t",R.JSC$19527_retryId_);R.JSC$19529_xmlHttpChunkStart_=0;R.JSC$19529_xmlHttp_=R.JSC$19527_channel_.JSC$19536_createXhrIo(R.JSC$19527_channel_.JSC$19536_shouldUseSecondaryDomains()?y:null);R.JSC$19529_readyStateChangeThrottleMs_>0&&(R.JSC$19529_readyStateChangeThrottle_=new _.v2((0,_.HY)(R.JSC$19529_xmlHttpHandler_,R,R.JSC$19529_xmlHttp_),R.JSC$19529_readyStateChangeThrottleMs_));R.JSC$19527_eventHandler_.listen(R.JSC$19529_xmlHttp_,
"readystatechange",R.JSC$19529_readyStateChangeHandler_);y=R.JSC$19529_extraHeaders_?_.Ps.clone(R.JSC$19529_extraHeaders_):{};R.JSC$19529_postData_?(R.JSC$19529_verb_="POST",y["Content-Type"]="application/x-www-form-urlencoded",R.JSC$19529_xmlHttp_.send(R.JSC$19529_requestUri_,R.JSC$19529_verb_,R.JSC$19529_postData_,y)):(R.JSC$19529_verb_="GET",R.sendClose_&&!_.T$&&(y.Connection="close"),R.JSC$19529_xmlHttp_.send(R.JSC$19529_requestUri_,R.JSC$19529_verb_,null,y));R.JSC$19527_channel_.notifyServerReachabilityEvent(1);
y=R.JSC$19527_channelDebug_;var u=R.JSC$19529_postData_;if(u){var v="";u=u.split("&");for(var Q=0;Q<u.length;Q++){var M=u[Q].split("=");if(M.length>1){var K=M[0];M=M[1];var h=K.split("_");v=h.length>=2&&h[1]=="type"?v+(K+"="+M+"&"):v+(K+"=redacted&")}}}else v=null;y.info("XMLHTTP REQ ("+R.JSC$19527_rid_+") [attempt "+R.JSC$19527_retryId_+"]: "+R.JSC$19529_verb_+"\n"+R.JSC$19529_requestUri_+"\n"+v)};
Rg.prototype.JSC$19529_readyStateChangeHandler_=function(R){R=R.target;var y=this.JSC$19529_readyStateChangeThrottle_;y&&_.qg(R)==3?(this.JSC$19527_channelDebug_.debug("Throttling readystatechange."),y.fire()):this.JSC$19529_xmlHttpHandler_(R)};
Rg.prototype.JSC$19529_xmlHttpHandler_=function(R){try{if(R==this.JSC$19529_xmlHttp_)a:{var y=_.qg(this.JSC$19529_xmlHttp_),u=this.JSC$19529_xmlHttp_.JSC$9764_lastErrorCode_,v=this.JSC$19529_xmlHttp_.getStatus();if(_.T$&&!_.oE("420+")){if(y<4)break a}else if(y<3||y==3&&!this.JSC$19529_xmlHttp_.getResponseText())break a;this.JSC$19529_cancelled_||y!=4||u==7||(u==8||v<=0?this.JSC$19527_channel_.notifyServerReachabilityEvent(3):this.JSC$19527_channel_.notifyServerReachabilityEvent(2));E0p(this);var Q=
this.JSC$19529_xmlHttp_.getStatus();this.JSC$19529_lastStatusCode_=Q;var M=this.JSC$19529_xmlHttp_.getResponseText();M||this.JSC$19527_channelDebug_.debug("No response text for uri "+this.JSC$19529_requestUri_+" status "+Q);this.JSC$19529_successful_=Q==200;this.JSC$19527_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19527_rid_+") [ attempt "+this.JSC$19527_retryId_+"]: "+this.JSC$19529_verb_+"\n"+this.JSC$19529_requestUri_+"\n"+y+" "+Q);if(this.JSC$19529_successful_){y==4&&yo(this);if(this.decodeChunks_){for(R=
!0;!this.JSC$19529_cancelled_&&this.JSC$19529_xmlHttpChunkStart_<M.length;){var K=$iJ(this,M);if(K==Ptg){y==4&&(this.JSC$19529_lastError_=4,Cb(15),R=!1);u4(this.JSC$19527_channelDebug_,this.JSC$19527_rid_,null,"[Incomplete Response]");break}else if(K==rsm){this.JSC$19529_lastError_=4;Cb(16);u4(this.JSC$19527_channelDebug_,this.JSC$19527_rid_,M,"[Invalid Chunk]");R=!1;break}else u4(this.JSC$19527_channelDebug_,this.JSC$19527_rid_,K,null),qTg(this,K)}y==4&&M.length==0&&(this.JSC$19529_lastError_=1,
Cb(17),R=!1);this.JSC$19529_successful_=this.JSC$19529_successful_&&R;R||(u4(this.JSC$19527_channelDebug_,this.JSC$19527_rid_,M,"[Invalid Chunked Response]"),yo(this),XrP(this))}else u4(this.JSC$19527_channelDebug_,this.JSC$19527_rid_,M,null),qTg(this,M);this.JSC$19529_successful_&&!this.JSC$19529_cancelled_&&(y==4?this.JSC$19527_channel_.JSC$19536_onRequestComplete(this):(this.JSC$19529_successful_=!1,kDV(this)))}else Q==400&&M.indexOf("Unknown SID")>0?(this.JSC$19529_lastError_=3,Cb(13),this.JSC$19527_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19527_rid_+")")):(this.JSC$19529_lastError_=0,Cb(14),this.JSC$19527_channelDebug_.warning("XMLHTTP Bad status "+Q+" ("+this.JSC$19527_rid_+")")),yo(this),XrP(this)}else this.JSC$19527_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(h){this.JSC$19527_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var $iJ=function(R,y){var u=R.JSC$19529_xmlHttpChunkStart_,v=y.indexOf("\n",u);if(v==-1)return Ptg;u=Number(y.substring(u,v));if(isNaN(u))return rsm;v+=1;if(v+u>y.length)return Ptg;y=y.slice(v,v+u);R.JSC$19529_xmlHttpChunkStart_=v+u;return y};
Rg.prototype.cancel=function(){this.JSC$19529_cancelled_=!0;yo(this)};
var kDV=function(R){R.JSC$19529_watchDogTimeoutTime_=Date.now()+R.timeout_;mio(R,R.timeout_)},mio=function(R,y){if(R.JSC$19529_watchDogTimerId_!=null)throw Error("xk");
R.JSC$19529_watchDogTimerId_=aF((0,_.HY)(R.JSC$19529_onWatchDogTimeout_,R),y)},E0p=function(R){R.JSC$19529_watchDogTimerId_&&(_.uO.clearTimeout(R.JSC$19529_watchDogTimerId_),R.JSC$19529_watchDogTimerId_=null)};
Rg.prototype.JSC$19529_onWatchDogTimeout_=function(){this.JSC$19529_watchDogTimerId_=null;var R=Date.now();R-this.JSC$19529_watchDogTimeoutTime_>=0?(this.JSC$19527_channelDebug_.info("TIMEOUT: "+this.JSC$19529_requestUri_),this.JSC$19529_type_!=2&&this.JSC$19527_channel_.notifyServerReachabilityEvent(3),yo(this),this.JSC$19529_lastError_=2,Cb(18),XrP(this)):(this.JSC$19527_channelDebug_.warning("WatchDog timer called too early"),mio(this,this.JSC$19529_watchDogTimeoutTime_-R))};
var XrP=function(R){R.JSC$19527_channel_.JSC$19536_isClosed()||R.JSC$19529_cancelled_||R.JSC$19527_channel_.JSC$19536_onRequestComplete(R)},yo=function(R){E0p(R);
_.R_(R.JSC$19529_readyStateChangeThrottle_);R.JSC$19529_readyStateChangeThrottle_=null;R.pollingTimer_.stop();R.JSC$19527_eventHandler_.removeAll();if(R.JSC$19529_xmlHttp_){var y=R.JSC$19529_xmlHttp_;R.JSC$19529_xmlHttp_=null;y.abort();y.dispose()}R.trident_&&(R.trident_=null)};
Rg.prototype.getLastError=function(){return this.JSC$19529_lastError_};
var qTg=function(R,y){try{R.JSC$19527_channel_.JSC$19536_onRequestData(R,y),R.JSC$19527_channel_.notifyServerReachabilityEvent(4)}catch(u){}};var u4=function(R,y,u,v){var Q=R.info;a:if(u&&u!="y2f%"){try{var M=JSON.parse(u);if(M)for(var K=0;K<M.length;K++)if(Array.isArray(M[K])){var h=M[K];if(!(h.length<2)){var b=h[1];if(Array.isArray(b)&&!(b.length<1)){var N=b[0];if(N!="noop"&&N!="stop")for(var T=1;T<b.length;T++)b[T]=""}}}var x=(0,_.kj)(M);break a}catch(B){R.debug("Exception parsing expected JS array - probably was not JS");x=u;break a}x=void 0}else x=u;Q.call(R,"XMLHTTP TEXT ("+y+"): "+x+(v?" "+v:""))};
SI.prototype.debug=function(R){this.info(R)};
SI.prototype.info=function(){};
SI.prototype.warning=function(){};var AsK=function(R,y){this.JSC$19534_channel_=R;this.JSC$19534_channelDebug_=y;this.JSC$19534_parser_=new $r};
_.J=AsK.prototype;_.J.JSC$19536_extraHeaders_=null;_.J.JSC$19536_request_=null;_.J.receivedIntermediateResult_=!1;_.J.JSC$19536_path_=null;_.J.state_=null;_.J.JSC$19536_lastStatusCode_=-1;_.J.JSC$19536_hostPrefix_=null;_.J.blockedPrefix_=null;
_.J.connect=function(R){this.JSC$19536_path_=R;R=DiJ(this.JSC$19534_channel_,this.JSC$19536_path_);Cb(3);Date.now();var y=this.JSC$19534_channel_.firstTestResults_;y!=null?(this.JSC$19536_hostPrefix_=y[0],(this.blockedPrefix_=y[1])?(this.state_=1,prK(this)):(this.state_=2,t2p(this))):(Hj(R,"MODE","init"),this.JSC$19536_request_=new Rg(this,this.JSC$19534_channelDebug_),this.JSC$19536_request_.JSC$19529_extraHeaders_=this.JSC$19536_extraHeaders_,Uim(this.JSC$19536_request_,R,!1,null,!0),this.state_=
0)};
var prK=function(R){var y=csa(R.JSC$19534_channel_,R.blockedPrefix_,"/mail/images/cleardot.gif");_.FW(y);ica(y.toString(),5E3,(0,_.HY)(R.checkBlockedCallback_,R),3,2E3);R.notifyServerReachabilityEvent(1)};
AsK.prototype.checkBlockedCallback_=function(R){if(R)this.state_=2,t2p(this);else{Cb(4);var y=this.JSC$19534_channel_;y.JSC$19537_channelDebug_.debug("Test Connection Blocked");y.JSC$19541_lastStatusCode_=y.connectionTest_.JSC$19536_lastStatusCode_;vh(y,9)}R&&this.notifyServerReachabilityEvent(2)};
var t2p=function(R){R.JSC$19534_channelDebug_.debug("TestConnection: starting stage 2");var y=R.JSC$19534_channel_.secondTestResults_;y!=null?(R.JSC$19534_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+y?"Buffered":"Unbuffered"),Cb(5),y?(Cb(11),Qo(R.JSC$19534_channel_,R,!1)):(Cb(12),Qo(R.JSC$19534_channel_,R,!0))):(R.JSC$19536_request_=new Rg(R,R.JSC$19534_channelDebug_),R.JSC$19536_request_.JSC$19529_extraHeaders_=R.JSC$19536_extraHeaders_,y=aXP(R.JSC$19534_channel_,
R.JSC$19536_hostPrefix_,R.JSC$19536_path_),Cb(5),Hj(y,"TYPE","xmlhttp"),Uim(R.JSC$19536_request_,y,!1,R.JSC$19536_hostPrefix_,!1))};
_.J=AsK.prototype;_.J.JSC$19536_createXhrIo=function(R){return this.JSC$19534_channel_.JSC$19536_createXhrIo(R)};
_.J.abort=function(){this.JSC$19536_request_&&(this.JSC$19536_request_.cancel(),this.JSC$19536_request_=null);this.JSC$19536_lastStatusCode_=-1};
_.J.JSC$19536_isClosed=function(){return!1};
_.J.JSC$19536_onRequestData=function(R,y){this.JSC$19536_lastStatusCode_=R.JSC$19529_lastStatusCode_;if(this.state_==0)if(this.JSC$19534_channelDebug_.debug("TestConnection: Got data for stage 1"),y){try{var u=this.JSC$19534_parser_.parse(y)}catch(v){STa(this.JSC$19534_channel_,this);return}this.JSC$19536_hostPrefix_=u[0];this.blockedPrefix_=u[1]}else this.JSC$19534_channelDebug_.debug("TestConnection: Null responseText"),STa(this.JSC$19534_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(Cb(7),Date.now()):y=="11111"?(Cb(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19536_lastStatusCode_=200,this.JSC$19536_request_.cancel(),this.JSC$19534_channelDebug_.debug("Test connection succeeded; using streaming connection"),Cb(12),Qo(this.JSC$19534_channel_,this,!0)):(Cb(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.J.JSC$19536_onRequestComplete=function(){this.JSC$19536_lastStatusCode_=this.JSC$19536_request_.JSC$19529_lastStatusCode_;this.JSC$19536_request_.JSC$19529_successful_?this.state_==0?(this.JSC$19534_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,prK(this)):(this.state_=2,t2p(this))):this.state_==2&&(this.JSC$19534_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19534_channelDebug_.debug("Test connection succeeded; using streaming connection"),
Cb(12),Qo(this.JSC$19534_channel_,this,!0)):(this.JSC$19534_channelDebug_.debug("Test connection failed; not using streaming"),Cb(11),Qo(this.JSC$19534_channel_,this,!1))):(this.JSC$19534_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?Cb(9):this.state_==2&&Cb(10),STa(this.JSC$19534_channel_,this,this.JSC$19536_request_.getLastError()))};
_.J.JSC$19536_shouldUseSecondaryDomains=function(){return this.JSC$19534_channel_.JSC$19536_shouldUseSecondaryDomains()};
_.J.isActive=function(){return this.JSC$19534_channel_.isActive()};
_.J.notifyServerReachabilityEvent=function(R){this.JSC$19534_channel_.notifyServerReachabilityEvent(R)};var jn=function(R,y,u){this.state_=1;this.JSC$19537_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19537_channelDebug_=new SI;this.JSC$19537_parser_=new $r;this.firstTestResults_=R||null;this.secondTestResults_=y!=null?y:null;this.asyncTest_=u||!1},YTK=function(R,y){this.JSC$19539_mapId=R;
this.map=y;this.context=null};
_.J=jn.prototype;_.J.JSC$19541_extraHeaders_=null;_.J.JSC$19541_extraParams_=null;_.J.forwardChannelRequest_=null;_.J.JSC$19541_backChannelRequest_=null;_.J.JSC$19541_path_=null;_.J.JSC$19541_forwardChannelUri_=null;_.J.JSC$19541_backChannelUri_=null;_.J.JSC$19541_hostPrefix_=null;_.J.JSC$19541_nextRid_=0;_.J.JSC$19541_nextMapId_=0;_.J.handler_=null;_.J.JSC$19541_forwardChannelTimerId_=null;_.J.JSC$19541_backChannelTimerId_=null;_.J.JSC$19541_deadBackChannelTimerId_=null;_.J.connectionTest_=null;
_.J.useChunked_=null;_.J.JSC$19541_lastArrayId_=-1;_.J.JSC$19541_lastPostResponseArrayId_=-1;_.J.JSC$19541_lastStatusCode_=-1;_.J.JSC$19541_forwardChannelRetryCount_=0;_.J.JSC$19541_backChannelRetryCount_=0;_.J.JSC$19541_channelVersion_=8;var LIP={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},smJ=function(R,y,u,v){_.ew.call(this,"timingevent",R);this.size=y;this.rtt=u;this.retries=v};
_.IE(smJ,_.ew);var zxg=function(R){_.ew.call(this,"serverreachability",R)};
_.IE(zxg,_.ew);jn.prototype.connect=function(R,y,u,v,Q){this.JSC$19537_channelDebug_.debug("connect()");Cb(0);this.JSC$19541_path_=y;this.JSC$19541_extraParams_=u||{};v&&Q!==void 0&&(this.JSC$19541_extraParams_.OSID=v,this.JSC$19541_extraParams_.OAID=Q);this.asyncTest_?(aF((0,_.HY)(this.connectTest_,this,R),100),g0p(this)):this.connectTest_(R)};
jn.prototype.disconnect=function(){this.JSC$19537_channelDebug_.debug("disconnect()");Ct8(this);if(this.state_==3){var R=this.JSC$19541_nextRid_++,y=this.JSC$19541_forwardChannelUri_.clone();_.cY(y,"SID",this.sid_);_.cY(y,"RID",R);_.cY(y,"TYPE","terminate");M9(this,y);R=new Rg(this,this.JSC$19537_channelDebug_,this.sid_,R);R.JSC$19529_type_=2;R.JSC$19529_baseUri_=_.FW(y.clone());(new Image).src=R.JSC$19529_baseUri_.toString();R.JSC$19529_requestStartTime_=Date.now();kDV(R)}RJP(this)};
jn.prototype.connectTest_=function(R){this.JSC$19537_channelDebug_.debug("connectTest_()");this.connectionTest_=new AsK(this,this.JSC$19537_channelDebug_);this.connectionTest_.JSC$19536_extraHeaders_=this.JSC$19541_extraHeaders_;this.connectionTest_.JSC$19534_parser_=this.JSC$19537_parser_;this.connectionTest_.connect(R)};
var g0p=function(R){R.JSC$19537_channelDebug_.debug("connectChannel_()");R.JSC$19541_ensureInState_(1,0);R.JSC$19541_forwardChannelUri_=DiJ(R,R.JSC$19541_path_);yna(R)},Ct8=function(R){R.connectionTest_&&(R.connectionTest_.abort(),R.connectionTest_=null);
R.JSC$19541_backChannelRequest_&&(R.JSC$19541_backChannelRequest_.cancel(),R.JSC$19541_backChannelRequest_=null);R.JSC$19541_backChannelTimerId_&&(_.uO.clearTimeout(R.JSC$19541_backChannelTimerId_),R.JSC$19541_backChannelTimerId_=null);uw7(R);R.forwardChannelRequest_&&(R.forwardChannelRequest_.cancel(),R.forwardChannelRequest_=null);R.JSC$19541_forwardChannelTimerId_&&(_.uO.clearTimeout(R.JSC$19541_forwardChannelTimerId_),R.JSC$19541_forwardChannelTimerId_=null)},vX8=function(R,y){if(R.state_==0)throw Error("Ak");
R.JSC$19537_outgoingMaps_.length==1E3&&R.JSC$19537_parser_.stringify(y);R.JSC$19537_outgoingMaps_.push(new YTK(R.JSC$19541_nextMapId_++,y));R.state_!=2&&R.state_!=3||yna(R)};
jn.prototype.JSC$19536_isClosed=function(){return this.state_==0};
jn.prototype.getState=function(){return this.state_};
var yna=function(R){R.forwardChannelRequest_||R.JSC$19541_forwardChannelTimerId_||(R.JSC$19541_forwardChannelTimerId_=aF((0,_.HY)(R.JSC$19541_onStartForwardChannelTimer_,R),0),R.JSC$19541_forwardChannelRetryCount_=0)};
jn.prototype.JSC$19541_onStartForwardChannelTimer_=function(R){this.JSC$19541_forwardChannelTimerId_=null;QiM(this,R)};
var QiM=function(R,y){R.JSC$19537_channelDebug_.debug("startForwardChannel_");if(R.state_==1){if(!y){R.JSC$19537_channelDebug_.debug("open_()");R.JSC$19541_nextRid_=Math.floor(Math.random()*1E5);y=R.JSC$19541_nextRid_++;var u=new Rg(R,R.JSC$19537_channelDebug_,"",y);u.JSC$19529_extraHeaders_=R.JSC$19541_extraHeaders_;var v=jiK(R),Q=R.JSC$19541_forwardChannelUri_.clone();_.cY(Q,"RID",y);_.cY(Q,"CVER","1");M9(R,Q);diK(u,Q,v);R.forwardChannelRequest_=u;R.state_=2}}else R.state_==3&&(y?M5V(R,y):R.JSC$19537_outgoingMaps_.length==
0?R.JSC$19537_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):R.forwardChannelRequest_||(M5V(R),R.JSC$19537_channelDebug_.debug("startForwardChannel_ finished, sent request")))},M5V=function(R,y){if(y)if(R.JSC$19541_channelVersion_>6){R.JSC$19537_outgoingMaps_=R.pendingMaps_.concat(R.JSC$19537_outgoingMaps_);
R.pendingMaps_.length=0;var u=R.JSC$19541_nextRid_-1;y=jiK(R)}else u=y.JSC$19527_rid_,y=y.JSC$19529_postData_;else u=R.JSC$19541_nextRid_++,y=jiK(R);var v=R.JSC$19541_forwardChannelUri_.clone();_.cY(v,"SID",R.sid_);_.cY(v,"RID",u);_.cY(v,"AID",R.JSC$19541_lastArrayId_);M9(R,v);u=new Rg(R,R.JSC$19537_channelDebug_,R.sid_,u,R.JSC$19541_forwardChannelRetryCount_+1);u.JSC$19529_extraHeaders_=R.JSC$19541_extraHeaders_;u.setTimeout(1E4+Math.round(1E4*Math.random()));R.forwardChannelRequest_=u;diK(u,v,y)},
M9=function(R,y){R.handler_&&(R=R.handler_.JSC$19548_getAdditionalParams())&&_.Ps.forEach(R,function(u,v){_.cY(y,v,u)})},jiK=function(R){var y=Math.min(R.JSC$19537_outgoingMaps_.length,1E3),u=["count="+y];
if(R.JSC$19541_channelVersion_>6&&y>0){var v=R.JSC$19537_outgoingMaps_[0].JSC$19539_mapId;u.push("ofs="+v)}else v=0;for(var Q={},M=0;M<y;Q={mapId$jscomp$3:void 0},M++){Q.mapId$jscomp$3=R.JSC$19537_outgoingMaps_[M].JSC$19539_mapId;var K=R.JSC$19537_outgoingMaps_[M].map;Q.mapId$jscomp$3=R.JSC$19541_channelVersion_<=6?M:Q.mapId$jscomp$3-v;try{_.Ps.forEach(K,function(h){return function(b,N){u.push("req"+h.mapId$jscomp$3+"_"+N+"="+encodeURIComponent(b))}}(Q))}catch(h){u.push("req"+Q.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}R.pendingMaps_=R.pendingMaps_.concat(R.JSC$19537_outgoingMaps_.splice(0,y));
return u.join("&")},Jng=function(R){R.JSC$19541_backChannelRequest_||R.JSC$19541_backChannelTimerId_||(R.JSC$19541_backChannelAttemptId_=1,R.JSC$19541_backChannelTimerId_=aF((0,_.HY)(R.JSC$19541_onStartBackChannelTimer_,R),0),R.JSC$19541_backChannelRetryCount_=0)},ilI=function(R){if(R.JSC$19541_backChannelRequest_||R.JSC$19541_backChannelTimerId_||R.JSC$19541_backChannelRetryCount_>=3)return!1;
R.JSC$19537_channelDebug_.debug("Going to retry GET");R.JSC$19541_backChannelAttemptId_++;R.JSC$19541_backChannelTimerId_=aF((0,_.HY)(R.JSC$19541_onStartBackChannelTimer_,R),V5p(R,R.JSC$19541_backChannelRetryCount_));R.JSC$19541_backChannelRetryCount_++;return!0};
jn.prototype.JSC$19541_onStartBackChannelTimer_=function(){this.JSC$19541_backChannelTimerId_=null;this.JSC$19537_channelDebug_.debug("Creating new HttpRequest");this.JSC$19541_backChannelRequest_=new Rg(this,this.JSC$19537_channelDebug_,this.sid_,"rpc",this.JSC$19541_backChannelAttemptId_);this.JSC$19541_backChannelRequest_.JSC$19529_extraHeaders_=this.JSC$19541_extraHeaders_;this.JSC$19541_backChannelRequest_.JSC$19529_readyStateChangeThrottleMs_=0;var R=this.JSC$19541_backChannelUri_.clone();_.cY(R,
"RID","rpc");_.cY(R,"SID",this.sid_);_.cY(R,"CI",this.useChunked_?"0":"1");_.cY(R,"AID",this.JSC$19541_lastArrayId_);M9(this,R);_.cY(R,"TYPE","xmlhttp");Uim(this.JSC$19541_backChannelRequest_,R,!0,this.JSC$19541_hostPrefix_,!1);this.JSC$19537_channelDebug_.debug("New Request created")};
var Qo=function(R,y,u){R.JSC$19537_channelDebug_.debug("Test Connection Finished");R.useChunked_=R.secondTestResults_==null?u:!R.secondTestResults_;R.JSC$19541_lastStatusCode_=y.JSC$19536_lastStatusCode_;R.asyncTest_||g0p(R)},STa=function(R,y){R.JSC$19537_channelDebug_.debug("Test Connection Failed");
R.JSC$19541_lastStatusCode_=y.JSC$19536_lastStatusCode_;vh(R,2)};
jn.prototype.JSC$19536_onRequestData=function(R,y){if(this.state_!=0&&(this.JSC$19541_backChannelRequest_==R||this.forwardChannelRequest_==R))if(this.JSC$19541_lastStatusCode_=R.JSC$19529_lastStatusCode_,this.forwardChannelRequest_==R&&this.state_==3)if(this.JSC$19541_channelVersion_>7){try{var u=this.JSC$19537_parser_.parse(y)}catch(v){u=null}if(Array.isArray(u)&&u.length==3)if(y=u,y[0]==0)a:if(this.JSC$19537_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19541_backChannelTimerId_)this.JSC$19537_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19541_backChannelRequest_)if(this.JSC$19541_backChannelRequest_.JSC$19529_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19529_requestStartTime_)uw7(this),this.JSC$19541_backChannelRequest_.cancel(),this.JSC$19541_backChannelRequest_=null;else break a;else this.JSC$19537_channelDebug_.warning("We do not have a BackChannel established");ilI(this);Cb(19)}else this.JSC$19541_lastPostResponseArrayId_=y[1],R=this.JSC$19541_lastPostResponseArrayId_-this.JSC$19541_lastArrayId_,0<
R&&(y=y[2],this.JSC$19537_channelDebug_.debug(y+" bytes (in "+R+" arrays) are outstanding on the BackChannel"),y<37500&&this.useChunked_&&this.JSC$19541_backChannelRetryCount_==0&&!this.JSC$19541_deadBackChannelTimerId_&&(this.JSC$19541_deadBackChannelTimerId_=aF((0,_.HY)(this.JSC$19541_onBackChannelDead_,this),6E3)));else this.JSC$19537_channelDebug_.debug("Bad POST response data returned"),vh(this,11)}else y!="y2f%"&&(this.JSC$19537_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
vh(this,11));else this.JSC$19541_backChannelRequest_==R&&uw7(this),_.iO(y)||(R=this.JSC$19537_parser_.parse(y),this.onInput_(R))};
jn.prototype.JSC$19541_onBackChannelDead_=function(){this.JSC$19541_deadBackChannelTimerId_!=null&&(this.JSC$19541_deadBackChannelTimerId_=null,this.JSC$19541_backChannelRequest_.cancel(),this.JSC$19541_backChannelRequest_=null,ilI(this),Cb(20))};
var uw7=function(R){R.JSC$19541_deadBackChannelTimerId_!=null&&(_.uO.clearTimeout(R.JSC$19541_deadBackChannelTimerId_),R.JSC$19541_deadBackChannelTimerId_=null)};
jn.prototype.JSC$19536_onRequestComplete=function(R){this.JSC$19537_channelDebug_.debug("Request complete");if(this.JSC$19541_backChannelRequest_==R){uw7(this);this.JSC$19541_backChannelRequest_=null;var y=2}else if(this.forwardChannelRequest_==R)this.forwardChannelRequest_=null,y=1;else return;this.JSC$19541_lastStatusCode_=R.JSC$19529_lastStatusCode_;if(this.state_!=0)if(R.JSC$19529_successful_)if(y==1){y=R.JSC$19529_postData_?R.JSC$19529_postData_.length:0;R=Date.now()-R.JSC$19529_requestStartTime_;
var u=Hxa;u.dispatchEvent(new smJ(u,y,R,this.JSC$19541_forwardChannelRetryCount_));yna(this);this.handler_&&this.handler_.JSC$19548_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else Jng(this);else{u=R.getLastError();if(u==3||u==7||u==0&&this.JSC$19541_lastStatusCode_>0)this.JSC$19537_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19537_channelDebug_.debug("Maybe retrying, last error: "+GDa(u,this.JSC$19541_lastStatusCode_));var v;if(v=y==1)this.forwardChannelRequest_||
this.JSC$19541_forwardChannelTimerId_||this.state_==1||this.JSC$19541_forwardChannelRetryCount_>=2?v=!1:(this.JSC$19537_channelDebug_.debug("Going to retry POST"),this.JSC$19541_forwardChannelTimerId_=aF((0,_.HY)(this.JSC$19541_onStartForwardChannelTimer_,this,R),V5p(this,this.JSC$19541_forwardChannelRetryCount_)),this.JSC$19541_forwardChannelRetryCount_++,v=!0);if(v||y==2&&ilI(this))return;this.JSC$19537_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19537_channelDebug_.debug("Error: HTTP request failed");
switch(u){case 1:vh(this,5);break;case 4:vh(this,10);break;case 3:vh(this,6);break;case 7:vh(this,12);break;default:vh(this,2)}}};
var V5p=function(R,y){var u=5E3+Math.floor(Math.random()*1E4);R.isActive()||(R.JSC$19537_channelDebug_.debug("Inactive channel"),u*=2);return u*y};
jn.prototype.onInput_=function(R){for(var y=0;y<R.length;y++){var u=R[y];this.JSC$19541_lastArrayId_=u[0];u=u[1];this.state_==2?u[0]=="c"?(this.sid_=u[1],this.JSC$19541_hostPrefix_=u[2],u=u[3],u!=null?this.JSC$19541_channelVersion_=u:this.JSC$19541_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19548_channelOpened(),this.JSC$19541_backChannelUri_=aXP(this,this.JSC$19541_hostPrefix_,this.JSC$19541_path_),Jng(this)):u[0]=="stop"&&vh(this,7):this.state_==3&&(u[0]=="stop"?vh(this,7):
u[0]!="noop"&&this.handler_&&this.handler_.JSC$19548_channelHandleArray(u),this.JSC$19541_backChannelRetryCount_=0)}};
jn.prototype.JSC$19541_ensureInState_=function(R){if(!_.XU(arguments,this.state_))throw Error("Bk`"+this.state_);};
var vh=function(R,y){R.JSC$19537_channelDebug_.info("Error code "+y);if(y==2||y==9){var u=null;R.handler_&&(u=null);var v=(0,_.HY)(R.testGoogleComCallback_,R);u||(u=new _.Cv("//www.google.com/images/cleardot.gif"),_.FW(u));Vq7(u.toString(),1E4,v)}else Cb(2);R.onError_(y)};
jn.prototype.testGoogleComCallback_=function(R){R?(this.JSC$19537_channelDebug_.info("Successfully pinged google.com"),Cb(2)):(this.JSC$19537_channelDebug_.info("Failed to ping google.com"),Cb(1),this.onError_(8))};
jn.prototype.onError_=function(R){this.JSC$19537_channelDebug_.debug("HttpChannel: error - "+R);this.state_=0;this.handler_&&this.handler_.JSC$19548_channelError(R);RJP(this);Ct8(this)};
var RJP=function(R){R.state_=0;R.JSC$19541_lastStatusCode_=-1;if(R.handler_)if(R.pendingMaps_.length==0&&R.JSC$19537_outgoingMaps_.length==0)R.handler_.JSC$19548_channelClosed();else{R.JSC$19537_channelDebug_.debug("Number of undelivered maps, pending: "+R.pendingMaps_.length+", outgoing: "+R.JSC$19537_outgoingMaps_.length);var y=_.Az(R.pendingMaps_),u=_.Az(R.JSC$19537_outgoingMaps_);R.pendingMaps_.length=0;R.JSC$19537_outgoingMaps_.length=0;R.handler_.JSC$19548_channelClosed(y,u)}},DiJ=function(R,
y){y=csa(R,null,y);
R.JSC$19537_channelDebug_.debug("GetForwardChannelUri: "+y);return y},aXP=function(R,y,u){y=csa(R,R.JSC$19536_shouldUseSecondaryDomains()?y:null,u);
R.JSC$19537_channelDebug_.debug("GetBackChannelUri: "+y);return y},csa=function(R,y,u){var v=_.pF(u);
if(v.JSC$10001_domain_!="")y&&_.ME(v,y+"."+v.JSC$10001_domain_),_.Jt(v,v.JSC$10001_port_);else{var Q=window.location;v=reg(Q.protocol,y?y+"."+Q.hostname:Q.hostname,+Q.port,u)}R.JSC$19541_extraParams_&&_.Ps.forEach(R.JSC$19541_extraParams_,function(M,K){_.cY(v,K,M)});
_.cY(v,"VER",R.JSC$19541_channelVersion_);M9(R,v);return v};
jn.prototype.JSC$19536_createXhrIo=function(R){if(R)throw Error("yk");R=new _.E8;R.JSC$9764_withCredentials_=!1;return R};
jn.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
jn.prototype.notifyServerReachabilityEvent=function(R){var y=Hxa;y.dispatchEvent(new zxg(y,R))};
jn.prototype.JSC$19536_shouldUseSecondaryDomains=function(){return!1};
new ElI;var K$8=function(){};
_.J=K$8.prototype;_.J.JSC$19548_channelOpened=function(){};
_.J.JSC$19548_channelHandleArray=function(){};
_.J.JSC$19548_channelSuccess=function(){};
_.J.JSC$19548_channelError=function(){};
_.J.JSC$19548_channelClosed=function(){};
_.J.JSC$19548_getAdditionalParams=function(){return{}};
_.J.isActive=function(){return!0};var I5M=function(R){R.front_.length===0&&(R.front_=R.back_,R.front_.reverse(),R.back_=[])};
_.J=IjI.prototype;_.J.enqueue=function(R){this.back_.push(R)};
_.J.peek=function(){I5M(this);return _.WW(this.front_)};
_.J.getCount=function(){return this.front_.length+this.back_.length};
_.J.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.J.clear=function(){this.front_=[];this.back_=[]};
_.J.contains=function(R){return _.XU(this.front_,R)||_.XU(this.back_,R)};
_.J.remove=function(R){var y=this.front_;var u=Array.prototype.lastIndexOf.call(y,R,y.length-1);u>=0?(_.lcE(y,u),y=!0):y=!1;return y||_.m4(this.back_,R)};
_.J.getValues=function(){for(var R=[],y=this.front_.length-1;y>=0;--y)R.push(this.front_[y]);y=this.back_.length;for(var u=0;u<y;++u)R.push(this.back_[u]);return R};var J0=function(R){this.JSC$19552_map_=new _.Nv;this.size=0;R&&this.addAll(R)},hJZ=function(R){var y=typeof R;
return y=="object"&&R||y=="function"?"o"+_.YS(R):y.charAt(0)+R};
_.J=J0.prototype;_.J.getCount=function(){return this.JSC$19552_map_.size};
_.J.add=function(R){this.JSC$19552_map_.set(hJZ(R),R);this.size=this.JSC$19552_map_.size};
_.J.addAll=function(R){R=_.Qh(R);for(var y=R.length,u=0;u<y;u++)this.add(R[u]);this.size=this.JSC$19552_map_.size};
_.J.removeAll=function(R){R=_.Qh(R);for(var y=R.length,u=0;u<y;u++)this.remove(R[u]);this.size=this.JSC$19552_map_.size};
_.J.delete=function(R){R=this.JSC$19552_map_.remove(hJZ(R));this.size=this.JSC$19552_map_.size;return R};
_.J.remove=function(R){return this.delete(R)};
_.J.clear=function(){this.JSC$19552_map_.clear();this.size=0};
_.J.isEmpty=function(){return this.JSC$19552_map_.size===0};
_.J.has=function(R){return this.JSC$19552_map_.containsKey(hJZ(R))};
_.J.contains=function(R){return this.JSC$19552_map_.containsKey(hJZ(R))};
_.J.getValues=function(){return this.JSC$19552_map_.getValues()};
_.J.values=function(){return this.JSC$19552_map_.values()};
_.J.clone=function(){return new J0(this)};
_.J.equals=function(R){return this.getCount()==nlo(R)&&blH(this,R)};
var blH=function(R,y){var u=nlo(y);if(R.getCount()>u)return!1;!(y instanceof J0)&&u>5&&(y=new J0(y));return GKZ(R,function(v){var Q=y;return Q.contains&&typeof Q.contains=="function"?Q.contains(v):Q.containsValue&&typeof Q.containsValue=="function"?Q.containsValue(v):_.p8(Q)||typeof Q==="string"?_.XU(Q,v):_.Ps.containsValue(Q,v)})};
J0.prototype.__iterator__=function(){return this.JSC$19552_map_.__iterator__(!1)};
J0.prototype[Symbol.iterator]=function(){return this.values()};var F$J={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 w1g;var Nvo;_.qz({_template:function(){if(Nvo!==void 0)return Nvo;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;w1g===void 0&&(w1g=document.createElement("template"));var v=w1g;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return Nvo=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(){_.gn(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 y=R.detail.dx+this._translateOffset,u=this.getWidth();y=this.position==="left"?y>=0||y<=-u:y<=0||y>=u;if(!y){var v=this._trackDetails;this._trackDetails=null;this._flingDrawer(R,v);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}u/=2;R.detail.dx<-u?this.opened=this.position==="right":R.detail.dx>u&&(this.opened=this.position==="left");y?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(R,y){for(var u=Date.now(),v=u-100,Q,M=0,K=y.length-1;M<=K;){var h=M+K>>1,b=y[h];b.timeStamp>=v?(Q=b,K=h-1):M=h+1}return Q?(R.detail.dx-Q.dx)/(u-Q.timeStamp||1):0},
_flingDrawer:function(R,y){y=this._calculateVelocity(R,y);if(!(Math.abs(y)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;R=R.detail.dx+this._translateOffset;var u=this.getWidth(),v=this.position==="left",Q=y>0;Q?(y=Math.max(y,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(y=Math.min(y,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");y=this._FLING_INITIAL_SLOPE*(!Q&&v?-(R+u):Q&&!v?u-R:-R)/y;this._styleTransitionDuration(y);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,y)}},
_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 y=this.getWidth();this.position==="left"?(R=Math.max(-y,Math.min(R,0)),this.$.scrim.style.opacity=1+R/y):(R=Math.max(0,Math.min(R,y)),this.$.scrim.style.opacity=1-R/y);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=_.GM(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&&_.GM(R).localTarget===this._firstTabStop&&(R.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.GM(R).localTarget===this._lastTabStop&&(R.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(R,y){this.toggleClass("visible",R&&!y,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 TvJ;var oXp;_.qz({_template:function(){if(oXp!==void 0)return oXp;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;TvJ===void 0&&(TvJ=document.createElement("template"));var v=TvJ;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return oXp=R},
is:"tp-yt-paper-progress",behaviors:[F$J],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,y){R.style.transform=R.style.webkitTransform="scaleX("+y/100+")"},
_mainRatioChanged:function(R){this._transformProgress(this.$.primaryProgress,R)},
_progressChanged:function(R,y,u,v,Q){R=this._clampValue(R);y=this._clampValue(y);var M=this._calcRatio(R)*100,K=this._calcRatio(y)*100;this._setSecondaryRatio(M);this._transformProgress(this.$.secondaryProgress,M);this._transformProgress(this.$.primaryProgress,K);this.secondaryProgress=R;Q?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",y);this.setAttribute("aria-valuemin",u);this.setAttribute("aria-valuemax",v)},
_disabledChanged:function(R){this.setAttribute("aria-disabled",R?"true":"false")},
_hideSecondaryProgress:function(R){return R===0}});var xLZ;var BvZ;var f5J=function(){};
_.J=f5J.prototype;_.J.registered=function(){};
_.J.addOwnKeyBinding=function(){};
_.J.removeOwnKeyBindings=function(){};
_.J.keyboardEventMatchesKeys=function(){};
_.J._collectKeyBindings=function(){};
_.J._prepKeyBindings=function(){};
_.J._addKeyBinding=function(){};
_.J._resetKeyEventListeners=function(){};
_.J._listenKeyEventListeners=function(){};
_.J._unlistenKeyEventListeners=function(){};
_.J._onKeyBindingEvent=function(){};
_.J._triggerKeyHandler=function(){};
_.J._tapHandler=function(){};
_.J._focusChanged=function(){};
_.J._detectKeyboardFocus=function(){};
_.J._userActivate=function(){};
_.J._upHandler=function(){};
_.J._spaceKeyDownHandler=function(){};
_.J._spaceKeyUpHandler=function(){};
_.J._asyncClick=function(){};
_.J._pressedChanged=function(){};
_.J._ariaActiveAttributeChanged=function(){};
_.J._activeChanged=function(){};
_.J._controlStateChanged=function(){};
_.J._changedButtonState=function(){};
_.J._focusBlurHandler=function(){};
_.J._disabledChanged=function(){};
_.J._changedControlState=function(){};
_.J._buttonStateChanged=function(){};
_.J._downHandler=function(){};
_.J.ensureRipple=function(){};
_.J.getRipple=function(){};
_.J.hasRipple=function(){};
_.J._noinkChanged=function(){};
_.J._calcRatio=function(){};
_.J._clampValue=function(){};
_.J._calcStep=function(){};
_.J._validateValue=function(){};
_.J._update=function(){};
_.J._setImmediateValue=function(){};
_.J._setExpand=function(){};
_.J._setDragging=function(){};
_.J._setTransiting=function(){};
_.J._setMarkers=function(){};
_.J._setPressed=function(){};
_.J._setPointerDown=function(){};
_.J._setReceivedFocusFromKeyboard=function(){};
_.J._setFocused=function(){};
_.J._setRatio=function(){};
f5J=_.qz({_template:function(){if(BvZ!==void 0)return BvZ;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;xLZ===void 0&&(xLZ=document.createElement("template"));var v=xLZ;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return BvZ=R},
is:"tp-yt-paper-slider",behaviors:[_.Gh,_.d9,_.ORg,F$J],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&&_.$k(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,y,u){this.setAttribute("aria-valuemin",y);this.setAttribute("aria-valuemax",u);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 y=this.$.sliderBar.getBoundingClientRect();y=(R.detail.x-y.left)/this._w*100;this._isRTL&&(y=100-y);var u=this.ratio;this._setTransiting(!0);this._positionKnob(y);u===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,y,u,v){v||this._setMarkers([]);y=Math.round((u-y)/this.step);y>R&&(y=R);if(y<0||!isFinite(y))y=0;this._setMarkers(Array(y))},
_mergeClasses:function(R){return Object.keys(R).filter(function(y){return R[y]}).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 _.lAY._createRipple.call(this)},
_focusedChanged:function(R){R&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=R?"":"none",this._ripple.holdDown=R)}});var eJp;var l5K;var Vo=null,Ol7=function(){};
_.J=Ol7.prototype;_.J.fit=function(){};
_.J._discoverInfo=function(){};
_.J.resetFit=function(){};
_.J.refit=function(){};
_.J.position=function(){};
_.J.constrain=function(){};
_.J._sizeDimension=function(){};
_.J.__sizeDimension=function(){};
_.J.center=function(){};
_.J.__getNormalizedRect=function(){};
_.J.__getOffscreenArea=function(){};
_.J.__getPosition=function(){};
_.J.notifyResize=function(){};
_.J.assignParentResizable=function(){};
_.J.stopResizeNotificationsFor=function(){};
_.J._subscribeIronResize=function(){};
_.J._unsubscribeIronResize=function(){};
_.J.resizerShouldNotify=function(){};
_.J._onDescendantIronResize=function(){};
_.J._fireResize=function(){};
_.J._onIronRequestResizeNotifications=function(){};
_.J._parentResizableChanged=function(){};
_.J._notifyDescendant=function(){};
_.J._requestResizeNotifications=function(){};
_.J._findParent=function(){};
_.J.toggle=function(){};
_.J.open=function(){};
_.J.close=function(){};
_.J.cancel=function(){};
_.J.invalidateTabbables=function(){};
_.J._ensureSetup=function(){};
_.J._canceledChanged=function(){};
_.J._withBackdropChanged=function(){};
_.J._prepareRenderOpened=function(){};
_.J._finishRenderOpened=function(){};
_.J._finishRenderClosed=function(){};
_.J._preparePositioning=function(){};
_.J._finishPositioning=function(){};
_.J._applyFocus=function(){};
_.J._onCaptureClick=function(){};
_.J._onCaptureFocus=function(){};
_.J._onCaptureEsc=function(){};
_.J._onCaptureTab=function(){};
_.J._onIronResize=function(){};
_.J._onNodesChange=function(){};
_.J.__ensureFirstLastFocusables=function(){};
_.J.__openedChanged=function(){};
_.J.__deraf=function(){};
_.J.__updateScrollObservers=function(){};
_.J.__addScrollListeners=function(){};
_.J.__removeScrollListeners=function(){};
_.J.__isValidScrollAction=function(){};
_.J.__onCaptureScroll=function(){};
_.J.__saveScrollPosition=function(){};
_.J.__restoreScrollPosition=function(){};
_.J._setCanceled=function(){};
Ol7=_.qz({_template:function(){if(l5K!==void 0)return l5K;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;eJp===void 0&&(eJp=document.createElement("template"));var v=eJp;u.call(y,v.content.cloneNode(!0),R.content.firstChild);return l5K=R},
is:"tp-yt-paper-toast",behaviors:[_.g9],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(){_.Pb._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.St.requestAvailability()},
show:function(R){typeof R=="string"&&(R={text:R});for(var y in R)y.indexOf("_")===0?_.Pb._warn('The property "'+y+'" is private and was not set.'):y in this?this[y]=R[y]:_.Pb._warn('The property "'+y+'" 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?(Vo&&Vo!==this&&Vo.close(),Vo=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):Vo===this&&(Vo=null);_.zh._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 ZlI=new _.jF("disablePersonalizationAction");var Mo7=new _.jF("showDmaConsentFlowCommand");var JFH=new _.jF("showMmgNoticeCommand");var HlP=new _.jF("saveConsentAction");var nXP=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.PH(R)};
_.O(nXP,_.y4);var GLZ=_.$y4(nXP);var rnm=new _.jF("updateTopbarAvatarAction");var PLa=new _.jF("channelHandleValidationResultRenderer");var W$8=new _.jF("generateHandleFromNameResultRenderer");var dLI=new _.jF("channelHandleInputRenderer");var ULM=new _.jF("copyLinkRenderer");var kLP=new _.jF("timedCommand");var EXp=new _.jF("clearCookieAction");var $LP=new _.jF("getMultiPageMenuAction");var qxp=new _.jF("addToGuideSectionAction"),X1V=new _.jF("removeFromGuideSectionAction");var mLM=new _.jF("updateNotificationsUnseenCountAction");var An8=new _.jF("resetChannelUnreadCountCommand");var DLa=new _.jF("resetSubscriptionsUnreadDotCommand");var p1V=new _.jF("selectLanguageCommand");var fl8=new _.jF("sendFeedbackAction");var t5V=new _.jF("uploadImageToScottyCommand");var cnM=new _.jF("registerPromoCommand");var a5a=new _.jF("setPushNotificationsEnabledCommand");var SxV=new _.jF("desktopTopbarRenderer");var Yxa=new _.jF("surveyFollowUpRenderer");var L$M=new _.jF("handlesClaimingRadioOptionRenderer");var sia=new _.jF("hotkeyDialogRenderer");var zJa=new _.jF("modifyReportFormCommand");var gXK=new _.jF("accountLinkCommand");var CLV=new _.jF("accountUnlinkCommand");var RNa=new _.jF("logAccountLinkingEventCommand");var yX7=new _.jF("guideCollapsibleEntryRenderer");var u2H=new _.jF("guideDownloadsEntryRenderer");var i4=new _.jF("guideEntryRenderer");var v1g=new _.jF("getLocationCommand");var QJm=new _.jF("locationCollectionCommand");var jJH=new _.jF("storiesItemViewModel");var MuP=new _.jF("addToRemoteQueueAction");var JXg=new _.jF("insertInRemoteQueueAction");var Vua=new _.jF("removeFromRemoteQueueAction");var iQM=new _.jF("notificationRenderer");var c6H=new _.jF("localWatchHistoryCommand");var Ksa=new _.jF("pdgBuyFlowHeaderRenderer");var ILV=new _.jF("pdgColorSliderRenderer");var hNZ=new _.jF("pdgCommentOptionRenderer");var bQV=new _.jF("pdgCommentPreviewRenderer");var Fsp=new _.jF("superVodSelectableItemButtonRenderer");var wR7=new _.jF("switchButtonRenderer");var NjZ=new _.jF("upsellDialogRenderer");var TjP=new _.jF("feedbackQuestionRenderer"),o18=new _.jF("feedbackOptionRenderer");var xJa=new _.jF("sponsorshipsTierRenderer"),BjK=new _.jF("sponsorshipsPromotionChannelRenderer");var fL7=new _.jF("simpleSurveyMessageRenderer");var fOM=new _.jF("invokeInstrumentManagerAction");var eNZ=new _.jF("logYpcFlowDismissCommand");var lLp=new _.jF("logYpcFlowStartCommand");var OQP=new _.jF("unlimitedCreateFamilyEndpoint");var ZQZ=new _.jF("iconBadgeRenderer");var arJ=new _.jF("collaborativePlaylistVisibilityValidationRule");var HQm=function(R){_.ew.call(this,"channelMessage");this.message=R};
_.O(HQm,_.ew);var n1H=function(R){_.ew.call(this,"channelError");this.error=R};
_.O(n1H,_.ew);var Gi7={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw"},rXP={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",
GAMING:"g",UNPLUGGED:"up"},PWo={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},Wsg={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},dJK={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var Kn=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 _.Nv;this.localChannelEncryptionKey=this.remoteControllerUrl="";this.deviceContext=void 0;this.model=this.brand="";this.year=0;this.chipset=this.osVersion=this.os="";this.mdxDialServerType=
"MDX_DIAL_SERVER_TYPE_UNKNOWN";this.pairingType="unknown";this.castUserId=void 0;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.castUserId=R.castUserId||"",this.theme=R.theme||"u",UJV(this,R.capabilities||""),kim(this,
R.compatibleSenderThemes||""),E18(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")};
Kn.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 Kn(R);R.connected=this.connected;R.remoteControllerUrl=this.remoteControllerUrl;R.localChannelEncryptionKey=this.localChannelEncryptionKey;R.deviceContext=
this.deviceContext;R.castUserId=this.castUserId;return R};
Kn.prototype.equals=function(R){return R?this.id==R.id:!1};
var UJV=function(R,y){R.capabilities.clear();_.bo(y.split(","),_.lh(_.Ps.contains,Gi7)).forEach(function(u){R.capabilities.add(u)})},kim=function(R,y){R.compatibleSenderThemes.clear();
_.bo(y.split(","),_.lh(_.Ps.contains,rXP)).forEach(function(u){R.compatibleSenderThemes.add(u)})},E18=function(R,y){R.experiments.clear();
y.split(",").forEach(function(u){R.experiments.add(u)})};var $JI=function(R,y){this.action=R;this.params=y||{}};_.IE(hz8,_.Z0);_.J=hz8.prototype;_.J.JSC$19588_onTick_=function(){this.JSC$19586_interval_=Math.min(3E5,this.JSC$19586_interval_*2);this.JSC$19588_listener_();this.nextTickTime_&&this.start()};
_.J.start=function(){var R=this.JSC$19586_interval_+15E3*Math.random(),y=this.delay_;y.isActive()||y.start(R);this.nextTickTime_=Date.now()+R};
_.J.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.J.isActive=function(){return this.delay_.isActive()};
_.J.reset=function(){this.delay_.stop();this.JSC$19586_interval_=5E3};_.IE(Yt,K$8);_.J=Yt.prototype;_.J.subscribe=function(R,y,u){return this.pubsub_.subscribe(R,y,u)};
_.J.unsubscribe=function(R,y,u){return this.pubsub_.unsubscribe(R,y,u)};
_.J.unsubscribeByKey=function(R){return this.pubsub_.unsubscribeByKey(R)};
_.J.publish=function(R,y){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.J.dispose=function(){this.JSC$19589_disposed_||(this.JSC$19589_disposed_=!0,_.R_(this.pubsub_),this.disconnect(),_.R_(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$19589_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.NQ({})})};
_.J.isDisposed=function(){return this.JSC$19589_disposed_};
_.J.connect=function(R,y,u){var v=this,Q,M,K,h;return _.I(function(b){if(b.nextAddress==1)return _.o1(b,2),v.useAsyncBrowserChannelHandler_?b.yield(v.connectPromise_,2):b.jumpTo(2);_.T9(b);if(v.JSC$19589_disposed_||v.JSC$19589_channel_&&v.JSC$19589_channel_.getState()==2)return b.return();v.sCookie_="";v.reconnectTimer_.stop();v.connectionParams_=R||null;v.connectUi_=y||0;Q=v.JSC$19589_pathPrefix_+"/test";M=v.JSC$19589_pathPrefix_+"/bind";K=new jn(u?u.firstTestResults:null,u?u.secondTestResults:null,
v.enableAsyncTest_);if(h=v.JSC$19589_channel_)h.handler_=null;K.handler_=v;v.JSC$19589_channel_=K;if(v.useAsyncBrowserChannelHandler_)return v.connectPromise_=qjp(v).then(function(){return XRg(v,Q,M,h,u)}),b.return(v.connectPromise_.then(function(){v.connectPromise_=_.NQ()}));
XRg(v,Q,M,h,u);return _.xL(b,0)})};
var XRg=function(R,y,u,v,Q){mJa(R);if(R.JSC$19589_channel_){var M=_.EB("ID_TOKEN"),K=R.JSC$19589_channel_.JSC$19541_extraHeaders_||{};M?K["x-youtube-identity-token"]=M:delete K["x-youtube-identity-token"];R.JSC$19589_channel_.JSC$19541_extraHeaders_=K}AXJ(R);v?(v.getState(),R.JSC$19589_channel_.connect(y,u,R.defaultQueryParams_,v.sid_,v.JSC$19541_lastArrayId_)):Q?R.JSC$19589_channel_.connect(y,u,R.defaultQueryParams_,Q.sessionId,Q.arrayId):R.JSC$19589_channel_.connect(y,u,R.defaultQueryParams_)};
Yt.prototype.disconnect=function(R){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.NQ())}finally{this.disconnectUi_=R||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),mJa(this),this.JSC$19589_channel_&&(this.JSC$19589_channel_.getState()==3&&QiM(this.JSC$19589_channel_),this.JSC$19589_channel_.disconnect()),this.disconnectUi_=0}};
Yt.prototype.sendMessage=function(R,y){var u=this,v;return _.I(function(Q){switch(Q.nextAddress){case 1:_.o1(Q,2);if(!u.useAsyncBrowserChannelHandler_){Q.jumpTo(2);break}return Q.yield(u.connectPromise_,2);case 2:_.T9(Q);if(u.JSC$19589_disposed_)return Q.return();v={_sc:R};y&&_.Ps.extend(v,y);if(u.reconnectTimer_.isActive()||(u.JSC$19589_channel_?u.JSC$19589_channel_.getState():0)==2){u.JSC$19589_pendingMessages_.push(v);Q.jumpTo(6);break}if(!u.isChannelOpened()){Q.jumpTo(6);break}_.o1(Q,8);if(!u.useAsyncBrowserChannelHandler_||
DJm(u,R)){Q.jumpTo(8);break}return Q.yield(qjp(u),8);case 8:_.T9(Q,0,0,1);u.isChannelOpened()&&(DJm(u,R)||AXJ(u),mJa(u),vX8(u.JSC$19589_channel_,v));_.xL(Q,6,1);break;case 6:_.xL(Q,0)}})};
var DJm=function(R,y){return R.enableMdxAuthForConnectionOnly_?!0:R.disableMdxAuthForAdMessages_?Object.values(PWo).includes(y):R.disableMdxAuthForNonPlaybackMessages_?!Object.values(Wsg).includes(y):R.disableMdxAuthForShortsMessages_?Object.values(dJK).includes(y):!1};
Yt.prototype.JSC$19548_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$19589_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)pRZ(this);else{var R=this.JSC$19589_pendingMessages_;this.JSC$19589_pendingMessages_=[];var y=R.length;AXJ(this);tuo(this,R,y);cXP(this)}else cXP(this)};
var pRZ=function(R){var y,u;_.I(function(v){if(v.nextAddress==1)return _.o1(v,2),v.yield(qjp(R),2);_.T9(v);y=R.JSC$19589_pendingMessages_;R.JSC$19589_pendingMessages_=[];u=y.length;tuo(R,y,u);cXP(R);return _.xL(v,0)})},tuo=function(R,y,u){for(var v=0;v<u;++v)vX8(R.JSC$19589_channel_,y[v]);
cXP(R)},cXP=function(R){R.publish("handlerOpened");
R.JSC$19589_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.J=Yt.prototype;_.J.JSC$19548_channelError=function(R){var y=R==2&&this.JSC$19589_channel_.JSC$19541_lastStatusCode_==401;R==4||y||this.reconnectTimer_.start();this.publish("handlerError",R,y);y=Object.keys(LIP).find(function(u){return LIP[u]===R});
this.JSC$19589_channelErrorCounter.increment("BROWSER_CHANNEL",y!=null?y:"UNKNOWN")};
_.J.JSC$19548_channelClosed=function(R,y){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(y)for(var u=y.length,v=0;v<u;++v){var Q=y[v].map;Q&&this.JSC$19589_pendingMessages_.push(Q)}this.JSC$19589_channelClosedCounter.increment("BROWSER_CHANNEL");R&&this.pendingMapsOnClosedCounter.JSC$9902_streamzService.JSC$9755_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",R.length);y&&this.undeliveredMapsOnClosedCounter.JSC$9905_streamzService.JSC$9755_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
y.length)};
_.J.JSC$19548_channelSuccess=function(R,y){y!=null&&R!=null&&this.channelMessageSentCounter.increment()};
_.J.JSC$19548_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_&&_.Ps.extend(R,this.connectionParams_);return R};
_.J.JSC$19548_channelHandleArray=function(R){R[0]=="S"?this.sCookie_=R[1]:R[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$19589_channel_.disconnect()):this.publish("handlerMessage",new $JI(R[0],R[1]));this.JSC$19589_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.J.isChannelOpened=function(){return!!this.JSC$19589_channel_&&this.JSC$19589_channel_.getState()==3};
var mJa=function(R){if(R.JSC$19589_channel_){var y=R.JSC$19589_getXsrfToken_(),u=R.JSC$19589_channel_.JSC$19541_extraHeaders_||{};y?u["x-youtube-lounge-xsrf-token"]=y:delete u["x-youtube-lounge-xsrf-token"];R.JSC$19589_channel_.JSC$19541_extraHeaders_=u}},qjp=function(R){if(R.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.NQ();
if(!R.enableCachedUpdateAuthorizationHeader_)return aLg(R);R.updateAuthorizationHeaderPromise_===null&&(R.updateAuthorizationHeaderPromise_=aLg(R));return R.updateAuthorizationHeaderPromise_},aLg=function(R){return _.Wc(R.getAuthorizationHeader_().then(function(y){SjK(R,y)}).thenCatch(function(){}),function(){R.updateAuthorizationHeaderPromise_=null})},SjK=function(R,y){if(R.JSC$19589_channel_){var u=R.JSC$19589_channel_.JSC$19541_extraHeaders_||{};
y&&Object.keys(y).length>0?u=Object.assign({},u,y):delete u.Authorization;R.JSC$19589_channel_.JSC$19541_extraHeaders_=u}},AXJ=function(R){R.getAuthorizationHeaderSync_&&!R.useAsyncBrowserChannelHandler_&&SjK(R,R.getAuthorizationHeaderSync_())};
_.J=Yt.prototype;_.J.setLoungeToken=function(R){(this.defaultQueryParams_.loungeIdToken=R)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$19589_channel_){var y=this.JSC$19589_channel_.JSC$19541_extraHeaders_||{};R?y["X-YouTube-LoungeId-Token"]=R:delete y["X-YouTube-LoungeId-Token"];this.JSC$19589_channel_.JSC$19541_extraHeaders_=y}};
_.J.getDeviceId=function(){return this.defaultQueryParams_.id};
_.J.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.J.reconnect=function(){var R=this.reconnectTimer_;R.delay_.fire();R.start()};
_.J.safeReconnect_=function(){var R=this.JSC$19589_channel_,y=0;R.JSC$19541_backChannelRequest_&&y++;R.forwardChannelRequest_&&y++;y==0&&this.connect(this.connectionParams_,this.connectUi_)};var yI=function(R,y){var u=R.basePath;R.supportCors&&(u=R.scheme+"://"+R.domain+R.port+R.basePath);return _.LG(u+y,{})};
Lm.prototype.sendRequest=function(R,y,u,v,Q,M,K){R={format:M?"RAW":"JSON",method:R,context:this,timeout:5E3,withCredentials:!!K,onSuccess:_.lh(this.JSC$19594_onSuccess_,v,!M),onError:_.lh(this.onError_,Q),onTimeout:_.lh(this.JSC$19594_onTimeout_,Q)};u&&(R.postParams=u,R.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.wR(y,R)};
Lm.prototype.JSC$19594_onSuccess_=function(R,y,u,v){y?R(v):R({text:u.responseText})};
Lm.prototype.onError_=function(R,y){R(Error("Ck`"+y.status))};
Lm.prototype.JSC$19594_onTimeout_=function(R){R(Error("Dk"))};var zG=function(R,y){return!!y&&(R.id==y||R.uuid==y)},YjH=function(R){return{name:R.name,
screenId:R.id,loungeToken:R.token,dialId:R.uuid,screenIdType:R.idType}},Lsp=function(R){return new sE(R)},sJp=function(R){return Array.isArray(R)?_.Ws(R,Lsp):[]},e3a=function(R){if(!R)return"null";
var y=R.token?".."+R.token.slice(-6):"-",u=R.uuid?".."+R.uuid.slice(-6):"-";return'{name:"'+R.name+'",id:'+R.id.substr(0,6)+"..,token:"+(y+",uuid:"+u+",idType:"+R.idType+"}")},sHp=function(R){return Array.isArray(R)?"["+_.Ws(R,e3a).join(",")+"]":"null"};var rUJ="",Rt=null;var XVo=function(R,y){_.nT.call(this);var u=this;this.handler=R();this.handler.subscribe("handlerOpened",this.JSC$19601_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(v,Q){u.onError(Q)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=y};
_.O(XVo,_.nT);_.J=XVo.prototype;_.J.connect=function(R,y,u){this.handler.connect(R,y,u)};
_.J.disconnect=function(R){this.handler.disconnect(R)};
_.J.reconnect=function(){this.handler.reconnect()};
_.J.getDeviceId=function(){return this.handler.getDeviceId()};
_.J.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.J.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.J.JSC$19601_onOpened=function(){this.dispatchEvent("channelOpened");var R=this.handler,y=this.currentScreenId;_.B1("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!R.JSC$19589_channel_.useChunked_,sessionId:R.JSC$19589_channel_.sid_,arrayId:R.JSC$19589_channel_.JSC$19541_lastArrayId_});_.B1("yt-remote-session-screen-id",y);R=ljp();y=Oca();_.XU(R,y)||R.push(y);G2o(R);nvM()};
_.J.onClosed=function(){this.dispatchEvent("channelClosed")};
_.J.onMessage=function(R){this.dispatchEvent(new HQm(R))};
_.J.onError=function(R){this.dispatchEvent(new n1H(R?1:0))};
_.J.sendMessage=function(R,y){this.handler.sendMessage(R,y)};
_.J.setLoungeToken=function(R){this.handler.setLoungeToken(R)};
_.J.dispose=function(){this.handler.dispose()};var qZZ=function(R,y,u){var v=this;u=u===void 0?function(){return""}:u;
var Q=Q===void 0?new fXM:Q;var M=M===void 0?new _.Tu:M;this.pathPrefix=R;this.defaultQueryParams=y;this.getXsrfToken=u;this.JSC$19604_pubsub=M;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new hz8(function(){var K;((K=v.channel)==null?void 0:VHJ((new Oxa(K,K.JSC$19512_channel_)).JSC$19522_channel_.forwardChannelRequestPool_))===0&&v.connect(v.connectionParams,v.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$19604_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$19604_channelOpenedCounter=new bcg;this.JSC$19604_channelClosedCounter=new FHm;this.JSC$19604_channelMessageReceivedCounter=new Nw8;this.JSC$19604_channelErrorCounter=new TwV};
qZZ.prototype.connect=function(R,y){R=R===void 0?{}:R;y=y===void 0?0:y;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=R,this.connectUi=y,zNa(this),(R=_.EB("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 gD(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,g1o(this))};
var g1o=function(R){_.E4(R.channel,"w",function(){R.channelState=3;R.reconnectTimer.reset();R.connectionParams=null;R.connectUi=0;for(var y=_.V(R.nonAckedMessagesOnChannelClosed),u=y.next();!u.done;u=y.next())u=u.value,R.channel&&R.channel.send(u);R.nonAckedMessagesOnChannelClosed=[];R.publish("webChannelOpened");R.JSC$19604_channelOpenedCounter.increment("WEB_CHANNEL")});
_.E4(R.channel,"x",function(){R.channelState=0;R.reconnectTimer.isActive()||R.publish("webChannelClosed");var y,u=(y=R.channel)==null?void 0:Zx8(new Oxa(y,y.JSC$19512_channel_));u&&(R.nonAckedMessagesOnChannelClosed=[].concat(_.P$(u)));R.JSC$19604_channelClosedCounter.increment("WEB_CHANNEL")});
_.E4(R.channel,"z",function(y){var u=y.data;u[0]==="gracefulReconnect"?(R.reconnectTimer.start(),R.channel&&R.channel.close()):R.publish("webChannelMessage",new $JI(u[0],u[1]));R.lastStatusCode=y.statusCode;R.JSC$19604_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.E4(R.channel,"y",function(){R.lastStatusCode===401||R.reconnectTimer.start();R.publish("webChannelError");R.JSC$19604_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.J=qZZ.prototype;_.J.disconnect=function(R){this.disconnectUi=R===void 0?0:R;this.reconnectTimer.stop();zNa(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.J.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.J.reconnect=function(){var R=this.reconnectTimer;R.delay_.fire();R.start()};
_.J.sendMessage=function(R,y){this.channel&&(zNa(this),R=Object.assign({},{_sc:R},y),this.channel.send(R))};
_.J.setLoungeToken=function(R){R||this.reconnectTimer.stop();R?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=R:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var zNa=function(R){var y=R.getXsrfToken();y?R.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=y:delete R.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.J=qZZ.prototype;_.J.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.J.publish=function(R){return this.JSC$19604_pubsub.publish.apply(this.JSC$19604_pubsub,[R].concat(_.P$(_.qy.apply(1,arguments))))};
_.J.subscribe=function(R,y,u){return this.JSC$19604_pubsub.subscribe(R,y,u)};
_.J.unsubscribe=function(R,y,u){return this.JSC$19604_pubsub.unsubscribe(R,y,u)};
_.J.unsubscribeByKey=function(R){return this.JSC$19604_pubsub.unsubscribeByKey(R)};
_.J.dispose=function(){this.JSC$19604_disposed||(this.JSC$19604_disposed=!0,_.R_(this.JSC$19604_pubsub),this.disconnect(),_.R_(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.J.isDisposed=function(){return this.JSC$19604_disposed};var $BI=function(R){_.nT.call(this);this.webChannelService=R();this.webChannelService.subscribe("webChannelOpened",this.JSC$19612_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.O($BI,_.nT);_.J=$BI.prototype;_.J.connect=function(R,y){this.webChannelService.connect(R,y)};
_.J.disconnect=function(R){this.webChannelService.disconnect(R)};
_.J.reconnect=function(){this.webChannelService.reconnect()};
_.J.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.J.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.J.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.J.JSC$19612_onOpened=function(){this.dispatchEvent("channelOpened")};
_.J.onClosed=function(){this.dispatchEvent("channelClosed")};
_.J.onMessage=function(R){this.dispatchEvent(new HQm(R))};
_.J.onError=function(){this.dispatchEvent(new n1H(this.webChannelService.lastStatusCode===401?1:0))};
_.J.sendMessage=function(R,y){this.webChannelService.sendMessage(R,y)};
_.J.setLoungeToken=function(R){this.webChannelService.setLoungeToken(R)};
_.J.dispose=function(){this.webChannelService.dispose()};var LHa=Date.now(),uS=null,SZm=Array(50),jk=-1,YZo=!1;_.IE(Mx,_.Nl);Mx.prototype.getScreens=function(){return this.screens};
Mx.prototype.contains=function(R){return!!ezm(this.screens,R)};
Mx.prototype.get=function(R){return R?g8(this.screens,R):null};
var CWI=function(R,y){var u=R.get(y.uuid)||R.get(y.id);if(u)return R=u.name,u.id=y.id||u.id,u.name=y.name,u.token=y.token,u.uuid=y.uuid||u.uuid,u.name!=R;R.screens.push(y);return!0},RgK=function(R,y){var u=R.screens.length!=y.length;
R.screens=_.bo(R.screens,function(M){return!!ezm(y,M)});
for(var v=y.length,Q=0;Q<v;Q++)u=CWI(R,y[Q])||u;return u},y3a=function(R,y){var u=R.screens.length;
R.screens=_.bo(R.screens,function(v){return!(v||y?!v!=!y?0:v.id==y.id:1)});
return R.screens.length<u};
Mx.prototype.info=function(R){vj(this.JSC$19613_logName_,R)};var u0Z=function(R,y,u,v,Q){_.Nl.call(this);this.JSC$19616_http_=R;this.pairingCode_=y;this.deviceId_=u;this.friendlyName_=v;this.enableShortLivedLoungeToken_=Q;this.pollIndex_=0;this.JSC$19616_xhr_=null;this.JSC$19616_timer_=NaN};
_.O(u0Z,_.Nl);_.J=u0Z.prototype;_.J.start=function(){!this.JSC$19616_xhr_&&isNaN(this.JSC$19616_timer_)&&this.poll_()};
_.J.stop=function(){this.JSC$19616_xhr_&&(this.JSC$19616_xhr_.abort(),this.JSC$19616_xhr_=null);isNaN(this.JSC$19616_timer_)||(_.ba(this.JSC$19616_timer_),this.JSC$19616_timer_=NaN)};
_.J.disposeInternal=function(){this.stop();_.Nl.prototype.disposeInternal.call(this)};
_.J.poll_=function(){this.JSC$19616_timer_=NaN;this.JSC$19616_xhr_=_.wR(yI(this.JSC$19616_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.HY)(this.JSC$19618_onSuccess_,this),onError:(0,_.HY)(this.onError_,this),onTimeout:(0,_.HY)(this.JSC$19618_onTimeout_,this)})};
_.J.JSC$19618_onSuccess_=function(R,y){this.JSC$19616_xhr_=null;R=y.screen||{};R.dialId=this.deviceId_;R.name=this.friendlyName_;y=-1;this.enableShortLivedLoungeToken_&&R.shortLivedLoungeToken&&R.shortLivedLoungeToken.value&&R.shortLivedLoungeToken.refreshIntervalMs&&(R.screenIdType="shortLived",R.loungeToken=R.shortLivedLoungeToken.value,y=R.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new sE(R),y)};
_.J.onError_=function(R){this.JSC$19616_xhr_=null;R.status&&R.status==404?this.pollIndex_>=vCg.length?this.publish("pairingFailed",Error("Ek")):(R=vCg[this.pollIndex_],this.JSC$19616_timer_=_.Ih((0,_.HY)(this.poll_,this),R),this.pollIndex_++):this.publish("pairingFailed",Error("Fk`"+R.status))};
_.J.JSC$19618_onTimeout_=function(){this.JSC$19616_xhr_=null;this.publish("pairingFailed",Error("Gk"))};
var vCg=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.IE(VI,Mx);_.J=VI.prototype;_.J.start=function(){JY(this)&&this.publish("screenChange");!_.fl("yt-remote-lounge-token-expiration")&&QSJ(this);_.ba(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.Ih((0,_.HY)(this.start,this),1E4)};
_.J.add=function(R,y){JY(this);CWI(this,R);jSH(this,!1);this.publish("screenChange");y(R);R.token||QSJ(this)};
_.J.remove=function(R,y){var u=JY(this);y3a(this,R)&&(jSH(this,!1),u=!0);y(R);u&&this.publish("screenChange")};
_.J.updateName=function(R,y,u,v){var Q=JY(this),M=this.get(R.id);M?(M.name!=y&&(M.name=y,jSH(this,!1),Q=!0),u(R)):v(Error("Hk"));Q&&this.publish("screenChange")};
_.J.disposeInternal=function(){_.ba(this.loungeTokenRefreshTimer_);VI.superClass_.disposeInternal.call(this)};
var QSJ=function(R){if(R.screens.length){var y=_.Ws(R.screens,function(v){return v.id}),u=yI(R.JSC$19620_http_,"/pairing/get_lounge_token_batch");
R.JSC$19620_http_.sendRequest("POST",u,{screen_ids:y.join(",")},(0,_.HY)(R.handleLoungeTokens_,R),(0,_.HY)(R.handleLoungeTokenError_,R))}};
VI.prototype.handleLoungeTokens_=function(R){JY(this);var y=this.screens.length;R=R&&R.screens||[];for(var u=R.length,v=0;v<u;++v){var Q=R[v],M=this.get(Q.screenId);M&&(M.token=Q.loungeToken,--y)}jSH(this,!y);y&&vj(this.JSC$19613_logName_,"Missed "+y+" lounge tokens.")};
VI.prototype.handleLoungeTokenError_=function(R){vj(this.JSC$19613_logName_,"Requesting lounge tokens failed: "+R)};
var JY=function(R){if(_.f("deprecate_pair_servlet_enabled"))return RgK(R,[]);var y=sJp(WHg());y=_.bo(y,function(u){return!u.uuid});
return RgK(R,y)},jSH=function(R,y){UBa(_.Ws(R.screens,YjH));
y&&dBp()};var Ig=function(R,y){_.Nl.call(this);this.getScreensToCheck_=y;y=(y=_.fl("yt-remote-online-screen-ids")||"")?y.split(","):[];for(var u={},v=this.getScreensToCheck_(),Q=v.length,M=0;M<Q;++M){var K=v[M].id;u[K]=_.XU(y,K)}this.screenIdSet_=u;this.JSC$19623_http_=R;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;McP("Initialized with "+(0,_.kj)(this.screenIdSet_))};
_.O(Ig,_.Nl);Ig.prototype.isOnline=function(R){return!!this.screenIdSet_[R]};
Ig.prototype.start=function(){var R=parseInt(_.fl("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.KU()-144E5<R?0:R)?J3I(this):(this.fastCheckEndTime_=_.KU()+3E5,_.B1("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
Ig.prototype.isEmpty=function(){return _.Ps.isEmpty(this.screenIdSet_)};
Ig.prototype.update=function(){McP("Updating availability on schedule.");var R=this.getScreensToCheck_(),y=_.Ps.filter(this.screenIdSet_,function(u,v){return u&&!!g8(R,v)},this);
Vco(this,y)};
var i6p=function(R,y,u){var v=yI(R.JSC$19623_http_,"/pairing/get_screen_availability");R.JSC$19623_http_.sendRequest("POST",v,{lounge_token:y.token},(0,_.HY)(function(Q){Q=Q.screens||[];for(var M=Q.length,K=0;K<M;++K)if(Q[K].loungeToken==y.token){u(Q[K].status=="online");return}u(!1)},R),(0,_.HY)(function(){u(!1)},R))};
Ig.prototype.disposeInternal=function(){_.ba(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.Nl.prototype.disposeInternal.call(this)};
var Vco=function(R,y){a:if(_.Ps.getCount(y)!=_.Ps.getCount(R.screenIdSet_))var u=!1;else{u=_.Ps.getKeys(y);for(var v=u.length,Q=0;Q<v;++Q)if(!R.screenIdSet_[u[Q]]){u=!1;break a}u=!0}u||(McP("Updated online screens: "+(0,_.kj)(R.screenIdSet_)),R.screenIdSet_=y,R.publish("screenChange"));K5K(R)},J3I=function(R){isNaN(R.refreshTimer_)||_.ba(R.refreshTimer_);
R.refreshTimer_=_.Ih((0,_.HY)(R.requestScreenAvailability_,R),R.fastCheckEndTime_>0&&R.fastCheckEndTime_<_.KU()?2E4:1E4)};
Ig.prototype.requestScreenAvailability_=function(){_.ba(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var R=IYI(this);if(_.Ps.getCount(R)){var y=yI(this.JSC$19623_http_,"/pairing/get_screen_availability"),u={lounge_token:_.Ps.getKeys(R).join(",")};this.currentRequest_=this.JSC$19623_http_.sendRequest("POST",y,u,(0,_.HY)(this.onScreenAvailability_,this,R),(0,_.HY)(this.onScreenAvailabilityError_,this))}else Vco(this,{}),J3I(this)};
Ig.prototype.onScreenAvailability_=function(R,y){this.currentRequest_=null;var u=_.Ps.getKeys(IYI(this));if(_.L8(u,_.Ps.getKeys(R))){y=y.screens||[];u={};for(var v=y.length,Q=0;Q<v;++Q)u[R[y[Q].loungeToken]]=y[Q].status=="online";Vco(this,u);J3I(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
Ig.prototype.onScreenAvailabilityError_=function(R){this.warn_("Screen availability failed: "+R);this.currentRequest_=null;J3I(this)};
var McP=function(R){vj("OnlineScreenService",R)};
Ig.prototype.warn_=function(R){vj("OnlineScreenService",R)};
var IYI=function(R){var y={};_.cu(R.getScreensToCheck_(),function(u){u.token?y[u.token]=u.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return y},K5K=function(R){R=_.Ps.getKeys(_.Ps.filter(R.screenIdSet_,function(y){return y}));
R.sort(_.nSE);R.length?_.B1("yt-remote-online-screen-ids",R.join(","),60):_.e5("yt-remote-online-screen-ids")};_.IE(iS,Mx);_.J=iS.prototype;_.J.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.J.add=function(R,y,u){this.localScreenService_.add(R,y,u)};
_.J.remove=function(R,y,u){this.localScreenService_.remove(R,y,u);this.onlineScreenService_.update()};
_.J.updateName=function(R,y,u,v){this.localScreenService_.contains(R)?this.localScreenService_.updateName(R,y,u,v):(R="Updating name of unknown screen: "+R.name,vj(this.JSC$19613_logName_,R),v(Error(R)))};
_.J.getScreens=function(R){return R?this.screens:DSV(this.screens,_.bo(this.automaticScreens_,function(y){return!this.contains(y)},this))};
_.J.JSC$19628_getOnlineScreens=function(){return _.bo(this.getScreens(!0),function(R){return this.onlineScreenService_.isOnline(R.id)},this)};
var b6H=function(R,y,u,v,Q,M){R.info("getAutomaticScreenByIds "+u+" / "+y);u||(u=R.deviceToScreenId_[y]);var K=R.getScreens(),h=u?g8(K,u):null;u&&(R.disableAutomaticScreenCache_||h)||(h=g8(K,y));if(h){h.uuid=y;var b=h0(R,h);i6p(R.onlineScreenService_,b,function(N){Q(N?b:null)})}else u?hgg(R,u,(0,_.HY)(function(N){var T=h0(this,new sE({name:v,
screenId:u,loungeToken:N,dialId:y||""}));i6p(this.onlineScreenService_,T,function(x){Q(x?T:null)})},R),M):Q(null)};
iS.prototype.JSC$19628_getScreenByPollingPairingCode=function(R,y,u,v,Q,M){var K=this;this.info("getDialScreenByPairingCode "+R+" / "+y);var h=new u0Z(this.JSC$19626_http_,R,y,u,v);h.subscribe("pairingComplete",function(b,N){_.R_(h);Q(h0(K,b),N)});
h.subscribe("pairingFailed",function(b){_.R_(h);M(b)});
h.start();return(0,_.HY)(h.stop,h)};
var F5I=function(R,y){for(var u=R.screens.length,v=0;v<u;++v)if(R.screens[v].name==y)return R.screens[v];return null};
iS.prototype.JSC$19628_getScreenByPairingCode=function(R,y,u,v){_.wR(yI(this.JSC$19626_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:R},timeout:5E3,onSuccess:(0,_.HY)(function(Q,M){Q=new sE(M.screen||{});if(!Q.name||F5I(this,Q.name)){a:{M=Q.name;for(var K=2,h=y(M,K);F5I(this,h);){K++;if(K>20)break a;h=y(M,K)}M=h}Q.name=M}u(h0(this,Q))},this),
onError:(0,_.HY)(function(Q){v(Error("Ik`"+Q.status))},this),
onTimeout:(0,_.HY)(function(){v(Error("Jk"))},this)})};
var w4a=function(R,y,u){i6p(R.onlineScreenService_,y,u)};
iS.prototype.disposeInternal=function(){_.R_(this.localScreenService_);_.R_(this.onlineScreenService_);iS.superClass_.disposeInternal.call(this)};
var hgg=function(R,y,u,v){R.info("requestLoungeToken_ for "+y);var Q={postParams:{screen_ids:y},method:"POST",context:R,onSuccess:function(M,K){M=K&&K.screens||[];M[0]&&M[0].screenId==y?u(M[0].loungeToken):v(Error("Kk"))},
onError:function(){v(Error("Lk"))}};
_.wR(yI(R.JSC$19626_http_,"/pairing/get_lounge_token_batch"),Q)},NTZ=function(R){R.screens=R.localScreenService_.getScreens();
for(var y=_.Ps.transpose(R.deviceToScreenId_),u=R.screens.length,v=0;v<u;++v){var Q=R.screens[v];Q.uuid=y[Q.id]||""}R.info("Updated manual screens: "+sHp(R.screens))};
iS.prototype.handleScreenChange_=function(){NTZ(this);this.publish("screenChange");this.onlineScreenService_.update()};
var zzI=function(R){TTa(R);R.localScreenService_=new VI(R.JSC$19626_http_);R.localScreenService_.subscribe("screenChange",(0,_.HY)(R.handleScreenChange_,R));NTZ(R);R.disableAutomaticScreenCache_||(R.automaticScreens_=sJp(_.fl("yt-remote-automatic-screen-cache")||[]));TTa(R);R.info("Initializing automatic screens: "+sHp(R.automaticScreens_));R.onlineScreenService_=new Ig(R.JSC$19626_http_,(0,_.HY)(R.getScreens,R,!0));R.onlineScreenService_.subscribe("screenChange",(0,_.HY)(function(){this.publish("onlineScreenChange")},
R))},h0=function(R,y){var u=R.get(y.id);
u?(u.uuid=y.uuid,y=u):((u=g8(R.automaticScreens_,y.uuid))?(u.id=y.id,u.token=y.token,y=u):R.automaticScreens_.push(y),R.disableAutomaticScreenCache_||oCM(R));TTa(R);R.deviceToScreenId_[y.uuid]=y.id;_.B1("yt-remote-device-id-map",R.deviceToScreenId_,31536E3);return y},oCM=function(R){R=_.bo(R.automaticScreens_,function(y){return y.idType!="shortLived"});
_.B1("yt-remote-automatic-screen-cache",_.Ws(R,YjH))},TTa=function(R){R.deviceToScreenId_=_.fl("yt-remote-device-id-map")||{}};
iS.prototype.dispose=iS.prototype.dispose;_.IE(K1,_.Nl);var b4=function(R,y){R.screen_=y;R.publish("sessionScreen",R.screen_)},xAI=function(R,y){R.screen_&&(R.screen_.token=y,h0(R.JSC$19630_screenService_,R.screen_));
R.publish("sessionScreen",R.screen_)};
K1.prototype.onSessionStopped=function(R){this.isDisposed()||(R&&(FT(this,""+R),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
K1.prototype.info=function(R){vj(this.JSC$19630_logName_,R)};
var FT=function(R,y){vj(R.JSC$19630_logName_,y)};
K1.prototype.JSC$19632_getCastSession=function(){return null};
K1.prototype.setDisplayStatus=function(R){var y=this.receiver_;R?(y.displayStatus=new chrome.cast.ReceiverDisplayStatus(R,[]),y.displayStatus.showStop=!0):y.displayStatus=null;chrome.cast.setReceiverDisplayStatus(y,(0,_.HY)(function(){this.info("Updated receiver status for "+y.friendlyName+": "+R)},this),(0,_.HY)(function(){FT(this,"Failed to update receiver status for: "+y.friendlyName)},this))};
K1.prototype.disposeInternal=function(){this.setDisplayStatus("");K1.superClass_.disposeInternal.call(this)};var w6=function(R,y,u){K1.call(this,R,y,"CastSession");var v=this;this.config_=u;this.JSC$19635_session_=null;this.JSC$19635_boundSessionUpdate_=(0,_.HY)(this.JSC$19637_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.HY)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.Ih(function(){BTZ(v,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$19635_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$19635_isInitLoungeToken_=!1;this.JSC$19635_lastLoungeTokenRefreshError_="unknown"};
_.O(w6,K1);_.J=w6.prototype;
_.J.setCastSession=function(R){if(this.JSC$19635_session_){if(this.JSC$19635_session_==R)return;FT(this,"Overriding cast session with new session object");fYp(this);this.JSC$19635_isInitLoungeToken_=!1;this.JSC$19635_lastLoungeTokenRefreshError_="unknown";this.JSC$19635_session_.removeUpdateListener(this.JSC$19635_boundSessionUpdate_);this.JSC$19635_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$19635_session_=R;this.JSC$19635_session_.addUpdateListener(this.JSC$19635_boundSessionUpdate_);this.JSC$19635_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);ego(this,"getMdxSessionStatus")};
_.J.launchWithParams=function(R){this.info("launchWithParams no-op for Cast: "+(0,_.kj)(R))};
_.J.stop=function(){if(this.JSC$19635_session_)this.JSC$19635_session_.stop((0,_.HY)(function(){this.onSessionStopped()},this),(0,_.HY)(function(){this.onSessionStopped(Error("Mk"))},this));
else this.onSessionStopped(Error("Nk"))};
_.J.setDisplayStatus=function(){};
_.J.disposeInternal=function(){this.info("disposeInternal");fYp(this);this.JSC$19635_session_&&(this.JSC$19635_session_.removeUpdateListener(this.JSC$19635_boundSessionUpdate_),this.JSC$19635_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$19635_session_=null;K1.prototype.disposeInternal.call(this)};
var O6J=function(R,y){_.ba(R.getLoungeTokenTimeoutKey_);R.getLoungeTokenTimeoutKey_=0;y==0?lYp(R):R.getLoungeTokenTimeoutKey_=_.Ih(function(){lYp(R)},y)},lYp=function(R){ego(R,"getLoungeToken");
_.ba(R.onLoungeTokenTimeoutKey_);R.onLoungeTokenTimeoutKey_=_.Ih(function(){Z68(R,null)},3E4)},ego=function(R,y){R.info("sendYoutubeMessage_: "+y+" "+(0,_.kj)(void 0));
var u={};u.type=y;R.JSC$19635_session_?R.JSC$19635_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",u,function(){},(0,_.HY)(function(){FT(this,"Failed to send message: "+y+".")},R)):FT(R,"Sending yt message without session: "+(0,_.kj)(u))};
w6.prototype.onYoutubeMessage_=function(R,y){if(!this.isDisposed())if(y)if(y=(0,_.W8)(y),_.Sv(y))switch(R=""+y.type,y=y.data||{},this.info("onYoutubeMessage_: "+R+" "+(0,_.kj)(y)),R){case "mdxSessionStatus":BTZ(this,y);break;case "loungeToken":Z68(this,y);break;default:FT(this,"Unknown youtube message: "+R)}else FT(this,"Unable to parse message.");else FT(this,"No data in message.")};
var H6Z=function(R,y){if(y)R.info("onConnectedScreenId_: Received screenId: "+y),R.screen_&&R.screen_.id==y||R.getScreen_(y,function(u){b4(R,u)},function(){return R.onSessionStopped()},5);
else R.onSessionStopped(Error("Ok"))},GWa=function(R,y,u){R.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(y));
var v=new sE(y);nCm(R,v,function(Q){Q?(R.JSC$19635_isInitLoungeToken_=!0,h0(R.JSC$19630_screenService_,v),b4(R,v),R.JSC$19635_lastLoungeTokenRefreshError_="unknown",O6J(R,u)):(_.mq(Error("Pk`"+JSON.stringify(y))),R.onSessionStopped())},5)},BTZ=function(R,y){_.ba(R.sessionStatusTimeoutKey_);
R.sessionStatusTimeoutKey_=0;if(y)R.config_.enableCastLoungeToken&&y.loungeToken?y.deviceId?R.screen_&&R.screen_.uuid==y.deviceId||(y.loungeTokenRefreshIntervalMs?GWa(R,{name:R.receiver_.friendlyName,screenId:y.screenId,loungeToken:y.loungeToken,dialId:y.deviceId,screenIdType:"shortLived"},y.loungeTokenRefreshIntervalMs):(_.mq(Error("Rk`"+JSON.stringify(y))),H6Z(R,y.screenId))):(_.mq(Error("Qk`"+JSON.stringify(y))),H6Z(R,y.screenId)):H6Z(R,y.screenId);else R.onSessionStopped(Error("Ok"))},Z68=function(R,
y){_.ba(R.onLoungeTokenTimeoutKey_);
R.onLoungeTokenTimeoutKey_=0;var u=null;if(y)if(y.loungeToken){var v;((v=R.screen_)==null?void 0:v.token)==y.loungeToken&&(u="staleLoungeToken")}else u="missingLoungeToken";else u="noLoungeTokenResponse";u?(R.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(y)+", error: "+u)),R.JSC$19635_lastLoungeTokenRefreshError_=u,O6J(R,3E4)):(xAI(R,y.loungeToken),R.JSC$19635_isInitLoungeToken_=!1,R.JSC$19635_lastLoungeTokenRefreshError_="unknown",O6J(R,y.loungeTokenRefreshIntervalMs))};
w6.prototype.getScreen_=function(R,y,u,v){_.ba(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;b6H(this.JSC$19630_screenService_,this.receiver_.label,R,this.receiver_.friendlyName,(0,_.HY)(function(Q){Q?y(Q):v>=0?(FT(this,"Screen "+R+" appears to be offline. "+v+" retries left."),this.getScreenTimeoutKey_=_.Ih((0,_.HY)(this.getScreen_,this,R,y,u,v-1),300)):u(Error("Sk"))},this),u)};
var nCm=function(R,y,u,v){_.ba(R.JSC$19635_checkScreenAvailabilityTimeoutKey_);R.JSC$19635_checkScreenAvailabilityTimeoutKey_=0;w4a(R.JSC$19630_screenService_,y,function(Q){Q||v<0?u(Q):R.JSC$19635_checkScreenAvailabilityTimeoutKey_=_.Ih(function(){nCm(R,y,u,v-1)},300)})};
w6.prototype.JSC$19632_getCastSession=function(){return this.JSC$19635_session_};
w6.prototype.JSC$19637_onSessionUpdate_=function(R){this.isDisposed()||R||(FT(this,"Cast session died."),this.onSessionStopped())};
var fYp=function(R){_.ba(R.getScreenTimeoutKey_);R.getScreenTimeoutKey_=0;_.ba(R.JSC$19635_checkScreenAvailabilityTimeoutKey_);R.JSC$19635_checkScreenAvailabilityTimeoutKey_=0;_.ba(R.sessionStatusTimeoutKey_);R.sessionStatusTimeoutKey_=0;_.ba(R.onLoungeTokenTimeoutKey_);R.onLoungeTokenTimeoutKey_=0;_.ba(R.getLoungeTokenTimeoutKey_);R.getLoungeTokenTimeoutKey_=0};var N9=function(R,y,u,v){K1.call(this,R,y,"DialSession");this.config_=v;this.JSC$19639_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$19639_theme_=u;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$19639_deferredLaunchDeadlineTimer_=NaN;this.JSC$19639_boundSessionUpdate_=(0,_.HY)(this.JSC$19641_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$19639_checkScreenAvailabilityTimeoutKey_=0;this.JSC$19639_isInitLoungeToken_=!1;this.JSC$19639_lastLoungeTokenRefreshError_="unknown"};
_.O(N9,K1);N9.prototype.setCastSession=function(R){this.JSC$19639_session_=R;this.JSC$19639_session_.addUpdateListener(this.JSC$19639_boundSessionUpdate_)};
N9.prototype.launchWithParams=function(R){this.connectData_=R;this.deferredLaunch_()};
N9.prototype.stop=function(){r3H(this);if(this.JSC$19639_session_)this.JSC$19639_session_.stop((0,_.HY)(this.onSessionStopped,this,null),(0,_.HY)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
N9.prototype.disposeInternal=function(){r3H(this);this.JSC$19639_session_&&this.JSC$19639_session_.removeUpdateListener(this.JSC$19639_boundSessionUpdate_);this.JSC$19639_session_=null;K1.prototype.disposeInternal.call(this)};
var Pqp=function(R){var y;return!!(R.config_.enableDialLoungeToken&&((y=R.JSC$19639_session_)==null?0:y.getDialAppInfo))},W5o=function(R){R.cancelPolling_=R.JSC$19630_screenService_.JSC$19628_getScreenByPollingPairingCode(R.reversePairingCode_,R.receiver_.label,R.receiver_.friendlyName,Pqp(R),function(y,u){R.cancelPolling_=function(){};
R.JSC$19639_isInitLoungeToken_=!0;b4(R,y);y.idType=="shortLived"&&u>0&&Ty(R,u)},function(y){R.cancelPolling_=function(){};
R.onSessionStopped(y)})};
N9.prototype.JSC$19641_onSessionUpdate_=function(R){this.isDisposed()||R||(FT(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var dAp=function(R){var y={};y.pairingCode=R.reversePairingCode_;y.theme=R.JSC$19639_theme_;EvP()&&(y.env_useStageMdx=1);return _.NC(y)},UAp=function(R){return new Promise(function(y){R.reversePairingCode_=BwP();
if(R.connectData_){var u=new chrome.cast.DialLaunchResponse(!0,dAp(R));y(u);W5o(R)}else R.deferredLaunch_=function(){_.ba(R.JSC$19639_deferredLaunchDeadlineTimer_);R.deferredLaunch_=function(){};
R.JSC$19639_deferredLaunchDeadlineTimer_=NaN;var v=new chrome.cast.DialLaunchResponse(!0,dAp(R));y(v);W5o(R)},R.JSC$19639_deferredLaunchDeadlineTimer_=_.Ih(function(){R.deferredLaunch_()},100)})},ECJ=function(R,y,u){R.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(y));
var v=new sE(y);return(new Promise(function(Q){kWo(R,v,function(M){M?(R.JSC$19639_isInitLoungeToken_=!0,h0(R.JSC$19630_screenService_,v),b4(R,v),Ty(R,u)):_.mq(Error("Uk`"+JSON.stringify(y)));Q(M)},5)})).then(function(Q){return Q?new chrome.cast.DialLaunchResponse(!1):UAp(R)})},$AZ=function(R,y){var u=R.launchData_.receiver.label,v=R.receiver_.friendlyName;
return(new Promise(function(Q){b6H(R.JSC$19630_screenService_,u,y,v,function(M){M&&M.token&&b4(R,M);Q(M)},function(M){FT(R,"Failed to get DIAL screen: "+M);
Q(null)})})).then(function(Q){return Q&&Q.token?new chrome.cast.DialLaunchResponse(!1):UAp(R)})},kWo=function(R,y,u,v){_.ba(R.JSC$19639_checkScreenAvailabilityTimeoutKey_);
R.JSC$19639_checkScreenAvailabilityTimeoutKey_=0;w4a(R.JSC$19630_screenService_,y,function(Q){Q||v<0?u(Q):R.JSC$19639_checkScreenAvailabilityTimeoutKey_=_.Ih(function(){kWo(R,y,u,v-1)},300)})},Ty=function(R,y){R.info("getDialAppInfoWithTimeout_ "+y);
Pqp(R)&&(_.ba(R.getDialAppInfoTimeoutKey_),R.getDialAppInfoTimeoutKey_=0,y==0?qIm(R):R.getDialAppInfoTimeoutKey_=_.Ih(function(){qIm(R)},y))},qIm=function(R){Pqp(R)&&R.JSC$19639_session_.getDialAppInfo(function(y){R.info("getDialAppInfo dialLaunchData: "+JSON.stringify(y));
y=y.extraData||{};var u=null;if(y.loungeToken){var v;((v=R.screen_)==null?void 0:v.token)==y.loungeToken&&(u="staleLoungeToken")}else u="missingLoungeToken";u?(R.JSC$19639_lastLoungeTokenRefreshError_=u,Ty(R,3E4)):(R.JSC$19639_isInitLoungeToken_=!1,R.JSC$19639_lastLoungeTokenRefreshError_="unknown",xAI(R,y.loungeToken),Ty(R,y.loungeTokenRefreshIntervalMs))},function(y){R.info("getDialAppInfo error: "+y);
R.JSC$19639_lastLoungeTokenRefreshError_="noLoungeTokenResponse";Ty(R,3E4)})},r3H=function(R){_.ba(R.JSC$19639_checkScreenAvailabilityTimeoutKey_);
R.JSC$19639_checkScreenAvailabilityTimeoutKey_=0;_.ba(R.getDialAppInfoTimeoutKey_);R.getDialAppInfoTimeoutKey_=0;R.cancelPolling_();R.cancelPolling_=function(){};
_.ba(R.JSC$19639_deferredLaunchDeadlineTimer_)};var og=function(R,y){K1.call(this,R,y,"ManualSession");this.JSC$19643_deferredLaunchDeadlineTimer_=_.Ih((0,_.HY)(this.launchWithParams,this,null),150)};
_.O(og,K1);og.prototype.stop=function(){this.onSessionStopped()};
og.prototype.setCastSession=function(){};
og.prototype.launchWithParams=function(){_.ba(this.JSC$19643_deferredLaunchDeadlineTimer_);this.JSC$19643_deferredLaunchDeadlineTimer_=NaN;var R=g8(this.JSC$19630_screenService_.getScreens(),this.receiver_.label);if(R)b4(this,R);else this.onSessionStopped(Error("Vk"))};
og.prototype.disposeInternal=function(){_.ba(this.JSC$19643_deferredLaunchDeadlineTimer_);this.JSC$19643_deferredLaunchDeadlineTimer_=NaN;K1.prototype.disposeInternal.call(this)};var FZ=function(R,y){_.Nl.call(this);this.config_=y;this.JSC$19646_screenService_=R;this.JSC$19646_appId_=y.appId||"233637DE";this.JSC$19646_theme_=y.theme||"cl";this.disableDial_=y.disableCastApi||!1;this.forceMirroring_=y.forceMirroring||!1;this.JSC$19646_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.HY)(this.onReceiverAction_,this)};
_.O(FZ,_.Nl);
FZ.prototype.init=function(R,y){chrome.cast.timeout.requestSession=3E4;var u=new chrome.cast.SessionRequest(this.JSC$19646_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.f("desktop_enable_cast_connect")&&(u.androidReceiverCompatible=!0);this.disableDial_||(u.dialRequest=new chrome.cast.DialRequest("YouTube"));var v=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;R=R||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var Q=(0,_.HY)(this.onReceiverUpdated_,
this);u=new chrome.cast.ApiConfig(u,(0,_.HY)(this.onSessionEstablished_,this),Q,v,R);u.customDialLaunchCallback=(0,_.HY)(this.onDialLaunchRequested_,this);chrome.cast.initialize(u,(0,_.HY)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),tqZ(),this.JSC$19646_screenService_.subscribe("onlineScreenChange",(0,_.HY)(this.JSC$19648_onScreenChange_,this)),this.customReceivers_=X4H(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.HY)(function(M){this.warn_("Failed to set initial custom receivers: "+(0,_.kj)(M))},this)),this.publish("yt-remote-cast2-availability-change",xN(this)),y(!0))},this),(0,_.HY)(function(M){this.warn_("Failed to initialize API: "+(0,_.kj)(M));
y(!1)},this))};
FZ.prototype.setConnectedScreenStatus=function(R,y){Bh("Setting connected screen ID: "+R+" -> "+y);if(this.JSC$19646_session_){var u=this.JSC$19646_session_.screen_;if(!R||u&&u.id!=R)Bh("Unsetting old screen status: "+this.JSC$19646_session_.receiver_.friendlyName),fn(this,null)}if(R&&y){if(!this.JSC$19646_session_){R=g8(this.JSC$19646_screenService_.getScreens(),R);if(!R){Bh("setConnectedScreenStatus: Unknown screen.");return}if(R.idType=="shortLived"){Bh("setConnectedScreenStatus: Screen with id type to be short lived.");
return}u=mAg(this,R);u||(Bh("setConnectedScreenStatus: Connected receiver not custom..."),u=new chrome.cast.Receiver(R.uuid?R.uuid:R.id,R.name),u.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(u),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.HY)(function(v){this.warn_("Failed to set initial custom receivers: "+(0,_.kj)(v))},this)));
Bh("setConnectedScreenStatus: new active receiver: "+u.friendlyName);fn(this,new og(this.JSC$19646_screenService_,u),!0)}this.JSC$19646_session_.setDisplayStatus(y)}else Bh("setConnectedScreenStatus: no screen.")};
var mAg=function(R,y){return y?_.UP(R.customReceivers_,function(u){return zG(y,u.label)},R):null};
FZ.prototype.setLaunchParams=function(R){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$19646_session_?this.JSC$19646_session_.launchWithParams(R):this.warn_("Setting connection data without a session")};
FZ.prototype.JSC$19648_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$19646_session_?(this.JSC$19646_session_.stop(),fn(this,null)):Bh("Stopping non-existing session")};
FZ.prototype.requestSession=function(){chrome.cast.requestSession((0,_.HY)(this.onSessionEstablished_,this),(0,_.HY)(this.onSessionRequestFailed_,this))};
FZ.prototype.disposeInternal=function(){this.JSC$19646_screenService_.unsubscribe("onlineScreenChange",(0,_.HY)(this.JSC$19648_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.m4(_.D6("yt.mdx.remote.debug.handlers_")||[],AUM);_.R_(this.JSC$19646_session_);_.Nl.prototype.disposeInternal.call(this)};
var Bh=function(R){vj("Controller",R)};
FZ.prototype.warn_=function(R){vj("Controller",R)};
var AUM=function(R){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(R)},xN=function(R){return R.hasCastReceiver_||!!R.customReceivers_.length||!!R.JSC$19646_session_},fn=function(R,y,u){y!=R.JSC$19646_session_&&(_.R_(R.JSC$19646_session_),(R.JSC$19646_session_=y)?(u?R.publish("yt-remote-cast2-receiver-resumed",y.receiver_):R.publish("yt-remote-cast2-receiver-selected",y.receiver_),y.subscribe("sessionScreen",(0,_.HY)(R.onSessionScreen_,R,y)),y.subscribe("sessionFailed",
function(){return A38(R,y)}),y.screen_?R.publish("yt-remote-cast2-session-change",y.screen_):u&&R.JSC$19646_session_.launchWithParams(null)):R.publish("yt-remote-cast2-session-change",null))},A38=function(R,y){R.JSC$19646_session_==y&&R.publish("yt-remote-cast2-session-failed")};
_.J=FZ.prototype;_.J.onSessionScreen_=function(R,y){this.JSC$19646_session_==R&&(y||fn(this,null),this.publish("yt-remote-cast2-session-change",y))};
_.J.onReceiverAction_=function(R,y){if(!this.isDisposed())if(R)switch(R.friendlyName=chrome.cast.unescape(R.friendlyName),Bh("onReceiverAction_ "+R.label+" / "+R.friendlyName+"-- "+y),y){case chrome.cast.ReceiverAction.CAST:if(this.JSC$19646_session_)if(this.JSC$19646_session_.receiver_.label!=R.label)Bh("onReceiverAction_: Stopping active receiver: "+this.JSC$19646_session_.receiver_.friendlyName),this.JSC$19646_session_.stop();else{Bh("onReceiverAction_: Casting to active receiver.");this.JSC$19646_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$19646_session_.screen_);break}switch(R.receiverType){case chrome.cast.ReceiverType.CUSTOM:fn(this,new og(this.JSC$19646_screenService_,R));break;case chrome.cast.ReceiverType.DIAL:fn(this,new N9(this.JSC$19646_screenService_,R,this.JSC$19646_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:fn(this,new w6(this.JSC$19646_screenService_,R,this.config_));break;default:this.warn_("Unknown receiver type: "+R.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$19646_session_&&
this.JSC$19646_session_.receiver_.label==R.label?this.JSC$19646_session_.stop():this.warn_("Stopping receiver w/o session: "+R.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.J.onDialLaunchRequested_=function(R){if(this.isDisposed())return Promise.reject(Error("Wk"));var y=R.receiver;y.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+y.friendlyName),y.receiverType=chrome.cast.ReceiverType.DIAL);var u=this.JSC$19646_session_?this.JSC$19646_session_.receiver_:null;if(!u||u.label!=y.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+y.friendlyName),Promise.reject(Error("Xk"));if(u&&u.label==y.label&&u.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$19646_session_.screen_)return Bh("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$19646_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+u.receiverType+'" to "dial" for '+y.friendlyName);fn(this,new N9(this.JSC$19646_screenService_,y,this.JSC$19646_theme_,this.config_))}y=this.JSC$19646_session_;y.launchData_=R;y.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(R=y.launchData_.extraData||{},u=R.screenId||null,Pqp(y)&&R.loungeToken?R.loungeTokenRefreshIntervalMs?R=ECJ(y,{name:y.receiver_.friendlyName,screenId:R.screenId,loungeToken:R.loungeToken,dialId:y.launchData_.receiver.label,screenIdType:"shortLived"},R.loungeTokenRefreshIntervalMs):(_.mq(Error("Tk`"+JSON.stringify(R))),R=$AZ(y,u)):R=$AZ(y,u)):R=UAp(y);return R};
_.J.onSessionEstablished_=function(R){var y=this;if(!this.isDisposed()&&!this.forceMirroring_){Bh("New cast session ID: "+R.sessionId);var u=R.receiver;if(u.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$19646_session_)if(u.receiverType==chrome.cast.ReceiverType.CAST)Bh("Got resumed cast session before resumed mdx connection."),u.friendlyName=chrome.cast.unescape(u.friendlyName),fn(this,new w6(this.JSC$19646_screenService_,u,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var v=this.JSC$19646_session_.receiver_,Q=g8(this.JSC$19646_screenService_.getScreens(),v.label);Q&&zG(Q,u.label)&&v.receiverType!=chrome.cast.ReceiverType.CAST&&u.receiverType==chrome.cast.ReceiverType.CAST&&(Bh("onSessionEstablished_: manual to cast session change "+u.friendlyName),_.R_(this.JSC$19646_session_),this.JSC$19646_session_=new w6(this.JSC$19646_screenService_,u,this.config_),this.JSC$19646_session_.subscribe("sessionScreen",(0,_.HY)(this.onSessionScreen_,this,this.JSC$19646_session_)),
this.JSC$19646_session_.subscribe("sessionFailed",function(){return A38(y,y.JSC$19646_session_)}),this.JSC$19646_session_.launchWithParams(null));
this.JSC$19646_session_.setCastSession(R)}}};
_.J.JSC$19648_getCastSession=function(){return this.JSC$19646_session_?this.JSC$19646_session_.JSC$19632_getCastSession():null};
_.J.onSessionRequestFailed_=function(R){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.kj)(R)),R.code!=chrome.cast.ErrorCode.CANCEL&&fn(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.J.onReceiverUpdated_=function(R){Bh("Receiver availability updated: "+R);if(!this.isDisposed()){var y=xN(this);this.hasCastReceiver_=R==chrome.cast.ReceiverAvailability.AVAILABLE;xN(this)!=y&&this.publish("yt-remote-cast2-availability-change",xN(this))}};
var X4H=function(R){var y=R.JSC$19646_screenService_.JSC$19628_getOnlineScreens(),u=R.JSC$19646_session_&&R.JSC$19646_session_.receiver_;R=_.Ws(y,function(v){u&&zG(v,u.label)&&(u=null);var Q=v.uuid?v.uuid:v.id,M=mAg(this,v);M?(M.label=Q,M.friendlyName=v.name):(M=new chrome.cast.Receiver(Q,v.name),M.receiverType=chrome.cast.ReceiverType.CUSTOM);return M},R);
u&&(u.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(u=new chrome.cast.Receiver(u.label,u.friendlyName),u.receiverType=chrome.cast.ReceiverType.CUSTOM),R.push(u));return R};
FZ.prototype.JSC$19648_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=X4H(this),Bh("Updating custom receivers: "+(0,_.kj)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.HY)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",xN(this)))};
FZ.prototype.setLaunchParams=FZ.prototype.setLaunchParams;FZ.prototype.setConnectedScreenStatus=FZ.prototype.setConnectedScreenStatus;FZ.prototype.stopSession=FZ.prototype.JSC$19648_stopSession;FZ.prototype.getCastSession=FZ.prototype.JSC$19648_getCastSession;FZ.prototype.requestSession=FZ.prototype.requestSession;FZ.prototype.init=FZ.prototype.init;FZ.prototype.dispose=FZ.prototype.dispose;var DAo=_.RE(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),wNM=[],QXg=_.M1(DAo);var p4I=function(R){R.audioTrackId=null;R.trackData=null;R.playerState=-1;R.hasPrevious=!1;R.hasNext=!1;R.playerTime_=0;R.playerTimeAt_=_.KU();R.seekableStart_=0;R.seekableEnd_=0;R.duration_=0;R.loadedTime=0;R.liveIngestionTime_=NaN;R.isLive_=!1};
_.J=wO.prototype;
_.J.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_))};
_.J.stopPlayer=function(){this.index=-1;this.videoId="";p4I(this)};
_.J.isPlaying=function(){return this.playerState==1};
_.J.isBuffering=function(){return this.playerState==3};
_.J.isAdPlaying=function(){return this.playerState==1081};
var en=function(R,y){R.playerTime_=y;R.playerTimeAt_=_.KU()},tcI=function(R){switch(R.playerState){case 1:case 1081:return(_.KU()-R.playerTimeAt_)/1E3+R.playerTime_;
case -1E3:return 0}return R.playerTime_};
wO.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.KU()-this.playerTimeAt_)/1E3:0):this.duration_};
var c3p=function(R,y,u){var v=R.videoId;R.videoId=y;R.index=u;y!=v&&p4I(R)},aYJ=function(R){var y={};
y.index=R.index;y.listId=R.listId;y.videoId=R.videoId;y.playerState=R.playerState;y.volume=R.volume;y.muted=R.muted;y.audioTrackId=R.audioTrackId;y.trackData=_.Ps.unsafeClone(R.trackData);y.hasPrevious=R.hasPrevious;y.hasNext=R.hasNext;y.playerTime=R.playerTime_;y.playerTimeAt=R.playerTimeAt_;y.seekableStart=R.seekableStart_;y.seekableEnd=R.seekableEnd_;y.duration=R.duration_;y.loadedTime=R.loadedTime;y.liveIngestionTime=R.liveIngestionTime_;return y};
wO.prototype.clone=function(){return new wO(aYJ(this))};var l4=function(R,y){_.Nl.call(this);var u=this;this.state_=0;this.connection_=R;this.contextSubscriptions_=[];this.actionQueue_=new IjI;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.HY)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.HY)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.HY)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.HY)(this.onCloudviewAvailabilityChange_,this);var v=0;R?(v=R.getProxyState(),
v!=3&&(R.subscribe("proxyStateChange",this.setState_,this),SIH(this))):v=3;v!=0&&(y?this.setState_(v):_.Ih(function(){u.setState_(v)},0));
(R=xza())&&YIo(this,R);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.O(l4,_.Nl);l4.prototype.getState=function(){return this.state_};
l4.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
l4.prototype.reconnect=function(){this.connection_.reconnect()};
var OQ=function(R){return new wO(R.connection_.getPlayerContextData())};
_.J=l4.prototype;_.J.play=function(){Z9(this)?(this.castMedia_?this.castMedia_.play(null,_.ZM,L5g(this,"play")):Hh(this,"play"),sSm(this,1,tcI(OQ(this))),this.publish("remotePlayerChange")):nn(this,this.play)};
_.J.pause=function(){Z9(this)?(this.castMedia_?this.castMedia_.pause(null,_.ZM,L5g(this,"pause")):Hh(this,"pause"),sSm(this,2,tcI(OQ(this))),this.publish("remotePlayerChange")):nn(this,this.pause)};
_.J.seekTo=function(R){if(Z9(this)){if(this.castMedia_){var y=OQ(this),u=new chrome.cast.media.SeekRequest;u.currentTime=R;y.isPlaying()||y.isBuffering()?u.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:u.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(u,_.ZM,L5g(this,"seekTo",{newTime:R}))}else Hh(this,"seekTo",{newTime:R});sSm(this,3,R);this.publish("remotePlayerChange")}else nn(this,_.lh(this.seekTo,R))};
_.J.stop=function(){if(Z9(this)){this.castMedia_?this.castMedia_.stop(null,_.ZM,L5g(this,"stopVideo")):Hh(this,"stopVideo");var R=OQ(this);R.stopPlayer();Gy(this,R);this.publish("remotePlayerChange")}else nn(this,this.stop)};
_.J.setVolume=function(R,y){if(Z9(this)){var u=OQ(this);if(this.castSession_){if(u.volume!=R){var v=Math.round(R)/100;this.castSession_.setReceiverVolumeLevel(v,(0,_.HY)(function(){QI("set receiver volume: "+v)},this),(0,_.HY)(function(){this.warn_("failed to set receiver volume.")},this))}u.muted!=y&&this.castSession_.setReceiverMuted(y,(0,_.HY)(function(){QI("set receiver muted: "+y)},this),(0,_.HY)(function(){this.warn_("failed to set receiver muted.")},this))}else{var Q={volume:R,
muted:y};u.volume!=-1&&(Q.delta=R-u.volume);Hh(this,"setVolume",Q)}u.muted=y;u.volume=R;Gy(this,u)}else nn(this,_.lh(this.setVolume,R,y))};
_.J.setAudioTrack=function(R,y){Z9(this)?(y=y.getLanguageInfo().getId(),Hh(this,"setAudioTrack",{videoId:R,audioTrackId:y}),R=OQ(this),R.audioTrackId=y,Gy(this,R)):nn(this,_.lh(this.setAudioTrack,R,y))};
_.J.addVideo=function(R){Z9(this)?Hh(this,"addVideo",{videoId:R}):nn(this,_.lh(this.addVideo,R))};
_.J.addPlaylist=function(R){Z9(this)?Hh(this,"addVideos",{listId:R}):nn(this,_.lh(this.addPlaylist,R))};
_.J.addVideos=function(R){R.length==0?this.warn_("Ignore add videos request due to empty list"):Z9(this)?Hh(this,"addVideos",{videoIds:R.join(",")}):nn(this,_.lh(this.addVideos,R))};
_.J.JSC$19658_removeVideo=function(R){Z9(this)?Hh(this,"removeVideo",{videoId:R}):nn(this,_.lh(this.JSC$19658_removeVideo,R))};
_.J.JSC$19658_insertVideo=function(R){Z9(this)?Hh(this,"insertVideo",{videoId:R}):nn(this,_.lh(this.JSC$19658_insertVideo,R))};
_.J.playVideo=function(R,y,u,v,Q,M,K){v=v===void 0?null:v;Q=Q===void 0?null:Q;M=M===void 0?null:M;K=K===void 0?null:K;var h=OQ(this),b={videoId:R};u!==void 0&&(b.currentIndex=u);c3p(h,R,u||0);y!==void 0&&(en(h,y),b.currentTime=y);v&&(b.listId=v);Q&&(b.playerParams=Q);M&&(b.clickTrackingParams=M);K&&(b.locationInfo=(0,_.kj)(K));Hh(this,"setPlaylist",b);v||Gy(this,h)};
_.J.nextVideo=function(R,y){if(Z9(this)){if(R&&y){var u=OQ(this);c3p(u,R,y);Gy(this,u)}Hh(this,"next")}else nn(this,_.lh(this.nextVideo,R,y))};
_.J.clearPlaylist=function(){if(Z9(this)){Hh(this,"clearPlaylist");var R=OQ(this);R.reset();Gy(this,R);this.publish("remotePlayerChange")}else nn(this,this.clearPlaylist)};
_.J.dispose=function(){if(this.state_!=3){var R=this.state_;this.state_=3;this.publish("proxyStateChange",R,this.state_)}_.Nl.prototype.dispose.call(this)};
_.J.disposeInternal=function(){zgM(this);this.connection_=null;this.actionQueue_.clear();YIo(this,null);_.Nl.prototype.disposeInternal.call(this)};
var SIH=function(R){_.cu("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(y){this.contextSubscriptions_.push(this.connection_.subscribe(y,_.lh(this.onProxyEvent_,y),this))},R)},zgM=function(R){_.cu(R.contextSubscriptions_,function(y){this.connection_.unsubscribeByKey(y)},R);
R.contextSubscriptions_.length=0},Z9=function(R){return R.getState()==1},nn=function(R,y){R.actionQueue_.getCount()<50&&R.actionQueue_.enqueue(y)},sSm=function(R,y,u){var v=OQ(R);
en(v,u);v.playerState!=-1E3&&(v.playerState=y);Gy(R,v)},Hh=function(R,y,u){R.connection_.sendMessage(y,u)},Gy=function(R,y){zgM(R);
R.connection_.setPlayerContextData(aYJ(y));SIH(R)};
l4.prototype.setState_=function(R){if((R!=this.state_||R==2)&&this.state_!=3&&R!=0){var y=this.state_;this.state_=R;this.publish("proxyStateChange",y,R);if(R==1)for(;!this.actionQueue_.isEmpty();)R=this.actionQueue_,I5M(R),R.front_.pop().apply(this);else R==3&&this.dispose()}};
l4.prototype.onProxyEvent_=function(R,y){this.publish(R,y)};
var YIo=function(R,y){R.castSession_&&(R.castSession_.removeUpdateListener(R.boundCastStatusListener_),R.castSession_.removeMediaListener(R.boundCastMediaListener_),R.onCastMediaChange_(null));R.castSession_=y;if(R.castSession_&&(QI("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])};
l4.prototype.onCastStatusUpdate_=function(R){if(!R)this.onCastMediaChange_(null),YIo(this,null);else if(this.castSession_.receiver.volume){R=this.castSession_.receiver.volume;var y=OQ(this),u=Math.round(100*R.level||0);if(y.volume!=u||y.muted!=R.muted)QI("Cast volume update: "+R.level+(R.muted?" muted":"")),y.volume=u,y.muted=!!R.muted,Gy(this,y)}};
l4.prototype.onCastMediaChange_=function(R){QI("Cast media: "+!!R);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=R)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),gCI(this),this.publish("remotePlayerChange")};
var gCI=function(R){var y=R.castMedia_.media,u=R.castMedia_.customData;if(y&&u){var v=OQ(R);y.contentId!=v.videoId&&QI("Cast changing video to: "+y.contentId);v.videoId=y.contentId;v.playerState=u.playerState;en(v,R.castMedia_.getEstimatedTime());Gy(R,v)}else QI("No cast media video. Ignoring state update.")};
l4.prototype.onCastMediaUpdate_=function(R){if(R)gCI(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
l4.prototype.onCloudviewAvailabilityChange_=function(){var R=xza();R&&YIo(this,R)};
l4.prototype.warn_=function(R){vj("CP",R)};
var L5g=function(R,y,u){return(0,_.HY)(function(v){this.warn_("Failed to "+y+" with cast v2 channel. Error code: "+v.code);v.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+y+" using MDx browser channel."),Hh(this,y,u))},R)};var Ph=function(R,y,u,v){v=v===void 0?!1:v;_.Nl.call(this);var Q=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$19665_http_=R;this.enableConnectWithInitialState_=v;this.listeners_.push(_.yF(window,"beforeunload",function(){Q.JSC$19668_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new wO;this.currentScreenId_=y.id;this.currentScreenIdType_=y.idType;this.channelService=mBa(this.JSC$19665_http_,u,this.JSC$19668_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){Cqp(Q)});
this.channelService.listen("channelClosed",function(){r6("Channel closed");isNaN(Q.connectTimerId_)?Cm(!0):Cm();Q.dispose()});
this.channelService.listen("channelError",function(M){Cm();isNaN(Q.getReconnectTimeout_())?(M==1&&Q.currentScreenIdType_=="shortLived"&&Q.publish("browserChannelAuthError",M),r6("Channel error: "+M+" without reconnection"),Q.dispose()):(Q.reconnecting_=!0,r6("Channel error: "+M+" with reconnection in "+Q.getReconnectTimeout_()+" ms"),RYm(Q,2))});
this.channelService.listen("channelMessage",function(M){yOH(Q,M)});
this.channelService.setLoungeToken(y.token);this.subscribe("remoteQueueChange",function(){var M=Q.playerContext_.videoId;Zca()&&_.B1("yt-remote-session-video-id",M)})};
_.O(Ph,_.Nl);
Ph.prototype.connect=function(R,y){if(y){var u=y.listId,v=y.videoId,Q=y.videoIds,M=y.playerParams,K=y.clickTrackingParams,h=y.index,b={videoId:v},N=y.currentTime,T=y.locationInfo;y=y.loopMode;N!==void 0&&(b.currentTime=N<=5?0:N);M&&(b.playerParams=M);T&&(b.locationInfo=T);K&&(b.clickTrackingParams=K);u&&(b.listId=u);Q&&Q.length>0&&(b.videoIds=Q.join(","));h!==void 0&&(b.currentIndex=h);this.enableConnectWithInitialState_&&(b.loopMode=y||"LOOP_MODE_OFF");u&&(this.playerContext_.listId=u);this.playerContext_.videoId=
v;this.playerContext_.index=h||0;this.playerContext_.state=3;en(this.playerContext_,N);this.autoplayMode_="UNSUPPORTED";u=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";r6("Connecting with "+u+" and params: "+(0,_.kj)(b));this.channelService.connect({method:u,params:(0,_.kj)(b)},R,P7m())}else r6("Connecting without params"),this.channelService.connect({},R,P7m());uJa(this)};
Ph.prototype.setLoungeToken=function(R){this.channelService.setLoungeToken(R)};
Ph.prototype.dispose=function(){this.isDisposed()||(_.CJ("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),RYm(this,3));_.Nl.prototype.dispose.call(this)};
Ph.prototype.disposeInternal=function(){vxJ(this);QaJ(this);jao(this);_.ba(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.ba(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.Xyv(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.Nl.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var MhP=function(R){return _.UP(R.connectedDevices_,function(y){return y.type=="LOUNGE_SCREEN"})},r6=function(R){vj("conn",R)},RYm=function(R,y){R.publish("proxyStateChange",y)},uJa=function(R){R.connectTimerId_=_.Ih(function(){r6("Connecting timeout");
R.JSC$19668_disconnect_(1)},2E4)},vxJ=function(R){_.ba(R.connectTimerId_);
R.connectTimerId_=NaN},jao=function(R){_.ba(R.reconnectedCheckScreenTimeout_);
R.reconnectedCheckScreenTimeout_=NaN},JOm=function(R){QaJ(R);
R.playingSyncTimerId_=_.Ih(function(){Wh(R,"getNowPlaying")},2E4)},QaJ=function(R){_.ba(R.playingSyncTimerId_);
R.playingSyncTimerId_=NaN},Cqp=function(R){r6("Channel opened");
R.reconnecting_&&(R.reconnecting_=!1,jao(R),R.reconnectedCheckScreenTimeout_=_.Ih(function(){r6("Timing out waiting for a screen.");R.JSC$19668_disconnect_(1)},15E3))},i_a=function(R,y){var u=null;
if(y){var v=MhP(R);v&&(u={clientName:v.clientName,deviceMake:v.brand,deviceModel:v.model,osVersion:v.osVersion})}_.CJ("yt.mdx.remote.remoteClient_",u);y&&(vxJ(R),jao(R));u=R.channelService.isChannelOpened()&&isNaN(R.connectTimerId_);y==u?y&&(RYm(R,1),Wh(R,"getSubtitlesTrack")):y?(R.getOtherConnectedRemoteId_()&&R.playerContext_.reset(),RYm(R,1),Wh(R,"getNowPlaying"),VhK(R)):R.JSC$19668_disconnect_(1)},K2K=function(R,y){var u=y.params.videoId;
delete y.params.videoId;u==R.playerContext_.videoId&&(_.Ps.isEmpty(y.params)?R.playerContext_.trackData=null:R.playerContext_.trackData=y.params,R.publish("remotePlayerChange"))},INg=function(R,y,u){var v=y.params.videoId||y.params.video_id,Q=parseInt(y.params.currentIndex,10);
R.playerContext_.listId=y.params.listId||R.playerContext_.listId;c3p(R.playerContext_,v,Q);R.publish("remoteQueueChange",u)},hYH=function(R,y){y.params=y.params||{};
INg(R,y,"NOW_PLAYING_MAY_CHANGE");R.onStateChange_(y);R.publish("autoplayDismissed")};
Ph.prototype.onStateChange_=function(R){var y=parseInt(R.params.currentTime||R.params.current_time,10);en(this.playerContext_,isNaN(y)?0:y);y=parseInt(R.params.state,10);y=isNaN(y)?-1:y;y==-1&&this.playerContext_.playerState==-1E3&&(y=-1E3);this.playerContext_.playerState=y;y=Number(R.params.loadedTime);this.playerContext_.loadedTime=isNaN(y)?0:y;y=Number(R.params.duration);this.playerContext_.duration_=isNaN(y)?0:y;y=this.playerContext_;var u=Number(R.params.liveIngestionTime);y.liveIngestionTime_=
u;y.isLive_=isNaN(u)?!1:!0;y=this.playerContext_;u=Number(R.params.seekableStartTime);R=Number(R.params.seekableEndTime);y.seekableStart_=isNaN(u)?0:u;y.seekableEnd_=isNaN(R)?0:R;this.playerContext_.playerState==1?JOm(this):QaJ(this);this.publish("remotePlayerChange")};
Ph.prototype.onAdStateChange_=function(R){if(this.playerContext_.playerState!=-1E3){var y=1085;switch(parseInt(R.params.adState,10)){case 1:y=1081;break;case 2:y=1084;break;case 0:y=1083}this.playerContext_.playerState=y;R=parseInt(R.params.currentTime,10);en(this.playerContext_,isNaN(R)?0:R);this.publish("remotePlayerChange")}};
var b_P=function(R,y){var u=y.params.muted=="true";R.playerContext_.volume=parseInt(y.params.volume,10);R.playerContext_.muted=u;R.publish("remotePlayerChange")},F2H=function(R,y){R.autoplayVideoId_=y.params.videoId;
R.publish("nowAutoplaying",parseInt(y.params.timeout,10))},wCI=function(R,y){R.autoplayVideoId_=y.params.videoId||null;
R.publish("autoplayUpNext",R.autoplayVideoId_)},N0g=function(R,y){R.autoplayMode_=y.params.autoplayMode;
R.publish("autoplayModeChange",R.autoplayMode_);R.autoplayMode_=="DISABLED"&&R.publish("autoplayDismissed")},T0K=function(R,y){var u=y.params.hasNext=="true";
R.playerContext_.hasPrevious=y.params.hasPrevious=="true";R.playerContext_.hasNext=u;R.publish("previousNextChange")};
Ph.prototype.isCapabilitySupportedOnConnectedDevices_=function(R){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var y=_.V(this.connectedDevices_),u=y.next();!u.done;u=y.next())if(!u.value.capabilities.has(R))return!1;return!0};
var yOH=function(R,y){y=y.message;y.params?r6("Received: action="+y.action+", params="+(0,_.kj)(y.params)):r6("Received: action="+y.action+" {}");switch(y.action){case "loungeStatus":y=(0,_.W8)(y.params.devices);R.connectedDevices_=_.Ws(y,function(v){return new Kn(v)});
y=!!_.UP(R.connectedDevices_,function(v){return v.type=="LOUNGE_SCREEN"});
i_a(R,y);y=R.isCapabilitySupportedOnConnectedDevices_("mlm");R.publish("multiStateLoopEnabled",y);break;case "loungeScreenDisconnected":AWp(R.connectedDevices_,function(v){return v.type=="LOUNGE_SCREEN"});
i_a(R,!1);break;case "remoteConnected":var u=new Kn((0,_.W8)(y.params.device));_.UP(R.connectedDevices_,function(v){return v.equals(u)})||_.eTU(R.connectedDevices_,u);
break;case "remoteDisconnected":u=new Kn((0,_.W8)(y.params.device));AWp(R.connectedDevices_,function(v){return v.equals(u)});
break;case "gracefulDisconnect":break;case "playlistModified":INg(R,y,"QUEUE_MODIFIED");break;case "nowPlaying":hYH(R,y);break;case "onStateChange":R.onStateChange_(y);break;case "onAdStateChange":R.onAdStateChange_(y);break;case "onVolumeChanged":b_P(R,y);break;case "onSubtitlesTrackChanged":K2K(R,y);break;case "nowAutoplaying":F2H(R,y);break;case "autoplayDismissed":R.publish("autoplayDismissed");break;case "autoplayUpNext":wCI(R,y);break;case "onAutoplayModeChanged":N0g(R,y);break;case "onHasPreviousNextChanged":T0K(R,
y);break;case "requestAssistedSignIn":R.publish("assistedSignInRequested",y.params.authCode);break;case "onLoopModeChanged":R.publish("loopModeChange",y.params.loopMode);break;default:r6("Unrecognized action: "+y.action)}};
_.J=Ph.prototype;_.J.getProxyState_=function(){var R=3;this.isDisposed()||(R=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(R=1):R=2);return R};
_.J.JSC$19668_disconnect_=function(R){r6("Disconnecting with "+R);_.CJ("yt.mdx.remote.remoteClient_",null);vxJ(this);this.publish("beforeDisconnect",R);R==1&&Cm();this.channelService.disconnect(R);this.dispose()};
_.J.getPlayerContextData_=function(){var R=this.playerContext_;this.clientVideoId_&&(R=this.playerContext_.clone(),c3p(R,this.clientVideoId_,R.index));return aYJ(R)};
_.J.setPlayerContextData_=function(R){var y=this,u=new wO(R);u.videoId&&u.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=u.videoId,_.ba(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.Ih(function(){if(y.clientVideoId_){var Q=y.clientVideoId_;y.clientVideoId_=null;y.playerContext_.videoId!=Q&&Wh(y,"getNowPlaying")}},5E3));
var v=[];this.playerContext_.listId==u.listId&&this.playerContext_.videoId==u.videoId&&this.playerContext_.index==u.index||v.push("remoteQueueChange");this.playerContext_.playerState==u.playerState&&this.playerContext_.volume==u.volume&&this.playerContext_.muted==u.muted&&tcI(this.playerContext_)==tcI(u)&&(0,_.kj)(this.playerContext_.trackData)==(0,_.kj)(u.trackData)||v.push("remotePlayerChange");this.playerContext_.reset(R);_.cu(v,function(Q){this.publish(Q)},this)};
_.J.getOtherConnectedRemoteId_=function(){var R=this.channelService.getDeviceId(),y=_.UP(this.connectedDevices_,function(u){return u.type=="REMOTE_CONTROL"&&u.id!=R});
return y?y.id:""};
_.J.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.J.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.J.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.J.JSC$19668_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var VhK=function(R){_.ba(R.idleDisconnectTimerId_);R.idleDisconnectTimerId_=_.Ih(function(){R.JSC$19668_disconnect_(1)},864E5)},Wh=function(R,y,u){u?r6("Sending: action="+y+", params="+(0,_.kj)(u)):r6("Sending: action="+y);
R.channelService.sendMessage(y,u)};
Ph.prototype.sendMessageWithUserAction_=function(R,y){Wh(this,R,y);VhK(this)};
Ph.prototype.JSC$19668_getXsrfToken_=function(){var R=_.xz.get("SAPISID","")||_.xz.get("__Secure-1PAPISID",void 0)||"",y=_.xz.get("__Secure-3PAPISID","")||"";if(!R&&!y)return"";R=_.nZ(_.OX(R),2);y=_.nZ(_.OX(y),2);return _.nZ(_.OX(","+R+","+y),2)};
Ph.prototype.subscribe=Ph.prototype.subscribe;Ph.prototype.unsubscribeByKey=Ph.prototype.unsubscribeByKey;Ph.prototype.getProxyState=Ph.prototype.getProxyState_;Ph.prototype.disconnect=Ph.prototype.JSC$19668_disconnect_;Ph.prototype.getPlayerContextData=Ph.prototype.getPlayerContextData_;Ph.prototype.setPlayerContextData=Ph.prototype.setPlayerContextData_;Ph.prototype.getOtherConnectedRemoteId=Ph.prototype.getOtherConnectedRemoteId_;Ph.prototype.getReconnectTimeout=Ph.prototype.getReconnectTimeout_;
Ph.prototype.getAutoplayMode=Ph.prototype.getAutoplayMode_;Ph.prototype.getAutoplayVideoId=Ph.prototype.getAutoplayVideoId_;Ph.prototype.reconnect=Ph.prototype.JSC$19668_reconnect_;Ph.prototype.sendMessage=Ph.prototype.sendMessageWithUserAction_;Ph.prototype.getXsrfToken=Ph.prototype.JSC$19668_getXsrfToken_;Ph.prototype.isCapabilitySupportedOnConnectedDevices=Ph.prototype.isCapabilitySupportedOnConnectedDevices_;var oxp=function(R){Mx.call(this,"ScreenServiceProxy");this.instance_=R;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.HY)(this.JSC$19671_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.HY)(this.onOnlineScreenChange_,this)))};
_.O(oxp,Mx);_.J=oxp.prototype;_.J.getScreens=function(R){return this.instance_.$_gs(R)};
_.J.contains=function(R){return!!this.instance_.$_c(R)};
_.J.get=function(R){return this.instance_.$_g(R)};
_.J.start=function(){this.instance_.$_st()};
_.J.add=function(R,y,u){this.instance_.$_a(R,y,u)};
_.J.remove=function(R,y,u){this.instance_.$_r(R,y,u)};
_.J.updateName=function(R,y,u,v){this.instance_.$_un(R,y,u,v)};
_.J.disposeInternal=function(){for(var R=this.subscriptionKeys_.length,y=0;y<R;++y)this.instance_.$_ubk(this.subscriptionKeys_[y]);this.subscriptionKeys_.length=0;this.instance_=null;Mx.prototype.disposeInternal.call(this)};
_.J.JSC$19671_onScreenChange_=function(){this.publish("screenChange")};
_.J.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
iS.prototype.$_st=iS.prototype.start;iS.prototype.$_gspc=iS.prototype.JSC$19628_getScreenByPairingCode;iS.prototype.$_gsppc=iS.prototype.JSC$19628_getScreenByPollingPairingCode;iS.prototype.$_c=iS.prototype.contains;iS.prototype.$_g=iS.prototype.get;iS.prototype.$_a=iS.prototype.add;iS.prototype.$_un=iS.prototype.updateName;iS.prototype.$_r=iS.prototype.remove;iS.prototype.$_gs=iS.prototype.getScreens;iS.prototype.$_gos=iS.prototype.JSC$19628_getOnlineScreens;iS.prototype.$_s=iS.prototype.subscribe;
iS.prototype.$_ubk=iS.prototype.unsubscribeByKey;var Z_P=function(R){k2m();if(!Rt||!Rt.get("yt-remote-disable-remote-module-for-dev")){R=_.EB("MDX_CONFIG")||R;C1H();nvM();d6||(d6=new Lm(R?R.loungeApiHost:void 0),EvP()&&(d6.basePath="/api/loungedev"));UQ||(UQ=_.D6("yt.mdx.remote.deferredProxies_")||[],_.CJ("yt.mdx.remote.deferredProxies_",UQ));x$H();var y=kN();if(!y){var u=new iS(d6,R?R.disableAutomaticScreenCache||!1:!1);_.CJ("yt.mdx.remote.screenService_",u);y=kN();var v={};R&&(v={appId:R.appId,disableDial:R.disableDial,theme:R.theme,loadCastApiSetupScript:R.loadCastApiSetupScript,
disableCastApi:R.disableCastApi,enableDialLoungeToken:R.enableDialLoungeToken,enableCastLoungeToken:R.enableCastLoungeToken,forceMirroring:R.forceMirroring});_.CJ("yt.mdx.remote.enableConnectWithInitialState_",R?R.enableConnectWithInitialState||!1:!1);bu8(u,function(M){M?EQ()&&fV7(EQ(),"YouTube TV"):u.subscribe("onlineScreenChange",function(){eI("yt-remote-receiver-availability-change")})},v)}if(R&&!_.D6("yt.mdx.remote.initialized_")){_.CJ("yt.mdx.remote.initialized_",!0);
$N("Initializing: "+(0,_.kj)(R));q9.push(_.VF("yt-remote-cast2-api-ready",function(){eI("yt-remote-api-ready")}));
q9.push(_.VF("yt-remote-cast2-availability-change",function(){eI("yt-remote-receiver-availability-change")}));
q9.push(_.VF("yt-remote-cast2-receiver-selected",function(){B08();eI("yt-remote-auto-connect","cast-selector-receiver")}));
q9.push(_.VF("yt-remote-cast2-receiver-resumed",function(){eI("yt-remote-receiver-resumed","cast-selector-receiver")}));
q9.push(_.VF("yt-remote-cast2-session-change",fNM));q9.push(_.VF("yt-remote-connection-change",function(M){M?fV7(EQ(),"YouTube TV"):eYV()||(fV7(null,null),oJK())}));
q9.push(_.VF("yt-remote-cast2-session-failed",function(){eI("yt-remote-connection-failed")}));
v=lNJ();R.isAuto&&(v.id+="#dial");var Q=R.capabilities||[];Q.length>0&&(v.capabilities=Q);v.name=R.device;v.app=R.app;(R=R.theme)&&(v.theme=R);$N(" -- with channel params: "+(0,_.kj)(v));v?(_.B1("yt-remote-session-app",v.app),_.B1("yt-remote-session-name",v.name)):(_.e5("yt-remote-session-app"),_.e5("yt-remote-session-name"));_.CJ("yt.mdx.remote.channelParams_",v);y.start();EQ()||O_a()}}},nxV=function(){var R=kN().instance_.$_gos();
var y=H_K();y&&XT()&&(ezm(R,y)||R.push(y));return fjp(R)},GdH=function(){var R=nxV(),y=H_K();
y||(y=eYV());return _.UP(R,function(u){return y&&zG(y,u.key)?!0:!1})},H_K=function(){var R=EQ();
if(!R)return null;var y=kN().getScreens();return g8(y,R)},fNM=function(R){$N("remote.onCastSessionChange_: "+e3a(R));
if(R){var y=H_K();y&&y.id==R.id?(fV7(y.id,"YouTube TV"),R.idType=="shortLived"&&(R=R.token)&&(y=XT())&&y.setLoungeToken(R)):(y&&rOp(),Pla(R,1))}else XT()&&rOp()},rOp=function(){B28()?bS().stopSession():hY("stopSession called before API ready.");
var R=XT();R&&(R.disconnect(1),W2m(null))},d$g=function(){var R=XT();
return R&&R.getProxyState()!=3?new l4(XT(),void 0):null},$N=function(R){vj("remote",R)},kN=function(){if(!U$K){var R=_.D6("yt.mdx.remote.screenService_");
U$K=R?new oxp(R):null}return U$K},EQ=function(){return _.D6("yt.mdx.remote.currentScreenId_")},kdK=function(R){_.CJ("yt.mdx.remote.currentScreenId_",R)},B08=function(){_.CJ("yt.mdx.remote.connectData_",null)},XT=function(){return _.D6("yt.mdx.remote.connection_")},W2m=function(R){var y=XT();
B08();R||kdK("");_.CJ("yt.mdx.remote.connection_",R);UQ&&(_.cu(UQ,function(u){u(R)}),UQ.length=0);
y&&!R?eI("yt-remote-connection-change",!1):!y&&R&&eI("yt-remote-connection-change",!0)},eYV=function(){var R=Zca();
if(!R)return null;var y=kN();if(!y)return null;y=y.getScreens();return g8(y,R)},Pla=function(R,y){kdK(R.id);
R=new Ph(d6,R,lNJ(),_.D6("yt.mdx.remote.enableConnectWithInitialState_")||!1);R.connect(y,_.D6("yt.mdx.remote.connectData_"));R.subscribe("beforeDisconnect",function(u){eI("yt-remote-before-disconnect",u)});
R.subscribe("beforeDispose",function(){XT()&&W2m(null)});
R.subscribe("browserChannelAuthError",function(){var u=H_K();u&&u.idType=="shortLived"&&(B28()?bS().handleBrowserChannelAuthError():hY("refreshLoungeToken called before API ready."))});
W2m(R)},O_a=function(){var R=eYV();
R?($N("Resume connection to: "+e3a(R)),Pla(R,0)):(Cm(),oJK(),$N("Skipping connecting because no session screen found."))},d6=null,UQ=null,U$K=null,x$H=function(){var R=lNJ();
if(_.Ps.isEmpty(R)){R=Oca();var y=_.fl("yt-remote-session-name")||"",u=_.fl("yt-remote-session-app")||"";R={device:"REMOTE_CONTROL",id:R,name:y,app:u,mdxVersion:3};R.authuser=String(_.EB("SESSION_INDEX","0"));(y=_.EB("DELEGATED_SESSION_ID"))&&(R.pageId=String(y));_.CJ("yt.mdx.remote.channelParams_",R)}},lNJ=function(){return _.D6("yt.mdx.remote.channelParams_")||{}},q9=[];var ExI=new _.$2("yt-menu"),$$M=function(){},XCg=function(R,y,u){R=y=="right-click"?u.rightClickMenuPopupHint:u.menuPopupHint;
if(!(qM7(y)>10))return y=y||"default",ExI.set(y+"-impression",qM7(y)+1),R},qM7=function(R){return parseInt(ExI.get((R||"default")+"-impression")||0,10)};
_.io($$M);var m$g=function(){this.contexts_=new WeakMap;this.JSC$19677_networkService_=this.activeContext_=null},AO7=function(R,y,u){var v=R.contexts_.get(y);
v||(v=new zoK(R.JSC$19677_networkService_),R.contexts_.set(y,v));R.activeContext_=v;u&&R.activeContext_.reset();R.activeContext_.start();return R.activeContext_};var mL=function(){};
mL.prototype.enqueue=function(){var R=this,y;return _.I(function(u){if(R.isCounterfactual())return(y=R.getCounterfactualData())&&R.shouldLogCounterfactualImpression()&&R.sendImpressionEndpoints(y),u.return();R.doEnqueue();_.f$(u)})};
mL.prototype.sendImpressionEndpoints=function(R){_.c3.getInstance().triggerOptionalAction("yt-service-request",{},R[0])};var A0=function(R,y){this.renderer=R;this.page=y};
_.O(A0,mL);A0.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
A0.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
A0.prototype.shouldLogCounterfactualImpression=function(){return!0};
A0.prototype.doEnqueue=function(){var R=_.KA(this.page);R&&R.pause();this.renderer.impressionCommand&&_.c3.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.pV(_.c3.getInstance(),[this.renderer.promoCommand],this.page)};var D$a=function(R,y){this.renderer=R;this.resolver=_.uD();this.JSC$19689_enforcementCounter=new _.Qn5;y?this.JSC$19689_playerManager=_.KA(y):this.JSC$19689_playerManager=null;_.l7(1,!0)};
_.O(D$a,mL);_.J=D$a.prototype;_.J.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var R=[];this.renderer.impressionEndpoints.forEach(function(y){(y=_.Sb(y))&&R.push(y)});
return R}};
_.J.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.J.shouldLogCounterfactualImpression=function(){var R=_.y$G();R?(this.JSC$19689_enforcementCounter.increment("POPUP"),_.l7(3)):_.l7(2);return R};
_.J.cancel=function(){this.resolver.promise.cancel()};
_.J.doEnqueue=function(){var R=this;_.y$G()?(this.JSC$19689_enforcementCounter.increment("POPUP"),_.l7(3),pCa(this)):this.JSC$19689_playerManager?(this.resolver.promise.then(function(){pCa(R)}),th7(this.resolver,this.JSC$19689_playerManager)):_.l7(2)};
var th7=function(R,y){var u=_.uD();y.getPlayerPromise().then(function(v){u.resolve(v)});
u.promise.then(function(v){v.addEventListener("onAbnormalityDetected",R.resolve);_.Wc(R.promise,function(){v.removeEventListener("onAbnormalityDetected",R.resolve)})});
R.promise.thenCatch(function(){u.promise.cancel()})},pCa=function(R){_.l7(3);
var y={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:R.renderer}};y=_.c3.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:y},{});Promise.all(y).then(function(){cOm();R.JSC$19689_playerManager&&R.JSC$19689_playerManager.pause()})},cOm=function(){Zvp(function(R,y){_.ZNK(R,y);
R===0?_.l7(7):_.l7(4)})};var aNH=function(R,y){this.renderer=R;this.page=y;this.resolver=_.uD()};
_.O(aNH,mL);_.J=aNH.prototype;_.J.cancel=function(){this.resolver.promise.cancel()};
_.J.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.J.isCounterfactual=function(){return!this.renderer.isVisible};
_.J.shouldLogCounterfactualImpression=function(){return!0};
_.J.doEnqueue=function(){var R=this;this.resolver.promise.then(function(){var u={popup:{mealbarPromoRenderer:R.renderer},popupType:"MEALBAR"};_.c3.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:u},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var y=_.KA(this.page);y&&SMg(this.resolver,y)}break;default:this.resolver.resolve()}};
var SMg=function(R,y){var u=_.uD();y.getPlayerPromise().then(function(v){u.resolve(v)});
u.promise.then(function(v){v.addEventListener("onAdEnd",R.resolve);_.Wc(R.promise,function(){v.removeEventListener("onAdEnd",R.resolve)})});
R.promise.thenCatch(function(){u.promise.cancel()})};var YMJ=function(R,y){this.renderer=R;this.page=y};
_.O(YMJ,mL);_.J=YMJ.prototype;_.J.cancel=function(){this.JSC$19697_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19697_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19697_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.J.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.J.isCounterfactual=function(){return!this.renderer.isVisible};
_.J.shouldLogCounterfactualImpression=function(){return!0};
_.J.doEnqueue=function(){var R=this,y,u;((y=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(u=y.playbackUpsellDialogTriggerConditionData)==null?void 0:u.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$19697_downloadedVideosCountSelectorUnsubscriber=_.GD(_.Qe(),BG7,function(v,Q){v>Q&&(L27(R),R.cancel())}):L27(this)};
var L27=function(R){var y={popup:{upsellDialogRenderer:R.renderer},popupType:"MODAL"};_.c3.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:y},{});(R=_.KA(R.page))&&R.pause()};var D9={},saI=(D9.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",D9.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",D9.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",D9.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",D9.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",D9.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",D9.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",D9),zYI=function(R,y){this.renderer=R;this.targetManager=
y};
_.O(zYI,mL);_.J=zYI.prototype;_.J.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$19704_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19704_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19704_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.J.getCounterfactualData=function(){if(this.isCounterfactual()){var R;return(R=this.renderer.promoConfig)==null?void 0:R.impressionEndpoints}};
_.J.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.J.shouldLogCounterfactualImpression=function(){return!0};
_.J.doEnqueue=function(){var R=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$19704_downloadedVideosCountSelectorUnsubscriber=_.GD(_.Qe(),BG7,function(y,u){R.renderer.targetId&&y>u&&(w2M(R.targetManager,R.renderer.targetId,gxZ(R)),R.cancel())});
break;default:w2M(this.targetManager,this.renderer.targetId,gxZ(this))}};
var gxZ=function(R){var y;if((y=R.renderer.suggestedPosition)==null?0:y.type)var u=saI[R.renderer.suggestedPosition.type];u||(u="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:R.renderer},popupType:"HINT",position:u}}};var Clo=function(){this.previousPage=null},R_7;
Clo.prototype.registerPromoCommand=function(R,y){ypa(this,void 0,void 0,_.e(R.roadblock,NjZ),void 0,void 0,y)};
var ypa=function(R,y,u,v,Q,M,K){R.previousPage!==K&&R.pendingTooltipPromo&&R.pendingTooltipPromo.cancel();R.previousPage=K;Q?(R.pendingEnforcementPromo&&R.pendingEnforcementPromo.cancel(),R.pendingEnforcementPromo=new D$a(Q,K),R.pendingEnforcementPromo.enqueue()):M?(R.pendingCommandWrapperPromo=new A0(M,K),R.pendingCommandWrapperPromo.enqueue()):v?(R.pendingRoadblockPromo&&R.pendingRoadblockPromo.cancel(),R.pendingRoadblockPromo=new YMJ(v,K),R.pendingRoadblockPromo.enqueue()):y?(R.pendingMealbarPromo&&
R.pendingMealbarPromo.cancel(),R.pendingMealbarPromo=new aNH(y,K),R.pendingMealbarPromo.enqueue()):u&&(R.pendingTooltipPromo&&R.pendingTooltipPromo.cancel(),R.pendingTooltipPromo=new zYI(u,_.Ux()),R.pendingTooltipPromo.enqueue())},uSZ=function(){R_7||(R_7=new Clo);
return R_7};var Hua=!1;var Bm8=function(R,y){var u=_.EB("SESSION_INDEX");this.actionToken_=R;this.commonToken_=y;this.sessionIndex_=u},xpm=function(R){var y=_.uD(),u=_.D6("payments.business.integration.bootstrap"),v=_.D6("payments.business.integration"),Q=v.Style.create().withMaterialDesignStyle(),M=v.mashupMode.popup("instrument-manager");
u.asMashupMode(M).usingUserIndex(R.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(Q).inStandaloneContext(v.standaloneContextAuthId.forUserId()).instrumentManager(R.actionToken_,R.commonToken_.length>0?R.commonToken_:void 0,function(K){var h=K.instrumentId;h?y.resolve(h):(h=_.D6("payments.business.integration.scenario.InstrumentManager"),y.reject(K.errorCode&&K.errorCode===h.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(K){_.mq(K);
y.reject("instrumentManagerLoadError")});
return y.promise};var Bj=function(R,y,u){this.payloadName="transactionFlowFailed";this.payload={errorType:R,serializedTransactionFlowLoggingParams:y,isUserDismiss:u===void 0?!1:u}};
_.CJ("yt.ypc.shared.YpcTransactionFlowError",Bj);var pn=function(){return _.HN.apply(this,arguments)||this};
_.O(pn,_.HN);pn.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
pn.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
pn.prototype.onErrorMessageDismiss=pn.prototype.onErrorMessageDismiss;_.A([_.r({readOnly:!0,observer:"errorRendererChanged"}),_.p("design:type",Object)],pn.prototype,"errorRenderer",void 0);_.A([_.fu("yt-live-chat-error-message-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],pn.prototype,"onErrorMessageDismiss",null);_.A([_.nu()],pn);var vOM=[pn.prototype];var Qsg;var jsH;var M1a=new _.$2("yt-live-chat"),JpK=new Map;JpK.set("timestamp_toggle","show-timestamps");JpK.set("reactions_toggle","allow-reactions");var t0=function(){return _.W.apply(this,arguments)||this};
_.O(t0,_.W);_.J=t0.prototype;_.J.menuItemIdentifierChanged=function(){var R;(R=this.data)!=null&&R.menuItemIdentifier&&(R=JpK.get(this.data.menuItemIdentifier))&&(_.f("enable_lwe_web_mute")?(R=M1a.get(R),this.isToggled=!(R===void 0?!this.data.isToggled:!R)):this.isToggled=M1a.get(R))};
_.J.onFocus=function(){this.toggleButton.focus()};
_.J.onTap=function(){var R=this.data.command;R&&this.componentBehavior.resolveCommand(R)};
_.J.computeText=function(R,y,u){return this.componentBehavior.getSimpleString(R?u:y)};
_.J.computeIcon=function(R,y,u){return(R=R?u:y)&&R.iconType?_.fk(R.iconType):""};
t0.prototype.onTap=t0.prototype.onTap;t0.prototype.onFocus=t0.prototype.onFocus;t0.prototype.menuItemIdentifierChanged=t0.prototype.menuItemIdentifierChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],t0.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],t0.prototype,"componentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],t0.prototype,"data",void 0);
_.A([_.r({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.p("design:type",String)],t0.prototype,"icon",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],t0.prototype,"isToggled",void 0);_.A([_.O7("tp-yt-paper-toggle-button"),_.p("design:type",Object)],t0.prototype,"toggleButton",void 0);_.A([_.e0("data.menuItemIdentifier"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],t0.prototype,"menuItemIdentifierChanged",null);
_.A([_.fu("focus"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],t0.prototype,"onFocus",null);_.A([_.fu("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],t0.prototype,"onTap",null);_.A([_.pu({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],t0);
_.m(t0,"yt-live-chat-toggle-renderer",function(){if(jsH===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;Qsg===void 0&&(Qsg=document.createElement("template"));var v=Qsg;u.call(y,v.content.cloneNode(!0),R.content.firstChild);jsH=R}R=jsH;return R},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var V1K=new _.Jx("NAVIGATION_PROGRESS_TOKEN");var iWg={},KGZ={},IHI=(KGZ[QJm.name]=!0,KGZ),ch=function(){var R=_.HN.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=_.NQ();R.hasPendingNavigation=!1;R.pendingPlayerOnResponseReceivedActions=[];return R};
_.O(ch,_.HN);ch.prototype.attached=function(){h_J(this);document.addEventListener("yt-navigate-cache",_.BN(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var R=ag();R.init();R.dispatchElement=this.hostElement};
var h_J=function(R,y){y=y===void 0?0:y;var u=_.ua().resolve(_.yN(_.dv));if(u)bWH(R,u);else{if(y>=5)throw Error("Yk");setTimeout(function(){h_J(R,y+1)},0)}},bWH=function(R,y){y.addEventListener("yt-navigate-start",_.BN(R,R.onYtNavigateStart));
y.addEventListener("yt-navigate-finish",_.BN(R,R.onYtNavigateFinish));y.addEventListener("yt-navigate-error",_.BN(R,R.onYtNavigateError));y.addEventListener("yt-page-data-fetched",_.BN(R,R.onYtPageDataFetched))};
_.J=ch.prototype;_.J.detached=function(){var R=_.ua().resolve(_.dv);R.removeEventListener("yt-navigate-start",_.BN(this,this.onYtNavigateStart));R.removeEventListener("yt-navigate-finish",_.BN(this,this.onYtNavigateFinish));R.removeEventListener("yt-navigate-error",_.BN(this,this.onYtNavigateError));R.removeEventListener("yt-page-data-fetched",_.BN(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.BN(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.J.setPageOffset=function(R,y){R?_.Ik(this.hostElement,"yt-set-page-offset",[R,y]):_.dI(Error("Zk"))};
_.J.setPageOffsetForNavigation=function(R,y){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(R,y))};
_.J.onYtNavigateSetPageOffset=function(R,y){this.setPageOffsetForNavigation(y.page,y.offset)};
_.J.getPageOffset=function(){var R=_.hw(this.hostElement).querySelector("#page-manager").getCurrentPage(),y=0;R&&(y=_.Ik(this.hostElement,"yt-get-page-offset",[R])[0]);return y};
_.J.onYtHistoryPop=function(R,y){if(_.$B("DISABLE_WARM_LOADS"))R.preventDefault(),window.location.reload();else{var u=_.ua().resolve(_.dv);u.hasPendingNavigation()&&R.preventDefault();u.cancelPendingNavigation();_.h_(this.hostElement,"yt-pending-navigation-cancelled");y.errorMsg&&(R=y.errorMsg.split(" - "),y=Error(R[0]),R.length==2&&R[1]&&(_.Eh(y,R[1]),_.kT(y)),window.location.reload())}};
_.J.onYtHistoryLoad=function(R,y){var u=this;if(_.$B("DISABLE_WARM_LOADS"))window.location.reload();else{(R=y.endpoint)&&Object.keys(R).length||(R=null);var v=y.historyEntry,Q=_.ua().resolve(_.dv),M=_.ua().resolve(_.iD),K=null;v&&v.rootData&&(K=v.rootData);var h=K&&FGJ(K);!K||h||K.filler?R?(Q.navigate(R,!0),wE7(this,R)):(y.legacyBorder||h||(y.JSC$29960_savedComponentState==null&&K==null?_.kT(new _.OL("Incomplete history entry",y.forward)):_.Uh(new _.OL("Malformed history entry",y.JSC$29960_savedComponentState,
y.forward,K))),window.location.reload()):(_.R$L({isHot:!0}),_.E9({webInfo:{navigationReason:"h"}}),_.lGP(),_.qQ("srt"),_.qQ("pdc"),this.cancelPendingTasks(),NoP(this,y.forward,K),K.player&&(K.player.loaded=!1),wE7(this,R),_.Pyb(Q,R||{},K,2,{},!1,y).then(function(){u.setPageOffset(M.getCurrentPage(),v.scrollTop||0)}))}};
_.J.initHistoryManager=function(R){if(!this.hasNavigated){this.hasNavigated=!0;var y=_.hw(this.hostElement).querySelector("#page-manager").getCurrentData();R=isNaN(R)?this.getPageOffset():R;var u=_.ua().resolve(_.dv).currentEndpoint;this.replaceState(u,y,R)}};
_.J.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.J.onYtNavigateStart=function(R,y){this.cancelPendingTasks();y.noProgressBar||(R=_.ua().resolve(_.yN(V1K)))&&R.start();R=this.hasPendingNavigation?null:this.data;var u=_.ua().resolve(_.iD),v,Q,M;_.f("kevlar_use_vimio_behavior")&&!((v=y.endpoint)==null?0:(Q=v.commandMetadata)==null?0:(M=Q.webCommandMetadata)==null?0:M.ignoreNavigation)&&(v=u.getCurrentPage())&&v.disconnectVisibilityRoot();u.prepareForNavigation(y.pageType,y.endpoint);_.f("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.KQ(1,
"pcl"),_.IJ(this.pagePreparer,u.preparePage.bind(u,y.pageType,y.endpoint)));v=this.getPageOffset();this.initHistoryManager(v);y.reload||this.hasPendingNavigation?this.replaceState(y.endpoint,R,v):(R==null?void 0:R.page)==="watch"&&y.pageType==="watch"&&_.f("kevlar_replace_watch_to_watch_history_state")?this.replaceState(y.endpoint,R,v):(R==null?void 0:R.page)!=="shorts"||y.pageType!=="shorts"||y.endpoint.reelWatchEndpoint.sequenceParams||_.f("short_to_short_back_nav_killswitch")?y.type!="navigate-back"&&
y.type!="navigate-forward"&&(y.pageType==="shorts"&&_.Ko(this.hostElement,"yt-shorts-reset"),this.saveAndPush(y.url,y.endpoint,R,v)):(_.f("web_enable_delay_shorts_sequence_call")&&(y.endpoint.reelWatchEndpoint.sequenceParams=R==null?void 0:R.cachedSequenceParams,y.endpoint.reelWatchEndpoint.sequenceProvider=R==null?void 0:R.cachedSequenceProvider),this.replaceState(y.endpoint,R,0));this.hasPendingNavigation=!0};
var ToI=function(R){R.hasPendingNavigation=!1;(R=_.ua().resolve(_.yN(V1K)))&&R.finish()};
ch.prototype.onYtNavigateError=function(R,y){ToI(this);R=this.get("endpoint.commandMetadata.webCommandMetadata.url",y);var u=_.SS(window.location.href);R&&!u.pbjreload&&(y=y.navigationErrorReason||"10",_.f("kevlar_parent_on_pbjreload")&&(u={csn:_.$I()},this.get("data.endpoint.clickTrackingParams")&&(u.itct=this.data.endpoint.clickTrackingParams),_.uh(R,u)),_.z2(_.YB(R,{pbjreload:y})))};
ch.prototype.onYtNavigateCache=function(R,y){var u=this,v=y.url,Q=y.endpoint,M=y.data;R=!!y.miniplayer;y=!!y.skipHistory;if(v&&Q&&M){var K=this.getPageOffset(),h=this.data||null;y||this.saveAndPush(v,Q,h,K);v=_.Pyb(_.ua().resolve(_.dv),Q,M,R?4:3,{},R);R&&v.then(function(){u.dataUpdatePromise&&u.dataUpdatePromise.then(function(){var b=_.ua().resolve(_.iD);u.setPageOffset(b.getCurrentPage(),0)})})}};
ch.prototype.onYtNavigateFinish=function(R,y){var u=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){oOJ(u,y.fromHistory)})};
var oOJ=function(R,y){ToI(R);if(R.pendingPlayerOnResponseReceivedActions){for(var u=_.V(R.pendingPlayerOnResponseReceivedActions),v=u.next();!v.done;v=u.next())_.O4(v.value,R.hostElement);R.pendingPlayerOnResponseReceivedActions=[]}u=_.ua().resolve(_.iD);y||!R.hasNavigated||_.f("web_disable_scroll_on_navigate_finish")||((y=u.getCurrentPage())?y.is==="ytd-shorts"||R.tabGesturesIsActive||R.setPageOffsetForNavigation(y,0):_.kT(Error("$k")));_.s7(function(){_.s7(function(){_.qQ("pda")})})};
ch.prototype.onYtNavigate=function(R){if(!R.detail.endpoint){var y=new _.OL("Error: Missing yt-navigate endpoint from target:",R.target,R.target.nodeName);_.dI(y)}if(y=_.f("cold_missing_history"))y=ag(),y.init(!1),y=!(y.browserHistory.boundHistoryReplaceState&&y.browserHistory.boundHistoryPushState);if(y){_.kB("DISABLE_WARM_LOADS",!0);y=new _.OL("Failed to initialize history manager",this.getDebugString());var u=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
u?_.kT(y):_.dI(y)}y=R.detail.endpoint;var v,Q;_.f("debug_forward_web_query_parameters")&&((v=y.commandMetadata)==null?0:(Q=v.webCommandMetadata)==null?0:Q.url)&&(y=JSON.parse(JSON.stringify(y)),y.commandMetadata.webCommandMetadata.url=_.XoT(y.commandMetadata.webCommandMetadata.url,window.location.search));R={type:0,command:y,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}};_.f("kevlar_yt_navigate_command_handler")?(v=_.ua().resolve(_.jX),R.form.skipDefaultElement=!0,v.resolveCommand(y,{form:R.form})):this.handleNavigate(R)};
ch.prototype.handleNavigate=function(R){this.hasSetScrollTopForNavigation=!1;var y=_.ua().resolve(_.dv),u=R.form||{};y.navigate(R.command,u.reload,u.params,u.tempData,u.requestType,u.createScreenConfig,u.ignoreConfirmation,u.requestForm)&&wE7(this,R.command,u.tempData)};
ch.prototype.onYtPageDataFetched=function(R,y){try{_.oPc().reset();this.data=y.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.ua().resolve(_.iD).updatePageData(this.data);if(!_.f("web_service_params_response_processor")){var u=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);u&&Ph8(u);var v=this.get("response.responseContext.serviceTrackingParams",
this.data);v&&Ph8(v)}var Q=this.get("playerResponse.onResponseReceivedActions",this.data);Q&&(Q=xH7(this,Q));Q&&_.wr(this.hostElement,Q,this.hostElement);var M=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),K=this.get("response.responseContext.consistencyTokenJar",this.data);if(M||K){var h=_.T0v(),b=(0,_.Ps.getValues)(h.tokenJars);M&&h.replace(b,M);K&&h.replace(b,K)}}catch(N){_.dI(N)}};
var wE7=function(R,y,u){try{R.onYtEndpointChangeHandler(y,u)}catch(v){_.dI(v)}};
_.J=ch.prototype;_.J.onYtEndpointChangeHandler=function(){};
_.J.setPageTitle=function(R){R=(this.pageTitle=R)?R+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+R};
_.J.onYtUpdateTitle=function(R,y){this.setPageTitle(y)};
_.J.setUnseenNotificationCount=function(R){this.unseenNotificationCount=R;this.setPageTitle(this.pageTitle)};
_.J.handleUpdateNotificationsUnseenCountAction=function(R){_.e(R,mLM)&&((R=_.e(R,mLM).unseenCount)?this.setUnseenNotificationCount(R):this.setUnseenNotificationCount(0))};
_.J.handleClearCookieAction=function(R){var y;(R=(y=_.e(R,EXp))==null?void 0:y.cookieName)&&_.Q3c(R)};
_.J.onYtUpdateUnseenNotificationCount=function(R,y){this.setUnseenNotificationCount(y)};
_.J.loadData=function(R){var y=this;this.loadDepsPromise.then(function(){var u=_.ua().resolve(_.yN(_.dv));u||_.dI(Error("al"));if(R&&R.response){if(!R.endpoint){var v=_.aR(window.document.location.href)||"/",Q="";if(v==="/"||v.startsWith("/?"))Q="WEB_PAGE_TYPE_BROWSE";R.endpoint={commandMetadata:{webCommandMetadata:{url:v,webPageType:Q,rootVe:3854}}}}_.Pyb(u,R.endpoint,R,5,{})}else R.endpoint?u.navigate(R.endpoint):u.navigate(_.nx);_.WG.cancelJob(y.zwiebackInitJobId);y.zwiebackInitJobId=_.WG.addLowPriorityJob(nJI)})};
var ag=function(){return _.ua().resolve(_.f_)};
ch.prototype.getDebugString=function(){return ag().getDebugString()};
ch.prototype.getThirdPartyManipulationSuspected=function(){return ag().getThirdPartyManipulationSuspected()};
ch.prototype.replaceState=function(R,y,u){ag().saveAndReplace(R,y,u)};
ch.prototype.saveAndPush=function(R,y,u,v){ag().saveAndPush(R,y,u,v)};
var FGJ=function(R){return _.e(R.endpoint,_.zM)||_.e(R.endpoint,_.PV)?!0:!R||isNaN(R.expirationTime)?!1:(0,_.uQ)()>R.expirationTime},NoP=function(R,y,u){var v=R.get("response.trackingParams",u),Q=_.Ef(),M=_.$I();
if(v&&Q&&M&&(v=R.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",u),!v&&u.rootVe&&(v=u.rootVe),Q=y?"forwardButton":"backButton",y=R.get("playerResponse.topbar.desktopTopbarRenderer."+Q+".buttonRenderer.command.clickTrackingParams",R.data),R=R.get("response.topbar.desktopTopbarRenderer."+Q+".buttonRenderer.command.clickTrackingParams",R.data),y=(R=y||R)?_.U4(R):void 0,R=_.GN(),Q=[_.NQ(u)],_.om(R,v,y,{dataPromises:Q,csnToClone:u.csn}),u.graftedVes))for(u=
_.V(u.graftedVes),v=u.next();!v.done;v=u.next())_.x0(R,v.value)};
ch.prototype.onStoreGraftedVeAction=function(R){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(R)):_.kT(Error("bl"))};
var xH7=function(R,y){return y.filter(function(u){for(var v in u)if(IHI[v])return R.pendingPlayerOnResponseReceivedActions.push(u),!0;return!1})};
_.RR.Object.defineProperties(ch.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
ch.prototype.onStoreGraftedVeAction=ch.prototype.onStoreGraftedVeAction;ch.prototype.loadData=ch.prototype.loadData;ch.prototype.onYtUpdateUnseenNotificationCount=ch.prototype.onYtUpdateUnseenNotificationCount;ch.prototype.handleClearCookieAction=ch.prototype.handleClearCookieAction;ch.prototype.handleUpdateNotificationsUnseenCountAction=ch.prototype.handleUpdateNotificationsUnseenCountAction;ch.prototype.setUnseenNotificationCount=ch.prototype.setUnseenNotificationCount;
ch.prototype.onYtUpdateTitle=ch.prototype.onYtUpdateTitle;ch.prototype.setPageTitle=ch.prototype.setPageTitle;ch.prototype.onYtEndpointChangeHandler=ch.prototype.onYtEndpointChangeHandler;ch.prototype.onYtPageDataFetched=ch.prototype.onYtPageDataFetched;ch.prototype.handleNavigate=ch.prototype.handleNavigate;ch.prototype.onYtNavigate=ch.prototype.onYtNavigate;ch.prototype.onYtNavigateFinish=ch.prototype.onYtNavigateFinish;ch.prototype.onYtNavigateCache=ch.prototype.onYtNavigateCache;
ch.prototype.onYtNavigateError=ch.prototype.onYtNavigateError;ch.prototype.onYtNavigateStart=ch.prototype.onYtNavigateStart;ch.prototype.cancelPendingTasks=ch.prototype.cancelPendingTasks;ch.prototype.initHistoryManager=ch.prototype.initHistoryManager;ch.prototype.onYtHistoryLoad=ch.prototype.onYtHistoryLoad;ch.prototype.onYtHistoryPop=ch.prototype.onYtHistoryPop;ch.prototype.onYtNavigateSetPageOffset=ch.prototype.onYtNavigateSetPageOffset;ch.prototype.setPageOffset=ch.prototype.setPageOffset;
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],ch.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ch.prototype,"data",void 0);_.A([_.fu("yt-navigate-set-page-offset"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],ch.prototype,"onYtNavigateSetPageOffset",null);
_.A([_.fu("yt-history-pop"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],ch.prototype,"onYtHistoryPop",null);_.A([_.fu("yt-history-load"),_.p("design:type",Function),_.p("design:paramtypes",[Event,_.z95]),_.p("design:returntype")],ch.prototype,"onYtHistoryLoad",null);_.A([_.fu("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],ch.prototype,"onYtNavigate",null);
_.A([_.fu("yt-update-title"),_.p("design:type",Function),_.p("design:paramtypes",[Event,String]),_.p("design:returntype")],ch.prototype,"onYtUpdateTitle",null);_.A([_.fu("yt-update-unseen-notification-count"),_.p("design:type",Function),_.p("design:paramtypes",[Event,Number]),_.p("design:returntype")],ch.prototype,"onYtUpdateUnseenNotificationCount",null);_.A([_.nu()],ch);iWg.YtdAppBehavior=[_.bW.YtActionHandlerBehavior,ch.prototype];var Sn=function(){var R=_.HN.apply(this,arguments)||this;R._noAccessors=!0;return R};
_.O(Sn,_.HN);Sn.prototype.ready=function(){var R=this;_.hw(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){R.onChange_()})};
Sn.prototype.dataChanged_=function(){_.hw(this.hostElement).querySelector("#checkbox").checked=!1};
Sn.prototype.onChange_=function(){var R=_.hw(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.Ko(this.hostElement,"yt-dismissal-reason-"+R,this.data.feedbackToken)};
Sn.prototype.dataChanged_=Sn.prototype.dataChanged_;_.A([_.r(),_.p("design:type",Object)],Sn.prototype,"data",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Sn.prototype,"dataChanged_",null);_.A([_.nu()],Sn);var BoZ=[Sn.prototype];var YN=function(){var R=_.HN.apply(this,arguments)||this;R.timeoutJobId=0;R.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return R};
_.O(YN,_.HN);YN.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
YN.prototype.startTimeout=function(){var R=this,y=this.data&&this.data.displayDurationSeconds;y&&!this.timeoutJobId&&(this.timeoutJobId=_.Oh(_.WG,function(){_.Ik(R.hostElement,"yt-close-popup-action",[R.is]);R.timeoutJobId=0},y*1E3))};
YN.prototype.cancelTimeout=function(){_.WG.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
YN.prototype.ytdHatsSurveyBehaviorDataChanged=YN.prototype.ytdHatsSurveyBehaviorDataChanged;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],YN.prototype,"ytActionHandlerBehavior",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],YN.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.A([_.nu()],YN);var fHa=[_.bW.YtActionHandlerBehavior,YN.prototype];var e_m=function(R,y){var u;return((u=R.prefixMapping)==null?0:u[y])?R.prefixMapping[y]:R.SHARED_RENDERERS_.hasOwnProperty(y)?"yt":R.prefix},Ln={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}};Ln.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.f("kevlar_mealbar_above_player"),modern:_.f("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"}};
Ln.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};Ln.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};Ln.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
Ln.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)"}};
Ln.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};
Ln.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};
Ln.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};
Ln.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};Ln.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"}};
Ln.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};Ln.TOAST={component:null,properties:{}};var lHp=new function(R,y,u){this.supportedPopups=R;this.navigationEndpointPopupMap=y;this.popupTypeMap=u;this.supportedPopups=R;this.navigationEndpointPopupMap=y;this.popupTypeMap=u}({aboutThisAdRenderer:!0,
adFeedbackRenderer:!0,adInfoDialogRenderer:!0,addToPlaylistRenderer:!0,backstagePostDialogPopupRenderer:!0,bubbleHintRenderer:!0,channelCreationDialogRenderer:!0,channelWarmWelcomeRenderer:!0,channelWarmWelcomeContRenderer:!0,checkboxSurveyRenderer:!0,confirmDialogRenderer:!0,dismissalFollowUpRenderer:!0,enforcementMessageViewModel:!0,fancyDismissibleDialogRenderer:!0,formPopupRenderer:!0,gamingAccountLinkConfirmDialogRenderer:!0,gamingAccountLinkSettingRenderer:!0,hotkeyDialogRenderer:!0,sponsorshipConfirmCancelRenderer:!0,
modalWithTitleAndButtonRenderer:!0,notificationActionRenderer:!0,reportFormModalRenderer:!0,searchSuggestionReportDialog:!0,sharingRenderer:!0,sharingEmbedRenderer:!0,menuPopupRenderer:!0,singleOptionSurveyRenderer:!0,surveyFollowUpRenderer:!0,unifiedSharePanelRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,ypcUpgradeDialogRenderer:!0,ypcOffersOverlayRenderer:!0,redCancelSurveyRenderer:!0,conversationSectionController:!0,
conversationHighPriorityNotificationContentRenderer:!0},{adFeedbackEndpoint:"adFeedbackEndpoint.content",adInfoDialogEndpoint:"adInfoDialogEndpoint.dialog",createBackstagePostDialogEndpoint:"createBackstagePostDialogEndpoint.dialog",confirmDialogEndpoint:"confirmDialogEndpoint.content",managePurchaseEndpoint:"managePurchaseEndpoint.content",modalEndpoint:"modalEndpoint.modal",shareEndpoint:"shareEndpoint",shareEntityEndpoint:"shareEntityEndpoint",unlimitedFamilyFlowEndpoint:"unlimitedFamilyFlowEndpoint.unlimitedFamilyFlowEndpointSupportedRenderers",
openPopupAction:"openPopupAction.popup",ypcCancelSurveyEndpoint:"ypcCancelSurveyEndpoint.surveySupportedRenderers"},{aboutThisAdRenderer:"DIALOG",adFeedbackRenderer:"DIALOG",adInfoDialogRenderer:"RESPONSIVE_DROPDOWN",addToPlaylistRenderer:_.f("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"}),OWZ=new function(){this.prefix="ytd";this.prefixMapping=void 0;this.SHARED_RENDERERS_=
{aboutThisAdRenderer:!0,bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,
ypcUpgradeDialogRenderer:!0,loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$19754_popupConfig=Ln;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 ZWg=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.m5.getInstance()},sQ=function(R,y){var u=R.pageNameToElement.get(y);
if(!u){switch(y){case "watch":var v=_.f("web_watch_force_learning_journey_for_testing")?_.iW("ytd-watch-learning-journey"):_.f("kevlar_watch_fixie")?_.iW("ytd-watch-fixie"):_.f("kevlar_watch_grid")?_.iW("ytd-watch-grid"):_.iW("ytd-watch-flexy");break;case "learning_journey_watch":v=_.iW("ytd-watch-learning-journey");break;case "shorts":v=_.iW("ytd-shorts");break;case "search":v=_.iW("ytd-search");break;case "channel":v=_.iW("ytd-browse");v.pageSubtype="channels";break;case "trending":v=_.iW("ytd-browse");
v.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":v=
_.iW("ytd-browse");v.pageSubtype=y;break;case "browse":v=_.iW("ytd-browse");break;default:_.kT(new _.OL("Error getting page element for type",y))}u=v;R.pageNameToElement.set(y,u)}return u};
ZWg.prototype.preparePage=function(R,y,u){u&&(R=_.Zj(u)||R);if(R!=="watch"&&R!=="learning_journey_watch"){var v=this.elementPoolPopulator,Q=R;Q!=v.targetPage_&&v.pendingPages_.indexOf(Q)>-1&&(v.targetPage_&&(v.pendingPages_.unshift(v.targetPage_),v.abort()),oY7(v,Q),_.Sew(v,Q))}if((v=sQ(this,R))||!_.e(u,_.tc)){v.isAttached||v===y||(v.hidden=!0);if(!v.data&&(R!=="watch"&&R!=="learning_journey_watch"||!_.f("swatcheroo_page_pool_dont_provide_filler_data"))){var M;if(R=(M=_.EB("FILLER_DATA",{})[R])==
null?void 0:M.response)v.data=R}return v}};var HWZ=function(R){this.JSC$31857_clientRoot=R;this.playlistHandlerActionMap={"yt-add-to-playlist-command":$zM,"yt-end-playlist-command":q7a,"yt-recover-playlist-command":mza,"yt-refresh-playlist-command":pNZ,"yt-playlist-remove-videos-action":AwK};_.aN(_.c3.getInstance(),this.playlistHandlerActionMap,this.JSC$31857_clientRoot);GxZ()},nO7;var zy=function(R,y,u){this.apiKey=R;this.endpoint=y;this.confidenceThreshold=u===void 0?.5:u;this.stream=null;this.state=0;this.manuallyClosedChannel=this.channelOpen=!1;this.prefetchResponseSetTimeoutId=-1;this.languageCode="en-us";this.youtubeAssistantRequest=null;this.listeningHandler=function(){};
this.audioDetectedHandler=function(){};
this.completeHandler=function(){};
this.errorHandler=function(){};
this.stopHandler=function(){};
this.transcriptionUpdateHandler=function(){};
this.transcriptionCompleteHandler=function(){};
this.vaaConsentUpdateHandler=function(){};
this.vozEndOfDataTimeout=this.noResponseReceivedTimeout=-1;this.transcribedSpeechResults=[];this.receivedEndOfUtterance=!1;this.startCustomCsiTimeline=!0;this.supportsCrossDomainXhr=!1;this.supportsHttpHeadersOverwriteParam=!0;this.prefetchResponseTimeoutMs=-1;this.isUsingVoz=y==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||y==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
y==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||y==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new fXM};
_.J=zy.prototype;
_.J.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&&_.$F("voice_assistant");_.Xh("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 y;this.prefetchResponseTimeoutMs=(y=R.prefetchResponseTimeoutMs)!=null?y:this.prefetchResponseTimeoutMs;GZJ(this);this.startAudio();rpZ(this)}else this.errorHandler("OFFLINE")};
_.J.stop=function(R){var y=R===void 0?{}:R;R=y.logCancel===void 0?!0:y.logCancel;var u=y.logMicClosed===void 0?!0:y.logMicClosed;var v=y.handleError===void 0?!0:y.handleError;y=y.handleStop===void 0?!0:y.handleStop;this.state!==0&&(R&&g6("voz_cx"),Cn(this,{logMicClosed:u,handleStop:y}),v&&this.errorHandler("ABORTED"))};
_.J.getState=function(){return this.state};
_.J.isSupported=function(){return!0};
_.J.stopAudio=function(R){(R===void 0||R)&&g6("voz_mf")};
_.J.startAudio=function(){g6("voz_vp");return _.NQ(null)};
var PH8=function(R,y){R.channelOpen&&(R.state!==2&&(R.state=2,g6("voz_ss"),R.listeningHandler()),y=new Uint8Array(y),y='{ "audioIn": "'+_.nZ(y)+'" }',R.channel.send(y))},Cn=function(R,y){var u=y===void 0?{}:y;
y=u.logMicClosed===void 0?!0:u.logMicClosed;u=u.handleStop===void 0?!0:u.handleStop;R.vozEndOfDataTimeout>-1&&(clearTimeout(R.vozEndOfDataTimeout),R.vozEndOfDataTimeout=-1);WGI(R);R.stopAudio(y);R.channel&&(R.channelOpen=!1,R.manuallyClosedChannel=!0,R.channel.close(),R.channel=void 0);R.transcribedSpeechResults=[];R.state=0;u&&R.stopHandler()},GZJ=function(R){var y={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 gD(R.endpoint,y);R.channel.open();_.E4(R.channel,"w",function(){var u=R.channel,v=u.send,Q=R.isUsingVoz?"PLACEHOLDER":"example";Q={config:{dialogStateIn:{languageCode:R.languageCode},deviceConfig:{deviceId:Q,deviceModelId:Q},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!R.isUsingVoz)Q.config.requestType=4;else if(R.isUsingVoz&&R.youtubeAssistantRequest){var M=JSON.stringify(R.youtubeAssistantRequest);Q.config.internalIn={youtubeAssistantS3InputJson:M}}v.call(u,Q);R.channelOpen=!0;R.manuallyClosedChannel=!1});
_.E4(R.channel,"x",function(){R.manuallyClosedChannel||(R.channelOpen=!1,R.channel=void 0,Cn(R))});
_.E4(R.channel,"z",function(u){if(u.data){WGI(R);for(var v=0;v<u.data.length;v++){var Q=R,M=u.data[v],K=M.speechResults;if(K)a:{var h=[];M=[];var b=!1;K=_.V(K);for(var N=K.next();!N.done;N=K.next()){N=N.value;if(N.noSpeech){Cn(Q);Q.errorHandler("NO_SPEECH");break a}N.transcript!==void 0&&N.stability!==void 0&&(N.stability<Q.confidenceThreshold&&(b=!0),b?M.push(N.transcript):h.push(N.transcript))}if(h.length!==0||M.length!==0)h=h.join(" "),M=M.join(" "),Q.receivedEndOfUtterance&&!Q.isUsingVoz?Q.isUsingVoz||
Q.completeHandler([h,M]):(b=Q,K=h,N=M,g6("voz_sf"),b.transcriptionUpdateHandler(K,N),b.transcribedSpeechResults=[K,N]),Q.receivedEndOfUtterance&&(g6("voz_eou"),Q.transcriptionCompleteHandler([h,M]),Q.isUsingVoz&&(Q.prefetchResponseTimeoutMs===0?Cn(Q,{logMicClosed:!1,handleStop:!0}):Q.prefetchResponseTimeoutMs>0&&dH8(Q)))}else Q.isUsingVoz&&(M==null?0:M.internalOut)?(M=JSON.parse(M.internalOut.youtubeAssistantS3OutputJson),M.userHasOptedInToVaa||M.vaaConsent?Q.vaaConsentUpdateHandler(!!M.userHasOptedInToVaa,
!!M.vaaConsent):(UH7(Q),M&&(h=Q.transcribedSpeechResults,g6("voz_rqf"),Q.completeHandler(h,M)))):M.eventType==="END_OF_UTTERANCE"?Q.receivedEndOfUtterance=!0:(g6("voz_err"),Q.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.kT(Error("cl")))}}});
_.E4(R.channel,"y",function(u){Cn(R);switch(u.status){case 1:u="WEBCHANNEL_NETWORK_ERROR";break;case 2:u="WEBCHANNEL_SERVER_ERROR";break;default:u="WEBCHANNEL_UNKNOWN_ERROR"}R.errorHandler(u);R.logError(Error(u))})};
zy.prototype.logError=function(R){_.dI(R)};
zy.prototype.isOnline=function(){return!0};
var dH8=function(R){UH7(R);R.prefetchResponseSetTimeoutId=setTimeout(function(){Cn(R,{logMicClosed:!1,handleStop:!0})},R.prefetchResponseTimeoutMs)},UH7=function(R){R.prefetchResponseSetTimeoutId>-1&&(clearTimeout(R.prefetchResponseSetTimeoutId),R.prefetchResponseSetTimeoutId=-1)},rpZ=function(R){WGI(R);
R.noResponseReceivedTimeout=window.setTimeout(function(){Cn(R);R.errorHandler("NO_SPEECH")},11E3)},WGI=function(R){R.noResponseReceivedTimeout>-1&&(window.clearTimeout(R.noResponseReceivedTimeout),R.noResponseReceivedTimeout=-1)},g6=function(R){_.qQ(R,void 0,"voice_assistant")};var R4=function(){zy.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.O(R4,zy);R4.prototype.isSupported=function(){return t0g()};
R4.prototype.startAudio=function(){var R=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.qk(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(v){kZ8(R,v)};
this.processor.connect(this.audioContext.destination);var y=function(v){R.stream=v;if(!R.audioContext)return _.NQ(null);v=R.audioContext.createMediaStreamSource(v);R.processor&&v.connect(R.processor);return _.NQ(null)},u={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?y(this.stream):(u=navigator.mediaDevices.getUserMedia(u))?u.then(y).catch(function(v){Cn(R);v.name&&v.name==="NotAllowedError"?R.errorHandler("NO_MICROPHONE_PERMISSION"):(R.errorHandler("AUDIO_ERROR"),R.logError(v));return _.qk(null)}):(Cn(this),this.errorHandler("AUDIO_ERROR"),_.kT(Error("dl")));
return zy.prototype.startAudio.call(this)};
R4.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(y){y.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;zy.prototype.stopAudio.call(this,R)};
R4.prototype.isOnline=function(){return navigator.onLine};
var kZ8=function(R,y){if(R.audioContext)if(window.OfflineAudioContext){var u=R.audioContext.sampleRate,v=y.inputBuffer.getChannelData(0);y=new window.OfflineAudioContext(1,v.length,16E3);for(var Q=y.createBuffer(1,v.length,u),M=Q.getChannelData(0),K=0,h=0;h<v.length;h++)M[h]=v[h],K+=M[h]*M[h];!R.audioDetected&&Math.sqrt(K/v.length)>.01&&(R.audioDetected=!0,R.audioDetectedHandler());v=y.createBufferSource();v.buffer=Q;v.connect(y.destination);v.start(0);y.oncomplete=function(b){b=b.renderedBuffer.getChannelData(0);
for(var N=Math.floor(16384E3/u),T=new Int16Array(N),x=0;x<N;++x)T[x]=Math.max(-1,Math.min(1,b[x]))*32767;PH8(R,T.buffer)};
y.startRendering()}else EOp(R,y)},EOp=function(R,y){var u=R.audioContext.sampleRate,v=y.inputBuffer.getChannelData(0),Q=Math.floor((u+8E3)/16E3);
u=v.length/Q;y=new Float32Array(u);for(var M=0;M<u;++M)y[M]=v[M*Q];v=new Int16Array(u);for(Q=0;Q<u;++Q)v[Q]=Math.max(-1,Math.min(1,y[Q]))*32767;PH8(R,v.buffer)};var $HZ={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var q$M=function(){this.JSC$19819_audioEnabled=!0;this.audioFeedbackHolder={}};
q$M.prototype.isPlaying=function(R){return R.currentTime>0&&!R.paused&&!R.ended&&R.readyState>2};
var XEa=function(R){for(var y=_.V(Object.values($HZ)),u=y.next();!u.done;u=y.next())u=u.value,R.audioFeedbackHolder[u]=new Audio,R.audioFeedbackHolder[u].src="/s/search/audio/"+u+".mp3",R.audioFeedbackHolder[u].load()},yg=function(R,y){if(R.JSC$19819_audioEnabled!==!1&&y in R.audioFeedbackHolder){for(var u=_.V(Object.values(R.audioFeedbackHolder)),v=u.next();!v.done;v=u.next())v=v.value,R.isPlaying(v)&&v.pause();
R.audioFeedbackHolder[y].currentTime=0;R.audioFeedbackHolder[y].play().catch(function(){})}};var mHo=function(R,y){var u=this;this.store=R;this.service=y;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){u.setState("offline");u.stop()};
this.audioPlayer=new q$M;var v;(v=this.audioPlayer)==null||XEa(v)};
_.J=mHo.prototype;_.J.getService=function(){return this.service};
_.J.isEnabled=function(){return!!this.service};
_.J.isSupported=function(){var R;return(R=this.service)==null?void 0:R.isSupported()};
_.J.start=function(){var R=this,y,u,v,Q,M,K,h,b,N,T,x,B,l;return _.I(function(Z){switch(Z.nextAddress){case 1:R.store.dispatch(tV7("",""));if(!navigator.onLine)return R.setState("offline"),Z.return();window.addEventListener("offline",R.handleOfflineEvent);R.stream=null;if(!R.permissionsSupported){Z.jumpTo(2);break}_.wY(Z,3);return Z.yield(Ap8(R),5);case 5:y=Z.yieldResult;if(!y)return(u=R.audioPlayer)==null||yg(u,"failure"),Z.return();R.service.stream=R.stream;R.setState("listening");_.c5(Z,2);break;
case 3:_.B$(Z),R.permissionsSupported=!1;case 2:v={context:_.KH4(_.QO())},v.youtubeAssistantParams={searchParams:{inlineSearchResponse:R.enableInlineSearchResponse}},Q=function(P,k){R.store.dispatch(cea("transcribing"));R.store.dispatch(tV7(P,k))},M=function(){var P;
(P=R.audioPlayer)==null||yg(P,"open");R.setState("listening")},K=function(){R.setState("transcribing")},h=function(P){R.setErrorState(P)},b=function(P,k){var E;
(E=R.audioPlayer)==null||yg(E,"success");k&&(_.f("kevlar_voice_search_inline_search")&&(R.responseProcessor=_.ua().resolve(_.Grc),R.responseProcessor&&(E=k.navigationAction,P=k.prefetchedSearchResponse,E&&P&&(E=(new _.FVK).JSC$13024_getStoreKey(E),_.LR(R.responseProcessor,P,E)))),R.JSC$19837_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",k))},N=function(){window.removeEventListener("offline",R.handleOfflineEvent)},T=_.xBU(!1),x=T.Authorization!=null,B=R.enableFirstPartyAuth||
R.enableFPAForSignedInUsers&&x?T:{"X-Goog-Visitor-Id":T["X-Goog-Visitor-Id"]},l={completeHandler:b,
errorHandler:h,listeningHandler:M,audioDetectedHandler:K,stopHandler:N,transcriptionUpdateHandler:Q,youtubeAssistantRequest:v,languageCode:DHZ(),additionalHeaders:B,supportsCrossDomainXhr:R.enableFirstPartyAuth||R.enableFPAForSignedInUsers&&x,supportsHttpHeadersOverwriteParam:!R.disableHttpHeadersOverwrite},R.service.start(l),_.f$(Z)}})};
_.J.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.J.reset=function(){this.store.dispatch(_.iE({type:"RESET_VOICE_SEARCH_STATE"}))};
_.J.setState=function(R){this.store.dispatch(cea(R))};
_.J.setErrorState=function(R){switch(R){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var y;(y=this.audioPlayer)==null||yg(y,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)Ap8(this);else{var u;(u=this.audioPlayer)==null||yg(u,"failure");this.setState("permission-denied")}break;case "ABORTED":var v;(v=this.audioPlayer)==null||yg(v,"no_input");break;default:var Q;(Q=this.audioPlayer)==
null||yg(Q,"no_input");this.setState("timeout")}};
var Ap8=function(R){var y,u;return _.I(function(v){switch(v.nextAddress){case 1:return v.yield(navigator.permissions.query({name:"microphone"}),2);case 2:y=v.yieldResult;if(y.state==="granted")return v.return(!0);if(y.state==="denied")return R.setState("permission-denied"),v.return(!1);R.setState("permission");u={audio:{sampleSize:16,channelCount:1},video:!1};_.wY(v,3);return v.yield(navigator.mediaDevices.getUserMedia(u),5);case 5:return R.stream=v.yieldResult,v.return(!0);case 3:return _.B$(v),
R.setState("permission-denied"),v.return(!1)}})},DHZ=function(){var R=_.EB("INNERTUBE_CONTEXT_HL"),y=_.EB("INNERTUBE_CONTEXT_GL");
return R.indexOf("-")>-1?R:R+"-"+y};var pEP=function(R,y,u){mHo.call(this,y,u);this.JSC$19837_actionRouter=R;this.enableInlineSearchResponse=_.f("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.f("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.f("kevlar_voice_search_enable_fpa_signedin_users")},t1K;
_.O(pEP,mHo);
var cpZ=function(){if(!t1K){var R="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.f("kevlar_voice_search_auth_enabled")||_.f("kevlar_voice_search_use_yt_endpoint")?R="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.f("kevlar_voice_search_use_fp_endpoint")&&(R="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");t1K=
new pEP(_.c3.getInstance(),_.Qe(),new R4(_.EB("VOZ_API_KEY"),R,.5))}return t1K};var aHK=function(R){this.JSC$19841_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$19841_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=_.V(this.eventListeners);for(var y=R.next();!y.done;y=R.next()){var u=_.V(y.value);y=u.next().value;u=u.next().value;u=_.V(u);for(var v=u.next();!v.done;v=u.next()){var Q=
_.V(v.value);v=Q.next().value;Q=Q.next().value;y.addEventListener(v,Q)}}_.aN(_.c3.getInstance(),this.autonavPauseActionMap,this.JSC$19841_clientRoot)},S$p,Y$P=function(R){return _.f("kevlar_autonav_popup_filtering")?(R=_.vN(R))?R.hasAttribute("prevent-autonav"):!0:!0};
_.J=aHK.prototype;_.J.onIronOverlayOpened=function(R){Y$P(R)&&(this.autonavPauseReasons.overlayOpen=!0,uM(this))};
_.J.onIronOverlayClosed=function(R){Y$P(R)&&(this.autonavPauseReasons.overlayOpen=!1,uM(this))};
_.J.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;uM(this)};
_.J.onYtAutonavPauseBlur=function(){var R=this;_.WG.addJob(function(){R.isInBackground()||(R.autonavPauseReasons.inputBoxFocus=!1,uM(R))},8,0)};
_.J.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;uM(this)};
_.J.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;uM(this)};
_.J.onYtAutonavPauseScroll=function(){var R=_.ua().resolve(_.iD);R.isOnWatch()&&(R=R.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=R.getBoundingClientRect().top<-200,uM(this))};
_.J.onYtAutonavPauseUserEngagement=function(R){var y=this;if(_.f("user_engagement_enable_autoplay_pause_feature")){var u=Number(R.lowEngagementThresholdMs);isNaN(u)||u<=0||R.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.FA("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.ua().resolve(_.Xj),_.QF()<u?_.Oh(_.WG,function(){_.FA("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.nka()?(this.userEngagementCsn=_.$I(),_.Oh(_.WG,function(){_.FA("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
y.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,uM(this)):_.FA("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.e8P(Error("el`"+JSON.stringify(R)))};
_.J.onYtAutonavPausePlayer=function(R){this.autonavPauseReasons.requestedByPlayer=!!R.detail;uM(this)};
_.J.onYtAutonavVisibilityChanged=function(){var R=this,y,u,v;return _.I(function(Q){if(Q.nextAddress==1)return(y=_.I8())?Q.yield(y.getPlayerPromise(),2):Q.return();u=Q.yieldResult;v=u.isMuted()||u.getVolume()===0;R.autonavPauseReasons.backgroundAndMute=R.isInBackground()&&v;uM(R);_.f$(Q)})};
_.J.onYtAutonavPausePlayerEnded=function(){_.ua().resolve(_.Xj);var R=144E5;_.f("user_engagement_enable_autoplay_pause_feature")||_.f("is_part_of_any_user_engagement_experiment")||(R=45E5);this.autonavPauseReasons.longIdle=_.QF()>R;LGo(this);uM(this)};
_.J.onYtUserActivity=function(){var R=this;this.autonavPauseReasons.userEngagement&&(_.Oh(_.WG,function(){_.FA("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",R.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,uM(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.Oh(_.WG,function(){_.FA("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",R.userEngagementCsn);_.W3()}),this.autonavPauseReasons.youthereLactExperiment=!1,uM(this));
this.autonavPauseReasons.longIdle&&!_.f("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,uM(this))};
_.J.isInBackground=function(){var R=window.document.visibilityState;return!(!R||R==="visible")};
var uM=function(R){for(var y=!1,u=_.V(Object.values(R.autonavPauseReasons)),v=u.next();!v.done;v=u.next())v=v.value,y=y||v;y?_.Js.getInstance().pause(R.autonavPauseReasons):(R=_.Js.getInstance(),R.autonavState_==3?(R.setState(2,!1,!1),R.autonavPauseReason_=void 0):R.autonavState_==1&&(R.disabledAutonavPauseReason_=void 0))},LGo=function(R){var y=!1;
if(_.f("enable_autoplay_pause_by_lact")){_.ua().resolve(_.Xj);y=_.JT("autoplay_pause_by_lact_sec")*1E3;var u=_.JT("autoplay_pause_by_lact_sampling_fraction");(y=_.QF()>=y&&Math.random()<u)&&!_.nka()&&(_.Oh(_.WG,function(){_.FA("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),y=!1)}y!==R.autonavPauseReasons.youthereLactExperiment&&(R.autonavPauseReasons.youthereLactExperiment=y)&&(R.userEngagementCsn=_.$I(),_.Oh(_.WG,function(){_.FA("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",R.userEngagementCsn)}));
R.autonavPauseReasons.userEngagement&&_.Oh(_.WG,function(){_.FA("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",R.userEngagementCsn)})};
aHK.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.FA("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.W3(),this.autonavPauseReasons.youthereLactExperiment=!1,uM(this));this.autonavPauseReasons.userEngagement&&(_.FA("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,uM(this))};
aHK.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var vl=function(){var R=_.W.apply(this,arguments)||this;R.miniGuideVisible=!1;R.guideOpened=_.f("disable_initial_guide_state_fix")?!1:R.canFitPersistentGuide(R.initialBodyClientWidth);R.guideUserStateOpened=R.getInitialGuideUserStateOpened();R.isFullscreenShorts=!1;R.miniGuideWidthThreshold=_.JT("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=_.uD();R.initialGuideDataFetchFailed=!1;R.initialLoad=!0;R.guideRenderers=new Set;R.isMouseOverGuide=!1;R.sessionUserManuallyExpandedGuideState=!1;R.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};
return R};
_.O(vl,_.W);_.J=vl.prototype;_.J.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.J.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.J.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.J.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.J.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.J.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.J.ready=function(){_.ua().addProvider({provide:_.YC,useValue:this.hostElement})};
_.J.attached=function(){var R=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.BN(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.BN(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.BN(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.BN(this,this.onYtGuideShow));_.gn(this,function(){R.animationTransitionDuration=200})};
_.J.detached=function(){document.removeEventListener("yt-navigate-finish",_.BN(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.BN(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.BN(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.BN(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.BN(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.BN(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.BN(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.J.getData=function(){return this.data};
_.J.load=function(){var R=this,y,u,v,Q;return _.I(function(M){switch(M.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=R.lateDataResolver.resolve.bind(R),M.return(R.lateDataResolver.promise);if(window.ytInitialGuideData)return y=_.uD(),y.resolve(window.ytInitialGuideData),M.return(y.promise);v=!1;_.wY(M,2);return M.yield(R.fetchGuideData(),4);case 4:u=M.yieldResult;_.c5(M,3);break;case 2:Q=_.B$(M),Q.message==="Returned error"&&(v=
!0);case 3:if(u)return M.return(u);R.onYtGuideClose();v||(R.initialGuideDataFetchFailed=!0);return M.return(R.lateDataResolver.promise)}})};
_.J.fetchGuideData=function(){var R=this,y,u,v,Q,M,K,h;return _.I(function(b){if(b.nextAddress==1)return y=_.ua(),R.guidePromise||(u=y.resolve(_.Dj),R.guidePromise=_.yB(u,toH)),b.yield(R.guidePromise,2);if(b.nextAddress!=3)return v=b.yieldResult,Q=y.resolve(_.ig),b.yield(Q(),3);(M=b.yieldResult)&&((K=v)==null?void 0:(h=K.responseContext)==null?void 0:h.maxAgeSeconds)!==0&&M.put("service:guide:fallback",new _.Td({innertubeResponse:v}));return b.return(v)})};
_.J.initializeGuideDataIfEmpty=function(){var R=this,y,u;return _.I(function(v){if(v.nextAddress==1){if(!R.initialGuideDataFetchFailed||R.data)return v.return();_.wY(v,2);return v.yield(R.fetchGuideData(),4)}if(v.nextAddress!=2)return(y=v.yieldResult)&&R.lateDataResolver.resolve(y),_.c5(v,0);u=_.B$(v);_.kT(u);_.f$(v)})};
_.J.initializeGuideData=function(){var R=this,y;return _.I(function(u){switch(u.nextAddress){case 1:return _.TK(VCM(),{mainAppWeb:_.gw()}),_.wY(u,2),u.yield(R.load(),4);case 4:R.data=u.yieldResult;_.c5(u,3);break;case 2:_.B$(u),_.o2(VCM(),"FAILURE");case 3:y=R.data&&R.data.items&&R.data.items.length>0?"SUCCESS":"FAILURE",_.o2(VCM(),y),_.f$(u)}})};
_.J.setGuideData=function(R){var y=this,u,v;return _.I(function(Q){if(Q.nextAddress==1)return y.disabled?Q.return():y.data?(R.data=y.data,y.guideRenderers.add(R),Q.return()):Q.yield(y.initializeGuideData(),2);y.graftGuideToPage();u=_.$B("IS_HOMEPAGE_COLD")?"eop":void 0;_.f("disable_element_pool_populator")?y.setGuideDataAfterInit(R):(v=new _.KQ(1,u),_.IJ(v,y.setGuideDataAfterInit.bind(y,R)));_.f$(Q)})};
_.J.setGuideDataAfterInit=function(R){R.data=this.data;R.markDirty();this.guideRenderers.add(R);_.s7(function(){_.qQ("gle")});
_.gn(this,function(){_.qQ("gpe")})};
_.J.graftGuideToPage=function(){if(this.data){var R=this.data&&this.data.trackingParams;R&&(R=_.U4(R),_.Br(_.GN(),R))}};
_.J.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.BN(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.J.onDrawerOpenedChanged=function(R,y){!y.value&&this.guideOpened&&(this.guideOpened=!1)};
_.J.onYtGuideToggle=function(R){var y=this.guideOpened;this.guideOpened=!y;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var u=_.O9();_.Zq(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;u.save()}this.updateGuideDrawerElementState();if(this.guideElement){var v;this.guideOpened&&((v=R.detail)==null?0:v.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.BN(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.BN(this,this.onAppDrawerTransitioned))}y||this.initializeGuideDataIfEmpty()};
_.J.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.BN(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.Y2(this.guideElement)};
_.J.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.BN(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(DrH(this.guideOpened))};
_.J.guidePersistentAndVisibleChanged=function(){_.h_(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.J.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.iE({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.J.miniGuideVisibleChanged=function(){_.h_(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.J.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(DrH(this.guideOpened)),this.initialLoad=!1);_.h_(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.J.activeEndpointChanged=function(){_.h_(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.J.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.J.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()};
_.J.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()};
_.J.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.J.getGuideOpened=function(){return this.guideOpened};
_.J.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.J.getActiveEndpoint=function(){return this.activeEndpoint};
_.J.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.J.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&&_.Ko(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.J.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.f("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.J.handleGuideMouseLeave=function(){var R=this;!this.sessionUserManuallyExpandedGuideState&&_.f("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.zJ(this,"handleGuideMouseLeave",function(){R.isMouseOverGuide||!R.guideOpened||R.miniGuideVisible||(R.guideOpened=!1,R.updateGuideDrawerElementState())},100))};
_.J.computeGuidePersistentAndVisible=function(){var R=this;_.zJ(this,"computeGuidePersistentAndVisible",function(){R.guidePersistentAndVisible=R.guideOpened&&R.guidePersistent;R.guideIsVisibleButNotPersistent=!(!R.guideOpened||R.guidePersistent)})};
_.J.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.J.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.J.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.J.startLoadingWatch=function(){this.closeGuide()};
_.J.startLoadingShorts=function(){_.f("web_hide_guide_on_shorts")&&this.closeGuide()};
_.J.onYtNavigateFinish=function(R,y){if(!_.wV||y){this.activeEndpoint=y.endpoint;this.pageType=y.pageType;this.pageUrl=y.response.url;var u,v;R=(v=_.e((u=y.endpoint)==null?void 0:u.commandMetadata,_.QL))==null?void 0:v.url;!this.pageUrl&&R&&(this.pageUrl=R);_.f("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.J.getVisibleGuideRenderer=function(){for(var R=_.V(this.guideRenderers),y=R.next();!y.done;y=R.next())if(y=y.value,this.miniGuideVisible&&y.is==="ytd-mini-guide-renderer"||this.guideOpened&&y.is==="ytd-guide-renderer")return y;return null};
_.J.markGuideRendererDirty=function(R){if(R){typeof R.markDirty==="function"&&R.markDirty();R=_.V([].concat(_.P$(_.hw(R).children)));for(var y=R.next();!y.done;y=R.next())this.markGuideRendererDirty(y.value)}};
_.J.persistentGuideEnabled=function(R,y){if(!y||R==="watch"||R==="settings"||R==="shorts"&&this.isFullscreenShorts||_.f("reels_web_disable_persistent_guide_shorts")&&R==="shorts")return!1;var u=_.Fq(y)||"";return _.f("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(v){return u===v}):!this.persistentGuideBlockedPagePathRegex.test(u)};
_.J.canFitPersistentGuide=function(R){var y=_.JT("kevlar_persistent_guide_width_threshold",1312);return y===-1||_.f("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:R>y};
_.J.canFitMiniGuide=function(R){return this.miniGuideWidthThreshold===-1?!1:R>this.miniGuideWidthThreshold};
_.J.onResize=function(){var R=this;_.zJ(this,"calculateGuideState",function(){R.onResizeDebounced()})};
_.J.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.J.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.J.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.J.getInitialGuideUserStateOpened=function(){return _.f("web_force_mini_guide_default")?!1:!_.O9().getFlag(109)};
_.RR.Object.defineProperties(vl.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.EB("initialBodyClientWidth")||window.innerWidth}}});
vl.prototype.onResize=vl.prototype.onResize;vl.prototype.observeForMiniGuideVisible=vl.prototype.observeForMiniGuideVisible;vl.prototype.computeGuidePersistentAndVisible=vl.prototype.computeGuidePersistentAndVisible;vl.prototype.cachedClientWidthChanged=vl.prototype.cachedClientWidthChanged;vl.prototype.resetGuide=vl.prototype.resetGuide;vl.prototype.activeEndpointChanged=vl.prototype.activeEndpointChanged;vl.prototype.guideOpenedChanged=vl.prototype.guideOpenedChanged;
vl.prototype.miniGuideVisibleChanged=vl.prototype.miniGuideVisibleChanged;vl.prototype.guideIsVisibleButNotPersistentChanged=vl.prototype.guideIsVisibleButNotPersistentChanged;vl.prototype.guidePersistentAndVisibleChanged=vl.prototype.guidePersistentAndVisibleChanged;vl.prototype.onGuideElementChanged=vl.prototype.onGuideElementChanged;vl.prototype.onGuidePersistentChanged=vl.prototype.onGuidePersistentChanged;vl.prototype.onRenderGuideChanged=vl.prototype.onRenderGuideChanged;
vl.prototype.onActiveEndpointChanged=vl.prototype.onActiveEndpointChanged;vl.prototype.onMiniGuideVisibleChanged=vl.prototype.onMiniGuideVisibleChanged;vl.prototype.onGuideIsVisibleButNotPersistentChanged=vl.prototype.onGuideIsVisibleButNotPersistentChanged;vl.prototype.onGuidePersistendAndVisibleChanged=vl.prototype.onGuidePersistendAndVisibleChanged;_.A([_.n(_.qv),_.p("design:type",Object)],vl.prototype,"ironResizableBehavior",void 0);
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],vl.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],vl.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],vl.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],vl.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Boolean)],vl.prototype,"disabled",void 0);
_.A([_.r(),_.p("design:type",Boolean)],vl.prototype,"guidePersistentAndVisible",void 0);_.A([_.e0("guidePersistentAndVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vl.prototype,"onGuidePersistendAndVisibleChanged",null);_.A([_.r(),_.p("design:type",Boolean)],vl.prototype,"guideIsVisibleButNotPersistent",void 0);
_.A([_.e0("guideIsVisibleButNotPersistent"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vl.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.A([_.r(),_.p("design:type",Object)],vl.prototype,"miniGuideVisible",void 0);_.A([_.e0("miniGuideVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vl.prototype,"onMiniGuideVisibleChanged",null);_.A([_.r(),_.p("design:type",Boolean)],vl.prototype,"forceMiniGuideClose",void 0);
_.A([_.r(),_.p("design:type",Object)],vl.prototype,"activeEndpoint",void 0);_.A([_.e0("activeEndpoint"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vl.prototype,"onActiveEndpointChanged",null);_.A([_.r(),_.p("design:type",Boolean)],vl.prototype,"renderGuide",void 0);_.A([_.e0("renderGuide"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vl.prototype,"onRenderGuideChanged",null);
_.A([_.r(),_.p("design:type",Object)],vl.prototype,"guideOpened",void 0);_.A([_.r(),_.p("design:type",Boolean)],vl.prototype,"guidePersistent",void 0);_.A([_.e0("guidePersistent"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vl.prototype,"onGuidePersistentChanged",null);_.A([_.r(),_.p("design:type",Object)],vl.prototype,"guideUserStateOpened",void 0);_.A([_.r(),_.p("design:type",String)],vl.prototype,"pageUrl",void 0);
_.A([_.r(),_.p("design:type",String)],vl.prototype,"pageType",void 0);_.A([_.r(),_.p("design:type",Number)],vl.prototype,"cachedClientWidth",void 0);_.A([_.r(),_.p("design:type",Object)],vl.prototype,"guideElement",void 0);_.A([_.r({selector:_.xY}),_.p("design:type",Object)],vl.prototype,"isFullscreenShorts",void 0);_.A([_.e0("guideElement"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vl.prototype,"onGuideElementChanged",null);
_.A([_.e0("guidePersistentAndVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vl.prototype,"guidePersistentAndVisibleChanged",null);_.A([_.GJ("guideIsVisibleButNotPersistent"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vl.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.A([_.e0("miniGuideVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vl.prototype,"miniGuideVisibleChanged",null);_.A([_.GJ("guideOpened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vl.prototype,"guideOpenedChanged",null);_.A([_.e0("activeEndpoint"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vl.prototype,"activeEndpointChanged",null);
_.A([_.GJ("pageUrl"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vl.prototype,"resetGuide",null);_.A([_.GJ("cachedClientWidth"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vl.prototype,"cachedClientWidthChanged",null);_.A([_.e0("guideOpened","guidePersistent"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vl.prototype,"computeGuidePersistentAndVisible",null);
_.A([_.GJ("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vl.prototype,"observeForMiniGuideVisible",null);_.A([_.fu("iron-resize"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vl.prototype,"onResize",null);_.A([_.q({disableElementRegistration:!0,is:"yt-guide-manager"})],vl);var ssP=_.m(vl,"yt-guide-manager",void 0,{mode:_.TN("kevlar_poly_si_batch_j081")?1:2});var Qg=function(){var R=_.W.apply(this,arguments)||this;R.JSC$19851_keyboardInUse=!1;R.boundHandleCapturedKeydownEvent=function(y){R.handleCapturedKeydownEvent(y)};
return R};
_.O(Qg,_.W);_.J=Qg.prototype;_.J.attached=function(){this.listenToDocument(document)};
_.J.listenToDocument=function(R){R.addEventListener("keydown",_.BN(this,this.onKeyDownEvent));R.addEventListener("keyup",_.BN(this,this.onKeyUpEvent));R.addEventListener("mousedown",_.BN(this,this.onMouseDownEvent));_.f("desktop_keyboard_capture_keydown_killswitch")||R.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);R.addEventListener("yt-page-data-updated",_.BN(this,this.onPageUpdate))};
_.J.detached=function(){this.unlistenFromDocument(document)};
_.J.unlistenFromDocument=function(R){R.removeEventListener("keydown",_.BN(this,this.onKeyDownEvent));R.removeEventListener("keyup",_.BN(this,this.onKeyUpEvent));R.removeEventListener("mousedown",_.BN(this,this.onMouseDownEvent));_.f("desktop_keyboard_capture_keydown_killswitch")||R.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);R.removeEventListener("yt-page-data-updated",_.BN(this,this.onPageUpdate))};
_.J.ready=function(){_.ua().addProvider({provide:_.Ti,useValue:this})};
_.J.isKeyBoardInUse=function(){return this.JSC$19851_keyboardInUse};
_.J.handleCapturedKeydownEvent=function(R){if(R.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(R)};
_.J.onMouseDownEvent=function(){this.JSC$19851_keyboardInUse=!1};
_.J.onPageUpdate=function(){if(_.f("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.f("web_shorts_keyboard_shortcut_usage_log")){_.xt.clear();for(var R=_.V(_.TG),y=R.next();!y.done;y=R.next()){var u=_.V(y.value);y=u.next().value;u=u.next().value;u=_.$6(u);_.xt.set(y,u);_.ak(_.$I(),_.Ef(),u)}_.Bz.clear();R=_.V(_.oF);for(y=R.next();!y.done;y=R.next())u=_.V(y.value),y=u.next().value,u=u.next().value,u=_.$6(u),_.Bz.set(y,u),_.ak(_.$I(),_.Ef(),u);_.Si(_.$I(),_.Ef(),[].concat(_.P$(_.Bz.values()),
_.P$(_.xt.values())));_.Lo(_.$I(),[].concat(_.P$(_.Bz.values()),_.P$(_.xt.values())))}};
_.J.onMiniplayerActiveChange=function(){var R;(R=_.ua().resolve(_.cZ).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(R.document):this.unlistenFromDocument(R.document))};
_.J.ignoreKeyEvent=function(R){if(R.ctrlKey||R.altKey)if(_.f("kevlar_macro_markers_keyboard_shortcut")){if(R.keyCode!==37&&R.keyCode!==39)return!0}else return!0;var y=_.u8(R)||[];return _.PNK(y)?(_.f("web_button_or_anchor_list_item")&&kPa(y,R)&&(this.JSC$19851_keyboardInUse=!0),!0):R.defaultPrevented?(d8(R.keyCode,R.shiftKey,this.isShortsPage),!0):R.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(R):!1};
_.J.isSpacebarClick=function(R){var y=R||window.event;var u;y.composedPath&&typeof y.composedPath==="function"?u=y.composedPath():u=y.path;u&&u.length?y=u[0]:(y=y||window.event,y=y.target||y.srcElement,y.nodeType==3&&(y=y.parentNode));return y&&R.keyCode===32&&(R=y.tagName==="BUTTON"||y.tagName==="A"||y.tagName==="INPUT",y=(y=y.getAttribute("role"))&&(y==="option"||y==="button"||y.indexOf("menuitem")===0),R||y)?!0:!1};
_.J.onKeyDownEvent=function(R){if(!this.ignoreKeyEvent(R)&&(R.keyCode===191&&(R.shiftKey||R.metaKey?R.repeat!=null&&R.repeat||(this.openHotkeyDialog(),d8(R.keyCode,R.shiftKey,this.isShortsPage)):(this.focusSearchBox(),R.preventDefault())),!R.metaKey)){var y=_.ua().resolve(_.cZ);switch(R.keyCode){case 9:this.JSC$19851_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(R);break;case 84:y.pipController.getWindow()&&window.focus();this.toggleTheaterMode(R.keyCode,R.shiftKey);break;case 73:y.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(R.keyCode,R.shiftKey);break;case 70:if(this.isShortsPage&&_.f("web_fullscreen_shorts")){_.WQo();break}this.isMiniplayerActive()?y.pipController.getWindow()&&(y.close(!0),window.focus()):this.passEventToPlayer(R);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(R.keyCode,R.shiftKey):this.closeMiniplayer(R.keyCode,R.shiftKey)||this.passEventToPlayer(R);break;case 13:R.shiftKey&&_.ua().resolve(_.WX).activate(R);break;default:this.passEventToPlayer(R)}}};
_.J.onKeyUpEvent=function(R){if(!this.ignoreKeyEvent(R))if(_.f("web_speedmaster_spacebar_control")&&R.keyCode===32)this.handlePlayerSpaceKey(R,!0);else{var y=this.getPlayerManager();y&&(y=y.getPlayer())&&y.handleGlobalKeyUp(R.keyCode,R.shiftKey,R.ctrlKey,R.altKey,R.metaKey,R.key,R.code)}};
_.J.getPlayerManager=function(){var R=_.I8(),y=_.ua().resolve(_.yN(_.iD));return R&&y&&y.isOnWatch()?R:null};
_.J.passEventToPlayer=function(R,y){var u=this,v,Q,M,K;return _.I(function(h){if(h.nextAddress==1){if(!_.f("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&u.isMiniplayerActive())v=_.ua().resolve(_.cZ).getPlayerElement();else if(u.inlinePreviewIsActive){if(Q=_.h_(u.hostElement,"yt-get-inline-preview-player-action"),(M=Q)==null?0:M[0])v=Q[0]}else v=_.I8();return v?h.yield(v.getPlayerPromise(),3):h.jumpTo(0)}K=h.yieldResult;y?K.handleGlobalKeyUp(R.keyCode,R.shiftKey,R.ctrlKey,R.altKey,R.metaKey,
R.key,R.code):K.handleGlobalKeyDown(R.keyCode,R.shiftKey,R.ctrlKey,R.altKey,R.metaKey,R.key,R.code,R.repeat);R.keyCode!==38&&R.keyCode!==40&&d8(R.keyCode,R.shiftKey,u.isShortsPage);_.f$(h)})};
_.J.focusSearchBox=function(){_.Ko(this.hostElement,"yt-focus-searchbox")};
_.J.openHotkeyDialog=function(){_.Ko(this.hostElement,"yt-open-hotkey-dialog")};
_.J.isMiniplayerActive=function(){return _.ua().resolve(_.cZ).isMiniplayerActive()};
_.J.closeMiniplayer=function(R,y){return this.isMiniplayerActive()?(_.ua().resolve(_.cZ).close(),d8(R,y,this.isShortsPage),!0):!1};
_.J.toggleTheaterMode=function(R,y){var u=_.t6(_.Qe().getState()),v=this.getPlayerManager(),Q=_.f("disable_theater_mode_keyboard")||_.$B("START_IN_FULL_WINDOW_MODE");v&&!Q&&(u=!u,_.ji()&&_.f("external_fullscreen")&&(u=!0),_.Ik(this.hostElement,"yt-toggle-theater-mode",[u]),d8(R,y,this.isShortsPage))};
_.J.toggleMiniplayer=function(R,y){var u=this.getPlayerManager();if(this.isMiniplayerActive()){var v;((v=_.ua().resolve(_.yN(_.iD)))==null?0:v.isOnWatch())?_.ua().resolve(_.cZ).close(!0):_.AV(_.ua().resolve(_.cZ));d8(R,y,this.isShortsPage)}else u&&(_.Ik(this.hostElement,"yt-activate-miniplayer-from-watch-action"),d8(R,y,this.isShortsPage))};
_.J.handlePlayerSpaceKey=function(R,y){var u=!!_.I8()||this.isMiniplayerActive();u=_.f("disable_space_scroll_fix")||u;_.f("global_spacebar_pause")&&!this.isKeyBoardInUse()&&u&&(R.preventDefault(),this.passEventToPlayer(R,y))};
_.J.isPresentingTheaterMode=function(){return _.f("web_watch_enable_tm_esc_key")?_.t6(_.Qe().getState())&&!_.ji():!1};
Qg.prototype.onMiniplayerActiveChange=Qg.prototype.onMiniplayerActiveChange;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Qg.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],Qg.prototype,"ytdReduxBehavior",void 0);_.A([_.r({selector:_.$iO}),_.p("design:type",Boolean)],Qg.prototype,"inlinePreviewIsActive",void 0);_.A([_.r({selector:_.eI8}),_.p("design:type",Boolean)],Qg.prototype,"isShortsPage",void 0);
_.A([_.r({selector:_.X9}),_.p("design:type",Boolean)],Qg.prototype,"miniplayerIsActive",void 0);_.A([_.e0("miniplayerIsActive"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Qg.prototype,"onMiniplayerActiveChange",null);_.A([_.q({disableElementRegistration:!0,is:"yt-hotkey-manager"})],Qg);_.m(Qg,"yt-hotkey-manager",void 0,{mode:_.TN("kevlar_poly_si_batch_j081")?1:2});var jG=function(){var R=_.W.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};
_.O(jG,_.W);_.J=jG.prototype;_.J.ready=function(){_.ua().addProvider({provide:_.S2,useValue:this.hostElement})};
_.J.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_)};
_.J.attached=function(){document.addEventListener("yt-navigate-start",_.BN(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.BN(this,this.onYtNavigateFinish_))};
_.J.detached=function(){document.removeEventListener("yt-navigate-start",_.BN(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.BN(this,this.onYtNavigateFinish_))};
_.J.updatePlaylistEventListeners=function(R,y){y&&!this.playerListenersSetup_?(this.playerManager_=R,this.registerPlaylistEventListeners_(R)):!y&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(R))};
_.J.setPlayer=function(R){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=R};
_.J.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.J.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.J.registerPlaylistEventListeners_=function(R){var y=this;R.getPlayerPromise().then(function(u){y.playerListenersSetup_||(y.ytPlayerListenerBehavior.listenToPlayerEvents(u,y.PLAYER_EVENTS_),y.playerListenersSetup_=!0)})};
_.J.removePlaylistEventListeners_=function(R){var y=this;R.getPlayerPromise().then(function(u){y.playerListenersSetup_&&(y.ytPlayerListenerBehavior.unlistenFromPlayerEvents(u,y.PLAYER_EVENTS_),y.playerListenersSetup_=!1)})};
_.J.setPlaylistComponent=function(R){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.BN(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",
_.BN(this,this.onPlaylistYtNavigate_))};
_.J.setAutoplayRenderer=function(R){this.autoplayData=R};
_.J.setPlaylistData=function(R){this.currentPlaylistData_=R;_.Ko(this.hostElement,"yt-playlist-data-updated");_.Ps.isEmpty(R)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(R)};
_.J.setPlayerPlaybackControlData=function(R){this.playerManager_&&this.playerManager_.updatePlayerComponents(R.playlistPanelRenderer)};
_.J.getPlaylistData=function(){return this.currentPlaylistData_};
_.J.getTempData_=function(R,y){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);y&&(R.autonav="1",_.ua().resolve(_.Xj),y=_.QF(),y>0&&(R.lact=y),this.playerManager_&&(y=this.playerManager_.getPlayer())&&y.shouldSendVisibilityState()&&(y=y.getVisibilityState(),y!=0&&(R.vis=y)));_.f("enable_unknown_lact_fix_on_html5")&&(_.ua().resolve(_.Xj),R.lact=
_.QF());return R};
_.J.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.J.setLoopStateEntityKey_=function(R){var y;this.loopStateEntityKey_=((y=this.getPlaylistLoopData_(R))==null?void 0:y.playlistLoopStateEntityKey)||null};
_.J.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.J.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.J.skipVideo=function(){var R=this,y=_.f("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||y)y=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.Wm(_.WG,function(){R.onPlaylistNext();R.videoSkipJob_=0},y)};
_.J.cancelVideoSkip=function(){this.videoSkipJob_&&(_.WG.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.J.isInBackground_=function(){var R=window.document.visibilityState;return!(!R||R=="visible")};
_.J.onPlaylistIndex_=function(R){this.playlistComponent&&(R=this.playlistComponent.data.contents[R].playlistPanelVideoRenderer.navigationEndpoint,_.Ko(this.hostElement,"yt-navigate",{endpoint:R,tempData:this.getTempData_(R)}))};
_.J.onPlayerStateChange_=function(R){if(R=R==0&&this.playlistComponent&&this.canAutoAdvance_)R=_.Js.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)};
_.J.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.J.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.J.navigateToAutoplayWatchEndpoint_=function(R,y,u){var v=this.playlistComponent.data.currentIndex,Q=this.getNumPlayableVideos_();R=="NORMAL"&&y=="autoplayVideo"&&v+1>=Q&&u||!(R=this.getVideoEndpoint_(R,y))||(u=this.getTempData_(R,u),_.Ko(this.hostElement,"yt-navigate",{endpoint:R,tempData:u}))};
_.J.getNumPlayableVideos_=function(){for(var R=0,y=_.V(this.playlistComponent.data.contents||[]),u=y.next();!u.done;u=y.next())u.value.playlistPanelVideoRenderer&&(R+=1);return R};
_.J.getVideoEndpoint_=function(R,y){if(this.autoplayData&&this.autoplayData.sets)for(var u=0,v=this.autoplayData.sets.length;u<v;u++){var Q=this.autoplayData.sets[u];if(Q.mode==R){if(Q[y])return Q[y];break}}else R=new _.OL("AutoplayData is undefined in playlist manager","Mode: "+R+" endpoint: "+y),_.kT(R)};
_.J.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.J.onPlaylistYtNavigate_=function(R){if(R.detail.endpoint){R.stopPropagation();var y=R.detail;y.tempData=this.getTempData_(R.detail.endpoint);_.Ko(this.hostElement,"yt-navigate",y)}};
_.J.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.J.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.J.playlistLoopStateEntityChanged_=function(R){var y=this,u,v,Q;return _.I(function(M){if(M.nextAddress==1){if(!R)return M.return();u=R.state==="PLAYLIST_LOOP_STATE_ONE";return y.playerManager_?M.yield(y.playerManager_.getPlayerPromise(),3):M.jumpTo(2)}M.nextAddress!=2&&(v=M.yieldResult,v.setLoopVideo(u));Q=R.state==="PLAYLIST_LOOP_STATE_ALL";y.playlistComponent&&(y.playlistComponent.loopOn=Q);_.f$(M)})};
_.J.getPlaylistLoopData_=function(R){var y,u;if(R=R==null?void 0:(y=R.playlistButtons)==null?void 0:(u=y.menuRenderer)==null?void 0:u.topLevelButtons)for(y=_.V(R),u=y.next();!u.done;u=y.next())if(u=u.value,u.playlistLoopButtonRenderer)return u.playlistLoopButtonRenderer};
_.J.getLoopStateCommand_=function(R){var y=this.getPlaylistData(),u;y=((u=this.getPlaylistLoopData_(y))==null?void 0:u.states)||[];var v;R=(v=_.e(y[R?1:2],_.tYL))==null?void 0:v.button;var Q;return(Q=_.e(R,_.aG))==null?void 0:Q.command};
_.J.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)};
_.J.onSleepTimerSettingsChanged_=function(R){this.canAutoAdvance_=R!=="End of video"};
jG.prototype.onPlaylistLoopStateEntityChanged=jG.prototype.onPlaylistLoopStateEntityChanged;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],jG.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.Ra.YtPlayerListenerBehavior),_.p("design:type",_.yH)],jG.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],jG.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],jG.prototype,"loopStateEntityKey_",void 0);
_.A([_.r({selectorArgs:["loopStateEntityKey_"],selector:_.DmL}),_.p("design:type",Object)],jG.prototype,"playlistLoopStateEntity_",void 0);_.A([_.e0("playlistLoopStateEntity_"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jG.prototype,"onPlaylistLoopStateEntityChanged",null);_.A([_.q({disableElementRegistration:!0,is:"yt-playlist-manager"})],jG);_.m(jG,"yt-playlist-manager",void 0,{mode:_.TN("kevlar_poly_si_batch_j081")?1:2});var z_Z,gOP=function(){if(z_Z!==void 0)return z_Z;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return z_Z=R};var Mu=function(){var R=_.W.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};
_.O(Mu,_.W);_.J=Mu.prototype;_.J.getLocation=function(){return window.location.href};
_.J.getCompletionUrl=function(){return _.yL(this.getLocation())};
_.J.containsRedirectState=function(R){return(R=_.kl(_.BSc(R)))?(new URLSearchParams(R)).get("redirect_state")!==null:!1};
_.J.createGalConfig=function(R,y){var u=new IMM;R=u=y?this.getPopupOrRedirectSetting(u,_.EB("LINK_API_KEY"),_.EB("LINK_API_KEY_REDIRECT"),R):hha(u,_.EB("LINK_API_KEY"));R.authUser=_.EB("SESSION_INDEX")||0;R.supportedFlows=new Set([4]);return R.build()};
_.J.getPopupOrRedirectSetting=function(R,y,u,v){this.isGalInteractionPopupMode(v)?(R.interactionMode=0,R=hha(R,y)):(R.interactionMode=1,y=this.getCompletionUrl(),R.completionUrl=y,R=hha(R,u));return R};
_.J.isGalInteractionPopupMode=function(R){if(this.redirectModeProviderAllowlist.has(R))switch(R){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.J.getStatusEntityKeyForProviderId=function(R){return _.Nq(R+":all","accountLinkStatusEntity")};
_.J.findNestedPropValue=function(R,y){var u=!1,v=null;JSON.stringify(R,function(Q,M){u||Q!==y||(u=!0,v=M);return u?null:M});
return v};
_.J.findAccountLinkButtonViewModel=function(R,y){var u=null,v=!1;JSON.stringify(R,function(Q,M){v||M.accountLinkStatusEntityKey!==y||M.accountLinkStatusSecondaryEntityKey||(v=!0,u=M);return v?null:M});
return u};
_.J.executeLinkingSuccessOrFailureCommands=function(R,y,u){var v=null,Q;(y==null?0:(Q=y.url)==null?0:Q.includes("account_sharing"))?v=y==null?void 0:y.response:v=y==null?void 0:y.response;(y=this.findAccountLinkButtonViewModel(v,R))?(R=u?this.findNestedPropValue(y,"onSuccessCommand"):this.findNestedPropValue(y,"onFailureCommand"))?_.ok([R],this.hostElement):_.pG(Error("fl")):_.pG(Error("gl`"+R))};
_.J.handleInitializeRequest=function(R,y){var u=this,v=dqZ(this.createGalConfig(R,!0));this.containsRedirectState(this.getLocation())?nsa(R,v.config,v.galService).then(function(Q){var M=u.getStatusEntityKeyForProviderId(R);if(Q.statusCode===1)y&&u.executeLinkingSuccessOrFailureCommands(M,y,!0),Q=u.getLocation().indexOf("#"),Q!==-1&&window.history.pushState(null,"",u.getLocation().substring(0,Q));else return y&&u.executeLinkingSuccessOrFailureCommands(M,y,!1),Promise.reject(Error(Q.statusMessage))}).catch(function(Q){_.kT(Q);
_.P3("gamingAccountLinkStatusChanged",{serviceId:R,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(Q)}):this.getAccountLinkPromises[R]=v.startLinkingSession({serviceId:R})};
_.J.handleAccountLinkCommand=function(R){_.e(R,gXK)&&this.handleLinkRequest(_.e(R,gXK))};
_.J.handleLinkRequest=function(R){var y=this,u=R.thirdPartyId;if(u)if(this.isGalInteractionPopupMode(u)){var v=function(){y.closeAndFire("ytd-gaming-account-link-setting-renderer",R.onFailureCommand)},Q=function(){y.closeAndFire("ytd-gaming-account-link-setting-renderer",R.onSuccessCommand)};
this.lastCallback=Q;this.getAccountLinkPromises[u].then(function(M){ck8(M).then(function(K){K.statusCode===1?Q():v()})}).catch(function(){v()})}else this.getAccountLinkPromises[u].then(function(M){ck8(M).then(function(K){if(K.statusCode!==1)return Promise.reject(Error(K.statusMessage))})}).catch(function(M){_.kT(M);
_.P3("gamingAccountLinkStatusChanged",{serviceId:u,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(M)})};
_.J.closeAndFire=function(R,y){_.Ik(this.hostElement,"yt-close-popup-action",[R]);y&&_.ok([y],this.hostElement)};
_.J.handleAccountUnlinkCommand=function(R){_.e(R,CLV)&&this.handleUnlinkRequest(_.e(R,CLV))};
_.J.handleUnlinkRequest=function(R){var y=this,u=R.thirdPartyId;if(u){var v=function(){y.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",R.onFailureCommand)},Q=function(){y.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",R.onSuccessCommand)};
this.lastCallback=Q;var M=dqZ(this.createGalConfig(u,!1));this.unlinkUserGal(M,u).then(function(K){K.statusCode===1?Q():v()}).catch(function(){v()})}};
_.J.unlinkUserGal=function(R,y){return R.deleteLink(y)};
_.J.handleLogAccountLinkingEventCommand=function(R){_.f("enable_gel_log_commands")&&_.e(R,RNa)&&(R=_.e(R,RNa).event)&&_.P3("gamingAccountLinkStatusChanged",R)};
_.RR.Object.defineProperties(Mu,{template:{configurable:!0,enumerable:!0,get:function(){return gOP()}}});
_.A([_.n(_.Oj.YtOpenPopupBehavior),_.p("design:type",Object)],Mu.prototype,"ytOpenPopupBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Mu.prototype,"ytActionHandlerBehavior",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-third-party-manager"})],Mu);_.m(Mu,"ytd-third-party-manager",function(){return gOP()},{mode:_.TN("kevlar_poly_si_batch_j081")?1:2});var CHp,RwV=function(){if(CHp!==void 0)return CHp;var R=document.createElement("template");_.H(R,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");R.content.insertBefore(_.t().content.cloneNode(!0),R.content.firstChild);return CHp=R};var yrp=_.RE(["\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      "]),J1=function(){var R=_.W.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.shouldApplyLockupToWatchTransition=_.f("web_thumbnail_to_watch_transition");R.shouldApplySlideTransition=_.VN("web_page_transition_type")==="slide"||_.f("enable_plj_landing_page");R.shouldApplyLearningJourneyTransition=_.f("enable_plj_landing_page");R.TEST_ONLY=void 0;return R};
_.O(J1,_.W);_.J=J1.prototype;_.J.ready=function(){var R=_.ua();R.addProvider({provide:_.iD,useValue:this});R.addProvider({provide:_.HBi,useValue:this})};
_.J.created=function(){this.pagePool=new ZWg;this.contextSwitcher=new m$g};
_.J.attached=function(){_.Ko(this.hostElement,"attached");var R=_.ua().resolve(_.yN(_.AU));R&&(this.contextSwitcher.JSC$19677_networkService_=R);this.viewTransitionManager=_.ua().resolve(_.nC);this.setupPageTransitionAnimation()};
_.J.getPageOffset=function(R){return R.getScrollTop()};
_.J.setPageOffset=function(R,y){try{R.setScrollTop(y)}catch(u){}};
_.J.setPageOffsetForNavigation=function(R,y){_.Ko(this.hostElement,"yt-navigate-set-page-offset",{page:R,offset:y===void 0?0:y})};
_.J.pauseActiveContext=function(){var R=this.contextSwitcher;R.activeContext_&&R.activeContext_.pause()};
_.J.getModuleNameForType=function(R){return R==="watch"?_.f("kevlar_watch_fixie")?"watchFixie":_.f("kevlar_watch_grid")?"watchGrid":"watchFlexy":R==="shorts"||R==="search"?R:"browse"};
_.J.attachPage=function(R){var y,u=!_.f("pc_is_attached_ks")&&(R==null?void 0:(y=R.polymerController)==null?void 0:y.isAttached);if(!R.isAttached&&!u)try{_.hw(this.hostElement).appendChild(R)}catch(Q){var v;_.kT(new _.OL("Error attaching page element for component",{origin:(v=this.currentPage)==null?void 0:v.is,component:R.is}))}};
_.J.setActivePage=function(R){var y=this,u=!1,v=function(){var Q=y.isOnWatch(),M=y.currentPage;if(R)if(R!==y.currentPage){M&&(M.hidden=!0,M.active=!1,M.removeAttribute("role"));y.currentPage=R;var K,h=_.Zj((K=y.data)==null?void 0:K.endpoint);M&&_.Ko(y.hostElement,"yt-page-type-changed",{oldPageType:M.is,newPageType:R.is,newPageSubtype:h});_.uX().dispatch(_.iE({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:R.is}));_.uX().dispatch(_.iE({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:h||""}));R.hidden=
!1;y.attachPage(R);R.active=!0;R.setAttribute("role","main");M&&y.setPageOffsetForNavigation(R,0);_.f("kevlar_remove_page_dom_on_switch")&&!Q&&M&&_.hw(y.hostElement).removeChild(M)}else u=!0;else Q=new _.OL("Unable to set active page",M?M.is:"unknown origin",(h=y.data)==null?void 0:h.endpoint),_.dI(Q)};
this.shouldRunBrowseTransition(this.currentPage,R)?MVp(this.viewTransitionManager,v):this.shouldRunLearningJourneyTransition(this.currentPage,R)?iRH(this.viewTransitionManager,v):v();return u};
_.J.shouldRunBrowseTransition=function(R,y){return this.shouldApplySlideTransition&&(R==null?void 0:R.is)==="ytd-browse"&&(y==null?void 0:y.is)==="ytd-browse"&&R!==y};
_.J.shouldRunLearningJourneyTransition=function(R,y){return this.shouldApplyLearningJourneyTransition&&(R==null?void 0:R.is)==="ytd-browse"&&((y==null?void 0:y.is)==="ytd-watch-learning-journey"||(y==null?void 0:y.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.J.shouldRunWatchNextLoadedTransition=function(R,y){return this.viewTransitionManager&&R.is==="ytd-watch-flexy"&&y};
_.J.updatePageData=function(R){var y=this,u=this.data;this.updatePageDataJobId&&_.WG.cancelJob(this.updatePageDataJobId);this.data=R;return new _.F4(function(v){var Q=function(){R.filler?y.performDataUpdate(R,u):N$m(function(){y.performDataUpdate(R,u)});
var b=_.Lx();_.sT(b,"cr")||b.processSignal("cr");v()},M=function(){R&&R.page==="watch"?y.updatePageDataJobId=_.Wm(_.WG,Q):Q()};
if(_.f("kevlar_enable_mss_page_modules_client")&&R){var K=_.ua().resolve(_.SV),h=y.getModuleNameForType(R.page);(K=Q2I(K,[h]))?K.then(M):M()}else M()})};
_.J.isDownloadsPage=function(R){var y,u;return(R==null?void 0:(y=R.endpoint)==null?void 0:(u=y.browseEndpoint)==null?void 0:u.browseId)==="FEdownloads"};
_.J.setPlayerSyncInterval=function(R){var y;return _.I(function(u){if(u.nextAddress==1)return u.yield(_.ua().resolve(_.Np),2);y=u.yieldResult;y.setUpPositionSyncInterval(R);_.f$(u)})};
_.J.performDataUpdate=function(R,y){_.f("kevlar_early_popup_close")||_.Ik(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var u=!R.filler;u&&(_.qQ("lps"),_.f("config_age_report_killswitch")||tCp());var v=fm(R),Q,M=!1;if(_.f("kevlar_remove_page_dom_on_switch")){var K=y&&fm(y);v===K&&(Q=this.getCurrentPage())}Q||(Q=sQ(this.pagePool,v));u&&x5a(this.pagePool.elementPoolPopulator,v);u&&!this.renderLoadingStateJobId&&(M=this.setActivePage(Q));if(Q){K=v==="watch";var h=
v==="shorts",b=v==="learning_journey_watch";_.f("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(Q);if(K||h||b)Q.playerData=R.playerResponse;if(h)if(_.f("web_enable_delay_shorts_sequence_call")){R.reelWatchSequenceResponse&&(Q.reelWatchSequenceResponse=R.reelWatchSequenceResponse);Q.currentEndpoint=R.endpoint;var N;Q.isPreviousPageShorts=!!(y==null?0:(N=y.endpoint)==null?0:N.reelWatchEndpoint);var T,x;R.cachedSequenceParams=((T=R.endpoint)==null?void 0:(x=T.reelWatchEndpoint)==
null?void 0:x.sequenceParams)||R.cachedSequenceParams||(y==null?void 0:y.cachedSequenceParams);var B,l;R.cachedSequenceProvider=((B=R.endpoint)==null?void 0:(l=B.reelWatchEndpoint)==null?void 0:l.sequenceProvider)||R.cachedSequenceProvider||(y==null?void 0:y.cachedSequenceProvider);Q.cachedSequenceParams=R.cachedSequenceParams;Q.cachedSequenceProvider=R.cachedSequenceProvider}else{R.reelWatchSequenceResponse?Q.reelWatchSequenceResponse=R.reelWatchSequenceResponse:R.cachedReelWatchSequenceResponse?
Q.reelWatchSequenceResponse=R.cachedReelWatchSequenceResponse:_.f("web_enable_cached_reel_sequence_fix")&&Q.cachedReelWatchSequenceResponse&&!Q.reelWatchSequenceResponse&&(Q.reelWatchSequenceResponse=Q.cachedReelWatchSequenceResponse);Q.currentEndpoint=R.endpoint;var Z;Q.isPreviousPageShorts=!!(y==null?0:(Z=y.endpoint)==null?0:Z.reelWatchEndpoint);R.cachedReelWatchSequenceResponse=R.reelWatchSequenceResponse||R.cachedReelWatchSequenceResponse||(y==null?void 0:y.cachedReelWatchSequenceResponse);Q.cachedReelWatchSequenceResponse=
R.cachedReelWatchSequenceResponse}N=this.isDownloadsPage(R);T=this.isDownloadsPage(y);N&&!T?this.setPlayerSyncInterval(6E5):!N&&T&&this.setPlayerSyncInterval();_.f("block_all_player_prefetch_requests")||this.preparePrefetchRequest(R,Q,u,K,h,b);Kra(_.ua().resolve(_.cZ),y,R);_.JO(_.ua().resolve(_.Xj));_.f("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(Q);u?(u=typeof Q.loadPage,u==="function"?(Q.pageContext=AO7(this.contextSwitcher,Q,Q.data!==R.response),u=function(){Q.loadPage(R.response)},
this.shouldApplySlideTransition&&Q.is==="ytd-browse"&&M&&(v==="learning"||this.isDifferentBrowseId(R==null?void 0:R.endpoint,y==null?void 0:y.endpoint))?MVp(this.viewTransitionManager,u):this.shouldRunWatchNextLoadedTransition(Q,M)?VVp(this.viewTransitionManager,u):u()):_.Uh(new _.OL("b/38014653 ",[v,
Q.is,Q.nodeName,u,Q.isAttached,y&&fm(y),this.hostElement.children.length])),_.qQ("pdl")):(Q.hidden=!0,R.response.filler=!0,Q.data=R.response,this.attachPage(Q));_.Ko(this.hostElement,"yt-page-data-updated",{pageType:v})}_.Oh(_.WG,function(){_.f("logging_avoid_blocking_during_navigation")&&_.LxU().transition("none");var P=uSZ(),k=Q;if(R){var E=Oua(R),D=ZuZ(R),z;a:{if(R.playerResponse){var c=R.playerResponse,a;if((z=c.auxiliaryUi)==null?0:(a=z.messageRenderers)==null?0:a.upsellDialogRenderer){z=c.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(R.response&&(z=R.response,(c=z.overlay)==null?0:c.upsellDialogRenderer)){z=z.overlay.upsellDialogRenderer;break a}z=void 0}var L;var QG;a=(L=R.playerResponse)==null?void 0:(QG=L.auxiliaryUi)==null?void 0:QG.messageRenderers;L=(a==null?void 0:a.enforcementMessageViewModel)||(a==null?void 0:a.bkaEnforcementMessageViewModel);L=(L==null?void 0:L.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?L:void 0;var hz;a:{if(R.response&&(QG=R.response,(hz=QG.overlay)==null?0:
hz.commandWrapperPromoRenderer)){hz=QG.overlay.commandWrapperPromoRenderer;break a}hz=void 0}ypa(P,E,D,z,L,hz,k)}})};
_.J.preparePrefetchRequest=function(R,y,u,v,Q,M){var K,h,b,N,T,x,B,l,Z,P,k,E,D,z,c;return _.I(function(a){if(a.nextAddress==1)return!u||!(v||Q||M)||_.f("kevlar_disable_background_prefetch")&&_.A7(_.pbT)()===0?a.return():(K=_.KA(y))?a.yield(K.getPlayerPromise(),2):a.return();h=a.yieldResult;b=_.ua().resolve(_.yN(_.AU));if(!b)return a.return();if(Q)return N=_.Vz(_.W1),HXM(N,(T=R.endpoint)==null?void 0:T.reelWatchEndpoint,y.reelWatchSequenceResponse,h,b),a.return();l=(x=R.response)==null?void 0:(B=x.responseContext)==
null?void 0:B.webResponseContextExtensionData;if(!l)return a.return();D=(Z=R.response)==null?void 0:(P=Z.contents)==null?void 0:(k=P.twoColumnWatchNextResults)==null?void 0:(E=k.autoplay)==null?void 0:E.autoplay;z=_.ua().resolve(_.S2);c=_.Vz(_.W1);nYP(c,l,h,b,z,D);_.f$(a)})};
_.J.movePlayerToWatch=function(R){var y=this,u,v;return _.I(function(Q){u=sQ(y.pagePool,"watch");v=u.getPlayerContainer();R.appendTo(v);_.f$(Q)})};
_.J.movePlayerToShorts=function(R){var y=this,u,v,Q;return _.I(function(M){u=sQ(y.pagePool,"shorts");v=u.getPlayerContainer();(Q=R)==null||Q.appendTo(v,void 0,!0);_.f$(M)})};
_.J.getPlayerFromWatch=function(){var R=sQ(this.pagePool,"watch");return _.KA(R)};
_.J.getPlayerFromShorts=function(){var R=sQ(this.pagePool,"shorts");return _.KA(R)};
_.J.startLoadingWatch=function(){var R=this,y=sQ(this.pagePool,"watch");this.renderLoadingStateJobId?(_.WG.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,Jeo(this.viewTransitionManager,function(){R.renderPageLoadingState("watch")})):this.setActivePage(y)};
_.J.startLoadingShorts=function(){var R=sQ(this.pagePool,"shorts");this.setActivePage(R)};
_.J.startLoadingLearningJourney=function(){var R=sQ(this.pagePool,"learning_journey_watch");this.setActivePage(R)};
_.J.getCurrentPage=function(){return this.currentPage};
_.J.getDestinationPageType=function(){return this.destinationPageType};
_.J.getCurrentData=function(){return this.data};
_.J.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.J.isOnShorts=function(){var R;return((R=this.currentPage)==null?void 0:R.is)==="ytd-shorts"};
_.J.isWatchPage=function(R){return!!R&&(R.is==="ytd-watch-flexy"||R.is==="ytd-watch-fixie"||R.is==="ytd-watch-grid")};
_.J.preparePage=function(R,y){var u=this,v=function(){var K=u.pagePool.preparePage(R,u.currentPage,y);K&&u.attachPage(K)},Q=function(K){_.Eh(K,y);
_.kT(K)};
if(_.f("kevlar_enable_mss_page_modules_client")){var M=this.getModuleNameForType(R);if(M=Q2I(_.ua().resolve(_.SV),[M])){M.then(v.bind(this)).catch(Q.bind(this));return}}try{v()}catch(K){Q(K)}};
_.J.lazyPrepareCriticalPages=function(R,y){R=_.Zj(y)||R;_.f("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(R).then(this.maybePrepareWatchPage.bind(this,R)):this.maybePrepareWatchPage(R)};
_.J.maybePrepareWatchPage=function(R){R!=="watch"&&_.Oh(_.WG,this.preparePage.bind(this,"watch"))};
_.J.downloadPageModules=function(R){R=this.getModuleNameForType(R);var y=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);y.delete(R);var u=_.ua().resolve(_.SV);u.JSC$18428_loadModules(R);return u.JSC$18428_loadModules.apply(u,_.P$(y))};
_.J.renderPageLoadingState=function(R,y){this.preparePage(R,y);var u=sQ(this.pagePool,R);u.loadingData&&(u.loadingData.endpoint=y);u.loading=!0;this.setActivePage(u);R!=="watch"&&R!=="learning_journey_watch"||_.Ko(this.hostElement,"yt-guide-close")};
_.J.prepareForNavigation=function(R,y){var u=this;if(this.currentPage&&this.data){var v=_.Zj(y)||R;this.destinationPageType=v;fm(this.data)==v&&_.Ko(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((R==="watch"||R==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.WG.cancelJob(this.renderLoadingStateJobId);_.ua().resolve(_.cZ).deactivate(y);_.Xs(_.WG,function(){var M=u.viewTransitionManager,K=u.currentPage;
if(M.isLockupToWatchTransitionEnabled&&M.isLockupThumbnailRegistrationEnabled&&K)if(M.registeredLockupThumbnail)M.lockupThumbnailRegisteredFromWatchEndpoint&&_.kT(new _.OL("Lockup thumbnail already registered from watch endpoint."));else{a:{var h=_.e(y,_.zM);if(h==null?0:h.videoId){var b="yt-lockup-view-model ."+_.VTL(h.videoId)+" yt-thumbnail-view-model";K=K.querySelectorAll(b);if(K.length===1){h=K[0];break a}K.length>1?_.kT(new _.OL("Multiple LockupViewModel thumbnails found for videoId: "+h.videoId+
". Selector: "+b)):_.f("web_thumbnail_to_watch_transition_debug")&&_.kT(new _.OL("No LockupViewModel thumbnail found for videoId: "+h.videoId+". Selector: "+b))}h=void 0}h&&(M.registeredLockupThumbnail=h,M.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.tLJ(M,h))}});
var Q=this.data;this.renderLoadingStateJobId=_.Xs(_.WG,function(){Jeo(u.viewTransitionManager,function(){if(u.data!=Q){var M=sQ(u.pagePool,R);u.setActivePage(M)}else u.renderPageLoadingState(R,y);u.renderLoadingStateJobId=0})},150)}};
_.J.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var R=new _.KQ(1);this.currentPage.pageDisposeJobs.forEach(function(y){_.IJ(R,y)});
this.pageDisposeJobsets.set(this.currentPage,R)}};
_.J.flushPageDisposeJobset=function(R){var y=this.pageDisposeJobsets.get(R);y&&(y.flushJobs(),this.pageDisposeJobsets.delete(R))};
_.J.onYtStopOldPlayer=function(R,y){y=y===void 0?!1:y;var u,v=_.ia("kevlar_new_stop_old_player_logic_pages");if(_.f("kevlar_check_current_page_on_stop_old_player")&&(v.length===0||this.currentPage&&v.includes(this.currentPage.is)))if(this.data&&(u=fm(this.data)),fm(R)===u&&this.currentPage&&fm(this.currentPage.data)!==u)var Q=_.KA(this.currentPage);else u=fm(this.data),Q=sQ(this.pagePool,u),Q=_.KA(Q);else this.data&&(u=fm(this.data),Q=sQ(this.pagePool,u),Q=_.KA(Q));if(Q)if(R=fm(R),v=sQ(this.pagePool,
R),v=_.KA(v),Q==v)y&&!_.f("kevlar_disable_preemptive_player_reset")&&Q.resetForNewPlayback();else if(y=u==="watch"&&R!=="watch",!y||R==="shorts"||_.kZc()&&!qlp(this.data)&&R!=="yts-products"&&R!="mini_app"&&R!="playables")u=_.ua().resolve(_.cZ),y&&u.isMiniplayerActive()&&u.pipController.getWindow()||Q.stop()};
_.J.setupPageTransitionAnimation=function(){if(this.shouldApplySlideTransition&&this.shouldApplyLockupToWatchTransition){var R=_.JT("web_page_transition_exit_ms"),y=_.JT("web_page_transition_wait_ms"),u=_.JT("web_page_transition_enter_ms");if(!isNaN(R)||!isNaN(y)||!isNaN(u))if(R=cW8(yrp,R,y,u))y=document.createElement("style"),y.textContent=_.K_S(R),document.head.appendChild(y)}};
_.J.isDifferentBrowseId=function(R,y){R=_.e(R,_.HV);y=_.e(y,_.HV);return(R==null?void 0:R.browseId)!==(y==null?void 0:y.browseId)};
_.RR.Object.defineProperties(J1,{template:{configurable:!0,enumerable:!0,get:function(){return RwV()}}});
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],J1.prototype,"ytActionHandlerBehavior",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-page-manager"})],J1);_.m(J1,"ytd-page-manager",function(){return RwV()},{mode:_.TN("kevlar_poly_si_batch_j081")?1:2});var Vg=function(R,y,u){u=u===void 0?!1:u;_.Z0.call(this);this.draggableElement=R;this.callbacks=y;this.allowClicks=u;this.dragOccurred=!1;this.internalDragger=new _.tt(this.draggableElement);this.dragDelay=new _.Q9(this.delayedDrag.bind(this));uxP(this);this.allowClicks&&(_.n2i(this.internalDragger,5),R.addEventListener("click",_.BN(this,this.validateClick),{capture:!0}))};
_.O(Vg,_.Z0);var uxP=function(R){_.E4(R.internalDragger,"earlycancel",function(){R.allowClicks&&(R.dragOccurred=!1)});
_.E4(R.internalDragger,"start",function(y){var u,v;(v=(u=R.callbacks).onStartDrag)==null||v.call(u,y);!y.defaultPrevented&&R.allowClicks&&(R.dragOccurred=!0)});
_.E4(R.internalDragger,"beforedrag",function(y){y.preventDefault();R.lastOffset=new _.dc(y.clientX-R.internalDragger.startX,y.clientY-R.internalDragger.startY);R.dragDelay.start()});
_.E4(R.internalDragger,"end",function(){R.dragDelay.stop();var y,u;(u=(y=R.callbacks).onEndDrag)==null||u.call(y);R.lastOffset=void 0})};
Vg.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
Vg.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.BN(this,this.validateClick),{capture:!0})};
Vg.prototype.validateClick=function(R){this.dragOccurred&&(this.dragOccurred=!1,R.stopPropagation(),R.preventDefault())};var iM=function(R,y){_.Z0.call(this);this.JSC$19874_resizeContainer=R;this.callbacks=y;this.aspectRatio=16/9;this.JSC$19874_resizers=[];R=_.V(this.JSC$19874_resizeContainer.children);for(y=R.next();!y.done;y=R.next())vQP(this,y.value)};
_.O(iM,_.Z0);iM.prototype.disposeInternal=function(){for(var R=_.V(this.JSC$19874_resizers),y=R.next();!y.done;y=R.next())y.value.dispose();R=_.V(this.JSC$19874_resizeContainer.children);for(y=R.next();!y.done;y=R.next())y.value.setAttribute("disabled","");this.JSC$19874_resizers.length=0};
iM.prototype.setSize=function(R){this.currentMiniplayerSize=R};
iM.prototype.setAspectRatio=function(R){this.aspectRatio=R};
iM.prototype.update=function(R,y){for(var u=_.V(this.JSC$19874_resizeContainer.children),v=u.next();!v.done;v=u.next()){v=v.value;var Q=v.getAttribute("alignment");_.w2(v,"disabled",Q===R||Q===y)}};
var vQP=function(R,y){var u=y.getAttribute("alignment"),v=new Vg(y,{onStartDrag:function(Q){if(y.hasAttribute("disabled"))Q.preventDefault();else{R.dragStartSize=R.currentMiniplayerSize;var M,K;(K=(M=R.callbacks).onStartResize)==null||K.call(M)}},
onDrag:function(Q){if(R.dragStartSize){u!=="north"&&u!=="west"||Q.scale(-1);var M=u==="north"||u==="south";Q=M?Q.y:Q.x;M&&R.aspectRatio>=1?Q*=R.aspectRatio:!M&&R.aspectRatio<1&&(Q/=R.aspectRatio);R.callbacks.onResize(R.dragStartSize+Q)}}});
R.JSC$19874_resizers.push(v)};var QpK;var jpI=_.Jd(function(R){var y=_.sh("yt-draggable"),u=R.onDrag,v=R.onDragStart,Q=R.onDragEnd,M=_.jb(R,{allowClicks:!1,dragThreshold:5}),K=M.dragThreshold,h=M.allowClicks;R=M.children;M=M.className;var b=void 0,N=void 0,T=new _.dc(0,0),x=!1;_.rB(function(){b=new _.tt(y.value);N=new _.Q9(l);B(b,N);if(h()){_.n2i(b,K());var P;(P=y.value)==null||P.addEventListener("click",Z,{capture:!0})}_.GF(function(){var k;(k=b)==null||k.dispose();if(h()){var E;(E=y.value)==null||E.removeEventListener("click",Z,{capture:!0})}})});
var B=function(P,k){_.E4(P,"earlycancel",function(){h()&&(x=!1)});
_.E4(P,"start",function(E){v==null||v(E);E.defaultPrevented||h()&&(x=!0)});
_.E4(P,"beforedrag",function(E){b&&N&&(E.preventDefault(),T=new _.dc(E.clientX-b.startX,E.clientY-b.startY),N.start())});
_.E4(P,"end",function(){k.stop();Q==null||Q();T=new _.dc(0,0)})},l=function(){T&&u(T)},Z=function(P){x&&(x=!1,P.stopPropagation(),P.preventDefault())};
return _.F("yt-draggable",{el:y,class:_.Oy("ytDraggableComponentHost",M)},R)},"Eg");var Mam=_.Jd(function(R){var y=_.V(_.In(0,void 0,"CvAwBd")),u=y.next().value,v=y.next().value;y=function(Q){var M={},K={};return _.F(jpI,{className:_.Oy("ytdMiniplayerComponentResizer",(M.ytdMiniplayerComponentResizerDisabled=function(){return Q===R.horizontalAlignment()||Q===R.verticalAlignment()},M.ytdMiniplayerComponentResizerNorth=Q==="north",M.ytdMiniplayerComponentResizerEast=Q==="east",M.ytdMiniplayerComponentResizerSouth=Q==="south",M.ytdMiniplayerComponentResizerWest=Q==="west",M)),
onDragStart:function(){v(R.currentMiniplayerSize());if(R.onResizeStart)R.onResizeStart()},
onDrag:function(h){Q!=="north"&&Q!=="west"||h.scale(-1);var b;h=(b=Q==="north"||Q==="south")?h.y:h.x;var N=R.currentAspectRatio();b&&N>=1?h*=N:!b&&N<1&&(h/=N);b=h;R.onResize(u()+b)}},_.F("div",{class:_.Oy("ytdMiniplayerComponentResizerCorner",(K.ytdMiniplayerComponentResizerNorthCorner=Q==="north",K.ytdMiniplayerComponentResizerEastCorner=Q==="east",K.ytdMiniplayerComponentResizerSouthCorner=Q==="south",K.ytdMiniplayerComponentResizerWestCorner=Q==="west",K))}))};
return _.F("div",{class:"ytdMiniplayerComponentResizers"},y("north"),y("east"),y("south"),y("west"))},"Fg");var Jrm=16/9,VaJ=_.Jd(function(){var R=_.sh("ytd-miniplayer"),y=_.V(_.In(new _.or(NaN,NaN),void 0,"GNXZTe")),u=y.next().value,v=y.next().value;y=_.V(_.In(!1,void 0,"XqI9xc"));var Q=y.next().value,M=y.next().value;y=_.V(_.In(!1,void 0,"k3iLGe"));var K=y.next().value,h=y.next().value;y=_.V(_.In(!1,void 0,"ApjQ9b"));var b=y.next().value,N=y.next().value;y=_.V(_.In(!1,void 0,"PzlhGe"));var T=y.next().value,x=y.next().value;y=_.V(_.In(!1,void 0,"pm6fl"));var B=y.next().value,l=y.next().value;y=_.V(_.In(!1,
void 0,"xQrL1e"));var Z=y.next().value,P=y.next().value;y=_.V(_.In(Jrm,void 0,"NcrWZb"));var k=y.next().value,E=y.next().value,D=_.V(_.In(!1,void 0,"e5rxBc"));y=D.next().value;var z=D.next().value;D=_.V(_.In(!1,void 0,"uZtCde"));var c=D.next().value,a=D.next().value;D=_.V(_.In(void 0,void 0,"wKFvEe"));var L=D.next().value,QG=D.next().value;D=_.V(_.In(_.EB("HTML_DIR")==="rtl"?"west":"east",void 0,"FF7oMe"));var hz=D.next().value,bO=D.next().value;D=_.V(_.In("south",void 0,"QXcssb"));var BW=D.next().value,
Zc=D.next().value;D=_.V(_.In(400,void 0,"Fr8gSb"));var xS=D.next().value,Dc=D.next().value,$S=_.ua().resolve(_.cZ).miniplayerPropSignalMap[0],hL=$S.data,WK=$S.externalPlaylistData;D=$S.toastData;var JL=$S.playabilityStatus,sP=$S.isReadyToResume,wg=$S.isDisabled,bT=$S.watchWhile,HK=$S.playerVe,Ta=$S.expandVe,Sg=$S.closeVe,MU=$S.readyToResumeVe,vK=$S.readyToResumeCloseVe,eg=$S.repositionVe,oP=$S.resizeVe;$S=_.V(_.rW(sP));var BK=$S.next().value,pY=$S.next().value,v$=!1,RP=!1,KY;_.rB(function(){v(_.rw());
R.value.addEventListener("animationend",function(Y8){Y8.target===R.value&&(l(!1),P(!1))});
S78(R.value)});
_.Li("yt-window-resized",function(Y8){Y8&&v(Y8)});
var si=function(){KY&&E(KY.getVideoAspectRatio())},Fp=function(){if(KY){var Y8=KY.getPlayerState()===1;
BK()&&Y8&&pY(!1)}},Oi=function(){var Y8=Ta();
if(Y8){var WH=_.$I(3);WH&&_.zP(WH,Y8)}},rg=function(){var Y8=Sg(),WH=vK();
Y8&&_.zP(_.$I(3),Y8);sP()&&WH&&_.zP(_.$I(3),WH)};
_.Li("yt-activate-miniplayer",function(Y8){var WH;return _.I(function(vg){if(vg.nextAddress==1)return Q()?vg.return():vg.yield((WH=_.ua().resolve(_.cZ).getPlayerElement())==null?void 0:WH.getPlayerPromise(),2);KY=vg.yieldResult;if(!KY)return vg.return();!c()&&_.f("kevlar_watch_while_v2")&&(Zc(Y8&&!_.f("kevlar_watch_while_bottom_align")?"north":"south"),bO(_.EB("HTML_DIR")==="rtl"?"west":"east"));var Fr=KY;Fr.addEventListener("onVideoDataChange",si);Fr.addEventListener("onStateChange",Fp);Fr.addEventListener("onExpandMiniplayer",
Oi);Fr.addEventListener("onCloseMiniplayer",rg);E(KY.getVideoAspectRatio());M(!0);cwH()||l(!0);_.f$(vg)})});
_.Li("yt-deactivate-miniplayer",function(Y8){return _.I(function(WH){if(!Q())return WH.return();M(!1);pY(!1);P(Y8);x(!1);h(!1);if(KY){var vg=KY;vg.removeEventListener("onVideoDataChange",si);vg.removeEventListener("onStateChange",Fp);vg.removeEventListener("onExpandMiniplayer",Oi);vg.removeEventListener("onCloseMiniplayer",rg)}cwH()||l(!0);_.f$(WH)})});
var fZ=function(){return!(bT()&&_.f("kevlar_watch_while_modern"))},ha=function(){var Y8;
return!((Y8=WK())==null||!Y8.contents)},IP=function(){var Y8=xS();
var WH=u();WH=Math.min(Math.min(WH.width,WH.height)-32,720);var vg=k(),Fr=fZ(),e_=ha()&&K(),SQ=Math.min(Y8,WH);Y8=new _.or(192,Fr?116:192);vg=HAZ(new _.or(e_?Jrm:vg,1),new _.or(SQ,Fr?SQ-76:SQ));Y8.width<=vg.width&&Y8.height<=vg.height||(ZAp(vg,Y8),vg.width=Math.min(vg.width,WH),vg.height=Math.min(vg.height,WH));return new _.or(vg.width,_.Ae(192,vg.height+gJo(Fr,e_),720))},Zi=function(){var Y8=IP(),WH=fZ(),vg=ha()&&K();
return new _.or(Y8.width,Y8.height-gJo(WH,vg))},gr=function(){var Y8=function(WH){WH.target===R.value&&T()&&(x(!1),R.value.removeEventListener("transitionend",Y8))};
cwH()||(R.value.addEventListener("transitionend",Y8),x(!0));h(!K())};
_.ny(function(){var Y8=HK(),WH=_.$I(3),vg=_.Ef(3);if(WH&&vg&&Y8){_.ak(WH,vg,Y8);vg=eg();var Fr=oP(),e_=Ta(),SQ=Sg(),NS=vK();e_&&SQ&&NS&&(_.Si(WH,Y8,[e_,SQ,NS]),_.Lo(WH,[e_,SQ]));vg&&Fr&&_.Si(WH,Y8,[vg,Fr])}},"Snz6Ld");
_.ny(function(){var Y8=MU();if(Y8){var WH=_.$I(0),vg=_.Ef(0);WH&&vg&&(_.ak(WH,vg,Y8),_.Lo(WH,[Y8]))}},"X1FpHd");
$S={};return _.F("ytd-miniplayer",{el:R,class:_.Oy("ytdMiniplayerComponentHost",($S.ytdMiniplayerComponentVisible=function(){return Q()||B()},$S.ytdMiniplayerComponentAnimatingSnap=b,$S.ytdMiniplayerComponentAnimatingPlaylistExpand=T,$S.ytdMiniplayerComponentAnimatingFade=B,$S),function(){if(B()){var Y8=BW();
var WH=Q(),vg=Z();Y8=WH?Y8==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":vg?Y8==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":Y8==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else Y8="";return Y8}),
style:_.P_({top:function(){return BW()==="north"?"16px":""},
right:function(){return hz()==="east"?"16px":""},
bottom:function(){return BW()==="south"?"16px":""},
left:function(){return hz()==="west"?"16px":""},
width:function(){return IP().width+"px"},
height:function(){return IP().height+"px"},
transform:function(){var Y8=L();return Y8?"translate("+Y8.x+"px, "+Y8.y+"px)":""}})},_.F("div",{class:"ytdMiniplayerComponentContent"},_.F(jpI,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(Y8){var WH=z3Z(hz(),BW(),u(),IP(),L()),vg=Zi();Math.abs(Y8.clientY-(WH.y+vg.height))>15?(z(!0),Y8=_.$I(3),WH=eg(),v$||(v$=!0,Y8&&WH&&_.Lo(Y8,[WH])),Y8&&WH&&_.zP(Y8,WH)):Y8.preventDefault()},
onDrag:function(Y8){QG(Y8)},
onDragEnd:function(){var Y8=Y7V(z3Z(hz(),BW(),u(),IP(),L()),u(),IP()),WH=sXm(hz(),BW(),u(),IP()),vg=sXm(Y8.horizontalAlignment,Y8.verticalAlignment,u(),IP());vg=new _.dc(vg.x-WH.x,vg.y-WH.y);var Fr;WH=WH.y+(((Fr=L())==null?void 0:Fr.y)||0)+IP().height/2;var e_=function(){hz()===Y8.horizontalAlignment&&BW()===Y8.verticalAlignment||a(!0);bO(Y8.horizontalAlignment);Zc(Y8.verticalAlignment);QG(void 0)},SQ=function(NS){NS.target===R.value&&b()&&(N(!1),e_(),R.value.removeEventListener("transitionend",SQ))};
z(!1);BW()==="south"&&WH>u().height?(e_(),_.ua().resolve(_.cZ).close()):(R.value.addEventListener("transitionend",SQ),N(!0),QG(vg))}},_.F(_.w,{cond:Q,
then:function(){return _.F(_.Yra,{isDisabled:wg,playabilityStatus:JL,size:Zi})}}),_.F(_.w,{cond:fZ,
then:function(){return _.F(_.atZ,{isReadyToResume:BK,data:hL,expanded:K,onExpandClick:gr,playlistData:WK})}}),_.F(_.w,{cond:y,
then:function(){return _.F("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.F(_.w,{cond:function(){return ha()&&K()||T()},
then:function(){return _.F(_.sBT,{className:"ytdMiniplayerComponentPlaylistPanel",data:WK,hideHeaderText:!0,withinMiniplayer:!0})}}),_.F("div",{class:"ytdMiniplayerComponentToast"},_.F(_.L_V,{toastData:D}))),_.F(Mam,{onResize:function(Y8){Dc(_.Ae(192,Y8,720))},
onResizeStart:function(){var Y8=_.$I(3),WH=oP();RP||(RP=!0,Y8&&WH&&_.Lo(Y8,[WH]));Y8&&WH&&_.zP(Y8,WH)},
currentAspectRatio:k,currentMiniplayerSize:xS,horizontalAlignment:hz,verticalAlignment:BW}))},"Gg");_.f("ytd_miniplayer_to_wiz")&&_.h6(VaJ,"ytd-miniplayer",{});_.h6(_.L_V,"ytd-miniplayer-toast",{props:{toastData:_.vR}});var iwg=16/9,K6p=new _.or(400,400/iwg),KD=function(){var R=_.W.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=_.EB("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=iwg;R.currentMiniplayerSize=400;R.userSetSize=!1;R.userSetPosition=!1;R.userHasDragged=!1;R.maxMiniplayerSize=720;R.transform=new _.dc(0,0);R.windowDimensions=new _.or(NaN,NaN);R.dimensions=K6p;R.screenLayer=3;R.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return R};
_.O(KD,_.W);_.J=KD.prototype;_.J.created=function(){this.PLAYER_EVENTS.set("onVideoDataChange",this.onPlayerVideoDataChange);this.PLAYER_EVENTS.set("onCloseMiniplayer",this.onPlayerCloseMiniplayer);this.PLAYER_EVENTS.set("onExpandMiniplayer",this.onPlayerExpandMiniplayer);this.PLAYER_EVENTS.set("onStateChange",this.onPlayerStateChange);this.registerWithViewTransitionManager()};
_.J.ready=function(){this.setUpDragging();this.setUpResizing()};
_.J.attached=function(){this.onWindowResized(_.rw());this.hostElement.addEventListener("animationend",_.BN(this,this.resetFadingAnimation))};
_.J.detached=function(){this.hostElement.removeEventListener("animationend",_.BN(this,this.resetFadingAnimation))};
_.J.resetFadingAnimation=function(R){R.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.J.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.J.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.J.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var R=_.$I(this.screenLayer);this.readyToResumeCloseVe&&R&&_.Lo(R,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.J.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var R=_.$I(0),y=_.Ef(0);R&&y&&(_.ak(R,y,this.readyToResumeVe),_.Lo(R,[this.readyToResumeVe]))}};
_.J.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var R=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=R===-1||R===1||R===3)&&this.player.pauseVideo()}};
_.J.activate=function(R,y){y=y===void 0?!1:y;var u=this,v;return _.I(function(Q){if(Q.nextAddress==1)return u.setInitialActivatePositioning(y),u.enabled=!0,u.active=!0,u.expanded=!1,u.closed=!1,u.expandedClosed=!1,u.watchWhileHidden||(u.isAnimatingFade=!0),_.ua().resolve(_.S2).setPlaylistComponent(u.JSC$19885_playlistPanel),R.appendTo(u.playerContainer),Q.yield(R.getPlayerPromise(),2);v=Q.yieldResult;v.setSizeStyle(!1,!0);u.ytPlayerListenerBehavior.listenToPlayerEvents(v,u.PLAYER_EVENTS);u.player=
v;u.watchWhile&&_.f("kevlar_watch_while_minimum_size")&&u.setMiniplayerSize(192);u.setAspectRatio(u.player.getVideoAspectRatio());u.onIsDisabledChanged();_.f$(Q)})};
_.J.setInitialActivatePositioning=function(R){if(!this.userSetPosition&&_.f("kevlar_watch_while_v2")){this.verticalAttachment=R&&!_.f("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.EB("HTML_DIR")==="rtl"?"west":"east";var y;(y=this.JSC$19885_resizers)==null||y.update(this.horizontalAttachment,this.verticalAttachment)}};
_.J.deactivate=function(R,y){var u=this;return _.I(function(v){if(!u.active)return v.return();R||(u.expanded?u.expandedClosed=!0:u.closed=!0);u.active=!1;u.isForReadyToResume=!1;y&&_.f("kevlar_watch_while_counterfactual")||(u.isAnimatingFade=!0);u.player&&u.ytPlayerListenerBehavior.unlistenFromPlayerEvents(u.player,u.PLAYER_EVENTS);u.player=null;_.f$(v)})};
_.J.onMetadataTap=function(R){this.expandVe&&(R===void 0||R)&&(R=_.$I(this.screenLayer))&&_.zP(R,this.expandVe);_.AV(_.ua().resolve(_.cZ))};
_.J.onDisabledTap=function(R){R.target===_.hw(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.J.onPlaylistExpandTap=function(R){if(this.hasPlaylistData){R=_.u8(R)||[];R=_.V(R);for(var y=R.next();!y.done;y=R.next()){y=y.value;if(y===this.hostElement)break;if(y.classList&&y.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.J.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.BN(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.J.animatedResizePlaylist=function(R){R.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.BN(this,this.animatedResizePlaylist)))};
_.J.getExpandIcon=function(R){return R?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.J.onPlayerVideoDataChange=function(){var R,y=(R=this.player)==null?void 0:R.getVideoAspectRatio();y&&y!==this.aspectRatio&&this.setAspectRatio(y)};
_.J.setAspectRatio=function(R){if(this.active){this.aspectRatio=R;this.updateDimensionsAndResize();var y;(y=this.JSC$19885_resizers)==null||y.setAspectRatio(R)}};
_.J.updateDimensionsAndResize=function(){var R=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),y=this.expanded?iwg:this.aspectRatio,u=new _.or(192,this.showInfoBar?116:192);R=HAZ(new _.or(y,1),new _.or(R,this.showInfoBar?R-76:R));u.width<=R.width&&u.height<=R.height||(ZAp(R,u),R.width=Math.min(R.width,this.maxMiniplayerSize),R.height=Math.min(R.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&y<=1?Math.max(R.width,R.height)+76:Math.max(R.width,R.height)));this.dimensions=
new _.or(R.width,this.clamp(R.height+this.getNonPlayerHeight()));this.resize()};
_.J.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 y;(y=this.player)==null||y.setInternalSize(R.width,R.height)};
_.J.getPlayerSize=function(R){var y=Math.max(0,R.height-this.getNonPlayerHeight());return new _.or(R.width,y)};
_.J.getNonPlayerHeight=function(){var R=0;this.showInfoBar&&(R+=76);this.expanded&&(R+=285);return R};
_.J.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.ua().resolve(_.cZ).close()};
_.J.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.J.logClosingClick=function(){this.closeVe&&_.zP(_.$I(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.zP(_.$I(this.screenLayer),this.readyToResumeCloseVe)};
_.J.onPlayerExpandMiniplayer=function(){if(this.expandVe){var R=_.$I(this.screenLayer);R&&_.zP(R,this.expandVe)}};
_.J.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())}};
_.J.getScreenLayer=function(){return this.screenLayer};
_.J.logMiniplayer=function(){var R=_.$I(this.screenLayer),y=_.Ef(this.screenLayer);R&&y&&this.playerVe&&(_.ak(R,y,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.Si(R,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.Lo(R,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.Si(R,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.J.computePlaylistData=function(R,y){return y};
_.J.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.J.computeExpandButtonHidden=function(R,y,u){return!R||!y||u};
_.J.computePlaylistIndexHidden=function(R,y){return!R||y};
_.J.computePlaylistPanelHidden=function(R,y){return!y&&!R};
_.J.computeExpandButtonLabel=function(R){return R?_.fo("MINIPLAYER_COLLAPSE_LABEL"):_.fo("MINIPLAYER_EXPAND_LABEL")};
_.J.computeDisabledStateCloseButtonLabel=function(){return _.fo("MINIPLAYER_CLOSE",void 0,"Close")};
_.J.onWindowResized=function(R){R&&(R=this.windowDimensions=R,this.maxMiniplayerSize=Math.min(Math.min(R.width,R.height)-32,720),this.updateDimensionsAndResize())};
_.J.setUpResizing=function(){var R=this;this.JSC$19885_resizers||(this.JSC$19885_resizers=new iM(this.JSC$19885_resizeContainer,{onStartResize:function(){R.handleResizeStart()},
onResize:function(y){R.handleResize(y)}}),this.JSC$19885_resizers.setSize(this.currentMiniplayerSize),this.JSC$19885_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.J.handleResizeStart=function(){var R=_.$I(this.screenLayer);this.userSetSize||(this.userSetSize=!0,R&&this.resizeVe&&_.Lo(R,[this.resizeVe]));R&&this.resizeVe&&_.zP(R,this.resizeVe)};
_.J.handleResize=function(R){this.setMiniplayerSize(R);this.updateDimensionsAndResize()};
_.J.setUpDragging=function(){var R=this;this.JSC$19885_dragger||(this.JSC$19885_dragger=new Vg(this.draggableContainer,{onStartDrag:function(y){!R.isSafeToDrag(y)||R.isAnimatingSnap?y.preventDefault():R.handleDragStart()},
onDrag:function(y){R.transform=y;R.setTransform(R.transform)},
onEndDrag:function(){R.handleDragEnd()}},!0))};
_.J.handleDragStart=function(){this.isDragging=!0;var R=_.$I(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,R&&this.repositionVe&&_.Lo(R,[this.repositionVe]));R&&this.repositionVe&&_.zP(R,this.repositionVe)};
_.J.handleDragEnd=function(){this.isDragging=!1;var R=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&R>this.windowDimensions.height&&_.ua().resolve(_.cZ).close();this.animateSnapToCorner()};
_.J.animateSnapToCorner=function(){var R=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),y=this.getNearestAttachments();y=this.getGlobalPositionFromAttachments(y.horizontalAttachment,y.verticalAttachment);R=new _.dc(y.x-R.x,y.y-R.y);this.isAnimatingSnap=!0;this.setTransform(R);this.hostElement.addEventListener("transitionend",_.BN(this,this.endSnapAnimation))};
_.J.endSnapAnimation=function(R){R.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.BN(this,this.endSnapAnimation)),this.endDrag())};
_.J.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.J.setTransform=function(R){this.hostElement.style.transform=R?"translate("+R.x+"px, "+R.y+"px)":""};
_.J.getGlobalPositionFromAttachments=function(R,y){return new _.dc(R==="west"?16:this.windowDimensions.width-this.dimensions.width-16,y==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.J.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 y;(y=this.JSC$19885_resizers)==null||y.update(this.horizontalAttachment,this.verticalAttachment)};
_.J.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"}};
_.J.getCurrentGlobalPosition=function(){var R=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return L8M(R,this.transform)};
_.J.isSafeToDrag=function(R){var y=this.playerContainer.getBoundingClientRect();return Math.abs(R.clientY-(y.y+y.height))>15};
_.J.setMiniplayerSize=function(R){this.currentMiniplayerSize=this.clamp(R);var y;(y=this.JSC$19885_resizers)==null||y.setSize(this.currentMiniplayerSize)};
_.J.clamp=function(R){return _.Ae(192,R,720)};
_.J.registerWithViewTransitionManager=function(){var R=_.ua().resolve(_.yN(_.nC));R&&aV7(R,this.hostElement)};
_.RR.Object.defineProperties(KD.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.f("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:_.fo("CONTINUE_WATCHING",void 0,"Continue watching")};var R;if((R=this.externalPlaylistData)==null?0:R.contents)return this.externalPlaylistData.titleText;var y;return(y=this.data)==null?void 0:y.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.externalPlaylistData)==null?0:R.contents){var y;return(y=_.g1c(this.externalPlaylistData))==null?void 0:y.title}var u;return(u=this.data)==null?void 0:u.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var R,y,u,v;return((R=this.externalPlaylistData)==null?void 0:R.currentIndex)!==void 0&&((y=this.externalPlaylistData)==null?0:y.totalVideos)&&!((u=this.data)==null?0:(v=u.playlistData)==null?0:v.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.Q9T(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.f("kevlar_watch_while_counterfactual")}}});
KD.prototype.onIsDisabledChanged=KD.prototype.onIsDisabledChanged;KD.prototype.readyToResumeVeChanged=KD.prototype.readyToResumeVeChanged;KD.prototype.premiumBrandingChanged=KD.prototype.premiumBrandingChanged;KD.prototype.onPlayerVeChange=KD.prototype.onPlayerVeChange;KD.prototype.hasPlaylistDataChanged=KD.prototype.hasPlaylistDataChanged;_.A([_.n(_.Ra.YtPlayerListenerBehavior),_.p("design:type",_.yH)],KD.prototype,"ytPlayerListenerBehavior",void 0);
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],KD.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],KD.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],KD.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],KD.prototype,"ytdReduxBehavior",void 0);_.A([_.O7("#draggable"),_.p("design:type",HTMLDivElement)],KD.prototype,"draggableContainer",void 0);
_.A([_.O7("#resize-container"),_.p("design:type",HTMLDivElement)],KD.prototype,"JSC$19885_resizeContainer",void 0);_.A([_.O7("#video-container"),_.p("design:type",HTMLDivElement)],KD.prototype,"videoContainer",void 0);_.A([_.O7("#player-container"),_.p("design:type",HTMLDivElement)],KD.prototype,"playerContainer",void 0);_.A([_.O7("#playlist"),_.p("design:type",HTMLDivElement)],KD.prototype,"JSC$19885_playlistPanel",void 0);_.A([_.r(),_.p("design:type",Object)],KD.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],KD.prototype,"active",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],KD.prototype,"hasNoData",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],KD.prototype,"enabled",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],KD.prototype,"expanded",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],KD.prototype,"readyToResume",void 0);
_.A([_.r(),_.p("design:type",Object)],KD.prototype,"isDisabled",void 0);_.A([_.r(),_.p("design:type",Object)],KD.prototype,"externalPlaylistData",void 0);_.A([_.r(),_.p("design:type",Array)],KD.prototype,"premiumBadges",void 0);_.A([_.r(),_.p("design:type",Object)],KD.prototype,"toastData",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],KD.prototype,"watchWhile",void 0);_.A([_.r(),_.p("design:type",Boolean)],KD.prototype,"premiumBranding",void 0);
_.A([_.r(),_.p("design:type",Object)],KD.prototype,"playerState",void 0);_.A([_.r(),_.p("design:type",Boolean)],KD.prototype,"continueWatching",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],KD.prototype,"verticalAttachment",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],KD.prototype,"horizontalAttachment",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],KD.prototype,"isAnimatingFade",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],KD.prototype,"isAnimatingSnap",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],KD.prototype,"isAnimatingExpand",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],KD.prototype,"isDragging",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],KD.prototype,"playerHidden",void 0);
_.A([_.r({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.p("design:type",Object)],KD.prototype,"playlistData",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.p("design:type",Object)],KD.prototype,"hasPlaylistData",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],KD.prototype,"closed",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],KD.prototype,"expandedClosed",void 0);
_.A([_.r({selector:_.kDU}),_.p("design:type",Boolean)],KD.prototype,"isSingleOptionSurveyActive",void 0);_.A([_.r({reflectToAttribute:!0,selector:_.AN}),_.p("design:type",Boolean)],KD.prototype,"isWatchPage",void 0);_.A([_.r({reflectToAttribute:!0}),_.G("watchWhile"),_.p("design:type",Object),_.p("design:paramtypes",[])],KD.prototype,"showInfoBar",null);_.A([_.G("premiumBadges","showInfoBar"),_.p("design:type",Object),_.p("design:paramtypes",[])],KD.prototype,"showOverlayPremiumBadges",null);
_.A([_.r(),_.p("design:type",Object)],KD.prototype,"watchResponse",void 0);_.A([_.r(),_.p("design:type",Object)],KD.prototype,"miniplayerRenderer",void 0);_.A([_.r(),_.p("design:type",Object)],KD.prototype,"playabilityStatus",void 0);_.A([_.r(),_.p("design:type",Object)],KD.prototype,"playerVe",void 0);_.A([_.r(),_.p("design:type",Object)],KD.prototype,"expandVe",void 0);_.A([_.r(),_.p("design:type",Object)],KD.prototype,"closeVe",void 0);
_.A([_.r(),_.p("design:type",Object)],KD.prototype,"readyToResumeCloseVe",void 0);_.A([_.r(),_.p("design:type",_.kI)],KD.prototype,"readyToResumeVe",void 0);_.A([_.r(),_.p("design:type",_.kI)],KD.prototype,"resizeVe",void 0);_.A([_.r(),_.p("design:type",_.kI)],KD.prototype,"repositionVe",void 0);_.A([_.e0("hasPlaylistData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],KD.prototype,"hasPlaylistDataChanged",null);
_.A([_.e0("playerVe"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],KD.prototype,"onPlayerVeChange",null);_.A([_.e0("premiumBranding"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],KD.prototype,"premiumBrandingChanged",null);_.A([_.e0("readyToResumeVe"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],KD.prototype,"readyToResumeVeChanged",null);
_.A([_.e0("isDisabled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],KD.prototype,"onIsDisabledChanged",null);_.A([_.G("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.p("design:type",Object),_.p("design:paramtypes",[])],KD.prototype,"miniplayerSubtitle",null);_.A([_.G("data.miniplayerTitle","externalPlaylistData"),_.p("design:type",Object),_.p("design:paramtypes",[])],KD.prototype,"miniplayerTitle",null);
_.A([_.G("externalPlaylistData","continueWatching"),_.p("design:type",Object),_.p("design:paramtypes",[])],KD.prototype,"playlistIndexMessage",null);_.A([_.r({reflectToAttribute:!0}),_.G("playabilityStatus"),_.p("design:type",Object),_.p("design:paramtypes",[])],KD.prototype,"showErrorScreen",null);_.A([_.r({reflectToAttribute:!0}),_.G("watchWhile"),_.p("design:type",Object),_.p("design:paramtypes",[])],KD.prototype,"watchWhileHidden",null);
_.f("ytd_miniplayer_to_wiz")||_.m(KD,"ytd-miniplayer",function(){if(QpK===void 0){var R=document.createElement("template");_.H(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="blocking-container" hidden="[[!isDisabled]]" on-click="onDisabledTap" class="style-scope ytd-miniplayer">\n  <yt-icon-button aria-label$="[[computeDisabledStateCloseButtonLabel()]]" on-click="onDisabledCloseMiniplayer" class="style-scope ytd-miniplayer">\n    <yt-icon id="close-icon" icon="yt-icons:close" class="style-scope ytd-miniplayer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div class="miniplayer style-scope ytd-miniplayer" role="dialog">\n  <div id="card" class="style-scope ytd-miniplayer">\n    <div id="draggable" class="style-scope ytd-miniplayer">\n      <div id="video-container" class="style-scope ytd-miniplayer">\n        <div id="player-container" class="style-scope ytd-miniplayer"></div>\n        <yt-playability-error-supported-renderers id="error-screen" compact="" data="[[playabilityStatus.errorScreen]]" hidden$="[[!showErrorScreen]]" reason="[[playabilityStatus.reason]]" status="[[playabilityStatus.status]]" class="style-scope ytd-miniplayer">\n        </yt-playability-error-supported-renderers>\n        <ytd-badge-supported-renderer class="premium-badges overlay style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!showOverlayPremiumBadges]]" overlay-premium="">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="card-owner-name" class="owner-name style-scope ytd-miniplayer" hidden="[[!showOverlayPremiumBadges]]" no-endpoints="" text="[[miniplayerSubtitle]]">\n        </yt-formatted-string>\n      </div>\n      <div id="info-bar" on-click="onPlaylistExpandTap" hidden="[[!showInfoBar]]" class="style-scope ytd-miniplayer">\n        <div class="metadata style-scope ytd-miniplayer">\n          <h1 aria-label$="[[getSimpleString(data.miniplayerTitle)]]" class="title meta style-scope ytd-miniplayer" hidden="[[!active]]" on-click="onMetadataTap" role="heading">\n            <yt-formatted-string class="miniplayer-title style-scope ytd-miniplayer" ellipsis-truncate="" text="[[miniplayerTitle]]">\n            </yt-formatted-string>\n          </h1>\n          <div class="channel style-scope ytd-miniplayer">\n            <ytd-badge-supported-renderer class="premium-badges style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!premiumBadges.length]]">\n            </ytd-badge-supported-renderer>\n            <yt-formatted-string id="owner-name" no-endpoints="" text="[[miniplayerSubtitle]]" class="style-scope ytd-miniplayer">\n            </yt-formatted-string>\n            <div class="index-message style-scope ytd-miniplayer" hidden="[[computePlaylistIndexHidden(playlistIndexMessage, readyToResume)]]">\n              <span class="text-divider style-scope ytd-miniplayer">\u2022</span>\n              <span class="style-scope ytd-miniplayer">[[playlistIndexMessage]]</span>\n            </div>\n          </div>\n        </div>\n        <div class="expander style-scope ytd-miniplayer" hidden="[[computeExpandButtonHidden(hasPlaylistData, active, isDisabled)]]">\n          <yt-icon-button label="[[computeExpandButtonLabel(expanded)]]" class="style-scope ytd-miniplayer">\n            <yt-icon icon="[[getExpandIcon(expanded)]]" class="style-scope ytd-miniplayer"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <div class="dragging-cover style-scope ytd-miniplayer" hidden="[[!isDragging]]"></div>\n    </div>\n    <ytd-playlist-panel-renderer id="playlist" data="[[playlistData]]" hidden="[[computePlaylistPanelHidden(expanded, isAnimatingExpand)]]" hide-header-text="" within-miniplayer="" class="style-scope ytd-miniplayer">\n    </ytd-playlist-panel-renderer>\n    <div class="toast-container style-scope ytd-miniplayer">\n      <ytd-miniplayer-toast toast-data="[[toastData]]" class="style-scope ytd-miniplayer"></ytd-miniplayer-toast>\n    </div>\n  </div>\n  <div id="resize-container" aria-hidden="true" class="style-scope ytd-miniplayer">\n    \n    <div class="resizer style-scope ytd-miniplayer" alignment="north"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="east"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="south"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="west"><div class="corner style-scope ytd-miniplayer"></div></div>\n  </div>\n</div>\n');
R.content.insertBefore(_.t().content.cloneNode(!0),R.content.firstChild);QpK=R}R=QpK;return R},{mode:2});var I88;var I4=function(){var R=_.W.apply(this,arguments)||this;R.useListItemStyles=_.f("web_list_item_style_for_menu_items");R.systemIcons=_.f("kevlar_system_icons");return R};
_.O(I4,_.W);_.J=I4.prototype;_.J.ready=function(){this.hostElement.addEventListener("tap",_.BN(this,this.onEndpointTapExtra))};
_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.J.onFocus=function(){var R;(R=_.hw(this.hostElement).querySelector("tp-yt-paper-item"))==null||R.focus()};
_.J.onEndpointTapExtra=function(R){_.Ko(this.hostElement,"iron-activate");var y=this.data.navigationEndpoint;y&&_.e(y,_.Y0v)&&(R.stopPropagation(),_.wr(this.hostElement,[y],this.hostElement))};
_.J.computeIcon=function(R){return R&&R.iconType?_.fk(R.iconType):""};
_.J.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.J.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.J.forceUpdateStylesOnLegacyBrowsers=function(){_.f("kevlar_legacy_browsers")&&_.oX(this.hostElement)};
I4.prototype.forceUpdateStylesOnLegacyBrowsers=I4.prototype.forceUpdateStylesOnLegacyBrowsers;I4.prototype.onFocus=I4.prototype.onFocus;_.A([_.n(_.jc),_.p("design:type",Object)],I4.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.n(_.Cc5.YtConditionalRendererBehavior),_.p("design:type",Object)],I4.prototype,"ytConditionalRendererBehavior",void 0);_.A([_.n(_.ZL.YtEndpointBehavior),_.p("design:type",Object)],I4.prototype,"ytEndpointBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],I4.prototype,"data",void 0);_.A([_.r({computed:"computeIcon(data.icon)",value:""}),_.p("design:type",String)],I4.prototype,"icon",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],I4.prototype,"useIcons",void 0);_.A([_.r({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.p("design:type",Boolean)],I4.prototype,"hasSeparator",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],I4.prototype,"useListItemStyles",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],I4.prototype,"systemIcons",void 0);_.A([_.fu("focus"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],I4.prototype,"onFocus",null);_.A([_.e0("useIcons","hasSeparator"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],I4.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.m(I4,"ytd-menu-navigation-item-renderer",function(){if(I88===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);I88=R}R=I88;return R},{mode:1});var hwm;var bwP=_.ye(_.fo("DOWNLOAD",{},"Download")),F6p=_.ye(_.fo("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),wxH=_.ye(_.fo("RETRY",{},"Retry")),Nba=_.ye(_.fo("PAUSE_DOWNLOADING",{},"Pause downloading")),TbV=_.ye(_.fo("RESUME_DOWNLOAD",{},"Resume download")),h1=function(){var R=_.W.apply(this,arguments)||this;R.primaryText=bwP;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};
_.O(h1,_.W);_.J=h1.prototype;_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.J.onFocus=function(){this.primaryEntry.focus()};
_.J.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.J.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.J.getRemoveAction=function(){return"ACTION_REMOVE"};
_.J.sendOfflineAction=function(R){var y=this.data.serviceEndpoint;if(y){var u=_.e(y,_.OC);u&&R&&(u.action=R);this.ytComponentBehavior.resolveCommand(y)}};
_.J.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=bwP,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=bwP;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=wxH;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=F6p;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=TbV;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=F6p;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
Nba;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=F6p;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=F6p;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=bwP,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.J.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.J.isSecondaryEntryHidden=function(R,y){return R?!0:!y};
_.J.computeHasSeparator=function(){var R;return!((R=this.data)==null||!R.hasSeparator)};
h1.prototype.showHideButton=h1.prototype.showHideButton;h1.prototype.onTransferStateChange=h1.prototype.onTransferStateChange;h1.prototype.onFocus=h1.prototype.onFocus;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],h1.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],h1.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],h1.prototype,"ytComponentBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],h1.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],h1.prototype,"primaryText",void 0);_.A([_.r(),_.p("design:type",String)],h1.prototype,"primaryIconType",void 0);_.A([_.r(),_.p("design:type",String)],h1.prototype,"primaryAction",void 0);_.A([_.r(),_.p("design:type",Object)],h1.prototype,"secondaryText",void 0);_.A([_.r(),_.p("design:type",String)],h1.prototype,"secondaryIconType",void 0);
_.A([_.r(),_.p("design:type",String)],h1.prototype,"secondaryAction",void 0);_.A([_.r(),_.p("design:type",Object)],h1.prototype,"hasSecondaryContent",void 0);_.A([_.r({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.p("design:type",Object)],h1.prototype,"hasSeparator",void 0);_.A([_.r({selector:_.pz,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.p("design:type",String)],h1.prototype,"transferState",void 0);
_.A([_.r({selector:_.ynE,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.p("design:type",Object)],h1.prototype,"isVideoDeletedByUser",void 0);_.A([_.r(),_.p("design:type",Object)],h1.prototype,"isHidden",void 0);_.A([_.r({selector:_.YTv,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.p("design:type",Object)],h1.prototype,"offlineabilityState",void 0);_.A([_.O7("#primary-entry"),_.p("design:type",Object)],h1.prototype,"primaryEntry",void 0);
_.A([_.fu("focus"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],h1.prototype,"onFocus",null);_.A([_.GJ("transferState","isVideoDeletedByUser"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],h1.prototype,"onTransferStateChange",null);_.A([_.GJ("offlineabilityState"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],h1.prototype,"showHideButton",null);
_.m(h1,"ytd-menu-service-item-download-renderer",function(){if(hwm===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);hwm=R}R=hwm;return R},{mode:1});var oQM;var bM=function(){var R=_.W.apply(this,arguments)||this;R.useIcons=!1;R.systemIcons=_.f("kevlar_system_icons");R.useListItemStyles=_.f("web_list_item_style_for_menu_items");return R};
_.O(bM,_.W);_.J=bM.prototype;_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.J.onFocus=function(){var R;(R=_.hw(this.hostElement).querySelector("tp-yt-paper-item"))==null||R.focus()};
_.J.onTap=function(){_.h_(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var R=this.data.serviceEndpoint,y=this.data.command;if(R){var u,v=(u=this.data)==null?void 0:u.trackingParams;u=!!_.e(R,_.sQc);v&&u&&_.Qe().dispatch(_.iE({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:v}}));this.ytComponentBehavior.resolveCommand(R)||_.ua().resolve(_.jX).resolveCommand(R,{form:{element:this.hostElement}})}y&&(this.ytComponentBehavior.resolveCommand(y)||_.wr(this.hostElement,
[y],this.hostElement))};
_.J.computeIcon=function(R){return R&&R.iconType?_.fk(R.iconType):""};
_.J.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.J.computeHasSeparator=function(){var R;return!((R=this.data)==null||!R.hasSeparator)};
_.J.forceUpdateStylesOnLegacyBrowsers=function(){_.f("kevlar_legacy_browsers")&&_.oX(this.hostElement)};
_.J.computeIsSelected=function(){var R;return!((R=this.data)==null||!R.isSelected)};
bM.prototype.forceUpdateStylesOnLegacyBrowsers=bM.prototype.forceUpdateStylesOnLegacyBrowsers;bM.prototype.onTap=bM.prototype.onTap;bM.prototype.onFocus=bM.prototype.onFocus;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],bM.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.jc),_.p("design:type",Object)],bM.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],bM.prototype,"ytComponentBehavior",void 0);
_.A([_.n(_.Cc5.YtConditionalRendererBehavior),_.p("design:type",Object)],bM.prototype,"ytConditionalRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],bM.prototype,"data",void 0);_.A([_.r({computed:"computeIcon(data.icon)",value:""}),_.p("design:type",String)],bM.prototype,"icon",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bM.prototype,"useIcons",void 0);
_.A([_.r({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.p("design:type",Boolean)],bM.prototype,"hasSeparator",void 0);_.A([_.r({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.p("design:type",Boolean)],bM.prototype,"isSelected",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bM.prototype,"systemIcons",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],bM.prototype,"useListItemStyles",void 0);
_.A([_.fu("focus"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bM.prototype,"onFocus",null);_.A([_.fu("tap"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],bM.prototype,"onTap",null);_.A([_.e0("useIcons","hasSeparator"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],bM.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.m(bM,"ytd-menu-service-item-renderer",function(){if(oQM===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);oQM=R}R=oQM;return R},{mode:2});var xog;var FI=function(){return _.W.apply(this,arguments)||this};
_.O(FI,_.W);_.J=FI.prototype;_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.onDataChanged=function(){var R=this;_.gn(this,function(){R.postbox.openDialog();R.focus();_.Ko(R.hostElement,"yt-refit")})};
_.J.focus=function(){this.postbox.focus()};
_.J.closePopup=function(){_.Ik(this.hostElement,"yt-close-popup-action")};
_.J.onYtCommentboxDismiss=function(){this.closePopup()};
FI.prototype.onYtCommentboxDismiss=FI.prototype.onYtCommentboxDismiss;FI.prototype.onDataChanged=FI.prototype.onDataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],FI.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],FI.prototype,"data",void 0);_.A([_.r({value:function(){return _.fo("SBOX_INAPPROPRIATE_CANCEL")}}),
_.p("design:type",String)],FI.prototype,"closeButtonAriaLabel",void 0);_.A([_.O7("#postbox"),_.p("design:type",Object)],FI.prototype,"postbox",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FI.prototype,"onDataChanged",null);_.A([_.fu("yt-commentbox-dismiss"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],FI.prototype,"onYtCommentboxDismiss",null);
_.A([_.q({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],FI);
_.m(FI,"ytd-backstage-post-dialog-popup-renderer",function(){if(xog!==void 0)return xog;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return xog=R},{mode:1});var Bbp;var wL=function(){return _.W.apply(this,arguments)||this};
_.O(wL,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],wL.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],wL.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],wL);
_.m(wL,"ytd-sender-id-section-renderer",function(){if(Bbp!==void 0)return Bbp;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);
return Bbp=R},{mode:1});var f8P;var ewZ;var l8Z;var Nu=function(){return _.W.apply(this,arguments)||this};
_.O(Nu,_.W);Nu.prototype.closePopup=function(){_.Ik(this.hostElement,"yt-close-popup-action")};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Nu.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Nu.prototype,"data",void 0);_.A([_.pu({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],Nu);
_.m(Nu,"yt-community-post-section-renderer",function(){if(l8Z===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;ewZ===void 0&&(ewZ=document.createElement("template"));var v=ewZ;u.call(y,v.content.cloneNode(!0),R.content.firstChild);l8Z=R}R=l8Z;return R},{mode:2});var Owa;var Zwa;var Hwa;var nQm;var GtV;var rrH;var Tc=function(){return _.W.apply(this,arguments)||this};
_.O(Tc,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Tc.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Tc.prototype,"data",void 0);_.A([_.pu({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],Tc);
_.m(Tc,"yt-share-start-time-with-context-renderer",function(){if(rrH===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;GtV===void 0&&(GtV=document.createElement("template"));var v=GtV;u.call(y,v.content.cloneNode(!0),R.content.firstChild);rrH=R}R=rrH;return R},{mode:2});var o4=function(){return _.W.apply(this,arguments)||this};
_.O(o4,_.W);o4.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],o4.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],o4.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],o4.prototype,"data",void 0);_.A([_.pu({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],o4);
_.m(o4,"yt-share-panel-title-v15-renderer",function(){if(nQm===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;Hwa===void 0&&(Hwa=document.createElement("template"));var v=Hwa;u.call(y,v.content.cloneNode(!0),R.content.firstChild);nQm=R}R=nQm;return R},{mode:2});var xG=function(){return _.W.apply(this,arguments)||this};
_.O(xG,_.W);xG.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],xG.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],xG.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],xG.prototype,"data",void 0);_.A([_.pu({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],xG);
_.m(xG,"yt-share-panel-header-renderer",function(){if(Zwa===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;Owa===void 0&&(Owa=document.createElement("template"));var v=Owa;u.call(y,v.content.cloneNode(!0),R.content.firstChild);Zwa=R}R=Zwa;return R},{mode:2});var P2Z;var W6Z;var Bl=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-open-popup-action":"onOpen"};return R};
_.O(Bl,_.W);_.J=Bl.prototype;_.J.attached=function(){this.onOpen()};
_.J.updateTimeSecs=function(R){this.currentTimeSecs=R};
_.J.computeTimeString=function(R){R=R.toString();var y=Math.floor(Number(R)/3600),u=Math.floor(Number(R)%3600%60);return(y>0?y+":":"")+_.ij(Math.floor(Number(R)%3600/60),y>0?2:1)+":"+_.ij(u,2)};
_.J.computeTimeStringA11y=function(R){R=_.vXG({seconds:R});var y=R.hours===void 0?0:R.hours,u=R.minutes===void 0?0:R.minutes,v=R.seconds===void 0?0:R.seconds;R=[];if(y>0){var Q=Ov8().format({hours:y});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.S6)||y>9999)Q=Q.replace(y.toString(),_.QiS(y)),_.S6==="km"&&(Q=Q.replace(".",","));R.push(Q)}u>0&&R.push(Ov8().format({minutes:u}));v>0&&R.push(Ov8().format({seconds:v}));y="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");u=_.S6==
"am"?"{0}\u1363 ":_.S6=="fa"?"{0}\u060c\u200f ":_.S6=="my"?"{0} - ":_.S6=="ne"?"{0},":_.S6=="th"?"{0} ":_.S6=="ur"?"{0}\u060c ":_.S6=="ar"||_.S6=="ar-XB"?"{0} \u0648":_.S6=="ja"||_.S6=="zh-CN"||_.S6=="zh-HK"||_.S6=="zh-TW"?"{0}\u3001":"{0}, ";v=_.S6=="am"?"\u1363 ":_.S6=="fa"?"\u060c\u200f ":_.S6=="my"?" - ":_.S6=="th"?" ":_.S6=="ur"?"\u060c ":_.S6=="ar"||_.S6=="ar-XB"?" \u0648":_.S6=="ja"||_.S6=="zh-CN"||_.S6=="zh-HK"||_.S6=="zh-TW"?"\u3001":", ";Q=_.S6=="am"?" \u12a5\u1293 {0}":_.S6=="as"?" \u0986\u09f0\u09c1 {0}":
_.S6=="az"?" v\u0259 {0}":_.S6=="bn"?" \u098f\u09ac\u0982 {0}":_.S6=="cs"?" a\u00a0{0}":_.S6=="de"?" und {0}":_.S6=="el"?" \u03ba\u03b1\u03b9 {0}":_.S6=="eu"?" eta {0}":_.S6=="fa"?"\u060c \u0648 {0}":_.S6=="fil"?", at {0}":_.S6=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.S6=="hi"?", \u0914\u0930 {0}":_.S6=="hu"?" \u00e9s {0}":_.S6=="hy"?" \u0587 {0}":_.S6=="id"?", dan {0}":_.S6=="iw"?" \u05d5-{0}":_.S6=="ja"?"\u3001{0}":_.S6=="ka"?" \u10d3\u10d0 {0}":_.S6=="km"?" \u1793\u17b7\u1784 {0}":_.S6=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.S6=="ko"?" \ubc0f {0}":_.S6=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.S6=="lt"?" ir {0}":_.S6=="lv"?" un {0}":_.S6=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.S6=="mr"?" \u0906\u0923\u093f {0}":_.S6=="ms"?" dan {0}":_.S6=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.S6=="ne"?" \u0930 {0}":_.S6=="or"?", \u0b13 {0}":_.S6=="pa"?" \u0a05\u0a24\u0a47 {0}":_.S6=="ro"?" \u0219i {0}":_.S6=="si"?", \u0dc3\u0dc4 {0}":_.S6=="sk"?" a {0}":_.S6=="sl"?" in {0}":_.S6=="sq"?" dhe {0}":_.S6=="sv"?" och {0}":
_.S6=="sw"?" na {0}":_.S6=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.S6=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.S6=="th"?" \u0e41\u0e25\u0e30{0}":_.S6=="tr"?" ve {0}":_.S6=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.S6=="uz"?" va {0}":_.S6=="vi"?" v\u00e0 {0}":_.S6=="zh-HK"?"\u53ca{0}":_.S6=="zu"?", ne-{0}":_.S6=="af"||_.S6=="nl"?" en {0}":_.S6=="ar"||_.S6=="ar-XB"?" \u0648{0}":_.S6=="be"||_.S6=="uk"?" \u0456 {0}":_.S6=="en-GB"||_.S6=="en-IN"?" and {0}":_.S6=="en"||_.S6=="en-XA"?
", and {0}":_.S6=="et"||_.S6=="fi"?" ja {0}":_.S6=="fr"||_.S6=="fr-CA"?" et {0}":_.S6=="zh-CN"||_.S6=="zh-TW"?"\u548c{0}":_.S6=="da"||_.S6=="is"||_.S6=="no"?" og {0}":_.S6=="es"||_.S6=="es-419"||_.S6=="es-US"?" y {0}":_.S6=="kk"||_.S6=="lo"||_.S6=="mn"?", {0}":_.S6=="bg"||_.S6=="mk"||_.S6=="ru"||_.S6=="sr"?" \u0438 {0}":_.S6=="gl"||_.S6=="it"||_.S6=="pt-BR"||_.S6=="pt-PT"?" e {0}":" i {0}";var M=_.S6=="am"?"{0} \u12a5\u1293 {1}":_.S6=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.S6=="az"?"{0} v\u0259 {1}":
_.S6=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.S6=="de"?"{0} und {1}":_.S6=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.S6=="eu"?"{0} eta {1}":_.S6=="fa"?"{0} \u0648 {1}":_.S6=="fil"?"{0} at {1}":_.S6=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.S6=="hi"?"{0} \u0914\u0930 {1}":_.S6=="hu"?"{0} \u00e9s {1}":_.S6=="hy"?"{0} \u0587 {1}":_.S6=="iw"?"{0} \u05d5-{1}":_.S6=="ja"?"{0}\u3001{1}":_.S6=="ka"?"{0} \u10d3\u10d0 {1}":_.S6=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.S6=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.S6=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.S6=="ko"?"{0} \ubc0f {1}":_.S6=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.S6=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.S6=="lt"?"{0} ir {1}":_.S6=="lv"?"{0} un {1}":_.S6=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.S6=="mn"?"{0}, {1}":_.S6=="mr"?"{0} \u0906\u0923\u093f {1}":_.S6=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.S6=="ne"?"{0} \u0930 {1}":_.S6=="or"?"{0} \u0b13 {1}":_.S6=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.S6=="ro"?"{0} \u0219i {1}":_.S6==
"si"?"{0} \u0dc3\u0dc4 {1}":_.S6=="sl"?"{0} in {1}":_.S6=="sq"?"{0} dhe {1}":_.S6=="sv"?"{0} och {1}":_.S6=="sw"?"{0} na {1}":_.S6=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.S6=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.S6=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.S6=="tr"?"{0} ve {1}":_.S6=="ur"?"{0} \u0627\u0648\u0631 {1}":_.S6=="uz"?"{0} va {1}":_.S6=="vi"?"{0} v\u00e0 {1}":_.S6=="zh-HK"?"{0}\u53ca{1}":_.S6=="zu"?"{0} ne-{1}":_.S6=="af"||_.S6=="nl"?"{0} en {1}":_.S6=="ar"||_.S6==
"ar-XB"?"{0} \u0648{1}":_.S6=="be"||_.S6=="uk"?"{0} \u0456 {1}":_.S6=="cs"||_.S6=="sk"?"{0} a\u00a0{1}":_.S6=="et"||_.S6=="fi"?"{0} ja {1}":_.S6=="fr"||_.S6=="fr-CA"?"{0} et {1}":_.S6=="id"||_.S6=="ms"?"{0} dan {1}":_.S6=="zh-CN"||_.S6=="zh-TW"?"{0}\u548c{1}":_.S6=="da"||_.S6=="is"||_.S6=="no"?"{0} og {1}":_.S6=="es"||_.S6=="es-419"||_.S6=="es-US"?"{0} y {1}":_.S6=="bg"||_.S6=="mk"||_.S6=="ru"||_.S6=="sr"?"{0} \u0438 {1}":_.S6=="en"||_.S6=="en-GB"||_.S6=="en-IN"||_.S6=="en-XA"?"{0} and {1}":_.S6==
"gl"||_.S6=="it"||_.S6=="pt-BR"||_.S6=="pt-PT"?"{0} e {1}":"{0} i {1}";_.S6==="sq"?(Q=Q.replace("dhe","e"),M=M.replace("dhe","e")):_.S6==="th"?(v=v.replace("{0}"," {0}"),M=M.replace("{0}","{0} "),M=M.replace("{1}"," {1}")):_.S6==="ne"?v=",":_.S6==="zh-CN"?v="":y.includes(_.S6)&&(v=" ");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(_.S6)?R.length===2?
M.replace("{0}",R[0]).replace("{1}",R[1]):u.replace("{0}",R[0])+R.slice(1,-1).join(v)+Q.replace("{0}",R[R.length-1]):R.join(v)};
_.J.getTimeParam=function(){return C8a(this.timeString)};
_.J.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var R={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},y;_.e2(_.GN(),(y=this.data)==null?void 0:y.trackingParams,R,7)};
_.J.onChangeStartAtTimestamp=function(){for(var R=this.startAtTimestamp.value.split(":"),y=0,u=1,v=R.length-1;v>=0;v--)y+=Number(R[v])*u,u*=60;this.updateTimeSecs(y);this.setTimestamp()};
_.J.onOpen=function(){var R=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var y=_.I8();y?y.getPlayerPromise().then(function(u){u=u.getCurrentTime();R.updateTimeSecs(u)}):e5P()&&this.updateTimeSecs(e5P())};
_.J.setTimestamp=function(){var R=Math.floor(this.currentTimeSecs);_.Ik(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!R,timestamp:R||""}])};
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Bl.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Bl.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Bl.prototype,"data",void 0);_.A([_.r({value:!1,notify:!0}),_.p("design:type",Boolean)],Bl.prototype,"isStartAtChecked",void 0);_.A([_.r(),_.p("design:type",Number)],Bl.prototype,"currentTimeSecs",void 0);
_.A([_.r({computed:"computeTimeString(currentTimeSecs)"}),_.p("design:type",String)],Bl.prototype,"timeString",void 0);_.A([_.r({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.p("design:type",String)],Bl.prototype,"timeStringA11y",void 0);_.A([_.O7("#start-at-timestamp"),_.p("design:type",Object)],Bl.prototype,"startAtTimestamp",void 0);_.A([_.pu({is:"yt-start-at-renderer",disableElementRegistration:!0})],Bl);
_.m(Bl,"yt-start-at-renderer",function(){if(W6Z===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;P2Z===void 0&&(P2Z=document.createElement("template"));var v=P2Z;u.call(y,v.content.cloneNode(!0),R.content.firstChild);W6Z=R}R=W6Z;return R},{mode:2});var doa;var UoV;var ktK=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"]]),EQ7=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"]]),$oZ=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var qu8={};qu8.YtBindingExpressionsBehavior={identity:_.kS,msg:function(R,y){y=y===void 0?{}:y;return _.fo(R,y,R)},
msgPlural:function(R,y){return _.ei(R,y)},
getMusicIconFromType:function(R){if(_.f("music_web_enable_icon_wil"))R=_.fk(R);else if(EQ7.has(R))R="yt-sys-icons:"+EQ7.get(R);else{var y=ktK.get(R)||_.fk(R).split(":")[1];y=_.PeT(y);var u;R=((u=$oZ.get(R))!=null?u:"yt-sys-icons:")+y}return R}};var XxZ;var moP;var Ara;var DoM=document.head,pxV=DoM.appendChild,taP;if(Ara===void 0){var crp=document.createElement("template");_.H(crp,'\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>');Ara=crp}taP=Ara;pxV.call(DoM,taP.content);var fD=function(){var R=_.W.apply(this,arguments)||this;R.screenLayer=7;return R};
_.O(fD,_.W);fD.prototype.getScreenLayer=function(){return this.screenLayer};
fD.prototype.onTap=function(R){R&&R.detail&&(R.detail.x||R.detail.y)&&_.hw(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.Fh(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(R=this.getScreenLayer(),_.Ko(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()}}})};
_.RR.Object.defineProperties(fD.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()}}});
fD.prototype.onTap=fD.prototype.onTap;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],fD.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],fD.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],fD.prototype,"data",void 0);_.A([_.G("data.title"),_.p("design:type",Object),_.p("design:paramtypes",[])],fD.prototype,"title",null);
_.A([_.G("data.serviceName"),_.p("design:type",String),_.p("design:paramtypes",[])],fD.prototype,"icon",null);_.A([_.fu("tap"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],fD.prototype,"onTap",null);_.A([_.pu({is:"yt-share-target-renderer",disableElementRegistration:!0})],fD);
_.m(fD,"yt-share-target-renderer",function(){if(moP===void 0){var R=document.createElement("template");_.H(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" active="true" icon="[[icon]]" size="60"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');R.content.insertBefore(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;XxZ===void 0&&(XxZ=document.createElement("template"));var v=XxZ;u.call(y,v.content.cloneNode(!0),R.content.firstChild);moP=R}R=moP;return R},{mode:2});var a8M;var SuJ;var eG=function(){var R=_.W.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};
_.O(eG,_.W);_.J=eG.prototype;_.J.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.J.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.hw(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.hw(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.J.onReset_=function(){if(_.hw(this.hostElement).querySelector("#list")){var R=_.hw(this.hostElement).querySelector("#list");var y=_.hw(this.hostElement).querySelector("#list");var u=y.offsetLeft,v=y.offsetParent;v||_.Wg8(y)!="fixed"||(v=_.kh(y).documentElement);if(v){if(_.NO&&!_.oE(58)){var Q=_.mVV(v);u+=Q.left}else Number(_.QBE)>=8&&!(Number(_.QBE)>=9)&&(Q=_.mVV(v),u-=Q.left);y=_.qmc(v)?v.clientWidth-(u+y.offsetWidth):u}else y=u;dr7(R,y);this.updateScrollButtons_()}};
_.J.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.J.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.J.onScrollWheel_=function(R){R.stopPropagation();R.preventDefault();var y=Wrp(_.hw(this.hostElement).querySelector("#list"));R=Math.abs(R.deltaX)>Math.abs(R.deltaY)?R.deltaX:R.deltaY;dr7(_.hw(this.hostElement).querySelector("#list"),y+R);this.updateScrollButtons_()};
_.J.smoothScrollByOnePage_=function(R){var y=_.hw(this.hostElement).querySelector("#list"),u=(Math.floor(y.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,v=Wrp(y),Q=u*(R?1:-1),M=this.PAGE_SCROLL_SPEED,K=this.updateScrollButtons_.bind(this),h=0,b;(function T(){h+=M;b=h/u*2;dr7(y,v+Q*(b<1?b*b:-b*b+4*b-2));h<u?window.requestAnimationFrame(T):K()})()};
_.J.updateScrollButtons_=function(){var R=Wrp(_.hw(this.hostElement).querySelector("#list")),y=_.hw(this.hostElement).querySelector("#list").scrollWidth-_.hw(this.hostElement).querySelector("#list").clientWidth;_.hw(this.hostElement).querySelector("#scroll-button-back").hidden=R<=0;_.hw(this.hostElement).querySelector("#scroll-button-forward").hidden=R>=y};
eG.prototype.onScrollWheel_=eG.prototype.onScrollWheel_;eG.prototype.onDataChanged_=eG.prototype.onDataChanged_;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],eG.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],eG.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(qu8.YtBindingExpressionsBehavior),_.p("design:type",Object)],eG.prototype,"ytBindingExpressionsBehavior",void 0);
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],eG.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],eG.prototype,"data",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],eG.prototype,"onDataChanged_",null);_.A([_.fu("wheel"),_.p("design:type",Function),_.p("design:paramtypes",[WheelEvent]),_.p("design:returntype")],eG.prototype,"onScrollWheel_",null);
_.A([_.pu({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],eG);
_.m(eG,"yt-third-party-share-target-section-renderer",function(){if(SuJ===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;a8M===void 0&&(a8M=document.createElement("template"));var v=a8M;u.call(y,v.content.cloneNode(!0),R.content.firstChild);SuJ=R}R=SuJ;return R},{mode:2});var lM=function(){return _.W.apply(this,arguments)||this};
_.O(lM,_.W);lM.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],lM.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],lM.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],lM.prototype,"data",void 0);_.A([_.pu({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],lM);
_.m(lM,"yt-third-party-network-section-renderer",function(){if(UoV===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;doa===void 0&&(doa=document.createElement("template"));var v=doa;u.call(y,v.content.cloneNode(!0),R.content.firstChild);UoV=R}R=UoV;return R},{mode:2});_.h6(_.Jd(function(R){return _.F("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.F("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.F(_.mk,{data:function(){return R.data().firstPartyItems}},{listItemViewModel:_.aY})))},"Hg"),"first-party-network-section-view-model",{props:{data:_.vR}});var Yup=_.RE(["data:image/svg+xml;charset=UTF-8;base64,",""]),Og=function(){var R=_.W.apply(this,arguments)||this;R.screenLayer=7;R.qrCodeEnabled=_.f("web_enable_sharing_qr_code");R.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return R};
_.O(Og,_.W);_.J=Og.prototype;_.J.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"}}}};
_.J.attached=function(){this.JSC$19937_scroller&&(this.JSC$19937_scroller.dialogElement=this.hostElement.parentNode,this.JSC$19937_scroller.attached&&typeof this.JSC$19937_scroller.attached==="function"&&this.JSC$19937_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.J.onDataChanged=function(){var R=this,y;(y=this.data)!=null&&y.contents&&(this.hostElement.setAttribute("links-only","true"),_.w2(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.gn(this,function(){_.Ko(R.hostElement,"yt-refit");R.focusSharePanelHeader()}))};
_.J.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.J.handleSetTimestamp=function(R){var y=this.shortUrl();R.isSet&&(y=_.Lp(y,"t",R.timestamp));this.maybeRenderQrCode(y)};
_.J.shortUrl=function(){var R,y=(R=this.data)==null?void 0:R.contents;if(y)for(R=0;R<y.length;R++){var u=void 0,v=void 0;if((u=y[R])==null?0:(v=u.thirdPartyNetworkSection)==null?0:v.copyLinkContainer){var Q=v=u=void 0;return(Q=_.e((u=y[R])==null?void 0:(v=u.thirdPartyNetworkSection)==null?void 0:v.copyLinkContainer,ULM))==null?void 0:Q.shortUrl}}};
_.J.maybeRenderQrCode=function(R){var y=this,u,v,Q,M,K,h,b,N,T;return _.I(function(x){if(x.nextAddress==1){u=_.hw(y.hostElement).querySelector("#qr-code");if(!y.qrCodeEnabled||!R)return u&&(u.style.display="none"),x.return();v=_.Ao8(_.ua().resolve(_.eb),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});Q=document.createElement("div");return typeof v==="function"?(v(Q),x.jumpTo(2)):x.yield(v,3)}x.nextAddress!=2&&(M=x.yieldResult,M(Q));b=(K=Q)==null?void 0:(h=K.firstChild)==null?void 0:h.firstChild;
N=document.createElement("img");T=_.gEP(Yup,btoa(b.outerHTML));N.onload=function(){var B={canvas:u,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:N},l=new zBZ;vvI(l,R);QHp(l,!1,jHI(l));var Z=l.modules,P=Object.assign({},OVJ,B);Z=structuredClone(Z);B=Z.length;var k,E=(k=P.canvas)!=null?k:document.createElement("canvas");k=P.cellSize;l=P.logo;var D,z=(D=P.logoSize)!=null?D:Math.floor(B/4);B%2!==z%2&&z++;var c=P.logoPadding,a=P.backgroundColor;D=B*k;var L=
P.width,QG=0;L&&(QG=P.padding,QG=Math.ceil(QG*D/(L-QG*2)),E.style.width=L+"px",E.style.height=L+"px");E.width!==D+QG*2&&(E.width=D+QG*2);E.height!==D+QG*2&&(E.height=D+QG*2);D=E.getContext("2d");P.autoClear&&D.clearRect(0,0,E.width,E.height);D.fillStyle=a;D.beginPath();D.roundRect(0,0,E.width,E.height,P.borderRadius);D.fill();D.save();D.translate(QG,QG);if(l)for(E=Math.floor(B-z)/2-c,c=Math.floor(B+z)/2+c,a=E;a<c;a++)for(L=E;L<c;L++)Z[a][L]=!1;for(E=0;E<B;E++)for(c=0;c<B;c++)(E<7&&c<7||E<7&&c>=B-
7||E>=B-7&&c<7)&&(Z[E][c]=!1);var hz;E=(hz=P.markerColor)!=null?hz:P.color;JU7(D,0,0,k,E);JU7(D,k*(B-7),0,k,E);JU7(D,0,k*(B-7),k,E);switch(P.cellStyle){case 0:hz=Z;Z=hz.length;E=P.cellSize;D.beginPath();for(c=0;c<Z;c++)for(a=0;a<Z;a++)hz[c][a]&&D.rect(c*E,a*E,E,E);D.fillStyle=P.color;D.fill();break;case 1:hz=Z;Z=hz.length;E=P.cellSize;c=E*P.relativeCircleSize;D.fillStyle=P.color;D.beginPath();for(P=0;P<Z;P++)for(a=0;a<Z;a++)hz[P][a]&&(D.beginPath(),D.ellipse((P+.5)*E,(a+.5)*E,c/2,c/2,0,0,2*Math.PI),
D.fill());D.fill();break;case 2:hz=Z;Z=hz.length;E=P.cellSize;D.fillStyle=P.color;P=[[1,1],[-1,1],[-1,-1],[1,-1]];D.beginPath();for(c=0;c<Z;c++)for(a=0;a<Z;a++)if(hz[c][a])D.roundRect(c*E,a*E,E,E,E/2),c+1<Z&&hz[c+1][a]&&D.rect(c*E+E/2,a*E,E,E),a+1<Z&&hz[c][a+1]&&D.rect(c*E,a*E+E/2,E,E);else{L=c*E+E/2;QG=a*E+E/2;for(var bO=0;bO<4;bO++){var BW=_.V(P[bO]),Zc=BW.next().value;BW=BW.next().value;c+Zc>=0&&c+Zc<Z&&a+BW>=0&&a+BW<Z&&hz[c+Zc][a]&&hz[c][a+BW]&&hz[c+Zc][a+BW]&&(Zc=bO*Math.PI/2,BW=E/2,D.moveTo(L+
BW*Math.cos(Zc),QG+BW*Math.sin(Zc)),D.arc(L,QG,E/2,Zc,Zc+Math.PI/2,!1),D.lineTo(L+BW*(Math.cos(Zc)-Math.sin(Zc)),QG+BW*(Math.cos(Zc)+Math.sin(Zc))),D.lineTo(L+BW*Math.cos(Zc),QG+BW*Math.sin(Zc)))}}D.fill()}l&&D.drawImage(l,(B-z)*k/2,(B-z)*k/2,z*k,z*k);D.restore();u.style.removeProperty("display")};
N.src=_.Pg(T);_.f$(x)})};
_.J.hasCommunityPostRenderer=function(){var R,y,u,v;return!!((R=this.data)==null?0:(y=R.header)==null?0:(u=y.sharePanelHeaderRenderer)==null?0:(v=u.communityPost)==null?0:v.communityPostSectionRenderer)};
_.J.onTapClose=function(){_.Ik(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.J.getScreenLayer=function(){return this.screenLayer};
_.J.logSharePanelPage=function(){if(!_.f("enable_share_panel_navigation_logging_fix_on_web")){var R;if((R=this.data)!=null&&R.trackingParams){R=this.data.trackingParams;var y=this.parentClickTrackingParams;y=y?_.U4(y):void 0;var u=_.GN();_.om(u,21760,y,{layer:7,parentLayer:0});u.graftServerVe(R,void 0,7);_.Qe().dispatch(_.iE({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
Og.prototype.onDataChanged=Og.prototype.onDataChanged;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Og.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Og.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],Og.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Og.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],Og.prototype,"data",void 0);_.A([_.r({value:_.fo("SBOX_INAPPROPRIATE_CANCEL")}),_.p("design:type",String)],Og.prototype,"closeButtonAriaLabel",void 0);_.A([_.O7("yt-share-panel-header-renderer"),_.p("design:type",HTMLElement)],Og.prototype,"header",void 0);_.A([_.r({selector:function(R){return R.share.parentClickTrackingParams}}),
_.p("design:type",String)],Og.prototype,"parentClickTrackingParams",void 0);_.A([_.r(),_.p("design:type",Object)],Og.prototype,"qrCodeEnabled",void 0);_.A([_.O7("#scroller"),_.p("design:type",Object)],Og.prototype,"JSC$19937_scroller",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Og.prototype,"onDataChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],Og);
_.m(Og,"ytd-unified-share-panel-renderer",function(){if(f8P!==void 0)return f8P;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return f8P=R},{mode:1});var L67;var Z_=function(){var R=_.W.apply(this,arguments)||this;R.modernModal=!0;return R};
_.O(Z_,_.W);Z_.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
Z_.prototype.computeShouldHideOldButtons=function(){var R;return!((R=this.data)==null?0:R.button)};
_.RR.Object.defineProperties(Z_.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var R,y;return(R=this.data)==null?void 0:(y=R.button)==null?void 0:y.buttonRenderer}}});
_.A([_.r(),_.p("design:type",Object)],Z_.prototype,"data",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Z_.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.GZ.YtEventForwardingBehavior),_.p("design:type",Object)],Z_.prototype,"ytEventForwardingBehavior",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Z_.prototype,"modernModal",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Z_.prototype,"buttonRendererData",null);
_.A([_.q({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],Z_);
_.m(Z_,"ytd-modal-with-title-and-button-renderer",function(){if(L67!==void 0)return L67;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return L67=R},{mode:1});var spK;var Hl=function(){return _.W.apply(this,arguments)||this};
_.O(Hl,_.W);Hl.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.CQ("page-changed",this.page))};
Hl.prototype.pageChangedForBinding=Hl.prototype.pageChangedForBinding;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Hl.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Hl.prototype,"data",void 0);_.A([_.r(),_.p("design:type",String)],Hl.prototype,"page",void 0);_.A([_.e0("page"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Hl.prototype,"pageChangedForBinding",null);
_.A([_.q({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],Hl);
_.m(Hl,"ytd-account-item-section-header-renderer",function(){if(spK!==void 0)return spK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return spK=R},{mode:1});var zw7;var nD=function(){return _.W.apply(this,arguments)||this};
_.O(nD,_.W);nD.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"}}}};
nD.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],nD.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],nD.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.gb),_.p("design:type",Object)],nD.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],nD.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!1}),_.p("design:type",Function)],nD.prototype,"onAccountItemTap",void 0);
_.A([_.q({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],nD);
_.m(nD,"ytd-account-item-section-renderer",function(){if(zw7!==void 0)return zw7;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return zw7=R},{mode:1});var gQm;var C2o;var Gc=function(){return _.W.apply(this,arguments)||this};
_.O(Gc,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Gc.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Gc.prototype,"data",void 0);_.A([_.q({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],Gc);
_.m(Gc,"ytd-accounts-dialog-header-renderer",function(){if(C2o!==void 0)return C2o;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return C2o=R},{mode:1});var RWa;var rL=function(){return _.W.apply(this,arguments)||this};
_.O(rL,_.W);rL.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],rL.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],rL.prototype,"data",void 0);_.A([_.q({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],rL);
_.m(rL,"ytd-google-account-header-renderer",function(){if(RWa!==void 0)return RWa;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return RWa=R},{mode:1});var Pl=function(){return _.W.apply(this,arguments)||this};
_.O(Pl,_.W);Pl.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"}}}};
Pl.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.CQ("page-changed",this.page))};
Pl.prototype.pageChangedForBinding=Pl.prototype.pageChangedForBinding;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Pl.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Pl.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Pl.prototype,"data",void 0);_.A([_.r(),_.p("design:type",String)],Pl.prototype,"page",void 0);
_.A([_.e0("page"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Pl.prototype,"pageChangedForBinding",null);_.A([_.q({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],Pl);
_.Nk()(Pl,"ytd-account-section-list-renderer",function(){if(gQm===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);gQm=R}R=gQm;return R},{allowedProps:["data"],
mode:1});var yZp;var Wl=function(){var R=_.W.apply(this,arguments)||this;R.enableHandlesAccountMenuSwitcher=_.f("enable_handles_account_menu_switcher");return R};
_.O(Wl,_.W);Wl.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
Wl.prototype.dataChanged=Wl.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Wl.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Wl.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Wl.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.A([_.O7("#avatar"),_.p("design:type",Object)],Wl.prototype,"avatar",void 0);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Wl.prototype,"dataChanged",null);_.A([_.q({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],Wl);
_.Nk()(Wl,"ytd-active-account-header-renderer",function(){if(yZp===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);yZp=R}R=yZp;return R},{allowedProps:["data"],
mode:1});var uBI;var vZ7;var dL=function(){return _.W.apply(this,arguments)||this};
_.O(dL,_.W);dL.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
dL.prototype.onBackTap=function(){_.Ko(this.hostElement,"yt-menu-back-tapped")};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],dL.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],dL.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],dL.prototype,"data",void 0);_.A([_.q({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],dL);
_.Nk()(dL,"ytd-simple-menu-header-renderer",function(){if(vZ7===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);vZ7=R}R=vZ7;return R},{allowedProps:["data"],
mode:2});var QOJ;var Ug=function(){return _.W.apply(this,arguments)||this};
_.O(Ug,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Ug.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Ug.prototype,"data",void 0);_.A([_.q({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],Ug);
_.m(Ug,"ytd-comment-video-thumbnail-header-renderer",function(){if(QOJ!==void 0)return QOJ;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return QOJ=R},{mode:1});var jOI;var kG=function(){return _.W.apply(this,arguments)||this};
_.O(kG,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],kG.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],kG.prototype,"data",void 0);_.A([_.q({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],kG);
_.m(kG,"ytd-abuse-type-selector-renderer",function(){if(jOI!==void 0)return jOI;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return jOI=R},{mode:1});var M7Z;var Eg=function(){return _.W.apply(this,arguments)||this};
_.O(Eg,_.W);Eg.prototype.attached=function(){var R=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){R.additionalContextInput.focusTextInput()})};
Eg.prototype.handleAdditionalContextChanged=function(){var R=this;_.zJ(this,"ytd-report-channel-additional-context-update",function(){R.ytdReduxBehavior.dispatch(_.iE({type:"ADDITIONAL_CONTEXT_UPDATED",payload:R.additionalContext}))},300)};
Eg.prototype.updateAdditionalContextFromBinding=function(R){this.additionalContext=R.detail.value};
Eg.prototype.handleAdditionalContextChanged=Eg.prototype.handleAdditionalContextChanged;_.A([_.n(_.p6),_.p("design:type",Object)],Eg.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",String)],Eg.prototype,"additionalContext",void 0);_.A([_.r({selector:function(R){return R.reportChannelAbuse.additionalContext}}),
_.p("design:type",String)],Eg.prototype,"additionalContextRedux",void 0);_.A([_.r(),_.p("design:type",Object)],Eg.prototype,"data",void 0);_.A([_.O7("yt-text-input-form-field-renderer"),_.p("design:type",Object)],Eg.prototype,"additionalContextInput",void 0);_.A([_.e0("additionalContext"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Eg.prototype,"handleAdditionalContextChanged",null);
_.A([_.q({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],Eg);
_.m(Eg,"ytd-report-channel-modal-additional-context-renderer",function(){if(M7Z!==void 0)return M7Z;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return M7Z=R},{mode:1});var JZa;var $G=function(){var R=_.W.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};
_.O($G,_.W);_.J=$G.prototype;_.J.computeNextButtonData=function(R,y,u){var v={};y&&(v.navigationEndpoint=y);u&&(v.serviceEndpoint=u);R&&R.buttonRenderer&&_.Ps.extend(v,R.buttonRenderer);return v};
_.J.handleReportChannelModalDisableNextButtonAction=function(R){this.setNextButtonIsDisabled(R)};
_.J.handleReportFormEndpointUpdateAction=function(R){this.setNextButtonIsDisabled(!!R.disableSubmitButton);this.resetEndpointData();R.submitEndpoint?this.submitEndpoint=R.submitEndpoint:R.submitNavigationEndpoint&&(this.navigationEndpoint=R.submitNavigationEndpoint)};
_.J.handleSignalActionSubmitForm=function(){var R,y=Object.keys(((R=this.reportChannelAbuseForm)==null?void 0:R.selectedVideoIds)||{}),u;R=((u=this.reportChannelAbuseForm)==null?void 0:u.additionalContext)||"";var v;u=((v=this.reportChannelAbuseForm)==null?void 0:v.impersonatedChannelUrl)||"";var Q;if((Q=this.data)==null?0:Q.submitEndpoint){y={impersonated_channel_url:u,text:R,video_ids:y};var M;_.ua().resolve(_.jX).resolveCommand((M=this.data)==null?void 0:M.submitEndpoint,{form:Object.assign({},
y,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.J.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.J.onYtServiceRequestError=function(R){this.setNextButtonIsDisabled(!1);_.JG(this.hostElement,R.detail.error.message)};
_.J.setNextButtonIsDisabled=function(R){this.set("data.nextButton.buttonRenderer.isDisabled",R)};
_.J.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
$G.prototype.onYtServiceRequestError=$G.prototype.onYtServiceRequestError;$G.prototype.onYtServiceRequestCompleted=$G.prototype.onYtServiceRequestCompleted;_.A([_.r(),_.p("design:type",Object)],$G.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],$G.prototype,"nextButtonDisabled",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],$G.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],$G.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],$G.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],$G.prototype,"submitEndpoint",void 0);_.A([_.r(),_.p("design:type",Object)],$G.prototype,"navigationEndpoint",void 0);_.A([_.r({selector:function(R){return R.reportChannelAbuse}}),
_.p("design:type",Object)],$G.prototype,"reportChannelAbuseForm",void 0);_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],$G.prototype,"onYtServiceRequestCompleted",null);_.A([_.fu("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],$G.prototype,"onYtServiceRequestError",null);
_.A([_.q({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],$G);
_.m($G,"ytd-report-channel-modal-footer-renderer",function(){if(JZa!==void 0)return JZa;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return JZa=R},{mode:1});var V7g;var qu=function(){var R=_.W.apply(this,arguments)||this;R.boundOnTapDismissButton=function(){R.closePopup()};
return R};
_.O(qu,_.W);qu.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
qu.prototype.handleDataChanged=function(){_.S_(this.hostElement)};
qu.prototype.closePopup=function(){_.Ik(this.hostElement,"yt-close-popup-action")};
qu.prototype.handleDataChanged=qu.prototype.handleDataChanged;_.A([_.r(),_.p("design:type",Object)],qu.prototype,"boundOnTapDismissButton",void 0);_.A([_.r(),_.p("design:type",Object)],qu.prototype,"data",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],qu.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],qu.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qu.prototype,"handleDataChanged",null);_.A([_.q({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],qu);
_.m(qu,"ytd-report-channel-modal-header-renderer",function(){if(V7g!==void 0)return V7g;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return V7g=R},{mode:1});var iEP;var XI=function(){var R=_.W.apply(this,arguments)||this;R.autoValidate=!1;R.invalid=!1;R.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return R};
_.O(XI,_.W);_.J=XI.prototype;_.J.attached=function(){var R=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){R.channelUrlInput.focusTextInput()})};
_.J.disableNextButton=function(R){_.Ik(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[R])};
_.J.handleImpersonatedChannelUrlChanged=function(){var R=this;this.disableNextButton(!0);this.invalid=!1;_.zJ(this,"ytd-report-channel-impersonated-channel-update",function(){var y=R.impersonatedChannelUrl.trim();R.ytdReduxBehavior.dispatch(_.iE({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:y}));var u;((u=R.data)==null?0:u.submitEndpoint)&&y&&_.ua().resolve(_.jX).resolveCommand(R.data.submitEndpoint,{form:{impersonated_channel_url:y,element:R.hostElement}})},500)};
_.J.handleModifyReportFormCommand=function(R){this.invalid=this.get("modifyReportFormCommand.action",R)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.J.updateInvalidFromBinding=function(R){this.invalid=R.detail.value};
_.J.updateImpersonatedChannelUrlFromBinding=function(R){this.impersonatedChannelUrl=R.detail.value};
XI.prototype.handleImpersonatedChannelUrlChanged=XI.prototype.handleImpersonatedChannelUrlChanged;_.A([_.n(_.p6),_.p("design:type",Object)],XI.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],XI.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],XI.prototype,"autoValidate",void 0);_.A([_.r(),_.p("design:type",Object)],XI.prototype,"invalid",void 0);
_.A([_.r(),_.p("design:type",String)],XI.prototype,"impersonatedChannelUrl",void 0);_.A([_.r({selector:function(R){return R.reportChannelAbuse.impersonatedChannelUrl}}),
_.p("design:type",String)],XI.prototype,"impersonatedChannelUrlRedux",void 0);_.A([_.r(),_.p("design:type",Object)],XI.prototype,"data",void 0);_.A([_.O7("#text-input"),_.p("design:type",Object)],XI.prototype,"channelUrlInput",void 0);_.A([_.e0("impersonatedChannelUrl"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],XI.prototype,"handleImpersonatedChannelUrlChanged",null);
_.A([_.q({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],XI);
_.m(XI,"ytd-report-channel-modal-impersonation-renderer",function(){if(iEP!==void 0)return iEP;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return iEP=R},{mode:1});var KXH;var IPM;var mz=function(){return _.W.apply(this,arguments)||this};
_.O(mz,_.W);mz.prototype.onCheckboxToggled=function(R){var y,u,v=(u=_.e((y=this.data)==null?void 0:y.video,_.YW))==null?void 0:u.videoId;v&&this.ytdReduxBehavior.dispatch(R.target.checked?_.iE({type:"VIDEO_SELECTED",payload:v}):_.iE({type:"VIDEO_UNSELECTED",payload:v}))};
mz.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.RR.Object.defineProperties(mz.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var R,y=(R=this.data)==null?void 0:R.video;if(!y)return{};var u;R=(u=_.e(y,_.YW))==null?void 0:u.navigationEndpoint;if(!R)return y;_.e(R==null?void 0:R.commandMetadata,_.QL)&&(_.e(R.commandMetadata,_.QL).ignoreNavigation=!0);return y}}});
_.A([_.r({reflectToAttribute:!0,selector:function(R,y){return y in R.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.p("design:type",Boolean)],mz.prototype,"checked",void 0);_.A([_.r(),_.p("design:type",Object)],mz.prototype,"data",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],mz.prototype,"video",null);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],mz.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],mz.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.n(_.p6),_.p("design:type",Object)],mz.prototype,"ytdReduxBehavior",void 0);_.A([_.q({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],mz);
_.m(mz,"ytd-selectable-video-renderer",function(){if(IPM!==void 0)return IPM;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return IPM=R},{mode:1});var A1=function(){var R=_.W.apply(this,arguments)||this;R.monitorScroll=!0;return R};
_.O(A1,_.W);A1.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],A1.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],A1.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],A1.prototype,"data",void 0);_.A([_.q({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],A1);
_.m(A1,"ytd-selectable-video-list-renderer",function(){if(KXH!==void 0)return KXH;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return KXH=R},{mode:1});var hWa;_.Dl("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var D_=function(){return _.W.apply(this,arguments)||this};
_.O(D_,_.W);D_.prototype.onChange=function(R){if(R=_.vN(R).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.f("kevlar_command_handler_migration_killswitch"))_.wr(this.hostElement,R,this.hostElement);else{R=_.V(R);for(var y=R.next();!y.done;y=R.next())this.ytComponentBehavior.resolveCommand(y.value)}};
D_.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
D_.prototype.updateDataToggledFromBinding=function(R){this.set("data.toggled",R.detail.value)};
_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],D_.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],D_.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],D_.prototype,"data",void 0);_.A([_.r({computed:"isEnabled(data)"}),_.p("design:type",Boolean)],D_.prototype,"enabled",void 0);_.A([_.q({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],D_);
_.m(D_,"ytd-toggle-item-renderer",function(){if(hWa!==void 0)return hWa;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return hWa=R},{mode:1});var bEo;var FXM;var wSK;var pD=function(){var R=_.W.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};
_.O(pD,_.W);pD.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}}}}}};
pD.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
pD.prototype.onSubmitButtonClick=function(){var R;((R=this.data)==null?0:R.submitEndpoint)&&!_.f("enable_ytc_refunds_submit_form_signal_action")&&_.Fh(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
pD.prototype.handleSignalActionSubmitForm=function(){var R;((R=this.data)==null?0:R.submitEndpoint)&&_.Fh(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.RR.Object.defineProperties(pD.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.hiddenByDefault)&&!this.setVisible}}});
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],pD.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],pD.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],pD.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],pD.prototype,"setVisible",void 0);_.A([_.r(),_.p("design:type",Object)],pD.prototype,"data",void 0);
_.A([_.r(),_.p("design:type",Object)],pD.prototype,"surveyFeedbackData",void 0);_.A([_.r(),_.p("design:type",Object)],pD.prototype,"boundOnSubmitButtonClick",void 0);_.A([_.r({reflectToAttribute:!0}),_.G("data","setVisible"),_.p("design:type",Object),_.p("design:paramtypes",[])],pD.prototype,"visibilityHidden",null);_.A([_.pu({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],pD);
_.m(pD,"yt-flow-footer-renderer",function(){if(wSK===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;FXM===void 0&&(FXM=document.createElement("template"));var v=FXM;u.call(y,v.content.cloneNode(!0),R.content.firstChild);wSK=R}R=wSK;return R},{mode:2});var t1=function(){return _.W.apply(this,arguments)||this};
_.O(t1,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],t1.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],t1.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],t1.prototype,"data",void 0);_.A([_.r({selector:function(R){return R.ypc.surveyFeedbackData}}),
_.p("design:type",Object)],t1.prototype,"surveyFeedbackData",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],t1);
_.m(t1,"ytd-flow-footer-renderer",function(){if(bEo!==void 0)return bEo;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return bEo=R},{mode:_.TN("kevlar_poly_si_batch_j025")?1:2});var NJI;var TJa;var cl=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return R};
_.O(cl,_.W);_.J=cl.prototype;_.J.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.ph("multiPageMenuSectionItems")}}};
_.J.handleHideEnclosingAction_=function(R){if(this.data&&this.data.items)for(var y=0;y<this.data.items.length;y++){var u=this.data.items[y].notificationRenderer;if(u&&u.notificationId==R.hideEnclosingAction.notificationId){this.splice("data.items",y,1);_.Ik(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.J.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.w2(this.hostElement,"hidden",!0)};
_.J.updateMenu_=function(R){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&R&&!R.doNotRefreshInbox){R=this.data.continuations;for(var y=0;y<R.length;y++)if(R[y].invalidationContinuationData){var u=void 0;var v=(u=R[y].invalidationContinuationData)==null?void 0:u.continuation;break}R=_.Ps.clone(this.data.continuationUpdateEndpoint||null);R.continuation=v;R.click_tracking_params=this.data.trackingParams;_.Fh(this.hostElement,[R])}};
_.J.onServiceRequestCompleted_=function(R,y){if(this.data&&(R=y.actions)){y=0;for(var u=R.length;y<u;y++){var v=_.e(R[y],_.RRg);if(!v)break;if((v.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||v.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&v.continuationItems&&this.data.items){var Q=this.data.items.length-1;this.data.items[Q].continuationItemRenderer&&(v=["data.items",Q,1].concat(v.continuationItems),this.splice.apply(this,v))}}}};
cl.prototype.onServiceRequestCompleted_=cl.prototype.onServiceRequestCompleted_;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],cl.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],cl.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],cl.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],cl.prototype,"data",void 0);
_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Mp]),_.p("design:returntype")],cl.prototype,"onServiceRequestCompleted_",null);_.A([_.pu({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],cl);
_.Nk()(cl,"yt-multi-page-menu-section-renderer",function(){if(TJa===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;NJI===void 0&&(NJI=document.createElement("template"));var v=NJI;u.call(y,v.content.cloneNode(!0),R.content.firstChild);TJa=R}R=TJa;return R},{allowedProps:["data"],
mode:2});var oZp;var xMK;var a4=function(){return _.W.apply(this,arguments)||this};
_.O(a4,_.W);a4.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.RR.Object.defineProperties(a4.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],a4.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],a4.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],a4.prototype,"data",void 0);_.A([_.G("data.progress"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],a4.prototype,"showProgressBar",null);
_.A([_.G("data.progress"),_.p("design:type",Number),_.p("design:paramtypes",[])],a4.prototype,"progress",null);_.A([_.pu({is:"yt-flow-header-renderer",disableElementRegistration:!0})],a4);
_.m(a4,"yt-flow-header-renderer",function(){if(xMK===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;oZp===void 0&&(oZp=document.createElement("template"));var v=oZp;u.call(y,v.content.cloneNode(!0),R.content.firstChild);xMK=R}R=xMK;return R},{mode:2});var BJZ;var fP7;var SG=function(){return _.W.apply(this,arguments)||this};
_.O(SG,_.W);SG.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],SG.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],SG.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],SG.prototype,"data",void 0);_.A([_.pu({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],SG);
_.m(SG,"yt-post-confirmation-flow-step-renderer",function(){if(fP7===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;BJZ===void 0&&(BJZ=document.createElement("template"));var v=BJZ;u.call(y,v.content.cloneNode(!0),R.content.firstChild);fP7=R}R=fP7;return R},{mode:2});var eWm;var lPP;var YG=function(){return _.W.apply(this,arguments)||this};
_.O(YG,_.W);
YG.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],YG.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],YG.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],YG.prototype,"data",void 0);_.A([_.pu({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],YG);
_.m(YG,"yt-refund-confirmation-flow-step-renderer",function(){if(lPP===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;eWm===void 0&&(eWm=document.createElement("template"));var v=eWm;u.call(y,v.content.cloneNode(!0),R.content.firstChild);lPP=R}R=lPP;return R},{mode:2});_.Qn(R4V);_.Qn(yda);var ug7=_.UC({avatarViewModel:_.XS});_.Qn(via);var Nx=_.UC({commentInteractionViewModel:yda,sharedSubscriptionViewModel:via,buttonViewModel:_.fQ,horizontalShelfViewModel:_.Y5});_.Qn(Qca);_.Qn(jcI);_.Qn(MbK);_.Qn(Jda);_.Qn(Vbp);var ikH=_.UC({profileIdentityInfoViewModel:_.QMK,profileInfoViewModel:Vbp});_.Qn(KNZ);_.B_(KNZ,"yt-profile-card-view-model",{propNames:["data"]});var LD=function(){var R=_.W.apply(this,arguments)||this;R.enableFocusFix=_.f("music_web_enable_focus_on_setting_menu_fix")&&_.$B("IS_MOBILE_WEB",!1);R.covered=!1;R.hideMenu=!1;R.isCommentNotificationOnProfileCard=!1;R.scrolledByTouch=!1;R.disableBackdropFilter=_.f("web_disable_backdrop_filter");R.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return R};
_.O(LD,_.W);_.J=LD.prototype;
_.J.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"}}}};
_.J.ready=function(){var R=this;this.JSC$20047_containerElement.addEventListener("scroll",function(){R.ytRendererBehavior.markDirty()})};
_.J.attributeChanged=function(R,y){R==="menu-style"&&_.Ik(this.hostElement,"yt-multi-page-menu-closed-action",[y])};
_.J.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.BN(this,this.focusOnStampFinished))};
_.J.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.BN(this,this.focusOnStampFinished))};
_.J.reset=function(){this.closeJobId&&(_.WG.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.J.focusOnStampFinished=function(R){R.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.BN(this,this.focusOnStampFinished)),this.doFocus())};
_.J.doFocus=function(){var R=_.Q2L(this.sectionsElement);R.length&&R[0].focus()};
_.J.computeMenuStyle=function(R){return R?R.toLowerCase().replace(/_/g,"-"):""};
_.J.computeIsCommentNotificationOnProfileCard=function(R){return _.f("enable_profile_cards_on_comments")&&R.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.J.computeHideMenu=function(R,y){return R||!(!y||!y.showLoadingSpinner)};
_.J.onPopupClosed=function(){this.isPopUpOpen=!1;_.Ik(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.J.onPopupOpened=function(R,y){this.isPopUpOpen=!0;y.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.Ko(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.iE({type:"CHANNEL_REPORT_RESET"})))};
_.J.onYtNavigate=function(R,y){this.shouldCloseOnNavigateEvent(y.endpoint)&&_.Ik(this.hostElement,"yt-close-all-popups-action")};
_.J.handleEndpoint=function(R){R=_.e(R,_.DE);!this.isCommentNotificationOnProfileCard&&R&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20047_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.J.handleActions=function(R){for(var y=0,u=R.length;y<u;y++){var v=_.e(R[y],$LP);v&&this.handleGetMultiPageMenuAction(v);(v=_.e(R[y],_.RRg))&&this.handleAppendContinuationItemsAction(v)}};
_.J.onServiceRequestSentOrCompleted=function(R,y){R.detail&&R.detail.endpoint&&this.handleEndpoint(R.detail.endpoint);y.actions&&this.handleActions(y.actions)};
_.J.handleGetMultiPageMenuAction=function(R){var y=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.hw(this.submenuElement).appendChild(y);(R=R.menu.multiPageMenuRenderer)&&this.logSubmenu(R);y.data=R;y.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.J.handleAppendContinuationItemsAction=function(R){if(this.data&&R.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&R.continuationItems&&this.data.sections){var y=this.data.sections.length-1;this.data.sections[y].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),y--);if(this.data.sections[y].multiPageMenuNotificationSectionRenderer&&R.continuationItems){R=_.V(R==null?void 0:R.continuationItems);for(var u=R.next();!u.done;u=R.next())if(u=u.value,_.e(u,iQM)){var v=
void 0,Q=void 0,M=void 0,K=void 0,h=void 0;((v=this)==null?0:(Q=v.data)==null?0:(M=Q.sections)==null?0:(K=M[y])==null?0:(h=K.multiPageMenuNotificationSectionRenderer)==null?0:h.items)&&this.push("data.sections."+y+".multiPageMenuNotificationSectionRenderer.items",u)}else if(_.e(u,_.p05)||_.e(u,_.Je))this.push("data.sections",u),y++}}};
_.J.logSubmenu=function(R){if(!_.f("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var y=this.ytRendererBehavior.getScreenLayer(),u=_.$I(y),v=_.Ef(y);if((R=R.trackingParams)&&u&&v){var Q=_.U4(R);_.f("combine_ve_grafts")?_.GN().graftServerVe(R,v,y):_.ak(u,v,Q)}}};
_.J.emptySubmenuContainer=function(){for(var R=_.hw(this.submenuElement);R.firstChild;)R.removeChild(R.firstChild)};
_.J.onMenuBackTap=function(R){_.Ko(this.hostElement,"yt-submenu-closed");R.stopPropagation()};
_.J.onSubmenuClosed=function(R){_.vN(R)!==this.hostElement&&(this.covered=!1,_.Ko(this.hostElement,"yt-refit"),R.stopPropagation())};
_.J.onRetrieveLocation=function(R,y){y.hasComments&&(y.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),R.stopPropagation())};
_.J.shouldCloseOnNavigateEvent=function(R){if(!R)return!0;if(_.e(R,_.pOG)||_.e(R,_.tti)||_.e(R,_.DvL)||_.e(R,_.tc))return!1;var y;return((y=_.e(R==null?void 0:R.commandMetadata,_.QL))==null?0:y.ignoreNavigation)?!1:!0};
_.J.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.J.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.J.refitAfterRender=function(){var R=this;_.gn(this,function(){_.Ko(R.hostElement,"yt-refit")})};
LD.prototype.refitAfterRender=LD.prototype.refitAfterRender;LD.prototype.onRetrieveLocation=LD.prototype.onRetrieveLocation;LD.prototype.onSubmenuClosed=LD.prototype.onSubmenuClosed;LD.prototype.onMenuBackTap=LD.prototype.onMenuBackTap;LD.prototype.onServiceRequestSentOrCompleted=LD.prototype.onServiceRequestSentOrCompleted;LD.prototype.onYtNavigate=LD.prototype.onYtNavigate;LD.prototype.onPopupOpened=LD.prototype.onPopupOpened;LD.prototype.onPopupClosed=LD.prototype.onPopupClosed;
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],LD.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.GZ.YtEventForwardingBehavior),_.p("design:type",Object)],LD.prototype,"ytEventForwardingBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],LD.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],LD.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],LD.prototype,"data",void 0);
_.A([_.r(),_.p("design:type",Object)],LD.prototype,"enableFocusFix",void 0);_.A([_.r(),_.p("design:type",Object)],LD.prototype,"covered",void 0);_.A([_.r({computed:"computeHideMenu(covered, data)"}),_.p("design:type",Object)],LD.prototype,"hideMenu",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.p("design:type",String)],LD.prototype,"menuStyle",void 0);
_.A([_.r({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.p("design:type",Object)],LD.prototype,"isCommentNotificationOnProfileCard",void 0);_.A([_.r(),_.p("design:type",Boolean)],LD.prototype,"isPopUpOpen",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],LD.prototype,"scrolledByTouch",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],LD.prototype,"disableBackdropFilter",void 0);
_.A([_.O7("#sections"),_.p("design:type",HTMLElement)],LD.prototype,"sectionsElement",void 0);_.A([_.O7("#spinner"),_.p("design:type",HTMLElement)],LD.prototype,"spinnerElement",void 0);_.A([_.O7("#header"),_.p("design:type",HTMLElement)],LD.prototype,"headerElement",void 0);_.A([_.O7("#container"),_.p("design:type",HTMLElement)],LD.prototype,"JSC$20047_containerElement",void 0);_.A([_.O7("#submenu"),_.p("design:type",HTMLElement)],LD.prototype,"submenuElement",void 0);
_.A([_.fu("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],LD.prototype,"onPopupClosed",null);_.A([_.fu("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],LD.prototype,"onPopupOpened",null);_.A([_.fu("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],LD.prototype,"onYtNavigate",null);
_.A([_.fu("yt-service-request-completed"),_.fu("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Mp]),_.p("design:returntype")],LD.prototype,"onServiceRequestSentOrCompleted",null);_.A([_.fu("yt-menu-back-tapped"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],LD.prototype,"onMenuBackTap",null);
_.A([_.fu("yt-submenu-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],LD.prototype,"onSubmenuClosed",null);_.A([_.fu("yt-retrieve-location"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],LD.prototype,"onRetrieveLocation",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],LD.prototype,"refitAfterRender",null);
_.A([_.q({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],LD);
_.m(LD,"ytd-multi-page-menu-renderer",function(){if(uBI!==void 0)return uBI;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return uBI=R},{mode:1});var OEa;var sg=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return R};
_.O(sg,_.W);_.J=sg.prototype;_.J.created=function(){this.showTooltips=!0};
_.J.computeAccessibility_=function(R){return this.get("accessibility.accessibilityData",R)||null};
_.J.onTap=function(){var R=_.h_(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(R&&R.length===1&&R[0])_.Ik(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var y;if((y=this.data)==null?0:y.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var u;((u=this.data)==null?0:u.menuRequest)&&_.Fh(this.hostElement,[this.data.menuRequest])}}};
_.J.handleTopbarMenuClosedAction=function(R){var y,u;(new Map([["multi-page-menu-style-type-creation","VIDEO_CALL"],["multi-page-menu-style-type-notifications","NOTIFICATIONS"],["multi-page-menu-style-type-yt-apps","APPS"]])).get(R)===((y=this.data)==null?void 0:(u=y.icon)==null?void 0:u.iconType)&&this.toggleIconState(!1)};
_.J.toggleIconState=function(R){_.f("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=R)};
_.J.handleUpdateTopbarAvatarAction=function(R){var y;R=(y=_.e(R,rnm))==null?void 0:y.avatarUrl;var u,v;y=(u=this.data)==null?void 0:(v=u.avatar)==null?void 0:v.thumbnails;R&&y&&(u={thumbnails:[Object.assign({},y[0],{url:R})]},this.set("data.avatar",u))};
_.RR.Object.defineProperties(sg.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.hw(this.hostElement).querySelector("#button")}}});
sg.prototype.onTap=sg.prototype.onTap;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],sg.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],sg.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.jc),_.p("design:type",Object)],sg.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.n(_.Z4T.YtButtonBehavior),_.p("design:type",Object)],sg.prototype,"ytButtonBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],sg.prototype,"data",void 0);
_.A([_.O7("yt-icon-button#button"),_.p("design:type",Object)],sg.prototype,"iconButton",void 0);_.A([_.fu("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sg.prototype,"onTap",null);_.A([_.q({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],sg);
_.m(sg,"ytd-topbar-menu-button-renderer",function(){if(OEa!==void 0)return OEa;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return OEa=R},{mode:1});var ZEo;var zc=function(){return _.W.apply(this,arguments)||this};
_.O(zc,_.W);zc.prototype.getSelected=function(){return this.reasons.selected};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],zc.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],zc.prototype,"data",void 0);_.A([_.O7("#reasons"),_.p("design:type",Object)],zc.prototype,"reasons",void 0);_.A([_.q({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],zc);
_.m(zc,"ytd-ad-feedback-content",function(){if(ZEo!==void 0)return ZEo;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return ZEo=R},{mode:1});var HE8;var gL=function(){return _.W.apply(this,arguments)||this};
_.O(gL,_.W);_.J=gL.prototype;_.J.onPopupOpened=function(){_.Ik(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.J.computeConfirmButton=function(R){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:R.confirmLabel}};
_.J.computeCancelButton=function(R){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:R.cancelLabel}};
_.J.onConfirmTap=function(){var R=this.content.getSelected();R!==void 0&&(R=this.data.reasons[R].endpoint)&&(_.ua().resolve(_.jX).resolveCommand(R,{form:{element:this.hostElement}}),_.Ik(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.J.sendFeedbackSubmitToastAction=function(){var R;(R=this.data)!=null&&R.completionMessage&&_.Ik(this.hostElement,"yt-open-popup-action",[_.MB(this.data.completionMessage),this])};
_.J.onCancelTap=function(){_.Ik(this.hostElement,"yt-close-popup-action")};
gL.prototype.onPopupOpened=gL.prototype.onPopupOpened;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],gL.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],gL.prototype,"data",void 0);_.A([_.O7("#content"),_.p("design:type",Object)],gL.prototype,"content",void 0);_.A([_.fu("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],gL.prototype,"onPopupOpened",null);
_.A([_.q({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],gL);
_.m(gL,"ytd-ad-feedback-renderer",function(){if(HE8!==void 0)return HE8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return HE8=R},{mode:1});var nZp;var CD=function(){return _.W.apply(this,arguments)||this};
_.O(CD,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],CD.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],CD.prototype,"data",void 0);_.A([_.q({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],CD);
_.m(CD,"ytd-ad-info-dialog-content",function(){if(nZp!==void 0)return nZp;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return nZp=R},{mode:1});var GHZ;var Rj=function(){return _.W.apply(this,arguments)||this};
_.O(Rj,_.W);Rj.prototype.computeConfirmButton=function(R){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:R.confirmLabel}};
Rj.prototype.onConfirmTap=function(){_.Ik(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
Rj.prototype.computeShouldShowTitle=function(){var R;return!((R=this.data)==null||!R.title)};
Rj.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.ua().resolve(_.jX).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
Rj.prototype.onPopupClosed=Rj.prototype.onPopupClosed;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Rj.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Rj.prototype,"data",void 0);_.A([_.fu("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Rj.prototype,"onPopupClosed",null);_.A([_.q({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],Rj);
_.m(Rj,"ytd-ad-info-dialog-renderer",function(){if(GHZ!==void 0)return GHZ;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return GHZ=R},{mode:1});var rZp;var yy=function(){var R=_.W.apply(this,arguments)||this;R.actionButtonClass="action-button";R.dismissButtonId="dismiss-button";R.dialogDismiss=!0;return R};
_.O(yy,_.W);_.J=yy.prototype;_.J.computeInPlayer=function(R){return(R==null?void 0:R.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.J.computedLogo=function(){var R,y;return this.isDarkTheme()?(R=this.data)==null?void 0:R.logoDark:(y=this.data)==null?void 0:y.logo};
_.J.computedHeaderImage=function(){var R,y;return this.isDarkTheme()?(R=this.data)==null?void 0:R.headerImageDark:(y=this.data)==null?void 0:y.headerImage};
_.J.computeLogoIconId=function(){var R,y,u,v=(R=this.computedLogo())==null?void 0:(y=R.sources)==null?void 0:(u=y[0])==null?void 0:u.height;return v&&v%31===0?"logo-icon-with-padding":"logo-icon"};
_.J.computeLogoIconHeight=function(){var R,y,u,v=(R=this.computedLogo())==null?void 0:(y=R.sources)==null?void 0:(u=y[0])==null?void 0:u.height;return v&&v%31===0?"31":"24"};
_.J.onPopupClosed=function(){_.ua().resolve(_.O5).dispose()};
_.J.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.J.onShow=function(){this.inPlayer&&_.l7(6)};
_.J.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var R=0;R<this.data.impressionEndpoints.length;R++){var y=_.e(this.data.impressionEndpoints[R],_.ac);y&&this.ytComponentBehavior.resolveCommand(y)}};
_.J.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.Ik(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.RR.Object.defineProperties(yy.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var R,y;return!((R=this.data)==null||!R.headerImageDark)&&!((y=this.data)==null||!y.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.secondaryButton)}}});
yy.prototype.onPopupClosed=yy.prototype.onPopupClosed;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],yy.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],yy.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.Cl.YtVisibilityBehavior),_.p("design:type",Object)],yy.prototype,"ytVisibilityBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],yy.prototype,"data",void 0);
_.A([_.r(),_.p("design:type",Object)],yy.prototype,"actionButtonClass",void 0);_.A([_.r(),_.p("design:type",Object)],yy.prototype,"dismissButtonId",void 0);_.A([_.r(),_.p("design:type",Object)],yy.prototype,"dialogDismiss",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],yy.prototype,"hasHeaderImage",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],yy.prototype,"hasPremiumButton",null);
_.A([_.r({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.p("design:type",Boolean)],yy.prototype,"inPlayer",void 0);_.A([_.O7("#dismiss-button"),_.p("design:type",HTMLElement)],yy.prototype,"dismissButton",void 0);_.A([_.fu("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],yy.prototype,"onPopupClosed",null);_.A([_.q({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],yy);
_.m(yy,"ytd-enforcement-message-view-model",function(){if(rZp!==void 0)return rZp;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return rZp=R},{mode:1});var Pzg;var WXp;var uC=function(){var R=_.W.apply(this,arguments)||this;R.TEST_ONLY={immediateValidation:function(){R.immediateValidation()},
onValidationResponse:function(y){R.onValidationResponse(y)},
onGenerateHandleFromNameResponse:function(y){R.onGenerateHandleFromNameResponse(y)}};
return R};
_.O(uC,_.W);_.J=uC.prototype;_.J.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.J.validate=function(){this.immediateValidation()};
_.J.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.J.setHandleInputValue=function(R){this.handleDir=this.getHandleDir(R);this.handleInput.value=R;this.validationState={status:"PENDING"};this.immediateValidation()};
_.J.getHandleDir=function(R){var y=R===""&&!1;return(y=_.YhG.test.call(_.YhG,R))?"rtl":"ltr"};
_.J.onDataChanged=function(){var R,y;this.handleDir=this.getHandleDir((y=(R=this.data)==null?void 0:R.handle)!=null?y:"");var u;this.validationState=((u=this.data)==null?0:u.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var v;((v=this.data)==null?0:v.validateOnInit)&&this.immediateValidation()};
_.J.stopPropagation=function(R){R.stopPropagation()};
_.J.onInput=function(){var R;this.handleDir=this.getHandleDir((R=this.handleInput.value)!=null?R:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.J.onFocusout=function(R){this.handleInput.contains(R.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.J.delayedValidation=function(){var R,y;this.debouncedValidation((y=(R=this.data)==null?void 0:R.validationDelayMs)!=null?y:1E3)};
_.J.immediateValidation=function(){this.debouncedValidation(0)};
_.J.debouncedValidation=function(R){var y=this;_.zJ(this,"debouncedValidation",function(){var u,v=y.staticValidation((u=y.handleInput.value)!=null?u:"");if(v!==void 0)y.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:v};else{var Q;if((Q=y.data)!=null&&Q.validateChannelHandleCommand){y.validationState={status:"LOADING"};var M;y.ytComponentBehavior.resolveCommand(y.data.validateChannelHandleCommand,{form:{handle:(M=y.handleInput.value)!=null?M:""},commandController:{onSuccess:function(K,
h){y.onValidationResponse(h)},
onServerError:function(K,h){y.onValidationServerError(h)}}})}else y.handleUnexpectedValidationError(new _.OL("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",y.data))}},R)};
_.J.staticValidation=function(R){var y;if(((y=this.data)==null?void 0:y.channelHandleStaticValidationParams)!==void 0){y=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(R)&&y.validValueRegexpErrorMessage!==void 0)return y.validValueRegexpErrorMessage;if(y.minLength!==void 0&&R.length<y.minLength&&y.minLengthErrorMessage!==void 0)return y.minLengthErrorMessage;if(y.maxLength!==void 0&&R.length>y.maxLength&&y.maxLengthErrorMessage!==void 0)return y.maxLengthErrorMessage}};
_.J.onValidationResponse=function(R){var y=_.e(R.result,PLa);y===void 0?this.handleUnexpectedValidationError(new _.OL("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",R)):this.handleValidationResultRenderer(y)};
_.J.onValidationServerError=function(R){this.handleUnexpectedValidationError(new _.OL("ValidateChannelHandle request failed.",R))};
_.J.handleValidationResultRenderer=function(R){if(R.handle===void 0)this.handleUnexpectedValidationError(new _.OL("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 _.OL("Unrecognized ChannelHandleValidationResult",R));break;default:_.AL(R.result)}};
_.J.handleUnexpectedValidationError=function(R){var y;this.validationState={status:"UNKNOWN",handle:(y=this.handleInput.value)!=null?y:""};_.kT(R)};
_.J.stopEventPropagation=function(R){R.stopPropagation()};
_.J.updateHandleOnChannelNameInputChange=function(R){if(!this.wasEdited){var y,u;this.debouncedGenerateHandleFromName(R,(u=(y=this.data)==null?void 0:y.validationDelayMs)!=null?u:1E3)}};
_.J.debouncedGenerateHandleFromName=function(R,y){var u=this;_.zJ(this,"debouncedGenerateHandleFromName",function(){var v;(v=u.data)!=null&&v.validateChannelHandleCommand?u.ytComponentBehavior.resolveCommand(u.data.validateChannelHandleCommand,{form:{name:R},commandController:{onSuccess:function(Q,M){u.onGenerateHandleFromNameResponse(M)},
onServerError:function(Q,M){_.kT(new _.OL("Error calling GenerateHandleFromName",M))}}}):_.kT(new _.OL("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",u.data))},y)};
_.J.onGenerateHandleFromNameResponse=function(R){this.wasEdited||((R=_.e(R.result,W$8))?this.setHandleInputValue(R.handle):_.kT(new _.OL("Invalid results when generate handle from name")))};
_.RR.Object.defineProperties(uC.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,y=(R=this.channelHandleEntity)==null?void 0:R.handleEdit;this.handleDir=this.getHandleDir(y!=null?y:"");return y}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var R,y;if(((R=this.data)==null?void 0:(y=R.channelHandleStaticValidationParams)==null?void 0:y.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
uC.prototype.stopEventPropagation=uC.prototype.stopEventPropagation;uC.prototype.onDataChanged=uC.prototype.onDataChanged;uC.prototype.applyHandleEdit=uC.prototype.applyHandleEdit;uC.prototype.onValueChanged=uC.prototype.onValueChanged;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],uC.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],uC.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],uC.prototype,"data",void 0);
_.A([_.r(),_.p("design:type",Boolean)],uC.prototype,"wasEdited",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],uC.prototype,"handleDir",void 0);_.A([_.O7("#handle-input"),_.p("design:type",Object)],uC.prototype,"handleInput",void 0);_.A([_.r(),_.G("validationState"),_.p("design:type",Object),_.p("design:paramtypes",[])],uC.prototype,"value",null);
_.A([_.e0("value"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uC.prototype,"onValueChanged",null);_.A([_.G("validationState"),_.p("design:type",Object),_.p("design:paramtypes",[])],uC.prototype,"errorIndicator",null);_.A([_.r({reflectToAttribute:!0}),_.G("errorIndicator"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],uC.prototype,"borderErrorIndicator",null);
_.A([_.r({selectorArgs:["data.channelHandleEntityKey"],selector:function(R,y){return _.TI(R.entities,"channelHandle",y)}}),
_.p("design:type",Object)],uC.prototype,"channelHandleEntity",void 0);_.A([_.G("channelHandleEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],uC.prototype,"handleEdit",null);_.A([_.e0("handleEdit"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uC.prototype,"applyHandleEdit",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],uC.prototype,"onDataChanged",null);
_.A([_.G("data.channelHandleStaticValidationParams.validValueRegexp"),_.p("design:type",Object),_.p("design:paramtypes",[])],uC.prototype,"validValueRegexp",null);_.A([_.fu("yt-service-request-sent"),_.fu("yt-service-request-completed"),_.fu("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],uC.prototype,"stopEventPropagation",null);_.A([_.q({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],uC);
_.m(uC,"ytd-channel-handle-input-renderer",function(){if(WXp!==void 0)return WXp;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return WXp=R},{mode:_.TN("kevlar_poly_si_batch_j025")?1:2});var vf=function(){var R=_.W.apply(this,arguments)||this;R.data=null;R.errorMessage=null;R.isLoading=!0;R.hideContainer=!1;R.enableNewChannelCreationOnIdForAll=_.f("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(y){R.resetErrorState();
R.setErrorState(y)}};
return R};
_.O(vf,_.W);_.J=vf.prototype;_.J.created=function(){this.logScreenVe()};
_.J.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")};
_.J.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var R;((R=this.zeroStepErrorMessageEntity)==null?0:R.value)&&this.set("errorMessage",_.ye(this.zeroStepErrorMessageEntity.value))};
_.J.onCreateTap=function(){var R=this;if(this.data&&this.data.channelCreationEndpoint){var y,u;if(!((y=this.data.createChannelButton)==null?0:(u=y.buttonRenderer)==null?0:u.isDisabled)){var v;if((v=this.nameInput)!=null&&v.value){this.setLoadingState();var Q,M;y=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(Q=this.handleInput)==null?void 0:Q.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((M=this.handleInput)==null?void 0:M.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:y,commandController:{onSuccess:function(K,h){R.onChannelCreationEndpointSuccess(h);R.obakeImageSource&&_.P3("channelCreatedWithObakeImage",{imageSourceType:R.obakeImageSource})},
onServerError:function(){R.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.J.endpointRequiresServiceRequestAction=function(R){return!!_.e(R,_.X1)||!!_.e(R,rnm)};
_.J.isNavigateAction=function(R){var y;return!!_.e(R,_.iy)||!!_.e((y=_.e(R,kLP))==null?void 0:y.command,_.iy)};
_.J.isPlaylistAction=function(R){return!!_.e(R,_.pt)||!!_.e(R,_.Lt)};
_.J.onChannelCreationEndpointSuccess=function(R){if(R.createChannelError){var y;this.setErrorState((y=R.createChannelError)==null?void 0:y.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.f("enable_secondary_channel_creation_form")&&R.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(R.navigationEndpoint);if(R.actions){y=_.V(R.actions);for(var u=y.next();!u.done;u=y.next())if(u=u.value,this.endpointRequiresServiceRequestAction(u)&&this.ytComponentBehavior.resolveCommand(u),
this.isNavigateAction(u)){var v=void 0;u=_.e((v=_.e(u,kLP))==null?void 0:v.command,_.iy);v=void 0;this.isPlaylistAction((v=u)==null?void 0:v.endpoint)&&(_.Ik(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),v=void 0,this.ytComponentBehavior.resolveCommand((v=u)==null?void 0:v.endpoint))}}R.actions&&R.actions.some(function(Q){var M;return _.e(Q,_.iy)||_.e((M=_.e(Q,kLP))==null?void 0:M.command,_.iy)})||_.Ik(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.J.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.J.onCancelTap=function(){var R,y,u;if(!((R=this.data)==null?0:(y=R.cancelButton)==null?0:(u=y.buttonRenderer)==null?0:u.isDisabled)){var v,Q,M;R=(v=this.data)==null?void 0:(Q=v.cancelButton)==null?void 0:(M=Q.buttonRenderer)==null?void 0:M.command;if(!R||!_.e(R,_.r94)){var K;this.nameInput&&((K=this.data)==null?0:K.name)&&(this.nameInput.value=this.data.name);var h;this.handleInput&&((h=this.data)==null?0:h.channelHandleInput)&&(this.handleInput.data=_.e(this.data.channelHandleInput,dLI));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.J.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.J.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.J.onClearProfilePhotoTap=function(){var R,y,u;((R=this.data)==null?0:(y=R.clearProfilePhotoButton)==null?0:(u=y.buttonRenderer)==null?0:u.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.J.onEditAvatarTap=function(){var R,y,u;((R=this.data)==null?0:(y=R.editAvatarButton)==null?0:(u=y.buttonRenderer)==null?0:u.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.J.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)};
_.J.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)};
_.J.setErrorState=function(R){this.resetErrorState();if(R)this.set("errorMessage",R);else{var y;if((y=this.zeroStepErrorMessageEntity)==null?0:y.value)this.set("errorMessage",_.ye(this.zeroStepErrorMessageEntity.value));else{var u;((u=this.data)==null?0:u.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.J.fetchImageBlobWithAlr=function(R,y){y=y===void 0?5:y;var u=this,v,Q,M,K,h;return _.I(function(b){switch(b.nextAddress){case 1:return b.yield(fetch(R,{method:"GET",mode:"cors"}),2);case 2:v=b.yieldResult;if(v.ok){b.jumpTo(3);break}if(y===0)throw Error();Q=u.addJitter(Math.pow(2,5-y));return b.yield(new Promise(function(N){setTimeout(N,Q*1E3)}),4);
case 4:return b.return(u.fetchImageBlobWithAlr(R,y-1));case 3:if(!v.headers.get("content-type").split(";").some(function(N){return N.trim()==="text/plain"})){b.jumpTo(5);
break}M=u;K=M.fetchImageBlobWithAlr;return b.yield(v.text(),6);case 6:return b.return(K.call(M,b.yieldResult,y-1));case 5:return b.yield(v.blob(),7);case 7:return h=b.yieldResult,b.return(h)}})};
_.J.addJitter=function(R){var y=R*.3*Math.random();Math.random()>.5&&(y*=-1);return R+y};
_.J.openProfilePicturePicker=function(){var R=this,y,u,v,Q,M;return _.I(function(K){if(K.nextAddress==1){y=R.data.scottyUploadUrl;if(!y)return K.return();u=document.documentElement.hasAttribute("dark");v=document.body.style.colorScheme;u&&(document.body.style.colorScheme="dark");Q=qRa(X0Z($EZ(rtK(u?"dark":"light")),function(h){var b,N,T,x,B;return _.I(function(l){if(l.nextAddress==1)return b=_.Lp(yxp(new tg(h.photoUrl,!1)).build(),"alr","yes"),R.obakeImageSource=R.pictureChangeSourceToObakeImageSourceType(h.photoSource),
_.wY(l,2),R.setLoadingState(),l.yield(R.fetchImageBlobWithAlr(b),4);if(l.nextAddress!=2)return N=l.yieldResult,T=new FileReader,T.addEventListener("load",function(){var Z,P,k,E,D,z;return _.I(function(c){if(c.nextAddress==1){if(N.size>15728640)return R.setErrorState((Z=R.data)==null?void 0:Z.imageSizeErrorMessage),_.kT(Error("kl")),c.return();if(!T.result)return R.setErrorState((P=R.data)==null?void 0:P.genericImageLoadErrorMessage),_.kT(Error("ll")),c.return();k=T.result;_.wY(c,2);return c.yield(Ira(N,
y),4)}if(c.nextAddress!=2)return E=c.yieldResult,R.handleImageUpdatedAction(k,E),R.resetErrorState(),_.c5(c,0);D=_.B$(c);R.setErrorState((z=R.data)==null?void 0:z.uploadErrorMessage);if(D instanceof Error)_.dI(D);else{var a=new _.OL(JSON.stringify(D));_.dI(a)}_.f$(c)})}),T.readAsDataURL(N),_.c5(l,0);
x=_.B$(l);R.setErrorState((B=R.data)==null?void 0:B.genericImageLoadErrorMessage);x instanceof Error?_.dI(x):_.Uh(new _.OL(JSON.stringify(x)));_.f$(l)})}),function(){R.hideContainer=!1;
document.body.style.colorScheme=v});
_.wY(K,2);return K.yield(Q.openPicker(),4)}if(K.nextAddress!=2)return _.c5(K,0);_.B$(K);R.setErrorState((M=R.data)==null?void 0:M.selectImageErrorMessage);_.f$(K)})};
_.J.pictureChangeSourceToObakeImageSourceType=function(R){switch(R){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.J.logScreenVe=function(){_.om(_.GN(),124448)};
_.J.graftServerVe=function(){var R=_.Ef(),y,u,v=(y=this.data)==null?void 0:(u=y.loggingDirectives)==null?void 0:u.trackingParams;v&&R&&(this.channelCreationFormVe=_.GN().graftServerVe(v,R),R={visualElement:this.channelCreationFormVe},_.Hy().reportShown(R))};
_.J.isNameChanged=function(R){var y;return((y=this.data)==null?void 0:y.name)!==R};
_.J.isHandleChanged=function(R){var y,u=_.e((y=this.data)==null?void 0:y.channelHandleInput,dLI);return u&&R?u.handle!==R:!1};
_.J.handleImageUpdatedAction=function(R,y){this.hideContainer=!1;this.previewDataUrl=R;this.encryptedBlobId=y};
_.J.handleImageSelectionErrorAction=function(R){this.hideContainer=!1;this.setErrorState(R)};
_.J.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.J.showContainer=function(){this.hideContainer=!1};
_.J.maybeWipeZeroStepErrorMessage=function(){var R,y=(R=this.data)==null?void 0:R.zeroStepErrorMessageEntityKey,u;y&&((u=this.zeroStepErrorMessageEntity)==null?0:u.value)&&this.ytdReduxBehavior.dispatch(_.Gw("stringEntity",y,{key:y,value:""}))};
_.RR.Object.defineProperties(vf.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}}});
vf.prototype.dataChanged=vf.prototype.dataChanged;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],vf.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],vf.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],vf.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],vf.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],vf.prototype,"errorMessage",void 0);
_.A([_.r(),_.p("design:type",Object)],vf.prototype,"isLoading",void 0);_.A([_.r(),_.p("design:type",String)],vf.prototype,"previewDataUrl",void 0);_.A([_.r(),_.p("design:type",Number)],vf.prototype,"obakeImageSource",void 0);_.A([_.r(),_.p("design:type",Object)],vf.prototype,"hideContainer",void 0);_.A([_.O7("#title-input"),_.p("design:type",Object)],vf.prototype,"nameInput",void 0);_.A([_.O7("#handle-input"),_.p("design:type",Object)],vf.prototype,"handleInput",void 0);
_.A([_.r(),_.p("design:type",Boolean)],vf.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.A([_.r({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.b3T}),_.p("design:type",Object)],vf.prototype,"zeroStepErrorMessageEntity",void 0);_.A([_.G("data","data.isDefaultProfilePhoto","previewDataUrl"),_.p("design:type",Object),_.p("design:paramtypes",[])],vf.prototype,"photoThumbnail",null);
_.A([_.G("data","data.isDefaultProfilePhoto","photoThumbnail"),_.p("design:type",Object),_.p("design:paramtypes",[])],vf.prototype,"userSetPhotoThumbnailUrl",null);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],vf.prototype,"hideProfilePhotoButtonLayer",null);_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],vf.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.A([_.GJ("data","zeroStepErrorMessageEntity"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vf.prototype,"dataChanged",null);_.A([_.r({reflectToAttribute:!0}),_.G("data.descriptionInfo","zeroStepErrorMessageEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],vf.prototype,"description",null);_.A([_.q({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],vf);
_.m(vf,"ytd-channel-creation-dialog-renderer",function(){if(Pzg!==void 0)return Pzg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return Pzg=R},{mode:1});var dMZ;var Qy=function(){var R=_.W.apply(this,arguments)||this;R.isLoading=!1;R.isDisabled=!1;return R};
_.O(Qy,_.W);Qy.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Qy.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)};
Qy.prototype.onSaveClick=function(){var R=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var y;((y=this.data)==null?void 0:y.editChannelHandleEndpoint)!==void 0&&(this.errorMessage=void 0,this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.editChannelHandleEndpoint,{form:{handle:this.handleInput.value},commandController:{onSuccess:function(){var u;if((u=R.data)==null?0:u.nextEndpoint){var v;R.ytComponentBehavior.resolveCommand((v=R.data)==null?void 0:v.nextEndpoint)}else R.isLoading=
!1,R.closeDialog()},
onServerError:function(){R.isLoading=!1;R.handleInput.validate();var u;R.errorMessage=(u=R.data)==null?void 0:u.errorMessage}}}))}};
Qy.prototype.closeDialog=function(){_.Ik(this.hostElement,"yt-close-popup-action",[this.is])};
Qy.prototype.updateDisabled=Qy.prototype.updateDisabled;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Qy.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Qy.prototype,"data",void 0);_.A([_.O7("#handle-input"),_.p("design:type",Object)],Qy.prototype,"handleInput",void 0);_.A([_.e0("isLoading"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Qy.prototype,"updateDisabled",null);
_.A([_.q({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],Qy);
_.m(Qy,"ytd-channel-handle-edit-dialog-renderer",function(){if(dMZ!==void 0)return dMZ;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return dMZ=R},{mode:1});var UMm;var jP=function(){return _.W.apply(this,arguments)||this};
_.O(jP,_.W);jP.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],jP.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],jP.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],jP.prototype,"data",void 0);_.A([_.q({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],jP);
_.m(jP,"ytd-channel-switcher-footer-renderer",function(){if(UMm!==void 0)return UMm;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return UMm=R},{mode:1});var kHa;var EZ8;var MD=function(){return _.W.apply(this,arguments)||this};
_.O(MD,_.W);MD.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
MD.prototype.onIronChange=MD.prototype.onIronChange;_.A([_.r(),_.p("design:type",Object)],MD.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!1}),_.p("design:type",Function)],MD.prototype,"onDontAskAgainChanged",void 0);_.A([_.O7("#checkbox"),_.p("design:type",Object)],MD.prototype,"checkbox",void 0);_.A([_.fu("iron-change"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],MD.prototype,"onIronChange",null);
_.A([_.q({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],MD);
_.m(MD,"ytd-identity-prompt-footer-renderer",function(){if(EZ8!==void 0)return EZ8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return EZ8=R},{mode:1});var Jb=function(){var R=_.W.apply(this,arguments)||this;R.dontAskAgain=!1;R.showPopup=!1;R.boundDontAskAgainChanged=function(y){R.dontAskAgainChanged(y)};
R.boundOnAccountItemTap=function(y){R.onAccountItemTap(y)};
return R};
_.O(Jb,_.W);_.J=Jb.prototype;
_.J.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]]"}}}}}};
_.J.ready=function(){var R=this;_.hw(this.hostElement).querySelector("#container").addEventListener("scroll",function(){R.ytRendererBehavior.markDirty()})};
_.J.dontAskAgainChanged=function(R){this.dontAskAgain=R};
_.J.onAccountItemTap=function(R){if(R){var y={};this.dontAskAgain&&(y={dont_ask_again:this.dontAskAgain});_.z2(R,y)}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.J.redirectOnlyAccount=function(R){R.sections&&R.sections.length>0&&(R=_.e(R.sections[0],_.p78),(R==null?0:R.contents)&&(R==null?void 0:R.contents.length)<=1?(R=_.SS(window.location.href),(R==null?0:R.next)&&_.oFW(R.next)?_.z2(R.next):_.z2("/")):this.showPopup=!0)};
Jb.prototype.dataChanged=Jb.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Jb.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Jb.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Jb.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!1}),_.p("design:type",Object)],Jb.prototype,"dontAskAgain",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Jb.prototype,"showPopup",void 0);_.A([_.r({reflectToAttribute:!1}),_.p("design:type",Object)],Jb.prototype,"boundDontAskAgainChanged",void 0);_.A([_.r({reflectToAttribute:!1}),_.p("design:type",Object)],Jb.prototype,"boundOnAccountItemTap",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Jb.prototype,"dataChanged",null);
_.A([_.q({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],Jb);
_.m(Jb,"ytd-channel-switcher-renderer",function(){if(kHa!==void 0)return kHa;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return kHa=R},{mode:1});var $Ma;var Ij=function(){return _.W.apply(this,arguments)||this};
_.O(Ij,_.W);_.RR.Object.defineProperties(Ij.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.A([_.r(),_.p("design:type",Object)],Ij.prototype,"data",void 0);_.A([_.G("data"),_.p("design:type",Array),_.p("design:paramtypes",[])],Ij.prototype,"steps",null);_.A([_.q({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],Ij);
_.m(Ij,"ytd-channel-transfer-stepper-renderer",function(){if($Ma!==void 0)return $Ma;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return $Ma=R},{mode:1});var qKm;var hb=function(){var R=_.W.apply(this,arguments)||this;R.data=null;R.isError=!1;R.isLoading=!1;return R};
_.O(hb,_.W);_.J=hb.prototype;_.J.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"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.J.computeProfileName=function(R){return R?R.givenNameValue+" "+R.familyNameValue:""};
_.J.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)};
_.J.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)};
hb.prototype.onYtServiceRequestError=hb.prototype.onYtServiceRequestError;hb.prototype.onYtServiceRequestSent=hb.prototype.onYtServiceRequestSent;hb.prototype.dataChanged=hb.prototype.dataChanged;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],hb.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],hb.prototype,"data",void 0);
_.A([_.r({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.p("design:type",String)],hb.prototype,"profileName",void 0);_.A([_.r(),_.p("design:type",Object)],hb.prototype,"isError",void 0);_.A([_.r(),_.p("design:type",Object)],hb.prototype,"isLoading",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],hb.prototype,"dataChanged",null);
_.A([_.fu("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.z3]),_.p("design:returntype")],hb.prototype,"onYtServiceRequestSent",null);_.A([_.fu("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.z3]),_.p("design:returntype")],hb.prototype,"onYtServiceRequestError",null);_.A([_.q({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],hb);
_.m(hb,"ytd-channel-warm-welcome-cont-renderer",function(){if(qKm!==void 0)return qKm;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return qKm=R},{mode:1});var XSp;var bC=function(){var R=_.W.apply(this,arguments)||this;R.data=null;return R};
_.O(bC,_.W);bC.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
bC.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],bC.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],bC.prototype,"data",void 0);_.A([_.q({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],bC);
_.m(bC,"ytd-channel-warm-welcome-renderer",function(){if(XSp!==void 0)return XSp;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return XSp=R},{mode:1});var mMI;var F3=function(){return _.W.apply(this,arguments)||this};
_.O(F3,_.W);_.RR.Object.defineProperties(F3.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.authorThumbnail)||{}}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],F3.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],F3.prototype,"data",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],F3.prototype,"thumbnailDetails",null);_.A([_.q({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],F3);
_.m(F3,"ytd-comment-preview-renderer",function(){if(mMI!==void 0)return mMI;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return mMI=R},{mode:1});var AZH;var wA=function(){return _.W.apply(this,arguments)||this};
_.O(wA,_.W);wA.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.RR.Object.defineProperties(wA.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.submitButton}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],wA.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],wA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],wA.prototype,"data",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],wA.prototype,"submitButton",null);_.A([_.q({is:"ytd-notice-renderer",disableElementRegistration:!0})],wA);
_.m(wA,"ytd-notice-renderer",function(){if(AZH!==void 0)return AZH;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return AZH=R},{mode:1});var DMa;var ND=function(){return _.W.apply(this,arguments)||this};
_.O(ND,_.W);ND.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],ND.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ND.prototype,"data",void 0);_.A([_.q({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],ND);
_.m(ND,"ytd-preview-comment-dialog-content",function(){if(DMa!==void 0)return DMa;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return DMa=R},{mode:1});var pSg;var Tk=function(){return _.W.apply(this,arguments)||this};
_.O(Tk,_.W);Tk.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Tk.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Tk.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Tk.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Tk.prototype,"data",void 0);_.A([_.q({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],Tk);
_.m(Tk,"ytd-preview-comment-dialog-renderer",function(){if(pSg!==void 0)return pSg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return pSg=R},{mode:1});var t7g;var cZg=_.f("web_button_rework")&&_.$B("BUTTON_REWORK")||_.f("web_button_rework_with_live"),oj=function(){var R=_.W.apply(this,arguments)||this;R.closeLabel=_.fo("CLOSE");R.selectedAmountIndex=1;R.privacyCheckboxValue=!1;R.useAmsterdamStyle=cZg;R.amountPlaceholderIndex=-1;return R};
_.O(oj,_.W);_.J=oj.prototype;_.J.onAmountClick=function(R){this.selectedAmountIndex=_.hw(this.hostElement).querySelector("#amounts").indexForElement(R.currentTarget)};
_.J.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.Ik(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.J.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.Ik(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.Ik(this.hostElement,"yt-close-popup-action",[this.is]);var R;(R=_.I8())==null||R.getPlayerPromise().then(function(y){y.pauseVideo()})}};
_.J.donationCallback=function(R){R.success?(this.hostElement.hasAttribute("live-chat")&&R.response&&R.response.data&&R.response.data.actions&&_.Ik(this.hostElement,"yt-live-chat-open-popup",[R.response.data.actions[0]]),_.Ik(this.hostElement,"yt-close-popup-action",[this.is]),_.Ik(this.hostElement,"yt-live-chat-close-buy-flow")):R.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(R.errorMessageRenderer)};
_.J.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.hw(this.hostElement).querySelector("#custom-amount-input").focus()};
_.J.updateConfirmationDialogTextWithAmount=function(R){var y=this.getConfirmDialogRuns();y&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(y),"text"],this.getFormattedAmount(R))};
_.J.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.J.getAmountPlaceholderIndex=function(R){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=R.findIndex(function(y){return y.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.J.getFormattedAmount=function(R){var y;return(new _.Ys(4,((y=this.data)==null?void 0:y.currencyCode)||"")).format(R)};
_.J.isAmountValid=function(R){if(R==="")return!1;R=Number(R)*1E6;var y=this.get("minAmountMicros",this.data),u=this.get("maxAmountMicros",this.data);return y&&R<y||u&&R>u?!1:!0};
_.J.setInputError=function(){this.shouldShowValidationError?_.hw(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.hw(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.J.setInitialCheckboxValue=function(){var R;this.privacyCheckboxValue=!((R=this.data)==null||!R.privacyCheckboxInitialState)};
_.J.updateCustomAmountInputFromBinding=function(R){this.customAmountInput=R.detail.value};
_.J.updatePrivacyCheckboxValueFromBinding=function(R){this.privacyCheckboxValue=R.detail.value};
_.RR.Object.defineProperties(oj.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var R=this,y,u;return((y=this.data)==null?void 0:(u=y.suggestedAmounts)==null?void 0:u.map(function(v,Q){return{buttonRenderer:{style:R.selectedAmountIndex===Q?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:v.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})}}});
oj.prototype.setInitialCheckboxValue=oj.prototype.setInitialCheckboxValue;oj.prototype.setInputError=oj.prototype.setInputError;oj.prototype.setFocusOnCustomAmountInput=oj.prototype.setFocusOnCustomAmountInput;_.A([_.n(vOM),_.p("design:type",Object)],oj.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],oj.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],oj.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],oj.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],oj.prototype,"closeLabel",void 0);_.A([_.r(),_.p("design:type",Object)],oj.prototype,"selectedAmountIndex",void 0);_.A([_.r(),_.p("design:type",String)],oj.prototype,"customAmountInput",void 0);_.A([_.r(),_.p("design:type",Object)],oj.prototype,"privacyCheckboxValue",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],oj.prototype,"useAmsterdamStyle",void 0);_.A([_.e0("customAmount"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],oj.prototype,"setFocusOnCustomAmountInput",null);_.A([_.G("data","selectedAmountIndex"),_.p("design:type",Array),_.p("design:paramtypes",[])],oj.prototype,"suggestedAmountButtons",null);
_.A([_.G("data","selectedAmountIndex"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],oj.prototype,"isCustomAmountSelected",null);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],oj.prototype,"showPrivacyCheckbox",null);_.A([_.G("data","selectedAmountIndex","customAmount"),_.p("design:type",Object),_.p("design:paramtypes",[])],oj.prototype,"amountMicros",null);
_.A([_.G("isCustomAmountSelected","customAmountInput"),_.p("design:type",Object),_.p("design:paramtypes",[])],oj.prototype,"customAmount",null);_.A([_.G("customAmount"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],oj.prototype,"shouldShowValidationError",null);_.A([_.G("customAmount"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],oj.prototype,"isDonateButtonEnabled",null);
_.A([_.G("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.p("design:type",Object),_.p("design:paramtypes",[])],oj.prototype,"donateCommand",null);_.A([_.G("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.p("design:type",Object),_.p("design:paramtypes",[])],oj.prototype,"donateCommandWithConfirmation",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],oj.prototype,"largeDonationThreshold",null);
_.A([_.G("customAmount","donateCommand","amountMicros"),_.p("design:type",Object),_.p("design:paramtypes",[])],oj.prototype,"confirmLargeAmountCommand",null);_.A([_.G("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.p("design:type",Object),_.p("design:paramtypes",[])],oj.prototype,"donateButtonRenderer",null);_.A([_.e0("shouldShowValidationError"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],oj.prototype,"setInputError",null);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],oj.prototype,"setInitialCheckboxValue",null);_.A([_.q({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],oj);
_.m(oj,"ytd-donation-amount-picker-renderer",function(){if(t7g!==void 0)return t7g;var R=document.createElement("template");_.H(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" aria-label="[[getSimpleString(data.pickerTitle)]]" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" label="[[closeLabel]]" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignTitle)]]</div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignSubtitle)]]</div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');R.content.insertBefore(_.t().content.cloneNode(!0),
R.content.firstChild);return t7g=R},{mode:1});var aPI;var x4=function(){return _.W.apply(this,arguments)||this};
_.O(x4,_.W);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],x4.prototype,"ytComponentBehavior",void 0);_.A([_.r({}),_.p("design:type",Object)],x4.prototype,"data",void 0);_.A([_.q({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],x4);
_.m(x4,"ytd-donation-post-transaction-content",function(){if(aPI!==void 0)return aPI;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return aPI=R},{mode:1});var SKP;var Bf=function(){return _.W.apply(this,arguments)||this};
_.O(Bf,_.W);Bf.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Bf.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Bf.prototype,"ytRendererBehavior",void 0);_.A([_.r({}),_.p("design:type",Object)],Bf.prototype,"data",void 0);_.A([_.q({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],Bf);
_.m(Bf,"ytd-donation-post-transaction-renderer",function(){if(SKP!==void 0)return SKP;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return SKP=R},{mode:1});var YK8;var LXa;var fS=function(){return _.W.apply(this,arguments)||this};
_.O(fS,_.W);fS.prototype.computeIsStreamingProvider=function(R){return!!R.isStreamingShelf};
fS.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],fS.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],fS.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],fS.prototype,"data",void 0);_.A([_.r({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],fS.prototype,"isStreamingProvider",void 0);
_.A([_.q({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],fS);
_.m(fS,"ytd-media-provider-renderer",function(){if(LXa!==void 0)return LXa;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return LXa=R},{mode:1});var sO7;var eP=function(){return _.W.apply(this,arguments)||this};
_.O(eP,_.W);eP.prototype.observeLightsourcePalette=function(){var R,y=(R=this.data)==null?void 0:R.vibrantsourceColorPaletteData;y&&_.mx(this.hostElement,y)};
eP.prototype.observeLightsourcePalette=eP.prototype.observeLightsourcePalette;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],eP.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],eP.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],eP.prototype,"data",void 0);
_.A([_.e0("data.vibrantsourceColorPaletteData"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],eP.prototype,"observeLightsourcePalette",null);_.A([_.q({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],eP);
_.m(eP,"ytd-streaming-pop-up-dialog",function(){if(sO7!==void 0)return sO7;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return sO7=R},{mode:1});var lC=function(){return _.W.apply(this,arguments)||this};
_.O(lC,_.W);lC.prototype.onPopupOpened_=function(){var R;((R=this.data)==null?0:R.serviceEndpoint)&&_.ua().resolve(_.jX).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
lC.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
lC.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"}}}}};
lC.prototype.onPopupOpened_=lC.prototype.onPopupOpened_;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],lC.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],lC.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.gb),_.p("design:type",Object)],lC.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],lC.prototype,"data",void 0);
_.A([_.fu("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],lC.prototype,"onPopupOpened_",null);_.A([_.q({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],lC);
_.m(lC,"ytd-brandconnect-popup-renderer",function(){if(YK8!==void 0)return YK8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return YK8=R},{mode:1});var zWo;var OS=function(){return _.W.apply(this,arguments)||this};
_.O(OS,_.W);_.J=OS.prototype;_.J.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.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)};
_.J.updateSubmitButton=function(R){this.set("data.submitButton.buttonRenderer.isDisabled",!R)};
_.J.computeAlt=function(R){return _.u7(R)};
_.J.onDismissTap=function(){_.Ik(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.ua().resolve(_.jX).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.J.getOptionRenderers=function(R){return(R=R||this.data)&&R.options?R.options.reduce(function(y,u){u.checkboxSurveyOptionRenderer&&y.push(u.checkboxSurveyOptionRenderer);return y},[]):[]};
_.J.onOptionChange=function(R){var y=this,u=!1;if(R.detail.checked)for(var v=this.getOptionRenderers().find(function(h){return h.value===R.detail.value}),Q=this.getOptionRenderers(),M=0;M<Q.length;M++){var K=Q[M];
this.notifyPath("data.options."+M+".checkboxSurveyOptionRenderer.checked");K.checked&&((v==null?0:v.isExclusiveOption)?!K.isExclusiveOption:K.isExclusiveOption)?this.set("data.options."+M+".checkboxSurveyOptionRenderer.checked",!1):K.checked&&(u=!0)}else u=this.getOptionRenderers().some(function(h,b){y.notifyPath("data.options."+b+".checkboxSurveyOptionRenderer.checked");return h.checked});
this.updateSubmitButton(u)};
_.J.onSubmitTap=function(){var R=this.getOptionRenderers().filter(function(M){return M.checked});
if(R.length!==0){var y=R.map(function(M){return M.responseEndpoint});
R=[];for(var u=1;u<y.length;u++){var v=void 0,Q=(v=_.e(y[u],_.mr))==null?void 0:v.feedbackToken;Q&&R.push(Q)}y=[y[0]];R.length&&y.push({extra_feedback_tokens:R});_.Fh(this.hostElement,y);_.Ik(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);R=this.data&&this.data.submitActions||[];if(_.f("kevlar_command_handler_migration_killswitch"))_.wr(this.hostElement,R,this.hostElement);else for(R=_.V(R),y=R.next();!y.done;y=R.next())this.ytComponentBehavior.resolveCommand(y.value)}};
OS.prototype.onOptionChange=OS.prototype.onOptionChange;OS.prototype.dataChanged=OS.prototype.dataChanged;_.A([_.n(_.GZ.YtEventForwardingBehavior),_.p("design:type",Object)],OS.prototype,"ytEventForwardingBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],OS.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],OS.prototype,"ytComponentBehavior",void 0);
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],OS.prototype,"ytRendererBehavior",void 0);_.A([_.n(fHa),_.p("design:type",Object)],OS.prototype,"ytdHatsSurveyBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],OS.prototype,"data",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],OS.prototype,"dataChanged",null);
_.A([_.fu("ytd-checkbox-survey-option-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],OS.prototype,"onOptionChange",null);_.A([_.q({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],OS);
_.m(OS,"ytd-checkbox-survey-renderer",function(){if(zWo!==void 0)return zWo;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return zWo=R},{mode:1});var gZa;var CzH;var Z$=function(){return _.W.apply(this,arguments)||this};
_.O(Z$,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Z$.prototype,"ytRendererBehavior",void 0);_.A([_.n(BoZ),_.p("design:type",Object)],Z$.prototype,"ytdDismissalReasonBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Z$.prototype,"data",void 0);_.A([_.q({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],Z$);
_.m(Z$,"ytd-dismissal-reason-text-renderer",function(){if(CzH!==void 0)return CzH;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return CzH=R},{mode:1});var RPI;var Hf=function(){return _.W.apply(this,arguments)||this};
_.O(Hf,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Hf.prototype,"ytRendererBehavior",void 0);_.A([_.n(BoZ),_.p("design:type",Object)],Hf.prototype,"ytdDismissalReasonBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Hf.prototype,"data",void 0);_.A([_.q({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],Hf);
_.m(Hf,"ytd-dismissal-reason-video-renderer",function(){if(RPI!==void 0)return RPI;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return RPI=R},{mode:1});var nS=function(){var R=_.W.apply(this,arguments)||this;R.darkerDarkTheme=_.f("web_darker_dark_theme");return R};
_.O(nS,_.W);_.J=nS.prototype;_.J.created=function(){this.selectedFeedbackTokens=new J0};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.J.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.J.onDismissalReasonSelected=function(R,y){_.Ko(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(y);this.hasReasonsSelected=!0};
_.J.onDismissalReasonDeselected=function(R,y){_.Ko(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(y);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.J.onCancelTap=function(){_.Ik(this.hostElement,"yt-close-popup-action")};
_.J.onSubmitTap=function(){var R=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(R={feedback_tokens:R},_.ua().resolve(_.jX).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},R,{element:this.hostElement})}));_.Ik(this.hostElement,"yt-close-popup-action")};
nS.prototype.onDismissalReasonDeselected=nS.prototype.onDismissalReasonDeselected;nS.prototype.onDismissalReasonSelected=nS.prototype.onDismissalReasonSelected;nS.prototype.dataChanged=nS.prototype.dataChanged;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],nS.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],nS.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],nS.prototype,"data",void 0);
_.A([_.r(),_.p("design:type",Boolean)],nS.prototype,"hasReasonsSelected",void 0);_.A([_.r(),_.p("design:type",J0)],nS.prototype,"selectedFeedbackTokens",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],nS.prototype,"darkerDarkTheme",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],nS.prototype,"dataChanged",null);
_.A([_.fu("yt-dismissal-reason-selected"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,String]),_.p("design:returntype")],nS.prototype,"onDismissalReasonSelected",null);_.A([_.fu("yt-dismissal-reason-deselected"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,String]),_.p("design:returntype")],nS.prototype,"onDismissalReasonDeselected",null);_.A([_.q({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],nS);
_.m(nS,"ytd-dismissal-follow-up-renderer",function(){if(gZa!==void 0)return gZa;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return gZa=R},{mode:1});var yKP;var Gk=function(){return _.W.apply(this,arguments)||this};
_.O(Gk,_.W);_.J=Gk.prototype;_.J.onCheckedChange=function(){this.multiselect||_.Ko(this.hostElement,"yt-feedback-single-select-changed");_.hw(this.hostElement).querySelector("#freeform").focus();_.Ko(this.hostElement,"yt-refit")};
_.J.showTextBox=function(R,y){return R&&y};
_.J.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))};
_.J.updateDataCheckedFromBinding=function(R){this.set("data.checked",R.detail.value)};
_.J.updateDataResultTextFromBinding=function(R){this.set("data.resultText",R.detail.value)};
Gk.prototype.dataChanged=Gk.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Gk.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Gk.prototype,"data",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],Gk.prototype,"multiselect",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Gk.prototype,"dataChanged",null);
_.A([_.q({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],Gk);
_.m(Gk,"ytd-feedback-option-renderer",function(){if(yKP!==void 0)return yKP;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return yKP=R},{mode:1});var uXa;var rA=function(){return _.W.apply(this,arguments)||this};
_.O(rA,_.W);rA.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
rA.prototype.onSingleSelectCheckedChanged=function(R){R=_.vN(R);for(var y=0;y<this.data.options.length;y++)if(R.data!==_.e(this.data.options[y],o18)){var u="data.options."+y+".feedbackOptionRenderer.checked";this.notifyPath(u);this.set(u,!1)}};
rA.prototype.onSingleSelectCheckedChanged=rA.prototype.onSingleSelectCheckedChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],rA.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],rA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],rA.prototype,"data",void 0);
_.A([_.fu("yt-feedback-single-select-changed"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],rA.prototype,"onSingleSelectCheckedChanged",null);_.A([_.q({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],rA);
_.m(rA,"ytd-feedback-question-renderer",function(){if(uXa!==void 0)return uXa;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return uXa=R},{mode:1});var vqZ;var Pf=function(){return _.W.apply(this,arguments)||this};
_.O(Pf,_.W);Pf.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
Pf.prototype.getSelectedFeedbackResults=function(){for(var R={},y=0;y<this.data.questions.length;y++)for(var u=_.e(this.data.questions[y],TjP),v=0;v<u.options.length;v++){var Q=_.e(u.options[v],o18);Q&&Q.checked&&(R[Q.optionKey]=Q.resultText)}return R};
Pf.prototype.onKeyUp=function(){var R=this;_.T3(_.WG,function(){_.Ko(R.hostElement,"yt-refit")});
_.WG.start()};
Pf.prototype.submitSurvey=function(){var R=this.getSelectedFeedbackResults();Object.keys(R).length>0&&this.data.submitFeedbackEndpoint&&(R={survey_results:R,is_feedback_token_unencrypted:!0},_.ua().resolve(_.jX).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},R,{element:this.hostElement})}))};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Pf.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Pf.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Pf.prototype,"data",void 0);_.A([_.q({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],Pf);
_.m(Pf,"ytd-feedback-survey-renderer",function(){if(vqZ!==void 0)return vqZ;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return vqZ=R},{mode:1});var Qdg;var jdJ;var Wf=function(){return _.W.apply(this,arguments)||this};
_.O(Wf,_.W);Wf.prototype.computeAlt=function(R){return _.u7(R)};
Wf.prototype.submitResponse=function(){var R,y;(R=this.data)!=null&&R.feedbackToken&&((y=this.data)==null?void 0:y.nextStageIndex)!==void 0&&(_.h_(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.h_(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
Wf.prototype.onClick=function(){this.submitResponse()};
Wf.prototype.onClick=Wf.prototype.onClick;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Wf.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Wf.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Wf.prototype,"vertical",void 0);_.A([_.fu("click"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Wf.prototype,"onClick",null);
_.A([_.q({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],Wf);
_.m(Wf,"ytd-single-select-answer-option-renderer",function(){if(jdJ!==void 0)return jdJ;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return jdJ=R},{mode:1});var MA7;var dA=function(){var R=_.W.apply(this,arguments)||this;R.darkerDarkTheme=_.f("web_darker_dark_theme");R.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return R};
_.O(dA,_.W);dA.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
dA.prototype.dataChanged=function(){var R,y;this.vertical=((y=(R=this.data)==null?void 0:R.answerOrientation)!=null?y:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
dA.prototype.submitFeedback=function(R){var y;((y=this.data)==null?0:y.responseEndpoint)&&R&&_.Fh(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[R]}])};
dA.prototype.dataChanged=dA.prototype.dataChanged;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],dA.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.GZ.YtEventForwardingBehavior),_.p("design:type",Object)],dA.prototype,"eventForwardingBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],dA.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],dA.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],dA.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],dA.prototype,"vertical",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],dA.prototype,"darkerDarkTheme",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],dA.prototype,"dataChanged",null);_.A([_.q({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],dA);
_.m(dA,"ytd-single-select-question-renderer",function(){if(MA7!==void 0)return MA7;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return MA7=R},{mode:1});var US=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return R};
_.O(US,_.W);_.J=US.prototype;_.J.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"}}}};
_.J.dataChanged=function(){this.jumpToStage(0)};
_.J.jumpToStage=function(R){var y,u;if((y=this.data)==null?0:(u=y.stages)==null?0:u[R])this.currentStage=this.data.stages[R],this.refitAfterRender()};
_.J.computeAlt=function(R){return _.u7(R)};
_.J.computeSimpleMessage=function(R){var y;return(y=_.e(R,fL7))==null?void 0:y.messageText};
_.J.computeHideDismiss=function(R){var y;return(y=_.e(R,Yxa))==null?void 0:y.hideParentDismissButton};
_.J.onDismissTap=function(){_.Ik(this.hostElement,"yt-close-popup-action");_.e(this.currentStage,fL7)||this.data.dismissalEndpoint&&_.ua().resolve(_.jX).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.J.refitAfterRender=function(){var R=this;_.gn(this,function(){_.Ko(R.hostElement,"yt-refit")})};
US.prototype.dataChanged=US.prototype.dataChanged;_.A([_.n(_.GZ.YtEventForwardingBehavior),_.p("design:type",Object)],US.prototype,"eventForwardingBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],US.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],US.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],US.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.n(fHa),_.p("design:type",Object)],US.prototype,"ytdHatsSurveyBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],US.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],US.prototype,"currentStage",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],US.prototype,"dataChanged",null);_.A([_.q({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],US);
_.m(US,"ytd-multi-stage-survey-renderer",function(){if(Qdg!==void 0)return Qdg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return Qdg=R},{mode:1});var JK8;var k4=function(){return _.W.apply(this,arguments)||this};
_.O(k4,_.W);k4.prototype.computeAlt=function(R){return _.u7(R)};
k4.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.ua().resolve(_.jX).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.Ik(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.TnV(!1)))};
k4.prototype.onTap=function(){this.vertical&&this.submitResponse()};
k4.prototype.onTap=k4.prototype.onTap;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],k4.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],k4.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],k4.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],k4.prototype,"vertical",void 0);
_.A([_.fu("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],k4.prototype,"onTap",null);_.A([_.q({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],k4);
_.m(k4,"ytd-single-option-survey-option-renderer",function(){if(JK8!==void 0)return JK8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return JK8=R},{mode:1});var VAg;var ES=function(){return _.W.apply(this,arguments)||this};
_.O(ES,_.W);_.J=ES.prototype;_.J.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.dataChanged=function(){var R,y;this.vertical=(((R=this.data)==null?void 0:(y=R.surveyOrientation)==null?void 0:y.type)||"HORIZONTAL")==="VERTICAL"};
_.J.computeAlt=function(R){return _.u7(R)};
_.J.onDismissTap=function(){_.Ik(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.ua().resolve(_.jX).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.TnV(!1))};
ES.prototype.dataChanged=ES.prototype.dataChanged;_.A([_.n(_.GZ.YtEventForwardingBehavior),_.p("design:type",Object)],ES.prototype,"eventForwardingBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ES.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],ES.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(fHa),_.p("design:type",Object)],ES.prototype,"ytdHatsSurveyBehavior",void 0);
_.A([_.n(_.p6),_.p("design:type",Object)],ES.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ES.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],ES.prototype,"vertical",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ES.prototype,"dataChanged",null);_.A([_.q({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],ES);
_.m(ES,"ytd-single-option-survey-renderer",function(){if(VAg!==void 0)return VAg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return VAg=R},{mode:1});var isH;var $4=function(){var R=_.W.apply(this,arguments)||this;R.darkerDarkTheme=_.f("web_darker_dark_theme");return R};
_.O($4,_.W);$4.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
$4.prototype.onDismissTap=function(){_.Ik(this.hostElement,"yt-close-popup-action")};
$4.prototype.onNavigate=function(){_.Ik(this.hostElement,"yt-close-popup-action")};
$4.prototype.onNavigate=$4.prototype.onNavigate;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],$4.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.GZ.YtEventForwardingBehavior),_.p("design:type",Object)],$4.prototype,"ytEventForwardingBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],$4.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],$4.prototype,"darkerDarkTheme",void 0);
_.A([_.fu("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],$4.prototype,"onNavigate",null);_.A([_.q({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],$4);
_.m($4,"ytd-survey-follow-up-renderer",function(){if(isH!==void 0)return isH;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return isH=R},{mode:1});var K7V;var IWo;var hP8;var qD=function(){var R=_.W.apply(this,arguments)||this;R.polymer2="Element"in Polymer;return R};
_.O(qD,_.W);_.J=qD.prototype;_.J.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.J.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.J.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.J.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.CQ("minutes-changed",this.minutes))};
_.J.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.CQ("seconds-changed",this.seconds))};
_.J.updateMinutesFromBinding=function(R){this.minutes=R.detail.value};
_.J.updateSecondsFromBinding=function(R){this.seconds=R.detail.value};
qD.prototype.secondsChangedForBinding=qD.prototype.secondsChangedForBinding;qD.prototype.minutesChangedForBinding=qD.prototype.minutesChangedForBinding;qD.prototype.secondsChanged=qD.prototype.secondsChanged;_.A([_.r(),_.p("design:type",String)],qD.prototype,"minutes",void 0);_.A([_.r(),_.p("design:type",String)],qD.prototype,"seconds",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],qD.prototype,"polymer2",void 0);
_.A([_.O7("#seconds"),_.p("design:type",Object)],qD.prototype,"secondsEl",void 0);_.A([_.e0("seconds"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qD.prototype,"secondsChanged",null);_.A([_.e0("minutes"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qD.prototype,"minutesChangedForBinding",null);
_.A([_.e0("seconds"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],qD.prototype,"secondsChangedForBinding",null);_.A([_.pu({is:"yt-timestamp-input",disableElementRegistration:!0})],qD);
_.m(qD,"yt-timestamp-input",function(){if(hP8===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;IWo===void 0&&(IWo=document.createElement("template"));var v=IWo;u.call(y,v.content.cloneNode(!0),R.content.firstChild);hP8=R}R=hP8;return R},{mode:2});var X3=function(){return _.W.apply(this,arguments)||this};
_.O(X3,_.W);_.J=X3.prototype;_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20219_scroller.dialogElement=this.hostElement.parentNode};
_.J.dataChanged=function(){var R=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.hF().getPlayerPromise().then(function(y){y=y.getCurrentTime();R.minutes=Math.floor(y/60).toString();R.seconds=(Math.floor(y)%60).toString()})};
_.J.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),_.ua().resolve(_.jX).resolveCommand(this.serviceEndpoint,{form:Object.assign({},R,{element:this.hostElement})}))};
_.J.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.J.onYtServiceRequestCompleted=function(R,y){y=y.actions;if(Array.isArray(y))for(var u=0,v=y.length;u<v;u++)_.e(y[u],_.kW)&&(R.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(y[u]))};
_.J.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.J.toggleSubmitButton=function(R){this.set("submitButton.isDisabled",!R)};
_.J.handleInput=function(){var R=this.issueType,y=this.affiliation,u=this.minutes,v=this.seconds;u=!this.showTimestamp||!!u&&!!v;this.toggleSubmitButton(!!this.descriptionText&&!!R&&!!y&&u)};
_.J.computeServiceEndpoint=function(R){return this.get("submitButton.buttonRenderer.serviceEndpoint",R)};
_.J.computeSubmitButton=function(R){(R=this.get("submitButton.buttonRenderer",R))&&(R=Object.assign({},R,{serviceEndpoint:void 0}));return R};
_.J.computeShowTimestamp=function(R){return!!R};
_.J.onValueChangedForIssueType=function(R){this.issueType=R.detail.value};
_.J.onValueChangedForAffiliation=function(R){this.affiliation=R.detail.value};
_.J.updateDescriptionTextFromBinding=function(R){this.descriptionText=R.detail.value};
_.J.updateFullNameTextFromBinding=function(R){this.fullNameText=R.detail.value};
_.J.updateMinutesFromBinding=function(R){this.minutes=R.detail.value};
_.J.updateSecondsFromBinding=function(R){this.seconds=R.detail.value};
X3.prototype.handleInput=X3.prototype.handleInput;X3.prototype.onYtServiceRequestError=X3.prototype.onYtServiceRequestError;X3.prototype.onYtServiceRequestCompleted=X3.prototype.onYtServiceRequestCompleted;X3.prototype.onYtServiceRequestSent=X3.prototype.onYtServiceRequestSent;X3.prototype.dataChanged=X3.prototype.dataChanged;_.A([_.n(_.Oj.YtOpenPopupBehavior),_.p("design:type",Object)],X3.prototype,"ytOpenPopupBehavior",void 0);
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],X3.prototype,"ytRendererBehavior",void 0);_.A([_.O7("#scroller"),_.p("design:type",Object)],X3.prototype,"JSC$20219_scroller",void 0);_.A([_.O7("#description"),_.p("design:type",HTMLInputElement)],X3.prototype,"description",void 0);_.A([_.O7("#full-name"),_.p("design:type",Object)],X3.prototype,"fullName",void 0);_.A([_.r(),_.p("design:type",Object)],X3.prototype,"data",void 0);
_.A([_.r({computed:"computeShowTimestamp(data.timestampLabel)"}),_.p("design:type",Boolean)],X3.prototype,"showTimestamp",void 0);_.A([_.r({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.p("design:type",Object)],X3.prototype,"serviceEndpoint",void 0);_.A([_.r({computed:"computeSubmitButton(data)"}),_.p("design:type",Object)],X3.prototype,"submitButton",void 0);_.A([_.r(),_.p("design:type",String)],X3.prototype,"descriptionText",void 0);
_.A([_.r(),_.p("design:type",Number)],X3.prototype,"issueType",void 0);_.A([_.r(),_.p("design:type",Number)],X3.prototype,"affiliation",void 0);_.A([_.r(),_.p("design:type",String)],X3.prototype,"fullNameText",void 0);_.A([_.r(),_.p("design:type",String)],X3.prototype,"minutes",void 0);_.A([_.r(),_.p("design:type",String)],X3.prototype,"seconds",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],X3.prototype,"dataChanged",null);
_.A([_.fu("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.z3]),_.p("design:returntype")],X3.prototype,"onYtServiceRequestSent",null);_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Mp]),_.p("design:returntype")],X3.prototype,"onYtServiceRequestCompleted",null);
_.A([_.fu("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],X3.prototype,"onYtServiceRequestError",null);_.A([_.e0("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],X3.prototype,"handleInput",null);_.A([_.q({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],X3);
_.m(X3,"ytd-legal-report-details-form-renderer",function(){if(K7V!==void 0)return K7V;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return K7V=R},{mode:1});var bsZ;var mo=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return R};
_.O(mo,_.W);mo.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
mo.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var R=this.formRenderer.getForm();R&&this.data.submitEndpoint&&(_.ua().resolve(_.jX).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},R,{element:this.hostElement})}),_.Ik(this.hostElement,"yt-close-popup-action"))}};
mo.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.Ik(this.hostElement,"yt-close-popup-action"))};
mo.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
mo.prototype.onPopupClosed=mo.prototype.onPopupClosed;_.A([_.n(_.GZ.YtEventForwardingBehavior),_.p("design:type",Object)],mo.prototype,"ytEventForwardingBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],mo.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],mo.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],mo.prototype,"ytRendererBehavior",void 0);
_.A([_.O7("yt-form-renderer"),_.p("design:type",Object)],mo.prototype,"formRenderer",void 0);_.A([_.r(),_.p("design:type",Object)],mo.prototype,"data",void 0);_.A([_.fu("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],mo.prototype,"onPopupClosed",null);_.A([_.q({is:"ytd-form-popup-content",disableElementRegistration:!0})],mo);
_.m(mo,"ytd-form-popup-content",function(){if(bsZ!==void 0)return bsZ;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return bsZ=R},{mode:1});var F7V;var Ab=function(){return _.W.apply(this,arguments)||this};
_.O(Ab,_.W);Ab.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Ab.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ab.prototype.onPopupOpened=function(){_.Ko(this.hostElement,"yt-invalidate-popup-tabbables")};
Ab.prototype.onYtServiceRequestCompleted=function(R,y){y.data&&y.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.Ko(this.hostElement,"yt-invalidate-popup-tabbables"))};
Ab.prototype.onYtServiceRequestCompleted=Ab.prototype.onYtServiceRequestCompleted;Ab.prototype.onPopupOpened=Ab.prototype.onPopupOpened;_.A([_.n(_.GZ.YtEventForwardingBehavior),_.p("design:type",Object)],Ab.prototype,"ytEventForwardingBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Ab.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Ab.prototype,"ytRendererBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],Ab.prototype,"data",void 0);_.A([_.fu("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ab.prototype,"onPopupOpened",null);_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Mp]),_.p("design:returntype")],Ab.prototype,"onYtServiceRequestCompleted",null);_.A([_.q({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],Ab);
_.m(Ab,"ytd-form-popup-renderer",function(){if(F7V!==void 0)return F7V;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return F7V=R},{mode:1});var wvp;var D$=function(){var R=_.W.apply(this,arguments)||this;R.isLoading=!1;return R};
_.O(D$,_.W);_.J=D$.prototype;_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");TGp(this.hostElement)};
_.J.onYtServiceRequestSent=function(){this.isLoading=!0};
_.J.onYtServiceRequestCompleted=function(){_.Ik(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.J.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.wr(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.J.closePopupHandler=function(){this.fireOnCloseActions()};
_.J.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=_.b0(R,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+R+")")}};
_.J.onYtNavigate=function(R){(R=_.vN(R))&&R.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
D$.prototype.onYtNavigate=D$.prototype.onYtNavigate;D$.prototype.onHeaderImageChanged=D$.prototype.onHeaderImageChanged;D$.prototype.closePopupHandler=D$.prototype.closePopupHandler;D$.prototype.onYtServiceRequestCompleted=D$.prototype.onYtServiceRequestCompleted;D$.prototype.onYtServiceRequestSent=D$.prototype.onYtServiceRequestSent;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],D$.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.GZ.YtEventForwardingBehavior),_.p("design:type",Object)],D$.prototype,"ytEventForwardingBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],D$.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],D$.prototype,"isLoading",void 0);_.A([_.O7("#header"),_.p("design:type",HTMLDivElement)],D$.prototype,"header",void 0);_.A([_.O7("#confirm-button"),_.p("design:type",_.PR)],D$.prototype,"confirmButton",void 0);
_.A([_.fu("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],D$.prototype,"onYtServiceRequestSent",null);_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],D$.prototype,"onYtServiceRequestCompleted",null);
_.A([_.fu("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],D$.prototype,"closePopupHandler",null);_.A([_.e0("data.headerImage"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],D$.prototype,"onHeaderImageChanged",null);_.A([_.fu("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],D$.prototype,"onYtNavigate",null);
_.A([_.q({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],D$);
_.m(D$,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(wvp!==void 0)return wvp;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return wvp=R},{mode:1});var N_p;var pS=function(){var R=_.W.apply(this,arguments)||this;R.isLoading=!1;return R};
_.O(pS,_.W);_.J=pS.prototype;_.J.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"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);TGp(this.hostElement)};
_.J.onYtServiceRequestCompleted=function(){_.Ik(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.J.onYtServiceRequestError=function(R){_.JG(this.hostElement,R.detail.error.message)};
_.J.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.J.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.Ik(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.J.onDataChanged=function(){this.isLoading=!1;var R=this.get("data.headerImage.thumbnails");R&&(R=_.b0(R,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+R+")");R=_.$I();var y=_.Ef(),u=this.get("data.trackingParams");u&&y&&R&&_.ak(R,y,_.U4(u))};
_.RR.Object.defineProperties(pS.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
pS.prototype.onDataChanged=pS.prototype.onDataChanged;pS.prototype.onDomChange=pS.prototype.onDomChange;pS.prototype.onYtServiceRequestError=pS.prototype.onYtServiceRequestError;pS.prototype.onYtServiceRequestCompleted=pS.prototype.onYtServiceRequestCompleted;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],pS.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],pS.prototype,"ytRendererBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],pS.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],pS.prototype,"isLoading",void 0);_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],pS.prototype,"hasDescription",null);_.A([_.O7("tp-yt-paper-dialog-scrollable"),_.p("design:type",Object)],pS.prototype,"scrollable",void 0);_.A([_.O7("#header"),_.p("design:type",HTMLElement)],pS.prototype,"header",void 0);
_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],pS.prototype,"onYtServiceRequestCompleted",null);_.A([_.fu("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],pS.prototype,"onYtServiceRequestError",null);
_.A([_.fu("dom-change"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],pS.prototype,"onDomChange",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],pS.prototype,"onDataChanged",null);_.A([_.q({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],pS);
_.m(pS,"ytd-gaming-account-link-setting-renderer",function(){if(N_p!==void 0)return N_p;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return N_p=R},{mode:1});var T_P;var oqo;var tb=function(){var R=_.W.apply(this,arguments)||this;R.isHeader=!1;R.getEndpointForm=function(){return TZ8(R.data)};
return R};
_.O(tb,_.W);_.J=tb.prototype;_.J.triggerHintActions=function(){var R=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var y=_.h_(R.hostElement,"yt-get-opened-popups-action");!(y&&y.length===1?y[0]:[]).some(function(u){u=u.openPopupAction.popupType;return u==="SURVEY"||u==="MEALBAR"||u==="HINT"})&&R.data.hintActions&&R.guideOpened&&(_.wr(R.hostElement,R.data.hintActions,R.hostElement),R.data.hintActions=void 0)})};
_.J.getBadgeIconType=function(R){return R&&R.liveBroadcasting?"live":null};
_.J.onDown=function(){this.interaction.triggerDown()};
_.J.onUp=function(){this.interaction.triggerUp()};
_.J.onTap=function(R){if(this.data.serviceEndpoint){var y;_.f("shorts_controller_retrieve_seedless_sequence_v2")&&((y=_.e(this.data.serviceEndpoint,_.PV))==null?void 0:y.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):NZI(this.data.serviceEndpoint,this);R.preventDefault()}else this.data.navigationEndpoint&&!_.JF(_.u8(R),this.hostElement,["A".toString()])&&_.Ko(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.J.computeActive=function(R,y){if(!R)return!1;var u=R.navigationEndpoint;R=R.serviceEndpoint;if(!u&&!R||!y)return!1;if(u){R=(R=_.Zj(y))&&["subscriptions","filteredsubscriptions"].includes(R);if(_.e(u,_.HV)&&_.e(y,_.HV)&&!R){var v=_.e(u,_.HV).browseId;y=_.e(y,_.HV).browseId;return v!==void 0&&y!==void 0&&(v===y||v==="VLWL"&&y==="FEwatch_later"||v==="FEwatch_later"&&y==="VLWL")}var Q;u=(Q=_.e(u.commandMetadata,_.QL))==null?void 0:Q.url;y=(v=_.e(y.commandMetadata,_.QL))==null?void 0:v.url;return!(!u||
!y||u!==y&&u!==_.Fq(y))}return this.isActiveShortsTab(R,y)};
_.J.isActiveShortsTab=function(R,y){y=!!_.e(y,_.PV)||!!_.e(y,_.t4);return(!!_.e(R,_.PV)||!!_.e(R,_.t4))&&y};
_.J.computeIsPrimary=function(R){return!!R};
_.RR.Object.defineProperties(tb.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}}});
tb.prototype.onTap=tb.prototype.onTap;tb.prototype.onUp=tb.prototype.onUp;tb.prototype.onDown=tb.prototype.onDown;tb.prototype.triggerHintActions=tb.prototype.triggerHintActions;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],tb.prototype,"componentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],tb.prototype,"rendererBehavior",void 0);_.A([_.n(_.VE.YtTaskEmitterBehavior),_.p("design:type",Object)],tb.prototype,"taskEmitterBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],tb.prototype,"activeEndpoint",void 0);_.A([_.r(),_.p("design:type",Object)],tb.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Boolean)],tb.prototype,"guideOpened",void 0);_.A([_.r(),_.p("design:type",String)],tb.prototype,"type",void 0);_.A([_.O7("yt-interaction"),_.p("design:type",Object)],tb.prototype,"interaction",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],tb.prototype,"isHeader",void 0);
_.A([_.r({reflectToAttribute:!0}),_.G("data","activeEndpoint"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],tb.prototype,"active",null);_.A([_.r({reflectToAttribute:!0}),_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],tb.prototype,"isPrimary",null);_.A([_.r({reflectToAttribute:!0}),_.G("data.count","data.presentationStyle","data.badges.*"),_.p("design:type",String),_.p("design:paramtypes",[])],tb.prototype,"lineEndStyle",null);
_.A([_.G("lineEndStyle"),_.p("design:type",Object),_.p("design:paramtypes",[])],tb.prototype,"ariaLabel",null);_.A([_.e0("data.hintActions","guideOpened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tb.prototype,"triggerHintActions",null);_.A([_.fu("down"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tb.prototype,"onDown",null);
_.A([_.fu("up"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tb.prototype,"onUp",null);_.A([_.fu("tap"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],tb.prototype,"onTap",null);_.A([_.q({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],tb);
_.m(tb,"ytd-guide-entry-renderer",function(){if(oqo!==void 0)return oqo;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return oqo=R},{mode:1});var cf=function(){var R=_.W.apply(this,arguments)||this;R.userToggled=!1;return R};
_.O(cf,_.W);_.J=cf.prototype;_.J.getItemsPath=function(){return"data.expandableItems"};
_.J.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.J.onExpanderItemTapped=function(R){var y=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.f("kevlar_guide_expandable_items_killswitch")&&_.gn(this,function(){_.Y2(y.expandableItems)});
R.preventDefault()};
_.J.onCollapserItemTapped=function(R){var y=this;this._setExpanded(!1);this.userToggled=!0;R.preventDefault();this.expandableItems&&!_.f("kevlar_guide_collapsible_items_killswitch")&&_.gn(this,function(){_.S_(y.hostElement)})};
_.J.observeActiveEndpoint=function(){for(var R=this.activeEndpoint,y=this.data,u=this.expandableItems.children,v=0,Q=u.length;v<Q;v++)u[v].activeEndpoint=R;y&&y.autoExpandCommand&&R&&!this.userToggled&&(u=this.data.autoExpandCommand,y=!(!_.e(u,_.HV)||!_.e(R,_.HV)||_.e(u,_.HV).browseId!==_.e(R,_.HV).browseId),R=this.get("commandMetadata.webCommandMetadata.url",R),u=this.get("commandMetadata.webCommandMetadata.url",u),y=y||!!(R&&u&&R.includes(u)),this._setExpanded(y),y&&this.ytLazyListBehavior.fillRemainingListItems())};
cf.prototype.observeActiveEndpoint=cf.prototype.observeActiveEndpoint;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],cf.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],cf.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.K_.YtLazyListBehavior),_.p("design:type",Object)],cf.prototype,"ytLazyListBehavior",void 0);_.A([_.O7("#expandable-items"),_.p("design:type",HTMLElement)],cf.prototype,"expandableItems",void 0);
_.A([_.r(),_.p("design:type",Object)],cf.prototype,"data",void 0);_.A([_.r({readOnly:!0,reflectToAttribute:!0}),_.p("design:type",Boolean)],cf.prototype,"expanded",void 0);_.A([_.r({value:0}),_.p("design:type",Number)],cf.prototype,"initialCount",void 0);_.A([_.r(),_.p("design:type",Object)],cf.prototype,"activeEndpoint",void 0);_.A([_.e0("data","activeEndpoint","canShowMore"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],cf.prototype,"observeActiveEndpoint",null);
_.A([_.q({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],cf);
_.m(cf,"ytd-guide-collapsible-entry-renderer",function(){if(T_P!==void 0)return T_P;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return T_P=R},{mode:_.TN("kevlar_poly_si_batch_j079")?1:2});var x6m;var B_P;var aj=function(){var R=_.W.apply(this,arguments)||this;R.allVideosCount=0;R.renderGuideEntry=!1;return R};
_.O(aj,_.W);aj.prototype.observeRenderEntry=function(){var R;this.renderGuideEntry=!((R=this.data)==null||!R.alwaysShow)||!!this.allVideosCount};
aj.prototype.observeRenderEntry=aj.prototype.observeRenderEntry;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],aj.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],aj.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],aj.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],aj.prototype,"activeEndpoint",void 0);_.A([_.r({selector:_.prv}),_.p("design:type",Object)],aj.prototype,"allVideosCount",void 0);
_.A([_.r(),_.p("design:type",Object)],aj.prototype,"renderGuideEntry",void 0);_.A([_.GJ("allVideosCount","data.alwaysShow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],aj.prototype,"observeRenderEntry",null);_.A([_.q({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],aj);
_.m(aj,"ytd-guide-downloads-entry-renderer",function(){if(B_P===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);B_P=R}R=B_P;return R},{mode:1});var SP=function(){var R=_.W.apply(this,arguments)||this;R.youtab=_.f("web_enable_youtab");R.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return R};
_.O(SP,_.W);_.J=SP.prototype;_.J.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]]"}}}}}};
_.J.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var R=this.sectionItems.children,y=0,u=R.length;y<u;y++)R[y].activeEndpoint=this.activeEndpoint}};
_.J.handleAddToGuideSectionAction=function(R){var y=_.e(R,qxp);if(y&&this.data&&(R=y.items,y=y.handlerData,R&&y&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(y)>-1)){y=0;for(var u=R.length;y<u;y++)R[y].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,R[y])}};
_.J.handleRemoveFromGuideSectionAction=function(R){var y=_.e(R,X1V);y&&this.data&&(R=y.guideEntryId,y=y.handlerData,R&&y&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(y)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(R,this.data.sectionItems),this.removeFromCollapsedSection(R,this.data.sectionItems)))};
_.J.removeFromExpandedSection=function(R,y){R=this.getEntryIndexMatchingId(R,y);R!==-1&&this.splice("data.sectionItems",R,1)};
_.J.removeFromCollapsedSection=function(R,y){var u=y.findIndex(function(v){return!!_.e(v,yX7)});
u&&u!==-1&&y[u]&&_.e(y[u],yX7)&&(y=_.e(y[u],yX7).expandableItems)&&(R=this.getEntryIndexMatchingId(R,y),R!==-1&&this.splice("data.sectionItems."+u+".guideCollapsibleEntryRenderer.expandableItems",R,1))};
_.J.getEntryIndexMatchingId=function(R,y){var u=this;return y.findIndex(function(v){return u.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",v)===R})};
SP.prototype.activeEndpointChanged=SP.prototype.activeEndpointChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],SP.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],SP.prototype,"actionHandlerBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],SP.prototype,"ytRendererstamperBehavior",void 0);_.A([_.O7("#section-items"),_.p("design:type",HTMLDivElement)],SP.prototype,"sectionItems",void 0);
_.A([_.O7("#header-entry"),_.p("design:type",Object)],SP.prototype,"headerEntry",void 0);_.A([_.r(),_.p("design:type",Object)],SP.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],SP.prototype,"activeEndpoint",void 0);_.A([_.r(),_.p("design:type",Object)],SP.prototype,"youtab",void 0);_.A([_.e0("activeEndpoint"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],SP.prototype,"activeEndpointChanged",null);
_.A([_.q({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],SP);
_.m(SP,"ytd-guide-collapsible-section-entry-renderer",function(){if(x6m===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);x6m=R}R=x6m;return R},{mode:1});var fW7;var ePV;var Y4=function(){var R=_.W.apply(this,arguments)||this;R.modernTypography=_.f("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};
_.O(Y4,_.W);_.J=Y4.prototype;
_.J.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}}}}};
_.J.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var R=_.h_(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);R&&R.length===1&&R[0]&&_.h_(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.J.handleResetChannelUnreadCountCommand=function(R){var y;(R=(y=_.e(R,An8))==null?void 0:y.channelId)&&this.data&&this.data.items&&(y=this.getPathToEntryMatchingId(R))&&(this.set(y+".guideEntryRenderer.count",0),this.set(y+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.J.handleResetSubscriptionsUnreadDotCommand=function(R){var y,u=(y=_.e(R,DLa))==null?void 0:y.targetId,v;u&&(v=this.data)!=null&&v.items&&(R=this.data.items.findIndex(function(Q){var M;return((M=Q.guideEntryRenderer)==null?void 0:M.targetId)===u}),R<0||this.set("data.items."+R+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.J.getPathToEntryMatchingId=function(R){if(this.data&&this.data.items){var y=this.getEntryIndexMatchingId(R,this.data.items);if(y>-1)return"data.items."+y;for(var u=0;u<this.data.items.length;u++)if(y=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[u]))if(y=this.getEntryIndexMatchingId(R,y),y>-1)return"data.items."+u+".guideCollapsibleEntryRenderer.expandableItems."+y}};
_.J.handleAddToGuideSectionAction=function(R){var y=this;if(_.e(R,qxp)){var u=_.e(R,qxp).items;R=_.e(R,qxp).handlerData;var v,Q;if(u&&R&&((v=this.data)==null?void 0:(Q=v.handlerDatas)==null?void 0:Q.indexOf(R))>-1){u=u.filter(function(K){return(K=y.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",K))&&!y.isGuideItemPresent(K)});
var M;if(R==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((M=this.data)==null?0:M.items)&&(v=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),v>-1)){this.splice.apply(this,["data.items",v+1,0].concat(_.P$(u)));return}this.unshift.apply(this,["data.items"].concat(_.P$(u)))}}};
_.J.isGuideItemPresent=function(R){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(R,this.data.items)!==-1)return!0;var y=this.data.items.find(function(u){return!!u.guideCollapsibleEntryRenderer});
if((y==null?0:y.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(R,y.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.J.getEntryIndexMatchingId=function(R,y){var u=this;return y.findIndex(function(v){return u.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",v)===R})};
_.J.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(R,y){var u=this;return y.findIndex(function(v){return u.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",v)===R})};
_.J.handleRemoveFromGuideSectionAction=function(R){if(_.e(R,X1V)){var y=_.e(R,X1V).guideEntryId;R=_.e(R,X1V).handlerData;var u,v;y&&R&&((u=this.data)==null?void 0:(v=u.handlerDatas)==null?void 0:v.indexOf(R))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(y,this.data.items),this.removeFromCollapsedSection(y,this.data.items))}};
_.J.removeFromExpandedSection=function(R,y){R=this.getEntryIndexMatchingId(R,y);R!==-1&&this.splice("data.items",R,1)};
_.J.removeFromCollapsedSection=function(R,y){var u=y.findIndex(function(v){return!!v.guideCollapsibleEntryRenderer});
u!==-1&&(y=y[u].guideCollapsibleEntryRenderer.expandableItems)&&(R=this.getEntryIndexMatchingId(R,y),R!==-1&&this.splice("data.items."+u+".guideCollapsibleEntryRenderer.expandableItems",R,1))};
_.J.activeEndpointChanged=function(){for(var R=_.hw(this.hostElement).querySelector("#items").children,y=0,u=R.length;y<u;y++)R[y].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.J.guideOpenedChanged=function(){for(var R=_.hw(this.hostElement).querySelector("#items").children,y=0,u=R.length;y<u;y++)R[y].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
Y4.prototype.guideOpenedChanged=Y4.prototype.guideOpenedChanged;Y4.prototype.activeEndpointChanged=Y4.prototype.activeEndpointChanged;Y4.prototype.persistentGuideChanged=Y4.prototype.persistentGuideChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Y4.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Y4.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Y4.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.K_.YtLazyListBehavior),_.p("design:type",Object)],Y4.prototype,"ytLazyListBehavior",void 0);_.A([_.n(_.L6.YtdGuideStateAwareBehavior),_.p("design:type",Object)],Y4.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Y4.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Y4.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Y4.prototype,"modernTypography",void 0);_.A([_.r(),_.p("design:type",String)],Y4.prototype,"type",void 0);_.A([_.r({value:20}),_.p("design:type",Number)],Y4.prototype,"initialCount",void 0);_.A([_.r({value:10}),_.p("design:type",Number)],Y4.prototype,"targetFramerate",void 0);_.A([_.r({value:!0}),_.p("design:type",Boolean)],Y4.prototype,"autoFill",void 0);_.A([_.r({value:50}),_.p("design:type",Number)],Y4.prototype,"renderDelay",void 0);
_.A([_.e0("guidePersistentAndVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Y4.prototype,"persistentGuideChanged",null);_.A([_.GJ("activeEndpoint"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Y4.prototype,"activeEndpointChanged",null);_.A([_.GJ("guideOpened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Y4.prototype,"guideOpenedChanged",null);
_.A([_.q({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],Y4);
_.m(Y4,"ytd-guide-section-renderer",function(){if(ePV!==void 0)return ePV;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return ePV=R},{mode:_.TN("kevlar_poly_si_batch_j073")?1:2});var lWZ;var LS=function(){return _.W.apply(this,arguments)||this};
_.O(LS,_.W);_.RR.Object.defineProperties(LS.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],LS.prototype,"rendererBehaviors",void 0);_.A([_.r(),_.p("design:type",Object)],LS.prototype,"data",void 0);_.A([_.r(),_.G("data.signInButton.buttonRenderer.style"),_.p("design:type",Object),_.p("design:paramtypes",[])],LS.prototype,"alignByText",null);_.A([_.q({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],LS);
_.m(LS,"ytd-guide-signin-promo-renderer",function(){if(lWZ===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);lWZ=R}R=lWZ;return R},{mode:1});var sS=function(){var R=_.W.apply(this,arguments)||this;R.showFooter=!1;return R};
_.O(sS,_.W);sS.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}}}}};
sS.prototype.attached=function(){var R=this,y;return _.I(function(u){if(u.nextAddress==1){y=_.ua().resolve(_.yN(_.YC));if(!y)return u.jumpTo(0);y.setGuideData(R.hostElement);return u.yield(0,3)}R.ytLazyListBehavior.initialCount=2;return u.return()})};
sS.prototype.onMouseExit=function(){_.f("web_guide_hover_expansion")&&_.h_(this.hostElement,"yt-guide-mouseleaved",[])};
sS.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
sS.prototype.dataChanged=sS.prototype.dataChanged;sS.prototype.onMouseExit=sS.prototype.onMouseExit;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],sS.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],sS.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.K_.YtLazyListBehavior),_.p("design:type",Object)],sS.prototype,"ytLazyListBehavior",void 0);
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],sS.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],sS.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],sS.prototype,"showFooter",void 0);_.A([_.r({value:!0}),_.p("design:type",Boolean)],sS.prototype,"autoFill",void 0);_.A([_.fu("mouseleave"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sS.prototype,"onMouseExit",null);
_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],sS.prototype,"dataChanged",null);_.A([_.q({is:"ytd-guide-renderer",disableElementRegistration:!0})],sS);
_.m(sS,"ytd-guide-renderer",function(){if(fW7!==void 0)return fW7;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return fW7=R},{mode:_.TN("kevlar_poly_si_batch_j073")?1:2});var OsI;var zk=function(){var R=_.W.apply(this,arguments)||this;R.systemIcons=_.f("kevlar_system_icons");R.frostedGlass=_.f("web_frosted_glass");R.getEndpointForm=function(){return TZ8(R.data)};
return R};
_.O(zk,_.W);_.J=zk.prototype;_.J.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.J.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.u7(this.data.formattedTitle))};
_.J.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.J.onDown=function(){this.interaction.triggerDown()};
_.J.onUp=function(){this.interaction.triggerUp()};
_.J.onTap=function(R){if(this.data.serviceEndpoint){var y;_.f("shorts_controller_retrieve_seedless_sequence_v2")&&((y=_.e(this.data.serviceEndpoint,_.PV))==null?void 0:y.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):NZI(this.data.serviceEndpoint,this);R.preventDefault()}else{var u;((u=this.data)==null?0:u.navigationEndpoint)&&!_.JF(_.u8(R),this.hostElement,["A".toString()])&&_.Ko(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.J.computeActive=function(R,y){if(!R)return!1;var u=R.navigationEndpoint;R=R.serviceEndpoint;if(!u&&!R||!y)return!1;if(u){R=_.e(u,_.HV);var v=_.e(y,_.HV);if(R&&v)return R.browseId===v.browseId&&R.params===v.params;var Q;u=(Q=_.e(u.commandMetadata,_.QL))==null?void 0:Q.url;var M;y=(M=_.e(y.commandMetadata,_.QL))==null?void 0:M.url;return!(!u||!y||u!==y&&u!==_.Fq(y))}return this.isActiveShortsTab(R,y)};
_.J.isActiveShortsTab=function(R,y){y=!!_.e(y,_.PV)||!!_.e(y,_.t4);return(!!_.e(R,_.PV)||!!_.e(R,_.t4))&&y};
_.J.computeTitle=function(R,y){return y?"":_.u7(R)};
_.RR.Object.defineProperties(zk.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
zk.prototype.onTap=zk.prototype.onTap;zk.prototype.onUp=zk.prototype.onUp;zk.prototype.onDown=zk.prototype.onDown;zk.prototype.onActiveStateChange=zk.prototype.onActiveStateChange;zk.prototype.dataChanged=zk.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],zk.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],zk.prototype,"ytComponentBehavior",void 0);
_.A([_.n(_.mf),_.p("design:type",Object)],zk.prototype,"ironButtonState",void 0);_.A([_.r(),_.p("design:type",Object)],zk.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],zk.prototype,"activeEndpoint",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],zk.prototype,"noLabels",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.p("design:type",Boolean)],zk.prototype,"isActive",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],zk.prototype,"systemIcons",void 0);_.A([_.O7("yt-interaction"),_.p("design:type",Object)],zk.prototype,"interaction",void 0);_.A([_.G("isActive"),_.p("design:type",Object),_.p("design:paramtypes",[])],zk.prototype,"ariaSelected",null);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],zk.prototype,"frostedGlass",void 0);
_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zk.prototype,"dataChanged",null);_.A([_.e0("isActive"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zk.prototype,"onActiveStateChange",null);_.A([_.fu("down"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zk.prototype,"onDown",null);
_.A([_.fu("up"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],zk.prototype,"onUp",null);_.A([_.fu("tap"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],zk.prototype,"onTap",null);_.A([_.q({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],zk);
_.m(zk,"ytd-mini-guide-entry-renderer",function(){if(OsI!==void 0)return OsI;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return OsI=R},{mode:_.TN("kevlar_poly_si_batch_j063")?1:2});var Zsa;var gA=function(){var R=_.W.apply(this,arguments)||this;R.allVideosCount=0;R.noLabels=_.f("kevlar_mini_guide_no_labels");R.frostedGlass=_.f("web_frosted_glass");return R};
_.O(gA,_.W);_.J=gA.prototype;_.J.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.J.onMouseEnter=function(){_.f("web_guide_hover_expansion")&&_.h_(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.J.visibleChanged=function(){if(this.visible&&!this.data){var R=_.ua().resolve(_.yN(_.YC));R&&R.setGuideData(this.hostElement)}};
_.J.dataChanged=function(){var R=[],y;if((y=this.data)!=null&&y.items){y=_.V(this.data.items);for(var u=y.next();!u.done;u=y.next()){u=u.value;var v=void 0;if((v=u.guideSectionRenderer)==null?0:v.items)for(v=void 0,u=_.V((v=u.guideSectionRenderer)==null?void 0:v.items),v=u.next();!v.done;v=u.next())if(v=v.value,v.guideEntryRenderer)v=v.guideEntryRenderer,v.isPrimary&&R.push({guideEntryRenderer:v});else if(v.guideCollapsibleSectionEntryRenderer){var Q=void 0;((Q=_.e(v.guideCollapsibleSectionEntryRenderer.headerEntry,
i4))==null?0:Q.isPrimary)&&R.push({guideEntryRenderer:_.e(v.guideCollapsibleSectionEntryRenderer.headerEntry,i4)});if(v=v.guideCollapsibleSectionEntryRenderer.sectionItems)for(v=_.V(v),Q=v.next();!Q.done;Q=v.next()){var M=Q.value;Q=_.e(M,u2H);var K=void 0;((K=_.e(M,i4))==null?0:K.isPrimary)?R.push({guideEntryRenderer:_.e(M,i4)}):Q&&(M=void 0,_.e((M=Q)==null?void 0:M.entryRenderer,i4)&&(Q.alwaysShow||this.allVideosCount)&&R.push({guideEntryRenderer:_.e(Q.entryRenderer,i4)}))}}}}this.miniGuideItems=
R};
_.J.activeEndpointChanged=function(){for(var R=this.items.children,y=0;y<R.length;y++)R[y].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
gA.prototype.activeEndpointChanged=gA.prototype.activeEndpointChanged;gA.prototype.dataChanged=gA.prototype.dataChanged;gA.prototype.visibleChanged=gA.prototype.visibleChanged;gA.prototype.onMouseEnter=gA.prototype.onMouseEnter;_.A([_.n(_.p6),_.p("design:type",Object)],gA.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],gA.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],gA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.L6.YtdGuideStateAwareBehavior),_.p("design:type",Object)],gA.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],gA.prototype,"ytComponentBehavior",void 0);_.A([_.O7("#items"),_.p("design:type",Object)],gA.prototype,"items",void 0);_.A([_.r(),_.p("design:type",Object)],gA.prototype,"data",void 0);
_.A([_.r(),_.p("design:type",Boolean)],gA.prototype,"visible",void 0);_.A([_.r(),_.p("design:type",Object)],gA.prototype,"miniGuideItems",void 0);_.A([_.r({selector:_.prv}),_.p("design:type",Object)],gA.prototype,"allVideosCount",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],gA.prototype,"noLabels",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],gA.prototype,"frostedGlass",void 0);
_.A([_.fu("mouseenter"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gA.prototype,"onMouseEnter",null);_.A([_.GJ("visible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gA.prototype,"visibleChanged",null);_.A([_.GJ("data","allVideosCount"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gA.prototype,"dataChanged",null);
_.A([_.GJ("activeEndpoint"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],gA.prototype,"activeEndpointChanged",null);_.A([_.q({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],gA);
_.m(gA,"ytd-mini-guide-renderer",function(){if(Zsa===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);Zsa=R}R=Zsa;return R},{mode:1});var Hsp;var nq7=/^[\x00-\x7F]+$/,CS=function(){var R=_.W.apply(this,arguments)||this;R.darkerDarkTheme=_.f("web_darker_dark_theme");return R};
_.O(CS,_.W);_.RR.Object.defineProperties(CS.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var R,y=_.u7((R=this.data)==null?void 0:R.handle);if(y)return _.ye("@"+y)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var R=_.u7(this.displayHandle),y,u=_.u7((y=this.data)==null?void 0:y.handleUrl);if(R&&u)return _.ye(u+R)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var R=_.u7(this.displayHandle);if(R&&!nq7.test(R)){var y;return(y=this.data)==null?void 0:y.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var R=_.u7(this.displayHandleUrl),y,u=_.u7((y=this.data)==null?void 0:y.urlInfoText);if(R&&u)return _.ye(u+" "+R)}}});
_.A([_.r(),_.p("design:type",Object)],CS.prototype,"data",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],CS.prototype,"displayHandle",null);_.A([_.G("displayHandle"),_.p("design:type",Object),_.p("design:paramtypes",[])],CS.prototype,"displayHandleUrl",null);_.A([_.G("displayHandle"),_.p("design:type",Object),_.p("design:paramtypes",[])],CS.prototype,"warningText",null);
_.A([_.G("displayHandleUrl"),_.p("design:type",Object),_.p("design:paramtypes",[])],CS.prototype,"urlInfoTextWithUrl",null);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],CS.prototype,"darkerDarkTheme",void 0);_.A([_.q({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],CS);
_.m(CS,"ytd-handles-claiming-confirm-dialog-content",function(){if(Hsp!==void 0)return Hsp;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Hsp=R},{mode:1});var G4g;var Ro=function(){var R=_.W.apply(this,arguments)||this;R.okButtonOverride={style:"mono",type:"outline",size:"M"};return R};
_.O(Ro,_.W);Ro.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ro.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Ro.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Ro.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Ro.prototype,"okButtonOverride",void 0);_.A([_.r(),_.p("design:type",Object)],Ro.prototype,"data",void 0);_.A([_.q({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],Ro);
_.m(Ro,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(G4g!==void 0)return G4g;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return G4g=R},{mode:1});var rKa;var PZp=/^[\x00-\x7F]+$/,y1=function(){var R=_.W.apply(this,arguments)||this;R.isLoading=!1;R.darkerDarkTheme=_.f("web_darker_dark_theme");return R};
_.O(y1,_.W);y1.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var R;this.selectedHandle=(R=this.handleInput)==null?void 0:R.value;this.onSelectedHandleChanged(this.selectedHandle);_.h_(this.hostElement,"yt-refit-popups-action")}};
_.RR.Object.defineProperties(y1.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 _.ye("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.ye(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!PZp.test(this.selectedHandle)){var R;return(R=this.data)==null?void 0:R.warningText}}}});
_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],y1.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],y1.prototype,"data",void 0);_.A([_.r(),_.p("design:type",String)],y1.prototype,"selectedHandle",void 0);_.A([_.r(),_.p("design:type",Object)],y1.prototype,"isLoading",void 0);_.A([_.r(),_.p("design:type",Function)],y1.prototype,"onSelectedHandleChanged",void 0);_.A([_.O7("#channel-handle-input"),_.p("design:type",Object)],y1.prototype,"handleInput",void 0);
_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],y1.prototype,"handleUrlPrefix",null);_.A([_.G("selectedHandle"),_.p("design:type",Object),_.p("design:paramtypes",[])],y1.prototype,"displayHandle",null);_.A([_.G("selectedHandle"),_.p("design:type",Object),_.p("design:paramtypes",[])],y1.prototype,"displayHandleUrl",null);_.A([_.G("selectedHandle"),_.p("design:type",Object),_.p("design:paramtypes",[])],y1.prototype,"warningText",null);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],y1.prototype,"darkerDarkTheme",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],y1.prototype,"ytRendererBehavior",void 0);_.A([_.q({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],y1);
_.m(y1,"ytd-handles-claiming-edit-dialog-content",function(){if(rKa!==void 0)return rKa;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return rKa=R},{mode:1});var W7K;var u9=function(){var R=_.W.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(y){R.selectedHandle=y};
return R};
_.O(u9,_.W);_.J=u9.prototype;_.J.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.J.onDataChanged=function(){var R,y;this.selectedHandle=(y=_.e((R=this.data)==null?void 0:R.inputField,dLI))==null?void 0:y.handle};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.onCancel=function(){this.selectedHandle="";_.Ik(this.hostElement,"yt-close-popup-action",[this.is])};
_.J.onSelectHandle=function(){var R=this;if(this.selectedHandle!==void 0){var y;((y=this.data)==null?void 0:y.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(u,v){if(v.newHandleUpdateStatus!==void 0&&v.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&v.newHandleUpdateStatus.errorMessage)_.JG(R.hostElement,_.u7(v.newHandleUpdateStatus.errorMessage)),
R.isLoading=!1;else{var Q;if((Q=R.data)==null?0:Q.onChannelUpdateSuccess){u=R.data.onChannelUpdateSuccess;var M,K;if(v=(M=_.e(u,_.kW))==null?void 0:(K=M.popup)==null?void 0:K.handlesClaimingConfirmDialogRenderer)v.handle=_.ye(R.selectedHandle);R.ytComponentBehavior.resolveCommand(u);_.Ik(R.hostElement,"yt-close-popup-action",[R.is])}else R.isLoading=!1}},
onServerError:function(){var u;R.content&&((u=R.content)==null?0:u.handleInput)&&R.content.handleInput.validate();R.isLoading=!1;_.JG(R.hostElement,_.fo("TRY_AGAIN_LATER"))}}}))}};
_.J.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
u9.prototype.onDataChanged=u9.prototype.onDataChanged;u9.prototype.onSelectedHandleChanged=u9.prototype.onSelectedHandleChanged;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],u9.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],u9.prototype,"actionButtonOverride",void 0);_.A([_.r(),_.p("design:type",Object)],u9.prototype,"cancelButtonOverride",void 0);_.A([_.r(),_.p("design:type",Object)],u9.prototype,"data",void 0);
_.A([_.r(),_.p("design:type",String)],u9.prototype,"selectedHandle",void 0);_.A([_.r(),_.p("design:type",Object)],u9.prototype,"selectButtonDisabled",void 0);_.A([_.r(),_.p("design:type",Object)],u9.prototype,"isLoading",void 0);_.A([_.r(),_.p("design:type",Object)],u9.prototype,"hasSelectedHandleEventListener",void 0);_.A([_.r(),_.p("design:type",Object)],u9.prototype,"handleInput",void 0);
_.A([_.e0("selectedHandle"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],u9.prototype,"onSelectedHandleChanged",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],u9.prototype,"onDataChanged",null);_.A([_.O7("ytd-handles-claiming-edit-dialog-content"),_.p("design:type",Object)],u9.prototype,"content",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],u9.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],u9.prototype,"ytRendererstamperBehavior",void 0);_.A([_.q({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],u9);
_.m(u9,"ytd-handles-claiming-edit-dialog-renderer",function(){if(W7K!==void 0)return W7K;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return W7K=R},{mode:1});var d6a;var vP=function(){return _.W.apply(this,arguments)||this};
_.O(vP,_.W);_.RR.Object.defineProperties(vP.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.data)==null?0:R.handle){var y;return _.ye("@"+_.u7((y=this.data)==null?void 0:y.handle))}}}});
_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],vP.prototype,"formattedHandle",null);_.A([_.r(),_.p("design:type",Object)],vP.prototype,"data",void 0);_.A([_.q({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],vP);
_.m(vP,"ytd-handles-claiming-radio-option-renderer",function(){if(d6a!==void 0)return d6a;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return d6a=R},{mode:1});var U6P;var k4M=/^[\x00-\x7F]+$/,Q1=function(){var R=_.W.apply(this,arguments)||this;R.initialRadioIndex="-1";R.isLoading=!1;R.darkerDarkTheme=_.f("web_darker_dark_theme");R.maybeSubmitFeedback=function(){R.feedbackSurveyRenderer.submitSurvey()};
return R};
_.O(Q1,_.W);Q1.prototype.updateSelectedHandleIndexFromBinding=function(R){this.selectedRadioIndex=+R.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(R)};
Q1.prototype.selectedHandleChanged=function(R){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var y;this.selectedHandle=(y=this.handleInput)==null?void 0:y.value;this.onSelectedHandleChanged(R)}};
_.RR.Object.defineProperties(Q1.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 _.ye("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.ye(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!k4M.test(this.selectedHandle)){var R;return(R=this.data)==null?void 0:R.warningText}}}});
_.A([_.r(),_.p("design:type",Object)],Q1.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],Q1.prototype,"initialRadioIndex",void 0);_.A([_.r(),_.p("design:type",Number)],Q1.prototype,"selectedRadioIndex",void 0);_.A([_.r(),_.p("design:type",String)],Q1.prototype,"selectedHandle",void 0);_.A([_.r(),_.p("design:type",Object)],Q1.prototype,"isLoading",void 0);_.A([_.r(),_.p("design:type",Function)],Q1.prototype,"onSelectedHandleChanged",void 0);
_.A([_.r(),_.p("design:type",Function)],Q1.prototype,"onSelectedRadioIndexChanged",void 0);_.A([_.O7("#channel-handle-input"),_.p("design:type",Object)],Q1.prototype,"handleInput",void 0);_.A([_.O7("ytd-feedback-survey-renderer"),_.p("design:type",Object)],Q1.prototype,"feedbackSurveyRenderer",void 0);_.A([_.G("data"),_.p("design:type",Number),_.p("design:paramtypes",[])],Q1.prototype,"radioButtonLength",null);
_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],Q1.prototype,"handleUrlPrefix",null);_.A([_.G("selectedHandle"),_.p("design:type",Object),_.p("design:paramtypes",[])],Q1.prototype,"displayHandle",null);_.A([_.G("selectedHandle"),_.p("design:type",Object),_.p("design:paramtypes",[])],Q1.prototype,"displayHandleUrl",null);_.A([_.G("selectedHandle"),_.p("design:type",Object),_.p("design:paramtypes",[])],Q1.prototype,"warningText",null);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Q1.prototype,"darkerDarkTheme",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Q1.prototype,"ytRendererBehavior",void 0);_.A([_.q({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],Q1);
_.m(Q1,"ytd-handles-claiming-select-dialog-content",function(){if(U6P!==void 0)return U6P;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return U6P=R},{mode:1});var Eqp;var jR=function(){var R=_.W.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(y){R.selectedRadioIndex=Number(y.detail.value)};
R.selectedHandleChanged=function(y){R.selectedHandle=y.detail.value};
R.darkerDarkTheme=_.f("web_darker_dark_theme");return R};
_.O(jR,_.W);_.J=jR.prototype;_.J.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.J.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.J.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.h_(this.hostElement,"yt-refit-popups-action")};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.Ik(this.hostElement,"yt-close-popup-action",[this.is])};
_.J.onSelectHandle=function(){var R=this;if(this.selectedHandle!==void 0){var y;((y=this.data)==null?void 0:y.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(u,v){if(v.newHandleUpdateStatus!==void 0&&v.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&v.newHandleUpdateStatus.errorMessage)_.JG(R.hostElement,_.u7(v.newHandleUpdateStatus.errorMessage)),
R.isLoading=!1;else{var Q;if((Q=R.data)==null?0:Q.onChannelUpdateSuccess){u=R.data.onChannelUpdateSuccess;v=_.e(u,_.kW);var M;if(v==null?0:(M=v.popup)==null?0:M.handlesClaimingConfirmDialogRenderer)v.popup.handlesClaimingConfirmDialogRenderer.handle=_.ye(R.selectedHandle);R.ytComponentBehavior.resolveCommand(u);_.Ik(R.hostElement,"yt-close-popup-action",[R.is])}else R.isLoading=!1}},
onServerError:function(){if(R.selectedRadioIndex===R.radioButtonLength){var u;R.content&&((u=R.content)==null?0:u.handleInput)&&R.content.handleInput.validate()}R.isLoading=!1;_.JG(R.hostElement,_.fo("TRY_AGAIN_LATER"))}}}))}};
_.J.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var R,y;this.selectedHandle=(R=this.content)==null?void 0:(y=R.handleInput)==null?void 0:y.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)};
_.J.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.J.getRadioItem=function(R){if(this.radioButtonLength>R&&R>=0)return _.e(this.data.radioButton[R],L$M)};
_.RR.Object.defineProperties(jR.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var R;return(((R=this.data)==null?void 0:R.radioButton)||[]).length}}});
jR.prototype.onSelectedHandleChanged=jR.prototype.onSelectedHandleChanged;jR.prototype.onSelectedHandleIndexChanged=jR.prototype.onSelectedHandleIndexChanged;jR.prototype.onDataChanged=jR.prototype.onDataChanged;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],jR.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],jR.prototype,"actionButtonOverride",void 0);_.A([_.r(),_.p("design:type",Object)],jR.prototype,"cancelButtonOverride",void 0);
_.A([_.r(),_.p("design:type",Object)],jR.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],jR.prototype,"initialRadioIndex",void 0);_.A([_.r(),_.p("design:type",Number)],jR.prototype,"selectedRadioIndex",void 0);_.A([_.r(),_.p("design:type",String)],jR.prototype,"selectedHandle",void 0);_.A([_.r(),_.p("design:type",Object)],jR.prototype,"selectButtonDisabled",void 0);_.A([_.r(),_.p("design:type",Object)],jR.prototype,"isLoading",void 0);
_.A([_.G("data"),_.p("design:type",Number),_.p("design:paramtypes",[])],jR.prototype,"radioButtonLength",null);_.A([_.O7("ytd-handles-claiming-select-dialog-content"),_.p("design:type",Object)],jR.prototype,"content",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jR.prototype,"onDataChanged",null);
_.A([_.e0("selectedRadioIndex"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jR.prototype,"onSelectedHandleIndexChanged",null);_.A([_.e0("selectedHandle"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],jR.prototype,"onSelectedHandleChanged",null);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],jR.prototype,"darkerDarkTheme",void 0);
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],jR.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],jR.prototype,"ytRendererstamperBehavior",void 0);_.A([_.q({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],jR);
_.m(jR,"ytd-handles-claiming-select-dialog-renderer",function(){if(Eqp!==void 0)return Eqp;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Eqp=R},{mode:1});var $6p;var qUJ;var MK=function(){return _.W.apply(this,arguments)||this};
_.O(MK,_.W);MK.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],MK.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],MK.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],MK.prototype,"data",void 0);_.A([_.q({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],MK);
_.m(MK,"ytd-hotkey-dialog-section-option-renderer",function(){if(qUJ!==void 0)return qUJ;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return qUJ=R},{mode:1});var Xv7;var JC=function(){return _.W.apply(this,arguments)||this};
_.O(JC,_.W);JC.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],JC.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],JC.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],JC.prototype,"data",void 0);_.A([_.q({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],JC);
_.m(JC,"ytd-hotkey-dialog-section-renderer",function(){if(Xv7!==void 0)return Xv7;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return Xv7=R},{mode:1});var V1=function(){var R=_.W.apply(this,arguments)||this;R.darkerDarkTheme=_.f("web_darker_dark_theme");return R};
_.O(V1,_.W);V1.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],V1.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],V1.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],V1.prototype,"darkerDarkTheme",void 0);_.A([_.q({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],V1);
_.m(V1,"ytd-hotkey-dialog-content",function(){if($6p!==void 0)return $6p;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return $6p=R},{mode:1});var m6m;var i9=function(){return _.W.apply(this,arguments)||this};
_.O(i9,_.W);i9.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)};
i9.prototype.onCloseTap=function(){_.Ik(this.hostElement,"yt-close-popup-action")};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],i9.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],i9.prototype,"data",void 0);_.A([_.q({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],i9);
_.m(i9,"ytd-hotkey-dialog-renderer",function(){if(m6m!==void 0)return m6m;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return m6m=R},{mode:1});var AKa;var KO=function(){return _.W.apply(this,arguments)||this};
_.O(KO,_.W);KO.prototype.onYtServiceRequestError=function(){if(this.blocked){var R;var y=(R=this.data)==null?void 0:R.defaultServiceEndpoint}else{var u;y=(u=this.data)==null?void 0:u.toggledServiceEndpoint}var v;(y=(v=_.e(y,_.cxc))==null?void 0:v.onFailureAction)&&this.ytComponentBehavior.resolveCommand(y);this.updateBlockState(!this.blocked)};
KO.prototype.onYtToggleButton=function(R){this.updateBlockState(R.detail.toggled)};
KO.prototype.updateBlockState=function(R){if(R!==this.blocked){var y=this.blockedEntityKey;y&&this.ytdReduxBehavior.dispatch(_.Gw("blockStateEntity",y,{key:y,blocked:R}));this.set("data.isToggled",R)}};
_.RR.Object.defineProperties(KO.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)}}});
KO.prototype.onYtToggleButton=KO.prototype.onYtToggleButton;KO.prototype.onYtServiceRequestError=KO.prototype.onYtServiceRequestError;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],KO.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],KO.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],KO.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],KO.prototype,"blockedEntityKey",void 0);
_.A([_.r({selectorArgs:["blockedEntityKey"],selector:function(R,y){return _.TI(R.entities,"blockStateEntity",y)}}),
_.p("design:type",Object)],KO.prototype,"blockStateEntity",void 0);_.A([_.G("data","blockStateEntity"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],KO.prototype,"blocked",null);_.A([_.fu("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],KO.prototype,"onYtServiceRequestError",null);
_.A([_.fu("yt-toggle-button"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],KO.prototype,"onYtToggleButton",null);_.A([_.q({is:"ytd-block-button",disableElementRegistration:!0})],KO);
_.m(KO,"ytd-block-button",function(){if(AKa!==void 0)return AKa;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return AKa=R},
{mode:1});var D6J;var pvV;var Io=function(){return _.W.apply(this,arguments)||this};
_.O(Io,_.W);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Io.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Io.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Io.prototype,"data",void 0);_.A([_.q({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],Io);
_.m(Io,"ytd-kids-blocklist-picker-item-renderer",function(){if(pvV!==void 0)return pvV;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return pvV=R},{mode:1});var hC=function(){return _.W.apply(this,arguments)||this};
_.O(hC,_.W);hC.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],hC.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],hC.prototype,"data",void 0);_.A([_.q({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],hC);
_.m(hC,"ytd-kids-blocklist-picker-content",function(){if(D6J!==void 0)return D6J;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return D6J=
R},{mode:_.TN("kevlar_poly_si_batch_j025")?1:2});var tAP;var b9=function(){var R=_.W.apply(this,arguments)||this;R.hasAnyRequestSucceeded=!1;R.hasAnyRequestFailed=!1;R.numPendingRequests=0;return R};
_.O(b9,_.W);_.J=b9.prototype;_.J.attached=function(){this.hostElement.setAttribute("dialog","")};
_.J.onDoneButtonTap=function(){_.Ik(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.J.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.J.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.J.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.J.onPopupClosed=function(R){var y,u;if(((y=R.detail)==null?void 0:(u=y.popup)==null?void 0:u.is)==="tp-yt-paper-dialog"){var v;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((v=this.data)==null?0:v.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.MB(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
b9.prototype.onPopupClosed=b9.prototype.onPopupClosed;b9.prototype.onYtServiceRequestError=b9.prototype.onYtServiceRequestError;b9.prototype.onYtServiceRequestCompleted=b9.prototype.onYtServiceRequestCompleted;b9.prototype.onYtServiceRequestSent=b9.prototype.onYtServiceRequestSent;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],b9.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],b9.prototype,"ytRendererBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],b9.prototype,"data",void 0);_.A([_.fu("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],b9.prototype,"onYtServiceRequestSent",null);_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],b9.prototype,"onYtServiceRequestCompleted",null);
_.A([_.fu("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],b9.prototype,"onYtServiceRequestError",null);_.A([_.fu("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],b9.prototype,"onPopupClosed",null);_.A([_.q({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],b9);
_.m(b9,"ytd-kids-blocklist-picker-renderer",function(){if(tAP!==void 0)return tAP;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return tAP=R},{mode:1});var cK7;var aWa;var FG=function(){return _.W.apply(this,arguments)||this};
_.O(FG,_.W);FG.prototype.setTip=function(R){var y=this;this.data&&(this.tip=XCg($$M.getInstance(),R,this.data),_.gn(this,function(){_.Ko(y.hostElement,"yt-refit")}))};
FG.prototype.clearTip=function(){this.tip=void 0};
FG.prototype.computeHidden=function(R){return!R};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],FG.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],FG.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.p("design:type",Boolean)],FG.prototype,"hidden",void 0);_.A([_.r(),_.p("design:type",Object)],FG.prototype,"tip",void 0);_.A([_.q({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],FG);
_.m(FG,"ytd-menu-popup-tip-renderer",function(){if(aWa!==void 0)return aWa;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);
return aWa=R},{mode:1});var SUP;var wk=function(){var R=_.W.apply(this,arguments)||this;R.useIcons=!1;R.systemIcons=_.f("kevlar_system_icons");R.useListItemStyles=_.f("web_list_item_style_for_menu_items");return R};
_.O(wk,_.W);_.J=wk.prototype;_.J.onFocus=function(){var R;(R=_.hw(this.hostElement).querySelector("tp-yt-paper-item"))==null||R.focus()};
_.J.onTap=function(){var R=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(R&&_.e(R,_.TP))this.componentBehavior.resolveCommand(R),this.updateToggledStateInEntity();else if(R){this.componentBehavior.resolveCommand(R)||_.ua().resolve(_.jX).resolveCommand(R,{form:{element:this.hostElement}});var y;((y=_.e(R,_.xF))==null?void 0:y.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.J.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.J.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.J.updateToggledStateInEntity=function(){var R=this.data.toggleMenuServiceItemEntityKey,y=!this.data.isToggled;R&&this.ytdReduxBehavior.dispatch(_.Gw("toggleMenuServiceItemEntity",R,{key:R,isToggled:y}))};
_.J.computeIcon=function(R,y,u){return(R=R?u:y)&&R.iconType?_.fk(R.iconType):""};
_.J.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.J.isIconActive=function(R){return!_.f("toggle_menu_active_icon_killswitch")&&R};
_.RR.Object.defineProperties(wk.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var R,y,u;return((R=this.data)==null?0:R.isToggled)?(y=this.data)==null?void 0:y.toggledText:(u=this.data)==null?void 0:u.defaultText}}});
wk.prototype.toggledStateEntityChanged=wk.prototype.toggledStateEntityChanged;wk.prototype.onYtServiceRequestCompleted=wk.prototype.onYtServiceRequestCompleted;wk.prototype.onTap=wk.prototype.onTap;wk.prototype.onFocus=wk.prototype.onFocus;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],wk.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],wk.prototype,"componentBehavior",void 0);
_.A([_.n(_.p6),_.p("design:type",Object)],wk.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],wk.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],wk.prototype,"useIcons",void 0);_.A([_.r({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.p("design:type",String)],wk.prototype,"icon",void 0);
_.A([_.r({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(R,y){return _.TI(R.entities,"toggleMenuServiceItemEntity",y)}}),
_.p("design:type",Object)],wk.prototype,"toggleMenuServiceItemEntity",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],wk.prototype,"systemIcons",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],wk.prototype,"useListItemStyles",void 0);_.A([_.fu("focus"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wk.prototype,"onFocus",null);
_.A([_.G("data.isToggled"),_.p("design:type",Object),_.p("design:paramtypes",[])],wk.prototype,"toggleButtonText",null);_.A([_.fu("tap"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wk.prototype,"onTap",null);_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wk.prototype,"onYtServiceRequestCompleted",null);
_.A([_.e0("toggleMenuServiceItemEntity.isToggled","data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],wk.prototype,"toggledStateEntityChanged",null);_.A([_.q({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],wk);
_.m(wk,"ytd-toggle-menu-service-item-renderer",function(){if(SUP!==void 0)return SUP;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return SUP=R},{mode:1});var YU8;var NK=function(){return _.W.apply(this,arguments)||this};
_.O(NK,_.W);NK.prototype.onFocus=function(){var R;(R=_.hw(this.hostElement).querySelector("tp-yt-paper-item"))==null||R.focus()};
_.RR.Object.defineProperties(NK.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.Eo(this.data.iconUrl)}}});
NK.prototype.onFocus=NK.prototype.onFocus;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],NK.prototype,"rendererBehavior",void 0);_.A([_.n(_.ZL.YtEndpointBehavior),_.p("design:type",Object)],NK.prototype,"ytEndpointBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],NK.prototype,"data",void 0);_.A([_.fu("focus"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],NK.prototype,"onFocus",null);
_.A([_.G("data.iconUrl"),_.p("design:type",Object),_.p("design:paramtypes",[])],NK.prototype,"imageSource",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],NK);
_.m(NK,"ytd-menu-custom-icon-item-renderer",function(){if(YU8!==void 0)return YU8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return YU8=R},{mode:_.TN("kevlar_poly_si_batch_j028")?1:2});_.h6(_.aY,"yt-list-item-view-model",{props:{data:_.vR,isMenuItem:_.vR,isCompact:_.vR,onTap:_.IC,trailingAccessory:_.IC,hideSelectionTextChevron:_.vR,disabled:_.vR,inPopup:_.vR,disableHorizontalPadding:_.vR,isOverlay:_.vR,isToggled:_.vR,ariaLabel:_.vR,ariaPressed:_.vR}});var TV=function(){var R=_.W.apply(this,arguments)||this;R.disableBackdropFilter=_.f("web_disable_backdrop_filter");return R};
_.O(TV,_.W);_.J=TV.prototype;
_.J.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"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.J.computeAriaLabel=function(R){return R};
_.J.onPopupOpened=function(){this.items.selected=0;for(var R=_.V(_.hw(this.items).children),y=R.next();!y.done;y=R.next())y.value.popupPositionTarget=this.positionTarget;if(R=this.popupTip||void 0)R.setTip(this.source||""),this.source=void 0;this.veData&&(R=_.$I())&&_.Lo(R,[this.veData])};
_.J.onPopupClosed=function(){var R=this.popupTip||void 0;R&&R.clearTip()};
_.J.onIronActivate=function(R){this.shouldPersist(R)||_.Ik(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(R=_.$I())&&_.zP(R,this.veData)};
_.J.shouldPersist=function(R){var y,u;if(((y=R.detail)==null?void 0:y.selected)===void 0||(u=this.data)==null||!u.items)return!1;var v,Q;return!((Q=(v=this.data.items[R.detail.selected])==null?void 0:v.toggleMenuServiceItemRenderer)==null||!Q.persistentOnMenuPopup)};
_.J.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};
TV.prototype.onPopupClosed=TV.prototype.onPopupClosed;TV.prototype.onPopupOpened=TV.prototype.onPopupOpened;_.A([_.n(_.GZ.YtEventForwardingBehavior),_.p("design:type",Object)],TV.prototype,"ytEventForwardingBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],TV.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],TV.prototype,"ytRendererBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],TV.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],TV.prototype,"veData",void 0);_.A([_.r({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.p("design:type",String)],TV.prototype,"ariaLabel",void 0);_.A([_.r({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],TV.prototype,"useIcons",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],TV.prototype,"disableBackdropFilter",void 0);_.A([_.O7("#items"),_.p("design:type",Object)],TV.prototype,"items",void 0);_.A([_.O7("ytd-menu-popup-tip-renderer"),_.p("design:type",Object)],TV.prototype,"popupTip",void 0);_.A([_.fu("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],TV.prototype,"onPopupOpened",null);
_.A([_.fu("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],TV.prototype,"onPopupClosed",null);_.A([_.q({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],TV);
_.m(TV,"ytd-menu-popup-renderer",function(){if(cK7!==void 0)return cK7;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return cK7=R},{mode:1});var L7I;var sdI=_.Jd(function(R){R=_.jb(R,{icon:void 0});var y=R.data;R=R.icon;var u=function(){return y().iconBadgeText},v={},Q=_.Oy("yt-spec-icon-badge-shape",function(){a:switch(y().iconBadgeType){case "notification":var M="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":M="yt-spec-icon-badge-shape--type-cart";break a;default:M=""}return M},function(){a:switch(y().iconBadgeStyle){case "overlay":var M="yt-spec-icon-badge-shape--style-overlay";
break a;default:M=""}return M},(v["yt-spec-icon-badge-shape--text-size-small"]=function(){var M=u();
return!!((M==null?0:M.length)&&M.length>2)},v));
return _.F("yt-icon-badge-shape",null,_.F(_.w,{cond:R,then:function(M){return _.F("div",{class:Q},_.F("div",{class:"yt-spec-icon-badge-shape__icon"},_.F(_.W_,{icon:M})),_.F(_.w,{cond:u,then:function(K){return _.F("div",{class:"yt-spec-icon-badge-shape__badge"},K)}}))}}))},"Ig");
sdI.idomCompat=!0;_.h6(sdI,"yt-icon-badge-shape",{props:{data:_.vR,icon:_.vR}});var oo=function(){var R=_.W.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};
_.O(oo,_.W);_.J=oo.prototype;_.J.attached=function(){var R=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(y){R.onServiceWorkerMessage(y)})};
_.J.onDataChanged=function(){this.isAttached&&!this.JSC$20350_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20350_lastData=this.data};
_.J.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.J.computeIcon=function(){var R,y;return(R=this.data)==null?void 0:(y=R.icon)==null?void 0:y.iconType};
_.J.onServiceWorkerMessage=function(R){R.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.J.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.e(this.data.updateUnseenCountEndpoint,_.xF)&&_.e(this.data.updateUnseenCountEndpoint,_.xF).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.J.handleUpdateNotificationsUnseenCountAction=function(R){var y=this;R=_.e(R,mLM);R!=null&&R.unseenCount&&R.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(R.unseenCount),_.WG.addLowPriorityJob(function(){y.data.updateUnseenCountEndpoint&&y.ytComponentBehavior.resolveCommand(y.data.updateUnseenCountEndpoint)},R.timeoutMs))};
_.J.onClick=function(){_.Ko(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var R=_.h_(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),y=this.data.menuRequest;R&&R.length===1&&R[0]?_.Ik(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):y&&this.ytComponentBehavior.resolveCommand(y)};
_.J.handleTopbarMenuClosedAction=function(R){R==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.J.toggleIconState=function(R){this.iconButton&&(this.iconButton.pressed=R)};
_.J.sendUnseenCountRequest=function(R){var y=this;_.Oh(_.WG,function(){y.ytComponentBehavior.resolveCommand(R)})};
_.J.updateCountUI=function(R){this.set("unseenCount",R<9?R:"9+")};
_.RR.Object.defineProperties(oo.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
oo.prototype.handleUpdateNotificationsUnseenCountAction=oo.prototype.handleUpdateNotificationsUnseenCountAction;oo.prototype.onDataChanged=oo.prototype.onDataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],oo.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],oo.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.jc),_.p("design:type",Object)],oo.prototype,"ytdOpenPopupBehavior",void 0);
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],oo.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],oo.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],oo.prototype,"unseenCount",void 0);_.A([_.r(),_.p("design:type",Object)],oo.prototype,"isOverlay",void 0);_.A([_.r({value:!0}),_.p("design:type",Boolean)],oo.prototype,"showTooltips",void 0);_.A([_.O7("yt-icon-button"),_.p("design:type",Object)],oo.prototype,"iconButton",void 0);
_.A([_.G("unseenCount"),_.p("design:type",Object),_.p("design:paramtypes",[])],oo.prototype,"showNotificationCount",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],oo.prototype,"onDataChanged",null);_.A([_.fu("yt-update-notifications-unseen-count-action"),_.p("design:type",Function),_.p("design:paramtypes",[Object]),_.p("design:returntype")],oo.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.A([_.q({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],oo);
_.m(oo,"ytd-notification-topbar-button-renderer",function(){if(L7I!==void 0)return L7I;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return L7I=R},{mode:_.TN("kevlar_poly_si_batch_j025")?1:2});var zPK;var xp=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return R};
_.O(xp,_.W);xp.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}}}}}};
xp.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
xp.prototype.onDarkModeToggled=function(R){this.dark=R};
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],xp.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],xp.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],xp.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],xp.prototype,"data",void 0);_.A([_.r({value:!0,reflectToAttribute:!0}),_.p("design:type",Boolean)],xp.prototype,"dark",void 0);
_.A([_.q({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],xp);
_.m(xp,"yt-pdg-buy-flow-header-renderer",function(){if(zPK!==void 0)return zPK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return zPK=R},{mode:1});var gqH;var CZp;var BP=function(){var R=_.W.apply(this,arguments)||this;R.immediateValue=0;R.isDarkTheme=!1;R.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return R};
_.O(BP,_.W);_.J=BP.prototype;_.J.created=function(){_.St.requestAvailability()};
_.J.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.J.dataChanged=function(){var R=_.hw(this.hostElement).querySelector("#color-slider");R.immediateValue&&this.updateSliderKnobAndGradientStyles(R.immediateValue);this.data.notches[0].knobColorArgb&&_.oX(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.Sq(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.EB("HTML_DIR")==="rtl"&&_.hw(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.J.onSliderImmediateChange=function(){var R=_.hw(this.hostElement).querySelector("#color-slider");R.dragging&&(R.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(R.immediateValue),this.updateSliderKnobAndGradientStyles(R.immediateValue)),this.updateSliderAria())};
_.J.onSliderChange=function(){var R=_.hw(this.hostElement).querySelector("#color-slider");R.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(R.immediateValue),this.updateSliderKnobAndGradientStyles(R.immediateValue));this.updateSliderAria()};
_.J.updateSliderAria=function(){var R=_.hw(this.hostElement).querySelector("#color-slider"),y=_.hw(this.hostElement).querySelector("#color-slider");y=_.u7(this.data.notches[y.immediateValue].tierValue);_.K4z()&&_.Ko(this.hostElement,"iron-announce",{text:y});R.setAttribute("aria-valuetext",y)};
_.J.updateSuperThanksSelectedTierEntity=function(R){if(R!==this.immediateValue){var y,u,v=this==null?void 0:(y=this.data)==null?void 0:(u=y.superThanksSelectedTierEntity)==null?void 0:u.key;v&&v.length>0&&this.ytdReduxBehavior.dispatch(_.Gw("superThanksSelectedTierEntity",v,{key:v,index:R}))}};
_.J.onDarkModeToggledAction=function(R){this.isDarkTheme=R};
_.J.updateSliderKnobAndGradientStyles=function(R){this.immediateValue=R;R=this.data.notches[R];if(R==null?0:R.knobColorArgb)var y={"--ytd-pdg-color-slider-knob-color":_.Sq(R.knobColorArgb)};(R==null?0:R.linearGradientCssStyle)&&y!==null&&(y=Object.assign({},y,{"--ytd-pdg-color-slider-active-color":R==null?void 0:R.linearGradientCssStyle}));y!==null&&_.oX(this.hostElement,y)};
BP.prototype.onSliderChange=BP.prototype.onSliderChange;BP.prototype.onSliderImmediateChange=BP.prototype.onSliderImmediateChange;BP.prototype.dataChanged=BP.prototype.dataChanged;_.A([_.r(),_.p("design:type",Object)],BP.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],BP.prototype,"immediateValue",void 0);_.A([_.r(),_.p("design:type",Number)],BP.prototype,"maxMarkers",void 0);
_.A([_.r({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Zop}),_.p("design:type",Object)],BP.prototype,"superThanksSelectedTierEntity",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],BP.prototype,"isDarkTheme",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],BP.prototype,"ytdReduxBehavior",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],BP.prototype,"dataChanged",null);
_.A([_.fu("immediate-value-change"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],BP.prototype,"onSliderImmediateChange",null);_.A([_.fu("change"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],BP.prototype,"onSliderChange",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],BP);
_.m(BP,"ytd-pdg-color-slider-renderer",function(){if(CZp!==void 0)return CZp;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return CZp=R},{mode:1});var RQK;var yMg;var fO=null;
_.qz({is:"ytd-comment-input",_template:function(){if(yMg!==void 0)return yMg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return yMg=R},
behaviors:[_.yZU.YtHostElementBehavior,_.Gh,_.sx.YtComponentBehavior,_.hX.YtRendererstamperBehavior,_.QvL.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 _.LQ}},
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",_.BN(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;_.Bb();this.focus()},
detached:function(){document.removeEventListener("tap",_.BN(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 y=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(y,R);this.maybeUpdateTextDirection_();_.Ko(this.hostElement,"input")},
getInputRange_:function(){var R=_.Oz();if(R){R=R.getBrowserRangeObject();for(var y=R.commonAncestorContainer;y;){if(y===this.getEditableTextArea_())return R;y=y.parentNode}}R=this.getEditableTextArea_();R=_.tA(R,R.childNodes.length);R.select();return R.getBrowserRangeObject()},
insertTextWithEmojis_:function(R,y,u){(y=this.emojiManager.createDocumentFragment(y,!0,!1,u===void 0?!0:u))&&y.childNodes.length!==0&&(R.collapsed||R.deleteContents(),u=y.lastChild,R.insertNode(y),_.jXb(u).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var R=_.Oz();if(R){var y=R.JSC$11263_getStartNode(),u=R.JSC$11263_getEndNode();if(oiJ(y)&&oiJ(u)){var v=R.JSC$11263_getStartOffset(),Q;if(_.xU&&y.nodeType===Node.ELEMENT_NODE&&(Q=_.jPb(y)))_.tA(Q,0).select();else{Q=T1(y)?y:_.$h(y,T1);var M=T1(u)?u:_.$h(u,T1);if(Q||M)if(R.isCollapsed()){if(y.nodeType===Node.TEXT_NODE){R=!0;v===y.length&&(R=!1);if(fO==="end"||fO==="right")R=!1;y=y.parentNode;R=[].concat(_.P$(y.parentNode.childNodes)).indexOf(y)+(R?0:1);_.tA(y.parentNode,
R).select()}}else Q?Q.previousSibling&&Q.previousSibling.length>0?_.cb(u,R.JSC$11263_getEndOffset(),Q.previousSibling,Q.previousSibling.length-1).select():(y=document.createTextNode("\u200b"),Q.parentNode.insertBefore(y,Q),_.cb(u,R.JSC$11263_getEndOffset(),y,0).select()):M&&(M.nextSibling&&M.nextSibling.length>0?_.cb(y,R.JSC$11263_getStartOffset(),M.nextSibling,1).select():(u=document.createTextNode("\u200b"),M.parentNode.insertBefore(u,M.nextSibling),_.cb(y,R.JSC$11263_getStartOffset(),u,u.length).select()));
fO=null}}else fO=null}else fO=null},
leftKeyPressed_:function(){fO="left"},
rightKeyPressed_:function(){fO="right"},
endKeyPressed_:function(){fO="end"},
maybeDeleteChip_:function(){var R=OkK(!0);if(R){var y=_.Oz(),u=y.JSC$11263_getStartNode();y=y.JSC$11263_getStartOffset();_.XL(u,y,R,R.childNodes.length).select()}},
maybeBackspaceChip_:function(){var R=OkK(!1);if(R){var y=_.Oz(),u=y.JSC$11263_getStartNode();y=y.JSC$11263_getStartOffset();_.XL(u,y,R,0).select()}},
maybeBackspaceChipWordMode_:function(R){var y=_.Oz();if(y.isCollapsed()){var u=y.JSC$11263_getStartNode();y=y.JSC$11263_getStartOffset();var v=Zka(u,y,!0);v&&(_.XL(u,y,v,0).select(),document.execCommand("delete"),R.preventDefault(),R.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(R){var y=_.Oz();if(y.isCollapsed()){var u=y.JSC$11263_getStartNode();y=y.JSC$11263_getStartOffset();var v=Zka(u,y,!1);v&&(_.XL(u,y,v,v.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"&&T1(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 _.hw(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.hw(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,y){R=BZp(R,this.emojiManager,y).cloneNode(!0);for(y=R.firstChild;y;)if(y.nodeType!==1)y=y.nextSibling;else switch(y.tagName){case "BR":var u=_.k$();_.bZi(u,y);y=u.nextSibling;break;case "DIV":(u=y.lastChild)&&y.nextSibling&&_.Xi(_.k$(),u);y.previousSibling&&(y.previousSibling.nodeType===1||y.previousSibling.nodeType===3&&!y.previousSibling.textContent.endsWith("\n"))&&_.qW(_.k$(),y);u&&u.nodeName==="BR"&&_.BY(u);u=y;y.hasChildNodes()?(y=y.firstChild,
_.Fg5(u)):(y=y.nextSibling,_.BY(u));break;default:y=y.nextSibling}return HkP(R)},
setTextAreaValue:function(R){R||(R="");var y=this.getEditableFormattedString_();y.text="";this.getEditableTextArea_().innerText="";typeof R==="string"&&(R={runs:[{text:R}]});y.text=R},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();fO=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var R=this.getEditableTextArea_();R&&(_.tA(R,R.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.EB("HTML_DIR")==="rtl"){var R=this.getEditableTextArea_(),y=this.getTextAreaValue()!==""?"auto":"rtl";R.setAttribute("dir",y)}},
handleInputEvent_:function(){var R=null;if(this.isEmojiButtonDisplayed){var y=this.getInputRange_();y&&(R=this.emojiInput.retrieveTextBeforeRange(y))}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),_.Ko(this.hostElement,"input"))},
insertText_:function(R,y,u){y=y===void 0?!1:y;u=u===void 0?!0:u;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&R){var v=this.getInputRange_().cloneRange();this.emojiManager&&v&&(y&&this.emojiInput.offsetStartOfRangeBy(v,R.length),this.insertTextWithEmojis_(v,R,u),xkZ(this.getEditableTextArea_().lastChild)||(v=this.getInputRange_().cloneRange()),v&&(this.emojiInput.updateSuggestions(v,R),this.updateSuggestionOffset_(v)))}},
getSimpleString:_.u7,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,y){R?this.fire("yt-autonav-pause-focus"):y!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(R){var y=this.getEditableTextArea_();[].concat(_.P$(R.dataTransfer.items)).forEach(function(u){u.kind==="string"&&u.type.match("^text/plain")&&u.getAsString(function(v){y.appendChild(document.createTextNode(v))})});
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&&_.hw(this.emojiInput).querySelector("#dropdown")){var y=this.getEditableTextArea_().getBoundingClientRect().bottom,u=R.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(y-u)+5;y=this.getEditableTextArea_().getBoundingClientRect().left;R=R.getBoundingClientRect().left-y;_.hw(this.emojiInput).querySelector("#dropdown").style.marginLeft=R+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.$2("yt-post"));return this.localStorage}});var eR=function(){var R=_.W.apply(this,arguments)||this;R.currentCommentOptionIndex=0;R.isEmojiPickerDisplayed=!1;R.emojiManager=_.LQ;R.isUgcEmpty=!1;R.userGeneratedCommentChangedHandler=function(){_.Ko(R.hostElement,"ytd-pdg-user-generated-comment-changed");R.isEmojiYtdCommentInputEnabled&&(R.isUgcEmpty=!R.ytdCommentInputEl.getTextAreaValue())};
R.pasteHandler=function(y){y.preventDefault();y.stopImmediatePropagation();var u;if(y=(u=y.clipboardData)==null?void 0:u.getData("text/plain"))u=document.getSelection().getRangeAt(0),u.collapsed||u.deleteContents(),y=document.createTextNode(y),u.insertNode(y),u.selectNodeContents(y),u.collapse(!1),y=window.getSelection(),y.removeAllRanges(),y.addRange(u)};
R.onDocumentClick=function(y){if(R.isEmojiPickerDisplayed){var u,v,Q;!(y.target instanceof Node)||(u=y.composedPath())!=null&&u.includes(R.editableTextEl)||(v=y.composedPath())!=null&&v.includes(R.emojiButtonEl)||(Q=y.composedPath())!=null&&Q.includes(R.emojiPickerEl)||(R.isEmojiPickerDisplayed=!1)}};
return R};
_.O(eR,_.W);_.J=eR.prototype;_.J.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.J.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.J.detached=function(){var R;(R=this.contentEl)==null||R.removeEventListener("input",this.userGeneratedCommentChangedHandler);var y;(y=this.contentEl)==null||y.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.J.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.J.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()};
_.J.reloadEmojis=function(){this.emojiPickerEl&&_.e(this.emojiPicker,_.uL8)&&this.emojiPickerEl.updateEmojiCategories()};
_.J.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.oX(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.J.handleBackgroundColorStyling=function(){var R;if((R=this.currentCommentOption)==null?0:R.commentBackgroundColorArgb){var y;_.oX(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.Sq((y=this.currentCommentOption)==null?void 0:y.commentBackgroundColorArgb)})}else _.oX(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.J.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var R;(R=this.contentEl)==null||R.focus()}};
_.J.onEditButtonClick=function(R){var y=document.getSelection();y&&this.contentEl&&(R.stopPropagation(),R.preventDefault(),y.selectAllChildren(this.contentEl),y.collapseToEnd())};
_.J.onContentDrop=function(R){var y=this;if(R.dataTransfer){R=_.V(R.dataTransfer.items);for(var u=R.next();!u.done;u=R.next())u=u.value,u.kind==="string"&&u.type.match("^text/plain")&&u.getAsString(function(v){var Q;(Q=y.contentEl)==null||Q.appendChild(document.createTextNode(v))})}};
_.J.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.J.getUserGeneratedCommentText=function(){var R,y=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(R=this.contentEl)==null?void 0:R.textContent;return y?y.trim():""};
_.J.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.J.onEmojiSelect=function(R){this.ytdCommentInputEl.onEmojiSelect(R)};
_.RR.Object.defineProperties(eR.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(_.e((R=this.currentCommentOption)==null?void 0:R.chipRenderer,_.oW8)){var y;return _.e((y=this.currentCommentOption)==null?void 0:y.chipRenderer,_.oW8)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var R,y;return((R=this.data)==null?0:R.commentOptionRenderers)?_.e((y=this.data)==null?void 0:y.commentOptionRenderers[this.superThanksSelectedTierEntity.index],hNZ):void 0}var u,v;return((u=this.data)==null?0:u.commentOptionRenderers)?_.e((v=this.data)==null?void 0:v.commentOptionRenderers[this.currentCommentOptionIndex],hNZ):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,y;return(y=_.e((R=this.data)==null?void 0:R.commentDialog,_.S8G))==null?void 0:y.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var R,y;return(y=_.e((R=this.data)==null?void 0:R.commentDialog,_.S8G))==null?void 0:y.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var R,y;return(y=_.e((R=this.data)==null?void 0:R.commentDialog,_.S8G))==null?void 0:y.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var R,y,u=(y=_.e((R=this.data)==null?void 0:R.commentDialog,_.S8G))==null?void 0:y.emojiPicker;if(!_.e(u,_.uL8)||!_.e(u,_.uL8).categories)return!1;R=function(M){return M.emojiPickerCategoryRenderer?M.emojiPickerCategoryRenderer.emojiIds&&M.emojiPickerCategoryRenderer.emojiIds.length>0:M.emojiPickerUpsellCategoryRenderer?M.emojiPickerUpsellCategoryRenderer.emojis&&M.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var v,Q;return((v=_.e(u,_.uL8))==null?0:(Q=v.categories)==null?0:Q.find(R))?!0:!1}}});
eR.prototype.onEmojiSelect=eR.prototype.onEmojiSelect;eR.prototype.dataChanged=eR.prototype.dataChanged;eR.prototype.currentCommentOptionChanged=eR.prototype.currentCommentOptionChanged;_.A([_.n(_.p6),_.p("design:type",Object)],eR.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],eR.prototype,"rendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],eR.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.O7("#content-dom-if"),_.p("design:type",_.m8)],eR.prototype,"contentDomIfEl",void 0);_.A([_.O7("#content-no-emojis"),_.p("design:type",HTMLElement)],eR.prototype,"contentEl",void 0);_.A([_.O7("#container"),_.p("design:type",HTMLElement)],eR.prototype,"containerEl",void 0);_.A([_.O7("#comment-chip-container"),_.p("design:type",HTMLElement)],eR.prototype,"paidCommentChipContainerEl",void 0);_.A([_.O7("#text-input"),_.p("design:type",HTMLElement)],eR.prototype,"editableTextEl",void 0);
_.A([_.O7("#emoji-button"),_.p("design:type",HTMLElement)],eR.prototype,"emojiButtonEl",void 0);_.A([_.O7("#emoji-picker > yt-emoji-picker-renderer"),_.p("design:type",Object)],eR.prototype,"emojiPickerEl",void 0);_.A([_.O7("#text-input > ytd-comment-input"),_.p("design:type",Object)],eR.prototype,"ytdCommentInputEl",void 0);_.A([_.r(),_.p("design:type",Object)],eR.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],eR.prototype,"currentCommentOptionIndex",void 0);
_.A([_.r({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Zop}),_.p("design:type",Object)],eR.prototype,"superThanksSelectedTierEntity",void 0);_.A([_.r(),_.p("design:type",Object)],eR.prototype,"isEmojiPickerDisplayed",void 0);_.A([_.r(),_.p("design:type",Object)],eR.prototype,"emojiManager",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],eR.prototype,"isUgcEmpty",void 0);
_.A([_.e0("currentCommentOption"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],eR.prototype,"currentCommentOptionChanged",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],eR.prototype,"dataChanged",null);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],eR.prototype,"isEmojiYtdCommentInputEnabled",null);
_.A([_.G("data.title"),_.p("design:type",Object),_.p("design:paramtypes",[])],eR.prototype,"title",null);_.A([_.G("data.authorText"),_.p("design:type",Object),_.p("design:paramtypes",[])],eR.prototype,"channelName",null);_.A([_.G("data.commentOptionRenderers","currentCommentOption"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],eR.prototype,"shouldShowPaidCommentChipRenderer",null);
_.A([_.G("data.commentOptionRenderers","currentCommentOption"),_.p("design:type",Object),_.p("design:paramtypes",[])],eR.prototype,"paidCommentChipRenderer",null);_.A([_.G("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],eR.prototype,"currentCommentOption",null);
_.A([_.G("data.defaultCommentText","superThanksSelectedTierEntity"),_.p("design:type",Object),_.p("design:paramtypes",[])],eR.prototype,"commentText",null);_.A([_.G("data.placeholderText"),_.p("design:type",Object),_.p("design:paramtypes",[])],eR.prototype,"placeholderText",null);_.A([_.G("data.commentDialog.commentDialogRenderer.editableText"),_.p("design:type",Object),_.p("design:paramtypes",[])],eR.prototype,"editableText",null);
_.A([_.G("data.commentDialog.commentDialogRenderer.emojiButton"),_.p("design:type",Object),_.p("design:paramtypes",[])],eR.prototype,"emojiButton",null);_.A([_.G("data.commentDialog.commentDialogRenderer.emojiPicker"),_.p("design:type",Object),_.p("design:paramtypes",[])],eR.prototype,"emojiPicker",null);
_.A([_.G("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],eR.prototype,"isEmojiButtonDisplayed",null);_.A([_.fu("yt-emoji-select"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],eR.prototype,"onEmojiSelect",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],eR);
_.m(eR,"ytd-pdg-comment-preview-renderer",function(){if(RQK!==void 0)return RQK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return RQK=R},{mode:2});var u6g;var l9=function(){var R=_.W.apply(this,arguments)||this;R.selected=!1;return R};
_.O(l9,_.W);_.J=l9.prototype;_.J.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.J.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.J.dataChanged=function(){this.data&&(_.b8(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.oX(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.Sq(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.Sq(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.J.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.J.onClick=function(){this.logClick()};
_.J.onKeyboardSelect=function(){_.Ko(this.hostElement,"tap");this.onClick()};
_.J.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
l9.prototype.onClick=l9.prototype.onClick;l9.prototype.selectedChanged=l9.prototype.selectedChanged;l9.prototype.dataChanged=l9.prototype.dataChanged;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],l9.prototype,"componentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],l9.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.Gh),_.p("design:type",Object)],l9.prototype,"ironA11yKeysBehavior",void 0);
_.A([_.n(_.Cu),_.p("design:type",Object)],l9.prototype,"ironSelectableBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],l9.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],l9.prototype,"shownThumbnail",void 0);_.A([_.r(),_.p("design:type",Object)],l9.prototype,"basePriceText",void 0);_.A([_.r(),_.p("design:type",Object)],l9.prototype,"purchaseCommand",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],l9.prototype,"selected",void 0);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],l9.prototype,"dataChanged",null);_.A([_.e0("selected"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],l9.prototype,"selectedChanged",null);_.A([_.fu("click"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],l9.prototype,"onClick",null);
_.A([_.q({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],l9);
_.m(l9,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(u6g!==void 0)return u6g;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return u6g=R},{mode:1});var Oa=function(){var R=_.W.apply(this,arguments)||this;R.selectedItemIndex=0;R.buyButtonDisabled=!1;return R};
_.O(Oa,_.W);_.J=Oa.prototype;
_.J.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]]"}}}}}};
_.J.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var R;var y=(R=_.e(this.data.colorSlider,ILV))==null?void 0:R.notches[this.selectedItemIndex].purchaseCommand}else{var u;y=(u=_.e(this.data.selectableItemButtons[this.selectedItemIndex],Fsp))==null?void 0:u.purchaseCommand}if(y){R=_.e(y,_.CWL);R.productData||(R.productData={});var v;R.productData={pdgData:{commentMessageText:(v=this.commentPreviewRenderer)==null?void 0:v.getUserGeneratedCommentText()}};
_.Ko(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(y)}}};
_.J.dataChanged=function(){if(this.data){_.LQ.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.U3Y(_.LQ,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.LQ.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var R;this.buyButtonDisabled=!((R=_.e(this.data.commentPreview,bQV))==null||!R.placeholderText);this.updatePriceSelectorStatus();var y;if((y=this.data)==null?0:y.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;R=[];this.data.preloadImages&&(R=this.data.preloadImages);
R=R.map(function(u){return _.b0(u.thumbnails,1920)});
R=_.V(R);for(y=R.next();!y.done;y=R.next())(y=y.value)&&_.A94(y).thenCatch(function(){_.kT(Error("ml"))})}};
_.J.superThanksSelectedTierEntityChanged=function(){var R;(this==null?void 0:(R=this.superThanksSelectedTierEntity)==null?void 0:R.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.J.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.J.updatePriceSelectorStatus=function(){this.isColorSlider?(_.hw(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.hw(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.hw(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.hw(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.J.closeBuyFlow=function(){_.Ik(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.J.onUserGeneratedContentChanged=function(){var R;this.buyButtonDisabled=!((R=this.commentPreviewRenderer)==null?0:R.getUserGeneratedCommentText())};
_.J.updateSelectedItemIndexFromBinding=function(R){this.selectedItemIndex=R.detail.value};
_.RR.Object.defineProperties(Oa.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.disclaimerText)}}});
Oa.prototype.onUserGeneratedContentChanged=Oa.prototype.onUserGeneratedContentChanged;Oa.prototype.closeBuyFlow=Oa.prototype.closeBuyFlow;Oa.prototype.selectedItemIndexChanged=Oa.prototype.selectedItemIndexChanged;Oa.prototype.superThanksSelectedTierEntityChanged=Oa.prototype.superThanksSelectedTierEntityChanged;Oa.prototype.dataChanged=Oa.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Oa.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Oa.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Oa.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Oa.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],Oa.prototype,"selectedItemIndex",void 0);_.A([_.r(),_.p("design:type",Boolean)],Oa.prototype,"isColorSlider",void 0);
_.A([_.r(),_.p("design:type",Object)],Oa.prototype,"buyButtonDisabled",void 0);_.A([_.r({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Zop}),_.p("design:type",Object)],Oa.prototype,"superThanksSelectedTierEntity",void 0);_.A([_.O7("ytd-pdg-comment-preview-renderer"),_.p("design:type",Object)],Oa.prototype,"commentPreviewRenderer",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],Oa.prototype,"ytdReduxBehavior",void 0);
_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Oa.prototype,"dataChanged",null);_.A([_.e0("superThanksSelectedTierEntity"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Oa.prototype,"superThanksSelectedTierEntityChanged",null);_.A([_.e0("selectedItemIndex"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Oa.prototype,"selectedItemIndexChanged",null);
_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Oa.prototype,"closeBuyFlow",null);_.A([_.fu("ytd-pdg-user-generated-comment-changed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Oa.prototype,"onUserGeneratedContentChanged",null);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Oa.prototype,"isDisclaimerTextShown",null);
_.A([_.q({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],Oa);
_.m(Oa,"yt-super-vod-buy-flow-content-renderer",function(){if(gqH!==void 0)return gqH;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return gqH=R},{mode:1});var vn7;var ZS=function(){var R=_.W.apply(this,arguments)||this;R.lottieAnimationRef={};return R};
_.O(ZS,_.W);_.J=ZS.prototype;_.J.created=function(){_.St.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.BN(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.J.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.Ko(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.J.detached=function(){this.autoCloseJobId&&_.WG.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.BN(this,this.onPopupIronOverlayOpened))};
_.J.dataChanged=function(){var R=this;this.data&&this.data.autoCloseDelay&&(_.Ik(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.T3(_.WG,function(){R.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.oX(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.J.onDOMLoadedLottie=function(){var R=this,y,u,v=Number((y=this.data)==null?void 0:(u=y.autoCloseDelay)==null?void 0:u.seconds)||0;this.fadeOutJobId=_.T3(_.WG,function(){R.lottiePlayerEl.classList.add("fadeout")},(v-.25)*1E3);
this.autoCloseJobId=_.T3(_.WG,function(){R.closePopup()},v*1E3)};
_.J.openPopup=function(){this.ironOverlayBehavior.open()};
_.J.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.Ik(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.wr(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.ua().resolve(_.jX).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.WG.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.WG.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.J.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var R,y;(R=this.lottieAnimationRef)==null||(y=R.lottieEl)==null||y.destroy();R=this.data.lottie;var u,v;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:R.url+"_"+Math.random(),path:R.url,autoplay:!0,loop:(v=(u=R.settings)==null?void 0:u.loop)!=null?v:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.RR.Object.defineProperties(ZS.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var R,y;return!!((R=this.data)==null?0:(y=R.lottie)==null?0:y.url)}}});
ZS.prototype.maybeInitializeLottie=ZS.prototype.maybeInitializeLottie;ZS.prototype.dataChanged=ZS.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ZS.prototype,"rendererBehavior",void 0);_.A([_.n(_.g9),_.p("design:type",Object)],ZS.prototype,"ironOverlayBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ZS.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],ZS.prototype,"lottiePlayerProps",void 0);
_.A([_.r(),_.p("design:type",Object)],ZS.prototype,"lottieAnimationRef",void 0);_.A([_.O7("ytd-lottie-player"),_.p("design:type",HTMLElement)],ZS.prototype,"lottiePlayerEl",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ZS.prototype,"dataChanged",null);_.A([_.G("data"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],ZS.prototype,"hasLottieAnimation",null);
_.A([_.e0("data.lottie.url"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ZS.prototype,"maybeInitializeLottie",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],ZS);
_.m(ZS,"ytd-desktop-image-overlay-renderer",function(){if(vn7!==void 0)return vn7;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return vn7=R},{mode:1});var QAK;var HP=function(){return _.W.apply(this,arguments)||this};
_.O(HP,_.W);_.J=HP.prototype;_.J.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"}}}}};
_.J.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",_.BN(this,this.closePopup))};
_.J.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.BN(this,this.closePopup))};
_.J.dataChanged=function(){_.h_(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.e(this.data.header,Ksa)&&(this.hasBackgroundBanner=!!_.e(this.data.header,Ksa).backgroundBanner)};
_.J.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.BN(this,this.closePopup))};
_.J.closePopup=function(){this.data&&this.data.onCloseCommand&&_.Fh(this.hostElement,[this.data.onCloseCommand])};
HP.prototype.handleBuyflowSelectionSubmitted=HP.prototype.handleBuyflowSelectionSubmitted;HP.prototype.dataChanged=HP.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],HP.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],HP.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],HP.prototype,"data",void 0);
_.A([_.r({value:!0,reflectToAttribute:!0}),_.p("design:type",Boolean)],HP.prototype,"hasBackgroundBanner",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],HP.prototype,"dataChanged",null);_.A([_.fu("yt-pdg-buy-flow-selection-submitted"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],HP.prototype,"handleBuyflowSelectionSubmitted",null);
_.A([_.q({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],HP);
_.m(HP,"ytd-pdg-buy-flow-renderer",function(){if(QAK!==void 0)return QAK;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return QAK=R},{mode:1});var jAg;var nO=function(){var R=_.W.apply(this,arguments)||this;R.isOpen=!1;R.isPlaylistCreated=!1;return R};
_.O(nO,_.W);_.J=nO.prototype;_.J.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.J.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.Ko(this.hostElement,"yt-refit")};
_.J.onCreateTap=function(){var R=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.Fh(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(y,u){if(!_.f("killswitch_ep_in_create_playlist_response")&&(u==null?0:u.actions))for(y=_.V(u.actions),u=y.next();!u.done;u=y.next())u=u.value,_.e(u,_.X1)&&R.ytComponentBehavior.resolveCommand(u)}}]),this.isPlaylistCreated=!0)};
_.J.onKeydown=function(R){if(R.keyCode===13)this.onCreateTap()};
_.J.onServiceRequestCompleted=function(R){R.stopPropagation();_.Ik(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.J.computePrivacyBadge=function(R){return R?[{metadataBadgeRenderer:R}]:[]};
nO.prototype.onServiceRequestCompleted=nO.prototype.onServiceRequestCompleted;nO.prototype.onKeydown=nO.prototype.onKeydown;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],nO.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],nO.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],nO.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],nO.prototype,"isOpen",void 0);
_.A([_.r(),_.p("design:type",Object)],nO.prototype,"isPlaylistCreated",void 0);_.A([_.r({value:{REQUIRED_LABEL:_.fo("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.fo("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.p("design:type",Object)],nO.prototype,"addToStrings",void 0);_.A([_.r({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.p("design:type",Array)],nO.prototype,"privacyBadge",void 0);
_.A([_.O7("#privacy-input"),_.p("design:type",Object)],nO.prototype,"privacyInput",void 0);_.A([_.O7("#name-input"),_.p("design:type",Object)],nO.prototype,"nameInput",void 0);_.A([_.fu("keydown"),_.p("design:type",Function),_.p("design:paramtypes",[KeyboardEvent]),_.p("design:returntype")],nO.prototype,"onKeydown",null);_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],nO.prototype,"onServiceRequestCompleted",null);
_.A([_.q({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],nO);
_.m(nO,"ytd-add-to-playlist-create-renderer",function(){if(jAg!==void 0)return jAg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return jAg=R},{mode:1});var Mlp;var JMM;var GV=function(){var R=_.W.apply(this,arguments)||this;R.transferState="TRANSFER_STATE_UNKNOWN";return R};
_.O(GV,_.W);GV.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
GV.prototype.onCheckboxChange=function(R){var y=this;this.data&&_.zJ(this,"yt-playlist-checkbox-changed",function(){var u=_.vN(R).checked?y.data.addToPlaylistServiceEndpoint:y.data.removeFromPlaylistServiceEndpoint;u&&_.ua().resolve(_.jX).resolveCommand(u,{form:{element:y.hostElement}});_.f("dl_playlist_killswitch")||y.transferState!=="TRANSFER_STATE_UNKNOWN"&&y.transferState!=="TRANSFER_STATE_FAILED"&&y.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:y.data.playlistId,action:"ACTION_SYNC"}})},
100)};
GV.prototype.computeIconType=function(R){return R?"yt-icons:"+R.toLowerCase():null};
GV.prototype.dataChanged=GV.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],GV.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],GV.prototype,"data",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],GV.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],GV.prototype,"ytComponentBehavior",void 0);_.A([_.O7("#checkbox"),_.p("design:type",HTMLInputElement)],GV.prototype,"checkbox",void 0);
_.A([_.r({selector:_.tN,selectorArgs:["data.playlistId"]}),_.p("design:type",String)],GV.prototype,"transferState",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],GV.prototype,"dataChanged",null);_.A([_.q({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],GV);
_.m(GV,"ytd-playlist-add-to-option-renderer",function(){if(JMM!==void 0)return JMM;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return JMM=R},{mode:1});_.Qn(niZ);_.B_(niZ,"ytd-menu-title-renderer",{propNames:["data"]});var rk=function(){var R=_.W.apply(this,arguments)||this;R.addToStrings={ADD_TO_DROPDOWN_LABEL:_.fo("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};R.closeButtonAriaLabel=_.fo("SBOX_INAPPROPRIATE_CANCEL");R.dialog=_.f("desktop_add_to_playlist_renderer_dialog_popup");return R};
_.O(rk,_.W);_.J=rk.prototype;_.J.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"}}}};
_.J.onPopupOpened=function(){_.FN(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.J.onPopupClosed=function(){_.FN(this.playlists,"scrollable",!1)};
_.J.computeAriaLabel=function(){var R;if(this==null?0:(R=this.data)==null?0:R.actions){R=_.V(this.data.actions);for(var y=R.next();!y.done;y=R.next())if(y=y.value,y.menuTitleRenderer)return _.u7(y.menuTitleRenderer.title)}};
_.J.onTapClose=function(){_.Ik(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.RR.Object.defineProperties(rk.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var R;if(this==null?0:(R=this.data)==null?0:R.actions){R=_.V(this.data.actions);for(var y=R.next();!y.done;y=R.next())if(y=y.value,y.menuTitleRenderer)return y.menuTitleRenderer}return!1}}});
rk.prototype.onPopupClosed=rk.prototype.onPopupClosed;rk.prototype.onPopupOpened=rk.prototype.onPopupOpened;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],rk.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.GZ.YtEventForwardingBehavior),_.p("design:type",Object)],rk.prototype,"ytEventForwardingBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],rk.prototype,"ytRendererStamperBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],rk.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],rk.prototype,"addToStrings",void 0);_.A([_.r({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.p("design:type",String)],rk.prototype,"ariaLabel",void 0);_.A([_.r(),_.p("design:type",String)],rk.prototype,"closeButtonAriaLabel",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],rk.prototype,"dialog",void 0);
_.A([_.O7("#playlists"),_.p("design:type",HTMLElement)],rk.prototype,"playlists",void 0);_.A([_.O7("ytd-add-to-playlist-create-renderer"),_.p("design:type",Object)],rk.prototype,"createRenderer",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],rk.prototype,"menuTitleRenderer",null);_.A([_.fu("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],rk.prototype,"onPopupOpened",null);
_.A([_.fu("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],rk.prototype,"onPopupClosed",null);_.A([_.q({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],rk);
_.m(rk,"ytd-add-to-playlist-renderer",function(){if(Mlp!==void 0)return Mlp;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Mlp=R},{mode:1});var VlK;var PP=function(){var R=_.W.apply(this,arguments)||this;R.isPlaylistEditComplete=!1;R.isCollabEngagementDisabled=!1;R.closeButtonAriaLabel=_.fo("SBOX_INAPPROPRIATE_CANCEL");R.saveButton={title:_.fo("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};
_.O(PP,_.W);_.J=PP.prototype;_.J.attached=function(){this.JSC$20406_scroller&&(this.JSC$20406_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20406_scroller.attached&&typeof this.JSC$20406_scroller.attached==="function"&&this.JSC$20406_scroller.attached())};
_.J.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.J.onPopupClosed=function(){this.reset()};
_.J.close=function(){_.Ik(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.J.onClickSave=function(){var R=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var y=[];this.nameInput.value!==null&&y.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&y.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var u=Number(this.privacyInput.value);isNaN(u)||y.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:u})}this.votingInput.value!==null&&(u=this.votingInput.value)&&y.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:u});if(y.length>0){var v;_.e((v=this.data)==null?void 0:v.updateSettingsEndpoint,_.pt).actions=y;var Q;if((Q=this.data)==null?0:Q.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){R.close()}}}),this.isPlaylistEditComplete=!0}}};
_.J.computePrivacyBadge=function(R){return R?[{metadataBadgeRenderer:R}]:[]};
_.J.computeEditorData=function(R){var y,u;return R==null?void 0:(y=R.sections)==null?void 0:(u=y[0])==null?void 0:u.playlistSettingsEditorCasualSectionRenderer};
_.J.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.J.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}}}}}};
_.J.computeAriaLabel=function(){var R,y,u,v=(R=this.data)==null?void 0:(y=R.sections)==null?void 0:(u=y[0])==null?void 0:u.playlistSettingsEditorCasualSectionRenderer;return _.u7(v==null?void 0:v.title)};
_.J.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"}))};
_.J.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.J.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.J.isNameChanged=function(){var R,y,u;return(((R=this.editorData)==null?void 0:(y=R.name)==null?void 0:(u=y.textInputFormFieldRenderer)==null?void 0:u.value)||"")!==(this.nameInput.value||"")};
_.J.isDescriptionChanged=function(){var R,y,u;return(((R=this.editorData)==null?void 0:(y=R.description)==null?void 0:(u=y.textInputFormFieldRenderer)==null?void 0:u.value)||"")!==(this.descriptionInput.value||"")};
_.J.isPrivacyChanged=function(){var R,y,u,v,Q,M,K,h;return((K=(R=this.editorData)==null?void 0:(y=R.privacy)==null?void 0:(u=y.dropdownFormFieldRenderer)==null?void 0:(v=u.dropdown)==null?void 0:(Q=v.dropdownRenderer)==null?void 0:(M=Q.entries)==null?void 0:M.find(function(b){var N;return b==null?void 0:(N=b.privacyDropdownItemRenderer)==null?void 0:N.isSelected}))==null?void 0:(h=K.privacyDropdownItemRenderer)==null?void 0:h.int32Value)!==this.privacyInput.value};
_.J.isVotingChanged=function(){var R,y,u,v,Q,M,K,h;return((K=(R=this.editorData)==null?void 0:(y=R.voting)==null?void 0:(u=y.dropdownFormFieldRenderer)==null?void 0:(v=u.dropdown)==null?void 0:(Q=v.dropdownRenderer)==null?void 0:(M=Q.entries)==null?void 0:M.find(function(b){var N;return b==null?void 0:(N=b.privacyDropdownItemRenderer)==null?void 0:N.isSelected}))==null?void 0:(h=K.privacyDropdownItemRenderer)==null?void 0:h.int32Value)!==this.votingInput.value};
PP.prototype.onPopupClosed=PP.prototype.onPopupClosed;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],PP.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],PP.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.GZ.YtEventForwardingBehavior),_.p("design:type",Object)],PP.prototype,"ytEventForwardingBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],PP.prototype,"ytRendererStamperBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],PP.prototype,"data",void 0);_.A([_.r({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.p("design:type",Array)],PP.prototype,"privacyBadge",void 0);_.A([_.r({computed:"computeEditorData(data)"}),_.p("design:type",Object)],PP.prototype,"editorData",void 0);_.A([_.r(),_.p("design:type",Object)],PP.prototype,"isPlaylistEditComplete",void 0);_.A([_.r(),_.p("design:type",Object)],PP.prototype,"isCollabEngagementDisabled",void 0);
_.A([_.r({value:{REQUIRED_LABEL:_.fo("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.fo("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.p("design:type",Object)],PP.prototype,"addToStrings",void 0);_.A([_.r({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.p("design:type",String)],PP.prototype,"ariaLabel",void 0);_.A([_.r(),_.p("design:type",String)],PP.prototype,"closeButtonAriaLabel",void 0);
_.A([_.r(),_.p("design:type",Object)],PP.prototype,"saveButton",void 0);_.A([_.O7("#name-input"),_.p("design:type",Object)],PP.prototype,"nameInput",void 0);_.A([_.O7("#description-input"),_.p("design:type",Object)],PP.prototype,"descriptionInput",void 0);_.A([_.O7("#privacy-input"),_.p("design:type",Object)],PP.prototype,"privacyInput",void 0);_.A([_.O7("#voting-input"),_.p("design:type",Object)],PP.prototype,"votingInput",void 0);
_.A([_.O7("#scroller"),_.p("design:type",Object)],PP.prototype,"JSC$20406_scroller",void 0);_.A([_.fu("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],PP.prototype,"onPopupClosed",null);_.A([_.r(),_.p("design:type",Object)],PP.prototype,"onValueChanged",void 0);_.A([_.q({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],PP);
_.m(PP,"ytd-playlist-settings-editor-renderer",function(){if(VlK===void 0){var R=document.createElement("template");_.H(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]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <yt-text-input-form-field-renderer id="description-input" data="[[editorData.description.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!editorData.privacy.metadataBadgeRenderer]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-dropdown-renderer id="privacy-input" data="[[editorData.privacy.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" hidden="[[!editorData.privacy]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <ytd-dropdown-renderer id="voting-input" data="[[editorData.voting.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" disabled="[[isCollabEngagementDisabled]]" hidden="[[!editorData.voting]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <div id="collaborate" class="style-scope ytd-playlist-settings-editor-renderer">\n        <yt-list-item-view-model data="[[editorData.collaborate.listItemViewModel]]" disabled="[[isCollabEngagementDisabled]]" hidden$="[[!editorData.collaborate]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-list-item-view-model>\n      </div>\n    </div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="actions" class="style-scope ytd-playlist-settings-editor-renderer">\n  <yt-button-view-model data="[[saveButton]]" scoping-class-name="[[is]]" on-click="onClickSave" class="style-scope ytd-playlist-settings-editor-renderer">\n  </yt-button-view-model>\n</div>\n');
R.content.insertBefore(_.t().content.cloneNode(!0),R.content.firstChild);VlK=R}R=VlK;return R},{mode:1});var iCa;_.Dl("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var WP=function(){return _.W.apply(this,arguments)||this};
_.O(WP,_.W);_.J=WP.prototype;_.J.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}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.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))};
_.J.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)}}};
_.J.onPopupOpened=function(R){R.detail!==this&&R.detail!==this.hostElement||!_.f("enable_premium_voluntary_pause")||_.Ik(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.J.onNextButtonTap=function(){var R=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);R&&this.ytdOpenPopupBehavior.openPopup(R)};
_.J.updateSelectedResponseIndexFromBinding=function(R){this.selectedResponseIndex=R.detail.value};
WP.prototype.onPopupOpened=WP.prototype.onPopupOpened;WP.prototype.onSelectedResponseIndexChange=WP.prototype.onSelectedResponseIndexChange;WP.prototype.dataChanged=WP.prototype.dataChanged;_.A([_.n(_.jc),_.p("design:type",Object)],WP.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],WP.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],WP.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],WP.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Number)],WP.prototype,"selectedResponseIndex",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],WP.prototype,"dataChanged",null);_.A([_.e0("selectedResponseIndex"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],WP.prototype,"onSelectedResponseIndexChange",null);
_.A([_.fu("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],WP.prototype,"onPopupOpened",null);_.A([_.q({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],WP);
_.m(WP,"ytd-red-cancel-survey-renderer",function(){if(iCa!==void 0)return iCa;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return iCa=R},{mode:1});var K3K;var dk=function(){var R=_.W.apply(this,arguments)||this;R.closeButtonAriaLabel=_.fo("SBOX_INAPPROPRIATE_CANCEL");return R};
_.O(dk,_.W);dk.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
dk.prototype.onClickClose=function(){_.Ik(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],dk.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],dk.prototype,"rendererStamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],dk.prototype,"data",void 0);_.A([_.r(),_.p("design:type",String)],dk.prototype,"closeButtonAriaLabel",void 0);_.A([_.q({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],dk);
_.m(dk,"ytd-search-filter-options-dialog-renderer",function(){if(K3K!==void 0)return K3K;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return K3K=R},{mode:1});var Iem;var PXm=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 Ua=function(){var R=_.W.apply(this,arguments)||this;R.qualityOptions=[];R.upsellOptions=[];R.showUpsellSection=!1;R.darkerDarkTheme=_.f("web_darker_dark_theme");R.rememberSettingsChecked=!1;return R};
_.O(Ua,_.W);_.J=Ua.prototype;_.J.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}}}}};
_.J.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.J.updateQualityOptions=function(){if(this.formats===void 0)_.Ik(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var R=[],y=[];this.showUpsellSection=!1;for(var u=_.V(this.formats),v=u.next();!v.done;v=u.next())(v=v.value)&&(v.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?y.push(v):R.push(v));R.length&&(this.qualityOptions=rda(R));y.length&&(this.showUpsellSection=!0,this.upsellOptions=rda(y))}};
_.J.updateRememberString=function(){if(this.downloadQualityPickerEntity)var R=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var y;R=(y=this.data)==null?void 0:y.premiumRememberSettingString}else{var u;R=(u=this.data)==null?void 0:u.rememberSettingString}R=R===void 0?_.fo("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):R;this.rememberSettingsCheckboxRenderer={title:_.Mq(R),disabled:!1}};
_.J.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.RR.Object.defineProperties(Ua.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var R;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(R=this.data)==null?void 0:R.qualityFormats}}});
Ua.prototype.updateRememberString=Ua.prototype.updateRememberString;Ua.prototype.updateQualityOptions=Ua.prototype.updateQualityOptions;Ua.prototype.dataChanged=Ua.prototype.dataChanged;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Ua.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Ua.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Ua.prototype,"data",void 0);
_.A([_.n(_.p6),_.p("design:type",Object)],Ua.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Boolean)],Ua.prototype,"selectedUpsellQuality",void 0);_.A([_.r({computed:"computeIcon_(data.premiumIcon)",value:""}),_.p("design:type",String)],Ua.prototype,"premiumIcon",void 0);_.A([_.r({selector:fxp,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.p("design:type",Object)],Ua.prototype,"downloadQualityPickerEntity",void 0);
_.A([_.r(),_.p("design:type",Array)],Ua.prototype,"qualityOptions",void 0);_.A([_.r(),_.p("design:type",Array)],Ua.prototype,"upsellOptions",void 0);_.A([_.r(),_.p("design:type",Object)],Ua.prototype,"showUpsellSection",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Ua.prototype,"darkerDarkTheme",void 0);_.A([_.r(),_.p("design:type",Object)],Ua.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.A([_.O7("#remember-settings"),_.p("design:type",HTMLInputElement)],Ua.prototype,"rememberSettingsCheckbox",void 0);_.A([_.r(),_.p("design:type",Object)],Ua.prototype,"rememberSettingsChecked",void 0);_.A([_.r(),_.p("design:type",Function)],Ua.prototype,"onRememberSettingsCheckedChanged",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ua.prototype,"dataChanged",null);
_.A([_.e0("downloadQualityPickerEntity"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ua.prototype,"updateQualityOptions",null);_.A([_.e0("selectedUpsellQuality"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ua.prototype,"updateRememberString",null);_.A([_.q({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],Ua);
_.m(Ua,"ytd-download-quality-selector-content",function(){if(Iem!==void 0)return Iem;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return Iem=R},{mode:1});var hQJ;var kp=function(){var R=_.W.apply(this,arguments)||this;R.selectedUpsellQuality=!1;R.qualityOptions=[];R.darkerDarkTheme=_.f("web_darker_dark_theme");R.useUpsellDismissAlternate=_.f("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(y){R.rememberSettingsChecked=y};
return R};
_.O(kp,_.W);_.J=kp.prototype;
_.J.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Mq(_.fo("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Mq(_.fo("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Mq(_.fo("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Mq(_.fo("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.J.updateQualityOptions=function(){this.formats===void 0?_.Ik(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=rda(this.formats)};
_.J.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 y=_.V(this.qualityOptions.entries()),u=y.next();!u.done;u=
y.next()){u=_.V(u.value);var v=u.next().value;u=u.next().value;var Q=void 0,M=void 0;if(((Q=u)==null?void 0:(M=Q.settingsRadioOptionRenderer)==null?void 0:M.id)===R){this.selectedQualityIndex=v;R=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((R=this.formats[v])==null?void 0:R.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.J.onClickSubmit=function(){var R;if((R=this.downloadButtonRenderer)==null||!R.isDisabled){var y,u;R=(u=(y=this.data)==null?void 0:y.onSubmitEndpoint)!=null?u:{};var v,Q;if(this.formats&&(((v=_.e(R,_.OC))==null?0:v.videoId)||((Q=_.e(R,_.ZO))==null?0:Q.playlistId))){var M,K,h,b,N,T;y={formatType:(b=(M=this.formats)==null?void 0:(K=M[(h=this.selectedQualityIndex)!=null?h:0])==null?void 0:K.format)!=null?b:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(N=this.getOfflineEndpoint(R))==null?void 0:(T=N.actionParams)==null?void 0:T.settingsAction)};this.getOfflineEndpoint(R).actionParams=y;this.ytComponentBehavior.resolveCommand(R)}_.Ik(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.J.onClickUpsell=function(){var R;if((R=this.upsellButtonRenderer)==null||!R.isDisabled){var y,u;R=(u=(y=this.data)==null?void 0:y.upsellEndpoint)!=null?u:{};this.ytComponentBehavior.resolveCommand(R);_.Ik(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);y="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var v,Q,M,K;y=(K=(v=this.formats)==null?void 0:(Q=v[(M=this.selectedQualityIndex)!=null?M:0])==null?void 0:Q.format)!=null?K:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:y}})}};
_.J.onClickClose=function(){_.Ik(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.J.getOfflineSettingsAction=function(R,y){return R?y===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":y:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.J.getOfflineEndpoint=function(R){return _.e(R,_.OC)?_.e(R,_.OC):_.e(R,_.ZO)};
_.RR.Object.defineProperties(kp.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.Mq(_.fo("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}}});
kp.prototype.updateQualityOptions=kp.prototype.updateQualityOptions;kp.prototype.dataChanged=kp.prototype.dataChanged;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],kp.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],kp.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],kp.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],kp.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],kp.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Number)],kp.prototype,"selectedQualityIndex",void 0);_.A([_.r(),_.p("design:type",Object)],kp.prototype,"selectedUpsellQuality",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],kp.prototype,"ytdReduxBehavior",void 0);
_.A([_.r({selector:fxp,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.p("design:type",Object)],kp.prototype,"downloadQualityPickerEntity",void 0);_.A([_.r(),_.p("design:type",Array)],kp.prototype,"qualityOptions",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],kp.prototype,"darkerDarkTheme",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],kp.prototype,"useUpsellDismissAlternate",void 0);
_.A([_.r(),_.p("design:type",Object)],kp.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.A([_.r(),_.p("design:type",Object)],kp.prototype,"downloadButtonRenderer",void 0);_.A([_.r(),_.p("design:type",Object)],kp.prototype,"upsellButtonRenderer",void 0);_.A([_.r(),_.p("design:type",Object)],kp.prototype,"cancelButtonRenderer",void 0);_.A([_.r(),_.p("design:type",Object)],kp.prototype,"upsellCancelButtonRenderer",void 0);_.A([_.r(),_.p("design:type",Object)],kp.prototype,"rememberSettings",void 0);
_.A([_.r(),_.p("design:type",Object)],kp.prototype,"rememberSettingsChecked",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],kp.prototype,"dataChanged",null);_.A([_.e0("downloadQualityPickerEntity"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],kp.prototype,"updateQualityOptions",null);_.A([_.q({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],kp);
_.m(kp,"ytd-download-quality-selector-renderer",function(){if(hQJ!==void 0)return hQJ;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return hQJ=R},{mode:1});var bCV;var Ea=function(){var R=_.W.apply(this,arguments)||this;R.darkerDarkTheme=_.f("web_darker_dark_theme");return R};
_.O(Ea,_.W);Ea.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ea.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Ea.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Ea.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Ea.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Ea.prototype,"darkerDarkTheme",void 0);_.A([_.r({computed:"computeIcon_(data.infoIcon)"}),_.p("design:type",Object)],Ea.prototype,"infoIcon",void 0);
_.A([_.r({computed:"computeIcon_(data.warningIcon)"}),_.p("design:type",Object)],Ea.prototype,"warningIcon",void 0);_.A([_.q({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Ea);
_.m(Ea,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(bCV!==void 0)return bCV;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return bCV=R},{mode:1});var F3a;var $p=function(){var R=_.W.apply(this,arguments)||this;R.darkerDarkTheme=_.f("web_darker_dark_theme");return R};
_.O($p,_.W);$p.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
$p.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],$p.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],$p.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],$p.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],$p.prototype,"darkerDarkTheme",void 0);_.A([_.q({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],$p);
_.m($p,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(F3a!==void 0)return F3a;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return F3a=R},{mode:1});var wMg;var qK=function(){var R=_.W.apply(this,arguments)||this;R.darkerDarkTheme=_.f("web_darker_dark_theme");return R};
_.O(qK,_.W);qK.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
qK.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"}}}}};
qK.prototype.onServiceRequestSentOrCompleted=function(R,y){y&&y.actions&&y.actions.length>0&&_.Ik(this.hostElement,"yt-close-popup-action",[this.is])};
qK.prototype.onServiceRequestSentOrCompleted=qK.prototype.onServiceRequestSentOrCompleted;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],qK.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],qK.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],qK.prototype,"darkerDarkTheme",void 0);_.A([_.r(),_.p("design:type",Object)],qK.prototype,"data",void 0);
_.A([_.fu("yt-service-request-completed"),_.fu("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Mp]),_.p("design:returntype")],qK.prototype,"onServiceRequestSentOrCompleted",null);_.A([_.q({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],qK);
_.m(qK,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(wMg!==void 0)return wMg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return wMg=R},{mode:1});var Nyo;var XG=function(){var R=_.W.apply(this,arguments)||this;R.darkerDarkTheme=_.f("web_darker_dark_theme");R.submitButtonDisabled=!0;return R};
_.O(XG,_.W);_.J=XG.prototype;_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.J.onDataChanged=function(){var R,y,u;if(((R=this.data)==null?void 0:(y=R.confirmButton)==null?void 0:(u=y.buttonRenderer)==null?void 0:u.isDisabled)!==void 0){var v,Q,M;this.submitButtonDisabled=(v=this.data)==null?void 0:(Q=v.confirmButton)==null?void 0:(M=Q.buttonRenderer)==null?void 0:M.isDisabled}};
_.J.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.J.updateSubmitButtonDisabledFromBinding=function(R){this.submitButtonDisabled=R.detail.value};
_.J.updateSubmitButtonDisabledFromConfirmCheckbox=function(R){this.submitButtonDisabled=!R.detail.value};
XG.prototype.onDataChanged=XG.prototype.onDataChanged;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],XG.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],XG.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],XG.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],XG.prototype,"darkerDarkTheme",void 0);
_.A([_.r(),_.p("design:type",Object)],XG.prototype,"submitButtonDisabled",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],XG.prototype,"onDataChanged",null);_.A([_.q({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],XG);
_.m(XG,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(Nyo!==void 0)return Nyo;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return Nyo=R},{mode:1});var Tym;var mA=function(){return _.W.apply(this,arguments)||this};
_.O(mA,_.W);_.RR.Object.defineProperties(mA.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var R,y,u;return((R=this.data)==null?void 0:R.title)+" "+((y=this.data)==null?void 0:y.metadataPrimary)+" "+((u=this.data)==null?void 0:u.metadataSecondary)}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],mA.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],mA.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],mA.prototype,"data",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],mA.prototype,"ariaLabel",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],mA);
_.m(mA,"ytd-compact-product-list-item-renderer",function(){if(Tym!==void 0)return Tym;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return Tym=R},{mode:1});var ona;var AC=function(){return _.W.apply(this,arguments)||this};
_.O(AC,_.W);AC.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]]"}}}}}};
_.RR.Object.defineProperties(AC.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],AC.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],AC.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],AC.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],AC.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],AC);
_.m(AC,"ytd-compact-product-list-renderer",function(){if(ona!==void 0)return ona;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return ona=R},{mode:1});var x7Z;var DS=function(){var R=_.W.apply(this,arguments)||this;R.darkerDarkTheme=_.f("web_darker_dark_theme");return R};
_.O(DS,_.W);_.J=DS.prototype;_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.J.getBackgroundUrl=function(){var R=this.get("data.headerImage.thumbnails");return R?"url("+_.b0(R,this.hostElement.clientWidth)+")":""};
_.J.onDataChanged=function(){var R=this.getBackgroundUrl();R&&(this.header.style.backgroundImage=R);R=_.$I();var y=_.Ef(),u=this.get("data.trackingParams");u&&y&&R&&_.ak(R,y,_.U4(u));R=_.V(this.hostElement.querySelectorAll("yt-img-shadow"));for(y=R.next();!y.done;y=R.next())y.value.onShow()};
_.J.onPopupClosed=function(R){_.vN(R).localName==="ytd-membership-post-cancel-renderer"&&_.Ik(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
DS.prototype.onPopupClosed=DS.prototype.onPopupClosed;DS.prototype.onDataChanged=DS.prototype.onDataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],DS.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],DS.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],DS.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],DS.prototype,"darkerDarkTheme",void 0);
_.A([_.O7("#header"),_.p("design:type",HTMLDivElement)],DS.prototype,"header",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DS.prototype,"onDataChanged",null);_.A([_.fu("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],DS.prototype,"onPopupClosed",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],DS);
_.m(DS,"ytd-membership-post-cancel-renderer",function(){if(x7Z!==void 0)return x7Z;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return x7Z=R},{mode:1});var ByI;var pO=function(){var R=_.W.apply(this,arguments)||this;R.darkerDarkTheme=_.f("web_darker_dark_theme");return R};
_.O(pO,_.W);pO.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
pO.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],pO.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],pO.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],pO.prototype,"darkerDarkTheme",void 0);_.A([_.O7("ytd-feedback-survey-renderer"),_.p("design:type",Object)],pO.prototype,"feedbackSurveyRenderer",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],pO);
_.m(pO,"ytd-sponsorship-confirm-cancel-content",function(){if(ByI!==void 0)return ByI;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return ByI=R},{mode:1});var fea;var tC=function(){var R=_.W.apply(this,arguments)||this;R.darkerDarkTheme=_.f("web_darker_dark_theme");R.maybeSubmitFeedback=function(){R.content&&R.content.maybeSubmitFeedback()};
return R};
_.O(tC,_.W);_.J=tC.prototype;_.J.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.J.onYtPopupOpened=function(R,y){y===this&&this.data&&this.data.onOpenCommands&&_.wr(this.hostElement,this.data.onOpenCommands,this.hostElement);_.Ik(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.J.onYtPopupClosed=function(R,y){(y&&y.canceled===!0||y&&y.canceled===!1&&y.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.wr(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.J.onYtServiceRequestCompleted=function(){_.Ik(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.J.onYtServiceRequestError=function(R){_.JG(this.hostElement,R.detail.error.message)};
_.J.onDataChanged=function(){if(this.isAttached){var R=this.backgroundUrl;R&&(_.hw(this.hostElement).querySelector("#header").style.backgroundImage=R)}};
_.RR.Object.defineProperties(tC.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var R=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return R?"url("+_.b0(R,this.hostElement.clientWidth)+")":""}}});
tC.prototype.onDataChanged=tC.prototype.onDataChanged;tC.prototype.onYtServiceRequestError=tC.prototype.onYtServiceRequestError;tC.prototype.onYtServiceRequestCompleted=tC.prototype.onYtServiceRequestCompleted;tC.prototype.onYtPopupClosed=tC.prototype.onYtPopupClosed;tC.prototype.onYtPopupOpened=tC.prototype.onYtPopupOpened;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],tC.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],tC.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],tC.prototype,"data",void 0);_.A([_.r({value:function(){return _.fo("SBOX_INAPPROPRIATE_CANCEL")}}),
_.p("design:type",String)],tC.prototype,"closeButtonAriaLabel",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],tC.prototype,"darkerDarkTheme",void 0);_.A([_.O7("#scrollable"),_.p("design:type",Object)],tC.prototype,"scrollable",void 0);_.A([_.O7("ytd-sponsorship-confirm-cancel-content"),_.p("design:type",Object)],tC.prototype,"content",void 0);
_.A([_.fu("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],tC.prototype,"onYtPopupOpened",null);_.A([_.fu("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],tC.prototype,"onYtPopupClosed",null);
_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],tC.prototype,"onYtServiceRequestCompleted",null);_.A([_.fu("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],tC.prototype,"onYtServiceRequestError",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],tC.prototype,"onDataChanged",null);
_.A([_.q({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],tC);
_.m(tC,"ytd-sponsorship-confirm-cancel-renderer",function(){if(fea!==void 0)return fea;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return fea=R},{mode:_.TN("kevlar_poly_si_batch_j081")?1:2});var eQ8;var cP=function(){var R=_.W.apply(this,arguments)||this;R.darkerDarkTheme=_.f("web_darker_dark_theme");return R};
_.O(cP,_.W);cP.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],cP.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],cP.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],cP.prototype,"darkerDarkTheme",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],cP);
_.m(cP,"ytd-sponsorships-celebration-content",function(){if(eQ8!==void 0)return eQ8;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return eQ8=
R},{mode:1});var leg;var OC7=_.RE(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),ao=function(){var R=_.W.apply(this,arguments)||this;R.scriptsAppended=!1;R.buttonOverrides={type:"tonal",style:"overlay-dark"};return R};
_.O(ao,_.W);_.J=ao.prototype;
_.J.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:_.f("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}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.onDataChanged=function(){var R;(R=this.header)==null||R.style.setProperty("background-color",this.backgroundColor);if(R=this.headerImageUrl){var y;(y=this.header)==null||y.style.setProperty("background-image",R)}y=_.$I(4);R=_.Ef(4);var u=this.get("data.trackingParams");if(u&&R&&y){var v=_.U4(u);_.ak(y,R,v);_.f("combine_ve_grafts")?_.GN().graftServerVe(u,R,4):_.ak(y,R,v)}y=_.V(this.hostElement.querySelectorAll("yt-img-shadow"));for(R=y.next();!R.done;R=y.next())R.value.onShow();if(y=this.get("data.gtmId"))_.qL(y,
_.EB("GL","")),this.setupConversionTracking()};
_.J.setupConversionTracking=function(){if(!this.scriptsAppended){var R=document.createElement("script");var y=_.LK(OC7.join(""));_.zB(R,y);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}};
_.J.onPopupClosed=function(R){if(_.vN(R).localName==="ytd-sponsorships-celebration-renderer"){_.Ik(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var y;this.data&&((y=this.data)==null?0:y.dismissCommand)&&_.lX.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.RR.Object.defineProperties(ao.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var R=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.Sq(R)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var R=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return R?"url("+_.b0(R,this.hostElement.getBoundingClientRect().width)+")":""}}});
ao.prototype.onPopupClosed=ao.prototype.onPopupClosed;ao.prototype.onDataChanged=ao.prototype.onDataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ao.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],ao.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ao.prototype,"data",void 0);_.A([_.O7("#header"),_.p("design:type",HTMLElement)],ao.prototype,"header",void 0);
_.A([_.r(),_.p("design:type",Object)],ao.prototype,"scriptsAppended",void 0);_.A([_.r(),_.p("design:type",Object)],ao.prototype,"buttonOverrides",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ao.prototype,"onDataChanged",null);_.A([_.fu("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],ao.prototype,"onPopupClosed",null);
_.A([_.q({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],ao);
_.m(ao,"ytd-sponsorships-celebration-renderer",function(){if(leg!==void 0)return leg;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return leg=R},{mode:1});var ZCm;var SR=function(){var R=_.W.apply(this,arguments)||this;R.isToggleChecked=!1;return R};
_.O(SR,_.W);SR.prototype.onDataChanged=function(){var R;this.isToggleChecked=((R=this.data)==null?void 0:R.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
SR.prototype.close=function(){var R;((R=this.data)==null?0:R.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
SR.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var R,y=_.e((R=this.data)==null?void 0:R.switchButton,wR7);y&&(this.isToggleChecked&&y.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(y.switchOnInnertubeCommand),!this.isToggleChecked&&y.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(y.switchOffInnertubeCommand))};
SR.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
SR.prototype.onDataChanged=SR.prototype.onDataChanged;_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],SR.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],SR.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],SR.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],SR.prototype,"isToggleChecked",void 0);_.A([_.r({value:_.fo("CLOSE")}),_.p("design:type",String)],SR.prototype,"closeButtonAriaLabel",void 0);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],SR.prototype,"onDataChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],SR);
_.m(SR,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(ZCm!==void 0)return ZCm;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return ZCm=R},{mode:1});var HCM;var Yp=function(){return _.W.apply(this,arguments)||this};
_.O(Yp,_.W);_.J=Yp.prototype;_.J.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"}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.detached=function(){this.playerElement.stop()};
_.J.onYtServiceRequestCompleted=function(){_.Ik(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.J.onYtServiceRequestError=function(R){_.JG(this.hostElement,R.detail.error.message)};
_.J.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.J.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.J.getTier=function(R,y){return!R||!R.tiers||y<0?null:_.e(R.tiers[y],xJa)};
_.J.moreThanOne=function(R){return!!(R&&R.length>1)};
_.J.tierOverviewTap=function(R){var y=this;this.selectedTier=R.model.index;_.gn(this,function(){_.Ko(y.hostElement,"yt-refit")})};
_.J.computeSelectedClass=function(R,y){return this.isSelected(R,y)?"selected":""};
_.J.computeButtonAriaPressed=function(R,y){return this.isSelected(R,y)?"true":"false"};
_.J.isSelected=function(R,y){return R===y};
_.J.onDataChanged=function(){_.hw(this.hostElement).querySelector("#header-overlay").style.visibility="";_.hw(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=_.V(this.hostElement.querySelectorAll("yt-img-shadow")),
y=R.next();!y.done;y=R.next())y.value.onShow();var u;this.set("selectedTier",(u=this.get("data.targetTierIndex"))!=null?u:0);var v;(R=(v=this.data)==null?void 0:v.onVisible)&&this.ytComponentBehavior.resolveCommand(R)};
_.J.initializeVe=function(R){var y=_.$I(),u=_.Ef(),v=this.get("data.trackingParams");u&&y&&(this.screenLayer=4,y=_.A7(_.b2z)(void 0,69877,{clientScreenNonce:y,visualElement:u},void 0,void 0,void 0),_.Xc(y,69877,4),u=_.Ef(4),v&&u&&(v=_.U4(v),_.ak(y,u,v),R&&(this.offerVideoVe=_.$6(74659),_.ak(y,v,this.offerVideoVe))))};
_.J.setHeaderBackground=function(){var R=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.hw(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.Sq(R);if(R=this.getHeaderImage())R=_.b0(R,screen.width),_.hw(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+R+")"};
_.J.getHeaderImage=function(){var R=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&R?R:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.J.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.J.setupVideoPlayer=function(R){var y=this,u,v,Q,M;return _.I(function(K){if(K.nextAddress==1)return u=y.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),v=y.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.f("kevlar_player_update_killswitch")?y.playerElement.update({args:{autoplay:u,video_id:R,player_params:v}}):y.playerElement.loadVideoWithPlayerVars({autoplay:u,video_id:R,player_params:v}),
K.yield(y.playerElement.getPlayerPromise(),2);Q=K.yieldResult;Q.addEventListener("onStateChange",function(h){y.onPlayerStateChange(h)});
Q.setScreenLayer(y.screenLayer);(M=_.$I(4))&&y.offerVideoVe&&_.YF(M,y.offerVideoVe);u&&(y.pauseOtherPlayers(),y.playerElement.focusOnPlayer(),y.playerElement.getPlayer().hideControls(),_.Oh(_.WG,function(){y.fadeOutHeaderOverlay()},4E3));
_.f$(K)})};
_.J.onPlayerStateChange=function(R){R===1?this.backgroundPlayerElement&&(R=this.backgroundPlayerElement.player_.getPlayerState(),R!==1&&R!==3||this.backgroundPlayerElement.pause()):R===0&&(_.hw(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.hw(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.J.fadeOutHeaderOverlay=function(){_.hw(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.J.onHeaderTap=function(){if(this.offerVideo){_.hw(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=_.$I(4))&&this.offerVideoVe&&_.zP(R,this.offerVideoVe)}};
_.J.getBackgroundImageLayerClass=function(R){return R?"background-image-layer-with-video":""};
_.J.getHeaderClass=function(R){return R?"header-with-video":""};
_.J.getHeaderOverlayClass=function(R){return R?"header-overlay-with-video":""};
_.J.getTitleContainerClass=function(R,y){return R?"title-container-with-video":y?"title-container-without-video-flexible":"title-container-without-video"};
_.J.tierTitleDisplayStatus=function(R){return this.moreThanOne(R)?"hide":"show"};
_.J.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.ua().resolve(_.cZ).getPlayerElement():this.backgroundPlayerElement=_.I8();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var R=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=R===1||R===3;this.backgroundPlayerElement.pause()}};
_.J.isMiniplayerActive=function(){return _.ua().resolve(_.cZ).isMiniplayerActive()};
_.J.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.CQ("selected-tier-changed",this.selectedTier))};
Yp.prototype.selectedTierChangedForBinding=Yp.prototype.selectedTierChangedForBinding;Yp.prototype.onDataChanged=Yp.prototype.onDataChanged;Yp.prototype.onYtPopupClosed=Yp.prototype.onYtPopupClosed;Yp.prototype.onYtPopupOpened=Yp.prototype.onYtPopupOpened;Yp.prototype.onYtServiceRequestError=Yp.prototype.onYtServiceRequestError;Yp.prototype.onYtServiceRequestCompleted=Yp.prototype.onYtServiceRequestCompleted;
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Yp.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Yp.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Yp.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Yp.prototype,"data",void 0);_.A([_.r({value:0}),_.p("design:type",Number)],Yp.prototype,"selectedTier",void 0);
_.A([_.r({value:""}),_.p("design:type",String)],Yp.prototype,"offerVideo",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],Yp.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.A([_.r({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.YS(this)}}),
_.p("design:type",String)],Yp.prototype,"playerId",void 0);_.A([_.O7("tp-yt-paper-dialog-scrollable"),_.p("design:type",Object)],Yp.prototype,"scrollable",void 0);_.A([_.O7("ytd-sponsorships-tier-renderer"),_.p("design:type",Object)],Yp.prototype,"tierRenderer",void 0);_.A([_.O7("#player"),_.p("design:type",Object)],Yp.prototype,"playerElement",void 0);
_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Yp.prototype,"onYtServiceRequestCompleted",null);_.A([_.fu("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Yp.prototype,"onYtServiceRequestError",null);
_.A([_.fu("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Yp.prototype,"onYtPopupOpened",null);_.A([_.fu("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Yp.prototype,"onYtPopupClosed",null);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Yp.prototype,"onDataChanged",null);
_.A([_.e0("selectedTier"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Yp.prototype,"selectedTierChangedForBinding",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],Yp);
_.m(Yp,"ytd-sponsorships-offer-renderer",function(){if(HCM!==void 0)return HCM;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return HCM=R},{mode:_.TN("kevlar_poly_si_batch_j077")?1:2});var nno;var LO=function(){var R=_.W.apply(this,arguments)||this;R.buttonOverrides={type:"filled",style:"mono"};return R};
_.O(LO,_.W);LO.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}}}}}};
LO.prototype.backgroundColorChanged=function(){var R,y,u,v=(y=_.e((R=this.data)==null?void 0:R.content,BjK))==null?void 0:(u=y.backgroundColor)==null?void 0:u.backgroundColor;v&&(R=_.aH(v),_.hw(this.hostElement).querySelector("#banner").style.backgroundColor=R,_.hw(this.hostElement).querySelector("#abstract-art").style.backgroundColor=R)};
LO.prototype.attached=function(){this.JSC$20492_scroller&&(this.JSC$20492_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20492_scroller.attached&&typeof this.JSC$20492_scroller.attached==="function"&&this.JSC$20492_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
LO.prototype.backgroundColorChanged=LO.prototype.backgroundColorChanged;_.A([_.r(),_.p("design:type",Object)],LO.prototype,"data",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],LO.prototype,"ytRendererstamperBehavior",void 0);_.A([_.O7("#scroller"),_.p("design:type",Object)],LO.prototype,"JSC$20492_scroller",void 0);_.A([_.r(),_.p("design:type",Object)],LO.prototype,"buttonOverrides",void 0);
_.A([_.e0("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],LO.prototype,"backgroundColorChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],LO);
_.m(LO,"ytd-sponsorships-promotion-celebration-renderer",function(){if(nno!==void 0)return nno;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return nno=R},{mode:_.TN("kevlar_poly_si_batch_j077")?1:2});var GbI;var rMo;var sa=function(){return _.W.apply(this,arguments)||this};
_.O(sa,_.W);sa.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
sa.prototype.computeIsInitiallyChecked=function(R){return R===1};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],sa.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],sa.prototype,"data",void 0);_.A([_.O7("#checkbox"),_.p("design:type",Object)],sa.prototype,"checkbox",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],sa);
_.m(sa,"ytd-subscription-toggle-option-renderer",function(){if(rMo!==void 0)return rMo;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return rMo=R},{mode:1});var zV=function(){var R=_.W.apply(this,arguments)||this;R.darkerDarkTheme=_.f("web_darker_dark_theme");R.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return R};
_.O(zV,_.W);zV.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"}}}};
zV.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
zV.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var R=_.hw(this.hostElement).querySelector("#options").selected;R=this.data.options[R].subscriptionRadioOptionRenderer.serviceEndpoint;var y=_.hw(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");y&&R&&R.modifyChannelNotificationPreferenceEndpoint&&(y=y.getValue())&&(R.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[y]);_.ua().resolve(_.jX).resolveCommand(R,{form:{element:this.hostElement}});
_.Ik(this.hostElement,"yt-close-popup-action")};
_.RR.Object.defineProperties(zV.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var R=this.data.options,y=0;y<R.length;y++){var u=R[y].subscriptionRadioOptionRenderer;if(u&&u.selected)return y}return null}}});
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],zV.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],zV.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.GZ.YtEventForwardingBehavior),_.p("design:type",Object)],zV.prototype,"eventForwardingBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],zV.prototype,"ytRendererBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],zV.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],zV.prototype,"darkerDarkTheme",void 0);_.A([_.G("data.options"),_.p("design:type",Object),_.p("design:paramtypes",[])],zV.prototype,"initialIndex",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],zV);
_.m(zV,"ytd-subscription-notification-options-renderer",function(){if(GbI!==void 0)return GbI;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return GbI=R},{mode:1});var PIP;var gk=function(){return _.W.apply(this,arguments)||this};
_.O(gk,_.W);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],gk.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],gk.prototype,"data",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],gk);
_.m(gk,"ytd-tvfilm-offer-groups-renderer",function(){if(PIP!==void 0)return PIP;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return PIP=R},{mode:1});var W3H;var CO=function(){var R=_.W.apply(this,arguments)||this;R.darkerDarkTheme=_.f("web_darker_dark_theme");return R};
_.O(CO,_.W);_.J=CO.prototype;_.J.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"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.J.computeThumbnailClass=function(R){return R.thumbnailOverlays?R.isShow?"thumbnail-show":"thumbnail-movie":R.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.J.computeCommerceSectionClass=function(R){return R.offers&&R.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.J.computeTitleClass=function(R){return R.offers&&R.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.J.onDataChanged=function(){[].concat(_.P$(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(R){R.onShow()})};
CO.prototype.onDataChanged=CO.prototype.onDataChanged;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],CO.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],CO.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],CO.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],CO.prototype,"darkerDarkTheme",void 0);
_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],CO.prototype,"onDataChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],CO);
_.m(CO,"ytd-ypc-offers-overlay-renderer",function(){if(W3H!==void 0)return W3H;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return W3H=R},{mode:_.TN("kevlar_poly_si_batch_j028")?1:2});var d7J;var U7g=function(){this.usedMethods=new Set};
U7g.prototype.add=function(R){this.usedMethods.add(R)};
U7g.prototype.reset=function(){this.usedMethods.clear()};var $7V=function(R,y){this.query=R;this.previousSearchQuery=y;this.id=kbZ++;if(!EnM){y=_.EB("SBOX_SETTINGS");R="https://"+((y==null?void 0:y.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var u=y==null?void 0:y.REQUEST_LANGUAGE;u&&(R+="&hl="+u);(u=y==null?void 0:y.REQUEST_DOMAIN)&&(R+="&gl="+u);R+="&client=youtube&gs_ri=youtube";(u=y==null?void 0:y.SUGG_EXP_ID)&&(R+="&sugexp="+encodeURIComponent(u));(u=y==null?void 0:y.PSUGGEST_TOKEN)&&(R+="&tok="+u);(y=
y==null?void 0:y.SESSION_INDEX)&&(R+="&authuser="+y);_.f("desktop_enable_visual_suggest")&&(R+="&h=180&w=320&ytvs=1");EnM=R}},qNH=function(R){var y="q="+encodeURIComponent(R.query);
R.previousSearchQuery&&(y+="&pq="+encodeURIComponent(R.previousSearchQuery));return y},XMI=function(){var R=_.EB("SBOX_SETTINGS"),y={};
if(R==null?0:R.SEND_VISITOR_DATA)y["X-Goog-Visitor-Id"]=R==null?void 0:R.VISITOR_DATA;return y},m7P=function(R){var y=EnM;
y+="&gs_id="+R.id.toString(36);y+="&q="+encodeURIComponent(R.query);y+="&cp="+R.query.length;R.previousSearchQuery&&(y+="&pq="+encodeURIComponent(R.previousSearchQuery));(R=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(y+="&video_id="+R);return y},kbZ=0,EnM="";var AMJ=_.Km.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,D7V=_.Km.SEARCH_ENTITY_SUGGESTION_MOVIE,pMJ=_.Km.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,tlo=_.Km.SEARCH_ENTITY_SUGGESTION_TV_SHOW,cMo=function(R,y){this.text=R;this.bold=y},aep=function(R,y,u){this.input=y;
this.index=u;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=R[0];this.type=R[1];this.subtypes=R[2];var v;this.displayText=x3((v=R[3])==null?void 0:v.b);var Q;this.ignoredPrefix=x3((Q=R[3])==null?void 0:Q.a);var M,K;this.hasNewVideo=((M=R[3])==null?void 0:(K=M.zam)==null?void 0:K.toString())==="true"?!0:!1;var h;this.visualSuggestUrl=(h=R[3])==null?void 0:h.zai;var b;this.entityType=x3((b=R[3])==null?void 0:b.zap);var N;this.entityName=x3((N=R[3])==null?void 0:N.zao);var T;y=x3((T=
R[3])==null?void 0:T.zaf);var x;this.entityMid=(x=R[3])==null?void 0:x.zae;T=dkZ(this.subtypes,this.entityMid);if(y&&T){if(y){x="";switch(T){case "YOUTUBE_ENTITY_TYPE_SONG":x=pMJ;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":x=AMJ;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":x=tlo;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":x=D7V}T=T==="YOUTUBE_ENTITY_TYPE_SONG"||T==="YOUTUBE_ENTITY_TYPE_ALBUM"?x+" \u2022  \u2022 "+y:y}else T="";this.entitySubtitle=T}var B;this.externalChannelId=(B=R[3])==null?void 0:B.zav;var l;
this.entityThumbnailAttributionUrl=(l=R[3])==null?void 0:l.zaq},YNH=function(R,y){var u=[],v,Q=(v=R.displayText)!=null?v:R.text;
(y==null?0:y.useEntityName)&&SNJ(R)&&R.entityName&&(Q=R.entityName);if(R.type===33)return u.push(new cMo(Q,!1)),u;if(Q.length>=R.input.length&&Q.substring(0,R.input.length)===R.input)u.push(new cMo(R.input,!1)),u.push(new cMo(Q.substring(R.input.length),!0));else{var M=new Set(R.input.split(/\s/)),K=Q.split(/\s/);u=K.map(function(h,b){return new cMo(h.trim()+(b===K.length-1?"":" "),!M.has(h))})}return u},SNJ=function(R){var y=!!dkZ(R.subtypes);
R=!!R.entityMid;return y||R};var L3J=function(R){this.rawResponse=["",[],{}];this.suggestions=[];try{var y=JSON.parse(Uka(R));if(typeof y==="object"&&y!==null)this.rawResponse=y;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(v){console.log("Suggest: Failed to parse SuggestResponse!");return}var u=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(v,Q){return new aep(v,u,Q)})};var sAo=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new U7g;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20529_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},zQg,gnH=function(){zQg||(zQg=new sAo);
return zQg};
sAo.prototype.updateSuggestions=function(R){var y=this;this.availableSuggestions.forEach(function(u){y.previousSuggestions[u]=!0});
this.availableSuggestions=R.map(function(u){var v=u.type.toString();u.subtypes.length>0&&(v+="i"+u.subtypes.join("i"),v+="k"+u.suggestionSources.COMPLETE_SERVER.toString());return v})};
var CIH=function(R,y){var u=Date.now();R.firstEditTime<0&&(R.firstEditTime=u);y&&(R.lastQueryBuildTime=u);R.lastEditTime=u};
sAo.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20529_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var Rag=function(R){var y="";R.availableSuggestions.forEach(function(Q){delete R.previousSuggestions[Q]});
for(var u=_.V(Object.keys(R.previousSuggestions)),v=u.next();!v.done;v=u.next())v=v.value,R.previousSuggestions[v]&&(y+=(y?"j":"")+v);return y},yuI=function(R,y){var u=[];
y&&(u[1]=y.toString());u[0]="youtube";u[7]=Date.now()-R.startTime;u[6]=R.sessionNumber;R.zeroPrefixSuggestionCount>=0&&(u[33]=R.zeroPrefixSuggestionCount);u[13]=R.outOfSyncResponseCount;if(R.availableSuggestions.length>0){for(var v=y="",Q=0,M=_.V(R.availableSuggestions),K=M.next();!K.done;K=M.next())K=K.value,K!==v&&(Q>1&&(y+="l"+Q),y+=(v?"j":"")+K,Q=0,v=K),Q+=1;Q>1&&(y+="l"+Q);u[3]=y}u[35]=Rag(R);R.selectedSuggestionIndex>=0&&(u[2]=R.selectedSuggestionIndex);var h;if(y=(h=_.EB("SBOX_SETTINGS"))==
null?void 0:h.SUGG_EXP_ID)u[19]=R.normalize(y),h=0,R.experimentTriggeredBeforeFinal&&(h|=1),R.experimentTriggeredFinal&&(h|=2),u[20]=h;u[26]=Array.from(R.inputMethodsTracker.usedMethods).join("j");if(R.JSC$20529_totalRoundTripTime>0){u[15]=R.JSC$20529_totalRoundTripTime;u[14]=R.maxRoundTripTime;h=[];for(Q=y=0;Q<10;Q++)v=R.roundTripTimeHistogram[Q],v===0?y++:(y>1?h.push(Q+"-"+v):y===1?h.push("0j"+v):h.push(v.toString()),y=0);h=h.join("j");u[16]=h}R.zeroPrefixRoundTripTime>0&&(u[36]=R.zeroPrefixRoundTripTime);
R.lastQueryBuildTime>0&&(u[18]=R.lastQueryBuildTime-R.startTime);R.firstEditTime>0&&(u[4]=R.firstEditTime-R.startTime);R.lastEditTime>0&&(u[5]=R.lastEditTime-R.startTime);return u.join(".")};
sAo.prototype.normalize=function(R){return R.replaceAll(".","-")};
var uFM=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var RT=function(){var R=_.W.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};
_.O(RT,_.W);_.J=RT.prototype;_.J.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.J.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=cpZ()};
_.J.dataChanged=function(){this.logDialog()};
_.J.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var R;(R=this.manager.audioPlayer)!=null&&(R.JSC$19819_audioEnabled=!1)}this.manager.stop();(R=this.manager.audioPlayer)!=null&&(R.JSC$19819_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.J.handleSpeechQueryCompleteAction=function(R){var y=R.navigationAction;y&&(R.trackingParams&&_.GN().graftServerVe(R.trackingParams,this.dialogVe,5),_.Ko(this.hostElement,"yt-navigate",{endpoint:y,tempData:this.getNavigationParams(y),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.J.onExitButtonClick=function(){this.closeDialog()};
_.J.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var R;if((R=this.manager)!=null){var y;(y=R.audioPlayer)==null||yg(y,"failure");R.setState("microphone-off");R.stop()}}else(R=this.manager)==null||R.start()};
_.J.transcriptionChanged=function(){var R,y;(((R=this.transcription)==null?0:R.low)||((y=this.transcription)==null?0:y.high))&&this.setState("transcribing",this.transcription)};
_.J.stateChanged=function(){this.setState(this.state,this.transcription)};
_.J.logDialog=function(){var R;(R=this.data)!=null&&R.trackingParams&&(R=_.GN(),_.om(R,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=R.graftServerVe(this.data.trackingParams,void 0,5))};
_.J.getNavigationParams=function(R){var y={};if(_.f("web_yt_searchbox")){var u=gnH();u.inputMethodsTracker.add(6);u=yuI(u,15);y.gs_l=u;var v;y.oq=((v=_.e(R,_.nc))==null?void 0:v.query)||""}else if(R=window.ytvoicesearchloggingparams){if(R=R())y.oq=R.oq,y.gs_l=R.gs_l}else _.pG(Error("nl"));return y};
_.J.closeDialog=function(){_.Ik(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.J.setState=function(R,y){if(this.data){var u=this.data,v={};switch(R){case "listening":v={headerText:u.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:u.microphoneButtonAriaLabel};break;case "timeout":v={headerText:u.promptHeader,microphoneState:"try-again",microphoneLabel:u.promptMicrophoneLabel,microphoneAriaLabel:u.promptMicrophoneLabel};break;case "microphone-off":v={headerText:u.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:u.promptMicrophoneLabel,
microphoneAriaLabel:u.promptMicrophoneLabel};break;case "transcribing":(y==null?0:y.low)||(y==null?0:y.high)?v={transcriptionLow:y==null?void 0:y.low,transcriptionHigh:y==null?void 0:y.high,microphoneState:"speaking",microphoneAriaLabel:u.microphoneButtonAriaLabel}:v={headerText:u.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:u.microphoneButtonAriaLabel};break;case "processing":v={headerText:u.loadingHeader,microphoneState:"processing",microphoneAriaLabel:u.microphoneButtonAriaLabel};
break;case "offline":v={headerText:u.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:u.connectionErrorMicrophoneLabel,microphoneAriaLabel:u.connectionErrorMicrophoneLabel};break;case "permission":v={headerText:u.permissionsHeader,bodyLine1:u.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:u.permissionsSubtext};break;case "permission-denied":v={headerText:u.disabledHeader,bodyLine1:u.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:u.disabledSubtext}}v.className=
R;this.speechOverlayState=v;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.J.setMicrophoneState=function(R){var y=this.isLevelAnimating;this.isLevelAnimating=R==="speaking";!y&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=R==="processing"&&!this.noAnimations};
_.J.setClass=function(R){this.speechOverlayClassName&&_.FN(this.hostElement,this.speechOverlayClassName,!1);R&&(this.speechOverlayClassName=R,_.FN(this.hostElement,R,!0))};
_.J.runLevelAnimation=function(){var R=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var y=1+Math.random()*.75,u=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+u/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+y+")");_.WG.addJob(function(){R.runLevelAnimation()},3,u)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
RT.prototype.stateChanged=RT.prototype.stateChanged;RT.prototype.transcriptionChanged=RT.prototype.transcriptionChanged;RT.prototype.onPopupClosed=RT.prototype.onPopupClosed;RT.prototype.dataChanged=RT.prototype.dataChanged;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],RT.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],RT.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],RT.prototype,"rendererStamperBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],RT.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.GZ.YtEventForwardingBehavior),_.p("design:type",Object)],RT.prototype,"eventForwardingBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],RT.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],RT.prototype,"speechOverlayState",void 0);
_.A([_.r(),_.p("design:type",Object)],RT.prototype,"microphoneSpinnerActive",void 0);_.A([_.r({type:_.f("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.p("design:type",Object)],RT.prototype,"noAnimations",void 0);_.A([_.r({selector:function(R){var y;return(y=R.voiceSearch)==null?void 0:y.transcription}}),
_.p("design:type",Object)],RT.prototype,"transcription",void 0);_.A([_.r({selector:function(R){var y;return(y=R.voiceSearch)==null?void 0:y.overlay}}),
_.p("design:type",String)],RT.prototype,"state",void 0);_.A([_.r(),_.p("design:type",Object)],RT.prototype,"boundExitClick",void 0);_.A([_.O7("#microphone-levels"),_.p("design:type",HTMLElement)],RT.prototype,"level",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],RT.prototype,"dataChanged",null);_.A([_.fu("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],RT.prototype,"onPopupClosed",null);
_.A([_.GJ("transcription"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],RT.prototype,"transcriptionChanged",null);_.A([_.GJ("state"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],RT.prototype,"stateChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],RT);
_.m(RT,"ytd-voice-search-dialog-renderer",function(){if(d7J!==void 0)return d7J;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return d7J=R},{mode:1});var v5V;var yJ=function(){var R=_.W.apply(this,arguments)||this;R.isOverlay=!1;R.hidden=!1;return R};
_.O(yJ,_.W);_.J=yJ.prototype;_.J.onPopupClosed=function(){this.toggleIconState(!1)};
_.J.computeIcon=function(){var R,y,u;return(y=_.e((R=this.data)==null?void 0:R.icon,ZQZ))==null?void 0:(u=y.icon)==null?void 0:u.iconType};
_.J.computeIconBadgeShape=function(){var R;return{iconBadgeType:"cart",iconBadgeText:(R=this.iconBadgeEntity)==null?void 0:R.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.J.onClick=function(){var R;(R=this.data)!=null&&R.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.J.computeHidden=function(R){return!R};
_.J.toggleIconState=function(R){this.iconButton&&(this.iconButton.pressed=R)};
yJ.prototype.onPopupClosed=yJ.prototype.onPopupClosed;_.A([_.n(_.p6),_.p("design:type",Object)],yJ.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],yJ.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],yJ.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],yJ.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],yJ.prototype,"isOverlay",void 0);
_.A([_.r({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.p("design:type",Object)],yJ.prototype,"hidden",void 0);_.A([_.r({selectorArgs:["data.iconBadgeEntityKey"],selector:function(R,y){return _.TI(R.entities,"iconBadgeEntity",y)}}),
_.p("design:type",Object)],yJ.prototype,"iconBadgeEntity",void 0);_.A([_.O7("yt-icon-button"),_.p("design:type",HTMLButtonElement)],yJ.prototype,"iconButton",void 0);_.A([_.fu("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],yJ.prototype,"onPopupClosed",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],yJ);
_.m(yJ,"ytd-icon-badge-topbar-button-renderer",function(){if(v5V!==void 0)return v5V;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return v5V=R},{mode:1});var QY7;var ui=function(){var R=_.W.apply(this,arguments)||this;R.premiumOptions=[];R.darkerDarkTheme=_.f("web_darker_dark_theme");return R};
_.O(ui,_.W);ui.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.RR.Object.defineProperties(ui.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],ui.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ui.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Array)],ui.prototype,"premiumOptions",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],ui.prototype,"darkerDarkTheme",void 0);_.A([_.G("premiumOptions"),_.p("design:type",Object),_.p("design:paramtypes",[])],ui.prototype,"hasPremiumOptions",null);
_.A([_.q({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],ui);
_.m(ui,"ytd-offline-promo-content",function(){if(QY7!==void 0)return QY7;var R=document.createElement("template");_.H(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="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');R.content.insertBefore(_.t().content.cloneNode(!0),
R.content.firstChild);return QY7=R},{mode:1});var jYo;var vB=function(){var R=_.W.apply(this,arguments)||this;R.premiumOptions=[];return R};
_.O(vB,_.W);vB.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var R;this.premiumOptions=WNK((R=this.data)==null?void 0:R.formats)};
vB.prototype.onClickSubmit=function(){_.Ik(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var R;(R=_.I8())==null||R.pause()};
vB.prototype.attached=function(){this.JSC$20549_scroller&&(this.JSC$20549_scroller.dialogElement=this.hostElement.parentNode)};
_.RR.Object.defineProperties(vB.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
vB.prototype.dataChanged=vB.prototype.dataChanged;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],vB.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],vB.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],vB.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],vB.prototype,"data",void 0);
_.A([_.r({computed:"computeIcon_(data.headersIcon)",value:""}),_.p("design:type",String)],vB.prototype,"headersIcon",void 0);_.A([_.r(),_.p("design:type",Array)],vB.prototype,"premiumOptions",void 0);_.A([_.O7("#scroller"),_.p("design:type",Object)],vB.prototype,"JSC$20549_scroller",void 0);_.A([_.G("headersIcon"),_.p("design:type",Object),_.p("design:paramtypes",[])],vB.prototype,"showIcon",null);
_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],vB.prototype,"dataChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],vB);
_.m(vB,"ytd-offline-promo-renderer",function(){if(jYo!==void 0)return jYo;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return jYo=R},{mode:1});var MOV;var QJ=function(){var R=_.W.apply(this,arguments)||this;R.playbackPauseInterval=NaN;R.isLoading=!1;R.hasError=!1;R.dialogClass="";R.youtubeLabel=_.fo("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};
_.O(QJ,_.W);_.J=QJ.prototype;_.J.onDataChange=function(){var R;if(this.showEOMV1Text=!((R=this.data)==null||!R.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.J.attached=function(){this.pausePlayer()};
_.J.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.J.handleLangSelect=function(R){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[R.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.J.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.J.handleSaveConsent=function(R){var y=this;this.showLoadingSpinner();this.showLoadingSpinner();Kbm(_.e(R,HlP)).catch(function(u){_.kT(new _.OL("Something went wrong when save consent "+(u.message?u.message:u)+"."));y.hideLoadingSpinner();y.showErrorMessage()})};
_.J.handleDisablePersonalization=function(R){var y=this;this.showLoadingSpinner();IxM(_.e(R,ZlI)).then(function(){y.dialog.close();y.resumePlayer()}).catch(function(u){_.kT(new _.OL("Something went wrong when disable personalization "+(u.message?u.message:u)+"."));
y.hideLoadingSpinner();y.showErrorMessage()})};
_.J.showLoadingSpinner=function(){var R=this;this.showSpinnerJobId=_.WG.addLowPriorityJob(function(){R.isLoading=!0},500)};
_.J.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.WG.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.J.showErrorMessage=function(){var R=this;this.hasError=!0;_.WG.addLowPriorityJob(function(){R.hasError=!1},2E3)};
_.J.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.hT(function(){try{var R=_.I8();R&&R.pause()}catch(y){}},100))};
_.J.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var R=_.I8();R&&R.play()}catch(y){}};
_.RR.Object.defineProperties(QJ.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.data)==null||!R.eomV1Text)return[];R=[];for(var y=["SHIELD","WARNING","BAR_CHART"],u=this.data.eomV1Text.essentialCookieMsg.items,v=0;v<y.length&&v<u.length;v++)R.push({icon:y[v],text:u[v]});return R}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.data)==null||!R.eomV1Text)return[];R=[];for(var y=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],u=this.data.eomV1Text.nonEssentialCookieMsg.items,v=0;v<y.length&&v<u.length;v++)R.push({icon:y[v],text:u[v]});return R}}});
QJ.prototype.onDataChange=QJ.prototype.onDataChange;_.A([_.r(),_.p("design:type",Object)],QJ.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Boolean)],QJ.prototype,"showEOMV1Text",void 0);_.A([_.r(),_.p("design:type",Object)],QJ.prototype,"isLoading",void 0);_.A([_.r(),_.p("design:type",Object)],QJ.prototype,"hasError",void 0);_.A([_.r(),_.p("design:type",Number)],QJ.prototype,"showSpinnerJobId",void 0);_.A([_.r(),_.p("design:type",Object)],QJ.prototype,"dialogClass",void 0);
_.A([_.O7("#dialog"),_.p("design:type",Object)],QJ.prototype,"dialog",void 0);_.A([_.O7("#cb-header"),_.p("design:type",HTMLElement)],QJ.prototype,"header",void 0);_.A([_.O7("#lang-select"),_.p("design:type",HTMLElement)],QJ.prototype,"langSelect",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],QJ.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],QJ.prototype,"ytComponentBehavior",void 0);
_.A([_.r(),_.p("design:type",String)],QJ.prototype,"youtubeLabel",void 0);_.A([_.r(),_.p("design:type",Object)],QJ.prototype,"logoName",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],QJ.prototype,"onDataChange",null);_.A([_.G("data"),_.p("design:type",Array),_.p("design:paramtypes",[])],QJ.prototype,"eomEssentialCookieMsgItems",null);
_.A([_.G("data"),_.p("design:type",Array),_.p("design:paramtypes",[])],QJ.prototype,"eomNonEssentialCookieMsgItems",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],QJ);
_.m(QJ,"ytd-consent-bump-v2-lightbox",function(){if(MOV!==void 0)return MOV;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return MOV=R},{mode:1});var JuJ;var je=function(){return _.W.apply(this,arguments)||this};
_.O(je,_.W);je.prototype.ready=function(){if(!_.fJ()||mr8)var R=!0;else mr8=!0,R=!1;R||(R=document.querySelector("ytd-app"),R||(R=document.body),this.internalLightBox=_.hw(R).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.A([_.r(),_.p("design:type",Object)],je.prototype,"data",void 0);_.A([_.O7("#lightbox"),_.p("design:type",Object)],je.prototype,"lightBox",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],je);
_.m(je,"ytd-consent-bump-v2-renderer",function(){if(JuJ!==void 0)return JuJ;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return JuJ=R},{mode:1});var VOa;var i5p;var KtJ;var M2=function(){return _.W.apply(this,arguments)||this};
_.O(M2,_.W);_.J=M2.prototype;_.J.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&Sz7(this.toastManager,this.toastType)};
_.J.open=function(R){this.toast&&(this.ephemeralAction&&_.ua().resolve(_.WX).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=R!=null?R:0,this.toastManager.enqueue(this.toast,R)):this.toast.open())};
_.J.close=function(R){var y;(y=this.toast)==null||y.close();this.toastManager&&R===1&&Sz7(this.toastManager,R)};
_.J.refit=function(){var R;(R=this.toast)==null||R.refit()};
_.J.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var R;(R=this.toast)==null||R.close()}};
_.J.setVerticalOffset=function(R){this.toast&&(this.toast.verticalOffset=R,this.toast.fit())};
_.J.computeButtonClass_=function(R){return R?"toast-button":""};
_.J.computeText_=function(R){return _.u7(R)};
_.J.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.CQ("toast-opened-changed",this.toastOpened))};
_.J.updateToastOpenedFromBinding=function(R){this.toastOpened=R.detail.value};
_.RR.Object.defineProperties(M2.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var R,y,u=(R=this.data)==null?void 0:(y=R.actionButton)==null?void 0:y.buttonRenderer;return(u==null?void 0:u.command)||(u==null?void 0:u.serviceEndpoint)||(u==null?void 0:u.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.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=[],y;((y=this.data)==null?0:y.responseText)&&R.push(_.u7(this.data.responseText));var u;((u=this.data)==null?0:u.subText)&&R.push(_.u7(this.data.subText));var v,Q;if((v=this.data)==null?0:(Q=v.actionButton)==null?0:Q.buttonRenderer){var M,K;R.push(((M=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(K=M.accessibilityData)==null?void 0:K.label)||_.u7(this.data.actionButton.buttonRenderer.text))}return R.filter(function(h){return h}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var R,y;return(y=(R=this.toast)==null?void 0:R.opened)!=null?y:!1}}});
M2.prototype.toastOpenedChangedForBinding=M2.prototype.toastOpenedChangedForBinding;M2.prototype.toastOpenedChanged=M2.prototype.toastOpenedChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],M2.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.GZ.YtEventForwardingBehavior),_.p("design:type",Object)],M2.prototype,"ytEventForwardingBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],M2.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],M2.prototype,"duration",void 0);
_.A([_.r(),_.p("design:type",Number)],M2.prototype,"toastType",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],M2.prototype,"useCloseButton",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],M2.prototype,"closeToastOnActionButtonClick",void 0);_.A([_.r({value:function(){return _.fo("SBOX_INAPPROPRIATE_CANCEL")}}),
_.p("design:type",String)],M2.prototype,"closeButtonAriaLabel",void 0);_.A([_.r(),_.p("design:type",Boolean)],M2.prototype,"toastOpened",void 0);_.A([_.r(),_.p("design:type",Boolean)],M2.prototype,"hasOpened",void 0);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],M2.prototype,"command",null);_.A([_.G("labelText","command","duration"),_.p("design:type",Object),_.p("design:paramtypes",[])],M2.prototype,"ephemeralAction",null);
_.A([_.G("ephemeralAction"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],M2.prototype,"hasEphemeralAction",null);_.A([_.O7("#toast"),_.p("design:type",Object)],M2.prototype,"toast",void 0);_.A([_.r({value:function(){return{style:"call-to-action-inverse"}}}),
_.p("design:type",Object)],M2.prototype,"buttonOverrides",void 0);_.A([_.r({value:{style:"mono-inverse"}}),_.p("design:type",Object)],M2.prototype,"closeButtonOverrides",void 0);_.A([_.r({value:function(){return _.ua().resolve(_.yN(_.HX))}}),
_.p("design:type",Object)],M2.prototype,"toastManager",void 0);_.A([_.G("data.responseText","data.subText","data.actionButton"),_.p("design:type",Object),_.p("design:paramtypes",[])],M2.prototype,"labelText",null);_.A([_.e0("toastOpened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],M2.prototype,"toastOpenedChanged",null);
_.A([_.e0("toastOpened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],M2.prototype,"toastOpenedChangedForBinding",null);_.A([_.pu({is:"yt-notification-action-renderer",disableElementRegistration:!0})],M2);
_.m(M2,"yt-notification-action-renderer",function(){if(KtJ===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;i5p===void 0&&(i5p=document.createElement("template"));var v=i5p;u.call(y,v.content.cloneNode(!0),R.content.firstChild);KtJ=R}R=KtJ;return R},{mode:2});var J$=function(){var R=_.W.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(y){R.isLeaderTab&&R.downloadingCount>0&&(y.preventDefault(),
y.returnValue=!0)};
return R};
_.O(J$,_.W);_.J=J$.prototype;
_.J.open=function(){this.updateDownloadState();if(this.data){var R=this.sessionDownloaded+1,y=this.sessionTotalDownloads>1?_.fo("VIDEOS_DOWNLOADING_RATIO",{downloaded:R.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+R+"/"+this.sessionTotalDownloads):_.fo("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(y=this.sessionTotalDownloads>1?_.fo("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:R.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
R+"/"+this.sessionTotalDownloads):_.fo("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));R=this.isLeaderTab?_.fo("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.u7(this.data.responseText)!==y||_.u7(this.data.subText)!==R)this.set("data.responseText",_.ye(y)),this.set("data.subText",_.ye(R)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.J.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.J.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.J.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.J.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};
_.J.handleFullscreenChange=function(R){(this.isFullScreen=R)||this.updatePopup()};
J$.prototype.updateCurrentDownloadProgress=J$.prototype.updateCurrentDownloadProgress;J$.prototype.updatePopup=J$.prototype.updatePopup;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],J$.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],J$.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.GZ.YtEventForwardingBehavior),_.p("design:type",Object)],J$.prototype,"ytEventForwardingBehavior",void 0);
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],J$.prototype,"actionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],J$.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],J$.prototype,"duration",void 0);_.A([_.r({selector:function(R){return _.pev(R.entities).length}}),
_.p("design:type",Object)],J$.prototype,"downloadingCount",void 0);_.A([_.r({selector:BG7}),_.p("design:type",Object)],J$.prototype,"downloadedCount",void 0);_.A([_.r({selector:function(R){var y=_.pev(R.entities);return x48(R.entities,y)}}),
_.p("design:type",Object)],J$.prototype,"downloadingOnlySmartDownloads",void 0);_.A([_.r(),_.p("design:type",Object)],J$.prototype,"sessionTotalDownloads",void 0);_.A([_.r(),_.p("design:type",Object)],J$.prototype,"sessionDownloaded",void 0);_.A([_.r(),_.p("design:type",Object)],J$.prototype,"previousSessionsDownloaded",void 0);_.A([_.r(),_.p("design:type",Object)],J$.prototype,"totalDownloadPercentage",void 0);
_.A([_.r({selector:function(R){var y;R=(y=_.pev(R.entities))!=null?y:[];return R.length>0?_.WEU(R.slice(-1)):0}}),
_.p("design:type",Object)],J$.prototype,"currentDownloadProgress",void 0);_.A([_.r(),_.p("design:type",Object)],J$.prototype,"currentDownloadPercentage",void 0);_.A([_.r({selector:_.STE}),_.p("design:type",Object)],J$.prototype,"isLeaderTab",void 0);_.A([_.O7("yt-notification-action-renderer"),_.p("design:type",Object)],J$.prototype,"notificationActionRenderer",void 0);
_.A([_.GJ("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],J$.prototype,"updatePopup",null);_.A([_.GJ("currentDownloadProgress"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],J$.prototype,"updateCurrentDownloadProgress",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],J$);
_.m(J$,"ytd-video-download-toast-renderer",function(){if(VOa!==void 0)return VOa;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return VOa=R},{mode:1});var IZa;var ham;var VJ=function(){return _.W.apply(this,arguments)||this};
_.O(VJ,_.W);VJ.prototype.computeIsRedLogo=function(R,y){!R&&y&&(R=y);return R==="YOUTUBE_RED_LOGO"||R==="YOUTUBE_PREMIUM_LOGO"};
VJ.prototype.computeLogoName=function(R){R=this.componentBehavior.computeIcon_(R);return R===""?"yt-logos-ext:yt-logo-updated":R};
_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],VJ.prototype,"componentBehavior",void 0);_.A([_.r({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.p("design:type",Boolean)],VJ.prototype,"isRedLogo",void 0);_.A([_.r({computed:"computeLogoName(data)"}),_.p("design:type",String)],VJ.prototype,"logoName",void 0);_.A([_.r({value:{}}),_.p("design:type",Object)],VJ.prototype,"data",void 0);
_.A([_.r(),_.p("design:type",Object)],VJ.prototype,"logoType",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-logo"})],VJ);
_.m(VJ,"ytd-logo",function(){if(ham!==void 0)return ham;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return ham=R},{mode:_.TN("kevlar_poly_si_batch_j074")?1:2});var ii=function(){var R=_.W.apply(this,arguments)||this;R.animationRef={};return R};
_.O(ii,_.W);_.J=ii.prototype;_.J.attached=function(){document.addEventListener("yt-navigate-finish",_.BN(this,this.logYoodle))};
_.J.detached=function(){document.removeEventListener("yt-navigate-finish",_.BN(this,this.logYoodle))};
_.J.logYoodle=function(){var R,y;if((R=this.data)==null?0:(y=R.loggingDirectives)==null?0:y.trackingParams)this.ytRendererBehavior.markDirty(),_.GN().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.J.computeHideImg=function(R,y){return!!R||!!y};
_.J.computeHideYtdLogo=function(R,y){return!R||!!y};
_.J.computeHideLottie=function(R){return!R};
_.J.computeIsRedLogo=function(R){return R==="YOUTUBE_RED_LOGO"||R==="YOUTUBE_PREMIUM_LOGO"};
_.J.renderLogoEntity=function(){var R=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),y=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),u=this.getLogoTitleText(this.data),v=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==R&&(this.url=R);this.animatedUrl!==y&&(this.animatedUrl=y);this.logoTitleText!==u&&(this.logoTitleText=u);this.lottieUrl!==v&&(this.lottieUrl=v,this.lottiePlayerProps=this.computeLottiePlayerProps(v))};
_.J.getSanitizedThumbnail=function(R){return R&&R.thumbnails?_.geU(R.thumbnails,122)||"":""};
_.J.getThumbnailUrl=function(R,y){if(!y)return"";var u,v;R=R?(u=y.darkThemeLogo)==null?void 0:u.thumbnail:(v=y.lightThemeLogo)==null?void 0:v.thumbnail;return this.getSanitizedThumbnail(R)};
_.J.getAnimatedThumbnailUrl=function(R,y){return y?this.getSanitizedThumbnail(R?y.darkThemeAnimatedLogo:y.lightThemeAnimatedLogo):""};
_.J.getLogoTitleText=function(R){if(R)return _.u7(R.tooltipText)};
_.J.computeLogoIcon=function(R,y){if(y){var u,v;return R?(u=y.darkThemeLogo)==null?void 0:u.icon:(v=y.lightThemeLogo)==null?void 0:v.icon}};
_.J.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.J.getLottieUrl=function(R,y){var u,v,Q,M;return R?y==null?void 0:(u=y.darkThemeLogo)==null?void 0:(v=u.lottieAnimation)==null?void 0:v.url:y==null?void 0:(Q=y.lightThemeLogo)==null?void 0:(M=Q.lottieAnimation)==null?void 0:M.url};
_.J.computeLottiePlayerProps=function(R){if(R){var y;if((y=this.animationRef)==null?0:y.lottieEl){var u;(u=this.animationRef)==null||u.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)}}}};
_.J.onLottieError=function(){this.data&&this.lottieUrl&&_.Ko(this.hostElement,"yoodle-error")};
_.J.onImgError=function(){this.data&&!this.lottieUrl&&_.Ko(this.hostElement,"yoodle-error")};
ii.prototype.playAnimation=ii.prototype.playAnimation;ii.prototype.renderLogoEntity=ii.prototype.renderLogoEntity;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ii.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ii.prototype,"data",void 0);_.A([_.r({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.p("design:type",Boolean)],ii.prototype,"hideImg",void 0);
_.A([_.r({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.p("design:type",Boolean)],ii.prototype,"hideYtdLogo",void 0);_.A([_.r({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.p("design:type",Boolean)],ii.prototype,"hideLottie",void 0);_.A([_.r({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.p("design:type",Boolean)],ii.prototype,"isRedLogo",void 0);
_.A([_.r(),_.p("design:type",Boolean)],ii.prototype,"useDarkThemeYoodle",void 0);_.A([_.r(),_.p("design:type",String)],ii.prototype,"url",void 0);_.A([_.r(),_.p("design:type",String)],ii.prototype,"animatedUrl",void 0);_.A([_.r(),_.p("design:type",String)],ii.prototype,"logoTitleText",void 0);_.A([_.r({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.p("design:type",Object)],ii.prototype,"logoIcon",void 0);_.A([_.r(),_.p("design:type",Object)],ii.prototype,"logoType",void 0);
_.A([_.r(),_.p("design:type",String)],ii.prototype,"lottieUrl",void 0);_.A([_.r(),_.p("design:type",Object)],ii.prototype,"lottiePlayerProps",void 0);_.A([_.r(),_.p("design:type",Object)],ii.prototype,"animationRef",void 0);_.A([_.e0("data"),_.e0("useDarkThemeYoodle"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ii.prototype,"renderLogoEntity",null);
_.A([_.fu("click"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],ii.prototype,"playAnimation",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],ii);
_.m(ii,"ytd-yoodle-renderer",function(){if(IZa!==void 0)return IZa;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return IZa=R},{mode:_.TN("kevlar_poly_si_batch_j074")?1:2});var b5Z;var Ftp;var K7=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return R};
_.O(K7,_.W);_.J=K7.prototype;_.J.onYoodleError=function(){_.f("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.J.computeLogoName=function(R){R=this.componentBehavior.computeIcon_(R);return R===""?"yt-logos-ext:yt-logo-updated":R};
_.J.computeTitle=function(R,y,u){return u&&(y==null?0:y.tooltipText)?_.u7(y.tooltipText):_.u7(R)};
_.J.computeAriaLabel=function(R,y,u){return u&&(y==null?0:y.tooltipText)?_.u7(R):""};
_.J.computeShowYoodle=function(R,y,u){return!R||!y&&!!u&&!_.Ps.isEmpty(u)};
_.J.onNavigateHomeAction=function(){if(_.f("kevlar_miniplayer_navigate_home_from_app_killswitch")){var R;(R=_.hw(this.hostElement).querySelector(".yt-simple-endpoint"))==null||R.click()}};
_.J.computeLogoHref=function(R,y,u){var v;(u==null?0:u.onTapCommand)?v=this.componentBehavior.computeHref_(u.onTapCommand):R&&(v=this.componentBehavior.computeHref_(R));return v?v:y};
_.J.computeCommand=function(R,y){return(y==null?void 0:y.onTapCommand)||R};
_.J.getEndpointForm=function(){if(_.f("kevlar_topbar_disable_cache_only_home")){var R=_.ua().resolve(_.S5),y=nFg(R.getState())||"";R=_.PSS(R.getState())||"";return{disableCache:y==="ytd-browse"&&R==="home"}}return{disableCache:!0}};
K7.prototype.onYoodleError=K7.prototype.onYoodleError;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],K7.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],K7.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],K7.prototype,"componentBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],K7.prototype,"ytdReduxBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],K7.prototype,"data",void 0);_.A([_.r(),_.p("design:type",String)],K7.prototype,"countryCode",void 0);_.A([_.r({selectorArgs:["data.overrideEntityKey"],selector:function(R,y){return _.TI(R.entities,"logoEntity",y)}}),
_.p("design:type",Object)],K7.prototype,"logoEntity",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.p("design:type",Boolean)],K7.prototype,"showYoodle",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],K7.prototype,"yoodleError",void 0);_.A([_.r({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.p("design:type",String)],K7.prototype,"titleText",void 0);
_.A([_.r({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.p("design:type",String)],K7.prototype,"ariaLabelText",void 0);_.A([_.r({value:"/"}),_.p("design:type",String)],K7.prototype,"defaultEndpointUrl",void 0);_.A([_.r({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.p("design:type",String)],K7.prototype,"endpointUrl",void 0);
_.A([_.r({computed:"computeCommand(data.endpoint, logoEntity)"}),_.p("design:type",String)],K7.prototype,"command",void 0);_.A([_.r(),_.p("design:type",Object)],K7.prototype,"logoType",void 0);_.A([_.r({}),_.p("design:type",Boolean)],K7.prototype,"useDarkThemeYoodle",void 0);_.A([_.fu("yoodle-error"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],K7.prototype,"onYoodleError",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],K7);
_.m(K7,"ytd-topbar-logo-renderer",function(){if(Ftp!==void 0)return Ftp;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return Ftp=R},{mode:_.TN("kevlar_poly_si_batch_j027")?1:2});var wwg=0;var NMK=_.Km.SEARCH_APPEND_LABEL,TMP=_.Km.SUGGESTION_NEW_VIDEOS_TEXT,o5m=_.Km.SUGGESTION_THUMBNAIL_LABEL,xha=_.Km.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,BMH=_.Jd(function(R){function y(rg){var fZ,ha;return _.I(function(IP){if(IP.nextAddress==1)return fZ=new Request(rg),_.wY(IP,2),IP.yield(fetch(fZ,{credentials:"include"}),4);if(IP.nextAddress!=2)return Ta(!0),_.c5(IP,0);ha=_.B$(IP);_.kT(ha);_.f$(IP)})}
var u=R.isHighlighted;var v=R.suggestion;var Q=R.onClickCallback;var M=R.onHoverUpdateCallback;var K=R.labels;var h=R.queryBuilderFunction;var b=R.onRemoveCallback;var N=R.suggestionIndex;var T=R.generateUniqueId;var x=R.highlightedId;var B=R.useScrollMargin;var l=R.isKeyboardMode;var Z=null,P=null,k=_.sh("div"),E=_.sh("span");R=_.V(_.In(!1,void 0,"CgAMgc"));var D=R.next().value,z=R.next().value,c=_.zp("a",function(rg){rg&&_.$Y(237477,rg,P,function(fZ){P=fZ})}),a=_.zp("button",function(rg){rg&&_.$Y(237477,
rg,P,function(fZ){P=fZ})}),L=_.nh(function(rg){if((rg==null?void 0:rg.button)===2)return rg.preventDefault(),!1;
var fZ=_.$I();fZ&&Z&&_.Co(fZ,Z,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var ha;Q(rg,v().text,v().index,v().entityMid,rg==null?void 0:(ha=rg.detail)==null?void 0:ha.wasSelectedByKeyboard);return!1}),QG=function(){return v().type===35},hz=function(){return _.f("desktop_enable_single_suggestion_highlight")},bO=function(){return _.JT("desktop_suggestions_panel_row_height")||0},BW=function(){var rg;
return _.f("desktop_enable_new_video_metadata")&&((rg=v())==null?void 0:rg.hasNewVideo)===!0},Zc=function(){return _.f("desktop_enable_visual_suggest")},xS=function(){return _.f("desktop_enable_entity_suggest")&&SNJ(v())},Dc=function(){return v().entitySubtitle},$S=function(){return hz()?(u==null?void 0:u())||vK()&&!(l==null?0:l()):(u==null?void 0:u())||vK()},hL=function(){var rg=_.EB("SBOX_SETTINGS");
return QG()&&!(rg==null?0:rg.HIDE_REMOVE_LINK)},WK=function(){return YNH(v(),{useEntityName:xS()})},JL,sP=!((JL=_.ua().resolve(_.yN(_.u0)))==null||!JL()),wg=function(){return QG()?_.f("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},bT=function(){return K==null?void 0:K().SUGGESTION_DISMISS_LABEL},HK=function(){return K==null?void 0:K().SUGGESTION_DISMISSED_LABEL};
R=_.V(_.In(!1,void 0,"RcUcKd"));JL=R.next().value;var Ta=R.next().value;R=_.V(_.In(!1,void 0,"yGR7je"));var Sg=R.next().value,MU=R.next().value,vK=Sg,eg=_.nh(function(){h(E.value.innerText);return!1}),oP=_.nh(function(rg){rg.preventDefault();
return!1}),BK=_.nh(function(rg){var fZ=v().text,ha=_.EB("SBOX_SETTINGS"),IP="https://"+(ha.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
IP+="&delq="+encodeURIComponent(fZ);(fZ=ha==null?void 0:ha.PSUGGEST_TOKEN)&&(IP+="&tok="+fZ);(ha=ha==null?void 0:ha.SESSION_INDEX)&&(IP+="&authuser="+ha);y(IP);rg.preventDefault();(rg=_.$I())&&P&&_.Co(rg,P,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");b(N==null?void 0:N());return!1}),pY=_.nh(function(){if(hz()&&(l==null?0:l()))return!1;
MU(!0);M(!0);return!1}),v$=_.nh(function(){MU(!1);
M(!1);return!1}),RP=_.nh(function(){z(!0);
return!1}),KY=_.nh(function(){z(!1);
return!1}),si=_.nh(function(rg){rg.preventDefault();
var fZ;(rg=(fZ=v().entityThumbnailAttributionUrl)!=null?fZ:"")&&_.wET(rg);return!1});
R=_.V(_.In("",void 0,"k9uVge"));var Fp=R.next().value,Oi=R.next().value;_.nG(function(){hL()&&Oi(T==null?void 0:T(N==null?void 0:N()));k.value&&_.$Y(12453,k.value,Z,function(rg){Z=rg})});
return _.F(_.w,{cond:JL,then:function(){var rg={};return _.F("div",{class:_.Oy("ytSuggestionComponentRemovedText",(rg.ytSuggestionComponentLargerRemovedText=function(){return Zc()},rg)),
style:function(){return bO()>0?"height: "+bO()+"px;":""},
role:"button"},HK)},
else:function(){var rg={},fZ={};return _.F("div",{class:_.Oy("ytSuggestionComponentSuggestion",(rg.ytSuggestionComponentSuggestionHover=function(){return!hz()},rg.ytSuggestionComponentHighlighted=$S,rg.ytSuggestionComponentPersonalizedSuggestion=QG,rg.ytSuggestionComponentMweb=!1,rg.ytSuggestionComponentLargerSuggestion=function(){return BW()||Zc()},rg.ytSuggestionComponentThumbnailSuggestion=function(){return Zc()},rg.ytSuggestionComponentRoundedSuggestion=function(){return _.f("desktop_enable_scrollable_suggestions_panel")&&
_.f("desktop_enable_suggestions_panel_padding")},rg.ytSuggestionComponentThumbnailPadding=function(){return Zc()&&!QG()},rg)),
style:function(){return bO()>0?"height: "+bO()+"px;":""},
role:"presentation","on:mousedown":L,"on:mouseover":pY,"on:mouseout":v$,el:k},_.F("div",{class:_.Oy("ytSuggestionComponentText",(fZ.ytSuggestionComponentScrollMargin=B,fZ)),"aria-label":function(){return BW()?v().text+" "+TMP:v().text},
id:function(){return T==null?void 0:T(N==null?void 0:N())},
"on:mousedown":L,role:"option"},_.F(_.w,{cond:function(){return v().type!==33},
then:function(){return _.F(_.W_,{icon:wg,className:"ytSuggestionComponentIcon"})}}),_.F("div",{class:"ytSuggestionComponentLeftContainer"},_.F("span",{el:E,
role:"button",tabindex:0},_.F(_.eS,{each:WK},function(ha){return ha.bold?_.F("span",{class:"ytSuggestionComponentBold"},ha.text):_.F("span",null,ha.text)})),_.F(_.w,{cond:function(){return xS()&&!!v().entitySubtitle||BW()},
then:function(){return _.F("div",{class:"ytSuggestionComponentMetadataContainer"},_.F(_.w,{cond:function(){return xS()&&!!v().entitySubtitle},
then:function(){return _.F("div",{class:"ytSuggestionComponentEntitySubtitle"},Dc)}}),_.F(_.w,{cond:function(){return BW()},
then:function(){return _.F("div",{class:"ytSuggestionComponentNewVideoContainer"},_.F("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.F("div",{class:"ytSuggestionComponentNewVideoText"},TMP))}}))}}))),_.F("div",{class:"ytSuggestionComponentRightContainer"},_.F(_.w,{cond:function(){return Zc()&&v().visualSuggestUrl!==void 0},
then:function(){var ha={};return _.F("div",{class:"ytSuggestionComponentThumbnailContainer"},_.F("img",{"aria-label":o5m,class:_.Oy("ytSuggestionComponentVisualSuggestThumbnail",(ha.ytSuggestionComponentCircularFrame=function(){return xS()&&v().subtypes.includes(790)},ha.ytSuggestionComponentEntitySuggestThumbnail=function(){return xS()},ha)),
src:function(){return v().visualSuggestUrl}}),_.F(_.w,{cond:function(){return xS()&&!!v().entityThumbnailAttributionUrl},
then:function(){var IP={};return _.F("span",{title:xha,role:"tooltip"},_.F("div",{"on:mouseover":RP,"on:mouseout":KY,"on:mousedown":si,class:_.Oy("ytSuggestionComponentThumbnailOverlay",(IP.ytSuggestionComponentThumbnailOverlayHidden=function(){return!D()},IP))},_.F(_.W_,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.F(_.Z6,null,_.F(_.lr,{when:function(){return Zc()&&hL()}},function(){var ha={};
return _.F("button",{class:_.Oy("ytSuggestionComponentRemoveLinkClearButton",(ha.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return Fp()&&Fp()===(x==null?void 0:x())},ha.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!$S()},ha)),
el:a,"on:mousedown":BK,"aria-label":bT,id:function(){return Fp()}},_.F(_.W_,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.F(_.lr,{when:function(){return!(Zc()&&v().visualSuggestUrl!==void 0)&&hL()}},function(){var ha={};
return _.F("a",{class:_.Oy("ytSuggestionComponentRemoveLink",(ha.ytSuggestionComponentRemoveLinkDark=sP,ha.ytSuggestionComponentRemoveLinkSelected=function(){return Fp()&&Fp()===(x==null?void 0:x())},ha)),
el:c,"on:mousedown":BK,"aria-label":bT,tabindex:0,role:"button",id:function(){return Fp()}},bT)}),_.F(_.lr,{when:function(){return!1}},function(){return _.F("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":eg,"on:mousedown":oP,role:"button","aria-label":NMK},_.F(_.W_,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Jg");var fZa=_.RE(["//www.google.com/textinputassistant/","/","_tia.js"]),eaK=_.Jd(function(){return _.F("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.F("button",{class:"ytdTextInputAssistantButton","on:click":_.nh(function(){gnH().inputMethodsTracker.add(3);var R,y=(R=_.EB("SBOX_SETTINGS"))==null?void 0:R.REQUEST_LANGUAGE;if(y)return _.tl(_.M1(fZa,14,y)),!1})},_.F("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 lZI=function(){this.cache=new Map},O5Z=function(R){for(var y=_.V(R.cache.entries()),u=y.next();!u.done;u=y.next()){var v=_.V(u.value);
u=v.next().value;v=v.next().value;v.suggestions.some(function(Q){return Q.type===35})&&R.cache.delete(u)}};var Z5P=_.Km.SEARCH,H5J=_.Km.SEARCH_CLEAR_LABEL,n58=new _.Jx("FAKE_SUGGEST_RESPONSE");_.h6(_.Jd(function(R){function y(){RP||(RP=setTimeout(function(){si()},1E3))}
function u(lT,x8,da){if(lT.trim()){v$=lT;_.kB("REFINEMENTS_TUPLE",void 0);BK=!0;var rC;x8=yuI(Sg,x8);var T5=(rC=R.searchEndpoint)==null?void 0:rC.call(R);_.EiH(lT,x8,T5,wg.value.value,da);si();wg.value.value=lT;wg.value.blur();Sg.reset()}}
function v(lT){return _.I(function(x8){return x8.return(new Promise(function(da){var rC=new XMLHttpRequest;rC.open("GET",m7P(lT),!0);rC.withCredentials=!0;var T5=_.EB("SBOX_SETTINGS");(T5==null?0:T5.SEND_VISITOR_DATA)&&rC.setRequestHeader("X-Goog-Visitor-Id",T5==null?void 0:T5.VISITOR_DATA);rC.onload=function(){da(rC.responseText)};
rC.onerror=function(){_.kT(Error("pl"));da(null)};
setTimeout(function(){rC.abort()},1E4);
rC.send(null)}))})}
function Q(lT){var x8,da,rC,T5;return _.I(function(Yh){switch(Yh.nextAddress){case 1:return x8={credentials:"include",headers:XMI()},window.AbortController&&(da=new AbortController,setTimeout(function(){da.abort("ytsbox-suggest-timeout")},1E4),x8.signal=da.signal),_.wY(Yh,2),Yh.yield(fetch(m7P(lT),x8),4);
case 4:rC=Yh.yieldResult.text();_.c5(Yh,3);break;case 2:return T5=_.B$(Yh),T5!=="ytsbox-abort-last"&&T5!=="ytsbox-suggest-timeout"&&_.kT(T5),Yh.return(null);case 3:return Yh.return(rC)}})}
function M(lT){var x8,da,rC;return _.I(function(T5){switch(T5.nextAddress){case 1:if(x8=_.ua().resolve(_.yN(n58)))return T5.return(x8);da=Date.now();y();return _.f("yt_searchbox_xhr")?T5.yield(v(lT),5):T5.yield(Q(lT),4);case 4:rC=T5.yieldResult;T5.jumpTo(3);break;case 5:rC=T5.yieldResult;case 3:if(rC){RP&&(clearTimeout(RP),RP=null);var Yh=Sg,v5=da,Xr=lT.query.length===0;v5=Date.now()-v5;Xr?Yh.zeroPrefixRoundTripTime=v5:(Yh.JSC$20529_totalRoundTripTime+=v5,Yh.maxRoundTripTime=Math.max(Yh.maxRoundTripTime,
v5),Xr=Math.floor(v5/100),Xr>=uFM.length?++Yh.roundTripTimeHistogram[9]:++Yh.roundTripTimeHistogram[uFM[Xr]])}return T5.return(rC)}})}
function K(lT){var x8,da,rC;return _.I(function(T5){if(T5.nextAddress==1)return(x8=Ta.cache.get(qNH(lT)))?T5.return(x8):T5.yield(M(lT),2);da=T5.yieldResult;if(da===null)return T5.return(null);rC=new L3J(da);lT.query.length===0&&rC.suggestions.length===0||Ta.cache.set(qNH(lT),rC);return T5.return(rC)})}
function h(lT){var x8,da;return _.I(function(rC){if(rC.nextAddress==1){pY=!1;var T5=v$;T5=_.Cwv()==="search"?(_.AD(location.href,"search_query")||_.AD(location.href,"q"))===T5:!1;x8=new $7V(lT,T5?v$:null);return rC.yield(K(x8),2)}da=rC.yieldResult;if(da===null)return rC.return();x8.query.length===0&&(Sg.zeroPrefixSuggestionCount=da.suggestions.length);if(x8.id<=KY)return Sg.outOfSyncResponseCount++,rC.return();if(document.activeElement!==wg.value)return rC.return();KY=x8.id;var Yh=Sg,v5=da.rawResponse[2]||
{};Yh.experimentTriggeredBeforeFinal||(Yh.experimentTriggeredBeforeFinal=Yh.experimentTriggeredFinal);Yh.experimentTriggeredFinal=!!v5.e;Sg.updateSuggestions(da.suggestions);k(-1);hL([]);da.suggestions!==l()&&sW(da.suggestions.length);Z(da.suggestions);hz(da.suggestions.length>0&&da.suggestions[0].type===33);HK&&(HK.hidden=da.suggestions.length===0,QG()?(HK.style.minWidth="",Yh=HK.style,v5=(T5=l()[0])==null?void 0:T5.ignoredPrefix,Yh.marginLeft=(v5?Math.min(v5.length*6,bT.value.offsetWidth):0).toString()+
"px"):(HK.style.minWidth=bT.value.offsetWidth+"px",HK.style.marginLeft="0"),m_());_.f$(rC)})}
function b(){if(!BK)return!1;var lT=_.EB("REFINEMENTS_TUPLE");return lT?(lT=lT[1].map(function(x8,da){return new aep([x8,0,[71]],wg.value.value,da)}),l()!==lT&&sW(lT.length),hL([]),Z(lT),Sg.updateSuggestions(lT),BK=!1,HK.hidden=lT.length===0,pY=lT.length>0,!0):!1}
function N(){var lT=wg.value.value;(typeof lT==="string"||lT instanceof String)&&lT!==""?c(!0):c(!1)}
function T(){if(_.Cwv()==="search"){var lT=window.location.href;try{var x8=_.AD(lT,"search_query")||_.AD(lT,"q")||""}catch(da){x8=""}x8&&(wg.value.value=x8,c(!0))}}
var x=_.V(_.In([],void 0,"kGFAjf")),B=x.next().value;x=x.next().value;var l=B,Z=x;B=_.V(_.In(-1,void 0,"mLGL9e"));var P=B.next().value,k=B.next().value;B=_.V(_.In(-1,void 0,"u2rYdc"));var E=B.next().value,D=B.next().value;B=_.V(_.In(!1,void 0,"W9DFC"));var z=B.next().value,c=B.next().value;B=_.V(_.In(!1,void 0,"Ip4dNc"));var a=B.next().value,L=B.next().value;x=_.V(_.In(!1,void 0,"ZNKSQb"));B=x.next().value;x=x.next().value;var QG=B,hz=x;x=_.V(_.In(!1,void 0,"JBrGLd"));B=x.next().value;var bO=x.next().value;
x=_.V(_.In(!1,void 0,"P2pD6e"));var BW=x.next().value,Zc=x.next().value;x=_.V(_.In(1,void 0,"SjP20c"));var xS=x.next().value,Dc=x.next().value;x=_.V(_.In([],void 0,"h4dRaf"));var $S=x.next().value,hL=x.next().value;x=_.V(_.In(!1,void 0,"TUTzaf"));var WK=x.next().value,JL=x.next().value;x=_.f("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var sP=_.sh("yt-searchbox"),wg=_.sh("input"),bT=_.sh("div"),HK,Ta=
new lZI,Sg=gnH(),MU=_.ua().resolve(_.yN(_.u0)),vK=function(){var lT;return((lT=R.forceDarkMode)==null?void 0:lT.call(R))||!(MU==null||!MU())},eg=function(){return _.f("desktop_enable_scrollable_suggestions_panel")},oP="i"+wwg++,BK=!1,pY=!1,v$="",RP=null,KY=-1,si=function(){hL([]);
Z([]);hz(!1);HK&&(HK.hidden=!0);RP&&(clearTimeout(RP),RP=null);k(-1)},Fp=function(lT,x8){lT.preventDefault();
JL(!0);HK&&(HK.hidden=!1);var da=P();lT=l();var rC=$S();x8=$ka(x8);da+=x8;for(da>=lT.length?da=-1:da<-1&&(da=lT.length-1);da!==-1&&(rC.includes(da)||da>=lT.length||da<0);)da+=x8,da>=lT.length&&(da=-1);k(da);P()>=0&&(wg.value.value=l()[P()].text,D(0),N(),lT=P(),rC=E(),(rC=document.getElementById(SQ[lT][rC]))&&eg()&&(lT===l().length-1?HK.scrollTop=HK.scrollHeight:rC.scrollIntoView({block:"nearest",inline:"start"})))},Oi=_.nh(function(lT){if(!(lT.relatedTarget instanceof Element&&lT.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){L(!0);
var x8;(x8=R.focusCallback)==null||x8.call(R,!0);b()||(pY?HK.hidden=!1:(_.Ko(sP.value,"yt-autonav-pause-focus",{}),h(lT.target.value)))}}),rg=_.nh(function(lT){if(!(lT.relatedTarget instanceof Element&&lT.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){L(!1);
var x8;(x8=R.focusCallback)==null||x8.call(R,!1);HK.scrollTop=0;HK.hidden=!0;_.Ko(sP.value,"yt-autonav-pause-blur",{})}}),fZ=function(lT){lT=$ka(lT);
var x8;((x8=SQ[P()])==null?0:x8[E()+lT])&&D(E()+lT)},ha=_.nh(function(lT){var x8=lT.target;
switch(lT.keyCode){case 13:lT.preventDefault();var da;if((da=SQ[P()])==null?0:da[E()]){var rC;(rC=document.getElementById(SQ[P()][E()]))==null||rC.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}lT=lT.shiftKey?4:3;da=Sg;rC=P();da.selectedSuggestionIndex=rC;u(x8.value,lT);break;case 27:HK&&(HK.hidden=!0);break;case 40:Fp(lT,40);break;case 38:Fp(lT,38);break;case 39:fZ(39);break;case 37:fZ(37);break;case 229:Sg.inputMethodsTracker.add(4);break;default:Sg.inputMethodsTracker.add(1),
CIH(Sg)}return!1}),IP=_.nh(function(lT){h(lT.target.value);
N();eg()&&HK&&(HK.scrollTop=0);return!1}),Zi=_.nh(function(){Sg.inputMethodsTracker.add(2);
CIH(Sg);return!1});
_.nG(function(){if(HK){Sg.reset();if(window.ResizeObserver){var lT=new ResizeObserver(function(){QG()||(HK.style.minWidth=bT.value.offsetWidth+"px")});
lT.observe(bT.value);(new ResizeObserver(function(){m_()})).observe(HK);
_.GF(function(){lT.disconnect()})}T();
window.addEventListener("yt-navigate-finish",T);window.addEventListener("yt-focus-searchbox",function(){wg.value.focus()});
var x8;bO((x8=_.EB("SBOX_SETTINGS"))==null?void 0:x8.HAS_ON_SCREEN_KEYBOARD)}else _.dI(new _.OL("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var gr=_.nh(function(lT){lT.preventDefault();u(wg.value.value,12);return!1}),Y8=_.nh(function(lT){lT.preventDefault();
var x8,da;(x8=wg)==null||(da=x8.value)==null||da.focus();var rC,T5;((rC=wg)==null?void 0:(T5=rC.value)==null?void 0:T5.value)!==""&&(wg.value.value="",wg.value.dispatchEvent(new Event("input")));return!1}),WH=_.nh(function(){var lT=GP7(wg.value.value,l().filter(function(x8){return x8.type!==35}).map(function(x8){return{label:x8.text}}));
_.Ik(sP.value,"yt-open-popup-action",[{openPopupAction:lT},document.body]);return!1}),vg=_.nh(function(){wg.value.focus();
return!1}),Fr=function(lT,x8,da,rC,T5){Sg.selectedSuggestionIndex=da;
u(x8,T5?3:1,rC)},e_=function(lT){wg.value.value=lT;
wg.value.dispatchEvent(new Event("input"));Sg.inputMethodsTracker.add(5);CIH(Sg,!0)},SQ=[[]],NS=function(lT){var x8="searchbox-suggestion"+_.mR(_.Au);
SQ[lT].push(x8);return x8},sW=function(lT){if(l()){SQ=[[]];
for(var x8=0;x8<lT;x8++)SQ.push([])}},m_=function(){if(eg()){var lT=HK,x8=lT.scrollTop;
lT=lT.scrollHeight-lT.clientHeight;Zc(x8>=lT);x8=Math.abs(lT-x8);x8<=40?Dc(1-(40-x8)/40):Dc(1)}},gG=function(){return"opacity: "+xS()*100+"%"},HW=_.nh(function(){m_();
return!1}),qU=_.nh(function(){JL(!1);
return!1}),cW,ob={},iJ={},dC={},eK={};
return _.F("yt-searchbox",{class:_.Oy("ytSearchboxComponentHost",(ob.ytSearchboxComponentMweb=!1,ob.ytSearchboxComponentDesktop=!0,ob["yt-searchbox-filled-query"]=function(){return z()},ob["ytd-masthead"]=function(){return!a()},ob.ytSearchboxComponentHostDark=vK,ob)),
role:"search",el:sP,"client-ve-type":10349},_.F("div",{el:bT,"on:click":vg,class:_.Oy("ytSearchboxComponentInputBox",(iJ.ytSearchboxComponentInputBoxDark=vK,iJ.ytSearchboxComponentInputBoxHasFocus=a,iJ))},_.F("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":gr},_.F(_.w,{cond:a,then:function(){return _.F("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.F(_.W_,{icon:"SEARCH"}))}}),_.F("input",{el:wg,
class:_.Oy("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":oP,"aria-expanded":!((cW=HK)==null?0:cW.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":rg,"on:focus":Oi,"on:input":IP,"on:keydown":ha,"on:paste":Zi,placeholder:R.placeholderText,"aria-activedescendant":function(){var lT;return(lT=SQ[P()])==null?void 0:lT[E()]},
"aria-autocomplete":"list",role:"combobox"})),_.F(_.w,{cond:B,then:function(){return _.F("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.F(eaK,null))}}),_.F(_.w,{cond:z,
then:function(){return _.F("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.F("button",{class:"ytSearchboxComponentClearButton","on:click":Y8,"aria-label":R.clearButtonAriaLabel||H5J},_.F(_.W_,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.F(_.k6,{model:{}})))}})),_.F("button",{class:_.Oy("ytSearchboxComponentSearchButton",(dC.ytSearchboxComponentSearchButtonDark=vK,dC)),
"on:click":gr,"aria-label":Z5P,title:R.placeholderText},_.F(_.W_,{icon:"SEARCH"})),_.F(_.w,{cond:function(){if(t0g()&&_.f("mweb_voice_search")&&R.voiceSearchButton)return R.voiceSearchButton()},
then:function(lT){var x8={};return _.F("div",{class:_.Oy("ytSearchboxComponentVoiceSearchWrapper",(x8.ytSearchboxComponentHideVoiceSearchButton=function(){return z()},x8))},_.F(_.mk,{data:lT},{buttonRenderer:function(da){return _.F(_.yZ,{data:da.data,
onButtonClickCallback:function(){}})}}))}}),_.F("div",{el:_.VX(function(lT){return void(HK=lT)}),
id:oP,class:_.Oy("ytSearchboxComponentSuggestionsContainer",(eK.ytSearchboxComponentSuggestionsContainerDark=vK,eK["yt-searchbox-suggestions-container"]=!1,eK.ytSearchboxComponentSuggestionsContainerScrollable=eg(),eK.ytSearchboxComponentSuggestionsContainerAnimated=x,eK)),"on:scroll":HW,"on:mousemove":qU,role:"listbox",hidden:!0},_.F(_.eS,{each:l},function(lT,x8){return _.F(BMH,{suggestion:lT,isHighlighted:function(){return x8()===P()},
onClickCallback:Fr,onHoverUpdateCallback:function(da){if(_.f("desktop_enable_single_suggestion_highlight")){var rC=x8();da&&(D(0),k(rC))}},
onRemoveCallback:function(da){O5Z(Ta);da===void 0||da<0||$S().includes(da)||hL([].concat(_.P$($S()),[da]))},
labels:R.labels,queryBuilderFunction:e_,suggestionIndex:x8,generateUniqueId:NS,highlightedId:function(){var da;return(da=SQ[P()])==null?void 0:da[E()]},
useScrollMargin:eg(),isKeyboardMode:WK})}),_.F(_.w,{cond:function(){return!QG()&&l().find(function(lT){return lT.type!==35})&&_.f("searchbox_reporting")},
then:function(){return _.F("button",{class:"ytSearchboxComponentReportButton","on:mousedown":WH},_.fo("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.F(_.w,{cond:function(){return!BW()&&eg()},
then:function(){return _.F("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.F("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:gG}))}})))},"Lg"),"yt-searchbox",{props:{searchEndpoint:_.vR,
placeholderText:_.vR,labels:_.vR,voiceSearchButton:_.vR,focusCallback:_.IC,clearButtonAriaLabel:_.vR,forceDarkMode:_.vR}});var IT=function(){var R=_.W.apply(this,arguments)||this;R.menuButtonTargetId="topbar-guide-menu";R.narrow=!1;R.menuStrings={BACK_ALT_LABEL:_.fo("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.fo("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.fo("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.fo("SBOX_PLACEHOLDER",void 0,"Search")};R.pageDarkTheme=document.documentElement.hasAttribute("dark");R.watchPageScrollTop=0;R.theater=!1;R.fullscreen=!1;R.disableFrostedGlassDuringViewTransition=
!1;R.desktopUnifiedSearchPanelMode=_.f("desktop_enable_unified_search_panel");R.cinematicTheaterMode=_.f("web_cinematic_theater_mode");R.ytSearchboxFocused=!1;R.searchboxLabels=_.EB("SBOX_LABELS");R.topbarIsAboveChipbar=!1;R.isDarkThemeForced=!1;R.areGhostCardsHidden=!1;R.guideKeyboardToggle=!1;R.voiceSearchManager=cpZ();R.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};R.setYtSearchboxFocused=function(y){R.ytSearchboxFocused=
y};
R.toggleFrostedGlassDuringViewTransition=function(y){R.disableFrostedGlassDuringViewTransition=y};
return R};
_.O(IT,_.W);_.J=IT.prototype;_.J.computeSimpleText=function(R){return _.u7(R)};
_.J.onDarkChanged=function(){for(var R=_.V(this.buttons||[]),y=R.next();!y.done;y=R.next())y.value.isOverlay=!!this.dark;R=_.V(this.buttonRenderers||[]);for(y=R.next();!y.done;y=R.next())y.value.overrides=this.computeButtonOverride()};
_.J.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.J.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"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var R=_.sT(_.Lx(),"aa");_.FN(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"))&&(_.f("polymer_on_demand_shady_dom")?R.setAttribute("slot","masthead-logo-old"):_.BY(R)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.BN(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.BN(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.J.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.BN(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.BN(this,this.onSetTheaterModeEnabled))};
_.J.dataChanged=function(){var R=this.data;R&&(this.voiceEnabled=R.voiceSearchButton?cpZ().isSupported():!1,_.U6b(_.Ux(),this.menuButtonTargetId,this.guideButton),R.onReceivedActions&&R.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.wr(this.hostElement,R.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&R&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.FN(this.hostElement,"dark",!1),_.FN(this.hostElement,"theater",!1),
(R=this.hostElement.querySelector("#masthead-logo"))&&(_.f("polymer_on_demand_shady_dom")?R.setAttribute("slot","masthead-logo-old"):_.BY(R))))};
_.J.computeCenterHidden=function(){var R;return this.data&&!((R=this.data.searchbox)==null?0:R.fusionSearchboxRenderer)};
_.J.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.FN(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.J.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.J.onWatchScroll=function(R){this.watchPageScrollTop=R.detail||0;this.updateMastheadBackgroundOpacity()};
_.J.onFullscreenChangeAction=function(R){R||(this.watchPageScrollTop=0);this.fullscreen=R;this.updateMastheadBackgroundOpacity()};
_.J.onSetTheaterModeEnabled=function(R){this.theater=R.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.J.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.J.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.J.setBackgroundOpacity=function(R){R=this.calculateBackgroundOpacity(R);this.background.style.opacity=""+R};
_.J.calculateBackgroundOpacity=function(R){var y=this.theater&&this.cinematicTheaterMode?.6:0,u=this.hostElement.clientHeight/2;return Math.min(Math.max(R,0),u)/u*(1-y)+y};
_.J.shouldShowCinematicMastHead=function(){var R=_.f("kevlar_watch_grid")&&!_.f("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(R||this.pageDarkTheme)};
_.J.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.J.focusGuide=function(){this.guideButton.focus()};
_.J.onGuideToggleTap=function(){_.Ko(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.J.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.J.onGuideToggleHover=function(){_.Ko(this.hostElement,"yt-guide-hover")};
_.J.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.J.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.J.closeOnOutsideClickCondition=function(R){for(R=_.u8(R);R[0];){var y=R.shift();if(y instanceof Element&&y.id==="kbd")return!1}return!0};
_.J.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.J.pausePlayer=function(){var R;(R=_.I8())==null||R.pause();this.pauseMiniplayer()};
_.J.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var R;(R=_.ua().resolve(_.cZ).getPlayerElement())==null||R.pause()}};
_.J.isMiniplayerActive=function(){return _.ua().resolve(_.cZ).isMiniplayerActive()};
_.J.updateNarrowFromBinding=function(R){this.narrow=R.detail.value};
_.J.onYtSendFeedbackAction=function(){_.Ik(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.J.registerWithViewTransitionManager=function(){j2H(_.ua().resolve(_.nC),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.RR.Object.defineProperties(IT.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.f("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var R;return(R=this.data)==null?void 0:R.voiceSearchButton}}}});
IT.prototype.narrowChanged=IT.prototype.narrowChanged;IT.prototype.onWatchPageChange=IT.prototype.onWatchPageChange;IT.prototype.onRendererStamperFinished=IT.prototype.onRendererStamperFinished;IT.prototype.dataChanged=IT.prototype.dataChanged;IT.prototype.onDarkChanged=IT.prototype.onDarkChanged;_.A([_.n(_.qv),_.p("design:type",Object)],IT.prototype,"ironResizableBehavior",void 0);_.A([_.n(_.d8I),_.p("design:type",Object)],IT.prototype,"ytdExpandableInputBehavior",void 0);
_.A([_.n(_.L6.YtdGuideStateAwareBehavior),_.p("design:type",Object)],IT.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],IT.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],IT.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],IT.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],IT.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.p6),_.p("design:type",Object)],IT.prototype,"ytdReduxBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],IT.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],IT.prototype,"narrow",void 0);_.A([_.r(),_.p("design:type",Object)],IT.prototype,"logoType",void 0);_.A([_.r(),_.p("design:type",Boolean)],IT.prototype,"voiceEnabled",void 0);
_.A([_.r(),_.p("design:type",Object)],IT.prototype,"menuStrings",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],IT.prototype,"dark",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],IT.prototype,"pageDarkTheme",void 0);_.A([_.r(),_.p("design:type",Object)],IT.prototype,"watchPageScrollTop",void 0);_.A([_.r({reflectToAttribute:!0,selector:_.AN}),_.p("design:type",Boolean)],IT.prototype,"isWatchPage",void 0);
_.A([_.r({reflectToAttribute:!0,selector:_.E0U}),_.p("design:type",Boolean)],IT.prototype,"isShortsPage",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],IT.prototype,"theater",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],IT.prototype,"fullscreen",void 0);_.A([_.r({reflectToAttribute:!0,selector:_.mic}),_.p("design:type",String)],IT.prototype,"frostedGlassMode",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],IT.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.A([_.r(),_.p("design:type",Object)],IT.prototype,"ytSearchboxFocused",void 0);_.A([_.ZV("#buttons > *"),_.p("design:type",Array)],IT.prototype,"buttons",void 0);_.A([_.ZV("ytd-button-renderer"),_.p("design:type",Array)],IT.prototype,"buttonRenderers",void 0);_.A([_.O7("#background"),_.p("design:type",HTMLDivElement)],IT.prototype,"background",void 0);
_.A([_.O7("#guide-button"),_.p("design:type",Object)],IT.prototype,"guideButton",void 0);_.A([_.O7("#logo"),_.p("design:type",Object)],IT.prototype,"logo",void 0);_.A([_.r({computed:"computeButtonOverride(dark)"}),_.p("design:type",Object)],IT.prototype,"buttonOverrides",void 0);_.A([_.GJ("dark"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],IT.prototype,"onDarkChanged",null);_.A([_.r({value:function(){return this.onVoiceTap.bind(this)}}),
_.p("design:type",Function)],IT.prototype,"boundOnTapVoiceButton",void 0);_.A([_.r(),_.p("design:type",Object)],IT.prototype,"topbarIsAboveChipbar",void 0);_.A([_.r(),_.p("design:type",String),_.p("design:paramtypes",[])],IT.prototype,"guideIcon",null);_.A([_.G("voiceEnabled"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],IT.prototype,"shouldShowVoiceSearchButton",null);_.A([_.G("data"),_.p("design:type",Object),_.p("design:paramtypes",[])],IT.prototype,"voiceSearchButton",null);
_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],IT.prototype,"dataChanged",null);_.A([_.fu("yt-rendererstamper-finished"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],IT.prototype,"onRendererStamperFinished",null);_.A([_.GJ("isWatchPage"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],IT.prototype,"onWatchPageChange",null);
_.A([_.GJ("narrow"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],IT.prototype,"narrowChanged",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-masthead"})],IT);
_.m(IT,"ytd-masthead",function(){if(b5Z!==void 0)return b5Z;var R=document.createElement("template");_.H(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="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');R.content.insertBefore(_.t().content.cloneNode(!0),
R.content.firstChild);return b5Z=R},{mode:_.TN("kevlar_poly_si_batch_j036")?1:2});var GUo;var ruV={},Pe7={},Wta={},dhH={},Uh8=(dhH.OFFLINE=(ruV["publicytnetworkstatus-online"]="BACK_ONLINE",ruV),dhH.ONLINE=(Pe7["publicytnetworkstatus-offline"]="OFFLINE",Pe7),dhH.BACK_ONLINE=(Wta["publicytnetworkstatus-offline"]="OFFLINE",Wta.TIMER_TRIGGER="ONLINE",Wta),dhH),h$=function(){var R=_.W.apply(this,arguments)||this;R.currentState="ONLINE";R.scheduledJobId=0;R.bannerString="";R.bannerVe=null;R.networkStatusManagerInstance=new _.tv;return R};
_.O(h$,_.W);_.J=h$.prototype;_.J.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")})};
_.J.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")})};
_.J.enterState=function(R){var y=this;this.scheduledJobId&&_.WG.cancelJob(this.scheduledJobId);R==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):R==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.fo("NO_INTERNET_CONNECTION",void 0,"No internet connection")):R==="BACK_ONLINE"&&(this.bannerString=_.fo("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.Oh(_.WG,function(){y.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=R};
_.J.stateChangeHandler=function(R){(R=Uh8[this.currentState][R])&&this.enterState(R)};
_.J.logVisibility=function(R){var y=_.$I();this.createBannerVe(R);y&&this.bannerVe&&(R?_.Lo(y,[this.bannerVe]):_.s9(y,[this.bannerVe]))};
_.J.createBannerVe=function(R){!this.bannerVe&&R&&(this.bannerVe=_.$6(37929),_.Br(_.GN(),this.bannerVe))};
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",String)],h$.prototype,"currentState",void 0);_.A([_.r(),_.p("design:type",Object)],h$.prototype,"scheduledJobId",void 0);_.A([_.r(),_.p("design:type",Object)],h$.prototype,"bannerString",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-network-status-banner"})],h$);
_.m(h$,"ytd-network-status-banner",function(){if(GUo!==void 0)return GUo;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return GUo=
R},{mode:1});var kUI;var bi=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};R.hidden=!0;R.frostedGlass=_.f("web_frosted_glass");return R};
_.O(bi,_.W);bi.prototype.computeHidden=function(R){return R&&R.status?!1:!0};
bi.prototype.handleUpdatePermissionRoleCommand=function(R){if(R=_.e(R,_.Buc))if(R=_.e(R.renderer,_.xw8))this.data=R};
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],bi.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],bi.prototype,"componentBehavior",void 0);_.A([_.r({value:!0,computed:"computeHidden(data)"}),_.p("design:type",Object)],bi.prototype,"hidden",void 0);_.A([_.r(),_.p("design:type",Object)],bi.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],bi.prototype,"frostedGlass",void 0);
_.A([_.q({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],bi);
_.m(bi,"ytd-permission-role-bottom-bar-renderer",function(){if(kUI!==void 0)return kUI;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return kUI=R},{mode:1});var E5K;var $hp;var q4a={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var Ft=function(){return _.W.apply(this,arguments)||this};
_.O(Ft,_.W);_.J=Ft.prototype;_.J.attached=function(){this.JSC$20632_scroller&&(this.JSC$20632_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20632_scroller.attached&&typeof this.JSC$20632_scroller.attached==="function"&&this.JSC$20632_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(u){u.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var R=_.hw(this.hostElement);R.querySelector("tp-yt-paper-radio-group").selected="";var y=R.querySelector("#reason-text");y&&(y.value="");R.querySelector("#description-text").value=""}};
_.J.canSubmit=function(R,y){_.Ko(this.hostElement,"yt-invalidate-popup-tabbables");return!(R&&y)};
_.J.onCancel=function(){_.Ik(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.J.onSubmit=function(){var R=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(M){return M.active}).map(function(M){return M.innerText.trim()}),y=this.hostElement.querySelector("tp-yt-paper-radio-group"),u=y.selectedItem,v=u.name;
u=u.innerText.trim();var Q=y.querySelector("#reason-text");y=void 0;Q&&(y=Q.value);(Q=this.descriptionText.value)&&(Q=Q.trim());XyK(this.data.searchQuery,R,v,u,Q,y);_.Ik(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.J.sendFormSubmitToast=function(){var R=_.JU(_.fo("SBOX_INAPPROPRIATE_TOAST"));_.Ik(this.hostElement,"yt-open-popup-action",[R,this])};
_.J.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(R){return R.active})};
_.J.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
Ft.prototype.onIronSelect=Ft.prototype.onIronSelect;Ft.prototype.onIronChange=Ft.prototype.onIronChange;Ft.prototype.dataChanged=Ft.prototype.dataChanged;_.A([_.r(),_.p("design:type",Object)],Ft.prototype,"data",void 0);_.A([_.r({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.p("design:type",Boolean)],Ft.prototype,"submitDisabled",void 0);_.A([_.r(),_.p("design:type",Boolean)],Ft.prototype,"suggestionSelected",void 0);
_.A([_.r(),_.p("design:type",Boolean)],Ft.prototype,"catagorySelected",void 0);_.A([_.O7("#scroller"),_.p("design:type",Object)],Ft.prototype,"JSC$20632_scroller",void 0);_.A([_.O7("#description-text"),_.p("design:type",Object)],Ft.prototype,"descriptionText",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ft.prototype,"dataChanged",null);
_.A([_.fu("iron-change"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ft.prototype,"onIronChange",null);_.A([_.fu("iron-select"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ft.prototype,"onIronSelect",null);_.A([_.q({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],Ft);
_.m(Ft,"ytd-search-suggestion-report-dialog",function(){if($hp!==void 0)return $hp;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);return $hp=R},{mode:1});var wz=function(R){var y=R.openPopupAction;var u=R.target;var v=R.container;var Q=R.popupContainerConfig;var M=R.getElement;R=R.removeWhenClosed===void 0?!1:R.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=y;this.target=u;this.container=v;this.popupContainerConfig=Q;this.getElement=M;this.JSC$20638_popupConfig=this.popupContainerConfig.JSC$19754_popupConfig[this.openPopupAction.popupType];this.rendererName=(y=this.getName())?_.Gwv(y,e_m(this.popupContainerConfig,
y)):"";_.f("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=R);this.createPopup()};
wz.prototype.updatePopup=function(R){this.openPopupAction=R;this.JSC$20638_popupConfig=this.popupContainerConfig.JSC$19754_popupConfig[this.openPopupAction.popupType];qHo(this);_.f("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
wz.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var Aug=function(R,y,u){(y=y&&R.JSC$20638_popupConfig.narrowProperties?R.JSC$20638_popupConfig.narrowProperties:R.JSC$20638_popupConfig.properties)&&u!==void 0&&(y.isAriaModal=u);XwK(R,y);R.isRtl()&&XwK(R,R.JSC$20638_popupConfig.rtlProperties);mhm(R)};
wz.prototype.createPopup=function(){var R=this.JSC$20638_popupConfig.component;if(this.popupContent=DhJ(this,this.rendererName)){if(R){this.popup=DhJ(this,R);var y=this.popupContent;_.f("web_enable_wrapper_for_cow_component_in_popup")&&(y=document.createElement("div"),y.appendChild(this.popupContent));_.f("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$20638_popupConfig.slotName&&y.setAttribute("slot",this.JSC$20638_popupConfig.slotName);R=this.popup;var u=this.container.tagName.toLowerCase(),
v=_.Qa(y);_.vQL(_.Mz(R),_.i8(y,u,v));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.f("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.hw(this.container).appendChild(this.popup)}};
var qHo=function(R){var y,u,v=(y=R.openPopupAction.accessibilityData)==null?void 0:(u=y.accessibilityData)==null?void 0:u.label;v&&(R.popup.ariaLabel=v);var Q;((Q=R.popupContent.polymerController)!=null?Q:R.popupContent).data=(0,_.Ps.unsafeClone)(R.openPopupAction.popup[R.getName()]);R.popupContent.duration=pwP(R);R.popupContent.positionType=R.openPopupAction.position;var M=R.openPopupAction.properties;M&&Object.keys(M).forEach(function(K){R.popupContent[K]=M[K]})},XwK=function(R,y){if(y)for(var u=
_.V(Object.keys(y)),v=u.next();!v.done;v=u.next())v=v.value,R.popup[v]=y[v]},mhm=function(R){if(R.openPopupAction.position){var y=R.JSC$20638_popupConfig.positionalProperties&&R.JSC$20638_popupConfig.positionalProperties[R.openPopupAction.position],u=R.JSC$20638_popupConfig.rtlPositionalProperties&&R.JSC$20638_popupConfig.rtlPositionalProperties[R.openPopupAction.position];
y=R.isRtl()&&u?u:y;y.shiftedHorizontalOffset&&(u=R.popup.style.display,R.popup.style.display="block",R.popupContent&&R.popup.positionTarget&&R.popupContent.clientWidth>R.popup.positionTarget.clientWidth&&(y.horizontalOffset=R.popup.positionTarget.clientWidth/2-y.shiftedHorizontalOffset),R.popup.style.display=u);XwK(R,y)}},tOH=function(R,y){if(y)for(var u=_.V(Object.keys(y)),v=u.next();!v.done;v=u.next())v=v.value,R.popup.style[v]=y[v]};
wz.prototype.getName=function(){return _.dB(this.openPopupAction.popup,"renderer")||_.dB(this.openPopupAction.popup,"dialog")||_.dB(this.openPopupAction.popup,"model")||void 0};
var pwP=function(R){R=R.openPopupAction.durationHintMs;return R===0?R:Math.max(4E3,R||4E3)};
wz.prototype.isRtl=function(){return _.EB("HTML_DIR")==="rtl"};
var DhJ=function(R,y){R=R.getElement(y,R.target);R==null&&_.kT(new _.OL("popup getElement returned null",y));return R};var cuJ={};
cuJ.YtPopupContainerBehavior=[_.sx.YtComponentBehavior,_.bW.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.isAriaModal=!1},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.VL(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.ih(this.hostElement)},
closePopup:function(R){var y=this.createCacheKey(void 0,R);this.popups_[y]&&this.handleClosePopupAction_(void 0,R)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.WG.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.WG.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 y=this.popups_[R];if(y.popup.scrollAction==="refit"){var u=y.popup.positionTarget.getBoundingClientRect(),v=y.popup;u=u.top;var Q=y;if(!Q.naturalHeight){Q.popup.hidden=!1;Q.popup.style.position="fixed";Q.popup.style.top="0px";Q.popup.style.left="0px";var M=Q.popup.getBoundingClientRect();Q.naturalHeight=M.bottom-M.top;Q.popup.refit()}v.hidden=!(u>=Q.naturalHeight+60);y.popupContent.clientHeight===0&&y.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(R){this.popupContainerConfig=R},
handleOpenPopupAction:function(R,y){var u=R.openPopupAction,v=_.ua().resolve(_.yN(_.HX))&&u.popupType==="TOAST";v&&!u.uniqueId&&(u.uniqueId=_.Lq());if(!_.f("popup_container_parent_target_killswitch")){var Q;y=(Q=this.getParentTarget(y))!=null?Q:y}var M=this.ensurePopup_(u,y);return new _.F4(function(K){M.then(function(h){if(!h)return K();this.maybeCreateNarrowMediaQuery_();var b=this.createCacheKey(h.rendererName,h.openPopupAction.uniqueId);if(u.showOncePerUniqueId){if(this.shownPopupKeys_.has(b))return K();
this.shownPopupKeys_.add(b)}b=this.popups_[b];var N=!(!b||!b.openPopupAction.beReused);N=!!u.reusePopup||N;if(h.popup.opened&&!N){v&&!h.openPopupAction.replacePopup||this.handleClosePopupAction_(h.rendererName,h.openPopupAction.uniqueId);N=u.popupType==="DIALOG"&&!_.f("popup_container_dialog_reopen_killswitch");if(!v&&!N&&b&&b.target==y&&!h.openPopupAction.replacePopup)return K();_.gn(h.popup,function(){this.completeOpenPopupAction_(u,y,h);K()}.bind(this))}else h.popup.opened?h.updatePopup(u):this.completeOpenPopupAction_(u,
y,h),K()}.bind(this))}.bind(this))},
getParentTarget:function(R){if(R&&R instanceof HTMLElement)for(var y=_.V(Object.entries(this.popups_)),u=y.next();!u.done;u=y.next())if(u=_.V(u.value),u.next(),u=u.next().value,u.popup.tagName==="TP-YT-IRON-DROPDOWN"&&R.closest(u.rendererName))return u.target},
completeOpenPopupAction_:function(R,y,u){u.updatePopup(R);R=this.narrowMediaQuery_.queryMatches;var v=this.isAriaModal;u.target=y;var Q;y=((Q=u.target.polymerController)!=null?Q:u.target).popupPositionTarget||u.target;u.JSC$20638_popupConfig.targetContainer&&(y=u.container);u.popup.positionTarget=y;u.popupContent.positionTarget=y;mhm(u);u.JSC$20638_popupConfig.forceFocus&&(u.popupContent.style.outline="none");u.popupContent.tabIndex=-1;u.JSC$20638_popupConfig.narrowProperties&&(u.popup.style.position=
"static");u.JSC$20638_popupConfig.preventAutonav&&u.popup.setAttribute("prevent-autonav",!0);u.JSC$20638_popupConfig.forceCloseOnOutsideClick&&u.popup.setAttribute("force-close-on-outside-click",!0);Aug(u,R,v);tOH(u,u.JSC$20638_popupConfig.styles);u.isRtl()&&tOH(u,u.JSC$20638_popupConfig.rtlStyles);if(!u.openPopupAction.shouldStopParentSignal){var M;Q=(M=u.target.polymerController)!=null?M:u.target;(u.popupContent.startForwardingEvents||u.popupContainerConfig.forwardingEnabledPopups.has(u.rendererName))&&
Q.parentComponent!==u.popupContent&&u.popupContent!==u.target&&u.target!==document.body&&(u.popupContent.startForwardingEvents?u.popupContent.startForwardingEvents(u.popupContainerConfig.forwardedEvents,u.target):(u.JSC$20638_eventForwarder||(u.JSC$20638_eventForwarder=new _.F1(u.popupContent)),u.JSC$20638_eventForwarder.start(u.popupContainerConfig.forwardedEvents,u.target)))}u=u.popup;u.addEventListener("iron-overlay-opened",_.BN(this,this.onPopupIronOverlayOpened_));u.addEventListener("iron-overlay-closed",
_.BN(this,this.onPopupIronOverlayClosed_));u.addEventListener("iron-overlay-canceled",_.BN(this,this.onPopupIronOverlayCanceled_));u.addEventListener("yt-refit",_.BN(this,this.refitPopup_));u.addEventListener("yt-invalidate-popup-tabbables",_.BN(this,this.handleInvalidatePopupTabbables_));u.open()},
getPopupDurationMs_:function(R){return R.durationHintMs===0?R.durationHintMs:Math.max(4E3,R.durationHintMs||4E3)},
handleClosePopupAction_:function(R,y){var u=_.f("web_popup_cache_key_killswitch")||!!y;if(R||u){var v=this.createCacheKey(R,y);R=(R=this.popups_[v])&&R.popup}else R=_.Jew(_.sD);if(R&&R.close){if(y=_.ua().resolve(_.yN(_.Ti)))R.restoreFocusOnClose=y.isKeyBoardInUse();R.close();this.removePopup_(R,v)}},
handleClosePopupCommand_:function(R){R.closePopupCommand&&R.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,R.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(R){var y={},u;for(u in this.popups_)if(y={key$jscomp$1184:y.key$jscomp$1184},y.key$jscomp$1184=u,!R||!R.some(function(M){return function(K){return K==M.key$jscomp$1184}}(y))){var v=this.popups_[y.key$jscomp$1184],Q=v.popup;
_.ua().resolve(_.yN(_.HX))&&v.openPopupAction.popupType==="TOAST"||(Q&&Q.close&&Q.close(),this.removePopup_(Q,y.key$jscomp$1184))}},
handleClosePopupsAction_:function(R){R.forEach(function(y){var u=this.popups_[y];u&&((u=u.popup)&&u.close&&u.close(),this.removePopup_(u,y))}.bind(this))},
handleGetPopupOpenedAction_:function(R,y){return(y=this.createCacheKey(R,y))&&this.popups_[y]?this.popups_[R].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var R=[],y;for(y in this.popups_){var u=this.popups_[y];u.popup.opened&&R.push(u)}return R},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(R,y){_.f("ytpopup_disable_default_html_caching")&&R&&R.removeWhenClosed&&(_.hw(this.hostElement).removeChild(R),y&&this.popups_[y]&&delete this.popups_[y])},
shouldReusePopup_:function(R){return!(!R||!R.reusePopup)||!(!R||!R.beReused)},
ensurePopup_:function(R,y){this.maybeCreateNarrowMediaQuery_();var u=_.dB(R.popup,"renderer")||_.dB(R.popup,"dialog")||_.dB(R.popup,"model");if(!u)return _.NQ();u=_.Gwv(u,e_m(this.popupContainerConfig,u));return _.NQ(this.getAndMaybeCreatePopup_(R,u,y))},
getAndMaybeCreatePopup_:function(R,y,u){var v=this.createCacheKey(y,R.uniqueId);if(this.popups_[v])return this.popups_[v];R=new wz({openPopupAction:R,target:u,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(y)});return this.popups_[v]=R},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(R){return _.f("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",_.BN(this,this.openPopupQueryMatchesChanged_)),_.hw(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(R){R=R.detail.value;for(var y in this.popups_)Aug(this.popups_[y],R)},
onPopupIronOverlayClosed_:function(R){var y=R.currentTarget,u=_.l88(y);u=u.length>0?u[0]:y;if(u.is!=="ytd-reel-watch-while-dialog-renderer"||R.target.is!=="tp-yt-iron-dropdown"){R.detail.popup=y;R.detail.popupRenderer=u;var v,Q={context:{openingElement:((v=this.popups_[(u==null?void 0:u.is)||""])==null?void 0:v.target)||void 0}};Object.assign(Q,R.detail);var M;_.Ko((M=u.hostElement)!=null?M:u,"yt-popup-closed",Q);y.removeEventListener("yt-refit",_.BN(this,this.refitPopup_));y.removeEventListener("yt-invalidate-popup-tabbables",
_.BN(this,this.handleInvalidatePopupTabbables_));y.removeEventListener("iron-overlay-canceled",_.BN(this,this.onPopupIronOverlayCanceled_));y.removeEventListener("iron-overlay-closed",_.BN(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(y)}},
onPopupIronOverlayCanceled_:function(R,y){var u=R.currentTarget,v=_.l88(u);v=v.length>0?v[0]:u;if(v.is!=="ytd-reel-watch-while-dialog-renderer"||R.target.is!=="tp-yt-iron-dropdown"){var Q;_.Ko((Q=v.hostElement)!=null?Q:v,"yt-popup-canceled",R.detail);Q=y?_.u8(y):null;(!y||["click","tap"].includes(y.type))&&!u.hasAttribute("force-close-on-outside-click")&&u.positionTarget&&Q&&Q.includes(u.positionTarget)&&R.preventDefault();u.restoreFocusOnClose=_.Gh.keyboardEventMatchesKeys(y,"esc")}},
onPopupIronOverlayOpened_:function(R){R=R.currentTarget;var y=_.l88(R);y=y.length>0?y[0]:R;var u,v;_.Ko((u=y.hostElement)!=null?u:y,"yt-popup-opened",(v=y.hostElement)!=null?v:y);R.keepBelowPlayer&&(this.ensurePopupBelowPlayer(R,!0),this.dynamicallyPositionedElements_.add(R));u=_.ua().resolve(_.yN(_.Ti));v=!!y.querySelector("#toast");u&&u.isKeyBoardInUse()&&!v&&(typeof y.focusFirstItem==="function"?y.focusFirstItem():(y=_.Q2L(R),y.length&&y[0].focus()));R.removeEventListener("iron-overlay-opened",
_.BN(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,y){return _.f("web_popup_cache_key_killswitch")?y?R+"#"+y:R:y?"#"+y:R},
openSheet:function(R,y){var u=R==null?void 0:R.openPopupActionCommand;!u&&(R==null?0:R.viewModel)&&(u={openPopupAction:{popup:{sheetViewModel:R.viewModel},popupType:"CONTEXTUAL_SHEET"}});u&&this.handleOpenPopupAction(u,y)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var R=this;return _.I(function(y){return y.return(R.handleGetOpenedPopupsAction_().filter(function(u){var v;return((v=u.openPopupAction)==null?void 0:v.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(R,y,u){if(_.f("web_dialog_utils_killswitch")){var v=R==null?void 0:R.openPopupActionCommand,Q=(u==null?0:u.ariaLabel)?{accessibilityData:{accessibilityData:{label:u.ariaLabel}}}:void 0;!v&&(R==null?0:R.viewModel)&&(v={openPopupAction:Object.assign({},{popup:{dialogViewModel:R.viewModel},popupType:(u==null?0:u.isModal)?"MODAL":"DIALOG"},Q&&Q)});v&&this.handleOpenPopupAction(v,y)}else{if(Q=R==null?void 0:R.viewModel){var M=u=u===void 0?{}:u;u=M.ariaLabel;Q={popup:{dialogViewModel:Q},
popupType:M.isModal?"MODAL":"DIALOG"};M={accessibilityData:{label:u}};u&&(Q.accessibilityData=M);Q={openPopupAction:Q}}else Q=void 0;if(Q=(v=Q)!=null?v:R==null?void 0:R.openPopupActionCommand)this.isAriaModal=_.f("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(Q,y)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var R=this;return _.I(function(y){return y.return(R.handleGetOpenedPopupsAction_().filter(function(u){var v;return((v=u.openPopupAction)==null?void 0:v.popupType)==="DIALOG"}).length>0)})}}];var aZJ;var SHV;var YHV=_.RE(["about:blank"]),N2=function(){var R=_.W.apply(this,arguments)||this;R.isMuted=!1;R.pageLoadTimeoutId=void 0;return R};
_.O(N2,_.W);_.J=N2.prototype;_.J.dataChanged=function(){var R=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var y=this.data.url,u=_.d3(y);_.f("enable_yt_ata_iframe_authuser")?(u=_.d3(y),_.cg(this.iframe,mkp(u))):_.cg(this.iframe,u);this.pageLoadTimeoutId=_.Oh(_.EJ(),function(){return void R.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.MW({destination:window,iframe:this.iframe,origin:_.CJL(u.toString()),channelName:"ataiframe",onMessage:_.QLL(nXP,function(v){GLZ(v.data)?(v=_.Do(v.data,1,_.gg,_.Q7()),v.length!==1?_.kT(Error("ql")):(v=v[0],v===3?(R.isMuted=!0,R.logStateChanged({adMuteRequested:!0})):v===1&&R.close())):_.kT(Error("rl"))}),
onEstablished:function(){R.cancelPageLoadTimeout();R.logStateChanged({pageLoadSucceeded:!0})}})}};
_.J.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.EJ().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.J.logStateChanged=function(R){var y;if((y=this.data)==null?0:y.trackingParams)R={adsClientData:{aboutThisAdData:R}},_.GN().stateChanged(this.data.trackingParams,R)};
_.J.close=function(){_.Ik(this.hostElement,"yt-close-popup-action",[this.is])};
_.J.handlesPopupClosed=function(R,y){var u=this,v,Q;return _.I(function(M){if(M.nextAddress==1)return _.EB("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.Ik(u.hostElement,"on-about-this-ad-popup-closed",[u.isMuted,y]),M.jumpTo(0)):R&&AdK(R)?M.yield(DkH(R),4):(u.isMuted&&_.Ik(u.hostElement,"yt-mute-ad-action",[u.is,u]),M.jumpTo(0));if(v=M.yieldResult){var K=Q=new _.kQ(v),h=u.isMuted;K.getOptions().includes("onAboutThisAdPopupClosed")?_.I98(K,"onAboutThisAdPopupClosed",{isMuted:h,layoutId:y}):_.M5("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.f$(M)})};
_.J.onPopupClosed=function(R){var y=this,u,v;return _.I(function(Q){u=_.M1(YHV);_.cg(y.iframe,u);y.cancelPageLoadTimeout();if(!y.data)return Q.jumpTo(0);y.ytRendererBehavior.markDirty();v=R.detail.context.openingElement;return Q.yield(y.handlesPopupClosed(v,y.data.layoutId),0)})};
_.J.detached=function(){this.cancelPageLoadTimeout()};
_.J.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
N2.prototype.onPopupClosed=N2.prototype.onPopupClosed;N2.prototype.dataChanged=N2.prototype.dataChanged;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],N2.prototype,"ytRendererBehavior",void 0);_.A([_.O7("#iframe"),_.p("design:type",HTMLIFrameElement)],N2.prototype,"iframe",void 0);_.A([_.r(),_.p("design:type",Object)],N2.prototype,"data",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],N2.prototype,"dataChanged",null);
_.A([_.fu("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype",Promise)],N2.prototype,"onPopupClosed",null);_.A([_.pu({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],N2);
_.m(N2,"yt-about-this-ad-renderer",function(){if(SHV===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;aZJ===void 0&&(aZJ=document.createElement("template"));var v=aZJ;u.call(y,v.content.cloneNode(!0),R.content.firstChild);SHV=R}R=SHV;return R},{mode:2});var Ltm;var sYK;var TO=function(R){var y=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=y.message;"stack"in y&&(this.stack=y.stack);this.maxFileSizeMB=R;Object.setPrototypeOf(this,TO.prototype)};
_.O(TO,Error);var zaI=function(R,y){var u=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=u.message;"stack"in u&&(this.stack=u.stack);this.minWidth=R;this.minHeight=y;Object.setPrototypeOf(this,zaI.prototype)};
_.O(zaI,Error);var g5p=function(R){this.requirements=R;this.JSC$20666_maxFileSize=R.maxFileSizeMB*1024*1024},CeK=function(R,y){if(y.size>R.JSC$20666_maxFileSize)throw new TO(R.requirements.maxFileSizeMB);
};var R1H=function(R,y){this.canvas=R;this.imageEditorBuilder=y};
R1H.prototype.addEventListeners=function(R){var y=function(Q){yfZ(R,Q)};
this.JSC$20672_mouseDownEvent=y;var u=function(Q){uf7(R,Q)};
this.JSC$20672_mouseMoveEvent=u;var v=function(){vP8(R)};
this.JSC$20672_mouseUpEvent=v;this.canvas.addEventListener("mousedown",y);this.canvas.addEventListener("mousemove",u);document.addEventListener("mouseup",v)};
R1H.prototype.removeEventListeners=function(){this.JSC$20672_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$20672_mouseDownEvent);this.JSC$20672_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$20672_mouseMoveEvent);this.JSC$20672_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$20672_mouseUpEvent)};
var Q$M=function(R,y){R.removeEventListeners();return new Promise(function(u){var v=new Image;v.crossOrigin="anonymous";v.onload=function(){var Q=R.imageEditorBuilder(R.canvas,v);R.addEventListeners(Q);u(Q)};
v.src=y})},oT=function(R,y,u,v,Q,M,K,h){this.canvas=R;
this.image=y;this.requiredRatio=u;this.minImageCropDimension=v;this.minOutputImageResolution=Q;this.component=M;this.styleFocusedCorner=h===void 0?!0:h;this.action=2;this.focusedCorner=this.resizeCorner=0;R=this.canvas.getContext("2d");if(!R)throw Error("sl");this.ctx=R;this.canvasMargin=K!=null?K:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;K=this.image;R=this.canvasInnerWidth/K.width;K.height*R>912&&(R=K.width/K.height*912/K.width);K=R;this.scaledImageWidth=this.canvas.width%2?
tbH(this.image.width*K):pyZ(this.image.width*K);this.scaledImageHeight=Math.round(this.image.height*K);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$20675_overlayMarginBottom=this.JSC$20675_overlayMarginTop=this.canvasMargin;this.JSC$20675_overlayMarginRight=this.JSC$20675_overlayMarginLeft=this.horizontalMargin;this.JSC$20675_overlayWidth=this.scaledImageWidth;this.JSC$20675_overlayHeight=this.scaledImageHeight;
R=this.image.width/this.image.height;R>this.requiredRatio?(this.JSC$20675_overlayWidth=this.canvas.width%2?tbH(this.scaledImageHeight*this.requiredRatio):pyZ(this.scaledImageHeight*this.requiredRatio),this.JSC$20675_overlayMarginRight=this.JSC$20675_overlayMarginLeft=(this.canvas.width-this.JSC$20675_overlayWidth)/2):R<this.requiredRatio&&(this.JSC$20675_overlayHeight=this.canvas.height%2?tbH(this.scaledImageWidth/this.requiredRatio):pyZ(this.scaledImageWidth/this.requiredRatio),this.JSC$20675_overlayMarginBottom=
this.JSC$20675_overlayMarginTop=(this.canvas.height-this.JSC$20675_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*K,this.scaledImageWidth);j$J(this)};
oT.prototype.getContext=function(){return this.ctx};
var yfZ=function(R,y){y={x:Math.round(y.pageX-R.canvas.getBoundingClientRect().left),y:Math.round(y.pageY-R.canvas.getBoundingClientRect().top)};R.dragStart=y;MWm(R,y)!==0?(R.action=1,Jfa(R,y),R.resizeCorner=MWm(R,y)):y.x>R.JSC$20675_overlayMarginLeft&&y.x<R.JSC$20675_overlayMarginLeft+R.JSC$20675_overlayWidth&&y.y>R.JSC$20675_overlayMarginTop&&y.y<R.JSC$20675_overlayMarginTop+R.JSC$20675_overlayHeight&&(R.action=0)},VWJ=function(R,y){switch(y){case 1:return{x:R.JSC$20675_overlayMarginLeft,
y:R.JSC$20675_overlayMarginTop};case 2:return{x:R.JSC$20675_overlayMarginLeft,y:R.JSC$20675_overlayMarginTop+R.JSC$20675_overlayHeight};case 3:return{x:R.JSC$20675_overlayMarginLeft+R.JSC$20675_overlayWidth,y:R.JSC$20675_overlayMarginTop};case 4:return{x:R.JSC$20675_overlayMarginLeft+R.JSC$20675_overlayWidth,y:R.JSC$20675_overlayMarginTop+R.JSC$20675_overlayHeight};default:throw Error("tl");}},KSo=function(R,y){if(R.focusedCorner!==0){R.dragStart=VWJ(R,R.focusedCorner);
R.action=1;R.resizeCorner=R.focusedCorner;var u=R.dragStart.x,v=R.dragStart.y;switch(y){case 0:R.focusedCorner===1||R.focusedCorner===4?(u-=10,v-=10):(u-=10,v+=10);break;case 1:R.focusedCorner===1||R.focusedCorner===4?(u+=10,v+=10):(u+=10,v-=10);break;case 2:u=R.focusedCorner===1||R.focusedCorner===4?u-10:u+10;v-=10;break;case 3:u=R.focusedCorner===1||R.focusedCorner===4?u+10:u-10;v+=10;break;default:throw Error("ul");}irK(R,{x:u,y:v});j$J(R);R.action=2;R.dragStart=void 0}},uf7=function(R,y){y={x:Math.round(y.pageX-
R.canvas.getBoundingClientRect().left),
y:Math.round(y.pageY-R.canvas.getBoundingClientRect().top)};Jfa(R,y);switch(R.action){case 1:irK(R,y);break;case 0:R.dragStart&&(R.JSC$20675_overlayMarginLeft=Math.max(R.horizontalMargin,Math.min(R.JSC$20675_overlayMarginLeft-(R.dragStart.x-y.x),R.horizontalMargin+R.scaledImageWidth-R.JSC$20675_overlayWidth)),R.JSC$20675_overlayMarginRight=R.canvas.width-R.JSC$20675_overlayMarginLeft-R.JSC$20675_overlayWidth,R.JSC$20675_overlayMarginTop=Math.max(R.canvasMargin,Math.min(R.JSC$20675_overlayMarginTop-
(R.dragStart.y-y.y),R.scaledImageHeight-R.JSC$20675_overlayHeight+R.canvasMargin)),R.JSC$20675_overlayMarginBottom=R.canvas.height-(R.JSC$20675_overlayMarginTop+R.JSC$20675_overlayHeight));break;default:return}j$J(R);R.dragStart=y},vP8=function(R){R.action=2;
R.dragStart=void 0;document.body.style.cursor="auto"},Jfa=function(R,y){switch(MWm(R,y)){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")}},MWm=function(R,y){var u=R.JSC$20675_overlayMarginLeft-5,v=R.JSC$20675_overlayMarginTop-5,Q=R.JSC$20675_overlayMarginLeft+R.JSC$20675_overlayWidth-5;
R=R.JSC$20675_overlayMarginTop+R.JSC$20675_overlayHeight-5;return IuP(y,{x:u,y:v})?1:IuP(y,{x:Q,y:v})?3:IuP(y,{x:u,y:R})?2:IuP(y,{x:Q,y:R})?4:0},IuP=function(R,y){return R.x>=y.x&&R.x<=y.x+10&&R.y>=y.y&&R.y<=y.y+10},irK=function(R,y){if(R.dragStart)switch(R.resizeCorner){case 2:Math.abs((R.JSC$20675_overlayMarginLeft+R.JSC$20675_overlayWidth-y.x)/(y.y-R.JSC$20675_overlayMarginTop))>=R.requiredRatio?h1J(R,y.x):br7(R,y.y);
break;case 1:Math.abs((R.JSC$20675_overlayMarginLeft+R.JSC$20675_overlayWidth-y.x)/(R.JSC$20675_overlayMarginTop+R.JSC$20675_overlayHeight-y.y))>=R.requiredRatio?FSM(R,y.x):br7(R,y.y);break;case 4:Math.abs((y.x-R.JSC$20675_overlayMarginLeft)/(y.y-R.JSC$20675_overlayMarginTop))>=R.requiredRatio?h1J(R,y.x):wqJ(R,y.y);break;case 3:Math.abs((y.x-R.JSC$20675_overlayMarginLeft)/(R.JSC$20675_overlayMarginTop+R.JSC$20675_overlayHeight-y.y))>=R.requiredRatio?FSM(R,y.x):wqJ(R,y.y);break;default:throw Error("vl");
}},h1J=function(R,y){var u=R.JSC$20675_overlayMarginTop;
R.JSC$20675_overlayMarginBottom=Nlp(R,y);R.JSC$20675_overlayHeight=R.canvas.height-R.JSC$20675_overlayMarginBottom-u;R.JSC$20675_overlayWidth=Math.round(R.JSC$20675_overlayHeight*R.requiredRatio);TlI(R)},FSM=function(R,y){var u=R.JSC$20675_overlayMarginTop+R.JSC$20675_overlayHeight;
R.JSC$20675_overlayMarginTop=Nlp(R,y);R.JSC$20675_overlayHeight=u-R.JSC$20675_overlayMarginTop;R.JSC$20675_overlayWidth=Math.round(R.JSC$20675_overlayHeight*R.requiredRatio);TlI(R)},TlI=function(R){switch(R.resizeCorner){case 2:case 1:R.JSC$20675_overlayMarginLeft=R.canvas.width-R.JSC$20675_overlayMarginRight-R.JSC$20675_overlayWidth;
break;case 4:case 3:R.JSC$20675_overlayMarginRight=R.canvas.width-R.JSC$20675_overlayMarginLeft-R.JSC$20675_overlayWidth;break;default:throw Error("vl");}},br7=function(R,y){var u=R.JSC$20675_overlayMarginLeft+R.JSC$20675_overlayWidth;
R.JSC$20675_overlayMarginLeft=oP8(R,y);R.JSC$20675_overlayWidth=u-R.JSC$20675_overlayMarginLeft;R.JSC$20675_overlayHeight=Math.round(R.JSC$20675_overlayWidth/R.requiredRatio);xfg(R)},wqJ=function(R,y){var u=R.JSC$20675_overlayMarginLeft;
R.JSC$20675_overlayMarginRight=oP8(R,y);R.JSC$20675_overlayWidth=R.canvas.width-R.JSC$20675_overlayMarginRight-u;R.JSC$20675_overlayHeight=Math.round(R.JSC$20675_overlayWidth/R.requiredRatio);xfg(R)},xfg=function(R){switch(R.resizeCorner){case 2:case 4:R.JSC$20675_overlayMarginBottom=R.canvas.height-R.JSC$20675_overlayMarginTop-R.JSC$20675_overlayHeight;
break;case 1:case 3:R.JSC$20675_overlayMarginTop=R.canvas.height-R.JSC$20675_overlayMarginBottom-R.JSC$20675_overlayHeight;break;default:throw Error("vl");}},Nlp=function(R,y){switch(R.resizeCorner){case 2:y=R.canvas.height-(R.JSC$20675_overlayMarginTop+Blo(R,y));
break;case 4:y=R.canvas.height-(R.JSC$20675_overlayMarginTop+fuM(R,y));break;case 1:y=R.JSC$20675_overlayMarginTop+R.JSC$20675_overlayHeight-Blo(R,y);break;case 3:y=R.JSC$20675_overlayMarginTop+R.JSC$20675_overlayHeight-fuM(R,y);break;default:throw Error("vl");}return Math.max(y,R.canvasMargin)},Blo=function(R,y){y=R.JSC$20675_overlayMarginLeft+R.JSC$20675_overlayWidth-Math.max(y,R.horizontalMargin);
y=y<0?R.JSC$20675_overlayWidth:Math.max(y,R.minOverlayWidth);return Math.round(y/R.requiredRatio)},fuM=function(R,y){y=R.canvas.width-Math.max(R.canvas.width-y,R.horizontalMargin)-R.JSC$20675_overlayMarginLeft;
y=y<0?R.JSC$20675_overlayWidth:Math.max(y,R.minOverlayWidth);return Math.round(y/R.requiredRatio)},oP8=function(R,y){switch(R.resizeCorner){case 2:y=R.canvas.width-R.JSC$20675_overlayMarginRight-e1P(R,y);
break;case 4:y=R.canvas.width-R.JSC$20675_overlayMarginLeft-e1P(R,y);break;case 1:y=R.canvas.width-R.JSC$20675_overlayMarginRight-luo(R,y);break;case 3:y=R.canvas.width-R.JSC$20675_overlayMarginLeft-luo(R,y);break;default:throw Error("vl");}return Math.max(y,R.horizontalMargin)},e1P=function(R,y){y=R.canvas.height-Math.max(R.canvas.height-y,R.canvasMargin)-R.JSC$20675_overlayMarginTop;
return y<0?R.JSC$20675_overlayWidth:Math.max(Math.round(y*R.requiredRatio),R.minOverlayWidth)},luo=function(R,y){y=R.JSC$20675_overlayMarginTop+R.JSC$20675_overlayHeight-Math.max(y,R.canvasMargin);
return y<0?R.JSC$20675_overlayWidth:Math.max(Math.round(y*R.requiredRatio),R.minOverlayWidth)},j$J=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$20675_overlayMarginTop,R.JSC$20675_overlayMarginLeft-R.horizontalMargin,R.JSC$20675_overlayHeight);R.ctx.fillRect(R.JSC$20675_overlayMarginLeft+R.JSC$20675_overlayWidth,R.JSC$20675_overlayMarginTop,R.JSC$20675_overlayMarginRight-R.horizontalMargin,R.JSC$20675_overlayHeight);R.ctx.fillRect(R.horizontalMargin,
R.canvasMargin,R.scaledImageWidth,R.JSC$20675_overlayMarginTop-R.canvasMargin);R.ctx.fillRect(R.horizontalMargin,R.JSC$20675_overlayMarginTop+R.JSC$20675_overlayHeight,R.scaledImageWidth,R.JSC$20675_overlayMarginBottom-R.canvasMargin);R.drawOverlay();R.component&&_.Ko(R.component,"image-updated")};
oT.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$20675_overlayMarginLeft,this.JSC$20675_overlayMarginTop,this.JSC$20675_overlayWidth,this.JSC$20675_overlayHeight);OrJ(this)};
var OrJ=function(R){var y=R.JSC$20675_overlayMarginLeft-5,u=R.JSC$20675_overlayMarginTop-5,v=R.JSC$20675_overlayMarginLeft+R.JSC$20675_overlayWidth-5,Q=R.JSC$20675_overlayMarginTop+R.JSC$20675_overlayHeight-5;R.ctx.fillStyle="#FFF";R.ctx.fillRect(y,u,10,10);R.ctx.strokeRect(y,u,10,10);R.ctx.fillRect(v,u,10,10);R.ctx.strokeRect(v,u,10,10);R.ctx.fillRect(y,Q,10,10);R.ctx.strokeRect(y,Q,10,10);R.ctx.fillRect(v,Q,10,10);R.ctx.strokeRect(v,Q,10,10);if(R.focusedCorner!==0&&R.styleFocusedCorner){R.ctx.lineWidth=
4;R.ctx.strokeStyle="#3EA6FF";switch(R.focusedCorner){case 1:--y;--u;break;case 2:--y;u=Q-1;break;case 3:y=v-1;--u;break;case 4:y=v-1;u=Q-1;break;default:return}R.ctx.strokeRect(y,u,12,12)}};
oT.prototype.crop=function(R,y){y=y===void 0?!0:y;var u=this.image.width/this.scaledImageWidth,v=document.createElement("canvas"),Q=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],M=this.JSC$20675_overlayWidth*u,K=this.JSC$20675_overlayHeight*u;v.width=Math.max(M,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);v.height=Math.max(K,Q);R&&(v.width=Math.min(v.width,v.height),v.height=Math.min(v.width,v.height));
R=v.getContext("2d");if(!R)throw Error("jl");Q=(this.JSC$20675_overlayMarginLeft-this.horizontalMargin)*u;u*=this.JSC$20675_overlayMarginTop-this.canvasMargin;y||(R.fillStyle="white",R.fillRect(0,0,v.width,v.height));R.drawImage(this.image,Q,u,M,K,0,0,v.width,v.height);return v};var Zrg=function(R,y,u,v,Q){oT.call(this,R,y,u,v,void 0,Q,8,!1)};
_.O(Zrg,oT);Zrg.prototype.drawOverlay=function(){var R=this.getContext(),y=this.JSC$20675_overlayWidth,u=this.JSC$20675_overlayHeight,v=this.JSC$20675_overlayMarginTop,Q=this.JSC$20675_overlayMarginLeft;R.lineWidth=2;R.strokeStyle="#3EA6FF";R.beginPath();R.arc(Q+y/2,v+u/2,y/2,0,2*Math.PI);R.stroke();R.strokeRect(Q,v,y,u);OrJ(this)};
var Hr8={maxFileSizeMB:15,minWidth:98,minHeight:98},nPK=["image/png","image/jpeg","image/gif"],xy=function(){var R=_.W.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};
_.O(xy,_.W);_.J=xy.prototype;_.J.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.J.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.J.computePlaylistThumbnail=function(R){return R==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.J.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.Ik(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.J.setErrorState=function(R){this.resetErrorState();R&&(this.errorMessage=R)};
_.J.showPopup=function(){var R=this;this.hideContainer=!1;_.Oh(_.WG,function(){_.Ko(R.hostElement,"yt-refit")});
this.isLoading=!1};
_.J.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.J.closePopup=function(){this.resetFileSelector();_.Ik(this.hostElement,"yt-close-popup-action",[this.is])};
_.J.onCancelTap=function(){this.isPlaylistThumbnail||_.Ik(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.J.openFileSelector=function(){var R=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.Oh(_.WG,function(){setTimeout(function(){if(!R.fileSelector.files||R.fileSelector.files.length===0)R.onCancelTap();R.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(y){y instanceof Error?_.dI(y):_.Uh(new _.OL(JSON.stringify(y)))}};
_.J.handleFileSelection=function(){var R=this,y,u,v,Q,M,K;return _.I(function(h){switch(h.nextAddress){case 1:_.wY(h,2);if(!R.fileSelector.files||!R.imageEditorCanvas)return R.onCancelTap(),h.return();y=R.fileSelector.files[0];CeK(R.imageChecker,y);_.wY(h,4);return h.yield(bkI(y),6);case 6:R.mimeType=h.yieldResult;_.c5(h,5,2);break;case 4:_.B$(h,2),_.Ik(R.hostElement,"yt-image-selection-error-action",[(u=R.data)==null?void 0:u.genericImageLoadErrorMessage]),R.onCancelTap();case 5:v=new FileReader;
v.addEventListener("load",function(){var b,N;return _.I(function(T){if(T.nextAddress==1){if(!v.result)return _.kT(Error("ll")),T.return();b=v.result;N=new Image;N.src=b;N.onload=function(){try{var x=R.imageChecker;if(N.width<x.requirements.minWidth||N.height<x.requirements.minHeight)throw new zaI(x.requirements.minWidth,x.requirements.minHeight);}catch(l){if(l instanceof zaI){var B;_.Ik(R.hostElement,"yt-image-selection-error-action",[(B=R.data)==null?void 0:B.imageDimensionErrorMessage]);R.logImageDimensionErrorVe()}else l instanceof
Error?_.dI(l):(x=new _.OL(JSON.stringify(l)),_.dI(x));R.onCancelTap()}R.showPopup()};
N.onerror=function(){var x;_.Ik(R.hostElement,"yt-image-selection-error-action",[(x=R.data)==null?void 0:x.genericImageLoadErrorMessage]);R.onCancelTap()};
return T.yield(Q$M(R.imageEditorCanvas,b),2)}R.imageEditor=T.yieldResult;R.updatePositionOfAllCorners();R.addEventListeners(R.imageEditor);_.f$(T)})},!1);
v.readAsDataURL(y);_.c5(h,0);break;case 2:Q=_.B$(h),Q instanceof TO?_.Ik(R.hostElement,"yt-image-selection-error-action",[(M=R.data)==null?void 0:M.imageSizeErrorMessage]):(Q instanceof Error?_.dI(Q):_.Uh(new _.OL(JSON.stringify(Q))),_.Ik(R.hostElement,"yt-image-selection-error-action",[(K=R.data)==null?void 0:K.genericImageLoadErrorMessage])),R.onCancelTap(),_.f$(h)}})};
_.J.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var R=_.nk(_.GN(),{veType:232707,visualElement:_.$6(232707)});R&&(R={visualElement:R},_.Hy().reportShown(R))}};
_.J.handleImageSelectionErrorAction=function(R){this.isPlaylistThumbnail&&_.apO(this.hostElement,R)};
_.J.convertToImageFormatBundle=function(R){var y=this,u,v,Q;return _.I(function(M){switch(M.nextAddress){case 1:return u=R.toDataURL(y.outputMimeType,1),M.yield(FNJ(u),2);case 2:v=M.yieldResult;_.wY(M,3);CeK(y.imageChecker,v);_.c5(M,4);break;case 3:Q=_.B$(M);if(!(Q instanceof TO))throw Q;_.kT(new _.OL("Output size is bigger than input size for image",y.mimeType,y.outputMimeType,v.size));u=R.toDataURL("image/jpeg",.95);return M.yield(FNJ(u),6);case 6:v=M.yieldResult;case 4:return M.return({dataUrl:u,
imageFile:v})}})};
_.J.handleUploadImageToScottyCommand=function(R){var y=this,u,v,Q,M,K,h,b,N,T,x;return _.I(function(B){switch(B.nextAddress){case 1:if(!y.imageEditor||!_.e(R,t5V))return B.return();u=_.e(R,t5V).scottyUploadUrl;if(!u){var l=new _.OL("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.dI(l);return B.return()}_.wY(B,2);y.setLoadingState();v=y.imageEditor.crop(!1,!1);return B.yield(y.convertToImageFormatBundle(v),4);case 4:return Q=B.yieldResult,B.yield(Ira(Q.imageFile,u),5);
case 5:M=B.yieldResult;((K=y.data)==null?0:K.onUploadEndpoint)?(h=y.buildUploadServiceEndpoint(M),y.ytComponentBehavior.resolveCommand(h),b=_.e(h,_.pt),((N=b)==null?0:N.params)?y.closePopup():y.resetFileSelector()):(_.Ik(y.hostElement,"yt-image-updated-action",[Q.dataUrl,M]),y.closePopup());_.c5(B,0);break;case 2:T=_.B$(B),y.setErrorState((x=y.data)==null?void 0:x.uploadErrorMessage),T instanceof Error?_.dI(T):(l=new _.OL(JSON.stringify(T)),_.dI(l)),_.f$(B)}})};
_.J.buildUploadServiceEndpoint=function(R){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",R),this.data.onUploadEndpoint):null};
_.J.dataChanged=function(){var R=this,y;return _.I(function(u){if(u.nextAddress==1){if(!R.data||!R.canvasElement)return u.return();R.data.imageRatio&&R.data.minImageCropWidth||_.Uh(new _.OL("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));y=function(v,Q){return R.data.imageType==="IMAGE_TYPE_AVATAR"?new Zrg(v,Q,R.data.imageRatio,[R.data.minImageCropWidth,R.data.minImageCropWidth/R.data.imageRatio],R.hostElement):new oT(v,Q,R.data.imageRatio,[R.data.minImageCropWidth,
R.data.minImageCropWidth/R.data.imageRatio],void 0,R.hostElement,8,!1)};
R.imageEditorCanvas=new R1H(R.canvasElement,y);return R.data.url?u.yield(Q$M(R.imageEditorCanvas,R.data.url),3):(R.hideContainer=!0,R.openFileSelector(),u.jumpTo(0))}R.imageEditor=u.yieldResult;R.showPopup();R.addEventListeners(R.imageEditor);_.f$(u)})};
_.J.addEventListeners=function(R){this.removeEventListeners();var y=function(Q){yfZ(R,Q)};
this.JSC$20683_mouseDownEvent=y;var u=function(Q){uf7(R,Q)};
this.JSC$20683_mouseMoveEvent=u;var v=function(){vP8(R)};
this.JSC$20683_mouseUpEvent=v;this.topLeftCorner.addEventListener("mousedown",y);this.topLeftCorner.addEventListener("mousemove",u);this.topLeftCorner.addEventListener("mouseup",v);this.topRightCorner.addEventListener("mousedown",y);this.topRightCorner.addEventListener("mousemove",u);this.topRightCorner.addEventListener("mouseup",v);this.bottomLeftCorner.addEventListener("mousedown",y);this.bottomLeftCorner.addEventListener("mousemove",u);this.bottomLeftCorner.addEventListener("mouseup",v);this.bottomRightCorner.addEventListener("mousedown",
y);this.bottomRightCorner.addEventListener("mousemove",u);this.bottomRightCorner.addEventListener("mouseup",v)};
_.J.removeEventListeners=function(){this.JSC$20683_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$20683_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$20683_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$20683_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$20683_mouseDownEvent));this.JSC$20683_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$20683_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$20683_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$20683_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$20683_mouseMoveEvent));this.JSC$20683_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$20683_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$20683_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$20683_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$20683_mouseUpEvent))};
_.J.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};
_.J.updatePositionOfCorner=function(R,y){var u=R.y-y.offsetHeight/2+4;y.style.left=R.x-y.offsetWidth/2+16+"px";y.style.top=u+"px"};
_.J.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var R=_.V([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),y=R.next();!y.done;y=R.next()){y=y.value;var u=VWJ(this.imageEditor,y.corner);this.updatePositionOfCorner(u,y.div)}};
_.J.onLeft=function(R){this.imageEditor&&this.setFocusInImageEditor()&&(KSo(this.imageEditor,0),this.updatePositionOfAllCorners(),R.preventDefault())};
_.J.onRight=function(R){this.imageEditor&&this.setFocusInImageEditor()&&(KSo(this.imageEditor,1),this.updatePositionOfAllCorners(),R.preventDefault())};
_.J.onUp=function(R){this.imageEditor&&this.setFocusInImageEditor()&&(KSo(this.imageEditor,2),this.updatePositionOfAllCorners(),R.preventDefault())};
_.J.onDown=function(R){this.imageEditor&&this.setFocusInImageEditor()&&(KSo(this.imageEditor,3),this.updatePositionOfAllCorners(),R.preventDefault())};
_.J.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.RR.Object.defineProperties(xy.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&nPK.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var R,y,u;((y=this.data)==null?0:y.imageRatio)&&((u=this.data)==null?0:u.minImageCropWidth)?R={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:R=Hr8;return new g5p(R)}}});
xy.prototype.updatePositionOfAllCorners=xy.prototype.updatePositionOfAllCorners;xy.prototype.dataChanged=xy.prototype.dataChanged;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],xy.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],xy.prototype,"ytComponentBehavior",void 0);_.A([_.n(_.Gh),_.p("design:type",Object)],xy.prototype,"ironA11yKeysBehavior",void 0);
_.A([_.O7("#canvas"),_.p("design:type",HTMLCanvasElement)],xy.prototype,"canvasElement",void 0);_.A([_.O7("#file-selector"),_.p("design:type",HTMLInputElement)],xy.prototype,"fileSelector",void 0);_.A([_.O7("#top-left-corner"),_.p("design:type",HTMLDivElement)],xy.prototype,"topLeftCorner",void 0);_.A([_.O7("#top-right-corner"),_.p("design:type",HTMLDivElement)],xy.prototype,"topRightCorner",void 0);
_.A([_.O7("#bottom-left-corner"),_.p("design:type",HTMLDivElement)],xy.prototype,"bottomLeftCorner",void 0);_.A([_.O7("#bottom-right-corner"),_.p("design:type",HTMLDivElement)],xy.prototype,"bottomRightCorner",void 0);_.A([_.r(),_.p("design:type",Object)],xy.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],xy.prototype,"errorMessage",void 0);_.A([_.r(),_.p("design:type",Object)],xy.prototype,"isLoading",void 0);_.A([_.r(),_.p("design:type",Object)],xy.prototype,"hideContainer",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.p("design:type",Boolean)],xy.prototype,"isPlaylistThumbnail",void 0);_.A([_.GJ("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype",Promise)],xy.prototype,"dataChanged",null);_.A([_.fu("image-updated"),_.fu("yt-refit"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],xy.prototype,"updatePositionOfAllCorners",null);
_.A([_.pu({is:"yt-image-editor-renderer",disableElementRegistration:!0})],xy);
_.m(xy,"yt-image-editor-renderer",function(){if(sYK===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;Ltm===void 0&&(Ltm=document.createElement("template"));var v=Ltm;u.call(y,v.content.cloneNode(!0),R.content.firstChild);sYK=R}R=sYK;return R},{mode:2});var GsK;var rfJ;var BB=function(){return _.W.apply(this,arguments)||this};
_.O(BB,_.W);BB.prototype.updateMinutesFromBinding=function(R){this.handleMinutesChanged&&this.handleMinutesChanged(R)};
BB.prototype.updateSecondsFromBinding=function(R){this.handleSecondsChanged&&this.handleSecondsChanged(R)};
BB.prototype.updateDescriptionFromBinding=function(R){this.handleDescriptionChanged&&this.handleDescriptionChanged(R)};
_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],BB.prototype,"ytComponentBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],BB.prototype,"data",void 0);_.A([_.r(),_.p("design:type",String)],BB.prototype,"minutes",void 0);_.A([_.r(),_.p("design:type",String)],BB.prototype,"seconds",void 0);_.A([_.r(),_.p("design:type",String)],BB.prototype,"description",void 0);_.A([_.r(),_.p("design:type",Function)],BB.prototype,"handleMinutesChanged",void 0);
_.A([_.r(),_.p("design:type",Function)],BB.prototype,"handleSecondsChanged",void 0);_.A([_.r(),_.p("design:type",Function)],BB.prototype,"handleDescriptionChanged",void 0);_.A([_.r(),_.p("design:type",Number)],BB.prototype,"characterLimit",void 0);_.A([_.r(),_.p("design:type",Number)],BB.prototype,"textNumRows",void 0);_.A([_.pu({is:"yt-report-details-form-content",disableElementRegistration:!0})],BB);
_.m(BB,"yt-report-details-form-content",function(){if(rfJ===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;GsK===void 0&&(GsK=document.createElement("template"));var v=GsK;u.call(y,v.content.cloneNode(!0),R.content.firstChild);rfJ=R}R=rfJ;return R},{mode:2});var P6g;var WSP;var f7=function(){var R=_.W.apply(this,arguments)||this;R.updateMinutesFromBinding=function(y){R.minutes=y.detail.value};
R.updateSecondsFromBinding=function(y){R.seconds=y.detail.value};
R.updateDescriptionFromBinding=function(y){R.description=y.detail.value};
return R};
_.O(f7,_.W);_.J=f7.prototype;_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.J.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"}}}};
_.J.ready=function(){_.hw(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.J.onSubmitYtAction=function(R){var y=R.detail;y.actionName==="yt-service-request"&&(y=y.args[1],y.flagEndpoint&&(R.stopPropagation(),this.refireAction(y)))};
_.J.refireAction=function(R){var y={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(y.vss_id=this.vssId);_.Fh(this.hostElement,[R,y]);this.submitDisabled=!0};
_.J.dataChanged=function(){var R=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var y=_.I8();y&&y.getPlayerPromise().then(function(u){var v=u.getOption("cc","track")||u.getOption("captions","track");v&&(R.vssId=v.vss_id);u=u.getCurrentTime();R.minutes=Math.floor(u/60).toString();R.seconds=(Math.floor(u)%60).toString()})};
_.J.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==="")};
_.J.onYtServiceRequestCompleted=function(){_.Ik(this.hostElement,"yt-close-popup-action")};
_.J.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.RR.Object.defineProperties(f7.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}}});
f7.prototype.onYtServiceRequestError=f7.prototype.onYtServiceRequestError;f7.prototype.onYtServiceRequestCompleted=f7.prototype.onYtServiceRequestCompleted;f7.prototype.updateSubmitButtonState=f7.prototype.updateSubmitButtonState;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],f7.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],f7.prototype,"ytRendererBehavior",void 0);
_.A([_.r({observer:"dataChanged"}),_.p("design:type",Object)],f7.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Boolean)],f7.prototype,"submitDisabled",void 0);_.A([_.r(),_.p("design:type",String)],f7.prototype,"minutes",void 0);_.A([_.r(),_.p("design:type",String)],f7.prototype,"seconds",void 0);_.A([_.r(),_.p("design:type",String)],f7.prototype,"description",void 0);_.A([_.r(),_.p("design:type",String)],f7.prototype,"vssId",void 0);
_.A([_.r({value:_.EB("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.p("design:type",Boolean)],f7.prototype,"isMusic",void 0);_.A([_.G("data"),_.p("design:type",Number),_.p("design:paramtypes",[])],f7.prototype,"characterLimit",null);_.A([_.G("data"),_.p("design:type",Number),_.p("design:paramtypes",[])],f7.prototype,"textNumRows",null);
_.A([_.GJ("minutes","seconds","description","submitDisabled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],f7.prototype,"updateSubmitButtonState",null);_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],f7.prototype,"onYtServiceRequestCompleted",null);
_.A([_.fu("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],f7.prototype,"onYtServiceRequestError",null);_.A([_.pu({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],f7);
_.m(f7,"yt-report-details-form-renderer",function(){if(WSP===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;P6g===void 0&&(P6g=document.createElement("template"));var v=P6g;u.call(y,v.content.cloneNode(!0),R.content.firstChild);WSP=R}R=WSP;return R});var dfM;var UfH;var ksV;var EPP;var ee=function(){return _.W.apply(this,arguments)||this};
_.O(ee,_.W);
ee.prototype.onCheckedChanged_=function(){if(this.data){var R=_.hw(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.Ik(this.hostElement,"yt-additional-detail-checkbox-update",[R]):this.data.identifier==="yt-hide-user-checkbox"?_.Ik(this.hostElement,"yt-hide-user-checkbox-update",[R]):R&&this.data.enableCommand?_.Ik(this.hostElement,"yt-modify-report-form-command",[_.e(this.data.enableCommand,zJa)]):!R&&this.data.disableCommand&&_.Ik(this.hostElement,
"yt-modify-report-form-command",[_.e(this.data.enableCommand,zJa)])}};
ee.prototype.onLabelTap_=function(R){R.target.tagName!="A"&&(_.hw(this.hostElement).querySelector("#checkbox").checked=!_.hw(this.hostElement).querySelector("#checkbox").checked)};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ee.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ee.prototype,"data",void 0);_.A([_.pu({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],ee);
_.m(ee,"yt-boolean-form-field-v2-renderer",function(){if(EPP===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;ksV===void 0&&(ksV=document.createElement("template"));var v=ksV;u.call(y,v.content.cloneNode(!0),R.content.firstChild);EPP=R}R=EPP;return R});var li=function(){var R=_.W.apply(this,arguments)||this;R.canShowAdditionalDetailCheckbox=!1;R.canShowCheckbox=!1;R.keepDropdownFocusedAfterSelection=!0;return R};
_.O(li,_.W);li.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([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],li.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],li.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],li.prototype,"canShowAdditionalDetailCheckbox",void 0);_.A([_.r(),_.p("design:type",Object)],li.prototype,"canShowCheckbox",void 0);_.A([_.r(),_.p("design:type",Object)],li.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.A([_.pu({is:"yt-report-form-modal-content",disableElementRegistration:!0})],li);
_.m(li,"yt-report-form-modal-content",function(){if(UfH===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;dfM===void 0&&(dfM=document.createElement("template"));var v=dfM;u.call(y,v.content.cloneNode(!0),R.content.firstChild);UfH=R}R=UfH;return R},{mode:2});var $fI;var qVH;var Ot=function(){var R=_.W.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};
_.O(Ot,_.W);_.J=Ot.prototype;_.J.created=function(){this.refitJob=0};
_.J.attached=function(){this.JSC$20706_scroller&&(this.JSC$20706_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20706_scroller.attached&&typeof this.JSC$20706_scroller.attached==="function"&&this.JSC$20706_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.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())};
_.J.onYtPopupOpened=function(){var R=_.I8();R&&R.getPlayerPromise().then(function(y){y.pauseVideo()})};
_.J.onYtNavigate=function(R){_.e(R.detail.endpoint,_.fd5)&&(R.stopPropagation(),this.hideReportForm=!0)};
_.J.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.J.onYtServiceRequestCompleted=function(R,y){var u=y.actions;if(u){if(u.length===1&&_.e(u[0],_.TP)){var v;u=((v=_.e(u[0],_.TP))==null?void 0:v.commands)||[]}v=0;for(var Q=u.length;v<Q;v++)_.e(u[v],_.kW)&&(R.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(u[v]))}if(y.data&&(R=this.get("feedbackResponses",y.data)))for(y=0;y<R.length;y++)if(R[y].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.J.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.J._onDescendantIronResize=function(R){R.stopPropagation();return!1};
_.J.handleReportFormEndpointUpdateAction=function(R){if(R.submitEndpoint){var y=this.command=R.submitEndpoint;y=_.e(y,_.ocg);if(y==null?0:y.additionalDetailCheckboxChecked)y.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()};
_.J.handleConfirmDialogCloseAction=function(R){R.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.J.submitButtonDisabledChanged=function(){var R=this.hostElement.parentElement;R&&R.invalidateTabbables&&R.invalidateTabbables()};
_.J.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()};
_.J.updateDialogStyling=function(){var R,y,u,v,Q,M=((Q=(R=this.data)==null?void 0:(y=R.optionsSupportedRenderers)==null?void 0:(u=y.optionsRenderer)==null?void 0:(v=u.items)==null?void 0:v.length)!=null?Q:0)<=2?0:240;_.oX(this.hostElement,{"--yt-report-form-modal-renderer-min-width":M+"px"})};
_.J.toggleSubmitButton=function(R){this.submitButtonDisabled=!R;this.submitButtonDisabled=R};
_.J.computeSubmitButtonData=function(R,y){var u={};_.e(y,_.fd5)?u.navigationEndpoint=y:u.command=y||void 0;R&&R.buttonRenderer&&_.Ps.extend(u,R.buttonRenderer);return u};
_.J.computeNextButtonData=function(R,y){var u={};if(!R||!R.buttonRenderer)return u;_.Ps.extend(u,R.buttonRenderer);if(!y)return u;if(_.e(y,_.fd5))u.navigationEndpoint=hoa(y);else if(u.command=hoa(y),R=_.e(u.command,_.ocg))R.legalCheckboxChecked=!0;return u};
_.J.computeShowNextButton=function(R,y,u){return!!R&&y&&u};
_.J.refit=function(){var R=this;this.refitJob||(this.refitJob=_.WG.addLowPriorityJob(function(){_.Ko(R.hostElement,"yt-refit");R.refitJob=0}))};
_.J.handleAdditionalDetailCheckboxUpdateAction=function(R){this.additionalDetailCheckboxChecked=R;_.e(this.command,_.ocg).additionalDetailCheckboxChecked=R};
_.RR.Object.defineProperties(Ot,{template:{configurable:!0,enumerable:!0,get:function(){if(qVH===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;$fI===void 0&&($fI=document.createElement("template"));var v=$fI;u.call(y,v.content.cloneNode(!0),R.content.firstChild);qVH=R}R=qVH;return R}}});
Ot.prototype.onYtServiceRequestError=Ot.prototype.onYtServiceRequestError;Ot.prototype.onYtServiceRequestCompleted=Ot.prototype.onYtServiceRequestCompleted;Ot.prototype.onYtServiceRequestSent=Ot.prototype.onYtServiceRequestSent;Ot.prototype.onYtNavigate=Ot.prototype.onYtNavigate;Ot.prototype.onYtPopupOpened=Ot.prototype.onYtPopupOpened;_.A([_.n(_.Oj.YtOpenPopupBehavior),_.p("design:type",Object)],Ot.prototype,"openPopupBehavior",void 0);
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Ot.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Ot.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.GZ.YtEventForwardingBehavior),_.p("design:type",Object)],Ot.prototype,"eventForwardingBehavior",void 0);_.A([_.n(_.qv),_.p("design:type",Object)],Ot.prototype,"ironResizableBehavior",void 0);_.A([_.r({observer:"dataChanged"}),_.p("design:type",Object)],Ot.prototype,"data",void 0);
_.A([_.r(),_.p("design:type",Object)],Ot.prototype,"submitting",void 0);_.A([_.r({observer:"submitButtonDisabledChanged"}),_.p("design:type",Object)],Ot.prototype,"submitButtonDisabled",void 0);_.A([_.r(),_.p("design:type",Object)],Ot.prototype,"command",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Ot.prototype,"hideReportForm",void 0);_.A([_.r(),_.p("design:type",Object)],Ot.prototype,"canShowCheckbox",void 0);
_.A([_.r(),_.p("design:type",Object)],Ot.prototype,"canShowAdditionalDetailCheckbox",void 0);_.A([_.r(),_.p("design:type",Object)],Ot.prototype,"canShowNextButton",void 0);_.A([_.r(),_.p("design:type",Object)],Ot.prototype,"additionalDetailCheckboxChecked",void 0);_.A([_.r(),_.p("design:type",Object)],Ot.prototype,"refitJob",void 0);_.A([_.r(),_.p("design:type",Object)],Ot.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.A([_.O7("#scroller"),_.p("design:type",Object)],Ot.prototype,"JSC$20706_scroller",void 0);_.A([_.fu("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Ot.prototype,"onYtPopupOpened",null);_.A([_.fu("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Ot.prototype,"onYtNavigate",null);
_.A([_.fu("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.z3]),_.p("design:returntype")],Ot.prototype,"onYtServiceRequestSent",null);_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Mp]),_.p("design:returntype")],Ot.prototype,"onYtServiceRequestCompleted",null);
_.A([_.fu("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Ot.prototype,"onYtServiceRequestError",null);_.A([_.pu({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],Ot);var XqM;var mfg;var ZU=function(){return _.W.apply(this,arguments)||this};
_.O(ZU,_.W);_.J=ZU.prototype;_.J.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.J.onVisible=function(){var R,y;(y=_.ua().resolve(_.yN(_.WX)))==null||y.enqueue({label:_.u7((R=this.data)==null?void 0:R.messageTitle),elementToFocus:this.hostElement})};
_.J.onThumbnailLoaded=function(){_.Ko(this.hostElement,"yt-refit")};
_.J.onDismissTap=function(){_.Ik(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.J.computeAlternateIcon=function(R){return R?R==="BACKSTAGE_ARTWORK"?"backstage:artwork":R:null};
_.J.computeFontFamily=function(R){return R==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.J.computeBackgroundStyle=function(R,y){if(R=this.computeBackgroundImage(R,y))if(R=_.Fj(R.thumbnails))return'background-image: url("'+R+'");'};
_.J.computeHasFullHeightImage=function(R){return!(!(R&&R.thumbnails&&R.thumbnails.length>0)||this.modern)};
_.J.isModernStyle=function(R){return R.style==="STYLE_MODERN"};
_.J.computeIcon=function(R,y){if(R&&R.icon)return y?R.iconDark:R.icon};
_.J.computeBackgroundImage=function(R,y){if(R&&R.backgroundImage)return y?R.backgroundImageDark:R.backgroundImage};
_.J.computeLogo=function(R,y){if(R&&R.logo)return y?R.logoDark:R.logo};
_.J.computeShouldShowModernIcon=function(R,y){return R&&!!y};
_.J.getLogoContainerClassName=function(R){return this.logoWithPadding(R)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.J.getLogoImageId=function(R){return this.logoWithPadding(R)?"mealbar-logo-with-padding":"mealbar-logo"};
_.J.logoWithPadding=function(R){var y,u,v;return(R=(y=this.computeLogo(R,this.isDarkTheme))==null?void 0:(u=y.thumbnails)==null?void 0:(v=u[0])==null?void 0:v.height)&&R%31===0?!0:!1};
ZU.prototype.onThumbnailLoaded=ZU.prototype.onThumbnailLoaded;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ZU.prototype,"ytRendererBehavior",void 0);_.A([_.r({}),_.p("design:type",Object)],ZU.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.p("design:type",Boolean)],ZU.prototype,"modern",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],ZU.prototype,"isDarkTheme",void 0);
_.A([_.r({computed:"computeIcon(data, isDarkTheme)"}),_.p("design:type",Object)],ZU.prototype,"icon",void 0);_.A([_.r({computed:"computeLogo(data, isDarkTheme)"}),_.p("design:type",Object)],ZU.prototype,"logo",void 0);_.A([_.r({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.p("design:type",Object)],ZU.prototype,"backgroundStyle",void 0);_.A([_.r({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.p("design:type",Object)],ZU.prototype,"alternateIcon",void 0);
_.A([_.r({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.p("design:type",Boolean)],ZU.prototype,"hasFullHeightImage",void 0);_.A([_.r({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.p("design:type",Boolean)],ZU.prototype,"useYoutubeSans",void 0);_.A([_.r({computed:"computeShouldShowModernIcon(modern, icon)"}),_.p("design:type",Boolean)],ZU.prototype,"shouldShowModernIcon",void 0);
_.A([_.fu("yt-img-shadow-loaded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],ZU.prototype,"onThumbnailLoaded",null);_.A([_.pu({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],ZU);
_.m(ZU,"yt-mealbar-promo-renderer",function(){if(mfg===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;XqM===void 0&&(XqM=document.createElement("template"));var v=XqM;u.call(y,v.content.cloneNode(!0),R.content.firstChild);mfg=R}R=mfg;return R},{mode:2});var Afg;var Dfg;var HB=function(){return _.W.apply(this,arguments)||this};
_.O(HB,_.W);_.J=HB.prototype;_.J.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]]"}}}}}};
_.J.computeHasButtons_=function(R){return!(!R.dismissButton&&!R.acceptButton)};
_.J.computeStyle_=function(R){return R||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.J.observeImpressionEndpoints_=function(){var R=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(y){y.clickTrackingParams&&delete y.clickTrackingParams;_.Fh(R.hostElement,[y])})};
_.J.onTap_=function(){_.Ik(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
HB.prototype.observeImpressionEndpoints_=HB.prototype.observeImpressionEndpoints_;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],HB.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.GZ.YtEventForwardingBehavior),_.p("design:type",Object)],HB.prototype,"ytEventForwardingBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],HB.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],HB.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],HB.prototype,"positionType",void 0);_.A([_.r({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.p("design:type",Boolean)],HB.prototype,"hasButtons_",void 0);_.A([_.r({value:function(){return this.onTap_.bind(this)}}),
_.p("design:type",Function)],HB.prototype,"boundOnTap_",void 0);_.A([_.r({value:{style:"mono-inverse"}}),_.p("design:type",Object)],HB.prototype,"buttonOverride",void 0);_.A([_.e0("data.promoConfig.impressionEndpoints"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],HB.prototype,"observeImpressionEndpoints_",null);_.A([_.pu({is:"yt-tooltip-renderer",disableElementRegistration:!0})],HB);
_.m(HB,"yt-tooltip-renderer",function(){if(Dfg===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;Afg===void 0&&(Afg=document.createElement("template"));var v=Afg;u.call(y,v.content.cloneNode(!0),R.content.firstChild);Dfg=R}R=Dfg;return R},{mode:2});var pqZ;var tWm;var cfP={},auK=(cfP.WEB_REMIX="music.youtube.com",cfP),n7=function(){var R=_.W.apply(this,arguments)||this;R.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return R};
_.O(n7,_.W);_.J=n7.prototype;_.J.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.created=function(){this.embedHost_=auK[_.EB("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.J.ready=function(){_.hw(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.J.computeEmbedCode_=function(R,y,u,v,Q){if(!R)return"";var M=R.videoId,K=R.fullListId,h=[];R.attributionId&&h.push("si="+R.attributionId);v||h.push("controls=0");u&&Number(y)>0&&h.push("start="+y);K&&(M="videoseries",h.push("list="+K));u="https://"+(Q?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+M;R.clipId&&(h.push("clip="+R.clipId),h.push("clipt="+R.clipTiming));y=h.length>0?u+"?"+h.join("&amp;"):u;R.encryptedEmbedConfig&&h.push("embed_config="+JSON.stringify({enc:R.encryptedEmbedConfig}));
h=h.length>0?u+"?"+h.join("&amp;"):u;_.f("web_sharing_embed_preview_killswitch")?_.hw(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(h,R.previewWidth||854,R.previewHeight||480):(_.$$(this.videoPreviewContainer),_.hw(this.videoPreviewContainer).appendChild(this.buildIframeElement(h)));return this.getEmbedCode_(y,R.width||560,R.height||315)};
_.J.buildIframeElement=function(R){var y=document.createElement("iframe"),u,v;y.width=""+((v=(u=this.data)==null?void 0:u.previewWidth)!=null?v:854);var Q,M;y.height=""+((M=(Q=this.data)==null?void 0:Q.previewHeight)!=null?M:480);_.Q1P(y,2,R);y.title="YouTube video player";y.frameBorder="0";y.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";y.referrerPolicy="strict-origin-when-cross-origin";y.allowFullscreen=!0;return y};
_.J.computeIsSquareAspectRatio_=function(R){return R.previewHeight&&R.previewWidth?R.previewHeight==R.previewWidth:!1};
_.J.computeShowEmbedOptions_=function(R){return!!R.enablePrivacyModeOptionLabel||!!R.showPlayerControlsOptionLabel};
_.J.getEmbedCode_=function(R,y,u){return'<iframe width="'+y+'" height="'+u+'" 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>'};
_.J.handleSignalActionCopyShareEmbedUrl_=function(){_.hw(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.J.handleSetTimestamp_=function(R){this.startAtTimeStamp_=(this.startAtChecked_=R.isSet)?R.timestamp:0};
_.J.closePanel_=function(){_.Ik(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.J.onEmbedCode_=function(){_.hw(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.J.onYtPopupClosed_=function(){_.$$(_.hw(this.hostElement).querySelector("#video-preview"))};
_.J.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.e(this.data.actionButtons[0],_.aG)&&this.ytRendererBehavior.logExplicitClick(_.e(this.data.actionButtons[0],_.aG))};
n7.prototype.onYtPopupClosed_=n7.prototype.onYtPopupClosed_;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],n7.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],n7.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],n7.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],n7.prototype,"data",void 0);
_.A([_.r({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.p("design:type",String)],n7.prototype,"embedCode_",void 0);_.A([_.r({value:!0}),_.p("design:type",Boolean)],n7.prototype,"isPlayerControlsOptionChecked_",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],n7.prototype,"isPrivacyModeOptionChecked_",void 0);_.A([_.r({value:!1,notify:!0}),_.p("design:type",Boolean)],n7.prototype,"startAtChecked_",void 0);
_.A([_.r({value:0}),_.p("design:type",Number)],n7.prototype,"startAtTimeStamp_",void 0);_.A([_.r({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],n7.prototype,"isSquareAspectRatio_",void 0);_.A([_.O7("#video-preview"),_.p("design:type",HTMLElement)],n7.prototype,"videoPreviewContainer",void 0);_.A([_.fu("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],n7.prototype,"onYtPopupClosed_",null);
_.A([_.pu({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],n7);
_.m(n7,"yt-sharing-embed-renderer",function(){if(tWm===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;pqZ===void 0&&(pqZ=document.createElement("template"));var v=pqZ;u.call(y,v.content.cloneNode(!0),R.content.firstChild);tWm=R}R=tWm;return R},{mode:2});var SVo={};
SVo.YtUnlimitedFamilyInterstitialBehavior=[_.Oj.YtOpenPopupBehavior,_.bW.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=_.Gag(_.vN(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 y={openPopupAction:{popupType:"DIALOG",popup:{}}};y.openPopupAction.popup[R.renderer]=R.data;this.showingPreviousDialog_=!0;this.openPopup(y)}},
handleOpenPopupAction_:function(R){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var y=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(v){return!!R.openPopupAction.popup[v]}),u=this.getElementName_();
y&&this.data&&(this.pushToHistory({renderer:u,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(R){if(R=_.e(R,OQP))this.loading=!0,_.Ik(this.hostElement,"yt-open-create-family-dialog",[R,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var R=this.hostElement.nodeName.split("-").slice(1).map(function(y){return""+y[0].toUpperCase()+y.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 YVg;var LSo;var GO=function(){return _.W.apply(this,arguments)||this};
_.O(GO,_.W);_.J=GO.prototype;_.J.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}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Ik(this.hostElement,"yt-register-create-family-dialog");_.hw(this.hostElement).querySelector("#thumbnail").onShow()};
_.J.fireOnCloseCommand_=function(){var R;((R=this.data)==null?0:R.onCloseCommand)&&_.wr(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.J.onYtServiceRequestSent_=function(R,y){y&&y.endpoint&&_.e(y.endpoint,_.xF)||(this.loading=!0)};
_.J.onYtServiceRequestCompleted_=function(){var R=this.hostElement.parentElement;R.close&&R.close();this.loading=!1};
_.J.openPopupHandler_=function(R){if(R.detail==this){var y;((y=this.data)==null?0:y.onOpenCommands)&&_.wr(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.J.closePopupHandler_=function(R,y){this.fireOnCloseCommand_();if(y&&y.canceled===!0||y&&y.canceled===!1&&y.confirmed===!1){var u;((u=this.data)==null?0:u.onDismissCommands)&&_.wr(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.J.dataChanged_=function(){this.loading=!1};
GO.prototype.dataChanged_=GO.prototype.dataChanged_;GO.prototype.closePopupHandler_=GO.prototype.closePopupHandler_;GO.prototype.openPopupHandler_=GO.prototype.openPopupHandler_;GO.prototype.onYtServiceRequestCompleted_=GO.prototype.onYtServiceRequestCompleted_;GO.prototype.onYtServiceRequestSent_=GO.prototype.onYtServiceRequestSent_;_.A([_.n(_.GZ.YtEventForwardingBehavior),_.p("design:type",Object)],GO.prototype,"ytEventForwardingBehavior",void 0);
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],GO.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(SVo.YtUnlimitedFamilyInterstitialBehavior),_.p("design:type",Object)],GO.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],GO.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],GO.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],GO.prototype,"loading",void 0);_.A([_.fu("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.z3]),_.p("design:returntype")],GO.prototype,"onYtServiceRequestSent_",null);_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Mp]),_.p("design:returntype")],GO.prototype,"onYtServiceRequestCompleted_",null);
_.A([_.fu("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],GO.prototype,"openPopupHandler_",null);_.A([_.fu("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],GO.prototype,"closePopupHandler_",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],GO.prototype,"dataChanged_",null);
_.A([_.pu({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],GO);
_.m(GO,"yt-unlimited-family-message-interstitial-renderer",function(){if(LSo===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;YVg===void 0&&(YVg=document.createElement("template"));var v=YVg;u.call(y,v.content.cloneNode(!0),R.content.firstChild);LSo=R}R=LSo;return R},{mode:2});var s$M;var z1Z;var rz=function(){return _.W.apply(this,arguments)||this};
_.O(rz,_.W);rz.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"}}}};
rz.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.hw(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(R){R.onShow()});
_.hw(this.hostElement).querySelector("#main-thumbnail").onShow()};
rz.prototype.onButtonTap_=function(R){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(R)};
rz.prototype.computeMainThumbnailWidth_=function(R){return R&&R.length!==0?72:96};
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],rz.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],rz.prototype,"ytRendererBehavior",void 0);_.A([_.n(SVo.YtUnlimitedFamilyInterstitialBehavior),_.p("design:type",Object)],rz.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],rz.prototype,"data",void 0);
_.A([_.r({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.p("design:type",Number)],rz.prototype,"mainThumbnailWidth_",void 0);_.A([_.r({value:function(){return this.onButtonTap_.bind(this)}}),
_.p("design:type",Function)],rz.prototype,"boundButtonTap_",void 0);_.A([_.pu({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],rz);
_.m(rz,"yt-unlimited-family-profile-interstitial-renderer",function(){if(z1Z===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;s$M===void 0&&(s$M=document.createElement("template"));var v=s$M;u.call(y,v.content.cloneNode(!0),R.content.firstChild);z1Z=R}R=z1Z;return R},{mode:2});var gPJ;var C6K;var PB=function(){var R=_.W.apply(this,arguments)||this;R.sliderAriaValueText_=null;R.selectedIndex_=0;R.messages={PAUSE_SLIDER:_.fo("PAUSE_SLIDER",void 0,"Pause Duration")};return R};
_.O(PB,_.W);_.J=PB.prototype;_.J.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_]]"}}}}}};
_.J.onPopupOpened_=function(R){R.detail==this&&_.f("enable_premium_voluntary_pause")&&(_.Ik(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.setDialogData=function(R){this.data=R;this.resetSlider_()};
_.J.dataChanged_=function(){this.data&&this.resetSlider_()};
_.J.onSubmitTap_=function(){if(this.data.confirmCommand){var R=this.data.confirmCommand;_.e(R,_.qj5)&&_.Fh(this.hostElement,[R,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.J.onExitButtonTap_=function(){_.Ik(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.J.closePopupHandler_=function(R,y){(y&&y.canceled===!0||y.canceled===!1&&y.confirmed===!1)&&this.handleOnDismissCommands_()};
_.J.onSliderChange_=function(){this.selectedIndex_=_.hw(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.J.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.J.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.J.resetSlider_=function(){if(this.data){var R=this.data.defaultEndOptionIndex||0,y=_.hw(this.hostElement).querySelector("#id-pause-slider");if(y.immediateValue<R)for(;y.immediateValue!=R;)y.increment();else if(R<y.immediateValue)for(;y.immediateValue!=R;)y.decrement();this.selectedIndex_=R;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.J.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.wr(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.J.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.wr(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.J.onYtServiceRequestSent=function(){this.loading=!0};
_.J.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
PB.prototype.onYtServiceRequestCompleted=PB.prototype.onYtServiceRequestCompleted;PB.prototype.onYtServiceRequestSent=PB.prototype.onYtServiceRequestSent;PB.prototype.closePopupHandler_=PB.prototype.closePopupHandler_;PB.prototype.dataChanged_=PB.prototype.dataChanged_;PB.prototype.onPopupOpened_=PB.prototype.onPopupOpened_;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],PB.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],PB.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],PB.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],PB.prototype,"loading",void 0);_.A([_.r(),_.p("design:type",Number)],PB.prototype,"selectIndexMax_",void 0);_.A([_.r(),_.p("design:type",Object)],PB.prototype,"selectedData_",void 0);
_.A([_.r(),_.p("design:type",Object)],PB.prototype,"sliderAriaValueText_",void 0);_.A([_.r({value:function(){return this.onSubmitTap_.bind(this)}}),
_.p("design:type",Function)],PB.prototype,"onButtonTap_",void 0);_.A([_.r({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.p("design:type",Function)],PB.prototype,"onSecondaryTap_",void 0);_.A([_.r(),_.p("design:type",Object)],PB.prototype,"messages",void 0);_.A([_.fu("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],PB.prototype,"onPopupOpened_",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],PB.prototype,"dataChanged_",null);
_.A([_.fu("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],PB.prototype,"closePopupHandler_",null);_.A([_.fu("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.z3]),_.p("design:returntype")],PB.prototype,"onYtServiceRequestSent",null);
_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Mp]),_.p("design:returntype")],PB.prototype,"onYtServiceRequestCompleted",null);_.A([_.pu({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],PB);
_.m(PB,"yt-unplugged-pause-membership-dialog-renderer",function(){if(C6K===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;gPJ===void 0&&(gPJ=document.createElement("template"));var v=gPJ;u.call(y,v.content.cloneNode(!0),R.content.firstChild);C6K=R}R=C6K;return R},{mode:2});var Rda;var ymV;var WB=function(){return _.W.apply(this,arguments)||this};
_.O(WB,_.W);WB.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.ph("vcBalanceRenderer")}}};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],WB.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],WB.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],WB.prototype,"data",void 0);_.A([_.pu({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],WB);
_.m(WB,"yt-vc-offer-layout-header-renderer",function(){if(ymV===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;Rda===void 0&&(Rda=document.createElement("template"));var v=Rda;u.call(y,v.content.cloneNode(!0),R.content.firstChild);ymV=R}R=ymV;return R},{mode:2});var u_Z;var veV;var Q7M;var j78;var dz=function(){return _.W.apply(this,arguments)||this};
_.O(dz,_.W);dz.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.RR.Object.defineProperties(dz.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],dz.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],dz.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.CYL.YtTappableItemBehavior),_.p("design:type",Object)],dz.prototype,"ytTappableItemBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],dz.prototype,"data",void 0);
_.A([_.r({reflectToAttribute:!0}),_.G("data.accessibilityText"),_.p("design:type",String),_.p("design:paramtypes",[])],dz.prototype,"ariaLabel",null);_.A([_.r({reflectToAttribute:!0}),_.G("data.style"),_.p("design:type",String),_.p("design:paramtypes",[])],dz.prototype,"vcOfferStyle",null);_.A([_.G("data.style","data.titleText"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],dz.prototype,"showTitleText",null);_.A([_.pu({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],dz);
_.m(dz,"yt-vc-offer-renderer",function(){if(j78===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;Q7M===void 0&&(Q7M=document.createElement("template"));var v=Q7M;u.call(y,v.content.cloneNode(!0),R.content.firstChild);j78=R}R=j78;return R},{mode:2});var Ut=function(){return _.W.apply(this,arguments)||this};
_.O(Ut,_.W);Ut.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Ut.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Ut.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Ut.prototype,"data",void 0);_.A([_.pu({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],Ut);
_.m(Ut,"yt-vc-offer-layout-renderer",function(){if(veV===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;u_Z===void 0&&(u_Z=document.createElement("template"));var v=u_Z;u.call(y,v.content.cloneNode(!0),R.content.firstChild);veV=R}R=veV;return R},{mode:2});var MMa;var JmJ;var VMJ;var i4K;var ky=function(){return _.W.apply(this,arguments)||this};
_.O(ky,_.W);ky.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([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],ky.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],ky.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],ky.prototype,"data",void 0);_.A([_.pu({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],ky);
_.m(ky,"yt-ypc-offers-modal-top-bar-renderer",function(){if(i4K===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;VMJ===void 0&&(VMJ=document.createElement("template"));var v=VMJ;u.call(y,v.content.cloneNode(!0),R.content.firstChild);i4K=R}R=i4K;return R},{mode:2});var Et=function(){return _.W.apply(this,arguments)||this};
_.O(Et,_.W);Et.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"}}}}};
Et.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
Et.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var R=this.scrollable;R.attached&&typeof R.attached==="function"&&R.attached()};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Et.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Et.prototype,"ytRendererstamperBehavior",void 0);_.A([_.O7("#scrollable"),_.p("design:type",Object)],Et.prototype,"scrollable",void 0);_.A([_.r(),_.p("design:type",Object)],Et.prototype,"data",void 0);_.A([_.pu({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],Et);
_.m(Et,"yt-ypc-offers-modal-renderer",function(){if(JmJ===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;MMa===void 0&&(MMa=document.createElement("template"));var v=MMa;u.call(y,v.content.cloneNode(!0),R.content.firstChild);JmJ=R}R=JmJ;return R},{mode:2});var KCo;var Ihg;var $y=function(){return _.W.apply(this,arguments)||this};
_.O($y,_.W);_.J=$y.prototype;_.J.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}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.hw(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.J.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.Ik(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.J.onYtPopupOpened_=function(R,y){(y==null?void 0:y.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.wr(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.J.onYtPopupClosed_=function(R,y){this.continueButtonTapped||y&&(y.canceled===!0||y.canceled===!1&&y.confirmed===!1)&&this.data.onDismissCommands&&_.wr(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.J.onYtServiceRequestError_=function(R){this.set("showSpinner",!1);_.JG(this.hostElement,R.detail.error.message)};
_.J.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.f("enable_ypc_spinners")?_.Ik(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
$y.prototype.onYtServiceRequestError_=$y.prototype.onYtServiceRequestError_;$y.prototype.onYtPopupClosed_=$y.prototype.onYtPopupClosed_;$y.prototype.onYtPopupOpened_=$y.prototype.onYtPopupOpened_;$y.prototype.onYtServiceRequestCompleted_=$y.prototype.onYtServiceRequestCompleted_;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],$y.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],$y.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.r(),_.p("design:type",Object)],$y.prototype,"data",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],$y.prototype,"showSpinner",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],$y.prototype,"continueButtonTapped",void 0);_.A([_.r({value:function(){return this.onContinueTapped_.bind(this)}}),
_.p("design:type",Function)],$y.prototype,"bindOnContinueTapped_",void 0);_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],$y.prototype,"onYtServiceRequestCompleted_",null);_.A([_.fu("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],$y.prototype,"onYtPopupOpened_",null);
_.A([_.fu("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],$y.prototype,"onYtPopupClosed_",null);_.A([_.fu("yt-service-request-error"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],$y.prototype,"onYtServiceRequestError_",null);_.A([_.pu({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],$y);
_.m($y,"yt-ypc-upgrade-dialog-renderer",function(){if(Ihg===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;KCo===void 0&&(KCo=document.createElement("template"));var v=KCo;u.call(y,v.content.cloneNode(!0),R.content.firstChild);Ihg=R}R=Ihg;return R},{mode:2});var hdo;var b4Z;var q2=function(){return _.W.apply(this,arguments)||this};
_.O(q2,_.W);q2.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
q2.prototype.computeHasButtons_=function(R){return!(!R.dismissButton&&!R.confirmButton)};
q2.prototype.computeStyle_=function(R){return R||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],q2.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.GZ.YtEventForwardingBehavior),_.p("design:type",Object)],q2.prototype,"ytEventForwardingBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],q2.prototype,"ytRendererstamperBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],q2.prototype,"data",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],q2.prototype,"positionType",void 0);
_.A([_.r({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.p("design:type",Boolean)],q2.prototype,"hasButtons_",void 0);_.A([_.r({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.p("design:type",Boolean)],q2.prototype,"style_",void 0);_.A([_.pu({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],q2);
_.m(q2,"yt-bubble-hint-renderer",function(){if(b4Z===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;hdo===void 0&&(hdo=document.createElement("template"));var v=hdo;u.call(y,v.content.cloneNode(!0),R.content.firstChild);b4Z=R}R=b4Z;return R},{mode:2});var FCV;var wpo;var Xt=function(){var R=_.y9.apply(this,arguments)||this;R.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return R};
_.O(Xt,_.y9);_.J=Xt.prototype;_.J.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.J.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()})};
_.J.handleCheckBoxUpdateAction_=function(R){this.canShowCheckboxEnabledConfirmButton=R};
_.J.computeUseOverlayForSpinner_=function(R,y){return!!R&&y};
_.J.computeShowSpinner_=function(R,y){return R||!!y};
_.J.fireOnCloseActions_=function(){var R,y=_.V(((R=this.data)==null?void 0:R.onClosedActions)||[]);for(R=y.next();!R.done;R=y.next())this.ytRendererBehavior.resolveCommand(R.value)};
_.J.fireOnOpenCommands_=function(R){var y,u=(y=this.data)==null?void 0:y.onOpenCommands;if(u)for(R.stopImmediatePropagation(),R=_.V(u),y=R.next();!y.done;y=R.next())this.ytRendererBehavior.resolveCommand(y.value)};
_.J.fireOnDismissCommands_=function(R){var y,u=(y=this.data)==null?void 0:y.onDismissCommands;if(u)for(R.stopImmediatePropagation(),R=_.V(u),y=R.next();!y.done;y=R.next())this.ytRendererBehavior.resolveCommand(y.value)};
_.J.openPopupHandler_=function(R){R.detail==this&&this.fireOnOpenCommands_(R)};
_.J.closePopupHandler_=function(R,y){_.h_(this,"yt-confirm-dialog-close-action",[y]);this.fireOnCloseActions_();(y&&y.canceled===!0||y&&y.canceled===!1&&y.confirmed===!1)&&this.fireOnDismissCommands_(R)};
_.J.onHeaderImageChanged_=function(){var R;((R=this.data)==null?0:R.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.J.computeHasHeaderImageWidth_=function(R){return R!=void 0};
_.J.computeHasLoadingMessage=function(R){return!!R};
_.J.onHeaderImageWidthChanged_=function(){var R,y=(R=this.data)==null?void 0:R.headerImageWidth;if(y){if(R=1.25*y*2+y,this.$.main.style.width=R+"px",y=this.$.scroller.firstElementChild)y.style.minWidth=R+"px"}else this.$.main.style.width="100%"};
_.J.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")};
_.J.onYtNavigate_=function(R){R=_.vN(R);R instanceof Node&&_.b8(this.$["confirm-button"]).contains(R)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.J.computePrimaryIsCancel_=function(R){return R};
_.J.computeIsCancelButtonHidden_=function(R){return R.skipCancelButton||!R.cancelButton};
_.J.computeIsCheckboxHidden_=function(R){return!R.checkbox};
_.J.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.J.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.J.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};
_.RR.Object.defineProperties(Xt,{template:{configurable:!0,enumerable:!0,get:function(){if(wpo===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;FCV===void 0&&(FCV=document.createElement("template"));var v=FCV;u.call(y,v.content.cloneNode(!0),R.content.firstChild);wpo=R}R=wpo;return R}}});
Xt.prototype.onYtServiceRequestCompleted_=Xt.prototype.onYtServiceRequestCompleted_;Xt.prototype.onYtServiceRequestSent_=Xt.prototype.onYtServiceRequestSent_;Xt.prototype.onThumbnailLoaded_=Xt.prototype.onThumbnailLoaded_;Xt.prototype.onYtNavigate_=Xt.prototype.onYtNavigate_;Xt.prototype.onThumbnailChanged_=Xt.prototype.onThumbnailChanged_;Xt.prototype.onHeaderImageWidthChanged_=Xt.prototype.onHeaderImageWidthChanged_;Xt.prototype.onHeaderImageChanged_=Xt.prototype.onHeaderImageChanged_;
Xt.prototype.closePopupHandler_=Xt.prototype.closePopupHandler_;Xt.prototype.openPopupHandler_=Xt.prototype.openPopupHandler_;_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Xt.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],Xt.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Xt.prototype,"ytRendererBehavior",void 0);
_.A([_.n(_.GZ.YtEventForwardingBehavior),_.p("design:type",Object)],Xt.prototype,"ytEventForwardingBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],Xt.prototype,"data",void 0);_.A([_.r({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.p("design:type",Boolean)],Xt.prototype,"primaryIsCancel",void 0);_.A([_.r({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.p("design:type",Boolean)],Xt.prototype,"isCancelButtonHidden",void 0);
_.A([_.r({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.p("design:type",Boolean)],Xt.prototype,"isCheckboxHidden",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],Xt.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.A([_.r({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.p("design:type",Boolean)],Xt.prototype,"useOverlayForSpinner_",void 0);
_.A([_.r({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.p("design:type",Boolean)],Xt.prototype,"showSpinner_",void 0);_.A([_.r({value:!1}),_.p("design:type",Boolean)],Xt.prototype,"isActionInProgress_",void 0);_.A([_.r({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.p("design:type",Boolean)],Xt.prototype,"hasHeaderImageWidth_",void 0);
_.A([_.r({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.p("design:type",Boolean)],Xt.prototype,"hasLoadingMessage",void 0);_.A([_.fu("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],Xt.prototype,"openPopupHandler_",null);_.A([_.fu("yt-popup-closed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],Xt.prototype,"closePopupHandler_",null);
_.A([_.e0("data.headerImage"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Xt.prototype,"onHeaderImageChanged_",null);_.A([_.e0("data.headerImageWidth"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Xt.prototype,"onHeaderImageWidthChanged_",null);_.A([_.e0("data.thumbnail"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Xt.prototype,"onThumbnailChanged_",null);
_.A([_.fu("yt-navigate"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Xt.prototype,"onYtNavigate_",null);_.A([_.fu("yt-img-shadow-loaded"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Xt.prototype,"onThumbnailLoaded_",null);_.A([_.fu("yt-service-request-sent"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.z3]),_.p("design:returntype")],Xt.prototype,"onYtServiceRequestSent_",null);
_.A([_.fu("yt-service-request-completed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,_.Mp]),_.p("design:returntype")],Xt.prototype,"onYtServiceRequestCompleted_",null);_.A([_.pu({is:"yt-confirm-dialog-renderer",noInjection:!0})],Xt);var Ndg;var Td8;var my=function(){return _.W.apply(this,arguments)||this};
_.O(my,_.W);my.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.hw(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
my.prototype.computeConfirmButton_=function(R){var y={text:R.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};R.confirmNavigationEndpoint?y.navigationEndpoint=R.confirmNavigationEndpoint:R.confirmServiceEndpoint&&(y.serviceEndpoint=R.confirmServiceEndpoint);return y};
my.prototype.computeShowTitle_=function(R){return!(R==null||!R.title)};
_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],my.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],my.prototype,"data",void 0);_.A([_.r({computed:"computeShowTitle_(data)"}),_.p("design:type",Boolean)],my.prototype,"showTitle",void 0);_.A([_.pu({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],my);
_.m(my,"yt-fancy-dismissible-dialog-renderer",function(){if(Td8===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;Ndg===void 0&&(Ndg=document.createElement("template"));var v=Ndg;u.call(y,v.content.cloneNode(!0),R.content.firstChild);Td8=R}R=Td8;return R});var oeZ;var x0P;var A$=function(){var R=_.W.apply(this,arguments)||this;R.spinnerActive=!1;return R};
_.O(A$,_.W);A$.prototype.created=function(){kwm(2201)};
A$.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
A$.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
A$.prototype.onIronOverlayClosed=A$.prototype.onIronOverlayClosed;A$.prototype.onIronOverlayOpened=A$.prototype.onIronOverlayOpened;_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],A$.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.g9),_.p("design:type",Object)],A$.prototype,"tpYtIronOverlayBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],A$.prototype,"data",void 0);_.A([_.r(),_.p("design:type",Object)],A$.prototype,"spinnerActive",void 0);
_.A([_.fu("iron-overlay-opened"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],A$.prototype,"onIronOverlayOpened",null);_.A([_.fu("iron-overlay-closed"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],A$.prototype,"onIronOverlayClosed",null);_.A([_.pu({is:"yt-loading-renderer",disableElementRegistration:!0})],A$);
_.m(A$,"yt-loading-renderer",function(){if(x0P===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;oeZ===void 0&&(oeZ=document.createElement("template"));var v=oeZ;u.call(y,v.content.cloneNode(!0),R.content.firstChild);x0P=R}R=x0P;return R},{mode:2});var BdZ;var fhH;var DU=function(){var R=_.W.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};
_.O(DU,_.W);_.J=DU.prototype;_.J.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.J.onDarkModeToggledAction=function(R){this.isDarkTheme=R};
_.J.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.J.openPopupHandler_=function(R){R.detail===this.hostElement&&this.hostElement.hidden&&_.Ik(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.J.onDismissButtonTap_=function(){var R;this.closeOnDismissButton_.has(((R=this.data)==null?void 0:R.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.Ik(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.J.onAcceptButtonTap_=function(){var R;this.closeOnAcceptButton_.has(((R=this.data)==null?void 0:R.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.Ik(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.J.computeHasHeader_=function(R){return!!R.headerBackgroundImage};
_.J.computeLayoutStyle_=function(R){return R};
_.J.computePopupSize_=function(R){return R};
_.J.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:""};
_.J.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")};
_.J.computeHasCustomLogo=function(R){return!(R==null||!R.headerForegroundImage)};
_.J.computeCustomLogo=function(R,y){if(R!=null&&R.headerForegroundImage)return R.headerForegroundImageDark?y?R.headerForegroundImageDark:R.headerForegroundImage:R.headerForegroundImage};
_.J.computeHeaderBackgroundImage=function(R,y){if(R!=null&&R.headerBackgroundImage)return y&&(R==null?0:R.headerBackgroundImageDark)?R.headerBackgroundImageDark:R.headerBackgroundImage};
_.J.shouldShowIconContainer=function(R,y){return R&&!y};
_.J.shouldShowNonYouTubeIcon=function(R,y){return!R&&!y};
_.J.getLogoImageId=function(R){var y,u,v;return(R=(y=this.computeCustomLogo(R,this.isDarkTheme))==null?void 0:(u=y.thumbnails)==null?void 0:(v=u[0])==null?void 0:v.height)&&R%31===0?"custom-logo-with-padding":"custom-logo"};
DU.prototype.openPopupHandler_=DU.prototype.openPopupHandler_;DU.prototype.dataChanged_=DU.prototype.dataChanged_;_.A([_.n(_.hX.YtRendererstamperBehavior),_.p("design:type",Object)],DU.prototype,"ytRendererstamperBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],DU.prototype,"ytRendererBehavior",void 0);_.A([_.r(),_.p("design:type",Boolean)],DU.prototype,"isDarkTheme",void 0);
_.A([_.r({computed:"computeCustomLogo(data, isDarkTheme)"}),_.p("design:type",Object)],DU.prototype,"customLogo",void 0);_.A([_.r({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.p("design:type",Object)],DU.prototype,"headerBackgroundImage",void 0);_.A([_.r(),_.p("design:type",Object)],DU.prototype,"data",void 0);_.A([_.r({computed:"computeHasHeader_(data)"}),_.p("design:type",Boolean)],DU.prototype,"hasHeader",void 0);
_.A([_.r({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.p("design:type",Object)],DU.prototype,"layoutStyle",void 0);_.A([_.r({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.p("design:type",Object)],DU.prototype,"popupSize",void 0);_.A([_.r({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],DU.prototype,"hasLogo",void 0);
_.A([_.r({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.p("design:type",Boolean)],DU.prototype,"hasCustomLogo",void 0);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],DU.prototype,"dataChanged_",null);_.A([_.fu("yt-popup-opened"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],DU.prototype,"openPopupHandler_",null);
_.A([_.pu({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],DU);
_.m(DU,"yt-upsell-dialog-renderer",function(){if(fhH===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;BdZ===void 0&&(BdZ=document.createElement("template"));var v=BdZ;u.call(y,v.content.cloneNode(!0),R.content.firstChild);fhH=R}R=fhH;return R},{mode:2});var edg=_.Jd(function(R){return _.F("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.F(_.w,{cond:R.title,then:function(y){return _.F("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},y)}}))},"Mg"),lha=_.Jd(function(R){return _.F("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.F(_.mk,{data:R.closeButton},{buttonViewModel:function(y){return _.F("div",null,_.F(_.fQ,{data:y.data}))}}))},"Ng"),O4P=_.Jd(function(R){var y=
R.data;
return _.F(_.vu,null,_.F("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.F("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.F(_.w,{cond:function(){return!!y().image&&!!y().title},
then:function(){return _.F(_.MR,{data:function(){return y().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.F("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.F(_.w,{cond:function(){return y().title},
then:function(u){return _.F("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},u)}}),_.F(_.w,{cond:function(){return y().primaryGenre},
then:function(u){return _.F("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},u)}}))),_.F(_.w,{cond:function(){var u=y().description;
return u&&u.length<=150},
then:function(){return _.F("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.F("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return y().description}))}}))},"Og"),Z4J=_.Jd(function(R){R=R.infoRows;
var y=_.ua().resolve(_.Cr),u=_.f("enable_displaying_ppn");return _.F("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.F(_.eS,{each:R},function(v){return _.F("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.F(_.w,{cond:function(){return v.label},
then:function(Q){return _.F("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},Q)}}),_.F(_.w,{cond:function(){return v.attributedLabel},
then:function(Q){return _.F("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.F(_.QM,{text:Q,noPreWrap:!0}))}}),_.F(_.w,{cond:function(){return v.value},
then:function(Q){return _.F("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},Q)}}),_.F(_.w,{cond:function(){return v.attributedValue},
then:function(Q){return _.F("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.F(_.QM,{text:Q,noPreWrap:!0}))}}))}),_.F(_.w,{cond:function(){return u&&y.clientData.has("post_play_nonce")},
then:function(){return _.F("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.F("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.F("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},y.getData("post_play_nonce")))}}))},"Pg"),H4Z=_.Jd(function(R){var y=R.data;
return _.F("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.F(edg,{title:function(){return y().dialogTitle}}),_.F(O4P,{data:y}),_.F(_.w,{cond:function(){return y().infoRow},
then:function(u){return _.F(Z4J,{infoRows:u})}}),_.F(lha,{closeButton:function(){return y().closeButton}}))},"Qg");
H4Z.idomCompat=!0;_.h6(H4Z,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.vR}});_.h6(_.Jd(function(R){var y=R.data;return _.F("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.F(_.MR,{data:function(){return y().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.F("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.F("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.F(_.w,{cond:function(){var u=y().ytLogo;return u?u.iconType:null},
then:function(u){return _.F(_.W_,{icon:u,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.F("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.F("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.F(_.QM,{text:function(){return y().title}})),_.F("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.F(_.QM,{text:function(){return y().body}})),_.F("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.F(_.QM,{text:function(){return y().verifyStateText}}))),
_.F("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.F("div",null,_.F(_.mk,{data:function(){return y().dismissButton}},{buttonViewModel:_.fQ})),_.F("div",null,_.F(_.mk,{data:function(){return y().linkParentButton}},{buttonViewModel:_.fQ})))))},"Rg"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.vR}});var neg=_.Jd(function(R){var y=R.data;R=_.Qj(function(){return y().agreements},[]);
return _.F("installment-agreements-view-model",{class:_.Oy("ytInstallmentAgreementsViewModelHost")},_.F(_.eS,{each:R},function(u){return _.F("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.F("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.F(_.QM,{text:u.label})),_.F("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.F(_.mk,{data:function(){return u.openButton}},{buttonViewModel:_.fQ})))}))},"Sg");
neg.idomCompat=!0;var Gjo=_.Jd(function(R){return _.F("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.F("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.F(_.QM,{text:function(){return R.data().inviteMessage}})),_.F("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.F(_.QM,{text:function(){return R.data().attributedAccountSectionHeaderText}})),_.F("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.F(_.mk,{data:function(){return R.data().accountAvatar}},{avatarViewModel:_.XS}),_.F("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.F(_.QM,{text:function(){return R.data().accountName}}),_.F("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.F(_.QM,{text:function(){return R.data().handle}}))),_.F(_.mk,{data:function(){return R.data().trailingButton}},{buttonViewModel:_.fQ})),_.F("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.F(_.QM,{text:function(){return R.data().termsOfService}})))},"Tg");var rm7=_.Jd(function(R){var y=_.V(_.rW(function(){var L,QG;return((L=R.data().createPlaylistDialogFormSchema)==null?0:(QG=L.initialValues)==null?0:QG.title)?R.data().createPlaylistDialogFormSchema.initialValues.title:""})),u=y.next().value,v=y.next().value;
y=_.V(_.rW(function(){R.data();return!1}));
var Q=y.next().value,M=y.next().value;y=_.V(_.rW(function(){R.data();return!1}));
var K=y.next().value,h=y.next().value;y=_.V(_.rW(function(){var L,QG;return(L=R.data().createPlaylistDialogFormSchema)==null?void 0:(QG=L.initialValues)==null?void 0:QG.visibility}));
var b=y.next().value,N=y.next().value;y=_.V(_.rW(function(){R.data();return!1}));
var T=y.next().value,x=y.next().value;y=_.V(_.rW(function(){var L,QG;return(L=R.data().createPlaylistDialogFormSchema)==null?void 0:(QG=L.initialValues)==null?void 0:QG.isCollaborative}));
var B=y.next().value,l=y.next().value,Z=_.sh("div");_.ny(function(){var L=Z.value.querySelector("textarea");L&&(L.value=u())},"OCauEe");
_.rB(function(){var L;_.Usg((L=R.data().createPlaylistDialogFormSchema)==null?void 0:L.id,{onSubmit:function(){var QG=u();var hz=b(),bO=B(),BW=R.data();QG={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:QG,privacyStatus:hz,videoIds:BW.videoIds,sourcePlaylistId:BW.sourcePlaylistId,params:bO?BW.createPlaylistParamsCollaborationEnabled:BW.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.ua().resolve(_.jX).resolveCommand(QG)},
isValid:function(){return Q()&&!K()&&!T()}})});
var P=function(L){if(L!==void 0&&(v(L),!Q()&&L.length>0&&M(!0),Q())){var QG=cdJ(R.data());if(QG){var hz=QG.minLength;QG=QG.maxLength;hz&&L.length<hz?h(!0):QG&&L.length>QG?h(!0):h(!1)}}},k=function(){var L=!(!B()||b()!=="PRIVATE");
x(L)},E=function(L){L!==void 0&&(N(L),k())},D=function(){if(T())return S4P(R.data())},z=function(){l(!B());
k()},c=function(){return{validate:function(L){if(Q()){var QG=cdJ(R.data());
if(QG){var hz=QG.minLength;QG=QG.translations;if(hz&&L.length<hz)return QG==null?void 0:QG.minLengthErrorMessage}}}}},a=function(){var L=cdJ(R.data()),QG=L==null?void 0:L.maxLength,hz;
L=L==null?void 0:(hz=L.translations)==null?void 0:hz.maxLengthErrorMessage;if(QG&&L)return{maxChars:QG,errorMessage:L}};
return _.F("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.F("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:Z},_.F(_.mk,{data:function(){return R.data().playlistTitle}},{textFormFieldViewModel:function(L){return _.F(_.Him,{data:L.data,
text:u,onInput:P,validation:c,characterLimit:a})},
textFieldViewModel:function(L){return _.F(_.ZiJ,{data:L.data,text:u,onInput:P,validation:c,characterLimit:a})}})),_.F("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.F(_.mk,{data:function(){return R.data().playlistVisibility}},{dropdownViewModel:function(L){return _.F(_.X3g,{data:L.data,
onSelected:E,error:D})}})),_.F(_.w,{cond:function(){return!!R.data().playlistCollaborate},
then:function(){return _.F("div",null,_.F(_.mk,{data:function(){return R.data().playlistCollaborate}},{switchListItemViewModel:function(L){return _.F(_.vAc,{data:L.data,
onTap:z})}}))}}))},"Ug");var PfM=_.Jd(function(R){var y=R.data;return _.F("upsell-offer-table-cell-content-view-model",null,_.F("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.F(_.Z6,null,_.F(_.lr,{when:function(){return y().iconType}},function(){return _.F("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.F(_.W_,{icon:function(){return y().iconType.toString()}}))}),_.F(_.lr,{when:function(){return y().title}},function(){return _.F(_.QM,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return y().title}})}),_.F(_.lr,{when:function(){return y().subtitle}},function(){return _.F(_.QM,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return y().subtitle}})}),_.F(_.lr,{when:function(){return y().infoText}},function(){return _.F(_.QM,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return y().infoText}})}),_.F(_.lr,{when:function(){return y().featureDescription}},function(){return _.F(_.QM,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return y().featureDescription}})}),_.F(_.lr,{when:function(){return y().note}},function(){return _.F(_.QM,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return y().note}})}))))},"Vg");
PfM.idomCompat=!0;var WCo=_.Jd(function(R){var y=R.data;return _.F("upsell-offer-table-cell-view-model",null,_.F("div",{class:_.Oy("ytUpsellOfferTableCellViewModelCellWrapper",function(){return y().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.F(_.mk,{data:function(){return y().contents}},{upsellOfferTableCellContentViewModel:PfM})))},"Wg");
WCo.idomCompat=!0;var d0a=_.Jd(function(R){var y=R.data;var u=R.upsellTableIsFirstRow;var v=function(){return(u==null?0:u())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},Q=function(){return(u==null?0:u())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.F("ytm-upsell-offer-table-row-view-model",null,_.F("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.F(_.mk,{data:function(){return y().rowHeaderCell}},{upsellOfferTableCellViewModel:function(M){return _.F("div",{class:v},_.F(WCo,{data:M.data}))}}),_.F(_.mk,{data:function(){return y().contentCells}},{upsellOfferTableCellViewModel:function(M){return _.F("div",{class:Q},_.F(WCo,{data:M.data}))}})))},"Xg");
d0a.idomCompat=!0;var U0H=_.Jd(function(R){var y=R.data;return _.F("ytm-upsell-offer-table-view-model",null,_.F("div",{class:"ytUpsellOfferTableViewModelHost"},_.F("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.F(_.mk,{data:function(){return y().rows}},{upsellOfferTableRowViewModel:function(u,v){return _.F(d0a,{data:u.data,
upsellTableIsFirstRow:function(){return v()===0}})}}))))},"Yg");
U0H.idomCompat=!0;var kj7=_.Jd(function(R){var y=_.Qj(R.noPadding,!1),u=function(){var M,K;return(K=(M=R.data().logo.accessibilityData)==null?void 0:M.label)!=null?K:""},v=function(){return R.data().offerTable},Q={};
return _.F("upsell-view-model",{class:_.Oy("ytUpsellViewModelHost",(Q.ytUpsellViewModelHostNoPadding=function(){return y()},Q.ytUpsellViewModelHostWide=function(){return v()!==void 0},Q))},_.F("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.F(_.w,{cond:function(){return _.yM(R.data().logo)},
then:function(M){return _.F(_.MR,{data:M,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:u})}})),_.F("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.F(_.QM,{text:function(){return R.data().title}})),_.F("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.F(_.eS,{each:function(){var M;
return(M=R.data().subtitles)!=null?M:[]},
keyBy:"INDEX"},function(M){var K={};return _.F("div",{class:_.Oy("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(K.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return v()!==void 0},K))},_.F(_.QM,{text:M}))})),_.F("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.F(_.eS,{each:function(){var M;
return(M=R.data().benefitInfos)!=null?M:[]},
keyBy:"INDEX"},function(M){return _.F(_.w,{cond:function(){return M().info},
then:function(K){return _.F("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.F(_.W_,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.F(_.QM,{text:K}))}})})),_.F(_.w,{cond:function(){return v()!==void 0},
then:function(){return _.F("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.F(U0H,{data:v}))}}),_.F("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.F(_.eS,{each:function(){var M;
return(M=R.data().legalInfos)!=null?M:[]},
keyBy:"INDEX"},function(M){var K={};return _.F("div",{class:_.Oy("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(K.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return v()!==void 0},K))},_.F(_.QM,{text:M}))})))},"Zg");var EeI=_.Jd(function(R){var y=R.data;R={};R=(R.ytMiniAppScoreChallengeViewModelScoreRadial=!0,R.ytMiniAppScoreChallengeViewModelDarkScoreRadial=Y4P(),R);return _.F("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.F("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return y().title}),_.F("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return y().subtitle}),_.F("div",{class:_.Zl(R)},_.F("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return y().score})),_.F("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return y().prompt}))},"$g");var $0a=function(){this.store=_.uX();this.formId=""};
$0a.prototype.onInit=function(R){R.formId&&(this.formId=R.formId,this.store.dispatch(_.iE({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var q5o=_.Jd(function(R){function y(h){if(h&&(h=_.e(h,_.Pm)))return Object.assign({},h,{isSelected:M()})}
var u=_.V(_.rW(function(){var h,b;return(b=(h=_.e(R.data().option,_.Pm))==null?void 0:h.isSelected)!=null?b:!1})),v=u.next().value,Q=u.next().value,M=v;
_.rB(function(){var h;_.Usg((h=R.data().formSchema)==null?void 0:h.id,{onSubmit:function(){var b=_.ua().resolve(_.jX),N=!!R.data().selectedCommand,T=!!R.data().unselectedCommand;if(M()){if(N)var x=R.data().selectedCommand}else T&&(x=R.data().unselectedCommand);x=_.Sb(x);y(R.data().option)&&!x?(b="",!N&&T?b="selected ":N&&!T&&(b="unselected "),N=new _.OL("No "+b+"command found for SelectionListItemFormViewModel"),_.dI(N)):x&&b.resolveCommand(x)},
isValid:function(){return!0}})});
var K=function(){Q(!M())};
_.GF(function(){var h,b,N=(h=R.data())==null?void 0:(b=h.formSchema)==null?void 0:b.id;N&&_.WqJ()().delete(N)});
return _.F("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.F("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.F(_.QM,{text:function(){return R.data().paragraph}})),_.F(_.w,{cond:function(){return y(R.data().option)},
then:function(h){return _.F(_.aY,{data:h,isCompact:!0,hideSelectionTextChevron:!0,onTap:K,disableHorizontalPadding:!0})}}))},"ah");var Xpp=_.Jd(function(R){var y=R.data;var u=R.disablePadding;var v=R.className;var Q=_.sh("yt-dialog-header-view-model"),M=function(){var h=y().imageBanner;a:switch(y().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var b="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:b="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:h,style:b,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},K=function(){return y().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.rB(function(){var h=function(){_.Ik(Q.value,"yt-refit-popups-action")},b;
(b=Q.value)==null||b.addEventListener("image-loaded",h);_.GF(function(){var N;(N=Q.value)==null||N.removeEventListener("image-loaded",h)})});
R={};return _.F("yt-dialog-header-view-model",{el:Q,class:_.Oy(v,(R.ytDialogHeaderViewModelHost=!0,R.ytDialogHeaderViewModelHostDisablePadding=u,R))},_.F(_.w,{cond:function(){return y().imageBanner},
then:function(){var h={};return _.F("div",{class:_.Oy(v,(h.ytDialogHeaderViewModelBanner=!0,h.ytDialogHeaderViewModelBannerFullBleed=K,h)),style:_.P_({"max-height":function(){return y().assetContainerMaxHeight!==void 0?y().assetContainerMaxHeight+"px":void 0}})},_.F(_.b2,{data:M,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.F(_.w,{cond:function(){return y().headerBlock},
then:function(){return _.F("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.F(_.mk,{data:function(){return y().headerBlock}},{contentPreviewImageViewModel:function(h){return _.F(_.b2,{data:h.data,
notifyOnLoaded:!0})}}))}}),_.F(_.w,{cond:function(){return y().customBanner},
then:function(h){return _.F("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.F(_.mk,{data:h},{avatarStackViewModel:_.Ap}))}}),_.F(_.w,{cond:function(){return y().headline},
then:function(h){return _.F("h2",null,_.F(_.QM,{text:h,className:"ytDialogHeaderViewModelText"}))}}))},"bh");
Xpp.idomCompat=!0;var m07=_.Jd(function(R){var y=_.k7a(function(){return R.data().formId}),u=y.onSubmit,v=y.isValid;
return _.F("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.F(_.mk,{data:function(){return R.data().panelFooter}},{panelFooterViewModel:function(Q){return _.F(_.Ml,{data:Q.data,
disablePadding:!0,disablePrimaryButton:function(){return!v()},
onClickPrimaryButton:function(){u()}})}}))},"ch");var AmZ=_.Jd(function(R){var y=function(){var u,v;return(v=(u=_.e(R.data().rendererContext,_.GC))==null?void 0:u.label)!=null?v:""};
return _.F("yt-dialog-image-content-view-model",{class:_.Oy("ytDialogImageContentViewModelHost",R.className)},_.F(_.w,{cond:function(){return _.yM(R.data().image)},
then:function(u){return _.F(_.MR,{data:u,alt:y,className:"ytDialogImageContentViewModelImage",contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"})}}),_.F(_.QM,{text:function(){return R.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"dh");var tMp=_.Jd(function(R){var y=_.jb(R,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),u=y.elRefCallback;R=y.iconWiz;var v=y.assetWiz,Q=y.assetType,M=y.titleWiz,K=y.leadingActionHeaderWiz,h=y.trailingActionHeaderWiz,b=y.headerPosition,N=y.contentWiz,T=y.buttonLayout,x=y.buttonStyle,B=y.primaryButtonWiz,l=y.secondaryButtonWiz,Z=y.contentAlignment,P=y.isFullscreen,k=y.width,E=y.maxHeight,D=y.isHeaderWizDefined,
z=y.headerWiz,c=y.isFooterWizDefined,a=y.footerWiz;y=_.sh("dialog-layout",function($S){u==null||u($S)});
var L=v?function(){return v({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,QG=B?function(){var $S={};
return B({buttonOverrides:function(){return{style:(x==null?void 0:x())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.Oy(($S["yt-spec-dialog-layout__dialog-layout-button"]=!0,$S["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(T==null?void 0:T())===0||(T==null?void 0:T())===2},$S))})}:void 0,hz=l?function(){var $S={};
return l({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.Oy(($S["yt-spec-dialog-layout__dialog-layout-button"]=!0,$S["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(T==null?void 0:T())===0||(T==null?void 0:T())===2},$S))})}:void 0,bO=function(){return(!!M||!!K||!!h)&&b()===0},BW={},Zc={},xS={},Dc={};
return _.F("dialog-layout",{el:y,class:_.Oy((BW["yt-spec-dialog-layout"]=!0,BW["yt-spec-dialog-layout--dialog-layout-fullscreen"]=P,BW["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!P()},BW["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return E()===1},BW["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(Q==null?void 0:Q())===1},BW)),
style:function(){return(k==null?void 0:k())!==void 0?"width: "+k+"px;":""}},R?_.F("div",{class:_.Oy((Zc["yt-spec-dialog-layout__dialog-layout-icon"]=!0,Zc["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!v&&b()===1},Zc["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return Z()===1},Zc))},_.F(R,null)):null,_.F(_.w,{cond:D,
then:function(){return z?_.F("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.F(z,null)):null},
else:function(){return _.F(_.vu,null,_.F(_.w,{cond:bO,then:function(){return _.F(D0a,{contentAlignment:Z,LeadingActionHeader:K,TrailingActionHeader:h,Title:M,isAboveAsset:!!L})}}),L?_.F("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.F(L,null)):null)}}),_.F("div",{class:_.Oy((xS["yt-spec-dialog-layout__dialog-layout-container"]=!0,xS["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(Z==null?void 0:Z())===1},xS["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!M&&!z||!!L&&(b==null?void 0:b())===0},xS))},_.F(_.w,{cond:function(){return M&&!z&&(b==null?void 0:b())===1},
then:function(){return _.F(D0a,{contentAlignment:Z,LeadingActionHeader:K,TrailingActionHeader:h,Title:M,isAboveAsset:!1})}}),N?_.F("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.F("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.F(N,null))):null,_.F(_.w,{cond:c,
then:function(){return a?_.F("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.F(a,null)):null}}),QG||hz?_.F(ppg,{footerClasses:_.Oy((Dc["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,Dc["yt-spec-dialog-layout__dialog-layout-footer"]=!0,Dc["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(T==null?void 0:T())===2},Dc["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(T==null?void 0:T())===1},Dc)),
PrimaryButton:QG,SecondaryButton:hz}):null))},"eh"),D0a=_.Jd(function(R){var y=_.jb(R,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),u=y.contentAlignment,v=y.LeadingActionHeader;R=y.Title;var Q=y.TrailingActionHeader,M=y.isAboveAsset,K=y.enableLeadingActionHeader;y={};return _.F("div",{class:_.Oy((y["yt-spec-dialog-layout__dialog-header-container"]=!0,y["yt-spec-dialog-layout__dialog-header"]=!0,y["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=M,y["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(u==null?void 0:u())===1&&K()},y))},_.F(_.w,{cond:function(){return K()},
then:function(){return v?_.F("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.F(v,null)):null}}),R?_.F("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.F(R,null)):null,Q?_.F("div",null,_.F(Q,null)):null)},"fh"),ppg=_.Jd(function(R){var y=R.footerClasses;
var u=R.PrimaryButton;R=R.SecondaryButton;return _.F("div",{class:y},R?_.F(R,null):null,u?_.F(u,null):null)},"gh");var cma=_.Jd(function(R){var y=R.data;return _.F("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.F("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.F(_.mk,{data:function(){return y().avatar}},{avatarViewModel:_.XS})),_.F("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.F(_.QM,{text:function(){return y().title}})),_.F(_.QM,{text:function(){return y().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"hh");var ahM=_.Jd(function(R){var y=R.data;return _.F("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.F("div",{class:"ytAccessConfirmationViewModelContent"},_.F(_.mk,{data:function(){var u;return(u=y().avatar)!=null?u:y().dualAvatar}},{dualAvatarViewModel:function(u){return _.F(_.qsg,{data:u.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(u){return _.F(_.mG,{data:u.data})}}),_.F("h2",{class:"ytAccessConfirmationViewModelTitle"},_.F(_.QM,{text:function(){return y().title}})),_.F(_.QM,{text:function(){return y().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"ih");var S5M=_.Jd(function(R){var y=R.data;var u=void 0;R=_.V(_.rW(function(){var N;return((N=_.e(y().content,_.gz7))==null?void 0:N.defaultSelectedKey)||""}));
var v=R.next().value,Q=R.next().value,M,K=function(){Q("");var N;(N=u)!=null&&N.store.dispatch(_.iE({type:"RESET_COMMAND_MAP"}))};
_.rB(function(){u=new $0a;window.addEventListener("yt-popup-closed",K)});
_.ny(function(){if(u&&M!==y().formId&&(u.onInit(y()),(M=y().formId)&&v())){var N=u,T={key:v()};T.command&&N.store.dispatch(AeZ(M,T.command))}},"k6b6Qe");
_.GF(function(){window.removeEventListener("yt-popup-closed",K)});
var h=function(N,T,x){T.key&&x&&T.key!==v()&&(Q(T.key),u&&T.command&&u.store.dispatch(AeZ(x,T.command)))},b=function(){if(_.e(y().content,_.gz7))return!(v==null?0:v())};
return _.F("yt-dialog-view-model",{class:_.Oy("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.F(tMp,{headerWiz:function(){return _.F("span",{skip:!0},_.F(_.mk,{data:function(){return y().header}},{dialogHeaderViewModel:function(N){return _.F(Xpp,{data:N.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!y().header},
contentWiz:function(){return _.F("span",{skip:!0},_.F(_.mk,{data:function(){return y().customContent?y().customContent:y().content}},{basicContentViewModel:_.kaI,
createPlaylistDialogFormViewModel:rm7,collaborativePlaylistInviteMessageViewModel:Gjo,miniAppScoreChallengeViewModel:EeI,radioButtonGroupViewModel:function(N){var T=N.data;return _.F(_.ET8,{data:T,selectedKey:v,onSelected:h,groupName:function(){return T().formId}})},
selectionListItemFormViewModel:q5o,upsellViewModel:function(N){return _.F(kj7,{data:N.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:cma,installmentAgreementsViewModel:neg,accessConfirmationViewModel:ahM,listViewModel:function(N){return _.F(_.Ik8,{data:N.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:AmZ}))},
footerWiz:function(){return _.F("span",{skip:!0},_.F(_.mk,{data:function(){return y().footer}},{panelFooterViewModel:function(N){return _.F(_.Ml,{data:N.data,
disablePadding:!0,disablePrimaryButton:b})},
formPanelFooterViewModel:m07,formFooterViewModel:function(N){return _.F(_.BI8,{data:N.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!y().footer}}))},"jh");
S5M.idomCompat=!0;_.h6(S5M,"yt-dialog-view-model",{props:{data:_.vR},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var Y5H=_.Jd(function(R){var y=R.data;R={};return _.F("yt-panel-header-view-model",{class:_.Oy("yt-panel-header-view-model-wiz",(R["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!y().shouldHideDivider},R["yt-panel-header-view-model-wiz--compact"]=function(){return!!y().subtitle},R))},_.F("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.F(_.w,{cond:function(){return y().title},
then:function(u){return _.F(_.QM,{text:u,className:"yt-panel-header-view-model-wiz__title"})}}),_.F(_.w,{cond:function(){return y().subtitle},
then:function(u){return _.F(_.QM,{text:u,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.F("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.F(_.mk,{data:function(){return y().trailingButtons}},{buttonViewModel:function(u){return _.F(_.fQ,{data:u.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"kh");
Y5H.idomCompat=!0;var LCm=_.Jd(function(R){var y=_.nh(function(M){var K;if((K=R.skipContentClick)==null?0:K.call(R))return!1;R.onContentWrapperClick(M);return!0}),u,v,Q;
return _.F("div",{class:_.Oy("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":""}},(u=R.header)==null?void 0:u.call(R),_.F("div",{id:R.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.P_({"max-height":(0,_.p5)(R.maxHeightForContentWrapper)}),"on:scroll":giZ(R.onScroll),"on:touchmove":giZ(function(M){return void M.stopPropagation()})},_.F("div",{el:{onRender:R.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":y},(v=R.body)==null?void 0:v.call(R))),(Q=R.footer)==null?void 0:Q.call(R))},"lh");
LCm.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var s7a=_.Jd(function(R){var y=_.Qj(R.leadingLabel),u=_.Qj(R.trailingLabel),v=_.Qj(R.footerButtonType),Q=function(){return y()||u()||R.hasPrimaryButton()||R.hasSecondaryButton()},M={},K=_.Oy("yt-spec-bottom-sheet-layout__primary-button",(M["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return v()===0&&R.hasPrimaryButton()},M["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return v()===1&&R.hasPrimaryButton()},M["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return v()===2&&R.hasPrimaryButton()},M["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return v()===3&&R.hasPrimaryButton()},M));
M={};var h=_.Oy("yt-spec-bottom-sheet-layout__secondary-button",(M["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return v()===1&&R.hasSecondaryButton()},M["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return v()===2&&R.hasSecondaryButton()},M["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return v()===3&&R.hasPrimaryButton()},M));
return _.F(_.w,{cond:R.hasFooterOverride,then:function(){var b;return _.F(_.vu,null,(b=R.footerOverride)==null?void 0:b.call(R))},
else:function(){return _.F(_.w,{cond:Q,then:function(){return _.F("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.F(_.w,{cond:function(){return y()||u()},
then:function(){var b={};return _.F("div",{class:_.Oy("yt-spec-bottom-sheet-layout__footer-label-wrapper",(b["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!R.hasPrimaryButton()},b))},_.F(_.w,{cond:y,
then:function(){return _.F("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},y)}}),_.F(_.w,{cond:u,
then:function(){return _.F("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},u)}}))}}),_.F(_.w,{cond:function(){return R.hasPrimaryButton()||R.hasSecondaryButton()},
then:function(){var b={};return _.F("div",{class:_.Oy("yt-spec-bottom-sheet-layout__footer-button-wrapper",(b["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.j$T,b))},_.F(_.w,{cond:function(){return R.hasSecondaryButton()&&v()!==0},
then:function(){var N;return _.F("div",{class:h},(N=R.secondaryButton)==null?void 0:N.call(R))}}),_.F(_.w,{cond:R.hasPrimaryButton,
then:function(){var N;return _.F("div",{class:K},(N=R.primaryButton)==null?void 0:N.call(R))}}))}}))}})}})},"mh");
s7a.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var zdK=_.Jd(function(R){var y=_.Qj(R.title),u=_.Qj(R.subtitle);return _.F("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:R.headerId,"on:touchstart":_.nh(function(v){var Q;(Q=R.touchstart)==null||Q.call(R,v);return!1}),
"on:touchmove":_.nh(function(v){var Q;(Q=R.touchmove)==null||Q.call(R,v);return!1}),
"on:touchend":_.nh(function(v){var Q;(Q=R.touchend)==null||Q.call(R,v);return!1})},_.F("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.F(_.w,{cond:R.hasHeaderOverride,
then:function(){var v;return _.F(_.vu,null,(v=R.headerOverride)==null?void 0:v.call(R))},
else:function(){var v={};return _.F("div",{class:_.Oy((v["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,v["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=y,v))},_.F("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.F(_.w,{cond:y,then:function(){return _.F(_.vu,null,_.F("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},y),_.F(_.w,{cond:u,then:function(){return _.F("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
u)}}))}})),_.F(_.w,{cond:function(){return y()&&R.hasActionHeader()},
then:function(){var Q;return _.F("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(Q=R.actionHeader)==null?void 0:Q.call(R))}}))}}))},"nh");
zdK.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.Jd(function(R){function y(L){if(!E&&typeof MutationObserver!=="undefined"){var QG={childList:!0};"MutationObserver"in window&&(E=new MutationObserver(u.bind(void 0,L)),E.observe(L,QG))}}
function u(L){typeof E!=="undefined"&&(D["content-wrapper"]===void 0&&(D["content-wrapper"]=L.children[0].clientHeight),l(D["content-wrapper"]),B()>Z()||P(B()))}
function v(){x(window.innerHeight);B()>Z()||P(B());z.isFullScreen[0]()&&B()>Z()?c().dispatch("Snap To Full Screen",{maxHeight:k()}):c().dispatch("Snap To Neutral Position",{maxHeight:Z()})}
function Q(L){document.body.style.overscrollBehavior="none";L.preventDefault();c().dispatch("Touch Start",{event:L})}
function M(L){L.preventDefault();c().dispatch("Touch Move",{event:L,contentScrollable:B()>Z(),fullContentWrapperHeight:k(),contentWrapperHeight:Z(),contentHeightMap:D,contentWrapperId:"content-wrapper",header:RvH(R),footer:RvH(R)})}
function K(){document.body.style.overscrollBehavior="";z.isFullScreen[0]()?z.currentY[0]()>=60?c().dispatch("Snap To Neutral Position",{maxHeight:Z()}):c().dispatch("Snap To Full Screen",{maxHeight:k()}):z.currentY[0]()>=60?h():z.currentY[0]()<=-60&&B()>Z()?c().dispatch("Snap To Full Screen",{maxHeight:k()}):c().dispatch("Snap To Neutral Position",{maxHeight:Z()})}
function h(){c().dispatch("Close Sheet",{clientHeight:T(),maxHeight:0});setTimeout(function(){CXp()},250)}
var b=_.V(_.In(window.innerHeight,void 0,"NWeFS")),N=b.next().value;b=b.next().value;var T=N,x=b;b=_.V(_.In(0,void 0,"oxfm4"));N=b.next().value;b=b.next().value;var B=N,l=b;b=_.V(_.rW(function(){var L=RvH(R);return.6*T()-LNP(L)-sc8(L)}));
N=b.next().value;b=b.next().value;var Z=N,P=b,k=function(){var L=RvH(R);return T()-LNP(L)-sc8(L)-24-24},E=null,D={},z={initialY:_.In(0,void 0,"cYBE5c"),
currentY:_.In(0,void 0,"RndqHc"),isAnimating:_.In(!1,void 0,"vO9DVd"),isFullScreen:_.In(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.rW(Z)},c=function(){var L=null;return function(){if(!L){var QG={initialY:z.initialY[0](),currentY:z.currentY[0](),isAnimating:z.isAnimating[0](),isFullScreen:z.isFullScreen[0](),maxHeightForContentWrapper:z.maxHeightForContentWrapper[0]()};L=z4m(QG)}return L}}();
_.rB(function(){window.addEventListener("resize",v);c().subscribe(function(L){z.initialY[1](L.initialY);z.currentY[1](L.currentY);z.isAnimating[1](L.isAnimating);z.isFullScreen[1](L.isFullScreen);z.maxHeightForContentWrapper[1](L.maxHeightForContentWrapper)})});
_.GF(function(){window.removeEventListener("resize",v);E&&(E.disconnect(),E=null)});
var a=_.Oy({"bottom-sheet-content-without-icon":function(){var L;return!((L=R.shouldShowIcons)==null?0:L.call(R))}});
return _.F("bottom-sheet-layout",null,_.F(LCm,{contentWrapperId:"content-wrapper",isAnimating:function(){return z.isAnimating[0]()},
currentY:function(){return z.currentY[0]()},
maxHeightForContentWrapper:function(){return z.maxHeightForContentWrapper[0]()},
shouldShowIcons:R.shouldShowIcons,skipContentClick:R.skipContentClick,onScroll:function(){var L=document.getElementById("header-wrapper"),QG=document.getElementById("content-wrapper");if(L&&QG){var hz={};hz=(hz["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,hz["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,hz);L.className=QG.scrollTop>1?_.Zl(hz):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:CXp,contentWrapperEl:function(L){y(L);requestAnimationFrame(function(){u(L)})},
header:function(){return _.F(zdK,{touchstart:Q,touchmove:M,touchend:K,title:R.headerTitle,subtitle:R.headerSubtitle,headerId:"header-wrapper",headerOverride:R.headerFn,hasHeaderOverride:R.hasHeaderFn,actionHeader:R.headerActionHeader,hasActionHeader:R.hasHeaderActionHeader})},
footer:function(){return _.F(s7a,{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 _.F(_.w,{cond:R.hasContentFn,then:function(){var L;return _.F("div",{class:a},(L=R.contentFn)==null?void 0:L.call(R))}})}}))},"oh").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var gep=_.Jd(function(R){var y=_.ua().resolve(_.UM);return _.F("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":_.nh(function(){return void y.closeSheet()})},_.F(_.w,{cond:function(){return!!R.header},
then:function(){return _.F("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},R.header())}}),_.F(_.w,{cond:function(){return!!R.content},
then:function(){return _.F("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},R.content())}}),_.F(_.w,{cond:function(){return!!R.footer},
then:function(){return _.F("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},R.footer())}}))},"ph");
gep.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var Cfo=_.Jd(function(R){R=R.data;var y=_.sh("yt-sheet-view-model",function(v){if(_.f("web_focus_first_element_sheet")||!_.f("sheet_focus_first_killswitch"))return v.addEventListener("focus",function(){tig(v)}),function(){v.removeEventListener("focus",function(){tig(v)})}}),u={};
return _.F("yt-sheet-view-model",{"on:mousedown":_.nh(function(v){_.f("sheet_focus_first_killswitch")||v.currentTarget!==v.target&&v.preventDefault()}),
"on:focus":_.nh(function(){_.f("sheet_focus_first_killswitch")||tig(y.value)}),
class:_.Oy("yt-sheet-view-model-wiz",(u["yt-sheet-view-model-wiz--contextual"]=!0,u["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.f("web_disable_backdrop_filter"),u)),el:y,tabindex:-1},_.F(_.w,{cond:R,then:function(v){return _.F(gep,{header:function(){return _.F(_.mk,{data:function(){return v().header}},{panelHeaderViewModel:Y5H})},
content:function(){return _.F(_.mk,{data:function(){return v().content}},{listViewModel:function(Q){return _.F(_.Ik8,{data:Q.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:kj7,miniAppScoreChallengeViewModel:EeI})},
footer:function(){return _.F(_.mk,{data:function(){return v().footer}},{panelFooterViewModel:_.Ml})}})}}))},"qh");
Cfo.idomCompat=!0;_.h6(Cfo,"yt-sheet-view-model",{props:{data:_.vR}});var yoZ=_.Jd(function(R){var y=function(){var u;return(u=R.data().enableDebuggingFeatures)!=null?u:!1};
return _.F("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.F(_.eS,{each:function(){var u;return(u=R.data().stickers)!=null?u:[]}},function(u){return _.F(RiK,{data:function(){return u},
debugMode:y})}))},"rh"),RiK=_.Jd(function(R){var y=_.jb(R,{debugMode:!1}).debugMode,u=_.Qj(function(){var b;
return(b=R.data().region)==null?void 0:b.w},0),v=_.Qj(function(){var b;
return(b=R.data().region)==null?void 0:b.h},0),Q=_.Qj(function(){var b;
return(b=R.data().region)==null?void 0:b.x},0),M=_.Qj(function(){var b;
return(b=R.data().region)==null?void 0:b.y},0),K=_.nh(function(){var b=R.data().onTap;
b&&_.zN(b)}),h={};
return _.F("div",{class:_.Oy("ytStoriesStickerLayerViewModelSticker",(h.ytStoriesStickerLayerViewModelDebugMode=y,h)),style:_.P_({width:function(){return 100*u()+"%"},
height:function(){return 100*v()+"%"},
left:function(){return 100*Q()+"%"},
top:function(){return 100*M()+"%"},
"flex-direction":function(){return y6H(R.data().flexDirection)},
"justify-content":function(){return ujJ(R.data().justifyContent)},
"align-items":function(){return v6g(R.data().alignItems)}}),
"on:click":K},_.F(_.mk,{data:function(){return R.data().button||R.data().toggleButton}},{buttonViewModel:function(b){return _.F(_.fQ,{data:b.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(b){return _.F(_.$1,{data:b.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"sh");var vfZ=_.Jd(function(R){var y=function(){return R.data()},u={},v=_.Qj(function(){return y().backgroundColor},0),Q=_.Qj(function(){return y().actionButtons},[]),M=_.Qj(function(){return y().stickerLayer},{}),K=function(){var b,N;
return{animationRef:u,animationConfig:{autoplay:!1,loop:!1,path:(N=(b=y().foregroundAnimation)==null?void 0:b.url)!=null?N:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){R.navigateToNextItemOnLottieComplete()}}}},h=function(){var b,N,T,x,B,l,Z,P;
return{animationConfig:{autoplay:(l=(b=y().backgroundAnimation)==null?void 0:(N=b.settings)==null?void 0:N.autoplay)!=null?l:!1,loop:(Z=(T=y().backgroundAnimation)==null?void 0:(x=T.settings)==null?void 0:x.loop)!=null?Z:!1,path:(P=(B=y().backgroundAnimation)==null?void 0:B.url)!=null?P:"",name:"stories_item_background_animation"}}};
_.ny(function(){if(R.isVisible()){var b;(b=u.lottieEl)==null||b.play();R.animationRef()&&(R.animationRef().lottieEl=u.lottieEl)}else{var N;(N=u.lottieEl)==null||N.stop()}},"Cbnkwd");
return _.F("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.P_({"background-color":function(){return _.Sq(v())+";"}})},_.F("div",{class:"ytStoriesItemViewModelAssetContent"},_.F(_.w,{cond:function(){return!!y().backgroundAnimation},
then:function(){return _.F(_.F2,{data:h,animationName:function(){return h().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.F(_.w,{cond:function(){return!!y().backgroundImage},
then:function(){return _.F(_.MR,{data:function(){return y().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.F(_.w,{cond:function(){return!!y().foregroundAnimation},
then:function(){return _.F(_.F2,{data:K,animationName:function(){return K().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.F(_.w,{cond:function(){return!!y().foregroundImage},
then:function(){return _.F(_.MR,{data:function(){return y().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.F("div",{class:"ytStoriesItemViewModelTopShadow"}),_.F(_.mk,{data:function(){return M()}},{storiesStickerLayerViewModel:yoZ})),_.F("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.P_({"background-color":function(){return _.Sq(v())}})},_.F("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.F(_.eS,{each:Q},function(b){return _.F(u$a,{data:function(){return b},
pauseAutoNavigation:R.pauseAutoNavigation})}))))},"th"),Q6g={style:"overlay",
type:"outline"},u$a=_.Jd(function(R){var y={};return _.F("div",{class:_.Oy("ytStoriesItemViewModelActionButton",(y.ytStoriesItemViewModelStretchedActionButton=function(){return R.data().size==="STORIES_BUTTON_SIZE_STRETCH"},y)),
"on:click":_.nh(R.pauseAutoNavigation)},_.F(_.mk,{data:function(){return R.data().button}},{buttonViewModel:function(u){return _.F(_.fQ,{data:u.data,
buttonOverrides:Q6g})}}))},"uh");_.h6(_.Jd(function(R){var y=function(){var QG;return(QG=R.data().startIndex)!=null?QG:0},u=_.V(_.rW(y)),v=u.next().value,Q=u.next().value;
u=_.V(_.In(!1,void 0,"O8yPf"));var M=u.next().value,K=u.next().value,h=function(){var QG;return(QG=R.data().storyItems)!=null?QG:[]},b={},N=function(){return R.data().dismissButton},T=function(){var QG;
return _.e((QG=_.e(N(),_.k9))==null?void 0:QG.onTap,_.ac)},x=_.sh("div"),B,l,Z=!1,P=function(){var QG;
(QG=B)==null||QG.cancel();B=k(v()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});B.onfinish=function(){k(v()).style.width="100%";var hz=_.e(h()[v()],jJH),bO,BW;hz!=null&&hz.foregroundAnimation&&((hz==null?0:(bO=hz.foregroundAnimation)==null?0:bO.url)||(hz==null?0:(BW=hz.foregroundAnimation)==null?0:BW.payload))||(v()!==h().length-1?(Q(v()+1),P()):T()&&_.Yi(T()))}},k=function(QG){return x.value.children[QG].children[0]},E=function(){for(var QG=0;QG<v();QG++)k(QG).style.width=
"100%"};
u=_.nh(function(){Z||(M()?K(!1):(v()===h().length-1&&T()&&_.Yi(T()),k(v()).style.width="100%",v()!==h().length-1&&(Q(v()+1),P())))});
var D=_.nh(function(){Z||(M()?K(!1):(k(v()).style.width="0%",v()!==0?Q(v()-1):Q(v()),P()))}),z=function(){K(!0)},c=function(){k(v()).style.width="100%";
v()!==h().length-1?(Q(v()+1),P()):T()&&_.Yi(T())},a=_.nh(function(){Z=!1;
l=setTimeout(function(){K(!0);Z=!0},300)}),L=_.nh(function(){clearTimeout(l);
Z&&M()&&K(!1)});
_.ny(function(){if(M()){var QG;(QG=B)==null||QG.pause();var hz;(hz=b.lottieEl)==null||hz.pause()}else{var bO;(bO=B)==null||bO.play();var BW;(BW=b.lottieEl)==null||BW.play()}},"DIHTEd");
_.ny(function(){E();v()===y()&&P()},"ze5F8b");
_.rB(function(){E();P()});
_.GF(function(){clearTimeout(l)});
return _.F("yt-stories-viewer-view-model",{class:_.Oy("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.F("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.F("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":D,"on:mousedown":a,"on:mouseup":L,"on:mouseleave":L}),_.F("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":u,"on:mousedown":a,"on:mouseup":L,"on:mouseleave":L})),_.F("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},
_.F(_.mk,{data:h},{storiesItemViewModel:function(QG,hz){var bO=QG.data;return _.F(_.w,{cond:function(){return Math.abs(hz()-v())<=1},
then:function(){var BW={};return _.F("div",{class:_.Oy("ytStoriesViewerViewModelStoryItem",(BW.ytStoriesViewerViewModelActiveStoryItem=function(){return hz()===v()},BW))},_.F(vfZ,{data:bO,
pauseAutoNavigation:z,navigateToNextItemOnLottieComplete:c,isVisible:function(){return hz()===v()},
animationRef:b}))}})}})),_.F("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:x},_.F(_.eS,{each:h},function(){return _.F("div",{class:"ytStoriesViewerViewModelProgressBar"},_.F("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.F("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.F(_.mk,{data:N},{buttonViewModel:_.fQ})))},"vh"),"yt-stories-viewer-view-model",{props:{data:_.vR}});_.h6(_.Jd(function(R){var y=R.data;var u=_.sh("yt-gen-ai-feedback-form-view-model"),v=[];return _.F("yt-gen-ai-feedback-form-view-model",{el:u,class:"ytGenAiFeedbackFormViewModelHost"},_.F(_.QM,{text:function(){return y().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.F("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.F(_.mk,{data:function(){return y().feedbackChips}},{toggleButtonViewModel:function(Q){var M=Q.data;
return _.F(_.$1,{data:M,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(K){var h=M();h=_.e(h,_.EC);h=_.e(h==null?void 0:h.defaultButtonViewModel,_.k9).trackingParams;K?v.push(h):(K=v.indexOf(h),K>-1&&v.splice(K,1))}})}})),_.F(_.QM,{text:function(){return y().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.F("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.F(_.mk,{data:function(){return y().submitButton}},{buttonViewModel:function(Q){return _.F(_.fQ,{data:Q.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){QCV(u.value,v,y().uniqueId)}})}}),_.F(_.mk,{data:function(){return y().moreFeedbackButton}},{buttonViewModel:function(Q){return _.F(_.fQ,{data:Q.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"wh"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.vR},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var p7=function(){return _.W.apply(this,arguments)||this};
_.O(p7,_.W);p7.prototype.created=function(){kwm(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(OWZ);var R=_.ua().resolve(_.h7M);R&&(R.container=this.ytPopupContainerBehavior);if(R=_.ua().resolve(_.UM))R.container=this.ytPopupContainerBehavior;if(R=_.ua().resolve(_.kx)){var y=this.ytPopupContainerBehavior;R.containerWasInjected?_.kT(Error("dj")):R.container=y}};
p7.prototype.ensurePopupBelowPlayer=function(R,y){var u=_.ua().resolve(_.yN(_.iD));if(!u||!u.isOnWatch()||!_.I8())return!1;u=u.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.rw().height>u+this.getPopupHeight(R,y)?(R.style.top="auto",R.style.bottom="0px"):(R.style.top=u+"px",R.style.bottom="auto");return!0};
p7.prototype.getPopupHeight=function(R,y){y&&(R.cachedPopupHeight=0);if(!R.cachedPopupHeight){y=0;var u=R.clientHeight,v=window.getComputedStyle(R);y+=parseInt(v.marginTop,10);y+=parseInt(v.marginBottom,10);R.cachedPopupHeight=u+y}return R.cachedPopupHeight};
p7.prototype.getElement=function(R){return document.createElement(R)};
_.A([_.n(cuJ.YtPopupContainerBehavior),_.p("design:type",Object)],p7.prototype,"ytPopupContainerBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],p7.prototype,"ytComponentBehavior",void 0);_.A([_.q({disableElementRegistration:!0,is:"ytd-popup-container"})],p7);
_.m(p7,"ytd-popup-container",function(){if(E5K!==void 0)return E5K;var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);return E5K=R},{mode:1});var j6J;var M$H={};M$H.YtLogYpcFlowCommandsBehavior=[_.bW.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){_.e(R,lLp)&&(R=_.e(R,lLp))&&(R.serializedTransactionFlowLoggingParams?_.lHU(R.serializedTransactionFlowLoggingParams):R.serializedYpcCancelFlowLoggingParams?(R=R.serializedYpcCancelFlowLoggingParams)&&_.gS("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",R):R.serializedYpcResumeFlowLoggingParams?(R=R.serializedYpcResumeFlowLoggingParams)&&_.gS("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",R):R.serializedYpcPauseFlowLoggingParams?(R=R.serializedYpcPauseFlowLoggingParams)&&
_.gS("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",R):R.serializedYpcRefundFlowLoggingParams?(R=R.serializedYpcRefundFlowLoggingParams)&&Trm("YPC_EVENT_TYPE_START",R):R.serializedYpcDeactivateFlowLoggingParams?(R=R.serializedYpcDeactivateFlowLoggingParams)&&_.gS("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",R):R.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(R=R.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.gS("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",R))},
handleLogYpcFlowDismiss_:function(R){_.e(R,eNZ)&&(R=_.e(R,eNZ),R.serializedTransactionFlowLoggingParams?_.OW8(R.serializedTransactionFlowLoggingParams):R.serializedYpcCancelFlowLoggingParams?(R=R.serializedYpcCancelFlowLoggingParams)&&_.gS("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",R):R.serializedYpcResumeFlowLoggingParams?(R=R.serializedYpcResumeFlowLoggingParams)&&_.gS("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",R):R.serializedYpcPauseFlowLoggingParams?(R=
R.serializedYpcPauseFlowLoggingParams)&&_.gS("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",R):R.serializedYpcRefundFlowLoggingParams&&(R=R.serializedYpcRefundFlowLoggingParams)&&Trm("YPC_EVENT_TYPE_CANCEL",R))}}];var Joo={};Joo.YtCancelRecurrenceBehavior=[_.sx.YtComponentBehavior,_.y5Y,{attached:function(){var R=this;T$a(this,function(y,u){return R.ypcCancelRecurrenceHandler(y,u)})},
ypcCancelRecurrenceHandler:function(R,y){var u=this;if(!y||!y.ypcCancelRecurrenceEndpoint)return!1;if(!y.ypcCancelRecurrenceEndpoint.params)return _.mq(Error("wl")),!0;_.sz(this.hostElement);var v=_.Ch.instance,Q=_.ua().resolve(_.yN(_.AU));v&&_.R8(v,y)?_.yB(v,y).then(function(M){u.ypcCancelRecurrenceSuccess_(R,y,{data:M})},function(M){u.ypcCancelRecurrenceFailure_(R,y,M)}).thenCatch(function(){_.mq(Error("xl"))}):Q?Q.requestDataForServiceEndpoint(y).then(function(M){u.ypcCancelRecurrenceSuccess_(R,
y,M)},function(M){u.ypcCancelRecurrenceFailure_(R,y,M)}).thenCatch(function(){_.mq(Error("xl"))}):_.mq(Error("yl"));
return!0},
ypcCancelRecurrenceSuccess_:function(R,y,u){_.zx(this.hostElement);u.data||(u={data:u});u.data&&u.data.actions&&_.wr(this.hostElement,u.data.actions,this.hostElement);u.data.messageRenderer?xQm(y.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(y=y.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.gS("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",y);_.Ko(R,"yt-service-request-completed",u)},
ypcCancelRecurrenceFailure_:function(R,y,u){_.zx(this.hostElement);xQm(y.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.Ko(R,"yt-service-request-error",{error:u,params:[R,y]})}}];var V$8=function(R,y){_.RL.call(this,y)};
_.O(V$8,RD8);var idZ={};idZ.YtCompleteTransactionBehavior=[_.sx.YtComponentBehavior,_.y5Y,{attached:function(){var R=this;T$a(this,function(y,u){return R.ypcCompleteTransactionHandler(y,u)})},
completeTransaction:function(R,y){var u=this;y={payments_payload:window.btoa(y.integratorData),buybucket_params:R.data.buybucketParams,offer_params:R.data.offerParams};var v=_.ua().resolve(_.AU),Q=R.data.completeTransactionEndpoint,M=this.get("ypcCompleteTransactionEndpoint.actions",Q);M&&_.wr(this.hostElement,M,this.hostElement);return(M=_.Ch.instance)&&_.R8(M,Q)?_.yB(M,Q,y).then(function(K){return!K||(K==null?0:K.error)?(K=u.get("data.serializedTransactionFlowLoggingParams",R),_.qk(new Bj("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
K))):{data:K}}).then(function(K){return u.handleCompleteTransactionSuccess_(K,R)},function(){return u.handleCompleteTransactionFailure_(R)}):v.requestDataForServiceEndpoint(Q,y).then(function(K){return u.handleCompleteTransactionSuccess_(K,R)},function(){return u.handleCompleteTransactionFailure_(R)})},
handleCompleteTransactionSuccess_:function(R,y){R.data||(R={data:R});if(R.data.messageRenderer)return _.qk(new V$8(R.data.messageRenderer));if(R.data.trackingParams){var u=_.$I(),v=_.Ef();u&&v&&_.ak(u,v,_.U4(R.data.trackingParams))}y=this.get("data.serializedTransactionFlowLoggingParams",y);oFH(y);return _.NQ(R)},
handleCompleteTransactionFailure_:function(R){R=this.get("data.serializedTransactionFlowLoggingParams",R);_.RX("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",R);return _.qk(new Bj("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",R))},
ypcCompleteTransactionHandler:function(R,y){var u=this;if(!y.ypcCompleteTransactionEndpoint)return!1;if(!y.ypcCompleteTransactionEndpoint.transactionParams)return _.mq(Error("zl")),!0;y.ypcCompleteTransactionEndpoint&&y.ypcCompleteTransactionEndpoint.gtmData&&_.Xw(y.ypcCompleteTransactionEndpoint.gtmData);var v=_.ua().resolve(_.yN(_.AU));if(v){_.sz(this.hostElement);var Q=_.Ch.instance;Q&&_.R8(Q,y)?_.yB(Q,y).then(function(M){return!M||(M==null?0:M.error)?(M=u.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
y),_.qk(new Bj("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",M))):{data:M}}).then(function(M){_.Ko(R,"yt-service-request-completed");
u.ypcCompleteTransactionSuccess_(y,M)},function(){return u.ypcCompleteTransactionFailure_(y)}):v.requestDataForServiceEndpoint(y).then(function(M){_.Ko(R,"yt-service-request-completed");
u.ypcCompleteTransactionSuccess_(y,M)},function(){return u.ypcCompleteTransactionFailure_(y)})}return!0},
ypcCompleteTransactionSuccess_:function(R,y){_.zx(this.hostElement);y.data||(y={data:y});_.Ik(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);y.data.messageRenderer||y.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(R):(_.Xw('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",R));y.data.actions&&(R=W8a(y.data.actions),y=dzI(y.data.actions),R.length&&_.Fh(this.hostElement,
R),y.length&&_.wr(this.hostElement,y,this.hostElement))},
ypcCompleteTransactionFailure_:function(R){_.zx(this.hostElement);_.Ik(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",R,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(R,y,u){if(y=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",y))y={serializedTransactionFlowLoggingParams:y},u&&(y.errorType=u),_.P3(R,y),_.W3()}}];var KYJ={};KYJ.YtEndpointHandlerWithYpcBehavior=[_.y5Y,_.bW.YtActionHandlerBehavior,[{openWalletDialog:function(R,y,u,v,Q,M,K){var h=this,b=_.uD();y=y.replace(/-/g,"+").replace(/_/g,"/");var N=_.O9().get("hl");_.JB8(_.Vz(_.ya),y,b.resolve,Q,function(T){M&&M();b.reject(T)},N,function(T){return h.onServerBackendAnalyticEvent_(R,u,T)},this.onDialogClose_.bind(this),v,K);
return b.promise},
openFixFlowDialog:function(R,y,u,v){R=R.replace(/-/g,"+").replace(/_/g,"/");_.Vz(_.ya).openFixFlowDialog(R,y,u,v)},
onDialogClose_:function(){_.Ik(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(R,y,u){_.Ko(R,"yt-commerce-action-init-done");y&&_.Fh(this.hostElement,[y,{backend_analytics:u}])}}],
_.Oj.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(R,y){R=this.get("data.nativeFlowEndpoint",y);y=this.get("data.fallbackEndpoint",y);R?_.Fh(this.hostElement,[R]):y&&_.Ko(this.hostElement,"yt-navigate",{endpoint:y})}}],
Joo.YtCancelRecurrenceBehavior,idZ.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;T$a(this,function(y,u,v){return R.handleYPCEndpoint(y,u,v)});
this.ypcRegisterActionMapJobId_=_.Oh(_.WG,function(){R.registerActionMap(R.buyFlowActionMap_)})},
detached:function(){var R=this;_.WG.cancelJob(this.ypcRegisterActionMapJobId_);_.Oh(_.WG,function(){R.unregisterActionMap(R.buyFlowActionMap_)})},
handleYPCEndpoint:function(R,y,u){var v=y.ypcGetCartEndpoint;if(v){_.$F("commerce_transaction");var Q=v.gtmId;Q&&_.qL(Q);(v=v.gtmData)&&_.Xw(v)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",y)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(R,y),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",y)!=null?(this.handleYPCFixInstrumentEndpoint_(R,y),!0):y.ypcPauseSubscriptionCommand?(bho(this.hostElement,R,y,u),
!0):y.ypcResumeSubscriptionCommand?(NWp(this.hostElement,R,y),!0):y.getPaymentInstrumentsParamsCommand?(KxK(this.hostElement,R,y),!0):y.ypcHandleTransactionEndpoint?(VpP(this.hostElement,R,y,u),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(R,y){var u=this;_.qQ("ttcr",void 0,"commerce_transaction");y=y.ypcGetCartEndpoint;var v=y.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,Q=v.encryptedPurchaseParams,M=v.serializedTransactionFlowLoggingParams,K=v.serializedPaymentsClientParams,h=this.createGetCartResponseFromParams_(v,y.offerParams,M);this.changeButtonState(R,!0);_.Wc(this.openWalletDialog(R,Q,v.ypcLogWalletAnalyticDataEndpoint,M,function(){u.changeButtonState(R,!1)},function(){u.changeButtonState(R,
!1)},K).then(function(b){return u.handleBuyFlowCompleteCallback_(R,h,b)},function(){return u.handleOnLoadError(h)}).then(function(b){return void u.handlePostPurchaseSuccess_(R,h,b)},function(b){return void u.handlePostPurchaseError_(b)}),function(){u.changeButtonState(R,!1);
R instanceof Element&&_.Ko(R,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(R,y,u){var v=R.completeTransactionEndpoint,Q=R.handleTransactionEndpoint;y={data:{offerParams:window.btoa(y),serializedTransactionFlowLoggingParams:u}};Q?y.data.handleTransactionEndpoint=Q:y.data.completeTransactionEndpoint=v;R.onCartDismissCommand&&(y.data.onCartDismissCommand=R.onCartDismissCommand);return y},
onGetCartServiceRequestCompleted_:function(R,y){var u=this,v=R.target;if(y&&y.data&&y.data.messageRenderer)_.zx(this.hostElement),this.handleMessageRenderer_(y.data.messageRenderer),this.changeButtonState(v,!1);else{var Q=this.get("data.encryptedPurchaseParams",y),M=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",y),K=this.get("data.ypcLogWalletAnalyticDataEndpoint",y),h=this.get("data.serializedPaymentsClientParams",y),b=this.getLoggingParams_(y);if(b||Q||M)R.stopPropagation(),_.qQ("ttcr",
void 0,"commerce_transaction"),Q||_.zx(this.hostElement),this.changeButtonState(v,!1),M?_.Ik(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.EB("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:M}}},this]):Q&&(this.changeButtonState(v,!0),R=null,R=this.openWalletDialog(v,Q,K,b,function(){_.zx(u.hostElement);u.changeButtonState(v,!1)},function(){_.zx(u.hostElement);
u.changeButtonState(v,!1)},h),_.Wc(R.then(function(N){return u.handleBuyFlowCompleteCallback_(v,y,N)},function(){return u.handleOnLoadError(y)}).then(function(N){return u.handlePostPurchaseSuccess_(v,y,N)},function(N){return u.handlePostPurchaseError_(N)}),function(){u.changeButtonState(v,!1);
_.Ko(v,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(R,y){y&&y.endpoint&&y.endpoint.ypcGetCartEndpoint&&!y.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",y.endpoint.ypcGetCartEndpoint)&&_.wr(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",y.endpoint.ypcGetCartEndpoint)],R.target),_.sz(this.hostElement),this.changeButtonState(R.target,!0))},
onServiceRequestError_:function(R,y){if(y&&y.params&&y.params.length){y=_.V(y.params);for(var u=y.next();!u.done;u=y.next())if((u=u.value)&&u.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",u.ypcGetCartEndpoint)&&_.wr(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",u.ypcGetCartEndpoint)],R.target);_.zx(this.hostElement);this.changeButtonState(R.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(R,y,u){var v=u.integratorData;return v==null||v===""||u.error!=null?(v=this.getLoggingParams_(y),String(u.error)==="-1"?(y.data.onCartDismissCommand&&_.wr(this.hostElement,[y.data.onCartDismissCommand],R),_.qk(new Bj("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",v,!0))):_.qk(new Bj("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",v))):y.data.handleTransactionEndpoint?ihP(this.hostElement,y.data.handleTransactionEndpoint,{payments_payload:v,funds_guarantee_callback_client_data:u.integratorClientCallbackData}):
this.completeTransaction(y,u)},
handlePostPurchaseSuccess_:function(R,y,u){y=u.data;var v=!1,Q,M;if(y&&((Q=y.command)==null?0:(M=Q.commandExecutorCommand)==null?0:M.commands)){var K,h;Q=(K=y.command)==null?void 0:(h=K.commandExecutorCommand)==null?void 0:h.commands;for(K=0;K<Q.length;K++)if(_.e(Q[K],_.E1c)){v=!0;break}}v||(y&&y.gtmDatas&&y.gtmDatas.length?_.Xw(y.gtmDatas[0]):_.Xw('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));u.data&&u.data.actions&&(y=W8a(u.data.actions),u=dzI(u.data.actions),y.length&&
_.Fh(this.hostElement,y),u.length&&_.wr(this.hostElement,u,R))},
handlePostPurchaseError_:function(R){R&&R.payload&&R.payload.isUserDismiss||_.dI(Error("Bl"))},
handleOnLoadError:function(R){R=this.getLoggingParams_(R);return _.qk(new Bj("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",R))},
getLoggingParams_:function(R){return this.get("data.serializedTransactionFlowLoggingParams",R)},
handleMessageRenderer_:function(R){var y=_.dB(R,"renderer"),u=_.EB("openPopupConfig");y==="confirmDialogRenderer"&&u&&_.Ik(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:u.popupTypeMap[y],popup:R}},this])},
handleYPCFixInstrumentEndpoint_:function(R,y){var u=this,v=y.ypcFixInstrumentEndpoint;y=v.encryptedFixInstrumentParameters;this.logFixFopEvent_(v,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(R,!0);this.openFixFlowDialog(y,function(Q,M){u.onFixFlowCompleteCallback_(v,Q,M)},function(){return u.changeButtonState(R,!1)},function(){u.changeButtonState(R,!1);
u.logFixFopEvent_(v,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(R,y,u){var v=_.D6("payments.business.integration.scenario.FixInstrument");if(y==v.IntegratorCallbackType.ON_COMPLETE){y="FIX_FOP_EVENT_TYPE_CANCEL";var Q=null;u.error!=null?u.error!=v.OnCompleteCallbackError.USER_CANCELLED&&(_.wr(this.hostElement,[R.errorAction],this.hostElement),y="FIX_FOP_EVENT_TYPE_FAILURE",Q="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.wr(this.hostElement,[R.successAction],this.hostElement),y="FIX_FOP_EVENT_TYPE_SUCCESS");_.wr(this.hostElement,[R.onFinishAction],
this.hostElement);this.logFixFopEvent_(R,y,Q)}},
logFixFopEvent_:function(R,y,u){(R=R.serializedFixFopLoggingParams)?(y={eventType:y,serializedFixFopLoggingParams:R},u!=null&&(y.errorType=u),_.P3("fixFopFlow",y),_.W3()):_.dI(Error("Cl"))},
changeButtonState:function(R,y){_.f("enable_ypc_spinners")&&R&&(R.is==="yt-button-renderer"||R.is==="ytd-button-renderer")&&(R.disabled=y)}}];var IBV=function(R){this.JSC$32158_clientRoot=R;this.feedbackCollectorActionMap={"yt-help-dialog-requested":o6m,"yt-feedback-dialog-requested":TWM,"yt-signal-action-help":xRg,"yt-signal-action-send-feedback":BW8,"yt-send-feedback-action":evZ,"yt-user-feedback-endpoint":lla};_.aN(_.c3.getInstance(),this.feedbackCollectorActionMap,this.JSC$32158_clientRoot)},hia;var bd8=function(R){this.JSC$32163_clientRoot=R;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":Oha.bind(null,this.JSC$32163_clientRoot),"yt-signal-action-delete-all-downloads":Hhm,"yt-signal-action-delete-download":n6p,"yt-signal-action-delete-playlist-download":r6m,"yt-signal-action-install-pwa":E6I,"yt-signal-action-refresh-downloads":URH,"yt-offline-video-endpoint":qy8,"yt-offline-playlist-endpoint":mRa,"yt-update-local-app-setting-command":DRH,"yt-offline-orchestration-action-command":tpa,
"yt-signal-action-undo-delete-download":Wxp,"yt-local-watch-history-command":Sya};_.aN(_.c3.getInstance(),this.downloadManagerActionMap,this.JSC$32163_clientRoot);_.qB.instance=new _.qB},FYP;var t$=function(){var R=_.W.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};
_.O(t$,_.W);_.J=t$.prototype;
_.J.ready=function(){_.f("polymer_enable_mdx")&&(Z_P({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.f("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.f("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.f("enable_cast_short_lived_lounge_token")}),_.VF("yt-remote-connection-change",this.handleConnectionChange_,this),_.VF("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=d$g())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.J.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.J.handleConnectionChange_=function(R){(this.mdxConnected=R)?(R=GdH(),!R&&N2g()&&T2a()&&(R={key:"cast-selector-receiver",name:T2a()}),R=R.name):R=null;this.receiverName=R;_.R_(this.remoteApi_);(this.remoteApi_=d$g())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.J.handleReceiverAvailabilityChange_=function(){var R=nxV();N2g()&&_.fl("yt-remote-cast-available")&&R.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=R.length>0};
_.J.handleRemoteQueueChange_=function(){var R=this.currentVideoId_,y=this.currentListId_,u=OQ(this.remoteApi_);this.currentVideoId_=u.videoId;this.currentListId_=u.listId;this.currentVideoId_&&_.Ik(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.f("polymer_enable_mdx_queue")?this.currentListId_:null,R,y])};
_.J.handleAddToQueueAction_=function(R){R=_.e(R,MuP);this.remoteApi_&&(R.videoId?this.remoteApi_.addVideo(R.videoId):R.playlistId&&this.remoteApi_.addPlaylist(R.playlistId))};
_.J.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.J.handleInsertInQueueAction_=function(R){R=_.e(R,JXg);this.remoteApi_&&R.videoId&&this.remoteApi_.JSC$19658_insertVideo(R.videoId)};
_.J.handleRemoveFromQueueAction_=function(R){R=_.e(R,Vua);this.remoteApi_&&R.videoId&&this.remoteApi_.JSC$19658_removeVideo(R.videoId)};
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],t$.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r(),_.p("design:type",Object)],t$.prototype,"appId",void 0);_.A([_.r(),_.p("design:type",Boolean)],t$.prototype,"mdxConnected",void 0);_.A([_.r(),_.p("design:type",Boolean)],t$.prototype,"receiverAvailable",void 0);_.A([_.r(),_.p("design:type",Object)],t$.prototype,"receiverName",void 0);_.A([_.r(),_.p("design:type",Object)],t$.prototype,"currentVideoId_",void 0);
_.A([_.r(),_.p("design:type",Object)],t$.prototype,"currentListId_",void 0);_.A([_.pu({is:"yt-mdx-manager",disableElementRegistration:!0})],t$);_.m(t$,"yt-mdx-manager",void 0,{mode:2});var wIo;var NPM;var cB=function(){var R=_.W.apply(this,arguments)||this;R.APP_IDS={ytr:3,ytm:5};R.JSC$20898_timeoutId_=0;R.actionMap={"yt-open-create-family-dialog":"open"};return R};
_.O(cB,_.W);_.J=cB.prototype;_.J.created=function(){kwm(2200)};
_.J.detached=function(){this.observer_&&this.observer_.disconnect()};
_.J.open=function(R,y){var u=this,v=R.serializedYpcFamilyCreateLoggingParams;this.JSC$20898_timeoutId_=setTimeout(this.abort_.bind(this,R.postFlowErrorEndpoint,v),3E4);y&&(this.onReadyCallback_=y);var Q=_.hw(this.hostElement).querySelector("#unicorn-iframe");v&&v&&Nrp("ypcFamilyCreateFlowStarted",v);_.hqU("family_creation",function(){var M=_.D6("gapi.family_creation.render");_.D6("gapi.config.update")("iframes/family_creation/url",u.getFamilyCreationUrlWithUnicornParams_());var K=3;R.appId&&R.appId in
u.APP_IDS&&(K=u.APP_IDS[R.appId]);K={authUser:_.EB("SESSION_INDEX")||0,clientId:K,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.EB("HL"),initialflow:[4,5,6,7],m:u.isMobile?1:0,onFlowComplete:u.onUnicornFlowComplete_.bind(u,R.postFlowSuccessEndpoint,v),onError:u.onUnicornFlowError_.bind(u,R.postFlowErrorEndpoint,v),onReady:u.onUnicornFlowReady_.bind(u,R.referencePcidParams)};M(Q,K)})};
_.J.close=function(){_.hw(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.J.onUnicornFlowComplete_=function(R,y){this.close();y&&y&&Nrp("ypcFamilyCreateFlowSucceeded",y);_.Ko(this.hostElement,"yt-navigate",{endpoint:R})};
_.J.onUnicornFlowError_=function(R,y){this.close();y&&Nrp("ypcFamilyCreateFlowCancelled",y);_.Ko(this.hostElement,"yt-navigate",{endpoint:R})};
_.J.onUnicornFlowReady_=function(R){var y=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();R&&_.D6("gapi.family_creation.setConfig")(0,R);this.observer_=new MutationObserver(function(){_.hw(y.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.hw(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.hw(this.hostElement).querySelector("#dialog").open()};
_.J.getFamilyCreationUrlWithUnicornParams_=function(){return _.EB("YTR_FAMILY_CREATION_URL")};
_.J.getCurrentUrl_=function(){return document.location.href};
_.J.abort_=function(R,y){this.clearTimeout_();this.onUnicornFlowError_(R,y)};
_.J.clearTimeout_=function(){clearTimeout(this.JSC$20898_timeoutId_)};
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],cB.prototype,"ytActionHandlerBehavior",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],cB.prototype,"isMobile",void 0);_.A([_.r(),_.p("design:type",Object)],cB.prototype,"onReadyCallback_",void 0);_.A([_.r(),_.p("design:type",Object)],cB.prototype,"observer_",void 0);_.A([_.pu({is:"yt-create-family-dialog",disableElementRegistration:!0})],cB);
_.m(cB,"yt-create-family-dialog",function(){if(NPM===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),R.content.firstChild);var y=R.content,u=y.insertBefore;wIo===void 0&&(wIo=document.createElement("template"));var v=wIo;u.call(y,v.content.cloneNode(!0),R.content.firstChild);NPM=R}R=NPM;return R},{mode:2});var TPK;var ofg;var aT=function(){var R=_.W.apply(this,arguments)||this;R.STEP=1;R.BLOCK_ON=80;R.MIN_PROGESS=0;R.MAX_PROGESS=100;return R};
_.O(aT,_.W);_.J=aT.prototype;_.J.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.J.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));_.ua().addProvider({provide:V1K,useValue:this})};
_.J.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.J.finish=function(){var R=this;this.progress=this.MAX_PROGESS;YyV(function(){R.progress==R.MAX_PROGESS&&(R.hostElement.hidden=!0)})};
_.J.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.RR.Object.defineProperties(aT.prototype,{progress:{configurable:!0,enumerable:!0,set:function(R){this.progress_=R;var y="scaleX("+R/this.MAX_PROGESS+")",u=_.hw(this.hostElement).querySelector("#progress").style;u.transform=y;u.webkitTransform=y;this.hostElement.setAttribute("aria-valuenow",String(R))},
get:function(){return this.progress_}}});
_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],aT.prototype,"ytComponentBehavior",void 0);_.A([_.pu({is:"yt-page-navigation-progress",disableElementRegistration:!0})],aT);
_.m(aT,"yt-page-navigation-progress",function(){if(ofg===void 0){var R=document.createElement("template");_.H(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(_.t().content.cloneNode(!0),
R.content.firstChild);var y=R.content,u=y.insertBefore;TPK===void 0&&(TPK=document.createElement("template"));var v=TPK;u.call(y,v.content.cloneNode(!0),R.content.firstChild);ofg=R}R=ofg;return R},{mode:2});var x3a={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"},BPg={"font-size":"12px","font-style":"italic"},fBK={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.g6K=function(){return _.I(function(R){_.f$(R)})};var eiZ=_.Jd(function(R){var y=function(){return R.data().subtext},u={};
return _.F("snackbar-view-model",{class:_.Oy("snackbarViewModelHost",R.className)},_.F("div",{class:_.Oy("snackbarViewModelEngagementBarWrapper",R.className)},_.F(_.w,{cond:function(){return R.data().image},
then:function(v){return _.F(_.MR,{data:v,alt:"",targetHeight:48,targetWidth:86,preserveHeight:!0,preserveWidth:!0,className:"snackbarViewModelImageContainer"})}}),_.F(_.w,{cond:function(){return R.data().imageContent},
then:function(){return _.F("div",{class:"snackbarViewModelAvatarContainer"},_.F(_.mk,{data:function(){return R.data().imageContent}},{decoratedAvatarViewModel:_.mG}))}}),_.F("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.F("div",{class:_.Oy((u.snackbarViewModelTitle=!0,u.snackbarViewModelTitleWithSubtext=y,u))},_.F(_.QM,{text:function(){return R.data().text}})),_.F(_.w,{cond:y,
then:function(){return _.F("div",{class:"snackbarViewModelSubtext"},_.F(_.QM,{text:function(){return y()}}))}})),_.F(_.w,{cond:function(){return R.data().buttons},
then:function(){return _.F("div",{class:"snackbarViewModelButtonClassWrapper"},_.F(_.mk,{data:function(){return R.data().buttons}},{buttonViewModel:function(v){return _.F(_.fQ,{data:v.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:R.target})}}))}})))},"xh");_.h6(_.Jd(function(){function R(D,z,c){Z(D);k(c);B("in");T(!0);y(D,z);K=setTimeout(function(){u()},z)}
function y(D,z){var c,a=(c=D.text)==null?void 0:c.content;D=_.a8(D.rendererContext);a&&(z={label:a,command:D,durationMs:z},_.ua().resolve(_.WX).enqueue(z))}
function u(D){B("out");D&&clearTimeout(K)}
function v(){u(!0)}
function Q(D){if(D){var z=D.snackbarViewModel,c=D.durationMs,a=D.target;c||(c=3E3);z&&(D=_.ua().resolve(_.yN(_.HX)))&&D.enqueue({isOpened:N,open:function(){R(z,c,a)},
close:u},0)}}
var M=_.zp("snackbar-container"),K=void 0,h=_.V(_.In(!1,void 0,"jJ4tBf")),b=h.next().value;h=h.next().value;var N=b,T=h;b=_.V(_.In("out",void 0,"M6Rbpb"));var x=b.next().value,B=b.next().value;b=_.V(_.In(void 0,void 0,"aFswib"));var l=b.next().value,Z=b.next().value;b=_.V(_.In(void 0,void 0,"mlWWhb"));var P=b.next().value,k=b.next().value,E=_.nh(function(){if(x()==="out"){T(!1);Z(void 0);k(void 0);var D=_.ua().resolve(_.yN(_.HX));D&&Sz7(D,0)}});
_.rB(function(){var D=_.ua().resolve(_.yN(_.qPV));D&&(D.showSnackbarFn=Q,D.closeSnackbarFn=v)});
return _.F("snackbar-container",{class:"ytSnackbarContainerHost",el:M},_.F(_.w,{cond:function(){return N()&&!!l()},
then:function(){var D={};return _.F("div",{class:_.Oy("ytSnackbarContainerSnackbarContainer",(D.ytSnackbarContainerMobile=!1,D.ytSnackbarContainerPivotBar=function(){var z;return!((z=_.ua().resolve(_.yN(_.XW8)))==null||!z())},D.ytSnackbarContainerOpened=function(){return N()&&x()==="in"},D.ytSnackbarContainerClosed=function(){return N()&&x()==="out"},D)),
"on:animationend":E},_.F(eiZ,{data:function(){return l()},
target:function(){return P()}}))}}))},"yh"),"snackbar-container");_.h6(_.IhV,"yt-tooltip");_.h6(_.Jd(function(){var R=_.Sp(_.PPc);return _.F("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var y;return(y=R())==null?void 0:y.announcement})},"zh"),"yt-ephemeral-actions");var NmZ=new Map;var sxa=function(R,y){var u=this;this.handleError=R;this.logEventInternal=y;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){u.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
sxa.prototype.logError=function(R){this.handleError(R)};
sxa.prototype.logEvent=function(R,y){switch(R){case "IDB_DATA_CORRUPTED":_.f("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",y);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",y);break;case "IS_SUPPORTED_COMPLETED":_.f("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",y);break;case "QUOTA_EXCEEDED":lBa(this,y);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",y);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":R=Object.assign({},y,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",R)}};
var lBa=function(R,y){_.kg.getInstance().estimate().then(function(u){u=Object.assign({},y,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:o98(u==null?void 0:u.usage),deviceStorageQuotaMbytes:o98(u==null?void 0:u.quota)});R.logEventInternal("idbQuotaExceeded",u)})};var Se=function(){var R=_.W.apply(this,arguments)||this;R.tabGesturesIsActive=!1;R.deprecateFullerscreenUi=_.f("web_watch_fullerscreen_deprecation_ui");R.hasDelegation=!1;R.darkerDarkTheme=_.f("web_darker_dark_theme");R.isFrostedGlassInitialized=!1;R.frostedGlassExp=_.f("web_frosted_glass");R.mastheadHiddenFocusWithinKillswitch=_.f("web_masthead_hidden_focus_within_killswitch");R.clientOnlyWizTooltipsEnabled=_.f("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");R.scrollAtTop=
!0;R.guideScrollTop=0;R.isTheaterModeSession=_.$B("START_IN_THEATER_MODE");R.iMaxTheaterMode=_.f("web_watch_imax_theater_mode");R.isFullWindowSession=_.$B("START_IN_FULL_WINDOW_MODE");R.hasCreateFamilyDialog=!1;R.mastheadHeight=56;R.networkStatusManager=new _.tv;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(y){var u=_.EmT.instance,v=_.e(y,_.X7V);return v?_.f("use_rta_manager_for_async")&&
kS8()?lT8(u,v,y.clickTrackingParams):etM(u,v,y.clickTrackingParams):_.qk(Error("mi"))}};
R.isFrostedGlassDisabled=!1;R.isChannelOrPlaylistPage=!1;return R};
_.O(Se,_.W);_.J=Se.prototype;_.J.created=function(){var R=_.ua();_.f("kevlar_clear_duplicate_pref_cookie")&&_.Oh(_.WG,function(){var y=_.xz.get("PREF");y&&!/f\d=/.test(y)&&(y=_.VN("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=y?"PREF=null;domain="+y+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.f("gzip_gel_with_worker")&&_.Zu8();_.f("jspb_serialize_with_worker")&&MCa();_.f("web_worker_availability_check")&&Tma();_.f("nwl_init_killswitch")||QR7().then(function(){_.WG.addLowPriorityJob(lVm)});
this.pageManagerAttachedPromise=_.uD();this.ytdAppBehavior.loadDepsPromise=_.Pc([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.v2(this.onThrottledScroll,200,this);_.f("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);zLH();glp=!!_.D6("ytappsettings.initialized");r8=_.D6("ytappsettings.previousValue");U4J=_.D6("ytappsettings.previousSnapshotTime");glp||(glp=!0,kM7());rwP();P8m();_.kB("DEFERRED_DETACH",
_.f("kevlar_tuner_should_defer_detach"));_.kB("REUSE_COMPONENTS",!0);_.kB("STAMPER_STABLE_LIST",!0);_.kB("SCHEDULED_LAZY_LIST",!0);_.kB("openPopupConfig",lHp);_.kB("useClickHandler",!0);_.f("kevlar_shell_cleanup")&&_.WG.addLowPriorityJob(D4I.bind(this,_.uO.caches));_.$B("IS_SHELL_LOAD")&&_.E9({shellStartupDurationMs:Math.round((0,_.uQ)()-_.Po())});usg(this.networkStatusManager);_.f("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",LxV(x3a)),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!",
LxV(BPg)),console.log("%cVisit http://go/join-youtube-web to apply today.",LxV(fBK)));_.DCp(R.resolve(_.rS),1E3)};
_.J.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var R=NGm();R&&!_.f("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()};
_.J.attached=function(){var R=this;_.Lx().processSignal("ci");_.f("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.gmS?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.o2(_.WBG(),"SUCCESS");this.updateIconSet();_.VL(this.guideInnerContent,!1);_.Ux().initVisibilityObserver();this.guideService.guideElement=this.guide;var y=document.createElement("ytd-miniplayer"),u=_.hw(this.hostElement).querySelector("#content");
_.hw(this.hostElement).insertBefore(y,u);_.Lx().processSignal("ma");_.ua().resolve(_.cZ).init(y);_.$B("IS_SHELL_LOAD")&&(u=document.createElement("ytd-network-status-banner"),_.hw(this.hostElement).insertBefore(u,y));_.f("kevlar_right_click_on_lockups")&&_.sD._onCaptureClick&&document.addEventListener("contextmenu",_.sD._onCaptureClick.bind(_.sD),!0);var v=function(){var Q=_.iW("yt-page-navigation-progress");_.hw(R.hostElement).appendChild(Q)};
setTimeout(function(){_.Lx().parkOrScheduleJob(v,0,"eocs",16)},0);
_.f("service_worker_push_enabled")&&_.Oh(_.WG,woa);_.aN(_.c3.getInstance(),this.dynamicActionMap,this.hostElement);_.Ko(this.hostElement,"ytd-app-attached");_.Lx().processSignal("aa");d4p(this.hostElement);_.CJ("gapi.load",_.hqU);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.Oh(_.WG,
function(){var Q=document.createElement("ytd-video-preview");_.hw(_.hw(R.hostElement).querySelector("#video-preview")).appendChild(Q)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.Oh(_.WG,function(){C0J();R.registerWithViewTransitionManager()});
if(_.$v()&&this.isAppDarkTheme()!==_.kv())this.onDarkModeToggledAction();else y=_.EZ()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==y&&(_.f("enable_dark_theme_only_on_shorts")?_.z2(_.f("enable_dark_theme_only_on_shorts_control")?window.location.href:_.YB(window.location.href,{theme:"dark"})):_.kT(new _.OL("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(nO7=new HWZ(this.hostElement)),FYP=new bd8(this.hostElement),hia=new IBV(this.hostElement),S$p=new aHK(this.hostElement)};
_.J.getThemeSettingsToLog=function(){var R=_.EZ()==="USER_INTERFACE_THEME_DARK";R=_.$v()?_.kv()?"os-dark":"os-light":R?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:R,cookiesEnabled:_.fJ()}};
_.J.detached=function(){_.ih(this.guideInnerContent);_.WG.cancelJob(Hz);Hz=0;_.WG.cancelJob(GG);GG=0;_.Xyv(Wb7);Wb7.length=0;GMZ=_.vxO=null;_.Ux().dispose();_.f("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.Sx(_.c3.getInstance(),nO7.playlistHandlerActionMap,nO7.JSC$31857_clientRoot);_.Sx(_.c3.getInstance(),FYP.downloadManagerActionMap,FYP.JSC$32163_clientRoot);_.Sx(_.c3.getInstance(),hia.feedbackCollectorActionMap,hia.JSC$32158_clientRoot);
for(var R=_.V(S$p.eventListeners),y=R.next();!y.done;y=R.next()){var u=_.V(y.value);y=u.next().value;u=u.next().value;u=_.V(u);for(var v=u.next();!v.done;v=u.next()){var Q=_.V(v.value);v=Q.next().value;Q=Q.next().value;y.removeEventListener(v,Q)}}_.Sx(_.c3.getInstance(),S$p.autonavPauseActionMap,S$p.JSC$19841_clientRoot)};
_.J.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.O9().getFlag(186)};
_.J.computeIsInlinePreviewEnabled=function(R,y,u){return!u&&_.qLm({miniplayerIsActive:R,miniplayerPlaybackState:y})};
_.J.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.iE({type:"SET_FROSTED_GLASS_MODE",payload:!_.f("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"}))};
_.J.computeIsFrostedGlassDisabled=function(R,y,u,v){return R||y||u||v&&_.f("web_frosted_glass_disable_watch")};
_.J.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.f("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.J.computeIsHomePage=function(R,y){if(!R||y==null||!y.endpoint)return!1;var u;return((u=_.e(y.endpoint,_.HV))==null?void 0:u.browseId)==="FEwhat_to_watch"};
_.J.updateIsChannelOrPlaylistPage=function(){if(_.f("web_frosted_glass")){var R,y,u=(y=(R=_.ua().resolve(_.yN(_.iD)))==null?void 0:R.getCurrentPage())==null?void 0:y.pageSubtype;this.isChannelOrPlaylistPage=u?["channel","channels","playlist"].includes(u):!1}};
_.J.scheduleFrostedGlassInitialization=function(){var R=this;_.f("web_frosted_glass")&&_.Lx().parkOrScheduleJob(function(){R.isFrostedGlassInitialized=!0},0,_.Cq(["eocs",
"cr"]),300)};
_.J.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.GtG(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.iE({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.iE({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.J.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(pZm(!0))};
_.J.onYtSignalActionRequestPersistentStorage=function(){if(!_.f("request_persistent_storage_killswitch")){var R=_.ua().resolve(_.nMm);R.cachedPersistStatePromise||(R.cachedPersistStatePromise=vla())}};
_.J.handleYtChannelCreationFormEndpoints=function(R){R&&this.ytComponentBehavior.resolveCommand(R)};
_.J.handleShowEngagementPanelEndpoint=function(R){R&&this.ytComponentBehavior.resolveCommand(R)};
_.J.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(pZm(!1))};
_.J.initIconDefs=function(R,y){var u=document.createElement("iron-iconset-svg");u.name=R;R=document.createElementNS("http://www.w3.org/2000/svg","svg");u.appendChild(R);R.appendChild(y);document.body.appendChild(u);return u};
_.J.onWindowResized=function(){_.Ik(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var R=_.mML.getInstance();R.documentWidth_=document.body.clientWidth;s8a(R)};
_.J.onWindowScrolled=function(){var R=_.ua().resolve(_.iD).getCurrentPage();if(R!=null&&R.getScrollTop){var y=this.ytdReduxBehavior,u=y.dispatch;R=R.getScrollTop()<=0;u.call(y,_.iE({type:"SET_SCROLL_AT_TOP",payload:R}))}};
_.J.guideIsVisibleButNotPersistentSelectorChanged=function(){var R=_.ua().resolve(_.iD).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));_.h_(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.J.getCurrentPageScrollableElementType=function(){var R=_.ua().resolve(_.iD).getCurrentPage();if(R&&R.getPageScrollingElement())return R.getPageScrollingElement().nodeName};
_.J.observeGuideVisibility=function(){var R=_.mML.getInstance(),y=this.miniGuideVisible;R.guidePersistentAndVisible_=this.guidePersistentAndVisible;R.miniGuideVisible_=y;s8a(R)};
_.J.handleEduDismissAction=function(R){R&&R.eduDismissAction&&(_.Ik(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.kHg.getInstance(),_.V$.set(R.eduDismissAction.key+"-dismissed",!0))};
_.J.handleEduImpressionAction=function(R){if(R&&R.eduImpressionAction){var y=_.kHg.getInstance();R=R.eduImpressionAction.key;y.JSC$12925_eduDisplayedThisLoad_[_.UMi[R].setKey||R]=!0;_.V$.set(R+"-impression",parseInt(_.V$.get(R+"-impression")||0,10)+1)}};
_.J.onYtSignalActionConfirmMentionsEdu=function(){_.Ik(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.Ii.getInstance();_.Kl.set("edu-dismissed",!0)};
_.J.onYtSignalActionRecordMentionsEduImpression=function(){_.Ii.getInstance();var R=_.Kl.set,y=parseInt(_.Kl.get("edu-impressions"),10);R.call(_.Kl,"edu-impressions",(isFinite(y)?y:0)+1)};
_.J.onYtPageManagerAttached=function(R){var y;((y=_.vN(R))==null?void 0:y.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.J.onInvokeInstrumentManagerAction=function(R,y){e8m(y,R)};
_.J.updateIconSet=function(){var R=this.hostElement.querySelector("#masthead");if(R){var y=_.b8(R),u=y.querySelector("g#yt-logo-updated");u&&(R=document.createElementNS("http://www.w3.org/2000/svg","defs"),R.appendChild(u.cloneNode(!0)),(y=y.querySelector("g#yt-logo-red-updated"))&&R.appendChild(y.cloneNode(!0)),this.initIconDefs("yt-logos-ext",R))}};
_.J.updateMastheadData=function(){var R=this,y,u,v,Q,M;return _.I(function(K){if(K.nextAddress==1){y=R.data;u=R.hostElement.querySelector("#masthead");if(!u)return K.return();_.gn(R,function(){u.data=R.topbarData});
if(!R.get("response.topbar",y)||R.get("response.topbar.responseContext.maxAgeSeconds",y)===0)return K.jumpTo(0);if(v=_.ua().resolve(_.ig))return K.yield(v(),6);Q=_.ua().resolve(_.N$);return K.yield(Q.put("service:topbar:fallback",new _.Td({innertubeResponse:R.get("response.topbar",y)})),0)}return(M=K.yieldResult)?K.yield(M.put("service:topbar:fallback",new _.Td({innertubeResponse:R.get("response.topbar",y)})),0):K.jumpTo(0)})};
_.J.computeTopbarData=function(R){if(!R)return null;var y;return this.isShortsPage&&this.topbarData&&!_.e((y=R.response)==null?void 0:y.topbar,SxV)?this.topbarData:R.response&&"topbar"in R.response?_.e(R.response.topbar,SxV)||null:null};
_.J.onSetTheaterModeEnabled=function(R,y){this.isTheaterModeSession=y.enabled;this.setTheaterModeStyles(y.enabled)};
_.J.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.J.onDarkModeToggledAction=function(){var R=_.Fq(window.location.href);if(!_.F2W(R)){(R=!!_.SS(window.location.href).themeRefresh)&&_.kT(new _.OL("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!R){kM7();R={themeRefresh:1};var y=_.ua().resolve(_.iD);if(y.isOnWatch()){var u,v;y=((u=y.getPlayerFromWatch())==null?void 0:(v=u.getPlayer())==null?void 0:v.getCurrentTime())||0;y>=1&&(R.time_continue=Math.floor(y))}_.fJ()||_.EZ()!=="USER_INTERFACE_THEME_DARK"||(R.theme="dark");_.z2(_.YB(window.location.href,
R))}_.f("web_appshell_refresh_trigger")&&_.uO.caches&&this.refreshAppShellResponse();u=_.aR(window.location.href);_.BC(_.ua().resolve(_.f_),_.vo(u,"theme"))}};
_.J.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.J.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.J.onPlayerFullscreen=function(R){_.ji();this.playerFullscreen=R};
_.J.setRestrictedMode=function(R){var y=_.O9();_.Zq(0,58,R);y.save();_.ua().resolve(_.dv).reload()};
_.J.onPageChanged=function(R){R.detail.newPageType==="ytd-watch-flexy"||R.detail.newPageType==="ytd-watch-fixie"||R.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.$l("WEB_PAGE_TYPE_WATCH")):R.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.$l("WEB_PAGE_TYPE_SHORTS")):R.detail.newPageType==="ytd-browse"&&R.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.$l("WEB_PAGE_TYPE_MINI_APP")):_.f("web_frosted_glass")&&R.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.$l("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.$l("WEB_PAGE_TYPE_UNKNOWN"));R.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.J.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.J.onGuideToggleTap=function(){_.Ko(this.hostElement,"yt-guide-toggle")};
_.J.onGuideToggleHover=function(){_.Ko(this.hostElement,"yt-guide-hover")};
_.J.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.J.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.J.setMastheadTheme=function(){var R=_.b8(this.hostElement).querySelector("#masthead");R&&(R.dark=R.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),R.isDarkThemeForced=!1)};
_.J.onRequestPanelModeChange=function(R,y){this.hideHeaderShadow=y.mode!=="seamed"};
_.J.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.J.onDrawerIronSelect=function(R){_.vN(R).id==="guide"&&this.processDrawerIronSelect()};
_.J.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var R="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(R="opened"));_.Ko(this.hostElement,"yt-autonav-pause-guide-"+R)};
_.J.onAddElementToApp=function(R){_.hw(this.hostElement).appendChild(R.detail)};
_.J.onThrottledScroll=function(){var R=_.ua().resolve(_.iD).getCurrentPage();R&&(this.scrollAtTop=R.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.J.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.J.setFullscreen=function(){if(_.f("external_fullscreen")||!this.isWatchPage){var R=_.f("kevlar_fullerscreen_root_only_killswitch")?!!_.ji():!!_.ji()&&_.ji()===document.documentElement;R=(this.isWatchPage||_.f("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(R||this.isFullWindowSession);this.fullscreen!==R&&((this.fullscreen=R)&&_.h_(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.Qe().dispatch(_.oQ8(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.Ik(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.J.setFullscreenLoggingForShorts=function(R){var y,u,v;return _.I(function(Q){if(Q.nextAddress==1)return Q.yield((y=_.I8())==null?void 0:y.getPlayerPromise(),2);u=Q.yieldResult;(v=u)==null||v.setAppFullscreen(R);_.f$(Q)})};
_.J.updateMastheadCssHeight=function(){var R=this.mastheadHeight;this.fullscreen&&(R=0);_.oX(this.hostElement,{"--ytd-masthead-height":R+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.J.updateNetworkStatusBannerDisplayStatus=function(){var R="unset";this.fullscreen&&(R="none");_.oX(this.hostElement,{"--ytd-network-status-banner-display":R})};
_.J.updateNetworkStatusBannerCssHeight=function(){var R="unset";this.fullscreen&&(R="0px");_.oX(this.hostElement,{"--ytd-network-status-banner-max-height":R})};
_.J.updateScrollAndMasthead=function(R,y,u,v){this.iMaxTheaterMode||(v=!1);var Q=_.ua().resolve(_.iD).getCurrentPage();R||y||v?(document.body.classList.add("no-scroll"),Q.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.BN(this,this.onScroll)),Q.setScrollTop(0),_.oX(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.sG()+"px"})):u?_.Ko(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.Ko(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
Q.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.BN(this,this.onScroll)));this.mastheadHidden=R||y||u;this.updateMastheadCssHeight();_.f("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.J.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.J.onYtNavigateAction=function(R){R=this.get("navigateAction.endpoint",R);_.Ko(this.hostElement,"yt-navigate",{endpoint:R})};
_.J.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var R=document.createElement("yt-create-family-dialog");_.hw(this.hostElement).appendChild(R);this.hasCreateFamilyDialog=!0}};
_.J.onSetPushNotificationsEnabledCommand=function(R){var y=this,u=_.e(R,a5a);u&&typeof u.enabled==="boolean"&&(Notification.permission!=="granted"?Kmo().then(function(){Notification.permission==="granted"?(Lbm(!u.enabled).then(gIM),u.successAction&&_.Fh(y.hostElement,[u.successAction])):u.failureAction&&_.Fh(y.hostElement,[u.failureAction])}):(Lbm(!u.enabled).then(gIM),u.successAction&&_.Fh(this.hostElement,[u.successAction])))};
_.J.onYtSignalActionEnableChromeNotifications=function(){Iq8(!0)};
_.J.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.e(this.topbarData.hotkeyDialog,sia)}}})};
_.J.onYtSignalActionShowKeyboardShortcutDialog=function(){_.Ik(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.J.onYtEndpointChangeHandler=function(R,y){var u=_.Vz(_.W1);u.pendingPrefetchJob_&&(y=!(!y||y.autonav!="1"),u.pendingPrefetchJob_.resolve(R&&_.QaO(R)?_.jac(R,y):""),u.pendingPrefetchJob_=null);_.Ik(this.hostElement,"yt-pause-active-page-context");_.Ik(this.hostElement,"ytd-log-youthere-nav");_.Ik(this.hostElement,"yt-prepare-page-dispose")};
_.J.handleCommandWithCommandHandler=function(R,y){_.lX.instance.resolveCommand(R,{form:{element:y}})};
_.J.onYtTimedCommand=function(R){var y=this;R=_.e(R,kLP);var u=R.command;u&&_.Xs(_.WG,function(){var v=_.e(u,_.v0w);v?(_.lX.instance.resolveCommand(u),y.maybeLogGetAnswerRequestTick(v)):_.wr(y.hostElement,[u],y.hostElement)},R.timeoutMs||0)};
_.J.maybeLogGetAnswerRequestTick=function(R){R&&R.isFirstRequest&&(_.$F("search_overview_answer"),_.qQ("so_rq",void 0,"search_overview_answer"))};
_.J.onYtSignalActionSkipNavigation=function(){var R=_.ua().resolve(_.iD).getCurrentPage();_.Y2(R)};
_.J.onYtSignalActionCopyDebugData=function(){OoP()};
_.J.handleEntityUpdateCommand=function(R){_.e6(_.e(R,_.QZ5).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.J.logFlowLoggingEventCommand=function(R){if(R=_.e(R,_.LtP))if(R.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var y=R.flowEventNamespace,u=R.flowEventType,v=R.flowType;v&&y&&u&&_.zgS(_.BV(y,u,R.flowEventMetadata),v)}else{y=_.eq();u=R.flowEventNamespace;v=R.flowEventType;var Q=R.flowType;Q&&u&&v&&_.fc(y,_.BV(u,v,R.flowEventMetadata),Q,R.flowNonce)}};
_.J.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.J.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.J.onTouchStart=function(){var R=_.kX();_.$I()&&_.gW(R.JSC$13152_screenManager,{visualElement:R.ve})};
_.J.handleSelectLanguageCommand=function(R){if(R=_.e(R,p1V).hl){var y=_.O9();y.set("hl",R);y.save();_.ua().resolve(_.dv).reload()}};
_.J.handleConfirmDialogEndpoint=function(R){(R=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(R))&&this.ytOpenPopupBehavior.openPopup(R)};
_.J.handleOpenPopupNavigationEndpoints=function(R,y){_.f("web_button_rework")&&(R=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(R))&&this.ytOpenPopupBehavior.openPopup(R,y)};
_.J.handleSaveCommandToSessionStorage=function(R){if(R=_.e(R,_.ckc)){var y=R.key;y&&R.command&&window.sessionStorage.setItem(y,JSON.stringify(R.command))}};
_.J.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"&&_.dI(R)})};
_.J.onDeviceThemeChanged=function(){var R=_.kv();_.Zq(_.O9(),185,R);_.O9().save()};
_.J.handleYtRegisterPromoCommand=function(R){if(_.e(R,cnM)){var y=_.ua().resolve(_.iD).getCurrentPage()||this.hostElement;uSZ().registerPromoCommand(_.e(R,cnM),y)}};
_.J.onYtNavigateHomeAction=function(){if(!_.f("kevlar_miniplayer_navigate_home_from_app_killswitch")){var R,y,u,v,Q=(v=(R=this.topbarData)==null?void 0:(y=R.logo)==null?void 0:(u=y.topbarLogoRenderer)==null?void 0:u.endpoint)!=null?v:_.nx;this.ytComponentBehavior.resolveCommand(Q)}};
_.J.onYtLocationCollectionCommand=function(R){zvM(_.e(R,QJm))};
_.J.onYtGetLocationCommand=function(R){kJV(_.e(R,v1g),this)};
_.J.updateRenderGuideFromBinding=function(R){this.renderGuide=R.detail.value};
_.J.updateGuidePersistentAndVisibleFromBinding=function(R){this.guidePersistentAndVisible=R.detail.value};
_.J.updateMiniGuideVisibleFromBinding=function(R){this.miniGuideVisible=R.detail.value};
_.J.onThemeSelected=function(R,y){var u=_.O9(),v=R||y?R:_.kv(),Q=(v&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!v&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.F2W(_.Fq(window.location.href));_.Zq(0,165,R);_.Zq(0,174,y);u.save();Q&&_.Ik(this.hostElement,"yt-dark-mode-toggled-action",[v]);_.Ik(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.J.getCurrentTheme=function(){return _.$v()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.EZ()};
_.J.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.J.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.J.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.J.handleShowConsentPrimitive=function(R){var y=this,u,v;return _.I(function(Q){if(Q.nextAddress==1){try{u=(v=_.I8())==null?void 0:v.getPlayerPromise()}catch(M){}return Q.yield(wma(R,u),2)}_.Ik(y.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.f$(Q)})};
_.J.handleSelectActiveIdentityEndpointInternal=function(R){_.Lc();R=_.e(R,_.o0L);if(R!=null&&R.supportedTokens){R=_.V(R.supportedTokens);for(var y=R.next();!y.done;y=R.next())y=y.value,y.accountSigninToken&&_.z2(y.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.J.handleUpdatePermissionRoleCommand=function(R){if(R=_.e(R,_.Buc)){var y;this.hasDelegation=!((y=_.e(R.renderer,_.xw8))==null||!y.status)}};
_.J.registerWithViewTransitionManager=function(){var R=_.ua().resolve(_.yN(_.nC));if(R){var y,u=(y=this.guide)==null?void 0:y.querySelector("#scrim"),v;y=(v=this.guide)==null?void 0:v.querySelector("#contentContainer");u&&y&&R.isAnyTransitionEnabled&&(v={},R.viewTransitionCoordinator.registerElement(u,(v.slide="app-drawer-scrim-page-transition",v["lockup-to-watch"]="app-drawer-scrim-page-transition",v["learning-journey"]="app-drawer-scrim-page-transition",v)),u={},R.viewTransitionCoordinator.registerElement(y,
(u.slide="app-drawer-container-page-transition",u["lockup-to-watch"]="app-drawer-container-page-transition",u["learning-journey"]="app-drawer-container-page-transition",u)))}};
_.RR.Object.defineProperties(Se.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.f("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.RR.Object.defineProperties(Se,{template:{configurable:!0,enumerable:!0,get:function(){if(j6J===void 0){var R=document.createElement("template");_.H(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<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
R.content.insertBefore(_.t().content.cloneNode(!0),R.content.firstChild);j6J=R}R=j6J;return R}}});
Se.prototype.onOpenHotkeyDialog=Se.prototype.onOpenHotkeyDialog;Se.prototype.setFullscreen=Se.prototype.setFullscreen;Se.prototype.onAddElementToApp=Se.prototype.onAddElementToApp;Se.prototype.onDrawerIronSelect=Se.prototype.onDrawerIronSelect;Se.prototype.onGuideOpenButtonHover=Se.prototype.onGuideOpenButtonHover;Se.prototype.onRequestPanelModeChange=Se.prototype.onRequestPanelModeChange;Se.prototype.onPageDataUpdated=Se.prototype.onPageDataUpdated;Se.prototype.onPageChanged=Se.prototype.onPageChanged;
Se.prototype.onSetTheaterModeEnabled=Se.prototype.onSetTheaterModeEnabled;Se.prototype.updateMastheadData=Se.prototype.updateMastheadData;Se.prototype.onYtPageManagerAttached=Se.prototype.onYtPageManagerAttached;Se.prototype.observeGuideVisibility=Se.prototype.observeGuideVisibility;Se.prototype.guideIsVisibleButNotPersistentSelectorChanged=Se.prototype.guideIsVisibleButNotPersistentSelectorChanged;Se.prototype.isInlinePreviewEnabledChanged=Se.prototype.isInlinePreviewEnabledChanged;
Se.prototype.isWatchPageChanged=Se.prototype.isWatchPageChanged;Se.prototype.dispatchFrostedGlassMode=Se.prototype.dispatchFrostedGlassMode;_.A([_.n(_.p6),_.p("design:type",Object)],Se.prototype,"ytdReduxBehavior",void 0);_.A([_.n(_.GZ.YtEventForwardingBehavior),_.p("design:type",Object)],Se.prototype,"ytEventForwardingBehavior",void 0);_.A([_.n(_.Oj.YtOpenPopupBehavior),_.p("design:type",Object)],Se.prototype,"ytOpenPopupBehavior",void 0);
_.A([_.n(_.bW.YtActionHandlerBehavior),_.p("design:type",Object)],Se.prototype,"ytActionHandlerBehavior",void 0);_.A([_.n({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.c3.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.f("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)}}),
_.p("design:type",Object)],Se.prototype,"ytActionRouterBehavior",void 0);_.A([_.n(iWg.YtdAppBehavior),_.p("design:type",Object)],Se.prototype,"ytdAppBehavior",void 0);_.A([_.n(_.ZL.YtEndpointBehavior),_.p("design:type",Object)],Se.prototype,"ytEndpointBehavior",void 0);_.A([_.n(KYJ.YtEndpointHandlerWithYpcBehavior),_.p("design:type",Object)],Se.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.A([_.n(M$H.YtLogYpcFlowCommandsBehavior),_.p("design:type",Object)],Se.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.A([_.n(_.S.YtRendererBehavior),_.p("design:type",Object)],Se.prototype,"ytRendererBehavior",void 0);_.A([_.n(_.sx.YtComponentBehavior),_.p("design:type",Object)],Se.prototype,"ytComponentBehavior",void 0);_.A([_.r({selector:_.x88}),_.p("design:type",Object)],Se.prototype,"tabGesturesIsActive",void 0);_.A([_.r(),_.p("design:type",Boolean)],Se.prototype,"renderGuide",void 0);
_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Se.prototype,"guidePersistentAndVisible",void 0);_.A([_.r({selector:_.oaZ}),_.p("design:type",Boolean)],Se.prototype,"guideIsVisibleButNotPersistent",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],Se.prototype,"standalone",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Se.prototype,"miniGuideVisible",void 0);
_.A([_.r({selector:_.XrL}),_.p("design:type",Number)],Se.prototype,"miniplayerPlaybackState",void 0);_.A([_.r({selector:_.X9,reflectToAttribute:!0}),_.p("design:type",Boolean)],Se.prototype,"miniplayerIsActive",void 0);_.A([_.r({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.p("design:type",Boolean)],Se.prototype,"isInlinePreviewEnabled",void 0);_.A([_.r(),_.p("design:type",Boolean)],Se.prototype,"isInlinePreviewDisabled",void 0);
_.A([_.r({reflectToAttribute:!0,value:function(){return _.$B("START_IN_FULL_WINDOW_MODE")}}),
_.p("design:type",Boolean)],Se.prototype,"mastheadHidden",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Se.prototype,"playerFullscreen",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Se.prototype,"deprecateFullerscreenUi",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Se.prototype,"fullscreen",void 0);_.A([_.r({value:!1,reflectToAttribute:!0}),_.p("design:type",Boolean)],Se.prototype,"hideHeaderShadow",void 0);
_.A([_.r({value:{GUIDE_ALT_LABEL:_.fo("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.p("design:type",Object)],Se.prototype,"menuStrings",void 0);_.A([_.r({computed:"computeTopbarData(data)"}),_.p("design:type",Object)],Se.prototype,"topbarData",void 0);_.A([_.r({selector:_.AN}),_.p("design:type",Boolean)],Se.prototype,"isWatchPage",void 0);_.A([_.r({selector:_.E0U,reflectToAttribute:!0}),_.p("design:type",Boolean)],Se.prototype,"isShortsPage",void 0);_.A([_.r({selector:function(R){return _.mc(R)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.p("design:type",Boolean)],Se.prototype,"isMiniAppPage",void 0);_.A([_.r({selector:function(R){return _.mc(R)==="WEB_PAGE_TYPE_BROWSE"}}),
_.p("design:type",Boolean)],Se.prototype,"isBrowsePage",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Boolean)],Se.prototype,"scrolling",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Se.prototype,"hasDelegation",void 0);_.A([_.r({reflectToAttribute:!0,value:!1}),_.p("design:type",Boolean)],Se.prototype,"guideScrolledByTouch",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Se.prototype,"darkerDarkTheme",void 0);
_.A([_.r(),_.p("design:type",Object)],Se.prototype,"isFrostedGlassInitialized",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Se.prototype,"frostedGlassExp",void 0);_.A([_.r({selector:function(R){return R.ui.chipBarIsSticky}}),
_.p("design:type",Boolean)],Se.prototype,"chipBarIsSticky",void 0);_.A([_.r({computed:"computeIsHomePage(isBrowsePage, data)"}),_.p("design:type",Boolean)],Se.prototype,"isHomePage",void 0);_.A([_.r({reflectToAttribute:!0}),_.p("design:type",Object)],Se.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.A([_.r(),_.p("design:type",Object)],Se.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.A([_.w8("guide"),_.p("design:type",Object)],Se.prototype,"guide",void 0);
_.A([_.w8("guide-service"),_.p("design:type",ssP)],Se.prototype,"guideService",void 0);_.A([_.w8("guide-inner-content"),_.p("design:type",HTMLDivElement)],Se.prototype,"guideInnerContent",void 0);_.A([_.r({selector:_.mic}),_.p("design:type",String)],Se.prototype,"frostedGlassMode",void 0);
_.A([_.e0("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Se.prototype,"dispatchFrostedGlassMode",null);_.A([_.r({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.p("design:type",Object)],Se.prototype,"isFrostedGlassDisabled",void 0);
_.A([_.e0("isWatchPage"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Se.prototype,"isWatchPageChanged",null);_.A([_.G("isHomePage","chipBarIsSticky"),_.p("design:type",Boolean),_.p("design:paramtypes",[])],Se.prototype,"applyFrostedGlassToChipBar",null);_.A([_.r(),_.p("design:type",Object)],Se.prototype,"isChannelOrPlaylistPage",void 0);
_.A([_.GJ("isInlinePreviewEnabled"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Se.prototype,"isInlinePreviewEnabledChanged",null);_.A([_.e0("guideIsVisibleButNotPersistent"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Se.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.A([_.e0("guidePersistentAndVisible","miniGuideVisible"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Se.prototype,"observeGuideVisibility",null);_.A([_.fu("attached"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],Se.prototype,"onYtPageManagerAttached",null);_.A([_.e0("data"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype",Promise)],Se.prototype,"updateMastheadData",null);
_.A([_.fu("yt-set-theater-mode-enabled"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent,Object]),_.p("design:returntype")],Se.prototype,"onSetTheaterModeEnabled",null);_.A([_.fu("yt-page-type-changed"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Se.prototype,"onPageChanged",null);_.A([_.fu("yt-page-data-updated"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Se.prototype,"onPageDataUpdated",null);
_.A([_.fu("yt-request-panel-mode-change"),_.p("design:type",Function),_.p("design:paramtypes",[Event,Object]),_.p("design:returntype")],Se.prototype,"onRequestPanelModeChange",null);_.A([_.fu("yt-guide-hover"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Se.prototype,"onGuideOpenButtonHover",null);_.A([_.fu("app-drawer-transitioned"),_.p("design:type",Function),_.p("design:paramtypes",[Event]),_.p("design:returntype")],Se.prototype,"onDrawerIronSelect",null);
_.A([_.fu("yt-add-element-to-app"),_.p("design:type",Function),_.p("design:paramtypes",[CustomEvent]),_.p("design:returntype")],Se.prototype,"onAddElementToApp",null);_.A([_.fu("yt-set-fullerscreen-styles"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Se.prototype,"setFullscreen",null);_.A([_.fu("yt-open-hotkey-dialog"),_.p("design:type",Function),_.p("design:paramtypes",[]),_.p("design:returntype")],Se.prototype,"onOpenHotkeyDialog",null);
_.A([_.q({is:"ytd-app"})],Se);_.Lx().processSignal("eor");
_.UX();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
